/* Absen Asatidz — tema hijau zamrud + emas, sidebar, ramah HP */
:root {
  --pri: #047857; --pri-d: #065f46; --pri-dd: #064e3b; --pri-l: #ecfdf5; --pri-ll: #d1fae5;
  --gold: #c99a2e; --gold-l: #fdf6e3;
  --bg: #f2f5f3; --card: #fff; --text: #1e293b; --muted: #64748b; --line: #e6ebe8;
  --H: #16a34a; --T: #ea8a0c; --I: #2563eb; --S: #7c3aed; --U: #db2777; --A: #dc2626;
  --radius: 14px; --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 4px 16px rgba(15, 23, 42, .06);
  --sb-w: 252px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 14.5px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif; background: var(--bg); color: var(--text); }
a { color: var(--pri); text-decoration: none; }
a:hover { text-decoration: underline; }
.ic { width: 18px; height: 18px; flex: none; }
h1 { font-size: 22px; margin: 0; letter-spacing: -.01em; }
h2 { font-size: 16px; margin: 0 0 12px; display: flex; align-items: center; gap: 8px; }
h2 .ic { color: var(--pri); }
code { background: #f1f5f9; padding: 1px 6px; border-radius: 5px; font-size: 12.5px; word-break: break-all; }

/* ---------- kerangka: sidebar + konten ---------- */
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--sb-w); z-index: 40; display: flex; flex-direction: column;
  color: rgba(255, 255, 255, .85); background:
    radial-gradient(circle at 20% 0%, rgba(201, 154, 46, .22), transparent 40%),
    radial-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px) 0 0 / 16px 16px,
    linear-gradient(180deg, var(--pri-dd), color-mix(in srgb, var(--pri-dd) 55%, #000));
  transition: transform .25s ease;
}
.sb-brand { display: flex; align-items: center; gap: 12px; padding: 20px 18px 16px; color: #fff; text-decoration: none !important; }
.sb-brand .logo { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: var(--pri-dd);
  background: linear-gradient(135deg, #f6d98a, var(--gold)); box-shadow: 0 4px 14px rgba(201, 154, 46, .4); }
.sb-brand .logo .ic { width: 22px; height: 22px; }
.sb-brand b { display: block; font-size: 16px; letter-spacing: .01em; }
.sb-brand small { color: rgba(255, 255, 255, .65); font-size: 12px; }
.sb-nav { flex: 1; overflow-y: auto; padding: 4px 12px 12px; }
.sb-label { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: #fff; opacity: .5; margin: 14px 10px 6px; }
.sb-nav a { display: flex; align-items: center; gap: 12px; padding: 9px 12px; margin: 2px 0; border-radius: 10px; color: rgba(255, 255, 255, .82); text-decoration: none; font-weight: 500; }
.sb-nav a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.sb-nav a.active { background: #fff; color: var(--pri-dd); box-shadow: 0 4px 12px rgba(0, 0, 0, .18); }
.sb-nav a.active .ic { color: var(--pri); }
.sb-nav .pill { margin-left: auto; font-style: normal; background: var(--gold); color: #fff; border-radius: 99px; font-size: 11px; padding: 0 7px; font-weight: 700; }
.sb-user { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-top: 1px solid rgba(255, 255, 255, .1); }
.avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px; flex: none;
  background: linear-gradient(135deg, #34d399, var(--pri)); color: #fff; }
.sb-user .who { flex: 1; min-width: 0; line-height: 1.25; }
.sb-user .who b { display: block; color: #fff; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-user .who small { color: rgba(255, 255, 255, .65); font-size: 11.5px; }
.sb-logout { color: rgba(255, 255, 255, .7); padding: 6px; border-radius: 8px; }
.sb-logout:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.sb-backdrop { display: none; }

.main { margin-left: var(--sb-w); min-height: 100vh; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 12px; height: 56px; padding: 0 24px;
  background: rgba(242, 245, 243, .85); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav-btn { display: none; border: 0; background: #fff; color: var(--pri-dd); width: 40px; height: 40px; border-radius: 10px; box-shadow: var(--shadow); cursor: pointer; place-items: center; }
.tb-brand { display: none; font-weight: 700; color: var(--pri-dd); }
.tb-date { margin-left: auto; color: var(--muted); font-size: 13px; }
.content { flex: 1; width: 100%; max-width: 1320px; padding: 22px 24px 8px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.page-head p { margin: 4px 0 0; color: var(--muted); }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.footer { text-align: center; color: var(--muted); font-size: 12px; padding: 24px 16px; }

@media (max-width: 960px) {
  .sidebar { transform: translateX(-100%); box-shadow: none; }
  body.nav-open .sidebar { transform: none; box-shadow: 0 0 40px rgba(0, 0, 0, .35); }
  body.nav-open .sb-backdrop { display: block; position: fixed; inset: 0; z-index: 35; background: rgba(2, 44, 34, .45); }
  body.nav-open { overflow: hidden; }
  .main { margin-left: 0; }
  .nav-btn { display: grid; }
  .tb-brand { display: block; }
  .topbar { padding: 0 14px; }
  .content { padding: 16px 14px 8px; }
  h1 { font-size: 19px; }
}

/* ---------- komponen ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 16px; box-shadow: var(--shadow); }
.card.flush { padding: 0; overflow: hidden; }
.card.flush > h2 { padding: 16px 18px 0; }
.card.empty { text-align: center; padding: 36px 18px; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.grid-2 { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
.grid-3-1 { display: grid; gap: 16px; grid-template-columns: 2fr 1fr; }
@media (max-width: 900px) { .grid-2, .grid-3-1 { grid-template-columns: 1fr; } }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.row > label, .field { display: flex; flex-direction: column; gap: 5px; font-size: 12.5px; color: var(--muted); font-weight: 500; }
.row > label.check, label.check { flex-direction: row; align-items: center; gap: 8px; color: var(--text); font-size: 14px; font-weight: 400; }
.grow { flex: 1; min-width: 180px; }
.row > label.btn { flex-direction: row; font-size: 14.5px; font-weight: 600; color: var(--pri-d); gap: 7px; }
form.inline.row { display: inline-flex; }
input, select, textarea { font: inherit; padding: 9px 11px; border: 1px solid #cfd8d3; border-radius: 10px; background: #fff; color: var(--text); min-height: 40px; max-width: 100%; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--pri); box-shadow: 0 0 0 3px var(--pri-ll); }
input[type=checkbox] { min-height: 0; width: 18px; height: 18px; accent-color: var(--pri); }
input[type=number] { width: 90px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; font: inherit; font-weight: 600; padding: 9px 16px; min-height: 40px; border-radius: 10px;
  border: 1px solid var(--pri); background: var(--pri); color: #fff; cursor: pointer; text-decoration: none !important; white-space: nowrap; transition: background .15s, box-shadow .15s; }
.btn:hover { background: var(--pri-d); box-shadow: 0 4px 12px rgba(4, 120, 87, .25); }
.btn .ic { width: 16px; height: 16px; }
.btn-sec { background: #fff; color: var(--pri-d); border-color: #cfe3d9; }
.btn-sec:hover { background: var(--pri-l); box-shadow: none; }
.btn-gold { background: var(--gold); border-color: var(--gold); }
.btn-gold:hover { background: #b0861f; }
.btn-danger { background: #fff; color: var(--A); border-color: #fecaca; }
.btn-danger:hover { background: #fef2f2; box-shadow: none; }
.btn-sm { padding: 5px 10px; min-height: 32px; font-size: 12.5px; border-radius: 8px; }
.btn-block { width: 100%; }
.inline { display: inline; }
.actions { display: flex; gap: 6px; flex-wrap: wrap; }

table { width: 100%; border-collapse: collapse; }
th, td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
th { background: #f7faf8; font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; font-weight: 600; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: #fafcfb; }
td.c, th.c { text-align: center; }
td.r, th.r { text-align: right; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-wrap table { min-width: 560px; }
tfoot th { background: var(--pri-l); color: var(--pri-dd); }
.name-cell { display: flex; align-items: center; gap: 10px; }
.name-cell .avatar { width: 32px; height: 32px; font-size: 12px; }
.name-cell small { display: block; color: var(--muted); font-size: 12px; }

/* Tabel jadi kartu di HP */
@media (max-width: 640px) {
  table.stack, table.stack tbody, table.stack tr, table.stack td { display: block; width: 100%; }
  table.stack { min-width: 0 !important; }
  table.stack thead { display: none; }
  table.stack tr { border-bottom: 1px solid var(--line); padding: 10px 14px; }
  table.stack td { border: 0; padding: 3px 0; display: flex; justify-content: space-between; gap: 12px; text-align: right; }
  table.stack td[data-label]::before { content: attr(data-label); color: var(--muted); font-size: 12px; text-align: left; }
  table.stack td.main-col { display: block; text-align: left; padding-bottom: 6px; }
  table.stack td.main-col::before { display: none; }
  table.stack td.actions-col { justify-content: flex-start; padding-top: 8px; }
}

.alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; margin-bottom: 16px; border: 1px solid transparent; }
.alert .ic { margin-top: 2px; }
.alert-ok { background: #ecfdf5; color: #065f46; border-color: #a7f3d0; }
.alert-err { background: #fef2f2; color: #991b1b; border-color: #fecaca; }
.alert-warn { background: #fffbeb; color: #92400e; border-color: #fde68a; }
.alert-info { background: #eff6ff; color: #1e40af; border-color: #bfdbfe; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.hint { font-size: 12.5px; color: var(--muted); margin: 10px 0 0; }
.tag { display: inline-block; padding: 1px 9px; border-radius: 99px; font-size: 12px; font-weight: 600; background: #f1f5f9; color: #475569; }
.tag-ok { background: #dcfce7; color: #166534; } .tag-warn { background: #fef3c7; color: #92400e; }
.tag-err { background: #fee2e2; color: #991b1b; } .tag-info { background: #dbeafe; color: #1e40af; }

.badge { display: inline-grid; place-items: center; min-width: 28px; height: 26px; padding: 0 7px; border-radius: 8px; font-size: 12.5px; font-weight: 700; color: #fff; }
.st-HADIR { background: var(--H); } .st-TERLAMBAT { background: var(--T); } .st-IZIN { background: var(--I); }
.st-SAKIT { background: var(--S); } .st-UDZUR { background: var(--U); } .st-ALFA { background: var(--A); }
.badge.derived { opacity: .45; }
.badge.manual { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #1e293b; }
.dot-empty { color: #cbd5e1; font-weight: 700; }
.cell-time { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend .badge { min-width: 22px; height: 20px; font-size: 11px; }

/* Statistik & kartu sholat */
.stat-card { display: flex; gap: 14px; align-items: center; }
.stat-ic { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; flex: none; }
.stat-ic .ic { width: 22px; height: 22px; }
.stat-ic.g { background: #dcfce7; color: #15803d; } .stat-ic.o { background: #ffedd5; color: #c2410c; }
.stat-ic.b { background: #dbeafe; color: #1d4ed8; } .stat-ic.y { background: var(--gold-l); color: #a16207; } .stat-ic.r { background: #fee2e2; color: #b91c1c; }
.stat-num { font-size: 26px; font-weight: 800; line-height: 1.1; }
.stat-lbl { color: var(--muted); font-size: 12.5px; }

.hero { position: relative; overflow: hidden; color: #fff; border: 0;
  background: radial-gradient(circle at 90% -20%, rgba(201, 154, 46, .45), transparent 45%), linear-gradient(135deg, var(--pri-dd), var(--pri)); }
.hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px) 0 0 / 14px 14px; pointer-events: none; }
.hero > * { position: relative; z-index: 1; }
.hero h2 { color: #fff; }
.hero .muted, .hero small { color: rgba(255, 255, 255, .7); }
.prayers { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.prayer { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .14); border-radius: 12px; padding: 12px; }
.prayer .nm { font-size: 12.5px; color: rgba(255, 255, 255, .72); display: flex; justify-content: space-between; gap: 4px; }
.prayer .tm { font-size: 24px; font-weight: 800; color: #fff; letter-spacing: .01em; }
.prayer .wn { font-size: 11.5px; color: rgba(255, 255, 255, .78); }
.prayer.now { background: #fff; border-color: #fff; box-shadow: 0 6px 20px rgba(0, 0, 0, .2); }
.prayer.now .nm, .prayer.now .wn { color: var(--muted); }
.prayer.now .tm { color: var(--pri-dd); }
.prayer .live { background: var(--gold); color: #fff; font-size: 10px; font-weight: 700; padding: 0 6px; border-radius: 99px; text-transform: uppercase; }
@media (max-width: 760px) { .prayers { grid-template-columns: repeat(2, 1fr); } .prayers .prayer:first-child { grid-column: span 2; } }
@media (max-width: 560px) {
  .tb-date { display: none; }
  .grid.stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .grid.stats .card { padding: 12px; flex-direction: column; align-items: flex-start; gap: 8px; }
  .grid.stats .stat-ic { width: 36px; height: 36px; }
  .hero h2 { flex-wrap: wrap; }
  .page-actions .btn { padding: 7px 11px; }
}

.bar { display: flex; height: 8px; border-radius: 6px; overflow: hidden; background: #edf2ef; margin: 8px 0; }
.bar span { display: block; height: 100%; }
.pstat b { font-size: 14px; }
.pstat .stat-num { font-size: 22px; }
.progress { height: 8px; background: #edf2ef; border-radius: 6px; overflow: hidden; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, #34d399, var(--pri)); }
.pct { font-weight: 800; }
.pct.hi { color: var(--H); } .pct.md { color: var(--T); } .pct.lo { color: var(--A); }

/* Kehadiran saya: kartu harian */
.days { display: grid; gap: 10px; }
.day { display: grid; grid-template-columns: 130px repeat(5, 1fr); align-items: center; gap: 6px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.day .dt b { display: block; font-size: 13.5px; } .day .dt small { color: var(--muted); }
.day .pc { text-align: center; } .day .pc small { display: block; font-size: 11px; color: var(--muted); }
.day.today { border-color: var(--pri); box-shadow: 0 0 0 3px var(--pri-ll); }
@media (max-width: 560px) { .day { grid-template-columns: repeat(5, 1fr); } .day .dt { grid-column: 1 / -1; display: flex; justify-content: space-between; } }

/* Foto wajah */
.face-box { display: flex; gap: 18px; flex-wrap: wrap; align-items: flex-start; }
.face-frame { width: 200px; height: 240px; border-radius: 16px; overflow: hidden; background: #f1f5f9; display: grid; place-items: center; color: #94a3b8; border: 2px dashed #cbd5e1; flex: none; }
.face-frame img { width: 100%; height: 100%; object-fit: cover; }
.face-frame .ic { width: 48px; height: 48px; }
.face-frame.filled { border-style: solid; border-color: var(--pri-ll); }
.face-thumb { width: 56px; height: 64px; border-radius: 10px; object-fit: cover; background: #f1f5f9; display: block; }
.file-btn { position: relative; overflow: hidden; }
.file-btn input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.steps { margin: 0; padding-left: 18px; color: var(--muted); font-size: 13px; }
.steps li { margin: 3px 0; }
.face-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.face-card { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; }
.face-card img { width: 100%; aspect-ratio: 5 / 6; object-fit: cover; display: block; background: #f1f5f9; }
.face-card .fc-body { padding: 12px; }
.face-card .fc-body b { display: block; }

/* Login */
body.guest { min-height: 100vh; display: grid; place-items: center; padding: 20px;
  background: radial-gradient(circle at 15% 10%, rgba(201, 154, 46, .35), transparent 35%),
    radial-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px) 0 0 / 18px 18px,
    linear-gradient(160deg, var(--pri-dd), color-mix(in srgb, var(--pri-dd) 55%, #000) 70%); }
.guest-wrap { width: 100%; max-width: 400px; }
.auth-card { background: #fff; border-radius: 20px; padding: 30px 26px; box-shadow: 0 20px 60px rgba(0, 0, 0, .35); }
.auth-logo { width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; margin: 0 auto 12px; color: var(--pri-dd);
  background: linear-gradient(135deg, #f6d98a, var(--gold)); box-shadow: 0 8px 20px rgba(201, 154, 46, .45); }
.auth-logo .ic { width: 30px; height: 30px; }
.auth-card h1 { text-align: center; font-size: 22px; }
.auth-card .sub { text-align: center; color: var(--muted); margin: 4px 0 20px; }
.auth-card form { display: flex; flex-direction: column; gap: 12px; }
.auth-card input:not([type=checkbox]) { width: 100%; min-height: 46px; }
.auth-card .btn { min-height: 46px; }
.guest .alert { margin-bottom: 12px; }
.guest-foot { text-align: center; color: rgba(255, 255, 255, .75); font-size: 12px; margin-top: 16px; }

/* Logo kustom */
.sb-brand .logo.has-img, .auth-logo.has-img { background: #fff; padding: 4px; }
.sb-brand .logo img, .auth-logo img { width: 100%; height: 100%; object-fit: contain; border-radius: 9px; }
body.guest.has-bg { background-size: cover; background-position: center; background-attachment: fixed; }

/* Tab */
.tabs { display: flex; gap: 6px; margin-bottom: 14px; background: #e7eeea; padding: 4px; border-radius: 12px; width: fit-content; max-width: 100%; }
.tabs a { display: inline-flex; align-items: center; gap: 7px; padding: 8px 16px; border-radius: 9px; color: var(--muted); font-weight: 600; text-decoration: none !important; }
.tabs a.on { background: #fff; color: var(--pri-dd); box-shadow: var(--shadow); }
.tabs .ic { width: 16px; height: 16px; }

/* Kegiatan */
.act-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.act-card { display: flex; flex-direction: column; gap: 10px; margin: 0; }
.act-card.inactive { opacity: .6; }
.act-head { display: flex; gap: 12px; align-items: center; }
.act-head b { display: block; font-size: 15px; } .act-head small { color: var(--muted); }
.act-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.act-meta .tag { display: inline-flex; gap: 5px; align-items: center; } .act-meta .ic { width: 13px; height: 13px; }
.act-card .actions { margin-top: auto; }
.day-pick { display: flex; gap: 6px; flex-wrap: wrap; }
.day-pick label { cursor: pointer; }
.day-pick input { position: absolute; opacity: 0; width: 0; height: 0; }
.day-pick span { display: grid; place-items: center; width: 46px; height: 40px; border-radius: 10px; border: 1px solid #cfd8d3; background: #fff; color: var(--text); font-weight: 600; }
.day-pick input:checked + span { background: var(--pri); border-color: var(--pri); color: #fff; }
.day-pick input:focus-visible + span { box-shadow: 0 0 0 3px var(--pri-ll); }
.member-pick { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); max-height: 60vh; overflow-y: auto; padding: 2px; }
.pick { display: flex; gap: 10px; align-items: center; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; background: #fff; }
.pick:has(input:checked) { border-color: var(--pri); background: var(--pri-l); }
.pick b { display: block; font-size: 13.5px; } .pick small { color: var(--muted); font-size: 12px; }
.hero-acts { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); margin-top: 10px; }
.act-row { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.act-row .dt b { display: block; } .act-row .dt small, .act-row .an small { color: var(--muted); font-size: 12px; display: block; }
.act-row.today { border-color: var(--pri); box-shadow: 0 0 0 3px var(--pri-ll); }

/* Absen dari HP */
.btn-lg { min-height: 52px; font-size: 16px; border-radius: 14px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; box-shadow: none; }
.scan-card { display: flex; flex-direction: column; gap: 14px; }
.cam { position: relative; aspect-ratio: 3 / 4; max-height: 62vh; width: 100%; background: #0b1f19; border-radius: 16px; overflow: hidden; }
.cam video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.cam-frame { position: absolute; left: 50%; top: 46%; width: 62%; aspect-ratio: 3 / 4; transform: translate(-50%, -50%); border: 3px dashed rgba(255, 255, 255, .55); border-radius: 50%; transition: border-color .2s; }
.cam-frame.on { border: 3px solid #4ade80; box-shadow: 0 0 0 999px rgba(0, 0, 0, .25); }
.cam-msg { position: absolute; inset: 0; display: grid; place-content: center; gap: 10px; text-align: center; color: #d1fae5; padding: 20px; justify-items: center; }
.cam-msg .ic { width: 40px; height: 40px; opacity: .7; }
.cam.enroll video { position: absolute; inset: 0; }
.cam .ring { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.ring-bg { fill: none; stroke: rgba(255, 255, 255, .45); stroke-width: 1.2; stroke-dasharray: 2 2; }
.ring-fg { fill: none; stroke: #4ade80; stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 0 100; transition: stroke-dasharray .3s; }
.cam-hint { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); background: rgba(0, 0, 0, .6); color: #fff; padding: 7px 14px; border-radius: 99px; font-size: 13.5px; white-space: nowrap; max-width: 92%; overflow: hidden; text-overflow: ellipsis; }
.face-status { display: flex; gap: 12px; align-items: center; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 13.5px; }
.checks li { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.checks .dot { width: 10px; height: 10px; border-radius: 50%; background: #cbd5e1; flex: none; }
.checks li.wait .dot { background: var(--T); animation: pulse 1s infinite; } .checks li.ok { color: var(--text); } .checks li.ok .dot { background: var(--H); }
.checks li.err { color: var(--A); } .checks li.err .dot { background: var(--A); }
.checks small { margin-left: auto; color: var(--muted); }
@keyframes pulse { 50% { opacity: .35; } }
.result { padding: 14px; border-radius: 12px; font-weight: 600; font-size: 15px; }
.result.ok { background: #dcfce7; color: #166534; } .result.err { background: #fee2e2; color: #991b1b; }
.open-item { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.open-item:last-child { border-bottom: 0; }

/* Tampilan */
.swatches { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.swatch { display: flex; flex-direction: column; align-items: center; gap: 4px; cursor: pointer; color: var(--text); }
.swatch input { position: absolute; opacity: 0; }
.swatch span { width: 46px; height: 46px; border-radius: 12px; border: 3px solid #fff; box-shadow: 0 0 0 1px var(--line); }
.swatch input:checked + span { box-shadow: 0 0 0 3px var(--gold); }
.brand-up { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.logo-prev { width: 84px; height: 84px; border-radius: 18px; display: grid; place-items: center; background: linear-gradient(135deg, #f6d98a, var(--gold)); color: var(--pri-dd); overflow: hidden; flex: none; }
.logo-prev.has-img, .logo-prev:has(img) { background: #fff; border: 1px solid var(--line); }
.logo-prev img { width: 100%; height: 100%; object-fit: contain; } .logo-prev .ic { width: 38px; height: 38px; }
.bg-prev { width: 160px; height: 96px; border-radius: 12px; background: linear-gradient(160deg, var(--pri-dd), color-mix(in srgb, var(--pri-dd) 55%, #000)); background-size: cover; background-position: center; flex: none; }
.login-preview { border-radius: 14px; padding: 30px 16px; display: grid; place-items: center; background: linear-gradient(160deg, var(--pri-dd), color-mix(in srgb, var(--pri-dd) 55%, #000) 70%); background-size: cover; background-position: center; }
.auth-card.mini { width: 220px; padding: 18px; display: flex; flex-direction: column; align-items: center; gap: 6px; border-radius: 16px; }
.auth-card.mini .auth-logo { width: 46px; height: 46px; margin: 0; } .auth-card.mini small { color: var(--muted); font-size: 11px; text-align: center; }
.fake-input { width: 100%; height: 26px; border: 1px solid var(--line); border-radius: 8px; } .fake-btn { width: 100%; height: 28px; border-radius: 8px; background: var(--pri); }
textarea { width: 100%; font-family: ui-monospace, Consolas, monospace; font-size: 13px; }

.access-table select { padding: 5px 8px; min-height: 34px; }
.mt { margin-top: 14px; } .mb0 { margin-bottom: 0; }
.right { margin-left: auto; }
@media print {
  .sidebar, .topbar, .footer, .no-print, .sb-backdrop { display: none !important; }
  .main { margin: 0; } .card { box-shadow: none; border: 0; } body { background: #fff; }
}
