/* ============================================================
   GABKIDS attendance — Design System
   Dark / Light · Responsive · Print-ready
   ============================================================ */

@font-face {
    font-family: 'Plus Jakarta Sans';
    src: url('../fonts/plus-jakarta-sans-latin-wght-normal.woff2') format('woff2-variations');
    font-weight: 200 800;
    font-style: normal;
    font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
    --font: 'Plus Jakarta Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --ac: #fafafa;
    --ac-2: #d4d4d8;
    --ac-grad: linear-gradient(135deg, #ffffff, #d8d8dc);
    --ac-contrast: #0b0b0d;
    --ac-soft: rgba(255, 255, 255, .09);
    --ac-shadow: 0 6px 18px rgba(255, 255, 255, .09);
    --ok: #22c55e;   --ok-soft: rgba(34, 197, 94, .13);
    --warn: #f59e0b; --warn-soft: rgba(245, 158, 11, .13);
    --info: #38bdf8; --info-soft: rgba(56, 189, 248, .13);
    --viol: #2dd4bf; --viol-soft: rgba(45, 212, 191, .13);
    --bad: #f87171;  --bad-soft: rgba(248, 113, 113, .13);
    --r-lg: 18px; --r-md: 13px; --r-sm: 9px;
    --sidebar-w: 258px;
    --speed: .16s;
}
:root[data-theme="dark"] {
    --bg: #09090b;
    --bg-grad: radial-gradient(1100px 500px at 85% -5%, rgba(255, 255, 255, .045), transparent 60%),
               radial-gradient(800px 420px at -5% 108%, rgba(255, 255, 255, .028), transparent 60%);
    --surface: #111113;
    --surface-2: #17171a;
    --line: rgba(255, 255, 255, .10);
    --line-soft: rgba(255, 255, 255, .065);
    --tx: #f4f4f5;
    --tx-mut: #9c9ca6;
    --tx-faint: #64646e;
    --shadow: 0 10px 34px rgba(0, 0, 0, .5);
    --shadow-sm: 0 3px 12px rgba(0, 0, 0, .38);
    --topbar-bg: rgba(9, 9, 11, .82);
    --hover: rgba(255, 255, 255, .06);
    --input-bg: rgba(255, 255, 255, .05);
    --ac-text: #fafafa;
}
:root[data-theme="light"] {
    --bg: #f7f7f8;
    --bg-grad: radial-gradient(1100px 500px at 85% -5%, rgba(19, 19, 22, .035), transparent 60%),
               radial-gradient(800px 420px at -5% 108%, rgba(19, 19, 22, .02), transparent 60%);
    --surface: #ffffff;
    --surface-2: #fafafa;
    --line: #e5e5e9;
    --line-soft: #ededf0;
    --tx: #131316;
    --tx-mut: #6b6b76;
    --tx-faint: #a3a3ad;
    --shadow: 0 10px 30px rgba(17, 17, 20, .08);
    --shadow-sm: 0 3px 10px rgba(17, 17, 20, .05);
    --topbar-bg: rgba(247, 247, 248, .85);
    --hover: rgba(5, 150, 105, .06);
    --input-bg: #fbfbfc;
    /* Aksen tema terang = emerald (base tetap putih). Tema gelap tetap monokrom. */
    --ac: #059669;
    --ac-2: #047857;
    --ac-grad: linear-gradient(135deg, #059669, #047857);
    --ac-contrast: #ffffff;
    --ac-soft: rgba(5, 150, 105, .11);
    --ac-shadow: 0 6px 18px rgba(5, 150, 105, .26);
    --ac-text: #047857;
    --ok: #16a34a; --warn: #d97706; --info: #0284c7; --viol: #0d9488; --bad: #dc2626;
}

/* ---------- Reset & base ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
    font: 14.5px/1.55 var(--font);
    background: var(--bg-grad), var(--bg);
    background-attachment: fixed;
    color: var(--tx);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--ac-text); text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, h4 { font-weight: 700; letter-spacing: -.01em; }
.ic { flex: none; vertical-align: -3px; }
.muted { color: var(--tx-mut); }
.faint { color: var(--tx-faint); }
.only-light { display: none; }
:root[data-theme="light"] .only-light { display: inline-flex; }
:root[data-theme="light"] .only-dark { display: none; }
::selection { background: color-mix(in srgb, var(--ac) 24%, transparent); }

/* Scrollbar */
* { scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
*::-webkit-scrollbar { width: 9px; height: 9px; }
*::-webkit-scrollbar-thumb { background: var(--line); border-radius: 8px; }
*::-webkit-scrollbar-track { background: transparent; }

/* ---------- Brand (teks, tanpa logo) ---------- */
.brand { display: inline-flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-size: 21px; font-weight: 800; letter-spacing: -.5px; color: var(--tx); }
.brand-name em {
    font-style: normal;
    background: linear-gradient(92deg, #ffffff, #bdbdc4 60%, #8e8e98);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
:root[data-theme="light"] .brand-name em { background: linear-gradient(92deg, #059669, #047857 65%, #065f46); -webkit-background-clip: text; background-clip: text; }
.brand-sub { font-size: 8.5px; font-weight: 600; letter-spacing: .44em; text-transform: uppercase; color: var(--tx-mut); margin-top: 3px; }
.brand-lg .brand-name { font-size: 40px; }
.brand-lg .brand-sub { font-size: 12px; margin-top: 6px; }

/* ---------- Shell layout ---------- */
.shell { display: flex; min-height: 100vh; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.content { flex: 1; padding: 26px 30px 60px; max-width: 1440px; width: 100%; margin: 0 auto; }

/* ---------- Sidebar ---------- */
.sidebar {
    width: var(--sidebar-w); flex: none;
    background: var(--surface);
    border-right: 1px solid var(--line-soft);
    display: flex; flex-direction: column;
    position: sticky; top: 0; height: 100vh;
    z-index: 50;
}
.side-brand { display: flex; align-items: center; justify-content: space-between; padding: 22px 22px 16px; }
.brand-link { display: inline-flex; }
.sidebar .side-brand .side-close { display: none; }
.side-nav { flex: 1; overflow-y: auto; padding: 6px 14px 14px; }
.nav-sec { font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--tx-faint); padding: 16px 10px 7px; }
.nav-it {
    display: flex; align-items: center; gap: 12px;
    padding: 9.5px 12px; border-radius: var(--r-md);
    color: var(--tx-mut); font-weight: 600; font-size: 13.8px;
    margin-bottom: 2px; transition: var(--speed);
    border: 1px solid transparent;
}
.nav-it:hover { background: var(--hover); color: var(--tx); }
.nav-it.active {
    background: var(--ac-soft); color: var(--ac-text);
    border-color: color-mix(in srgb, var(--ac) 20%, transparent);
}
.nav-it.active .ic { color: var(--ac-text); }
.side-foot {
    border-top: 1px solid var(--line-soft);
    padding: 14px 16px; display: flex; align-items: center; gap: 8px;
}
.side-user { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; color: var(--tx); border-radius: var(--r-md); padding: 6px 8px; }
.side-user:hover { background: var(--hover); }
.side-user-info { min-width: 0; line-height: 1.25; }
.side-user-info b { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-user-info small { color: var(--tx-mut); font-size: 11px; }

/* ---------- Topbar ---------- */
.topbar {
    position: sticky; top: 0; z-index: 40;
    display: flex; align-items: center; gap: 14px;
    padding: 13px 30px;
    background: var(--topbar-bg);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line-soft);
}
.tb-title { font-size: 17.5px; font-weight: 700; white-space: nowrap; }
.tb-burger { display: none; }
.tb-search { position: relative; flex: 1; max-width: 420px; margin-left: auto; }
.tb-search-ic { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--tx-faint); pointer-events: none; }
.tb-search input {
    width: 100%; padding: 9.5px 14px 9.5px 40px;
    border-radius: 12px; border: 1px solid var(--line);
    background: var(--input-bg); color: var(--tx);
    font: inherit; font-size: 13.5px; outline: none; transition: var(--speed);
}
.tb-search input:focus { border-color: var(--ac); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ac) 16%, transparent); }
.tb-results {
    position: absolute; top: calc(100% + 8px); left: 0; right: 0;
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--r-md); box-shadow: var(--shadow);
    overflow: hidden; max-height: 380px; overflow-y: auto;
}
.tb-hit { display: flex; align-items: center; gap: 11px; padding: 10px 14px; color: var(--tx); }
.tb-hit:hover { background: var(--hover); }
.tb-hit .hit-info { min-width: 0; line-height: 1.3; }
.tb-hit b { font-size: 13.5px; display: block; }
.tb-hit small { color: var(--tx-mut); font-size: 11.5px; }
.tb-empty { padding: 14px; text-align: center; color: var(--tx-mut); font-size: 13px; }
.tb-right { display: flex; align-items: center; gap: 9px; }
.tb-clock {
    display: flex; align-items: center; gap: 7px;
    font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums;
    color: var(--tx-mut); padding: 7px 12px;
    border: 1px solid var(--line); border-radius: 11px; background: var(--input-bg);
}
.tb-user { position: relative; }
.tb-user-btn { display: flex; align-items: center; gap: 5px; padding: 4px; border-radius: 12px; }
.tb-user-btn:hover { background: var(--hover); }
.tb-user-cv { color: var(--tx-faint); }
.menu {
    position: absolute; right: 0; top: calc(100% + 9px); min-width: 218px;
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--r-md); box-shadow: var(--shadow);
    padding: 6px; z-index: 60;
}
.menu-head { padding: 9px 12px 10px; line-height: 1.3; border-bottom: 1px solid var(--line-soft); margin-bottom: 5px; }
.menu-head b { font-size: 13.5px; display: block; }
.menu-head small { color: var(--tx-mut); font-size: 11.5px; }
.menu-it { display: flex; align-items: center; gap: 10px; padding: 8.5px 12px; border-radius: var(--r-sm); color: var(--tx); font-size: 13.5px; font-weight: 600; width: 100%; text-align: left; }
.menu-it:hover { background: var(--hover); }
.menu-it.danger { color: var(--bad); }
.menu-sep { height: 1px; background: var(--line-soft); margin: 5px 4px; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 9.5px 17px; border-radius: 12px;
    font-weight: 700; font-size: 13.8px; letter-spacing: .01em;
    border: 1px solid transparent; cursor: pointer; transition: var(--speed);
    white-space: nowrap; text-decoration: none;
}
.btn-primary { background: var(--ac-grad); color: var(--ac-contrast); box-shadow: var(--ac-shadow); }
.btn-primary:hover { filter: brightness(1.09); transform: translateY(-1px); }
.btn-ghost { border-color: var(--line); color: var(--tx); background: var(--surface); }
.btn-ghost:hover { background: var(--hover); }
.btn-soft { background: var(--ac-soft); color: var(--ac-text); }
.btn-soft:hover { background: color-mix(in srgb, var(--ac) 17%, transparent); }
.btn-danger { background: var(--bad); color: #fff; }
.btn-danger:hover { filter: brightness(1.07); }
.btn-danger-soft { background: var(--bad-soft); color: var(--bad); }
.btn-sm { padding: 7px 12px; font-size: 12.8px; border-radius: 10px; }
.btn-lg { padding: 13px 24px; font-size: 15px; border-radius: 14px; }
.btn[disabled] { opacity: .55; pointer-events: none; }
.iconbtn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; border-radius: 11px;
    color: var(--tx-mut); border: 1px solid transparent; transition: var(--speed);
}
.iconbtn:hover { background: var(--hover); color: var(--tx); }
.iconbtn.bordered { border-color: var(--line); background: var(--surface); }

/* ---------- Cards & panels ---------- */
.card {
    background: var(--surface); border: 1px solid var(--line-soft);
    border-radius: var(--r-lg); box-shadow: var(--shadow-sm);
}
.card-pad { padding: 22px; }
.card-head {
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
    padding: 18px 22px; border-bottom: 1px solid var(--line-soft);
}
.card-head h2 { font-size: 15.5px; display: flex; align-items: center; gap: 9px; }
.card-head .spacer, .row .spacer { flex: 1; }
.card-body { padding: 22px; }

/* Page header row */
.pagehead { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.pagehead h2 { font-size: 19px; display: flex; align-items: center; gap: 10px; }
.pagehead .sub { width: 100%; color: var(--tx-mut); font-size: 13.5px; margin-top: -4px; }
.pagehead .actions { margin-left: auto; display: flex; gap: 9px; flex-wrap: wrap; }

/* ---------- Stat cards ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(168px, 1fr)); gap: 14px; margin-bottom: 20px; }
.stat {
    background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-lg);
    padding: 17px 18px; box-shadow: var(--shadow-sm);
    display: flex; flex-direction: column; gap: 9px; position: relative; overflow: hidden;
}
.stat::after { content: ''; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--stat-c, var(--ac)); opacity: .85; }
.stat-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.stat-label { font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--tx-mut); }
.stat-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--stat-c, var(--ac)) 14%, transparent); color: var(--stat-c, var(--ac)); }
.stat-val { font-size: 27px; font-weight: 800; letter-spacing: -.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat-val small { font-size: 13px; color: var(--tx-faint); font-weight: 600; }
.stat-foot { font-size: 12px; color: var(--tx-mut); }

/* ---------- Badges & chips ---------- */
.badge {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px;
    background: var(--hover); color: var(--tx-mut); white-space: nowrap;
}
.badge-sm { font-size: 11px; padding: 2.5px 8px; }
.st-h { background: var(--ok-soft); color: var(--ok); }
.st-t { background: var(--warn-soft); color: var(--warn); }
.st-i { background: var(--info-soft); color: var(--info); }
.st-s { background: var(--viol-soft); color: var(--viol); }
.st-a { background: var(--bad-soft); color: var(--bad); }
.st-n { background: var(--hover); color: var(--tx-faint); }
.chip {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 12px; font-weight: 600; font-family: ui-monospace, 'SF Mono', Menlo, monospace;
    padding: 3.5px 9px; border-radius: 8px;
    background: var(--input-bg); border: 1px solid var(--line); color: var(--tx-mut);
}
.dot-ok, .dot-off { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot-ok { background: var(--ok); box-shadow: 0 0 0 3px var(--ok-soft); }
.dot-off { background: var(--tx-faint); }

/* ---------- Avatar ---------- */
.avatar { border-radius: 50%; overflow: hidden; flex: none; display: inline-grid; place-items: center; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-svg { background: transparent; }
.avatar-svg svg { width: 100%; height: 100%; display: block; }
.avatar-txt {
    font-weight: 800; color: #fff; letter-spacing: .02em;
    background: linear-gradient(135deg, hsl(var(--h, 230) 22% 44%), hsl(calc(var(--h, 230) + 38) 22% 34%));
}

/* ---------- Alerts & toasts ---------- */
.alert {
    display: flex; align-items: center; gap: 11px;
    padding: 13px 16px; border-radius: var(--r-md); margin-bottom: 18px;
    font-weight: 600; font-size: 13.6px; border: 1px solid;
}
.alert-ok { background: var(--ok-soft); color: var(--ok); border-color: color-mix(in srgb, var(--ok) 30%, transparent); }
.alert-error { background: var(--bad-soft); color: var(--bad); border-color: color-mix(in srgb, var(--bad) 30%, transparent); }
.alert-warn { background: var(--warn-soft); color: var(--warn); border-color: color-mix(in srgb, var(--warn) 30%, transparent); }
.alert-x { margin-left: auto; opacity: .7; display: inline-flex; }
.alert-x:hover { opacity: 1; }
.toasts { position: fixed; right: 18px; bottom: 18px; z-index: 200; display: flex; flex-direction: column; gap: 9px; max-width: min(92vw, 380px); }
.toast {
    display: flex; align-items: center; gap: 10px;
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--r-md); box-shadow: var(--shadow);
    padding: 12px 15px; font-weight: 600; font-size: 13.5px;
    animation: toastIn .22s ease;
}
.toast.ok .ic { color: var(--ok); } .toast.err .ic { color: var(--bad); } .toast.warn .ic { color: var(--warn); }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } }
.toast.out { opacity: 0; transform: translateY(6px); transition: .25s; }

/* ---------- Forms ---------- */
.field { margin-bottom: 15px; }
.field label { display: block; font-size: 12.8px; font-weight: 700; margin-bottom: 6px; }
.field label small { color: var(--tx-faint); font-weight: 500; }
.input, select.input, textarea.input {
    width: 100%; padding: 10px 13px;
    border-radius: 11px; border: 1px solid var(--line);
    background: var(--input-bg); color: var(--tx);
    font: inherit; font-size: 13.8px; outline: none; transition: var(--speed);
}
.input:focus { border-color: var(--ac); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ac) 15%, transparent); }
textarea.input { resize: vertical; min-height: 84px; }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--tx-mut) 50%), linear-gradient(135deg, var(--tx-mut) 50%, transparent 50%); background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
.input[readonly] { opacity: .75; }
.formgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.formgrid .full { grid-column: 1 / -1; }
.hint { font-size: 12px; color: var(--tx-faint); margin-top: 5px; line-height: 1.5; }
.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; font-size: 13.5px; }
.switch input { position: absolute; opacity: 0; }
.sw-track { width: 40px; height: 23px; border-radius: 999px; background: var(--line); transition: var(--speed); flex: none; }
.sw-track::after { content: ''; position: absolute; top: 3.5px; left: 4px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: var(--speed); box-shadow: 0 1px 4px rgba(0,0,0,.3); }
.switch input:checked + .sw-track { background: var(--ac); }
.switch input:checked + .sw-track::after { background: var(--ac-contrast); box-shadow: none; }
.switch input:checked + .sw-track::after { transform: translateX(16px); }
.checkrow { display: flex; gap: 14px; flex-wrap: wrap; }
.checkbox { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 13.5px; cursor: pointer; }
.checkbox input, .rowcheck { width: 16px; height: 16px; accent-color: var(--ac); cursor: pointer; }
.radio-cardset { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.radio-card { position: relative; cursor: pointer; }
.radio-card input { position: absolute; opacity: 0; }
.radio-card span {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    border: 1.5px solid var(--line); border-radius: var(--r-md);
    padding: 11px; font-weight: 700; font-size: 13.3px; color: var(--tx-mut); transition: var(--speed);
}
.radio-card input:checked + span { border-color: var(--ac); color: var(--ac-text); background: var(--ac-soft); }

/* ---------- Segmented / tabs ---------- */
.seg { display: inline-flex; background: var(--input-bg); border: 1px solid var(--line); border-radius: 12px; padding: 3.5px; gap: 3px; }
.seg a, .seg button {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 7px 15px; border-radius: 9px; font-weight: 700; font-size: 13.2px;
    color: var(--tx-mut); transition: var(--speed); text-decoration: none;
}
.seg .on { background: var(--surface); color: var(--tx); box-shadow: var(--shadow-sm); }
:root[data-theme="dark"] .seg .on { background: rgba(255, 255, 255, .1); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line-soft); margin-bottom: 20px; overflow-x: auto; }
.tab {
    padding: 10px 16px; font-weight: 700; font-size: 13.6px; color: var(--tx-mut);
    border-bottom: 2.5px solid transparent; margin-bottom: -1px; white-space: nowrap;
    display: inline-flex; align-items: center; gap: 8px;
}
.tab.on { color: var(--ac-text); border-color: var(--ac); }
.tab:hover { color: var(--tx); }

/* ---------- Tables ---------- */
.table-scroll { overflow-x: auto; border-radius: var(--r-lg); }
.card > .table-scroll { border-radius: 0 0 var(--r-lg) var(--r-lg); }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13.6px; }
.tbl th {
    text-align: left; font-size: 11.4px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    color: var(--tx-faint); padding: 12px 16px; border-bottom: 1px solid var(--line-soft);
    background: var(--surface-2); white-space: nowrap;
}
.tbl td { padding: 11px 16px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr { transition: background var(--speed); }
.tbl tbody tr:hover { background: var(--hover); }
.tbl .tnum { font-variant-numeric: tabular-nums; }
.tbl .tr-off td { opacity: .55; }
.cell-person { display: flex; align-items: center; gap: 11px; min-width: 170px; }
.cell-person .cp-info { line-height: 1.3; min-width: 0; }
.cell-person b { font-size: 13.6px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 230px; }
.cell-person small { color: var(--tx-mut); font-size: 11.8px; }
.rowactions { display: flex; gap: 3px; justify-content: flex-end; }
.rowactions .iconbtn { width: 32px; height: 32px; border-radius: 9px; }

/* ---------- Pagination ---------- */
.pagination { display: flex; gap: 5px; align-items: center; padding: 15px 16px; flex-wrap: wrap; }
.pagebtn {
    min-width: 33px; height: 33px; padding: 0 9px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 9px; border: 1px solid var(--line);
    font-size: 13px; font-weight: 700; color: var(--tx-mut); background: var(--surface);
}
.pagebtn:hover { background: var(--hover); color: var(--tx); }
.pagebtn.active { background: var(--ac-grad); border-color: transparent; color: var(--ac-contrast); }
.pagebtn.disabled { opacity: .4; pointer-events: none; }
.pagedots { color: var(--tx-faint); padding: 0 3px; }

/* ---------- Modal ---------- */
.modal-backdrop {
    position: fixed; inset: 0; z-index: 150;
    background: rgba(5, 8, 20, .62); backdrop-filter: blur(3px);
    display: grid; place-items: center; padding: 18px;
    animation: fadeIn .16s ease;
}
.modal-backdrop[hidden] { display: none; }
@keyframes fadeIn { from { opacity: 0; } }
.modal {
    background: var(--surface); border: 1px solid var(--line);
    border-radius: 20px; box-shadow: var(--shadow);
    width: 100%; max-width: 520px; max-height: calc(100vh - 40px); overflow-y: auto;
    padding: 24px; animation: popIn .2s cubic-bezier(.2, 1.2, .4, 1);
}
@keyframes popIn { from { opacity: 0; transform: scale(.96) translateY(8px); } }
.modal-sm { max-width: 400px; text-align: center; }
.modal h3 { font-size: 17px; margin-bottom: 7px; }
.modal-head { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.modal-head h3 { margin: 0; flex: 1; }
.modal-actions { display: flex; gap: 10px; justify-content: center; margin-top: 20px; }
.modal-actions.end { justify-content: flex-end; }
.modal-icwrap { width: 58px; height: 58px; margin: 2px auto 14px; border-radius: 50%; display: grid; place-items: center; background: var(--bad-soft); color: var(--bad); }
.modal-icwrap.okc { background: var(--ok-soft); color: var(--ok); }
.modal-icwrap.acc { background: var(--ac-soft); color: var(--ac-text); }

/* ---------- Empty state & skeleton ---------- */
.empty { text-align: center; padding: 46px 20px; color: var(--tx-mut); }
.empty .ic { color: var(--tx-faint); margin-bottom: 12px; }
.empty b { display: block; font-size: 15px; color: var(--tx); margin-bottom: 4px; }
.empty p { font-size: 13.3px; max-width: 380px; margin: 0 auto; }
.skel { background: linear-gradient(90deg, var(--hover) 25%, var(--line-soft) 50%, var(--hover) 75%); background-size: 200% 100%; animation: skel 1.2s infinite; border-radius: 8px; }
@keyframes skel { to { background-position: -200% 0; } }

/* ---------- Dashboard ---------- */
.dash-grid { display: grid; grid-template-columns: 1fr 360px; gap: 18px; align-items: start; }
.dash-col { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.chart-wrap { padding: 8px 16px 14px; }
.chart-legend { display: flex; gap: 15px; flex-wrap: wrap; padding: 0 22px 16px; font-size: 12px; font-weight: 600; color: var(--tx-mut); }
.chart-legend i { width: 10px; height: 10px; border-radius: 3.5px; display: inline-block; margin-right: 6px; }
.feed { max-height: 430px; overflow-y: auto; }
.feed-it { display: flex; align-items: center; gap: 11px; padding: 11px 20px; border-bottom: 1px solid var(--line-soft); }
.feed-it:last-child { border-bottom: 0; }
.feed-info { flex: 1; min-width: 0; line-height: 1.3; }
.feed-info b { display: block; font-size: 13.4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed-info small { color: var(--tx-mut); font-size: 11.6px; }
.feed-time { font-size: 12.6px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--tx-mut); }
.donut-wrap { display: flex; align-items: center; gap: 22px; padding: 18px 22px; flex-wrap: wrap; }
.donut-legend { flex: 1; min-width: 150px; display: flex; flex-direction: column; gap: 8px; }
.dl-row { display: flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 600; }
.dl-row i { width: 10px; height: 10px; border-radius: 3.5px; }
.dl-row b { margin-left: auto; font-variant-numeric: tabular-nums; }
.progressbar { height: 7px; border-radius: 99px; background: var(--line-soft); overflow: hidden; }
.progressbar i { display: block; height: 100%; border-radius: 99px; background: var(--ac-grad); }

/* ---------- Scan Station ---------- */
.scan-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.scan-cam-box { position: relative; border-radius: var(--r-lg); overflow: hidden; background: #05070f; aspect-ratio: 4 / 3.1; display: grid; place-items: center; }
.scan-cam-box video { width: 100% !important; height: 100% !important; object-fit: cover; }
#qrReader { width: 100%; height: 100%; border: 0 !important; }
#qrReader video { object-fit: cover; }
.scan-off { text-align: center; color: #71717a; padding: 30px; }
.scan-off .ic { margin-bottom: 12px; opacity: .8; }
.scan-frame { position: absolute; inset: 10px; pointer-events: none; z-index: 5; border-radius: 14px; }
.scan-frame .sf-c { position: absolute; width: 34px; height: 34px; border: 3px solid rgba(255, 255, 255, .92); }
.scan-frame .sf-c.c1 { left: 0; top: 0; border-right: 0; border-bottom: 0; border-top-left-radius: 14px; }
.scan-frame .sf-c.c2 { right: 0; top: 0; border-left: 0; border-bottom: 0; border-top-right-radius: 14px; }
.scan-frame .sf-c.c3 { left: 0; bottom: 0; border-right: 0; border-top: 0; border-bottom-left-radius: 14px; }
.scan-frame .sf-c.c4 { right: 0; bottom: 0; border-left: 0; border-top: 0; border-bottom-right-radius: 14px; }
.scan-laser { position: absolute; left: 4%; right: 4%; top: 6%; height: 2.5px; background: linear-gradient(90deg, transparent, #ffffff, transparent); animation: laserY 2.4s ease-in-out infinite; border-radius: 4px; }
@keyframes laserY { 0%, 100% { top: 6%; opacity: .3; } 50% { top: 92%; opacity: 1; } }
.sf-hint { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); white-space: nowrap; font-size: 11.5px; font-weight: 700; letter-spacing: .01em; color: #fff; background: rgba(9, 11, 20, .55); backdrop-filter: blur(5px); padding: 5px 13px; border-radius: 999px; }
#qrReader.mirrored video { transform: scaleX(-1); }
.scan-modes { display: flex; gap: 9px; margin-bottom: 14px; flex-wrap: wrap; }
.scan-result { min-height: 265px; display: grid; place-items: center; padding: 26px 22px; text-align: center; position: relative; overflow: hidden; }
.scan-result .sr-idle { color: var(--tx-mut); }
.scan-result .sr-idle .ic { opacity: .5; margin-bottom: 12px; }
.sr-card { animation: popIn .25s cubic-bezier(.2, 1.2, .4, 1); }
.sr-card .avatar { margin: 0 auto 13px; box-shadow: 0 0 0 4px var(--surface), 0 0 0 6.5px var(--sr-ring, var(--ok)); }
.sr-name { font-size: 21px; font-weight: 800; letter-spacing: -.01em; }
.sr-sub { color: var(--tx-mut); font-weight: 600; font-size: 13.5px; margin: 3px 0 13px; }
.sr-time { margin-top: 11px; font-size: 13px; color: var(--tx-mut); font-weight: 600; }
.sr-err .modal-icwrap { margin-bottom: 12px; }
.rfid-pulse { display: inline-flex; align-items: center; gap: 9px; font-size: 12.6px; font-weight: 700; color: var(--ac-text); background: var(--ac-soft); border: 1px solid color-mix(in srgb, var(--ac) 22%, transparent); padding: 7px 13px; border-radius: 999px; }
.rfid-pulse i { width: 8px; height: 8px; border-radius: 50%; background: var(--ac); animation: pulse 1.4s infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ac) 45%, transparent); } 60% { box-shadow: 0 0 0 7px transparent; } }
body.kiosk .sidebar, body.kiosk .topbar, body.kiosk .bottnav { display: none !important; }
body.kiosk .content { max-width: 1160px; padding-top: 20px; }
.kiosk-head { display: none; align-items: center; gap: 14px; margin-bottom: 18px; }
body.kiosk .kiosk-head { display: flex; }
.kiosk-clock { margin-left: auto; text-align: right; line-height: 1.15; }
.kiosk-clock b { font-size: 26px; font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.kiosk-clock small { color: var(--tx-mut); font-weight: 600; font-size: 12.5px; }

/* ---------- Person detail ---------- */
.person-grid { display: grid; grid-template-columns: 330px 1fr; gap: 18px; align-items: start; }
.person-side { text-align: center; padding: 26px 22px; }
.person-side .avatar { margin: 0 auto 14px; box-shadow: 0 0 0 4px var(--surface), 0 0 0 6px var(--ac-soft); }
.person-side h2 { font-size: 18.5px; }
.person-side .muted { font-size: 13px; }
.person-qr { background: #fff; border-radius: 14px; padding: 12px; display: inline-block; margin: 16px auto 6px; box-shadow: var(--shadow-sm); border: 1px solid var(--line-soft); }
.person-qr svg { display: block; width: 148px; height: 148px; }
.kv { display: grid; grid-template-columns: 130px 1fr; gap: 8px 14px; font-size: 13.6px; padding: 4px 0; }
.kv dt { color: var(--tx-mut); font-weight: 600; }
.kv dd { font-weight: 600; word-break: break-word; }
.minical { display: flex; gap: 5px; flex-wrap: wrap; }
.minical .mc { width: 30px; height: 30px; border-radius: 8.5px; display: grid; place-items: center; font-size: 11.4px; font-weight: 700; background: var(--hover); color: var(--tx-faint); }
.minical .mc.mx-H { background: var(--ok-soft); color: var(--ok); }
.minical .mc.mx-T { background: var(--warn-soft); color: var(--warn); }
.minical .mc.mx-I { background: var(--info-soft); color: var(--info); }
.minical .mc.mx-S { background: var(--viol-soft); color: var(--viol); }
.minical .mc.mx-A { background: var(--bad-soft); color: var(--bad); }

/* ---------- ID Cards (layar) ---------- */
.cardlist-scroll { max-height: 430px; overflow-y: auto; }
.cardpick { display: flex; align-items: center; gap: 10px; padding: 8px 16px; border-bottom: 1px solid var(--line-soft); font-size: 13.4px; }
.cardpick:last-child { border-bottom: 0; }
.cardpick b { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.cardpick small { color: var(--tx-mut); }

/* Kartu ID — ukuran CR80 85.6 x 54 mm */
.idcard {
    width: 85.6mm; height: 54mm; border-radius: 3.2mm;
    position: relative; overflow: hidden; flex: none;
    font-family: var(--font);
    display: flex; flex-direction: column;
    box-shadow: 0 6px 20px rgba(2, 6, 23, .18);
    page-break-inside: avoid; break-inside: avoid;
}
.idcard * { line-height: 1.25; }
.idcard.c-light { background: #fff; color: #17203c; }
.idcard.c-dark { background: linear-gradient(150deg, #0c0c0e 0%, #161619 55%, #202024 100%); color: #f1f1f3; }
.idc-band { height: 10.4mm; flex: none; display: flex; align-items: center; justify-content: space-between; padding: 0 4.6mm 0 5mm; position: relative; }
.c-light .idc-band { background: linear-gradient(115deg, #101013, #2b2b31 75%, #3c3c44); color: #fff; }
.c-dark .idc-band { border-bottom: .35mm solid rgba(255, 255, 255, .22); }
.idc-brand { font-size: 3.55mm; font-weight: 800; letter-spacing: -.1mm; white-space: nowrap; }
.idc-brand em { font-style: normal; }
.c-light .idc-brand em { color: #c9c9d2; }
.c-dark .idc-brand em { background: linear-gradient(92deg, #ffffff, #9d9da8); -webkit-background-clip: text; background-clip: text; color: transparent; }
.idc-brand small { display: block; font-size: 1.35mm; font-weight: 700; letter-spacing: .62mm; text-transform: uppercase; opacity: .85; margin-top: .35mm; }
.idc-type { font-size: 1.85mm; font-weight: 800; letter-spacing: .5mm; text-transform: uppercase; text-align: right; opacity: .95; }
.idc-type small { display: block; font-size: 1.55mm; font-weight: 600; letter-spacing: .15mm; text-transform: none; opacity: .8; margin-top: .3mm; max-width: 34mm; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.idc-body { flex: 1; display: flex; align-items: center; gap: 3.6mm; padding: 0 4.6mm 0 5mm; min-height: 0; }
.idc-photo { width: 15.5mm; height: 15.5mm; border-radius: 50%; overflow: hidden; flex: none; display: grid; place-items: center; font-size: 5mm; font-weight: 800; color: #fff; background: linear-gradient(135deg, hsl(var(--h, 230) 22% 42%), hsl(calc(var(--h, 230) + 38) 22% 32%)); }
.idc-photo img { width: 100%; height: 100%; object-fit: cover; }
.idc-info { flex: 1; min-width: 0; }
.idc-name { display: block; font-size: 3.4mm; font-weight: 800; letter-spacing: -.05mm; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.idc-code { display: block; font-size: 2.25mm; font-weight: 700; font-family: ui-monospace, Menlo, monospace; opacity: .75; margin-top: .5mm; }
.idc-kelas { display: inline-block; font-size: 2.05mm; font-weight: 700; margin-top: 1.1mm; padding: .55mm 1.9mm; border-radius: 99mm; }
.c-light .idc-kelas { background: #ececef; color: #18181b; }
.c-dark .idc-kelas { background: rgba(255, 255, 255, .13); color: #e4e4e7; }
.idc-qr { flex: none; background: #fff; border-radius: 1.7mm; padding: 1.15mm; }
.c-light .idc-qr { border: .3mm solid #e6e6ea; }
.idc-qr svg { display: block; width: 16.2mm; height: 16.2mm; }
.idc-foot { flex: none; font-size: 1.62mm; padding: 0 5mm 1.7mm; opacity: .62; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.idc-back { padding: 4.2mm 5mm; display: flex; flex-direction: column; }
.idc-back h5 { font-size: 2.5mm; font-weight: 800; letter-spacing: .3mm; text-transform: uppercase; margin-bottom: 1.6mm; }
.idc-back ol { padding-left: 3.4mm; font-size: 1.95mm; display: flex; flex-direction: column; gap: .75mm; flex: 1; }
.idc-back .idc-contact { font-size: 1.8mm; opacity: .7; border-top: .25mm solid currentColor; padding-top: 1.4mm; margin-top: 1.6mm; }
.c-light .idc-back .idc-contact { border-color: #e6e6ea; }
.cards-preview { display: flex; flex-wrap: wrap; gap: 14px; padding: 22px; justify-content: center; background: var(--surface-2); border-radius: 0 0 var(--r-lg) var(--r-lg); }

/* ---------- Matrix laporan ---------- */
.mx { font-size: 12px; }
.mx th, .mx td { padding: 6px 6px; text-align: center; border-bottom: 1px solid var(--line-soft); }
.mx th { font-size: 10px; }
.mx .mx-name { text-align: left; white-space: nowrap; max-width: 190px; overflow: hidden; text-overflow: ellipsis; font-weight: 600; font-size: 12.4px; }
.mx-cell { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; font-weight: 800; font-size: 10.5px; }
.mx-H { background: var(--ok-soft); color: var(--ok); }
.mx-T { background: var(--warn-soft); color: var(--warn); }
.mx-I { background: var(--info-soft); color: var(--info); }
.mx-S { background: var(--viol-soft); color: var(--viol); }
.mx-A { background: var(--bad-soft); color: var(--bad); }
.mx-off { color: var(--tx-faint); opacity: .5; }
.mx-hol { background: var(--bad-soft); opacity: .55; border-radius: 6px; }

/* ---------- Bottom nav (mobile) ---------- */
.bottnav { display: none; }

/* ---------- Filter bar ---------- */
.filterbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.filterbar .input { width: auto; }
.filterbar .grow { flex: 1; min-width: 160px; }
.bulkbar {
    display: none; align-items: center; gap: 10px; flex-wrap: wrap;
    background: var(--ac-soft); border: 1px solid color-mix(in srgb, var(--ac) 22%, transparent);
    padding: 10px 15px; border-radius: var(--r-md); margin-bottom: 14px; font-weight: 600; font-size: 13.4px;
}
.bulkbar.show { display: flex; }

/* ---------- Login ---------- */
.login-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; }
.login-hero {
    position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between;
    padding: 46px 52px;
    background: radial-gradient(900px 480px at 90% -10%, rgba(255, 255, 255, .09), transparent 55%),
                radial-gradient(700px 420px at -10% 110%, rgba(255, 255, 255, .05), transparent 55%),
                linear-gradient(160deg, #09090b, #131316 60%, #1a1a1e);
    color: #f1f1f3;
}
.login-hero .brand-name { color: #fff; }
.login-hero .brand-name em { background: linear-gradient(92deg, #ffffff, #bdbdc4 60%, #8e8e98); -webkit-background-clip: text; background-clip: text; }
.login-hero-mid h2 { font-size: clamp(26px, 3.2vw, 38px); line-height: 1.18; letter-spacing: -.02em; max-width: 430px; }
.login-hero-mid h2 em { font-style: normal; background: linear-gradient(92deg, #ffffff, #cfcfd6 55%, #96969f); -webkit-background-clip: text; background-clip: text; color: transparent; }
.login-hero-mid p { color: #9d9da5; margin-top: 14px; max-width: 400px; font-size: 14.5px; }
.login-feats { display: flex; flex-direction: column; gap: 11px; margin-top: 30px; }
.login-feat { display: flex; align-items: center; gap: 11px; font-size: 13.6px; font-weight: 600; color: #bcbcc4; }
.login-feat .ic { color: #e8e8ec; background: rgba(255, 255, 255, .09); border-radius: 9px; padding: 5.5px; width: 29px; height: 29px; }
.login-hero-foot { color: #6b6b74; font-size: 12.3px; }
.login-panel { display: grid; place-items: center; padding: 40px 24px; position: relative; }
.login-box { width: 100%; max-width: 400px; }
.login-box h1 { font-size: 22px; margin-bottom: 5px; }
.login-box > p { color: var(--tx-mut); font-size: 13.8px; margin-bottom: 26px; }
.login-theme { position: absolute; top: 20px; right: 22px; }
.login-school { display: flex; align-items: center; gap: 10px; margin-bottom: 24px; padding: 11px 14px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); font-weight: 700; font-size: 13.5px; }
.login-school .ic { color: var(--ac-text); }
.pwd-wrap { position: relative; }
.pwd-wrap .input { padding-right: 44px; }
.pwd-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); }

/* ---------- Print umum ---------- */
#printArea { display: none; }
@media print {
    body { background: #fff !important; }
    .sidebar, .topbar, .bottnav, .toasts, .content > *:not(#printArea), .alert { display: none !important; }
    .content { padding: 0 !important; max-width: none !important; }
    #printArea { display: block !important; }
    @page { margin: 8mm; }
}
body.print-cards #printArea { background: #fff; }
.print-cards-sheet { display: flex; flex-wrap: wrap; gap: 4mm; align-content: flex-start; }
@media print {
    .print-cards-sheet .idcard { box-shadow: none; outline: .3mm dashed #c9cede; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .idcard { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
.rpt { font-size: 12.4px; color: #101528; }
.rpt-head { text-align: center; border-bottom: 2.5px solid #101528; padding-bottom: 10px; margin-bottom: 14px; }
.rpt-head h2 { font-size: 17px; }
.rpt-head .rh-school { font-size: 14px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.rpt-head small { color: #4b5470; }
.rpt table { width: 100%; border-collapse: collapse; }
.rpt th, .rpt td { border: 1px solid #b9c0d4; padding: 5px 8px; text-align: left; }
.rpt th { background: #eef0f7; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; }
.rpt .c { text-align: center; }
.rpt-sign { display: flex; justify-content: flex-end; margin-top: 26px; }
.rpt-sign .sig { text-align: center; font-size: 12.4px; }
.rpt-sign .sig .sp { height: 64px; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
    .dash-grid { grid-template-columns: 1fr; }
    .scan-grid { grid-template-columns: 1fr; }
    .person-grid { grid-template-columns: 1fr; }
}
@media (max-width: 1024px) {
    .login-wrap { grid-template-columns: 1fr; }
    .login-hero { display: none; }
}
@media (min-width: 1025px) {
    .hide-desktop-brand { display: none; }
}
@media (max-width: 900px) {
    .sidebar {
        position: fixed; left: 0; top: 0; bottom: 0; height: 100dvh;
        transform: translateX(-105%); transition: transform .24s cubic-bezier(.3, .8, .3, 1);
        box-shadow: var(--shadow); width: min(300px, 84vw); z-index: 120;
    }
    body.side-open .sidebar { transform: none; }
    .backdrop { position: fixed; inset: 0; background: rgba(5, 8, 20, .55); z-index: 110; opacity: 0; pointer-events: none; transition: opacity .2s; }
    body.side-open .backdrop { opacity: 1; pointer-events: auto; }
    .sidebar .side-brand .side-close { display: inline-flex; }
    .tb-burger { display: inline-flex; }
    .topbar { padding: 11px 16px; gap: 10px; }
    .tb-search { display: none; }
    .tb-clock { display: none; }
    .content { padding: 18px 16px 92px; }
    .bottnav {
        display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 100;
        background: var(--topbar-bg); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
        border-top: 1px solid var(--line-soft);
        padding: 7px 8px calc(7px + env(safe-area-inset-bottom));
    }
    .bn-it {
        flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
        font-size: 10.4px; font-weight: 700; color: var(--tx-faint); padding: 5px 2px; border-radius: 11px;
    }
    .bn-it.active { color: var(--ac-text); }
    .formgrid { grid-template-columns: 1fr; }
    .stats { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .stat-val { font-size: 23px; }
    .pagehead .actions { width: 100%; }
    .modal { padding: 20px; }
    .kv { grid-template-columns: 108px 1fr; }
}
@media (max-width: 480px) {
    .stats { grid-template-columns: repeat(2, 1fr); }
    .card-head, .card-body, .card-pad { padding-left: 16px; padding-right: 16px; }
    .btn { padding: 9px 13px; font-size: 13.2px; }
    .seg a, .seg button { padding: 7px 11px; font-size: 12.6px; }
}

/* ---------- Print: sembunyikan elemen layar saat mode kartu/laporan ---------- */
@media print {
    body.kiosk .content > * { display: none !important; }
    body.kiosk .content #printArea { display: block !important; }
}

/* ============================================================
   Developer Console & Notifikasi (v1.2)
   ============================================================ */
.tb-sub { font-size: 11.6px; color: var(--tx-mut); font-weight: 600; margin-top: 1px; }
.latency-chip.lat-slow { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 35%, transparent); }

/* Bell notifikasi */
.tb-bell { position: relative; }
.tb-bell > .iconbtn { position: relative; }
.bell-badge {
    position: absolute; top: 3px; right: 3px; min-width: 16px; height: 16px;
    border-radius: 99px; background: var(--bad); color: #fff;
    font-size: 9.5px; font-weight: 800; display: grid; place-items: center;
    padding: 0 4px; box-shadow: 0 0 0 2px var(--surface);
}
.menu-bell { min-width: 330px; max-width: 92vw; }
.bell-it { display: flex; gap: 11px; padding: 11px 13px; border-radius: var(--r-sm); cursor: pointer; align-items: flex-start; }
.bell-it:hover { background: var(--hover); }
.bell-it.unread { background: var(--ac-soft); }
.bell-it.unread:hover { background: color-mix(in srgb, var(--ac) 13%, transparent); }
.bell-it + .bell-it { margin-top: 3px; }
.bell-ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; flex: none; }
.bell-info { flex: 1; min-width: 0; line-height: 1.35; }
.bell-info b { font-size: 13px; display: block; }
.bell-info small { display: block; color: var(--tx-mut); font-size: 11.6px; margin-top: 1px; }
.bell-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ac); flex: none; margin-top: 5px; }

/* Grid ekstensi PHP */
.ext-grid { display: flex; flex-wrap: wrap; gap: 8px; }

/* AI chat */
.ai-chat { flex: 1; overflow-y: auto; padding: 20px 18px; display: flex; flex-direction: column; gap: 13px; min-height: 300px; }
.ai-msg { display: flex; }
.ai-msg.ai-user { justify-content: flex-end; }
.ai-bubble {
    max-width: 82%; padding: 11px 15px; border-radius: 15px;
    font-size: 13.7px; line-height: 1.62; white-space: pre-wrap; word-break: break-word;
    background: var(--input-bg); border: 1px solid var(--line-soft);
}
.ai-user .ai-bubble { background: var(--ac-grad); color: var(--ac-contrast); border: 0; border-bottom-right-radius: 5px; }
.ai-bot .ai-bubble { border-bottom-left-radius: 5px; }

/* ---------- Kartu HTML kustom (Card Designer) ---------- */
.cardhtml { break-inside: avoid; page-break-inside: avoid; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.cardhtml * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
@media print {
    .print-cards-sheet .cardhtml { outline: .3mm dashed #c9cede; }
}

/* ---------- Footer kredit aplikasi ---------- */
.appfoot { text-align: center; color: var(--tx-faint); font-size: 12px; padding: 20px 16px 26px; border-top: 1px solid var(--line-soft); margin-top: 8px; }
.appfoot b { color: var(--tx-mut); font-weight: 700; }
.appfoot a { color: var(--ac-text); font-weight: 700; }
@media (max-width: 900px) { .appfoot { margin-bottom: 68px; } }
@media print { .appfoot { display: none; } }

/* ---------- Login hero: konteks gereja + kredit ---------- */
.login-hero-tag { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 700; letter-spacing: .02em; color: #d4d4d8; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); padding: 6px 13px; border-radius: 999px; margin-bottom: 16px; }
.login-hero-tag .ic { color: #a7f3d0; }
.login-hero-credit { margin-top: 7px; color: #7a7a86; font-size: 12px; }
.login-hero-credit b { color: #c9cdd6; font-weight: 700; }
.appfoot-credit { margin-top: 4px; font-size: 11.5px; color: var(--tx-faint); }
.appfoot-credit b { color: var(--ac-text); font-weight: 700; }

/* ============================================================
   MODE KIOSK — Tema Anak-Anak "Animatix" (taman bermain)
   Hanya aktif saat body.kiosk — mode lain tidak berubah.
   ============================================================ */
@font-face {
    font-family: 'Fredoka';
    src: url('../fonts/fredoka-latin-wght-normal.woff2') format('woff2-variations');
    font-weight: 300 700;
    font-style: normal;
    font-display: swap;
}

.kiosk-scene { display: none; }
#kioskTicker { display: none; }

/* ---- Kunci layar penuh: tanpa scroll, tanpa terpotong ---- */
html.kiosk-lock, html.kiosk-lock body { overflow: hidden !important; height: 100dvh; }
body.kiosk .content {
    position: fixed; inset: 0; z-index: 60;
    max-width: none; width: auto; margin: 0;
    padding: 12px 20px clamp(150px, 23vh, 260px);
    display: flex; flex-direction: column; gap: 10px;
    overflow: hidden;
    background: linear-gradient(#4fb3ff, #8ed2ff 42%, #c8ecff 68%, #e8f8ff);
}
body.kiosk .appfoot { display: none; }

/* ---- Scene ---- */
body.kiosk .kiosk-scene { display: block; position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
body.kiosk .kiosk-head, body.kiosk .scan-grid, body.kiosk .alert { position: relative; z-index: 2; }
.k-ground { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: clamp(215px, 31vh, 330px); }

.k-sun { position: absolute; top: -34px; left: 36%; width: clamp(96px, 9vw, 132px); animation: ksun 6s ease-in-out infinite; }
.k-sun .k-rays { transform-origin: 60px 60px; animation: kspin 26s linear infinite; }
@keyframes kspin { to { transform: rotate(360deg); } }
@keyframes ksun { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }

.k-cloud { position: absolute; background: #fff; border-radius: 60px; opacity: .95; animation: kdrift linear infinite; box-shadow: 0 6px 0 rgba(60, 140, 200, .08) inset; }
.k-cloud::before, .k-cloud::after { content: ''; position: absolute; background: #fff; border-radius: 50%; }
.k-cloud.c1 { top: 7%; width: 150px; height: 44px; animation-duration: 75s; animation-delay: -20s; }
.k-cloud.c1::before { width: 62px; height: 62px; top: -30px; left: 24px; }
.k-cloud.c1::after { width: 44px; height: 44px; top: -20px; left: 76px; }
.k-cloud.c2 { top: 18%; width: 110px; height: 34px; opacity: .85; animation-duration: 95s; animation-delay: -60s; }
.k-cloud.c2::before { width: 46px; height: 46px; top: -22px; left: 18px; }
.k-cloud.c2::after { width: 34px; height: 34px; top: -15px; left: 56px; }
.k-cloud.c3 { top: 30%; width: 180px; height: 50px; opacity: .8; animation-duration: 120s; animation-delay: -35s; }
.k-cloud.c3::before { width: 72px; height: 72px; top: -34px; left: 30px; }
.k-cloud.c3::after { width: 52px; height: 52px; top: -24px; left: 96px; }
.k-cloud.c4 { top: 3%; width: 90px; height: 28px; opacity: .75; animation-duration: 65s; animation-delay: -50s; }
.k-cloud.c4::before { width: 38px; height: 38px; top: -18px; left: 14px; }
.k-cloud.c4::after { width: 28px; height: 28px; top: -12px; left: 46px; }
@keyframes kdrift { from { transform: translateX(-260px); } to { transform: translateX(110vw); } }

.k-bird { position: absolute; width: 42px; animation: kfly linear infinite; }
.k-bird svg { animation: kbob 1.1s ease-in-out infinite; }
.k-bird.b1 { top: 14%; animation-duration: 38s; animation-delay: -8s; }
.k-bird.b2 { top: 23%; width: 30px; animation-duration: 51s; animation-delay: -30s; }
@keyframes kfly { from { transform: translateX(-80px); } to { transform: translateX(108vw); } }
@keyframes kbob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

.k-kite { position: absolute; top: 9%; left: 7%; width: clamp(54px, 5vw, 84px); animation: kkite 7s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes kkite { 0%, 100% { transform: rotate(-7deg) translateY(0); } 50% { transform: rotate(8deg) translateY(-16px); } }

.k-balloon { position: absolute; bottom: -140px; width: clamp(38px, 3.6vw, 60px); animation: krise linear infinite; }
.k-balloon svg { animation: ksway 3.4s ease-in-out infinite; transform-origin: 50% 20%; }
.k-balloon.bl1 { left: 12%; animation-duration: 34s; animation-delay: -6s; }
.k-balloon.bl2 { left: 55%; animation-duration: 44s; animation-delay: -24s; }
.k-balloon.bl3 { left: 84%; animation-duration: 39s; animation-delay: -15s; }
@keyframes krise { from { transform: translateY(0); } to { transform: translateY(calc(-100dvh - 220px)); } }
@keyframes ksway { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg); } }

.k-butterfly { position: absolute; width: 34px; }
.k-butterfly .kbf-w { transform-origin: 22px 17px; animation: kflap .34s ease-in-out infinite alternate; }
.k-butterfly .kbf-w.w2 { animation-direction: alternate-reverse; }
.k-butterfly.bf1 { bottom: 34%; left: 20%; animation: kbf1 17s ease-in-out infinite; }
.k-butterfly.bf2 { bottom: 30%; right: 16%; width: 27px; animation: kbf2 21s ease-in-out infinite; }
@keyframes kflap { from { transform: scaleX(1); } to { transform: scaleX(.45); } }
@keyframes kbf1 { 0%, 100% { transform: translate(0, 0); } 25% { transform: translate(90px, -60px); } 50% { transform: translate(30px, -130px); } 75% { transform: translate(-70px, -50px); } }
@keyframes kbf2 { 0%, 100% { transform: translate(0, 0); } 30% { transform: translate(-110px, -70px); } 60% { transform: translate(-40px, -150px); } 80% { transform: translate(60px, -60px); } }

.k-tree { animation: ktree 5.5s ease-in-out infinite; }
.k-tree.t2 { animation-delay: -2.6s; }
@keyframes ktree { 0%, 100% { transform: rotate(-1.6deg); } 50% { transform: rotate(1.6deg); } }

.k-swing { transform-box: fill-box; transform-origin: 50% 0%; animation: kswing 2.7s ease-in-out infinite alternate; }
.k-swing.s2 { animation-delay: -1.35s; }
@keyframes kswing { from { transform: rotate(17deg); } to { transform: rotate(-17deg); } }

.k-plank { transform-box: fill-box; transform-origin: 50% 82%; animation: kseesaw 2.4s ease-in-out infinite alternate; }
@keyframes kseesaw { from { transform: rotate(9deg); } to { transform: rotate(-9deg); } }

.k-slider { animation: kslide 5.2s ease-in infinite; opacity: 0; }
@keyframes kslide {
    0% { transform: translate(20px, -14px); opacity: 0; }
    8% { opacity: 1; }
    16% { transform: translate(46px, 4px); }
    52% { transform: translate(146px, 116px); opacity: 1; }
    62% { transform: translate(172px, 122px); opacity: 0; }
    100% { transform: translate(172px, 122px); opacity: 0; }
}

.k-runner { animation: krun 21s linear infinite; }
@keyframes krun { from { transform: translateX(-140px); } to { transform: translateX(1720px); } }
.k-leg { transform-origin: top center; transform-box: fill-box; animation: kleg .38s ease-in-out infinite alternate; }
.k-leg.lb { animation-direction: alternate-reverse; }
@keyframes kleg { from { transform: rotate(30deg); } to { transform: rotate(-30deg); } }
.k-arm { transform-origin: top center; transform-box: fill-box; animation: kleg .38s ease-in-out infinite alternate-reverse; }
.k-arm.ab { animation-direction: alternate; }
.k-ball { animation: kball 21s linear infinite; }
@keyframes kball { from { transform: translate(48px, 8px) rotate(0); } to { transform: translate(48px, 8px) rotate(2200deg); } }

.k-flower { animation: ktree 4s ease-in-out infinite; }
.k-flower.f2 { animation-delay: -1.4s; }
.k-flower.f3 { animation-delay: -2.7s; }

/* ---- Header kiosk playful ---- */
body.kiosk .kiosk-head { display: flex; align-items: center; gap: 16px; margin-bottom: 0; flex: none; }
body.kiosk .kiosk-head .brand-name { font-family: 'Fredoka', var(--font); font-size: clamp(26px, 2.6vw, 38px); font-weight: 600; color: #fff; text-shadow: 0 3px 0 rgba(23, 90, 150, .25); letter-spacing: .01em; }
body.kiosk .kiosk-head .brand-name em { background: linear-gradient(92deg, #ffe14d, #ffb44f 55%, #ff8fb2); -webkit-background-clip: text; background-clip: text; }
body.kiosk .kiosk-head .brand-sub { color: rgba(255, 255, 255, .92); font-weight: 700; }
body.kiosk .kiosk-clock { margin-left: 0; text-align: right; line-height: 1.1; color: #fff; }
body.kiosk .kiosk-clock b { font-family: 'Fredoka', var(--font); font-size: clamp(26px, 2.8vw, 40px); font-weight: 600; text-shadow: 0 3px 0 rgba(23, 90, 150, .25); }
body.kiosk .kiosk-clock small { display: inline-block; color: rgba(255, 255, 255, .95); font-weight: 700; font-size: 12.5px; text-shadow: 0 1px 0 rgba(23, 90, 150, .3); max-width: 340px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.k-chips { display: none; }
body.kiosk .k-chips { display: flex; gap: 10px; margin-left: auto; margin-right: 14px; }
body.kiosk .k-chip {
    display: inline-flex; align-items: center; gap: 8px;
    background: #fff; border-radius: 999px; padding: 8px 16px;
    font-family: 'Fredoka', var(--font); font-weight: 600; font-size: 14.5px; color: #2b6cb0;
    box-shadow: 0 4px 0 rgba(23, 90, 150, .18);
}
body.kiosk .k-chip.km { color: #1f9d55; }
body.kiosk .k-chip.ks { color: #d97706; }
body.kiosk .k-chip b { font-size: 16px; }
.k-exit { display: none; }
body.kiosk .k-exit { display: inline-flex; width: 44px; height: 44px; border-radius: 50%; background: #fff; color: #2b6cb0; box-shadow: 0 4px 0 rgba(23, 90, 150, .18); flex: none; }
body.kiosk .k-exit:hover { background: #f0f8ff; color: #1a5691; }

/* ---- Grid & kartu-kartu jadi stiker ---- */
body.kiosk .pagehead { display: none; }
body.kiosk .scan-manual, body.kiosk .scan-today { display: none; }
body.kiosk .scan-grid { flex: 1; min-height: 0; display: grid; grid-template-columns: 1.12fr 1fr; gap: 16px; align-items: stretch; }
body.kiosk .scan-grid .dash-col { display: flex; flex-direction: column; min-height: 0; gap: 0; }
body.kiosk .scan-grid .card {
    background: #fff; border: 0; border-radius: 26px;
    box-shadow: 0 8px 0 rgba(23, 90, 150, .14), 0 18px 40px rgba(23, 90, 150, .18);
    color: #1d3f63;
}
body.kiosk .scan-grid .dash-col:first-child > .card:first-child { flex: 1; display: flex; flex-direction: column; min-height: 0; }
body.kiosk .scan-grid .card-head { border-bottom: 0; padding: 14px 22px 4px; }
body.kiosk .scan-grid .card-head h2 { font-family: 'Fredoka', var(--font); font-weight: 600; font-size: 19px; color: #2b6cb0; }
body.kiosk .scan-grid .card-head .ic { color: #ff8f4f; }
body.kiosk .scan-grid .card-head .btn-primary { background: linear-gradient(135deg, #39b6ff, #2b93d1); color: #fff; box-shadow: 0 4px 0 rgba(23, 90, 150, .25); border-radius: 999px; font-family: 'Fredoka', var(--font); }
body.kiosk .scan-grid .card-head .btn-danger-soft { border-radius: 999px; font-family: 'Fredoka', var(--font); }
body.kiosk .scan-grid .iconbtn.bordered { border-color: #dbeafe; background: #f0f8ff; color: #2b6cb0; border-radius: 50%; }
body.kiosk .scan-grid .card-body { flex: 1; min-height: 0; display: flex; padding: 12px 16px 16px !important; }
body.kiosk .scan-cam-box { aspect-ratio: auto; height: 100%; width: 100%; border-radius: 20px; border: 5px solid #e3f2ff; background: #10315a; }
body.kiosk .scan-off { color: #9fc3e8; }
body.kiosk .scan-frame .sf-c { border-color: #ffe14d; border-width: 5px; }
body.kiosk .sf-hint { font-family: 'Fredoka', var(--font); font-size: 14px; background: rgba(16, 49, 90, .6); }
body.kiosk .scan-laser { background: linear-gradient(90deg, transparent, #ffe14d, #ff8fb2, transparent); height: 4px; }

/* ---- Kartu hasil scan: super playful ---- */
body.kiosk .scan-result { flex: 1; min-height: 0; overflow: hidden; position: relative; display: grid !important; place-items: center; background: #fff url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="90" height="90"><circle cx="12" cy="12" r="3.5" fill="%23e9f4ff"/><circle cx="60" cy="45" r="4.5" fill="%23fdeefe"/><circle cx="30" cy="72" r="3" fill="%23fff4d9"/></svg>'); }
body.kiosk .scan-result .sr-idle .ic { color: #39b6ff; opacity: 1; animation: kidle 1.6s ease-in-out infinite; width: 74px; height: 74px; }
@keyframes kidle { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-12px) rotate(4deg); } }
body.kiosk .scan-result .sr-idle p:first-of-type { font-family: 'Fredoka', var(--font) !important; font-size: 27px !important; color: #2b6cb0 !important; font-weight: 600 !important; margin-top: 8px; }
body.kiosk .scan-result .sr-idle p:last-of-type { font-size: 15px !important; color: #7ba3c9 !important; font-weight: 600; }
body.kiosk .sr-card .avatar { width: clamp(96px, 13vh, 132px) !important; height: clamp(96px, 13vh, 132px) !important; font-size: clamp(34px, 5vh, 48px) !important; box-shadow: 0 0 0 6px #fff, 0 0 0 12px var(--sr-ring, #39d98a), 0 10px 24px rgba(23, 90, 150, .25) !important; }
body.kiosk .sr-card { animation: kpop .5s cubic-bezier(.2, 1.5, .4, 1); }
@keyframes kpop { 0% { transform: scale(.6); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.sr-hello { display: none; }
body.kiosk .sr-hello { display: block; font-family: 'Fredoka', var(--font); font-weight: 600; font-size: clamp(17px, 2.4vh, 22px); color: #ff8f4f; margin-top: 12px; }
body.kiosk .sr-name { font-family: 'Fredoka', var(--font) !important; font-size: clamp(26px, 4.4vh, 40px) !important; font-weight: 600 !important; color: #17324d !important; letter-spacing: 0 !important; }
body.kiosk .sr-sub { font-size: clamp(14px, 2vh, 17px) !important; color: #6b93b8 !important; font-weight: 700; }
body.kiosk .sr-badge { font-family: 'Fredoka', var(--font); font-size: clamp(16px, 2.6vh, 21px) !important; padding: 10px 26px !important; border-radius: 999px; box-shadow: 0 4px 0 rgba(23, 90, 150, .12); }
body.kiosk .sr-time { font-size: clamp(12px, 1.8vh, 15px) !important; color: #7ba3c9 !important; font-weight: 600; }
body.kiosk .sr-err .sr-name { font-size: clamp(22px, 3.4vh, 30px) !important; }
.kfetti { position: absolute; top: -16px; z-index: 5; border-radius: 3px; animation: kfall linear forwards; pointer-events: none; }
@keyframes kfall { 0% { transform: translateY(0) rotate(0); opacity: 1; } 85% { opacity: 1; } 100% { transform: translateY(min(64vh, 560px)) rotate(560deg); opacity: 0; } }

/* ---- Alert (libur) ala papan kayu ---- */
body.kiosk .alert { background: #fff; border: 0; border-radius: 999px; color: #b45309; box-shadow: 0 5px 0 rgba(23, 90, 150, .14); font-family: 'Fredoka', var(--font); font-weight: 600; padding: 10px 20px; margin: 0 auto; width: max-content; max-width: 96%; flex: none; }

/* ---- Ticker gelembung scan terakhir ---- */
body.kiosk #kioskTicker { display: flex; position: absolute; left: 22px; bottom: 16px; z-index: 3; gap: 9px; pointer-events: none; max-width: 60vw; overflow: hidden; }
body.kiosk .k-bub {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255, 255, 255, .94); border-radius: 999px; padding: 5px 13px 5px 6px;
    font-family: 'Fredoka', var(--font); font-size: 13.5px; color: #2b6cb0; font-weight: 600;
    box-shadow: 0 4px 0 rgba(23, 90, 150, .14);
    animation: kbubin .45s cubic-bezier(.2, 1.4, .4, 1) both;
    white-space: nowrap;
}
body.kiosk .k-bub i { font-style: normal; color: #93b8d8; font-size: 12px; }
@keyframes kbubin { from { transform: translateY(16px) scale(.7); opacity: 0; } }

/* ---- Rfid pill kiosk ---- */
body.kiosk .rfid-pulse { background: #fff; border: 0; color: #1f9d55; box-shadow: 0 4px 0 rgba(23, 90, 150, .14); font-family: 'Fredoka', var(--font); }

/* ---- Layar kecil (tablet portrait) ---- */
@media (max-width: 900px) {
    body.kiosk .content { padding: 10px 12px clamp(100px, 16vh, 160px); }
    body.kiosk .scan-grid { grid-template-columns: 1fr; grid-template-rows: 1.1fr 1fr; gap: 10px; }
    body.kiosk .k-chips { display: none; }
    body.kiosk #kioskTicker { display: none; }
    body.kiosk .kiosk-clock small { display: none; }
    body.kiosk .k-ground { height: 34%; min-height: 180px; }
}
@media (max-height: 640px) {
    body.kiosk .kiosk-head .brand-sub { display: none; }
    body.kiosk .sr-card .avatar { width: 84px !important; height: 84px !important; }
}

/* ===== v1.5: Naik kelas, role, API dev ===== */
.promo-up { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; background: color-mix(in srgb, var(--ok) 16%, transparent); color: var(--ok); vertical-align: middle; margin-left: 5px; }
.promo-up svg { width: 13px; height: 13px; }
.chips-check { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-check { position: relative; cursor: pointer; }
.chip-check input { position: absolute; opacity: 0; pointer-events: none; }
.chip-check span { display: inline-flex; align-items: center; padding: 6px 13px; border-radius: 999px; border: 1.5px solid var(--line); font-size: 12.6px; font-weight: 700; color: var(--tx-mut); transition: all .14s; }
.chip-check input:checked + span { background: var(--ac); color: var(--ac-contrast); border-color: var(--ac); }
.idc-photo-svg { background: transparent !important; }
.idc-photo-svg svg { width: 100%; height: 100%; display: block; }
.idcard .idc-name-solo { font-size: 4.4mm; line-height: 1.16; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.token-reveal { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13.5px; background: var(--surface-2, var(--bg)); border: 1.5px dashed var(--ac); border-radius: 12px; padding: 13px 15px; word-break: break-all; user-select: all; }
.api-endpoint { display: flex; gap: 10px; align-items: baseline; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.api-endpoint:last-child { border-bottom: 0; }
.api-endpoint .m { font-family: ui-monospace, monospace; font-weight: 800; font-size: 11px; padding: 2px 8px; border-radius: 6px; background: var(--ac-soft); color: var(--ac-text); flex: none; width: 52px; text-align: center; }
.api-endpoint code { font-family: ui-monospace, monospace; font-size: 12.4px; }

