.cmat-page { color: #10274f; }
.cmat-page .score-switch { flex-wrap: wrap; }
.cmat-content { position: relative; margin-top: -54px; padding-bottom: 60px; }
.cmat-form, #cmat-result, .cmat-rules {
    background: #fff; border: 1px solid #dce7f7; border-radius: 22px;
    padding: clamp(18px, 4vw, 38px); margin-bottom: 28px;
}
.cmat-form { box-shadow: 0 18px 48px #10274f19; }
.cmat-form label { display: block; font-weight: 700; }
.cmat-form .response-sheet-form input {
    width: 100%; display: block; margin-top: 6px; padding: 11px 14px; min-height: 46px;
    border: 1px solid #bacbe3; border-radius: 10px; background: #fff; color: #10274f;
}
.cmat-report-hero {
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px;
    background: linear-gradient(120deg, #0c224a, #1949a6); color: #fff; padding: clamp(20px,4vw,42px);
    border-radius: 18px; margin-bottom: 20px;
}
.cmat-report-hero h2 { color: #fff; font-size: clamp(24px, 4vw, 42px); margin: 4px 0 8px; }
.cmat-report-hero p { margin: 3px 0; }
.cmat-report-hero .cmat-brand { color: #71e6ee; font-weight: 800; }
.cmat-total { min-width: 155px; border: 1px solid #8eafed; border-radius: 14px; padding: 14px 24px; text-align: center; }
.cmat-total span, .cmat-total strong, .cmat-metrics span, .cmat-metrics strong { display: block; }
.cmat-total strong { font-size: clamp(40px, 7vw, 64px); line-height: 1.1; font-variant-numeric: tabular-nums; }
.cmat-metrics {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 10px;
    margin: 0 0 16px;
}
.cmat-metrics div { background: #f0f5fc; border-radius: 10px; padding: 10px 12px; }
.cmat-metrics dt, .cmat-metrics span { font-size: .88rem; color: #3d5071; }
.cmat-metrics dd, .cmat-metrics strong { font-size: 1.25rem; font-weight: 750; margin: 0; }
.cmat-print { border: 1px solid #2159ad; border-radius: 9px; background: #fff; color: #174795; padding: 8px 14px; margin-bottom: 18px; }
.cmat-section { border: 1px solid #dce7f7; padding: clamp(12px, 2vw, 20px); border-radius: 14px; margin-bottom: 12px; }
.cmat-section header { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.cmat-section header strong { white-space: nowrap; color: #174795; }
.cmat-section h4 { font-size: 1.1rem; margin-bottom: 12px; }
.cmat-review summary { cursor: pointer; font-weight: 700; color: #174795; }
.cmat-table-scroll { overflow: auto; margin-top: 10px; }
.cmat-review table { width: 100%; font-size: .9rem; }
.cmat-review td, .cmat-review th { padding: 7px 9px; border-bottom: 1px solid #dce7f7; white-space: nowrap; }
.cmat-status-correct { color: #086447; }
.cmat-status-incorrect { color: #942313; }
.cmat-status-unattempted { color: #425679; }
@media print {
    body:has(#cmat-result:not([hidden])) * { visibility: hidden; }
    body:has(#cmat-result:not([hidden])) #cmat-result,
    body:has(#cmat-result:not([hidden])) #cmat-result * { visibility: visible; }
    body:has(#cmat-result:not([hidden])) #cmat-result { position: absolute; inset: 0; margin: 0; }
    .cmat-page .cmat-print, .cmat-page .cmat-review { display: none; }
    .cmat-page .cmat-report-hero { background: #fff; border: 1px solid #bacbe3; }
    .cmat-page .cmat-report-hero, .cmat-page .cmat-report-hero h2, .cmat-page .cmat-report-hero .cmat-brand { color: #10274f; }
    .cmat-page .cmat-section { break-inside: avoid; }
}
