/* Working studies use the reference's existing light and dark surface tokens. */
body.paper .prototype-intro{max-width:1000px;margin-bottom:56px}
body.paper .prototype-intro .lede{max-width:38ch}
.prototype-context{max-width:58ch;color:var(--p-muted);font-size:17px;line-height:1.65;margin-top:20px}
.prototype-studies{max-width:1120px}
.prototype-study{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:clamp(28px,5vw,72px);align-items:center;padding:42px 0;border-top:1px solid var(--p-rule)}
.prototype-preview{position:relative;display:flex;align-items:center;justify-content:center;min-height:340px;overflow:hidden;background:var(--p-surface);color:var(--p-ink);text-decoration:none;border-radius:6px;transition:background .2s}
.prototype-preview:hover{background:var(--p-raised,var(--p-surface))}
.prototype-preview img{width:100%;height:340px;object-fit:contain;background:#121211;filter:none!important}
.prototype-image-caption{position:absolute;bottom:0;left:0;right:0;padding:10px 16px;background:var(--p-surface);color:var(--p-muted);font-size:12px}
.prototype-sequence{width:100%;padding:32px 38px;display:grid;gap:22px}
.prototype-sequence>span{font-size:12px;color:var(--p-muted)}
body.paper .prototype-sequence strong{font:400 clamp(30px,3.3vw,48px)/1.08 "Instrument Serif",Georgia,serif;color:var(--p-ink)}
.prototype-score{display:flex;gap:7px;align-items:center;height:40px;color:var(--p-link)}
.prototype-score i{display:block;width:3px;height:18px;background:currentColor;border-radius:2px}
.prototype-score i:nth-child(3n){height:36px}.prototype-score i:nth-child(3n + 1){height:26px}
.prototype-source-map{padding:38px;max-width:100%;width:100%;text-align:center}
.prototype-source-map>div:first-child{display:grid;gap:12px;padding:24px 16px;border:1px solid var(--p-rule);border-radius:4px}
.prototype-source-map strong{font:400 40px/1.1 "Instrument Serif",Georgia,serif}
.prototype-source-map small,.prototype-source-map>div>span{font-size:12px;color:var(--p-muted)}
.prototype-source-branches{display:flex;justify-content:space-around;gap:10px;padding-top:34px;position:relative}
.prototype-source-branches:before{content:"";position:absolute;top:0;height:24px;width:1px;background:var(--p-rule);left:50%}
.prototype-source-branches span{border:1px solid var(--p-rule);padding:10px 14px;border-radius:4px;font-size:13px}
.prototype-source-map>p{font-size:12px;color:var(--p-muted);margin-top:20px}
body.paper .prototype-copy h2{font:400 clamp(30px,3.2vw,44px)/1.08 "Instrument Serif",Georgia,serif;letter-spacing:-.02em;margin:12px 0 20px}
.prototype-copy h2 a{text-decoration:none;color:inherit}
.prototype-status{font-size:12px;color:var(--p-muted)}
.prototype-copy>p:not(.prototype-status){font-size:16px;line-height:1.65;max-width:45ch;margin:12px 0;color:var(--p-muted)}
.prototype-copy>p.prototype-question{font-weight:600;color:var(--p-ink)}
.prototype-open{display:inline-block;font-size:14px;font-weight:600;margin-top:18px;padding:8px 0;text-underline-offset:5px}
.prototype-basis{font-size:13px;line-height:1.65;color:var(--p-muted);max-width:78ch;margin:24px 0 64px}
.prototype-notebook{max-width:900px;border-top:1px solid var(--p-rule);padding-top:36px}
body.paper .prototype-notebook h2{font:400 36px/1.15 "Instrument Serif",Georgia,serif;margin:0 0 16px}
.prototype-notebook>p{color:var(--p-muted);font-size:15px;margin-bottom:28px}
.prototype-notebook dl>div{display:grid;grid-template-columns:1fr 2fr;gap:28px;border-top:1px solid var(--p-rule);padding:22px 0}
.prototype-notebook dt{font-size:16px;font-weight:600}.prototype-notebook dd{font-size:15px;line-height:1.65;color:var(--p-muted);margin:0}
:root:root body.paper .block.decide{background:var(--p-surface);color:var(--p-ink);border:1px solid var(--p-rule);border-radius:6px;padding:clamp(24px,4vw,48px)}
:root:root body.paper .block.decide h2{font:400 clamp(28px,3vw,40px)/1.15 "Instrument Serif",Georgia,serif;margin:0 0 24px}
:root:root body.paper .block.decide .decide-q{color:var(--p-ink)}
:root:root body.paper .block.decide .exercise{background:transparent;color:var(--p-ink);border:0;border-top:1px solid var(--p-rule);border-radius:0;margin-top:28px;padding:24px 0 0}
:root:root body.paper .block.decide .button-link{background:var(--p-ink);color:var(--p-bg);border-color:var(--p-ink);border-radius:4px}
:root:root body.paper .block.decide a:focus-visible,.prototype-studies a:focus-visible{outline:3px solid var(--p-link);outline-offset:5px}
@media(max-width:700px){.prototype-study{grid-template-columns:1fr;gap:24px;padding:28px 0 36px}.prototype-preview{min-height:280px}.prototype-preview img{height:280px}.prototype-sequence{padding:28px}.prototype-copy>p:not(.prototype-status){max-width:none}.prototype-notebook dl>div{grid-template-columns:1fr;gap:10px}.prototype-source-map{padding:28px}.prototype-intro{margin-bottom:32px}}
