:root{color:#153b30;background:#f8f5ec;font-family:"Noto Sans KR",system-ui,sans-serif;line-height:1.55}
*{box-sizing:border-box}
[hidden]{display:none!important}
body{margin:0}
header{background:#12392e;color:#fff}
.wrap{width:min(900px,calc(100% - 32px));margin-inline:auto}
header .wrap,.summary-line,.actions{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
header a{display:inline-flex;gap:10px;align-items:center;padding-block:12px;color:inherit;font-weight:700}
main{padding-block:32px 64px}
h1,h2,h3{line-height:1.2}
h1{font-size:clamp(1.9rem,4vw,2.7rem);margin:0 0 22px}
h2{margin:0 0 12px}
section,fieldset{background:#fffcf5;border:1px solid #ddd6c3;border-radius:16px;padding:clamp(16px,4vw,30px)}
fieldset{margin:20px 0;min-width:0;background:#fffdf8}
legend,caption{font-weight:750;text-align:left}
legend{padding-inline:8px}
.levels{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:12px;margin-block:24px}
button,input,select,textarea{font:inherit}
button{cursor:pointer;border:1px solid #1c503e;background:#1c503e;color:white;border-radius:9px;padding:10px 16px;font-weight:700}
button.secondary{color:#164332;background:transparent}
.levels button{min-height:66px}
a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #b58017;outline-offset:2px}
.question{margin-block:10px 24px}
.question>p{font-weight:650}
.choice{display:flex;gap:9px;align-items:flex-start;border:1px solid #e5dfce;border-radius:8px;padding:9px 12px;margin-block:6px;cursor:pointer}
.choice:has(input:checked){background:#eaf2e9;border-color:#577d6a}
.choice input{accent-color:#1c503e;margin-top:.4em}
textarea,input[type=text],select{display:block;width:100%;padding:9px 12px;border:1px solid #849d8e;border-radius:8px;background:#fff;color:inherit}
details{margin-top:10px}
summary{cursor:pointer}
.help{color:#496356}
blockquote,.answer,.recommendation{margin:14px 0;padding:14px 16px;background:#edf2e9;border-radius:8px;white-space:pre-wrap;overflow-wrap:anywhere}
.recommendation h3{margin:0}
.recommendation p{margin:8px 0 0}
table{width:100%;border-collapse:collapse}
th,td{padding:10px;text-align:left;border-bottom:1px solid #ddd6c3}
.actions{justify-content:flex-start}
#print-room{display:none}
@media print{header,#pick,#exam,#teacher,#final-room,label[for=final-room],.actions,.help,#room-record{display:none!important}.wrap{width:100%}body,section{background:white}section{border:0}#print-room{display:block}}

.report-head{display:flex;align-items:center;gap:16px;padding:18px 20px;background:#12392e;color:#fff;border-radius:12px}
.report-head h2,.report-head p{margin:0}
.report-brand{font-size:.8rem;letter-spacing:.08em;color:#f0ca73;font-weight:750}
#report-date{font-size:.9rem;color:#e0eae2}
#total{font-size:1.45rem;font-weight:750;margin:18px 0}
.score-chart,#analysis{list-style:none;padding:0;margin:0}
.score-chart li{display:grid;grid-template-columns:3.5em minmax(65px,1fr) 4.5em;align-items:center;gap:12px;margin:8px 0}
.score-chart meter{width:100%;height:18px}
.score-chart meter::-webkit-meter-bar{background:#e4ebe3;border:0;border-radius:6px}
.score-chart meter::-webkit-meter-optimum-value{background:#226047;border-radius:6px}
.score-chart meter::-moz-meter-bar{background:#226047;border-radius:6px}
.analysis{margin:18px 0;padding:12px 16px}
.analysis h3{margin:0 0 8px}
#analysis li{display:grid;grid-template-columns:3.5em 1fr;gap:8px;padding:5px 0}
#analysis li+li{border-top:1px solid #e5dfce}
@page{size:A4;margin:12mm}
@media print{
 html,body{font-size:10pt;print-color-adjust:exact;-webkit-print-color-adjust:exact}
 main{padding:0}
 main>h1{display:none}
 #result{padding:0}
 .report-head{padding:12px 16px}
 .report-head img{width:50px;height:50px}
 #total{margin:12px 0}
 h3{margin:10px 0 5px}
 .score-chart li{margin:4px 0}
 .analysis,.recommendation{margin:10px 0;padding:8px 12px;break-inside:avoid}
 #analysis li{padding:3px 0}
}
