:root{--ink:#19382e;--green:#235c47;--line:#b3c6b6;--paper:#fff;--pale:#eef4e7;--amber:#85580a;--red:#962f27}
*{box-sizing:border-box}body{margin:0;background:#e9eeea;color:var(--ink);font-family:Meiryo,"Yu Gothic",sans-serif;font-size:14px;line-height:1.65}a{color:var(--green)}button,input,select,textarea{font:inherit;color:var(--ink)}button,a,input,select,textarea{touch-action:manipulation}button,select,input,textarea{border:1px solid var(--line);border-radius:4px;background:white;padding:8px}button{cursor:pointer}button:disabled{opacity:.5;cursor:default}:focus-visible{outline:3px solid var(--amber);outline-offset:3px}
.report-tools{max-width:1050px;margin:20px auto;padding:22px;background:white;border-top:5px solid var(--green)}.report-tools h1{font-size:25px;margin:12px 0}.report-tools p{margin:10px 0}.report-options,#report-filters,#score-selectors{display:flex;flex-wrap:wrap;gap:12px;align-items:end}#report-filters label,#score-selectors label{display:flex;flex-direction:column}.report-options{margin-top:16px;align-items:center}#print{background:var(--green);color:white;font-weight:bold}.help{font-size:12px;color:#4c6056}#score-editor{border-top:1px solid var(--line);padding-top:14px;margin-top:16px}summary{cursor:pointer;font-weight:bold}.score-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:12px;margin:16px 0}.score-fields fieldset{min-width:0;border:1px solid var(--line)}.score-fields label{display:block}.score-fields input{width:100%;max-width:150px}#score-form textarea{display:block;width:100%;min-height:65px}.report-error{color:var(--red);font-weight:bold}
.report-sheet{max-width:190mm;background:var(--paper);margin:20px auto;padding:14mm;box-shadow:0 2px 14px #18382e12;overflow-wrap:anywhere}.report-sheet h1,.report-sheet h2{font-family:"Yu Mincho",serif}.report-sheet h1{font-size:24px;line-height:1.4;margin:5px 0 12px}.report-sheet h2{font-size:18px;margin:24px 0 10px;padding-bottom:5px;border-bottom:2px solid var(--green)}.report-sheet h3{font-size:15px;margin:18px 0 8px}.report-meta{font-size:11px;color:#4c6056;margin:3px 0}.report-kicker{font-size:11px;letter-spacing:.12em;color:var(--green)}.report-counts{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:18px 0}.report-counts div{border:1px solid var(--line);padding:8px}.report-counts strong{display:block;font-size:25px;font-variant-numeric:tabular-nums}.report-counts span{font-size:11px}.report-sheet table{border-collapse:collapse;width:100%;table-layout:fixed;font-size:11px;margin:9px 0}.report-sheet th,.report-sheet td{border:1px solid var(--line);padding:6px 7px;text-align:left;vertical-align:top;overflow-wrap:anywhere}.report-sheet thead th{background:var(--pale)}.report-sheet caption{text-align:left;font-weight:bold;padding:7px 0}.report-sheet td small{display:block;font-size:10px}.report-sheet .numeric{text-align:center;font-variant-numeric:tabular-nums}.topic-table th:first-child{width:52%}.question-table th:first-child{width:24%}.question-table th:nth-child(2){width:42%}.question-table th:nth-child(3){width:12%}.report-note{font-size:11px;margin:8px 0}.report-callout{border-left:4px solid var(--green);background:var(--pale);padding:10px 14px;margin:14px 0}.report-callout p{margin:5px 0}.report-callout ol{padding-left:22px;margin:5px 0}.report-empty{padding:20px;border:1px dashed var(--line);background:white}.status-x{color:var(--red);font-weight:bold}.status-t{color:var(--amber);font-weight:bold}.status-o{color:var(--green);font-weight:bold}.report-sheet a{color:inherit;text-decoration:underline}.report-sheet .ref-url{font-size:9px;word-break:break-all}.report-checklist{border:1px solid var(--line);padding:10px;font-size:12px}.report-checklist p{margin:6px 0}.report-sheet footer{margin-top:20px;border-top:1px solid var(--line);padding-top:8px;font-size:10px}.report-score-table th:first-child{width:22%}.report-score-table th{font-weight:normal}.report-sheet .selected-round{outline:2px solid var(--green);outline-offset:-2px}
@media(max-width:650px){.report-tools{padding:15px;margin:8px}.report-sheet{margin:12px 8px;padding:20px 14px}.report-sheet h1{font-size:21px}.report-sheet th,.report-sheet td{padding:5px 4px}.report-counts{gap:4px}.report-counts div{padding:6px}.report-counts strong{font-size:21px}.report-sheet table{font-size:10px}}
@page{size:A4 portrait;margin:13mm 12mm 14mm}
@page{@bottom-right{content:counter(page) " / " counter(pages);font-family:sans-serif;font-size:8pt;color:#555}}
@media print{html,body{background:white!important;color:#111;font-size:10pt;line-height:1.55}.report-tools,noscript{display:none!important}.report-sheet{max-width:none;width:100%;margin:0;padding:0;box-shadow:none;break-before:page}.report-sheet:first-child{break-before:auto}.report-sheet h1{font-size:19pt}.report-sheet h2{font-size:13pt;margin-top:14pt;break-after:avoid}.report-sheet h3{font-size:11pt;break-after:avoid}.report-sheet table{font-size:9pt}.report-sheet th,.report-sheet td{padding:4pt 5pt}.report-sheet thead{display:table-header-group}.report-sheet tr{break-inside:avoid}.report-counts,.report-callout,.report-checklist{break-inside:avoid}.report-counts strong{font-size:20pt}.report-note{font-size:8pt}.report-sheet td small{font-size:8pt}.report-sheet .ref-url{font-size:7pt}.report-meta,.report-sheet footer{font-size:8pt}.report-sheet a{text-decoration:none}.report-sheet .selected-round{outline:none;border:2px solid #222}.report-sheet *{-webkit-print-color-adjust:exact;print-color-adjust:exact}}
/* A compact result sheet: only attempted rounds, scores and marked questions. */
.simple-report h1{font-family:Meiryo,"Yu Gothic",sans-serif;font-size:23px}
.attempt-label{font-size:15px;margin:0 0 18px}
.pass-score{padding:12px 0;margin:0;border-top:2px solid var(--green);border-bottom:1px solid var(--line)}
.pass-score strong{font-size:22px;margin-left:12px}
.pass-score span{display:inline-block;font-size:12px;margin-left:8px}
.simple-report .simple-scores{font-size:14px;margin:14px 0}
.simple-scores td strong{font-size:18px}
.simple-counts{display:flex;gap:30px;font-size:20px;font-weight:bold;margin:22px 0 12px}
.mark-grid{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0 14px}
.mark-grid li{display:flex;align-items:center;justify-content:space-between;gap:8px;border-bottom:1px solid var(--line);padding:7px 1px;break-inside:avoid}
.mark-grid a{font-size:13px;text-decoration:none}
.mark-grid strong{font-size:20px;flex-shrink:0}
.marked-subject h2{font-family:inherit;font-size:15px;margin-top:16px}
.simple-source{font-size:10px;color:#4c6056;margin-top:18px}
@media(max-width:500px){.mark-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.simple-report h1{font-size:20px}.simple-counts{gap:20px}}
@media print{.simple-report h1{font-size:17pt}.attempt-label{font-size:11pt;margin-bottom:12pt}.simple-report .simple-scores{font-size:11pt}.simple-scores td strong{font-size:14pt}.pass-score strong{font-size:16pt}.pass-score span{font-size:9pt}.simple-counts{font-size:14pt;margin:14pt 0 8pt}.mark-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:0 12pt}.mark-grid li{padding:4pt 0}.mark-grid a{font-size:10pt}.mark-grid strong{font-size:13pt}.marked-subject h2{font-size:11pt}.simple-source{font-size:8pt}}
/* Exam-level comparison; each attempt keeps its own subjects and judgments. */
.comparison-report h1{font-family:Meiryo,"Yu Gothic",sans-serif;font-size:23px}
.comparison-report h2{font-family:inherit;font-size:17px}
.comparison-report{padding:10mm}
.compare-scroll{overflow-x:auto}
.comparison-report .score-comparison{font-size:13px}
.score-comparison th:first-child{width:17%}
.score-comparison td>strong{display:block;font-size:19px;line-height:1.4}
.score-comparison td>span{display:block;margin:4px 0}
.comparison-report small{display:block;font-weight:normal;font-size:11px}
.score-comparison td .score-missing{font-size:14px;color:#785111}
.pass-line{border-top:2px solid var(--green);padding-top:12px;font-size:14px}
.pass-line strong{font-size:19px}
.change-line{background:var(--pale);padding:10px;font-weight:bold}
.comparison-note{font-size:11px;color:#4c6056;line-height:1.65}
.score-edit-link{margin:6px 0}
.weak-summary{font-size:13px;font-weight:bold}
.comparison-report .weak-comparison{font-size:12px}
.weak-comparison thead th:first-child{width:65%}
.weak-comparison .knowledge-heading{background:#eef4e7;break-after:avoid}
.weak-comparison .knowledge-heading th{font-weight:bold;padding-top:10px}
.weak-comparison .question-context{line-height:1.6}
.knowledge-title{display:block;color:var(--green);font-size:11px;margin-bottom:2px}
.question-context a{font-weight:bold;text-decoration:underline}
.weak-comparison .mark-cell{text-align:center;vertical-align:middle}
.mark-cell strong{font-size:18px}
.mark-cell small{white-space:normal}
.report-source{font-size:10px;margin-top:16px;color:#4c6056}
.muted{color:#718078}
@media(max-width:600px){.comparison-report{padding:18px 12px}.comparison-report .score-comparison{min-width:480px}.comparison-report .weak-comparison{font-size:11px}.weak-comparison th:first-child{width:60%}}
@media print{.comparison-report{padding:0}.comparison-report h1{font-size:17pt}.comparison-report h2{font-size:12pt}.comparison-report .score-comparison{font-size:10pt;min-width:0}.score-comparison td>strong{font-size:13pt}.comparison-report small{font-size:8pt}.comparison-report .score-comparison td .score-missing{font-size:10pt}.pass-line{font-size:10pt;margin:10pt 0 4pt;padding-top:7pt}.pass-line strong{font-size:13pt}.change-line{font-size:10pt;padding:6pt}.comparison-note{font-size:8pt}.comparison-report .weak-comparison{font-size:9pt}.weak-comparison .knowledge-heading th{padding-top:6pt}.weak-comparison thead th:first-child{width:65%}.mark-cell strong{font-size:12pt}.score-edit-link{display:none!important}.report-source{font-size:8pt}.compare-scroll{overflow:visible}}
@media print{.knowledge-title{font-size:8pt;margin-bottom:1pt}.weak-comparison .question-context{line-height:1.5}.scoring-note{margin:5pt 0}.comparison-report header .attempt-label{margin-bottom:10pt}}
.report-overview{padding:20px 28px;max-width:1050px;border-top:4px solid var(--green)}
.report-overview h2{font-family:inherit;font-size:20px;margin:0 0 8px;border:0}
.report-overview p{font-size:12px;margin:4px 0 12px}
.report-overview table{font-size:13px;margin:0}.report-overview th:first-child{width:54%}
.report-overview a{color:var(--green);text-underline-offset:3px}
.comparison-report{scroll-margin-top:15px}.overview-back{font-size:11px;float:right;letter-spacing:0}
.benchmark-panel{margin:18px 0 12px}.benchmark-panel h2{font-size:15px;margin:18px 0 8px}
.comparison-report .benchmark-table{font-size:12px}.benchmark-table th:first-child{width:29%}
.benchmark-table strong{font-size:15px}.evidence-link{display:block;color:#135d9d!important;font-size:10px;text-decoration:underline!important;text-underline-offset:2px}
.evidence-source{font-size:11px;margin:6px 0}.evidence-source a{display:inline}
.print-source-url{display:none}#record-audit{margin-top:10px;font-size:12px}#record-audit p{margin:6px 0}
@media print{.report-overview[data-count="1"]{display:none}.report-overview[data-count="1"]+.comparison-report{break-before:auto!important}.weak-intro{break-inside:avoid;break-after:avoid}}
@media(max-width:600px){.report-overview{padding:16px 12px;margin:8px}.report-overview table{font-size:11px}.report-overview th:first-child{width:49%}.benchmark-table th,.benchmark-table td{padding:5px 4px}.comparison-report .benchmark-table{font-size:11px}.benchmark-table strong{font-size:13px}}
@media print{.report-overview{max-width:none;padding:0;border:0;break-before:auto}.report-overview h2{font-size:16pt}.report-overview table{font-size:10pt}.report-overview p{font-size:9pt}.overview-back{display:none}.benchmark-panel{break-inside:avoid;margin:10pt 0 6pt}.benchmark-panel h2{font-size:11pt;margin:9pt 0 6pt}.comparison-report .benchmark-table{font-size:8pt}.benchmark-table strong{font-size:10pt}.evidence-link{font-size:7pt}.evidence-source{font-size:8pt}.print-source-url{display:block;font-size:7pt;overflow-wrap:anywhere}.report-overview+.comparison-report{break-before:page}}
/* The first page is a school -> exam -> attempt ledger; details stay below it. */
.report-overview{max-width:1120px}
.report-overview .overview-school{margin-top:20px}
.report-overview .overview-school h3,.report-overview .knowledge-school h3{font-family:inherit;font-size:16px;margin:15px 0 6px;border-left:4px solid var(--green);padding-left:9px}
.overview-school h3 small{font-size:11px;font-weight:normal;color:#4c6056;margin-left:8px}
.overview-scroll{overflow-x:auto}
.report-overview .overview-table{min-width:760px;table-layout:fixed;font-size:11px}
.report-overview .overview-table thead th:nth-child(1){width:18%}
.report-overview .overview-table thead th:nth-child(2){width:22%}
.report-overview .overview-table thead th:nth-child(3),.report-overview .overview-table thead th:nth-child(4),.report-overview .overview-table thead th:nth-child(5){width:14%}
.report-overview .overview-table thead th:nth-child(6){width:18%}
.overview-exam-heading th{background:#e2ede4;font-weight:bold;break-after:avoid}
.overview-exam-heading .evidence-link{display:inline;margin-left:12px}
.overview-total-row th,.overview-total-row td,.benchmark-total-row th,.benchmark-total-row td{background:#eaf3e8;font-weight:bold}
.overview-table tbody tr:nth-child(even),.knowledge-overview tbody tr:nth-child(even){background:#f8faf6}
.overview-table td>strong,.overview-table td>span{display:block}
.overview-table td small{display:block;color:#4c6056;font-size:10px}
.overview-table .evidence-link{font-size:9px}
.knowledge-overview{margin-top:22px}
.knowledge-overview .knowledge-school{margin-top:14px}
.report-overview .knowledge-overview table{font-size:11px}
.knowledge-overview th:first-child{width:11%!important}.knowledge-overview th:nth-child(7){width:45%}
.weak-topic+.weak-topic{margin-top:6px}.weak-topic small{display:inline;margin-left:7px;color:var(--red)}
.weak-subject{margin:12px 0 18px;padding:10px 12px;border:1px solid var(--line);border-radius:6px;background:#fbfcfa}.weak-subject h4{margin:0 0 8px;font-size:14px}.weak-subject h4 small{display:block;font-size:11px;font-weight:normal;color:#4c6056}.weak-category,.weak-subcategory{margin:6px 0;border:1px solid var(--line);border-radius:4px;background:white}.weak-category>summary,.weak-subcategory>summary{padding:7px 10px;display:flex;justify-content:space-between;gap:10px;align-items:baseline}.weak-category>summary{background:var(--pale)}.weak-subcategory{margin:5px 10px}.weak-subcategory>summary{font-size:12px}.weak-counts{white-space:nowrap;color:var(--red);font-size:11px;font-weight:bold}.weak-content{border-top:1px solid var(--line);padding:7px 12px;font-size:11px}.weak-content>strong{margin-right:8px}.weak-content ul{margin:5px 0 0;padding-left:18px}.weak-content li{margin:3px 0}.weak-content li small{display:inline;color:#4c6056}.weak-content li .status-x,.weak-content li .status-t{margin-left:5px}
.all-mark-details{margin-top:18px;border-top:2px solid var(--green);padding-top:8px}
.all-mark-details summary{font-size:15px;color:var(--green)}
.all-mark-details .all-mark-table{font-size:11px}
.all-mark-table th:first-child{width:65%}.all-mark-table .mark-cell{text-align:center}
@media(max-width:650px){.report-overview .overview-table{min-width:760px}.overview-scroll{margin-right:-12px}.knowledge-overview{overflow-x:auto}.knowledge-overview table{min-width:620px}}
@media print{
 .report-overview[data-count="1"]{display:block}
 .report-overview{max-width:none;padding:0}
 .overview-scroll{overflow:visible}
 .report-overview .overview-table{min-width:0;font-size:7pt}
 .report-overview .overview-table th,.report-overview .overview-table td{padding:3pt}
 .report-overview .overview-table td small{font-size:6.5pt}
 .report-overview .overview-school h3,.report-overview .knowledge-school h3{font-size:10pt;break-after:avoid}
 .report-overview .knowledge-overview table{font-size:7pt}
 .knowledge-overview th,.knowledge-overview td{padding:3pt}
 .knowledge-overview details>*{display:block!important}.knowledge-overview .weak-category,.knowledge-overview .weak-subcategory{break-inside:auto}.knowledge-overview .weak-content{break-inside:avoid}
 .all-mark-details{display:none}
}

.learning-report{border-top:5px solid var(--green);background:#fbfcf9}
.learning-report h1{font-family:Meiryo,"Yu Gothic",sans-serif;font-size:24px;margin:0 0 8px}
.learning-report>p{font-size:12px;color:#4c6056}
.learning-report .learning-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin:17px 0}
.learning-report .learning-cards>div{border:1px solid var(--line);padding:11px;background:white;break-inside:avoid}
.learning-report .learning-cards strong{display:block;font-size:23px;line-height:1.2;font-variant-numeric:tabular-nums}
.learning-report .learning-cards span{display:block;font-size:11px;color:#4c6056;margin-top:5px}
.learning-report .learning-tasks{padding-left:22px}.learning-report .learning-tasks li{margin:8px 0;font-size:13px}
.learning-report .learning-focus{border-left:4px solid var(--green);padding:10px 13px;background:var(--pale);break-inside:avoid}
.learning-report .learning-focus ul{margin:5px 0 0;padding-left:18px}.learning-report .learning-focus li{margin:4px 0;font-size:12px}.learning-report .learning-focus span{display:block;color:#4c6056;font-size:10px}
.learning-report .learning-note{font-size:11px;color:#785111}
.learning-school-summary{margin:10px 0 15px}.learning-school-summary strong{display:block;margin-bottom:5px}.learning-school-summary table{width:100%;border-collapse:collapse;font-size:12px}.learning-school-summary th,.learning-school-summary td{padding:5px 7px;border:1px solid var(--line);text-align:left}.learning-school-summary thead{background:var(--pale)}
@media(max-width:650px){.learning-report .learning-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.learning-report .learning-cards strong{font-size:19px}}
@media print{.learning-report{padding:0;border:0;break-before:auto}.learning-report h1{font-size:17pt}.learning-report .learning-cards{gap:5pt;margin:9pt 0}.learning-report .learning-cards>div{padding:6pt}.learning-report .learning-cards strong{font-size:15pt}.learning-report .learning-cards span{font-size:7pt}.learning-report .learning-tasks li{font-size:9pt;margin:4pt 0}.learning-report .learning-focus{padding:6pt 8pt}.learning-report .learning-focus li{font-size:8pt}.learning-report .learning-note{font-size:8pt}}
@media print{body[data-print-scope="overview"] .comparison-report{display:none!important}body[data-print-scope="overview"] .knowledge-overview{display:none!important}}


