
body[data-lab-theme="replay"]{background:linear-gradient(150deg,#eeeaf5,#f8f7fb 500px)}
.replay-head{padding:35px 0 28px;max-width:720px}.replay-head h1{font-size:clamp(36px,6vw,62px);letter-spacing:-.055em;line-height:1.05;margin:12px 0}.replay-head p{color:#625b70;line-height:1.7}.replay-kicker{font-size:11px;letter-spacing:.13em;text-transform:uppercase;color:#66518e;font-weight:700}
.replay-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);gap:20px}.replay-card{background:white;border:1px solid #ded9e7;border-radius:24px;padding:clamp(20px,3vw,30px);margin-bottom:20px;min-width:0}.replay-card h2{font-size:24px;letter-spacing:-.035em;margin:8px 0 15px}.replay-card h3{font-size:18px;margin:18px 0 8px}.replay-card p,.replay-card li{line-height:1.65;color:#565365}.replay-card li+li{margin-top:8px}.replay-chart{width:100%;height:auto;display:block}.replay-controls{display:flex;gap:10px;flex-wrap:wrap;margin-top:20px}.replay-controls button{min-height:44px}.replay-field{display:block;margin:18px 0}.replay-field>span{display:block;font-weight:650;margin-bottom:8px}.replay-field small{display:block;color:#625b70;margin-top:5px;line-height:1.5}.replay-field textarea,.replay-field select,.replay-field input{font:inherit;font-size:16px;width:100%;box-sizing:border-box;min-width:0;border:1px solid #d8d3df;border-radius:12px;padding:12px;color:#24232e;background:#fcfbfe}.replay-field textarea{min-height:95px;resize:vertical}.replay-chart-note{font-size:12px;color:#625b70}.replay-step{font-size:12px;font-weight:650;color:#66518e}.replay-frozen{background:#f1edf8;border-radius:14px;padding:18px;overflow-wrap:anywhere}.replay-frozen p{white-space:pre-wrap;margin:8px 0 16px}.replay-status{margin-top:12px;color:#66518e;font-weight:600}.replay-review{border-left:3px solid #8e7bb0;padding-left:18px;margin:20px 0}.replay-check{display:flex;gap:10px;align-items:flex-start;margin:14px 0;line-height:1.5}.replay-check input{margin-top:5px;flex-shrink:0}.replay-small{font-size:13px}.replay-card details{border-top:1px solid #e7e3ed;margin-top:20px;padding-top:16px}.replay-card summary{font-weight:650;cursor:pointer}.replay-card a{overflow-wrap:anywhere}.replay-steps{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:20px}.replay-steps span{border:1px solid #ded9e7;background:#ffffff9e;border-radius:100px;padding:8px 13px;font-size:12px}.replay-steps .active{background:#5e4c83;color:white;border-color:#5e4c83}.replay-summary{display:grid;grid-template-columns:1fr 1fr;gap:12px}.replay-summary>div{padding:15px;background:#f5f2f9;border-radius:12px}.replay-summary strong{display:block;color:#352b46;font-size:19px;margin:5px 0}.replay-card button:disabled{opacity:.5;cursor:not-allowed}button:focus-visible,summary:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #8e7bb0;outline-offset:3px}@media(max-width:760px){.replay-grid{grid-template-columns:1fr}.replay-head{padding:24px 0}.replay-card{border-radius:19px;padding:20px}.replay-summary{grid-template-columns:1fr 1fr}.replay-controls .btn{flex:1}.replay-chart-note{font-size:12px}}
/* Structured replay additions: preserve existing Quophase palette and type. */
.replay-head{max-width:790px}.replay-picker{display:flex;align-items:end;gap:18px;flex-wrap:wrap}.replay-picker .replay-field{flex:1;min-width:210px;margin:0}.replay-picker>.btn{min-height:49px}.replay-question{border:0;border-top:1px solid #e7e3ed;padding:22px 0 14px;margin:0;min-width:0}.replay-question:first-of-type{border-top:0}.replay-question legend{float:left;width:100%;font-weight:650;line-height:1.45;margin-bottom:10px}.replay-question legend span{display:inline-flex;align-items:center;justify-content:center;width:25px;height:25px;border-radius:50%;background:#eee9f6;color:#66518e;font-size:12px;margin-right:5px}.replay-question legend+.replay-small{clear:both}.replay-option{display:flex;align-items:flex-start;gap:10px;min-height:44px;padding:11px 12px;margin:8px 0;border:1px solid #ded9e7;border-radius:12px;font-size:14px;line-height:1.5;cursor:pointer;box-sizing:border-box}.replay-option:has(input:checked){background:#f1edf8;border-color:#806b9e}.replay-option input{flex-shrink:0;margin:4px 0 0;width:17px;height:17px;accent-color:#66518e}.replay-option:hover{border-color:#806b9e}.replay-reading{padding:18px 0;border-top:1px solid #e7e3ed}.replay-reading:first-of-type{margin-top:24px}.replay-reading h3{margin-top:12px}.replay-feedback summary{font-size:14px;line-height:1.5}.replay-feedback summary>span{color:#66518e;margin-right:5px}.replay-feedback p{font-size:14px}.replay-walkthrough dt{font-weight:650;margin:16px 0 6px}.replay-walkthrough dd{margin:0;line-height:1.65;color:#565365}.replay-walkthrough dd em{display:block;margin-top:6px;font-size:13px}.replay-familiar,.replay-warning{border-radius:12px;padding:10px 14px;background:#f2edf8;color:#66518e;font-size:13px;line-height:1.5}.replay-table-scroll{overflow:auto}.replay-table-scroll table{white-space:nowrap;width:100%;font-size:13px;text-align:right;border-collapse:collapse}.replay-table-scroll td,.replay-table-scroll th{padding:10px 8px;border-bottom:1px solid #eee9f6}.replay-table-scroll caption{text-align:left;white-space:normal;padding:12px 0;color:#625b70}.replay-card:focus,.replay-walkthrough:focus{outline:2px solid #ad9dc4;outline-offset:4px}.replay-guidance{background:#f8f5fc}.replay-chart{min-height:190px}.replay-controls .btn{white-space:normal}.replay-head h1{font-size:clamp(36px,5.5vw,61px)}
@media(max-width:760px){.replay-picker{display:block}.replay-picker>.btn{margin-top:14px;width:100%}.replay-option{font-size:15px}.replay-question{padding-top:20px}.replay-chart{width:calc(100% + 24px);max-width:none;margin-left:-12px}.replay-card h2{font-size:23px}.replay-grid{gap:0}.replay-summary strong{font-size:18px}.replay-head h1{font-size:clamp(34px,7.4vw,50px)}.replay-steps{gap:6px}.replay-steps span{font-size:11px;padding:8px 10px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

.replay-digest{overflow-wrap:anywhere}.replay-attribution{border-top:1px solid #e8e3ed;padding-top:12px}

/* Gate A: The chart is drawn at its measured panel width; type no longer depends on
   viewport-wide SVG scaling. Familiar status is descriptive, not a warning. */
.replay-plot{min-width:0;width:100%;line-height:0}
.replay-plot .replay-chart{width:100%;max-width:100%;min-height:0;margin:0}
.replay-plot .replay-chart text{font-family:system-ui,-apple-system,sans-serif;font-variant-numeric:tabular-nums}
body[data-prism-lab] .replay-card p.replay-familiar{background:#e9def9;color:#33204b;border:1px solid #c8b0ea}
.replay-continue{margin-top:.85rem;min-height:44px}
:is(#replayCaseTitle,#replayExplanationTitle,#replayOutcomeTitle,#replayNext):focus{outline:2px solid #aeead4;outline-offset:4px;scroll-margin-block:7rem 2rem}
@media(max-width:760px){
 .replay-plot{width:calc(100% + 20px);margin-inline:-10px}
 .replay-card .replay-chart-note{font-size:13px}
 .replay-controls{align-items:stretch}
}
.replay-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
