/* ==========================================================================
   ASAJ — Ujian Online · Design System v2
   Teal flat · mobile-first · tanpa framework · redesign v3 (tanpa gradien/kaca)
   --------------------------------------------------------------------------
   1. Tokens          7. Tables
   2. Reset & base    8. Exam view
   3. Layout shell    9. Login & install
   4. Topbar & nav   10. SweetAlert2
   5. Cards & stats  11. Utilities & motion
   6. Buttons/forms  12. Bank Soal
   7. Tables         13. Layar awal ujian
   8. Exam view     14. Responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand ramp (teal) */
  --teal-50:  #eefbf7;
  --teal-100: #d2f5ea;
  --teal-200: #a6e9d6;
  --teal-300: #6fd8bf;
  --teal-400: #3bc0a5;
  --teal-500: #16a68e;
  --teal-600: #0f8a76;
  --teal-700: #0c6f60;
  --teal-800: #0b574c;
  --teal-900: #093f38;

  /* Semantic colours */
  --brand:        var(--teal-600);
  --brand-strong: var(--teal-700);
  --brand-soft:   var(--teal-50);
  --brand-ring:   rgba(15, 138, 118, .22);

  --ok:      #12805c;
  --ok-soft: #d8f7ea;
  --warn:    #b45309;
  --warn-soft:#fdf0d5;
  --danger:  #be123c;
  --danger-soft:#ffe4ea;
  --info:    #1d4ed8;
  --info-soft:#e0e9ff;

  /* Neutrals */
  --bg:      #f5f7fa;
  --surface: #ffffff;
  --surface-2:#f8fafc;
  --line:    #e6ecf2;
  --line-strong: #d3dde7;
  --text:    #10202e;
  --text-soft:#44586b;
  --muted:   #6b7f93;

  /* Radii */
  --r-xs: 8px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 18px;
  --r-xl: 24px;
  --r-full: 999px;

  /* Elevation */
  --sh-1: 0 1px 2px rgba(16, 32, 46, .05);
  --sh-2: 0 2px 8px rgba(16, 32, 46, .06), 0 1px 2px rgba(16, 32, 46, .04);
  --sh-3: 0 1px 3px rgba(16, 32, 46, .08);
  --sh-4: 0 1px 3px rgba(16, 32, 46, .08);
  --sh-brand: none;

  /* Type */
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Code", Consolas, monospace;

  /* Motion */
  --ease: cubic-bezier(.4, 0, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --t-fast: .16s;
  --t: .24s;
  --t-slow: .45s;

  /* Metrics */
  --topbar-h: 60px;
  --sidebar-w: 248px;
  --shell-max: 1140px;
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  margin: 0 0 10px;
  line-height: 1.25;
  letter-spacing: -.02em;
  font-weight: 800;
}
h1 { font-size: 1.6rem; }
h2 { font-size: 1.18rem; font-weight: 750; }
h3 { font-size: 1.02rem; font-weight: 700; }
p  { margin: 0 0 12px; }

a { color: var(--brand-strong); text-decoration: none; transition: color var(--t-fast) var(--ease); }
a:hover { color: var(--teal-500); }

code, kbd, pre { font-family: var(--font-mono); font-size: .86em; }
code {
  background: var(--brand-soft);
  color: var(--teal-800);
  padding: 2px 7px;
  border-radius: var(--r-xs);
  font-weight: 600;
}
pre {
  background: #0f2233;
  color: #d9e8f2;
  padding: 14px 16px;
  border-radius: var(--r-md);
  overflow-x: auto;
  line-height: 1.55;
}
kbd {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-bottom-width: 2px;
  border-radius: 6px;
  padding: 1px 6px;
  font-weight: 700;
  font-size: .78em;
  color: var(--text-soft);
}

hr { border: 0; border-top: 1px solid var(--line); margin: 18px 0; }

::selection { background: var(--teal-200); color: var(--teal-900); }

:focus-visible {
  outline: 3px solid var(--brand-ring);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Scrollbar */
* { scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb {
  background: var(--line-strong);
  border-radius: 99px;
  border: 3px solid transparent;
  background-clip: content-box;
}
*::-webkit-scrollbar-thumb:hover { background: var(--muted); background-clip: content-box; }

/* --------------------------------------------------------------------------
   3. Layout shell
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 22px 18px 64px;
}
.container--narrow { max-width: 760px; }

.page-head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin: 4px 0 22px;
  flex-wrap: wrap;
}
.page-head__icon {
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--teal-700);
  box-shadow: none;
}
.page-head__icon svg { width: 23px; height: 23px; }
.page-head__text { flex: 1 1 260px; min-width: 0; }
.page-head h1 { margin: 0; }
.page-head p { margin: 4px 0 0; color: var(--muted); font-size: .93rem; }

.section-title {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--teal-700);
  margin: 0 0 12px;
}
.section-title::before {
  content: "";
  width: 4px;
  height: 15px;
  border-radius: 99px;
  background: var(--teal-600);
}

/* --------------------------------------------------------------------------
   4. Topbar & navigation
   -------------------------------------------------------------------------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: var(--topbar-h);
  padding: 9px 18px;
  color: #fff;
  background: var(--teal-700);
  box-shadow: 0 1px 3px rgba(16, 32, 46, .12);
}
.topbar > * { position: relative; z-index: 1; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: -.02em;
}
.brand:hover { color: #fff; opacity: .92; }
.brand__mark {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .18);
  border: 1px solid rgba(255, 255, 255, .26);
}
.brand__mark svg { width: 19px; height: 19px; }
.brand__sub {
  display: block;
  font-size: .7rem;
  font-weight: 600;
  opacity: .82;
  letter-spacing: .02em;
}

.topbar__right { display: flex; align-items: center; gap: 10px; }

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 5px 13px 5px 5px;
  border-radius: var(--r-full);
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .22);
  font-size: .84rem;
  font-weight: 600;
}
.user-chip__avatar {
  width: 27px;
  height: 27px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--teal-700);
  font-weight: 800;
  font-size: .76rem;
  flex: none;
}
.user-chip__meta { line-height: 1.25; }
.user-chip__meta small { display: block; opacity: .8; font-weight: 500; font-size: .72rem; }

.icon-btn {
  width: 38px;
  height: 38px;
  flex: none;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: var(--r-sm);
  background: rgba(255, 255,255,.12);
  color: #fff;
  cursor: pointer;
  transition: background var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.icon-btn:hover { background: rgba(255,255,255,.26); transform: translateY(-1px); }
.icon-btn svg { width: 19px; height: 19px; }

.nav-toggle { display: none; }
.nav__close { display: none; }

/* Desktop navigation */
.nav {
  position: sticky;
  top: var(--topbar-h);
  z-index: 55;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 3px rgba(16, 32, 46, .04);
}
.nav__inner {
  width: 100%;
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 6px 18px;
  display: flex;
  gap: 3px;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav__inner::-webkit-scrollbar { display: none; }
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: var(--r-sm);
  color: var(--text-soft);
  font-weight: 600;
  font-size: .9rem;
  white-space: nowrap;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.nav-link svg { width: 17px; height: 17px; opacity: .75; flex: none; }
.nav-link:hover { background: var(--brand-soft); color: var(--teal-700); }
.nav-link.active {
  background: var(--teal-600);
  color: #fff;
  box-shadow: none;
}
.nav-link.active svg { opacity: 1; }

/* Mobile drawer */
.nav-scrim {
  position: fixed;
  inset: 0;
  z-index: 65; /* di atas topbar (60), di bawah drawer (70) */
  background: rgba(9, 32, 45, .45);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t) var(--ease), visibility var(--t) var(--ease);
}
.nav-scrim.is-open { opacity: 1; visibility: visible; }

/* --------------------------------------------------------------------------
   5. Cards, stats, alerts, badges
   -------------------------------------------------------------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: var(--sh-2);
  transition: box-shadow var(--t) var(--ease), transform var(--t) var(--ease), border-color var(--t) var(--ease);
}
.card--hover:hover { box-shadow: var(--sh-3); transform: translateY(-2px); border-color: var(--teal-200); }
.card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.card__head h2, .card__head h3 { margin: 0; }
.card__body > *:last-child { margin-bottom: 0; }

.card-glass {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--sh-2);
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 13px;
  margin-bottom: 18px;
}
.stat {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 16px 18px;
  box-shadow: var(--sh-2);
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.stat:hover { transform: translateY(-3px); box-shadow: var(--sh-3); }
.stat::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--teal-600);
}
.stat__icon {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--brand-soft);
  color: var(--teal-700);
  margin-bottom: 10px;
}
.stat__icon svg { width: 18px; height: 18px; }
.stat b {
  display: block;
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.stat span { color: var(--muted); font-size: .82rem; font-weight: 600; }
.stat--ok::before    { background: var(--ok); }
.stat--ok .stat__icon { background: var(--ok-soft); color: var(--ok); }
.stat--warn::before  { background: var(--warn); }
.stat--warn .stat__icon { background: var(--warn-soft); color: var(--warn); }
.stat--info::before  { background: var(--info); }
.stat--info .stat__icon { background: var(--info-soft); color: var(--info); }
.stat--danger::before{ background: var(--danger); }
.stat--danger .stat__icon { background: var(--danger-soft); color: var(--danger); }

.alert {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  padding: 13px 15px;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  margin: 0 0 14px;
  font-size: .92rem;
  line-height: 1.55;
  animation: slide-down var(--t-slow) var(--ease-out) both;
}
.alert svg { width: 19px; height: 19px; flex: none; margin-top: 1px; }
.alert p { margin: 0; }
.alert p + p { margin-top: 6px; }
.alert-error   { background: var(--danger-soft); border-color: #fecdd6; color: #9f1239; }
.alert-success { background: var(--ok-soft);     border-color: #bbf7d0; color: #065f46; }
.alert-info    { background: var(--info-soft);   border-color: #c7d7fe; color: #1e40af; }
.alert-warning { background: var(--warn-soft);   border-color: #fde68a; color: #92400e; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: var(--r-full);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .02em;
  background: var(--surface-2);
  color: var(--text-soft);
  border: 1px solid var(--line);
  white-space: nowrap;
}
.badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.badge-active    { background: var(--ok-soft);     color: var(--ok);     border-color: #bbf7d0; }
.badge-locked    { background: var(--danger-soft); color: var(--danger); border-color: #fecdd6; }
.badge-submitted { background: var(--info-soft);   color: var(--info);   border-color: #c7d7fe; }
.badge-plain::before { display: none; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: var(--r-full);
  background: var(--brand-soft);
  color: var(--teal-700);
  border: 1px solid var(--teal-200);
  font-size: .8rem;
  font-weight: 600;
}
.chip svg { width: 14px; height: 14px; }

/* --------------------------------------------------------------------------
   6. Buttons & forms
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: .91rem;
  font-weight: 650;
  line-height: 1.3;
  cursor: pointer;
  text-decoration: none;
  box-shadow: var(--sh-1);
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease),
              background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.btn svg { width: 17px; height: 17px; flex: none; }
.btn:hover { transform: translateY(-2px); box-shadow: var(--sh-3); color: var(--text); }
.btn:active { transform: translateY(0); box-shadow: var(--sh-1); }

.btn-primary {
  background: var(--teal-600);
  color: #fff;
  box-shadow: var(--sh-brand);
}
.btn-primary:hover { color: #fff; box-shadow: var(--sh-2); }

.btn-danger { background: var(--danger); color: #fff; box-shadow: none; }
.btn-danger:hover { color: #fff; }

.btn-ghost { background: var(--surface-2); color: var(--text-soft); border-color: var(--line); }
.btn-ghost:hover { background: var(--brand-soft); color: var(--teal-700); border-color: var(--teal-200); }

.btn-outline { background: transparent; border-color: var(--line-strong); color: var(--text-soft); }
.btn-outline:hover { border-color: var(--teal-300); color: var(--teal-700); background: var(--brand-soft); }

.btn-block { width: 100%; }
.btn-sm { padding: 6px 12px; font-size: .83rem; border-radius: var(--r-xs); }
.btn-lg { padding: 13px 24px; font-size: 1rem; border-radius: var(--r-md); }

.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* Forms */
label {
  display: block;
  margin: 0 0 13px;
  font-size: .84rem;
  font-weight: 650;
  color: var(--text-soft);
}
input, select, textarea {
  width: 100%;
  padding: 10px 13px;
  margin-top: 5px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: .93rem;
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
input::placeholder, textarea::placeholder { color: #9fb0c0; }
input:hover, select:hover, textarea:hover { border-color: var(--teal-300); }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--teal-500);
  box-shadow: 0 0 0 4px var(--brand-ring);
  background: #fff;
}
input[type="radio"], input[type="checkbox"] { width: auto; margin: 0; accent-color: var(--teal-600); }
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236b7f93' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}
input[type="file"] {
  padding: 9px 12px;
  background: var(--surface-2);
  border-style: dashed;
  cursor: pointer;
}
input[type="file"]::file-selector-button {
  margin-right: 12px;
  padding: 7px 14px;
  border: 0;
  border-radius: var(--r-xs);
  background: var(--teal-600);
  color: #fff;
  font-family: inherit;
  font-size: .82rem;
  font-weight: 650;
  cursor: pointer;
}
.field-hint { margin: 5px 0 0; font-size: .78rem; color: var(--muted); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 16px; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }

/* --------------------------------------------------------------------------
   7. Tables
   -------------------------------------------------------------------------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  -webkit-overflow-scrolling: touch;
}
table { width: 100%; border-collapse: collapse; font-size: .89rem; }
th, td {
  padding: 11px 14px;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid var(--line);
}
th {
  background: var(--surface-2);
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--muted);
  position: sticky;
  top: 0;
  white-space: nowrap;
}
tbody tr { transition: background var(--t-fast) var(--ease); }
tbody tr:hover { background: var(--teal-50); }
tbody tr:last-child td { border-bottom: 0; }
td .btn-row { flex-wrap: nowrap; }
.td-num { font-variant-numeric: tabular-nums; font-weight: 700; }
.td-name { font-weight: 650; }
.td-sub { display: block; color: var(--muted); font-size: .78rem; font-weight: 500; }

.empty-state {
  padding: 40px 20px;
  text-align: center;
  color: var(--muted);
}
.empty-state svg { width: 40px; height: 40px; opacity: .35; margin-bottom: 10px; }
.empty-state p { margin: 0; font-size: .92rem; }

/* --------------------------------------------------------------------------
   8. Exam view
   -------------------------------------------------------------------------- */
.exam-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 16px;
  color: #fff;
  background: var(--teal-800);
  box-shadow: 0 1px 3px rgba(16, 32, 46, .12);
}
.exam-header__id { min-width: 0; }
.exam-header__id b { display: block; font-size: .93rem; font-weight: 750; }
.exam-header__id small { opacity: .82; font-size: .74rem; }
.exam-header__right { display: flex; align-items: center; gap: 9px; flex: none; }

.timer {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: var(--r-full);
  background: rgba(0, 0, 0, .22);
  border: 1px solid rgba(255, 255, 255, .22);
  font-size: 1.12rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
}
.timer svg { width: 17px; height: 17px; opacity: .85; }
.timer.is-warning { background: rgba(217, 119, 6, .38); animation: pulse-warn 1.6s ease-in-out infinite; }
.timer.is-danger  { background: rgba(220, 38, 38, .45); animation: pulse-warn 1s ease-in-out infinite; }

/* Progress */
.progress {
  height: 7px;
  border-radius: 99px;
  background: var(--line);
  overflow: hidden;
}
.progress__bar {
  height: 100%;
  width: 0;
  border-radius: 99px;
  background: var(--teal-600);
  transition: width var(--t-slow) var(--ease-out);
}
.progress__meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: .78rem;
  font-weight: 650;
  color: var(--muted);
  margin-bottom: 6px;
}

.exam-progress {
  position: sticky;
  top: var(--topbar-h);
  z-index: 40;
  padding: 10px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.exam-progress__row { display: flex; align-items: center; gap: 14px; }
.exam-progress__row .progress { flex: 1; }
.exam-progress__count {
  font-size: .8rem;
  font-weight: 750;
  color: var(--teal-700);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.modul-nav {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-top: 9px;
  scrollbar-width: none;
}
.modul-nav::-webkit-scrollbar { display: none; }
.modul-pill {
  padding: 5px 12px;
  border-radius: var(--r-full);
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--text-soft);
  font-size: .77rem;
  font-weight: 650;
  white-space: nowrap;
  cursor: pointer;
  transition: all var(--t-fast) var(--ease);
}
.modul-pill:hover { border-color: var(--teal-300); color: var(--teal-700); }
.modul-pill.is-active {
  background: var(--teal-600);
  color: #fff;
  border-color: transparent;
}

/* Question navigator */
.exam-nav {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  margin-bottom: 16px;
  overflow: hidden;
}
.exam-nav__toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: none;
  border: 0;
  font-family: inherit;
  font-size: .88rem;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  text-align: left;
}
.exam-nav__toggle svg { width: 18px; height: 18px; transition: transform var(--t) var(--ease); color: var(--muted); }
.exam-nav.is-open .exam-nav__toggle svg:last-child { transform: rotate(180deg); }
.exam-nav__body { display: none; padding: 4px 16px 16px; }
.exam-nav.is-open .exam-nav__body { display: block; animation: slide-down var(--t) var(--ease-out); }
.exam-nav__group + .exam-nav__group { margin-top: 14px; }
.exam-nav__group-label {
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 7px;
}
.exam-nav__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(38px, 1fr)); gap: 6px; }
.nav-bubble {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: var(--r-xs);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--text-soft);
  font-family: inherit;
  font-size: .8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--t-fast) var(--ease);
}
.nav-bubble:hover { border-color: var(--teal-400); color: var(--teal-700); transform: translateY(-1px); }
.nav-bubble.is-answered {
  background: var(--teal-600);
  border-color: transparent;
  color: #fff;
  box-shadow: none;
}
.nav-bubble.is-current { outline: 3px solid var(--brand-ring); outline-offset: 1px; }

/* Question cards */
.modul-heading {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 30px 0 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--line);
  scroll-margin-top: 150px;
}
.modul-heading:first-of-type { margin-top: 12px; }
.modul-heading__num {
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--teal-600);
  color: #fff;
  font-weight: 800;
  font-size: .95rem;
  box-shadow: var(--sh-brand);
}
.modul-heading h2 { margin: 0; font-size: 1.06rem; }
.modul-heading small { display: block; color: var(--muted); font-weight: 600; font-size: .76rem; }

.soal {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 18px;
  margin-bottom: 14px;
  box-shadow: var(--sh-1);
  scroll-margin-top: 160px;
  transition: box-shadow var(--t) var(--ease), border-color var(--t) var(--ease);
}
.soal:hover { box-shadow: var(--sh-2); }
.soal.is-current { border-color: var(--teal-300); box-shadow: 0 0 0 3px var(--brand-ring), var(--sh-2); }
.soal.is-answered .soal__num { background: var(--teal-600); }
.soal__head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.soal__num {
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--muted);
  font-weight: 800;
  font-size: .85rem;
  transition: all var(--t) var(--ease);
}
.soal__text { font-weight: 600; font-size: .97rem; line-height: 1.55; padding-top: 4px; }

.opsi { display: grid; gap: 8px; }
.opsi-item {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin: 0;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface-2);
  font-weight: 500;
  font-size: .92rem;
  color: var(--text);
  cursor: pointer;
  transition: all var(--t-fast) var(--ease);
}
.opsi-item:hover { border-color: var(--teal-300); background: var(--teal-50); transform: translateX(2px); }
.opsi-item input { margin-top: 3px; flex: none; }
.opsi-item__huruf {
  width: 26px;
  height: 26px;
  flex: none;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  font-size: .78rem;
  font-weight: 800;
  color: var(--muted);
  transition: all var(--t-fast) var(--ease);
}
.opsi-item__text { padding-top: 2px; }
.opsi-item.is-checked {
  border-color: var(--teal-500);
  background: var(--teal-50);
  box-shadow: 0 0 0 3px var(--brand-ring);
  color: var(--teal-900);
  font-weight: 600;
}
.opsi-item.is-checked .opsi-item__huruf {
  background: var(--teal-600);
  border-color: transparent;
  color: #fff;
}

/* Submit bar */
.exam-submit {
  position: sticky;
  bottom: 0;
  z-index: 45;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin: 22px -18px -64px;
  padding: 14px 18px calc(14px + env(safe-area-inset-bottom));
  background: var(--surface);
  border-top: 1px solid var(--line);
  box-shadow: 0 -1px 3px rgba(16, 32, 46, .06);
}
.exam-submit__info { font-size: .85rem; color: var(--muted); font-weight: 600; }
.exam-submit__info b { color: var(--teal-700); }

/* --------------------------------------------------------------------------
   9. Login & install pages
   -------------------------------------------------------------------------- */
.auth-wrap {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: stretch;
}
.auth-hero {
  position: relative;
  overflow: hidden;
  padding: 52px 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #fff;
  background: var(--teal-800);
}
.auth-hero > * { position: relative; z-index: 1; }
.auth-hero__brand { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 1.05rem; }
.auth-hero__brand .brand__mark { width: 38px; height: 38px; }
.auth-hero__body h1 {
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  line-height: 1.14;
  margin-bottom: 14px;
  letter-spacing: -.03em;
}
.auth-hero__body p { font-size: 1rem; opacity: .9; max-width: 42ch; }
.auth-hero__list { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 11px; }
.auth-hero__list li { display: flex; align-items: flex-start; gap: 10px; font-size: .92rem; opacity: .94; }
.auth-hero__list svg { width: 19px; height: 19px; flex: none; margin-top: 1px; }
.auth-hero__foot { font-size: .8rem; opacity: .78; }

.auth-panel {
  display: grid;
  place-items: center;
  padding: 40px 24px;
  background: var(--surface);
}
.auth-card { width: 100%; max-width: 420px; }
.auth-card h1 { font-size: 1.5rem; margin-bottom: 4px; }
.auth-card__sub { color: var(--muted); font-size: .9rem; margin-bottom: 22px; }

.role-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  margin-bottom: 18px;
}
.role-toggle label {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px;
  border-radius: var(--r-sm);
  cursor: pointer;
  font-size: .88rem;
  color: var(--muted);
  transition: all var(--t-fast) var(--ease);
}
.role-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.role-toggle svg { width: 17px; height: 17px; }
.role-toggle input:checked + span { color: #fff; }
.role-toggle label:has(input:checked) {
  background: var(--teal-600);
  color: #fff;
  box-shadow: var(--sh-brand);
}
.role-toggle label > span { display: inline-flex; align-items: center; gap: 7px; }

.install-wrap { max-width: 720px; margin: 0 auto; padding: 40px 18px 70px; }
.install-hero {
  text-align: center;
  margin-bottom: 24px;
}
.install-hero .brand__mark {
  width: 56px; height: 56px;
  border-radius: 17px;
  margin: 0 auto 14px;
  display: grid; place-items: center;
  background: var(--teal-600);
  color: #fff;
  box-shadow: var(--sh-brand);
}
.install-hero .brand__mark svg { width: 27px; height: 27px; }
.install-steps { display: grid; gap: 4px; counter-reset: step; }
.install-step { position: relative; padding-left: 40px; margin-bottom: 20px; }
.install-step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0; top: -2px;
  width: 27px; height: 27px;
  border-radius: 9px;
  display: grid; place-items: center;
  background: var(--brand-soft);
  color: var(--teal-700);
  font-weight: 800;
  font-size: .8rem;
}

/* --------------------------------------------------------------------------
   10. SweetAlert2 theming (menyamakan modal dengan brand)
   -------------------------------------------------------------------------- */
.swal2-popup {
  border-radius: var(--r-lg) !important;
  font-family: var(--font) !important;
  box-shadow: var(--sh-4) !important;
  padding: 0 0 1.25em !important;
}
.swal2-title {
  font-family: var(--font) !important;
  font-weight: 800 !important;
  font-size: 1.5rem !important;
  color: var(--text) !important;
  letter-spacing: -.02em;
}
.swal2-html-container {
  font-family: var(--font) !important;
  font-size: .95rem !important;
  color: var(--text-soft) !important;
  line-height: 1.6;
}
.swal2-confirm, .swal2-cancel {
  font-family: var(--font) !important;
  font-weight: 700 !important;
  border-radius: var(--r-sm) !important;
  margin: 4px !important;
}
.swal2-confirm {
  background: var(--teal-600) !important;
  box-shadow: var(--sh-brand) !important;
}
.swal2-cancel {
  background: var(--surface-2) !important;
  color: var(--text-soft) !important;
  border: 1px solid var(--line-strong) !important;
  box-shadow: none !important;
}
.swal2-input, .swal2-textarea {
  font-family: var(--font) !important;
  font-size: .95rem !important;
  border-radius: var(--r-sm) !important;
  border: 1px solid var(--line-strong) !important;
}
.swal2-input:focus, .swal2-textarea:focus {
  border-color: var(--teal-500) !important;
  box-shadow: 0 0 0 4px var(--brand-ring) !important;
}
.swal2-input::placeholder { color: #9fb0c0; }
/* Select di dalam SweetAlert2: kembalikan panah dropdown yang hilang karena
   aturan `background` bawaan Swal menimpa background-image global situs. */
.swal2-select {
  appearance: none !important;
  padding-right: 2.4em !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236b7f93' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right .75em center !important;
}
.swal2-icon {
  border-width: 0 !important;
  width: 52px !important;
  height: 52px !important;
  /* 5em = 52px; konten ikon 3.75em = 39px agar pas di dalam lingkaran. */
  font-size: 10.4px !important;
}
.swal2-icon.swal2-warning { color: var(--warn)   !important; background: var(--warn-soft)   !important; }
.swal2-icon.swal2-success { color: var(--ok)     !important; background: var(--ok-soft)     !important; }
.swal2-icon.swal2-info    { color: var(--info)   !important; background: var(--info-soft)   !important; }
.swal2-icon.swal2-error   { color: var(--danger) !important; background: var(--danger-soft) !important; }
.swal2-validation-message { color: var(--danger) !important; font-family: var(--font) !important; }

/* Tombol "Chat WhatsApp Guru" di dalam modal terkunci */
.swal-wa-link {
  display: inline-block;
  margin-top: 10px;
  padding: 9px 18px;
  border-radius: var(--r-sm);
  border: 1px solid var(--teal-300);
  background: var(--brand-soft);
  color: var(--teal-700);
  font-family: var(--font);
  font-weight: 700;
  font-size: .9rem;
  text-decoration: none;
  transition: all var(--t-fast) var(--ease);
}
.swal-wa-link:hover { background: var(--teal-100); color: var(--teal-800); }

/* --------------------------------------------------------------------------
   11. Utilities & motion
   -------------------------------------------------------------------------- */
.muted { color: var(--muted); }
.small { font-size: .82rem; }
.text-center { text-align: center; }
.text-right  { text-align: right; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.w-full { width: 100%; }
.flex { display: flex; }
.items-center { align-items: center; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 14px; }
.wrap { flex-wrap: wrap; }
.justify-between { justify-content: space-between; }
.nums { font-variant-numeric: tabular-nums; }
.hidden { display: none !important; }
[hidden] { display: none !important; }
.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;
}

.divider { height: 1px; background: var(--line); border: 0; margin: 18px 0; }

.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: .88rem; }
.kv dt { color: var(--muted); font-weight: 600; }
.kv dd { margin: 0; font-weight: 650; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(14px); }
.reveal.is-visible {
  opacity: 1;
  transform: none;
  transition: opacity .5s var(--ease-out), transform .5s var(--ease-out);
}

@keyframes slide-down {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: none; }
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}
@keyframes pulse-warn {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
  50%      { box-shadow: 0 0 0 6px rgba(255, 255, 255, .18); }
}
@keyframes spin { to { transform: rotate(360deg); } }

.spinner {
  width: 15px; height: 15px;
  border: 2px solid rgba(255, 255, 255, .35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
  display: inline-block;
}

/* --------------------------------------------------------------------------
   12. Bank Soal (guru)
   -------------------------------------------------------------------------- */
.opsi-preview {
  display: grid;
  gap: 4px;
  margin-top: 10px;
}
.opsi-preview__item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 6px 10px;
  border-radius: var(--r-xs);
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-size: .84rem;
  line-height: 1.45;
  color: var(--text-soft);
}
.opsi-preview__item.is-key {
  background: var(--ok-soft);
  border-color: #bbf7d0;
  color: var(--ok);
  font-weight: 600;
}
.opsi-preview__huruf {
  flex: none;
  width: 17px;
  font-weight: 800;
  color: var(--muted);
}
.opsi-preview__item.is-key .opsi-preview__huruf { color: var(--ok); }

/* Editor soal: form + pratinjau */
.soal-edit {
  display: grid;
  grid-template-columns: 1.3fr .9fr;
  gap: 16px;
  align-items: start;
}
.soal-edit > form { margin-bottom: 0; }
.preview-sticky { position: sticky; top: 78px; }

.opsi-edit {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 8px;
  padding: 0;
  font-weight: 400;
}
.opsi-edit input[type="radio"] { flex: none; margin: 0; accent-color: var(--teal-600); }
.opsi-edit__huruf {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  font-size: .78rem;
  font-weight: 800;
  color: var(--muted);
}
.opsi-edit input[type="text"] { margin-top: 0; flex: 1 1 auto; min-width: 0; width: auto; }
.opsi-edit:has(input[type="radio"]:checked) .opsi-edit__huruf {
  background: var(--teal-600);
  border-color: transparent;
  color: #fff;
}

@media (max-width: 980px) {
  .soal-edit { grid-template-columns: 1fr; }
  .preview-sticky { position: static; }
}

/* Checkbox bergaya kartu (pengaturan & penandaan soal latihan) */
.ceksetelan, .ceklatihan {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface-2);
  font-weight: 400;
  cursor: pointer;
  transition: all var(--t-fast) var(--ease);
}
.ceksetelan:hover, .ceklatihan:hover { border-color: var(--teal-300); background: var(--teal-50); }
.ceksetelan:has(input:checked), .ceklatihan:has(input:checked) {
  border-color: var(--teal-400);
  background: var(--teal-50);
}
.ceksetelan input, .ceklatihan input { flex: none; margin: 2px 0 0; accent-color: var(--teal-600); }
.ceksetelan strong, .ceklatihan strong { display: block; font-weight: 650; color: var(--text); }
.ceklatihan { margin-top: 16px; }

/* Badge modul pada kartu soal */
.soal__modul {
  display: block;
  margin-top: 5px;
  font-size: .74rem;
  font-weight: 600;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   13. Layar awal ujian (splash) & container ujian
   -------------------------------------------------------------------------- */
/* Container halaman ujian dibuat lebih lebar agar soal memenuhi layar. */
.container--exam { max-width: 1320px; }

.exam-splash {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 20px;
  background: var(--teal-900);
  animation: fade-in .25s var(--ease-out) both;
}
.exam-splash.is-hiding { animation: fade-out .3s var(--ease) forwards; pointer-events: none; }
.exam-splash__card {
  width: 100%;
  max-width: 520px;
  text-align: center;
  color: #fff;
  background: var(--teal-800);
  border: 1px solid var(--teal-700);
  border-radius: var(--r-xl);
  padding: 32px 28px;
  box-shadow: var(--sh-4);
}
.exam-splash__mark {
  width: 62px;
  height: 62px;
  margin: 0 auto 16px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: var(--teal-600);
  border: 1px solid rgba(255, 255, 255, .22);
  box-shadow: none;
}
.exam-splash__card h2 { color: #fff; font-size: 1.5rem; margin-bottom: 6px; }
.exam-splash__card > .muted { color: rgba(255, 255, 255, .78); margin-bottom: 20px; }
.exam-splash__list {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: grid;
  gap: 11px;
  text-align: left;
}
.exam-splash__list li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: .89rem;
  color: rgba(255, 255, 255, .9);
  line-height: 1.5;
}
.exam-splash__list svg { flex: none; margin-top: 2px; opacity: .85; }
.exam-splash__btn { width: 100%; font-size: 1.05rem; padding: 14px 24px; }
.exam-splash__hint { margin: 14px 0 0; color: rgba(255, 255, 255, .7); }
.exam-splash__hint kbd { background: rgba(255, 255, 255, .16); color: #fff; border-color: rgba(255, 255, 255, .25); }
.inline-icon { display: inline-flex; vertical-align: -2px; }

.exam-fswarn {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  padding: 11px 16px;
  border-radius: var(--r-md);
  background: var(--warn-soft);
  border: 1px solid #fde68a;
  color: #92400e;
  font-size: .87rem;
  font-weight: 600;
  box-shadow: var(--sh-3);
  animation: fade-up .3s var(--ease-out) both;
}
.exam-fswarn svg { flex: none; }

@keyframes fade-in  { from { opacity: 0; } to { opacity: 1; } }
@keyframes fade-out { from { opacity: 1; } to { opacity: 0; } }

/* --------------------------------------------------------------------------
   14. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 980px) {
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-hero { padding: 34px 26px; }
  .auth-hero__body h1 { font-size: 1.8rem; }
  .auth-hero__list { display: none; }
  .auth-hero__foot { margin-top: 18px; }
}

@media (max-width: 860px) {
  /* Navigation becomes an off-canvas drawer */
  .nav-toggle { display: grid; }
  .nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(290px, 84vw);
    top: 0;
    z-index: 70; /* di atas topbar (60) agar drawer menutupi penuh */
    border-bottom: 0;
    border-left: 1px solid var(--line);
    transform: translateX(102%);
    transition: transform var(--t-slow) var(--ease-out);
    box-shadow: var(--sh-4);
    overflow-y: auto;
    background: var(--surface);
  }
  .nav.is-open { transform: none; }
  .nav__inner {
    flex-direction: column;
    gap: 4px;
    padding: 74px 14px 24px;
    max-width: none;
    overflow: visible;
  }
  .nav-link { padding: 12px 14px; font-size: .95rem; }
  .nav__close {
    position: absolute;
    top: 14px; right: 14px;
    width: 36px; height: 36px;
    display: grid; place-items: center;
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    background: var(--surface);
    color: var(--muted);
    cursor: pointer;
  }
  .nav__close svg { width: 18px; height: 18px; }
}

@media (max-width: 720px) {
  body { font-size: 14.5px; }
  .container { padding: 16px 14px 60px; }
  h1 { font-size: 1.35rem; }
  h2 { font-size: 1.1rem; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .page-head { gap: 12px; margin-bottom: 18px; }
  .page-head__icon { width: 40px; height: 40px; border-radius: 12px; }
  .page-head__icon svg { width: 20px; height: 20px; }
  .card { padding: 16px; border-radius: var(--r-md); }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .stat { padding: 13px 14px; }
  .stat b { font-size: 1.42rem; }
  .user-chip__meta { display: none; }
  .user-chip { padding: 4px; }
  .exam-header { padding: 8px 12px; }
  .exam-header__id b { font-size: .84rem; }
  .exam-header__id small { font-size: .68rem; }
  .timer { font-size: 1rem; padding: 5px 11px; }
  .exam-progress { padding: 9px 12px; }
  .soal { padding: 14px; }
  .soal__head { gap: 10px; }
  .soal__num { width: 28px; height: 28px; border-radius: 9px; font-size: .78rem; }
  .soal__text { font-size: .93rem; }
  .opsi-item { padding: 10px 12px; font-size: .89rem; }
  .exam-nav__grid { grid-template-columns: repeat(auto-fill, minmax(36px, 1fr)); }
  .exam-submit { margin: 20px -14px -60px; padding: 12px 14px calc(12px + env(safe-area-inset-bottom)); }
  .exam-submit__info { font-size: .78rem; }
  .btn { padding: 10px 15px; }
  .btn-block { width: 100%; }
  table { font-size: .85rem; }
  th, td { padding: 9px 11px; }
  .install-wrap { padding: 26px 14px 50px; }
}

@media (max-width: 420px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .role-toggle { grid-template-columns: 1fr; }
  .btn-row { flex-direction: column; }
  .btn-row .btn { width: 100%; }
}

/* --------------------------------------------------------------------------
   14b. Sidebar layout (desktop) — menu utama di kiri agar semua item terlihat
   -------------------------------------------------------------------------- */
@media (min-width: 861px) {
  body.app-body {
    display: grid;
    grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
    grid-template-rows: var(--topbar-h) minmax(0, 1fr);
    grid-template-areas:
      "topbar topbar"
      "sidebar main";
    min-height: 100vh;
  }
  body.app-body > .topbar {
    grid-area: topbar;
    position: sticky;
    top: 0;
  }
  body.app-body > .nav {
    grid-area: sidebar;
    position: sticky;
    top: var(--topbar-h);
    align-self: start;
    height: calc(100vh - var(--topbar-h));
    border-bottom: 0;
    border-right: 1px solid var(--line);
    box-shadow: none;
    overflow-y: auto;
    overflow-x: hidden;
  }
  body.app-body > .nav .nav__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 3px;
    padding: 16px 12px 24px;
    max-width: none;
    margin: 0;
    overflow: visible;
  }
  body.app-body > .nav .nav__inner::before {
    content: "Menu";
    display: block;
    padding: 0 14px 9px;
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
  }
  body.app-body > .nav .nav-link {
    display: flex;
    width: 100%;
    justify-content: flex-start;
    padding: 10px 14px;
    font-size: .92rem;
    white-space: normal;
  }
  body.app-body > .nav .nav-link svg { opacity: .7; }
  body.app-body > .nav .nav-link.active svg { opacity: 1; }
  body.app-body > .container {
    grid-area: main;
    width: 100%;
    max-width: var(--shell-max);
    margin: 0 auto;
  }
}

/* Motion & print */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .topbar, .nav, .exam-progress, .exam-submit, .btn, .icon-btn { display: none !important; }
  body { background: #fff; }
  .card, .soal { box-shadow: none; border: 1px solid #ddd; break-inside: avoid; }
}
