:root{font:15px/1.5 Arial,Helvetica,sans-serif;color:#123e35;background:#f3f0e4;font-synthesis:none;--ink:#123e35;--muted:#526b60;--line:#c6ccbc;--gold:#ecc66f;--orange:#aa4b27;--paper:#f3f0e4}
*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,input,select,summary,a{touch-action:manipulation}a{color:#175e52;text-underline-offset:3px}button{color:var(--ink);background:#fffdf1;border:1px solid #a6b4a1;border-radius:4px;padding:10px 13px;font-weight:700;cursor:pointer}button:hover{border-color:var(--ink)}button:disabled{opacity:.4;cursor:default}input,select{max-width:100%;color:var(--ink);background:#fffdf3;border:1px solid #8c9f8c;border-radius:3px;min-height:40px;padding:7px 9px}input[type=range]{width:100%;accent-color:#1b6656;cursor:pointer;border:0;background:transparent;padding:0;min-height:32px;margin:4px 0}button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible,a:focus-visible{outline:3px solid var(--orange);outline-offset:4px}h1,h2,h3,p{margin-top:0}h2,h3{line-height:1.2;letter-spacing:-.025em}.skip-link{position:absolute;top:-100px;left:20px;background:white;padding:12px;z-index:200}.skip-link:focus{top:10px}.flow-app{max-width:1390px;margin:auto;padding:25px 32px 35px}.intro{display:grid;grid-template-columns:1.1fr 1fr;align-items:end;gap:55px;margin-bottom:20px}.eyebrow{font:700 10px/1.5 ui-monospace,Consolas,monospace;letter-spacing:.1em;text-transform:uppercase;margin-bottom:9px}.intro h1{font-size:clamp(36px,4.9vw,65px);letter-spacing:-.055em;line-height:1.02;margin:0}.intro h1 em{font-family:Georgia,serif;color:var(--orange);font-weight:400;letter-spacing:-.055em}.intro>div>p:not(.eyebrow){max-width:530px;font-size:16px;line-height:1.6;margin-bottom:0}.intro .scope{font-size:10px!important;color:var(--muted);margin-top:10px}.contract{border-block:1px solid var(--line);padding:11px 0;font-size:12px;line-height:1.6;margin-bottom:20px}.notice{border:1px solid #b58d43;background:#fff0c9;padding:11px 14px;font-size:13px;line-height:1.5}.error{background:#f5dfd0;border-color:#aa4b27}.experiment{border:1px solid #8fa88e;border-radius:7px;background:#f9f7ec;overflow:hidden}.experiment-heading{display:flex;align-items:center;justify-content:space-between;gap:25px;padding:18px 22px 8px}.experiment-heading h2{font-size:27px;margin-bottom:4px}.day-stamp{display:grid;text-align:right;font-size:11px;white-space:nowrap}.day-stamp strong{font:700 25px/1.2 ui-monospace,Consolas,monospace}.first-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;padding:9px 22px 16px}.first-actions button{font-size:12px;background:var(--gold);border-color:#b99a52;box-shadow:0 2px #c2aa6c}.first-actions button:first-child{background:var(--ink);color:#fff7dc;border-color:var(--ink);box-shadow:0 2px #8fa88e}.first-actions span{font-size:10px;color:var(--muted);flex:1;min-width:200px;max-width:265px;margin-left:auto}.factory-floor{background:#163f37;padding:8px 18px 9px}#floor{display:block;width:100%;height:auto;max-height:300px}.scene-key{font:9px/1.5 ui-monospace,Consolas,monospace;color:#c3d6c6;margin:4px 0 0}.stage-totals{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-bottom:1px solid var(--line);background:#e4e8d8}.stage-totals>div{padding:13px 19px;border-right:1px solid #b8c6af}.stage-totals>div:last-child{border:0}.stage-totals span{font-size:11px;display:block;line-height:1.4}.stage-totals p{font:11px/1.5 ui-monospace,Consolas,monospace;margin:4px 0 0}.stage-totals strong{font-size:23px;letter-spacing:-.04em;margin-left:3px}.stage-totals i{font-style:normal;color:#7b8c73;margin:0 7px}.answer{padding:17px 22px 19px;border-left:5px solid var(--orange)}.answer h3{font-size:23px;margin-bottom:6px}.answer p{font-size:13px;line-height:1.6;margin-bottom:4px;max-width:1000px}.answer .small,.small{font-size:11px;line-height:1.5;color:var(--muted)}.answer .small{margin-bottom:0}.lower-bench{display:grid;grid-template-columns:minmax(245px,.8fr) minmax(0,2.2fr);gap:33px;margin-top:28px}.settings h2{font-size:23px;margin-bottom:20px}.settings label{display:block;font-size:13px;font-weight:700;margin-bottom:7px}.settings .field>label{display:flex;justify-content:space-between;gap:10px}.settings output{font-size:15px;font-variant-numeric:tabular-nums}.field{border-bottom:1px solid var(--line);margin-bottom:17px;padding-bottom:12px}.field p,.settings details p,.common-need p{font-size:11px;line-height:1.6;color:var(--muted);margin:4px 0 9px}.settings .number-label{font-size:10px;margin-top:9px}.settings input[type=number]{width:100%;margin-bottom:5px}.settings details label{font-size:12px;margin-top:11px}.settings details{font-size:12px}.settings summary{padding:7px 0}.settings .common-need{border-top:1px solid var(--line);padding-top:15px;margin-top:15px}.keep-actions{display:flex;gap:6px;flex-wrap:wrap;margin-top:15px}.keep-actions button{font-size:10px;padding:8px 9px}.kept{margin-top:10px}.inspection{min-width:0}.timeline{border:1px solid var(--line);border-radius:6px;padding:20px 22px;background:#f8f6eb}.section-heading{display:flex;justify-content:space-between;align-items:start;gap:18px}.section-heading h2{font-size:24px;margin-bottom:10px}.view-buttons{display:flex;gap:4px;flex-wrap:wrap;justify-content:end}.view-buttons button{font-size:10px;white-space:nowrap;padding:8px 9px}.view-buttons [aria-pressed=true]{background:var(--ink);color:#fff9e5;border-color:var(--ink)}#plot{display:block;width:100%;height:auto;touch-action:pan-y;cursor:crosshair}.plot-key{display:flex;gap:20px;align-items:center;flex-wrap:wrap;font-size:11px;color:var(--muted);margin:5px 0 14px}.plot-key span{display:flex;align-items:center;gap:5px}.plot-key i{width:25px;height:0;display:block}.line-a{border-top:3px dashed #967636}.line-b{border-top:3px solid #125c50}.plot-key span:last-child{margin-left:auto}.timeline>label{display:flex;justify-content:space-between;font-size:13px;font-weight:700}.timeline output{font:700 18px/1 ui-monospace,Consolas,monospace}.gesture-note{font-size:10px;line-height:1.5;color:var(--muted);margin:0 0 14px}.daily-ledger{border-top:1px solid var(--line);padding-top:14px}.daily-ledger h3{font-size:17px;margin-bottom:9px}.daily-ledger p{font-size:12px;line-height:1.6;margin-bottom:6px}#balanceEquation{font:700 14px/1.6 ui-monospace,Consolas,monospace;overflow-wrap:anywhere}.batch-trace{margin-top:22px;border-top:2px solid var(--ink);padding-top:18px}.batch-trace label{display:block;font-size:10px;margin-bottom:4px}.batch-trace select{font-size:11px;max-width:180px;min-height:35px}.trace-steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin:9px 0 12px}.trace-step{border:1px solid var(--line);border-radius:4px;padding:11px 10px;background:#eceee0;min-width:0}.trace-step strong{display:block;font-size:11px;line-height:1.4}.trace-step span{display:block;font:11px/1.5 ui-monospace,Consolas,monospace;margin-top:7px}.trace-step.active{border:2px solid #a97f30;padding:10px 9px;background:#f7e6b8}.trace-step.done{border-color:#4d8068}.batch-trace>p{font-size:12px;line-height:1.6;margin-bottom:5px}.batch-trace>p.small{font-size:11px}.why{display:grid;grid-template-columns:1fr 1.8fr;gap:55px;border-top:1px solid var(--line);padding-top:23px;margin-top:30px}.why h2{font-size:29px}.why p:not(.eyebrow),.methods p,.methods li{font-size:14px;line-height:1.7;max-width:900px}.methods{border-top:1px solid var(--line);padding:7px 0 16px;font-size:13px}.methods h2{font-size:25px;margin-top:15px}.methods p{overflow-wrap:anywhere}summary{font-weight:700;cursor:pointer;line-height:1.5;padding:8px 0}details[open]>summary{margin-bottom:9px}.table-scroll{overflow:auto;max-height:350px;margin-top:13px}table{width:100%;border-collapse:collapse;text-align:right;font-size:11px}th,td{padding:8px;border-bottom:1px solid var(--line);font-variant-numeric:tabular-nums}thead th{position:sticky;top:0;background:#e2e6d5}caption{text-align:left;font-size:11px;color:var(--muted);padding-bottom:8px}.save{display:flex;align-items:start;justify-content:space-between;gap:30px;border-top:1px solid var(--line);padding-top:20px;margin-top:7px}.save strong{font-size:17px}.save p{max-width:540px;font-size:11px;line-height:1.6;color:var(--muted);margin-top:7px}.save>div:last-child{display:flex;align-items:center;justify-content:end;gap:10px;flex-wrap:wrap;font-size:11px}.save button{font-size:11px}.save a[aria-disabled=true]{color:var(--muted)}[hidden]{display:none!important}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:1000px){.flow-app{padding:22px}.intro{gap:28px}.intro h1{font-size:51px}.first-actions span{flex-basis:100%;max-width:none;margin-left:0}.stage-totals strong{font-size:20px}.lower-bench{gap:22px;grid-template-columns:minmax(220px,.8fr) minmax(0,1.8fr)}.section-heading{flex-wrap:wrap;gap:4px}.view-buttons{justify-content:start;margin-bottom:8px}.timeline{padding:17px}.save{flex-wrap:wrap;gap:12px}}
@media(max-width:680px){.flow-app{padding:20px 17px 28px}.intro{grid-template-columns:1fr;gap:15px}.intro h1{font-size:48px}.intro>div>p:not(.eyebrow){font-size:14px;line-height:1.6}.contract{font-size:11px;margin-bottom:17px}.experiment-heading{padding:15px 14px 6px;gap:10px}.experiment-heading .eyebrow{font-size:8px}.experiment-heading h2{font-size:22px}.day-stamp strong{font-size:20px}.day-stamp span{font-size:10px}.first-actions{padding:8px 14px 13px;gap:6px}.first-actions button{font-size:10px;padding:9px}.first-actions span{font-size:9px;min-width:0}.factory-floor{padding:9px 3px 7px}.scene-key{padding:0 9px;font-size:8px}#floor{min-height:110px}.stage-totals>div{padding:10px 8px}.stage-totals span{font-size:9px;min-height:38px}.stage-totals p{font-size:9px}.stage-totals strong{font-size:16px;display:inline-block}.stage-totals i{display:block;font-size:0;line-height:3px;margin:0}.answer{padding:14px 13px}.answer h3{font-size:20px}.answer p{font-size:12px}.answer .small{font-size:10px}.lower-bench{display:flex;flex-direction:column;gap:23px;margin-top:24px}.settings h2{font-size:23px}.settings{display:grid;grid-template-columns:1fr 1fr;gap:0 18px}.settings>.eyebrow,.settings>h2,.settings>details,.settings>.common-need,.settings>.keep-actions{grid-column:1/-1}.settings .field label{font-size:12px;flex-wrap:wrap;gap:2px}.settings output{font-size:13px}.field p{font-size:10px}.settings .number-label{font-size:9px}.field{margin-bottom:8px}.settings details label{margin-top:8px}.settings .common-need{padding-top:12px;margin-top:10px}.settings .common-need input{max-width:150px}.timeline{padding:16px 12px}.section-heading h2{font-size:22px}.plot-key{font-size:10px;gap:13px}.plot-key span:last-child{width:100%;margin-left:0}.daily-ledger p{font-size:11px}#balanceEquation{font-size:12px}.batch-trace{margin-top:19px}.trace-steps{gap:4px}.trace-step{padding:8px 5px}.trace-step.active{padding:7px 4px}.trace-step strong{font-size:10px}.trace-step span{font-size:10px;overflow-wrap:anywhere}.batch-trace>p{font-size:12px}.why{grid-template-columns:1fr;gap:0;margin-top:24px}.why h2{font-size:27px}.why p:not(.eyebrow),.methods p,.methods li{font-size:13px}.methods ol{padding-left:20px}.save{gap:10px}.save>div:last-child{justify-content:start;font-size:11px}.save button{font-size:10px}th,td{padding:7px 5px;font-size:10px}}
.settings-result{grid-column:1/-1;font-size:12px;line-height:1.6;padding:11px 12px;background:#e3e8d8;border-left:3px solid #a97f30}.see-outcome{grid-column:1/-1;font-size:11px;padding:8px 10px;margin:0 0 12px;justify-self:start}.experiment{scroll-margin-top:115px}.trace-actions{display:flex;gap:5px;flex-wrap:wrap;margin:8px 0 12px}.trace-actions button{font-size:10px;padding:7px 9px}.quick-answer{flex:1;min-width:250px;max-width:520px;margin-left:auto;font-size:12px}.quick-answer strong{font-size:13px;line-height:1.4;display:block}.quick-answer p{font-size:11px;margin:3px 0}.quick-answer small{font-size:9px;color:var(--muted)}
.plan-key{font-size:12px;color:var(--muted);margin:4px 22px 2px}
.factory-guide{margin:15px 22px 19px;padding:18px 20px;background:#e9edda;border:1px solid #acbba1;border-left:4px solid #a97f30;scroll-margin-top:115px}.guide-heading{display:flex;justify-content:space-between;align-items:center;gap:20px}.guide-heading h2{font-size:23px;margin-bottom:10px}.guide-heading>button,#factoryGuideNext,#factoryGuideResume{background:var(--ink);color:#fff7dc;border-color:var(--ink)}.guide-heading>button{white-space:nowrap;font-size:12px}#factoryGuideTitle{scroll-margin-top:115px}#factoryGuideTitle:focus-visible{outline:3px solid var(--orange);outline-offset:4px}#factoryGuideBody p{font-size:14px;line-height:1.6;max-width:1000px;margin-bottom:10px}.guide-reading{display:flex;flex-wrap:wrap;gap:10px 24px;padding:11px 0;border-block:1px solid #bdc7ae;margin:11px 0}.guide-reading p{margin:0!important;font-size:12px!important}.guide-reading strong{display:block;font:700 23px/1.3 ui-monospace,Consolas,monospace}.guide-steps,.guide-exit{display:flex;flex-wrap:wrap;gap:8px}.guide-steps{margin-top:14px}.guide-steps button{font-size:12px}.guide-exit{margin-top:12px}.guide-exit button{font-size:10px;padding:8px 10px;background:transparent}.guide-outcome{font-weight:700}.guide-scope{font-size:11px!important;color:var(--muted)}
@media(max-width:680px){.factory-guide{margin:13px;padding:14px}.guide-heading{display:block}.guide-heading h2{font-size:21px}.guide-heading>button{margin:1px 0 12px}#factoryGuideBody p{font-size:12px}.guide-reading{gap:9px 16px}.guide-reading p{font-size:10px!important}.guide-reading strong{font-size:20px}.guide-steps button{font-size:11px;flex:1}.guide-exit button{font-size:10px}.guide-scope{font-size:10px!important}}
@media(max-width:680px){.quick-answer{flex-basis:100%;min-width:0;margin-left:0;margin-top:4px;order:-1}.quick-answer strong{font-size:12px}.quick-answer p{font-size:11px}.plan-key{font-size:11px;margin:4px 14px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
#experimentTitle:focus-visible{outline:3px solid var(--orange);outline-offset:4px}
#factoryGuideFigure{margin:14px 0}#factoryGuideFigure .factory-floor{border-radius:5px}#factoryGuideFigure #floor{max-height:250px}#factoryGuideNavigation{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-top:14px}#factoryGuideNavigation .guide-steps,#factoryGuideNavigation .guide-exit{margin-top:0}@media(max-width:680px){#factoryGuideNavigation{display:block}#factoryGuideNavigation .guide-exit{margin-top:10px}.factory-guide .guide-reading strong{font-size:18px}#factoryGuideFigure .factory-floor{padding:8px 3px}}
.guide-heading > #factoryGuideStart { min-height: 44px; }
@media (max-width: 360px) {
  .intro h1 { font-size: 39px; }
  .contract { padding-block: 9px; margin-bottom: 14px; }
}
