/* Theme, forms, panels and metrics come from SDH insight.css.
   Only parent layout and responsive density belong here. */
.skip-link{position:fixed;left:-9999px;top:0;z-index:1000}.skip-link:focus{left:12px;background:var(--paper);padding:8px}
.site-header{height:52px;padding:0 20px}.header-inner{width:100%;max-width:1040px;margin:auto;display:flex;align-items:center;justify-content:space-between;gap:12px}
.brand strong,.brand small{display:block;line-height:1.3}.brand small{font-size:10px}.mode-badge{font-size:11px;color:var(--muted);padding:3px 8px;border:1px solid var(--line);border-radius:var(--radius);background:var(--paper)}
.page-shell{max-width:1040px;margin:auto;padding:20px}.page-shell .panel{margin:0 0 12px;padding:16px 18px}
.student-heading{display:flex;justify-content:space-between;gap:12px;align-items:center}.student-heading>div:first-child{display:flex;align-items:baseline;flex-wrap:wrap;gap:3px 12px}.student-heading h1{order:-1;font-size:26px}.publication-note{flex-basis:100%;font-size:12px;color:var(--muted)}
.privacy-mark{display:flex;align-items:center;gap:6px;color:var(--muted);font-size:11px;flex:none}.privacy-mark svg{width:28px;height:28px;fill:var(--accent)}
.preview-warning{display:flex;gap:8px;padding:6px 8px;margin-top:8px;background:var(--soft);border-radius:7px;color:var(--muted);font-size:11px;line-height:1.4}.preview-warning>span{flex:none;color:var(--accent)}.preview-warning strong{margin-right:6px;font-weight:600}
.exam-picker-panel{display:flex;align-items:center;gap:14px}.exam-picker-panel>div{flex:none}.exam-picker-panel h2{font-size:14px}.select-wrap{flex:1;min-width:0}.select-wrap select{width:100%;min-height:44px;font-size:14px}
.score-hero{display:flex;align-items:center;gap:20px}.score-copy{min-width:0;flex:1}.score-hero h2{font-size:23px}.exam-meta-row{display:flex;flex-wrap:wrap;gap:8px;align-items:center;font-size:11px;color:var(--muted);margin-bottom:4px}.kind-badge{color:var(--accent);background:var(--soft);padding:1px 6px;border-radius:4px}.exam-context{font-size:12px;color:var(--muted);margin-top:5px;max-width:650px}
.score-display{display:flex;flex-direction:column;align-items:center;flex:0 0 120px;border:0;border-left:1px solid var(--line);padding:0 0 0 16px}.score-value{font-size:38px;color:var(--accent)}.score-full,.score-rate{font-size:12px;color:var(--muted)}.score-display.is-missing .score-value{font-size:17px}
.section-head{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin-bottom:7px}.section-head>div{display:flex;gap:8px;align-items:baseline;flex-wrap:wrap}.section-head .eyebrow{order:1}.head-note{font-size:11px;color:var(--muted);text-align:right}
.code-chart{margin:0;padding-top:7px}.code-chart .cc-head{margin-bottom:4px}.code-chart .cc-head p{line-height:1.4}.code-chart .cc-data summary{min-height:36px;display:flex;align-items:center}.code-chart .cc-data table{width:100%;border-collapse:collapse}.code-chart .cc-data th,.code-chart .cc-data td{border-bottom:1px solid var(--line)}
.inline-empty{padding:10px;color:var(--muted);font-size:12px;background:var(--canvas);border-radius:7px}.empty-state{display:flex;align-items:center;gap:10px}.empty-icon{color:var(--muted)}.empty-state p{color:var(--muted);font-size:12px}
.report-footer{padding:0 2px 8px;text-align:center;font-size:11px;color:var(--muted)}.report-footer p{margin-top:3px}.fatal-state{padding:20px;color:var(--negative)}h1,h2,h3,p{overflow-wrap:anywhere}
@media(max-width:700px){
 .site-header{height:44px;padding:0 12px}.brand{gap:7px}.brand-symbol{width:26px;height:28px;font-size:20px}.brand small{display:none}
 .page-shell{padding:10px}.page-shell .panel{padding:11px 12px;margin-bottom:9px}
 .student-heading h1{font-size:23px}.student-heading .eyebrow{letter-spacing:0}.privacy-mark span{display:none}.privacy-mark svg{width:24px;height:24px}
 .exam-picker-panel{gap:12px}.exam-picker-panel>div{flex:0 0 40px}.exam-picker-panel .eyebrow{font-size:10px}.select-wrap select{font-size:13px}
 .score-hero{gap:12px}.score-hero h2{font-size:20px}.score-display{flex-basis:84px;padding-left:10px}.score-value{font-size:34px}.score-full,.score-rate{font-size:11px}.exam-context{font-size:11px;line-height:1.45}.exam-meta-row{font-size:10px;gap:6px}
 .section-head{gap:6px;margin-bottom:6px}.section-head h2{font-size:17px}.section-head .eyebrow{font-size:10px;letter-spacing:0}.head-note{font-size:10px;max-width:44%}
}
#sections-chart .cc-svg{min-width:0;max-height:300px}#sections-chart .cc-svg text{font-size:19px!important}
@media print{.site-header,.exam-picker-panel{display:none!important}.page-shell{padding:0}.panel{break-inside:avoid}}

.score-display{flex-basis:140px}.score-rate{font-size:30px;font-weight:650;line-height:1.15;margin-top:8px;font-variant-numeric:tabular-nums}.score-rate-label{font-size:11px;color:var(--muted)}
#sections-panel>.section-head{display:none}
#section-bars{margin-top:12px}
.student-meta{display:flex;gap:8px;font-size:11px;color:var(--muted);margin-bottom:3px}
.student-meta #student-name{font-size:22px;font-weight:700;color:var(--ink,#263449)}.student-meta{align-items:baseline}.student-meta #class-label{font-size:13px}
.position-color-note{font-size:11px;color:var(--muted);margin:5px 0}.position-color-note span{color:#526078}
.score-hero .exam-meta-row{display:none}
.score-hero{gap:12px}.score-hero h2{font-size:22px}
.score-display{flex:0 0 auto;align-items:flex-end;padding-left:14px}
.score-display>div{display:flex;align-items:baseline;gap:6px}
.score-value{font-size:34px}.score-rate{font-size:28px;margin:0}
.score-rate-label{margin-left:2px}.score-full{font-size:12px}
#class-rank{font-size:12px;color:var(--muted)}
#exam-picker-card select{min-height:32px;margin-top:6px;font-size:12px;max-width:100%}
.page-shell{padding-top:10px}.page-shell .score-hero{padding:12px 16px}
.code-chart .cc-head p:empty{display:none}
.code-chart .cc-reference-controls{flex:none;margin-left:auto!important}
.code-chart .cc-reference-option{padding:5px 9px;border:1px solid var(--line);border-radius:7px;color:var(--muted);font-weight:600;cursor:pointer}
.code-chart .cc-reference-option:has(input:checked){color:#6d28d9;background:#f3efff;border-color:#a78bfa}
.code-chart .cc-reference-option input{accent-color:#8B5CF6}
.code-chart .cc-reference-option:has(input:not(:checked)){opacity:1;color:#526078;background:#fff;border-color:#bac5d5}
.code-chart .cc-reference-option .cc-reference-swatch{display:none}
.code-chart [hidden]{display:none!important}
@media(max-width:700px){.score-hero h2{font-size:18px}.score-display{flex-basis:auto}.score-value{font-size:30px}.score-rate{font-size:26px}.page-shell .score-hero{padding:10px 12px}.score-copy{flex:1}.student-meta{font-size:10px}}
#sections-panel .cc-reference-controls{margin-left:0;justify-content:flex-start;gap:10px}
#sections-panel .cc-reference-option{min-height:36px}
@media(max-width:700px){.score-display{flex-basis:100px}.score-rate{font-size:28px}.score-full{font-size:12px}.code-chart .cc-head h3{font-size:16px}#sections-panel .cc-reference-controls{font-size:11px}#sections-panel .cc-reference-controls select{min-height:36px}#section-bars .cc-profile-rows .profile-chart-row{padding:6px 0}.report-footer{font-size:10px}}
@media(max-width:700px){.score-display{flex-basis:auto}.score-rate{font-size:26px}}
