/* A reading surface and a persistent, local replay, shared by both drive modes. */
body[data-feedback=true] #overlay{z-index:10;background:oklch(23% .02 155 / .65);padding:16px;backdrop-filter:none}
body[data-feedback=true] #overlay>.dialog{width:100%;max-width:1640px;height:calc(100dvh - 32px);max-height:none;margin:0;padding:32px 36px;overflow:auto;border-radius:14px;box-shadow:none;display:grid;grid-template-columns:minmax(0,1fr) minmax(360px,.95fr);column-gap:40px;align-content:start;align-items:start}
body[data-feedback=true] .dialog>h1{font-size:clamp(28px,2.5vw,40px);margin:8px 0 12px;letter-spacing:-1.2px}
body[data-feedback=true] .dialog>p:not(.caption){font-size:16px;max-width:68ch}
body[data-feedback=true] .dialog>*{grid-column:1;min-width:0}
body[data-feedback=true] .dialog>.review-replay{grid-column:2;grid-row:1 / span 18;position:sticky;top:0;border-left:1px solid oklch(85% .018 130);padding-left:32px}
body[data-feedback=true] .dialog>.eyebrow{margin:0;color:oklch(43% .03 155)}
body[data-feedback=true] .dialog>[data-phone-pair],body[data-feedback=true] .dialog>.caption,body[data-feedback=true] #access-badge{display:none}
body[data-feedback=true] .summary,body[data-feedback=true] .exam-result{max-height:none;overflow:visible;border:0;margin:12px 0 20px;padding:0;gap:24px}
body[data-feedback=true] .summary h2,body[data-feedback=true] .result-block h2,.review-replay h2{font-size:21px;font-weight:600;text-transform:none;letter-spacing:-.4px;color:oklch(30% .04 155);margin:0 0 12px}
.review-section{padding-top:20px;border-top:1px solid oklch(85% .018 130)}
body[data-feedback=true] .criterion,body[data-feedback=true] .result-block li{font-size:16px;line-height:1.6;border:0;padding:14px 0;border-bottom:1px solid oklch(88% .012 130);display:block}
body[data-feedback=true] .criterion-head,body[data-feedback=true] .result-block .where{font-size:12px;letter-spacing:.6px;color:oklch(45% .025 155);display:block;margin-bottom:5px}
body[data-feedback=true] .criterion-body{font-size:17px;font-weight:500}
body[data-feedback=true] .criterion-needsPractice .criterion-head{color:oklch(44% .095 65)}
body[data-feedback=true] .result-block .why{font-size:15px;margin-top:6px;line-height:1.6;color:oklch(42% .025 155)}
body[data-feedback=true] .result-block a{font-size:15px;text-underline-offset:3px}
.review-count{font-size:13px;font-weight:500;border-radius:20px;padding:4px 9px;background:oklch(89% .025 135);vertical-align:middle;margin-left:8px}
.review-good h2::before,.review-improve h2::before{content:'✓';font-size:16px;display:inline-grid;place-items:center;width:28px;height:28px;border-radius:50%;background:oklch(88% .045 145);margin-right:10px}
.review-improve h2::before{content:'↗';background:oklch(90% .065 85)}
body[data-feedback=true] .summary-practice{font-size:16px;line-height:1.65;background:oklch(91% .025 130);padding:20px;border-radius:8px}
body[data-feedback=true] .summary dl{font-size:15px;gap:10px 20px;line-height:1.5}
body[data-feedback=true] .summary-source,body[data-feedback=true] .result-empty{font-size:15px;line-height:1.6}
.review-overview{display:flex;flex-wrap:wrap;gap:8px 24px;margin:0 0 8px;padding:16px 0;border-block:1px solid oklch(85% .018 130);font-size:14px;line-height:1.6}
.review-overview b{font-size:18px;margin-right:5px;color:oklch(30% .04 155)}
.review-replay-heading p{font-size:15px;line-height:1.6;color:oklch(44% .025 155);margin:0 0 20px}
.review-replay-heading .eyebrow{display:block;margin:0 0 10px;color:oklch(44% .025 155)}
.review-select{display:flex;flex-direction:column;gap:8px;font-size:13px;margin-bottom:14px}
.review-select select{width:100%;font:inherit;font-size:15px;color:inherit;background:oklch(97% .008 130);border:1px solid oklch(80% .02 130);border-radius:6px;padding:12px;appearance:auto}
.review-stage{position:relative;width:100%;aspect-ratio:4/3;max-height:40dvh;background:oklch(89% .018 130);border-radius:9px;overflow:hidden;isolation:isolate}
.review-stage #viewport{position:absolute;inset:0;width:100%;height:100%}
.review-stage canvas{width:100%;height:100%;pointer-events:none}
.review-replay-status{position:absolute;inset:0;display:grid;place-content:center;padding:24px;text-align:center;font-size:16px;line-height:1.6;margin:0}
.review-replay-status[hidden]{display:none}
.review-caption{font-size:15px;line-height:1.55;min-height:48px;margin:16px 0}
.review-playback{display:flex;align-items:center;gap:12px}
.review-playback input{min-width:0;flex:1;accent-color:oklch(35% .055 155);height:32px}
.review-playback span{font-size:13px;white-space:nowrap;font-variant-numeric:tabular-nums}
.simulator .review-replay button{font-size:14px;min-height:42px}
.review-moments{display:flex;gap:8px;flex-wrap:wrap;margin-top:16px}
.simulator .review-moments button[data-kind=bad]{background:oklch(93% .03 85);border-color:oklch(78% .05 80)}
body[data-feedback=true]>.mirror-frame,body[data-feedback=true]>.hud,body[data-feedback=true]>.controls,body[data-feedback=true]>.sim-tools{display:none}
@media(min-width:1600px){.review-stage{aspect-ratio:16/10}}
@media(max-width:900px){body[data-feedback=true] #overlay{padding:8px}body[data-feedback=true] #overlay>.dialog{padding:24px;height:calc(100dvh - 16px);grid-template-columns:minmax(0,1fr)}body[data-feedback=true] .dialog>.review-replay{grid-column:1;grid-row:auto;position:static;padding:24px 0 0;border-left:0;border-top:1px solid oklch(85% .018 130);margin-bottom:24px}.review-stage{aspect-ratio:16/10}body[data-feedback=true] .dialog>.button{margin-bottom:12px}}
@media(prefers-reduced-motion:reduce){.review-replay *{scroll-behavior:auto}}

body[data-feedback=true] .review-section>ul{gap:0}

.review-detail{border-top:1px solid oklch(85% .018 130);padding-top:16px}.review-detail>summary{cursor:pointer;font-size:18px;font-weight:600;min-height:40px}.review-detail[open]>summary{margin-bottom:12px}

.simulator .review-jump{display:block;margin-top:12px;font-size:14px;min-height:42px;text-align:left;text-decoration:underline;text-underline-offset:4px;border:0;padding:4px 0;background:transparent}

.review-overview[hidden],.review-select[hidden]{display:none}

/* Practice links stay folded inside their own improvement point. */
.review-practice-dropdown { margin-top: 10px; }
body[data-feedback=true] .review-practice-dropdown > summary {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; min-height: 44px; padding: 8px 12px;
  border: 1px solid oklch(85% .018 130); border-radius: 8px;
  cursor: pointer; font-size: 15px; font-weight: 600;
}
body[data-feedback=true] .review-practice-dropdown > a {
  display: block; padding: 12px; font-size: 16px; line-height: 1.5;
  overflow-wrap: anywhere; text-underline-offset: 3px;
}
.review-practice-dropdown > summary:focus-visible,
.review-practice-dropdown > a:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
