body:has(.drawer-backdrop:not([hidden])) { overflow:hidden; }
.drawer-backdrop { overflow:auto; background:#eaf0f7; }
.report-drawer { overflow:visible; position:relative; margin:clamp(10px,3vw,38px) auto; width:min(1280px,calc(100% - 36px)); height:auto; min-height:calc(100% - 76px); padding:clamp(18px,3vw,38px); border:1px solid #dce5ef; border-radius:16px; background:#fff; box-shadow:0 6px 28px #1a3b650c; }
.report-drawer .close-button { display:grid; place-items:center; top:18px; right:18px; width:32px; height:32px; border:1px solid #d7e1eb; border-radius:8px; color:#4d647c; background:white; font-size:22px; }
.report-heading { display:flex; align-items:center; gap:16px; padding:0 44px 18px 0; }
.report-heading p,.report-heading h2 { margin:0; }
.report-heading p { color:#49647e; font-weight:600; font-size:13px; }
.report-heading h2 { margin:6px 0; font-size:clamp(24px,3vw,34px); letter-spacing:-.025em; }
.report-heading .drawer-meta { overflow-wrap:anywhere; line-height:1.6; }
.report-heading .status-pill { white-space:nowrap; }
.score-overview { display:flex; align-items:center; justify-content:space-between; gap:20px; padding:22px clamp(18px,3vw,32px); background:linear-gradient(110deg,#eff6ff,#f8fbff); border:1px solid #d6e6fd; border-radius:12px; }
.score-label,.score-percent span { color:#405875; font-size:13px; }
.drawer-score { align-items:baseline; padding:4px 0 0; font-variant-numeric:tabular-nums; }
.drawer-score strong { font-size:clamp(36px,4vw,52px); letter-spacing:-.045em; }
.drawer-score span { font-size:18px; }
.score-percent { display:grid; gap:5px; min-width:min(165px,30%); }
.score-percent b { color:#155fb6; font-size:23px; font-variant-numeric:tabular-nums; }
.score-percent progress { width:100%; height:7px; border:0; border-radius:8px; appearance:none; background:#dce8f7; }
.score-percent progress::-webkit-progress-bar { background:#dce8f7; border-radius:8px; }
.score-percent progress::-webkit-progress-value { background:#1677ff; border-radius:8px; }
.score-percent progress::-moz-progress-bar { background:#1677ff; }
.report-columns { display:grid; grid-template-columns:minmax(0,3fr) minmax(270px,2fr); gap:20px; margin-top:24px; align-items:start; }
.report-columns:not(:has(.report-evidence)) { grid-template-columns:1fr; }
.report-columns>section { min-width:0; }
.report-columns h3 { display:flex; align-items:baseline; justify-content:space-between; margin:0 0 14px; font-size:18px; color:#183350; }
.report-columns h3 small,.report-columns h4 small { font-size:12px; font-weight:500; color:#566d84; }
.report-items { gap:0; border:1px solid #dde5ee; border-radius:10px; overflow:hidden; }
.rubric-item + .rubric-item { border-top:1px solid #e7edf4; }
.rubric-item summary { display:flex; align-items:center; gap:12px; padding:14px 16px; list-style:none; cursor:pointer; }
.rubric-item summary::-webkit-details-marker { display:none; }
.rubric-item summary::before { content:""; width:7px; height:7px; border-right:1.7px solid #66819b; border-bottom:1.7px solid #66819b; transform:rotate(-45deg); flex:none; }
.rubric-item[open] summary::before { transform:rotate(45deg); }
.rubric-item summary:hover,.rubric-item[open] summary { background:#f5f9fe; }
.rubric-name { flex:1; font-size:14px; line-height:1.6; font-weight:600; color:#223b55; }
.rubric-name small { display:block; font-size:11px; color:#688098; font-weight:500; }
.rubric-grade { font-variant-numeric:tabular-nums; color:#135aaa; font-weight:700; }
.rubric-grade small { font-size:12px; color:#677c91; font-weight:500; }
.rubric-body { padding:4px 18px 14px 36px; line-height:1.7; color:#40556c; font-size:13px; }
.rubric-body h4,.report-evidence h4 { margin:12px 0 8px; color:#283f58; }
.rubric-body ul,.rubric-body p { margin:4px 0; }
.rubric-body ul { padding-left:18px; }
.report-evidence { position:sticky; top:14px; display:flex; flex-direction:column; max-height:calc(100dvh - 28px); padding:16px; background:#f8fafd; border:1px solid #dde5ef; border-radius:10px; }
.report-evidence .media-button { align-self:start; }
.report-evidence h4 { display:flex; justify-content:space-between; align-items:baseline; }
.evidence-timeline { max-height:min(58vh,470px); overflow:auto; margin:8px 0 0; gap:0; border:1px solid #e1e8f0; border-radius:7px; }
.evidence-timeline button,.item-marks button { display:flex; align-items:baseline; gap:10px; border:0; border-bottom:1px solid #e8edf4; background:#fff; padding:9px 10px; min-height:36px; text-align:start; font-size:13px; }
.evidence-timeline button span { color:#364e68; font:inherit; }
.evidence-timeline button[aria-current],.evidence-timeline button:hover,.item-marks button:hover { background:#e9f2ff; }
.evidence-timeline time,.item-marks time { color:#125fba; font:600 12px ui-monospace,monospace; flex:none; }
.item-marks { display:flex; flex-wrap:wrap; gap:6px; }
.item-marks button { border:1px solid #d7e5f5; border-radius:5px; }
.report-evidence video { width:100%; max-height:300px; background:#182638; border-radius:8px; }
@media(max-width:750px) {
 .report-drawer { width:100%; margin:0; padding:18px 14px; min-height:100%; border:0; border-radius:0; }
 .report-columns { grid-template-columns:minmax(0,1fr); gap:18px; }
 .report-evidence { position:static; grid-row:1; max-height:none; }
 .evidence-timeline { max-height:190px; }
 .report-heading { align-items:flex-start; flex-wrap:wrap; gap:4px; }
 .report-drawer .close-button { right:12px; top:12px; }
 .score-overview { padding:14px; }
}

.report-filters {display:flex;gap:6px;flex-wrap:wrap;margin-bottom:12px}
.report-filters button {background:white;color:#35465a;border:1px solid #ccd6e2;border-radius:6px;padding:6px 12px}
.report-filters button[aria-pressed=true] {color:#155fb6;border-color:#1677ff;background:#edf5ff}

.report-drawer:has(iframe[data-native]) {width:100%;height:100dvh;min-height:0;margin:0;padding:0;border:0;border-radius:0;overflow:hidden}
.report-drawer .close-button {z-index:2}
#report-detail iframe[data-native] {display:block;width:100%;height:100dvh;border:0}
.native-playback {position:fixed;z-index:3;bottom:16px;right:16px;width:min(440px,calc(100% - 32px));padding:8px;background:white;border:1px solid #dce3ec;border-radius:8px;box-shadow:0 4px 24px #16213133}
.native-playback video {display:block;width:100%;max-height:38vh;background:#182638}
