:root {
  color-scheme: dark;
  --bg: #06141d;
  --panel: #0b1c27;
  --panel-2: #102633;
  --line: rgba(163, 203, 213, .13);
  --line-strong: rgba(163, 203, 213, .24);
  --text: #e6f1f1;
  --muted: #88a3aa;
  --dim: #58727b;
  --cyan: #75e3df;
  --teal: #3bb9b8;
  --blue: #5f9fb5;
  --amber: #f0c27a;
  --radius: 10px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html, body { width: 100%; min-height: 100%; margin: 0; background: var(--bg); color: var(--text); }
body { overflow: hidden; }
button, input { font: inherit; }
button { color: inherit; }
.app-shell { height: 100dvh; min-height: 620px; display: flex; flex-direction: column; background: radial-gradient(ellipse at 30% -10%, #102b38 0%, transparent 46%), var(--bg); }
.topbar { height: 66px; flex: 0 0 66px; padding: 0 24px; display: flex; align-items: center; border-bottom: 1px solid var(--line); background: rgba(5, 17, 25, .9); position: relative; z-index: 5; }
.brand { display: flex; gap: 11px; align-items: center; text-decoration: none; color: var(--text); width: 245px; flex-shrink: 0; }
.brand-mark { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; gap: 2px; border: 1px solid rgba(117,227,223,.5); border-radius: 8px; transform: rotate(-12deg); }
.brand-mark span { width: 3px; border-radius: 5px; background: var(--cyan); display: block; transform: skew(-20deg); }
.brand-mark span:nth-child(1) { height: 8px; opacity: .55; }.brand-mark span:nth-child(2) { height: 16px; }.brand-mark span:nth-child(3) { height: 11px; opacity: .75; }
.brand-copy { display: flex; flex-direction: column; gap: 3px; }.brand-copy strong { font-size: 12px; letter-spacing: .16em; }.brand-copy strong span { color: var(--cyan); }.brand-copy small { color: var(--dim); font-size: 8px; letter-spacing: .14em; }
.topbar-title { display: flex; flex-direction: column; gap: 3px; padding-left: 28px; border-left: 1px solid var(--line); }.eyebrow { color: var(--dim); font-size: 9px; letter-spacing: .17em; font-weight: 700; }.topbar-name { font-family: Georgia, serif; font-size: 16px; color: #d8e7e8; }
.topbar-meta { margin-left: auto; display: flex; align-items: center; gap: 9px; color: #8ba4aa; font-size: 9px; letter-spacing: .13em; }.live-dot { width: 6px; height: 6px; border-radius: 50%; background: #72d8b7; box-shadow: 0 0 10px rgba(114,216,183,.7); }.meta-divider { height: 14px; width: 1px; background: var(--line-strong); margin: 0 4px; }
.workspace { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 352px; }
.stage-panel { min-width: 0; min-height: 0; display: flex; flex-direction: column; border-right: 1px solid var(--line); }
.viewport { flex: 1; min-height: 0; position: relative; overflow: hidden; isolation: isolate; background: radial-gradient(ellipse at 48% 43%, #0c3341 0%, #071e2a 52%, #06131c 100%); }
#scene-canvas { display: block; width: 100%; height: 100%; outline: none; }
.scene-kicker { position: absolute; z-index: 2; top: 20px; left: 22px; display: flex; align-items: center; gap: 9px; font-size: 9px; font-weight: 700; letter-spacing: .17em; color: rgba(210,236,237,.8); pointer-events: none; }.kicker-icon { font-size: 20px; color: var(--cyan); font-family: Georgia,serif; line-height: 10px; }.kicker-sep { color: var(--dim); }
.scene-tools { position: absolute; top: 15px; right: 18px; z-index: 3; display: flex; align-items: center; gap: 7px; }.scene-state { color: #b8d1d2; font-size: 9px; letter-spacing: .14em; padding: 8px 10px; border: 1px solid rgba(159,211,213,.2); background: rgba(4,18,26,.55); border-radius: 5px; display: inline-flex; align-items: center; gap: 7px; }.scene-state i { width: 5px; height: 5px; background: var(--amber); border-radius: 50%; }.scene-state.playing i { background: #70e0b7; box-shadow: 0 0 8px #70e0b7; }
.icon-button { width: 31px; height: 31px; display: grid; place-items: center; border: 1px solid rgba(159,211,213,.2); border-radius: 5px; background: rgba(4,18,26,.55); cursor: pointer; color: #a7c5c8; transition: background .2s,border-color .2s,color .2s; }.icon-button:hover { background: rgba(41,107,118,.4); border-color: rgba(117,227,223,.5); color: white; }.icon-button svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.annotation-layer { position: absolute; inset: 0; pointer-events: none; z-index: 2; overflow: hidden; }.scene-label { position: absolute; transform: translate(-50%,-50%); display: flex; flex-direction: column; gap: 3px; min-width: 112px; padding: 7px 9px; background: rgba(5,20,28,.72); border: 1px solid rgba(114,204,206,.22); border-radius: 4px; backdrop-filter: blur(6px); opacity: 0; transition: opacity .25s; }.scene-label.visible { opacity: 1; }.scene-label b { font-size: 8px; letter-spacing: .12em; color: #d9f3ef; white-space: nowrap; }.scene-label small { font-size: 7px; color: #76b6bb; letter-spacing: .11em; }.label-line { position: absolute; height: 1px; width: 18px; left: -18px; top: 50%; background: rgba(117,227,223,.6); }
.scene-legend { position: absolute; z-index: 2; left: 20px; bottom: 147px; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }.scene-legend div { display: flex; gap: 8px; align-items: center; color: rgba(189,218,220,.72); font-size: 8px; letter-spacing: .12em; }.legend-swatch { width: 15px; height: 2px; display: inline-block; }.legend-swatch.wind { background: #f2d49a; }.legend-swatch.roll { background: #4fd2ce; box-shadow: 0 0 7px rgba(79,210,206,.5); }.legend-swatch.foam { background: #e9ffff; }
.scene-caption { position: absolute; z-index: 2; left: 20px; right: 20px; bottom: 119px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: rgba(175,207,209,.72); font-size: 8px; letter-spacing: .05em; pointer-events: none; }.scene-caption strong { color: #83d9d4; font-size: 8px; letter-spacing: .12em; margin-right: 5px; }.scene-caption i { font-style: normal; color: #69b8ba; }
.readout-dock { position: absolute; z-index: 2; bottom: 0; left: 0; right: 0; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); border-top: 1px solid rgba(163,203,213,.17); background: linear-gradient(90deg,rgba(5,20,29,.94),rgba(8,28,38,.88)); backdrop-filter: blur(12px); }.readout { min-width: 0; padding: 13px 15px 12px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 5px; }.readout:last-child { border-right: 0; }.readout-label { font-size: 8px; letter-spacing: .12em; color: #8ba8ae; white-space: nowrap; }.readout-label em { font-size: 6px; font-style: normal; color: #5a8d91; border: 1px solid rgba(90,141,145,.35); padding: 2px 3px; margin-left: 3px; vertical-align: 1px; }.readout strong { font-family: Georgia,serif; font-size: 22px; font-weight: 400; color: #e4f3ef; line-height: 1.1; }.readout strong small { font-family: Inter,system-ui,sans-serif; font-size: 9px; color: #8ab9bd; }.readout-note { font-size: 8px; color: #63818a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stage-footer { height: 28px; flex: 0 0 28px; display: flex; justify-content: space-between; align-items: center; padding: 0 16px; color: #67838a; background: #071720; font-size: 8px; letter-spacing: .11em; }.stage-footer kbd { border: 1px solid rgba(133,179,184,.22); border-radius: 3px; padding: 2px 4px; margin-right: 3px; color: #9bbabe; font: inherit; }.stage-footer b { color: #a8d3d2; font-weight: 600; }.stage-footer-sep { margin: 0 7px; color: #3d626d; }
.control-panel { min-width: 0; overflow-y: auto; overscroll-behavior: contain; padding: 20px 20px 12px; background: linear-gradient(160deg,rgba(13,33,44,.97),rgba(8,23,32,.99)); scrollbar-width: thin; scrollbar-color: #294b58 transparent; }.panel-header { display: flex; justify-content: space-between; align-items: flex-start; }.panel-header h1 { margin: 8px 0 0; font-family: Georgia,serif; font-size: 27px; line-height: .99; font-weight: 400; letter-spacing: -.04em; color: #e7f2ef; }.panel-header h1 i { color: #85d9d3; font-weight: 400; }.panel-number { font-family: Georgia,serif; font-size: 42px; line-height: 1; color: rgba(117,227,223,.17); }.intro-copy { color: #89a4aa; font-size: 10px; line-height: 1.55; margin: 12px 0 17px; max-width: 290px; }
.section-heading { display: flex; justify-content: space-between; align-items: center; color: #93afb3; font-size: 8px; letter-spacing: .15em; font-weight: 700; padding-bottom: 8px; border-bottom: 1px solid var(--line); }.tiny-index { color: #55717a; font-size: 7px; letter-spacing: .1em; font-weight: 500; }
.preset-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px; padding: 9px 0 17px; }.preset-button { min-width: 0; padding: 8px 7px; display: flex; align-items: center; gap: 7px; text-align: left; border: 1px solid rgba(141,184,189,.13); background: rgba(6,20,29,.48); border-radius: 6px; cursor: pointer; transition: .2s; }.preset-button:hover { border-color: rgba(117,227,223,.4); background: rgba(29,72,81,.32); }.preset-button.active { border-color: rgba(117,227,223,.52); background: rgba(35,103,106,.22); box-shadow: inset 0 0 0 1px rgba(117,227,223,.08); }.preset-button span:last-child { min-width: 0; display: flex; flex-direction: column; gap: 3px; }.preset-button b { font-size: 9px; font-weight: 650; color: #d5e9e7; }.preset-button small { font-size: 7px; color: #6e8b92; white-space: nowrap; }.preset-glyph { width: 23px; height: 23px; flex: 0 0 23px; display: grid; place-items: center; border-radius: 5px; font-family: Georgia,serif; font-size: 17px; color: #7de0d7; background: rgba(76,166,169,.12); }.storm-glyph { color: #e2b97f; background: rgba(188,139,81,.12); }.calm-glyph { color: #83b5d2; background: rgba(83,145,176,.12); }
.controls-heading { margin-top: 0; }.control-list { display: flex; flex-direction: column; gap: 11px; padding: 12px 0 15px; }.control-row { display: flex; flex-direction: column; gap: 6px; cursor: pointer; }.control-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; color: #c0d5d5; font-size: 9px; }.control-top output { color: #8de0d9; font-size: 9px; font-variant-numeric: tabular-nums; }.control-top output small { color: #71989e; font-size: 8px; }.control-row input[type=range] { width: 100%; height: 3px; margin: 2px 0; border-radius: 5px; appearance: none; -webkit-appearance: none; background: linear-gradient(90deg,#5fcac5 0%,#327d87 45%,#25424e 45%,#25424e 100%); outline: none; cursor: pointer; }.control-row input[type=range]::-webkit-slider-thumb { appearance: none; -webkit-appearance: none; width: 11px; height: 11px; border: 2px solid #c9fffa; border-radius: 50%; background: #3ba9a9; box-shadow: 0 0 0 3px rgba(85,205,197,.12); }.control-row input[type=range]::-moz-range-thumb { width: 8px; height: 8px; border: 2px solid #c9fffa; border-radius: 50%; background: #3ba9a9; box-shadow: 0 0 0 3px rgba(85,205,197,.12); }.range-ends { display: flex; justify-content: space-between; color: #49666f; font-size: 6px; letter-spacing: .1em; }
.playback-section { border-top: 1px solid var(--line); padding-top: 13px; }.transport-row { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 6px; padding: 10px 0 13px; }.transport-button { height: 34px; display: flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid rgba(138,183,188,.19); border-radius: 5px; background: rgba(5,18,26,.56); color: #a9c3c6; font-size: 8px; letter-spacing: .12em; cursor: pointer; transition: .2s; }.transport-button:hover { border-color: rgba(117,227,223,.5); color: #e8ffff; }.transport-button.primary { color: #05232a; background: #79d8d1; border-color: #79d8d1; font-weight: 800; }.transport-button.primary:hover { background: #9aeee7; }.transport-button svg { width: 13px; height: 13px; fill: currentColor; stroke: currentColor; stroke-width: 1.3; stroke-linejoin: round; }.transport-button:not(.primary) svg { fill: none; }.speed-control { padding-bottom: 14px; }
.utility-row { display: flex; justify-content: space-between; align-items: end; padding: 12px 0 13px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }.utility-label { display: block; color: #66848b; font-size: 7px; letter-spacing: .13em; margin-bottom: 6px; }.segmented { display: inline-flex; border: 1px solid rgba(138,183,188,.17); border-radius: 4px; padding: 2px; gap: 2px; }.segmented button { border: 0; background: transparent; color: #6f8d93; font-size: 7px; letter-spacing: .12em; padding: 5px 9px; border-radius: 3px; cursor: pointer; }.segmented button.selected { background: rgba(80,167,166,.23); color: #a9e8e2; }.utility-button { height: 27px; border: 1px solid rgba(138,183,188,.17); border-radius: 4px; background: transparent; color: #88a6ab; font-size: 7px; letter-spacing: .1em; padding: 0 8px; display: flex; align-items: center; gap: 5px; cursor: pointer; }.utility-button:hover { color: #d4f5f2; border-color: rgba(117,227,223,.4); }.utility-button svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
.science-panel { border-bottom: 1px solid var(--line); }.science-panel summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 9px; padding: 12px 0; }.science-panel summary::-webkit-details-marker { display: none; }.science-icon { width: 24px; height: 24px; display: grid; place-items: center; color: #8ee0d9; background: rgba(65,157,159,.13); border: 1px solid rgba(65,157,159,.2); border-radius: 5px; font-family: Georgia,serif; font-size: 15px; }.science-panel summary b { display: block; font-family: Georgia,serif; font-size: 13px; font-weight: 400; color: #d6e9e7; }.science-panel summary small { display: block; color: #68878d; font-size: 7px; margin-top: 3px; letter-spacing: .04em; }.chevron { margin-left: auto; color: #80b4b4; font-size: 16px; transition: transform .2s; }.science-panel[open] .chevron { transform: rotate(180deg); }.science-content { padding: 0 0 12px 33px; }.science-block { margin: 0 0 12px; }.science-kicker { color: #67a5a7; font-size: 7px; letter-spacing: .13em; font-weight: 700; }.science-block p { color: #91aaad; font-size: 9px; line-height: 1.5; margin: 5px 0; }.science-block code,.validation-card code { display: block; margin-top: 5px; color: #c2e5e1; font: 9px ui-monospace,SFMono-Regular,Consolas,monospace; background: rgba(4,16,24,.55); border-left: 2px solid rgba(103,194,190,.5); padding: 6px 7px; overflow-wrap: anywhere; }.validation-card { border: 1px solid rgba(117,227,223,.2); background: rgba(27,72,76,.12); border-radius: 5px; padding: 9px; margin: 12px 0; }.validation-head { display: flex; justify-content: space-between; color: #b8d7d4; font-size: 8px; letter-spacing: .1em; }.validation-head span { color: #7bd4c8; font-size: 7px; border: 1px solid rgba(123,212,200,.3); padding: 2px 4px; border-radius: 3px; }.validation-card p { color: #8aa7aa; font-size: 8px; line-height: 1.5; margin: 7px 0; }.validation-card p code { display: inline; padding: 0; margin: 0; background: none; border: 0; color: #c4e6df; }.validation-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 4px; }.validation-grid div { display: flex; flex-direction: column; gap: 4px; }.validation-grid small { color: #5d8387; font-size: 6px; letter-spacing: .12em; }.validation-grid strong { color: #d0e8e3; font-size: 8px; font-variant-numeric: tabular-nums; }.limits ul { margin: 6px 0 0; padding-left: 14px; color: #7f9a9f; font-size: 8px; line-height: 1.55; }.limits li { margin: 3px 0; }.panel-bottom { display: flex; justify-content: space-between; padding: 11px 0 2px; color: #58767d; font-size: 7px; letter-spacing: .11em; }.panel-bottom b { color: #83c9c3; font-weight: 600; margin-left: 4px; }
.footer { height: 24px; flex: 0 0 24px; padding: 0 18px; display: flex; justify-content: space-between; align-items: center; color: #4f6d75; background: #06131b; border-top: 1px solid var(--line); font-size: 7px; letter-spacing: .14em; }.footer-accent { color: #6dbfbb; }
.webgl-fallback { position: absolute; inset: 0; display: grid; place-items: center; z-index: 4; background: rgba(3,15,22,.62); backdrop-filter: blur(4px); }.webgl-fallback[hidden],.context-loss[hidden],.loading-indicator[hidden] { display: none; }.fallback-card { width: min(360px,calc(100% - 36px)); padding: 24px; text-align: center; background: rgba(8,28,39,.95); border: 1px solid rgba(117,227,223,.22); border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.3); }.fallback-icon { color: #7bdcd5; font-size: 27px; }.fallback-card strong { display: block; margin-top: 8px; font-family: Georgia,serif; font-size: 18px; font-weight: 400; }.fallback-card p { color: #8da9ad; font-size: 10px; line-height: 1.6; }.fallback-card small { color: #5f858d; font-size: 8px; }.context-loss { position: absolute; z-index: 5; top: 60px; left: 50%; transform: translateX(-50%); background: #513b24; color: #ffdda7; padding: 9px 12px; border-radius: 4px; font-size: 9px; }.loading-indicator { position: absolute; z-index: 3; top: 50%; left: 50%; transform: translate(-50%,-50%); color: rgba(166,214,214,.7); font-size: 8px; letter-spacing: .15em; display: flex; align-items: center; gap: 8px; pointer-events: none; }.loading-indicator span { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); animation: pulse 1.2s ease-in-out infinite; }@keyframes pulse{50%{opacity:.25;transform:scale(.7)}}
button:focus-visible,input:focus-visible,summary:focus-visible { outline: 2px solid #85e7df; outline-offset: 3px; }
@media (max-width: 1080px) { .workspace { grid-template-columns: minmax(0,1fr) 325px; }.control-panel { padding-left: 16px; padding-right: 16px; }.readout { padding-left: 10px; padding-right: 8px; }.readout-label { font-size: 7px; }.readout strong { font-size: 19px; } }
@media (max-width: 760px) {
  body { overflow: auto; }.app-shell { height: 100dvh; min-height: 0; overflow: hidden; }.topbar { height: 54px; flex-basis: 54px; padding: 0 13px; }.brand { width: auto; }.brand-mark { width: 25px; height: 25px; }.brand-copy strong { font-size: 10px; }.brand-copy small { font-size: 7px; }.topbar-title { margin-left: auto; padding-left: 12px; border-left: 0; text-align: right; }.topbar-title .eyebrow { font-size: 6px; }.topbar-name { font-size: 13px; }.topbar-meta { display: none; }
  .workspace { display: flex; flex-direction: column; min-height: 0; overflow: hidden; }.stage-panel { flex: 0 0 45%; min-height: 300px; border-right: 0; border-bottom: 1px solid var(--line); }.viewport { min-height: 0; }.scene-kicker { top: 12px; left: 12px; font-size: 7px; gap: 6px; }.scene-tools { top: 8px; right: 9px; gap: 4px; }.scene-state { font-size: 7px; padding: 6px 7px; }.icon-button { width: 27px; height: 27px; }.scene-legend { left: 12px; bottom: 106px; gap: 5px; }.scene-legend div { font-size: 6px; }.scene-caption { left: 12px; right: 12px; bottom: 88px; gap: 5px; font-size: 6px; }.scene-caption strong { font-size: 6px; }.readout-dock { grid-template-columns: repeat(4,minmax(0,1fr)); }.readout { padding: 8px 5px 7px; gap: 3px; }.readout-label { font-size: 5px; letter-spacing: .06em; white-space: normal; line-height: 1.25; min-height: 14px; }.readout-label em { font-size: 5px; padding: 1px 2px; margin-left: 1px; }.readout strong { font-size: 15px; }.readout strong small { font-size: 7px; }.readout-note { font-size: 6px; white-space: normal; line-height: 1.2; min-height: 14px; }.stage-footer { height: 22px; flex-basis: 22px; padding: 0 9px; font-size: 6px; }.stage-footer kbd { padding: 1px 3px; }.stage-footer span:first-child { white-space: nowrap; }.stage-footer span:last-child { white-space: nowrap; }
  .control-panel { flex: 1 1 auto; min-height: 0; padding: 14px 15px 10px; }.panel-header h1 { font-size: 24px; }.panel-number { font-size: 35px; }.intro-copy { font-size: 9px; margin: 9px 0 13px; max-width: 100%; }.preset-grid { padding-bottom: 13px; }.control-list { gap: 10px; padding-top: 10px; }.control-row { gap: 5px; }.control-top { font-size: 9px; }.range-ends { font-size: 6px; }.footer { display: none; }
}
@media (max-width: 390px) { .topbar-title .eyebrow { display: none; }.topbar-name { font-size: 12px; }.stage-panel { flex-basis: 43%; min-height: 290px; }.scene-caption { bottom: 91px; }.scene-legend { bottom: 109px; }.readout strong { font-size: 14px; }.readout-note { font-size: 5.5px; } }
@media (prefers-reduced-motion: reduce) { *,*::before,*::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
.embed .topbar,.embed .footer { display: none; }.embed .workspace { height: 100dvh; }.embed .control-panel { padding-top: 12px; }
