:root {
  color-scheme: dark;
  --bg: #091116;
  --panel: #111c22;
  --panel-2: #15232a;
  --line: rgba(180, 207, 207, .12);
  --muted: #809398;
  --text: #e4efec;
  --green: #9acb85;
  --mint: #72c8b4;
  --sand: #c9a06d;
  --danger: #d39a72;
  --radius: 12px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--text); }
body { min-width: 320px; background-image: radial-gradient(ellipse at 20% -10%, rgba(65, 104, 96, .13), transparent 40%), linear-gradient(180deg, #0b151a 0%, #091116 100%); }
button, input { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible, summary:focus-visible { outline: 2px solid #9bcf9b; outline-offset: 3px; }
.app-shell { max-width: 1600px; margin: 0 auto; padding: 0 28px 18px; }
.topbar { height: 66px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand-lockup { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 28px; height: 28px; border: 1px solid rgba(154,203,133,.42); border-radius: 8px; display: flex; align-items: flex-end; justify-content: center; gap: 3px; padding: 6px; transform: rotate(-8deg); }
.brand-mark span { width: 3px; border-radius: 4px 4px 1px 1px; background: var(--green); transform: skew(-18deg); }
.brand-mark span:nth-child(1) { height: 8px; opacity: .65; }
.brand-mark span:nth-child(2) { height: 14px; }
.brand-mark span:nth-child(3) { height: 10px; opacity: .8; }
.eyebrow, .section-kicker, .control-caption { color: #7f999b; font-size: 9px; font-weight: 750; letter-spacing: .16em; }
.eyebrow span { color: #486166; padding: 0 4px; }
.brand-name { margin-top: 3px; font-size: 13px; letter-spacing: .2em; font-weight: 800; }
.brand-dot { color: var(--green); font-size: 7px; vertical-align: 2px; margin-left: 2px; }
.topbar-right { display: flex; align-items: center; gap: 20px; color: #799094; font-size: 9px; letter-spacing: .12em; font-weight: 700; }
.live-indicator { display: flex; align-items: center; gap: 7px; color: #a6c5b0; }
.live-indicator i, #simStatus i { width: 6px; height: 6px; border-radius: 50%; background: #8ecb8a; box-shadow: 0 0 10px rgba(142,203,138,.5); display: inline-block; }
.version-label { padding-left: 18px; border-left: 1px solid var(--line); }
.main-layout { display: grid; grid-template-columns: minmax(0, 1fr) 348px; gap: 20px; padding-top: 20px; align-items: start; }
.exhibit-column { min-width: 0; }
.exhibit-heading { min-height: 72px; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 0 2px 14px; }
.exhibit-heading h1 { margin: 5px 0 5px; font-size: clamp(20px, 2vw, 26px); line-height: 1.12; letter-spacing: -.035em; font-weight: 680; }
.exhibit-heading h1 span { color: #9aadae; font-weight: 430; }
.subtitle { margin: 0; color: #8ea0a2; font-size: 11px; letter-spacing: .01em; }
.heading-actions { display: flex; gap: 7px; padding-top: 13px; }
.icon-button { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid var(--line); background: #101b21; color: #9bb0ae; border-radius: 8px; cursor: pointer; transition: border-color .2s, background .2s, color .2s; }
.icon-button:hover { border-color: rgba(154,203,133,.45); color: var(--green); background: #16252a; }
.camera-glyph { font-size: 16px; line-height: 1; }
.viewer-shell { border: 1px solid rgba(170,198,194,.16); border-radius: 12px; overflow: hidden; background: #0d181d; box-shadow: 0 18px 45px rgba(0,0,0,.22); }
.viewer-topline, .viewer-bottomline { height: 31px; display: flex; align-items: center; justify-content: space-between; padding: 0 13px; background: rgba(10,20,25,.92); color: #799093; font-size: 8px; font-weight: 750; letter-spacing: .14em; position: relative; z-index: 3; }
.viewer-topline b.tiny-dot { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: #a5c985; margin-right: 6px; vertical-align: 1px; }
.viewer-coordinates { color: #8ba0a1; }
.viewer-coordinates span, .muted-sep { color: #536c6f; padding: 0 5px; }
.viewport { position: relative; width: 100%; height: clamp(350px, 43vw, 510px); min-height: 330px; overflow: hidden; background: radial-gradient(ellipse at 50% 45%, #243a3b 0%, #15272d 48%, #101d24 100%); }
.viewport canvas { display: block; width: 100%; height: 100%; outline: none; }
.loading-state { position: absolute; inset: 0; z-index: 6; display: flex; flex-direction: column; gap: 13px; align-items: center; justify-content: center; background: rgba(9,17,22,.86); color: #91aaa5; font-size: 11px; letter-spacing: .06em; transition: opacity .4s; }
.loading-state.hidden { opacity: 0; pointer-events: none; }
.loader-ring { width: 26px; height: 26px; border: 2px solid rgba(154,203,133,.18); border-top-color: var(--green); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.scene-callout { position: absolute; z-index: 2; pointer-events: none; color: #e1ebdf; text-shadow: 0 2px 12px rgba(0,0,0,.9); display: flex; flex-direction: column; gap: 3px; }
.scene-callout strong { font-size: 9px; letter-spacing: .14em; }
.scene-callout small { font-size: 8px; color: #b3c5b8; letter-spacing: .04em; }
.callout-band { left: 9%; top: 19%; }
.callout-band .callout-line { width: 38px; height: 1px; background: #a6cf8a; margin-bottom: 4px; box-shadow: 0 0 8px #a6cf8a; }
.callout-flow { right: 10%; bottom: 25%; align-items: flex-end; }
.callout-flow .flow-arrow { font-size: 23px; color: #73d0d0; line-height: .8; }
.callout-flow strong { color: #bce9e2; }
.callout-flow small { color: #a5c9c5; }
.orientation-chip { position: absolute; left: 14px; bottom: 48px; z-index: 2; display: flex; align-items: center; gap: 7px; color: #b4c8be; font-size: 8px; font-weight: 750; letter-spacing: .12em; pointer-events: none; }
.north-arrow { width: 19px; height: 19px; display: grid; place-items: center; border: 1px solid rgba(173,207,173,.3); border-radius: 50%; color: #b3d798; font-size: 12px; }
.viewer-bottomline { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(180deg, rgba(9,18,23,.78), rgba(9,18,23,.96)); }
#simClock b { color: #d3e3d7; font-weight: 700; margin-left: 4px; }
#simStatus { display: flex; align-items: center; gap: 6px; }
#simStatus.paused i { background: #d6a06d; box-shadow: 0 0 8px rgba(214,160,109,.4); }
.context-message[hidden] { display: none; }
.context-message { position: absolute; z-index: 7; inset: 0; display: grid; place-items: center; text-align: center; padding: 20px; background: rgba(8,16,20,.88); color: #d3e2d7; font-size: 13px; }
.viewer-legend { height: 32px; display: flex; align-items: center; justify-content: space-between; padding: 0 14px; color: #809597; font-size: 8px; font-weight: 750; letter-spacing: .1em; background: #101b20; }
.legend-gradient, .legend-water { display: flex; align-items: center; gap: 8px; }
.legend-gradient i { display: block; width: 68px; height: 5px; border-radius: 5px; background: linear-gradient(90deg,#9c7851,#526a43,#a1c57b); }
.legend-water i { width: 7px; height: 7px; border-radius: 50%; background: #5abfc0; box-shadow: 0 0 8px rgba(90,191,192,.5); }
.scaled-label, .micro-tag { font-size: 7px; color: #718a8b; border: 1px solid rgba(150,181,175,.18); border-radius: 4px; padding: 2px 4px; letter-spacing: .1em; }
.readouts { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 8px; margin-top: 10px; }
.readout-card { min-width: 0; padding: 10px 12px 9px; border: 1px solid var(--line); border-radius: 9px; background: linear-gradient(145deg, rgba(20,34,39,.92), rgba(13,24,29,.95)); }
.readout-label { display: flex; align-items: center; gap: 6px; color: #83999a; font-size: 8px; letter-spacing: .11em; font-weight: 750; white-space: nowrap; }
.readout-value { margin-top: 7px; color: #e1eddf; font-size: 21px; font-weight: 620; letter-spacing: -.04em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.readout-value small { color: #86a09a; font-size: 9px; font-weight: 650; letter-spacing: .04em; }
.readout-foot { margin-top: 3px; color: #687f83; font-size: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cause-chain { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 14px; margin-top: 10px; border: 1px solid var(--line); border-radius: 9px; background: rgba(14,25,30,.62); }
.cause-chain > div:not(.chain-arrow) { display: grid; grid-template-columns: 23px 1fr; grid-template-rows: auto auto; column-gap: 7px; align-items: center; min-width: 0; }
.cause-chain > div > span { grid-row: 1 / span 2; color: #93bd83; font-size: 9px; font-weight: 750; }
.cause-chain strong { color: #c4d5ca; font-size: 8px; letter-spacing: .13em; }
.cause-chain small { color: #778e90; font-size: 8px; margin-top: 2px; white-space: nowrap; }
.chain-arrow { color: #536f6c; font-size: 14px; }
.control-column { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.control-panel, .validation-panel, .science-panel { border: 1px solid var(--line); border-radius: 11px; background: linear-gradient(155deg, rgba(19,31,37,.97), rgba(13,23,28,.98)); }
.control-panel { padding: 15px 15px 13px; }
.panel-header, .validation-heading { display: flex; align-items: flex-start; justify-content: space-between; }
.panel-header h2 { margin: 4px 0 0; font-size: 17px; font-weight: 650; letter-spacing: -.02em; }
.panel-index { color: #61797c; font-size: 8px; letter-spacing: .12em; font-weight: 750; padding-top: 5px; }
.preset-block { margin-top: 15px; }
.control-caption { display: flex; align-items: center; justify-content: space-between; font-size: 8px; }
.control-caption span { color: #60777a; font-size: 7px; }
.preset-grid { display: grid; grid-template-columns: 1fr; gap: 5px; margin-top: 7px; }
.preset-button { width: 100%; display: flex; align-items: center; gap: 9px; text-align: left; padding: 7px 9px; border-radius: 7px; border: 1px solid rgba(164,194,184,.10); background: rgba(10,20,24,.56); cursor: pointer; transition: .18s ease; }
.preset-button:hover { border-color: rgba(154,203,133,.35); background: rgba(35,55,48,.4); }
.preset-button.active { border-color: rgba(154,203,133,.38); background: rgba(67,96,63,.18); box-shadow: inset 2px 0 #9acb85; }
.preset-icon { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 6px; font-size: 15px; flex: 0 0 auto; }
.drought-icon { color: #d6a477; background: rgba(180,119,69,.12); }
.bands-icon { color: #a4d18c; background: rgba(128,176,104,.12); }
.green-icon { color: #79c8b0; background: rgba(74,171,145,.12); }
.preset-button b { display: block; color: #d4e0d8; font-size: 9px; font-weight: 650; }
.preset-button small { display: block; margin-top: 2px; color: #7f9696; font-size: 8px; }
.parameter-list { margin-top: 15px; padding-top: 12px; border-top: 1px solid var(--line); }
.parameter-caption { margin-bottom: 8px; }
.slider-control { margin: 0 0 10px; }
.slider-control.last-slider { margin-bottom: 2px; }
.slider-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 5px; }
.slider-heading label { color: #c0d0c9; font-size: 9px; font-weight: 560; }
.slider-heading em { color: #83a69a; font-style: italic; margin-left: 3px; }
.slider-heading output { color: #b4d19e; font-size: 9px; font-variant-numeric: tabular-nums; font-weight: 700; }
input[type="range"] { display: block; width: 100%; height: 13px; margin: 0; appearance: none; -webkit-appearance: none; background: transparent; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 3px; border-radius: 4px; background: linear-gradient(90deg, #6b9b73, #3d6660); }
input[type="range"]::-moz-range-track { height: 3px; border-radius: 4px; background: linear-gradient(90deg, #6b9b73, #3d6660); }
input[type="range"]::-webkit-slider-thumb { appearance: none; -webkit-appearance: none; width: 11px; height: 11px; margin-top: -4px; border-radius: 50%; border: 2px solid #d4e8ca; background: #6b9c6b; box-shadow: 0 0 0 3px rgba(117,174,126,.12); }
input[type="range"]::-moz-range-thumb { width: 8px; height: 8px; border-radius: 50%; border: 2px solid #d4e8ca; background: #6b9c6b; box-shadow: 0 0 0 3px rgba(117,174,126,.12); }
.slider-scale { display: flex; justify-content: space-between; color: #536a6e; font-size: 7px; font-weight: 700; letter-spacing: .1em; margin-top: 1px; }
.transport-panel { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.transport-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.transport-title { color: #d4e0d8; font-size: 10px; font-weight: 650; margin-top: 4px; }
.speed-control, .quality-switch { display: flex; padding: 2px; border: 1px solid rgba(166,194,184,.12); background: #0c171c; border-radius: 6px; }
.speed-control button, .quality-switch button { border: 0; background: transparent; color: #748a8c; cursor: pointer; border-radius: 4px; font-size: 8px; padding: 5px 6px; }
.speed-control button.active, .quality-switch button.active { background: #2c453a; color: #cce4c0; box-shadow: inset 0 0 0 1px rgba(154,203,133,.16); }
.transport-buttons { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 6px; margin-top: 10px; }
.transport-buttons button { height: 31px; border-radius: 6px; cursor: pointer; font-size: 9px; font-weight: 700; transition: background .18s, border-color .18s; }
.primary-button { border: 1px solid #8dbb7e; color: #102018; background: linear-gradient(180deg,#a7ce8e,#83b57d); display: flex; align-items: center; justify-content: center; gap: 7px; }
.primary-button:hover { background: #b8daa0; }
.play-icon { font-size: 8px; }
.secondary-button { border: 1px solid rgba(165,194,185,.17); color: #a8bdb5; background: #17252a; }
.secondary-button:hover { border-color: rgba(154,203,133,.38); background: #20332e; }
.secondary-button span { color: #91b78c; margin-left: 3px; font-size: 12px; }
.quality-row { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; color: #667e80; font-size: 7px; font-weight: 750; letter-spacing: .13em; }
.quality-switch button { padding: 4px 9px; font-size: 7px; }
.validation-panel { padding: 12px 14px 11px; }
.validation-heading { align-items: center; }
.validation-heading h3 { margin: 4px 0 0; font-size: 13px; font-weight: 650; }
.check-mark { display: grid; place-items: center; width: 21px; height: 21px; border-radius: 50%; color: #a8d49a; background: rgba(119,174,108,.13); border: 1px solid rgba(143,197,124,.25); font-size: 12px; }
.validation-panel p { margin: 8px 0 9px; color: #829798; font-size: 8px; line-height: 1.45; }
.validation-values { display: grid; grid-template-columns: repeat(3,1fr); gap: 7px; }
.validation-values > div { padding: 7px 7px 6px; background: rgba(7,16,20,.46); border: 1px solid rgba(158,190,181,.08); border-radius: 6px; min-width: 0; }
.validation-values small { display: block; color: #71898a; font-size: 6px; letter-spacing: .08em; white-space: nowrap; }
.validation-values b { display: block; margin-top: 5px; color: #d4e2d6; font-size: 11px; font-variant-numeric: tabular-nums; }
.validation-values b.validation-good { color: #a8d49a; }
.validation-branch { margin-top: 7px; color: #607a7c; font-size: 7px; }
.science-panel { overflow: hidden; }
.science-panel summary { list-style: none; display: flex; align-items: center; justify-content: space-between; padding: 11px 14px; cursor: pointer; }
.science-panel summary::-webkit-details-marker { display: none; }
.science-panel summary > span:first-child { display: flex; flex-direction: column; gap: 4px; }
.science-panel summary b { font-size: 12px; font-weight: 650; }
.details-plus { color: #91b78c; font-size: 17px; transition: transform .2s; }
.science-panel[open] .details-plus { transform: rotate(45deg); }
.science-content { padding: 0 14px 14px; border-top: 1px solid var(--line); }
.science-content h4 { margin: 12px 0 6px; color: #c8d9ce; font-size: 9px; }
.science-content p { margin: 6px 0 9px; color: #82989a; font-size: 8px; line-height: 1.6; }
.science-content p b { color: #bdd2c0; }
.equation { padding: 8px 9px; margin: 5px 0; border-radius: 6px; border: 1px solid rgba(148,186,163,.11); background: rgba(6,15,18,.48); color: #c5dcb8; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 9px; line-height: 1.5; overflow-wrap: anywhere; }
.model-labels { display: flex; gap: 5px; margin-top: 10px; }
.model-labels span { border: 1px solid rgba(148,186,163,.16); border-radius: 4px; padding: 3px 5px; color: #8fa99a; font-size: 6px; font-weight: 800; letter-spacing: .1em; }
.disclaimer { color: #62797a !important; font-size: 7px !important; margin-top: 10px !important; }
.footer { display: flex; justify-content: space-between; gap: 12px; padding: 13px 2px 0; color: #536b6e; font-size: 7px; font-weight: 750; letter-spacing: .13em; }
.footer i { color: #9acb85; font-style: normal; padding: 0 3px; }
body.embed .topbar, body.embed .footer { display: none; }
body.embed .app-shell { padding: 10px; }
body.embed .main-layout { padding-top: 0; }
body.embed .exhibit-heading { min-height: 60px; }
body.embed .subtitle { display: none; }
@media (min-width: 1450px) { .main-layout { grid-template-columns: minmax(0,1fr) 370px; gap: 24px; } .viewport { height: 540px; } }
@media (max-width: 1050px) { .app-shell { padding-left: 18px; padding-right: 18px; } .main-layout { grid-template-columns: minmax(0,1fr) 320px; gap: 13px; } .readout-card { padding: 9px; } .readout-value { font-size: 18px; } }
@media (max-width: 850px) { .main-layout { grid-template-columns: 1fr; } .control-column { display: grid; grid-template-columns: 1fr 1fr; align-items: start; } .control-panel { grid-row: span 2; } .science-panel { grid-column: 2; } .viewport { height: min(58vw, 500px); min-height: 350px; } }
@media (max-width: 600px) {
  .app-shell { padding: 0 10px 14px; }
  .topbar { height: 54px; }
  .topbar-right { gap: 0; }
  .version-label { display: none; }
  .eyebrow { font-size: 7px; }
  .brand-name { font-size: 11px; }
  .live-indicator { font-size: 7px; }
  .main-layout { padding-top: 12px; gap: 12px; }
  .exhibit-heading { min-height: 70px; padding-bottom: 10px; }
  .exhibit-heading h1 { font-size: 20px; max-width: 300px; }
  .exhibit-heading h1 span { display: block; font-size: 15px; margin-top: 2px; }
  .subtitle { max-width: 300px; font-size: 9px; line-height: 1.4; }
  .heading-actions { padding-top: 8px; }
  .icon-button { width: 29px; height: 29px; }
  .viewer-topline, .viewer-bottomline { padding: 0 9px; font-size: 7px; height: 28px; }
  .viewer-coordinates { font-size: 6px; }
  .viewport { height: 390px; min-height: 330px; }
  .scene-callout { transform: scale(.82); transform-origin: top left; }
  .callout-band { left: 6%; top: 14%; }
  .callout-flow { right: 4%; bottom: 24%; }
  .orientation-chip { left: 9px; bottom: 43px; }
  .viewer-legend { padding: 0 9px; font-size: 7px; }
  .legend-gradient i { width: 42px; }
  .readouts { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px; margin-top: 7px; }
  .readout-card { padding: 8px 9px; }
  .readout-value { margin-top: 5px; font-size: 20px; }
  .readout-foot { font-size: 7px; }
  .cause-chain { padding: 10px 8px; gap: 4px; }
  .cause-chain > div:not(.chain-arrow) { grid-template-columns: 17px 1fr; column-gap: 4px; }
  .cause-chain strong { font-size: 7px; }
  .cause-chain small { font-size: 6px; white-space: normal; }
  .chain-arrow { font-size: 11px; }
  .control-column { display: flex; }
  .control-panel { padding: 13px; }
  .preset-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .preset-button { align-items: flex-start; flex-direction: column; gap: 5px; padding: 7px; min-height: 70px; }
  .preset-button b { font-size: 8px; }
  .preset-button small { font-size: 7px; }
  .preset-icon { width: 20px; height: 20px; }
  .slider-control { margin-bottom: 12px; }
  .validation-values small { font-size: 6px; }
  .footer { font-size: 6px; }
  .footer span:last-child { text-align: right; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
