:root {
    --ink: #0f1d33;
    --muted: #5b6b82;
    --paper: #ffffff;
    --canvas: #f3f6fa;
    --line: #d8ded9;
    --green: #0b5cad;
    --green-dark: #08488a;
    --green-soft: #e6f0fb;
    --orange: #d45f0a;
    --orange-soft: #fff0e2;
    --red: #b42318;
    --red-soft: #feeceb;
    --blue: #245ea8;
    --shadow: 0 14px 34px rgba(15, 23, 42, 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 15px Georgia, serif; letter-spacing: .02em; 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, #eef3fa 0 54%, #d6e4f5 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: #475569; 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: #0b3566; 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: #bed0e4; 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: #c7d4e6; 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: #8fa6c4; 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, #e8eef6, #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(11,92,173,.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(15,23,42,.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: #9cc3ea; }
.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 84px 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(15,23,42,.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; }
.subtest-menu { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; padding: 8px 20px; overflow-x: auto; background: #f7f9f7; border-bottom: 1px solid var(--line); }
.subtest-card { min-width: 132px; display: grid; gap: 2px; padding: 9px 11px; text-align: left; border: 1px solid #cbd3cd; border-radius: 6px; background: #fff; color: var(--ink); }
.subtest-card span { color: var(--muted); font-size: 9px; font-weight: 900; text-transform: uppercase; }
.subtest-card strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.subtest-card small { color: var(--muted); font-size: 10px; }
.subtest-card.status-completed { border-color: var(--green); background: var(--green-soft); }
.subtest-card.is-active { border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); }
.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], .practice-question-instructions[hidden], .practice-reference[hidden] { display: none; }
.answer-option:hover { border-color: #7f9fc4; background: #f7faf8; }
.answer-option:has(input:checked) { border-color: var(--green); background: var(--green-soft); box-shadow: 0 0 0 2px rgba(11,92,173,.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; }
.practice-question-instructions { padding: 12px 14px; color: var(--green-dark); background: var(--green-soft); border-left: 3px solid var(--green); white-space: pre-line; }
.practice-reference { margin: 0 0 18px; }
.practice-reference img { display: block; max-width: 100%; max-height: 46vh; object-fit: contain; border: 1px solid var(--line); }
.practice-reference figcaption { margin-top: 6px; color: var(--muted); font-size: 11px; }
.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(150px, 190px) minmax(140px, 180px) minmax(170px, 220px) minmax(150px, 190px); 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); }
.exam-action.finish { grid-column: 4; color: white; background: var(--red); border-color: var(--red); }
.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(15,23,42,.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: repeat(5, minmax(0, 1fr)); margin-bottom: 20px; overflow: hidden; background: #0b3566; color: white; border-radius: 8px; }
.result-score-band > div { min-width: 0; padding: 24px 18px; border-right: 1px solid rgba(255,255,255,.2); }
.result-score-band > div:last-child { border-right: 0; }
.result-score-band span, .result-score-band strong, .result-score-band small { display: block; }
.result-score-band strong { margin-block: 7px; overflow-wrap: anywhere; font: 700 26px Georgia, serif; }
.result-score-band > div:nth-child(-n+3) strong { font-size: 38px; }
.result-score-band small { color: #bfd0e4; }
.result-score-band span { color: #bfd0e4; font-size: 10px; font-weight: 800; 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; }
.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; }
.package-components { display: grid; gap: 8px; padding-block: 5px; }
.package-components > div { display: grid; grid-template-columns: minmax(180px, 1fr) auto auto; gap: 14px; align-items: center; padding: 9px 12px; background: #f7f9f7; border-left: 3px solid var(--line); }
.package-components > div span { color: var(--muted); font-size: 12px; }

@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%, #d6e4f5 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; }
    .subtest-menu { padding-inline: 12px; grid-template-columns: repeat(6, minmax(138px, 1fr)); }
    .exam-footer { grid-template-columns: repeat(4, 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: repeat(2, minmax(0, 1fr)); }
    .result-score-band > div { 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 78px 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; }
}
/* ---- Adjusting seleksi perangkat desa (Laravel) ---- */
.subtest-card.is-locked { opacity: .62; cursor: not-allowed; }
.subtest-card.is-locked.status-completed { opacity: .8; }
.save-indicator { min-height: 20px; margin: 10px 0 0; font-size: 13px; font-weight: 700; color: var(--muted); }
.save-indicator.is-saved { color: var(--green-dark); }
.save-indicator.is-pending { color: var(--blue); }
.save-indicator.is-error { color: var(--red); }
.muted-note { color: var(--muted); font-size: 13px; }
.event-filter { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); align-items: end; }
.event-filter label { display: grid; gap: 4px; font-size: 12px; font-weight: 700; color: var(--muted); }
.event-filter .button { align-self: end; }
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-bottom: 18px; }
.info-grid > div { padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: 6px; }
.info-grid span { display: block; color: var(--muted); font-size: 12px; font-weight: 700; }
.badge-ok { color: var(--green-dark); background: var(--green-soft); }
.badge-warn { color: #7d3e00; background: var(--orange-soft); }
.badge-locked { color: #85170f; background: var(--red-soft); }
.correction-table select { min-width: 72px; }
.correction-table .is-correct { color: var(--green-dark); font-weight: 700; }
.correction-table .is-wrong { color: var(--red); font-weight: 700; }
.correction-table tr.is-changed { background: #fffbe6; }
.compact-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; }
.compact-form label { display: grid; gap: 4px; font-size: 12px; font-weight: 700; }
.rule-table input { width: 96px; }
.import-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin: 12px 0; }
.import-summary div { padding: 10px 12px; border: 1px solid var(--line); border-radius: 5px; background: #fff; }

/* Berita acara (A4) */
.minutes-body { background: #e9ecea; }
.minutes-toolbar { display: flex; gap: 10px; justify-content: center; padding: 14px; }
.minutes-sheet { width: 210mm; min-height: 297mm; margin: 0 auto 24px; padding: 18mm 20mm 20mm 25mm; background: #fff; color: #000;
    font-family: "Times New Roman", Times, serif; font-size: 12pt; line-height: 1.5; box-shadow: var(--shadow); }
.minutes-kop { text-align: center; border-bottom: 3px double #000; padding-bottom: 6px; margin-bottom: 14px; }
.minutes-kop strong { display: block; font-size: 13pt; text-transform: uppercase; letter-spacing: .2px; }
.minutes-kop span { display: block; font-size: 11pt; text-transform: uppercase; }
.minutes-title { text-align: center; margin: 10px 0 14px; }
.minutes-title strong { display: block; text-transform: uppercase; font-size: 12.5pt; }
.minutes-title .doc-number { display: block; margin-top: 4px; }
.minutes-sheet p { margin: 0 0 10px; text-align: justify; }
.minutes-table { width: 100%; border-collapse: collapse; margin: 8px 0 14px; font-size: 11.5pt; }
.minutes-table th, .minutes-table td { border: 1px solid #000; padding: 4px 6px; vertical-align: top; }
.minutes-table th { background: #f0f0f0; text-align: center; }
.minutes-table td.num, .minutes-table td.score, .minutes-table td.rank { text-align: center; white-space: nowrap; }
.minutes-table thead { display: table-header-group; }
.minutes-table tr { page-break-inside: avoid; break-inside: avoid; }
.minutes-sign { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 18px; text-align: center; page-break-inside: avoid; break-inside: avoid; }
.minutes-sign .sign-space { height: 72px; }
.minutes-sign .sign-name { font-weight: 700; text-decoration: underline; }
.minutes-place-date { text-align: right; margin-top: 16px; page-break-inside: avoid; }
.minutes-stamp-note { font-size: 9.5pt; color: #444; text-align: center; margin-top: 6px; }
.dots { letter-spacing: 1px; }
.minutes-sheet { page: minutes; }
@page minutes { size: A4; margin: 18mm 20mm 20mm 25mm; }
@media print {
    .minutes-body { background: #fff; }
    .minutes-toolbar, .minutes-warning { display: none !important; }
    .minutes-sheet { margin: 0; padding: 0; box-shadow: none; width: auto; min-height: auto; }
}

/* ================= Shell admin: sidebar (tetap / sembunyi otomatis / laci mobile) ================= */
:root { --sidebar-w: 268px; --rail-w: 76px; --topbar-h: 64px; --admin-line: #e1e7e3; --admin-card-shadow: 0 1px 2px rgba(10,30,60,.04), 0 10px 28px rgba(10,30,60,.06); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.admin-shell { background: radial-gradient(1200px 400px at 85% -120px, #dde9f8 0, transparent 70%), #f2f5f3; font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif; font-size: 15px; }
.admin-shell h1, .admin-shell h2, .admin-shell h3 { font-family: inherit; letter-spacing: -.01em; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 40; width: var(--sidebar-w); display: flex; flex-direction: column; overflow: hidden; color: #cddcd4;
    background: linear-gradient(180deg, #0b2f5c 0%, #0a2548 55%, #081c38 100%); border-right: 1px solid rgba(255,255,255,.05);
    transition: width .22s ease, transform .22s ease, box-shadow .22s ease; }
.sidebar-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: opacity .16s ease; }
.sidebar-brand { flex: 0 0 auto; height: 72px; display: flex; align-items: center; gap: 12px; padding: 0 18px; color: #fff; border-bottom: 1px solid rgba(255,255,255,.07); }
.sidebar-brand:hover { text-decoration: none; }
.sidebar-brand .brand-mark { flex: 0 0 40px; background: linear-gradient(135deg, #14a8d6, #0b5cad); font: 800 13px/1 "Segoe UI", system-ui, sans-serif; letter-spacing: .04em; border-radius: 11px; box-shadow: 0 6px 16px rgba(11,92,173,.45); }
.sidebar-brand strong, .sidebar-brand small { display: block; overflow: hidden; text-overflow: ellipsis; }
.sidebar-brand strong { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: 12.5px; line-height: 1.25; letter-spacing: .03em; text-transform: uppercase; white-space: normal; }
.sidebar-brand .sidebar-label { white-space: normal; }
.sidebar-brand small { color: #8fa9c7; font-size: 11.5px; }
.sidebar-nav { flex: 1 1 auto; overflow-x: hidden; overflow-y: auto; padding: 10px 0 16px; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.18) transparent; }
.sidebar-group + .sidebar-group { margin-top: 4px; }
.sidebar-group-title { display: block; padding: 14px 28px 6px; color: #7d93b0; font-size: 10.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.sidebar-link { position: relative; display: flex; align-items: center; gap: 13px; width: calc(100% - 24px); height: 42px; margin: 2px 12px; padding: 0 16px; color: #c6d4e6; background: none; border: 0; border-radius: 10px; font-family: inherit; font-size: 14px; font-weight: 600; line-height: 1; text-align: left; white-space: nowrap; transition: background-color .15s, color .15s; }
.sidebar-link:hover { color: #fff; background: rgba(255,255,255,.07); text-decoration: none; }
.sidebar-link:focus-visible { outline: 2px solid #5fd39a; outline-offset: -2px; }
.sidebar-link.is-active { color: #fff; background: linear-gradient(90deg, #1592c9, #0b5cad); box-shadow: 0 6px 16px rgba(10,60,35,.45); }
.sidebar-link.is-active::before { content: ""; position: absolute; left: -12px; top: 9px; bottom: 9px; width: 4px; border-radius: 0 4px 4px 0; background: #6fe0a6; }
.nav-icon { flex: 0 0 20px; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.sidebar-footer { flex: 0 0 auto; padding: 12px 0 14px; border-top: 1px solid rgba(255,255,255,.07); }
.sidebar-footer form { margin: 0; }
.sidebar-user { display: flex; align-items: center; gap: 12px; padding: 4px 20px 10px; }
.sidebar-user strong, .sidebar-user small { display: block; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user strong { color: #fff; font-size: 13px; }
.sidebar-user small { color: #8fa9c7; font-size: 11.5px; }
.sidebar-logout { cursor: pointer; }
.sidebar-logout:hover { background: rgba(220,80,60,.18); color: #ffd9d4; }
.avatar { flex: 0 0 36px; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: #fff; background: linear-gradient(135deg, #14a8d6, #08488a); font-weight: 700; font-size: 14px; }
.sidebar-backdrop { position: fixed; inset: 0; z-index: 35; background: rgba(5,15,35,.5); backdrop-filter: blur(2px); }
.sidebar-backdrop[hidden] { display: none; }

.admin-frame { min-height: 100vh; display: flex; flex-direction: column; margin-left: var(--sidebar-w); transition: margin-left .22s ease; }
.admin-topbar { position: sticky; top: 0; z-index: 30; height: var(--topbar-h); display: flex; align-items: center; gap: 16px; padding: 0 28px; background: rgba(255,255,255,.82); border-bottom: 1px solid var(--admin-line); backdrop-filter: blur(12px); }
.sidebar-toggle { flex: 0 0 auto; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; color: var(--ink); background: #fff; border: 1px solid var(--admin-line); border-radius: 11px; transition: background-color .15s, border-color .15s; }
.sidebar-toggle:hover { background: var(--green-soft); border-color: #b9d3ee; }
.sidebar-toggle svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.topbar-title { min-width: 0; }
.topbar-title span, .topbar-title strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar-title span { color: var(--muted); font-size: 11.5px; }
.topbar-title strong { font-size: 16px; }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.topbar-hint:not(:empty) { padding: 4px 10px; color: var(--green-dark); background: var(--green-soft); border-radius: 999px; font-size: 12px; font-weight: 600; }
.topbar-user { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; }
.topbar-user .avatar { width: 34px; height: 34px; flex-basis: 34px; font-size: 13px; }

@media (min-width: 961px) {
    html[data-sidebar="auto"] .admin-frame { margin-left: var(--rail-w); }
    html[data-sidebar="auto"] .sidebar { width: var(--rail-w); }
    html[data-sidebar="auto"] .sidebar:hover, html[data-sidebar="auto"] .sidebar:focus-within { width: var(--sidebar-w); box-shadow: 24px 0 48px rgba(5,15,35,.28); transition-delay: .06s; }
    html[data-sidebar="auto"] .sidebar:not(:hover):not(:focus-within) .sidebar-label { opacity: 0; }
    html[data-sidebar="auto"] .sidebar:not(:hover):not(:focus-within) .sidebar-link.is-active::before { display: none; }
}

/* Konten admin di dalam frame */
.admin-shell .page-main, .admin-shell .admin-main { width: auto; max-width: 1480px; min-height: calc(100vh - var(--topbar-h) - 72px); margin: 0; padding: 30px 32px 56px; }
.admin-shell .flash-stack { top: calc(var(--topbar-h) + 12px); width: min(560px, calc(100% - 40px)); }
.admin-shell .flash-stack .alert { box-shadow: 0 12px 30px rgba(10,30,60,.16); }
.admin-shell .site-footer { margin-top: auto; color: var(--muted); background: transparent; border-top: 1px solid var(--admin-line); }
.admin-shell .site-footer .shell { width: auto; padding-inline: 32px; }
.admin-shell .footer-credit strong { color: var(--ink); }

/* Penyegaran komponen admin */
.admin-shell .eyebrow { color: #0b6fc0; letter-spacing: .08em; }
.admin-shell .admin-heading { align-items: center; margin-bottom: 24px; }
.admin-shell .admin-heading h1, .admin-shell .result-heading h1 { font-size: 30px; font-weight: 700; }
.admin-shell .admin-heading p { margin-top: 6px; font-size: 14.5px; }
.admin-shell h2 { font-size: 19px; font-weight: 700; }
.admin-shell .panel { border-color: var(--admin-line); border-radius: 14px; box-shadow: var(--admin-card-shadow); }
.admin-shell .panel-heading { padding: 18px 22px; }
.admin-shell .admin-metrics { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.admin-shell .admin-metrics div { position: relative; min-height: 108px; padding: 18px 20px 18px 22px; overflow: hidden; border: 1px solid var(--admin-line); border-radius: 14px; box-shadow: var(--admin-card-shadow); }
.admin-shell .admin-metrics div::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--metric, var(--green)); }
.admin-shell .admin-metrics div::after { content: ""; position: absolute; right: -26px; top: -26px; width: 92px; height: 92px; border-radius: 50%; background: var(--metric, var(--green)); opacity: .07; }
.admin-shell .admin-metrics div:nth-child(5n+2) { --metric: var(--blue); }
.admin-shell .admin-metrics div:nth-child(5n+3) { --metric: var(--orange); }
.admin-shell .admin-metrics div:nth-child(5n+4) { --metric: #0e8a8a; }
.admin-shell .admin-metrics div:nth-child(5n+5) { --metric: #7a4cc2; }
.admin-shell .admin-metrics span { font-size: 11.5px; letter-spacing: .05em; }
.admin-shell .admin-metrics strong { margin-top: 10px; font-family: inherit; font-size: 30px; font-weight: 700; line-height: 1.1; letter-spacing: -.02em; }
.admin-shell .button { min-height: 40px; padding: 8px 16px; border-radius: 10px; font-size: 14px; font-weight: 700; text-transform: none; box-shadow: 0 1px 2px rgba(10,30,60,.08); transition: background-color .15s, box-shadow .15s, transform .15s; }
.admin-shell .button:hover { box-shadow: 0 6px 16px rgba(11,92,173,.22); transform: translateY(-1px); }
.admin-shell .button-secondary:hover, .admin-shell .button-ghost:hover { background: var(--green-soft); }
.admin-shell input, .admin-shell select, .admin-shell textarea { min-height: 40px; border-color: #cdd6d0; border-radius: 10px; }
.admin-shell th { padding: 11px 15px; color: #5d6b64; background: #f6f8f7; font-size: 11px; letter-spacing: .05em; }
.admin-shell td { padding: 12px 15px; }
.admin-shell tbody tr:hover { background: #f4f9f6; }
.admin-shell .table-status { padding: 3px 10px; border-radius: 999px; font-size: 11px; }
.admin-shell .filter-bar { background: #fff; border-color: var(--admin-line); border-radius: 14px; box-shadow: var(--admin-card-shadow); }
.admin-shell .format-note { background: #f4f8f6; border: 1px dashed #c9d6e8; border-radius: 12px; }
.admin-shell .alert { border-radius: 10px; }
.admin-shell .info-grid > div, .admin-shell .import-summary div { border-color: var(--admin-line); border-radius: 12px; }
.admin-shell .pagination a { border-radius: 8px; }

/* Dashboard: alur kerja */
.workflow { margin-bottom: 24px; }
.workflow-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; padding: 18px 22px 22px; }
.workflow-step { position: relative; display: grid; grid-template-columns: 38px 1fr; gap: 4px 12px; align-items: start; padding: 14px; color: var(--ink); background: #f8faf9; border: 1px solid var(--admin-line); border-radius: 12px; transition: border-color .15s, box-shadow .15s, transform .15s; }
.workflow-step:hover { text-decoration: none; border-color: #9cc6ee; box-shadow: var(--admin-card-shadow); transform: translateY(-2px); }
.workflow-step b { grid-row: span 2; display: grid; place-items: center; width: 38px; height: 38px; color: var(--green-dark); background: var(--green-soft); border-radius: 10px; font-size: 15px; }
.workflow-step strong { font-size: 14px; }
.workflow-step small { color: var(--muted); font-size: 12.5px; line-height: 1.4; }
.workflow-step.is-done b { color: #fff; background: var(--green); }
.sim-banner { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; padding: 12px 16px; color: #6b3a00; background: repeating-linear-gradient(135deg, #fff4e5 0 14px, #ffefd9 14px 28px); border: 1px solid #f1c48d; border-radius: 12px; font-size: 14px; }
.sim-banner strong { white-space: nowrap; }

@media (max-width: 960px) {
    .admin-frame { margin-left: 0; }
    .sidebar { width: var(--sidebar-w); transform: translateX(-102%); }
    html.sidebar-open .sidebar { transform: none; box-shadow: 24px 0 48px rgba(5,15,35,.35); }
    .admin-topbar { padding: 0 16px; }
    .topbar-user span:last-child { display: none; }
    .admin-shell .page-main, .admin-shell .admin-main { padding: 22px 16px 44px; }
    .admin-shell .site-footer .shell { padding-inline: 16px; }
}
@media print {
    .sidebar, .sidebar-backdrop, .admin-topbar { display: none !important; }
    .admin-frame { margin-left: 0 !important; }
    .admin-shell { background: #fff; }
    .admin-shell .page-main { padding: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .sidebar, .admin-frame, .sidebar-label, .workflow-step, .admin-shell .button { transition: none; }
}
/* ================= Modal (<dialog>) admin: impor & kelola soal ================= */
dialog.modal { width: min(720px, calc(100% - 32px)); max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px); padding: 0; overflow: hidden; color: var(--ink); background: #fff; border: 1px solid var(--admin-line); border-radius: 16px; box-shadow: 0 30px 80px rgba(5,15,35,.35); }
dialog.modal[open] { display: flex; flex-direction: column; animation: modal-in .18s ease-out; }
dialog.modal-wide { width: min(1180px, calc(100% - 32px)); }
dialog.modal::backdrop { background: rgba(5,15,35,.55); backdrop-filter: blur(3px); }
@keyframes modal-in { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: none; } }
dialog.modal [data-modal-body] { display: flex; flex-direction: column; min-height: 0; flex: 1 1 auto; }
dialog.modal [data-modal-body][aria-busy="true"] { opacity: .55; pointer-events: none; }
.modal-head { flex: 0 0 auto; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 18px 22px; border-bottom: 1px solid var(--admin-line); }
.modal-head h2 { margin: 2px 0 0; font-size: 20px; }
.modal-head h2 small { color: var(--muted); font-size: 13px; font-weight: 600; }
.modal-head .eyebrow { margin-bottom: 2px; }
.modal-head p { margin: 4px 0 0; }
.modal-head form { margin: 0; }
.modal-close { flex: 0 0 auto; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; color: var(--muted); background: #f3f6f4; border: 0; border-radius: 10px; font-size: 22px; line-height: 1; }
.modal-close:hover { color: var(--ink); background: #e5ece8; }
.modal-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 20px 22px 24px; }
.modal-foot, .modal-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 10px; }
.modal-foot { flex: 0 0 auto; padding: 14px 22px; background: #f8faf9; border-top: 1px solid var(--admin-line); }
.modal-foot form { margin: 0; }
.modal-table { border: 1px solid var(--admin-line); border-radius: 12px; }
.modal-table tr.is-editing { background: #fff8e5; }
.modal-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.modal-search { display: flex; flex: 1 1 320px; gap: 8px; }
.modal-search input { max-width: 420px; }
.subtest-tabs { flex: 0 0 auto; display: flex; gap: 8px; padding: 12px 22px; overflow-x: auto; background: #f8faf9; border-bottom: 1px solid var(--admin-line); scrollbar-width: thin; }
.subtest-tab { flex: 0 0 auto; display: grid; gap: 1px; min-width: 150px; max-width: 220px; padding: 8px 12px; color: var(--ink); background: #fff; border: 1px solid var(--admin-line); border-radius: 10px; }
.subtest-tab:hover { text-decoration: none; border-color: #9cc6ee; }
.subtest-tab span { color: var(--muted); font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.subtest-tab strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.subtest-tab em { justify-self: start; margin-top: 3px; padding: 1px 8px; border-radius: 999px; font-size: 11px; font-style: normal; font-weight: 700; }
.subtest-tab.is-active { background: var(--green-soft); border-color: var(--green); box-shadow: inset 0 0 0 1px var(--green); }
.question-editor { margin-bottom: 18px; padding: 18px; background: #fbfcfb; border: 1px solid #cfdff2; border-radius: 12px; }
.question-editor .form-grid { gap: 14px; }
.question-editor textarea { min-height: 64px; }
.editor-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.editor-head h3 { margin: 0; font-size: 16px; }
.editor-extra { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--admin-line); }
.component-chips { display: flex; flex-wrap: wrap; gap: 5px; max-width: 560px; }
.component-chips span { padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; white-space: nowrap; }
.admin-shell .row-actions .button { min-height: 32px; padding: 5px 12px; font-size: 13px; }
.admin-shell .row-actions button:not(.button) { cursor: pointer; }

/* ================= Peserta: dashboard selesai & hasil akhir ================= */
.finished-actions { display: grid; justify-items: start; gap: 8px; }
.retake-button { min-height: 32px; padding: 5px 12px; font-size: 11px; }
.finished-actions .muted-note { max-width: 420px; font-size: 12px; }
.result-title { display: flex; align-items: center; gap: 18px; margin-bottom: 22px; }
.result-title .result-check { width: 56px; height: 56px; font-size: 26px; box-shadow: 0 8px 20px rgba(11,92,173,.28); }
.result-title h1 { font-size: clamp(28px, 4vw, 38px); }
.result-title p { margin: 4px 0 0; color: var(--muted); }
.result-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); margin-bottom: 16px; overflow: hidden; color: #fff; background: linear-gradient(135deg, #0a4f99 0%, #0a3a73 55%, #0a2f5c 100%); border-radius: 14px; box-shadow: 0 16px 36px rgba(15,51,36,.22); }
.result-hero-score { padding: 28px 30px; }
.result-label { display: block; color: #bcd8f3; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.result-number { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; margin: 8px 0 14px; }
.result-number strong { font: 700 clamp(44px, 7vw, 60px)/1 Georgia, serif; letter-spacing: -.01em; }
.result-number small { color: #bcd8f3; font-size: 18px; font-weight: 700; }
.score-meter { height: 10px; overflow: hidden; background: rgba(255,255,255,.16); border-radius: 999px; }
.score-meter span { display: block; height: 100%; background: linear-gradient(90deg, #7fe0aa, #c8f5d9); border-radius: inherit; }
.result-percent { display: block; margin-top: 8px; color: #cfe1f4; font-size: 13px; }
.result-split { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.result-split span { padding: 4px 10px; background: rgba(255,255,255,.1); border-radius: 999px; font-size: 13px; }
.result-hero-meta { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; gap: 1px; margin: 0; background: rgba(255,255,255,.1); border-left: 1px solid rgba(255,255,255,.12); }
.result-hero-meta div { min-width: 0; display: flex; flex-direction: column; justify-content: center; padding: 16px 20px; background: #0a3a73; }
.result-hero-meta dt { color: #a9c3e2; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.result-hero-meta dd { margin: 4px 0 0; overflow-wrap: anywhere; font-size: 16px; font-weight: 700; line-height: 1.3; }
.result-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.result-stats div { padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-top: 3px solid #9aa6a0; border-radius: 10px; }
.result-stats div.is-correct { border-top-color: var(--green); }
.result-stats div.is-wrong { border-top-color: var(--red); }
.result-stats div.is-empty { border-top-color: var(--orange); }
.result-stats span { display: block; color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.result-stats strong { display: block; margin-top: 4px; font: 700 30px/1.1 Georgia, serif; }
.result-page .result-categories { margin-bottom: 20px; }
.mini-bar { display: block; width: 100%; min-width: 90px; height: 8px; overflow: hidden; background: #e7ece9; border-radius: 999px; }
.mini-bar span { display: block; height: 100%; background: var(--green); border-radius: inherit; }
.bar-col { width: 30%; vertical-align: middle; }
@media (max-width: 800px) {
    .result-hero { grid-template-columns: 1fr; }
    .result-hero-meta { border-left: 0; border-top: 1px solid rgba(255,255,255,.12); }
    .result-stats { grid-template-columns: 1fr 1fr; }
    .modal-head, .modal-body { padding-inline: 16px; }
    .subtest-tabs { padding-inline: 16px; }
}
@media (max-width: 520px) {
    .result-hero-score { padding: 22px 20px; }
    .result-hero-meta { grid-template-columns: 1fr; }
    .bar-col { display: none; }
}
/* Token Ujian: aksi per baris sejajar (select + tombol tidak saling tindih) */
.token-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.token-actions form { display: flex; align-items: center; gap: 6px; margin: 0; }
.token-actions select { width: auto; min-width: 120px; min-height: 34px; padding: 4px 10px; font-size: 13px; }
.token-actions .button { min-height: 34px; padding: 5px 12px; font-size: 12.5px; white-space: nowrap; }
.button-danger-soft { color: var(--red); background: var(--red-soft); border-color: #efc2be; }
.button-danger-soft:hover { color: #fff; background: var(--red); border-color: var(--red); }.question-form-panel > .format-note { margin: 0 0 20px; }


/* ================= Ujian peserta: tata letak responsif ================= */
.exam-body #exam-app { grid-template-rows: auto auto minmax(0, 1fr) auto; }

/* Header: membungkus otomatis, tidak bertumpuk */
.exam-body .exam-header { display: flex; flex-wrap: wrap; align-items: center; gap: 10px clamp(12px, 2vw, 28px); padding: 10px clamp(12px, 2vw, 24px); }
.exam-body .exam-brand { flex: 1 1 240px; min-width: 0; }
.exam-body .exam-brand > div { min-width: 0; }
.exam-body .exam-brand strong { font-size: clamp(14px, .5vw + 11px, 17px); line-height: 1.3; overflow-wrap: anywhere; }
.exam-body .exam-brand span { font-size: 13px; line-height: 1.35; overflow-wrap: anywhere; }
.exam-body .exam-progress-head, .exam-body .exam-timer { min-width: 0; padding-left: clamp(12px, 1.6vw, 24px); }
.exam-body .exam-progress-head span, .exam-body .exam-timer span { font-size: 12px; letter-spacing: .02em; }
.exam-body .exam-progress-head strong { font-size: 17px; }
.exam-body .exam-timer strong { font-size: clamp(19px, .6vw + 15px, 25px); }
.exam-body .navigator-toggle { flex: 0 0 auto; width: 46px; height: 46px; }

/* Menu subtes: geser ke samping bila tidak muat */
.exam-body .subtest-menu { display: flex; gap: 8px; padding: 8px clamp(12px, 2vw, 20px); overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; }
.exam-body .subtest-card { flex: 1 0 170px; min-width: 170px; max-width: 280px; padding: 8px 12px; }
.exam-body .subtest-card span { font-size: 11px; }
.exam-body .subtest-card strong { font-size: 14px; }
.exam-body .subtest-card small { font-size: 12px; }

/* Area soal */
.exam-body .question-meta { flex-wrap: wrap; gap: 8px 16px; padding: 12px clamp(16px, 2.4vw, 24px); }
.exam-body .question-meta span { font-size: 13px; }
.exam-body .category-chip { max-width: 100%; overflow-wrap: anywhere; }
.exam-body .question-content { width: min(1040px, 100%); padding: clamp(18px, 2.4vw, 28px) clamp(16px, 3vw, 34px) 32px; }
.exam-body .question-text { font-size: clamp(18px, .7vw + 14px, 23px); overflow-wrap: anywhere; }
.exam-body .answer-option { grid-template-columns: 40px minmax(0, 1fr); padding: 10px 14px; font-size: clamp(16px, .3vw + 14px, 18px); line-height: 1.45; }
.exam-body .option-letter { width: 38px; height: 38px; font-size: 16px; }
.exam-body .option-text { min-width: 0; overflow-wrap: anywhere; }
.exam-body .practice-reference figcaption { font-size: 13px; }
.exam-body .save-indicator { font-size: 14px; }

/* Panel nomor soal: daftar bisa di-scroll, judul & keterangan tetap terlihat */
.exam-body .navigator-heading { gap: 10px; padding: 14px 16px; }
.exam-body .navigator-heading > div { min-width: 0; }
.exam-body .navigator-heading span { font-size: 12px; }
.exam-body .navigator-heading strong { font-size: 16px; line-height: 1.3; overflow-wrap: anywhere; }
.exam-body .navigator-heading small { font-size: 13px; }
.exam-body .number-grid { align-content: start; grid-template-columns: repeat(auto-fill, minmax(46px, 1fr)); grid-auto-rows: 44px; gap: 8px; padding: 14px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.exam-body .number-button { aspect-ratio: auto; height: 44px; min-height: 0; font-size: 15px; }
.exam-body .number-button.is-active { outline-offset: 1px; }
.exam-body .status-legend { padding: 12px 16px; font-size: 13px; }
.exam-body .legend-dot { flex: 0 0 auto; width: 12px; height: 12px; }

/* Tombol bawah: selalu tampil di dasar layar */
.exam-body .exam-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 10px clamp(12px, 2vw, 20px); padding-bottom: max(10px, env(safe-area-inset-bottom)); box-shadow: 0 -3px 14px rgba(15,23,42,.06); }
.exam-body .exam-action { flex: 1 1 150px; max-width: 240px; min-height: 50px; padding: 10px 14px; font-size: clamp(13px, .25vw + 12px, 15px); line-height: 1.2; }
.exam-body .exam-action[hidden] { display: none; }

@media (min-width: 801px) {
  .exam-body .exam-layout { grid-template-columns: minmax(0, 1fr) clamp(260px, 25vw, 340px); gap: clamp(10px, 1.2vw, 16px); padding: clamp(10px, 1.2vw, 14px) clamp(12px, 2vw, 20px); }
}
@media (max-width: 800px) {
  .exam-body .exam-layout { padding: 10px; }
  .exam-body .question-navigator { width: min(380px, 88vw); }
}
@media (max-width: 600px) {
  .exam-body .exam-header { padding: 8px 12px; }
  .exam-body .exam-brand { flex-basis: 0; }
  .exam-body .exam-brand span { display: none; }
  .exam-body .exam-timer { padding-left: 10px; }
  .exam-body .exam-timer span { font-size: 11px; }
  .exam-body .subtest-card { flex-basis: 150px; min-width: 150px; }
  .exam-body .question-content { padding: 18px 14px 28px; }
  .exam-body .answer-option { grid-template-columns: 36px minmax(0, 1fr); gap: 10px; padding: 9px 10px; }
  .exam-body .option-letter { width: 34px; height: 34px; }
  .exam-body .exam-footer { display: grid; grid-template-columns: 1fr 1fr; }
  .exam-body .exam-action { grid-column: auto; max-width: none; min-height: 46px; padding: 8px 10px; }
  .exam-body .exam-action.previous { order: 1; }
  .exam-body .exam-action.next { order: 2; }
  .exam-body .exam-action.doubt { order: 3; }
  .exam-body .exam-action.finish { order: 4; }
  .exam-body .exam-action.doubt:has(+ .exam-action.next + .exam-action.finish[hidden]) { grid-column: 1 / -1; }
}
@media (max-height: 640px) and (min-width: 601px) {
  .exam-body .exam-header { padding-block: 6px; }
  .exam-body .subtest-menu { padding-block: 6px; }
  .exam-body .subtest-card { padding: 6px 10px; }
  .exam-body .exam-action { min-height: 44px; padding-block: 8px; }
}
/* ===== Ujian peserta: soal & opsi jawaban selalu tampil utuh (tanpa scroll) ===== */
.exam-body { --q-scale: 1; --qt: clamp(18px, .7vw + 14px, 23px); --ot: clamp(16px, .3vw + 14px, 18px); --ol: 38px; }
.exam-body .question-content { padding: calc(clamp(14px, 2vw, 24px) * var(--q-scale)) clamp(14px, 3vw, 34px) calc(14px * var(--q-scale)); }
.exam-body .question-meta { padding-block: calc(10px * var(--q-scale)); }
.exam-body .question-text { margin-bottom: calc(18px * var(--q-scale)); font-size: max(calc(var(--ot) * var(--q-scale) + 1px), calc(var(--qt) * var(--q-scale) * var(--q-scale))); }
.exam-body .answer-options { gap: calc(10px * var(--q-scale)); }
.exam-body .answer-option { min-height: calc(50px * var(--q-scale)); padding-block: calc(9px * var(--q-scale)); font-size: calc(var(--ot) * var(--q-scale)); line-height: 1.4; }
.exam-body .option-letter { width: calc(var(--ol) * var(--q-scale)); height: calc(var(--ol) * var(--q-scale)); }
.exam-body .practice-question-instructions { font-size: calc(16px * var(--q-scale)); }
.exam-body .practice-reference img { max-height: calc(40vh * var(--q-scale)); }
.exam-body .save-indicator { min-height: 0; margin-top: calc(8px * var(--q-scale)); }
@media (max-width: 600px) {
  .exam-body { --qt: 18px; --ot: 16px; --ol: 34px; }
}

/* Ruang soal lebih lega: menu subtes, header soal & tombol bawah dibuat ringkas */
.exam-body .subtest-menu { padding-block: 6px; scrollbar-width: thin; }
.exam-body .subtest-card { flex: 0 0 auto; display: flex; align-items: baseline; gap: 8px; min-width: 0; max-width: 320px; padding: 6px 12px; white-space: nowrap; }
.exam-body .subtest-card strong { min-width: 0; }
.exam-body .question-meta { flex-wrap: nowrap; }
.exam-body .question-meta > div { flex: 0 0 auto; }
.exam-body .question-meta strong { font-size: 24px; }
.exam-body .category-chip { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.exam-body .exam-footer { padding-block: 8px; }
.exam-body .exam-action { min-height: 44px; padding-block: 8px; }
@media (min-width: 801px) {
  .exam-body .exam-layout { padding-block: 10px; }
}
@media (max-width: 600px) {
  .exam-body .subtest-card span { display: none; }
  .exam-body .exam-action { min-height: 40px; padding: 6px 8px; }
  .exam-body .exam-footer { gap: 6px; }
}

/* Bila layar pendek tapi lebar: opsi jawaban dibagi 2 kolom (A-C kiri, D-E kanan) */
.exam-body .question-stage.options-2col .answer-options { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(var(--opt-rows, 3), auto); grid-auto-flow: column; }
@media (max-width: 600px) {
  .exam-body .subtest-menu { scrollbar-width: none; }
  .exam-body .subtest-menu::-webkit-scrollbar { display: none; }
}
/* ================= Penyegaran tampilan: formal & elegan (semua halaman) ================= */
:root { --font-ui: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif; --ui-line: #e1e7e3; --ui-shadow: 0 1px 2px rgba(10,30,60,.04), 0 10px 28px rgba(10,30,60,.06); }
body { font-family: var(--font-ui); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3 { font-family: var(--font-ui); font-weight: 700; letter-spacing: -.015em; }
.lead, .identity-number, .admin-metrics strong, .summary-grid strong, .result-score-band strong, .result-stats strong, .result-number strong, .question-meta strong, .exam-timer strong { font-family: var(--font-ui); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.brand-mark { background: linear-gradient(135deg, #14a8d6, #0b5cad); font: 800 13px/1 var(--font-ui); letter-spacing: .04em; border-radius: 11px; box-shadow: 0 6px 16px rgba(11,92,173,.3); }

/* Tombol & isian */
.button { border-radius: 10px; font-size: 14px; font-weight: 700; letter-spacing: .01em; text-transform: none; box-shadow: 0 1px 2px rgba(10,30,60,.08); transition: background-color .15s, box-shadow .15s, transform .15s; }
.button:hover { box-shadow: 0 6px 16px rgba(11,92,173,.22); transform: translateY(-1px); }
.button-secondary:hover, .button-ghost:hover { background: var(--green-soft); }
.text-link { font-size: 14px; font-weight: 700; text-transform: none; }
input, select, textarea { border-color: #cdd6d0; border-radius: 10px; transition: border-color .15s, box-shadow .15s; }
label { color: #2b3631; }
.alert { border-radius: 10px; }

/* Kartu & panel */
.panel { border-color: var(--ui-line); border-radius: 14px; box-shadow: var(--ui-shadow); }
.status-badge { letter-spacing: .04em; }

/* Header & footer situs (halaman publik / peserta) */
.site-header { background: rgba(255,255,255,.9); border-bottom-color: var(--ui-line); box-shadow: 0 1px 0 rgba(10,30,60,.02); }
.header-inner { min-height: 68px; }
.brand strong { font-size: 13.5px; letter-spacing: .04em; }
.main-nav { gap: 18px; font-weight: 600; }
.main-nav .button-small { min-height: 36px; padding: 6px 16px; }
.main-nav a.button { color: #fff; }
.site-footer { background: #0a2540; color: #b9c9de; }
.footer-credit small { letter-spacing: .06em; }
.footer-credit:has(strong:empty), .dashboard-developer:has(strong:empty) { display: none; }
.site-footer:has(.footer-inner > .footer-credit:first-child strong:empty) { display: none; }

/* Beranda */
.landing-band { background: radial-gradient(900px 420px at 88% 20%, #d4e2f4 0, transparent 70%), linear-gradient(180deg, #f3f7fc, #eaf1ec); }
.landing-band h1 { font-size: clamp(34px, 4.4vw, 56px); font-weight: 800; letter-spacing: -.025em; line-height: 1.08; }
.landing-summary { color: #4a5751; font-size: 17px; line-height: 1.65; }
.identity-panel { background: linear-gradient(135deg, #0a4f99 0%, #0a3a73 55%, #0a2f5c 100%); border: 0; border-radius: 18px; box-shadow: 0 22px 48px rgba(15,51,36,.25); }
.identity-number { font-weight: 800; font-size: 80px; }
.trust-strip { gap: 14px; padding-block: 28px; }
.trust-strip div { padding: 16px 20px; background: #fff; border: 1px solid var(--ui-line); border-radius: 14px; box-shadow: var(--ui-shadow); }
.trust-strip div:last-child { border: 1px solid var(--ui-line); }
.trust-strip strong { font-size: 15px; }

/* Login / daftar / ganti password */
.auth-main { background: radial-gradient(800px 380px at 80% 0%, #d6e6f7 0, transparent 70%), linear-gradient(180deg, #f3f7fc, #eaf0f8); }
.auth-card { padding: 40px; border-color: var(--ui-line); border-radius: 18px; box-shadow: 0 1px 2px rgba(10,30,60,.05), 0 22px 50px rgba(10,30,60,.1); }
.auth-card h1, .page-heading h1 { font-size: clamp(26px, 3vw, 32px); }
.auth-card .eyebrow { letter-spacing: .08em; }
.form-stack { gap: 16px; }
.form-foot { color: var(--muted); }

/* Halaman peserta */
.dashboard-hero { border-bottom-color: var(--ui-line); }
.dashboard-hero h1 { font-size: clamp(28px, 3.4vw, 36px); }
.eyebrow { letter-spacing: .08em; }
.instruction-facts { border-radius: 14px 14px 0 0; }
.metric-line, .category-list div { border-bottom-color: var(--ui-line); }
.dashboard-developer { border-radius: 10px; }

/* Admin: judul & tombol aksi sejajar, tabel rapi */
.admin-shell .admin-heading > div:first-child { flex: 1 1 auto; min-width: 0; }
.admin-shell .admin-heading > .button, .admin-shell .heading-actions { flex: 0 0 auto; }
.admin-shell .heading-actions { flex-wrap: nowrap; }
.admin-shell .table-wrap td { white-space: nowrap; }
.admin-shell .table-wrap td :is(.question-preview, .component-chips, p, ul, ol, textarea), .admin-shell .table-wrap td.question-preview { white-space: normal; }
.admin-shell .table-wrap td small { display: block; color: var(--muted); }
.admin-shell .table-wrap { scrollbar-width: thin; }
.admin-shell th:first-child, .admin-shell td:first-child { padding-left: 22px; }

/* Admin: form ringkas (Formasi & Sesi) */
.admin-shell .detail-grid table:has(.compact-form) thead { display: none; }
.admin-shell .detail-grid table:has(.compact-form) td { padding: 14px 0; }
.admin-shell .detail-grid .compact-form { gap: 10px 12px; }
.admin-shell .detail-grid .compact-form label { flex: 1 1 120px; min-width: 0; color: var(--muted); }
.admin-shell .detail-grid .compact-form label:first-of-type { flex-basis: 100%; }
.admin-shell .detail-grid .compact-form label:has(input[type="number"]) { flex: 0 0 90px; }
.admin-shell .detail-grid .compact-form label:has(input[type="number"]) input { width: 100% !important; }
.admin-shell .detail-grid .compact-form label:has(input[type="datetime-local"]) { flex: 1 1 190px; }
.admin-shell .detail-grid .compact-form .table-status { align-self: center; margin-left: auto; }
.admin-shell .detail-grid .panel > form.compact-form { margin-top: 16px; padding: 16px; background: #f6faf7; border: 1px dashed #c9d6e8; border-radius: 12px; }

@media (max-width: 800px) {
  .admin-shell .heading-actions { flex-wrap: wrap; justify-content: flex-start; }
  .trust-strip { grid-template-columns: 1fr; }
  .trust-strip div { border: 1px solid var(--ui-line); }
}
@media (max-width: 520px) {
  .auth-card { padding: 26px 22px; }
  .identity-number { font-size: 60px; }
}

@media (max-width: 800px) {
  .admin-shell .admin-heading > .button { align-self: flex-start; }
}