* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; font: 14px system-ui, sans-serif; color: #172432; }
#map { position: fixed; inset: 0 0 0 360px; }
button, input, select { font: inherit; }
button { cursor: pointer; border: 1px solid #cbd5e1; border-radius: 7px; background: #fff; padding: 8px 10px; }
button:disabled { opacity: .5; cursor: default; }
input[type="search"], input:not([type]), select { width: 100%; padding: 9px; border: 1px solid #94a3b8; border-radius: 6px; }
label { display: block; font-weight: 600; margin: 10px 0 5px; }
a { color: #075985; }
#sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: 360px; overflow-y: auto; padding: 16px; background: #fff; box-shadow: 0 0 12px #0003; z-index: 500; }
header, .summary { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
h1 { margin: 0; font-size: 23px; } h2 { font-size: 19px; margin: 0; }
header p { margin: 2px 0 12px; color: #64748b; }
.hint { color: #526274; font-size: 12px; line-height: 1.4; }
#feeds, #adopted { display: grid; gap: 5px; margin: 8px 0; }
.feed-row { display: flex; align-items: center; gap: 8px; }
.feed-row span, .feed-row .feed { flex: 1; }
.section-title { font-size: 15px; margin: 12px 0 0; }
.feed { text-align: left; } .feed[aria-pressed="true"], #compare, #stage, #upload { background: #075985; color: white; border-color: #075985; }
#compare { width: 100%; }
#status, #detail-message, #review-message { line-height: 1.4; }
#detail-message:empty, #next-message:empty { display: none; }
fieldset { border: 1px solid #cbd5e1; border-radius: 7px; padding: 6px 10px; }
fieldset label { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: normal; margin: 4px 8px 4px 0; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.summary { margin: 12px 0; }
#locations { display: grid; gap: 5px; }
.location { text-align: left; display: flex; gap: 8px; align-items: center; }
.location small { color: #526274; display: block; }
.location-group { margin: 12px 0 2px; font-size: 13px; color: #526274; }
.location[aria-pressed="true"] { border-color: #075985; background: #e0f2fe; box-shadow: inset 3px 0 #075985; }
.feed-marker-selected { filter: drop-shadow(0 0 2px #172432); }
#detail { position: fixed; z-index: 700; right: 12px; top: 12px; width: min(390px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); overflow-y: auto; background: white; padding: 16px; border-radius: 12px; box-shadow: 0 2px 15px #0005; touch-action: pan-y; }
#detail[hidden] { display: none; }
#detail-status { font-weight: 600; }
.difference { display: flex; align-items: flex-start; gap: 8px; border-top: 1px solid #e2e8f0; padding: 9px 0; font-weight: normal; margin: 0; overflow-wrap: anywhere; }
.difference input { margin-top: 3px; }
.difference small { display: block; color: #526274; }
.candidate-marker { display: grid; place-items: center; width: 26px; height: 26px; border: 2px solid white; border-radius: 50%; background: #334155; color: white; box-shadow: 0 1px 5px #0009; font: bold 12px system-ui, sans-serif; }
.candidate-marker.strong { background: #075985; }
.candidate-marker.selected { background: #b45309; outline: 3px solid #fbbf24; }
#external { display: flex; gap: 12px; flex-wrap: wrap; margin: 10px 0; }
.actions { display: flex; justify-content: space-between; gap: 8px; margin-top: 12px; }
dialog { width: min(600px, 94vw); max-height: 90dvh; border: 0; border-radius: 12px; padding: 20px; overflow-y: auto; }
dialog::backdrop { background: #0008; }
.review-item { border-top: 1px solid #cbd5e1; padding: 10px 0; overflow-wrap: anywhere; }
.review-item p { margin: 5px 0; }
@media (max-width: 900px) {
  #map { inset: 0; bottom: 45%; }
  #sidebar { top: 55%; right: 0; bottom: 0; width: auto; border-radius: 12px 12px 0 0; }
  #detail { top: auto; bottom: 0; right: 0; width: 100%; max-height: 45dvh; border-radius: 12px 12px 0 0; }
}
