:root{--bg:#f6f6f4;--surface:#fff;--text:#1b1c1e;--muted:#6b6d72;--line:#dcdcd8;--line-strong:#b9b9b4;--active:#1b1c1e;--active-text:#fff;--series-1:#2563a8;--series-2:#c2412d;--series-3:#6b6d72;--series-4:#2f8a5b;--chart-grid:#ececea;--chart-axis:#c9c9c4;--chart-text:#7a7c80;--mono:ui-monospace, "SF Mono", Menlo, Consolas, monospace;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;accent-color:#1b1c1e;color:var(--text);background:var(--bg);font-family:system-ui,-apple-system,Segoe UI,sans-serif;font-size:13px;line-height:1.45}@media (prefers-color-scheme:dark){:root{--bg:#121315;--surface:#18191c;--text:#e3e3e1;--muted:#8d8f94;--line:#2a2c30;--line-strong:#3b3e43;--active:#e3e3e1;--active-text:#121315;--series-1:#6aa5e6;--series-2:#ee7a63;--series-3:#8d8f94;--series-4:#5cc08a;--chart-grid:#222327;--chart-axis:#34363b;--chart-text:#85878c;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;accent-color:#e3e3e1}}*{box-sizing:border-box}body{background:var(--bg);margin:0;max-width:1680px;margin-inline:auto;padding:0 20px 24px}h1,h2{margin:0;font-weight:600}button,select,input{font:inherit;color:inherit}button{background:var(--surface);border:1px solid var(--line-strong);cursor:pointer;border-radius:4px;padding:4px 10px}button:hover:not(:disabled){border-color:var(--text)}button:disabled{opacity:.45;cursor:default}button.quiet{border-color:var(--line);color:var(--muted)}select{background:var(--surface);border:1px solid var(--line-strong);border-radius:4px;padding:4px 8px}.visually-hidden{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}.masthead{align-items:center;gap:16px;padding:14px 0 12px;display:flex}.brand{align-items:baseline;gap:10px;margin-right:auto;display:flex}.brand h1{letter-spacing:.01em;font-size:17px}.brand span{color:var(--muted)}.transport{gap:6px;display:flex}.viewport{border:1px solid var(--line-strong);background:#0b0c0e;width:100%;position:relative;overflow:hidden}.viewport canvas{width:100%;height:100%;display:block;position:absolute;inset:0}#overlay{touch-action:none}.flow-arrow{font:11px var(--mono);color:#ffffff73;pointer-events:none;position:absolute;top:6px;left:8px}.statusbar{font:11px var(--mono);color:var(--muted);flex-wrap:wrap;align-items:center;gap:4px 16px;padding:7px 0 0;display:flex}.statusbar b{color:var(--text);font-weight:400}.statusbar .state{color:var(--series-2)}.legend{align-items:center;gap:6px;margin-left:auto;display:flex}.legend-bar{border:1px solid var(--line);width:140px;height:8px}.deck{border:1px solid var(--line);background:var(--surface);grid-template-columns:repeat(6,minmax(0,1fr));gap:0;margin-top:16px;display:grid}.panel{border-right:1px solid var(--line);border-bottom:1px solid var(--line);flex-direction:column;grid-column:span 2;gap:10px;min-width:0;margin:0 -1px -1px 0;padding:14px 16px 16px;display:flex}.panel.forces,.panel.study{grid-column:span 3}.panel.forces:has(+.study[hidden]){grid-column:span 6}.panel h2{color:var(--text);font-size:12px}.panel[hidden]{display:none}.blurb{color:var(--muted);margin:0}.note{color:var(--muted);margin:0;font-size:11.5px}.note:empty{display:none}.controls{flex-direction:column;gap:10px;display:flex}.field{flex-direction:column;gap:3px;display:flex}.field>span{justify-content:space-between;display:flex}.field output{font:12px var(--mono);color:var(--muted)}.field.row{flex-direction:row;justify-content:space-between;align-items:center}.field input[type=range]{width:100%;margin:0}.field input[type=text]{background:var(--surface);border:1px solid var(--line-strong);width:70px;font-family:var(--mono);text-transform:uppercase;border-radius:4px;padding:2px 6px}.field input[type=text][aria-invalid=true]{border-color:var(--series-2)}.segmented{display:inline-flex}.segmented.wrap{flex-wrap:wrap;gap:4px}.segmented:not(.wrap) button{border-radius:0;margin-left:-1px}.segmented:not(.wrap) button:first-child{border-radius:4px 0 0 4px;margin-left:0}.segmented:not(.wrap) button:last-child{border-radius:0 4px 4px 0}.segmented button.active{background:var(--active);border-color:var(--active);color:var(--active-text);position:relative}.panel>button,.controls>button{align-self:flex-start}.readouts{grid-template-columns:repeat(3,1fr);gap:8px 12px;margin:0;display:grid}.readouts dt{color:var(--muted);font-size:11px}.readouts dd{font:16px var(--mono);font-variant-numeric:tabular-nums;margin:0}.chart{width:100%;height:150px;display:block}.study-config{gap:8px;display:flex}.study-config label{color:var(--muted);flex-direction:column;flex:1;gap:2px;min-width:0;font-size:11px;display:flex}.study-config input{background:var(--surface);border:1px solid var(--line-strong);width:100%;font-family:var(--mono);border-radius:4px;padding:2px 6px}.study-actions{align-items:center;gap:6px;display:flex}.progress{font:11px var(--mono);color:var(--muted);margin-left:auto}.method{border:1px solid var(--line);background:var(--surface);margin-top:16px}.method summary{cursor:pointer;padding:10px 16px;font-size:12px;font-weight:600}.method-body{columns:2 420px;column-gap:32px;padding:0 16px 6px}.method-body p{break-inside:avoid;margin:0 0 12px}.keys{color:var(--muted);flex-wrap:wrap;gap:6px 16px;margin-top:14px;font-size:12px;display:flex}.keys a{color:var(--muted);margin-left:auto}kbd{font:11px var(--mono);border:1px solid var(--line-strong);color:var(--text);border-bottom-width:2px;border-radius:3px;padding:0 4px}.unsupported{background:var(--bg);text-align:center;place-items:center;padding:24px;display:grid;position:fixed;inset:0}.unsupported[hidden],body.no-webgpu>:not(.unsupported){display:none}.unsupported p{max-width:440px;margin:0 auto}.unsupported .unsupported-detail{color:var(--muted);margin-top:10px;font-size:12px}.unsupported h2{margin-bottom:8px;font-size:17px}@media (max-width:1000px){.panel,.panel.forces{grid-column:span 3}.panel.forces:has(+.study[hidden]){grid-column:span 3}.panel.study{grid-column:span 6}}@media (max-width:640px){.panel,.panel.forces,.panel.study{grid-column:span 6}.panel.forces:has(+.study[hidden]){grid-column:span 6}body{padding:0 12px 20px}.masthead{flex-wrap:wrap;gap:8px 12px}.brand span{display:none}.legend{margin-left:0}}
