:root{color-scheme:light;font-family:"Segoe UI",Arial,sans-serif;color:#203c34;background:#f7f9f5;--paper:#fff;--ink:#203c34;--muted:#4e655b;--teal:#12664f;--soft:#eaf3eb;--rule:#cedbd0;--amber:#ad5920}
*{box-sizing:border-box}
body{margin:0;min-width:300px}
[hidden]{display:none!important}
button,input,textarea,select{font:inherit}
button,a,input,select,textarea,summary{touch-action:manipulation}
button,a,summary{ -webkit-tap-highlight-color:transparent }
button{border:1px solid #b6cabd;background:#fff;color:var(--ink);border-radius:7px;padding:.6rem .85rem;font-weight:600;cursor:pointer;line-height:1.3}
button:hover,button[aria-pressed=true],.selected{background:var(--soft);border-color:var(--teal)}
button:disabled{cursor:default;opacity:.5}
.primary{background:var(--teal);border-color:var(--teal);color:white}
.primary:hover{background:#0d513f;color:white}
.quiet{background:transparent;color:var(--teal)}
a{color:var(--teal);text-underline-offset:3px}
:focus-visible{outline:3px solid #c47f2d;outline-offset:3px}
input,textarea,select{border:1px solid #9fb6a8;background:#fff;border-radius:6px;padding:.65rem .75rem;color:var(--ink);max-width:100%}
textarea{width:100%;min-height:85px;resize:vertical;line-height:1.5}
input:not([type=checkbox]):not([type=range]),select{width:100%;min-height:39px}
input[type=range]{width:100%;padding:0;accent-color:var(--teal)}
input[type=checkbox]{accent-color:var(--teal);width:17px;height:17px}
label{display:block;font-size:.9rem;line-height:1.45;font-weight:600;margin:.9rem 0 .35rem}
p{line-height:1.55;margin:.5rem 0 1rem}
.subtle,.figure-note,.step-footer span,.bench-heading span{color:var(--muted);font-size:.83rem}
h1,h2,h3,p,td,dd,dt{overflow-wrap:anywhere}
h1,h2,h3{margin:0}
h1{font-size:clamp(1.04rem,1.6vw,1.45rem);letter-spacing:-.025em}
h2{font-family:Georgia,"Times New Roman",serif;font-size:clamp(1.85rem,3.5vw,3.05rem);line-height:1.1;letter-spacing:-.035em}
h3{font-size:1.22rem;line-height:1.35}
.mast{background:#fff;border-bottom:1px solid var(--rule)}
.mast-inner,.shell{max-width:1380px;margin:auto;padding:0 clamp(15px,4vw,58px)}
.mast-inner,.brand,.bench-heading,.step-footer,.inline,.play-controls,.toggles{display:flex;align-items:center;gap:10px}
.mast-inner{justify-content:space-between;min-height:78px}
.teacher-link{display:inline-flex;align-items:center;justify-content:center;min-height:44px;flex-shrink:0;padding:0 .75rem;border:1px solid var(--rule);border-radius:7px;font-size:.875rem;font-weight:600;text-decoration:none}
.teacher-link:hover{background:var(--soft);border-color:var(--teal)}
.brand{gap:12px}
.skip{position:fixed;left:8px;top:-100px;background:white;padding:12px;z-index:4}
.skip:focus{top:8px}
.step-nav{margin-top:25px}
.step-nav ol{list-style:none;padding:0;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:7px;margin:0}
.step-nav button{display:flex;align-items:center;gap:8px;width:100%;padding:9px 6px;border:0;border-bottom:3px solid var(--rule);border-radius:0;background:transparent;text-align:left;color:#52645b;font-weight:500;font-size:.88rem}
.step-nav button[aria-current=step]{border-color:var(--teal);color:var(--teal);font-weight:700}
.step-nav .step-number{display:grid;place-items:center;min-width:23px;height:23px;border:1px solid #b1c4b7;border-radius:50%;font-size:.79rem}
.step-nav button[aria-current=step] .step-number,.step-nav button.complete .step-number{background:var(--teal);color:white;border-color:var(--teal)}
.step-title{padding:24px 0 20px}
.step-title p{color:var(--teal);font-weight:650;font-size:.83rem;margin:0 0 7px}
.workspace{display:grid;grid-template-columns:minmax(0,1.04fr) minmax(0,1fr);gap:20px;align-items:start}
.workspace.experiment{grid-template-columns:minmax(0,.9fr) minmax(0,1.25fr)}
.paper,.figure-card,.bench,.delivery-card,.desk-card{background:#fff;border:1px solid var(--rule);border-radius:11px;min-width:0;padding:clamp(17px,2.2vw,28px)}
.figure-card{background:#edf4eb}
.figure-card svg{display:block;width:100%;max-height:235px;margin:4px auto}
.cab{fill:#2f755b}.start-cab{fill:#aa541f;stroke:#fff;stroke-width:2}
.givens,.readouts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.givens{margin:14px 0 0;border-top:1px solid #c0d2c1;padding-top:11px}
.givens dt,.readouts small{font-size:.79rem;color:var(--muted)}
.givens dd,.readouts strong{display:block;margin:2px 0 0;font-size:1.3rem;font-weight:650;font-variant-numeric:tabular-nums}
details{margin:16px 0 2px;padding-top:12px;border-top:1px solid var(--rule)}
summary{cursor:pointer;color:var(--teal);font-weight:650;font-size:.91rem}
#predictionCanvas{width:100%;height:230px;touch-action:none;background:#fbfdfb;border:1px solid var(--rule);border-radius:6px;margin:10px 0;cursor:crosshair}
.inline,.toggles,.play-controls{flex-wrap:wrap}
.field-grid{display:grid;gap:8px}.three{grid-template-columns:repeat(3,minmax(0,1fr))}
table{border-collapse:collapse;width:100%;font-size:.88rem;margin:12px 0}
th,td{text-align:left;padding:6px 5px;border-bottom:1px solid #d9e3d9}
th{font-weight:600;color:#446052}
td button{padding:5px 9px}
.measure-table{table-layout:fixed}
.reading{border-left:3px solid #bd7734;padding:6px 10px;background:#fcf6ec;color:#604323;font-size:.88rem}
.test-block{margin:16px 0}
.case-options{display:flex;gap:8px;margin:10px 0;flex-wrap:wrap}
.case-options button{flex:1;text-align:left}
.case-options small{display:block;font-weight:400;margin-top:3px;white-space:normal}
.compare-table{table-layout:fixed}.compare-table th:first-child{width:20%}.compare-table input{padding:6px}
.equation{margin:14px 0 8px;padding:12px 14px;background:var(--soft);border-radius:6px}
.equation figcaption{font-size:.8rem;color:var(--muted);margin-bottom:5px}
.equation div,.formula{font:1.5rem Georgia,serif}
.bench{padding:15px}.bench-heading,.step-footer{justify-content:space-between}.bench-heading h3{font-size:1.05rem}
.readouts{border-top:1px solid var(--rule);border-bottom:1px solid var(--rule);padding:9px 0;margin:10px 0}.readouts div:nth-child(2) strong{color:var(--amber)}
.stage{border:1px solid var(--rule);border-radius:6px;overflow:hidden;min-width:0}
.stage-head{display:grid;grid-template-columns:1fr 1fr;background:#f5f8f2;color:var(--muted);font-size:.73rem}
.stage-head div{padding:6px 8px}.stage-head.single-view{grid-template-columns:1fr}
#ggb{width:100%;min-width:0;height:330px;overflow:hidden;background:#fff}
#ggb>.applet_scaler{transform:none!important;width:100%!important;height:100%!important}
#ggb .appletParameters{width:100%!important;height:100%!important}
.view-switch{display:none;gap:6px;margin-bottom:8px}
.bench.single .view-switch{display:flex}
.play-controls{margin:10px 0}.play-controls label,.toggles label{margin:0;font-size:.82rem;font-weight:500}
.play-controls #timeNumber{width:78px}.toggles{gap:5px 12px}.toggles label{display:inline-flex;align-items:center;gap:4px}
.param{display:grid;grid-template-columns:minmax(0,1fr) 70px;gap:4px 10px;align-items:center}.param label{grid-column:1/-1}
#advanced output{float:right;color:var(--teal)}#advanced #speed{width:auto}
.step-footer{flex-wrap:wrap;padding:17px 0 26px;gap:12px}
.step-footer span{margin-right:auto}.step-footer #previous[hidden]+span{margin-left:0}
.wide{width:100%}.review{margin:15px 0}.review ul{list-style:none;margin:.3rem 0;padding:0}
.review li button{border:0;border-radius:0;width:100%;display:flex;justify-content:space-between;border-bottom:1px solid var(--rule);font-size:.82rem;padding:6px 0;text-align:left}
.review li span{color:var(--muted);font-weight:400}
#sendStatus{font-size:.88rem;white-space:pre-line}
.error{color:#973825}.success{color:#156448}
#legacy{margin:0 0 20px}
.desk{max-width:1100px;margin:auto;padding:25px 18px}.desk h1{font:normal clamp(1.9rem,3vw,2.5rem) Georgia,serif}.desk-card{margin:16px 0}.desk-line{display:flex;align-items:end;gap:10px;flex-wrap:wrap}.desk-line>div{min-width:170px;flex:1}
.class-code{font:700 1.2rem ui-monospace,monospace;letter-spacing:.07em}
.report-section{border-top:1px solid var(--rule);padding-top:13px;margin-top:16px}
.report-section dt{font-weight:650;font-size:.86rem}.report-section dd{margin:3px 0 13px;white-space:pre-wrap}
.report-section svg{max-width:560px;width:100%;background:#fcfdfb}
.desk li{margin:8px 0}.desk ul{padding-left:19px}.desk small{color:var(--muted)}
@media(max-width:850px){.workspace,.workspace.experiment{grid-template-columns:1fr}.workspace.experiment .paper{order:0}.workspace.experiment .bench{order:1}.step-nav button{flex-direction:column;gap:3px;justify-content:center;text-align:center;font-size:.73rem}.step-nav ol{gap:2px}.figure-card svg{max-height:180px}.step-title{padding:17px 0}.mast-inner{min-height:63px}.brand img{width:31px;height:31px}}
@media(max-width:500px){.shell,.mast-inner{padding-left:12px;padding-right:12px}.mast-inner{gap:5px}.mast-inner .quiet{font-size:.73rem;padding:7px}.mast h1{font-size:.98rem}.step-nav{margin-top:12px}.step-nav button{font-size:.66rem;min-height:49px;line-height:1.15;padding:4px 1px}.step-number{min-width:20px}.three{gap:6px}.three label{font-size:.75rem}.workspace{gap:11px}.step-footer span{flex-basis:100%;order:3}.brand{gap:6px}.step-footer #next{margin-left:auto}.play-controls{gap:6px}.compare-table th,.compare-table td{padding:4px 2px}.desk-line{align-items:stretch}.view-switch button{padding:5px 12px}}
@media print{.mast-inner button,.step-nav,.step-footer,.desk nav,.desk-line,.desk button,.desk details,.no-print{display:none!important}.desk-card{border:0}.report-section{break-inside:avoid}body{background:white}}


.lab-tabs{display:flex;gap:6px;border-bottom:1px solid var(--rule);margin:18px 0 0}
.lab-tabs button{border:0;border-radius:0;border-bottom:3px solid transparent;padding:10px 16px;background:transparent;font-size:1rem}
.lab-tabs [aria-selected=true]{color:var(--teal);border-bottom-color:var(--teal)}
#sheetPanel{max-width:820px;margin:auto}
#workspace{display:block}
#sheetPanel .step-title{padding:21px 0 14px}
#sheetPanel .step-title h2{font-size:clamp(1.65rem,3vw,2.25rem)}
#delivery{margin-top:12px}
#simulation{margin:18px auto;max-width:1100px}
#simulation .bench-heading{padding-bottom:12px}
#simulation h2{font:600 1.1rem "Segoe UI",Arial,sans-serif;letter-spacing:normal}
#returnSheet{margin:14px 0 0}
#delivery #download,#newSheet{margin:6px 8px 0 0}
