:root{color-scheme:light;--paper:#f4f1e8;--ink:#20343d;--blue:#176e92;--line:#c9cdca;--muted:#5d696c;--red:#a9402b;--green:#246347}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font:15px/1.45 'Segoe UI',Arial,sans-serif}button,input,summary{font:inherit}button,a,input,summary{touch-action:manipulation}button,summary,a{cursor:pointer}button{border:1px solid #a7b1b1;background:transparent;color:var(--ink);padding:8px 11px;border-radius:3px;font-size:12px;font-weight:650}button:hover{background:#e5e9e5}button:disabled{opacity:.42;cursor:default}button:focus-visible,a:focus-visible,summary:focus-visible,input:focus-visible{outline:3px solid #287fa7;outline-offset:3px}.foundry{max-width:1420px;margin:auto;padding:18px 30px 20px}.intro{display:grid;grid-template-columns:1.1fr 1fr;gap:50px;align-items:end;margin-bottom:19px;padding-bottom:16px;border-bottom:2px solid var(--ink)}.eyebrow{font:10px/1.4 Consolas,monospace;letter-spacing:.11em;text-transform:uppercase;margin:0 0 9px}.intro h1{font:clamp(35px,3.5vw,48px)/.98 Georgia,serif;letter-spacing:-.035em;margin:0}.intro h1 br{display:none}.premise{font-size:15px;line-height:1.55;max-width:535px;margin:0}.workbench{display:grid;grid-template-columns:minmax(0,1.75fr) minmax(300px,1fr);gap:32px}.apparatus{min-width:0;border:1px solid #b6c2c3;background:#edf1ef;box-shadow:0 4px 0 #d8d9d2;align-self:start}.board-top{display:flex;justify-content:space-between;align-items:center;padding:13px 16px 7px;gap:12px}.board-top h2{font-size:16px;margin:0;font-weight:650}.model-label{font:8px/1.4 Consolas,monospace;letter-spacing:.06em;color:var(--muted);white-space:nowrap}#mechanism{display:block;width:100%;height:clamp(230px,25vh,300px)}.axis{stroke:#aebfc4;stroke-width:1;stroke-dasharray:4 5}.envelope{stroke:var(--blue);stroke-width:1.5;stroke-dasharray:6 5;fill:#dcebf0;fill-opacity:.25}.base-guide{stroke:#7897a2;stroke-width:1;stroke-dasharray:2 4;fill:none}.diagram-label{font:11px Consolas,monospace;fill:var(--ink)}.diagram-small{font:10px Consolas,monospace;fill:#4a666f}.motion-top{display:flex;justify-content:space-between;gap:10px;font:10px/1.4 Consolas,monospace;padding:6px 17px 0}.motion-top span:last-child{font-weight:700;color:var(--blue)}#motionPlot{display:block;width:100%;height:84px}.turn-control{padding:5px 16px 0}.turn-control label,.primary-controls label{display:flex;justify-content:space-between;gap:12px;font-size:12px;font-weight:650}.turn-control output,.primary-controls output{font-family:Consolas,monospace;color:var(--blue);white-space:nowrap}input[type=range]{display:block;accent-color:var(--blue);width:100%;margin:8px 0 12px;min-height:20px}.turn-actions{display:flex;gap:7px;flex-wrap:wrap}.turn-actions button{padding:6px 10px}.playback-note{font-size:10px;color:var(--muted);margin:8px 16px 11px}.brief-panel{padding-top:1px;min-width:0}.result{border-left:3px solid var(--green);padding:0 0 0 14px;min-height:113px;margin:0 0 18px}.result .eyebrow{color:var(--green);margin-bottom:4px}.result h2{font:31px/1.08 Georgia,serif;letter-spacing:-.02em;margin:0 0 7px;max-width:360px}.result p:last-child{font-size:12px;margin:0;max-width:370px}.result[data-state=too-tight]{border-color:var(--red)}.result[data-state=too-tight] .eyebrow{color:var(--red)}.result[data-state=on-limit]{border-color:#88620e}.result[data-state=on-limit] .eyebrow{color:#88620e}.result[data-state=invalid]{border-color:var(--red)}.brief-title{font-size:15px;margin:0 0 12px}.primary-controls input{margin-bottom:15px}.brief-actions{display:flex;gap:7px;flex-wrap:wrap;margin:5px 0 10px}.brief-actions button{font-size:11px}.primary-action{background:var(--ink);color:white;border-color:var(--ink)}.primary-action:hover{background:#36535d}.constraint-note{font-size:10px;color:var(--muted);font-family:Consolas,monospace;margin:0 0 12px;line-height:1.6}.advanced{border-top:1px solid var(--line);padding-top:9px;font-size:11px}.advanced summary{font-size:12px;font-weight:650}.advanced>p{color:var(--muted);margin:8px 0}.expert-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.expert-grid label{display:block;font-size:11px}.expert-grid input{display:block;width:100%;border:1px solid #9faeaf;padding:6px;background:#fffdf7;border-radius:2px;margin-top:4px}.witness-note{font-size:12px;border-left:2px solid var(--blue);padding:9px 11px;background:#e4ecec;margin-bottom:0}.module-footer{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-top:17px;padding-top:11px;border-top:1px solid var(--line)}.module-footer>p{font-size:10px;color:var(--muted);margin:0}.module-footer>div{display:flex;gap:16px;align-items:center;flex-wrap:wrap}.module-footer button,.module-footer a{font-size:11px;border:0;padding:2px 0;text-decoration:underline;text-underline-offset:3px;color:var(--ink)}.state-notice{background:#f7e6b9;padding:9px;font-size:12px}.invalid-drawing{padding:50px 24px;min-height:300px;font-size:16px}dialog{color:var(--ink);background:#fffcf4;border:1px solid #9aa9a9;border-radius:4px;max-width:740px;width:calc(100% - 40px);max-height:85vh;padding:24px 28px}dialog::backdrop{background:#13242ec2}.dialog-head{display:flex;justify-content:space-between;gap:20px;align-items:start}.dialog-head button{flex-shrink:0}dialog h2{font:34px/1.1 Georgia,serif;letter-spacing:-.03em;margin:9px 0 18px}dialog h3{font-size:16px;margin-top:23px}dialog p{font-size:14px;line-height:1.65}dialog details{font-size:13px}dialog a{color:var(--blue)}.skip-link{position:fixed;top:-100px;left:12px;z-index:10000;background:#fff;padding:10px;color:var(--ink)}.skip-link:focus{top:8px}.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}[hidden]{display:none!important}
@media(max-width:850px){.foundry{padding:17px 18px 22px}.intro{gap:20px;grid-template-columns:1fr 1fr}.intro h1{font-size:36px}.intro h1 br{display:block}.premise{font-size:13px}.workbench{gap:20px;grid-template-columns:minmax(0,1.2fr) minmax(260px,1fr)}.board-top{display:block}.model-label{display:block;margin-top:3px}.result h2{font-size:27px}.module-footer{align-items:start}.module-footer>div{gap:10px}.diagram-label{font-size:13px}.diagram-small{font-size:12px}}
@media(max-width:650px){.foundry{padding:15px 16px 23px}.intro{grid-template-columns:1fr;gap:10px;margin-bottom:14px;padding-bottom:13px}.intro h1{font-size:36px}.intro h1 br{display:none}.intro .eyebrow{font-size:8px}.premise{font-size:13px;line-height:1.5}.workbench{display:flex;flex-direction:column;gap:18px}.apparatus{width:100%}.board-top{display:flex;padding:10px 11px 0}.board-top h2{font-size:13px}.model-label{font-size:7px;margin:0;max-width:75px;white-space:normal;text-align:right}#mechanism{height:230px}#motionPlot{height:74px}.motion-top{font-size:8px;padding-inline:11px}.turn-control{padding-inline:11px}.turn-control label{font-size:11px}.turn-actions button{font-size:10px;padding:6px 9px}.playback-note{font-size:9px;margin-inline:11px}.result{min-height:0;margin-bottom:15px}.result h2{font-size:29px;max-width:none}.result p:last-child{max-width:none}.primary-controls{display:grid;grid-template-columns:1fr 1fr;gap:0 18px}.primary-controls label{font-size:11px}.primary-controls label[for=envelopeMm],#envelopeMm{grid-column:1/-1}.primary-controls label[for=riseDeg]{grid-column:2;grid-row:1}#riseDeg{grid-column:2;grid-row:2}.primary-controls input{margin-top:5px;margin-bottom:10px}.primary-controls label[for=strokeMm]{grid-column:1;grid-row:1}#strokeMm{grid-column:1;grid-row:2}.brief-actions{margin-top:0}.brief-title{font-size:14px}.module-footer{display:block}.module-footer>div{margin-top:10px;gap:17px}dialog{padding:18px 16px;width:calc(100% - 28px)}dialog h2{font-size:28px}.witness-note{font-size:11px}.diagram-label{font-size:15px}.diagram-small{font-size:13px}}
@media(max-width:360px){.foundry{padding:13px 12px 20px}.intro h1{font-size:32px}.premise{font-size:12px}#mechanism{height:210px}#motionPlot{height:68px}.board-top h2{font-size:12px}.result h2{font-size:26px}.expert-grid{gap:9px}.primary-controls{gap:0 12px}.turn-actions{gap:5px}.turn-actions button{padding:6px;font-size:9px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}
.diagram-label{font-size:11px}.diagram-small{font-size:10px}#pressureLabel{font-size:10px}#mechanism[data-state=too-tight] .envelope{stroke:var(--red)}
.mobile-overview:empty{display:none}.apparatus .witness-note{margin:10px 16px}#inputError{color:var(--red);font-size:12px;border-left:2px solid var(--red);padding-left:9px}#setupLink[aria-disabled=true]{color:var(--muted);cursor:default;text-decoration:none}
@media(max-width:650px){.mobile-overview{margin:0 0 13px}.mobile-overview .result{padding-left:11px;margin-bottom:9px}.mobile-overview .result h2{font-size:27px}.mobile-overview .result .eyebrow{font-size:8px}.mobile-overview .result p:last-child{font-size:11px;line-height:1.45}.mobile-overview .brief-actions{margin:0}.mobile-overview .brief-actions button{font-size:10px;padding:7px 9px}.apparatus .witness-note{margin-inline:11px}}
/* Phase inspection keeps the requested motion and the turning outline together. */
.phase-controls{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1px;margin:1px 16px 8px;border:1px solid #b7c4c3;border-radius:3px;overflow:hidden;background:#b7c4c3}.phase-controls button{display:flex;justify-content:space-between;align-items:center;gap:4px;min-height:35px;padding:6px 9px;border:0;border-radius:0;background:#f5f5ed;font-size:10px;font-weight:400}.phase-controls strong{font-weight:650}.phase-controls span{font:9px Consolas,monospace;color:var(--muted)}.phase-controls button[aria-pressed=true]{background:#d8e8eb;box-shadow:inset 0 -3px var(--blue)}.phase-controls button:focus-visible{outline-offset:-3px}.phase-controls button:disabled{opacity:1;color:#8b9290;background:#ecefe9}.phase-controls button:disabled span{color:#8b9290}.motion-top #motionPhase{color:var(--ink);font-weight:400}
@media(max-width:650px){.phase-controls{margin-inline:11px}.phase-controls button{flex-direction:column;gap:1px;min-height:41px;padding:5px 2px}.phase-controls span{font-size:8px}.motion-top{font-size:9px;flex-wrap:wrap}}

/* V1: visible radius reasoning and direct inspection of the same turn. */
.apparatus{border-radius:5px;box-shadow:0 3px 0 #d8d9d2,0 12px 28px #20343d08;overflow:hidden;}
.board-top{border-bottom:1px solid #ced8d6;background:#f8f8ef;padding:11px 16px;}
#mechanism{cursor:grab;touch-action:none;height:260px;}
#motionPlot{cursor:crosshair;touch-action:none;}
#mechanism.scrubbing{cursor:grabbing;}
#mechanism:focus-visible,#motionPlot:focus-visible{outline:3px solid var(--blue);outline-offset:-3px;}
.scene-help{font:10px/1.45 'Segoe UI',Arial,sans-serif;color:#45616a;margin:1px 16px 7px;}
.radius-proof{margin-top:11px;}
.radius-equation{display:flex;align-items:center;justify-content:space-between;gap:7px;font:10px/1.25 'Segoe UI',Arial,sans-serif;}
.radius-equation span b{display:block;font:650 15px/1.5 Consolas,monospace;}
.radius-equation span:first-child b{color:#355761;}
.radius-equation span:nth-child(3) b{color:#8a5a07;}
.radius-equation strong{font:650 16px/1.2 Consolas,monospace;white-space:nowrap;}
#radiusBudget{display:block;width:100%;height:42px;}
.result{min-height:0;margin-bottom:12px;}
.result p.sizing-cause{font:11px/1.5 'Segoe UI',Arial,sans-serif;color:#4f656c;max-width:none;}
.brief-actions{padding-bottom:12px;margin-bottom:13px;border-bottom:1px solid var(--line);}
.application-note{max-width:900px;margin:20px 0 0;color:#52646a;font-size:12px;line-height:1.6;}
.application-note strong{color:var(--ink);}
@media(min-width:1000px){.foundry .intro{gap:32px;margin-bottom:16px;padding-bottom:13px;}.foundry .premise{font-size:14px;}.foundry .intro h1{font-size:42px;}.workbench{gap:26px;}}
@media(max-width:650px){
 #mechanism{height:244px;}.scene-help{margin-inline:11px;font-size:10px;}.radius-proof{margin-top:8px;}.radius-equation{margin-block:7px 0;}.result p.sizing-cause{font-size:11px;}.mobile-overview .brief-actions{padding-bottom:10px;margin-bottom:0;}.application-note{font-size:11px;}
}
@media(max-width:360px){#mechanism{height:226px;}.radius-equation span b{font-size:14px;}.radius-equation strong{font-size:15px;}}

/* Keep the existing company navigation compact beside the phone instrument. */
@media(max-width:650px){body:has(>.foundry)>.launch-bar{display:flex;flex-wrap:nowrap;align-items:center;gap:12px;min-height:48px;padding:6px 12px;}body:has(>.foundry)>.launch-bar .launch-brand img{width:84px;height:auto;}body:has(>.foundry)>.launch-bar nav{gap:11px;flex-wrap:nowrap;}body:has(>.foundry)>.launch-bar nav a{font-size:11px;padding:8px 0;}body:has(>.foundry)>.launch-bar .launch-contact{display:none;}body:has(>.foundry)>.launch-module-context{margin-top:8px;margin-bottom:8px;}}

#mechanism,#motionPlot{user-select:none;}

/* Edition 1.2: a guided mechanism and its live movement, in one workshop. */
.apparatus{background:#f4f6ee;border-color:#b3c3c0;border-radius:8px;box-shadow:0 4px 0 #d6dcd4,0 17px 36px #263f4910}
.board-top{padding:13px 17px;background:#fbfaf1;border-color:#c4d0c9}
.board-top h2{font-size:15px;letter-spacing:-.2px}
.model-label{font-size:8px;color:#4d676d}
.linked-workshop{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,.9fr);align-items:stretch}
.machine-instrument{min-width:0;background:#edf2eb}
#mechanism{height:400px}
.axis{stroke:#a7b8ba;stroke-width:1;stroke-dasharray:3 7}
.envelope{stroke-width:1.5;stroke-dasharray:7 5;fill:#d7e6e7;fill-opacity:.22}
.base-guide{stroke:#637e85;stroke-width:1;stroke-dasharray:2 4;fill:none;opacity:.85}
.rotor-datum{stroke:#795b28;stroke-width:1.3;stroke-dasharray:3 3;opacity:.75}
.guide-leader{fill:none;stroke:#6c858b;stroke-width:1;stroke-dasharray:2 3}
#guideLabel{font-size:10px;fill:#405d66}
#followerLabel{font-size:11px;fill:#2c505e}
#pressureLabel{font-size:10px;fill:#176e92}
.lift-dimension{fill:none;stroke:#176e92;stroke-width:1.2}
.lift-dimension-label{font-size:10px;fill:#176e92;paint-order:stroke;stroke:#edf3ef;stroke-width:4px;stroke-linejoin:round}
#turnHint{text-anchor:middle;font-size:9px}
.scene-specs{display:flex;justify-content:space-between;flex-wrap:wrap;gap:7px 12px;padding:10px 14px 12px;border-top:1px solid #d0dbd4;font:10px/1.5 Consolas,monospace;color:#3d5f68;background:#f7f8ee}
.scene-specs>span{display:flex;gap:7px;align-items:center}
.scene-specs i{display:inline-block;width:12px;height:12px;border:1.5px dashed #176e92;border-radius:50%;flex:none}
.scene-specs .base-key i{border-color:#637e85;border-width:1px;width:10px;height:10px}
.machine-instrument:has(#mechanism[data-state=too-tight]) .envelope-key{color:#a9402b}
.machine-instrument:has(#mechanism[data-state=too-tight]) .envelope-key i{border-color:#a9402b}
.program-instrument{padding:20px 17px 15px;border-left:1px solid #c4d3cf;background:linear-gradient(135deg,#eff4ed,#e6eeea);min-width:0}
.instrument-label{font:9px/1.5 Consolas,monospace;letter-spacing:.08em;text-transform:uppercase;color:#4c6b70;margin:0 0 18px}
.program-instrument .motion-top{display:flex;flex-direction:column;gap:7px;padding:0;margin-bottom:8px}
.program-instrument #motionPhase{font:12px/1.5 'Segoe UI',Arial,sans-serif}
.program-instrument #liftReadout{font:600 23px/1.2 Consolas,monospace;color:#176e92;letter-spacing:-.7px}
#motionPlot{height:150px}
.phase-controls{grid-template-columns:repeat(2,minmax(0,1fr));margin:10px 0 0;border-color:#b2c6bf;border-radius:4px;background:#b2c6bf}
.phase-controls button{min-height:43px;padding:9px;flex-direction:row;background:#f7f9f0;font-size:11px}
.phase-controls strong{font-weight:600}
.phase-controls strong b{font-weight:400;color:#4c6e78;margin-left:4px}
.phase-controls button[aria-pressed=true]{background:#d7e8e1;box-shadow:inset 3px 0 #176e92}
.phase-controls button[aria-pressed=true] strong{color:#12536a}
.phase-controls button[data-phase=rise] b{color:#946520}
.phase-controls button[data-phase=high-dwell] b{color:#386f5d}
.phase-controls button[data-phase=return] b{color:#346b8e}
.phase-controls button[data-phase=low-dwell] b{color:#6b7971}
.program-instrument .scene-help{font-size:11px;line-height:1.7;color:#415f66;margin:17px 0 0}
.turn-control{padding:13px 17px 0;border-top:1px solid #c4d3cf;background:#f6f7ef}
.turn-control label{font-size:12px}
.turn-control input{margin-bottom:10px}
.turn-actions{gap:8px}
.turn-actions button{min-height:36px;font-size:11px;padding:8px 12px}
#play{background:#214954;color:#fffdf1;border-color:#214954}
#play:hover{background:#326471}
.playback-note{line-height:1.6;margin:9px 17px 14px}
.brief-panel .result{padding:17px 19px;border:1px solid #b6cbbd;border-left:3px solid #347960;border-radius:6px;background:linear-gradient(135deg,#fbfaf2,#edf3e9)}
.result h2{font-size:32px;line-height:1.08;margin:4px 0 11px}
.result #resultDetail{font-size:13px;line-height:1.65;max-width:none;margin:0}
.result .radius-proof{padding-top:12px;border-top:1px solid #cad7cb;margin-top:15px}
.radius-equation{font-size:10px;margin-top:0;gap:8px}
.radius-equation span b{font-size:17px}
.radius-equation strong{font-size:16px}
.result p.sizing-cause{font-size:11px;line-height:1.65;margin-top:5px}
.result[data-state=too-tight]{background:linear-gradient(135deg,#fcf8ed,#f7e8db);border-color:#d5b19a;border-left-color:#b55f3c}
.result[data-state=on-limit]{background:linear-gradient(135deg,#fbf7e9,#f3ecd7);border-color:#ceba84;border-left-color:#a27b2e}
.result[data-state=invalid]{background:#f8ece1;border-color:#b9785e}
.brief-actions{gap:7px;padding-bottom:16px;margin:0 0 18px}
.brief-actions button{min-height:40px;line-height:1.4;padding:9px 12px;font-size:11px}
.brief-title{font-size:16px;margin-bottom:15px}
.primary-controls label{font-size:12px}
.primary-controls input{min-height:24px;margin:8px 0 16px}
.advanced{font-size:12px;padding-top:13px}
.advanced summary{min-height:30px}
.advanced>p{line-height:1.65}
.expert-grid input{min-height:37px}
.apparatus .witness-note{font-size:12px;line-height:1.65;margin:0;padding:13px 15px;background:#e3eeeb;border-top:1px solid #bdd1ca;border-left:0}
@media(max-width:1120px) and (min-width:651px){
 .workbench{grid-template-columns:minmax(0,1.65fr) minmax(300px,1fr);gap:22px}
 .linked-workshop{grid-template-columns:1fr}
 #mechanism{height:340px}
 .program-instrument{border-left:0;border-top:1px solid #c4d3cf;display:grid;grid-template-columns:1fr 1fr;gap:0 20px}
 .instrument-label,.program-instrument .motion-top{grid-column:1}
 #motionPlot{grid-column:2;grid-row:1/4;height:140px}
 .phase-controls{grid-column:1/-1;grid-template-columns:repeat(4,minmax(0,1fr));margin-top:12px}
 .program-instrument .scene-help{grid-column:1/-1;margin-top:12px}
}
@media(max-width:650px){
 .foundry{padding:15px 14px 22px}
 .intro{margin-bottom:13px;padding-bottom:12px;gap:9px}
 .intro h1{font-size:34px;line-height:1.02}
 .premise{font-size:12px;line-height:1.65}
 .board-top{padding:12px}
 .board-top h2{font-size:13px;max-width:205px;line-height:1.35}
 .linked-workshop{display:block}
 #mechanism{height:300px}
 .scene-specs{padding:10px 12px;font-size:10px;gap:8px}
 .program-instrument{padding:16px 12px;border-left:0;border-top:1px solid #c4d3cf}
 .instrument-label{margin-bottom:10px;font-size:9px}
 .program-instrument .motion-top{flex-direction:row;align-items:center;gap:10px}
 .program-instrument #motionPhase{font-size:11px;max-width:170px}
 .program-instrument #liftReadout{font-size:17px;white-space:nowrap}
 #motionPlot{height:106px}
 .phase-controls{grid-template-columns:repeat(4,minmax(0,1fr));margin-top:7px}
 .phase-controls button{flex-direction:column;gap:3px;font-size:11px;min-height:47px;padding:8px 3px}
 .phase-controls strong b{margin-left:2px}
 .phase-controls span{font-size:9px}
 .program-instrument .scene-help{font-size:11px;line-height:1.65;margin-top:13px}
 .turn-control{padding:12px}
 .turn-actions button{font-size:11px;min-height:40px;padding:9px 10px}
 .playback-note{font-size:10px;line-height:1.6;margin:0 12px 12px}
 .mobile-overview .result{padding:13px 14px;margin-bottom:10px;border:1px solid #b6cbbd;border-left:3px solid #347960;border-radius:5px;background:#f4f7ec}
 .mobile-overview .result[data-state=too-tight]{background:#fbefe0;border-color:#d5b19a;border-left-color:#b55f3c}
 .mobile-overview .result[data-state=on-limit]{background:#f6efdb;border-color:#ceba84;border-left-color:#a27b2e}
 .mobile-overview .result #resultDetail{font-size:12px;line-height:1.6}
 .mobile-overview .result h2{font-size:27px;margin-bottom:9px}
 .mobile-overview .result .radius-proof{padding-top:9px;margin-top:10px}
 .mobile-overview .brief-actions button{font-size:11px;min-height:40px;padding:8px 10px}
 .mobile-overview .brief-actions{padding-bottom:12px;gap:7px}
 .radius-equation span b{font-size:15px}
 .radius-equation strong{font-size:15px}
 .apparatus .witness-note{font-size:12px;padding:12px;line-height:1.65}
 #followerLabel{font-size:10px}#pressureLabel{font-size:9.5px}
}
@media(max-width:360px){
 .intro h1{font-size:30px}
 .program-instrument .motion-top{align-items:start;flex-direction:column;gap:5px}
 .program-instrument #motionPhase{max-width:none}
 .program-instrument #liftReadout{font-size:19px}
 .board-top .model-label{font-size:7px;max-width:70px}
}
.narrow-label{display:none}
.result-explanation{margin:0}
.result-explanation>summary{display:none}
@media(max-width:650px){
 .intro .eyebrow{display:none}
 .premise{font-size:11px;line-height:1.6}
 .mobile-overview .result{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:3px 9px;align-items:center;padding:11px 12px}
 .mobile-overview .result>.eyebrow{grid-column:1/-1;margin:0;font-size:8px}
 .mobile-overview .result h2{font-size:23px;margin:0;line-height:1.12}
 .result-explanation>summary{display:list-item;font-size:11px;font-weight:600;color:#205b6b;min-height:28px;padding:6px 0;cursor:pointer}
 .result-explanation[open]{grid-column:1/-1;margin-top:5px}
 .result-explanation[open]>summary{margin-bottom:7px}
 .mobile-overview .brief-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;padding-bottom:11px}
 .mobile-overview .brief-actions button{font-size:10px;padding:7px 4px;min-height:40px;text-align:center}
 .wide-label{display:none}
 .narrow-label{display:inline}
 #mechanism{height:280px}
 .board-top h2{font-size:12px}
}
@media(max-width:360px){.mobile-overview .result h2{font-size:22px}}

/* Presentation 1.3: actual interference and the active movement, in one bench. */
.apparatus{border-color:#9eb9b3;box-shadow:0 3px 0 #c9d6cf,0 18px 42px #163f4c13}
.board-top{box-shadow:inset 0 2px #416b6a;background:linear-gradient(100deg,#fcfcf3,#eaf0e6)}
.board-top h2{color:#193f49}
#camOutline{stroke:#80571c}
#overflowMaterial{display:none}
#mechanism[data-state=too-tight] #overflowMaterial{display:inline}
#motionPlot [data-trace-phase]{display:none;stroke:#12687f;stroke-width:3.5;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke}
#motionPlot [data-trace-phase][data-active=true]{display:inline}
#plotHalo{fill:#fffdf7;stroke:#176e92;stroke-width:1;opacity:.94}
.program-instrument{background:linear-gradient(125deg,#f4f7ee,#deebe6)}
.phase-controls{border-color:#9db8af;background:#9db8af}
.phase-controls button[aria-pressed=true]{background:#e2f0e8;box-shadow:inset 3px 0 #12687f,inset 0 1px #fff}
.phase-controls button[aria-pressed=true] strong{color:#134d5c}
.foundry button{min-height:44px;transition:background-color .12s,border-color .12s,box-shadow .12s}
.foundry button:enabled:hover{border-color:#577e83;box-shadow:0 2px 5px #244d5b16}
.foundry button:enabled:active{box-shadow:inset 0 2px 3px #244d5b20}
.foundry button:focus-visible,.foundry summary:focus-visible,.foundry input:focus-visible,.foundry a:focus-visible,#methodDialog button:focus-visible{outline:2px solid #12687f;outline-offset:3px}
.foundry .phase-controls button[aria-pressed=true]:hover{box-shadow:inset 3px 0 #12687f,inset 0 1px #fff}
.foundry .module-footer button,.foundry .module-footer a{display:inline-flex;align-items:center;min-height:44px}
#methodDialog button{min-height:44px}
@media(max-width:650px){
 .foundry .mobile-overview .brief-actions button{min-height:44px}
 .foundry .turn-actions{display:flex;flex-wrap:wrap}
 .foundry .turn-actions button{min-height:44px}
 .foundry .phase-controls button{min-height:47px}
 .foundry .advanced summary{min-height:44px;align-content:center}
 .foundry .expert-grid input{min-height:44px}
}
@media(prefers-reduced-motion:reduce){.foundry button{transition:none}}
@media print{.apparatus{box-shadow:none}#overflowMaterial{print-color-adjust:exact}#motionPlot [data-trace-phase]{print-color-adjust:exact}}

/* Original machined hardware surrounds the exact computed face. */
#mechanism{background:#d4e1d9}
#machineHardware{shape-rendering:geometricPrecision}
#camOutline{stroke:#6f4d1b;stroke-width:1.2}
#camSurface{stroke:#fff1be;stroke-width:.65;vector-effect:non-scaling-stroke;paint-order:stroke}
#envelope{fill:none;stroke-width:1.8;filter:drop-shadow(0 1px 0 #fff9)}
#baseGuide{stroke:#775d2d;opacity:.7}
#normal,#normalAxis,#contactArc{filter:drop-shadow(0 1px 1px #f4f5dc)}
#followerLabel,#pressureLabel,#guideLabel,.lift-dimension-label{paint-order:stroke;stroke:#edf2e9;stroke-width:4px;stroke-linejoin:round}
#fixedGuide{filter:drop-shadow(0 3px 1px #0b293a55)}
#followerHead{fill:url(#machinedRim);stroke:#284d56;stroke-width:1}
#tip{fill:#657f81;stroke:#1d424e;stroke-width:.8}
#stem{stroke:#244a56}
.program-instrument{background:linear-gradient(110deg,#eff4e9,#dce8e1);box-shadow:inset 3px 0 9px #234b5020}
#motionPlot{background:linear-gradient(#fffdf2,#e7eee2);border:1px solid #9eb7aa;border-radius:3px;box-shadow:inset 0 2px 8px #21474e18}
@media print{#mechanism{print-color-adjust:exact}}

/* A gold input changes the requested motion; blue inputs inspect the turn. */
.mechanism-frame{position:relative}
.requested-lift-dimension{fill:none;stroke:#94620d;stroke-width:1.4;stroke-dasharray:3 2}
.requested-lift-label{font:600 10px Consolas,monospace;fill:#79500c;paint-order:stroke;stroke:#f1f4e8;stroke-width:4px;stroke-linejoin:round}
.lift-handle{position:absolute;left:51px;transform:translate(-50%,-50%);width:44px;height:44px;display:grid;place-items:center;cursor:ns-resize;touch-action:none;user-select:none;border-radius:50%;z-index:1}
.lift-handle>span{display:grid;place-items:center;width:29px;height:29px;border:2px solid #80540b;border-radius:50%;background:linear-gradient(#fff1bd,#e8bd59);color:#62410a;box-shadow:0 2px 4px #5a441733,inset 0 1px #fff9;font:700 22px/1 'Segoe UI',sans-serif}
.lift-handle:hover>span,.lift-handle.editing>span{background:#ffe4a0;box-shadow:0 0 0 5px #dba54333}
.lift-handle:focus-visible{outline:3px solid #80540b;outline-offset:0}
.direct-lift-help{padding:11px 14px 12px;border-top:1px solid #cad5c9;background:#f6f3e4;display:flex;align-items:start;gap:12px}
.direct-lift-help p{font:11px/1.65 'Segoe UI',Arial,sans-serif;margin:0;flex:1;color:#4d5b50}
.direct-lift-help strong{color:#79500c}
.foundry .direct-lift-help button{flex:none;font-size:10px;padding:7px;max-width:75px;border-color:#b8a97e}
@media(max-width:650px){.direct-lift-help{padding:10px 12px;gap:9px}.direct-lift-help p{font-size:11px}.lift-handle>span{width:30px;height:30px}}
@media print{.lift-handle{display:none}.direct-lift-help{print-color-adjust:exact}}

/* Presentation 1.5: the same motion brief, with its size-setting limits visible. */
.sizing-lab{margin-top:30px;padding:26px;border:1px solid #a6bdb2;border-top:3px solid #315a62;border-radius:6px;background:linear-gradient(120deg,#fcfbf2,#e8efe3);box-shadow:0 3px 0 #d5dfd0,0 16px 38px #24464b0c}
.sizing-lab [hidden]{display:none!important}
.sizing-intro{display:grid;grid-template-columns:1fr 1fr;align-items:end;gap:32px;margin-bottom:24px}
.sizing-intro h2{font:clamp(27px,2.7vw,37px)/1.12 Georgia,serif;letter-spacing:-.025em;margin:0;max-width:430px}
.sizing-intro h2 em{font-weight:400;color:#286371}
.sizing-intro>p{font-size:13px;line-height:1.7;margin:0;max-width:510px;color:#4c6062}
.sizing-grid{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:30px;align-items:start}
.timing-instrument{min-width:0;background:linear-gradient(135deg,#21454d,#102d38);border:1px solid #56787b;border-radius:5px;box-shadow:inset 0 1px #a4b9a33d,0 6px 13px #183a4314;color:#edf1da;padding:20px}
.timing-instrument label{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:13px;font-weight:650}
.timing-instrument output{font:700 22px/1.15 Consolas,monospace;color:#f0ce81}
.timing-instrument input{accent-color:#e6bf68;margin:14px 0 8px;min-height:28px}
.timing-instrument input:focus-visible{outline-color:#f0ce81}
.timing-held{font-size:11px;line-height:1.65;color:#c0d1c5;margin:0 0 17px}
.timing-head{display:flex;justify-content:space-between;align-items:center;gap:12px;padding-top:13px;border-top:1px solid #769b8d66;font-size:12px}
.timing-head small{display:block;min-height:16px;font-size:10px;line-height:1.6;color:#c0d1c5;margin-top:3px}
.timing-head strong{font:700 24px/1.3 Consolas,monospace;color:#f0ce81;white-space:nowrap}
.timing-head strong[data-state=too-tight]{color:#ffbf97}
#timingPlot{display:block;width:100%;height:258px;overflow:visible}
.timing-grid{stroke:#a4bcab33;stroke-width:1}
.timing-tick,.timing-axis{font:11px 'Segoe UI',Arial,sans-serif;fill:#d0ded0}
.timing-axis{font-size:11px;fill:#dfe7d8}
.timing-extra{fill:#e6bd5b20;stroke:none}
.timing-required{stroke:#f0ca76;stroke-width:3;fill:none;stroke-linejoin:round}
.timing-floor{stroke:#9eb7a7;stroke-width:1.4;stroke-dasharray:3 4}
.timing-room{stroke:#82cde1;stroke-width:1.5;stroke-dasharray:9 4}
.timing-cursor{stroke:#e1e9d6;stroke-width:1;stroke-dasharray:2 4;opacity:.6}
#timingDot{fill:#f0ca76;stroke:#fff6da;stroke-width:2}
.timing-key{list-style:none;padding:0;display:flex;flex-wrap:wrap;gap:7px 17px;margin:6px 0 11px;font-size:10px;color:#d7e2d3}
.timing-key li{display:flex;align-items:center;gap:6px}
.timing-key i{display:inline-block;width:19px;border-top:3px solid #f0ca76}
.timing-key .floor-key{border-top:2px dotted #9eb7a7}
.timing-key .room-key{border-top:2px dashed #82cde1}
.timing-window{font-size:10px;line-height:1.65;margin:0;color:#c0d1c5}
.sizing-reason{padding:5px 0;min-width:0}
.sizing-reason h3{font:26px/1.15 Georgia,serif;letter-spacing:-.02em;margin:0 0 9px}
.base-definition{font-size:12px;line-height:1.65;color:#51656a;margin:0 0 18px}
.base-requirement{padding:11px 13px;margin:9px 0;border:1px solid #c5d2c7;border-radius:3px;background:#f8f9ef}
.base-requirement>div:first-child{display:flex;justify-content:space-between;align-items:baseline;gap:10px;font-size:12px;line-height:1.55}
.base-requirement strong{font:650 15px/1.6 Consolas,monospace;white-space:nowrap}
.requirement-track{margin-top:7px;height:7px;border-radius:1px;background:#dae3d8;overflow:hidden}
.requirement-track>span{display:block;height:100%;background:#839e9e}
.base-requirement small{display:block;margin-top:5px;font-size:10px;color:#617171}
.base-requirement[data-active=true]{border-color:#789e98;background:#e4eee2;box-shadow:inset 3px 0 #346c72}
.base-requirement[data-active=true] .requirement-track>span{background:#346c72}
.base-requirement[data-active=true] small{font-weight:650;color:#245760}
.chosen-base{margin:18px 0 14px;font-size:12px;line-height:1.6;color:#51656a}
.chosen-base strong{display:inline-block;margin-top:5px;font:650 clamp(16px,1.6vw,21px)/1.4 Consolas,monospace;color:#294e59}
.timing-consequence{font-size:13px;line-height:1.7;margin:0 0 17px;color:#314e56}
#sizingWitness{font-size:11px;border-color:#719897;background:#f7f8ec}
.sizing-invalid{padding:14px;border-left:3px solid #a9402b;background:#f6e9db;font-size:13px}
@media(max-width:850px){.sizing-lab{padding:21px}.sizing-intro{gap:22px}.sizing-grid{gap:20px;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr)}.timing-instrument{padding:15px}.timing-head{align-items:start;flex-direction:column;gap:4px}.base-requirement>div:first-child{flex-wrap:wrap;gap:0 10px}}
@media(max-width:650px){.sizing-lab{margin-top:24px;padding:17px 12px}.sizing-intro{grid-template-columns:1fr;gap:12px;margin-bottom:18px}.sizing-intro h2{font-size:29px}.sizing-intro>p{font-size:12px}.sizing-grid{grid-template-columns:1fr;gap:23px}.timing-instrument{padding:14px 11px}.timing-instrument label{font-size:12px}.timing-instrument output{font-size:21px}.timing-head{flex-direction:row;align-items:center}.timing-head strong{font-size:23px}.timing-held{font-size:11px;margin-bottom:10px}.timing-key{font-size:10px;gap:8px 13px}.timing-window{font-size:11px}.sizing-reason{padding-inline:2px}.sizing-reason h3{font-size:25px}.base-requirement>div:first-child{flex-wrap:nowrap;font-size:12px}.base-requirement strong{font-size:15px}.chosen-base strong{font-size:17px}.timing-consequence{font-size:12px}#sizingWitness{width:100%;min-height:44px}}
@media print{.timing-instrument{print-color-adjust:exact}.sizing-lab{box-shadow:none}}
/* The export tray keeps the native mechanism and its nominal geometry separate. */
.turn-actions #exportJump{border-color:#789b91;background:#eef2e4;color:#214a4e}
.design-export{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);gap:32px;padding:27px 29px;margin:24px 0;border:1px solid #8da99b;border-top:3px solid #3c716a;background:linear-gradient(110deg,#f9f7e9,#e8eddf);border-radius:4px;scroll-margin-top:100px}
.export-intro h2{font-size:clamp(25px,3vw,36px);font-family:var(--serif,Georgia,serif);font-weight:400;line-height:1.1;margin:10px 0 13px;color:#183e44}
.export-intro>p:last-child,.export-files>p{font-size:13px;line-height:1.65;color:#3d5d58;margin:0}
.export-buttons{display:flex;flex-wrap:wrap;gap:10px;margin:15px 0}
.export-buttons button{min-height:44px;padding:10px 17px;background:#234e52;color:#fff8df;border:1px solid #234e52;border-radius:3px;font-size:13px;font-weight:600}
.export-buttons button+button{background:#f9f5e5;color:#234e52}
.export-buttons button:disabled{opacity:.5;cursor:not-allowed}
.export-files .export-sampling{font-size:11px;color:#57716a;max-width:58ch}
.export-files #exportStatus{margin-top:10px;overflow-wrap:anywhere;font-size:11px;color:#265f50}
.design-export[data-state="too-tight"],.design-export[data-state="invalid"]{border-top-color:#a74931}
.design-export[data-state="too-tight"] #exportSummary,.design-export[data-state="invalid"] #exportSummary{color:#8d3928}
.design-export:focus-visible{outline:3px solid #b67f25;outline-offset:4px}
@media(max-width:780px){.design-export{grid-template-columns:1fr;gap:16px;padding:22px 20px}.export-intro h2{font-size:30px}}
@media(max-width:360px){.design-export{padding:19px 15px}.export-buttons{gap:8px}.export-buttons button{padding:10px 12px}}
/* Kept A and working B: shared physical scale, distinct owned briefs. */
.turn-actions #compareDesigns{border-color:#789b91;background:#eef2e4;color:#214a4e}
.design-comparison{margin:26px 0;padding:28px;border:1px solid #91a999;border-top:3px solid #376f66;border-radius:5px;background:linear-gradient(125deg,#faf8ea,#eef1e4);scroll-margin-top:90px;box-shadow:0 4px 0 #d5ddce,0 15px 40px #173e4408}
.comparison-intro{display:grid;grid-template-columns:1fr 1fr;gap:30px;align-items:end;margin-bottom:18px}.comparison-intro h2{font:400 clamp(29px,3.5vw,43px)/1.06 Georgia,serif;margin:9px 0 0;letter-spacing:-.035em}.comparison-intro h2 em{color:#397064}.comparison-intro>p{font-size:13px;line-height:1.65;margin:0;color:#496159}
.comparison-toolbar{display:flex;gap:9px;flex-wrap:wrap}.comparison-toolbar button{min-height:44px;font-size:12px;padding:9px 13px}.comparison-toolbar #keepDesign{color:#fff8e4;background:#28564f;border-color:#28564f}.comparison-toolbar button:disabled{opacity:.45;cursor:not-allowed}.comparison-memory{font-size:11px;line-height:1.5;color:#627065;margin:10px 0 19px}
.comparison-controls{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 28px;padding:17px 20px;background:#e0e9d9;border:1px solid #b5c5ac;border-radius:3px}.comparison-controls h3{font:400 23px/1.2 Georgia,serif;grid-column:1/-1;margin:0 0 3px}.comparison-controls label{display:flex;justify-content:space-between;align-items:baseline;gap:6px;font-size:12px}.comparison-controls output{font:600 13px Consolas,monospace;white-space:nowrap}.comparison-controls input[type=range]{width:100%;margin:9px 0 0;min-height:26px;accent-color:#337365}.comparison-controls>p{grid-column:1/-1;margin:0;font-size:11px;line-height:1.5;color:#506657}
.comparison-scale{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:15px 0 10px}.comparison-scale p{font:11px/1.5 Consolas,monospace;margin:0;color:#526b61}.comparison-scale button{min-height:44px;font-size:11px;padding:7px 10px;white-space:nowrap}
.comparison-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.comparison-card{min-width:0;border:1px solid #9fb2a1;border-radius:4px;background:#fbfaf0;overflow:hidden;display:flex;flex-direction:column;scroll-margin-top:90px}.comparison-card-head{display:flex;gap:11px;align-items:center;padding:15px 17px;min-height:78px;border-bottom:1px solid #b9c8b5}.comparison-card-head>div{min-width:0}.comparison-card-head p{font:9px/1.2 Consolas,monospace;letter-spacing:.07em;text-transform:uppercase;color:#617260;margin:0 0 4px}.comparison-card-head h3{font:400 25px/1 Georgia,serif;margin:0}.design-letter{display:grid;place-items:center;width:34px;height:34px;flex-shrink:0;border:1px solid #c6a567;border-radius:50%;background:#f2dfac;font:600 19px Georgia,serif}.working-card .design-letter{background:#c1dfcd;border-color:#87b29e}.compare-fit{margin-left:auto;font:600 11px/1.3 'Segoe UI',sans-serif;text-align:right;color:#2f6754}.compare-fit[data-state=too-tight],.compare-fit[data-state=invalid]{color:#963c28}.compare-fit[data-state=on-limit]{color:#8b611a}
.comparison-profile-frame{background:#173e44;min-height:100px}.comparison-profile-frame svg{display:block;width:100%;height:auto}.compare-empty{display:grid;place-items:center;min-height:200px;padding:20px;font-size:13px;line-height:1.6;color:#f4e8c3;text-align:center;margin:0}.comparison-radius{display:flex;justify-content:space-between;align-items:baseline;gap:8px;padding:12px 17px;border-bottom:1px solid #cbd4bf;background:#edf0df}.comparison-radius>span{font-size:11px;color:#526b5b}.comparison-radius>strong{font:600 clamp(18px,2.3vw,28px)/1.2 Consolas,monospace;white-space:nowrap}
.compare-output{padding:16px 17px;display:flex;flex-direction:column;flex:1}.compare-output .profile-output-title{font:10px/1.4 Consolas,monospace;letter-spacing:.035em;text-transform:uppercase;color:#6a765f;margin:0 0 8px}.compare-output>p:not(.profile-output-title){font-size:12px;line-height:1.65;color:#435e50;margin:0}.compare-output .export-buttons{margin-top:auto;padding-top:15px;margin-bottom:0}.compare-output .export-buttons button{font-size:12px;padding:10px 13px}.compare-output #exportStatus{font-size:10px;margin-top:8px;overflow-wrap:anywhere}.comparison-key{font-size:11px;line-height:1.55;color:#5a6d5f;margin:12px 0 0}
.comparison-experiment{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:27px;margin:23px 0;padding-top:22px;border-top:1px solid #b8c8b0}.comparison-reading .eyebrow{margin:0 0 10px}#comparisonConclusion{font:400 21px/1.4 Georgia,serif;margin:0 0 12px}#comparisonChanges{font:11px/1.6 Consolas,monospace;color:#58705d;margin:0;overflow-wrap:anywhere}.comparison-trace-head{font-size:11px;display:flex;gap:8px;flex-direction:column;margin-bottom:10px}.comparison-trace-head>strong{font-weight:600}.comparison-trace-head>span{display:flex;align-items:center;gap:7px;color:#5a705d}.trace-a-key{width:20px;border-top:2px dashed #a67c27;margin-right:1px}.trace-b-key{width:20px;border-top:2px solid #357666;margin-left:9px}#comparisonTrace svg{display:block;width:100%;height:auto;min-height:110px}#comparisonTrace text{font:12px 'Segoe UI',sans-serif;fill:#526b5d}.compare-trace-a{fill:none;stroke:#a67c27;stroke-width:2.4;stroke-dasharray:6 4}.compare-trace-b{fill:none;stroke:#357666;stroke-width:2.3}
.comparison-exact{font-size:12px;border-block:1px solid #c1ceb6;padding:12px 0}.comparison-exact summary{cursor:pointer}.comparison-exact table{width:100%;border-collapse:collapse;margin-top:15px;font-size:12px;table-layout:fixed}.comparison-exact th,.comparison-exact td{text-align:left;padding:8px 5px;border-bottom:1px solid #d5ddc9;overflow-wrap:anywhere}.comparison-exact th:first-child{width:42%}.comparison-exact tr[data-changed=true]{background:#e1ecd9;font-weight:600}.comparison-limit{font-size:11px;line-height:1.65;color:#64715f;margin:16px 0 0;max-width:100ch}.comparison-status{font-size:12px;line-height:1.5;overflow-wrap:anywhere;color:#285f4c;margin:12px 0 0}.comparison-status:empty{display:none}.design-comparison:focus-visible,.comparison-card:focus-visible{outline:3px solid #b67f25;outline-offset:4px}
@media(max-width:850px){.comparison-card-head{padding:12px;gap:8px}.comparison-card-head h3{font-size:22px}.compare-fit{font-size:10px}.compare-output{padding:13px}.comparison-radius{padding:11px 13px}.comparison-controls{gap:12px 18px}}
@media(max-width:650px){.design-comparison{padding:19px 13px}.comparison-intro{grid-template-columns:1fr;gap:12px}.comparison-intro h2{font-size:34px}.comparison-intro>p{font-size:12px}.comparison-toolbar{gap:7px}.comparison-toolbar button{font-size:11px;padding:8px 10px}.comparison-memory{font-size:10px}.comparison-controls{grid-template-columns:1fr;padding:14px;gap:10px}.comparison-controls h3{font-size:23px}.comparison-controls input[type=range]{margin-top:1px}.comparison-scale{align-items:start;gap:8px}.comparison-scale p{font-size:10px}.comparison-pair{gap:9px}.comparison-card-head{flex-wrap:wrap;gap:6px;padding:10px 8px;min-height:89px}.design-letter{width:26px;height:26px;font-size:16px}.comparison-card-head h3{font-size:19px}.comparison-card-head p{font-size:7px}.compare-fit{width:100%;text-align:left;margin-left:0;font-size:10px}.comparison-radius{display:block;padding:9px}.comparison-radius>span{font-size:10px}.comparison-radius>strong{display:block;font-size:18px;margin-top:4px}.compare-output{padding:10px 8px}.compare-output .profile-output-title{font-size:8px;min-height:25px}.compare-output>p:not(.profile-output-title){font-size:10px;line-height:1.5}.compare-output .export-buttons{gap:7px}.compare-output .export-buttons button{width:100%;padding:8px 5px;font-size:10px}.comparison-key{font-size:10px}.comparison-experiment{grid-template-columns:1fr;gap:22px;margin:20px 0}#comparisonConclusion{font-size:21px}.comparison-exact table{font-size:10px}.comparison-exact th,.comparison-exact td{padding:8px 3px}.comparison-exact th:first-child{width:37%}.compare-empty{min-height:100px;font-size:10px;padding:8px}.comparison-limit{font-size:10px}}
@media print{.comparison-toolbar,.comparison-controls,.comparison-scale button,.compare-output .export-buttons{display:none}.comparison-card{break-inside:avoid}.design-comparison{box-shadow:none}}
.comparison-controls-head{grid-column:1/-1;display:flex;justify-content:space-between;align-items:center;gap:10px}.comparison-controls-head h3{margin:0}.comparison-controls-head button{min-height:44px;font-size:11px;padding:8px 11px;white-space:nowrap}
.comparison-profile-frame{display:flex;justify-content:center;align-items:center}.comparison-profile-frame svg{max-width:400px}
.comparison-error{padding:11px 13px;border-left:3px solid #a3472c;background:#f5e7ce;color:#843820;font-size:13px;line-height:1.55;margin:13px 0}
@media(max-width:650px){.comparison-controls{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 15px}.comparison-controls>div:nth-of-type(4){grid-column:1/-1}.comparison-controls label{font-size:11px;gap:3px}.comparison-controls output{font-size:11px}.comparison-controls-head h3{font-size:22px}.comparison-controls-head button{font-size:10px;padding:7px}.comparison-controls>p{font-size:10px}.comparison-intro{margin-bottom:14px}.comparison-memory{margin-bottom:14px}}
/* Local A/B file recovery uses the existing comparison palette. */
.comparison-files{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px 28px;margin:22px 0;padding:20px;background:#e8efe0;border:1px solid #b0c5b2;border-top:3px solid #397c68;border-radius:4px}.comparison-files>div{min-width:0}.comparison-files .eyebrow{font-size:9px;color:#47664f;margin:0 0 8px}.comparison-files h3{font-size:27px;font-weight:500;letter-spacing:-.5px;color:#1d4842;margin:0 0 9px}.comparison-files p{font-size:12px;line-height:1.65;color:#4b6656;margin:8px 0}.comparison-file-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}.comparison-file-actions button{min-height:44px;padding:9px 13px;font-size:12px}.comparison-files #saveComparison{background:#214f47;border:1px solid #214f47;color:#fffbea}.comparison-files #saveComparison:disabled{background:#d5e0cb;border-color:#b9c9b1;color:#52634c}.comparison-files label{display:block;font-size:12px;font-weight:600;color:#294f41;margin:2px 0 9px}.comparison-files input[type=file]{display:block;box-sizing:border-box;width:100%;min-width:0;min-height:44px;max-width:100%;border:1px solid #adc0a8;border-radius:3px;font:11px/1.6 'Segoe UI',sans-serif;color:#345c4d;background:#f8faf1;padding:5px}.comparison-files input::file-selector-button{min-height:34px;padding:6px 9px;margin-right:8px;border:1px solid #a3b69c;border-radius:2px;background:#eef3e7;color:#244f41;cursor:pointer}.comparison-files input:focus-visible,.comparison-files button:focus-visible{outline:3px solid #986b21;outline-offset:3px}.comparison-files #comparisonFileHelp{font-size:11px;color:#4d6855}.comparison-files .comparison-file-status{grid-column:1/-1;margin:0;padding-top:8px;border-top:1px solid #bdcdb3;font-size:12px;color:#235e48;overflow-wrap:anywhere}.comparison-file-status:empty{display:none}
@media(max-width:650px){.comparison-files{grid-template-columns:minmax(0,1fr);padding:16px 13px;gap:17px;margin:18px 0}.comparison-files h3{font-size:25px}.comparison-file-actions button{font-size:11px;padding:8px 11px}.comparison-files input[type=file]{font-size:11px}}
@media print{.comparison-files{display:none}}

/* The follower and its live trace share one bench. */
.foundry .board-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:9px 16px;
}
.playback-controls{display:flex;align-items:center;gap:7px}
.foundry .playback-controls button{font-size:12px;line-height:1;padding:0 12px;white-space:nowrap}
.foundry .playback-controls #play{background:#174b58;border-color:#174b58;color:#fffdf1}
.foundry .playback-controls #play:enabled:hover{background:#276479}
.foundry .playback-controls #pause{background:#f7f8ef;color:#244751}

.program-instrument{
  display:block;
  padding:16px;
  border-color:#345761;
  background:linear-gradient(150deg,#214650,#142f3a);
  box-shadow:none;
  color:#f2f7ee;
}
.trace-heading,.program-instrument .motion-top{
  display:flex;
  flex-flow:row nowrap;
  justify-content:space-between;
  align-items:center;
  gap:8px;
}
.trace-heading{margin-bottom:5px}
.program-instrument .instrument-label{
  margin:0;
  color:#c4dcd9;
  font:600 10px/1.4 Consolas,monospace;
  letter-spacing:.09em;
}
#traceAngle{color:#d9ede8;font:600 13px/1.2 Consolas,monospace}
.program-instrument #motionPhase{max-width:none;color:#e3edea}
.program-instrument #liftReadout{color:#9eeaf0;white-space:nowrap;font-size:19px}
#motionPlot{
  background:#102a34;
  border-color:#72939a;
  border-radius:5px;
  box-shadow:inset 0 2px 8px #06182066;
}
.trace-band[data-phase-band=rise]{fill:#51492f}
.trace-band[data-phase-band=high-dwell]{fill:#2b4b41}
.trace-band[data-phase-band=return]{fill:#27475b}
.trace-band[data-phase-band=low-dwell]{fill:#2c4149}
.trace-grid{stroke:#819fa4;stroke-width:1;opacity:.52}
.trace-axis{font:10px Consolas,monospace;fill:#d4e6e8}
.trace-line{stroke:#bfd1d0;stroke-width:1.5}
#motionPlot [data-trace-phase]{stroke:#8de7ef;stroke-width:2.8}
#plotCursor{stroke:#9eeaf0;stroke-width:1}
#plotHalo{fill:#163744;stroke:#9eeaf0}
#plotPoint{fill:#90ddeb;stroke:#e8f8f5;stroke-width:1.3}
#motionPlot:focus-visible{outline-color:#9eeaf0}
.program-instrument .scene-help{color:#d4e8e6;margin-top:11px}

.scene-specs{justify-content:flex-start;gap:8px 20px;border-top:1px solid #b6c8be}
.scene-specs .model-label{margin:0;color:#45636b}
.foundry .direct-lift-help{align-items:center}
.foundry .direct-lift-help button{max-width:none;white-space:nowrap}
.turn-actions{display:flex;flex-wrap:wrap}
.result .brief-actions{margin:12px 0 0;padding:0;border:0}
.brief-panel .brief-title{margin-top:16px}

@media(min-width:960px) and (max-width:1120px){
  .linked-workshop{grid-template-columns:minmax(0,1.2fr) minmax(0,.9fr)}
  .program-instrument{border-top:0;border-left:1px solid #345761}
  .program-instrument .phase-controls{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:650px){
  .foundry .intro{gap:7px;padding-bottom:9px;margin-bottom:10px}
  .foundry .premise{font-size:12px;line-height:1.5}
  .foundry .board-top{padding:5px 10px}
  .foundry .board-top h2{font-size:13px}
  .foundry .playback-controls button{font-size:11px;padding:0 9px}
  #mechanism{height:clamp(222px,61vw,280px)}
  .program-instrument{padding:9px 10px 10px}
  .program-instrument #motionPhase{font-size:11px}
  .program-instrument #liftReadout{font-size:16px}
  #motionPlot{height:102px}
  .phase-controls{margin-inline:0}
  .program-instrument .scene-help{margin-top:8px}
  .mobile-overview .result .brief-actions{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:6px;
    padding:0;
  }
  .mobile-overview .result .brief-actions button{font-size:11px;padding-inline:5px}
}
@media(max-width:360px){
  .foundry .intro h1{font-size:24px}
  #motionPlot{height:96px}
}
@media print{.program-instrument{print-color-adjust:exact}.playback-controls{display:none}}
