/* Flood-specific content uses the existing SatQuery workspace tokens and structure. */
.map-heading{padding:24px 24px 0}.map-heading h2{font-size:21px}.map-heading p{font-size:12px}.map-stage{flex:1;min-height:180px;margin:10px 20px;display:flex;align-items:center;background:var(--input);border-radius:14px;overflow:hidden}#map{display:block;width:100%;height:100%;min-height:220px;max-height:440px}.layer-controls{display:flex;gap:16px;flex-wrap:wrap;padding:4px 24px 16px}.layer-controls label{display:flex;align-items:center;gap:8px;margin:0;color:var(--muted);font-size:12px}.layer-controls input{width:15px;height:15px;accent-color:var(--gold);padding:0}.flood-metrics{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin:26px 0}.flood-metrics .value{font-size:25px;color:var(--text)}.flood-metrics small{font-size:12px;color:var(--muted)}#downloads{flex-wrap:wrap}#coverage{font-size:12px}.boundary{margin-top:18px;padding-top:16px}#error{font-size:13px;color:var(--gold)}#access td{overflow-wrap:anywhere}#limits{font-size:13px}#map path{cursor:help}button:disabled{cursor:not-allowed}@media(max-width:800px){.map-stage{min-height:240px}.map-heading{padding:20px 20px 0}.layer-controls{gap:12px}}

.question-panel{padding:0 0 20px;border-bottom:1px solid var(--line)}.question-panel textarea{min-height:105px;width:100%;resize:vertical}.question-panel h2{margin-top:8px}.analysis-settings{padding:16px 0;border-bottom:1px solid var(--line)}.analysis-settings h3,.processing-record h3{font-size:16px}.analysis-settings p,.processing-record{font-size:12px}.processing-record li{margin:8px 0}.question-panel select,.analysis-settings input{width:100%}#optical-note:empty{display:none}

.answer-result{padding:28px 0;margin:0 0 12px;border-bottom:1px solid var(--line);outline:none}.answer-result[hidden]{display:none}.answer-result h2{font-size:28px;line-height:1.25;margin:12px 0}.answer-result #copilot-answer{font-size:22px;line-height:1.65;white-space:pre-line;margin:18px 0 24px}.answer-result #answer-run{font-size:12px;overflow-wrap:anywhere}.answer-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.answer-metric{background:var(--input);border:1px solid var(--line);border-radius:14px;padding:20px 16px;min-width:0}.answer-metric strong{display:block;font-size:30px;line-height:1.25;color:var(--gold);overflow-wrap:anywhere}.answer-metric span{display:block;font-size:12px;color:var(--muted);margin-top:10px}.answer-sources{border-top:1px solid var(--line);margin-top:24px;padding-top:16px;font-size:12px}.answer-sources a{display:inline-block;margin:8px 16px 0 0}.flood-metrics>div{padding:14px;border:1px solid var(--line);border-radius:12px;background:var(--input)}@media(max-width:480px){.answer-result #copilot-answer{font-size:20px}.answer-metric strong{font-size:25px}.answer-metric{padding:16px 12px}}


/* Clickable Workspace imagery with explicit zoom and pan controls. */
.map-stage #map,.map-stage #sar-preview{cursor:zoom-in}
#image-viewer:not([open]){display:none}
#image-viewer[open]{position:fixed;inset:0;width:100vw;height:100dvh;max-width:none;max-height:none;margin:0;padding:14px 18px 10px;border:0;border-radius:0;background:#080808;color:var(--text);overflow:hidden;display:grid;grid-template-rows:auto minmax(0,1fr) auto;gap:10px}
#image-viewer::backdrop{background:#000e}
.viewer-toolbar{display:flex;align-items:center;justify-content:center;gap:10px;flex-wrap:wrap}
.viewer-toolbar button{min-width:44px;padding:8px 14px;border:1px solid var(--line);border-radius:9px;background:var(--card);color:var(--text);font:inherit}
.viewer-toolbar button:focus-visible,#viewer-stage:focus-visible{outline:3px solid var(--gold);outline-offset:3px}
#viewer-zoom-level{min-width:58px;text-align:center;font-variant-numeric:tabular-nums;color:var(--muted)}
#viewer-stage{min-height:0;display:grid;place-items:center;overflow:hidden;background:#050505;border:1px solid var(--line);border-radius:12px;touch-action:none}
#viewer-stage>#viewer-image{transform-origin:center center;user-select:none;-webkit-user-drag:none;touch-action:none;cursor:grab}
#viewer-stage>#viewer-image:active{cursor:grabbing}
#viewer-stage>img#viewer-image{width:auto!important;height:auto!important;max-width:100%;max-height:100%;object-fit:contain}
#viewer-stage>svg#viewer-image{width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain}
.viewer-hint{margin:0;text-align:center;color:var(--muted);font-size:13px;line-height:1.4}
/* Readable Evidence hierarchy modeled on SatQuery's evidence cards. */
#evaluation .evidence-card>h2{font-size:32px;line-height:1.25}
#evaluation .evidence-card>p{font-size:16px;line-height:1.6;max-width:72ch}
#evaluation .evidence-layout>div{font-size:16px;line-height:1.6}
#evaluation .current-benchmarks h3{font-size:21px;line-height:1.35}
#evaluation .current-benchmarks p{font-size:16px;line-height:1.65}
#evaluation .current-benchmarks .metrics{gap:16px;align-items:stretch}
#evaluation .current-benchmarks .metrics>div{flex:1;min-width:0}
#evaluation .current-benchmarks .metrics strong{font-size:clamp(32px,3vw,40px);line-height:1.2}
#evaluation .current-benchmarks .metrics p{font-size:15px;line-height:1.5}
#evaluation #eval-content table{font-size:15px;line-height:1.5}
#evaluation #eval-content th,#evaluation #eval-content td{font-size:15px;line-height:1.5;padding:14px 12px}
#evaluation #eval-content ul,#evaluation #eval-content ol{font-size:15px;line-height:1.7}
#evaluation #eval-content>a{font-size:15px;line-height:1.7}
@media(max-width:640px){#image-viewer[open]{padding:10px;gap:8px}.viewer-toolbar{gap:6px}.viewer-toolbar button{padding:8px 11px}.viewer-hint{font-size:12px}#evaluation .current-benchmarks .metrics{display:grid;grid-template-columns:1fr;gap:10px}#evaluation .evidence-card>h2{font-size:27px}#evaluation .evidence-layout>div{font-size:15px}#evaluation .current-benchmarks p{font-size:15px}}


/* Live event progress follows SatQuery's selected-analysis execution card. */
.event-progress{margin-top:22px}.event-progress[hidden]{display:none}.event-progress-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 12px}.event-elapsed{border:1px solid var(--line);border-radius:999px;padding:6px 11px;color:var(--gold);font-size:13px;font-variant-numeric:tabular-nums}.event-progress-card{border:1px solid color-mix(in srgb,var(--gold) 55%,var(--line));border-radius:17px;background:color-mix(in srgb,var(--gold) 6%,var(--input));padding:20px 20px 16px}.event-progress-current{display:flex;align-items:flex-start;gap:13px}.event-progress-mark{width:12px;height:12px;flex:0 0 12px;margin-top:8px;border-radius:50%;background:var(--gold);box-shadow:0 0 0 5px color-mix(in srgb,var(--gold) 16%,transparent)}.event-progress[data-state=running] .event-progress-mark{animation:event-pulse 1.8s ease-in-out infinite}.event-progress[data-state=complete] .event-progress-mark{background:#71bd91;box-shadow:0 0 0 5px color-mix(in srgb,#71bd91 15%,transparent)}.event-progress[data-state=failed] .event-progress-mark,.event-progress[data-state=interrupted] .event-progress-mark{background:#df8f7b;box-shadow:0 0 0 5px color-mix(in srgb,#df8f7b 15%,transparent)}.event-progress-current h4{font-size:20px;line-height:1.3;margin:0 0 6px}.event-progress-current p{font-size:16px;line-height:1.5;margin:0;color:var(--text)}.event-progress-divider{height:1px;background:var(--line);margin:18px 0 14px}.event-progress-card h5{font-size:15px;margin:0 0 7px}.event-progress-card ol{counter-reset:event-step;list-style:none;margin:0;padding:0;max-height:255px;overflow:auto}.event-progress-card li{counter-increment:event-step;display:grid;grid-template-columns:24px minmax(0,1fr) auto;align-items:start;gap:9px;padding:8px 0;color:var(--muted);font-size:14px;line-height:1.45}.event-progress-card li::before{content:counter(event-step);display:grid;place-items:center;width:21px;height:21px;border:1px solid var(--line);border-radius:50%;font-size:11px;font-variant-numeric:tabular-nums}.event-progress-card li.current{color:var(--text)}.event-progress-card li[data-state=complete]::before{border-color:#71bd91;color:#71bd91}.event-progress-card li[data-state=failed]::before,.event-progress-card li[data-state=interrupted]::before{border-color:#df8f7b;color:#df8f7b}.event-step-message{grid-column:2;overflow-wrap:anywhere}.event-progress-card time{grid-column:3;color:var(--muted);font-size:11px;font-variant-numeric:tabular-nums;white-space:nowrap}.analysis-settings #event-form button:disabled{opacity:.62}@keyframes event-pulse{50%{box-shadow:0 0 0 9px color-mix(in srgb,var(--gold) 6%,transparent)}}@media(max-width:520px){.event-progress-card{padding:16px 14px}.event-progress-current h4{font-size:18px}.event-progress-current p{font-size:15px}.event-progress-card li{grid-template-columns:22px minmax(0,1fr);gap:8px;font-size:13px}.event-progress-card time{grid-column:2;margin-top:-4px}}

/* Flood actions: centered, readable, and consistent with the black-and-gold workspace. */
#copilot-form>button,#event-form>button{display:block;min-width:156px;min-height:50px;margin:20px auto 4px;padding:12px 28px;border:1px solid color-mix(in srgb,var(--gold) 88%,white);border-radius:12px;background:#080808;color:var(--gold);font-size:17px;font-weight:700;letter-spacing:.2px;box-shadow:0 0 0 1px color-mix(in srgb,var(--gold) 16%,transparent),0 0 18px color-mix(in srgb,var(--gold) 24%,transparent);transition:transform .18s ease,box-shadow .18s ease,background .18s ease}
#copilot-form>button:hover:not(:disabled),#event-form>button:hover:not(:disabled){transform:translateY(-1px);background:#111;box-shadow:0 0 0 1px color-mix(in srgb,var(--gold) 28%,transparent),0 0 25px color-mix(in srgb,var(--gold) 38%,transparent)}
#copilot-form>button:focus-visible,#event-form>button:focus-visible{outline:3px solid var(--gold);outline-offset:4px}
#copilot-form>button:disabled,#event-form>button:disabled{opacity:.62;box-shadow:none}

/* The familiar SatQuery globe floats in its own column beside live status. */
.event-progress-current{display:grid;grid-template-columns:12px minmax(0,1fr) 170px;align-items:start;gap:13px;min-height:126px}
.event-progress-current>.event-progress-mark{grid-column:1;margin-top:8px}
.event-progress-current>.event-progress-copy{grid-column:2;min-width:0}
.event-progress-current>.event-progress-illustration{grid-column:3;grid-row:1;position:relative;width:170px;height:126px;object-fit:contain;pointer-events:none;justify-self:end;margin-top:-10px;filter:drop-shadow(0 5px 14px color-mix(in srgb,var(--gold) 30%,transparent));animation:event-art-float 5.5s ease-in-out infinite}
.event-progress[data-state=complete] .event-progress-illustration,.event-progress[data-state=failed] .event-progress-illustration,.event-progress[data-state=interrupted] .event-progress-illustration{display:none}
.event-progress[data-state=complete] .event-progress-current,.event-progress[data-state=failed] .event-progress-current,.event-progress[data-state=interrupted] .event-progress-current{grid-template-columns:12px minmax(0,1fr);min-height:0}
@keyframes event-art-float{0%,100%{transform:translateY(0) rotate(-1deg)}50%{transform:translateY(-6px) rotate(1deg)}}
@media(max-width:520px){.event-progress-current{grid-template-columns:12px minmax(0,1fr) 138px;min-height:104px}.event-progress-current>.event-progress-illustration{width:138px;height:102px;margin-top:-4px}}@media(prefers-reduced-motion:reduce){.event-progress-illustration{animation:none}#copilot-form>button,#event-form>button{transition:none}}