:root {
  color-scheme: dark;
  --bg: #0a1118;
  --panel: #101a23;
  --panel-2: #13212b;
  --panel-3: #0d171f;
  --line: #263641;
  --line-soft: rgba(130, 162, 174, .14);
  --text: #e6f0f1;
  --muted: #8da2ad;
  --muted-2: #627681;
  --accent: #69dfc1;
  --accent-dim: #2e8275;
  --accent-soft: rgba(105, 223, 193, .12);
  --radius: 12px;
  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%; height: 100%; background: var(--bg); color: var(--text); }
body { min-width: 320px; overflow: hidden; }
body.embed-mode { height: 100vh; height: 100dvh; overflow: hidden; }
button, input { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.topbar { height: 68px; flex: 0 0 68px; display: flex; align-items: center; justify-content: space-between; padding: 0 28px; border-bottom: 1px solid var(--line); background: rgba(10,17,24,.97); position: relative; z-index: 2; }
.brand-lockup { display: flex; align-items: center; gap: 14px; min-width: 0; }
.brand-mark { width: 34px; height: 34px; border: 1px solid rgba(105,223,193,.35); border-radius: 50%; position: relative; display: grid; place-items: center; flex: 0 0 auto; }
.brand-mark:before, .brand-mark:after, .brand-mark span { content: ""; position: absolute; border: 1px solid var(--accent); border-radius: 50%; width: 22px; height: 10px; opacity: .85; }
.brand-mark:before { transform: rotate(60deg); }
.brand-mark:after { transform: rotate(-60deg); }
.brand-mark span:first-child { width: 5px; height: 5px; background: var(--accent); border: 0; }
.brand-mark span:nth-child(2), .brand-mark span:nth-child(3) { display: none; }
.eyebrow, .panel-kicker, .section-heading, .micro-label, .readout-label, .overlay-kicker, .caption-heading, .quality-control > span, .equation-label { font-size: 9px; letter-spacing: .15em; font-weight: 750; color: var(--muted); }
.eyebrow { display: flex; align-items: center; gap: 8px; margin-bottom: 3px; }
.eyebrow-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--accent); display: inline-block; }
h1 { margin: 0; font-size: 19px; line-height: 1.1; letter-spacing: -.045em; font-weight: 690; }
h1 span { color: var(--accent); }
.topbar-right { display: flex; align-items: center; gap: 18px; }
.live-indicator { display: flex; align-items: center; gap: 8px; font-size: 9px; letter-spacing: .13em; color: var(--accent); font-weight: 750; }
.live-pulse { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(105,223,193,.1); }
.live-indicator.is-paused { color: var(--muted); }
.live-indicator.is-paused .live-pulse { background: var(--muted-2); box-shadow: none; }
.topbar-separator { height: 24px; width: 1px; background: var(--line); }
.time-readout { display: grid; gap: 2px; min-width: 54px; }
.micro-label { font-size: 8px; }
.time-readout strong { font-size: 14px; font-weight: 620; font-variant-numeric: tabular-nums; }
.workspace { height: calc(100dvh - 68px); min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 368px; }
.exhibit { min-width: 0; min-height: 0; display: flex; flex-direction: column; padding: 18px 22px 16px 26px; border-right: 1px solid var(--line); }
.exhibit-head { min-height: 52px; flex: 0 0 52px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.process-track { display: flex; align-items: center; gap: 11px; min-width: 0; }
.process-step { display: grid; grid-template-columns: 23px auto; grid-template-rows: 13px 12px; column-gap: 7px; color: var(--muted-2); font-size: 10px; font-weight: 650; white-space: nowrap; transition: color .25s ease; }
.step-number { grid-row: 1 / span 2; width: 22px; height: 22px; border-radius: 7px; border: 1px solid var(--line); display: grid; place-items: center; font-size: 8px; color: var(--muted); font-variant-numeric: tabular-nums; }
.process-step small { font-size: 8px; color: var(--muted-2); font-weight: 500; }
.process-step.is-active { color: var(--text); }
.process-step.is-active .step-number { color: var(--accent); border-color: rgba(105,223,193,.55); background: var(--accent-soft); }
.process-step.is-done .step-number { color: var(--accent); border-color: rgba(105,223,193,.3); }
.process-connector { width: 20px; height: 1px; background: var(--line); }
.view-switch { display: flex; align-items: center; padding: 3px; gap: 2px; background: var(--panel-3); border: 1px solid var(--line); border-radius: 9px; flex: 0 0 auto; }
.view-button { border: 0; background: transparent; color: var(--muted); padding: 7px 9px; font-size: 9px; border-radius: 6px; cursor: pointer; transition: background .2s ease, color .2s ease; }
.view-button:hover { color: var(--text); }
.view-button.is-selected { background: #1a3035; color: var(--accent); box-shadow: inset 0 0 0 1px rgba(105,223,193,.12); }
.canvas-stage { position: relative; flex: 1 1 auto; min-height: 180px; overflow: hidden; border: 1px solid rgba(76,107,120,.24); border-radius: 15px; background: radial-gradient(ellipse at 50% 46%, #14232b 0%, #0d171f 52%, #0a1219 100%); }
.canvas-stage:after { content: ""; pointer-events: none; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 80px rgba(0,0,0,.22); }
#fieldCanvas { width: 100%; height: 100%; display: block; touch-action: pan-y; }
.canvas-overlay { position: absolute; z-index: 1; pointer-events: none; display: flex; align-items: center; }
.overlay-top-left { left: 17px; top: 15px; flex-direction: column; align-items: flex-start; gap: 4px; }
.overlay-kicker { font-size: 8px; color: #8196a0; }
.overlay-top-left strong { font-size: 12px; font-weight: 650; letter-spacing: -.01em; }
.overlay-sub { color: var(--muted-2); font-size: 9px; }
.overlay-top-right { top: 17px; right: 18px; gap: 7px; color: var(--muted); font-size: 9px; }
.legend-swatch { width: 22px; height: 4px; border-radius: 5px; background: linear-gradient(90deg, #183039, var(--accent)); }
.overlay-bottom-left { bottom: 16px; left: 17px; gap: 14px; }
.source-key, .band-key { display: flex; align-items: center; gap: 6px; color: #9aabb3; font-size: 8px; letter-spacing: .02em; }
.source-key i { width: 7px; height: 7px; border-radius: 50%; background: #d7e6e5; box-shadow: 0 0 7px rgba(216,235,230,.45); }
.band-key i { width: 15px; height: 2px; border-radius: 2px; background: var(--accent); box-shadow: 0 0 6px rgba(105,223,193,.5); }
.overlay-bottom-right { right: 18px; bottom: 17px; font-size: 7px; color: #657984; letter-spacing: .14em; }
.readout-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 9px; padding-top: 12px; flex: 0 0 92px; }
.readout-card { min-width: 0; border: 1px solid var(--line-soft); background: rgba(16,26,35,.72); border-radius: 9px; padding: 10px 12px 8px; display: flex; flex-direction: column; gap: 4px; }
.readout-label { font-size: 7px; letter-spacing: .11em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.readout-label em { color: var(--muted-2); font-style: normal; letter-spacing: .04em; }
.readout-card strong { font-size: 20px; font-weight: 640; letter-spacing: -.04em; font-variant-numeric: tabular-nums; line-height: 1.05; }
.readout-card strong small { color: var(--muted); font-size: 10px; font-weight: 500; letter-spacing: 0; }
.readout-note { color: var(--muted-2); font-size: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.control-panel { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 22px 19px 16px; background: linear-gradient(180deg, #101a23, #0e1820); scrollbar-width: thin; scrollbar-color: #314650 transparent; }
.panel-topline { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 19px; }
.panel-kicker { font-size: 8px; color: var(--accent); margin-bottom: 5px; }
h2 { margin: 0; font-size: 17px; font-weight: 650; letter-spacing: -.035em; }
.model-chip { border: 1px solid rgba(105,223,193,.24); color: var(--accent); background: rgba(105,223,193,.06); border-radius: 20px; padding: 5px 8px; font-size: 7px; letter-spacing: .12em; white-space: nowrap; }
.section-heading { display: flex; align-items: center; gap: 9px; font-size: 8px; letter-spacing: .13em; margin: 16px 0 9px; }
.section-rule { height: 1px; background: var(--line); flex: 1; }
.preset-block { margin-bottom: 4px; }
.preset-block .section-heading { margin-top: 0; }
.preset-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.preset-button { min-width: 0; position: relative; border: 1px solid var(--line); border-radius: 9px; background: rgba(12,22,29,.68); display: flex; align-items: center; gap: 8px; padding: 9px 8px; text-align: left; cursor: pointer; transition: border-color .2s ease, background .2s ease; }
.preset-button:hover { border-color: #48616a; }
.preset-button.is-current { border-color: rgba(105,223,193,.55); background: rgba(105,223,193,.07); }
.preset-button strong { display: block; font-size: 9px; font-weight: 650; white-space: nowrap; }
.preset-button small { display: block; color: var(--muted-2); font-size: 7px; margin-top: 3px; white-space: nowrap; }
.preset-icon { width: 22px; height: 22px; flex: 0 0 auto; position: relative; border-radius: 6px; background: #1a2d34; }
.rings-icon:before, .rings-icon:after { content: ""; position: absolute; border: 1px solid var(--accent); border-radius: 50%; inset: 4px; }
.rings-icon:after { inset: 7px; opacity: .6; }
.clear-icon:before { content: ""; position: absolute; width: 10px; height: 10px; border: 1px dashed #81939b; border-radius: 50%; left: 6px; top: 6px; }
.preset-check { display: none; color: var(--accent); font-size: 10px; margin-left: auto; }
.preset-button.is-current .preset-check { display: block; }
.controls-heading { margin-top: 17px; }
.control-list { display: grid; gap: 12px; }
.control-row { display: grid; grid-template-columns: 1fr auto; align-items: end; column-gap: 8px; row-gap: 7px; cursor: pointer; }
.control-copy { display: grid; gap: 3px; min-width: 0; }
.control-name { font-size: 10px; color: #dce7e9; font-weight: 600; }
.control-help { font-size: 8px; color: var(--muted-2); line-height: 1.3; }
.control-value { font-size: 9px; font-weight: 650; color: var(--accent); font-variant-numeric: tabular-nums; white-space: nowrap; }
.control-value i { display: inline-block; font-style: normal; color: var(--muted-2); font-size: 7px; font-weight: 500; margin-left: 2px; }
.control-row input[type="range"] { grid-column: 1 / -1; appearance: none; width: 100%; height: 15px; background: transparent; cursor: pointer; margin: 0; }
.control-row input[type="range"]::-webkit-slider-runnable-track { height: 3px; border-radius: 4px; background: linear-gradient(90deg, var(--accent-dim), #2b414a); }
.control-row input[type="range"]::-moz-range-track { height: 3px; border-radius: 4px; background: linear-gradient(90deg, var(--accent-dim), #2b414a); }
.control-row input[type="range"]::-webkit-slider-thumb { appearance: none; width: 11px; height: 11px; border-radius: 50%; margin-top: -4px; background: var(--accent); border: 2px solid #102029; box-shadow: 0 0 0 1px rgba(105,223,193,.65), 0 0 9px rgba(105,223,193,.2); }
.control-row input[type="range"]::-moz-range-thumb { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); border: 2px solid #102029; box-shadow: 0 0 0 1px rgba(105,223,193,.65); }
.range-ends { grid-column: 1 / -1; display: flex; justify-content: space-between; color: var(--muted-2); font-size: 7px; margin-top: -5px; }
.caption-card { margin-top: 18px; padding: 11px 12px 12px; border: 1px solid rgba(105,223,193,.18); border-radius: 9px; background: linear-gradient(115deg, rgba(105,223,193,.07), rgba(105,223,193,.015)); }
.caption-heading { display: flex; align-items: center; gap: 7px; color: var(--accent); font-size: 7px; }
.caption-spark { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; box-shadow: 0 0 7px rgba(105,223,193,.5); }
.caption-card p { margin: 7px 0 0; font-size: 9px; line-height: 1.5; color: #b6c6cb; }
.transport-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 14px; }
.transport-buttons { display: flex; align-items: center; gap: 6px; }
.transport-button { min-height: 32px; border: 1px solid var(--line); border-radius: 7px; background: #13212a; color: #c9d7da; padding: 0 10px; font-size: 9px; font-weight: 600; cursor: pointer; transition: border-color .2s ease, background .2s ease; }
.transport-button:hover { border-color: #4d6870; }
.transport-button.primary { border-color: rgba(105,223,193,.42); background: var(--accent); color: #092019; min-width: 83px; }
.transport-button.primary:hover { background: #8aedd5; }
.play-glyph { font-size: 11px; margin-right: 6px; }
.transport-button span:last-child { color: var(--accent); }
.transport-button.primary span:last-child { color: inherit; }
.transport-button.icon-only { width: 33px; padding: 0; font-size: 18px; line-height: 1; }
.quality-control { display: flex; align-items: center; gap: 6px; }
.quality-control > span { font-size: 7px; }
.quality-control button { border: 1px solid var(--line); border-radius: 6px; background: transparent; color: var(--accent); font-size: 8px; letter-spacing: .08em; padding: 6px 8px; cursor: pointer; }
.panel-footer { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); margin-top: 14px; padding-top: 10px; }
.text-button { border: 0; background: transparent; color: var(--muted); font-size: 9px; cursor: pointer; padding: 4px 0; }
.text-button:hover { color: var(--accent); }
.chevron { display: inline-block; margin-left: 4px; transition: transform .2s ease; }
.text-button[aria-expanded="true"] .chevron { transform: rotate(180deg); }
.screenshot-button span { color: var(--accent); margin-right: 4px; font-size: 12px; }
.science-panel { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 13px; }
.science-panel h3 { margin: 0 0 7px; font-size: 13px; font-weight: 650; }
.science-intro, .equation-block p, .simplifications li { color: #9aadb5; font-size: 8px; line-height: 1.55; }
.science-intro { margin: 0 0 12px; }
.equation-block { padding: 10px 0; border-top: 1px solid rgba(130,162,174,.12); }
.equation-label { color: var(--accent); font-size: 7px; }
.equation { margin-top: 6px; color: #e1eeeb; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 10px; line-height: 1.5; overflow-wrap: anywhere; }
.equation-block p { margin: 5px 0 0; }
.equation-block p b { color: #d6e4e3; font-weight: 600; }
.check-values { display: grid; grid-template-columns: repeat(3,1fr); gap: 6px; margin-top: 7px; }
.check-values span { border: 1px solid var(--line); background: rgba(5,13,18,.25); border-radius: 6px; padding: 7px; color: var(--muted); font-size: 7px; }
.check-values strong { display: block; color: var(--text); font-size: 10px; margin-top: 4px; font-variant-numeric: tabular-nums; }
.simplifications { border-top: 1px solid rgba(130,162,174,.12); padding-top: 10px; }
.simplifications h4 { margin: 0 0 5px; font-size: 9px; }
.simplifications ul { margin: 0; padding-left: 14px; }
.simplifications li { margin: 3px 0; }
.disclaimer { margin: 12px 0 2px; padding-top: 9px; border-top: 1px solid rgba(130,162,174,.12); color: #81939b; font-size: 7px; line-height: 1.5; }
@media (max-width: 980px) and (min-width: 701px) {
  .workspace { grid-template-columns: minmax(0,1fr) 330px; }
  .exhibit { padding-left: 18px; padding-right: 16px; }
  .control-panel { padding-left: 15px; padding-right: 15px; }
  .process-track { gap: 7px; }
  .process-connector { width: 12px; }
  .view-button { padding-left: 7px; padding-right: 7px; }
  .readout-card { padding-left: 9px; padding-right: 8px; }
}
@media (max-width: 700px) {
  body { overflow: hidden; }
  .topbar { height: 58px; flex-basis: 58px; padding: 0 14px; }
  .brand-mark { width: 29px; height: 29px; }
  .brand-mark:before, .brand-mark:after { width: 19px; height: 9px; }
  .eyebrow { font-size: 7px; letter-spacing: .1em; margin-bottom: 2px; }
  h1 { font-size: 16px; }
  .topbar-right { gap: 10px; }
  .live-indicator { font-size: 7px; gap: 6px; }
  .topbar-separator { height: 20px; }
  .micro-label { font-size: 7px; }
  .time-readout strong { font-size: 12px; }
  .workspace { height: calc(100dvh - 58px); grid-template-columns: minmax(0,1fr); grid-template-rows: minmax(250px, 47dvh) minmax(0,1fr); }
  .exhibit { padding: 9px 10px 9px; border-right: 0; border-bottom: 1px solid var(--line); }
  .exhibit-head { flex-basis: 39px; min-height: 39px; gap: 6px; }
  .process-track { gap: 5px; }
  .process-step { grid-template-columns: 17px auto; grid-template-rows: 10px 9px; column-gap: 4px; font-size: 8px; }
  .step-number { width: 17px; height: 17px; border-radius: 5px; font-size: 7px; }
  .process-step small { font-size: 6px; }
  .process-connector { width: 7px; }
  .view-switch { gap: 0; padding: 2px; }
  .view-button { padding: 6px 6px; font-size: 7px; }
  .canvas-stage { min-height: 0; border-radius: 11px; }
  .overlay-top-left { left: 10px; top: 9px; gap: 2px; }
  .overlay-kicker { font-size: 6px; }
  .overlay-top-left strong { font-size: 9px; }
  .overlay-sub { font-size: 7px; }
  .overlay-top-right { top: 11px; right: 10px; font-size: 7px; gap: 5px; }
  .legend-swatch { width: 14px; height: 3px; }
  .overlay-bottom-left { left: 10px; bottom: 9px; gap: 8px; }
  .source-key, .band-key { font-size: 6px; gap: 4px; }
  .source-key i { width: 5px; height: 5px; }
  .band-key i { width: 10px; }
  .overlay-bottom-right { right: 10px; bottom: 10px; font-size: 5px; }
  .readout-grid { flex-basis: 60px; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 5px; padding-top: 6px; }
  .readout-card { padding: 6px 6px 4px; border-radius: 6px; gap: 2px; }
  .readout-label { font-size: 5px; letter-spacing: .07em; }
  .readout-label em { display: none; }
  .readout-card strong { font-size: 14px; }
  .readout-card strong small { font-size: 7px; }
  .readout-note { font-size: 6px; }
  .control-panel { padding: 14px 14px 13px; }
  .panel-topline { margin-bottom: 12px; }
  .panel-kicker { font-size: 7px; margin-bottom: 3px; }
  h2 { font-size: 15px; }
  .model-chip { font-size: 6px; padding: 4px 6px; }
  .section-heading { margin: 12px 0 7px; font-size: 7px; }
  .preset-buttons { gap: 6px; }
  .preset-button { padding: 7px 7px; gap: 6px; }
  .preset-button strong { font-size: 8px; }
  .preset-button small { font-size: 6px; }
  .preset-icon { width: 19px; height: 19px; }
  .rings-icon:before { inset: 3px; }
  .rings-icon:after { inset: 6px; }
  .clear-icon:before { left: 5px; top: 5px; }
  .controls-heading { margin-top: 13px; }
  .control-list { gap: 9px; }
  .control-name { font-size: 9px; }
  .control-help { font-size: 7px; }
  .control-value { font-size: 8px; }
  .control-value i { font-size: 6px; }
  .control-row input[type="range"] { height: 13px; }
  .range-ends { font-size: 6px; }
  .caption-card { margin-top: 13px; padding: 9px 10px; }
  .caption-heading { font-size: 6px; }
  .caption-card p { font-size: 8px; margin-top: 5px; }
  .transport-row { margin-top: 11px; }
  .transport-button { min-height: 30px; font-size: 8px; padding: 0 8px; }
  .transport-button.primary { min-width: 76px; }
  .quality-control > span { font-size: 6px; }
  .quality-control button { font-size: 7px; padding: 6px 7px; }
  .panel-footer { margin-top: 11px; padding-top: 8px; }
  .text-button { font-size: 8px; }
  .science-panel { margin-top: 9px; padding-top: 10px; }
  .science-panel h3 { font-size: 12px; }
  .science-intro, .equation-block p, .simplifications li { font-size: 7px; }
  .equation { font-size: 9px; }
}
@media (max-width: 370px) {
  .process-track { gap: 3px; }
  .process-step { grid-template-columns: 15px auto; column-gap: 3px; font-size: 7px; }
  .step-number { width: 15px; height: 15px; }
  .process-step small { font-size: 5px; }
  .process-connector { width: 4px; }
  .view-button { padding: 5px 4px; font-size: 6px; }
  .readout-label { font-size: 4.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; }
}
