:root {
  color-scheme: light;
  --ink: #172f2c;
  --muted: #647773;
  --brand: #176b5b;
  --brand-dark: #123b36;
  --brand-soft: #e7f3ef;
  --canvas: #f4f7f6;
  --surface: #fff;
  --line: #e2eae7;
  --danger: #a63c3c;
  --danger-soft: #fff0ef;
  --success: #176b50;
  --success-soft: #e8f6ef;
  --warning: #8d5b12;
  --warning-soft: #fff6e5;
  --shadow: 0 12px 32px rgb(23 47 44 / 6%);
  --sidebar-width: 248px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: var(--canvas); color: var(--ink); font-size: 15px; line-height: 1.55; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-dark); }
button, input, select, textarea { font: inherit; }
button, .tombol { transition: background .16s ease, box-shadow .16s ease, transform .16s ease; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid rgb(23 107 91 / 28%); outline-offset: 2px;
}
[hidden] { display: none !important; }

.topbar {
  position: sticky; top: 0; z-index: 20; height: 72px; display: flex; align-items: center;
  justify-content: space-between; gap: 20px; padding: 0 32px; color: #fff;
  background: var(--brand-dark); box-shadow: 0 2px 12px rgb(18 59 54 / 15%);
}
.merek { display: inline-flex; align-items: center; gap: 11px; color: #fff; text-decoration: none; }
.merek:hover { color: #fff; }
.merek-mark {
  display: grid; width: 38px; height: 38px; place-items: center; border-radius: 12px;
  color: var(--brand-dark); background: #d3eee3; font-weight: 850; font-size: 19px;
}
.merek-copy { display: grid; line-height: 1.15; }
.merek-copy strong { font-size: 17px; letter-spacing: .08em; }
.merek-copy small { margin-top: 4px; color: #c1d9d3; font-size: 11px; letter-spacing: .02em; }
.pengguna { display: flex; align-items: center; gap: 11px; }
.pengguna-inisial {
  display: grid; width: 38px; height: 38px; place-items: center; border-radius: 50%;
  color: var(--brand-dark); background: #fff; font-weight: 750;
}
.pengguna-foto { width: 38px; height: 38px; flex: 0 0 38px; border: 2px solid rgb(255 255 255 / 75%); border-radius: 50%; object-fit: cover; }
.pengguna-info { display: grid; line-height: 1.25; }
.pengguna-info strong { font-size: 13px; font-weight: 650; }
.pengguna-info small { margin-top: 4px; color: #c1d9d3; font-size: 11px; }
.keluar { margin-left: 12px; padding: 8px 12px; border: 1px solid rgb(255 255 255 / 28%); border-radius: 9px; color: #fff; font-size: 13px; text-decoration: none; }
.keluar:hover { background: rgb(255 255 255 / 10%); color: #fff; }
.menu-toggle { display: none; }

.tata-letak { display: flex; min-height: calc(100vh - 72px); }
.tata-letak-siswa { min-height: 100vh; background: #edf3f1; }
.sidebar {
  position: sticky; top: 72px; display: flex; width: var(--sidebar-width); height: calc(100vh - 72px);
  flex: 0 0 var(--sidebar-width); flex-direction: column; padding: 26px 16px 18px;
  overflow-y: auto; border-right: 1px solid var(--line); background: var(--surface);
}
.nav-label { margin: 15px 11px 8px; color: #81918d; font-size: 10px; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; }
.nav-label:first-child { margin-top: 0; }
.nav-link {
  display: flex; min-height: 42px; align-items: center; gap: 12px; margin: 2px 0; padding: 9px 11px;
  border-radius: 10px; color: #425854; font-size: 13px; font-weight: 580; text-decoration: none;
}
.nav-link:hover { background: #f1f6f4; color: var(--brand-dark); }
.nav-link.aktif { color: var(--brand-dark); background: var(--brand-soft); font-weight: 700; }
.nav-icon {
  display: grid; width: 25px; height: 25px; flex: 0 0 25px; place-items: center; border-radius: 8px;
  color: #5b736d; background: #f0f4f2; font-size: 11px; font-weight: 750;
}
.nav-link.aktif .nav-icon { color: #fff; background: var(--brand); }
.sidebar-footer { display: flex; align-items: center; gap: 9px; margin: auto 7px 0; padding: 17px 5px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #45a778; box-shadow: 0 0 0 4px #e6f4eb; }
.konten { width: calc(100% - var(--sidebar-width)); min-width: 0; max-width: 1600px; flex: 1; padding: 34px clamp(20px, 3.2vw, 52px) 20px; }
.konten.tanpa-sidebar { max-width: 1180px; margin: 0 auto; }
.footer { padding: 18px 4px 4px; color: #889792; font-size: 11px; }
.footer span { padding: 0 5px; }

.page-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin: 0 0 24px; }
.page-heading h1 { margin: 0; color: var(--ink); font-size: clamp(24px, 3vw, 32px); font-weight: 760; letter-spacing: -.035em; line-height: 1.2; }
.page-heading p { max-width: 720px; margin: 8px 0 0; color: var(--muted); font-size: 14px; }
.eyebrow { margin: 0 0 7px !important; color: var(--brand) !important; font-size: 10px !important; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; }
.judul-baris { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }
.judul-baris h2 { margin: 0; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.3; }
h2 { font-size: 22px; letter-spacing: -.025em; }
h3 { font-size: 16px; }
.panel { margin-bottom: 20px; padding: clamp(20px, 2.5vw, 30px); border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); }
.panel h2 { margin: 0 0 14px; }
.panel h3 { margin: 26px 0 12px; }
.panel h3:first-child { margin-top: 0; }
.kartu { max-width: 440px; margin: 56px auto; padding: 34px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); }
.kartu-lebar { max-width: 560px; }
.statistik { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.statistik > div, .metric-card {
  min-width: 0; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: #fff;
}
.statistik strong, .metric-card strong { display: block; margin: 6px 0 3px; color: var(--brand-dark); font-size: 30px; font-weight: 760; letter-spacing: -.04em; }
.statistik span, .metric-card span { color: var(--muted); font-size: 12px; }
.welcome-panel { position: relative; overflow: hidden; padding: clamp(24px, 4vw, 40px); border: 0; color: #fff; background: linear-gradient(115deg, #123b36, #1d7562); }
.school-logo { float: right; width: 72px; height: 72px; margin-left: 18px; border-radius: 16px; object-fit: contain; background: #fff; }
.welcome-panel h1, .welcome-panel h2 { margin: 0; color: #fff; font-size: clamp(24px, 3vw, 34px); letter-spacing: -.035em; }
.welcome-panel p { margin: 9px 0 0; color: #d4e9e2; }
.welcome-panel .eyebrow { color: #a8dac9 !important; }
.dashboard-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 18px 0 24px; }
.metric-card { position: relative; overflow: hidden; }
.metric-card::before { position: absolute; top: 0; left: 0; width: 3px; height: 100%; background: var(--brand); content: ""; }
.metric-card a { display: inline-block; margin-top: 9px; font-size: 12px; font-weight: 650; }
.shortcut-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.shortcut { display: flex; min-height: 82px; align-items: center; gap: 14px; padding: 16px; border: 1px solid var(--line); border-radius: 13px; background: #fff; color: var(--ink); text-decoration: none; }
.shortcut:hover { transform: translateY(-2px); border-color: #b7d3c9; box-shadow: var(--shadow); color: var(--brand-dark); }
.shortcut-mark { display: grid; width: 38px; height: 38px; flex: 0 0 38px; place-items: center; border-radius: 11px; background: var(--brand-soft); color: var(--brand); font-size: 13px; font-weight: 750; }
.shortcut strong { display: block; font-size: 13px; }
.shortcut small { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }
.empty-state { padding: 38px 20px; text-align: center; }
.empty-state .shortcut-mark { margin: 0 auto 13px; }
.empty-state h2, .empty-state h3 { margin: 0 0 7px; }
.empty-state p { max-width: 560px; margin: 0 auto; }
.profile-layout { max-width: 860px; }
.form-narrow { max-width: 600px; }
.profile-preview { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: #f8faf9; }
.soal-assignment { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 0 0 10px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: #f8faf9; }
.soal-assignment strong, .soal-assignment small { display: block; }
.soal-assignment strong { margin-top: 3px; color: var(--ink); }
.soal-assignment small { margin-top: 3px; color: var(--muted); }
.soal-selection-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.soal-selection-fields > div { min-width: 0; }
.soal-list-heading { align-items: center; margin-top: 24px; }
.soal-list-heading h2 { margin: 0; }
.soal-list-heading .catatan { margin-top: 4px; }
.soal-draft-list { display: grid; gap: 12px; }
.soal-bulk-group { display: grid; gap: 10px; }
.soal-bulk-group + .soal-bulk-group { margin-top: 12px; padding-top: 20px; border-top: 1px solid var(--line); }
.soal-bulk-group h3 { margin: 0; color: var(--brand-dark); }
.soal-draft-card { padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.soal-draft-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.soal-draft-meta { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.soal-draft-actions { display: flex; gap: 7px; }
.soal-bulk-meta { align-items: center; }
.soal-draft-card > label, .soal-draft-card > div > label { display: block; margin: 12px 0 5px; color: var(--muted); font-size: 12px; font-weight: 650; }
.soal-draft-card textarea, .soal-draft-card select, .soal-draft-card input:not([type="checkbox"]):not([type="radio"]) { width: 100%; }
.soal-draft-card > textarea { margin: 0; }
.soal-draft-card .baris-opsi { margin-top: 6px; }
.soal-draft-card .pilihan { display: flex; gap: 18px; }
.soal-validasi-inline { margin: 9px 0 0; color: var(--danger); font-size: 12px; font-weight: 650; }
.soal-draft-text { margin: 12px 0; color: var(--ink); white-space: pre-wrap; }
.soal-draft-answers { display: grid; gap: 5px; margin: 0; padding-left: 20px; color: var(--muted); font-size: 13px; }
.soal-draft-answers .jawaban-benar { color: #15583f; font-weight: 650; }
.soal-draft-explanation { margin: 10px 0 0; color: var(--muted); font-size: 12px; }
.soal-dialog { width: min(760px, calc(100vw - 32px)); max-width: none; max-height: min(88vh, 900px); overflow-y: auto; padding: 24px; border: 1px solid var(--line); border-radius: 16px; color: var(--ink); background: var(--surface); box-shadow: 0 24px 80px rgb(23 47 44 / 24%); }
.soal-dialog::backdrop { background: rgb(13 34 31 / 55%); backdrop-filter: blur(2px); }
.soal-dialog-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.soal-dialog-header h2 { margin: 0; }
.soal-dialog-header .eyebrow { margin-bottom: 5px !important; }
.tombol-tutup { display: grid; width: 36px; min-height: 36px; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); background: #fff; font-size: 23px; line-height: 1; }
.tombol-tutup:hover { color: var(--ink); background: #f4f8f6; }
.soal-dialog .form-actions { justify-content: flex-start; }
.exam-class-picker { min-width: 0; margin: 16px 0; padding: 12px; border: 1px solid var(--line); border-radius: 10px; }
.exam-class-picker legend { padding: 0 5px; font-weight: 700; }
.exam-class-options { display: flex; flex-wrap: wrap; gap: 8px; }
.exam-class-option { display: inline-flex; align-items: center; gap: 8px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--brand-soft); cursor: pointer; }
.exam-class-option[hidden] { display: none; }
.exam-class-option input { width: auto; margin: 0; }
.soal-dialog .form-label { margin: 14px 0 6px; color: #3c504b; font-size: 12px; font-weight: 650; }
.exam-collection-options { display: grid; max-height: 260px; gap: 8px; overflow-y: auto; }
.exam-collection-option { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; }
.exam-collection-option[hidden] { display: none !important; }
.exam-collection-option--ready { border-color: #a8d2bc; background: #f0f8f4; }
.exam-collection-option--ready:hover,
.exam-collection-option--ready:has(input:checked),
.exam-collection-option--ready:focus-within { border-color: #176b58; box-shadow: 0 0 0 2px rgb(23 107 88 / 12%); }
.exam-collection-option--not-ready { border-color: #e7cf9d; background: #fffaf0; cursor: not-allowed; }
.exam-collection-option input { width: 17px; height: 17px; margin: 0; accent-color: #176b58; }
.exam-collection-copy { display: grid; gap: 3px; min-width: 0; color: var(--ink); }
.exam-collection-copy strong { overflow-wrap: anywhere; }
.exam-collection-copy small { color: var(--muted); font-size: 11px; font-weight: 500; }
.exam-collection-status { justify-self: end; padding: 5px 9px; border-radius: 999px; font-size: 10px; font-weight: 750; text-align: center; }
.exam-collection-status--ready { color: #14583f; background: #d8efe1; }
.exam-collection-status--not-ready { color: #77510b; background: #f6e8c5; }
.soal-dialog button:disabled { opacity: .55; cursor: not-allowed; }
.soal-group-list { display: grid; gap: 14px; }
.soal-actions-heading { text-align: right; }
.soal-row-actions { justify-content: flex-end; min-width: 0; }
.bank-soal-table { width: 100%; table-layout: fixed; }
.bank-soal-title-column { width: 28%; }
.bank-soal-detail-column { width: 12%; }
.bank-soal-type-score { margin-top: 4px; color: var(--muted); font-size: 10px; }
.bank-soal-score-missing { color: var(--warning); font-size: 10px; font-weight: 650; }
.soal-group { min-width: 0; padding: 18px; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.soal-group-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.soal-group-heading h3 { margin: 0; }
.soal-group-heading h3 span { color: var(--muted); font-size: 13px; font-weight: 500; }
.soal-group-heading .eyebrow { margin-bottom: 4px !important; }
.logo-preview { display: grid; width: 64px; height: 64px; flex: 0 0 64px; place-items: center; border-radius: 14px; object-fit: contain; background: #fff; }
.logo-placeholder { color: var(--brand); font-size: 25px; font-weight: 800; }
.profile-preview strong, .profile-preview small { display: block; }
.profile-preview small { margin-top: 3px; color: var(--muted); font-size: 12px; }
.form-actions { display: flex; gap: 10px; align-items: center; margin-top: 20px; }
.filter-bar { margin-bottom: 18px; }
.filter-search { flex: 1 1 250px !important; }
.pilihan-item { display: flex; align-items: center; gap: 8px; }
.form-panel { max-width: 1000px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.form-span-2 { grid-column: span 2; }
.section-title { margin: 30px 0 4px; font-size: 17px; }
.class-choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; margin-top: 14px; }
.class-choice { display: flex; min-height: 64px; align-items: center; gap: 11px; margin: 0; padding: 12px; border: 1px solid var(--line); border-radius: 11px; background: #fff; cursor: pointer; }
.class-choice:has(input:checked) { border-color: #8eb9a8; background: #f1f8f5; }
.class-choice input { flex: 0 0 auto; }
.class-choice strong, .class-choice small { display: block; }
.class-choice strong { color: var(--ink); font-size: 12px; }
.class-choice small { margin-top: 3px; color: var(--muted); font-size: 10px; font-weight: 450; }
.publish-choice { margin-top: 17px; border-style: dashed; }
.class-code-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 13px; margin-top: 18px; }
.class-code-card { display: grid; gap: 13px; padding: 17px; border: 1px solid var(--line); border-radius: 13px; background: #fbfcfc; }
.class-code-card h3 { margin: 0; }
.class-code-card p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.exam-code { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px; border-radius: 10px; background: var(--brand-soft); }
.exam-code small { color: var(--muted); font-size: 9px; font-weight: 750; letter-spacing: .1em; }
.exam-code strong { color: var(--brand-dark); font-size: 20px; letter-spacing: .12em; }
.exam-title-section { margin-bottom: 24px; }
.exam-title-section .judul-baris { align-items: flex-start; margin-bottom: 14px; }
.exam-title-section .judul-baris h2 { margin: 0; font-size: 18px; }
.exam-title-section .judul-baris .catatan { max-width: 700px; }
.exam-title-section .badge { flex: 0 0 auto; }
.exam-title-table { min-width: 760px; }
.exam-title-table td { vertical-align: middle; }
.exam-title-table td:first-child { min-width: 180px; }
.exam-title-period { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }
.exam-title-detail { display: inline-flex; margin: 2px 4px 2px 0; padding: 3px 7px; border-radius: 99px; background: #f0f5f3; color: #526661; font-size: 10px; white-space: nowrap; }
.exam-title-status { display: inline-flex; max-width: 190px; padding: 4px 8px; border-radius: 99px; font-size: 10px; font-weight: 650; }
.exam-title-status.siap { background: var(--success-soft); color: var(--success); }
.exam-title-status.belum { background: var(--warning-soft); color: var(--warning); }
.exam-title-unavailable { color: var(--muted); font-size: 10px; }
.exam-title-selected { background: #f2faf6; }
.exam-change-title { margin: -8px 0 12px; text-align: right; font-size: 11px; }
.exam-change-title a { color: var(--brand-dark); font-weight: 650; }
.exam-no-titles { padding: 24px 12px; }
.exam-no-titles h3 { margin: 0 0 5px; font-size: 15px; }
.exam-no-titles p { margin: 0; }
.exam-settings-form { padding-top: 20px; border-top: 1px solid var(--line); }
.exam-selected-summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px; border: 1px solid #cce4d8; border-radius: 12px; background: #f0f8f4; }
.exam-selected-summary .eyebrow { margin-bottom: 3px !important; }
.exam-selected-summary h2 { margin: 0; font-size: 18px; }
.exam-selected-summary p:last-child { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.exam-settings-form .section-title { margin-top: 23px; }
.judul-aksi { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.judul-aksi form { margin: 0; }
.metric-date { font-size: 16px !important; letter-spacing: 0 !important; }
.student-shell { width: min(100%, 720px); margin: 18px auto 40px; }
.student-login { width: min(100%, 760px); margin: 8px auto 30px; }
.student-login-brand { display: flex; align-items: center; gap: 11px; margin: 0 4px 14px; }
.student-login-brand > span:nth-child(2) { display: grid; line-height: 1.2; }
.student-login-brand strong { color: var(--brand-dark); font-size: 14px; letter-spacing: .1em; }
.student-login-brand small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.student-brand-mark { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 12px; color: #fff; background: var(--brand); font-size: 18px; font-weight: 800; box-shadow: 0 5px 14px rgb(23 107 91 / 20%); }
.student-login-tools { display: flex; align-items: center; gap: 9px; margin-left: auto; }
.student-login-code { padding: 7px 11px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: #fff; font-size: 10px; font-weight: 750; letter-spacing: .08em; }
.student-start-time { position: absolute; top: 14px; right: 16px; z-index: 2; display: grid; gap: 2px; min-width: 150px; padding: 7px 12px; border: 1px solid rgb(255 255 255 / 40%); border-radius: 12px; color: var(--brand-dark); background: rgb(255 255 255 / 94%); box-shadow: 0 4px 12px rgb(10 45 39 / 12%); text-align: right; }
.student-start-time strong { color: var(--brand); font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.student-start-time span { font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; }
.student-start-time .student-start-date { color: var(--muted); font-size: 9px; font-weight: 650; }
.student-start-time .student-start-value { color: var(--brand); font-size: 11px; }
.student-login-card { overflow: visible; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: 0 16px 38px rgb(18 59 54 / 9%); }
.student-login-hero { position: sticky; top: 0; z-index: 10; overflow: hidden; padding: clamp(28px, 6vw, 48px) 24px 32px; border-radius: 19px 19px 0 0; color: #fff; background: linear-gradient(120deg, #123b36 0%, #176b5b 64%, #399078 100%); text-align: center; }
.student-shared-hero { display: flex; min-height: 112px; align-items: center; justify-content: center; padding: 20px 24px; text-align: left; }
.student-shared-hero-content { position: relative; z-index: 1; display: flex; width: min(100%, 650px); align-items: center; gap: 16px; }
.student-shared-hero-copy { min-width: 0; }
.student-shared-hero .student-login-emblem { flex: 0 0 54px; width: 54px; height: 54px; margin: 0; border-radius: 16px; font-size: 28px; }
.student-shared-hero .student-login-school { margin: 0 0 4px; padding: 4px 10px; font-size: 9px; }
.student-shared-hero h1 { max-width: 620px; margin: 0; color: #fff; font-size: clamp(22px, 4vw, 30px); font-weight: 780; letter-spacing: -.035em; line-height: 1.2; overflow-wrap: anywhere; }
.student-shared-hero .student-login-subtitle { margin: 3px 0 0; color: #d5e9e3; font-size: 12px; }
.student-shared-hero.has-start-time .student-shared-hero-content { padding-right: 160px; }
.student-login-hero::before, .student-login-hero::after { position: absolute; width: 220px; height: 220px; border: 1px solid rgb(255 255 255 / 10%); border-radius: 50%; content: ""; }
.student-login-hero::before { top: -150px; right: -30px; box-shadow: 0 0 0 32px rgb(255 255 255 / 4%), 0 0 0 65px rgb(255 255 255 / 3%); }
.student-login-hero::after { bottom: -180px; left: -45px; }
.student-login-emblem { position: relative; z-index: 1; display: grid; width: 66px; height: 66px; place-items: center; margin: 0 auto 17px; border: 4px solid rgb(255 255 255 / 25%); border-radius: 20px; color: #f6d98c; background: rgb(255 255 255 / 14%); font-size: 34px; }
.student-login-school, .student-login-hero h1, .student-login-subtitle { position: relative; z-index: 1; }
.student-login-school { display: inline-block; margin: 0 0 14px; padding: 7px 15px; border: 1px solid rgb(255 255 255 / 20%); border-radius: 999px; color: #d7eee6; background: rgb(255 255 255 / 10%); font-size: 11px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.student-login-hero h1 { max-width: 620px; margin: 0 auto; color: #fff; font-size: clamp(25px, 5vw, 36px); font-weight: 780; letter-spacing: -.035em; line-height: 1.2; }
.student-login-subtitle { margin: 10px 0 0; color: #d5e9e3; font-size: 14px; }
.student-login-content { padding: clamp(20px, 5vw, 34px); }
.student-login-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-bottom: 22px; padding: 11px; border: 1px solid #dceae5; border-radius: 15px; background: #f7faf9; }
.student-login-meta > div { min-width: 0; padding: 13px 14px; border: 1px solid #e7efec; border-radius: 11px; background: #fff; }
.student-login-meta small, .student-login-meta strong { display: block; }
.student-login-meta small { margin-bottom: 3px; color: #83928e; font-size: 9px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.student-login-meta strong { overflow-wrap: anywhere; color: var(--ink); font-size: 13px; }
.student-login-guide { margin-bottom: 23px; padding: 19px 20px; border: 1px solid #eadcae; border-radius: 15px; background: #fffdf5; }
.student-login-guide h2 { margin: 0 0 10px; color: #695324; font-size: 16px; }
.student-login-guide ol { display: grid; gap: 6px; margin: 0; padding-left: 21px; color: #4f5148; font-size: 13px; }
.student-login-form { padding-top: 20px; border-top: 1px solid var(--line); }
.student-login-prompt { margin: 0 0 13px; color: var(--brand-dark); font-size: 16px; font-weight: 750; }
.student-login-form label { margin: 13px 0 6px; font-size: 13px; }
.student-login-form label > span { color: var(--danger); }
.student-login-form label small { color: var(--muted); font-size: 11px; font-weight: 500; }
.student-login-form input:not([type="checkbox"]) { min-height: 51px; padding: 12px 14px; border: 1px solid #d8e2df; border-radius: 12px; background: #fbfcfc; font-size: 14px; }
.student-login-form input::placeholder { color: #97a39f; }
.student-login-consent { display: flex !important; align-items: flex-start; gap: 9px; margin: 18px 0 14px !important; color: var(--muted) !important; font-size: 12px !important; font-weight: 550 !important; }
.student-login-consent input { width: 17px; min-height: 17px; flex: 0 0 17px; margin: 2px 0 0; accent-color: var(--brand); }
.student-login-submit { width: 100%; min-height: 58px; border: 0; border-radius: 13px; color: #fff; background: linear-gradient(110deg, var(--brand-dark), var(--brand)); box-shadow: 0 9px 20px rgb(23 107 91 / 20%); font-size: 16px; font-weight: 750; cursor: pointer; }
.student-login-submit:hover { transform: translateY(-1px); box-shadow: 0 12px 24px rgb(23 107 91 / 25%); }
.student-login-footer { padding: 22px 10px 4px; color: var(--muted); font-size: 11px; line-height: 1.8; text-align: center; }
.student-login-footer span { color: #899692; }
.student-brand { display: flex; align-items: center; gap: 11px; margin: 0 0 20px 4px; }
.student-brand > span:last-child { display: grid; line-height: 1.2; }
.student-brand strong { color: var(--brand-dark); font-size: 15px; letter-spacing: .1em; }
.student-brand small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.student-card { padding: clamp(22px, 5vw, 38px); border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); }
.student-card h1 { margin: 0; font-size: clamp(23px, 4vw, 30px); letter-spacing: -.03em; }
.student-card > p:not(.eyebrow) { margin: 11px 0 0; }
.student-footnote { margin: 16px 10px; color: var(--muted); font-size: 11px; text-align: center; }
.student-exam { max-width: 900px; margin-top: 8px; }
.student-exam-header { display: flex; min-height: 42px; align-items: center; justify-content: flex-end; gap: 14px; margin-bottom: 5px; }
.timer-card { position: fixed; top: 12px; right: max(12px, calc((100vw - 900px) / 2)); z-index: 30; display: grid; min-width: 78px; padding: 5px 9px; border: 1px solid var(--line); border-radius: 9px; background: #fff; box-shadow: 0 5px 16px rgb(23 47 44 / 10%); text-align: center; }
.timer-card small { color: var(--muted); font-size: 7px; font-weight: 750; letter-spacing: .1em; }
.timer-card strong { color: var(--danger); font-size: 17px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.student-exam-meta { display: flex; gap: 6px 16px; flex-wrap: wrap; margin-bottom: 9px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 11px; background: #fff; color: var(--muted); font-size: 11px; }
.student-exam-meta span:first-child { color: var(--ink); font-weight: 700; }
.question-navigator { margin-bottom: 9px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.question-progress { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 7px; font-size: 11px; }
.question-progress span { color: var(--muted); }
.question-jumps { display: flex; gap: 7px; flex-wrap: wrap; }
.question-jumps .question-jump { min-width: 36px; min-height: 36px; padding: 6px 10px; border-color: var(--line); background: #fff; color: var(--ink); }
.question-jumps .question-jump.terjawab { border-color: #a9cfc0; background: var(--success-soft); color: var(--success); }
.question-jumps .question-jump.aktif { border-color: var(--brand); background: var(--brand); color: #fff; }
.question-card { margin-bottom: 8px; padding: clamp(14px, 2.5vw, 20px); border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 6px 20px rgb(23 47 44 / 4%); }
.question-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.question-number { color: var(--brand); font-size: 11px; font-weight: 750; }
.question-card h2 { margin: 10px 0 12px; font-size: 17px; font-weight: 650; }
.student-options { display: grid; gap: 6px; }
.student-options.dua-kolom { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.student-option { display: flex; align-items: flex-start; gap: 10px; margin: 0; padding: 9px 11px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; font-size: 13px; font-weight: 450; }
.student-option:has(input:checked) { border-color: #8eb9a8; background: #f1f8f5; }
.student-option input { margin-top: 3px; }
.save-state { margin: 10px 0 0; color: var(--muted); font-size: 10px; text-align: right; }
.student-submit-bar { position: sticky; bottom: 10px; display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 8px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 13px; background: rgb(255 255 255 / 96%); box-shadow: var(--shadow); }
.student-submit-bar p { margin: 0; color: var(--muted); font-size: 11px; }
.question-controls { display: flex; align-items: center; gap: 8px; }
.question-controls .button-secondary { border-color: var(--line); background: #fff; color: var(--brand-dark); }
.question-controls .button-secondary:hover { background: var(--brand-soft); color: var(--brand-dark); }
.student-confirm-dialog { width: min(440px, calc(100% - 32px)); padding: 27px; border: 1px solid var(--line); border-radius: 20px; color: var(--ink); background: #fff; box-shadow: 0 22px 70px rgb(18 59 54 / 24%); text-align: center; }
.student-confirm-dialog::backdrop { background: rgb(13 35 32 / 58%); backdrop-filter: blur(2px); }
.student-confirm-icon { display: grid; width: 48px; height: 48px; place-items: center; margin: 0 auto 13px; border-radius: 16px; color: var(--success); background: var(--success-soft); font-size: 25px; font-weight: 800; }
.student-confirm-dialog h2 { margin: 0; font-size: 20px; }
.student-confirm-dialog p { margin: 10px 0 21px; color: var(--muted); font-size: 13px; }
.student-confirm-actions { display: flex; justify-content: center; gap: 9px; }
.student-leave-actions { flex-direction: row-reverse; }
.student-confirm-actions .button-secondary { border-color: var(--line); color: var(--brand-dark); background: #fff; }
.student-confirm-actions .button-secondary:hover { color: var(--brand-dark); background: var(--brand-soft); }
.student-exit-status { color: var(--danger) !important; font-weight: 650; }
.result-card { text-align: center; }
.result-card h2 { margin: 0; color: var(--brand-dark); font-size: clamp(20px, 4vw, 26px); letter-spacing: -.025em; }
.result-greeting { margin: 7px 0 0; color: var(--ink); font-size: 16px; font-weight: 700; }
.result-duration { margin: 3px 0 0; color: var(--muted); font-size: 12px; }
.result-check { display: grid; width: 52px; height: 52px; place-items: center; margin: 0 auto 17px; border-radius: 50%; background: var(--success-soft); color: var(--success); font-size: 26px; font-weight: 800; }
.result-score { display: grid; width: fit-content; min-width: 100px; max-width: min(100%, 340px); min-height: 100px; align-content: center; justify-items: center; gap: 7px; margin: 14px auto 4px; padding: 7px 12px; border: 3px solid var(--brand-dark); border-radius: 12px; background: #e8f3ef; box-shadow: 0 5px 14px rgb(18 59 54 / 12%); text-align: center; }
.result-score-label { display: grid; gap: 2px; line-height: 1.45; }
.result-score-label span { color: var(--ink); font-weight: 700; }
.result-score strong { color: var(--brand-dark); font-size: 29px; line-height: 1.15; font-variant-numeric: tabular-nums; }
.result-score strong span { color: var(--muted); font-size: 18px; font-weight: 600; }
.result-score small { color: var(--muted); font-size: 11px; }
.pending-score { border-color: var(--brand-dark); background: #e8f3ef; }
.pending-score strong { color: var(--brand-dark); }
.result-score-note { max-width: 340px; margin: 3px auto 15px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.settings-panel { max-width: 850px; }
.settings-tabs { margin-bottom: 22px; }
.teacher-profile-form { max-width: 680px; }
.teacher-profile-photo-row { display: flex; align-items: center; gap: 18px; margin-bottom: 24px; padding: 17px; border: 1px solid var(--line); border-radius: 13px; background: #f8faf9; }
.teacher-profile-photo { display: grid; width: 92px; height: 92px; flex: 0 0 92px; place-items: center; border-radius: 50%; object-fit: cover; }
.teacher-profile-photo-placeholder { color: var(--brand-dark); background: var(--brand-soft); font-size: 34px; font-weight: 750; }
.teacher-profile-photo-input { min-width: 0; flex: 1; }
.teacher-profile-photo-input input[type="file"] { margin-top: 4px; padding: 8px; }
.teacher-profile-photo-input p { margin: 6px 0 0; }
.teacher-profile-remove-photo { display: flex; align-items: center; gap: 7px; margin-top: 9px; font-size: 12px; }
.teacher-profile-remove-photo input { width: auto; }
.teacher-profile-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.teacher-profile-status { display: flex; align-items: center; gap: 8px; min-height: 44px; margin: 0; }
.foto-guru-mini { display: inline-grid; width: 38px; height: 38px; place-items: center; border-radius: 50%; object-fit: cover; vertical-align: middle; }
.foto-guru-detail { display: inline-grid; width: 72px; height: 72px; place-items: center; margin-bottom: 8px; border-radius: 50%; object-fit: cover; vertical-align: middle; }
.foto-guru-placeholder { color: var(--brand-dark); background: var(--brand-soft); font-weight: 750; }
.student-result-breakdown { margin-top: 18px; padding: clamp(18px, 3vw, 26px); border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 12px 30px rgb(18 59 54 / 6%); }
.student-result-breakdown-heading { margin-bottom: 14px; }
.student-result-breakdown-heading h2 { margin: 0; font-size: 18px; }
.student-result-breakdown-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 10px; }
.student-result-breakdown-card { display: grid; align-content: start; gap: 7px; min-width: 0; padding: 15px; border: 1px solid #dce8e3; border-radius: 13px; background: #f7faf8; }
.student-result-breakdown-card h3 { margin: 0; color: var(--ink); font-size: 13px; }
.student-result-breakdown-card > strong { color: var(--brand-dark); font-size: 21px; line-height: 1.2; overflow-wrap: anywhere; }
.student-result-breakdown-card > strong span { color: var(--muted); font-size: 12px; font-weight: 600; }
.student-result-breakdown-card > small { color: var(--muted); font-size: 11px; }
.student-result-pending { justify-self: start; padding: 4px 8px; border-radius: 999px; color: #79540d; background: #fff0c8; font-size: 10px; font-weight: 750; }
.result-praise { margin: 0 auto 16px; padding: 11px 14px; border: 1px solid #d9ece2; border-radius: 11px; color: var(--success); background: var(--success-soft); font-size: 13px; font-weight: 650; }
.exam-results-intro { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 10px; }
.exam-results-intro h2 { margin: 0; font-size: 17px; }
.exam-results-intro p { margin: 4px 0 0; }
.attempt-card { scroll-margin-top: 90px; margin: 0 0 9px; overflow: hidden; border: 1px solid #cbd9d4; border-radius: 11px; background: #fff; }
.attempt-card[open] { border-color: #9ab9ae; box-shadow: 0 4px 14px rgb(23 47 44 / 5%); }
.attempt-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 11px 14px; background: #f2f7f5; cursor: pointer; list-style: none; }
.attempt-heading::-webkit-details-marker { display: none; }
.attempt-heading h2 { margin: 2px 0; font-size: 15px; }
.attempt-heading p { margin: 0; }
.attempt-heading .eyebrow { color: var(--brand); }
.attempt-score { display: grid; min-width: 140px; justify-items: end; gap: 2px; padding: 6px 10px; border-left: 2px solid #8eb6a7; }
.attempt-score strong { color: var(--brand-dark); font-size: 20px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.attempt-score small { color: var(--muted); font-size: 10px; }
.lencana-selesai { color: #14583e; background: #dff2e7; }
.attempt-toggle { display: grid; width: 25px; height: 25px; flex: 0 0 25px; place-items: center; border: 1px solid #cbd9d4; border-radius: 7px; color: var(--brand-dark); background: #fff; }
.attempt-toggle::before { content: "+"; font-size: 17px; line-height: 1; }
.attempt-card[open] .attempt-toggle::before { content: "−"; }
.attempt-answers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 9px; padding: 12px; border-top: 1px solid var(--line); }
.attempt-answer { min-width: 0; padding: 12px; border: 1px solid #dce5e1; border-radius: 9px; background: #f8faf9; }
.attempt-answer-essay { grid-column: 1 / -1; border-color: #d6a64c; background: #fff8e9; }
.attempt-question { margin: 9px 0 7px; color: var(--ink); font-size: 13px; font-weight: 650; white-space: pre-wrap; }
.attempt-response { margin: 0; padding: 9px 10px; border: 1px solid #e4e9e7; border-radius: 8px; background: #fff; color: var(--ink); font-size: 12px; white-space: pre-wrap; overflow-wrap: anywhere; }
.attempt-response-empty { color: var(--muted); font-style: italic; }
.attempt-answer-comparison { display: grid; gap: 7px; margin: 8px 0; }
.attempt-answer-choice { padding: 9px 10px; border: 1px solid #e4e9e7; border-radius: 8px; background: #fff; font-size: 12px; }
.attempt-answer-choice > strong { display: block; margin-bottom: 5px; color: var(--muted); font-size: 10px; letter-spacing: .04em; text-transform: uppercase; }
.attempt-answer-choice ul { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.attempt-answer-choice li { overflow-wrap: anywhere; }
.attempt-answer-choice li b { color: var(--brand); font-size: 14px; font-weight: 800; }
.attempt-answer-choice p { margin: 0; color: var(--muted); font-style: italic; }
.attempt-answer-choice-correct { border-color: #8bc8b0; background: #f1faf6; }
.attempt-answer-choice-partial { border-color: #e3c36f; background: #fff8e8; }
.attempt-answer-choice-key { border-color: #b9d8cd; background: #f2f8f6; }
.answer-correctness { display: inline-flex; align-items: center; margin-top: 2px; padding: 5px 10px; border-radius: 999px; font-size: 11px; font-weight: 800; }
.answer-correctness--benar { color: #fff; background: #16804a; }
.answer-correctness--salah { color: #fff; background: #c93636; }
.answer-correctness--belum { color: #34413d; background: #e3e9e6; }
.answer-correctness--parsial { color: #fff; background: #ad7411; }
.essay-grade { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; max-width: 420px; margin-top: 10px; padding: 10px 12px; border: 1px solid #e6ca8f; border-radius: 9px; background: #fff; }
.essay-grade label { margin: 0; color: var(--ink); }
.essay-grade label span { color: var(--muted); font-size: 11px; font-weight: 450; }
.essay-grade-entry { display: flex; align-items: center; gap: 8px; }
.essay-grade input { min-width: 0; margin: 0; }
.essay-grade button { min-height: 42px; flex: 0 0 auto; }
.essay-guide { color: var(--muted); font-size: 11px; }
.essay-guide summary { cursor: pointer; font-weight: 650; }
.essay-guide p { margin: 7px 0 0; color: var(--ink); white-space: pre-wrap; }
.attempt-points { margin: 10px 0 0; color: var(--muted); font-size: 11px; }

@media (max-width: 600px) {
  .history-heading { align-items: stretch; flex-direction: column; }
  .exam-subject-filter { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; width: 100%; }
  .exam-subject-filter select { width: 100%; }
  .student-login { margin-top: 0; }
  .student-login-brand { margin-bottom: 11px; }
  .student-login-tools { align-items: flex-end; flex-direction: column-reverse; gap: 5px; }
  .student-login-code { padding: 4px 8px; font-size: 8px; }
  .student-start-time { top: 10px; right: 10px; min-width: 0; padding: 5px 8px; }
  .student-start-time strong { font-size: 8px; }
  .student-start-time .student-start-date { font-size: 8px; }
  .student-start-time .student-start-value { font-size: 9px; }
  .student-login-card { border-radius: 16px; }
  .student-login-hero { padding: 25px 18px 28px; border-radius: 15px 15px 0 0; }
  .student-shared-hero { min-height: 0; padding: 15px 16px; }
  .student-shared-hero-content { gap: 11px; }
  .student-shared-hero .student-login-emblem { flex-basis: 44px; width: 44px; height: 44px; border-width: 3px; border-radius: 13px; font-size: 23px; }
  .student-shared-hero.has-start-time { padding-top: 62px; }
  .student-shared-hero.has-start-time .student-shared-hero-content { padding-right: 0; }
  .student-login-meta { gap: 7px; padding: 8px; }
  .student-login-meta > div { padding: 10px; }
  .student-login-meta strong { font-size: 12px; }
  .student-login-guide { padding: 16px; }
  .student-login-guide ol { font-size: 12px; }
  .student-login-submit { min-height: 54px; font-size: 14px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-span-2 { grid-column: auto; }
  .student-shell { margin-top: 6px; }
  .student-exam-meta { gap: 6px 12px; }
  .student-submit-bar { align-items: stretch; flex-direction: column; }
  .question-controls { display: grid; grid-template-columns: 1fr 1fr; }
  .question-controls button { width: 100%; }
  .question-controls #submit-exam { grid-column: 1 / -1; }
  .student-confirm-dialog { padding: 22px 18px; }
  .student-confirm-actions { flex-direction: column-reverse; }
  .student-leave-actions { flex-direction: column; }
  .student-confirm-actions button { width: 100%; }
  .attempt-heading { gap: 8px; padding: 10px; }
  .attempt-heading > div:first-child { min-width: 0; }
  .attempt-heading h2 { overflow-wrap: anywhere; }
  .attempt-score { min-width: 0; justify-items: end; padding: 4px 6px; }
  .attempt-score .lencana { font-size: 9px; }
  .attempt-toggle { width: 22px; height: 22px; flex-basis: 22px; }
  .attempt-answers { grid-template-columns: 1fr; }
  .attempt-answer-essay { grid-column: auto; }
  .essay-grade { max-width: none; }
  .essay-grade-entry { align-items: stretch; flex-direction: column; }
  .essay-grade button { width: 100%; }
  .exam-results-intro { align-items: flex-start; }
}

label { display: block; margin: 14px 0 6px; color: #3c504b; font-size: 12px; font-weight: 650; }
input, select, textarea {
  width: 100%; min-height: 42px; padding: 9px 12px; border: 1px solid #d5e0dc; border-radius: 9px;
  background: #fff; color: var(--ink); font-size: 13px;
}
input::placeholder, textarea::placeholder { color: #98a7a2; }
input[type=checkbox], input[type=radio] { width: auto; min-height: 0; accent-color: var(--brand); }
input[type=checkbox] { width: 16px; height: 16px; vertical-align: middle; }
input[type=checkbox].cek-benar, .baris-opsi input[type=checkbox] { width: 17px; height: 17px; }
input[type=file] { min-height: 0; padding: 9px; }
textarea { min-height: 90px; resize: vertical; }
.baris-form { display: flex; align-items: flex-end; gap: 13px; flex-wrap: wrap; }
.baris-form > div { flex: 0 1 auto; min-width: min(100%, 170px); }
.pilihan { display: flex; align-items: center; gap: 12px 18px; flex-wrap: wrap; }
.pilihan label { display: inline-flex; align-items: center; gap: 7px; margin: 0; font-weight: 500; }
.baris-opsi { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.baris-opsi input:not([type=checkbox]) { flex: 1; }
.baris-opsi input[type=checkbox] { flex: 0 0 17px; }
button, .tombol {
  display: inline-flex; min-height: 40px; align-items: center; justify-content: center; gap: 7px;
  padding: 9px 15px; border: 1px solid transparent; border-radius: 9px; background: var(--brand);
  color: #fff; cursor: pointer; font-size: 12px; font-weight: 680; text-decoration: none;
}
button:hover, .tombol:hover { background: var(--brand-dark); box-shadow: 0 5px 14px rgb(18 59 54 / 12%); color: #fff; }
button:disabled { opacity: .55; cursor: not-allowed; box-shadow: none; }
button:disabled:hover { background: var(--brand); box-shadow: none; }
button:active, .tombol:active { transform: translateY(1px); }
.tombol-kecil { min-height: 32px; padding: 6px 10px; font-size: 11px; }
.tombol-bahaya { background: var(--danger); }
.tombol-bahaya:hover { background: #842e2e; }
.tombol-penuh { width: 100%; margin-top: 19px; }
.tombol-sekunder { border-color: var(--line); background: #fff; color: var(--ink); }
.tombol-sekunder:hover { border-color: #bdd2ca; background: #f4f8f6; color: var(--brand-dark); }
a.tombol { color: #fff; }
a.tombol-sekunder { color: var(--ink); }

.pesan { margin: 0 0 14px; padding: 11px 14px; border: 1px solid transparent; border-radius: 10px; font-size: 13px; }
.pesan.error { border-color: #f4d0cd; background: var(--danger-soft); color: #842f2b; }
.pesan.sukses { border-color: #c9e8d7; background: var(--success-soft); color: #15583f; }
.pesan.peringatan { border-color: #f1dfb8; background: var(--warning-soft); color: #78500f; }
.gulir-x { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
table { width: 100%; border-collapse: collapse; background: #fff; font-size: 12px; }
table:has(+ *) { margin-top: 0; }
th, td { padding: 12px 13px; border-bottom: 1px solid #edf1ef; text-align: left; vertical-align: middle; }
th { background: #cbded7; color: #354f48; font-size: 10px; font-weight: 750; letter-spacing: .055em; text-transform: uppercase; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fbfdfc; }
td.aksi { display: flex; min-width: max-content; align-items: center; gap: 7px; }
td.aksi form { margin: 0; }
.exam-list-table { min-width: 1080px; table-layout: fixed; }
.exam-list-table th:nth-child(1) { width: 16%; }
.exam-list-table th:nth-child(2) { width: 14%; }
.exam-list-table th:nth-child(3) { width: 15%; }
.exam-list-table th:nth-child(4) { width: 8%; }
.exam-list-table th:nth-child(5) { width: 16%; }
.exam-list-table th:nth-child(6) { width: 15%; }
.exam-list-table th:nth-child(7) { width: 8%; }
.exam-list-table th:nth-child(5), .exam-list-table td:nth-child(5) { text-align: center; }
.exam-list-table .exam-link-column { text-align: center; }
.exam-list-table .exam-link-column form { text-align: center; }
.exam-list-table .exam-link-list { justify-items: center; }
.participant-count-trigger { width: 100%; min-width: 0; min-height: 0; padding: 0 16px; border: 0; border-radius: 9px; color: var(--brand); background: transparent; box-shadow: none; font-weight: 750; text-decoration: underline dotted; text-underline-offset: 3px; cursor: pointer; }
.participant-count-trigger:hover { color: var(--brand-dark); background: var(--brand-soft); box-shadow: none; }
.participant-list-table { min-width: 600px; }
.participant-list-table td { vertical-align: top; }
.participant-time-detail { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }
.participant-score-cell { display: grid; height: 34px; max-width: 100%; grid-template-rows: 14px 14px; gap: 6px; overflow: hidden; white-space: nowrap; }
.participant-total-score { overflow: hidden; color: var(--brand-dark); font-size: 13px; line-height: 14px; text-overflow: ellipsis; }
.participant-score-pending { color: var(--warning); font-size: 10px; }
.participant-score-breakdown { display: flex; min-width: 0; align-items: center; gap: 4px; overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; white-space: nowrap; }
.participant-score-breakdown span { flex: 0 0 auto; padding: 2px 5px; border-radius: 6px; color: #425a53; background: #edf4f1; font-size: 9px; font-weight: 650; line-height: 10px; }
.participant-empty { padding: 8px; }
.exam-actions-column {
  position: sticky;
  right: 0;
  z-index: 2;
  width: 86px;
  min-width: 86px;
  text-align: right;
  background: #fff;
  box-shadow: -8px 0 12px rgb(18 59 54 / 8%);
}
.exam-list-table th.exam-actions-column { z-index: 3; background: #cbded7; }
.exam-action-popover {
  position: fixed;
  inset: auto;
  width: max-content;
  min-width: 175px;
  max-width: min(320px, calc(100vw - 16px));
  max-height: calc(100vh - 16px);
  margin: 0;
  padding: 0;
  overflow: auto;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.exam-action-popover > div { display: grid; justify-items: end; gap: 7px; }
.exam-action-popover form { margin: 0; }
.question-group + .question-group { margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line); }
.question-group h2 { margin: 0 0 14px; font-size: 18px; }
.question-group > ol { display: grid; gap: 16px; margin: 0; padding-left: 26px; }
.question-group-item { padding-left: 4px; }
.preview-question-row { display: grid; grid-template-columns: minmax(0, 1fr) 145px; align-items: start; gap: 16px; }
.question-group-content { min-width: 0; }
.question-group-text { margin: 0; white-space: pre-wrap; }
.question-group-options { margin: 8px 0 0; padding-left: 26px; }
.question-group-options li { padding: 1px 0; }
.question-group-actions { position: relative; display: inline-block; margin-left: 12px; vertical-align: top; }
.question-group-actions .exam-action-popover { position: fixed; }
.preview-assessment-allocation { margin-bottom: 26px; }
.preview-score-summary { display: flex; justify-content: flex-end; gap: 10px; margin-top: 12px; color: var(--muted); font-size: 12px; }
.preview-score-summary strong { color: var(--brand-dark); }
.preview-score-actions { justify-content: flex-end; margin-top: 12px; }
.preview-question-score { display: grid; justify-items: end; gap: 3px; margin: 0; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); background: #f7faf8; font-size: 10px; white-space: nowrap; }
.preview-question-score strong { color: var(--brand-dark); font-size: 12px; }
.soal-kelola-heading-actions { display: flex; flex: 0 0 auto; flex-wrap: wrap; gap: 8px; }
.soal-kelola-add { justify-content: flex-start; margin-top: 24px; }
.exam-monitor-level-tabs { margin-top: 20px; }
.exam-monitor-class-tabs { margin-top: -10px; }
.exam-monitor-content { margin-top: 20px; }
.exam-monitor-students { margin-top: 18px; }
.exam-monitor-students h2 { margin: 0; font-size: 17px; }
.exam-monitor-students .judul-baris { align-items: flex-start; margin-bottom: 12px; }
.exam-monitor-student-absen { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }
.exam-monitor-empty { padding: 22px; color: var(--muted); text-align: center; }
.exam-monitor-refresh-error { color: var(--danger); }
.history-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 22px 0 12px; }
.history-heading h2 { margin: 0; font-size: 18px; }
.history-heading-actions { display: flex; align-items: center; gap: 8px; }
.exam-subject-filter { display: grid; grid-template-columns: minmax(280px, 1fr) minmax(190px, .7fr); gap: 8px; width: min(100%, 680px); flex: 1 1 560px; margin: 0; }
.exam-subject-filter select { width: 100%; min-width: 0; min-height: 40px; }
@media (max-width: 600px) {
  .history-heading { align-items: stretch; flex-direction: column; gap: 10px; }
  .exam-subject-filter { grid-template-columns: minmax(0, 1fr); width: 100%; min-width: 0; flex: 0 0 auto; }
  .exam-subject-filter select { min-height: 42px; }
  .history-heading > .lencana { align-self: flex-start; }
}
.history-score-max { margin-top: 3px; color: var(--muted); font-size: 10px; }
.history-table-wrap { margin: 0 12px 12px; }
.history-student-table { min-width: 650px; }
.history-actions-column { position: sticky; right: 0; z-index: 2; width: 132px; min-width: 132px; text-align: right; background: #fff; box-shadow: -8px 0 12px rgb(18 59 54 / 8%); }
.history-actions-heading { position: sticky; right: 0; z-index: 3; width: 132px; min-width: 132px; background: #cbded7; box-shadow: -8px 0 12px rgb(18 59 54 / 6%); }
.history-total-note { margin: 0 12px 14px; }
.history-empty { margin: 0; padding: 16px; font-size: 12px; }
.exam-action-trigger { border-color: var(--brand); background: var(--brand); color: #fff; }
.exam-action-trigger:hover { background: var(--brand-dark); color: #fff; }
.exam-action-edit { border-color: #b7d3c9; background: var(--brand-soft); color: var(--brand-dark); }
.exam-action-edit:hover { border-color: var(--brand); background: #d3eee3; color: var(--brand-dark); }
a.exam-action-edit { color: var(--brand-dark); }
.exam-row-status { display: block; margin-top: 6px; }
.exam-link-list { display: grid; gap: 5px; }
.lencana.ujian-akan-datang { background: var(--warning-soft); color: var(--warning); }
.lencana.ujian-berlangsung { background: var(--success-soft); color: var(--success); }
.status, .lencana, .badge {
  display: inline-flex; align-items: center; padding: 4px 9px; border-radius: 99px;
  background: var(--success-soft); color: var(--success); font-size: 10px; font-weight: 700;
}
.lencana.mati { background: #eff2f1; color: #697773; }
.kosong { color: var(--muted); }
.catatan { margin: 8px 0 0; color: var(--muted); font-size: 12px; }
.garis { margin: 24px 0; border: 0; border-top: 1px solid var(--line); }
.tab { display: flex; gap: 4px; margin: 16px 0 20px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.tab a { margin-bottom: -1px; padding: 10px 15px; border-bottom: 2px solid transparent; color: var(--muted); font-size: 12px; text-decoration: none; }
.tab a.aktif { border-bottom-color: var(--brand); color: var(--brand); font-weight: 700; }
.tab.soal-period-tabs { gap: 0; margin: 14px 0 20px; padding: 0 8px; border: 1px solid #cddbd6; border-radius: 10px; background: #dfeae6; }
.tab.soal-period-tabs a { margin: 0; padding: 11px 13px; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: transparent; color: #526661; font-weight: 650; }
.tab.soal-period-tabs a:hover { background: rgb(255 255 255 / 55%); color: var(--brand-dark); }
.tab.soal-period-tabs a.aktif { border-bottom-color: var(--brand); background: transparent; color: var(--brand); box-shadow: none; }
.tab.soal-level-tabs { gap: 9px; margin: 20px 0 22px; padding: 4px 0 13px; border-bottom: 1px solid var(--line); }
.tab.soal-level-tabs a { margin: 0; padding: 10px 17px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--muted); font-weight: 650; transition: background .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease, transform .16s ease; }
.tab.soal-level-tabs a:hover { transform: translateY(-1px); border-color: #b7d8cf; background: #f3faf7; color: var(--brand-dark); }
.tab.soal-level-tabs a.aktif { border-color: var(--brand); background: var(--brand); color: #fff; box-shadow: 0 4px 10px rgb(23 107 88 / 18%); }
.tab.soal-subject-tabs { gap: 7px; margin: -8px 0 20px; padding-bottom: 12px; }
.tab.soal-subject-tabs a { margin: 0; padding: 8px 13px; border: 1px solid #d8e5e0; border-radius: 9px 9px 0 0; background: #eef5f2; color: #536a63; font-weight: 620; }
.tab.soal-subject-tabs a:hover { background: #e5f0ec; color: var(--brand-dark); }
.tab.soal-subject-tabs a.aktif { border-color: #b8d8cf; border-bottom-color: var(--surface); background: var(--surface); color: var(--brand); box-shadow: none; }
.baris-opsi + .catatan { margin-bottom: 16px; }
.ringkasan-nilai { margin: 18px 0; }
.tabel-soal-penilaian input[type=number] { width: 100px; min-width: 85px; }
.nilai-soal { font-variant-numeric: tabular-nums; font-weight: 700; }
.assessment-page-heading { align-items: center; margin-bottom: 20px; }
.assessment-page-heading h1 { font-size: clamp(24px, 3vw, 30px); }
.assessment-page-heading > a { white-space: nowrap; }
.assessment-editor { max-width: 1160px; padding: clamp(18px, 2.8vw, 32px); }
.assessment-collection {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  margin-bottom: 24px; padding: 14px 18px; border: 1px solid #176b5b;
  border-radius: 13px; color: #fff;
  background: linear-gradient(110deg, #123b36, #176b5b);
  box-shadow: 0 8px 20px rgb(18 59 54 / 15%);
}
.assessment-collection-title { display: flex; min-width: 0; align-items: center; gap: 11px; }
.assessment-collection-label {
  flex: 0 0 auto; padding: 4px 8px; border: 1px solid rgb(255 255 255 / 28%);
  border-radius: 99px; color: #d3eee3; font-size: 9px; font-weight: 750;
  letter-spacing: .1em; text-transform: uppercase;
}
.assessment-collection h1, .assessment-collection h2 {
  min-width: 0; margin: 0; overflow: hidden; color: #fff; font-size: 18px;
  font-weight: 700; letter-spacing: -.02em; text-overflow: ellipsis; white-space: nowrap;
}
.assessment-meta { display: flex; flex: 0 0 auto; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.assessment-meta span {
  padding: 4px 8px; border: 1px solid rgb(255 255 255 / 23%); border-radius: 99px;
  background: rgb(255 255 255 / 10%); color: #f1faf6; font-size: 10px; font-weight: 600;
}
.assessment-allocation { margin-bottom: 17px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: #f7faf8; }
.assessment-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 11px; }
.assessment-section-heading h3 { margin: 0; font-size: 15px; }
.assessment-section-heading p { margin: 3px 0 0; color: var(--muted); font-size: 11px; }
.assessment-unit { padding: 4px 8px; border-radius: 7px; background: #e7f3ef; color: var(--brand-dark); font-size: 10px; font-weight: 700; }
.assessment-type-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(175px, 1fr)); gap: 9px; }
.assessment-type-card { min-width: 0; padding: 11px; border: 1px solid #dfe9e5; border-radius: 10px; background: #fff; }
.assessment-type-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.assessment-type-heading label { min-width: 0; margin: 0; overflow: hidden; color: var(--ink); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.assessment-type-heading span { flex: 0 0 auto; color: var(--muted); font-size: 9px; }
.assessment-type-input { position: relative; margin-top: 7px; }
.assessment-type-input input { min-height: 36px; padding-right: 72px; font-size: 13px; font-weight: 700; }
.assessment-type-input > span { position: absolute; top: 50%; right: 10px; transform: translateY(-50%); color: var(--muted); font-size: 9px; pointer-events: none; }
.assessment-per-question { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 7px 0 0; color: var(--muted); font-size: 9px; }
.assessment-per-question strong { color: var(--brand-dark); font-size: 12px; font-variant-numeric: tabular-nums; }
.assessment-tools {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  margin: 17px 0 11px;
}
.assessment-tools h3 { margin: 0; font-size: 17px; }
.assessment-search { width: min(100%, 310px); margin: 0; }
.assessment-search span { display: block; margin-bottom: 3px; color: #3c504b; font-size: 10px; font-weight: 650; }
.assessment-search input { min-height: 36px; }
.assessment-stats {
  display: flex; align-items: stretch; gap: 9px; margin: 0 0 8px;
  overflow: visible; border: 0; border-radius: 0; background: transparent;
}
.assessment-stats > div {
  display: flex; min-width: 150px; max-width: 180px; flex: 0 1 180px;
  align-items: center; justify-content: space-between; gap: 12px; padding: 9px 12px;
  border: 1px solid #b9d9cc; border-radius: 10px; background: #e8f4ee;
}
.assessment-stats > div:nth-child(2) { border-color: #c4d5e7; background: #edf3fa; }
.assessment-stats strong { display: flex; align-items: baseline; gap: 4px; margin: 0; font-size: 17px; }
.assessment-stats span { color: #435b52; font-size: 10px; font-weight: 650; white-space: nowrap; }
.assessment-status { min-height: 16px; margin: 0 0 6px; color: var(--muted); font-size: 10px; }
.assessment-table-wrap { max-height: 64vh; }
.assessment-table-wrap table { min-width: 700px; }
.assessment-table-wrap th { position: sticky; top: 0; z-index: 1; }
.assessment-table-wrap th:first-child, .assessment-number { width: 58px; color: #74857f; font-variant-numeric: tabular-nums; }
.assessment-question { min-width: 280px; max-width: 560px; color: var(--ink); font-size: 12px; line-height: 1.55; }
.assessment-kind { display: inline-flex; padding: 4px 9px; border-radius: 99px; background: var(--brand-soft); color: var(--brand-dark); font-size: 10px; font-weight: 650; }
.tabel-soal-penilaian input[type=number] { width: 94px; min-width: 82px; text-align: right; font-variant-numeric: tabular-nums; }
.tabel-soal-penilaian .nilai-soal { color: var(--brand-dark); font-variant-numeric: tabular-nums; white-space: nowrap; }
.assessment-submit-bar {
  position: sticky; bottom: 10px; z-index: 2; display: flex; align-items: center;
  justify-content: space-between; gap: 14px; margin-top: 18px; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 12px; background: rgb(255 255 255 / 96%);
  box-shadow: 0 8px 24px rgb(23 47 44 / 10%); backdrop-filter: blur(8px);
}
.assessment-submit-bar a { color: var(--muted); font-size: 12px; font-weight: 650; text-decoration: none; }
.assessment-submit-bar a:hover { color: var(--brand-dark); text-decoration: underline; }
.assessment-submit-bar button { min-width: 190px; }
.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;
}

@media (max-width: 780px) {
  .assessment-page-heading { align-items: flex-start; }
  .assessment-tools { align-items: center; }
}
@media (max-width: 520px) {
  .assessment-page-heading { flex-direction: column; }
  .assessment-page-heading > a { width: 100%; }
  .assessment-collection { align-items: flex-start; flex-direction: column; gap: 9px; padding: 12px; }
  .assessment-collection-title { width: 100%; gap: 8px; }
  .assessment-collection h1, .assessment-collection h2 { font-size: 16px; }
  .assessment-meta { justify-content: flex-start; gap: 5px; }
  .assessment-meta span { font-size: 9px; }
  .assessment-allocation { padding: 11px; }
  .assessment-type-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .preview-question-row { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .preview-question-score { justify-items: start; width: max-content; }
  .preview-score-actions { justify-content: stretch; }
  .preview-score-actions button { width: 100%; }
  .assessment-tools { align-items: stretch; flex-direction: column; gap: 8px; }
  .assessment-search { width: 100%; }
  .assessment-stats { flex-wrap: wrap; }
  .assessment-stats > div { min-width: 0; max-width: none; flex: 1 1 110px; align-items: flex-start; flex-direction: column; gap: 2px; padding: 8px; }
  .assessment-stats strong { font-size: 17px; }
  .assessment-submit-bar { align-items: stretch; flex-direction: column-reverse; }
  .assessment-submit-bar button { width: 100%; }
}

@media (max-width: 1060px) {
  .dashboard-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 780px) {
  .topbar { height: 64px; padding: 0 16px; }
  .merek-mark { width: 34px; height: 34px; }
  .merek-copy small { display: none; }
  .pengguna-info { display: none; }
  .keluar { margin-left: 0; padding: 7px 10px; }
  .menu-toggle {
    display: flex; width: 40px; min-height: 40px; flex-direction: column; align-items: center;
    justify-content: center; gap: 4px; margin-left: auto; padding: 8px; border: 1px solid rgb(255 255 255 / 22%);
    background: transparent;
  }
  .menu-toggle:hover { background: rgb(255 255 255 / 10%); box-shadow: none; }
  .menu-toggle span { display: block; width: 17px; height: 2px; border-radius: 2px; background: #fff; }
  .tata-letak { min-height: calc(100vh - 64px); }
  .sidebar {
    position: fixed; top: 64px; bottom: 0; left: 0; z-index: 15; width: min(84vw, 300px);
    height: calc(100vh - 64px); transform: translateX(-105%); transition: transform .2s ease;
    box-shadow: 8px 0 26px rgb(23 47 44 / 10%);
  }
  .sidebar.terbuka { transform: translateX(0); }
  .konten { width: 100%; padding: 24px 18px 16px; }
  .dashboard-grid { gap: 10px; }
  .metric-card { padding: 16px; }
  .panel { border-radius: 13px; }
  .soal-selection-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .soal-dialog { padding: 19px; }
}
@media (max-width: 520px) {
  .topbar { gap: 8px; }
  .merek { gap: 8px; }
  .merek-copy strong { font-size: 15px; }
  .pengguna { gap: 7px; }
  .pengguna-inisial { width: 32px; height: 32px; font-size: 12px; }
  .keluar { font-size: 11px; }
  .konten { padding: 20px 13px 14px; }
  .page-heading { flex-direction: column; margin-bottom: 18px; }
  .page-heading > .tombol { width: 100%; }
  .dashboard-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric-card { padding: 14px 12px; }
  .metric-card strong { font-size: 25px; }
  .teacher-profile-fields { grid-template-columns: 1fr; }
  .teacher-profile-photo-row { align-items: flex-start; flex-direction: column; }
  .statistik { grid-template-columns: 1fr; }
  .statistik > div { min-width: 0; }
  .soal-selection-fields { grid-template-columns: 1fr; }
  .soal-draft-top { align-items: flex-start; flex-direction: column; }
  .kartu { margin: 26px auto; padding: 23px; }
  td.aksi { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
.pengumuman-platform {
  grid-column: 1 / -1;
  margin: 12px 24px 0;
  padding: 10px 14px;
  border: 1px solid #c8ddd6;
  border-radius: 10px;
  background: #edf7f3;
  color: #1f5c50;
  font-size: 14px;
}

.pengumuman-platform.pemeliharaan {
  border-color: #eccd8d;
  background: #fff8df;
  color: #7a5813;
}
