@page { size: 210mm 330mm; margin: 10mm; }
* { box-sizing: border-box; }
body { margin: 0; color: #111; background: #e7e7e7; font-family: Arial, Helvetica, sans-serif; }
.print-toolbar { display:flex; flex-wrap:wrap; align-items:center; gap:14px; padding:14px 20px; font-size:13px; background:#fff; border-bottom:1px solid #ccc; }
.print-toolbar button { padding:9px 16px; color:#fff; background:#333; border:0; border-radius:3px; cursor:pointer; font:inherit; }
.print-toolbar a { color:#222; }
.print-toolbar span { color:#555; }
.print-sheet { width:210mm; height:330mm; padding:10mm; margin:20px auto; background:#fff; }
#printContent { width:190mm; font-size:10pt; line-height:1.2; transform-origin:top left; overflow-wrap:anywhere; }
.document-header { border-bottom:1.2pt solid #222; padding-bottom:.55em; }
.document-type { font-size:.85em; letter-spacing:.08em; font-weight:700; }
h1 { margin:.4em 0 .6em; font-size:1.23em; line-height:1.25; }
.document-meta { display:flex; justify-content:space-between; gap:12px; font-size:.9em; }
h2 { font-size:.95em; letter-spacing:.025em; margin:.9em 0 .4em; }
.identity-grid { display:grid; grid-template-columns:1fr 1fr; gap:.3em 1.3em; margin:0; }
.identity-item { display:grid; grid-template-columns:minmax(0,43fr) minmax(0,57fr); gap:.25em; }
.identity-item:nth-last-child(-n+2) { grid-column:1/-1; grid-template-columns:minmax(0,32fr) minmax(0,68fr); }
dt,dd { margin:0; font-size:.93em; }
dt { color:#333; }
dd { font-weight:500; padding-right:.4em; }
.scale-note { font-size:.8em; margin:.25em 0 .6em; }
.answers { border-collapse:collapse; table-layout:fixed; width:100%; }
.number-col { width:7%; }.score-col { width:7%; }
.answers th,.answers td { padding:.24em .4em; border: .5pt solid #aaa; vertical-align:top; }
.answers thead th { text-align:left; font-size:.88em; background:#eee; }
.answers td:first-child,.answers th:first-child,.answers td:last-child,.answers thead th:last-child { text-align:center; }
.answers .section-row th { text-align:left; background:#f3f3f3; font-size:.9em; padding:.27em .4em; }
.score { font-weight:700; }
.open-answer { margin:.55em 0; }
h3 { margin:0 0 .2em; font-size:.95em; line-height:1.2; }
.open-answer p { margin:0; line-height:1.24; white-space:normal; }
.document-footer { display:flex; justify-content:space-between; border-top:.5pt solid #aaa; margin-top:.8em; padding-top:.4em; font-size:.8em; color:#444; }
@media print {
 body { background:#fff; }
 .print-toolbar { display:none!important; }
 .print-sheet { width:190mm; height:309mm; padding:0; margin:0; break-inside:avoid; overflow:hidden; }
 #printContent { print-color-adjust:exact; -webkit-print-color-adjust:exact; }
}
@media screen and (max-width:850px) { .print-sheet { margin:12px 0; } }
