:root {
  color-scheme: dark;
  --bg: #06101b;
  --panel: #0b1725;
  --panel-2: #0e1d2d;
  --line: rgba(151, 183, 209, .15);
  --line-strong: rgba(151, 183, 209, .25);
  --text: #e7f1f8;
  --muted: #8ca2b6;
  --muted-2: #637b91;
  --ice: #9de8ff;
  --cyan: #4fd6e9;
  --violet: #b49cff;
  --amber: #f3c27b;
  --green: #6ce0b2;
  --danger: #ff8c92;
  --radius: 14px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}
* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; min-height: 100vh; color: var(--text); background: radial-gradient(ellipse at 32% -15%, #15314a 0%, transparent 48%), var(--bg); }
button, input { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible, summary:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.app-shell { max-width: 1920px; margin: 0 auto; padding: 0 24px 18px; }
.topbar { min-height: 76px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); gap: 20px; }
.brand-lockup { display: flex; align-items: center; gap: 14px; }
.brand-mark { width: 34px; height: 34px; position: relative; display: flex; align-items: center; justify-content: center; gap: 3px; border: 1px solid rgba(112, 214, 234, .3); border-radius: 10px; background: linear-gradient(145deg, rgba(74, 199, 224, .16), rgba(112, 132, 226, .08)); }
.brand-mark span { width: 3px; border-radius: 4px; background: linear-gradient(180deg, #b8f4ff, #50b9d5); transform: skew(-20deg); }
.brand-mark span:nth-child(1) { height: 11px; opacity: .55; }.brand-mark span:nth-child(2) { height: 20px; }.brand-mark span:nth-child(3) { height: 14px; opacity: .75; }
.eyebrow, .section-kicker { font-size: 9px; letter-spacing: .17em; color: #83a2b9; font-weight: 800; }
h1 { margin: 3px 0 0; font-size: 19px; letter-spacing: -.035em; font-weight: 650; }
.topbar-meta { display: flex; align-items: center; gap: 10px; color: #8298ac; font-size: 9px; letter-spacing: .12em; font-weight: 800; }
.live-dot, .status-indicator { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px rgba(108, 224, 178, .65); }
.meta-divider { width: 1px; height: 14px; background: var(--line-strong); margin: 0 5px; }
.icon-button { border: 1px solid var(--line-strong); border-radius: 8px; background: rgba(255,255,255,.025); width: 28px; height: 28px; cursor: pointer; color: #9fb6c9; margin-left: 8px; }
.workspace { display: grid; grid-template-columns: minmax(0, 1fr) 332px; gap: 16px; padding-top: 16px; align-items: start; }
.stage-column { min-width: 0; }
.scene-frame { height: clamp(420px, 52vw, 610px); min-height: 420px; position: relative; overflow: hidden; border: 1px solid rgba(122, 173, 204, .2); border-radius: 16px; background: radial-gradient(ellipse at 50% 48%, #0b2941 0%, #071624 56%, #050c15 100%); box-shadow: 0 22px 60px rgba(0,0,0,.25), inset 0 0 70px rgba(35, 104, 143, .08); }
.webgl-host { position: absolute; inset: 0; z-index: 1; }
.webgl-host canvas { width: 100%; height: 100%; display: block; outline: none; }
.scene-topline { position: absolute; z-index: 4; left: 18px; right: 18px; top: 16px; display: flex; align-items: center; justify-content: space-between; pointer-events: none; }
.scene-tag { display: flex; align-items: center; gap: 8px; padding: 8px 11px; border: 1px solid rgba(137, 206, 229, .23); border-radius: 7px; background: rgba(5, 17, 29, .68); backdrop-filter: blur(12px); font-size: 9px; letter-spacing: .14em; font-weight: 850; color: #c1e9f6; }
.tag-pulse { width: 6px; height: 6px; border-radius: 50%; background: var(--ice); box-shadow: 0 0 10px var(--ice); }
.scene-actions { display: flex; gap: 6px; pointer-events: auto; }
.scene-button { height: 30px; padding: 0 10px; border-radius: 7px; border: 1px solid rgba(137, 181, 208, .22); background: rgba(5, 17, 29, .68); backdrop-filter: blur(12px); color: #9cb7c9; cursor: pointer; font-size: 11px; }
.scene-button span { font-size: 8px; letter-spacing: .1em; font-weight: 800; margin-left: 3px; }
.scene-button:hover, .icon-button:hover { border-color: rgba(90, 213, 235, .55); color: #e1f8ff; }
.scene-label { position: absolute; z-index: 3; color: rgba(179, 219, 237, .68); font-size: 8px; font-weight: 800; letter-spacing: .16em; pointer-events: none; text-shadow: 0 2px 8px #00101b; }
.label-line { display: inline-block; width: 23px; height: 1px; margin: 0 8px 3px 0; background: rgba(111, 211, 231, .75); }
.label-vortex { top: 27%; left: 8%; }.label-psc { top: 52%; right: 7%; }.label-ozone { bottom: 24%; left: 12%; }
.scene-bottomline { position: absolute; z-index: 4; bottom: 14px; left: 18px; right: 18px; display: flex; justify-content: space-between; align-items: center; gap: 10px; pointer-events: none; }
.legend { display: flex; align-items: center; gap: 7px; color: #8ba4b8; font-size: 8px; font-weight: 800; letter-spacing: .07em; }
.legend-dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; margin-left: 8px; }.legend-dot:first-child { margin-left: 0; }
.legend-ice { background: #a9efff; box-shadow: 0 0 7px #6bdcf5; }.legend-nat { background: #c0a5ff; }.legend-aerosol { background: #eabf83; }
.orbit-hint { font-size: 8px; color: #6e899d; letter-spacing: .1em; font-weight: 800; }
.orbit-hint span { color: #4d6d85; padding: 0 4px; }
.webgl-error, .context-overlay { position: absolute; z-index: 8; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 30px; text-align: center; background: rgba(4, 12, 21, .94); }
.webgl-error[hidden], .context-overlay[hidden] { display: none; }
.error-icon { font-size: 34px; color: var(--cyan); margin-bottom: 12px; }.webgl-error strong, .context-overlay strong { font-size: 16px; }.webgl-error p, .context-overlay span { color: var(--muted); font-size: 12px; max-width: 420px; line-height: 1.6; }
.telemetry-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.metric-card { min-height: 82px; padding: 12px 14px 10px; border: 1px solid var(--line); border-radius: 11px; background: linear-gradient(145deg, rgba(17, 36, 54, .9), rgba(9, 21, 34, .92)); }
.metric-head { display: flex; align-items: center; justify-content: space-between; color: #7f9aaf; font-size: 8px; font-weight: 850; letter-spacing: .12em; }.metric-icon { color: #6ecfe2; font-size: 14px; }
.metric-value { font-size: 21px; font-weight: 650; letter-spacing: -.04em; margin-top: 5px; font-variant-numeric: tabular-nums; }.metric-value small { font-size: 10px; color: #91adbf; font-weight: 600; letter-spacing: 0; margin-left: 2px; }
.metric-foot { color: #6f879a; font-size: 9px; margin-top: 1px; }.metric-ozone .metric-icon { color: var(--amber); }
.timeline-panel { margin-top: 10px; padding: 14px 16px 12px; border: 1px solid var(--line); border-radius: 12px; background: rgba(10, 24, 38, .9); }
.timeline-top { display: flex; justify-content: space-between; align-items: center; }.timeline-top > div:first-child { display: flex; align-items: baseline; gap: 12px; }.timeline-top strong { font-size: 12px; font-variant-numeric: tabular-nums; color: #dcebf4; }
.timeline-status { display: flex; align-items: center; gap: 7px; color: #8ea5b7; font-size: 8px; font-weight: 850; letter-spacing: .13em; }.status-indicator { background: #637b91; box-shadow: none; }.status-indicator.running { background: var(--green); box-shadow: 0 0 10px rgba(108,224,178,.65); }
.timeline-track { height: 3px; background: #1b3043; border-radius: 4px; margin: 12px 0 13px; position: relative; overflow: visible; }.timeline-fill { height: 100%; width: 0; background: linear-gradient(90deg, #429fc1, #8bdce9); border-radius: inherit; transition: width .25s linear; }.timeline-marker { position: absolute; top: 50%; left: 0; width: 7px; height: 7px; border: 1px solid #d2f8ff; background: #59cfe4; border-radius: 50%; transform: translate(-50%,-50%); box-shadow: 0 0 10px rgba(89,207,228,.7); }
.playback-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }.playback-buttons { display: flex; gap: 6px; }.control-button { height: 31px; min-width: 62px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: 7px; background: rgba(255,255,255,.025); color: #a4bacb; font-size: 11px; cursor: pointer; }.control-button span { font-size: 8px; font-weight: 850; letter-spacing: .1em; margin-left: 4px; }.control-button:hover { border-color: rgba(94, 210, 231, .5); color: #e3f9ff; }.control-button.primary { background: linear-gradient(120deg, rgba(43, 145, 174, .32), rgba(43, 113, 150, .25)); border-color: rgba(91, 202, 222, .45); color: #c9f4ff; }
.speed-control { display: flex; align-items: center; gap: 8px; color: #7892a7; font-size: 8px; letter-spacing: .12em; font-weight: 850; }.speed-options { display: flex; padding: 3px; border-radius: 7px; background: #07131f; border: 1px solid var(--line); }.speed-options button { border: 0; border-radius: 5px; background: transparent; color: #7790a3; min-width: 31px; height: 23px; font-size: 9px; cursor: pointer; }.speed-options button.selected { background: #1a4256; color: #c8f3ff; box-shadow: inset 0 0 0 1px rgba(92,202,222,.2); }
.timeline-note { margin-top: 9px; color: #5f788c; font-size: 8px; letter-spacing: .07em; }
.science-panel { margin-top: 10px; border: 1px solid var(--line); border-radius: 12px; background: rgba(9, 22, 35, .92); overflow: hidden; scroll-margin-top: 20px; }.science-panel summary { display: flex; align-items: center; gap: 12px; padding: 13px 16px; cursor: pointer; list-style: none; }.science-panel summary::-webkit-details-marker { display: none; }.science-symbol { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; background: rgba(70, 173, 200, .12); color: var(--cyan); font-size: 18px; }.science-panel summary b { display: block; font-size: 10px; letter-spacing: .12em; }.science-panel summary small { display: block; color: #70889b; font-size: 9px; margin-top: 3px; }.summary-chevron { margin-left: auto; color: #7792a5; font-size: 18px; transition: transform .2s; }.science-panel[open] .summary-chevron { transform: rotate(180deg); }.science-content { border-top: 1px solid var(--line); padding: 18px; }.science-intro h2 { font-size: 18px; margin: 8px 0 6px; letter-spacing: -.03em; }.science-intro p { max-width: 900px; color: #8ca3b5; font-size: 11px; line-height: 1.7; margin: 0 0 15px; }.pill-text { display: inline-block; color: #7bd4e5; font-size: 8px; font-weight: 900; letter-spacing: .13em; padding: 5px 7px; border-radius: 5px; background: rgba(67, 177, 204, .1); border: 1px solid rgba(67, 177, 204, .17); }.equation-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }.equation-card { padding: 12px; border: 1px solid var(--line); border-radius: 9px; background: rgba(255,255,255,.018); }.equation-card > span { color: #6f8da4; font-size: 8px; letter-spacing: .12em; font-weight: 850; }.equation-card code { display: block; margin: 9px 0 7px; color: #d0eff8; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 11px; line-height: 1.6; white-space: normal; }.equation-card p { color: #7f96a8; font-size: 9px; line-height: 1.6; margin: 0; }.validation-card { display: grid; grid-template-columns: 1fr 1.25fr; gap: 20px; padding: 15px; margin-top: 10px; border: 1px solid rgba(98, 194, 216, .22); border-radius: 10px; background: linear-gradient(120deg, rgba(36, 106, 130, .12), rgba(12, 29, 45, .5)); }.validation-card h3 { margin: 8px 0 5px; font-size: 13px; }.validation-card p { margin: 0; color: #8299ab; font-size: 9px; line-height: 1.6; }.validation-values { display: grid; grid-template-columns: repeat(3,1fr); align-items: center; gap: 8px; }.validation-values div { min-width: 0; }.validation-values span { display: block; color: #7894a8; font-size: 8px; letter-spacing: .1em; font-weight: 850; }.validation-values b { display: block; margin-top: 7px; font-size: 16px; font-variant-numeric: tabular-nums; }.validation-values small { font-size: 9px; color: #89a4b7; font-weight: 500; }.assumptions { margin-top: 14px; color: #8298aa; font-size: 9px; line-height: 1.65; }.assumptions b { color: #b7cad7; letter-spacing: .1em; font-size: 8px; }.assumptions ul { padding-left: 17px; margin: 7px 0 0; }.assumptions li { margin: 3px 0; }.model-key { display: flex; flex-wrap: wrap; gap: 14px; padding-top: 12px; margin-top: 12px; border-top: 1px solid var(--line); color: #71899b; font-size: 8px; }.model-key b { color: #b5dce7; letter-spacing: .07em; }
.control-panel { padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(160deg, rgba(14, 29, 45, .98), rgba(8, 19, 31, .98)); box-shadow: 0 20px 50px rgba(0,0,0,.18); }.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }.panel-heading h2 { font-size: 15px; margin: 5px 0 0; letter-spacing: -.025em; }.panel-chip { border: 1px solid rgba(92, 196, 216, .25); color: #79cbdc; background: rgba(58, 158, 181, .08); border-radius: 5px; padding: 5px 7px; font-size: 7px; font-weight: 900; letter-spacing: .13em; white-space: nowrap; }
.cause-card { display: flex; gap: 10px; padding: 11px; margin: 14px 0 16px; border-radius: 9px; border: 1px solid rgba(97, 179, 205, .17); background: rgba(58, 148, 177, .07); }.cause-icon { width: 27px; height: 27px; display: grid; place-items: center; flex: 0 0 27px; border-radius: 7px; background: rgba(93, 203, 226, .12); color: #9aeafa; }.cause-card b { display: block; color: #a6dbe7; font-size: 8px; letter-spacing: .11em; }.cause-card p { margin: 4px 0 0; color: #7f99ad; font-size: 9px; line-height: 1.5; }
.control-section { padding: 11px 0 10px; border-top: 1px solid rgba(141, 174, 198, .1); }.control-title { display: flex; justify-content: space-between; align-items: center; gap: 8px; }.control-title label { color: #b8cbd8; font-size: 10px; font-weight: 650; }.control-title output { color: #83d8e8; font-size: 10px; font-weight: 700; font-variant-numeric: tabular-nums; }
input[type="range"] { display: block; width: 100%; height: 16px; margin: 7px 0 1px; appearance: none; background: transparent; cursor: pointer; accent-color: #62c8de; }input[type="range"]::-webkit-slider-runnable-track { height: 3px; border-radius: 4px; background: linear-gradient(90deg, #327f9b, #2a4c66); }input[type="range"]::-moz-range-track { height: 3px; border-radius: 4px; background: linear-gradient(90deg, #327f9b, #2a4c66); }input[type="range"]::-webkit-slider-thumb { appearance: none; width: 11px; height: 11px; margin-top: -4px; border-radius: 50%; background: #b6f3ff; border: 2px solid #3da4bf; box-shadow: 0 0 9px rgba(91,213,237,.5); }input[type="range"]::-moz-range-thumb { width: 9px; height: 9px; border-radius: 50%; background: #b6f3ff; border: 2px solid #3da4bf; box-shadow: 0 0 9px rgba(91,213,237,.5); }
.range-labels { display: flex; justify-content: space-between; color: #536d81; font-size: 7px; letter-spacing: .08em; }.control-sunlight { padding-bottom: 12px; }
.preset-section { border-top: 1px solid rgba(141, 174, 198, .1); padding-top: 14px; }.preset-list { display: grid; gap: 6px; margin-top: 9px; }.preset-button { width: 100%; display: flex; align-items: center; gap: 9px; padding: 8px 9px; text-align: left; border: 1px solid rgba(141, 174, 198, .12); border-radius: 8px; background: rgba(255,255,255,.018); cursor: pointer; transition: border-color .18s, background .18s; }.preset-button:hover { border-color: rgba(92, 204, 227, .34); }.preset-button.active { border-color: rgba(96, 200, 222, .42); background: rgba(50, 141, 166, .1); }.preset-swatch { width: 7px; height: 26px; border-radius: 4px; flex: 0 0 7px; }.swatch-night { background: #86b6e7; box-shadow: 0 0 9px rgba(134,182,231,.35); }.swatch-spring { background: #9ee5e9; box-shadow: 0 0 9px rgba(158,229,233,.35); }.swatch-warm { background: #edbd84; box-shadow: 0 0 9px rgba(237,189,132,.35); }.preset-button b { display: block; color: #c4d5df; font-size: 9px; }.preset-button small { display: block; color: #71899d; font-size: 8px; margin-top: 3px; }.preset-arrow { margin-left: auto; color: #68879d; font-size: 12px; }.panel-footnote { display: flex; gap: 8px; padding-top: 12px; margin-top: 13px; border-top: 1px solid rgba(141, 174, 198, .1); color: #6e879b; font-size: 8px; line-height: 1.5; }.footnote-mark { width: 13px; height: 13px; border-radius: 50%; flex: 0 0 13px; display: grid; place-items: center; border: 1px solid #63859b; color: #9bb9c9; font-size: 8px; }
.footer { display: flex; align-items: center; justify-content: space-between; padding: 14px 2px 0; color: #536b7f; font-size: 8px; letter-spacing: .1em; font-weight: 800; }.footer i { font-style: normal; color: #38566d; padding: 0 4px; }
body.embed .topbar, body.embed .footer { display: none; }body.embed .app-shell { padding: 0; }body.embed .workspace { padding: 0; gap: 0; }body.embed .scene-frame { border-radius: 0; border: 0; height: 100vh; min-height: 320px; }body.embed .control-panel, body.embed .telemetry-grid, body.embed .timeline-panel, body.embed .science-panel { display: none; }
@media (min-width: 1500px) { .workspace { grid-template-columns: minmax(0, 1fr) 360px; gap: 18px; }.scene-frame { height: 620px; }.control-panel { padding: 18px; } }
@media (max-width: 1050px) { .app-shell { padding: 0 14px 14px; }.workspace { grid-template-columns: minmax(0,1fr) 300px; gap: 10px; }.scene-frame { height: 500px; }.control-panel { padding: 13px; }.telemetry-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 780px) { .app-shell { padding: 0 10px 12px; }.topbar { min-height: 66px; }.topbar-meta { font-size: 8px; gap: 7px; }.workspace { grid-template-columns: 1fr; gap: 10px; padding-top: 10px; }.scene-frame { height: min(62vh, 510px); min-height: 350px; }.control-panel { order: 2; }.telemetry-grid { margin-top: 8px; }.control-panel { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: 14px; }.panel-heading, .cause-card, .preset-section, .panel-footnote { grid-column: 1 / -1; }.cause-card { margin: 10px 0 8px; }.control-section { padding: 8px 0; }.preset-list { grid-template-columns: 1fr; }.footer { font-size: 7px; }.label-vortex { left: 4%; }.label-psc { right: 4%; }.label-ozone { left: 5%; } }
@media (max-width: 480px) { h1 { font-size: 16px; }.eyebrow { font-size: 7px; }.brand-mark { width: 30px; height: 30px; }.topbar-meta { gap: 5px; letter-spacing: .06em; }.topbar-meta .meta-divider, .topbar-meta > span:nth-of-type(3) { display: none; }.scene-frame { min-height: 330px; height: 52vh; }.scene-topline { left: 9px; right: 9px; top: 9px; }.scene-tag { padding: 7px 8px; font-size: 7px; }.scene-button { height: 27px; padding: 0 7px; }.scene-button span { display: none; }.scene-bottomline { left: 9px; right: 9px; bottom: 9px; }.legend { font-size: 6px; gap: 4px; }.legend-dot { margin-left: 4px; }.orbit-hint { display: none; }.scene-label { font-size: 6px; }.telemetry-grid { gap: 6px; }.metric-card { min-height: 75px; padding: 9px 10px 8px; }.metric-head { font-size: 7px; }.metric-value { font-size: 19px; }.metric-foot { font-size: 8px; }.timeline-panel { padding: 12px; }.playback-row { align-items: flex-start; flex-direction: column; }.speed-control { width: 100%; justify-content: space-between; }.control-panel { padding: 12px; column-gap: 10px; }.control-title label { font-size: 9px; }.control-title output { font-size: 9px; }.range-labels { font-size: 6px; }.preset-button { padding: 7px; }.preset-button small { font-size: 7px; }.equation-grid { grid-template-columns: 1fr; }.validation-card { grid-template-columns: 1fr; }.validation-values b { font-size: 13px; }.science-content { padding: 12px; }.footer { flex-direction: column; align-items: flex-start; gap: 5px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; } }
