:root {
  color-scheme: dark;
  --bg: #080d14;
  --panel: #101720;
  --panel-2: #151e29;
  --line: rgba(173, 192, 207, 0.13);
  --muted: #81909d;
  --text: #e8edf0;
  --soft: #b7c2ca;
  --gold: #e8bd52;
  --gold-bright: #f3ce67;
  --cyan: #8dbac7;
  --red: #ef875a;
  --radius: 10px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; width: 100%; min-height: 100%; background: var(--bg); color: var(--text); }
body { min-height: 100vh; overflow: hidden; font-size: 13px; letter-spacing: .01em; }
button, input { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible, summary:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.app-shell { min-height: 100vh; display: flex; flex-direction: column; background: radial-gradient(circle at 30% -20%, #1b2935 0, transparent 40%), var(--bg); }
.topbar { height: 68px; flex: 0 0 68px; display: flex; align-items: center; padding: 0 24px; border-bottom: 1px solid var(--line); background: rgba(9, 15, 22, .92); position: relative; z-index: 5; }
.brand-lockup { width: 245px; display: flex; align-items: center; gap: 11px; }
.brand-mark { width: 26px; height: 26px; position: relative; border: 1px solid rgba(232,189,82,.5); border-radius: 50%; display: flex; align-items: center; justify-content: center; gap: 2px; transform: rotate(-25deg); }
.brand-mark span { display: block; width: 3px; border-radius: 4px; background: var(--gold); }
.brand-mark span:nth-child(1) { height: 7px; opacity: .55; }
.brand-mark span:nth-child(2) { height: 13px; }
.brand-mark span:nth-child(3) { height: 9px; opacity: .75; }
.eyebrow, .top-kicker, .panel-eyebrow, .scene-index, .section-label, .section-count, .readout span, .scene-tags, .scene-legend, .scene-bottom-label, .footer-note, .footer-button, .transport-head, .speed-row label, .quality-row, .panel-foot, .validation-title, .validation-values span, .validation-footer, .limitations b, .disclaimer { font-size: 9px; font-weight: 700; letter-spacing: .13em; }
.eyebrow { color: #82909a; line-height: 1.3; }
.brand-title { margin-top: 3px; font-size: 11px; font-weight: 800; letter-spacing: .14em; color: #e4e9ec; }
.brand-title span { color: var(--gold); margin-left: 4px; }
.top-title { flex: 1; display: flex; flex-direction: column; gap: 4px; padding-left: 25px; border-left: 1px solid var(--line); }
.top-kicker { color: #82909a; font-size: 8px; }
.top-title strong { font-size: 13px; font-weight: 600; letter-spacing: .01em; }
.top-actions { display: flex; align-items: center; gap: 18px; }
.live-indicator { display: flex; align-items: center; gap: 8px; color: #a8b8bf; font-size: 9px; font-weight: 700; letter-spacing: .12em; }
.live-indicator i, .pulse-dot { width: 6px; height: 6px; border-radius: 50%; background: #8ac4a4; box-shadow: 0 0 12px rgba(138,196,164,.8); }
.icon-button { width: 28px; height: 28px; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: #aab6bf; cursor: pointer; font-family: Georgia, serif; font-style: italic; font-size: 15px; }
.icon-button:hover { border-color: rgba(232,189,82,.65); color: var(--gold-bright); }
.workspace { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 356px; }
.viewport-panel { min-width: 0; min-height: 0; display: flex; flex-direction: column; border-right: 1px solid var(--line); }
.scene-host { flex: 1; min-height: 0; position: relative; overflow: hidden; isolation: isolate; background: radial-gradient(ellipse at 50% 62%, #27313a 0, #121c26 44%, #09111a 100%); }
.three-canvas { display: block; width: 100%; height: 100%; position: absolute; inset: 0; z-index: 0; outline: none; }
.scene-vignette { position: absolute; inset: 0; pointer-events: none; z-index: 1; background: linear-gradient(90deg, rgba(6,11,17,.78), transparent 43%, transparent 75%, rgba(6,11,17,.12)), linear-gradient(0deg, rgba(7,12,18,.7), transparent 35%, rgba(7,12,18,.22)); }
.scene-heading { position: absolute; top: 38px; left: 42px; z-index: 2; pointer-events: none; max-width: 350px; }
.scene-index { color: var(--gold); font-size: 9px; }
.scene-index span { color: #77838d; padding: 0 5px; }
.scene-heading h1 { margin: 13px 0 8px; font-size: clamp(27px, 3.3vw, 44px); line-height: .98; letter-spacing: -.045em; font-weight: 500; text-shadow: 0 3px 24px rgba(0,0,0,.25); }
.scene-heading h1 em { color: var(--gold-bright); font-family: Georgia, "Times New Roman", serif; font-weight: 400; }
.scene-heading p { margin: 0; color: #9caab4; font-size: 11px; line-height: 1.5; letter-spacing: .02em; }
.scene-tags { position: absolute; top: 42px; right: 34px; z-index: 2; display: flex; flex-direction: column; gap: 9px; color: #b7c2c9; font-size: 8px; text-align: right; }
.scene-tags span { display: flex; align-items: center; justify-content: flex-end; gap: 7px; }
.tag-dot { width: 5px; height: 5px; display: inline-block; border-radius: 50%; }
.tag-dot.hot { background: #f28c53; box-shadow: 0 0 10px #f28c53; }
.tag-dot.sulfur { background: #eac64e; box-shadow: 0 0 10px #eac64e; }
.tag-dot.gas { background: #a9c7d3; box-shadow: 0 0 10px #a9c7d3; }
.annotation { position: absolute; z-index: 2; display: flex; align-items: center; gap: 7px; color: #d4dce0; font-size: 8px; font-weight: 800; letter-spacing: .12em; white-space: nowrap; pointer-events: none; text-shadow: 0 1px 5px #000; transform: translate(-50%, -50%); transition: opacity .2s ease; }
.annotation b { width: 18px; height: 18px; display: grid; place-items: center; border: 1px solid rgba(232,189,82,.8); border-radius: 50%; color: var(--gold-bright); background: rgba(8,13,20,.72); font-size: 8px; }
.annotation i { width: 26px; height: 1px; background: linear-gradient(90deg, rgba(232,189,82,.9), transparent); }
.annotation-vent { margin-left: -54px; margin-top: 10px; }
.annotation-plume { margin-left: 78px; margin-top: -8px; }
.annotation-crystals { margin-left: 62px; margin-top: 22px; }
.scene-legend { position: absolute; left: 42px; bottom: 111px; z-index: 2; color: #8f9da7; font-size: 8px; }
.legend-line { display: inline-block; width: 20px; height: 1px; background: var(--cyan); vertical-align: middle; margin-right: 7px; }
.legend-sep { color: #56636d; margin: 0 6px; }
.scene-bottom { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 15px 34px 17px 42px; background: linear-gradient(0deg, rgba(7,12,18,.96), rgba(7,12,18,.75)); border-top: 1px solid rgba(186,202,211,.12); }
.scene-bottom-label { color: #9eabb4; display: flex; align-items: center; gap: 8px; margin-bottom: 13px; font-size: 8px; }
.pulse-dot { width: 5px; height: 5px; }
.pulse-dot.paused { background: #e3bd61; box-shadow: none; }
.readout-strip { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; }
.readout { border-left: 1px solid rgba(232,189,82,.48); padding-left: 11px; min-width: 0; }
.readout span { color: #81909a; display: block; font-size: 8px; white-space: nowrap; }
.readout strong { display: block; margin-top: 5px; color: #f0f2f1; font-size: 17px; line-height: 1; font-weight: 500; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.readout small { color: #a5b1b8; font-size: 10px; font-weight: 500; letter-spacing: 0; }
.context-lost { position: absolute; z-index: 8; inset: 0; background: rgba(5,9,14,.9); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; }
.context-lost strong { font-size: 16px; }
.context-lost span { color: var(--muted); font-size: 12px; }
.loading-cover { position: absolute; z-index: 9; inset: 0; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 13px; background: #0b131c; color: #9aa9b3; font-size: 9px; letter-spacing: .18em; font-weight: 700; transition: opacity .5s ease; }
.loading-cover.loaded { opacity: 0; pointer-events: none; }
.loading-mark { width: 34px; height: 34px; border: 1px solid rgba(232,189,82,.25); border-top-color: var(--gold); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.viewport-footer { height: 40px; flex: 0 0 40px; display: flex; align-items: center; justify-content: space-between; padding: 0 22px 0 28px; background: #0c131b; border-top: 1px solid var(--line); }
.footer-note { color: #7e8c96; font-size: 8px; display: flex; align-items: center; gap: 6px; }
.keycap { padding: 3px 5px; border: 1px solid rgba(155,173,185,.2); border-radius: 3px; color: #c0c9ce; font-size: 7px; }
.footer-actions { display: flex; gap: 15px; }
.footer-button { border: 0; padding: 5px 0; background: none; color: #a4b0b8; font-size: 8px; cursor: pointer; }
.footer-button:hover { color: var(--gold-bright); }
.mini-icon { color: var(--gold); font-size: 13px; margin-right: 5px; vertical-align: -1px; }
.control-panel { min-height: 0; background: linear-gradient(180deg, #111923, #0e151e); overflow: hidden; }
.panel-scroll { height: 100%; overflow: auto; padding: 25px 22px 20px; scrollbar-width: thin; scrollbar-color: #34414d transparent; }
.panel-header { display: flex; align-items: flex-start; justify-content: space-between; }
.panel-eyebrow { color: var(--gold); font-size: 8px; }
.panel-header h2 { margin: 6px 0 0; font-size: 20px; line-height: 1.15; font-weight: 550; letter-spacing: -.03em; }
.model-badge { padding: 5px 7px; border: 1px solid rgba(141,186,199,.27); border-radius: 4px; color: var(--cyan); font-size: 8px; font-weight: 800; letter-spacing: .1em; }
.panel-intro { margin: 12px 0 21px; color: #91a0aa; font-size: 11px; line-height: 1.55; }
.section-label { display: flex; align-items: center; justify-content: space-between; color: #c0cbd1; font-size: 8px; padding-bottom: 9px; border-bottom: 1px solid var(--line); }
.section-count { color: #667580; font-size: 7px; }
.preset-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 6px; margin-top: 10px; }
.preset-button { min-height: 62px; border: 1px solid rgba(156,175,188,.14); border-radius: 6px; background: rgba(255,255,255,.018); display: flex; align-items: center; gap: 6px; text-align: left; padding: 8px 6px; cursor: pointer; transition: border-color .18s, background .18s; }
.preset-button:hover { border-color: rgba(232,189,82,.48); }
.preset-button.active { border-color: rgba(232,189,82,.7); background: rgba(232,189,82,.075); }
.preset-glyph { width: 19px; flex: 0 0 19px; text-align: center; font-size: 16px; color: #a8b7c0; }
.active-glyph { color: var(--gold-bright); }
.wind-glyph { color: #8dbac7; }
.preset-button b { display: block; font-size: 9px; font-weight: 650; line-height: 1.2; white-space: nowrap; }
.preset-button small { display: block; margin-top: 4px; color: #7f8d97; font-size: 7px; white-space: nowrap; }
.control-section { margin-top: 22px; }
.slider-control { margin-top: 13px; }
.slider-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.slider-heading label { color: #c5ced3; font-size: 10px; }
.slider-heading output { color: var(--gold-bright); font-size: 10px; font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
input[type="range"] { width: 100%; height: 14px; display: block; margin: 0; appearance: none; background: transparent; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 3px; border-radius: 3px; background: linear-gradient(90deg, #806b38, #d8b54e 58%, #43515c); }
input[type="range"]::-moz-range-track { height: 3px; border-radius: 3px; background: linear-gradient(90deg, #806b38, #d8b54e 58%, #43515c); }
input[type="range"]::-webkit-slider-thumb { appearance: none; width: 11px; height: 11px; margin-top: -4px; border: 2px solid #f0d47d; border-radius: 50%; background: #17212a; box-shadow: 0 0 0 3px rgba(232,189,82,.12); }
input[type="range"]::-moz-range-thumb { width: 8px; height: 8px; border: 2px solid #f0d47d; border-radius: 50%; background: #17212a; box-shadow: 0 0 0 3px rgba(232,189,82,.12); }
.range-ends { display: flex; justify-content: space-between; color: #697883; font-size: 7px; letter-spacing: .1em; margin-top: 3px; }
.compact-section { margin-top: 19px; }
.transport-card { margin-top: 20px; padding: 12px 12px 10px; border: 1px solid rgba(141,186,199,.17); border-radius: 7px; background: rgba(141,186,199,.035); }
.transport-head { display: flex; align-items: center; justify-content: space-between; color: #95a7b1; font-size: 8px; }
.transport-head strong { color: var(--cyan); font-size: 10px; letter-spacing: .04em; }
.transport-card p { color: #83939d; font-size: 9px; line-height: 1.45; margin: 7px 0 11px; }
.speed-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.speed-row label { color: #9baab3; font-size: 8px; }
.speed-row output { color: var(--gold-bright); font-size: 10px; font-weight: 700; }
.transport-controls { display: grid; grid-template-columns: 1.5fr 1fr 38px; gap: 7px; margin-top: 17px; }
.transport-controls button { height: 37px; border-radius: 5px; cursor: pointer; font-size: 9px; font-weight: 750; letter-spacing: .1em; }
.primary-control { display: flex; align-items: center; justify-content: center; gap: 10px; background: linear-gradient(135deg, #e7c35e, #c89b3d); color: #17170f; border: 1px solid #e5c363; box-shadow: 0 4px 18px rgba(205,158,62,.12); }
.primary-control:hover { filter: brightness(1.08); }
.primary-control span { font-size: 12px; }
.secondary-control { background: rgba(255,255,255,.025); color: #c0cbd0; border: 1px solid rgba(165,183,195,.19); }
.secondary-control:hover { border-color: rgba(232,189,82,.5); color: var(--gold-bright); }
.secondary-control span { font-size: 16px; vertical-align: -1px; }
.reset-control { font-size: 17px !important; }
.quality-row { display: flex; justify-content: space-between; align-items: center; color: #8f9ea8; font-size: 8px; margin-top: 15px; }
.segmented { display: flex; padding: 2px; border: 1px solid var(--line); border-radius: 5px; background: rgba(0,0,0,.12); }
.segmented button { border: 0; background: transparent; color: #77858e; padding: 4px 8px; border-radius: 3px; font-size: 7px; font-weight: 800; letter-spacing: .1em; cursor: pointer; }
.segmented button.selected { background: #293541; color: #e4c66d; }
.science-panel { margin-top: 18px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.science-panel summary { min-height: 43px; display: flex; align-items: center; justify-content: space-between; list-style: none; cursor: pointer; color: #d5dce0; font-size: 9px; font-weight: 800; letter-spacing: .12em; }
.science-panel summary::-webkit-details-marker { display: none; }
.science-panel summary i { display: inline-grid; place-items: center; width: 19px; height: 19px; margin-right: 8px; border-radius: 4px; background: rgba(232,189,82,.12); color: var(--gold); font-style: normal; font-size: 13px; }
.details-chevron { color: #82919a; font-size: 16px; transition: transform .2s; }
.science-panel[open] .details-chevron { transform: rotate(180deg); }
.science-content { padding: 0 0 14px; }
.science-callout { display: grid; grid-template-columns: 78px 1fr; gap: 8px; padding: 9px 0; border-top: 1px solid rgba(173,192,207,.08); }
.science-callout b { color: var(--gold); font-size: 8px; letter-spacing: .1em; }
.science-callout span { color: #a0adb5; font-size: 9px; line-height: 1.5; }
.equation-block { margin-top: 10px; padding: 10px; border: 1px solid rgba(141,186,199,.14); border-radius: 5px; background: rgba(141,186,199,.035); }
.equation-title { display: flex; justify-content: space-between; gap: 6px; color: #9db0b9; font-size: 7px; font-weight: 800; letter-spacing: .11em; }
.equation-title em { color: #7f929c; font-style: normal; font-size: 7px; }
.equation { margin-top: 9px; color: #e7d39b; font-family: Georgia, "Times New Roman", serif; font-size: 14px; text-align: center; letter-spacing: .01em; }
.equation-note { margin-top: 6px; color: #8e9da7; text-align: center; font-family: Georgia, "Times New Roman", serif; font-size: 11px; }
.variable-list { margin-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.variable-list div { display: grid; grid-template-columns: 28px 1fr; gap: 7px; align-items: baseline; }
.variable-list b { color: var(--gold-bright); font-family: Georgia, serif; font-size: 10px; }
.variable-list span { color: #8796a0; font-size: 8px; line-height: 1.4; }
.validation-card { margin-top: 14px; padding: 11px; border: 1px solid rgba(232,189,82,.22); border-radius: 6px; background: rgba(232,189,82,.035); }
.validation-title { display: flex; align-items: center; justify-content: space-between; color: #d0d8dc; font-size: 8px; }
.validation-title b { color: #e6c461; font-size: 7px; }
.validation-card p { color: #87959f; font-size: 8px; line-height: 1.45; margin: 7px 0 10px; }
.validation-values { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.validation-values span { display: block; color: #788892; font-size: 7px; }
.validation-values strong { display: block; margin-top: 4px; color: #dce4e6; font-size: 12px; font-weight: 550; font-variant-numeric: tabular-nums; }
.validation-footer { margin-top: 10px; padding-top: 8px; border-top: 1px solid rgba(232,189,82,.15); display: flex; justify-content: space-between; color: #8999a2; font-size: 7px; }
.validation-footer strong { color: #e7c968; font-size: 10px; }
.limitations { margin-top: 13px; }
.limitations b { color: #9ba9b2; font-size: 8px; }
.limitations p { color: #778690; font-size: 8px; line-height: 1.55; margin: 6px 0 0; }
.disclaimer { margin-top: 17px; color: #65747e; font-size: 7px; line-height: 1.5; letter-spacing: .05em; font-weight: 500; }
.panel-foot { display: flex; justify-content: space-between; margin-top: 17px; padding-top: 11px; border-top: 1px solid var(--line); color: #596873; font-size: 7px; }
.panel-foot span { color: #71818b; }
.embed-mode .topbar { height: 54px; flex-basis: 54px; }
.embed-mode .brand-copy .eyebrow, .embed-mode .top-kicker { display: none; }
.embed-mode .workspace { grid-template-columns: minmax(0,1fr) 330px; }
.embed-mode .scene-heading { top: 22px; }
@media (max-width: 1080px) {
  .workspace { grid-template-columns: minmax(0,1fr) 330px; }
  .panel-scroll { padding-left: 18px; padding-right: 18px; }
  .scene-heading { left: 28px; }
  .scene-bottom { padding-left: 28px; padding-right: 24px; }
  .scene-legend { left: 28px; }
  .readout strong { font-size: 15px; }
}
@media (max-width: 760px) {
  body { overflow: auto; }
  .app-shell { min-height: 100svh; }
  .topbar { height: 58px; flex-basis: 58px; padding: 0 14px; }
  .brand-lockup { width: auto; min-width: 115px; gap: 8px; }
  .brand-mark { width: 23px; height: 23px; }
  .brand-title { font-size: 9px; }
  .top-title { padding-left: 12px; margin-left: 12px; }
  .top-kicker { font-size: 7px; }
  .top-title strong { font-size: 11px; }
  .top-actions { gap: 9px; }
  .live-indicator { font-size: 7px; gap: 5px; }
  .icon-button { width: 25px; height: 25px; }
  .workspace { display: flex; flex-direction: column; min-height: 0; }
  .viewport-panel { height: 47svh; min-height: 340px; flex: 0 0 47svh; border-right: 0; border-bottom: 1px solid var(--line); }
  .scene-heading { top: 19px; left: 18px; max-width: 230px; }
  .scene-heading h1 { margin: 8px 0 5px; font-size: 27px; }
  .scene-heading p { font-size: 9px; max-width: 190px; }
  .scene-tags { top: 22px; right: 15px; gap: 7px; font-size: 7px; }
  .annotation { font-size: 6px; gap: 4px; }
  .annotation b { width: 15px; height: 15px; font-size: 7px; }
  .annotation i { width: 14px; }
  .scene-legend { display: none; }
  .scene-bottom { padding: 10px 13px 12px; }
  .scene-bottom-label { margin-bottom: 9px; font-size: 7px; }
  .readout-strip { grid-template-columns: repeat(4, minmax(0,1fr)); gap: 5px; }
  .readout { padding-left: 6px; }
  .readout span { font-size: 6px; white-space: normal; line-height: 1.25; min-height: 15px; }
  .readout strong { font-size: 13px; margin-top: 3px; }
  .readout small { font-size: 8px; }
  .viewport-footer { height: 34px; flex-basis: 34px; padding: 0 12px; }
  .footer-note { font-size: 6px; gap: 4px; }
  .keycap { font-size: 6px; padding: 2px 3px; }
  .footer-actions { gap: 10px; }
  .footer-button { font-size: 7px; }
  .mini-icon { font-size: 10px; margin-right: 2px; }
  .control-panel { overflow: visible; }
  .panel-scroll { overflow: visible; padding: 20px 16px 26px; }
  .panel-header h2 { font-size: 19px; }
  .panel-intro { max-width: 520px; }
  .preset-grid { gap: 7px; }
  .preset-button { min-height: 58px; padding: 7px; }
  .preset-button b { font-size: 9px; }
  .preset-button small { font-size: 7px; }
  .control-section { margin-top: 20px; }
  .slider-control { margin-top: 12px; }
  .transport-card { margin-top: 18px; }
  .science-panel { margin-top: 17px; }
  .embed-mode .viewport-panel { height: 48svh; flex-basis: 48svh; }
}
@media (max-width: 390px) {
  .topbar { padding: 0 10px; }
  .brand-lockup { min-width: 100px; }
  .top-title { margin-left: 8px; padding-left: 8px; }
  .top-title strong { font-size: 10px; }
  .live-indicator { display: none; }
  .scene-heading h1 { font-size: 24px; }
  .scene-tags { font-size: 6px; }
  .readout span { font-size: 5.7px; }
  .readout strong { font-size: 12px; }
  .footer-note { letter-spacing: .05em; }
  .footer-actions { gap: 7px; }
  .footer-button { font-size: 6px; }
  .preset-button { gap: 4px; padding: 6px 4px; }
  .preset-glyph { width: 16px; flex-basis: 16px; font-size: 14px; }
  .preset-button b { font-size: 8px; }
  .preset-button small { font-size: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
.context-lost[hidden] { display: none; }
