:root{font-family:Arial,Helvetica,sans-serif;color:#17334a;background:#fff;font-synthesis:none}
*{box-sizing:border-box}body{margin:0}
main{max-width:1280px;margin:auto;padding:10px 20px 6px}
.eyebrow{font-size:11px;letter-spacing:.12em;font-weight:700;color:#566c7b;margin:0 0 4px}
h1{font-size:25px;font-weight:600;margin:0;line-height:1.15}
body[data-view=single] .pair-only,body[data-view=pair] .single-only,body[data-view=single] #legend .pair-only,body[data-view=pair] #legend .single-only{display:none}
#stage{display:grid;grid-template-columns:auto minmax(0,1fr);gap:22px;align-items:start;margin-top:8px}
#scene{width:min(calc((100vh - 154px) * 1.4),calc(min(100vw, 1280px) - 470px));min-width:0}
body[data-view=pair] #scene{width:min(calc((100vh - 130px) * 1.4),calc(min(100vw, 1280px) - 470px))}
#diagram{display:block;width:100%;height:auto;aspect-ratio:700/500;touch-action:none;user-select:none;-webkit-user-select:none}
#legend{display:flex;flex-wrap:wrap;justify-content:space-between;gap:2px 16px;font-size:12.5px;color:#566c7b;margin-top:3px;line-height:1.2}#legend span{display:inline-flex;align-items:center;gap:5px}
#legend .key{gap:4px;flex-wrap:wrap;flex-basis:100%;justify-content:center}#legend .key i{display:inline-block;width:14px;height:4px;border-radius:2px;margin:0 2px 0 4px}#legend .key math{font-size:13px}
.key .ochre{background:#8f6400}.key .navy{background:#17334a}.key .coral{background:#be513b}.key .green{background:#07825e}.key .purple{background:#ab3378}
.nowrap{white-space:nowrap}
#diagram .handle{cursor:grab}#diagram.dragging,#diagram.dragging .handle{cursor:grabbing}
#panel{display:flex;flex-direction:column;gap:9px;min-width:0}
.bar{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
button,select{font:inherit;font-size:14px;color:#17334a;background:#fff;border:1px solid #c5d1d8;border-radius:5px}
button{padding:6px 12px;cursor:pointer}button:hover{border-color:#17334a}button:disabled,select:disabled,input:disabled{cursor:default;opacity:.55}
.views{display:inline-flex;border:1px solid #c5d1d8;border-radius:6px;overflow:hidden}
.views button{border:0;border-radius:0;padding:6px 12px}.views button+button{border-left:1px solid #c5d1d8}
.views button[aria-pressed=true]{background:#17334a;color:#fff}
select{padding:5px 4px;max-width:250px;min-width:0;flex:1 1 170px}
select[data-modified=true]{color:#566c7b;font-style:italic}
button:focus-visible,select:focus-visible,input:focus-visible{outline:3px solid #d2785f;outline-offset:2px}
#notice{font-size:13px;line-height:1.35;color:#a6402f;margin:0;max-height:2.8em;overflow-y:auto}#notice:empty{display:none}
.toggle-row{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 14px}.signs{font-size:12.5px;color:#566c7b;margin:0;line-height:1.3}
.visually-hidden{position:absolute;width:1px;height:1px;margin:-1px;padding:0;border:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.slider{display:grid;grid-template-columns:1fr auto;align-items:baseline;column-gap:8px;font-size:14px}
.slider label{font-weight:600}.slider .value{font-variant-numeric:tabular-nums;font-weight:600}.slider .hint{font-weight:400;color:#566c7b;font-size:12.5px}
.slider input{grid-column:1/-1;width:100%;margin:3px 0 0;accent-color:#be513b}
.slider .aside{grid-column:1/-1;font-size:13px;color:#566c7b;margin-top:1px}
.slider.friction,.slider.mass{grid-template-columns:auto 1fr auto;grid-template-areas:"label alpha out" "input input input"}
.slider.friction label,.slider.mass label{grid-area:label}.slider.friction .value,.slider.mass .value{grid-area:out}.slider.friction input,.slider.mass input{grid-area:input}
.slider.friction .aside,.slider.mass .aside{grid-area:alpha;grid-column:auto;justify-self:end;margin:0 12px 0 8px}
/* Box view: each slider in the colour of what it sets (push ochre, weight navy, friction coefficient green like the cone). */
#push{accent-color:#8f6400}#mass{accent-color:#17334a}body[data-view=single] #mu{accent-color:#07825e}
#contact-controls{display:grid;grid-template-columns:1fr 1fr;gap:10px}
body[data-view=single] #contact-controls{display:none}body[data-view=pair] #box-controls{display:none}
fieldset{border:1px solid #e4e9ec;border-radius:6px;margin:0;padding:2px 10px 7px;min-width:0;display:grid;gap:5px}
legend{font-size:13px;font-weight:700;color:#566c7b;padding:0 4px}
.toggle{font-size:14px;display:flex;gap:7px;align-items:center;cursor:pointer}.toggle input{margin:0;accent-color:#17334a}
#readout{border-top:1px solid #e4e9ec;padding-top:8px;display:grid;gap:6px}
#headline{font-size:18px;font-weight:600;margin:0;line-height:1.25}
#statuses{list-style:none;margin:0;padding:0;display:grid;gap:4px;font-size:14px;line-height:1.38}
.status-title{font-weight:700}
li[data-status=inside] .status-title{color:#07825e}li[data-status=boundary] .status-title{color:#17334a}
li[data-status=outside] .status-title{color:#be513b}li[data-status=zero] .status-title,li[data-status=required] .status-title{color:#566c7b}
#wrench h3{font-size:13px;font-weight:700;color:#566c7b;margin:2px 0 3px}
#wrench-values{display:flex;flex-wrap:wrap;gap:4px 18px;font-size:16px;font-variant-numeric:tabular-nums}
#wrench-values .value{font-weight:700}#wrench-values .dir{font-size:13px;color:#566c7b}
.note{font-size:12.5px;color:#566c7b;margin:3px 0 0;line-height:1.35}#statuses .note{display:block;margin-top:5px}
#closure{font-size:13.5px;line-height:1.38;margin:0;padding:6px 9px;border-radius:5px;background:#eef6f2}
#closure[data-key=no-closure]{background:#fbefec}
.rules{font-size:15px;margin:0;color:#17334a;border-top:1px solid #e4e9ec;padding-top:7px}
math{font-family:math;font-weight:400}math mi{font-weight:400}
footer{font-size:12px;line-height:1.35;color:#566c7b;margin-top:6px}a{color:#345f7a;text-underline-offset:2px}
noscript{display:block;margin-top:10px;font-size:14px}
@media(max-height:650px) and (min-width:721px){main{padding-top:8px;padding-bottom:4px}h1{font-size:23px}#stage{margin-top:6px}#panel{gap:6px}#readout{gap:4px;padding-top:5px}.rules{padding-top:4px}footer{margin-top:4px}#notice{max-height:2.7em}}
@media(max-width:1100px) and (min-width:721px){main{padding:10px 16px 6px}#stage{gap:16px}#scene{width:min(calc((100vh - 154px) * 1.4),calc(min(100vw, 1280px) - 430px))}body[data-view=pair] #scene{width:min(calc((100vh - 130px) * 1.4),calc(min(100vw, 1280px) - 430px))}#statuses,.slider,.toggle{font-size:13.5px}}
@media(max-width:720px){main{padding:12px}#stage{grid-template-columns:1fr}#scene{width:100%}}
