:root {
    --ink: #17201c;
    --muted: #63706a;
    --paper: #ffffff;
    --canvas: #f3f5f2;
    --line: #d8ded9;
    --green: #157347;
    --green-dark: #0d5132;
    --green-soft: #e4f2ea;
    --orange: #d45f0a;
    --orange-soft: #fff0e2;
    --red: #b42318;
    --red-soft: #feeceb;
    --blue: #245ea8;
    --shadow: 0 14px 34px rgba(23, 32, 28, 0.08);
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--canvas); }
body { margin: 0; min-height: 100vh; color: var(--ink); background: var(--canvas); font-family: "Trebuchet MS", Tahoma, sans-serif; font-size: 16px; line-height: 1.55; letter-spacing: 0; }
a { color: var(--green-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; letter-spacing: 0; }
button { cursor: pointer; }
.shell, .page-main { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(10px); }
.header-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 40px; height: 40px; background: var(--green-dark); color: #fff; font: 700 23px Georgia, serif; border-radius: 6px; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 14px; text-transform: uppercase; }
.brand small { color: var(--muted); font-size: 12px; }
.main-nav { display: flex; align-items: center; gap: 20px; font-size: 14px; font-weight: 700; }
.main-nav a { color: var(--ink); }
.nav-logout { margin: 0; }
.nav-logout button { padding: 0; border: 0; color: var(--ink); background: none; font-weight: 700; }
.page-main { min-height: calc(100vh - 144px); padding-block: 48px 72px; }
.narrow-main { max-width: 900px; }
.landing-band { min-height: 560px; display: grid; align-items: center; overflow: hidden; background: linear-gradient(125deg, #edf2ed 0 54%, #d9e5dc 54% 100%); border-bottom: 1px solid var(--line); }
.landing-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr); align-items: center; gap: 72px; }
.landing-copy { padding-block: 78px; }
.eyebrow { display: block; margin-bottom: 9px; color: var(--green); font-size: 12px; font-weight: 800; text-transform: uppercase; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; line-height: 1.15; letter-spacing: 0; }
h1 { margin: 0; font-size: clamp(38px, 5vw, 66px); max-width: 760px; }
h2 { font-size: 25px; }
.lead { margin: 10px 0 0; font: 700 28px Georgia, serif; color: var(--green); }
.landing-summary { max-width: 630px; margin: 28px 0; color: #47534d; font-size: 18px; }
.button-row { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; padding: 10px 18px; border: 1px solid var(--green); border-radius: 6px; background: var(--green); color: white; font-weight: 800; text-transform: uppercase; font-size: 13px; text-decoration: none; }
.button:hover { background: var(--green-dark); text-decoration: none; }
.button-secondary { background: white; color: var(--green-dark); }
.button-ghost { background: transparent; color: var(--green-dark); border-color: var(--line); }
.button-small { min-height: 36px; padding: 6px 12px; }
.button-wide { width: 100%; }
.text-link { padding: 10px; font-size: 13px; font-weight: 800; text-transform: uppercase; }
.identity-panel { min-height: 330px; padding: 42px; display: flex; flex-direction: column; justify-content: center; color: #fff; background: #173e2d; box-shadow: var(--shadow); border: 1px solid rgba(255,255,255,.2); border-radius: 8px; }
.identity-number { font: 700 88px Georgia, serif; line-height: 1; }
.identity-panel strong, .identity-panel span { display: block; }
.identity-panel span { color: #bed0c5; font-size: 14px; }
.identity-rule { height: 1px; margin: 28px 0; background: rgba(255,255,255,.24); }
.trust-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; padding-block: 30px; }
.trust-strip div { padding: 5px 28px; border-right: 1px solid var(--line); }
.trust-strip div:last-child { border: 0; }
.trust-strip strong, .trust-strip span { display: block; }
.trust-strip span { color: var(--muted); font-size: 13px; }
.developer-band { overflow: hidden; background: #fff; border-top: 1px solid var(--line); }
.developer-layout { min-height: 320px; display: flex; align-items: center; }
.developer-copy { align-self: center; max-width: 650px; padding-block: 58px; }
.developer-copy h2 { margin: 0; font-size: 38px; }
.developer-copy p { margin: 20px 0 28px; color: var(--muted); font-size: 17px; }
.developer-principles { display: flex; flex-wrap: wrap; gap: 9px; }
.developer-principles span { padding: 7px 10px; color: var(--green-dark); background: var(--green-soft); border-left: 3px solid var(--green); font-size: 12px; font-weight: 800; }
.site-footer { min-height: 72px; padding-block: 22px; background: var(--ink); color: #cbd4cf; font-size: 12px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.footer-credit { display: flex; align-items: center; }
.footer-credit span, .footer-credit small, .footer-credit strong { display: block; }
.footer-credit small { color: #94a49b; font-size: 9px; text-transform: uppercase; }
.footer-credit strong { color: #fff; font-size: 11px; }
.auth-main { min-height: calc(100vh - 144px); display: grid; place-items: center; padding: 42px 20px; background: linear-gradient(135deg, #e9efea, #f8faf8 58%, #e8ece7); }
.auth-card { width: min(440px, 100%); padding: 38px; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); }
.auth-card h1, .page-heading h1 { font-size: 38px; }
.auth-card p, .page-heading p { color: var(--muted); }
.form-stack { display: grid; gap: 18px; margin-top: 26px; }
label { display: grid; gap: 7px; font-size: 14px; font-weight: 700; }
input, select, textarea { width: 100%; min-height: 44px; padding: 9px 12px; color: var(--ink); background: white; border: 1px solid #bfc8c1; border-radius: 5px; outline: none; }
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(21,115,71,.13); }
.form-foot { margin: 24px 0 0; text-align: center; font-size: 14px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.full-span { grid-column: 1 / -1; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 10px; }
.field-error { color: var(--red); font-weight: 500; }
.page-heading { margin-bottom: 30px; }
.panel { padding: 28px; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 5px 18px rgba(23,32,28,.04); }
.flash-stack { position: fixed; z-index: 60; top: 84px; left: 50%; transform: translateX(-50%); }
.alert { padding: 12px 14px; border: 1px solid; border-radius: 5px; margin-bottom: 14px; }
.alert-success { color: var(--green-dark); background: var(--green-soft); border-color: #9bc9ae; }
.alert-warning { color: #7d3e00; background: var(--orange-soft); border-color: #efbd8e; }
.alert-danger { color: #85170f; background: var(--red-soft); border-color: #e8aaa5; }
.dashboard-hero { margin-bottom: 28px; padding-bottom: 28px; display: flex; align-items: end; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); }
.dashboard-hero h1 { font-size: 42px; }
.dashboard-hero p { margin-bottom: 0; color: var(--muted); }
.status-badge { display: inline-flex; padding: 7px 12px; border-radius: 999px; background: #e7ebe8; font-size: 12px; font-weight: 800; text-transform: uppercase; white-space: nowrap; }
.status-sedang-mengerjakan { background: var(--orange-soft); color: #8b4100; }
.status-selesai { background: var(--green-soft); color: var(--green-dark); }
.dashboard-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 24px; }
.metric-line, .category-list div { display: flex; justify-content: space-between; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.metric-line strong { font-size: 19px; }
.dashboard-actions { margin-top: 24px; }
.category-list h2 { margin-top: 0; }
.category-list div { font-size: 14px; }
.dashboard-developer { margin-top: 24px; padding: 14px 16px; display: flex; align-items: center; color: var(--muted); background: #e8ece9; border-left: 3px solid var(--green); }
.dashboard-developer span, .dashboard-developer strong { display: block; }
.dashboard-developer span { font-size: 10px; font-weight: 800; text-transform: uppercase; }
.dashboard-developer strong { color: var(--ink); font-size: 13px; }
.instruction-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: -28px -28px 28px; overflow: hidden; border-radius: 8px 8px 0 0; background: var(--line); }
.instruction-facts div { padding: 20px; background: #f9faf9; }
.instruction-facts span, .instruction-facts strong { display: block; }
.instruction-facts span { color: var(--muted); font-size: 12px; text-transform: uppercase; font-weight: 800; }
.instruction-facts strong { margin-top: 4px; font-size: 21px; }
.instruction-list { padding-left: 24px; }
.instruction-list li { padding: 7px 0 7px 8px; }
.instruction-confirm { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.check-label { display: flex; grid-template-columns: auto 1fr; align-items: center; margin-bottom: 18px; }
.check-label input { width: 18px; min-height: 18px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.exam-body { height: 100vh; height: 100dvh; overflow: hidden; background: #edf0ed; }
#exam-app { height: 100vh; height: 100dvh; min-height: 0; display: grid; grid-template-rows: 76px minmax(0, 1fr) 82px; }
.exam-header { z-index: 20; display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 36px; padding: 10px 24px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 3px 14px rgba(23,32,28,.06); }
.exam-brand { display: flex; align-items: center; gap: 12px; }
.exam-brand strong, .exam-brand span { display: block; }
.exam-brand strong { font-size: 14px; text-transform: uppercase; }
.exam-brand span { color: var(--muted); font-size: 12px; }
.exam-progress-head, .exam-timer { min-width: 150px; padding-left: 24px; border-left: 1px solid var(--line); }
.exam-progress-head span, .exam-timer span { display: block; color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.exam-progress-head strong { font-size: 15px; }
.exam-timer strong { display: block; color: var(--green-dark); font: 700 21px Georgia, serif; white-space: nowrap; }
.exam-timer.is-warning strong { color: var(--orange); }
.exam-timer.is-critical strong { color: var(--red); }
.navigator-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 5px; background: white; font-size: 22px; }
.exam-layout { position: relative; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 16px; padding: 14px 20px; overflow: hidden; }
.question-stage, .question-navigator { min-height: 0; background: #fff; border: 1px solid var(--line); border-radius: 7px; }
.question-stage { display: grid; grid-template-rows: auto 1fr; overflow: auto; }
.question-stage[aria-busy="true"] { opacity: .72; }
.question-meta { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 22px; border-bottom: 1px solid var(--line); }
.question-meta div { display: flex; align-items: baseline; gap: 10px; }
.question-meta span { color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.question-meta strong { color: var(--green-dark); font: 700 27px Georgia, serif; }
.category-chip { padding: 5px 9px; background: #eef3ef; border-radius: 4px; color: var(--green-dark) !important; }
.question-content { width: min(960px, 100%); padding: 24px 30px 32px; }
.question-text { margin: 0 0 22px; font: 700 21px/1.45 Georgia, serif; white-space: pre-line; }
.answer-options { display: grid; gap: 10px; padding: 0; border: 0; }
.answer-option { min-height: 54px; display: grid; grid-template-columns: 36px minmax(0, 1fr); align-items: center; gap: 13px; padding: 9px 14px; border: 1px solid #cbd3cd; border-radius: 6px; background: #fff; cursor: pointer; font-weight: 500; transition: border-color .14s, background-color .14s; }
.answer-option[hidden], .answer-options[hidden], .text-answer-wrap[hidden], .practice-file-link[hidden] { display: none; }
.answer-option:hover { border-color: #7fa88f; background: #f7faf8; }
.answer-option:has(input:checked) { border-color: var(--green); background: var(--green-soft); box-shadow: 0 0 0 2px rgba(21,115,71,.12); }
.answer-option input { position: absolute; opacity: 0; pointer-events: none; }
.option-letter { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid #aeb9b1; border-radius: 5px; font-weight: 900; }
.answer-option:has(input:checked) .option-letter { color: white; background: var(--green); border-color: var(--green); }
.text-answer-wrap { display: grid; gap: 9px; }
.text-answer-wrap textarea { min-height: 150px; font-size: 17px; line-height: 1.5; }
.text-answer-wrap small { color: var(--muted); }
.practice-file-link { margin-top: 16px; width: fit-content; }
.question-navigator { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; overflow: hidden; }
.navigator-heading { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.navigator-heading span, .navigator-heading strong { display: block; }
.navigator-heading span { color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.navigator-heading small { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }
.navigator-close { display: none; width: 36px; height: 36px; border: 0; background: transparent; font-size: 26px; }
.number-grid { align-content: center; display: grid; grid-template-columns: repeat(5, 1fr); gap: 9px; padding: 16px; overflow: visible; }
.number-button { aspect-ratio: 1; min-width: 0; display: grid; place-items: center; border: 1px solid #c5cdc7; border-radius: 5px; background: #f8f9f8; color: var(--ink); font-size: 12px; font-weight: 800; }
.number-button[hidden] { display: none; }
.number-button.is-answered { border-color: var(--green); background: var(--green); color: white; }
.number-button.is-doubtful { border-color: var(--orange); background: var(--orange); color: white; }
.number-button.is-active { outline: 3px solid var(--blue); outline-offset: 2px; }
.status-legend { padding: 15px 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 7px 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.status-legend div { display: flex; align-items: center; gap: 7px; }
.legend-dot { width: 10px; height: 10px; border-radius: 3px; background: #f8f9f8; border: 1px solid #c5cdc7; }
.legend-dot.answered { background: var(--green); border-color: var(--green); }
.legend-dot.doubtful { background: var(--orange); border-color: var(--orange); }
.navigator-backdrop { display: none; }
.exam-footer { z-index: 15; display: grid; grid-template-columns: minmax(170px, 220px) minmax(150px, 190px) minmax(190px, 240px); gap: 12px; align-items: center; padding: 13px 20px; background: #fff; border-top: 1px solid var(--line); }
.exam-action { min-height: 54px; padding: 11px 20px; border: 1px solid #aeb9b1; border-radius: 5px; background: #fff; color: var(--ink); font-size: 13px; font-weight: 900; text-transform: uppercase; }
.exam-action:hover { background: #f1f4f2; }
.exam-action:disabled { opacity: .45; cursor: not-allowed; }
.exam-action.previous { grid-column: 1; }
.exam-action.doubt { color: #8a4000; border-color: #e6a166; }
.exam-action.doubt.is-marked { color: white; background: var(--orange); border-color: var(--orange); }
.exam-action.doubt { grid-column: 2; }
.exam-action.next { grid-column: 3; color: white; background: var(--green); border-color: var(--green); }
.submit-dialog { width: min(560px, calc(100% - 30px)); max-height: calc(100vh - 30px); max-height: calc(100dvh - 30px); padding: 32px; overflow-y: auto; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 24px 60px rgba(23,32,28,.28); }
.submit-dialog::backdrop { background: rgba(15,24,19,.62); }
.submit-dialog h2 { margin: 8px 0; font-size: 30px; }
.submit-dialog > form > p { color: var(--muted); }
.dialog-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: #fff; background: var(--orange); font-weight: 900; }
.dialog-warning { padding: 10px; color: #7d3e00 !important; background: var(--orange-soft); border-left: 3px solid var(--orange); }
.subtest-dialog-icon { background: var(--green); }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 25px; }
.toast { position: fixed; z-index: 80; right: 24px; bottom: 90px; max-width: min(380px, calc(100% - 30px)); padding: 12px 16px; border-radius: 5px; color: #fff; background: var(--ink); box-shadow: var(--shadow); opacity: 0; transform: translateY(12px); pointer-events: none; transition: .18s ease; }
.toast.is-visible { opacity: 1; transform: translateY(0); }
.toast.is-error { background: var(--red); }
.admin-main { width: min(1380px, calc(100% - 40px)); }
.admin-heading, .result-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.admin-heading h1, .result-heading h1 { font-size: 42px; }
.admin-heading p, .result-heading p { margin-bottom: 0; color: var(--muted); }
.heading-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.admin-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 24px; }
.admin-metrics div { min-height: 118px; padding: 20px; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--green); border-radius: 6px; }
.admin-metrics span, .admin-metrics strong { display: block; }
.admin-metrics span { color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.admin-metrics strong { margin-top: 8px; font: 700 32px Georgia, serif; }
.admin-table-panel { padding: 0; overflow: hidden; }
.panel-heading { padding: 20px 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); }
.panel-heading h2, .panel-heading p { margin: 0; }
.panel-heading p { color: var(--muted); font-size: 13px; }
.table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 13px 15px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: #56625c; background: #f5f7f5; font-size: 10px; text-transform: uppercase; white-space: nowrap; }
tbody tr:hover { background: #fafcfb; }
.empty-cell { padding: 32px; text-align: center; color: var(--muted); }
.table-status { display: inline-flex; padding: 3px 7px; border-radius: 3px; background: #e9eeea; font-size: 10px; font-weight: 800; }
.table-action { font-weight: 800; }
.filter-bar { display: grid; grid-template-columns: minmax(240px, 1fr) minmax(180px, 260px) auto; gap: 10px; margin-bottom: 18px; padding: 14px; background: #e8ece9; border: 1px solid var(--line); border-radius: 6px; }
.pagination { display: flex; gap: 6px; padding: 15px; }
.pagination a { display: grid; place-items: center; min-width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 4px; }
.pagination a.active { color: white; background: var(--green); }
.back-link { display: inline-block; margin-bottom: 20px; font-weight: 800; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.detail-grid h2, .danger-zone h2, .question-form-panel h2 { margin-top: 0; }
.detail-list { display: grid; grid-template-columns: 160px 1fr; gap: 10px; }
.detail-list dt { color: var(--muted); }
.detail-list dd { margin: 0; font-weight: 700; }
.inline-form { margin-top: 25px; }
.danger-zone { margin-top: 24px; padding: 24px; border: 1px solid #e2aaa5; border-radius: 7px; background: var(--red-soft); }
.danger-zone > div { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.danger-zone form { display: grid; gap: 12px; padding: 18px; background: #fff; border: 1px solid #edc7c3; border-radius: 5px; }
.danger-button { background: var(--red); border-color: var(--red); }
.question-form-panel { margin-bottom: 18px; }
.question-preview { min-width: 320px; max-width: 600px; }
.row-actions { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.row-actions form { display: inline; }
.row-actions button { padding: 0; border: 0; background: none; color: var(--green-dark); font-weight: 700; }
.row-actions .danger-link { color: var(--red); }
.result-check { display: grid; place-items: center; width: 64px; height: 64px; flex: 0 0 auto; border-radius: 50%; color: white; background: var(--green); font-size: 30px; }
.result-heading { justify-content: start; align-items: center; }
.result-score-band { display: grid; grid-template-columns: 260px 1fr; margin-bottom: 20px; overflow: hidden; background: #153e2c; color: white; border-radius: 8px; }
.result-score-band > div:first-child { padding: 36px; border-right: 1px solid rgba(255,255,255,.2); }
.result-score-band span, .result-score-band strong, .result-score-band small { display: block; }
.result-score-band > div:first-child strong { font: 700 58px Georgia, serif; }
.result-score-band small { color: #bfd1c7; }
.result-meta { display: grid; grid-template-columns: 1fr 1fr; padding: 24px 30px; gap: 10px 30px; }
.result-meta p { margin: 0; padding-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,.14); }
.result-meta span { color: #bfd1c7; font-size: 10px; text-transform: uppercase; }
.summary-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px; }
.summary-grid span, .summary-grid strong { display: block; }
.summary-grid span { color: var(--muted); font-size: 11px; text-transform: uppercase; }
.summary-grid strong { font: 700 30px Georgia, serif; }
.result-categories h2 { margin-top: 0; }
.final-score-line { margin-top: 20px; padding: 18px; display: flex; justify-content: space-between; background: var(--green-soft); border-radius: 5px; }
.result-notice { padding: 42px; text-align: center; }
.more-menu { position: relative; }
.more-menu summary { cursor: pointer; color: var(--ink); font-weight: 700; }
.more-menu div { position: absolute; z-index: 50; top: 32px; right: 0; min-width: 180px; padding: 7px; background: white; border: 1px solid var(--line); border-radius: 6px; box-shadow: var(--shadow); }
.more-menu div a { display: block; padding: 8px 10px; }
.result-filter { grid-template-columns: minmax(240px,1fr) 180px 140px auto; }
.text-success { color: var(--green-dark); font-weight: 800; }
.text-danger { color: var(--red); font-weight: 800; }
.score-form input { min-width: 100px; }
.setting-checks { padding: 18px; background: #f3f6f4; border-radius: 5px; }
.setting-checks .check-label { margin: 8px 0; }
.import-upload { margin-bottom: 20px; }
.format-note { margin-top: 22px; padding: 16px; background: #f3f6f4; border-radius: 5px; }
.format-note strong, .format-note code { display: block; }
.format-note code { margin-top: 5px; white-space: normal; }
.invalid-row { background: var(--red-soft); }
.compact-upload { grid-template-columns: minmax(220px, .8fr) minmax(300px, 1.2fr) auto; align-items: end; }
.compact-upload textarea { min-height: 72px; }

@media print {
    .site-header, .site-footer, .no-print, .flash-stack { display: none !important; }
    body { background: white; color: black; }
    .page-main { width: 100%; padding: 0; }
    .panel { box-shadow: none; break-inside: avoid; }
    table { font-size: 10px; }
}

@media (max-width: 800px) {
    .shell, .page-main { width: min(100% - 24px, 1180px); }
    .main-nav a:not(.button) { display: none; }
    .landing-band { background: linear-gradient(155deg, #eef3ef 0 70%, #d9e5dc 70%); }
    .landing-grid, .dashboard-grid { grid-template-columns: 1fr; gap: 24px; }
    .landing-copy { padding-block: 58px 10px; }
    h1 { font-size: 40px; }
    .identity-panel { min-height: 240px; margin-bottom: 34px; }
    .trust-strip { grid-template-columns: 1fr; }
    .trust-strip div { border-right: 0; border-bottom: 1px solid var(--line); padding: 14px 4px; }
    .developer-copy h2 { font-size: 30px; }
    .form-grid { grid-template-columns: 1fr; }
    .full-span { grid-column: auto; }
    .instruction-facts { grid-template-columns: 1fr; }
    .dashboard-hero { align-items: start; flex-direction: column; }
    .exam-header { grid-template-columns: 1fr auto auto; gap: 14px; padding-inline: 16px; }
    .exam-brand .brand-mark, .exam-progress-head { display: none; }
    .exam-layout { grid-template-columns: 1fr; padding: 12px; }
    .navigator-toggle, .navigator-close { display: block; }
    .question-navigator { position: fixed; z-index: 50; inset: 0 0 0 auto; width: min(380px, 90vw); border-radius: 0; transform: translateX(105%); transition: transform .2s ease; }
    .navigator-open .question-navigator { transform: translateX(0); }
    .navigator-backdrop { position: fixed; z-index: 45; inset: 0; background: rgba(15,24,19,.55); }
    .navigator-open .navigator-backdrop { display: block; }
    .exam-footer { grid-template-columns: 1fr 1fr 1fr; padding: 10px 12px; }
    .exam-action { padding-inline: 8px; font-size: 10px; }
    .exam-action.next { justify-self: stretch; }
    .admin-main { width: min(100% - 24px, 1380px); }
    .admin-heading { align-items: start; flex-direction: column; }
    .heading-actions { justify-content: flex-start; }
    .admin-metrics { grid-template-columns: repeat(2, 1fr); }
    .filter-bar, .detail-grid, .danger-zone > div { grid-template-columns: 1fr; }
    .result-filter { grid-template-columns: 1fr; }
    .compact-upload { grid-template-columns: 1fr; }
    .result-score-band { grid-template-columns: 1fr; }
    .result-score-band > div:first-child { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.2); }
    .summary-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 520px) {
    .brand strong { font-size: 12px; }
    .brand small { font-size: 11px; }
    .auth-card, .panel { padding: 22px; }
    .instruction-facts { margin: -22px -22px 22px; }
    .footer-inner { flex-direction: column; }
    .developer-copy { width: min(100% - 32px, 1180px); margin-inline: auto; padding-block: 36px 44px; }
    .developer-copy h2 { font-size: 28px; }
    .footer-inner { align-items: flex-start; }
    #exam-app { grid-template-rows: 72px minmax(0, 1fr) 74px; }
    .exam-brand strong { font-size: 11px; }
    .exam-timer { min-width: auto; padding-left: 12px; }
    .exam-timer strong { font-size: 16px; }
    .question-content { padding: 24px 18px 40px; }
    .question-text { font-size: 19px; }
    .question-meta { padding: 14px 18px; }
    .category-chip { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .answer-option { min-height: 54px; }
    .submit-dialog { padding: 22px; }
}