@font-face{font-family:Instrument Serif;src:url('assets/instrument-serif.ttf') format('truetype');font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:Instrument Serif;src:url('assets/instrument-serif-italic.ttf') format('truetype');font-weight:400;font-style:italic;font-display:swap}
:root{color-scheme:dark;--bg:#0b1418;--panel:#111f24;--ink:#e5ece5;--muted:#a0b4af;--line:#2b3b3e;--copper:#d7a17a;--teal:#8ecbb9;--soft:#223a34;--chip:#172c2b;--button:#abd5c0;--button-ink:#142920;--warning:#dfb586;--danger:#f3a292;--shadow:#00000024;--font:system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;--serif:'Instrument Serif',Georgia,serif;--mono:'SFMono-Regular',Consolas,'Liberation Mono',monospace}
:root[data-theme=light]{color-scheme:light;--bg:#f5f3ec;--panel:#eeeee5;--ink:#203633;--muted:#556961;--line:#cdd4ca;--copper:#905532;--teal:#236b59;--soft:#dce7dc;--chip:#e0e5da;--button:#275345;--button-ink:#f6f7ed;--warning:#8e5725;--danger:#a73f32;--shadow:#284b3512}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:14px/1.5 var(--font);-webkit-font-smoothing:antialiased}button,input,select{font:inherit;color:inherit}button{cursor:pointer}button:disabled{cursor:default;opacity:.48}button,a,input,select{touch-action:manipulation}button{border:0;background:none}a{color:var(--teal);text-decoration:none}a:hover{text-decoration:underline}button:hover:not(:disabled){filter:brightness(1.13)}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid var(--teal);outline-offset:4px}h1,h2,h3,p,figure{margin:0}button:disabled{filter:none}input[type=range]{accent-color:var(--teal);width:100%;margin:10px 0 14px}input[type=checkbox]{accent-color:var(--teal);width:16px;height:16px}select,input[type=search]{background:var(--panel);border:1px solid var(--line);border-radius:5px;padding:10px 11px;width:100%;min-height:42px}select{font-size:12px}input[type=search]{max-width:540px;font-size:16px}select:disabled,input:disabled{opacity:.5}[hidden]{display:none!important}.app-shell{max-width:1240px;margin:0 auto;border-inline:1px solid var(--line)}.mono{font-family:var(--mono);font-size:11px;letter-spacing:.04em;font-variant-numeric:tabular-nums}.eyebrow{font-size:10px;letter-spacing:.17em;text-transform:uppercase;font-weight:500;color:var(--muted)}.small,.caption{font-size:11px}.caption{color:var(--muted);line-height:1.65}.muted{color:var(--muted)}.app-header{display:flex;justify-content:space-between;align-items:center;gap:24px;padding:24px 36px;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:10px;font-size:25px;letter-spacing:-1.5px;color:var(--ink);font-weight:650;line-height:1}.brand:hover{text-decoration:none}.brand-period{color:var(--copper);margin-left:-6px}.brand-chip{width:16px;height:16px;border:1px solid var(--copper);border-radius:3px;position:relative}.brand-chip:before{content:'';position:absolute;inset:4px;border:1px solid var(--copper)}.brand-chip:after{content:'';position:absolute;inset:-4px 4px;border-block:1px solid var(--copper)}.main-nav,.header-tools{display:flex;align-items:center;gap:23px}.main-nav button{padding:10px 0;font-size:12px;color:var(--muted);position:relative;white-space:nowrap}.main-nav button[aria-pressed=true]{color:var(--ink)}.main-nav button[aria-pressed=true]:after{content:'';position:absolute;height:2px;left:0;right:0;bottom:0;background:var(--copper)}#archive-count{font:10px var(--mono);color:var(--copper);margin-left:5px}.header-tools{gap:16px}.header-tools button{font-size:11px;padding:8px 0;white-space:nowrap;color:var(--muted)}#sound-toggle[aria-pressed=true]{color:var(--teal)}.chapter-bar{display:flex;justify-content:space-between;gap:16px;align-items:center;padding:15px 36px;border-bottom:1px solid var(--line)}.chapter-progress{display:flex;align-items:center;gap:8px;flex:1;justify-content:center}.chapter-progress span{display:block;width:27px;height:3px;background:var(--line)}.chapter-progress .past{background:var(--copper)}.chapter-progress .current{background:var(--teal)}.lab-clock{color:var(--muted)}main{padding:38px 36px 28px}.headline-row{display:flex;justify-content:space-between;align-items:end;gap:24px;margin-bottom:28px}h1{font:400 clamp(44px,5.3vw,68px)/.96 var(--serif);letter-spacing:-1.5px}h1 em,h2 em{color:var(--copper);font-weight:400}.subtitle{margin-top:16px;color:var(--muted);font-size:12px}.headline-number{text-align:right;padding-bottom:4px;min-width:120px}.headline-number strong{font:400 52px/1 var(--serif);display:block;letter-spacing:-1px}.headline-number span{display:block;color:var(--muted);font-size:11px}.headline-number .headline-caption{margin-top:5px;font-size:10px}.resource-strip{display:grid;grid-template-columns:1fr 1fr 1.25fr auto;gap:22px;margin-bottom:24px;border-block:1px solid var(--line);padding:15px 0}.resource-strip>div{display:flex;gap:6px;flex-wrap:wrap;align-items:baseline}.resource-strip span{color:var(--muted);font-size:11px}.resource-strip strong{font:400 16px var(--mono);font-variant-numeric:tabular-nums}.resource-strip small{width:100%;color:var(--muted);font-size:10px}.resource-strip .save-readout{align-items:center;justify-content:end;gap:7px;align-self:center}.live-dot{width:5px;height:5px;border-radius:50%;background:var(--teal);flex-shrink:0}.workbench{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:30px;align-items:start}.instrument-column{min-width:0}.instrument{border:1px solid var(--line);background:var(--panel);border-radius:9px;overflow:hidden}.instrument-header{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 20px}.instrument-header h2{font:500 12px var(--font);letter-spacing:0}.instrument-header .mono{color:var(--muted);font-size:10px}.machine-figure canvas{display:block;width:100%;height:410px}.machine-figure figcaption{display:flex;justify-content:space-between;gap:15px;flex-wrap:wrap;padding:13px 20px 17px;color:var(--muted);font-size:10px}.instrument-readouts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px;border-top:1px solid var(--line);padding:17px 20px}.instrument-readouts .readout{min-width:0}.readout-label{display:block;color:var(--muted);font-size:10px;margin-bottom:5px;line-height:1.4}.readout-value{display:block;font:400 19px var(--mono);letter-spacing:-.7px;font-variant-numeric:tabular-nums}.readout-note{color:var(--muted);font-size:10px;display:block;margin-top:5px}.instrument-note{font-size:11px;color:var(--muted);margin-top:12px;line-height:1.6}.experiment-rail{padding-top:3px;min-width:0}.experiment-rail h2{font:400 33px/1.05 var(--serif);letter-spacing:-.45px;margin:10px 0 15px}.rail-copy{font-size:12px;color:var(--muted);line-height:1.75}.experiment-picker{margin-top:20px}.experiment-picker label,.bench-controls>label,.bench-controls>div>label{display:block;color:var(--muted);font-size:11px;margin-bottom:7px}.experiment-cost{display:flex;justify-content:space-between;gap:10px;margin:23px 0 12px;align-items:center;font-size:11px;color:var(--muted)}.experiment-cost .mono{font-size:10px;color:var(--ink);text-align:right}.primary-button{background:var(--button);color:var(--button-ink);display:flex;justify-content:space-between;gap:16px;align-items:center;padding:14px 16px;border-radius:5px;font-size:12px;font-weight:550;width:100%;min-height:46px;transition:filter .15s}.primary-button span[aria-hidden]{font-size:19px;line-height:1}.secondary-button{border:1px solid var(--line);background:var(--panel);display:flex;justify-content:space-between;align-items:center;gap:10px;padding:12px 13px;border-radius:5px;font-size:11px;min-height:42px}.secondary-button .mono{font-size:10px;color:var(--muted)}#calibrate-button{margin-top:13px;width:100%;text-align:left}.text-button{font-size:11px;color:var(--teal);padding:8px 0}.experiment-feedback{margin-top:12px;font-size:11px;color:var(--teal);line-height:1.65;min-height:18px}.experiment-feedback.is-blocked{color:var(--warning)}.job-progress{margin-top:14px}.progress-label{display:flex;justify-content:space-between;gap:12px;font-size:11px;color:var(--muted);margin-bottom:8px}progress{display:block;width:100%;height:3px;border:0;background:var(--line);accent-color:var(--teal);border-radius:0}progress::-webkit-progress-bar{background:var(--line)}progress::-webkit-progress-value{background:var(--teal)}progress::-moz-progress-bar{background:var(--teal)}.bench-controls,.allocation-controls{margin-top:23px;padding-top:20px;border-top:1px solid var(--line)}.control-header{display:flex;justify-content:space-between;gap:10px;align-items:center;font-size:11px;color:var(--muted)}.control-header output{font-family:var(--mono);font-size:10px;color:var(--ink)}.checkbox-row{display:flex!important;gap:8px;align-items:center;margin:12px 0!important;font-size:11px}.distance-picker{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;margin:12px 0}.distance-picker button{border:1px solid var(--line);padding:10px;border-radius:4px;font:12px var(--mono);background:var(--panel)}.distance-picker button[aria-pressed=true]{background:var(--soft);border-color:var(--teal);color:var(--teal)}#factory-control{margin-top:18px}#service-control{margin-top:16px}.measurement-panel{margin-top:23px}.measurement-heading{display:flex;justify-content:space-between;gap:14px;align-items:center;margin-bottom:8px}.measurement-heading h3{font:500 12px var(--font)}.measurement-heading .mono{color:var(--muted);font-size:10px}.measurement-panel canvas{width:100%;height:160px;display:block}.measurement-panel .caption{margin-top:8px}.lab-warning{border-left:2px solid var(--warning);padding:10px 13px;margin-top:18px;font-size:11px;line-height:1.6;color:var(--warning);background:var(--panel)}.section-heading{display:flex;justify-content:space-between;align-items:end;gap:25px;margin-bottom:22px}.section-heading h2{font:400 31px/1.1 var(--serif);letter-spacing:-.35px;margin-top:7px}.section-heading>p{font-size:11px;text-align:right;color:var(--muted)}.section-heading>.mono{color:var(--muted);white-space:nowrap}.discoveries-section,.engineering-section,.workload-section{margin-top:38px;border-top:1px solid var(--line);padding-top:25px}.discovery-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}.discovery{border-left:1px solid var(--line);padding-left:17px;display:flex;flex-direction:column;min-width:0}.discovery .paper-year{font:10px var(--mono);color:var(--copper);letter-spacing:.04em;margin-bottom:9px}.discovery h3{font:400 25px/1.1 var(--serif);letter-spacing:-.15px}.discovery p{font-size:11px;color:var(--muted);line-height:1.65;margin:11px 0 15px}.discovery .discovery-cost{font-size:10px;color:var(--ink);font-family:var(--mono);margin-top:auto;margin-bottom:8px}.discovery button[data-project]{padding:10px 12px;border:1px solid var(--line);border-radius:4px;text-align:left;display:flex;justify-content:space-between;align-items:center;font-size:11px;min-height:39px;background:var(--soft)}.discovery button[data-project]:disabled{background:var(--panel);opacity:.6}.discovery .limiter{font-size:10px;color:var(--warning);margin-top:7px;min-height:30px;line-height:1.6}.discovery .paper-notes{padding:7px 0;color:var(--teal);font-size:11px;align-self:start}.quiet-message{font-size:12px;color:var(--muted);line-height:1.8;grid-column:1/-1;padding:5px 0}.upgrade-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));column-gap:24px}.upgrade{display:flex;justify-content:space-between;gap:14px;border-top:1px solid var(--line);padding:16px 0;align-items:center;min-width:0}.upgrade h3{font:500 12px var(--font);margin-bottom:6px}.upgrade p{font-size:10px;line-height:1.6;color:var(--muted)}.upgrade button{font:11px var(--mono);padding:9px 10px;border:1px solid var(--line);border-radius:4px;background:var(--panel);white-space:nowrap;flex-shrink:0}.journal-strip{border-top:1px solid var(--line);padding-top:19px;margin-top:32px;display:flex;align-items:start;gap:18px}.journal-strip .eyebrow{color:var(--copper);white-space:nowrap;padding-top:2px}.journal-strip p{font-size:11px;color:var(--muted)}.app-footer{border-top:1px solid var(--line);padding:20px 36px;display:flex;justify-content:space-between;align-items:center;gap:25px;font-size:10px;color:var(--muted)}.app-footer em{font:400 16px var(--serif)}.app-footer div{display:flex;gap:20px;align-items:center}.app-footer button{font-size:10px;color:var(--muted);padding:7px 0}.page-intro{margin:12px 0 30px}.page-intro h1{margin:12px 0 18px}.page-intro p{font-size:12px;color:var(--muted);max-width:620px}.search-label{display:block;font-size:11px;color:var(--muted);margin-bottom:8px}.archive-tabs{display:flex;flex-wrap:wrap;gap:8px 20px;margin:23px 0}.archive-tabs button{font-size:12px;color:var(--muted);padding:7px 0}.archive-tabs button[aria-pressed=true]{color:var(--teal)}.archive-row{display:grid;grid-template-columns:56px 1fr auto;gap:20px;border-top:1px solid var(--line);padding:22px 0;align-items:center}.archive-row .year{font:11px var(--mono);color:var(--copper)}.archive-row h3{font:400 27px/1.15 var(--serif);margin-bottom:8px}.archive-row p{font-size:11px;color:var(--muted);line-height:1.7}.archive-row .archive-status{display:inline-block;font:10px var(--mono);color:var(--teal);margin-top:7px}.archive-row button{font-size:11px;color:var(--teal);padding:12px;border:1px solid var(--line);border-radius:4px;white-space:nowrap}.log-row{display:grid;grid-template-columns:70px 1fr;gap:24px;padding:22px 0;border-top:1px solid var(--line)}.log-row .mono{color:var(--muted);padding-top:4px}.log-row p{font:400 25px/1.3 var(--serif)}.log-row .log-kind{font-size:10px;text-transform:uppercase;letter-spacing:.1em;color:var(--muted);display:block;margin-top:8px}.log-row.warning .log-kind{color:var(--warning)}.workload-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.workload-option{border:1px solid var(--line);border-radius:6px;padding:16px;background:var(--panel);text-align:left;display:flex;align-items:center;justify-content:space-between;gap:20px}.workload-option[aria-pressed=true]{border-color:var(--teal);background:var(--soft)}.workload-option strong{display:block;font:400 23px var(--serif);margin:4px 0}.workload-option .workload-state{font:10px var(--mono);color:var(--muted);white-space:nowrap}.workload-option .eyebrow{font-size:9px;letter-spacing:.08em}.budget-panel{margin-top:20px;padding:21px;border:1px solid var(--line);border-radius:7px}.budget-top{display:flex;justify-content:space-between;align-items:start;gap:20px;margin-bottom:20px}.budget-top h3{font:400 28px/1.1 var(--serif);margin:7px 0 10px}.budget-top p{font-size:11px;color:var(--muted);max-width:690px;line-height:1.75}.budget-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin:20px 0}.budget-stat span{display:block;color:var(--muted);font-size:10px;margin-bottom:7px}.budget-stat strong{font:400 18px var(--mono);letter-spacing:-.5px}.budget-stat small{color:var(--muted);display:block;font-size:10px;margin-top:6px}.budget-legend{display:flex;flex-wrap:wrap;gap:14px;color:var(--muted);font-size:10px;margin:10px 0}.budget-legend span{display:flex;align-items:center;gap:5px}.budget-legend i{width:7px;height:7px;display:block;background:var(--teal)}.budget-bar{height:5px;background:var(--line);display:flex;gap:2px}.budget-bar span{height:100%;background:var(--teal);min-width:1px}.budget-bar span:nth-child(2){background:var(--copper)}.budget-bar span:nth-child(3){background:var(--warning)}.budget-bar span:nth-child(4){background:var(--muted)}.budget-reasons{font-size:11px;color:var(--warning);line-height:1.8;margin:17px 0 12px}.budget-actions{display:flex;gap:18px;align-items:center;margin-top:18px}.budget-actions .primary-button{max-width:320px}.budget-caption{font-size:10px;color:var(--muted);line-height:1.7;margin-top:15px}.notice{padding:14px 36px;border-bottom:1px solid var(--line);background:var(--panel);color:var(--warning);font-size:12px;line-height:1.6}dialog{color:var(--ink);background:var(--bg);border:1px solid var(--line);border-radius:10px;padding:28px;max-width:min(720px,calc(100vw - 32px));width:620px;max-height:calc(100dvh - 40px);box-shadow:0 24px 90px #0006}dialog::backdrop{background:#050b0ed9;backdrop-filter:blur(5px)}dialog .dialog-top{display:flex;justify-content:space-between;gap:18px;align-items:center;margin-bottom:22px}.dialog-close{font:24px/1 var(--font);color:var(--muted);padding:6px;min-width:36px;min-height:36px}dialog h2{font:400 42px/1.05 var(--serif);letter-spacing:-.7px;margin-bottom:18px}dialog>p{color:var(--muted);font-size:13px;line-height:1.8;margin:14px 0}dialog>a{display:inline-block;font-size:12px;margin:14px 0}.paper-entry{border-top:1px solid var(--line);padding-top:19px;margin-top:23px}.paper-entry h3{font:400 27px/1.2 var(--serif);margin-bottom:10px}.paper-entry .paper-meta{font-size:11px;color:var(--muted);line-height:1.7}.paper-entry .paper-section-label{font-size:10px;letter-spacing:.1em;text-transform:uppercase;color:var(--copper);margin:18px 0 7px}.paper-entry p{font-size:12px;color:var(--muted);line-height:1.85}.paper-links{display:flex;gap:18px;flex-wrap:wrap;margin-top:15px}.paper-links a{font-size:12px;padding:7px 0}.chapter-dialog{width:550px}.chapter-dialog .primary-button{margin-top:28px}.chapter-scene{height:80px;display:flex;gap:19px;align-items:center;margin-bottom:24px}.chapter-scene span{width:18px;height:18px;border:1px solid var(--copper);border-radius:50%;position:relative;background:var(--soft)}.chapter-scene span:not(:last-child):after{content:'';position:absolute;top:8px;left:18px;width:19px;height:1px;background:var(--copper)}.chapter-dialog[open] .chapter-scene span{animation:chapter-signal .8s ease-out both}.chapter-scene span:nth-child(2){animation-delay:.08s!important}.chapter-scene span:nth-child(3){animation-delay:.16s!important}.chapter-scene span:nth-child(4){animation-delay:.24s!important}.chapter-scene span:nth-child(5){animation-delay:.32s!important}@keyframes chapter-signal{from{transform:translateY(12px);background:var(--panel)}to{transform:translateY(0);background:var(--soft)}}.setting-row{display:flex;justify-content:space-between;gap:20px;align-items:center;font-size:12px;margin-top:23px}.settings-saves{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:24px 0 16px}.settings-saves .primary-button{grid-column:1/-1}.settings-feedback{color:var(--teal);font-size:12px;min-height:18px}.danger-button{background:var(--panel);border:1px solid var(--danger);color:var(--danger);border-radius:5px;padding:12px 15px;font-size:12px;min-height:44px}.settings-feedback+.danger-button{margin-top:18px}.reset-actions{display:flex;justify-content:space-between;gap:14px;margin-top:25px}.ending-kicker{color:var(--teal);margin:10px 0 20px}#ending-view{text-align:center;padding:26px 0}.ending-result{font-size:12px;color:var(--muted);margin:22px auto 12px;max-width:630px;line-height:1.8}#ending-art{display:block;width:100%;height:290px;margin:28px 0 10px}.dedication{font:400 29px/1.3 var(--serif);letter-spacing:-.3px;max-width:700px;margin:0 auto}.dedication p:last-child{font-style:italic;color:var(--copper);margin-top:6px}.ending-stats{display:flex;gap:35px;justify-content:center;flex-wrap:wrap;margin:29px 0;font-size:11px;color:var(--muted)}.ending-stats strong{display:block;font:400 21px var(--mono);color:var(--ink);margin-bottom:6px}.ending-actions{display:flex;gap:14px;justify-content:center;align-items:center;flex-wrap:wrap;margin:26px auto 20px}.ending-actions .primary-button{max-width:280px}.ending-actions .secondary-button{background:transparent}.ending-actions+p{max-width:680px;margin:auto}.skip-link{position:absolute;top:-100px;left:18px;background:var(--button);color:var(--button-ink);padding:12px;z-index:10}.skip-link:focus{top:12px}
@media(min-width:1400px){.app-shell{margin:28px auto;border:1px solid var(--line);border-radius:13px;overflow:hidden}}@media(max-width:1000px){.app-header{padding:21px 26px;gap:20px}.header-tools{gap:12px}.main-nav{gap:18px}main{padding:32px 26px 25px}.chapter-bar{padding-inline:26px}.workbench{grid-template-columns:minmax(0,1fr) 270px;gap:24px}.resource-strip{grid-template-columns:1fr 1fr 1fr;gap:15px}.resource-strip .save-readout{display:none}.instrument-header{padding-inline:16px}.instrument-readouts{padding-inline:16px;gap:12px}.readout-value{font-size:16px}.discovery-list{gap:18px}.app-footer{padding-inline:26px}}@media(max-width:790px){.app-header{flex-wrap:wrap;gap:17px}.main-nav{order:3;width:100%;justify-content:center;gap:38px}.header-tools{margin-left:auto}.workbench{grid-template-columns:minmax(0,1fr) 240px;gap:20px}.headline-number{min-width:100px}.headline-caption{max-width:100px}.instrument-readouts{grid-template-columns:1fr 1fr}.instrument-readouts .readout:last-child{grid-column:1/-1;display:flex;gap:15px;align-items:baseline;flex-wrap:wrap}.instrument-readouts .readout:last-child .readout-label{margin:0}.instrument-readouts .readout:last-child .readout-note{margin:0}.machine-figure canvas{height:360px}.discovery-list{grid-template-columns:1fr 1fr}.upgrade-list{grid-template-columns:1fr 1fr}.section-heading h2{font-size:28px}.section-heading{gap:16px}.app-footer{align-items:start}.app-footer div{flex-wrap:wrap;gap:5px 16px;justify-content:end}}@media(max-width:660px){main{padding:27px 20px 24px}.app-header{padding:18px 20px}.chapter-bar{padding:13px 20px;flex-wrap:wrap;gap:12px}.chapter-progress{order:3;width:100%;justify-content:start}.chapter-progress span{width:22px}.headline-row{margin-bottom:24px;gap:15px}h1{font-size:49px;letter-spacing:-1.2px}.headline-number{min-width:67px}.headline-number strong{font-size:42px}.headline-number span{font-size:10px}.headline-number .headline-caption{display:none}.subtitle{font-size:11px;max-width:290px;line-height:1.6}.resource-strip{grid-template-columns:1fr 1fr;gap:12px}.resource-strip>div:nth-child(3){grid-column:1/-1}.resource-strip>div:nth-child(3) small{width:auto}.resource-strip strong{font-size:15px}.workbench{grid-template-columns:1fr;gap:28px}.machine-figure canvas{height:340px}.instrument-readouts{grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.instrument-readouts .readout:last-child{grid-column:auto;display:block}.instrument-readouts .readout:last-child .readout-note{margin-top:5px}.readout-value{font-size:17px}.experiment-rail h2{font-size:36px}.experiment-rail{max-width:none}.experiment-cost{margin-top:19px}.rail-copy{font-size:13px}.bench-controls,.allocation-controls{margin-top:22px}.section-heading{flex-wrap:wrap;align-items:center;gap:12px}.section-heading h2{font-size:31px}.section-heading>p{text-align:left}.discovery-list{grid-template-columns:1fr;gap:22px}.discovery{padding-left:15px}.discovery p{margin:10px 0}.discovery .limiter{min-height:0}.discovery .paper-notes{padding-top:12px}.discovery button[data-project]{min-height:44px}.upgrade-list{grid-template-columns:1fr 1fr;gap:0 20px}.workload-list{grid-template-columns:1fr}.budget-stats{grid-template-columns:1fr 1fr;gap:22px}.budget-actions{flex-wrap:wrap}.budget-panel{padding:18px}.archive-row{grid-template-columns:40px 1fr;gap:14px}.archive-row button{grid-column:2;justify-self:start}.archive-row h3{font-size:26px}.log-row{grid-template-columns:45px 1fr;gap:17px}.log-row p{font-size:23px}.app-footer{padding:18px 20px;flex-wrap:wrap;gap:14px}.app-footer div{width:100%;justify-content:space-between;align-items:center}.journal-strip{display:block}.journal-strip p{margin-top:8px}.notice{padding:14px 20px}.dedication{font-size:27px}.ending-stats{gap:22px}.ending-actions{flex-direction:column}.ending-actions .primary-button{max-width:300px}.ending-result{font-size:11px}#ending-art{height:240px}.page-intro h1{font-size:49px}.paper-entry h3{font-size:27px}}@media(max-width:400px){.brand{font-size:23px}.header-tools{gap:11px}.header-tools button{font-size:10px}.main-nav{gap:28px}.app-header{padding:18px 17px}.chapter-bar{padding-inline:17px}main{padding-inline:17px}.headline-row{align-items:center;gap:10px}h1{font-size:43px}.headline-number{min-width:55px}.headline-number strong{font-size:37px}.headline-number span{max-width:65px}.instrument-readouts{grid-template-columns:1fr 1fr;gap:14px}.instrument-readouts .readout:last-child{grid-column:1/-1;display:flex;gap:14px;align-items:baseline;flex-wrap:wrap}.instrument-readouts .readout:last-child .readout-note{margin:0}.instrument-header{gap:10px;padding-inline:13px}.instrument-header .mono{font-size:9px}.machine-figure canvas{height:310px}.machine-figure figcaption{padding-inline:13px;gap:7px}.upgrade-list{grid-template-columns:1fr}.section-heading h2{font-size:30px}.budget-stats{gap:18px}.budget-stat strong{font-size:16px}.app-footer{padding-inline:17px}.app-footer em{font-size:15px}.app-footer div{gap:12px;flex-wrap:wrap}.ending-stats{gap:15px}.ending-stats strong{font-size:18px}.dedication{font-size:25px}.page-intro h1{font-size:43px}.page-intro .eyebrow{font-size:9px}dialog{padding:21px;max-width:calc(100vw - 24px)}dialog h2{font-size:36px}.reset-actions{flex-wrap:wrap}.settings-saves{grid-template-columns:1fr}.settings-saves .primary-button{grid-column:auto}}@media(pointer:coarse){button:not(:disabled),a:not(.brand){min-height:44px}.header-tools button{padding-block:10px}.main-nav button{padding-block:12px}.distance-picker button{min-height:44px}input[type=range]{height:24px}.caption{font-size:12px}select{font-size:16px}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
.discovery-top{display:flex;justify-content:space-between;gap:16px;align-items:start;margin-bottom:7px}.discovery-top .paper-year{line-height:1.6;max-width:calc(100% - 72px)}.discovery-diagram{width:60px;height:40px;flex-shrink:0;stroke:var(--teal);stroke-width:1.2}.discovery-diagram .copper-stroke{stroke:var(--copper)}.archive-mark{float:right;margin-left:16px;margin-top:3px}
@media(max-width:660px){#lab-view #run-experiment{position:fixed;left:20px;right:20px;bottom:max(12px,env(safe-area-inset-bottom));width:calc(100% - 40px);z-index:5;box-shadow:0 5px 24px #0005;border:1px solid var(--teal)}.app-footer{padding-bottom:88px}}@media(max-width:400px){#lab-view #run-experiment{left:17px;right:17px;width:calc(100% - 34px)}}

/* The laboratory economy: allocations and their consequences, on one desk. */
.capacity-warning.is-advice{color:var(--muted)}.engineering-choices{display:flex;align-items:center;flex-wrap:wrap;gap:15px 28px;margin-bottom:22px}.engineering-choices:empty{display:none}.chosen-policy{display:flex;align-items:baseline;gap:13px;flex:1 1 260px;min-width:0}.chosen-policy .eyebrow{font-size:9px;white-space:nowrap}.chosen-policy p{font-size:11px;color:var(--teal)}.chosen-policy small{display:block;font-size:10px;color:var(--muted);margin-top:4px}.engineering-choices>.text-button{margin-left:auto;white-space:nowrap}
.queue-header .mono{flex-shrink:0;white-space:nowrap}@media(max-width:660px){#lab-view #run-experiment:disabled{opacity:1;background:var(--panel);color:var(--muted);border-color:var(--line)}}
.baseline-notice{display:flex;align-items:center;justify-content:space-between;gap:20px;color:var(--muted)}.baseline-notice .text-button{flex-shrink:0}.economy-section{margin-top:34px;border-top:1px solid var(--line);padding-top:25px}.economy-section>.section-heading{margin-bottom:20px}.economy-section>.section-heading>p{max-width:270px;line-height:1.7}.economy-grid{display:flex;flex-wrap:wrap;gap:20px;align-items:stretch}.economy-card{flex:1 1 280px;min-width:0;background:var(--panel);border:1px solid var(--line);border-radius:8px;padding:20px}.economy-card-heading{display:flex;justify-content:space-between;align-items:baseline;gap:16px;margin-bottom:13px}.economy-card-heading h3{font:400 27px/1.1 var(--serif);letter-spacing:-.3px}.economy-card-heading .mono{color:var(--copper);font-size:10px;text-align:right}.economy-card>.caption{margin-top:12px}.economy-card .control-header{margin-top:18px}.economy-card input[type=range]{margin-bottom:9px}.assignment-row{display:flex;align-items:center;justify-content:space-between;gap:16px;border-top:1px solid var(--line);padding:14px 0}.assignment-row:first-of-type{margin-top:18px}.assignment-row>div>span{font-size:12px}.assignment-row small{display:block;color:var(--muted);font-size:10px;margin-top:3px;line-height:1.5}.stepper{display:flex;align-items:center;border:1px solid var(--line);border-radius:5px;flex-shrink:0;background:var(--bg)}.stepper button{width:34px;min-height:34px;font-size:17px;color:var(--teal);padding:4px}.stepper output{min-width:30px;font:12px var(--mono);text-align:center}.stepper button:first-child{border-right:1px solid var(--line)}.stepper button:last-child{border-left:1px solid var(--line)}.notes-bank{padding-top:5px}.notes-bank .control-header{margin-bottom:12px}.notes-bank progress{height:6px;border-radius:2px;overflow:hidden}.bank-bonus{display:flex;justify-content:space-between;gap:15px;margin-top:13px;align-items:baseline}.bank-bonus strong{font:11px var(--mono);white-space:nowrap;color:var(--muted)}.bank-bonus .bank-full{color:var(--teal)}.bank-bonus span{font-size:10px;color:var(--muted);line-height:1.6;max-width:190px;text-align:right}.capacity-warning{font-size:10px;color:var(--warning);line-height:1.7;margin-top:13px}.economy-section:not(.has-services) .research-desk{display:grid;grid-template-columns:1fr 1fr;column-gap:32px}.economy-section:not(.has-services) .research-desk>.economy-card-heading,.economy-section:not(.has-services) .research-desk>.caption,.economy-section:not(.has-services) .research-desk>.capacity-warning{grid-column:1/-1}.economy-section:not(.has-services) .research-desk>.assignment-row{grid-column:1}.economy-section:not(.has-services) .research-desk>.notes-bank{grid-column:2;grid-row:3/5;align-self:center;padding-block:10px}.economy-section:not(.has-services) .research-desk>.capacity-warning{margin-top:8px}
.capacity-track{height:10px;background:var(--line);display:flex;gap:2px;border-radius:2px;overflow:hidden;margin-top:8px}.capacity-track span{height:100%;min-width:0}.duty-calibration,.queue-automation{background:var(--copper)}.duty-service,.queue-customer{background:var(--teal)}.duty-experiment{background:var(--muted)}.queue-unused{background:var(--line)}.capacity-key{font:9px/1.7 var(--mono);color:var(--muted);margin-top:7px}.queue-header{display:flex;justify-content:space-between;align-items:baseline;gap:14px;font-size:10px;color:var(--muted);margin-top:19px}.queue-header .mono{font-size:9px;text-align:right}.queue-track{height:5px;margin-top:9px}.service-flow{display:grid;grid-template-columns:1fr auto 1fr 1fr;gap:12px;margin-top:15px;align-items:center}.service-flow>div{min-width:0}.service-flow>div>span{display:block;color:var(--muted);font-size:9px;line-height:1.5}.service-flow strong{display:block;font:15px var(--mono);margin-top:6px;font-variant-numeric:tabular-nums}.flow-arrow{color:var(--teal);padding-top:13px}.price-control{display:grid;grid-template-columns:1fr auto;align-items:center;gap:10px 15px;border-top:1px solid var(--line);margin-top:18px;padding-top:16px}.price-control>label{font-size:11px;color:var(--muted)}.price-input{display:flex;align-items:center;gap:7px}.price-input input{min-width:0;width:74px;min-height:36px;background:var(--bg);border:1px solid var(--line);border-radius:4px;padding:8px;font:12px var(--mono)}.price-input span{font-size:9px;color:var(--muted)}.price-control .mode-button{grid-column:1/-1}.mode-button{font-size:10px;text-align:left;padding:9px 10px;border:1px solid var(--line);border-radius:4px;color:var(--teal);background:var(--bg);min-height:36px}.mode-button[aria-pressed=true]{background:var(--soft);border-color:var(--teal)}.maintenance-readout{display:flex;justify-content:space-between;gap:15px;color:var(--muted);font-size:10px;margin-bottom:8px}.maintenance-readout .mono{font-size:10px;white-space:nowrap}#auto-calibration{margin-top:12px;width:100%}#service-control{margin-top:0}.construction-row{display:flex;justify-content:space-between;align-items:end;gap:15px;margin-top:19px}.construction-row>div>span{font-size:10px;color:var(--muted);display:block}.construction-row strong{font:17px var(--mono);display:block;margin-top:5px}.construction-row>.mono{font-size:10px;color:var(--muted);white-space:nowrap}.construction-track{height:6px;background:var(--line);border-radius:2px;margin-top:9px;overflow:hidden}.construction-track span{height:100%;display:block;background:var(--copper)}#supported-bar{background:var(--teal)}.construction-fit{font-size:11px;color:var(--teal);line-height:1.7;margin-top:18px}
.engineering-list,.engineering-archive{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin-bottom:25px}.engineering-list:empty{display:none}.engineering-card{border:1px solid var(--line);padding:18px;min-width:0;border-radius:6px;display:flex;flex-direction:column;background:var(--panel)}.engineering-kind{font:9px/1.6 var(--mono);text-transform:uppercase;letter-spacing:.08em;color:var(--copper);margin-bottom:9px}.engineering-card h3{font:400 25px/1.1 var(--serif);letter-spacing:-.2px}.engineering-card>p{font-size:11px;color:var(--muted);line-height:1.7;margin:11px 0 14px}.engineering-prerequisites{font-size:10px;color:var(--muted);line-height:1.6;margin-bottom:13px}.engineering-card .discovery-cost{font:10px/1.7 var(--mono);margin-top:auto;margin-bottom:9px}.engineering-card button{display:flex;justify-content:space-between;align-items:center;gap:12px;text-align:left;font-size:11px;padding:10px 11px;border:1px solid var(--line);border-radius:4px;min-height:39px;background:var(--soft)}.engineering-card .limiter{font-size:10px;color:var(--warning);line-height:1.6;margin-top:8px}.choice-outcome{font-size:10px;line-height:1.6;color:var(--warning);padding:10px 0;border-top:1px solid var(--line);margin-bottom:8px}.engineering-card.chosen{border-color:var(--teal)}.engineering-card.chosen .engineering-kind,.engineering-card.chosen .choice-outcome{color:var(--teal)}.engineering-card.closed{background:var(--bg)}.engineering-card.closed .engineering-kind{color:var(--muted)}.engineering-card .archive-status{font:10px/1.6 var(--mono);color:var(--teal);margin-top:auto}.upgrade button span,.upgrade button small{display:block}.upgrade button span{font:10px var(--mono)}.upgrade button small{font:9px var(--mono);margin-top:6px;color:var(--muted)}.upgrade .upgrade-reasons{color:var(--warning);font-size:9px;margin-top:7px}.archive-tabs{flex-wrap:wrap;gap:10px 20px}
@media(max-width:790px){.engineering-list,.engineering-archive{grid-template-columns:repeat(2,minmax(0,1fr))}.economy-card{padding:18px;flex-basis:260px}}@media(max-width:660px){.baseline-notice{display:block}.baseline-notice .text-button{margin-top:5px}.economy-section:not(.has-services) .research-desk{display:block}.economy-card{flex-basis:100%;padding:18px}.economy-card-heading h3{font-size:28px}.economy-card>.caption{font-size:11px}.stepper button{min-height:42px;width:40px}.stepper output{min-width:36px}.economy-section>.section-heading>p{max-width:none;text-align:left}.capacity-key{font-size:10px}.engineering-list,.engineering-archive{grid-template-columns:1fr}.engineering-card button{min-height:44px}.price-input input{min-height:42px;font-size:16px;width:88px}.mode-button{min-height:42px}.engineering-card .limiter,.capacity-warning{font-size:11px}.service-flow>div>span{font-size:10px}.service-flow strong{font-size:17px}.bank-bonus span{font-size:11px}.engineering-card .discovery-cost,.discovery .discovery-cost{line-height:1.8}.economy-section{margin-top:28px}}@media(max-width:400px){.economy-card{padding:16px}.economy-card-heading{gap:10px}.economy-card-heading .mono{font-size:9px}.assignment-row{gap:10px}.assignment-row small{font-size:9px}.stepper button{width:36px}.stepper output{min-width:28px}.service-flow{gap:9px}.price-control{gap:12px}.price-input span{display:none}}

/* Campus decisions use the same native instrument controls in both presentations. */
.frontier-section,.procurement-section{margin:32px 0;padding-top:27px;border-top:1px solid var(--line)}
.frontier-intro{font-size:12px;line-height:1.8;color:var(--muted);max-width:850px;margin:-5px 0 22px}
.frontier-columns{display:grid;grid-template-columns:1fr 1fr;gap:24px;align-items:start}
.frontier-section:not(.has-precision) .frontier-columns{grid-template-columns:1fr}
.frontier-section:not(.has-precision) .frontier-list{grid-template-columns:repeat(auto-fit,minmax(min(100%,360px),1fr))}
.frontier-desk-heading{display:flex;align-items:baseline;justify-content:space-between;gap:14px;margin-bottom:14px}
.frontier-desk-heading h3{font:400 29px/1.1 var(--serif);letter-spacing:-.3px}
.frontier-desk-heading .eyebrow{font-size:8px;text-align:right}
.frontier-list{display:grid;gap:14px}
.frontier-card{padding:20px;background:var(--panel);border:1px solid var(--line);border-radius:7px;min-width:0}
.frontier-card-top{display:flex;justify-content:space-between;gap:12px;align-items:baseline}
.frontier-card-top .eyebrow{font-size:8px;color:var(--copper)}
.frontier-card-top .mono{font-size:10px;color:var(--teal);white-space:nowrap}
.frontier-card h4{font:400 27px/1.13 var(--serif);letter-spacing:-.3px;margin:13px 0 10px}
.frontier-card>p{font-size:11px;line-height:1.8;color:var(--muted)}
.frontier-target{font:11px/1.7 var(--mono);color:var(--teal);margin:12px 0 8px}
.frontier-quote{font:10px/1.8 var(--mono);color:var(--muted);border-top:1px solid var(--line);padding-top:12px;margin-top:12px}
.frontier-reward{font-size:11px;color:var(--copper);margin:10px 0 15px;line-height:1.6}
.frontier-actions{display:flex;align-items:center;gap:16px;flex-wrap:wrap}
.frontier-actions>button:first-child{background:var(--soft);border:1px solid var(--line);border-radius:4px;padding:11px 15px;min-height:42px;font-size:11px;color:var(--ink)}
.frontier-actions .text-button{font-size:10px;min-height:38px}
.frontier-card .limiter,.procurement-offer .limiter{font-size:10px;line-height:1.7;color:var(--warning);margin:9px 0 0}
.frontier-receipts{margin-top:20px;padding:15px 18px;border:1px solid var(--line);border-radius:6px}
.frontier-receipts summary{font-size:11px;color:var(--teal);cursor:pointer;min-height:24px}
#frontier-receipts{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:12px;margin-top:14px}
.frontier-receipt{padding:13px;background:var(--panel);border-radius:5px}
.frontier-receipt strong{display:block;font:400 22px/1.2 var(--serif);margin-bottom:8px}
.frontier-receipt span{font:9px/1.7 var(--mono);color:var(--copper)}
.frontier-receipt p{font-size:10px;line-height:1.8;color:var(--muted);margin-top:8px}
.procurement-stock{display:flex;flex-wrap:wrap;align-items:center;gap:18px 36px;margin:20px 0 24px;padding:19px 21px;background:var(--panel);border:1px solid var(--line);border-radius:7px}
.procurement-stock>div{min-width:150px}.procurement-stock .eyebrow{display:block;font-size:8px}
.procurement-stock strong{font:28px var(--mono);display:block;margin:10px 0 7px;color:var(--teal)}
.procurement-stock p{font-size:11px;color:var(--muted);line-height:1.8}
.procurement-stock>.caption{flex:1 1 240px;max-width:620px}
.procurement-offers{display:grid;grid-template-columns:1fr 1fr;gap:20px}
.procurement-offer{padding:21px;background:var(--panel);border:1px solid var(--line);border-radius:7px;min-width:0}
.procurement-offer h3{font:400 31px/1.2 var(--serif);margin:9px 0 12px}
.procurement-offer>p{font:11px/1.8 var(--mono);color:var(--muted)}
.procurement-offer>div{margin:16px 0;display:grid;grid-template-columns:1fr 1fr;gap:8px 12px}
.procurement-offer button{min-height:44px;padding:11px;text-align:left;font-size:11px;border:1px solid var(--line);border-radius:4px;background:var(--soft)}
.procurement-offer .limiter{grid-row:2;margin:0}
.procurement-offer small{font-size:9px;line-height:1.7;color:var(--copper)}
.procurement-orders{margin-top:17px;display:grid;grid-template-columns:1fr 1fr;gap:14px}
.procurement-order{padding:17px;border:1px solid var(--line);border-radius:6px}
.procurement-order>div{display:flex;justify-content:space-between;align-items:baseline;gap:12px;margin-bottom:12px}
.procurement-order strong{font-size:11px;font-weight:400}.procurement-order .mono{font-size:9px;color:var(--teal);white-space:nowrap}
.recipe-controls{display:flex;justify-content:space-between;gap:25px;align-items:center;margin:21px 0;padding:20px;border:1px solid var(--line);border-radius:7px;background:var(--panel)}
.recipe-controls:empty{display:none}.recipe-controls h3{font:400 28px/1.15 var(--serif);margin:8px 0 10px}
.recipe-controls p{font-size:11px;line-height:1.8;color:var(--muted);max-width:350px}
.recipe-options{display:flex;gap:8px;flex:1;justify-content:flex-end;flex-wrap:wrap}
.recipe-options button{flex:1 1 140px;max-width:260px;padding:12px 15px;background:var(--bg);border:1px solid var(--line);border-radius:5px;text-align:left;min-height:48px;font-size:11px}
.recipe-options button[aria-pressed=true]{border-color:var(--teal);background:var(--soft)}
.recipe-options strong{display:block;font-size:12px;font-weight:400;color:var(--teal);margin-bottom:6px}
.recipe-options span{display:block;font:9px/1.7 var(--mono);color:var(--muted)}
.controller-comparison{margin-top:13px}.controller-comparison>div{display:flex;justify-content:space-between;gap:10px;margin:8px 0;font:9px/1.6 var(--mono);color:var(--muted)}
.controller-comparison dd{margin:0;color:var(--teal)}
#campus-notice strong{font-weight:400;color:var(--ink)}
@media(max-width:900px){.recipe-controls{display:block}.recipe-options{margin-top:17px;justify-content:flex-start}.recipe-options button{max-width:none}}
@media(max-width:660px){.frontier-columns,.procurement-offers,.procurement-orders{grid-template-columns:1fr}.frontier-desk-heading h3{font-size:27px}.frontier-card,.procurement-offer{padding:17px}.frontier-intro{font-size:11px}.frontier-card-top{flex-wrap:wrap;gap:4px}.frontier-desk-heading .eyebrow{font-size:7px}.frontier-actions>button:first-child{width:100%;min-height:44px}.frontier-actions .text-button{font-size:11px}.frontier-card .limiter,.procurement-offer .limiter{font-size:11px}.procurement-offer>div{grid-template-columns:1fr}.procurement-offer .limiter{grid-row:auto}.procurement-stock{padding:17px;gap:17px}.procurement-stock>div{min-width:0;flex:1 1 100px}.procurement-stock .eyebrow{line-height:1.8}.procurement-stock>.caption{flex-basis:100%}.procurement-order>div{flex-wrap:wrap;gap:7px}.recipe-options{flex-direction:column}.recipe-options button{flex-basis:auto}.recipe-controls{padding:17px}.recipe-options span{font-size:10px}}

.history-programme{padding:18px;border:1px solid var(--line);border-radius:6px;background:var(--panel);margin:0 0 20px}.history-programme>p{margin:0 0 10px;color:var(--muted)}.history-programme>button{padding:10px 14px;border:1px solid var(--teal);border-radius:4px;color:var(--teal);margin-bottom:10px}.history-row>div{min-width:0}.history-actions{display:grid;gap:10px}.history-row button{white-space:normal}.history-study{margin:14px 0;padding:14px;border-left:2px solid var(--copper);background:var(--panel)}.history-study>p{margin:6px 0 10px}.history-study>button{padding:10px 12px;border:1px solid var(--teal);color:var(--teal);border-radius:4px}.history-study .limiter{margin-bottom:0}

.history-study:focus-visible{outline:2px solid var(--teal);outline-offset:4px}.history-study>button{margin:4px 8px 4px 0}.history-evidence{color:var(--teal)!important}.history-programme progress{display:block;width:100%;margin:12px 0}

@media(max-width:660px){.history-row{grid-template-columns:36px minmax(0,1fr);gap:12px}.history-actions{grid-column:2;grid-template-columns:repeat(2,minmax(0,1fr))}}

/* The creator signature keeps the existing source credits and model notes. */
.app-footer.creator-footer{display:block}.app-footer .creator-footer-top,.app-footer .creator-footer-bottom{display:flex;justify-content:space-between;align-items:center;gap:18px;width:auto}.app-footer .creator-footer-top{margin-bottom:16px}.creator-credit{display:flex;align-items:center;flex-wrap:wrap;gap:5px;font-size:13px}.creator-credit a{display:inline-flex;align-items:center;gap:7px;font-weight:600}.creator-credit svg{width:17px;height:17px;flex-shrink:0}.creator-model{color:var(--ink)}.creator-footer-top em{font:400 19px var(--serif);color:var(--copper)}@media(max-width:660px){.app-footer .creator-footer-top,.app-footer .creator-footer-bottom{flex-direction:column;align-items:start;gap:14px}.app-footer .creator-footer-top{margin-bottom:19px}}

/* One optional instrument manual; existing actions remain the player's choice. */
.header-tools{flex-wrap:wrap;justify-content:flex-end;min-width:0}.help-explain{display:inline-block;margin:5px 8px 7px 0;padding:5px 9px;border:1px solid var(--line);border-radius:4px;color:var(--teal);font:10px/1.4 var(--mono);min-height:30px}.help-explain:hover{border-color:var(--teal)}.help-invitation{display:flex;align-items:center;gap:14px;margin:14px 0 19px;font-size:11px;color:var(--muted)}.help-invitation button{color:var(--teal);border-bottom:1px solid var(--teal);padding:5px 0}.help-target{outline:2px solid var(--teal)!important;outline-offset:7px;scroll-margin-block:110px}.help-target:focus{outline:2px solid var(--teal)!important}#help-navigation-note{padding:10px;border-left:2px solid var(--teal);margin-block:14px}
#lab-companion{position:fixed;z-index:20;right:22px;top:22px;width:420px;max-width:calc(100vw - 32px);max-height:calc(100dvh - 44px);display:flex;flex-direction:column;border:1px solid var(--teal);border-radius:12px;background:var(--panel);color:var(--ink);box-shadow:0 14px 60px #0007}#lab-companion[hidden]{display:none}.companion-header{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:20px 22px 15px;border-bottom:1px solid var(--line)}.companion-header .eyebrow{font-size:8px;letter-spacing:.12em;color:var(--copper)}#companion-title{font:400 35px/1.05 var(--serif);margin:7px 0 0}#companion-close{width:38px;height:38px;flex-shrink:0;border:1px solid var(--line);border-radius:50%;font-size:23px;color:var(--ink)}.companion-scroll{padding:17px 22px 24px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:var(--teal) var(--panel)}#lab-companion p,#lab-companion li{font-size:12px;line-height:1.7}#lab-companion .caption{font-size:10px;color:var(--muted)}.companion-prompts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:14px 0 19px}.companion-prompts button{border:1px solid var(--line);border-radius:5px;padding:9px 7px;font:10px/1.5 var(--font);min-height:58px;color:var(--muted)}.companion-prompts button[aria-pressed=true]{border-color:var(--teal);background:var(--soft);color:var(--teal)}#companion-context{color:var(--copper);font-size:8px;margin-bottom:8px}#companion-action-title{font:400 27px/1.15 var(--serif);margin-bottom:14px}#lab-companion h4{font:400 20px/1.25 var(--serif);margin:12px 0 9px}#companion-reasons{padding-left:19px;margin:12px 0}#companion-reasons li{margin-bottom:8px}.companion-values{margin-block:12px}.companion-values>div{display:grid;grid-template-columns:1fr auto;column-gap:12px;padding:8px 0;border-bottom:1px solid var(--line);font:10px/1.5 var(--mono)}.companion-values dd{margin:0;color:var(--teal);text-align:right;overflow-wrap:anywhere}.companion-values small{grid-column:1/-1;color:var(--muted);line-height:1.6;margin-top:3px}.companion-links{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}.companion-links button{border:1px solid var(--line);border-radius:4px;color:var(--teal);padding:9px 11px;font-size:11px;min-height:38px;text-align:left}.companion-links .paper-notes{border:0;color:var(--copper);padding:3px 0;font-size:10px}#companion-current{font-size:10px;color:var(--muted);margin:12px 0}#lab-companion details{margin-top:12px;border:1px solid var(--line);border-radius:5px;padding:12px}#lab-companion summary{font:11px/1.6 var(--mono);color:var(--copper);cursor:pointer}#companion-opening-count{display:block;font-size:9px;color:var(--muted);margin-top:3px}#companion-opening-steps{padding-left:22px}#companion-opening-steps>li{padding:9px 0;border-bottom:1px solid var(--line)}#companion-opening-steps>li>span{color:var(--copper);font:9px var(--mono)}#companion-opening-steps>li.is-earned>span{color:var(--teal)}#companion-opening-steps h4{font-size:19px}#lab-companion details button{min-height:34px;text-align:left;color:var(--teal);font-size:10px;padding:6px 0}#lab-companion .paper-notes{display:block;color:var(--copper)}.help-meter{display:grid;grid-template-columns:1fr auto;gap:4px;margin-bottom:10px;font:10px var(--mono);color:var(--muted)}.help-meter strong{font-weight:400;color:var(--teal)}.help-meter meter{width:100%;height:9px;grid-column:1/-1;accent-color:var(--teal)}.help-duty-strip{display:flex;min-height:9px;border-radius:3px;overflow:hidden;margin:12px 0}.help-duty-strip span:nth-child(1){background:var(--copper)}.help-duty-strip span:nth-child(2){background:var(--teal)}.help-duty-strip span:nth-child(3){background:var(--warning)}#companion-wordbook label{display:block;color:var(--muted);font-size:10px;margin:12px 0 6px}#companion-search{width:100%;padding:10px;border:1px solid var(--line);border-radius:4px;background:var(--bg);color:var(--ink);font-size:12px}#companion-search-status{display:block;margin-top:8px}#companion-glossary>div{padding:12px 0;border-bottom:1px solid var(--line)}#companion-glossary dt{font-size:12px;color:var(--teal);margin-bottom:4px}#companion-glossary dd{margin:0;font-size:11px;line-height:1.7;color:var(--muted)}#lab-companion :focus-visible{outline:2px solid var(--teal);outline-offset:3px}
@media(max-width:660px){#lab-companion{top:12px;right:12px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 102px)}.companion-header{padding:16px}#companion-title{font-size:31px}.companion-scroll{padding:14px 16px 20px}.companion-prompts button{font-size:10px;min-height:62px}.help-invitation{align-items:start;flex-direction:column;gap:3px}.help-explain{min-height:38px}.header-tools{gap:8px}}
@media(max-width:400px){.instrument-readouts .readout:nth-child(2) .readout-value{font-size:clamp(11px,3.2vw,14px);letter-spacing:-.7px;white-space:nowrap}}
