:root {
  color-scheme: dark;
  --bg: #0b1217;
  --panel: rgba(15, 24, 30, 0.92);
  --panel-solid: #101a20;
  --line: rgba(188, 207, 214, 0.12);
  --line-strong: rgba(188, 207, 214, 0.2);
  --text: #e6ecec;
  --muted: #91a1a6;
  --dim: #627178;
  --amber: #e6ae70;
  --teal: #81c5bd;
  --sand: #c5b28e;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; margin: 0; overflow: hidden; background: var(--bg); color: var(--text); font-family: var(--font); }
button, input { font: inherit; }
button { color: inherit; }
.app-shell { height: 100%; display: grid; grid-template-rows: 66px minmax(0, 1fr) 25px; background: radial-gradient(ellipse at 55% 42%, #17242a 0%, #0b1217 68%); }
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 0 22px; border-bottom: 1px solid var(--line); background: rgba(8, 14, 18, 0.86); z-index: 10; }
.brand-lockup { display: flex; align-items: center; gap: 13px; min-width: 0; }
.brand-mark { width: 34px; height: 34px; border: 1px solid rgba(230,174,112,.45); border-radius: 10px; position: relative; display: flex; align-items: end; justify-content: center; gap: 2px; padding: 7px 7px 6px; transform: rotate(-4deg); }
.brand-mark span { display: block; width: 5px; border-radius: 5px 5px 2px 2px; background: var(--amber); transform: skew(-13deg); }
.brand-mark span:nth-child(1) { height: 9px; opacity: .6; }.brand-mark span:nth-child(2) { height: 17px; }.brand-mark span:nth-child(3) { height: 12px; opacity: .78; }
.eyebrow { font-size: 9px; font-weight: 750; letter-spacing: .17em; color: #829198; line-height: 1.4; }
h1 { font-size: 17px; line-height: 1.25; font-weight: 640; letter-spacing: -.035em; margin: 2px 0 0; white-space: nowrap; }
h1 span { color: #a3b0b3; font-weight: 430; }
.topbar-right { display: flex; align-items: center; gap: 18px; }
.live-pill { display: flex; align-items: center; gap: 8px; color: #9acfc2; border: 1px solid rgba(129,197,189,.2); background: rgba(65,122,112,.12); border-radius: 20px; padding: 6px 10px; font-size: 9px; font-weight: 750; letter-spacing: .12em; }
.live-pill i, .pulse-dot { display: block; width: 6px; height: 6px; border-radius: 50%; background: #82d0ac; box-shadow: 0 0 10px rgba(130,208,172,.65); }
.seed-label { font-size: 9px; color: #75858c; letter-spacing: .12em; }.seed-label strong { color: #bdc9c9; font-weight: 650; margin-left: 5px; }
.icon-button { width: 32px; height: 32px; border: 1px solid var(--line); background: rgba(255,255,255,.025); border-radius: 9px; display: grid; place-items: center; cursor: pointer; color: #9baeb2; transition: .2s; }
.icon-button:hover { border-color: rgba(230,174,112,.55); color: var(--amber); }.icon-button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.workspace { min-height: 0; position: relative; overflow: hidden; }
.stage { position: absolute; inset: 0; overflow: hidden; background: linear-gradient(180deg,#142027,#1c292d); }
#simCanvas { width: 100%; height: 100%; display: block; outline: none; touch-action: none; }
.stage-vignette { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(6,12,15,.25), transparent 36%, transparent 70%, rgba(6,12,15,.18)), linear-gradient(0deg, rgba(6,12,15,.38), transparent 34%, rgba(6,12,15,.12)); }
.panel { background: var(--panel); border: 1px solid var(--line-strong); border-radius: 14px; box-shadow: 0 18px 50px rgba(0,0,0,.32), inset 0 1px rgba(255,255,255,.025); backdrop-filter: blur(18px); }
.control-panel { position: absolute; top: 17px; bottom: 72px; left: 17px; width: 302px; overflow: auto; z-index: 4; padding: 17px 17px 14px; scrollbar-width: thin; scrollbar-color: #435158 transparent; }
.panel-heading { display: flex; align-items: start; justify-content: space-between; margin-bottom: 14px; }
.panel-heading h2 { font-size: 16px; font-weight: 620; letter-spacing: -.025em; margin: 4px 0 0; }
.panel-index { font-size: 9px; color: #6d7d83; letter-spacing: .12em; padding-top: 4px; }
.preset-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 18px; }
.preset-button { border: 1px solid var(--line); background: rgba(255,255,255,.025); border-radius: 8px; min-height: 53px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; color: #9aa9ac; font-size: 9px; cursor: pointer; transition: .18s ease; }
.preset-button:hover { border-color: rgba(230,174,112,.4); color: #e4e9e8; }.preset-button.active { border-color: rgba(230,174,112,.5); background: rgba(230,174,112,.09); color: #f0c18d; }
.preset-glyph { width: 20px; height: 9px; border-radius: 50%; display: block; position: relative; border: 1px solid currentColor; opacity: .9; }
.wet-glyph { color: #7bc2b7; background: linear-gradient(90deg,transparent,#7bc2b7); }.dense-glyph { color: #c3a27c; background: repeating-linear-gradient(135deg,transparent 0 3px,#c3a27c 3px 5px); }.plug-glyph { color: #c7c0ad; border-radius: 3px; background: #c7c0ad; opacity: .75; }
.control-list { display: flex; flex-direction: column; gap: 14px; }
.control-item { min-width: 0; }
.control-label { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 7px; gap: 8px; }
.control-label label { font-size: 11px; color: #c8d2d1; font-weight: 550; }
.control-label output { font-size: 10px; color: #e8b87f; font-weight: 650; font-variant-numeric: tabular-nums; }
input[type="range"] { appearance: none; width: 100%; height: 4px; border-radius: 10px; outline: none; background: linear-gradient(90deg, #bd956b, #4b615e); cursor: pointer; display: block; }
input[type="range"]::-webkit-slider-thumb { appearance: none; width: 12px; height: 12px; border-radius: 50%; background: #e7bd8b; border: 2px solid #172127; box-shadow: 0 0 0 1px rgba(230,174,112,.65), 0 2px 5px #000; }
input[type="range"]::-moz-range-thumb { width: 10px; height: 10px; border-radius: 50%; background: #e7bd8b; border: 2px solid #172127; box-shadow: 0 0 0 1px rgba(230,174,112,.65); }
.range-hints { display: flex; justify-content: space-between; margin-top: 6px; font-size: 8px; color: #65747a; letter-spacing: .015em; }
.panel-footnote { display: flex; gap: 8px; align-items: start; border-top: 1px solid var(--line); padding: 12px 0 9px; margin-top: 16px; color: #849398; font-size: 9px; line-height: 1.5; }
.info-mark { width: 13px; height: 13px; border: 1px solid #718187; color: #9caeb2; border-radius: 50%; display: inline-grid; place-items: center; flex: 0 0 auto; font-size: 8px; font-weight: 700; }
.science-details { border-top: 1px solid var(--line); padding-top: 10px; }
.science-details summary { list-style: none; display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 10px; font-weight: 650; color: #c5d0d0; }
.science-details summary::-webkit-details-marker { display: none; }.science-icon { width: 17px; height: 17px; display: grid; place-items: center; color: var(--teal); background: rgba(129,197,189,.1); border-radius: 5px; font-size: 11px; }
.summary-tag { margin-left: auto; color: #6e7d82; font-size: 8px; letter-spacing: .1em; font-weight: 600; }
.science-content { padding: 12px 0 4px; font-size: 9px; line-height: 1.6; color: #a3b1b3; }
.science-content h3 { margin: 12px 0 4px; color: #d1d9d7; font-size: 10px; font-weight: 650; }.science-content p { margin: 4px 0 8px; }.science-content ul { padding-left: 15px; margin: 5px 0 9px; }.science-content li { margin: 3px 0; }
.equation { background: rgba(2,8,11,.35); border: 1px solid rgba(188,207,214,.1); border-radius: 6px; padding: 7px 8px; color: #e6c69f; font-family: Georgia, serif; font-size: 11px; line-height: 1.6; overflow-wrap: anywhere; margin: 6px 0; }
.validation-card { margin: 10px 0; border: 1px solid rgba(129,197,189,.2); background: rgba(63,119,111,.08); border-radius: 8px; padding: 9px; }
.validation-head { display: flex; justify-content: space-between; color: #8abeb4; font-size: 8px; font-weight: 750; letter-spacing: .12em; }.check-ok { color: #b2d7c3; }
.validation-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 5px; margin: 10px 0 6px; }.validation-grid div { display: flex; flex-direction: column; gap: 2px; }.validation-grid small { color: #7c9693; font-size: 7px; letter-spacing: .08em; }.validation-grid b { color: #e2e9e5; font-size: 11px; font-variant-numeric: tabular-nums; }.validation-card p { color: #829b98; font-size: 8px; margin: 5px 0 0; }.model-warning { border-top: 1px solid var(--line); padding-top: 8px; color: #7c8c91; font-style: italic; }
.readout-panel { position: absolute; top: 18px; right: 18px; width: 242px; z-index: 3; background: rgba(13,22,27,.78); border: 1px solid var(--line); border-radius: 12px; padding: 12px; backdrop-filter: blur(15px); box-shadow: 0 10px 35px rgba(0,0,0,.2); }
.readout-head { display: flex; justify-content: space-between; align-items: center; padding: 0 1px 10px; border-bottom: 1px solid var(--line); }.readout-head .eyebrow { font-size: 8px; }.pulse-dot { width: 5px; height: 5px; }
.readout-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.readout-card { min-height: 74px; padding: 11px 7px 8px 1px; display: flex; flex-direction: column; gap: 4px; border-bottom: 1px solid var(--line); }.readout-card:nth-child(odd) { border-right: 1px solid var(--line); }.readout-card:nth-child(even) { padding-left: 10px; }.readout-card:nth-child(n+3) { border-bottom: 0; padding-top: 10px; }
.readout-card span { color: #8fa0a3; font-size: 9px; }.readout-card strong { color: #e6ece9; font-size: 19px; letter-spacing: -.045em; font-weight: 600; font-variant-numeric: tabular-nums; }.readout-card small { color: #77878b; font-size: 8px; }.readout-card em { color: #71847e; font-style: normal; font-size: 7px; letter-spacing: .07em; }
.readout-bottom { display: flex; align-items: center; gap: 7px; border-top: 1px solid var(--line); padding-top: 9px; margin-top: 2px; color: #73848a; font-size: 7px; letter-spacing: .1em; }.readout-bottom strong { color: #b9c5c4; font-size: 9px; font-weight: 650; letter-spacing: 0; font-variant-numeric: tabular-nums; }.readout-divider { width: 1px; height: 10px; background: var(--line-strong); margin: 0 2px; }
.scene-label { position: absolute; z-index: 2; pointer-events: none; display: flex; flex-direction: column; gap: 3px; padding-left: 12px; text-shadow: 0 2px 8px rgba(0,0,0,.8); }.scene-label b { font-size: 8px; letter-spacing: .14em; color: #dce4df; font-weight: 750; }.scene-label small { font-size: 8px; color: #9caeaa; }.label-dot { position: absolute; left: 0; top: 2px; width: 6px; height: 6px; border-radius: 50%; box-shadow: 0 0 10px currentColor; }.label-dot.amber { color: #e9b276; background: #e9b276; }.label-dot.teal { color: #80c5b9; background: #80c5b9; }.label-dot.sand { color: #c9b78f; background: #c9b78f; }
.label-source { left: 35%; top: 19%; }.label-channel { left: 55%; top: 51%; }.label-fan { right: 25%; bottom: 24%; }
.orientation-chip { position: absolute; bottom: 17px; right: 20px; z-index: 2; color: #819197; font-size: 8px; letter-spacing: .12em; text-shadow: 0 2px 8px #000; }.north-arrow { color: var(--amber); font-size: 12px; margin-right: 5px; }.orientation-sep { color: #56666c; padding: 0 5px; }
.context-banner { position: absolute; z-index: 8; left: 50%; top: 16px; transform: translateX(-50%); border: 1px solid rgba(230,174,112,.35); background: rgba(36,28,20,.94); color: #f0c28e; border-radius: 8px; padding: 9px 14px; font-size: 10px; box-shadow: 0 8px 25px rgba(0,0,0,.3); }
.webgl-error { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; z-index: 20; background: rgba(8,14,18,.95); text-align: center; padding: 30px; }.webgl-error strong { font-size: 18px; }.webgl-error span { color: var(--muted); font-size: 12px; max-width: 360px; line-height: 1.6; }
.transport-bar { position: absolute; left: 17px; right: 17px; bottom: 9px; height: 51px; z-index: 6; border: 1px solid var(--line-strong); border-radius: 12px; background: rgba(12,20,25,.91); backdrop-filter: blur(18px); box-shadow: 0 12px 38px rgba(0,0,0,.28); display: flex; align-items: center; padding: 0 10px; gap: 16px; }
.transport-left, .transport-right { display: flex; align-items: center; gap: 6px; }.transport-left { min-width: 260px; }.transport-right { margin-left: auto; }
.transport-button { border: 1px solid transparent; background: transparent; color: #9caaad; border-radius: 7px; height: 32px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; font-size: 9px; font-weight: 600; cursor: pointer; transition: .16s ease; white-space: nowrap; }.transport-button:hover { color: #e5ece8; background: rgba(255,255,255,.055); border-color: var(--line); }.transport-button.primary { background: #d9a974; color: #172027; padding: 0 14px; border-color: rgba(255,255,255,.1); }.transport-button.primary:hover { background: #efc18b; }.play-icon { font-size: 11px; font-weight: 800; }.step-icon { font-size: 18px; line-height: 1; }.reset-icon { font-size: 16px; }.quality-icon, .camera-icon { font-size: 14px; color: #9eb2b2; }
.time-control { width: min(340px, 34vw); display: flex; flex-direction: column; gap: 7px; }.time-control-label { display: flex; justify-content: space-between; align-items: center; }.time-control-label label { color: #74858a; font-size: 7px; font-weight: 750; letter-spacing: .15em; }.time-control-label output { color: #dcb181; font-size: 9px; font-weight: 650; }
.footer-note { display: flex; align-items: center; justify-content: space-between; padding: 0 20px; color: #56666d; font-size: 7px; letter-spacing: .12em; background: #0a1115; }.footer-note b { color: #8ab7a9; font-weight: 700; margin-left: 4px; }
.embed .app-shell { grid-template-rows: minmax(0,1fr) 0; }.embed .topbar, .embed .footer-note { display: none; }.embed .control-panel { top: 12px; }.embed .transport-bar { bottom: 10px; }
button:focus-visible, input:focus-visible, summary:focus-visible { outline: 2px solid #e8b982; outline-offset: 3px; }
@media (max-width: 900px) {
  .control-panel { width: 275px; left: 10px; top: 10px; bottom: 68px; padding: 14px; }
  .readout-panel { right: 10px; top: 10px; width: 220px; }
  .transport-bar { left: 10px; right: 10px; bottom: 7px; }
  .label-source { left: 43%; }.label-channel { left: 56%; }.label-fan { right: 18%; }
}
@media (max-width: 600px) {
  .app-shell { grid-template-rows: 54px minmax(0,1fr) 0; }
  .topbar { padding: 0 12px; }.brand-mark { width: 29px; height: 29px; border-radius: 8px; }.eyebrow { font-size: 7px; } h1 { font-size: 14px; } h1 span { display: none; }
  .topbar-right { gap: 8px; }.live-pill { padding: 5px 7px; font-size: 7px; }.seed-label { display: none; }.icon-button { width: 29px; height: 29px; }
  .workspace { overflow: hidden; }
  .control-panel { left: 8px; right: 8px; bottom: 65px; top: auto; width: auto; max-height: 31vh; min-height: 205px; border-radius: 12px; padding: 12px 13px 10px; }
  .panel-heading { margin-bottom: 9px; }.panel-heading h2 { font-size: 14px; }.panel-index { font-size: 8px; }
  .preset-row { margin-bottom: 12px; gap: 5px; }.preset-button { min-height: 40px; font-size: 8px; gap: 3px; }.preset-glyph { width: 16px; height: 7px; }
  .control-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 14px; row-gap: 11px; }.control-label { margin-bottom: 6px; }.control-label label { font-size: 9px; }.control-label output { font-size: 9px; }.range-hints { font-size: 7px; margin-top: 5px; }
  .panel-footnote { display: none; }.science-details { margin-top: 10px; padding-top: 8px; }.science-details summary { font-size: 9px; }
  .readout-panel { top: 8px; left: 8px; right: 8px; width: auto; padding: 8px 10px 7px; border-radius: 10px; }
  .readout-head { padding-bottom: 5px; }.readout-head .eyebrow { font-size: 7px; }
  .readout-grid { grid-template-columns: repeat(4,1fr); }.readout-card { min-height: 51px; padding: 7px 5px 5px 1px; gap: 2px; border-bottom: 0; border-right: 1px solid var(--line); }.readout-card:last-child { border-right: 0; }.readout-card:nth-child(even) { padding-left: 5px; }.readout-card:nth-child(n+3) { padding-top: 7px; }.readout-card span { font-size: 7px; line-height: 1.2; min-height: 16px; }.readout-card strong { font-size: 14px; }.readout-card small { font-size: 7px; }.readout-card em { display: none; }
  .readout-bottom { display: none; }
  .scene-label b { font-size: 7px; }.scene-label small { font-size: 7px; }.label-source { left: 7%; top: 20%; }.label-channel { left: 64%; top: 44%; }.label-fan { right: 7%; bottom: 43%; }
  .orientation-chip { display: none; }
  .transport-bar { left: 8px; right: 8px; bottom: 7px; height: 50px; padding: 0 6px; gap: 6px; border-radius: 10px; }.transport-left { min-width: 0; gap: 2px; }.transport-button { height: 31px; padding: 0 7px; gap: 4px; font-size: 8px; }.transport-button.primary { padding: 0 9px; }.transport-right { gap: 1px; }.transport-right .transport-button { padding: 0 6px; }.time-control { width: auto; flex: 1; min-width: 62px; gap: 6px; }.time-control-label label { font-size: 6px; }.time-control-label output { font-size: 8px; }
  .footer-note { display: none; }
}
@media (max-width: 380px) {
  .control-panel { max-height: 33vh; }.control-list { column-gap: 9px; }.transport-button span:not(.play-icon):not(.reset-icon):not(.step-icon):not(.quality-icon):not(.camera-icon) { display: none; }.transport-left { gap: 3px; }.transport-button { padding: 0 8px; }.transport-button.primary { padding: 0 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

[hidden]{display:none!important}
