/* Layout: satu kolom rata kiri, lebar maks 1040px. Kartu hanya untuk kandidat dan panel panitia. */
:root {
  --bg: #F6F8F6;
  --surface: #FFFFFF;
  --ink: #14201B;
  --muted: #5E6B65;
  --line: #E1E7E3;
  --accent: #1A6B51;
  --accent-ink: #FFFFFF;
  --accent-soft: #E3F1EA;
  --bar: #CBD5CF;
  --warn: #8A5300;
  --warn-soft: #FBF0DC;
  --bad: #B3261E;
  --bad-soft: #FBE7E5;
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0E1411; --surface: #141C18; --ink: #E7EEEA; --muted: #93A19A; --line: #25302B;
    --accent: #55BF98; --accent-ink: #07140E; --accent-soft: #15302A; --bar: #33423B;
    --warn: #E0A647; --warn-soft: #2B2312; --bad: #F08A82; --bad-soft: #2F1816;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0E1411; --surface: #141C18; --ink: #E7EEEA; --muted: #93A19A; --line: #25302B;
  --accent: #55BF98; --accent-ink: #07140E; --accent-soft: #15302A; --bar: #33423B;
  --warn: #E0A647; --warn-soft: #2B2312; --bad: #F08A82; --bad-soft: #2F1816;
  color-scheme: dark;
}

* { box-sizing: border-box; }
body {
  background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 15px; line-height: 1.55;
  padding-inline: clamp(16px, 4vw, 32px);
  -webkit-font-smoothing: antialiased;
}
#app { max-width: 1040px; margin-inline: auto; padding-block: 16px 56px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; letter-spacing: -0.015em; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.mono, .num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 8px 32px; }
.top-r { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.brand { display: flex; align-items: center; gap: 10px; background: none; border: 0; padding: 4px 0; font-weight: 700; font-size: 15px; letter-spacing: -.01em; }
.mark { width: 28px; height: 28px; border-radius: 8px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; }
.mark svg { width: 16px; height: 16px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 10px; border: 1px solid var(--accent); background: var(--accent); color: var(--accent-ink); font-weight: 600; text-decoration: none; }
.btn:hover:not(:disabled) { filter: brightness(1.06); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.lg { min-height: 52px; padding: 0 26px; font-size: 16px; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover:not(:disabled) { background: var(--surface); filter: none; }
.btn.danger { background: var(--bad); border-color: var(--bad); color: #fff; }
.btn.ghost.danger { background: transparent; color: var(--bad); border-color: var(--line); }
.btn.sm { min-height: 36px; padding: 0 14px; font-size: 14px; }
.link { background: none; border: 0; padding: 0; color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.link.plain { color: var(--muted); font-weight: 500; }

/* pills */
.pill { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; padding: 3px 11px; border-radius: 99px; background: var(--accent-soft); color: var(--accent); white-space: nowrap; }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.muted { background: var(--line); color: var(--muted); }
.pill.bad { background: var(--bad-soft); color: var(--bad); }
.pill i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

/* hero */
.hero { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; padding-bottom: 36px; }
.hero h1 { font-size: clamp(2.1rem, 6.4vw, 3.6rem); line-height: 1.03; letter-spacing: -.035em; font-weight: 700; max-width: 18ch; }
.hero .lead { color: var(--muted); font-size: 16px; max-width: 46ch; }
.hero-meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.cta { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }

.prog-wrap { display: flex; flex-direction: column; gap: 8px; max-width: 520px; width: 100%; padding-bottom: 40px; }
.prog-line { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.prog { height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; }
.prog > div { height: 100%; background: var(--accent); border-radius: 99px; }

.sec-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.sec-h h2 { font-size: 20px; font-weight: 700; }

/* candidates */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.cand { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; display: flex; flex-direction: column; min-width: 0; }
.cand.sel { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.cand-head { display: flex; flex-direction: column; gap: 14px; padding: 18px 18px 0; text-align: left; background: none; border: 0; width: 100%; }
.cand-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.no { font-family: var(--mono); font-weight: 600; font-size: 12px; letter-spacing: .04em; padding: 4px 10px; border-radius: 99px; background: var(--accent-soft); color: var(--accent); }
.cand h3 { font-size: 17px; font-weight: 700; line-height: 1.25; }
.cand .kelas { color: var(--muted); font-size: 13px; margin-top: 2px; }
.cand .visi { color: var(--muted); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; padding: 12px 18px 0; }
.cand-foot { padding: 12px 18px 16px; margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tick { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; color: transparent; flex: none; }
.cand.sel .tick { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.tick svg { width: 14px; height: 14px; }
.av { border-radius: 50%; object-fit: cover; flex: none; background: var(--accent-soft); }
.av.sm { width: 36px; height: 36px; } .av.md { width: 56px; height: 56px; } .av.lg { width: 96px; height: 96px; }
.av.ph { display: grid; place-items: center; color: var(--accent); font-weight: 700; }
.av.sm.ph { font-size: 13px; } .av.md.ph { font-size: 18px; } .av.lg.ph { font-size: 30px; }

/* cards & forms */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack-lg { display: flex; flex-direction: column; gap: 24px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
label.f { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; min-width: 0; }
input.in, textarea.in, select.in { width: 100%; min-height: 46px; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); font-weight: 400; font-size: 15px; }
textarea.in { resize: vertical; min-height: 88px; line-height: 1.5; }
input.in:focus, textarea.in:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
input.nis { font-family: var(--mono); font-size: 22px; letter-spacing: .06em; min-height: 58px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 520px) { .grid2 { grid-template-columns: 1fr; } }
.msg { font-size: 14px; padding: 10px 14px; border-radius: 10px; background: var(--bad-soft); color: var(--bad); }
.msg.warn { background: var(--warn-soft); color: var(--warn); }
.msg.ok { background: var(--accent-soft); color: var(--accent); }
.narrow { max-width: 440px; }
.who { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); margin-bottom: 24px; }
.who b { font-weight: 700; }

/* ballot bar */
.ballot-h { display: flex; flex-direction: column; gap: 6px; margin-bottom: 20px; }
.ballot-h h1 { font-size: clamp(1.6rem, 4.6vw, 2.3rem); font-weight: 700; letter-spacing: -.03em; }
.bar { position: sticky; bottom: 0; margin-top: 24px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.bar .pick { min-width: 0; }

/* done */
.done { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; padding-top: 24px; }
.done .big { width: 64px; height: 64px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.done .big svg { width: 30px; height: 30px; }
.done h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); letter-spacing: -.03em; font-weight: 700; }

/* admin */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; margin-bottom: 24px; }
.tab { background: none; border: 0; padding: 12px 14px; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); }
.admin-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.admin-h h1 { font-size: 26px; font-weight: 700; letter-spacing: -.025em; }
.status-card { display: flex; gap: 20px; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.status-card p { max-width: 52ch; }
.panel-h { font-size: 16px; font-weight: 700; margin-bottom: 14px; }

.brow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 16px; align-items: center; padding-block: 12px; border-top: 1px solid var(--line); }
.brow:first-child { border-top: 0; }
@media (max-width: 560px) { .brow { grid-template-columns: 1fr; gap: 8px; } }
.bl { display: flex; gap: 12px; align-items: center; min-width: 0; }
.bn { font-weight: 600; overflow-wrap: anywhere; }
.bv { display: flex; align-items: center; gap: 14px; min-width: 0; }
.track { flex: 1; height: 10px; border-radius: 99px; background: var(--line); overflow: hidden; min-width: 40px; }
.fill { height: 100%; background: var(--bar); border-radius: 99px; }
.brow.lead .fill { background: var(--accent); }
.bv .num { display: flex; flex-direction: column; align-items: flex-end; min-width: 64px; line-height: 1.25; }
.bv .num b { font-size: 16px; }
.bv .num span { font-size: 12px; color: var(--muted); }

.scroll { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; min-width: 480px; }
.tbl th { text-align: left; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td.r, .tbl th.r { text-align: right; }
.cl-bar { display: flex; align-items: center; gap: 10px; min-width: 120px; }
.cl-bar .track { height: 6px; }
.cl-bar .fill { background: var(--accent); }

.cand-row { display: flex; align-items: center; gap: 14px; padding-block: 14px; border-top: 1px solid var(--line); }
.cand-row:first-child { border-top: 0; }
.cand-row .grow { flex: 1; min-width: 0; }
.cand-row .nm { font-weight: 600; overflow-wrap: anywhere; }
.empty { border: 1px dashed var(--line); border-radius: 14px; padding: 28px 22px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.empty h3 { font-size: 17px; font-weight: 700; }
.empty p { color: var(--muted); max-width: 52ch; }

.win { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.win h2 { font-size: clamp(1.5rem, 4.4vw, 2.1rem); font-weight: 700; letter-spacing: -.03em; }

/* modal & toast */
.scrim { position: fixed; inset: 0; background: rgba(10, 16, 13, .52); display: grid; place-items: center; padding: 16px; z-index: 50; }
.modal { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; width: 100%; max-width: 520px; max-height: 88vh; overflow: auto; padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.modal h2 { font-size: 20px; font-weight: 700; }
.modal ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.modal .acts { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(20px + env(safe-area-inset-bottom, 0px)); background: var(--ink); color: var(--bg); padding: 11px 18px; border-radius: 10px; font-size: 14px; z-index: 60; max-width: calc(100% - 32px); }
.loading { color: var(--muted); padding-block: 40px; }
.foot { margin-top: 56px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; display: flex; gap: 12px; justify-content: space-between; flex-wrap: wrap; }

/* unggah & form */
.file { position: relative; cursor: pointer; overflow: hidden; }
.file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.file:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.grid3 { display: grid; grid-template-columns: 1fr 2fr 1fr; gap: 14px; }
@media (max-width: 620px) { .grid3 { grid-template-columns: 1fr; } }
summary { cursor: pointer; color: var(--muted); font-size: 14px; font-weight: 600; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ---- tambahan versi PHP ---- */
a.link, a.btn { text-decoration: none; }
a.link { text-decoration: underline; text-underline-offset: 3px; }
.vh { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.cand-wrap { display: block; position: relative; cursor: pointer; min-width: 0; }
.cand-wrap .cand { position: relative; z-index: 1; height: 100%; }
.cand-wrap .vh:checked + .cand { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.cand-wrap .vh:checked + .cand .tick { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.cand-wrap .vh:focus-visible + .cand { outline: 2px solid var(--accent); outline-offset: 2px; }
.cand .more { padding: 10px 18px 16px; margin-top: auto; }
.cand .more summary { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.cand .more p { margin-top: 10px; font-size: 14px; }
.cand .more ol { margin: 8px 0 0; padding-left: 20px; font-size: 14px; display: flex; flex-direction: column; gap: 6px; }
.cand .cand-body { display: flex; flex-direction: column; gap: 14px; padding: 18px 18px 0; }
.tab { text-decoration: none; display: inline-block; }
.tab[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }
.pager { display: flex; gap: 8px; align-items: center; justify-content: flex-end; flex-wrap: wrap; margin-top: 12px; }
form.inline { display: inline; margin: 0; }
button.link { font: inherit; }
.search-row { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.search-row .f { flex: 1; min-width: 200px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }


[hidden] { display: none !important; }

/* live count */
.prog > div { transition: width .7s cubic-bezier(.2, .7, .2, 1); }
.live-head { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.live-head h1 { font-size: clamp(2.2rem, 7vw, 3.8rem); font-weight: 700; letter-spacing: -.035em; line-height: 1.04; }
.live-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: pulse 1.8s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 currentColor; } 70%, 100% { box-shadow: 0 0 0 9px transparent; } }
.live-stats { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 32px; align-items: end; margin-bottom: 28px; }
.live-total b { display: block; font: 600 clamp(3rem, 10vw, 5.2rem)/1 var(--mono); letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
@media (max-width: 560px) { .live-stats { grid-template-columns: 1fr; gap: 18px; } }
.live-list { padding: 0; }
.lrow { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.6fr) auto; gap: 24px; align-items: center; padding: 20px 22px; }
.lrow + .lrow { border-top: 1px solid var(--line); }
.lrow .track { height: 16px; }
.lrow .fill { transition: width .7s cubic-bezier(.2, .7, .2, 1), background-color .3s; }
.lrow.lead .fill { background: var(--accent); }
.lnum { display: flex; flex-direction: column; align-items: flex-end; min-width: 96px; line-height: 1.1; gap: 4px; }
.lnum b { font: 600 clamp(1.8rem, 5vw, 2.8rem)/1 var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -.03em; display: inline-block; }
.lnum span { font: 500 13px var(--mono); color: var(--muted); }
.lnum b.bump { animation: bump .55s ease; }
@keyframes bump { 35% { transform: scale(1.14); color: var(--accent); } }
@media (max-width: 640px) {
  .lrow { grid-template-columns: minmax(0, 1fr) auto; gap: 12px 16px; padding: 18px 16px; }
  .lrow .lbar { grid-column: 1 / -1; order: 3; }
}


/* foto kandidat besar */
.cand { overflow: hidden; }
.photo { position: relative; width: 100%; aspect-ratio: 4 / 3; background: var(--accent-soft); overflow: hidden; }
.photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; display: block; }
.photo.ph { display: grid; place-items: center; color: var(--accent); font-weight: 700; font-size: clamp(2.4rem, 9vw, 3.4rem); letter-spacing: -.02em; }
.photo-no { position: absolute; top: 12px; left: 12px; background: var(--surface); color: var(--ink); box-shadow: 0 1px 4px rgba(0,0,0,.18); }
.cand .cand-body { padding-top: 16px; }
.modal .photo { border-radius: 12px; aspect-ratio: 4 / 3; max-height: 240px; }
.pick-row { display: flex; align-items: center; gap: 12px; min-width: 0; }
.pick-row .av { flex: none; }
.foto-form { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.foto-form .photo { width: 160px; border-radius: 12px; flex: none; }
.foto-form .f { flex: 1; min-width: 220px; }

/* foto kandidat: persegi, di dalam kartu */
.cand .photo { width: calc(100% - 28px); margin: 14px 14px 0; aspect-ratio: 1 / 1; border-radius: 12px; }
.cand .photo img { object-position: center 20%; }
.cand .photo.ph { font-size: clamp(2.6rem, 10vw, 3.6rem); }
.cand .photo-no { top: 10px; left: 10px; }
.cand .cand-body, .cand-head .cand-body { padding-top: 14px; }
.modal .photo, .photo.in-modal { width: min(100%, 260px); aspect-ratio: 1 / 1; max-height: none; margin-inline: auto; border-radius: 14px; }

/* foto kandidat bulat, ukuran mengikuti lebar kartu */
.cand { text-align: center; }
.cand .cand-head { text-align: center; align-items: center; }
.cand .photo { position: relative; overflow: visible; background: none; width: min(68%, 220px); max-width: 100%; aspect-ratio: 1 / 1; margin: 22px auto 0; border-radius: 50%; flex: none; }
.cand .photo img { width: 100%; height: 100%; max-width: 100%; object-fit: cover; object-position: center 20%; border-radius: 50%; display: block; border: 3px solid var(--surface); box-shadow: 0 0 0 1px var(--line); }
.cand .photo.ph { background: var(--accent-soft); box-shadow: 0 0 0 1px var(--line); font-size: clamp(2.2rem, 8vw, 3.2rem); }
.cand .photo-no { top: auto; left: 50%; bottom: -10px; transform: translateX(-50%); z-index: 1; white-space: nowrap; }
.cand .cand-body, .cand-head .cand-body { padding: 24px 18px 0; align-items: center; }
.cand .visi { text-align: center; }
.cand .more ol { text-align: left; }
.cand .more summary { text-align: center; }
.modal .photo, .photo.in-modal { width: min(100%, 200px); aspect-ratio: 1 / 1; margin-inline: auto; border-radius: 50%; background: var(--accent-soft); overflow: hidden; }
.modal .photo img, .photo.in-modal img { border-radius: 50%; }
.foto-form .photo { width: 140px; border-radius: 50%; }
.foto-form .photo img { border-radius: 50%; }

/* kartu pemilih */
.sheet { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 14px; }
.kartu { position: relative; background: #fff; color: #14201a; border: 1.5px dashed #9aa7a0; border-radius: 10px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; break-inside: avoid; page-break-inside: avoid; }
.kartu-h { border-bottom: 1px solid #d5ddd8; padding-bottom: 8px; }
.kartu-t { font-weight: 700; font-size: 14px; letter-spacing: -.01em; }
.kartu-s { font-size: 11.5px; color: #55645c; margin-top: 1px; }
.kartu-nama { font-weight: 700; font-size: 16px; line-height: 1.25; overflow-wrap: anywhere; }
.kartu-meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: #3b4a42; margin-top: 3px; }
.kartu-lbl { font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: #55645c; margin-top: 8px; }
.kartu-token { font-size: 22px; font-weight: 600; letter-spacing: .06em; padding: 8px 10px; border: 1.5px solid #14201a; border-radius: 8px; text-align: center; margin-top: 3px; overflow-wrap: anywhere; }
.kartu-f { font-size: 10.5px; color: #55645c; line-height: 1.4; }
.kartu-x { position: absolute; top: 10px; right: 10px; margin: 0; }
@media print {
  @page { size: A4; margin: 8mm; }
  body { background: #fff !important; }
  .no-print, .top, .admin-h, .tabs, .foot, .toast { display: none !important; }
  #app { padding: 0 !important; max-width: none !important; }
  .stack-lg { gap: 0 !important; }
  .sheet { grid-template-columns: repeat(2, 1fr); column-gap: 5mm; row-gap: 3mm; }
  .kartu { height: 52mm; padding: 3mm 5mm; gap: 1.5mm; border-radius: 3mm; overflow: hidden; justify-content: space-between; }
  .kartu-h { padding-bottom: 1.5mm; }
  .kartu-token { font-size: 16pt; padding: 1mm 2mm; margin-top: 0; }
  .kartu-nama { font-size: 10.5pt; }
  .kartu-meta { font-size: 8pt; margin-top: 0; }
  .kartu-t { font-size: 9pt; } .kartu-s { font-size: 7pt; }
  .kartu-lbl { font-size: 6pt; margin-top: 0; } .kartu-f { font-size: 6pt; line-height: 1.3; }
}
