:root {
  color-scheme: dark;
  --bg: #07111c;
  --panel: #0c1926;
  --panel-2: #102131;
  --line: rgba(159, 192, 215, .13);
  --line-strong: rgba(159, 192, 215, .22);
  --text: #e7f0f5;
  --muted: #8ba0af;
  --dim: #607687;
  --cyan: #78d9eb;
  --cyan-soft: #3c91a7;
  --ice: #b5e9f7;
  --amber: #d8b77c;
  --green: #6fe0bc;
  --radius: 10px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}
* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; margin: 0; overflow: hidden; background: var(--bg); color: var(--text); }
body { font-size: 12px; letter-spacing: .01em; }
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 { display: flex; flex-direction: column; width: 100%; height: 100%; min-height: 0; background: radial-gradient(circle at 48% 38%, #102536 0, #091723 42%, #07111c 100%); }
.topbar { height: 68px; flex: 0 0 68px; display: flex; align-items: center; justify-content: space-between; padding: 0 22px; border-bottom: 1px solid var(--line); background: rgba(7, 17, 28, .94); z-index: 5; }
.brand-lockup { display: flex; align-items: center; gap: 12px; min-width: 235px; }
.brand-symbol { width: 28px; height: 28px; position: relative; display: flex; align-items: center; justify-content: center; gap: 2px; transform: rotate(30deg); }
.brand-symbol span { display: block; width: 5px; height: 23px; border-radius: 4px; background: linear-gradient(180deg, #b9f0fb, #4c9fb6); transform: skewY(-25deg); }
.brand-symbol span:nth-child(2) { height: 17px; opacity: .78; }
.brand-symbol span:nth-child(3) { height: 11px; opacity: .56; }
.eyebrow, .section-overline, .scene-kicker { color: #7f9bad; font-size: 8px; font-weight: 750; letter-spacing: .19em; }
h1 { margin: 3px 0 0; font-size: 18px; line-height: 1; font-weight: 760; letter-spacing: .14em; }
h1 span { color: #7fb8c9; font-weight: 450; }
.topbar-center { display: flex; align-items: center; gap: 9px; color: #b3c8d5; font-size: 9px; letter-spacing: .14em; font-weight: 650; }
.live-dot { width: 6px; height: 6px; display: inline-block; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px rgba(111,224,188,.7); }
.topbar-divider { color: #435b6d; }
.muted { color: #70899b; }
.topbar-actions { display: flex; align-items: center; gap: 10px; min-width: 235px; justify-content: flex-end; }
.icon-button, .export-button { height: 34px; border: 1px solid var(--line-strong); border-radius: 7px; background: rgba(18, 39, 55, .55); cursor: pointer; transition: border-color .18s, background .18s; }
.icon-button { width: 36px; display: grid; place-items: center; }
.icon-button svg { width: 17px; height: 17px; fill: none; stroke: #a7c1d0; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.export-button { padding: 0 13px; color: #d8edf4; font-size: 9px; letter-spacing: .1em; font-weight: 750; }
.export-icon { font-size: 15px; padding-right: 5px; color: var(--cyan); }
.icon-button:hover, .export-button:hover { border-color: rgba(120,217,235,.55); background: rgba(37, 76, 94, .5); }
.workspace { display: grid; grid-template-columns: minmax(0, 1fr) 360px; flex: 1 1 auto; min-height: 0; }
.scene-panel { min-width: 0; min-height: 0; display: flex; flex-direction: column; background: #081521; border-right: 1px solid var(--line); }
.scene-stage { position: relative; flex: 1 1 auto; min-height: 0; overflow: hidden; background: radial-gradient(ellipse at 48% 42%, #284355 0%, #132b3b 43%, #0b1a27 100%); }
#sceneCanvas { display: block; width: 100%; height: 100%; touch-action: none; outline: none; }
.scene-vignette { pointer-events: none; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,13,21,.38), transparent 22%, transparent 68%, rgba(5,13,21,.43)), radial-gradient(ellipse at center, transparent 48%, rgba(4,12,19,.32) 100%); }
.scene-top-left, .scene-top-right, .scene-bottom-left, .scene-bottom-right { position: absolute; z-index: 2; pointer-events: none; }
.scene-top-left { top: 22px; left: 24px; }
.scene-kicker { font-size: 8px; color: #9bb6c4; }
.scene-subtitle { margin-top: 7px; color: #e2f0f5; font-family: Georgia, "Times New Roman", serif; font-size: 17px; font-style: italic; letter-spacing: .01em; text-shadow: 0 2px 12px #081521; }
.scene-top-right { top: 19px; right: 20px; display: flex; flex-direction: column; align-items: flex-end; gap: 7px; }
.scene-chip { display: flex; align-items: center; gap: 7px; padding: 7px 9px; border: 1px solid rgba(190,221,234,.16); border-radius: 5px; background: rgba(7,19,29,.58); color: #c3d9e3; font-size: 8px; letter-spacing: .14em; backdrop-filter: blur(8px); }
.scene-chip b { color: #e5f4f8; font-weight: 700; letter-spacing: .06em; }
.scene-chip.subtle { color: #7792a4; }
.annotation { position: absolute; z-index: 3; display: flex; align-items: center; gap: 7px; color: #c7e5ee; font-size: 8px; font-weight: 750; letter-spacing: .16em; text-shadow: 0 1px 5px #07111c, 0 0 10px #07111c; pointer-events: none; white-space: nowrap; }
.annotation i { width: 6px; height: 6px; border: 1px solid #c6f2ff; border-radius: 50%; background: #67cce4; box-shadow: 0 0 0 4px rgba(103,204,228,.12), 0 0 12px rgba(103,204,228,.7); }
.annotation-source { left: 12%; top: 43%; }
.annotation-front { left: 47%; top: 57%; }
.annotation-layers { right: 8%; top: 70%; }
.scene-bottom-left { left: 22px; bottom: 20px; display: flex; flex-wrap: wrap; gap: 15px; padding: 9px 11px; border: 1px solid rgba(190,221,234,.12); border-radius: 6px; background: rgba(7,19,29,.56); backdrop-filter: blur(8px); }
.legend-item { display: flex; align-items: center; gap: 6px; color: #b7cbd6; font-size: 8px; font-weight: 700; letter-spacing: .12em; }
.legend-swatch { display: inline-block; width: 7px; height: 7px; border-radius: 2px; }
.water-swatch { background: #55bfd7; box-shadow: 0 0 7px rgba(85,191,215,.6); }
.ice-swatch { background: #b5e9f7; }
.snow-swatch { background: #e4edf0; }
.scene-bottom-right { right: 22px; bottom: 24px; display: flex; align-items: center; gap: 6px; color: #b7cbd6; font-size: 8px; font-weight: 750; letter-spacing: .14em; }
.axis-line { width: 30px; height: 1px; background: linear-gradient(90deg, #6fc7dd, rgba(111,199,221,.1)); }
.scene-caption-bar { flex: 0 0 32px; height: 32px; display: flex; justify-content: space-between; align-items: center; padding: 0 18px; background: #091723; border-top: 1px solid var(--line); color: #7f97a7; font-size: 8px; letter-spacing: .13em; font-weight: 700; }
.scene-caption-bar > div { display: flex; align-items: center; gap: 8px; }
.caption-index { color: var(--cyan); }
.caption-center { color: #5e7789; font-weight: 550; }
.key-hint { display: inline-block; padding: 3px 5px; border: 1px solid var(--line-strong); border-radius: 3px; color: #a5bdca; font-size: 7px; }
.webgl-message { position: absolute; inset: 0; z-index: 8; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 8px; background: rgba(6,16,25,.88); text-align: center; }
.webgl-message strong { font-size: 15px; }
.webgl-message span { max-width: 260px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.loading-cover { position: absolute; inset: 0; z-index: 9; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; background: #0b1a27; transition: opacity .5s ease, visibility .5s ease; }
.loading-cover.loaded { opacity: 0; visibility: hidden; pointer-events: none; }
.loading-mark { display: flex; gap: 4px; height: 22px; align-items: flex-end; }
.loading-mark span { width: 4px; border-radius: 4px; background: var(--cyan); animation: loadingPulse 1s ease-in-out infinite alternate; }
.loading-mark span:nth-child(1) { height: 9px; }
.loading-mark span:nth-child(2) { height: 17px; animation-delay: .2s; }
.loading-mark span:nth-child(3) { height: 13px; animation-delay: .4s; }
.loading-title { color: #cfe9f1; font-size: 9px; font-weight: 800; letter-spacing: .2em; }
.loading-subtitle { color: #688394; font-size: 9px; }
@keyframes loadingPulse { to { transform: translateY(-6px); opacity: .5; } }
.control-panel { min-width: 0; min-height: 0; background: linear-gradient(180deg, #0d1c29, #0a1723); }
.panel-scroll { height: 100%; overflow: auto; scrollbar-width: thin; scrollbar-color: #294457 transparent; padding: 20px 20px 12px; }
.panel-scroll::-webkit-scrollbar { width: 5px; }
.panel-scroll::-webkit-scrollbar-thumb { background: #294457; border-radius: 5px; }
.panel-section { padding-bottom: 18px; margin-bottom: 17px; border-bottom: 1px solid var(--line); }
.intro-section { padding-bottom: 17px; }
.intro-heading-row { display: flex; justify-content: space-between; align-items: flex-start; }
.intro-heading-row h2 { margin: 8px 0 7px; color: #e5f0f5; font-family: Georgia, "Times New Roman", serif; font-size: 27px; font-weight: 400; line-height: .98; letter-spacing: -.035em; }
.intro-heading-row h2 em { color: #93d7e8; font-weight: 400; }
.ice-glyph { margin: 13px 9px 0 0; color: #7fc9df; font-size: 26px; opacity: .82; text-shadow: 0 0 16px rgba(127,201,223,.3); }
.intro-copy { max-width: 290px; margin: 0; color: #9cb0bd; font-size: 10px; line-height: 1.55; }
.process-chain { display: flex; align-items: center; gap: 8px; margin-top: 14px; padding: 9px 10px; border: 1px solid rgba(120,217,235,.13); border-radius: 6px; background: rgba(20,48,65,.4); color: #9fc3d1; font-size: 8px; font-weight: 750; letter-spacing: .13em; }
.process-chain b { color: #5a9db1; font-size: 11px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.section-heading h3 { margin: 4px 0 0; color: #dce9ef; font-size: 12px; font-weight: 700; letter-spacing: .015em; }
.tiny-tag { padding: 4px 6px; border: 1px solid rgba(120,217,235,.19); border-radius: 4px; color: #8ccbd9; font-size: 7px; font-weight: 800; letter-spacing: .12em; white-space: nowrap; }
.illustrative-tag { color: #d5b981; border-color: rgba(213,185,129,.24); }
.textbook-tag { color: #81d8b7; border-color: rgba(129,216,183,.24); }
.preset-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 5px; margin-bottom: 16px; }
.preset-button, .quality-button { min-height: 30px; padding: 0 5px; border: 1px solid var(--line-strong); border-radius: 5px; background: rgba(16,36,51,.55); color: #7892a3; font-size: 7px; font-weight: 800; letter-spacing: .08em; cursor: pointer; transition: background .18s, border-color .18s, color .18s; }
.preset-button:hover, .quality-button:hover { border-color: rgba(120,217,235,.45); color: #cce7ef; }
.preset-button.active, .quality-button.active { border-color: rgba(120,217,235,.42); background: rgba(44,101,119,.28); color: #bceaf4; box-shadow: inset 0 0 0 1px rgba(120,217,235,.06); }
.control-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; row-gap: 15px; }
.control-row { min-width: 0; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; column-gap: 6px; }
.control-row label, .speed-row label { color: #9bb0bd; font-size: 8px; font-weight: 800; letter-spacing: .08em; white-space: nowrap; }
.control-row output, .speed-row output { color: #d8f1f6; font-size: 10px; font-weight: 750; font-variant-numeric: tabular-nums; }
.unit { color: #637f91; font-size: 7px; font-weight: 650; }
.control-row input, .speed-row input { grid-column: 1 / -1; width: 100%; margin: 9px 0 0; appearance: none; height: 3px; border-radius: 3px; background: linear-gradient(90deg, #5dbbd1, #24495b); cursor: pointer; }
input[type="range"]::-webkit-slider-thumb { appearance: none; width: 11px; height: 11px; border: 2px solid #c7f0f8; border-radius: 50%; background: #4c9db2; box-shadow: 0 0 0 3px rgba(91,189,213,.12); }
input[type="range"]::-moz-range-thumb { width: 8px; height: 8px; border: 2px solid #c7f0f8; border-radius: 50%; background: #4c9db2; box-shadow: 0 0 0 3px rgba(91,189,213,.12); }
.range-ends { grid-column: 1 / -1; display: flex; justify-content: space-between; margin-top: 5px; color: #5f7889; font-size: 7px; font-variant-numeric: tabular-nums; }
.time-readout { color: #93d7e8; font-size: 8px; font-weight: 800; letter-spacing: .08em; font-variant-numeric: tabular-nums; }
.transport-row { display: grid; grid-template-columns: 1.1fr 1fr .7fr; gap: 6px; }
.transport-main, .transport-secondary { height: 34px; border-radius: 5px; cursor: pointer; font-size: 8px; font-weight: 800; letter-spacing: .12em; transition: .18s; }
.transport-main { display: flex; justify-content: center; align-items: center; gap: 8px; border: 1px solid #39798b; background: linear-gradient(135deg, #22566a, #163a4d); color: #d8f5fa; }
.transport-main:hover { background: linear-gradient(135deg, #2d6c82, #1d4a60); }
.pause-glyph { font-size: 13px; line-height: 1; }
.transport-secondary { border: 1px solid var(--line-strong); background: rgba(16,36,51,.65); color: #a8c0cc; font-size: 7px; }
.transport-secondary:hover { border-color: rgba(120,217,235,.45); color: #e1f5f8; }
.reset-button { color: #8299a8; }
.speed-row { display: grid; grid-template-columns: 1fr auto; align-items: center; margin-top: 14px; }
.speed-row input { margin-top: 8px; }
.data-section { padding-bottom: 15px; }
.readout-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.readout-card { min-height: 68px; padding: 10px 10px 8px; border: 1px solid rgba(151,188,207,.14); border-radius: 6px; background: linear-gradient(135deg, rgba(20,44,61,.75), rgba(13,31,45,.7)); }
.readout-label { display: block; color: #7e9aaa; font-size: 7px; font-weight: 800; letter-spacing: .12em; }
.readout-card strong { display: block; margin-top: 7px; color: #e3f4f8; font-size: 18px; font-weight: 650; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.readout-card strong small { color: #8ab8c8; font-size: 9px; font-weight: 600; letter-spacing: 0; }
.readout-foot { display: block; margin-top: 2px; color: #617b8d; font-size: 7px; }
.flow-balance { display: flex; justify-content: space-between; align-items: center; margin-top: 9px; padding: 8px 9px; border-radius: 5px; background: rgba(8,23,34,.7); color: #6f899a; font-size: 7px; font-weight: 800; letter-spacing: .1em; }
.flow-balance strong { color: #a8cad6; font-size: 9px; font-weight: 700; letter-spacing: .02em; }
.flow-balance i { color: #6ed1e2; font-style: normal; padding: 0 3px; }
.validation-section { padding-bottom: 15px; }
.validation-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.validation-grid > div { padding: 9px; border: 1px solid rgba(129,216,183,.14); border-radius: 5px; background: rgba(15,40,42,.35); }
.validation-grid span, .validation-result > span:first-child { display: block; color: #76978f; font-size: 7px; font-weight: 800; letter-spacing: .1em; }
.validation-grid strong { display: block; margin-top: 7px; color: #c5e9dc; font-size: 12px; font-weight: 650; font-variant-numeric: tabular-nums; }
.validation-result { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; padding: 8px 9px; border-radius: 5px; background: rgba(12,32,34,.5); }
.validation-result strong { color: #82dbb8; font-size: 10px; font-variant-numeric: tabular-nums; }
.validation-result .validation-pass { color: #6ccaa7; font-size: 6px; font-weight: 800; letter-spacing: .07em; white-space: nowrap; }
.validation-note { margin: 7px 0 0; color: #6d8793; font-size: 8px; line-height: 1.45; }
.quality-section { padding-bottom: 15px; margin-bottom: 14px; }
.quality-row { display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 5px; }
.quality-button { min-height: 29px; font-size: 7px; }
.camera-button { color: #9db5c2; }
.camera-button span { color: var(--cyan); font-size: 12px; padding-left: 3px; }
.science-panel { margin: 0 0 15px; border: 1px solid var(--line); border-radius: 6px; background: rgba(14,31,45,.5); }
.science-panel summary { display: flex; justify-content: space-between; align-items: center; padding: 11px 12px; cursor: pointer; list-style: none; }
.science-panel summary::-webkit-details-marker { display: none; }
.science-panel summary strong { display: block; margin-top: 4px; color: #dcebf1; font-size: 11px; }
.details-plus { color: #8ecddd; font-size: 18px; transition: transform .2s; }
.science-panel[open] .details-plus { transform: rotate(45deg); }
.science-content { padding: 0 12px 13px; color: #92aab7; font-size: 9px; line-height: 1.55; }
.science-content h4 { margin: 12px 0 5px; color: #bdd6e0; font-size: 9px; letter-spacing: .04em; }
.science-content p { margin: 5px 0 8px; }
.science-content ul { margin: 5px 0 9px; padding-left: 16px; }
.science-content li { margin: 3px 0; }
.equation { margin: 6px 0; padding: 8px 9px; border-left: 2px solid #4e9db1; border-radius: 0 4px 4px 0; background: rgba(26,57,72,.45); color: #d1edf4; font-family: Georgia, "Times New Roman", serif; font-size: 13px; letter-spacing: .01em; }
.disclaimer { padding-top: 8px; border-top: 1px solid var(--line); color: #7894a4; font-style: italic; }
.panel-footer { display: flex; justify-content: space-between; gap: 5px; padding: 1px 0 5px; color: #526b7b; font-size: 6px; font-weight: 750; letter-spacing: .1em; }
.embed-mode .topbar { display: none; }
.embed-mode .workspace { grid-template-columns: minmax(0,1fr) 330px; }
.embed-mode .scene-caption-bar { display: none; }
.embed-mode .panel-scroll { padding-top: 14px; }
@media (max-width: 1050px) {
  .workspace { grid-template-columns: minmax(0,1fr) 330px; }
  .panel-scroll { padding-left: 16px; padding-right: 16px; }
  .topbar-center { display: none; }
}
@media (max-width: 760px) {
  html, body { overflow: auto; height: auto; min-height: 100%; }
  .app-shell { height: auto; min-height: 100%; }
  .topbar { height: 56px; flex-basis: 56px; padding: 0 13px; }
  .brand-lockup { min-width: 0; gap: 8px; }
  .brand-symbol { width: 22px; height: 22px; }
  .brand-symbol span { height: 18px; width: 4px; }
  .brand-symbol span:nth-child(2) { height: 13px; }
  .brand-symbol span:nth-child(3) { height: 9px; }
  .eyebrow { font-size: 6px; }
  h1 { font-size: 15px; }
  .topbar-actions { min-width: 0; gap: 6px; }
  .icon-button { width: 31px; height: 31px; }
  .export-button { height: 31px; padding: 0 8px; font-size: 7px; }
  .workspace { display: flex; flex-direction: column; min-height: 0; }
  .scene-panel { flex: 0 0 44vh; min-height: 310px; border-right: 0; border-bottom: 1px solid var(--line); }
  .scene-stage { min-height: 0; }
  .scene-caption-bar { flex-basis: 27px; height: 27px; padding: 0 10px; font-size: 6px; }
  .caption-center { display: none !important; }
  .scene-top-left { top: 13px; left: 13px; }
  .scene-subtitle { font-size: 13px; margin-top: 4px; }
  .scene-top-right { top: 10px; right: 10px; gap: 5px; }
  .scene-chip { padding: 5px 6px; font-size: 6px; }
  .scene-bottom-left { left: 10px; bottom: 11px; gap: 8px; padding: 7px; }
  .legend-item { font-size: 6px; gap: 4px; }
  .scene-bottom-right { right: 10px; bottom: 14px; font-size: 6px; }
  .annotation { font-size: 6px; letter-spacing: .1em; }
  .annotation-source { left: 7%; top: 48%; }
  .annotation-front { left: 42%; top: 61%; }
  .annotation-layers { right: 4%; top: 73%; }
  .control-panel { flex: 1 1 auto; min-height: 0; }
  .panel-scroll { height: auto; overflow: visible; padding: 17px 15px 18px; }
  .intro-heading-row h2 { font-size: 25px; }
  .control-grid { column-gap: 18px; }
  .control-row label { font-size: 7px; }
  .panel-footer { padding-bottom: 10px; }
  .embed-mode .workspace { display: flex; flex-direction: column; }
  .embed-mode .scene-panel { flex-basis: 46vh; }
}
@media (max-width: 390px) {
  .scene-panel { flex-basis: 42vh; min-height: 285px; }
  .scene-bottom-left { gap: 6px; }
  .legend-item { font-size: 5.5px; }
  .scene-bottom-right { display: none; }
  .control-grid { column-gap: 12px; }
  .preset-button { font-size: 6px; }
  .quality-row { grid-template-columns: 1fr 1fr; }
  .camera-button { grid-column: 1 / -1; }
  .panel-scroll { padding-left: 13px; padding-right: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
[hidden]{display:none!important}
