/* ==========================================================================
   HadirIn Class — prototipe UI
   Paper-and-ink institutional attendance register. Light only.
   ========================================================================== */

@font-face {
  font-family: "IBM Plex Sans";
  src: url("./fonts/plex-sans-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("./fonts/plex-sans-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("./fonts/plex-sans-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("./fonts/plex-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("./fonts/plex-mono-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("./fonts/newsreader-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #F6F1E7;
  --surface: #FFFCF7;
  --ink: #171411;
  --ink-2: #423B33;
  --muted: #6E655A;
  --line: #DED5C7;
  --line-strong: #8F8270;
  --accent: #A80F1B;
  --accent-deep: #840B14;
  --accent-pale: #F8EDEA;
  --verified: #1E5B45;
  --verified-pale: #F0F5F1;
  --accent-contrast: #FFFCF7;
  --sans: "IBM Plex Sans", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --rail-w: 240px;
  --strip-h: 40px;
  --max-content: 1180px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  background: var(--paper);
  color-scheme: light;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  font-weight: 400;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
#app { min-height: 100vh; }

::selection { background: var(--accent); color: var(--accent-contrast); }

h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; }
ul, ol { list-style: none; }
img, svg { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
strong, b { font-weight: 600; }
code {
  font-family: var(--mono);
  font-size: .92em;
  padding: 1px 4px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--paper);
}
hr { border: 0; border-top: 1px solid var(--line); margin: 0; }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
.proto-strip :focus-visible { outline-color: var(--paper); }

.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: max(12px, .92em); }
.muted { color: var(--muted); }
.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;
}
.skip-link {
  position: fixed;
  z-index: 300;
  top: 10px; left: 10px;
  transform: translateY(-180%);
  background: var(--paper);
  color: var(--ink);
  border: 2px solid var(--ink);
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 500;
  transition: transform .14s var(--ease);
}
.skip-link:focus { transform: translateY(0); outline-color: var(--accent); }

.icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  display: inline-block;
  vertical-align: -4px;
}
.status .icon { width: 14px; height: 14px; vertical-align: -2px; }
.btn .icon, .text-link .icon, .handoff-link .icon { width: 17px; height: 17px; vertical-align: -3px; }
.micro-note .icon, .field-note .icon { width: 14px; height: 14px; vertical-align: -2px; }

/* ------------------------------------------------------------------ strip */

.proto-strip {
  background: var(--ink);
  color: var(--paper);
  font-size: 12px;
  min-height: 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 22px;
  padding: 0 20px;
  position: sticky;
  top: 0;
  z-index: 80;
  border-bottom: 1px solid #2A251F;
}
.proto-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; min-width: 0; }
.proto-row--main { flex: 0 0 auto; }
.proto-row--tools { margin-left: auto; gap: 16px; }
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: var(--paper);
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: -.01em;
  white-space: nowrap;
  min-height: 32px;
}
.wordmark-mark {
  display: inline-grid;
  place-items: center;
  width: 23px; height: 23px;
  background: var(--accent);
  color: var(--accent-contrast);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  border: 1px solid #D08A8F;
  box-shadow: inset 0 0 0 2px var(--accent);
  outline: 1px solid #D08A8F;
  outline-offset: -4px;
}
.wordmark-text span { font-weight: 400; color: #D7CCBD; }
.proto-label {
  color: #D7CCBD;
  border-left: 1px solid #4A4238;
  padding-left: 16px;
  font-size: 12px;
  white-space: nowrap;
}
.proto-clock {
  color: #C6BBAA;
  font-size: 12px;
  white-space: nowrap;
}
.proto-clock .mono { color: var(--paper); font-size: 12px; letter-spacing: .01em; }
.role-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  border: 1px solid #4A4238;
  background: #211D19;
  border-radius: 4px;
  padding: 2px;
}
.role-switch-k { color: #A99D8D; font-size: 12px; padding: 0 6px 0 4px; }
.role-btn {
  border: 0;
  background: transparent;
  color: #D7CCBD;
  border-radius: 2px;
  padding: 4px 9px;
  font-size: 12px;
  line-height: 1.4;
  cursor: pointer;
  min-height: 40px;
  transition: background .14s var(--ease), color .14s var(--ease);
}
.role-btn:hover { background: #332D26; color: var(--paper); }
.role-btn[aria-pressed="true"] { background: var(--paper); color: var(--ink); font-weight: 500; }
.proto-actions { display: inline-flex; align-items: center; gap: 4px; }
.proto-btn {
  border: 0;
  background: transparent;
  color: #D7CCBD;
  font-size: 12px;
  padding: 6px 7px;
  cursor: pointer;
  min-height: 40px;
  text-decoration: none;
}
.proto-btn:hover { color: var(--paper); text-decoration: underline; text-underline-offset: 3px; }
.proto-btn--reset { border-left: 1px solid #4A4238; padding-left: 12px; margin-left: 2px; }
.proto-warn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #F0C0BA;
  font-size: 12px;
  white-space: nowrap;
}
.proto-warn .icon { width: 14px; height: 14px; }

/* ------------------------------------------------------------------ shell */

.shell {
  display: grid;
  grid-template-columns: var(--rail-w) minmax(0, 1fr);
  min-height: calc(100vh - var(--strip-h));
}
.rail {
  position: sticky;
  top: var(--strip-h);
  height: calc(100vh - var(--strip-h));
  display: flex;
  flex-direction: column;
  padding: 18px 14px 16px;
  border-right: 1px solid var(--line);
  background: var(--paper);
  overflow-y: auto;
  z-index: 30;
}
.rail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding: 0 4px 16px 10px;
  border-bottom: 1px solid var(--line);
}
.rail-role {
  font-size: 12px;
  font-family: var(--mono);
  color: var(--muted);
  margin-bottom: 3px;
}
.rail-person { font-size: 13.5px; font-weight: 500; line-height: 1.35; }
.rail-toggle {
  display: inline-grid;
  place-items: center;
  width: 44px; height: 44px;
  min-width: 44px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--paper);
  cursor: pointer;
  color: var(--ink-2);
  transition: background .14s var(--ease), border-color .14s var(--ease);
}
.rail-toggle:hover { background: var(--surface); border-color: var(--line-strong); }
.rail-nav { margin-top: 22px; flex: 1; }
.rail-group {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  padding: 0 10px;
  margin-bottom: 8px;
}
.rail-link {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 44px;
  padding: 0 11px;
  border-radius: 4px;
  text-decoration: none;
  color: var(--ink-2);
  font-size: 13.5px;
  margin-bottom: 2px;
  transition: background .14s var(--ease), color .14s var(--ease);
}
.rail-link:hover { background: var(--surface); color: var(--ink); }
.rail-link.is-active {
  background: var(--ink);
  color: var(--paper);
  font-weight: 500;
}
.rail-link .icon { color: var(--muted); }
.rail-link:hover .icon { color: var(--ink-2); }
.rail-link.is-active .icon { color: var(--paper); }
.rail-mini {
  border-top: 1px solid var(--line);
  margin-top: 22px;
  padding: 14px 10px 4px;
}
.mini-k { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-bottom: 5px; }
.mini-link {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.35;
  text-decoration: underline;
  text-underline-offset: 3px;
  margin-bottom: 3px;
}
.mini-strong { font-size: 12.5px; font-weight: 500; }
.mini-meta { font-size: 12px; color: var(--muted); line-height: 1.45; }
.shell.is-collapsed { grid-template-columns: 72px minmax(0, 1fr); }
.shell.is-collapsed .rail { padding: 18px 9px 16px; }
.shell.is-collapsed .rail-head { justify-content: center; padding: 0 0 16px; }
.shell.is-collapsed .rail-id,
.shell.is-collapsed .rail-group,
.shell.is-collapsed .rail-label,
.shell.is-collapsed .rail-mini { display: none; }
.shell.is-collapsed .rail-nav { margin-top: 18px; }
.shell.is-collapsed .rail-link { justify-content: center; padding: 0; }
.shell.is-collapsed .rail-link .icon { width: 20px; height: 20px; }

.workspace { min-width: 0; display: flex; flex-direction: column; }
.appbar {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 40px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}
.crumb { display: flex; align-items: center; gap: 10px; }
.crumb span:last-child { color: var(--ink-2); }
.crumb-sep { width: 1px; height: 12px; background: var(--line-strong); }
.appbar-meta { display: flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: 12px; }
.meta-sep { display: inline-block; width: 1px; height: 12px; background: var(--line-strong); vertical-align: -2px; }
.main {
  width: 100%;
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 38px clamp(24px, 4vw, 48px) 56px;
  flex: 1;
  min-width: 0;
}
.main:focus { outline: none; }
.shell-foot {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 18px clamp(24px, 4vw, 48px) 28px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}
.shell-foot p { max-width: 70ch; }
.shell--focus { display: block; min-height: calc(100vh - var(--strip-h)); }
.shell--focus .main { max-width: 960px; padding-top: 28px; padding-bottom: 64px; }
.shell--focus .shell-foot { display: none; }
.shell--focus .appbar { display: none; }
.bottom-nav { display: none; }

.editorial {
  width: 100%;
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 0 clamp(24px, 4vw, 48px) 48px;
}
.editorial:focus { outline: none; }

/* ------------------------------------------------------------------ common */

.kicker {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.4;
  color: var(--muted);
  letter-spacing: .015em;
  margin-bottom: 8px;
}
.page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 26px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--line);
}
.page-head-copy { min-width: 0; }
.page-head h1 {
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.08;
  letter-spacing: -.025em;
  font-weight: 600;
  max-width: 20ch;
}
.page-head h1:focus { outline: none; }
h1[tabindex="-1"]:focus, h1[tabindex="-1"]:focus-visible { outline: none; }
.lead {
  margin-top: 10px;
  max-width: 70ch;
  color: var(--ink-2);
  font-size: 14.5px;
  line-height: 1.6;
}
.page-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 12px;
}
.page-head-actions {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  flex: 0 0 auto;
}
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  min-width: 0;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 16px;
}
.section-head h2 { font-size: 17px; line-height: 1.25; font-weight: 600; letter-spacing: -.01em; }
.section-note { font-size: 12px; color: var(--muted); margin-top: 5px; max-width: 66ch; line-height: 1.5; }
.section-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.micro-note {
  font-size: 12px;
  line-height: 1.55;
  color: var(--muted);
  margin-top: 10px;
}
.micro-note a { color: var(--ink-2); }
.demo-tag {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: var(--paper);
  color: var(--ink-2);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.4;
  padding: 1px 5px;
  white-space: nowrap;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 2px 6px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
  white-space: nowrap;
  color: var(--ink-2);
  background: var(--surface);
}
.status--hadir { color: var(--verified); border-color: #B9CDC2; background: var(--verified-pale); }
.status--live { color: var(--ink); border: 0; background: transparent; padding: 0; gap: 6px; font-weight: 500; }
.status--live .icon { color: var(--ink); }
.status--valid { color: var(--ink-2); border-color: var(--line-strong); background: var(--surface); }
.status--terlambat { color: var(--accent); border-color: #DCB9B6; background: var(--accent-pale); }
.status--manual { color: var(--ink-2); border-color: var(--line-strong); background: var(--surface); }
.status--pending { color: var(--ink-2); border-color: var(--line-strong); border-style: dashed; background: var(--paper); }
.status--rejected { color: var(--accent); border-color: var(--line-strong); background: var(--paper); }
.status--alpha, .status--belum { color: var(--muted); border-color: var(--line); background: var(--paper); }
.status-inline { display: inline-flex; align-items: center; gap: 5px; color: var(--verified); font-size: 12px; }
.status-inline--warn { color: var(--accent); }
.meter-wrap { display: flex; align-items: center; gap: 9px; min-width: 120px; }
.meter-value { font-size: 12px; color: var(--ink-2); min-width: 32px; }
.meter {
  display: block;
  flex: 1;
  height: 5px;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
  min-width: 52px;
}
.meter-fill { display: block; height: 100%; background: var(--ink); border-radius: 2px; }
.meter--neutral .meter-fill { background: var(--ink-2); }
.threshold {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  font-size: 12px;
  color: var(--muted);
  margin-top: 5px;
  line-height: 1.45;
}
.threshold .icon { width: 12px; height: 12px; margin-top: 1px; }
.threshold--risk { color: var(--accent); }
.risk-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}
.ok-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--verified);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}
.risk-label .icon, .ok-label .icon { width: 13px; height: 13px; }
.handoff {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 8px;
  padding: 18px 22px;
  margin-top: 24px;
}
.handoff-k { font-family: var(--mono); font-size: 12px; color: #BDB2A2; letter-spacing: .02em; }
.handoff-title { font-size: 14.5px; font-weight: 500; line-height: 1.35; margin-top: 2px; }
.handoff-body { font-size: 12px; color: #D7CCBD; margin-top: 4px; max-width: 70ch; }
.handoff-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--paper);
  font-size: 12.5px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 4px;
  flex: 0 0 auto;
  white-space: nowrap;
}
.handoff-link:hover { color: #F1D5D1; }
.empty {
  border: 1px dashed var(--line-strong);
  border-radius: 4px;
  padding: 26px;
  background: var(--paper);
}
.empty-k { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.empty-title { font-size: 15px; font-weight: 500; }
.empty-body { font-size: 13px; color: var(--muted); max-width: 64ch; margin-top: 5px; }
.empty-action { margin-top: 16px; }
.callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
  padding: 15px 16px;
}
.callout--warn { border-color: #D6B6B2; background: var(--accent-pale); }
.callout-title { font-size: 13.5px; font-weight: 500; }
.callout-body { font-size: 13px; color: var(--ink-2); margin-top: 3px; max-width: 80ch; line-height: 1.55; }
.callout-action { flex: 0 0 auto; }
.note-index { color: var(--muted); font-size: 12px; }

/* ------------------------------------------------------------------ buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 9px 15px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.25;
  text-decoration: none;
  cursor: pointer;
  transition: background .14s var(--ease), border-color .14s var(--ease), color .14s var(--ease);
  text-align: center;
}
.btn--primary { background: var(--accent); color: var(--accent-contrast); border-color: var(--accent); }
.btn--primary:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
.btn--secondary { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn--secondary:hover { background: var(--paper); border-color: var(--ink-2); }
.btn--quiet {
  background: transparent;
  color: var(--ink-2);
  border-color: transparent;
  padding-left: 9px;
  padding-right: 9px;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 400;
}
.btn--quiet:hover { color: var(--ink); background: var(--paper); }
.btn--danger { color: var(--accent); border-color: #CDB0AD; }
.btn--danger:hover { border-color: var(--accent); background: var(--accent-pale); }
.btn--small { min-height: 44px; padding: 8px 12px; font-size: 12px; }
.btn--lg { min-height: 48px; padding: 12px 20px; font-size: 14px; }
.btn--full { width: 100%; }
.btn:disabled {
  opacity: .52;
  cursor: not-allowed;
  background: var(--paper);
  color: var(--muted);
  border-color: var(--line);
}
.btn:disabled:hover { background: var(--paper); border-color: var(--line); }
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
  min-height: 32px;
}
.text-link:hover { color: var(--accent); }
.btn--quiet .icon, .text-link .icon { width: 15px; height: 15px; }

/* ------------------------------------------------------------------ forms */

.field { margin-top: 16px; }
.field label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-2);
  margin-bottom: 5px;
}
.field select, .field textarea, .field input[type="text"], .field input[type="email"] {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  padding: 9px 11px;
  min-height: 44px;
  font-size: 13px;
}
.field textarea { resize: vertical; min-height: 84px; }
.field select:focus-visible, .field textarea:focus-visible, .field input:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
.field-note { font-size: 12px; line-height: 1.5; color: var(--muted); margin-top: 5px; }
.field-error { font-size: 12px; color: var(--accent); margin-top: 8px; }
.label-optional { color: var(--muted); font-weight: 400; }
.select-field, .inline-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: var(--muted);
  font-family: var(--mono);
}
.select-field select, .inline-field select {
  min-height: 40px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  padding: 6px 9px;
  font-family: var(--sans);
  font-size: 12px;
  color: var(--ink);
  min-width: 180px;
}
.inline-field { flex-direction: row; align-items: center; gap: 8px; }
.inline-field select { min-width: 150px; min-height: 38px; }
.check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12.5px;
  line-height: 1.55;
  min-height: 44px;
  cursor: pointer;
}
.check-row input {
  width: 18px; height: 18px;
  margin: 2px 0 0;
  accent-color: var(--accent);
  flex: 0 0 auto;
}
.file-input {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.file-input-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 7px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: var(--surface);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
}
.file-input-label:hover { background: var(--paper); border-color: var(--ink-2); }

/* ------------------------------------------------------------------ tables */

.table-scroll {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
}
.table-scroll:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
}
.data-table caption { text-align: left; }
.data-table th {
  text-align: left;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: .02em;
  padding: 9px 11px;
  border-bottom: 1px solid var(--line-strong);
  background: var(--paper);
  white-space: nowrap;
}
.data-table td {
  padding: 10px 11px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  line-height: 1.45;
}
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover td { background: #FBF6ED; }
.data-table .ta-right, .ta-right { text-align: right; }
.cell-title { display: block; font-size: 12.5px; font-weight: 500; color: var(--ink); }
.cell-sub { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.cell-reason { font-size: 12px; color: var(--ink-2); max-width: 300px; }
.record-link { font-family: var(--mono); font-size: 12px; text-underline-offset: 3px; white-space: nowrap; }
.nowrap { white-space: nowrap; }
.history-when .cell-sub { font-size: 12px; }
.table--history { min-width: 0; }
.table--recap { min-width: 760px; }
.table--students { min-width: 620px; }
.table--data { min-width: 620px; }
.table--preview { min-width: 760px; }
.table--audit { min-width: 760px; }
.table--risk { min-width: 760px; }

/* ================================================================== landing */

.landing { padding-top: 0; }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, .78fr);
  gap: clamp(36px, 6vw, 84px);
  align-items: end;
  padding: clamp(44px, 6vw, 76px) 0 54px;
  border-bottom: 1px solid var(--line);
}
.hero-copy { min-width: 0; }
.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(52px, 7.1vw, 94px);
  line-height: .92;
  letter-spacing: -.035em;
  max-width: 11ch;
  margin: 0 0 26px;
}
.hero-sub {
  font-size: clamp(15px, 1.35vw, 17px);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 56ch;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.hero-next {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--ink-2);
  margin-top: 16px;
}
.hero-next .mono { color: var(--muted); }
.hero-honest { font-size: 12px; color: var(--muted); margin-top: 24px; }
.landing-expired {
  margin-top: 22px;
  border: 1px solid #D6B6B2;
  background: var(--accent-pale);
  border-radius: 4px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 12px;
}
.landing-expired p { max-width: 55ch; }
.protocol { border-top: 2px solid var(--ink); padding-top: 16px; }
.protocol-head { margin-bottom: 12px; }
.protocol-k { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.protocol-title { font-family: var(--serif); font-size: 26px; line-height: 1.15; margin-top: 3px; letter-spacing: -.015em; }
.protocol-list { border-top: 1px solid var(--line); }
.protocol-list li {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.protocol-list li > span { color: var(--muted); font-size: 12px; padding-top: 2px; }
.protocol-list p { font-size: 13px; font-weight: 500; }
.protocol-list div span { display: block; font-size: 12px; color: var(--muted); line-height: 1.5; margin-top: 2px; }
.protocol-foot { padding-top: 12px; border-top: 2px solid var(--ink); margin-top: 0; }
.protocol-foot p { font-size: 12px; color: var(--muted); line-height: 1.55; }

.flow-section { padding: 52px 0 48px; border-bottom: 1px solid var(--line); }
.flow-section .section-head { margin-bottom: 26px; }
.flow-section .section-head h2 { font-size: clamp(22px, 2.4vw, 30px); letter-spacing: -.02em; }
.flow-track {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong);
}
.flow-node { position: relative; min-width: 0; }
.flow-node > a {
  display: flex;
  flex-direction: column;
  min-height: 168px;
  padding: 15px 20px 12px 0;
  text-decoration: none;
  border-right: 1px solid var(--line);
  transition: background .14s var(--ease);
}
.flow-node:last-child > a { border-right: 0; padding-right: 0; padding-left: 20px; }
.flow-node:not(:first-child) > a { padding-left: 20px; }
.flow-node > a:hover { background: var(--surface); }
.flow-num { font-size: 12px; color: var(--muted); }
.flow-role { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-top: 20px; }
.flow-title { font-size: 15px; font-weight: 500; line-height: 1.25; margin-top: 4px; }
.flow-detail { font-size: 12px; color: var(--muted); line-height: 1.45; margin-top: 5px; max-width: 24ch; }
.flow-node:not(:last-child) > a::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 46%;
  width: 6px;
  height: 6px;
  border-top: 1px solid var(--line-strong);
  border-right: 1px solid var(--line-strong);
  transform: rotate(45deg);
}

.landing-split { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); }
.split-block { padding: 42px 40px 42px 0; min-width: 0; }
.split-block + .split-block { border-left: 1px solid var(--line); padding-left: 42px; }
.split-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.split-head .kicker { margin: 0; }
.split-head .mono { font-size: 12px; color: var(--muted); }
.tick-list li, .dash-list li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 9px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.45;
}
.tick-list .icon { width: 15px; height: 15px; margin-top: 2px; color: var(--ink-2); }
.dash-list li > span:first-child { color: var(--line-strong); font-family: var(--mono); }
.split-block .text-link { margin-top: 18px; }
.split-block .micro-note { max-width: 46ch; }
.landing-note {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) 220px;
  gap: 26px;
  align-items: start;
  padding: 38px 0;
  border-bottom: 1px solid var(--line);
}
.landing-note > p:nth-child(2) { font-size: 16px; line-height: 1.55; color: var(--ink-2); max-width: 66ch; }
.landing-note .text-link { justify-self: end; }
.landing-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 30px 0 12px;
}
.foot-mark { display: flex; align-items: center; gap: 9px; font-weight: 500; font-size: 13px; }
.foot-mark .wordmark-mark { width: 21px; height: 21px; font-size: 12px; }
.foot-links { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; font-size: 12px; }
.foot-links a, .foot-link { text-decoration: none; color: var(--ink-2); border: 0; padding: 4px 0; cursor: pointer; min-height: 44px; display: inline-flex; align-items: center; }
.foot-links a:hover, .foot-link:hover { text-decoration: underline; text-underline-offset: 3px; color: var(--ink); }
.foot-note { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.landing-legal { font-size: 12px; color: var(--muted); padding: 8px 0 36px; border-top: 1px solid var(--line); margin-top: 8px; }

/* ================================================================== student */

.student-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(290px, .85fr); gap: 22px; align-items: start; }
.student-main, .student-side { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.session-panel {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: clamp(22px, 3vw, 30px);
  position: relative;
  min-width: 0;
}
.session-panel--live { border-top: 3px solid var(--ink); }
.session-panel--attention { border-color: #D6B6B2; }
.session-panel--pending { border-top: 3px solid var(--line-strong); }
.session-panel--recorded { border-top: 3px solid var(--verified); }
.session-live-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 10px; flex-wrap: wrap; }
.session-live-head .kicker { margin: 0; }
.live-label { font-family: var(--mono); font-size: 12px; color: var(--ink-2); display: inline-flex; align-items: center; gap: 6px; }
.live-square { display: none; }
.session-title { font-size: clamp(23px, 2.6vw, 30px); line-height: 1.1; letter-spacing: -.022em; font-weight: 600; max-width: 22ch; }
.session-meta { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-top: 7px; }
.session-copy { font-size: 14.5px; color: var(--ink-2); margin-top: 10px; max-width: 62ch; line-height: 1.55; }
.session-times {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  margin: 18px 0;
}
.fact-k { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-bottom: 3px; }
.fact-v { font-size: 13px; line-height: 1.4; color: var(--ink); }
.fact-v.mono { font-size: 12px; }
.session-status-line { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 4px; }
.session-status { font-size: 17px; font-weight: 500; letter-spacing: -.01em; }
.session-status-note { font-size: 12px; color: var(--muted); max-width: 44ch; }
.session-actions { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-top: 18px; }
.session-panel .callout { margin-top: 18px; }
.agenda-panel, .summary-panel, .face-mini, .record-mini { min-width: 0; }
.agenda-list { border-top: 1px solid var(--line); margin-top: 4px; }
.agenda-row {
  display: grid;
  grid-template-columns: 106px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}
.agenda-row.is-live { background: var(--paper); margin: 0 -10px; padding-left: 10px; padding-right: 10px; }
.agenda-time { font-size: 12px; color: var(--ink-2); white-space: nowrap; }
.agenda-dash { color: var(--line-strong); padding: 0 2px; }
.agenda-copy { min-width: 0; }
.agenda-course { display: block; font-size: 13px; font-weight: 500; line-height: 1.3; }
.agenda-meta { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.agenda-state { font-size: 12px; color: var(--muted); white-space: nowrap; }
.agenda-state--live { color: var(--ink); font-weight: 500; }
.agenda-state--done { color: var(--ink-2); }
.agenda-state--late { color: var(--accent); }
.agenda-state--neutral { color: var(--muted); }
.course-summary { border-top: 1px solid var(--line); }
.course-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 178px;
  gap: 16px;
  align-items: start;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.course-name { font-size: 13px; font-weight: 500; line-height: 1.3; }
.course-meta { font-size: 12px; color: var(--muted); margin-top: 3px; }
.course-row-meter { min-width: 0; }
.course-row-meter .meter-wrap { margin-top: 3px; }
.face-state { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; }
.face-mini .text-link { margin-top: 10px; }
.record-mini-status { margin: 4px 0 6px; }
.record-mini-id { font-size: 12px; color: var(--muted); }
.record-mini .text-link { margin-top: 8px; }

/* enrollment */

.enroll-flow { min-width: 0; }
.enroll-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(260px, .8fr); gap: 22px; align-items: start; }
.consent-panel h2 { font-size: 21px; letter-spacing: -.015em; margin: 0 0 8px; }
.consent-list { border-top: 1px solid var(--line); margin-top: 18px; }
.consent-list li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.consent-list li > span { font-size: 12px; color: var(--muted); padding-top: 2px; }
.consent-list p { font-size: 13px; font-weight: 500; }
.consent-list div span { display: block; font-size: 13px; color: var(--muted); line-height: 1.55; margin-top: 2px; }
.consent-check { background: var(--paper); border: 1px solid var(--line); border-radius: 4px; padding: 14px; margin-top: 18px; }
.panel-actions { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-top: 18px; }
.consent-aside .fact-list { margin-top: 10px; }
.capture-panel { margin-top: 22px; }
.capture-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.capture-head h2 { font-size: 21px; letter-spacing: -.015em; }
.capture-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(260px, .9fr); gap: 24px; align-items: start; }
.viewfinder {
  aspect-ratio: 4 / 3;
  background: var(--ink);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 240px;
}
.video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1);
  filter: grayscale(1) contrast(.9) brightness(.8);
  z-index: 1;
}
.viewfinder-bg { position: absolute; inset: 0; z-index: 2; }
.vf-corner { position: absolute; width: 28px; height: 28px; border: 1.5px solid #E9E0D2; }
.vf-corner--tl { top: 20px; left: 20px; border-right: 0; border-bottom: 0; }
.vf-corner--tr { top: 20px; right: 20px; border-left: 0; border-bottom: 0; }
.vf-corner--bl { bottom: 20px; left: 20px; border-right: 0; border-top: 0; }
.vf-corner--br { bottom: 20px; right: 20px; border-left: 0; border-top: 0; }
.vf-oval {
  position: absolute;
  left: 50%; top: 47%;
  width: 42%;
  aspect-ratio: 3 / 4;
  transform: translate(-50%, -50%);
  border: 1.5px dashed #E9E0D2;
  border-radius: 50%;
  opacity: .8;
}
.viewfinder-note {
  position: absolute;
  z-index: 3;
  left: 16px; right: 16px; bottom: 14px;
  font-family: var(--mono);
  font-size: 12px;
  color: #D7CCBD;
  text-align: center;
}
.capture-side { min-width: 0; }
.capture-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.pose-progress { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 14px; }
.pose-steps { margin: 4px 0 12px; }
.pose-steps li {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 5px 0;
  font-size: 12px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}
.pose-steps li .mono { font-size: 12px; color: var(--line-strong); }
.pose-steps li.is-active { color: var(--ink); font-weight: 500; }
.pose-steps li.is-active .mono { color: var(--accent); }
.pose-steps li.is-done { color: var(--ink-2); }
.pose-steps li.is-done::after { content: "selesai"; margin-left: auto; font-family: var(--mono); font-size: 12px; color: var(--ink-2); }
.progress-track {
  height: 4px;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
}
.progress-track > span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--ink);
  transition: width .22s var(--ease);
}
.sequence-status { font-size: 12px; color: var(--ink-2); margin-top: 8px; min-height: 18px; }
.capture-cancel { margin-top: 8px; }
.inline-alert {
  border: 1px solid #D6B6B2;
  background: var(--accent-pale);
  color: var(--ink-2);
  border-radius: 4px;
  padding: 10px 12px;
  font-size: 12px;
  line-height: 1.5;
  margin: 10px 0;
}
.enroll-state-head { display: flex; align-items: center; gap: 10px; justify-content: space-between; margin-bottom: 10px; }
.enroll-state h2 { font-size: 21px; letter-spacing: -.015em; margin-bottom: 12px; }
.fact-list { border-top: 1px solid var(--line); }
.fact-list > div {
  display: grid;
  grid-template-columns: minmax(120px, 190px) minmax(0, 1fr);
  gap: 14px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}
.fact-list dt { font-family: var(--mono); font-size: 12px; color: var(--muted); line-height: 1.5; }
.fact-list dd { font-size: 12.5px; line-height: 1.5; min-width: 0; }
.fact-list--tight > div { padding: 7px 0; }
.enroll-footnote { max-width: 80ch; }

/* verification */

.focus-wrap { width: 100%; max-width: 900px; margin: 0 auto; padding: 26px clamp(20px, 4vw, 32px) 64px; }
.focus-wrap--result { max-width: 820px; }
.focus-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.focus-top .mono { font-size: 12px; color: var(--muted); text-align: right; }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 500;
  min-height: 44px;
  text-decoration: none;
}
.back-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.back-link .icon { width: 16px; height: 16px; }
.verify-context {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  border-top: 2px solid var(--ink);
  padding-top: 16px;
}
.verify-context h1 { font-size: clamp(24px, 3vw, 32px); line-height: 1.1; letter-spacing: -.02em; font-weight: 600; max-width: 22ch; }
.verify-window { font-size: 12px; color: var(--muted); margin-top: 7px; }
.verify-live { text-align: right; flex: 0 0 auto; }
.verify-live p { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-top: 6px; }
.verify-live p .is-expired { color: var(--accent); }
.verify-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 28px 0 18px;
  border-top: 1px solid var(--line);
}
.vstep {
  display: grid;
  grid-template-columns: 22px 1fr;
  grid-template-rows: auto auto;
  column-gap: 8px;
  padding: 11px 12px 10px 0;
  color: var(--muted);
  border-right: 1px solid var(--line);
  min-width: 0;
}
.vstep:last-child { border-right: 0; }
.vstep-num {
  grid-row: 1 / span 2;
  width: 22px; height: 22px;
  display: grid; place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}
.vstep-label { font-size: 12px; font-weight: 500; line-height: 1.3; }
.vstep-state { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-top: 2px; }
.vstep.is-current { color: var(--ink); }
.vstep.is-current .vstep-num { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.vstep.is-current .vstep-state { color: var(--accent); }
.vstep.is-done .vstep-num { background: var(--paper); border-color: var(--ink); color: var(--ink); }
.vstep.is-done .vstep-state { color: var(--ink-2); }
.vstep.is-current.is-done .vstep-state { color: var(--ink-2); }
.verify-panel {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: clamp(20px, 3vw, 28px);
  min-width: 0;
}
.verify-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 6px; flex-wrap: wrap; }
.verify-panel-head .kicker { margin: 0; }
.verify-panel h2 { font-size: clamp(21px, 2.5vw, 27px); letter-spacing: -.02em; line-height: 1.15; margin-bottom: 8px; }
.verify-panel h2:focus { outline: none; }
.verify-lead { font-size: 14.5px; color: var(--ink-2); line-height: 1.6; max-width: 68ch; }
.verify-panel .fact-list { margin-top: 18px; }
.verify-actions { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-top: 20px; }
.verify-back { margin-top: 14px; }
.method-list { border-top: 1px solid var(--line); margin-top: 18px; }
.method {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.method.is-primary { background: var(--paper); margin: 0 -10px; padding: 12px 10px; border: 1px solid var(--line); border-radius: 4px; margin-top: 10px; }
.method-mark { color: var(--ink-2); padding-top: 1px; }
.method p { font-size: 12.5px; font-weight: 500; }
.method div span { display: block; font-size: 12px; color: var(--muted); line-height: 1.5; margin-top: 2px; }
.method-tag { font-family: var(--mono); font-size: 12px; color: var(--muted); padding-top: 2px; white-space: nowrap; }
.method.is-primary .method-tag { color: var(--ink-2); }
.location-check { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 18px; }
.location-idle .micro-note { max-width: 56ch; }
.location-loading { padding: 8px 0; }
.location-loading .mono { font-size: 12px; color: var(--ink-2); margin-bottom: 8px; }
.location-result { margin-top: 4px; }
.location-ok { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 22px; align-items: center; }
.location-title { font-size: 20px; font-weight: 500; letter-spacing: -.015em; margin-top: 8px; }
.location-meta { font-size: 12px; color: var(--muted); margin-top: 4px; }
.location-diagram { width: 100%; height: auto; display: block; background: var(--paper); border-radius: 4px; }
.location-fail { border: 1px solid #D6B6B2; background: var(--accent-pale); border-radius: 4px; padding: 16px; }
.location-fail p { font-size: 13.5px; color: var(--ink-2); margin-top: 6px; }
.demo-note { margin-top: 12px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.capture-grid--verify { grid-template-columns: minmax(0, 1fr) minmax(260px, .95fr); margin-top: 18px; }
.face-progress { margin-top: 12px; }
.face-matched { border: 1px solid #B9CDC2; background: var(--verified-pale); padding: 11px 12px; border-radius: 4px; margin-top: 12px; }
.matched-title { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12.5px; font-weight: 500; color: var(--verified); }
.matched-title .icon { width: 16px; height: 16px; }
.matched-title .demo-tag { color: var(--ink-2); }
.guard-panel {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: clamp(24px, 4vw, 36px);
  margin-top: 24px;
}
.guard-panel h1 { font-size: clamp(24px, 3vw, 32px); line-height: 1.12; letter-spacing: -.02em; margin: 14px 0 8px; max-width: 24ch; }
.guard-panel p { font-size: 14.5px; color: var(--ink-2); max-width: 66ch; }
.guard-panel .panel-actions { margin-top: 20px; }
.verify-context + .guard-panel { margin-top: 22px; }
.focus-wrap > .verify-context { margin-bottom: 4px; }

/* result */

.result-card {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: clamp(24px, 4vw, 42px);
  min-width: 0;
}
.result-head { text-align: left; }
.result-title {
  font-family: var(--serif);
  font-size: clamp(38px, 5.4vw, 58px);
  line-height: .98;
  letter-spacing: -.03em;
  font-weight: 400;
  margin: 4px 0 12px;
  max-width: 16ch;
}
.result-lead { font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.stamp-wrap { display: flex; justify-content: center; padding: 30px 0 22px; }
.stamp {
  border: 3px double currentColor;
  border-radius: 2px;
  color: var(--verified);
  padding: 4px;
  transform: rotate(-2deg);
  animation: stamp-settle .2s var(--ease) both;
}
.stamp--late { color: var(--accent); }
.stamp-inner {
  border: 1px solid currentColor;
  padding: 11px 30px 9px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.stamp-word {
  font-family: var(--mono);
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 500;
  letter-spacing: .1em;
  line-height: 1.1;
}
.stamp-sub { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; }
@keyframes stamp-settle {
  from { transform: rotate(-5.5deg) scale(1.045); opacity: .45; }
  to { transform: rotate(-2deg) scale(1); opacity: 1; }
}
.result-callout { border: 1px solid var(--line); background: var(--paper); border-radius: 4px; padding: 13px 14px; margin: 0 0 18px; font-size: 13px; }
.result-callout p { margin-top: 6px; }
.result-callout--warn { border-color: #D6B6B2; background: var(--accent-pale); }
.result-facts { display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; border-top: 1px solid var(--line); }
.result-facts > div { padding: 9px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.result-facts dt { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-bottom: 2px; }
.result-facts dd { font-size: 12.5px; line-height: 1.45; }
.factor-panel { margin-top: 20px; }
.factor-list { border-top: 1px solid var(--line); }
.factor {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: baseline;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}
.factor-mark { color: var(--ink-2); }
.factor-mark .icon { width: 15px; height: 15px; }
.factor-name { font-size: 12px; }
.factor-time { font-family: var(--mono); font-size: 12px; color: var(--muted); text-align: right; }
.factor-detail { display: block; font-size: 12px; }
.privacy-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.55;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin-top: 18px;
}
.privacy-note .icon { width: 15px; height: 15px; margin-top: 1px; }
.result-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 20px; }
.result-manual-next:empty { display: none; }
.result-foot { text-align: center; font-size: 12px; color: var(--muted); margin-top: 18px; }

/* history */

.history-grid { display: grid; grid-template-columns: minmax(280px, .85fr) minmax(0, 1.45fr); gap: 22px; align-items: start; }
.history-course-list { border-top: 1px solid var(--line); }
.history-course { padding: 11px 0; border-bottom: 1px solid var(--line); }
.history-course > div:first-child { margin-bottom: 5px; }
.history-table-panel .section-head { align-items: flex-end; }
.history-table-panel .select-field select { min-width: 200px; }
.history-table-panel .empty { margin-top: 8px; }

/* ================================================================== lecturer */

.lecturer-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(290px, .85fr); gap: 22px; align-items: start; }
.lecturer-main, .lecturer-side { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.decisive-panel {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-top: 3px solid var(--ink);
  border-radius: 8px;
  padding: clamp(22px, 3vw, 30px);
  min-width: 0;
}
.decisive-panel--attention { border-color: #D6B6B2; background: var(--surface); }
.decisive-panel--closed { border-top-color: var(--line-strong); }
.decisive-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.decisive-title { font-size: clamp(24px, 3vw, 31px); line-height: 1.1; letter-spacing: -.022em; font-weight: 600; max-width: 22ch; margin-top: 2px; }
.decisive-lead { font-size: 14.5px; color: var(--ink-2); line-height: 1.55; max-width: 64ch; margin-top: 10px; }
.decisive-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  margin: 18px 0 2px;
}
.decisive-facts dt { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-bottom: 2px; }
.decisive-facts dd { font-size: 12.5px; line-height: 1.4; }
.open-session-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 18px; }
.open-session-row .field-note { max-width: 40ch; }
.live-time { margin: 14px 0 2px; }
.live-clock { font-size: 30px; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.decisive-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 16px; }
.count-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 16px 0;
  padding: 10px 0;
}
.count-strip > div { padding: 0 12px; border-right: 1px solid var(--line); min-width: 0; }
.count-strip > div:first-child { padding-left: 0; }
.count-strip > div:last-child { border-right: 0; }
.count-strip dt { font-family: var(--mono); font-size: 12px; color: var(--muted); line-height: 1.35; }
.count-strip dd { font-size: 21px; line-height: 1.2; font-weight: 500; }
.count-strip .count-total dd { color: var(--muted); }
.roster-preview { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 12px; }
.preview-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.preview-head .kicker { margin: 0; }
.preview-head .mono { font-size: 12px; color: var(--muted); }
.preview-list { margin: 8px 0 10px; }
.preview-row {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) 90px auto 50px;
  gap: 10px;
  align-items: center;
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.preview-name { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.preview-nim { font-size: 12px; color: var(--muted); }
.preview-time { font-size: 12px; color: var(--muted); text-align: right; }
.roster-preview .text-link { margin-top: 4px; }
.demo-control { border: 1px dashed var(--line-strong); background: var(--paper); border-radius: 4px; padding: 12px 14px; margin-top: 16px; }
.demo-control-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.demo-control-head p { font-size: 12.5px; font-weight: 500; }
.demo-control .btn { margin-top: 10px; }
.demo-control-done { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; margin-top: 14px; }
.next-panel { min-width: 0; }
.next-list { border-top: 1px solid var(--line); }
.next-row { display: grid; grid-template-columns: 100px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.next-time { font-size: 12px; color: var(--ink-2); white-space: nowrap; }
.next-course { display: block; font-size: 12.5px; font-weight: 500; }
.next-meta { display: block; font-size: 12px; color: var(--muted); margin-top: 1px; }
.next-state { font-family: var(--mono); font-size: 12px; color: var(--muted); white-space: nowrap; }
.pending-panel { min-width: 0; }
.pending-count { font-size: 12px; color: var(--accent); }
.pending-empty { border-top: 1px solid var(--line); padding-top: 12px; }
.pending-empty-title { font-size: 12.5px; font-weight: 500; }
.pending-list { border-top: 1px solid var(--line); }
.pending-item { padding: 12px 0; border-bottom: 1px solid var(--line); }
.pending-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.pending-name { font-size: 12.5px; font-weight: 500; }
.pending-nim { font-size: 12px; color: var(--muted); }
.pending-reason { font-size: 12px; color: var(--ink-2); margin-top: 6px; }
.pending-note { font-size: 12px; color: var(--muted); line-height: 1.5; margin-top: 3px; font-style: italic; }
.pending-time { font-size: 12px; color: var(--muted); margin-top: 4px; }
.pending-actions { display: flex; gap: 7px; margin-top: 9px; flex-wrap: wrap; }
.aside-note-panel .fact-list { margin-top: 10px; }
.lecturer-side .panel { padding: 18px; }

.session-headline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
  margin-bottom: 18px;
}
.session-window .fact-k { margin-bottom: 1px; }
.session-window .fact-v { font-size: 14px; }
.session-head-state { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.session-head-state .micro-note { margin: 0; }
.countdown-inline { font-size: 12px; color: var(--ink-2); margin: 0; }
.session-locked { margin-bottom: 20px; }
.session-locked h2 { font-size: 20px; margin: 2px 0 6px; }
.session-locked p { font-size: 14px; color: var(--ink-2); max-width: 68ch; }
.session-locked .btn { margin-top: 14px; }
.closed-summary { margin-bottom: 20px; }
.closed-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.closed-head h2 { font-size: 20px; margin-top: 2px; }
.closed-head .mono { font-size: 12px; color: var(--muted); }
.roster-layout { display: grid; grid-template-columns: minmax(0, 1fr) 292px; gap: 22px; align-items: start; }
.rosters { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 20px; min-width: 0; }
.rosters .section-head { margin-bottom: 10px; }
.roster-count { font-size: 12px; color: var(--muted); }
.roster-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.roster-head {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(96px, 1fr) 54px 76px 18px;
  gap: 10px;
  padding: 8px 10px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  border-bottom: 1px solid var(--line-strong);
}
.roster-list { border-bottom: 1px solid var(--line); }
.roster-item { border-bottom: 1px solid var(--line); }
.roster-item:last-child { border-bottom: 0; }
.roster-toggle {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(96px, 1fr) 54px 76px 18px;
  gap: 10px;
  align-items: center;
  text-align: left;
  padding: 10px;
  border: 0;
  background: transparent;
  cursor: pointer;
  min-height: 54px;
  transition: background .12s var(--ease);
}
.roster-toggle:hover { background: var(--paper); }
.roster-student { min-width: 0; }
.roster-name { display: block; font-size: 12.5px; font-weight: 500; line-height: 1.3; }
.roster-nim { display: block; font-size: 12px; color: var(--muted); margin-top: 1px; }
.roster-status { min-width: 0; }
.roster-status .status { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.roster-time { font-size: 12px; color: var(--muted); }
.roster-method { font-size: 12px; color: var(--ink-2); }
.roster-chevron { color: var(--muted); display: flex; justify-content: flex-end; }
.roster-chevron .icon { width: 14px; height: 14px; transition: transform .14s var(--ease); }
.roster-toggle[aria-expanded="true"] .roster-chevron .icon { transform: rotate(90deg); }
.roster-pending { background: var(--accent-pale); border-top: 1px solid #D6B6B2; padding: 9px 12px 10px; }
.roster-pending .pending-reason { margin: 0; font-size: 12px; }
.roster-pending .pending-actions { margin-top: 6px; }
.roster-detail { background: var(--paper); border-top: 1px solid var(--line); padding: 12px; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: start; }
.detail-k { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-bottom: 5px; }
.detail-copy { font-size: 12px; color: var(--ink-2); line-height: 1.55; max-width: 58ch; }
.detail-id { font-size: 12px; color: var(--muted); margin-top: 6px; }
.detail-actions { text-align: right; }
.trail-list { border-top: 1px solid var(--line); }
.trail-row { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.trail-mark .icon { width: 14px; height: 14px; }
.trail-name { font-size: 12px; }
.trail-time { font-size: 12px; color: var(--muted); text-align: right; }
.session-aside { min-width: 0; }
.aside-sticky { position: sticky; top: calc(var(--strip-h) + 16px); display: flex; flex-direction: column; gap: 14px; }
.aside-panel { padding: 16px; }
.aside-panel .fact-list { margin-top: 8px; }
.aside-panel .fact-list > div, .aside-note-panel .fact-list > div, .consent-aside .fact-list > div { grid-template-columns: 86px minmax(0, 1fr); gap: 10px; }
.aside-panel .fact-list dd, .aside-note-panel .fact-list dd, .consent-aside .fact-list dd { font-size: 12px; }
.policy-list li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 7px; padding: 6px 0; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-2); line-height: 1.45; }
.policy-list .icon { width: 14px; height: 14px; margin-top: 1px; }
.aside-actions .btn { margin-top: 6px; }
.aside-actions .micro-note { margin-top: 8px; }


/* recap */

.recap-stack { display: flex; flex-direction: column; gap: 20px; }
.recap-table-panel, .recap-students-panel { min-width: 0; }
.recap-students-panel .meter { min-width: 80px; }

/* ================================================================== admin */

.admin-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 22px; align-items: start; margin-top: 22px; }
.admin-main, .admin-side { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.import-spec { border: 1px solid var(--line); background: var(--paper); border-radius: 4px; padding: 12px 14px; font-size: 13px; line-height: 1.6; color: var(--ink-2); }
.import-spec p + p { margin-top: 4px; }
.import-spec code { font-size: 12px; white-space: nowrap; }
.import-tools { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin: 14px 0 8px; }
.import-tools .file-input-label { min-height: 44px; padding: 9px 14px; font-size: 12.5px; }
.import-tools .btn--small { min-height: 44px; }
.import-preview { margin-top: 16px; }
.import-fatal { border: 1px solid #D6B6B2; background: var(--accent-pale); border-radius: 4px; padding: 14px; margin-top: 12px; }
.import-fatal p { font-size: 12px; margin-top: 6px; }
.preview-summary { border-top: 2px solid var(--ink); padding-top: 12px; margin-bottom: 12px; }
.preview-summary p { font-size: 12.5px; }
.preview-summary .kicker { margin-bottom: 2px; }
.preview-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.preview-actions .micro-note { margin: 0; }
.row-error td { background: #FBF2EF; }
.row-error:hover td { background: #FBF2EF; }
.error-line { display: block; color: var(--accent); font-size: 12px; line-height: 1.4; }
.new-mark { display: inline-block; border: 1px solid var(--line-strong); border-radius: 2px; padding: 0 3px; font-family: var(--mono); font-size: 12px; color: var(--ink-2); vertical-align: 1px; background: var(--surface); }
.source-label { font-family: var(--mono); font-size: 12px; color: var(--muted); white-space: nowrap; }
.data-counts { display: inline-flex; gap: 16px; flex-wrap: wrap; }
.data-counts strong { font-size: 15px; font-weight: 500; margin-right: 2px; }
.data-foot { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.data-foot .micro-note { max-width: 62ch; }
.import-success { border: 1px solid var(--line-strong); background: var(--surface); border-radius: 8px; padding: 18px 20px; margin-bottom: 22px; display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.import-success h2 { font-size: 18px; letter-spacing: -.01em; margin: 2px 0 4px; }
.import-success p { font-size: 12px; color: var(--muted); }
.import-success-k { display: flex; align-items: center; gap: 6px; color: var(--ink-2); }
.import-success-k .icon { width: 16px; height: 16px; color: var(--verified); }
.mini-steps { border-top: 1px solid var(--line); margin-top: 8px; }
.mini-steps li { display: grid; grid-template-columns: 22px 1fr; gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.mini-steps li > span { font-size: 12px; color: var(--muted); padding-top: 1px; }
.mini-steps p { font-size: 12px; font-weight: 500; }
.mini-steps div span { display: block; font-size: 12px; color: var(--muted); line-height: 1.45; margin-top: 1px; }
.check-list li { display: flex; align-items: flex-start; gap: 7px; font-size: 12px; padding: 5px 0; border-top: 1px solid var(--line); }
.check-list .icon { width: 13px; height: 13px; margin-top: 2px; color: var(--ink-2); }
.import-history { border-top: 1px solid var(--line); margin-top: 8px; }
.import-history li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.import-history .mono { font-size: 12px; color: var(--muted); }
.import-history p { font-size: 12px; }
.import-history p.micro-note { font-size: 12px; margin-top: 1px; }

/* program recap */

.coverage-strip {
  display: flex;
  align-items: center;
  gap: 24px;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.coverage-meter { flex: 0 0 300px; }
.coverage-k { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.coverage-meter .meter-value { font-size: 15px; }
.coverage-copy { font-size: 13px; color: var(--ink-2); max-width: 62ch; line-height: 1.5; }
.coverage-copy strong { font-weight: 600; color: var(--ink); }
.threshold-legend { display: flex; gap: 14px; align-items: center; }
.threshold-legend .risk-label, .threshold-legend .ok-label { font-size: 12px; }
.program-stack { display: flex; flex-direction: column; gap: 22px; }
.program-class-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 34px; align-content: start; }
.program-class-list { border-top: 1px solid var(--line); }
.program-class { padding: 12px 0; border-bottom: 1px solid var(--line); }
.program-class-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; }
.program-class-name { font-size: 12.5px; font-weight: 500; }
.program-class-meta { font-size: 12px; color: var(--muted); margin-top: 2px; }
.program-class-num { width: 180px; flex: 0 0 auto; }
.program-class-num .meter-wrap { justify-content: flex-end; }
.program-class-foot { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; color: var(--muted); margin-top: 6px; }
.program-class-foot .mono { font-size: 12px; }
.program-class.is-empty .program-class-name { color: var(--ink-2); }
.program-class.is-empty .program-class-meta { color: var(--muted); }
.program-class-list .program-class { border-top: 1px solid var(--line); }
.program-risk .table-scroll { margin-top: 4px; }
.program-foot { max-width: 80ch; }
.program-grid .empty { padding: 18px; }

/* audit */

.audit-panel { min-width: 0; }
.audit-panel .section-head { align-items: flex-end; }
.audit-filters { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.audit-time { white-space: nowrap; }
.audit-time .cell-sub { margin-top: 1px; }
.cell-object { font-size: 12px; max-width: 320px; }
.audit-explain {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(230px, .7fr);
  gap: 36px;
  border-top: 2px solid var(--ink);
  margin-top: 30px;
  padding-top: 22px;
}
.audit-explain h2 { font-size: 21px; letter-spacing: -.015em; margin: 2px 0 8px; }
.audit-explain p { font-size: 14px; color: var(--ink-2); line-height: 1.65; max-width: 70ch; }
.audit-facts { border-top: 1px solid var(--line); }
.audit-facts li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.audit-facts .mono { font-size: 12px; color: var(--muted); display: block; }
.audit-facts p { font-size: 12px; margin-top: 1px; }

/* ================================================================== progress */

.progress-page { padding-top: 8px; }
.progress-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 44px; }
.progress-top .mono { font-size: 12px; color: var(--muted); }
.progress-hero { max-width: 900px; }
.progress-hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(42px, 6vw, 76px);
  line-height: .96;
  letter-spacing: -.035em;
  max-width: 15ch;
  margin: 0 0 20px;
}
.progress-lead { font-size: 16px; color: var(--ink-2); line-height: 1.6; max-width: 68ch; }
.progress-now {
  display: flex;
  align-items: baseline;
  gap: 18px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  padding: 14px 0;
  margin: 28px 0 22px;
}
.progress-now .mono { font-size: 12px; color: var(--muted); }
.progress-now p { font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.progress-count { margin-left: auto; font-size: 12px; color: var(--muted); }
.progress-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.progress-section {
  display: grid;
  grid-template-columns: minmax(260px, .62fr) minmax(0, 1.38fr);
  gap: clamp(28px, 5vw, 64px);
  border-top: 1px solid var(--line-strong);
  padding: 46px 0;
}
.progress-section-head { position: sticky; top: 64px; align-self: start; }
.progress-section-head h2 { font-size: clamp(22px, 2.3vw, 29px); line-height: 1.15; letter-spacing: -.02em; margin: 3px 0 9px; max-width: 18ch; }
.progress-section-head > p:last-child { font-size: 12.5px; color: var(--muted); line-height: 1.6; max-width: 46ch; }
.progress-links { border-top: 1px solid var(--line); }
.progress-links li { border-bottom: 1px solid var(--line); }
.progress-links a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 22px;
  grid-template-rows: auto auto;
  column-gap: 12px;
  padding: 11px 0;
  text-decoration: none;
  min-height: 56px;
}
.progress-links a:hover .progress-item-title { text-decoration: underline; text-underline-offset: 3px; color: var(--accent); }
.progress-item-title { font-size: 13px; font-weight: 500; grid-column: 1; }
.progress-item-desc { font-size: 12px; color: var(--muted); line-height: 1.5; grid-column: 1; margin-top: 2px; }
.progress-item-arrow { grid-column: 2; grid-row: 1 / span 2; align-self: center; color: var(--muted); }
.progress-item-arrow .icon { width: 15px; height: 15px; }
.sim-list { border-top: 1px solid var(--line); }
.sim-list li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.sim-index { font-size: 12px; color: var(--muted); padding-top: 2px; }
.sim-list p { font-size: 12.5px; font-weight: 500; }
.sim-list div span { display: block; font-size: 12px; color: var(--muted); line-height: 1.55; margin-top: 2px; max-width: 66ch; }
.progress-section--sim .progress-section-head h2 { color: var(--ink); }
.timeline-table { min-width: 680px; }
.timeline-table tr.row-current td { background: var(--paper); }
.timeline-table tr.row-current td { outline: none; }
.now-mark { display: inline-block; margin-left: 8px; font-family: var(--mono); font-size: 12px; color: var(--accent); }
.measure-table { min-width: 620px; }
.risk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; }
.risk-block { border-top: 2px solid var(--ink); padding-top: 14px; }
.risk-k { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.risk-block h3 { font-size: 17px; letter-spacing: -.01em; margin: 3px 0 6px; }
.risk-block p { font-size: 12px; color: var(--ink-2); line-height: 1.6; }
.risk-block .micro-note a { text-decoration: underline; }
.progress-last { border-top: 2px solid var(--ink); padding: 24px 0 16px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.progress-last p { font-size: 12px; color: var(--muted); max-width: 62ch; }
.progress-last > div { display: flex; gap: 9px; flex-wrap: wrap; }
.progress-page .landing-foot { border-top: 1px solid var(--line); margin-top: 8px; }

/* ================================================================== 404 */

.notfound { padding: clamp(44px, 8vw, 96px) 0; }
.notfound-inner { max-width: 780px; }
.notfound-code { font-size: 12px; color: var(--muted); margin-bottom: 12px; }
.notfound h1 { font-size: clamp(34px, 5vw, 54px); line-height: 1.02; letter-spacing: -.03em; font-weight: 600; }
.notfound-lead { font-size: 15px; color: var(--ink-2); margin-top: 12px; max-width: 56ch; }
.notfound-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; border-top: 1px solid var(--line-strong); margin-top: 32px; padding-top: 24px; }
.notfound-links li { border-bottom: 1px solid var(--line); }
.notfound-links a { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; min-height: 44px; text-decoration: none; font-size: 13px; }
.notfound-links a:hover { text-decoration: underline; text-underline-offset: 3px; }
.notfound-links .icon { width: 15px; height: 15px; color: var(--muted); }
.notfound-note p:not(.kicker) { font-size: 12px; color: var(--muted); line-height: 1.6; margin-bottom: 14px; }

/* ================================================================== dialogs & toast */

dialog.dialog {
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  margin: auto;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 24px 64px rgba(23, 20, 17, .22);
  overflow: hidden;
}
dialog.dialog::backdrop { background: rgba(23, 20, 17, .46); }
dialog.dialog--wide { width: min(720px, calc(100vw - 32px)); }
.dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--line);
}
.dialog-head h2 { font-size: 19px; line-height: 1.25; letter-spacing: -.015em; }
.dialog-desc { font-size: 12px; color: var(--muted); margin-top: 3px; line-height: 1.5; }
.dialog-x {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  min-width: 44px;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  color: var(--muted);
  margin: -6px -6px 0 0;
}
.dialog-x:hover { background: var(--paper); color: var(--ink); }
.dialog-body { padding: 18px 20px; overflow-y: auto; max-height: 60vh; font-size: 14.5px; line-height: 1.6; }
.dialog-body p + p { margin-top: 9px; }
.dialog-body .micro-note { margin-top: 10px; }
.dialog-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  padding: 13px 20px;
  border-top: 1px solid var(--line);
  background: var(--paper);
}
.dialog-warn { display: flex; align-items: flex-start; gap: 7px; border: 1px solid #D6B6B2; background: var(--accent-pale); border-radius: 4px; padding: 10px 11px; font-size: 12px; color: var(--ink-2); }
.dialog-warn .icon { width: 15px; height: 15px; margin-top: 1px; }
.guide-list { counter-reset: none; border-top: 1px solid var(--line); }
.guide-step {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}
.guide-num { font-size: 12px; color: var(--muted); padding-top: 2px; }
.guide-title { display: block; font-size: 12.5px; font-weight: 500; }
.guide-detail { display: block; font-size: 12px; color: var(--muted); margin-top: 1px; line-height: 1.45; }
.guide-state { font-family: var(--mono); font-size: 12px; color: var(--muted); white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; padding-top: 2px; }
.guide-state .icon { width: 13px; height: 13px; }
.guide-state--done { color: var(--ink-2); }
.guide-go { font-family: var(--mono); font-size: 12px; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; display: inline-flex; align-items: center; gap: 3px; padding-top: 2px; min-height: 32px; }
.guide-go .icon { width: 12px; height: 12px; }
.guide-blocked { font-size: 12px; color: var(--muted); max-width: 160px; text-align: right; line-height: 1.4; }
.guide-step.is-done .guide-title { color: var(--ink-2); }

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 10px);
  z-index: 200;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid #3A332B;
  border-radius: 4px;
  padding: 11px 16px;
  font-size: 12px;
  line-height: 1.4;
  max-width: calc(100vw - 32px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .16s var(--ease), transform .16s var(--ease);
  box-shadow: 0 10px 30px rgba(23, 20, 17, .24);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.toast--error { border-color: #8F3630; background: #2A1310; }

/* ================================================================== responsive */

@media (max-width: 1180px) {
  .hero { grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr); gap: 44px; }
  .hero h1 { font-size: clamp(50px, 7vw, 80px); }
  .main { padding-left: 32px; padding-right: 32px; }
  .appbar { padding-left: 32px; padding-right: 32px; }
  .shell-foot { padding-left: 32px; padding-right: 32px; }
  .roster-layout { grid-template-columns: minmax(0, 1fr) 270px; }
  .session-aside .aside-panel { padding: 14px; }
  .student-grid, .lecturer-grid, .admin-grid { grid-template-columns: minmax(0, 1.45fr) minmax(268px, .8fr); }
}

@media (max-width: 1024px) {
  .landing-note { grid-template-columns: 80px minmax(0, 1fr); }
  .landing-note .text-link { grid-column: 2; justify-self: start; }
  .flow-node > a { padding-right: 14px; }
  .flow-node:not(:first-child) > a { padding-left: 14px; }
  .flow-node:last-child > a { padding-left: 14px; }
  .flow-title { font-size: 14px; }
  .flow-detail { font-size: 12px; }
  .student-grid, .lecturer-grid, .admin-grid { grid-template-columns: minmax(0, 1fr); }
  .student-side, .lecturer-side, .admin-side { display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
  .student-side .face-mini, .student-side .record-mini { height: fit-content; }
  .session-aside { order: 0; }
  .aside-sticky { position: static; }
  .roster-layout { grid-template-columns: minmax(0, 1fr); }
  .session-aside { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  .session-aside .aside-sticky { display: contents; }
  .session-aside .aside-actions { grid-column: 1 / -1; }
  .history-grid { grid-template-columns: minmax(0, 1fr); }
  .program-grid { grid-template-columns: minmax(0, 1fr); }
  .audit-explain { grid-template-columns: 1fr; gap: 20px; }
  .progress-section { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .progress-section-head { position: static; }
  .progress-section-head > p:last-child { max-width: 68ch; }
  .hero { gap: 32px; }
  .protocol-title { font-size: 23px; }
}

@media (max-width: 900px) {
  :root { --strip-h: 40px; }
  .table--history { min-width: 650px; }
  .shell { display: block; }
  .rail { display: none; }
  .appbar { display: none; }
  .main { padding: 26px 20px 104px; }
  .shell-foot { padding: 16px 20px 96px; flex-direction: column; gap: 6px; }
  .shell--focus .main { padding: 20px 16px 64px; }
  .shell--focus .shell-foot { display: none; }
  .bottom-nav {
    display: flex;
    align-items: stretch;
    justify-content: center;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 60;
    background: var(--surface);
    border-top: 1px solid var(--line-strong);
    padding: 4px 8px calc(4px + env(safe-area-inset-bottom));
  }
  .bottom-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    flex: 1;
    max-width: 180px;
    min-height: 54px;
    text-decoration: none;
    color: var(--muted);
    font-size: 12px;
    border-radius: 3px;
    position: relative;
  }
  .bottom-link .icon { width: 19px; height: 19px; }
  .bottom-link.is-active { color: var(--ink); font-weight: 500; background: var(--paper); }
  .bottom-link.is-active::before { content: ""; position: absolute; top: -4px; left: 18%; right: 18%; height: 2px; background: var(--ink); }
  .proto-strip { flex-wrap: wrap; gap: 4px; padding: 6px 12px 7px; min-height: 0; }
  .proto-row { width: 100%; justify-content: space-between; gap: 8px; }
  .proto-row--tools { margin-left: 0; gap: 8px; flex-wrap: wrap; }
  .proto-row--main { min-height: 28px; }
  .proto-label { padding-left: 10px; font-size: 12px; }
  .proto-clock { font-size: 12px; }
  .proto-clock-k { display: none; }
  .role-switch { flex: 1 1 auto; }
  .role-switch-k { display: none; }
  .role-btn { flex: 1; padding: 8px 6px; font-size: 12px; min-height: 44px; }
  .proto-actions { flex: 0 0 auto; }
  .proto-btn { font-size: 12px; padding: 8px 7px; min-height: 44px; }
  .proto-btn--reset { padding-left: 9px; }
  .proto-warn { order: 5; width: 100%; font-size: 12px; }
  .page-head { flex-direction: column; gap: 16px; padding-bottom: 20px; margin-bottom: 22px; }
  .page-head h1 { font-size: clamp(27px, 7vw, 34px); }
  .page-head-actions { width: 100%; align-items: stretch; }
  .page-head-actions .select-field { flex: 1; }
  .page-head-actions .select-field select { width: 100%; }
  .page-meta .meta-sep { display: none; }
  .editorial { padding: 0 20px 40px; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 34px; padding-top: 36px; }
  .hero h1 { font-size: clamp(48px, 13vw, 74px); max-width: 11ch; }
  .hero-sub { font-size: 15px; }
  .protocol { border-top-width: 2px; }
  .flow-track { grid-template-columns: minmax(0, 1fr); border-top: 0; border-left: 1px solid var(--line-strong); margin-left: 4px; }
  .flow-node { border-bottom: 1px solid var(--line); }
  .flow-node:last-child { border-bottom: 0; }
  .flow-node > a, .flow-node:not(:first-child) > a, .flow-node:last-child > a {
    padding: 14px 0 14px 20px;
    min-height: 0;
    border-right: 0;
  }
  .flow-node > a::after {
    content: "";
    position: absolute;
    left: -4px;
    top: 20px;
    width: 7px; height: 7px;
    background: var(--line-strong);
    border: 0;
    border-radius: 0;
    width: 8px;
    height: 1px;
    right: auto !important;
    font-size: 0 !important;
  }
  .flow-role { margin-top: 0; }
  .flow-detail { max-width: 50ch; }
  .flow-node > a:hover { background: transparent; }
  .flow-title { font-size: 15px; }
  .landing-split { grid-template-columns: 1fr; }
  .split-block { padding: 30px 0; }
  .split-block + .split-block { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; }
  .landing-note { grid-template-columns: 1fr; gap: 12px; padding: 28px 0; }
  .landing-note .text-link { grid-column: auto; justify-self: start; }
  .landing-note > p:nth-child(2) { font-size: 15px; }
  .landing-foot { align-items: flex-start; }
  .foot-links { gap: 6px 14px; }
  .student-side, .lecturer-side, .admin-side { grid-template-columns: 1fr; }
  .session-times { grid-template-columns: 1fr 1fr; }
  .session-times > div:last-child { grid-column: 1 / -1; }
  .capture-grid, .enroll-grid, .capture-grid--verify { grid-template-columns: minmax(0, 1fr); }
  .capture-side { order: 0; }
  .viewfinder { min-height: 220px; }
  .consent-aside { order: 2; }
  .verify-context { flex-direction: column; gap: 12px; }
  .verify-live { text-align: left; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
  .verify-live p { margin-top: 0; }
  .verify-steps { grid-template-columns: 1fr; border-top: 1px solid var(--line); }
  .vstep { border-right: 0; border-bottom: 1px solid var(--line); grid-template-columns: 22px 1fr auto; grid-template-rows: auto; align-items: center; }
  .vstep-num { grid-row: auto; }
  .vstep-state { grid-column: 3; grid-row: 1; margin-top: 0; }
  .vstep-label { grid-column: 2; grid-row: 1; }
  .location-ok { grid-template-columns: 1fr; }
  .location-diagram { max-width: 340px; }
  .result-facts { grid-template-columns: 1fr; }
  .result-card { padding: 24px 18px; }
  .stamp-wrap { padding: 22px 0 18px; }
  .factor { grid-template-columns: 18px minmax(0, 1fr); }
  .factor-time { grid-column: 2; text-align: left; font-size: 12px; }
  .roster-head { display: none; }
  .roster-toggle { grid-template-columns: minmax(0, 1fr) auto 18px; gap: 8px; padding: 10px 8px; }
  .roster-student { grid-column: 1; grid-row: 1; }
  .roster-status { grid-column: 2; grid-row: 1; }
  .roster-time { grid-column: 1; grid-row: 2; padding-left: 0; font-size: 12px; }
  .roster-method { grid-column: 2; grid-row: 2; text-align: right; font-size: 12px; }
  .roster-chevron { grid-column: 3; grid-row: 1 / span 2; }
  .rosters { padding: 16px; }
  .count-strip { grid-template-columns: repeat(3, 1fr); row-gap: 0; }
  .count-strip > div { padding: 0 10px; }
  .count-strip > div:nth-child(3n) { border-right: 0; }
  .count-strip > div:nth-child(n+4) { border-top: 1px solid var(--line); padding-top: 8px; margin-top: 8px; }
  .count-strip .count-total { border-right: 0; }
  .session-aside { grid-template-columns: 1fr; }
  .session-aside .aside-actions { grid-column: auto; }
  .decisive-facts { grid-template-columns: 1fr 1fr; }
  .program-class-num { width: 150px; }
  .coverage-strip { gap: 12px; }
  .coverage-meter { flex: 1 1 100%; }
  .threshold-legend { margin-left: 0; }
  .risk-grid { grid-template-columns: 1fr; gap: 26px; }
  .progress-hero h1 { font-size: clamp(38px, 10vw, 60px); }
  .progress-top { margin-bottom: 30px; }
  .progress-now { gap: 8px 16px; }
  .progress-count { margin-left: 0; flex: 1 1 100%; }
  .progress-section { padding: 34px 0; }
  .notfound-grid { grid-template-columns: 1fr; gap: 26px; }
  .toolbar, .program-class-head { flex-wrap: wrap; }
  .session-headline { align-items: flex-start; flex-direction: column; gap: 10px; }
  .session-head-state { width: 100%; justify-content: space-between; }
  .dialog-body { max-height: 55vh; }
  .toast { bottom: calc(76px + env(safe-area-inset-bottom)); }
}

@media (max-width: 620px) {
  .proto-label { white-space: normal; line-height: 1.3; }
  .wordmark-text { font-size: 12.5px; }
  .proto-clock .mono { font-size: 12px; }
  .role-switch { order: 1; }
  .proto-actions { order: 2; margin-left: auto; }
  .proto-warn { order: 0; }
  .main { padding-left: 16px; padding-right: 16px; }
  .editorial { padding-left: 16px; padding-right: 16px; }
  .shell-foot { padding-left: 16px; padding-right: 16px; }
  .page-head-actions .btn { flex: 1 1 auto; }
  .hero { padding-bottom: 34px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .hero-honest { margin-top: 16px; }
  .landing-expired { flex-direction: column; align-items: flex-start; }
  .session-times { grid-template-columns: 1fr 1fr; gap: 10px 14px; }
  .session-times > div:last-child { grid-column: 1 / -1; }
  .session-panel { padding: 18px; }
  .session-title { font-size: 23px; }
  .session-live-head { align-items: flex-start; }
  .agenda-row { grid-template-columns: 86px minmax(0, 1fr); }
  .agenda-state { grid-column: 2; }
  .course-row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .course-row-meter { display: flex; align-items: center; gap: 10px; }
  .course-row-meter .meter-wrap { flex: 1; margin-top: 0; }
  .course-row-meter .threshold { margin-top: 0; }
  .consent-list li { grid-template-columns: 24px 1fr; }
  .capture-head { flex-direction: column; gap: 6px; }
  .capture-actions .btn { flex: 1 1 100%; }
  .verify-panel { padding: 18px; }
  .method { grid-template-columns: 22px minmax(0, 1fr); }
  .method-tag { grid-column: 2; padding-top: 0; }
  .verify-actions .btn { flex: 1 1 auto; }
  .verify-actions .btn--quiet { flex: 1 1 100%; }
  .location-fail .panel-actions .btn { flex: 1 1 auto; }
  .result-title { font-size: 38px; }
  .result-actions .btn { flex: 1 1 auto; }
  .handoff { flex-direction: column; align-items: flex-start; gap: 12px; padding: 16px; }
  .handoff-link { white-space: normal; }
  .callout { flex-direction: column; align-items: flex-start; gap: 10px; }
  .callout-action { width: 100%; }
  .callout-action .btn { width: 100%; }
  .section-head { flex-direction: column; gap: 8px; }
  .section-actions { width: 100%; }
  .history-course { display: block; }
  .preview-row { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 8px; }
  .preview-name { grid-column: 1 / -1; white-space: normal; }
  .preview-nim { grid-column: 1; }
  .preview-time { grid-column: 2; align-self: center; }
  .preview-row .status { grid-column: 2; grid-row: 2; justify-self: end; }
  .preview-row .preview-time { grid-row: 2; grid-column: 1; text-align: left; }
  .decisive-facts { grid-template-columns: 1fr; }
  .open-session-row { flex-direction: column; align-items: stretch; }
  .open-session-row .btn { width: 100%; }
  .count-strip { grid-template-columns: repeat(2, 1fr); }
  .count-strip > div { border-right: 1px solid var(--line); }
  .count-strip > div:nth-child(2n) { border-right: 0; }
  .count-strip > div:nth-child(n+3) { border-top: 1px solid var(--line); padding-top: 8px; margin-top: 8px; }
  .count-strip > div:nth-child(odd) { padding-left: 0; }
  .next-row { grid-template-columns: 88px minmax(0, 1fr); }
  .next-state { grid-column: 2; }
  .program-class-head { flex-direction: column; gap: 8px; }
  .program-class-num { width: 100%; }
  .program-class-num .meter-wrap { justify-content: flex-start; }
  .coverage-strip { align-items: flex-start; }
  .import-success { flex-direction: column; align-items: flex-start; }
  .data-foot { flex-direction: column; }
  .audit-filters { width: 100%; }
  .audit-filters .inline-field { flex: 1; flex-wrap: wrap; }
  .audit-filters .inline-field select { min-width: 0; width: 100%; }
  .audit-explain { gap: 14px; }
  .program-grid, .admin-grid, .program-stack { gap: 16px; }
  .program-class-list { grid-template-columns: 1fr; }
  .progress-section-head h2 { max-width: none; }
  .progress-last { align-items: flex-start; }
  .foot-links { gap: 2px 12px; }
  .landing-foot { flex-direction: column; align-items: flex-start; gap: 14px; }
  .foot-note { margin-left: 0; }
  .timeline-table { min-width: 620px; }
  .notfound h1 { font-size: 34px; }
  .dialog-actions .btn { flex: 1 1 auto; }
  .guide-step { grid-template-columns: 24px minmax(0, 1fr); }
  .guide-state, .guide-go, .guide-blocked { grid-column: 2; justify-self: start; text-align: left; }
  .guide-blocked { max-width: none; }
  .status { font-size: 12px; }
  .error-line { font-size: 12px; }
  .section-note { font-size: 12px; }
}

@media (max-width: 390px) {
  .proto-row--main { gap: 6px; }
  .wordmark { gap: 6px; }
  .proto-label { font-size: 12px; padding-left: 6px; }
  .proto-clock .mono { font-size: 12px; }
  .role-btn { font-size: 12px; padding: 4px 4px; }
  .proto-btn { font-size: 12px; padding: 4px 3px; }
  .page-head h1 { font-size: 26px; }
  .hero h1 { font-size: 46px; }
  .btn { padding-left: 12px; padding-right: 12px; }
  .panel { padding: 18px; }
  .filter, .audit-filters { }
  .import-tools .file-input-label { flex: 1 1 auto; justify-content: center; }
  .meter-value { min-width: 28px; }
  .stamp-inner { padding: 10px 20px 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
