/*
 * LMS Natuna — sistem desain v4 (rilis aplikasi 1.5.0)
 * Tema "Laut Natuna": biru laut dalam, hijau karang, kuning pelampung sebagai penanda.
 * Seluruh aset lokal (tanpa CDN). Token warna semantik + mode gelap terpilih.
 */

/* ------------------------------------------------------------------ FONT */
@font-face { font-family: "Inter"; src: url("fonts/inter-400.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-600.woff") format("woff"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-700.woff") format("woff"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Inter Display"; src: url("fonts/inter-display-700.woff") format("woff"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Inter Display"; src: url("fonts/inter-display-800.woff") format("woff"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Lora"; src: url("fonts/lora-var.woff") format("woff"); font-weight: 400 700; font-display: swap; }

/* ------------------------------------------------------------------ TOKEN */
:root {
  /* primitif */
  --sea-950: #072A38; --sea-900: #0B3B4F; --sea-700: #0E5A6E; --sea-100: #DCEBF0;
  --reef-700: #0A645E; --reef-600: #0E7C74; --reef-400: #2BB3A3; --reef-100: #CDEDE8; --reef-50: #E8F6F3;
  --buoy-500: #F2B705; --buoy-600: #D9A300; --buoy-100: #FFF3C4;
  --red-700: #B42318; --red-50: #FDECEA; --amber-800: #7A4E00; --amber-50: #FFF4D6;
  --green-700: #0F7B4B; --green-50: #E7F5EE; --blue-700: #0B5CAD; --blue-50: #E8F1FB;
  --gray-0: #FFFFFF; --gray-50: #F3F6F7; --gray-100: #E9EFF1; --gray-200: #D9E2E6; --gray-500: #5B6F7B; --gray-700: #3C5260; --gray-900: #14262F;

  /* semantik */
  --bg-page: var(--gray-50);
  --bg-surface: var(--gray-0);
  --bg-sunken: #EEF3F4;
  --bg-brand: var(--sea-900);
  --text: var(--gray-900);
  --text-2: var(--gray-700);
  --text-muted: var(--gray-500);
  --text-on-brand: #F2F8FA;
  --border: var(--gray-200);
  --border-soft: var(--gray-100);
  --interactive: var(--reef-600);
  --interactive-hover: var(--reef-700);
  --interactive-soft: var(--reef-50);
  --on-interactive: #FFFFFF;
  --link: #0A6A64;
  --accent: var(--buoy-500);
  --accent-soft: var(--buoy-100);
  --focus: #1F5FD0;
  --ok: var(--green-700); --ok-soft: var(--green-50);
  --warn: var(--amber-800); --warn-soft: var(--amber-50);
  --danger: var(--red-700); --danger-soft: var(--red-50);
  --info: var(--blue-700); --info-soft: var(--blue-50);

  /* tipografi (skala 1.25) */
  --font-ui: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Inter Display", "Inter", system-ui, sans-serif;
  --font-serif: "Lora", Georgia, "Times New Roman", serif;
  --fs-xs: .8rem; --fs-sm: .875rem; --fs-md: 1rem; --fs-lg: 1.25rem; --fs-xl: 1.5625rem; --fs-2xl: 1.953rem; --fs-3xl: clamp(2rem, 1.4rem + 2.2vw, 3.05rem);

  /* ruang (dasar 4) */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;
  --r-sm: 8px; --r-md: 12px; --r-lg: 16px; --r-xl: 22px; --r-pill: 999px;
  --shadow-1: 0 1px 2px rgba(11, 59, 79, .06), 0 2px 8px rgba(11, 59, 79, .05);
  --shadow-2: 0 10px 30px -12px rgba(11, 59, 79, .28);
  --wrap: 1180px;
  --header-h: 68px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg-page: #0A1A21; --bg-surface: #10242D; --bg-sunken: #0D1F27; --bg-brand: #0B2F3E;
    --text: #E6EEF1; --text-2: #C3D3DA; --text-muted: #9DB2BC; --text-on-brand: #F2F8FA;
    --border: #24414C; --border-soft: #1B3540;
    --interactive: #5ED0C2; --interactive-hover: #84DED3; --interactive-soft: #123A3A; --on-interactive: #062A27; --link: #7FDCCF;
    --accent-soft: #3A3210; --focus: #8FC3FF;
    --ok: #6BD3A0; --ok-soft: #12352A; --warn: #F5C860; --warn-soft: #3A2E0F; --danger: #FF9C8F; --danger-soft: #3D1A17; --info: #8FC3FF; --info-soft: #132B45;
    --shadow-1: 0 1px 2px rgba(0, 0, 0, .3); --shadow-2: 0 12px 30px -12px rgba(0, 0, 0, .6);
  }
}
:root[data-theme="dark"] {
  --bg-page: #0A1A21; --bg-surface: #10242D; --bg-sunken: #0D1F27; --bg-brand: #0B2F3E;
  --text: #E6EEF1; --text-2: #C3D3DA; --text-muted: #9DB2BC; --border: #24414C; --border-soft: #1B3540;
  --interactive: #5ED0C2; --interactive-hover: #84DED3; --interactive-soft: #123A3A; --on-interactive: #062A27; --link: #7FDCCF;
  --accent-soft: #3A3210; --focus: #8FC3FF;
  --ok: #6BD3A0; --ok-soft: #12352A; --warn: #F5C860; --warn-soft: #3A2E0F; --danger: #FF9C8F; --danger-soft: #3D1A17; --info: #8FC3FF; --info-soft: #132B45;
}

/* ------------------------------------------------------------------ DASAR */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--bg-page); color: var(--text); font: 400 var(--fs-md)/1.6 var(--font-ui); font-feature-settings: "cv11", "ss01"; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
a { color: var(--link); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.18; letter-spacing: -.02em; margin: 0 0 var(--s3); color: var(--text); text-wrap: balance; }
h1 { font-size: var(--fs-3xl); font-weight: 800; letter-spacing: -.035em; }
h2 { font-size: var(--fs-xl); font-weight: 700; }
h3 { font-size: var(--fs-lg); font-weight: 700; }
p { margin: 0 0 var(--s4); }
code { font: 600 .92em/1 ui-monospace, "Cascadia Code", Consolas, monospace; background: var(--bg-sunken); padding: 2px 6px; border-radius: 6px; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--reef-100); color: var(--gray-900); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.skip-link { position: absolute; left: var(--s4); top: var(--s2); z-index: 100; padding: var(--s2) var(--s4); background: var(--bg-surface); color: var(--text); border: 2px solid var(--interactive); border-radius: var(--r-sm); font-weight: 700; transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--s4); }
@media (min-width: 720px) { .wrap { padding-inline: var(--s5); } }
.main { flex: 1; padding-bottom: var(--s8); }
.main:focus { outline: none; }
.muted { color: var(--text-muted); }
.small { font-size: var(--fs-sm); }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.lead { font-size: 1.125rem; color: var(--text-2); max-width: 68ch; }
.mono-num { font-variant-numeric: tabular-nums; letter-spacing: .01em; word-break: break-all; }
.optional { font-weight: 400; color: var(--text-muted); }
.ok-text { color: var(--ok); } .warn-text { color: var(--warn); } .next-text { color: var(--interactive); font-weight: 600; }
.ic { width: 1.25em; height: 1.25em; flex: none; vertical-align: -.25em; }
.ic-sm { width: 1.05em; height: 1.05em; } .ic-xs { width: .95em; height: .95em; vertical-align: -.15em; }
mark { background: var(--accent-soft); color: inherit; padding: 0 2px; border-radius: 3px; }
hr { border: 0; border-top: 1px solid var(--border); margin: var(--s2) 0; }

/* ------------------------------------------------------------------ TOMBOL */
.btn { --b: transparent; display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); min-height: 44px; padding: 10px 18px; border-radius: 10px; border: 1px solid var(--b); font-weight: 600; font-size: var(--fs-md); line-height: 1.2; text-decoration: none; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s; white-space: nowrap; }
.btn:hover { text-decoration: none; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--interactive); color: var(--on-interactive); }
.btn-primary:hover:not(:disabled) { background: var(--interactive-hover); }
.btn-secondary { background: var(--sea-900); color: #fff; }
.btn-secondary:hover { background: var(--sea-950); }
.btn-ghost { background: var(--bg-surface); color: var(--text); --b: var(--border); }
.btn-ghost:hover { --b: var(--interactive); color: var(--interactive); }
.btn-buoy { background: var(--buoy-500); color: var(--gray-900); }
.btn-buoy:hover { background: var(--buoy-600); }
.btn-link { background: none; border: 0; color: var(--link); text-decoration: underline; padding-inline: 4px; min-height: 36px; font-weight: 500; }
.btn-sm { min-height: 36px; padding: 6px 12px; font-size: var(--fs-sm); border-radius: 8px; }
.btn-lg { min-height: 52px; padding: 12px 22px; font-size: 1.0625rem; }
.btn-block { width: 100%; }
.btn.is-loading { pointer-events: none; opacity: .8; }
.btn.is-loading::before { content: ""; width: 1em; height: 1em; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; }
.btn-row.center { justify-content: center; }
.btn-col { display: grid; gap: var(--s2); }
.link-strong { display: inline-flex; align-items: center; gap: 2px; font-weight: 600; text-decoration: none; }
.link-strong:hover { text-decoration: underline; }

/* ------------------------------------------------------------------ HEADER */
.site-header { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg-surface) 94%, transparent); backdrop-filter: saturate(140%) blur(8px); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; gap: var(--s4); min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: var(--s3); text-decoration: none; color: var(--text); min-width: 0; }
.brand-mark { width: 38px; height: 38px; flex: none; }
.brand-text { display: grid; line-height: 1.15; }
.brand-text strong { font-family: var(--font-display); font-size: 1.125rem; letter-spacing: -.02em; }
.brand-text small { font-size: .75rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-invert { color: var(--text-on-brand); } .brand-invert small { color: rgba(242, 248, 250, .72); }
.nav-toggle { margin-left: auto; position: relative; }
.nav-toggle > summary { list-style: none; display: inline-flex; align-items: center; gap: var(--s2); min-height: 44px; padding: 0 14px; border: 1px solid var(--border); border-radius: 10px; cursor: pointer; font-weight: 600; }
.nav-toggle > summary::-webkit-details-marker, .user-menu > summary::-webkit-details-marker, .row-menu > summary::-webkit-details-marker, .faq > summary::-webkit-details-marker { display: none; }
.primary-nav { display: grid; gap: 2px; position: absolute; right: 0; top: calc(100% + 8px); width: min(300px, calc(100vw - 32px)); padding: var(--s2); background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-2); }
.nav-link { display: flex; align-items: center; gap: var(--s3); min-height: 44px; padding: 8px 12px; border-radius: 10px; color: var(--text-2); font-weight: 600; text-decoration: none; }
.nav-link:hover { background: var(--bg-sunken); color: var(--text); }
.nav-link.is-active { background: var(--interactive-soft); color: var(--interactive); }
.nav-cta { margin-top: var(--s2); }
.nav-desktop { display: none; }
@media (min-width: 960px) {
  .nav-toggle { display: none; }
  .nav-desktop { display: flex; position: static; width: auto; padding: 0; border: 0; box-shadow: none; background: none; margin-left: auto; gap: 2px; align-items: center; }
  .nav-desktop .nav-link { padding: 8px 12px; }
  .nav-desktop .nav-link .ic { display: none; }
  .nav-desktop .nav-cta { margin: 0 0 0 var(--s2); }
}
.user-menu { position: relative; }
.user-menu > summary { list-style: none; display: inline-flex; align-items: center; gap: var(--s2); min-height: 44px; padding: 4px 10px 4px 4px; border: 1px solid var(--border); border-radius: var(--r-pill); cursor: pointer; }
.user-menu-name { font-weight: 600; max-width: 12ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 520px) { .user-menu-name { display: none; } .brand-text small { display: none; } }
.avatar { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--sea-900); color: #fff; font-weight: 700; font-size: .8rem; letter-spacing: .02em; }
.avatar-lg { width: 64px; height: 64px; font-size: 1.25rem; }
.menu-panel { position: absolute; right: 0; top: calc(100% + 8px); z-index: 40; min-width: 250px; padding: var(--s2); background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-2); display: grid; gap: 2px; }
.menu-panel a, .menu-panel button { display: flex; align-items: center; gap: var(--s3); width: 100%; min-height: 42px; padding: 8px 12px; border: 0; border-radius: 8px; background: none; color: var(--text); text-decoration: none; font-weight: 500; text-align: left; cursor: pointer; }
.menu-panel a:hover, .menu-panel button:hover { background: var(--bg-sunken); }
.menu-panel form { margin: 0; }
.menu-panel .menu-danger { color: var(--danger); }
.menu-head { padding: 8px 12px 10px; border-bottom: 1px solid var(--border-soft); margin-bottom: 4px; display: grid; }
.menu-head span { font-size: var(--fs-sm); color: var(--text-muted); }

/* ------------------------------------------------------------------ BANNER & ALERT */
.banner { border-bottom: 1px solid var(--border); }
.banner-inner { display: flex; gap: var(--s3); align-items: flex-start; padding-block: var(--s3); font-size: var(--fs-sm); }
.banner-inner p { margin: 0; }
.banner-inner .ic { margin-top: 2px; }
.banner-warning { background: var(--warn-soft); color: var(--text); } .banner-warning .ic { color: var(--warn); }
.banner-danger { background: var(--danger-soft); } .banner-danger .ic { color: var(--danger); }
.flash-stack { display: grid; gap: var(--s2); margin-top: var(--s4); }
.alert { display: flex; gap: var(--s3); align-items: flex-start; padding: 12px 14px; border-radius: var(--r-md); border: 1px solid; font-size: var(--fs-sm); margin-bottom: var(--s4); }
.alert > div { flex: 1; } .alert p:last-child { margin: 0; }
.alert > .ic { margin-top: 1px; }
.alert-success { background: var(--ok-soft); border-color: color-mix(in srgb, var(--ok) 35%, transparent); } .alert-success > .ic { color: var(--ok); }
.alert-danger { background: var(--danger-soft); border-color: color-mix(in srgb, var(--danger) 35%, transparent); } .alert-danger > .ic { color: var(--danger); }
.alert-warning { background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 35%, transparent); } .alert-warning > .ic { color: var(--warn); }
.alert-info { background: var(--info-soft); border-color: color-mix(in srgb, var(--info) 30%, transparent); } .alert-info > .ic { color: var(--info); }
.alert-close { background: none; border: 0; padding: 2px; border-radius: 6px; cursor: pointer; color: var(--text-muted); min-width: 32px; min-height: 32px; }

/* ------------------------------------------------------------------ KOMPONEN UMUM */
.page-head { padding-top: var(--s5); padding-bottom: var(--s4); }
.page-head h1 { margin-bottom: var(--s2); }
.breadcrumb ol { list-style: none; margin: 0 0 var(--s3); padding: 0; display: flex; flex-wrap: wrap; gap: 4px; font-size: var(--fs-sm); color: var(--text-muted); }
.breadcrumb li { display: inline-flex; align-items: center; gap: 4px; }
.breadcrumb a { color: var(--text-2); text-decoration: none; } .breadcrumb a:hover { text-decoration: underline; color: var(--link); }
.breadcrumb [aria-current] { color: var(--text); font-weight: 600; max-width: 40ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.section { padding-block: var(--s7); }
.section-tint { background: var(--bg-surface); border-block: 1px solid var(--border); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s4); flex-wrap: wrap; margin-bottom: var(--s4); }
.section-head h2 { margin: 0; }
.panel { background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--s5); margin-bottom: var(--s4); }
.panel-lg { padding: clamp(var(--s5), 4vw, var(--s7)); }
.panel-lg h1 { font-size: var(--fs-2xl); margin-top: var(--s3); }
.panel-quiet { background: var(--bg-sunken); border-color: transparent; }
.panel-narrow { max-width: 560px; }
.panel-title { font-size: 1.0625rem; margin-bottom: var(--s3); letter-spacing: -.01em; }
.narrow { max-width: 820px; padding-top: var(--s5); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--r-pill); background: var(--bg-sunken); color: var(--text-2); font-size: var(--fs-xs); font-weight: 600; white-space: nowrap; }
.tags { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.tag { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 6px; font-size: .75rem; font-weight: 700; letter-spacing: .01em; }
.tag-sea { background: var(--sea-100); color: var(--sea-900); }
.tag-reef { background: var(--reef-100); color: var(--reef-700); }
.tag-buoy { background: var(--buoy-100); color: #5A4100; }
.tag-neutral { background: var(--bg-sunken); color: var(--text-2); }
.tag-outline { border: 1px solid var(--border); color: var(--text-2); font-weight: 600; }
:root[data-theme="dark"] .tag-sea, :root[data-theme="dark"] .tag-reef, :root[data-theme="dark"] .tag-buoy { filter: brightness(.9); }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: var(--r-pill); font-size: .75rem; font-weight: 700; white-space: nowrap; }
.badge-ok { background: var(--ok-soft); color: var(--ok); } .badge-warn { background: var(--warn-soft); color: var(--warn); } .badge-danger { background: var(--danger-soft); color: var(--danger); }
.badge-muted { background: var(--bg-sunken); color: var(--text-2); } .badge-sea { background: var(--sea-100); color: var(--sea-900); } .badge-buoy { background: var(--buoy-100); color: #5A4100; }
.meter { height: 10px; border-radius: var(--r-pill); background: var(--bg-sunken); overflow: hidden; box-shadow: inset 0 0 0 1px var(--border-soft); }
.meter > span { display: block; height: 100%; background: var(--interactive); border-radius: inherit; min-width: 0; transition: width .4s ease; }
.meter-thin { height: 6px; }
.course-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 12px; background: var(--interactive-soft); color: var(--interactive); }
.course-icon .ic { width: 24px; height: 24px; }
.course-icon-lg { width: 56px; height: 56px; border-radius: 14px; } .course-icon-lg .ic { width: 28px; height: 28px; }
.facts { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--text-2); font-size: var(--fs-sm); }
.facts li { display: inline-flex; align-items: center; gap: 6px; }
.facts-lg { font-size: var(--fs-md); gap: 8px 22px; margin-top: var(--s4); }
.kv { display: grid; gap: 0; margin: var(--s4) 0; }
.kv > div { display: grid; grid-template-columns: minmax(130px, 34%) 1fr; gap: var(--s4); padding: 10px 0; border-bottom: 1px solid var(--border-soft); }
.kv dt { color: var(--text-muted); font-size: var(--fs-sm); }
.kv dd { margin: 0; font-weight: 600; }
.kv dd small { font-weight: 400; color: var(--text-muted); display: block; }
.kv-compact > div { padding: 6px 0; }
@media (max-width: 520px) { .kv > div { grid-template-columns: 1fr; gap: 2px; } }
.empty { text-align: center; padding: var(--s7) var(--s4); background: var(--bg-surface); border: 1px dashed var(--border); border-radius: var(--r-lg); }
.empty-icon { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--interactive-soft); color: var(--interactive); margin-bottom: var(--s4); }
.empty-icon .ic { width: 30px; height: 30px; }
.empty h2 { font-size: var(--fs-lg); }
.empty p { max-width: 52ch; margin-inline: auto; color: var(--text-2); }
.empty-actions { display: flex; flex-wrap: wrap; gap: var(--s3); justify-content: center; }
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin: 0; background: var(--border); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
.metrics-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: var(--s5); }
@media (max-width: 640px) { .metrics-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.metrics > div { background: var(--bg-surface); padding: var(--s4); }
.metrics dt { font-size: var(--fs-xs); color: var(--text-muted); font-weight: 600; }
.metrics dd { margin: 4px 0 0; font: 800 var(--fs-2xl)/1 var(--font-display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.metrics dd small { font: 500 var(--fs-sm) var(--font-ui); color: var(--text-muted); margin-left: 6px; letter-spacing: 0; }
.metrics dd a { font: 600 var(--fs-xs) var(--font-ui); letter-spacing: 0; margin-left: 6px; }

/* ------------------------------------------------------------------ FORMULIR */
.form { display: grid; gap: var(--s4); }
.field { display: grid; gap: 6px; }
.field label, .label-row label { font-weight: 600; font-size: var(--fs-sm); color: var(--text); }
.label-row { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s3); }
.label-row a { font-size: var(--fs-sm); font-weight: 600; }
input[type="text"], input[type="email"], input[type="password"], input[type="search"], input[type="date"], input:not([type]), select, textarea {
  width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid #A9BAC2; border-radius: 10px; background: var(--bg-surface); color: var(--text); font-size: 1rem; transition: border-color .15s, box-shadow .15s; }
:root[data-theme="dark"] input, :root[data-theme="dark"] select, :root[data-theme="dark"] textarea { border-color: #3B5966; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) input:not([type="checkbox"]):not([type="radio"]), :root:not([data-theme="light"]) select, :root:not([data-theme="light"]) textarea { border-color: #3B5966; } }
textarea { min-height: 88px; resize: vertical; }
input::placeholder, textarea::placeholder { color: #7A8D97; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--interactive); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 30%, transparent); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.field-hint { margin: 0; font-size: var(--fs-xs); color: var(--text-muted); }
.field-error { margin: 0; font-size: var(--fs-sm); color: var(--danger); font-weight: 600; display: flex; gap: 6px; align-items: center; }
.field-error:empty { display: none; }
.has-error input, .has-error select, .has-error textarea { border-color: var(--danger); box-shadow: 0 0 0 1px var(--danger); }
.input-icon { position: relative; }
.input-icon > .ic { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--text-muted); pointer-events: none; }
.input-icon > input { padding-left: 42px; }
.input-password { position: relative; }
.input-password > input { padding-right: 52px; }
.pw-toggle { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; display: grid; place-items: center; border: 0; background: none; color: var(--text-muted); border-radius: 8px; cursor: pointer; }
.pw-toggle:hover { color: var(--text); background: var(--bg-sunken); }
.pw-toggle .ic-hide, .pw-toggle[aria-pressed="true"] .ic-show { display: none; }
.pw-toggle[aria-pressed="true"] .ic-hide { display: block; }
.check { display: flex; gap: var(--s3); align-items: flex-start; cursor: pointer; font-size: var(--fs-sm); }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--interactive); flex: none; }
.check small { display: block; color: var(--text-muted); }
.check-boxed { padding: var(--s4); border: 1px solid var(--border); border-radius: var(--r-md); background: var(--bg-sunken); font-size: var(--fs-md); }
.check-boxed:has(input:checked) { border-color: var(--interactive); background: var(--interactive-soft); }
.strength { display: flex; align-items: center; gap: var(--s3); font-size: var(--fs-xs); color: var(--text-muted); min-height: 18px; }
.strength span { flex: 1; height: 5px; border-radius: 4px; background: var(--bg-sunken); position: relative; overflow: hidden; }
.strength span::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w, 0%); background: var(--c, var(--danger)); transition: width .2s; }
.strength em { font-style: normal; font-weight: 600; min-width: 9ch; text-align: right; }
.search-inline { display: flex; gap: var(--s2); flex-wrap: wrap; }
.search-inline > input { flex: 1 1 240px; }
.search-field { position: relative; flex: 1 1 260px; display: block; }
.search-field > .ic { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--text-muted); pointer-events: none; }
.search-field > input { padding-left: 42px; }
.search-wide { max-width: 760px; }
.search-xl > input { min-height: 58px; font-size: 1.0625rem; border-radius: 14px; }

/* ------------------------------------------------------------------ BERANDA PUBLIK */
.hero { background: var(--bg-brand); color: var(--text-on-brand); position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 120px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 60' preserveAspectRatio='none'%3E%3Cpath d='M0 20c33 0 33-12 66-12s34 12 67 12 33-12 66-12 34 12 67 12 33-12 67-12 33 12 67 12M0 42c33 0 33-12 66-12s34 12 67 12 33-12 66-12 34 12 67 12 33-12 67-12 33 12 67 12' fill='none' stroke='%232BB3A3' stroke-opacity='.22' stroke-width='1.5'/%3E%3C/svg%3E") repeat-x bottom / 520px 80px; pointer-events: none; }
.hero-grid { display: grid; gap: var(--s7); padding-block: var(--s8) var(--s6); position: relative; z-index: 1; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.1fr .9fr; align-items: center; padding-block: var(--s9) var(--s7); } }
.hero h1 { color: #fff; font-size: clamp(2.3rem, 1.5rem + 3.2vw, 4rem); line-height: 1.04; letter-spacing: -.045em; max-width: 14ch; }
.hero-org { display: inline-flex; gap: var(--s2); align-items: center; color: #9FE3D8; font-weight: 600; font-size: var(--fs-sm); }
.hero-lead { font-size: 1.1875rem; color: rgba(242, 248, 250, .86); max-width: 52ch; }
.hero .btn-ghost { background: transparent; color: #fff; --b: rgba(255, 255, 255, .45); }
.hero .btn-ghost:hover { --b: #fff; color: #fff; background: rgba(255, 255, 255, .06); }
.hero .btn-primary { background: var(--buoy-500); color: var(--gray-900); }
.hero .btn-primary:hover { background: var(--buoy-600); }
.hero-note { margin-top: var(--s4); font-size: var(--fs-sm); color: rgba(242, 248, 250, .76); }
.hero-note a, .hero a:not(.btn) { color: #fff; }
.hero :focus-visible { outline-color: var(--buoy-500); }
.route { list-style: none; margin: 0; padding: var(--s5); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--r-xl); position: relative; }
.route-stop { display: grid; grid-template-columns: 44px 1fr; gap: var(--s4); align-items: start; position: relative; padding-bottom: var(--s5); }
.route-stop:last-child { padding-bottom: 0; }
.route-stop:not(:last-child)::before { content: ""; position: absolute; left: 21px; top: 46px; bottom: 2px; border-left: 2px dashed rgba(159, 227, 216, .45); }
.route-dot { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--sea-950); border: 2px solid #2BB3A3; color: #9FE3D8; }
.route-end .route-dot { background: var(--buoy-500); border-color: var(--buoy-500); color: var(--gray-900); }
.route-stop strong { display: block; color: #fff; font-size: 1.0625rem; margin-top: 2px; }
.route-stop span { font-size: var(--fs-sm); color: rgba(242, 248, 250, .72); }
.hero-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s4); margin: 0 auto; padding-block: 0 var(--s7); position: relative; z-index: 1; }
@media (min-width: 720px) { .hero-stats { grid-template-columns: repeat(4, 1fr); } }
.hero-stats div { border-top: 1px solid rgba(255, 255, 255, .2); padding-top: var(--s3); }
.hero-stats dt { font: 800 2.25rem/1 var(--font-display); color: #fff; letter-spacing: -.03em; }
.hero-stats dd { margin: 4px 0 0; color: rgba(242, 248, 250, .72); font-size: var(--fs-sm); }
.course-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; border-top: 1px solid var(--border); }
.course-row { display: grid; grid-template-columns: 44px 1fr auto; gap: var(--s4); align-items: center; padding: var(--s4) 0; border-bottom: 1px solid var(--border); }
.course-row-title { font-weight: 700; font-size: 1.0625rem; color: var(--text); text-decoration: none; }
.course-row-title:hover { color: var(--link); text-decoration: underline; }
.course-row p { margin: 2px 0 0; color: var(--text-2); font-size: var(--fs-sm); }
@media (max-width: 560px) { .course-row { grid-template-columns: 44px 1fr; } .course-row .chip { grid-column: 2; justify-self: start; } }
.two-col { display: grid; gap: var(--s6); }
@media (min-width: 900px) { .two-col { grid-template-columns: .9fr 1.1fr; align-items: start; } }
.track-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s3); }
@media (min-width: 560px) { .track-list { grid-template-columns: 1fr 1fr; } }
.track-list li { display: flex; gap: var(--s3); padding: var(--s4); border: 1px solid var(--border); border-radius: var(--r-md); background: var(--bg-page); }
.track-list .ic { color: var(--interactive); margin-top: 2px; }
.track-list strong { display: block; }
.track-list span { font-size: var(--fs-sm); color: var(--text-muted); }
.verify-strip { display: grid; gap: var(--s4); align-items: center; }
@media (min-width: 900px) { .verify-strip { grid-template-columns: 1fr 1.1fr; } }
.verify-strip h2 { margin-bottom: var(--s2); }
.verify-strip p { margin: 0; }

/* ------------------------------------------------------------------ DASBOR */
.dash-head { display: grid; gap: var(--s5); padding-block: var(--s6) var(--s5); align-items: end; }
@media (min-width: 900px) { .dash-head { grid-template-columns: 1fr minmax(420px, auto); } }
.dash-head h1 { font-size: clamp(1.9rem, 1.3rem + 2vw, 2.6rem); margin-bottom: var(--s2); }
.dash-head p { margin: 0; }
.dash-grid { display: grid; gap: var(--s5); }
@media (min-width: 1000px) { .dash-grid { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; } }
.resume { display: grid; grid-template-columns: auto 1fr; gap: var(--s4); padding: var(--s5); background: var(--bg-surface); border: 1px solid var(--border); border-left: 4px solid var(--interactive); border-radius: var(--r-lg); box-shadow: var(--shadow-1); margin-bottom: var(--s5); }
.resume > .btn { grid-column: 1 / -1; justify-self: start; }
@media (min-width: 720px) { .resume { grid-template-columns: auto 1fr auto; align-items: center; } .resume > .btn { grid-column: auto; } }
.resume h2 { font-size: var(--fs-lg); margin-bottom: var(--s2); }
.resume-kicker { margin: 0 0 4px; font-size: var(--fs-sm); color: var(--interactive); font-weight: 700; }
.resume-next { display: flex; gap: var(--s2); flex-wrap: wrap; align-items: center; margin: 0 0 var(--s3); color: var(--text-2); }
.resume-meter { display: flex; align-items: center; gap: var(--s3); font-size: var(--fs-xs); color: var(--text-muted); }
.resume-meter .meter { flex: 1; max-width: 320px; }
.staff-strip { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); align-items: center; padding: var(--s3) var(--s4); background: var(--bg-surface); border: 1px dashed var(--border); border-radius: var(--r-md); margin-bottom: var(--s5); font-size: var(--fs-sm); }
.staff-strip-title { display: inline-flex; gap: var(--s2); align-items: center; }
.staff-strip a { color: var(--text-2); text-decoration: none; } .staff-strip a:hover { color: var(--link); text-decoration: underline; }
.staff-strip b { color: var(--text); font-variant-numeric: tabular-nums; }
.my-courses { list-style: none; padding: 0; margin: 0; background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--r-lg); }
.my-courses li { display: grid; grid-template-columns: 44px 1fr auto; gap: var(--s4); align-items: center; padding: var(--s4); }
.my-courses li + li { border-top: 1px solid var(--border-soft); }
.my-course-title { font-weight: 700; color: var(--text); text-decoration: none; }
.my-course-title:hover { text-decoration: underline; color: var(--link); }
.my-course-meta { display: flex; gap: var(--s3); align-items: center; font-size: var(--fs-xs); color: var(--text-muted); margin: 4px 0 8px; flex-wrap: wrap; }
.pct { font: 700 1.125rem var(--font-display); font-variant-numeric: tabular-nums; color: var(--text-2); min-width: 4ch; text-align: right; }
.onboard { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s3); counter-reset: ob; }
.onboard li { display: grid; grid-template-columns: 36px 1fr; gap: var(--s3); }
.onboard li > span { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-sunken); color: var(--text-2); }
.onboard li.is-done > span { background: var(--interactive); color: var(--on-interactive); }
.onboard strong { display: block; } .onboard p { margin: 0; font-size: var(--fs-sm); color: var(--text-muted); }
.attention { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s3); }
.attention li { display: grid; grid-template-columns: 22px 1fr; gap: 4px var(--s3); align-items: start; padding: var(--s3); border-radius: var(--r-md); background: var(--bg-sunken); }
.attention li p { margin: 0; font-size: var(--fs-sm); }
.attention li .btn { grid-column: 2; justify-self: start; margin-top: 4px; }
.attention .tone-warn > .ic { color: var(--warn); } .attention .tone-buoy > .ic { color: var(--buoy-600); }
.timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s3); }
.timeline li { display: grid; grid-template-columns: 22px 1fr; gap: var(--s3); font-size: var(--fs-sm); }
.timeline li > .ic { color: var(--interactive); margin-top: 2px; }
.timeline p { margin: 0; }
.tl-meta { display: grid; color: var(--text-muted); font-size: var(--fs-xs); line-height: 1.45; margin-top: 2px; }

/* ------------------------------------------------------------------ KATALOG */
.catalog-tools { display: grid; gap: var(--s4); margin-bottom: var(--s5); }
.filters { display: flex; flex-wrap: wrap; gap: var(--s3) var(--s6); }
.filter-group { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; }
.filter-label { font-size: var(--fs-sm); font-weight: 600; color: var(--text-muted); margin-right: 4px; }
.filter-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 14px; border-radius: var(--r-pill); border: 1px solid var(--border); background: var(--bg-surface); color: var(--text-2); font-size: var(--fs-sm); font-weight: 600; text-decoration: none; }
.filter-chip:hover { border-color: var(--interactive); color: var(--interactive); }
.filter-chip.is-active { background: var(--sea-900); border-color: var(--sea-900); color: #fff; }
.result-count { margin: 0; font-size: var(--fs-sm); color: var(--text-muted); }
.result-count a { margin-left: var(--s2); font-weight: 600; }
.catalog-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s4); }
@media (min-width: 700px) { .catalog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .catalog-grid { grid-template-columns: repeat(3, 1fr); } }
.catalog-item { display: flex; flex-direction: column; gap: var(--s3); padding: var(--s5); background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--r-lg); }
.catalog-top { display: flex; justify-content: space-between; align-items: flex-start; }
.catalog-item h2 { font-size: 1.1875rem; margin: var(--s2) 0 0; }
.catalog-item h2 a { color: var(--text); text-decoration: none; }
.catalog-item h2 a:hover { color: var(--link); text-decoration: underline; }
.catalog-sum { color: var(--text-2); font-size: var(--fs-sm); margin: 0; flex: 1; }
.catalog-progress { display: flex; align-items: center; gap: var(--s3); font-size: var(--fs-xs); color: var(--text-muted); font-weight: 600; }
.catalog-progress .meter { flex: 1; }

/* ------------------------------------------------------------------ KURSUS */
.course-hero { background: var(--bg-surface); border-bottom: 1px solid var(--border); }
.course-hero-grid { display: grid; gap: var(--s6); padding-block: var(--s5) var(--s6); }
@media (min-width: 980px) { .course-hero-grid { grid-template-columns: 1fr 380px; align-items: start; } }
.course-title-row { display: flex; gap: var(--s4); align-items: center; margin-bottom: var(--s3); }
.course-title-row h1 { margin: 0; font-size: clamp(1.8rem, 1.3rem + 1.8vw, 2.6rem); }
.course-card { padding: var(--s5); border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--bg-page); box-shadow: var(--shadow-1); }
.course-card h2 { font-size: var(--fs-lg); margin: 0; }
.course-card .btn-block { margin-top: var(--s3); }
.progress-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: var(--s3); }
.big-pct { font: 800 var(--fs-2xl)/1 var(--font-display); color: var(--interactive); letter-spacing: -.03em; }
.req-title { font-size: var(--fs-sm); margin: var(--s4) 0 var(--s2); color: var(--text-2); }
.req-list { list-style: none; padding: 0; margin: 0 0 var(--s3); display: grid; gap: var(--s2); }
.req-list li { display: grid; grid-template-columns: 22px 1fr; gap: var(--s2); font-size: var(--fs-sm); color: var(--text-2); }
.req-list li > .ic { color: var(--text-muted); margin-top: 1px; }
.req-list li.is-ok > .ic { color: var(--ok); }
.req-list li small { display: block; color: var(--text-muted); }
.req-list-lg li { font-size: var(--fs-md); padding: var(--s3); border: 1px solid var(--border); border-radius: var(--r-md); }
.req-list-lg li.is-ok { background: var(--ok-soft); border-color: transparent; }
.course-body { display: grid; gap: var(--s6); padding-top: var(--s6); }
@media (min-width: 980px) { .course-body { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; } }
.syllabus > h2 { margin-bottom: var(--s4); }
.leg { margin-bottom: var(--s5); }
.leg-title { display: flex; align-items: center; gap: var(--s3); font-size: 1.0625rem; margin-bottom: var(--s2); }
.leg-num { display: inline-grid; place-items: center; min-width: 30px; height: 30px; padding: 0 6px; border-radius: 8px; background: var(--sea-900); color: #fff; font-size: var(--fs-sm); font-variant-numeric: tabular-nums; }
.stops { list-style: none; padding: 0; margin: 0; background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--r-lg); }
.stop { display: grid; grid-template-columns: 40px 1fr auto; gap: var(--s3) var(--s4); align-items: center; padding: var(--s3) var(--s4); position: relative; }
.stop + .stop { border-top: 1px solid var(--border-soft); }
.stop-dot { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--border); color: var(--text-muted); background: var(--bg-surface); }
.stop.is-done .stop-dot { background: var(--interactive); border-color: var(--interactive); color: var(--on-interactive); }
.stop.is-next { background: color-mix(in srgb, var(--accent-soft) 55%, transparent); }
.stop.is-next .stop-dot { border-color: var(--buoy-500); color: var(--text); box-shadow: 0 0 0 4px color-mix(in srgb, var(--buoy-500) 25%, transparent); }
.stop-body { display: grid; gap: 4px; min-width: 0; }
.stop-title { font-weight: 600; color: var(--text); text-decoration: none; }
a.stop-title:hover { color: var(--link); text-decoration: underline; }
.stop-meta { display: flex; flex-wrap: wrap; gap: 4px var(--s3); font-size: var(--fs-xs); color: var(--text-muted); }
.stop-meta:empty { display: none; }
.lock { color: var(--text-muted); }
@media (max-width: 600px) { .stop { grid-template-columns: 36px 1fr; } .stop > .btn { grid-column: 2; justify-self: start; } .stop-dot { width: 36px; height: 36px; } }
.howto { margin: 0; padding-left: 1.2em; display: grid; gap: var(--s2); font-size: var(--fs-sm); color: var(--text-2); }

/* ------------------------------------------------------------------ PEMUTAR MATERI */
.player-layout { display: grid; gap: var(--s6); padding-top: var(--s5); }
@media (min-width: 1040px) { .player-layout { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; } .player-outline { position: sticky; top: calc(var(--header-h) + 16px); } }
.player-head h1 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.25rem); margin: var(--s3) 0 var(--s1); }
.video { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: var(--r-lg); overflow: hidden; margin-top: var(--s4); box-shadow: var(--shadow-2); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-help { margin-top: var(--s2); } .video-help > .ic { margin-right: 6px; }
.prose { max-width: 72ch; color: var(--text-2); }
.prose > *:first-child { margin-top: 0; }
.prose h2 { margin-top: var(--s6); } .prose h3 { margin-top: var(--s5); font-size: 1.15rem; color: var(--text); }
.prose p, .prose li { line-height: 1.7; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: 6px; }
.prose table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); margin: var(--s4) 0; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--border); padding: 8px 10px; text-align: left; vertical-align: top; }
.prose blockquote { margin: var(--s4) 0; padding: var(--s3) var(--s4); border-left: 4px solid var(--interactive); background: var(--bg-sunken); border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.player-main .prose { margin-top: var(--s5); padding: var(--s5); background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--r-lg); max-width: none; }
.complete-bar { display: flex; flex-wrap: wrap; gap: var(--s3); justify-content: space-between; align-items: center; margin-top: var(--s4); padding: var(--s4) var(--s5); border-radius: var(--r-lg); background: var(--bg-surface); border: 1px solid var(--interactive); box-shadow: var(--shadow-1); }
.complete-bar p { margin: 0; display: flex; gap: var(--s2); align-items: center; }
.complete-bar.is-done { background: var(--ok-soft); border-color: transparent; box-shadow: none; }
.complete-bar.is-done > p > .ic { color: var(--ok); }
.complete-bar form { margin: 0; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); margin-top: var(--s5); }
.pager-link { display: flex; gap: var(--s3); align-items: center; padding: var(--s3) var(--s4); border: 1px solid var(--border); border-radius: var(--r-md); background: var(--bg-surface); text-decoration: none; color: var(--text); font-weight: 600; font-size: var(--fs-sm); min-width: 0; }
.pager-link span { display: grid; min-width: 0; } .pager-link small { color: var(--text-muted); font-weight: 500; }
.pager-link:hover { border-color: var(--interactive); }
.pager-next { justify-content: flex-end; text-align: right; grid-column: 2; }
.outline { list-style: none; padding: 0; margin: var(--s3) 0 0; display: grid; gap: 2px; max-height: 60vh; overflow: auto; }
.outline a { display: flex; gap: var(--s2); align-items: flex-start; padding: 7px 8px; border-radius: 8px; color: var(--text-2); text-decoration: none; font-size: var(--fs-sm); }
.outline a:hover { background: var(--bg-sunken); color: var(--text); }
.outline .ic { margin-top: 3px; color: var(--text-muted); }
.outline .is-done .ic { color: var(--ok); }
.outline .is-current a { background: var(--interactive-soft); color: var(--interactive); font-weight: 700; }

/* ------------------------------------------------------------------ KUIS */
.quiz-layout { display: grid; gap: var(--s5); padding-top: var(--s5); }
@media (min-width: 1040px) { .quiz-layout { grid-template-columns: minmax(0, 1fr) 300px; align-items: start; } }
.quiz-intro { margin-bottom: var(--s5); }
.quiz-intro h1 { font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.3rem); margin: var(--s3) 0 var(--s2); }
.question { border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--bg-surface); padding: var(--s5); margin: 0 0 var(--s4); min-width: 0; scroll-margin-top: calc(var(--header-h) + 24px); }
.question legend { display: contents; }
.q-num { display: block; font-size: var(--fs-xs); font-weight: 700; color: var(--interactive); margin-bottom: var(--s2); }
.q-text { display: block; font-weight: 600; font-size: 1.0625rem; color: var(--text); margin-bottom: var(--s4); }
.q-text p { margin: 0 0 var(--s2); } .q-text p:last-child { margin: 0; }
.options { display: grid; gap: var(--s2); }
.option { display: grid; grid-template-columns: auto 30px 1fr; gap: var(--s3); align-items: center; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--r-md); cursor: pointer; transition: border-color .12s, background-color .12s; }
.option:hover { border-color: var(--interactive); }
.option input { width: 20px; height: 20px; margin: 0; accent-color: var(--interactive); }
.option-letter { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; background: var(--bg-sunken); font-weight: 700; font-size: var(--fs-sm); color: var(--text-2); }
.option:has(input:checked) { border-color: var(--interactive); background: var(--interactive-soft); box-shadow: inset 0 0 0 1px var(--interactive); }
.option:has(input:checked) .option-letter { background: var(--interactive); color: var(--on-interactive); }
.option:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.quiz-submit { display: flex; flex-wrap: wrap; gap: var(--s3); justify-content: space-between; align-items: center; padding: var(--s5); border-radius: var(--r-lg); background: var(--bg-sunken); }
.quiz-submit p { margin: 0; }
.quiz-status { position: sticky; top: calc(var(--header-h) + 16px); display: grid; gap: var(--s3); padding: var(--s4); background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--r-lg); }
.qs-row { display: flex; justify-content: space-between; align-items: center; font-size: var(--fs-sm); color: var(--text-2); }
.qs-row strong { font: 800 1.25rem var(--font-display); color: var(--text); font-variant-numeric: tabular-nums; }
.qs-timer span { display: inline-flex; gap: 6px; align-items: center; }
.qs-timer.is-low strong { color: var(--danger); }
.q-nav { display: grid; grid-template-columns: repeat(auto-fill, minmax(36px, 1fr)); gap: 6px; }
.q-nav a { display: grid; place-items: center; height: 36px; border-radius: 8px; border: 1px solid var(--border); color: var(--text-2); text-decoration: none; font-size: var(--fs-sm); font-weight: 600; font-variant-numeric: tabular-nums; }
.q-nav a.is-answered { background: var(--interactive); border-color: var(--interactive); color: var(--on-interactive); }
@media (max-width: 1039px) {
  .page-quiz .main { padding-bottom: 120px; }
  .quiz-side { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; }
  .quiz-status { position: static; grid-template-columns: 1fr auto auto; align-items: center; gap: var(--s3); border-radius: var(--r-lg) var(--r-lg) 0 0; border-bottom: 0; box-shadow: 0 -8px 24px -12px rgba(11, 59, 79, .35); padding: var(--s3) var(--s4); }
  .quiz-status .meter, .quiz-status .q-nav { display: none; }
  .quiz-status .qs-row { display: grid; gap: 0; justify-content: start; font-size: var(--fs-xs); }
  .quiz-status .btn { width: auto; }
}
.result { display: grid; gap: var(--s5); align-items: center; padding: var(--s6); background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--r-xl); margin-bottom: var(--s6); }
@media (min-width: 680px) { .result { grid-template-columns: auto 1fr; } }
.result.is-pass { border-top: 4px solid var(--ok); } .result.is-fail { border-top: 4px solid var(--buoy-500); }
.result h1 { font-size: clamp(1.7rem, 1.2rem + 1.5vw, 2.3rem); }
.score-ring { --p: 0; --c: var(--ok); width: 148px; height: 148px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--c) calc(var(--p) * 1%), var(--bg-sunken) 0); position: relative; justify-self: center; }
.is-fail .score-ring { --c: var(--buoy-500); }
.score-ring::before { content: ""; position: absolute; inset: 12px; border-radius: 50%; background: var(--bg-surface); }
.score-ring span { position: relative; font: 800 2.6rem/1 var(--font-display); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.review h2 { margin-bottom: var(--s2); }
.review-list { list-style: none; padding: 0; margin: var(--s4) 0 0; display: grid; gap: var(--s3); }
.review-item { padding: var(--s4) var(--s5); background: var(--bg-surface); border: 1px solid var(--border); border-left: 4px solid var(--ok); border-radius: var(--r-md); }
.review-item.is-wrong { border-left-color: var(--danger); }
.review-head { display: flex; gap: var(--s3); align-items: center; margin-bottom: var(--s2); }
.review-num { font: 700 var(--fs-sm) var(--font-display); color: var(--text-muted); }
.review-q { font-weight: 600; margin-bottom: var(--s2); } .review-q p { margin: 0; }
.review-ans { display: grid; gap: 2px; margin: var(--s2) 0 0; padding: 8px 12px; border-radius: 8px; background: var(--bg-sunken); font-size: var(--fs-sm); }
.review-ans span { font-size: var(--fs-xs); color: var(--text-muted); font-weight: 600; }
.review-key { background: var(--ok-soft); }
.review-expl { display: flex; gap: var(--s2); margin-top: var(--s3); font-size: var(--fs-sm); color: var(--text-2); }
.review-expl .ic { color: var(--buoy-600); margin-top: 3px; } .review-expl p { margin: 0 0 6px; }

/* ------------------------------------------------------------------ PRESENSI, SERTIFIKAT, VERIFIKASI */
.attend-done { display: flex; gap: var(--s3); padding: var(--s4); background: var(--ok-soft); border-radius: var(--r-md); margin: var(--s4) 0; }
.attend-done > .ic { color: var(--ok); width: 28px; height: 28px; }
.attend-done p { margin: 2px 0 0; font-size: var(--fs-sm); color: var(--text-2); }
.verify-result { display: grid; grid-template-columns: auto 1fr; gap: var(--s4); padding: var(--s5); border-radius: var(--r-lg); margin: var(--s5) 0; border: 1px solid; }
.verify-result.is-valid { background: var(--ok-soft); border-color: color-mix(in srgb, var(--ok) 35%, transparent); }
.verify-result.is-invalid { background: var(--danger-soft); border-color: color-mix(in srgb, var(--danger) 35%, transparent); }
.verify-badge { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--ok); color: #fff; }
.is-invalid .verify-badge { background: var(--danger); }
.verify-badge .ic { width: 28px; height: 28px; }
.verify-result h2 { font-size: var(--fs-lg); }
.verify-result .kv > div { border-color: color-mix(in srgb, var(--ok) 18%, transparent); }
.verify-help { margin-top: var(--s5); }
.cert-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s3); }
.cert-list li { display: grid; grid-template-columns: 44px 1fr auto; gap: var(--s4); align-items: center; padding: var(--s4); background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--r-md); }
.cert-list li > div { display: grid; min-width: 0; }
.cert-list-compact li { padding: var(--s3) 0; border: 0; border-bottom: 1px solid var(--border-soft); border-radius: 0; background: none; }
.cert-list .course-icon { background: var(--accent-soft); color: #7A5A00; }

/* ------------------------------------------------------------------ AKUN & PANEL */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: var(--s5); overflow-x: auto; scrollbar-width: thin; }
.tab { display: inline-flex; align-items: center; gap: var(--s2); padding: 12px 14px; color: var(--text-2); text-decoration: none; font-weight: 600; border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tab:hover { color: var(--text); }
.tab.is-active { color: var(--interactive); border-bottom-color: var(--interactive); }
.tab .count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: var(--r-pill); background: var(--buoy-500); color: var(--gray-900); font-size: .7rem; }
.account-grid { display: grid; gap: var(--s4); }
@media (min-width: 900px) { .account-grid { grid-template-columns: 1.2fr 1fr; align-items: start; } }
.profile-head { display: flex; gap: var(--s4); align-items: center; }
.profile-head h2 { margin-bottom: 4px; font-size: var(--fs-lg); }
.profile-head p { margin: 0; display: flex; gap: var(--s2); align-items: center; flex-wrap: wrap; }
.temp-pass { display: grid; grid-template-columns: auto 1fr auto; gap: var(--s4); align-items: start; padding: var(--s4) var(--s5); border-radius: var(--r-lg); background: var(--accent-soft); border: 1px solid var(--buoy-500); margin-bottom: var(--s5); }
.temp-pass > .ic { width: 26px; height: 26px; color: #7A5A00; }
.temp-pass p { margin: 4px 0 0; }
.temp-pass code { font-size: 1rem; background: var(--bg-surface); }
.toolbar { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; margin-bottom: var(--s3); }
.toolbar select { width: auto; min-width: 140px; }
.toolbar .search-field { flex: 1 1 200px; }
.toolbar input[type="date"] { width: auto; }
.toolbar-end { margin-left: auto; }
.toolbar-compact label { font-size: var(--fs-sm); font-weight: 600; }
.inline-label { font-size: var(--fs-sm); color: var(--text-muted); }
.active-filters { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; margin-bottom: var(--s3); font-size: var(--fs-sm); color: var(--text-muted); }
.bulk-bar { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; padding: var(--s3) var(--s4); margin-bottom: var(--s3); background: var(--sea-900); color: #fff; border-radius: var(--r-md); position: sticky; top: calc(var(--header-h) + 8px); z-index: 6; }
.bulk-bar select { width: auto; min-width: 220px; min-height: 38px; color: var(--gray-900); background: #fff; }
.bulk-bar[hidden] { display: none; }
.table-wrap { position: relative; overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--bg-surface); margin-bottom: var(--s3); }
.table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: var(--fs-sm); }
.table th, .table td { padding: 12px 14px; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--border-soft); }
.table thead th { position: sticky; top: 0; background: var(--bg-sunken); font-size: var(--fs-xs); color: var(--text-2); font-weight: 700; white-space: nowrap; z-index: 1; }
.table tbody tr:last-child > * { border-bottom: 0; }
.table tbody tr:hover > * { background: color-mix(in srgb, var(--interactive-soft) 45%, transparent); }
.table tbody th { font-weight: 600; }
.table tr.is-muted > * { opacity: .6; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.cell-title { display: block; color: var(--text); }
.cell-sub { display: block; color: var(--text-muted); font-size: var(--fs-xs); font-weight: 400; }
.col-check { width: 44px; } .col-check input { width: 18px; height: 18px; accent-color: var(--interactive); }
.col-actions { width: 56px; text-align: right; }
.inline-form { display: flex; gap: var(--s2); margin: 0; }
.inline-form select { min-height: 38px; padding: 6px 10px; font-size: var(--fs-sm); min-width: 160px; }
.inline-form select.is-warn { border-color: var(--buoy-600); background: var(--accent-soft); }
.row-menu { position: relative; display: inline-block; }
.row-menu > summary { list-style: none; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 8px; border: 1px solid var(--border); cursor: pointer; color: var(--text-2); }
.row-menu > summary:hover { border-color: var(--interactive); color: var(--interactive); }
.menu-right { right: 0; min-width: 230px; }
.table-foot { display: flex; flex-wrap: wrap; gap: var(--s3) var(--s5); justify-content: space-between; align-items: center; font-size: var(--fs-sm); color: var(--text-muted); margin-bottom: var(--s4); }
.pagination { display: flex; gap: var(--s3); align-items: center; }
.pagination a { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; text-decoration: none; min-height: 36px; padding: 0 8px; }
.per-page { display: flex; gap: var(--s2); align-items: center; margin: 0; }
.per-page select { width: auto; min-height: 36px; padding: 4px 8px; }
.panel-form { max-width: 860px; }
.form-grid { grid-template-columns: 1fr; }
@media (min-width: 720px) { .form-grid { grid-template-columns: 1fr 1fr; } .span-2 { grid-column: 1 / -1; } }
.seg { display: flex; gap: var(--s2); }
.request-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s3); }
.request { display: grid; gap: var(--s3); padding: var(--s4) var(--s5); background: var(--bg-surface); border: 1px solid var(--border); border-left: 4px solid var(--buoy-500); border-radius: var(--r-md); }
.request.is-closed { border-left-color: var(--border); opacity: .85; }
@media (min-width: 860px) { .request { grid-template-columns: 1fr auto; align-items: start; } }
.request-top { display: flex; gap: var(--s3); align-items: center; flex-wrap: wrap; }
.request-actions { display: flex; flex-wrap: wrap; gap: var(--s2); }
.request-actions form { margin: 0; }
.report-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: var(--s4); margin-bottom: var(--s4); }
.report-head h2 { margin-bottom: 4px; }
.report-head p { margin: 0; }
.report-summary { padding: var(--s4); background: var(--bg-sunken); border-radius: var(--r-md); color: var(--text-2); }
.bar-cell { display: flex; align-items: center; gap: var(--s3); min-width: 220px; }
.bar { flex: 1; height: 10px; background: var(--bg-sunken); border-radius: 4px; overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--sea-700); border-radius: 0 4px 4px 0; }
:root[data-theme="dark"] .bar > span { background: #5FB3C9; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .bar > span { background: #5FB3C9; } }
.bar-val { min-width: 8ch; font-variant-numeric: tabular-nums; font-weight: 600; color: var(--text); }
.bar-val small { color: var(--text-muted); font-weight: 400; }
.export-row { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; margin: var(--s4) 0 var(--s5); }

/* ------------------------------------------------------------------ BANTUAN & INFO */
.help-hero { background: var(--bg-surface); border-bottom: 1px solid var(--border); padding: var(--s5) 0 var(--s6); }
.help-hero h1 { margin-bottom: var(--s4); }
.search-xl { max-width: 720px; margin-bottom: var(--s2); }
.help-layout { display: grid; gap: var(--s6); padding-top: var(--s6); }
@media (min-width: 960px) { .help-layout { grid-template-columns: 240px minmax(0, 1fr); align-items: start; } .help-toc { position: sticky; top: calc(var(--header-h) + 16px); } }
.help-toc { display: grid; gap: 2px; }
.help-toc h2 { font-size: var(--fs-sm); color: var(--text-muted); margin-bottom: var(--s2); }
.help-toc a { display: flex; align-items: center; gap: var(--s2); padding: 8px 10px; border-radius: 8px; color: var(--text-2); text-decoration: none; font-weight: 600; font-size: var(--fs-sm); }
.help-toc a:hover { background: var(--bg-surface); color: var(--text); }
.help-toc a span { margin-left: auto; color: var(--text-muted); font-weight: 500; font-variant-numeric: tabular-nums; }
@media (max-width: 959px) { .help-toc { grid-auto-flow: column; overflow-x: auto; } .help-toc h2 { display: none; } .help-toc a { white-space: nowrap; border: 1px solid var(--border); background: var(--bg-surface); } }
.faq-group { margin-bottom: var(--s6); scroll-margin-top: calc(var(--header-h) + 16px); }
.faq-group > h2 { display: flex; gap: var(--s3); align-items: center; font-size: var(--fs-lg); }
.faq-group > h2 .ic { color: var(--interactive); }
.faq { background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--r-md); margin-bottom: var(--s2); }
.faq > summary { list-style: none; display: flex; justify-content: space-between; gap: var(--s4); align-items: center; padding: 14px 18px; cursor: pointer; font-weight: 600; border-radius: var(--r-md); }
.faq > summary:hover { color: var(--link); }
.faq > summary .ic { transition: transform .2s; color: var(--text-muted); }
.faq[open] > summary .ic { transform: rotate(180deg); }
.faq[open] > summary { border-bottom: 1px solid var(--border-soft); border-radius: var(--r-md) var(--r-md) 0 0; }
.faq-a { padding: var(--s4) 18px var(--s2); color: var(--text-2); }
.faq-a p { max-width: 70ch; }
.channels { list-style: none; padding: 0; margin: 0 0 var(--s4); display: grid; gap: var(--s3); counter-reset: ch; }
.channels li { display: grid; grid-template-columns: 44px 1fr; gap: var(--s2) var(--s4); align-items: center; padding: var(--s4); background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--r-md); }
.channels li > .btn { grid-column: 2; justify-self: start; }
@media (min-width: 640px) { .channels li { grid-template-columns: 44px 1fr auto; } .channels li > .btn { grid-column: auto; } }
.channel-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: var(--interactive-soft); color: var(--interactive); }
.channels h3 { font-size: 1rem; margin: 0 0 2px; font-family: var(--font-ui); letter-spacing: 0; }
.channels p { margin: 0; font-size: var(--fs-sm); color: var(--text-muted); }
.help-contact .channels li { background: var(--bg-page); }
.contact-layout { display: grid; gap: var(--s5); }
@media (min-width: 960px) { .contact-layout { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; } }
.check-list { list-style: none; padding: 0; margin: 0 0 var(--s3); display: grid; gap: var(--s2); }
.check-list li { display: flex; gap: var(--s2); align-items: flex-start; } .check-list .ic { color: var(--ok); margin-top: 3px; }
.link-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.link-list a { display: grid; padding: 10px 12px; border-radius: 8px; text-decoration: none; color: var(--text); }
.link-list a:hover { background: var(--bg-sunken); }
.link-list span { font-size: var(--fs-sm); color: var(--text-muted); }
.social { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); }
.social a { display: inline-flex; gap: 4px; align-items: center; font-weight: 600; }
.prose-layout { display: grid; gap: var(--s6); padding-top: var(--s3); }
@media (min-width: 960px) { .prose-layout { grid-template-columns: minmax(0, 1fr) 300px; align-items: start; } .prose-layout aside { position: sticky; top: calc(var(--header-h) + 16px); } }
.summary-box { padding: var(--s5); background: var(--interactive-soft); border-radius: var(--r-lg); margin-bottom: var(--s5); color: var(--text); }
.summary-box h2 { margin-top: 0; font-size: var(--fs-lg); }
.toc { display: grid; gap: 2px; }
.toc a { padding: 6px 8px; border-radius: 6px; text-decoration: none; font-size: var(--fs-sm); color: var(--text-2); }
.toc a:hover { background: var(--bg-sunken); color: var(--text); }

/* ------------------------------------------------------------------ AUTENTIKASI */
.auth-body { background: var(--bg-page); }
.auth-shell { min-height: 100vh; display: grid; }
@media (min-width: 960px) { .auth-shell { grid-template-columns: minmax(380px, 5fr) 7fr; } }
.auth-aside { background: var(--bg-brand); color: var(--text-on-brand); padding: var(--s5) var(--s4); display: flex; flex-direction: column; gap: var(--s5); position: relative; overflow: hidden; }
.auth-aside-copy, .auth-facts { display: none; }
.auth-waves { position: absolute; left: 0; right: 0; bottom: 0; height: 70px; width: 100%; color: #2BB3A3; opacity: .35; }
@media (min-width: 960px) {
  .auth-aside { padding: var(--s7) var(--s7) var(--s8); justify-content: space-between; }
  .auth-aside-copy, .auth-facts { display: block; }
  .auth-aside-copy h2 { color: #fff; font-size: clamp(1.8rem, 1.2rem + 1.6vw, 2.5rem); line-height: 1.12; letter-spacing: -.035em; max-width: 16ch; }
  .auth-aside-copy p { color: rgba(242, 248, 250, .8); max-width: 42ch; }
  .auth-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4); margin: 0; position: relative; z-index: 1; }
  .auth-facts div { border-top: 1px solid rgba(255, 255, 255, .22); padding-top: var(--s3); }
  .auth-facts dt { font: 800 2rem/1 var(--font-display); color: #fff; }
  .auth-facts dd { margin: 4px 0 0; font-size: var(--fs-sm); color: rgba(242, 248, 250, .72); }
}
.auth-main { display: grid; place-items: center; padding: var(--s6) var(--s4) var(--s7); }
.auth-card { width: 100%; max-width: 440px; }
.auth-title { font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.25rem); margin-bottom: var(--s2); }
.auth-lead { color: var(--text-2); margin-bottom: var(--s5); }
.auth-alt { margin-top: var(--s5); padding-top: var(--s4); border-top: 1px solid var(--border); font-size: var(--fs-sm); color: var(--text-2); }
.auth-alt p { margin: 0; }
.auth-foot { display: flex; flex-wrap: wrap; gap: var(--s4); justify-content: center; margin-top: var(--s6); font-size: var(--fs-sm); }
.auth-foot a { color: var(--text-muted); }
.success-mark { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: var(--ok-soft); color: var(--ok); margin-bottom: var(--s4); }
.success-mark .ic { width: 32px; height: 32px; }
.steps-list { padding-left: 1.2em; display: grid; gap: var(--s3); margin: 0 0 var(--s5); color: var(--text-2); }
.auth-card .btn-block + .btn-block { margin-top: var(--s2); }

/* ------------------------------------------------------------------ GALAT & PEMELIHARAAN */
.error-page { display: grid; gap: var(--s6); align-items: center; padding-block: var(--s8); }
@media (min-width: 860px) { .error-page { grid-template-columns: 1fr 1.2fr; } }
.error-visual { position: relative; color: var(--interactive); max-width: 360px; }
.error-code { position: absolute; left: 0; top: -10px; font: 800 4.5rem/1 var(--font-display); color: var(--text); letter-spacing: -.05em; opacity: .9; }
.error-copy .search-inline { margin: var(--s4) 0 var(--s5); max-width: 520px; }
.maint { max-width: 620px; margin: 0 auto; padding: var(--s8) var(--s4); text-align: center; }
.maint .brand { margin-bottom: var(--s7); }
.maint-icon { width: 72px; height: 72px; margin: 0 auto var(--s4); border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: #7A5A00; }
.maint-icon .ic { width: 34px; height: 34px; }
.maint-eta { display: inline-flex; gap: var(--s2); align-items: center; padding: var(--s3) var(--s4); background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--r-md); }

/* ------------------------------------------------------------------ DIALOG */
.dialog { width: min(440px, calc(100vw - 32px)); padding: var(--s5); border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--bg-surface); color: var(--text); box-shadow: var(--shadow-2); }
.dialog::backdrop { background: rgba(7, 42, 56, .55); backdrop-filter: blur(2px); }
.dialog h2 { font-size: var(--fs-lg); }
.dialog .btn-row { justify-content: flex-end; margin-top: var(--s4); }

/* ------------------------------------------------------------------ FOOTER */
.site-footer { background: var(--sea-950); color: rgba(242, 248, 250, .82); margin-top: auto; font-size: var(--fs-sm); }
.footer-grid { display: grid; gap: var(--s6); padding-block: var(--s7) var(--s5); }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.3fr; } }
.site-footer h2 { font: 700 var(--fs-sm) var(--font-ui); letter-spacing: 0; color: #fff; margin-bottom: var(--s3); }
.site-footer nav, .footer-grid > div { display: grid; gap: var(--s2); align-content: start; }
.site-footer a { color: rgba(242, 248, 250, .86); text-decoration: none; display: inline-flex; gap: var(--s2); align-items: center; min-height: 28px; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-brand p { margin-top: var(--s3); max-width: 38ch; color: rgba(242, 248, 250, .7); }
.footer-note { display: inline-flex; gap: var(--s2); align-items: center; color: rgba(242, 248, 250, .64); }
.footer-legal { display: flex; flex-wrap: wrap; gap: var(--s3) var(--s5); justify-content: space-between; align-items: center; padding-block: var(--s4) var(--s5); border-top: 1px solid rgba(255, 255, 255, .12); color: rgba(242, 248, 250, .6); }
.footer-legal nav { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); }
.site-footer :focus-visible { outline-color: var(--buoy-500); }

/* ------------------------------------------------------------------ SERTIFIKAT (layar & cetak) */
.cert-body { background: #DDE6E9; }
.cert-toolbar { display: flex; flex-wrap: wrap; gap: var(--s3); justify-content: space-between; align-items: center; max-width: 1060px; margin: 0 auto; padding: var(--s4); }
.cert-flash { max-width: 1060px; margin: 0 auto; padding: 0 var(--s4); }
.certificate { width: min(1060px, calc(100vw - 24px)); aspect-ratio: 297 / 210; margin: 0 auto var(--s7); background: #FFFDF7; color: #14262F; box-shadow: 0 30px 60px -30px rgba(7, 42, 56, .5); container-type: inline-size; font-family: var(--font-ui); }
.cert-frame { position: relative; height: 100%; padding: 4.2cqw 5cqw 3cqw; display: grid; grid-template-rows: auto 1fr auto auto; border: .55cqw solid #0B3B4F; outline: .18cqw solid #C79A00; outline-offset: -1.3cqw; overflow: hidden; }
.cert-head { display: grid; grid-template-columns: auto 1fr auto; gap: 1.6cqw; align-items: center; }
.cert-mark { width: 5.6cqw; height: 5.6cqw; }
.cert-head p { margin: 0; font-size: 1.35cqw; line-height: 1.35; color: #3C5260; }
.cert-head strong { color: #0B3B4F; font-size: 1.6cqw; }
.cert-no { text-align: right; font-size: 1.05cqw !important; }
.cert-no strong { font-size: 1.2cqw !important; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.cert-center { text-align: center; align-self: center; }
.cert-title { font: 600 4.6cqw/1.05 var(--font-serif); letter-spacing: -.01em; color: #0B3B4F; margin: 0 0 1.2cqw; }
.cert-given, .cert-statement, .cert-score { font-size: 1.45cqw; color: #3C5260; margin: 0 auto .8cqw; max-width: 62ch; }
.cert-name { font: 600 3.9cqw/1.15 var(--font-serif); color: #0A645E; margin: .4cqw 0 1.3cqw; padding-bottom: .8cqw; border-bottom: .12cqw solid #C79A00; display: inline-block; min-width: 50%; }
.cert-course { font: 700 2.1cqw/1.25 var(--font-display); color: #14262F; margin: .4cqw auto 1cqw; max-width: 40ch; letter-spacing: -.01em; }
.cert-foot { display: grid; grid-template-columns: 1fr auto; gap: 3cqw; align-items: end; margin-top: 1.4cqw; }
.cert-qr { display: flex; gap: 1.4cqw; align-items: end; }
.cert-qr svg { width: 10.5cqw; height: auto; flex: none; border: .1cqw solid #D9E2E6; }
.cert-qr p { font-size: 1cqw; color: #5B6F7B; margin: 0; max-width: 30ch; line-height: 1.45; }
.cert-qr p span { color: #14262F; font-weight: 600; word-break: break-all; }
.cert-sign { text-align: center; min-width: 26cqw; }
.cert-sign p { margin: 0; font-size: 1.25cqw; color: #3C5260; }
.cert-sign-space { height: 5.5cqw; }
.cert-signer { font-weight: 700; color: #14262F !important; text-decoration: underline; text-underline-offset: .3em; }
.cert-legal { font-size: .9cqw; color: #7A8D97; margin: 1.4cqw 0 0; text-align: center; }
.cert-waves { position: absolute; left: 0; right: 0; bottom: .6cqw; width: 100%; height: 2cqw; color: #2BB3A3; opacity: .45; }
@media (max-width: 640px) { .cert-toolbar { justify-content: center; } }

/* ------------------------------------------------------------------ AKSES & GERAK */
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }
@media (forced-colors: active) { .meter > span, .bar > span { background: Highlight; } .btn { border: 1px solid ButtonText; } }

/* ------------------------------------------------------------------ CETAK */
@media print {
  @page { size: A4 portrait; margin: 14mm; }
  @page sertifikat { size: A4 landscape; margin: 0; }
  .certificate { page: sertifikat; }
  .site-header, .site-footer, .no-print, .skip-link, .banner, .flash-stack { display: none !important; }
  body { background: #fff !important; }
  .cert-body { background: #fff; }
  .certificate { width: 297mm; height: 210mm; aspect-ratio: auto; margin: 0; box-shadow: none; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* Penyesuaian kecil hasil uji tampilan */
.brand-text strong { white-space: nowrap; }
.table .mono-num { white-space: nowrap; word-break: normal; }

/* Paket jenjang jabatan (v1.5.1) */
.preview-bar { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; margin-top: var(--s4); padding: var(--s3) var(--s4); border: 1px dashed var(--interactive); border-radius: var(--r-md); background: var(--interactive-soft); }
.preview-bar span { display: inline-flex; gap: var(--s2); align-items: center; }
.preview-bar select { width: auto; min-width: 260px; min-height: 40px; }
.tier-pack { margin-top: var(--s5); }
.tier-card { background: var(--bg-surface); border: 1px solid var(--border); border-top: 4px solid var(--buoy-500); border-radius: var(--r-lg); padding: var(--s5); box-shadow: var(--shadow-1); }
.tier-head { display: flex; gap: var(--s4); align-items: flex-start; margin-bottom: var(--s4); }
.tier-head h2 { font-size: var(--fs-lg); margin-bottom: 4px; }
.tier-head p { margin: 0; }
.tier-badge { width: 48px; height: 48px; flex: none; border-radius: 14px; display: grid; place-items: center; background: var(--sea-900); color: var(--buoy-500); }
.tier-badge .ic { width: 26px; height: 26px; }
.tier-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s3); }
@media (min-width: 860px) { .tier-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.tier-steps li { display: flex; gap: var(--s3); align-items: flex-start; padding: var(--s3) var(--s4); border-radius: var(--r-md); background: var(--bg-sunken); }
.tier-steps li.is-done { background: var(--ok-soft); }
.tier-step-icon { width: 36px; height: 36px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--bg-surface); color: var(--interactive); border: 2px solid var(--border); }
.tier-steps li.is-done .tier-step-icon { background: var(--ok); color: #fff; border-color: var(--ok); }
.tier-steps a { font-weight: 600; color: var(--text); text-decoration: none; display: block; }
.tier-steps a:hover { text-decoration: underline; color: var(--link); }
.tier-step-kind { display: block; font-size: var(--fs-xs); color: var(--text-muted); font-weight: 600; }
.tier-matrix { margin-top: var(--s6); }
.tier-matrix h2 { font-size: var(--fs-xl); }
.pack-pill { display: inline-flex; gap: 4px; align-items: center; padding: 3px 8px; margin: 2px 2px 2px 0; border-radius: 6px; background: var(--interactive-soft); color: var(--interactive); font-size: .75rem; font-weight: 700; white-space: nowrap; }
.tier-matrix td.nowrap { white-space: normal; }
