/* ==========================================================
   SIMULASI TKA MTS AL-AMIN TABANAN
   Stylesheet utama — melengkapi Tailwind CSS (CDN)
   ========================================================== */

:root {
  --primary: #0d7a5f;
  --primary-dark: #095c47;
  --primary-light: #e7f5f0;
  --ink: #0f172a;
  --muted: #64748b;
  --ring: rgba(13, 122, 95, .25);
}

* { -webkit-tap-highlight-color: transparent; }

body {
  font-family: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: #f4f6fa;
}

/* ---------- Utilities ---------- */
.bg-primary { background-color: var(--primary) !important; }
.bg-primary-dark { background-color: var(--primary-dark) !important; }
.bg-primary-light { background-color: var(--primary-light) !important; }
.text-primary { color: var(--primary) !important; }
.border-primary { border-color: var(--primary) !important; }
.ring-primary { box-shadow: 0 0 0 3px var(--ring); }

.brand-gradient {
  /* !important agar tetap berlaku saat digabung dengan .card (yang berlatar putih) */
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 55%, #12a37c 100%) !important;
}
/* Pola dekoratif memakai pseudo-element agar tidak menimpa gradien latar */
.pattern-overlay { position: relative; }
.pattern-overlay::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background-image:
    radial-gradient(circle at 15% 20%, rgba(255,255,255,.10) 0 22%, transparent 23%),
    radial-gradient(circle at 85% 75%, rgba(255,255,255,.08) 0 18%, transparent 19%);
}
.pattern-overlay > * { position: relative; z-index: 1; }

.card {
  background: #fff;
  border: 1px solid #e7ebf2;
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(15,23,42,.04);
}
.card-hover:hover { box-shadow: 0 10px 30px -12px rgba(15,23,42,.18); transform: translateY(-2px); }
.card, .card-hover { transition: all .18s ease; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-weight: 600; font-size: .875rem; border-radius: 10px;
  padding: .6rem 1rem; cursor: pointer; border: 1px solid transparent;
  transition: all .15s ease; white-space: nowrap;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline { background: #fff; border-color: #d7dee8; color: #334155; }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
.btn-danger { background: #dc2626; color: #fff; }
.btn-danger:hover { background: #b91c1c; }
.btn-warn { background: #f59e0b; color: #fff; }
.btn-warn:hover { background: #d97706; }
.btn-ghost { background: transparent; color: #475569; }
.btn-ghost:hover { background: #eef2f7; }
.btn-sm { padding: .35rem .65rem; font-size: .78rem; border-radius: 8px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

.input, .select, .textarea {
  width: 100%; border: 1px solid #d7dee8; border-radius: 10px;
  padding: .6rem .75rem; font-size: .875rem; background: #fff; color: var(--ink);
  transition: border .15s, box-shadow .15s;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--ring);
}
.label { display:block; font-size: .78rem; font-weight: 600; color: #475569; margin-bottom: .3rem; }

.badge {
  display: inline-flex; align-items: center; gap: .25rem;
  font-size: .7rem; font-weight: 700; padding: .2rem .55rem; border-radius: 999px;
  text-transform: uppercase; letter-spacing: .02em;
}
.badge-green { background: #dcfce7; color: #15803d; }
.badge-red { background: #fee2e2; color: #b91c1c; }
.badge-amber { background: #fef3c7; color: #b45309; }
.badge-blue { background: #dbeafe; color: #1d4ed8; }
.badge-gray { background: #eef2f7; color: #475569; }
.badge-purple { background: #ede9fe; color: #6d28d9; }

/* ---------- Tabel data ---------- */
.table-wrap { overflow-x: auto; border-radius: 12px; border: 1px solid #e7ebf2; background:#fff; }
table.data { width: 100%; border-collapse: collapse; font-size: .85rem; }
table.data thead th {
  background: #f8fafc; text-align: left; padding: .7rem .8rem; font-size: .72rem;
  text-transform: uppercase; letter-spacing: .04em; color: #64748b; font-weight: 700;
  border-bottom: 1px solid #e7ebf2; white-space: nowrap;
}
table.data tbody td { padding: .65rem .8rem; border-bottom: 1px solid #f1f5f9; vertical-align: middle; }
table.data tbody tr:hover { background: #fafcff; }
table.data tbody tr:last-child td { border-bottom: none; }

/* ---------- Sidebar ---------- */
.sidebar {
  width: 268px; flex-shrink: 0; background: #0b1220; color: #cbd5e1;
  display: flex; flex-direction: column; position: fixed; inset: 0 auto 0 0; z-index: 45;
  transition: transform .25s ease;
}
.sidebar a.nav-item {
  display: flex; align-items: center; gap: .7rem; padding: .62rem .85rem; margin: .1rem .6rem;
  border-radius: 10px; font-size: .86rem; font-weight: 500; color: #94a3b8; cursor: pointer;
}
.sidebar a.nav-item i { width: 18px; text-align: center; font-size: .95rem; }
.sidebar a.nav-item:hover { background: rgba(255,255,255,.06); color: #fff; }
.sidebar a.nav-item.active { background: var(--primary); color: #fff; box-shadow: 0 6px 18px -8px var(--primary); }
.nav-section { font-size: .66rem; text-transform: uppercase; letter-spacing: .12em; color: #475569; margin: 1rem .95rem .35rem; font-weight: 700; }
.main-area { margin-left: 268px; min-height: 100vh; }
@media (max-width: 1023px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .main-area { margin-left: 0; }
}
#sidebarBackdrop { position: fixed; inset: 0; background: rgba(15,23,42,.5); z-index: 44; display: none; }
#sidebarBackdrop.show { display: block; }

/* ---------- Toast ---------- */
#toastHost { position: fixed; top: 1rem; right: 1rem; z-index: 200; display: flex; flex-direction: column; gap: .5rem; }
.toast {
  min-width: 260px; max-width: 360px; background: #fff; border-left: 4px solid var(--primary);
  border-radius: 10px; padding: .7rem .9rem; box-shadow: 0 12px 32px -10px rgba(15,23,42,.3);
  font-size: .85rem; display: flex; gap: .6rem; align-items: flex-start;
  animation: toastIn .22s ease;
}
.toast.success { border-color: #16a34a; }
.toast.error { border-color: #dc2626; }
.toast.warn { border-color: #f59e0b; }
@keyframes toastIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: none; } }

/* ---------- Modal ---------- */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(15,23,42,.55); z-index: 150;
  display: flex; align-items: flex-start; justify-content: center; padding: 1.2rem; overflow-y: auto;
  animation: fadeIn .15s ease;
}
.modal-box {
  background: #fff; border-radius: 16px; width: 100%; max-width: 640px; margin: auto;
  box-shadow: 0 30px 60px -20px rgba(15,23,42,.5); animation: popIn .18s ease;
}
.modal-box.lg { max-width: 900px; }
.modal-box.xl { max-width: 1140px; }
.modal-head { padding: 1rem 1.2rem; border-bottom: 1px solid #eef2f7; display: flex; align-items: center; justify-content: space-between; }
.modal-body { padding: 1.2rem; max-height: 72vh; overflow-y: auto; }
.modal-foot { padding: .9rem 1.2rem; border-top: 1px solid #eef2f7; display: flex; justify-content: flex-end; gap: .5rem; flex-wrap: wrap; }
@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }
@keyframes popIn { from { opacity: 0; transform: translateY(12px) scale(.98) } to { opacity: 1; transform: none } }

/* ---------- Halaman ujian (CBT) ---------- */
.exam-shell { background: #eef2f7; min-height: 100vh; }
.exam-topbar {
  position: sticky; top: 0; z-index: 40; background: #fff; border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(15,23,42,.06);
}
.timer-pill {
  font-variant-numeric: tabular-nums; font-weight: 800; letter-spacing: .04em;
  background: #0b1220; color: #4ade80; padding: .45rem .85rem; border-radius: 10px; font-size: 1.05rem;
}
.timer-pill.warn { color: #fbbf24; }
.timer-pill.danger { color: #f87171; animation: pulse 1s infinite; }
@keyframes pulse { 50% { opacity: .55 } }

.question-body { font-size: 1.02rem; line-height: 1.85; color: #0f172a; }
.question-body img { max-width: 100%; height: auto; border-radius: 10px; margin: .6rem 0; }
.question-body table { border-collapse: collapse; margin: .7rem 0; width: auto; }
.question-body table td, .question-body table th { border: 1px solid #cbd5e1; padding: .4rem .65rem; }
.question-body p { margin: .35rem 0; }

.opt-item {
  display: flex; gap: .8rem; align-items: flex-start; padding: .8rem .95rem; border: 1.5px solid #e2e8f0;
  border-radius: 12px; cursor: pointer; background: #fff; transition: all .13s ease; margin-bottom: .55rem;
}
.opt-item:hover { border-color: var(--primary); background: var(--primary-light); }
.opt-item.selected { border-color: var(--primary); background: var(--primary-light); box-shadow: 0 0 0 2px var(--ring); }
.opt-label {
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 8px; background: #eef2f7; color: #334155;
  display: grid; place-items: center; font-weight: 800; font-size: .82rem;
}
.opt-item.selected .opt-label { background: var(--primary); color: #fff; }

.qnav-grid { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: .4rem; }
.qnav-btn {
  aspect-ratio: 1/1; border-radius: 9px; border: 1.5px solid #dbe3ec; background: #fff;
  font-size: .8rem; font-weight: 700; color: #475569; cursor: pointer; display: grid; place-items: center;
  transition: all .12s;
}
.qnav-btn:hover { border-color: var(--primary); }
.qnav-btn.answered { background: #16a34a; border-color: #16a34a; color: #fff; }
.qnav-btn.flagged { background: #f59e0b; border-color: #f59e0b; color: #fff; }
.qnav-btn.current { outline: 3px solid #1d4ed8; outline-offset: 1px; }

.save-chip { font-size: .74rem; font-weight: 600; padding: .25rem .6rem; border-radius: 999px; }
.save-chip.ok { background: #dcfce7; color: #15803d; }
.save-chip.pending { background: #fef3c7; color: #b45309; }
.save-chip.offline { background: #fee2e2; color: #b91c1c; }

/* ---------- Kartu peserta & cetak ---------- */
.print-card {
  width: 340px; border: 2px solid #0b1220; border-radius: 10px; padding: 14px; font-size: 11px;
  page-break-inside: avoid; background: #fff;
}
@media print {
  .no-print { display: none !important; }
  body { background: #fff; }
}

/* ---------- Lain-lain ---------- */
.skeleton { background: linear-gradient(90deg,#eef2f7 25%,#f8fafc 37%,#eef2f7 63%); background-size: 400% 100%; animation: shimmer 1.3s infinite; border-radius: 8px; }
@keyframes shimmer { 0% { background-position: 100% 0 } 100% { background-position: 0 0 } }
.stat-icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-size: 1.1rem; }
.scroll-thin::-webkit-scrollbar { width: 8px; height: 8px; }
.scroll-thin::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 8px; }
.ql-editor { min-height: 150px; font-size: .9rem; }
.tab-btn { padding: .5rem .9rem; font-size: .84rem; font-weight: 600; color: #64748b; border-bottom: 2px solid transparent; cursor: pointer; white-space: nowrap; }
.tab-btn.active { color: var(--primary); border-color: var(--primary); }

/* ==========================================================
   MODE LAYAR PENUH — tombol mengapung & overlay ajakan
   ========================================================== */
.fs-fab {
  position: fixed; right: max(.9rem, env(safe-area-inset-right)); bottom: max(.9rem, env(safe-area-inset-bottom));
  z-index: 190; display: inline-flex; align-items: center; gap: .5rem;
  background: var(--primary); color: #fff; border: none; border-radius: 999px;
  padding: .7rem 1.1rem; font-size: .82rem; font-weight: 700; cursor: pointer;
  box-shadow: 0 12px 28px -8px rgba(15, 23, 42, .45);
  animation: fsFabIn .25s ease;
}
.fs-fab:hover { background: var(--primary-dark); }
.fs-fab:active { transform: scale(.96); }
@keyframes fsFabIn { from { opacity: 0; transform: translateY(14px) } to { opacity: 1; transform: none } }
/* Pada layar sangat kecil, tombol cukup berupa ikon agar tidak menutupi konten */
@media (max-width: 400px) { .fs-fab span { display: none; } .fs-fab { padding: .75rem .85rem; } }

.fs-overlay {
  position: fixed; inset: 0; z-index: 195; background: rgba(11, 18, 32, .88);
  backdrop-filter: blur(4px); display: grid; place-items: center; padding: 1.25rem;
  animation: fadeIn .18s ease;
}
.fs-overlay-card {
  background: #fff; border-radius: 20px; padding: 1.75rem 1.5rem; width: 100%; max-width: 420px;
  text-align: center; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6);
}
.fs-overlay-icon {
  width: 68px; height: 68px; border-radius: 50%; margin: 0 auto 1rem;
  background: var(--primary-light); color: var(--primary);
  display: grid; place-items: center; font-size: 1.7rem;
}
.fs-overlay-card h2 { font-size: 1.2rem; font-weight: 800; color: var(--ink); }
.fs-overlay-card p { font-size: .875rem; color: #64748b; margin: .6rem 0 1.25rem; line-height: 1.65; }
.fs-skip {
  margin-top: .75rem; background: none; border: none; cursor: pointer;
  font-size: .76rem; color: #94a3b8; text-decoration: underline;
}
.fs-skip:hover { color: #64748b; }

/* ==========================================================
   RESPONSIF LINTAS PERANGKAT
   Ponsel kecil → ponsel → tablet → laptop → desktop lebar
   ========================================================== */

/* Cegah gulir horizontal tak diinginkan & hormati area aman (notch) */
html { -webkit-text-size-adjust: 100%; }
body { overflow-x: hidden; }
img, video, canvas, audio, iframe { max-width: 100%; }

/* Target sentuh minimum 40px pada perangkat sentuh (aksesibilitas) */
@media (hover: none) and (pointer: coarse) {
  .btn { min-height: 42px; }
  .btn-sm { min-height: 36px; }
  .input, .select, .textarea { min-height: 42px; font-size: .92rem; }
  .qnav-btn { min-height: 40px; font-size: .85rem; }
  .opt-item { padding: .95rem 1rem; }
  table.data tbody td { padding: .8rem .8rem; }
}

/* ---------- Ponsel (≤ 640px) ---------- */
@media (max-width: 640px) {
  .card { border-radius: 14px; }
  .modal-backdrop { padding: 0; align-items: flex-end; }
  .modal-box, .modal-box.lg, .modal-box.xl {
    max-width: 100%; border-radius: 18px 18px 0 0; margin: 0; max-height: 94vh;
    display: flex; flex-direction: column;
  }
  .modal-body { max-height: none; flex: 1; padding: 1rem; }
  .modal-head, .modal-foot { padding: .85rem 1rem; }
  .modal-foot > .btn { flex: 1 1 auto; }

  /* Toast melebar penuh agar mudah dibaca */
  #toastHost { left: .6rem; right: .6rem; top: .6rem; }
  .toast { min-width: 0; max-width: none; }

  /* Navigasi soal lebih lega untuk jempol */
  .qnav-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .35rem; }

  .question-body { font-size: .98rem; line-height: 1.75; }
  .opt-label { width: 28px; height: 28px; }
  .timer-pill { font-size: .95rem; padding: .4rem .6rem; }

  /* Tabel lebar tetap dapat digulir mendatar dengan isyarat visual */
  .table-wrap { -webkit-overflow-scrolling: touch; }
  .ql-editor { min-height: 120px; }
}

/* ---------- Ponsel kecil (≤ 380px) ---------- */
@media (max-width: 380px) {
  .qnav-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .btn { padding: .55rem .8rem; font-size: .82rem; }
  .badge { font-size: .65rem; padding: .18rem .45rem; }
}

/* ---------- Tablet (641px – 1023px) ---------- */
@media (min-width: 641px) and (max-width: 1023px) {
  .qnav-grid { grid-template-columns: repeat(10, minmax(0, 1fr)); }
  .modal-box.xl, .modal-box.lg { max-width: 94vw; }
}

/* ---------- Tablet mendatar / laptop kecil (1024px – 1279px) ---------- */
@media (min-width: 1024px) and (max-width: 1279px) {
  .sidebar { width: 228px; }
  .main-area { margin-left: 228px; }
  .sidebar a.nav-item { font-size: .82rem; padding: .55rem .75rem; }
  .qnav-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); }
}

/* ---------- Desktop sangat lebar (≥ 1600px) ---------- */
@media (min-width: 1600px) {
  .question-body { font-size: 1.08rem; }
  .qnav-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

/* ---------- Ponsel mendatar / layar pendek ---------- */
@media (max-height: 520px) and (orientation: landscape) {
  .exam-topbar { position: relative; }              /* bebaskan ruang vertikal */
  .modal-body { max-height: 62vh; }
  .fs-overlay-card { padding: 1.1rem; }
  .fs-overlay-icon { width: 48px; height: 48px; font-size: 1.2rem; margin-bottom: .6rem; }
}

/* ---------- Saat benar-benar dalam mode layar penuh ---------- */
:fullscreen .exam-shell, :-webkit-full-screen .exam-shell { min-height: 100vh; }
:fullscreen #fsFab, :-webkit-full-screen #fsFab { display: none; }

/* ==========================================================
   TATA LETAK HALAMAN UJIAN YANG ADAPTIF
   Desktop/laptop ≥1024px : soal + panel navigasi menempel kanan
   Tablet & ponsel <1024px: panel navigasi jadi panel geser (drawer)
   ========================================================== */
.exam-main { display: grid; grid-template-columns: 1fr; }
/* Dasar: panel relatif (dipakai layar lebar). Dideklarasikan LEBIH DAHULU agar
   aturan drawer `position: fixed` pada media query di bawah tidak tertimpa. */
.exam-nav-panel { position: relative; }
.exam-nav-backdrop { display: none; }

@media (min-width: 1024px) {
  .exam-main { grid-template-columns: minmax(0, 1fr) 290px; }
  .exam-nav-panel { position: sticky; top: 6rem; align-self: start; }
  .exam-nav-backdrop { display: none !important; }
}
@media (min-width: 1440px) {
  .exam-main { grid-template-columns: minmax(0, 1fr) 320px; }
}

/* Panel navigasi sebagai drawer pada tablet & ponsel */
@media (max-width: 1023px) {
  .exam-nav-panel {
    position: fixed; z-index: 120; right: 0; top: 0; bottom: 0;
    width: min(320px, 88vw); border-radius: 16px 0 0 16px;
    overflow-y: auto; -webkit-overflow-scrolling: touch;
    transform: translateX(105%); transition: transform .26s ease;
    box-shadow: -14px 0 40px -12px rgba(15, 23, 42, .35);
    padding-top: 2.5rem;
  }
  .exam-nav-panel.open { transform: translateX(0); }
  .exam-nav-backdrop {
    position: fixed; inset: 0; z-index: 119; background: rgba(15, 23, 42, .55);
    opacity: 0; pointer-events: none; transition: opacity .26s ease;
  }
  .exam-nav-backdrop.show { opacity: 1; pointer-events: auto; }

  /* Nomor soal lebih besar karena panel lebih lapang */
  .exam-nav-panel .qnav-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .exam-nav-backdrop { display: block; }
}

/* Baris tombol aksi soal: 2 kolom di ponsel, sebaris di layar lebih besar */
.exam-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.exam-actions .btn { width: 100%; }
@media (min-width: 640px) {
  .exam-actions { display: flex; flex-wrap: wrap; }
  .exam-actions .btn { width: auto; }
  .exam-actions #btnNext { margin-left: auto; }
}

/* ==========================================================
   KAMERA PENGAWASAN MELAYANG (proctoring)
   ========================================================== */
.cam-float {
  position: fixed; z-index: 130;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  width: 208px; background: #0b1220; border-radius: 14px; overflow: hidden;
  box-shadow: 0 18px 44px -12px rgba(0, 0, 0, .6);
  border: 2px solid #1e293b; color: #e2e8f0;
  transition: width .2s ease;
  user-select: none;
}
.cam-float-head {
  display: flex; align-items: center; gap: .45rem;
  padding: .4rem .55rem; background: #131c2e; cursor: grab;
}
.cam-float-head:active { cursor: grabbing; }
.cam-float-title { font-size: .72rem; font-weight: 700; letter-spacing: .03em; flex: 1; }
.cam-dot { width: 9px; height: 9px; border-radius: 50%; background: #22c55e; flex-shrink: 0; animation: camPulse 1.8s infinite; }
@keyframes camPulse { 50% { opacity: .35 } }
.cam-float-btn {
  background: transparent; border: none; color: #94a3b8; cursor: pointer;
  padding: .15rem .3rem; font-size: .7rem; border-radius: 4px;
}
.cam-float-btn:hover { color: #fff; background: rgba(255,255,255,.1); }

.cam-float-body { position: relative; background: #000; line-height: 0; }
.cam-float-body video { width: 100%; display: block; transform: scaleX(-1); }  /* efek cermin */
.cam-rec {
  position: absolute; top: .35rem; left: .35rem;
  display: inline-flex; align-items: center; gap: .25rem;
  background: rgba(220, 38, 38, .9); color: #fff;
  font-size: .58rem; font-weight: 800; letter-spacing: .06em;
  padding: .12rem .35rem; border-radius: 4px; line-height: 1.4;
}
.cam-rec-dot { width: 5px; height: 5px; border-radius: 50%; background: #fff; animation: camPulse 1.2s infinite; }

.cam-float-foot {
  display: flex; justify-content: space-between; align-items: center; gap: .4rem;
  padding: .3rem .55rem; font-size: .63rem; color: #94a3b8; background: #131c2e;
}
.cam-shot { font-variant-numeric: tabular-nums; }

.cam-float.minimized { width: 132px; }
.cam-float.minimized .cam-float-body,
.cam-float.minimized .cam-float-foot { display: none; }

@media (max-width: 480px) {
  .cam-float { width: 148px; }
  .cam-float.minimized { width: 116px; }
}

/* ---------- Kartu kamera pada Monitoring Ujian ---------- */
.cam-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(178px, 1fr)); gap: .75rem; }
.cam-card { background: #fff; border: 1px solid #e7ebf2; border-radius: 12px; overflow: hidden; }
.cam-card-img { position: relative; background: #0b1220; aspect-ratio: 4/3; }
.cam-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cam-card-empty {
  position: absolute; inset: 0; display: grid; place-items: center;
  color: #475569; font-size: .7rem; text-align: center; padding: .5rem; gap: .3rem;
}
.cam-card-badge {
  position: absolute; top: .3rem; right: .3rem; font-size: .58rem; font-weight: 800;
  padding: .12rem .4rem; border-radius: 4px; letter-spacing: .03em;
}
.cam-card-body { padding: .5rem .6rem; }
.cam-card-name { font-size: .78rem; font-weight: 700; color: #0f172a; line-height: 1.3; }
.cam-card-meta { font-size: .66rem; color: #64748b; margin-top: .1rem; }
.cam-stale { filter: grayscale(.75) brightness(.72); }
