/*!
 * sendyiht5.css — Tema glassmorphism aplikasi Presensi Sendyiht5
 * Mobile-first, mendukung mode gelap, target sentuh >= 44px, kontras teks >= 4.5:1.
 */

/* ============ 1. Token ============ */
:root {
  --s5-brand: #0d8a5c;
  --s5-brand-2: #14b37d;
  --s5-brand-3: #075c3e;
  --s5-brand-soft: rgba(20, 179, 125, .14);
  --s5-accent: #f2a516;
  --s5-info: #2f7ef0;
  --s5-danger: #dc3d43;
  --s5-warn: #c77c02;
  --s5-ok: #138a4d;
  --s5-purple: #7c5cf5;

  --s5-bg: #eaf3ef;
  --s5-bg-2: #f6faf8;
  --s5-text: #0e1d18;
  --s5-text-2: #33443e;
  --s5-muted: #5d6e68;
  --s5-line: rgba(14, 29, 24, .09);
  --s5-glass: rgba(255, 255, 255, .58);
  --s5-glass-strong: rgba(255, 255, 255, .8);
  --s5-glass-border: rgba(255, 255, 255, .75);
  --s5-glass-blur: 18px;
  --s5-input: rgba(255, 255, 255, .78);
  --s5-shadow: 0 10px 30px -12px rgba(9, 58, 41, .22), 0 2px 6px rgba(9, 58, 41, .05);
  --s5-shadow-lg: 0 24px 60px -20px rgba(9, 58, 41, .35);
  --s5-radius: 22px;
  --s5-radius-md: 16px;
  --s5-radius-sm: 12px;
  --s5-nav-h: 74px;
  --s5-font: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --s5-bg: #07120e;
    --s5-bg-2: #0b1813;
    --s5-text: #e8f3ee;
    --s5-text-2: #c4d4cd;
    --s5-muted: #93a69f;
    --s5-line: rgba(232, 243, 238, .1);
    --s5-glass: rgba(20, 36, 30, .55);
    --s5-glass-strong: rgba(22, 40, 33, .85);
    --s5-glass-border: rgba(255, 255, 255, .09);
    --s5-input: rgba(10, 22, 18, .7);
    --s5-brand-soft: rgba(20, 179, 125, .18);
    --s5-shadow: 0 10px 30px -12px rgba(0, 0, 0, .6);
    --s5-shadow-lg: 0 24px 60px -20px rgba(0, 0, 0, .7);
    --s5-warn: #f2b13a;
    --s5-danger: #ff6b70;
    --s5-ok: #3ccf84;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --s5-bg: #07120e;
  --s5-bg-2: #0b1813;
  --s5-text: #e8f3ee;
  --s5-text-2: #c4d4cd;
  --s5-muted: #93a69f;
  --s5-line: rgba(232, 243, 238, .1);
  --s5-glass: rgba(20, 36, 30, .55);
  --s5-glass-strong: rgba(22, 40, 33, .85);
  --s5-glass-border: rgba(255, 255, 255, .09);
  --s5-input: rgba(10, 22, 18, .7);
  --s5-brand-soft: rgba(20, 179, 125, .18);
  --s5-shadow: 0 10px 30px -12px rgba(0, 0, 0, .6);
  --s5-shadow-lg: 0 24px 60px -20px rgba(0, 0, 0, .7);
  --s5-warn: #f2b13a;
  --s5-danger: #ff6b70;
  --s5-ok: #3ccf84;
  color-scheme: dark;
}

/* ============ 2. Dasar ============ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--s5-font);
  font-size: 15px;
  line-height: 1.5;
  color: var(--s5-text);
  background: var(--s5-bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(42rem 30rem at 110% -10%, rgba(20, 179, 125, .35), transparent 60%),
    radial-gradient(36rem 28rem at -20% 20%, rgba(47, 126, 240, .18), transparent 60%),
    radial-gradient(40rem 30rem at 50% 120%, rgba(242, 165, 22, .16), transparent 60%),
    linear-gradient(180deg, var(--s5-bg-2), var(--s5-bg));
}
a { color: var(--s5-brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0 0 .4em; line-height: 1.25; letter-spacing: -.01em; }
h1 { font-size: 1.5rem; } h2 { font-size: 1.2rem; } h3 { font-size: 1.05rem; } h4 { font-size: .95rem; }
p { margin: 0 0 .75em; }
small, .s5-muted { color: var(--s5-muted); }
.s5-num { font-variant-numeric: tabular-nums; }
.ic { width: 20px; height: 20px; flex: none; vertical-align: middle; }
.ic-sm { width: 16px; height: 16px; } .ic-lg { width: 26px; height: 26px; } .ic-xl { width: 34px; height: 34px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--s5-brand-2) 70%, transparent); outline-offset: 2px; border-radius: 8px; }
[hidden] { display: none !important; }

/* ============ 3. Kaca (glass) ============ */
.s5-glass, .s5-card {
  background: var(--s5-glass);
  -webkit-backdrop-filter: blur(var(--s5-glass-blur)) saturate(160%);
  backdrop-filter: blur(var(--s5-glass-blur)) saturate(160%);
  border: 1px solid var(--s5-glass-border);
  border-radius: var(--s5-radius);
  box-shadow: var(--s5-shadow);
}
.s5-card { padding: 16px; margin-bottom: 14px; }
.s5-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.s5-card-head h3 { margin: 0; }
.s5-card-link { font-size: .85rem; font-weight: 600; display: inline-flex; align-items: center; gap: 2px; }

/* ============ 4. Tombol ============ */
.s5-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: 14px; border: 1px solid transparent;
  font: 600 .95rem/1 var(--s5-font); cursor: pointer; text-decoration: none !important;
  background: var(--s5-glass-strong); color: var(--s5-text); border-color: var(--s5-line);
  transition: transform .12s ease, box-shadow .2s ease, background .2s ease;
}
.s5-btn:active { transform: scale(.97); }
.s5-btn:disabled { opacity: .55; cursor: not-allowed; }
.s5-btn-primary { background: linear-gradient(135deg, var(--s5-brand-2), var(--s5-brand)); color: #fff; border: 0; box-shadow: 0 8px 20px -8px rgba(13, 138, 92, .7); }
.s5-btn-danger { background: linear-gradient(135deg, #f06a6e, var(--s5-danger)); color: #fff; border: 0; }
.s5-btn-ghost { background: transparent; border-color: transparent; }
.s5-btn-soft { background: var(--s5-brand-soft); color: var(--s5-brand); border: 0; }
.s5-btn-block { width: 100%; }
.s5-btn-sm { min-height: 36px; padding: 0 12px; font-size: .85rem; border-radius: 11px; }
.s5-btn-lg { min-height: 54px; font-size: 1.05rem; border-radius: 18px; }
.s5-btn-icon { width: 44px; padding: 0; }
.s5-btn-row { display: flex; gap: 10px; flex-wrap: wrap; }
.s5-btn-row > .s5-btn { flex: 1 1 auto; }

/* ============ 5. Form ============ */
.s5-field { margin-bottom: 14px; }
.s5-field > label, .s5-label { display: block; font-size: .82rem; font-weight: 600; color: var(--s5-text-2); margin-bottom: 6px; }
.s5-input, .s5-field input:not([type=checkbox]):not([type=radio]):not([type=file]), .s5-field select, .s5-field textarea {
  width: 100%; min-height: 46px; padding: 11px 14px; border-radius: 13px;
  border: 1px solid var(--s5-line); background: var(--s5-input); color: var(--s5-text);
  font: 500 .95rem var(--s5-font); transition: border .2s, box-shadow .2s;
}
.s5-field textarea { min-height: 96px; resize: vertical; }
.s5-input:focus, .s5-field input:focus, .s5-field select:focus, .s5-field textarea:focus { outline: none; border-color: var(--s5-brand-2); box-shadow: 0 0 0 4px var(--s5-brand-soft); }
.s5-field .s5-hint { font-size: .78rem; color: var(--s5-muted); margin-top: 4px; }
.s5-field .s5-err, .s5-err { font-size: .8rem; color: var(--s5-danger); margin-top: 4px; }
.s5-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.s5-row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.s5-check { display: flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 500; cursor: pointer; }
.s5-check input { width: 20px; height: 20px; accent-color: var(--s5-brand); }
.s5-file { display: flex; align-items: center; gap: 10px; padding: 12px; border: 1.5px dashed var(--s5-line); border-radius: 13px; background: var(--s5-input); }
.s5-file input { font-size: .85rem; width: 100%; }

/* Segmented / tab */
.s5-seg { display: flex; padding: 4px; gap: 4px; background: var(--s5-glass); border: 1px solid var(--s5-glass-border); border-radius: 14px; overflow-x: auto; scrollbar-width: none; }
.s5-seg::-webkit-scrollbar { display: none; }
.s5-seg a, .s5-seg button, .s5-seg label { flex: 1 0 auto; min-height: 38px; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 0 12px; border-radius: 10px; font-weight: 600; font-size: .85rem; color: var(--s5-muted); text-decoration: none !important; border: 0; background: none; cursor: pointer; white-space: nowrap; }
.s5-seg .on, .s5-seg input:checked + span { background: var(--s5-glass-strong); color: var(--s5-brand); box-shadow: 0 2px 8px rgba(0, 0, 0, .06); }
.s5-seg label { position: relative; padding: 0; }
.s5-seg label input { position: absolute; opacity: 0; pointer-events: none; }
.s5-seg label span { width: 100%; height: 100%; min-height: 38px; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 0 12px; border-radius: 10px; }

/* ============ 6. Lencana & chip ============ */
.s5-badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; font-size: .74rem; font-weight: 700; white-space: nowrap; }
.s5-badge.ok { background: rgba(19, 138, 77, .13); color: var(--s5-ok); }
.s5-badge.warn { background: rgba(242, 165, 22, .17); color: var(--s5-warn); }
.s5-badge.bad { background: rgba(220, 61, 67, .13); color: var(--s5-danger); }
.s5-badge.info { background: rgba(47, 126, 240, .13); color: var(--s5-info); }
.s5-badge.mute { background: var(--s5-line); color: var(--s5-muted); }
.s5-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: currentColor; }

/* ============ 7. Shell mobile ============ */
.s5-app { max-width: 480px; margin: 0 auto; min-height: 100vh; padding-bottom: calc(var(--s5-nav-h) + 24px + env(safe-area-inset-bottom)); position: relative; }
.s5-page { padding: 0 16px; }
.s5-topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 10px; padding: 12px 16px; padding-top: calc(12px + env(safe-area-inset-top));
  background: var(--s5-glass); -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%); border-bottom: 1px solid var(--s5-glass-border); margin-bottom: 16px; }
.s5-topbar h1 { font-size: 1.08rem; margin: 0; flex: 1; }
.s5-topbar .s5-btn-icon { min-height: 40px; width: 40px; border-radius: 12px; }

/* Hero beranda */
.s5-hero { position: relative; padding: calc(18px + env(safe-area-inset-top)) 18px 86px; color: #fff; border-radius: 0 0 32px 32px; overflow: hidden;
  background: radial-gradient(28rem 16rem at 100% 0%, rgba(255, 255, 255, .22), transparent 60%), linear-gradient(150deg, #10a06b 0%, #0b7a51 55%, #075c3e 100%); }
.s5-hero::after { content: ""; position: absolute; right: -60px; top: -40px; width: 220px; height: 220px; border-radius: 50%; border: 36px solid rgba(255, 255, 255, .07); }
.s5-hero-top { display: flex; align-items: center; gap: 12px; position: relative; z-index: 1; }
.s5-hero-top .s5-who { flex: 1; min-width: 0; }
.s5-hero-top .s5-who small { color: rgba(255, 255, 255, .82); display: block; font-size: .8rem; }
.s5-hero-top .s5-who b { display: block; font-size: 1.08rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s5-hero .s5-icon-btn { position: relative; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; color: #fff; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .22); }
.s5-hero .s5-icon-btn .s5-count { position: absolute; top: -4px; right: -4px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: #ff4d55; color: #fff; font-size: .68rem; font-weight: 800; display: grid; place-items: center; border: 2px solid #0b7a51; }
.s5-avatar { width: 46px; height: 46px; border-radius: 15px; flex: none; display: grid; place-items: center; font-weight: 800; color: var(--s5-brand-3); background: linear-gradient(135deg, #e7fff4, #b8f0d8); overflow: hidden; }
.s5-avatar img { width: 100%; height: 100%; object-fit: cover; }
.s5-avatar.sm { width: 36px; height: 36px; border-radius: 11px; font-size: .8rem; }

/* Kartu absen (gaya kartu dompet) */
.s5-absen-card { margin: -66px 16px 16px; padding: 18px; position: relative; z-index: 2; }
.s5-absen-card .s5-clock { font-size: 2.3rem; font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.s5-absen-card .s5-date { color: var(--s5-muted); font-size: .85rem; margin-top: 4px; }
.s5-absen-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.s5-shift-pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 10px; background: var(--s5-brand-soft); color: var(--s5-brand); font-size: .78rem; font-weight: 700; white-space: nowrap; }
.s5-absen-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 16px 0; }
.s5-absen-stats > div { padding: 10px; border-radius: 14px; background: var(--s5-glass-strong); border: 1px solid var(--s5-line); text-align: center; }
.s5-absen-stats small { display: block; font-size: .72rem; }
.s5-absen-stats b { font-size: 1.05rem; }
.s5-absen-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.s5-absen-actions .s5-btn { min-height: 54px; border-radius: 16px; }

/* Grid layanan (ala super-app) */
.s5-services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px 8px; }
.s5-service { display: flex; flex-direction: column; align-items: center; gap: 7px; text-align: center; text-decoration: none !important; color: var(--s5-text); font-size: .74rem; font-weight: 600; line-height: 1.2; min-height: 44px; }
.s5-service .s5-tile { width: 54px; height: 54px; border-radius: 18px; display: grid; place-items: center; position: relative; box-shadow: 0 6px 16px -8px currentColor; }
.s5-service .s5-tile .ic { width: 25px; height: 25px; }
.s5-service .s5-tile .s5-count { position: absolute; top: -5px; right: -5px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: var(--s5-danger); color: #fff; font-size: .66rem; font-weight: 800; display: grid; place-items: center; }
.c-green { color: #0d8a5c; background: linear-gradient(145deg, #dff8ec, #bdeed8); }
.c-blue { color: #2563eb; background: linear-gradient(145deg, #e4eeff, #c9dcff); }
.c-orange { color: #d97706; background: linear-gradient(145deg, #fff2db, #ffe0ad); }
.c-red { color: #dc2626; background: linear-gradient(145deg, #ffe4e4, #ffc9c9); }
.c-purple { color: #7c3aed; background: linear-gradient(145deg, #efe6ff, #dccbff); }
.c-teal { color: #0d9488; background: linear-gradient(145deg, #dcfaf5, #b5efe6); }
.c-pink { color: #db2777; background: linear-gradient(145deg, #ffe4f1, #ffc8e2); }
.c-slate { color: #475569; background: linear-gradient(145deg, #eef2f6, #d9e0e8); }
.c-amber { color: #b45309; background: linear-gradient(145deg, #fff7d6, #ffe89a); }
.c-indigo { color: #4f46e5; background: linear-gradient(145deg, #e7e8ff, #cfd1ff); }
[data-theme="dark"] .s5-service .s5-tile, :root:not([data-theme="light"]) .s5-service .s5-tile { filter: saturate(1.1); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .s5-tile { background-blend-mode: normal; opacity: .95; } }

/* Carousel pengumuman */
.s5-carousel { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 16px 8px; margin: 0 -16px; scrollbar-width: none; }
.s5-carousel::-webkit-scrollbar { display: none; }
.s5-promo { flex: 0 0 86%; scroll-snap-align: center; min-height: 128px; padding: 16px; border-radius: 20px; color: #fff; position: relative; overflow: hidden; text-decoration: none !important; display: flex; flex-direction: column; justify-content: flex-end; }
.s5-promo:nth-child(4n+1) { background: linear-gradient(135deg, #0f9d6b, #0a6c4a); }
.s5-promo:nth-child(4n+2) { background: linear-gradient(135deg, #3b82f6, #1e40af); }
.s5-promo:nth-child(4n+3) { background: linear-gradient(135deg, #f59e0b, #b45309); }
.s5-promo:nth-child(4n+4) { background: linear-gradient(135deg, #8b5cf6, #5b21b6); }
.s5-promo::before { content: ""; position: absolute; right: -30px; top: -30px; width: 130px; height: 130px; border-radius: 50%; background: rgba(255, 255, 255, .12); }
.s5-promo b { font-size: 1rem; position: relative; }
.s5-promo span { font-size: .8rem; opacity: .9; position: relative; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Daftar */
.s5-list { list-style: none; margin: 0; padding: 0; }
.s5-item { display: flex; align-items: center; gap: 12px; padding: 12px 2px; border-bottom: 1px solid var(--s5-line); color: var(--s5-text); text-decoration: none !important; min-height: 56px; }
.s5-item:last-child { border-bottom: 0; }
.s5-item .s5-item-body { flex: 1; min-width: 0; }
.s5-item .s5-item-body b { display: block; font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s5-item .s5-item-body small { display: block; font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s5-item .s5-ico { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; flex: none; }
.s5-item .s5-end { text-align: right; flex: none; font-size: .8rem; }
.s5-item.unread b::after { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--s5-danger); margin-left: 6px; vertical-align: middle; }

/* Kalender riwayat */
.s5-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.s5-cal .h { text-align: center; font-size: .7rem; font-weight: 700; color: var(--s5-muted); padding-bottom: 2px; }
.s5-cal .d { aspect-ratio: 1; border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: .82rem; font-weight: 700; background: var(--s5-glass-strong); border: 1px solid var(--s5-line); position: relative; }
.s5-cal .d i { width: 6px; height: 6px; border-radius: 50%; margin-top: 3px; background: transparent; }
.s5-cal .d.ok i { background: var(--s5-ok); } .s5-cal .d.warn i { background: var(--s5-accent); } .s5-cal .d.bad i { background: var(--s5-danger); } .s5-cal .d.info i { background: var(--s5-info); }
.s5-cal .d.mute { opacity: .55; } .s5-cal .d.today { outline: 2px solid var(--s5-brand-2); }
.s5-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .75rem; color: var(--s5-muted); margin-top: 10px; }
.s5-legend span { display: inline-flex; align-items: center; gap: 5px; }

/* Statistik */
.s5-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.s5-stat { padding: 14px; border-radius: 18px; background: var(--s5-glass-strong); border: 1px solid var(--s5-line); }
.s5-stat small { display: flex; align-items: center; gap: 6px; font-size: .76rem; font-weight: 600; }
.s5-stat b { display: block; font-size: 1.45rem; margin-top: 4px; letter-spacing: -.02em; }
.s5-stat .s5-trend { font-size: .74rem; font-weight: 700; }
.s5-progress { height: 8px; border-radius: 8px; background: var(--s5-line); overflow: hidden; }
.s5-progress > i { display: block; height: 100%; border-radius: 8px; background: linear-gradient(90deg, var(--s5-brand-2), var(--s5-brand)); }

/* Timeline approval */
.s5-timeline { list-style: none; margin: 0; padding: 0 0 0 4px; }
.s5-timeline li { position: relative; padding: 0 0 18px 30px; }
.s5-timeline li::before { content: ""; position: absolute; left: 9px; top: 22px; bottom: 0; width: 2px; background: var(--s5-line); }
.s5-timeline li:last-child::before { display: none; }
.s5-timeline .s5-tl-dot { position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--s5-line); color: #fff; }
.s5-timeline .disetujui .s5-tl-dot { background: var(--s5-ok); } .s5-timeline .ditolak .s5-tl-dot { background: var(--s5-danger); } .s5-timeline .menunggu .s5-tl-dot { background: var(--s5-accent); box-shadow: 0 0 0 5px rgba(242, 165, 22, .22); }
.s5-timeline b { display: block; font-size: .9rem; } .s5-timeline small { display: block; font-size: .78rem; }
.s5-timeline .s5-note { margin-top: 6px; padding: 8px 10px; border-radius: 10px; background: var(--s5-line); font-size: .82rem; }

/* Kamera absen */
.s5-cam { position: relative; border-radius: 24px; overflow: hidden; background: #0b1512; aspect-ratio: 3/4; }
.s5-cam video, .s5-cam canvas, .s5-cam img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.s5-cam video { transform: scaleX(-1); }
.s5-cam .s5-guide { position: absolute; left: 50%; top: 44%; width: 62%; aspect-ratio: 3/4; transform: translate(-50%, -50%); border-radius: 50%; border: 3px dashed rgba(255, 255, 255, .75); box-shadow: 0 0 0 999px rgba(0, 0, 0, .28); transition: border-color .3s; }
.s5-cam .s5-guide.ok { border-color: #3ce59a; border-style: solid; }
.s5-cam .s5-cam-info { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; gap: 8px; flex-wrap: wrap; }
.s5-cam .s5-cam-info span { padding: 6px 10px; border-radius: 10px; background: rgba(0, 0, 0, .5); color: #fff; font-size: .76rem; font-weight: 600; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); display: inline-flex; align-items: center; gap: 5px; }
.s5-mini-map { height: 170px; border-radius: 18px; overflow: hidden; border: 1px solid var(--s5-line); }

/* Navigasi bawah */
.s5-nav { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 40; width: min(456px, calc(100% - 24px)); height: var(--s5-nav-h);
  display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; padding: 0 6px; border-radius: 24px;
  background: var(--s5-glass-strong); -webkit-backdrop-filter: blur(22px) saturate(170%); backdrop-filter: blur(22px) saturate(170%); border: 1px solid var(--s5-glass-border); box-shadow: var(--s5-shadow-lg); }
.s5-nav a { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: .68rem; font-weight: 700; color: var(--s5-muted); text-decoration: none !important; min-height: 48px; justify-content: center; position: relative; }
.s5-nav a.on { color: var(--s5-brand); }
.s5-nav a .s5-count { position: absolute; top: 2px; right: calc(50% - 22px); min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--s5-danger); color: #fff; font-size: .62rem; display: grid; place-items: center; }
.s5-nav .s5-fab { width: 60px; height: 60px; margin: -34px auto 0; border-radius: 22px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--s5-brand-2), var(--s5-brand-3)); box-shadow: 0 12px 24px -8px rgba(13, 138, 92, .8); border: 4px solid var(--s5-bg); }
.s5-nav .s5-fab .ic { width: 28px; height: 28px; }

/* Banner offline & antrean */
.s5-net { position: fixed; top: calc(8px + env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); z-index: 60; display: none; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; font-size: .8rem; font-weight: 700; color: #fff; background: #2b2f2e; box-shadow: var(--s5-shadow); }
.s5-net.show { display: inline-flex; }
.s5-queue { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 16px; background: rgba(242, 165, 22, .15); color: var(--s5-warn); font-weight: 600; font-size: .85rem; margin-bottom: 14px; }

/* Toast & sheet */
.s5-toasts { position: fixed; z-index: 80; left: 50%; transform: translateX(-50%); bottom: calc(var(--s5-nav-h) + 24px + env(safe-area-inset-bottom)); width: min(440px, calc(100% - 32px)); display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.s5-toast { pointer-events: auto; display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 16px; color: #fff; background: rgba(18, 30, 26, .92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: var(--s5-shadow-lg); font-size: .88rem; font-weight: 500; animation: s5-in .25s ease; }
.s5-toast.ok { background: rgba(13, 120, 80, .95); } .s5-toast.bad { background: rgba(190, 40, 46, .95); } .s5-toast.warn { background: rgba(170, 105, 0, .95); }
@keyframes s5-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.s5-sheet-bg { position: fixed; inset: 0; z-index: 70; background: rgba(4, 12, 9, .45); display: none; }
.s5-sheet-bg.show { display: block; }
.s5-sheet { position: fixed; z-index: 71; left: 50%; bottom: 0; transform: translate(-50%, 110%); width: min(480px, 100%); max-height: 88vh; overflow: auto; padding: 10px 18px calc(22px + env(safe-area-inset-bottom)); border-radius: 26px 26px 0 0; background: var(--s5-glass-strong); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); border: 1px solid var(--s5-glass-border); transition: transform .28s cubic-bezier(.2, .8, .2, 1); }
.s5-sheet.show { transform: translate(-50%, 0); }
.s5-sheet::before { content: ""; display: block; width: 42px; height: 5px; border-radius: 3px; background: var(--s5-line); margin: 0 auto 12px; }

.s5-alert { display: flex; gap: 10px; padding: 12px 14px; border-radius: 14px; font-size: .88rem; margin-bottom: 14px; align-items: flex-start; }
.s5-alert.ok { background: rgba(19, 138, 77, .12); color: var(--s5-ok); }
.s5-alert.bad { background: rgba(220, 61, 67, .12); color: var(--s5-danger); }
.s5-alert.warn { background: rgba(242, 165, 22, .16); color: var(--s5-warn); }
.s5-alert.info { background: rgba(47, 126, 240, .12); color: var(--s5-info); }
.s5-empty { text-align: center; padding: 30px 10px; color: var(--s5-muted); }
.s5-empty .ic { width: 44px; height: 44px; opacity: .45; margin-bottom: 8px; }
.s5-section-title { display: flex; justify-content: space-between; align-items: center; margin: 20px 2px 10px; }
.s5-section-title h3 { margin: 0; font-size: 1rem; }
.s5-kv { display: grid; grid-template-columns: 40% 60%; gap: 8px 10px; font-size: .9rem; }
.s5-kv dt { color: var(--s5-muted); } .s5-kv dd { margin: 0; font-weight: 600; word-break: break-word; }
.s5-divider { height: 1px; background: var(--s5-line); margin: 14px 0; border: 0; }
.s5-flex { display: flex; align-items: center; gap: 10px; } .s5-between { justify-content: space-between; } .s5-wrap { flex-wrap: wrap; }
.s5-mt { margin-top: 14px; } .s5-mb0 { margin-bottom: 0; } .s5-center { text-align: center; } .s5-right { text-align: right; }
.s5-skeleton { background: linear-gradient(90deg, var(--s5-line), rgba(255, 255, 255, .3), var(--s5-line)); background-size: 200% 100%; animation: s5-sk 1.2s infinite; border-radius: 10px; min-height: 16px; }
@keyframes s5-sk { to { background-position: -200% 0; } }

/* Auth */
.s5-auth { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.s5-auth-card { width: min(420px, 100%); padding: 28px 22px; }
.s5-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.s5-brand-mark { width: 52px; height: 52px; border-radius: 17px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--s5-brand-2), var(--s5-brand-3)); box-shadow: 0 10px 22px -8px rgba(13, 138, 92, .8); }

/* ============ 8. Admin ============ */
.s5-admin { display: grid; grid-template-columns: 264px 1fr; min-height: 100vh; }
.s5-side { position: sticky; top: 0; height: 100vh; overflow-y: auto; padding: 18px 14px; margin: 12px 0 12px 12px; height: calc(100vh - 24px); border-radius: 26px; }
.s5-side .s5-brand { margin: 4px 6px 18px; }
.s5-side nav a { display: flex; align-items: center; gap: 11px; min-height: 42px; padding: 0 12px; margin-bottom: 2px; border-radius: 12px; color: var(--s5-text-2); font-weight: 600; font-size: .9rem; text-decoration: none !important; }
.s5-side nav a:hover { background: var(--s5-line); }
.s5-side nav a.on { background: linear-gradient(135deg, var(--s5-brand-2), var(--s5-brand)); color: #fff; box-shadow: 0 8px 18px -10px rgba(13, 138, 92, .9); }
.s5-side nav .s5-nav-group { font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--s5-muted); margin: 16px 12px 6px; }
.s5-main { padding: 12px 20px 40px; min-width: 0; }
.s5-main-top { position: sticky; top: 12px; z-index: 20; display: flex; align-items: center; gap: 12px; padding: 10px 14px; margin-bottom: 18px; border-radius: 20px; }
.s5-main-top h1 { font-size: 1.15rem; margin: 0; flex: 1; }
.s5-menu-btn { display: none; }
.s5-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }
.s5-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.s5-grid-3 { display: grid; grid-template-columns: 2fr 1fr; gap: 14px; }
.s5-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin-bottom: 14px; }
.s5-toolbar .s5-field { margin: 0; min-width: 150px; }
.s5-table-wrap { overflow-x: auto; border-radius: var(--s5-radius-md); }
.s5-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .86rem; }
.s5-table th { text-align: left; font-size: .74rem; text-transform: uppercase; letter-spacing: .04em; color: var(--s5-muted); font-weight: 800; padding: 10px 12px; border-bottom: 1px solid var(--s5-line); white-space: nowrap; background: var(--s5-glass-strong); position: sticky; top: 0; }
.s5-table td { padding: 10px 12px; border-bottom: 1px solid var(--s5-line); vertical-align: middle; }
.s5-table tr:hover td { background: rgba(20, 179, 125, .05); }
.s5-table .s5-thumb { width: 42px; height: 42px; border-radius: 10px; object-fit: cover; cursor: zoom-in; }
.s5-matrix { font-size: .76rem; border-collapse: separate; border-spacing: 0; }
.s5-matrix th, .s5-matrix td { padding: 6px 5px; text-align: center; border-bottom: 1px solid var(--s5-line); border-right: 1px solid var(--s5-line); white-space: nowrap; }
.s5-matrix th:first-child, .s5-matrix td:first-child { position: sticky; left: 0; z-index: 2; background: var(--s5-glass-strong); text-align: left; min-width: 190px; }
.s5-matrix th { position: sticky; top: 0; background: var(--s5-glass-strong); z-index: 1; }
.s5-matrix td.ok { background: rgba(19, 138, 77, .1); } .s5-matrix td.warn { background: rgba(242, 165, 22, .17); } .s5-matrix td.bad { background: rgba(220, 61, 67, .14); } .s5-matrix td.info { background: rgba(47, 126, 240, .12); } .s5-matrix td.mute { color: var(--s5-muted); background: rgba(0, 0, 0, .025); }
.s5-matrix td.koreksi { box-shadow: inset 0 0 0 2px var(--s5-purple); }
.s5-matrix td button { all: unset; cursor: pointer; display: block; min-width: 28px; min-height: 26px; line-height: 26px; border-radius: 6px; }
.s5-pagination { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; justify-content: space-between; margin-top: 12px; font-size: .85rem; }
.s5-pagination .s5-pages { display: flex; gap: 4px; }
.s5-pagination a, .s5-pagination span.p { min-width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: var(--s5-glass-strong); border: 1px solid var(--s5-line); font-weight: 700; text-decoration: none !important; color: var(--s5-text); padding: 0 8px; }
.s5-pagination .on { background: var(--s5-brand); color: #fff; border-color: var(--s5-brand); }
.s5-chart { position: relative; height: 260px; }
.s5-map { height: calc(100vh - 220px); min-height: 420px; border-radius: 20px; overflow: hidden; }
.s5-modal { position: fixed; inset: 0; z-index: 90; display: none; place-items: center; padding: 16px; background: rgba(4, 12, 9, .55); }
.s5-modal.show { display: grid; }
.s5-modal > div { width: min(560px, 100%); max-height: 90vh; overflow: auto; padding: 20px; }
.s5-modal img { border-radius: 16px; width: 100%; }

@media (max-width: 1100px) { .s5-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .s5-grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 900px) {
  .s5-admin { grid-template-columns: 1fr; }
  .s5-side { position: fixed; z-index: 60; left: 0; top: 0; margin: 0; height: 100vh; width: 280px; border-radius: 0 24px 24px 0; transform: translateX(-105%); transition: transform .25s ease; }
  .s5-side.show { transform: none; }
  .s5-menu-btn { display: inline-flex; }
  .s5-main { padding: 10px 12px 40px; }
  .s5-grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 520px) { .s5-kpis { grid-template-columns: 1fr 1fr; gap: 10px; } .s5-row, .s5-row-3 { grid-template-columns: 1fr; } }

/* ============ 9. Cetak ============ */
@media print {
  body::before, .s5-nav, .s5-side, .s5-main-top, .s5-toolbar, .s5-noprint { display: none !important; }
  .s5-admin { display: block; }
  .s5-glass, .s5-card { box-shadow: none; border: 1px solid #ccc; background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ============ 10. Terminal keamanan ============ */
.s5-term { border-radius: 18px; overflow: hidden; background: #0a0f0d; color: #c9f5dc; box-shadow: var(--s5-shadow-lg); font: 13px/1.55 ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace; margin-bottom: 10px; }
.s5-term-bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; background: #151d19; color: #7f9a8c; font-size: 12px; }
.s5-term-bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; } .s5-term-bar i:nth-child(2) { background: #febc2e; } .s5-term-bar i:nth-child(3) { background: #28c840; }
.s5-term-bar span { margin-left: 8px; }
.s5-term-out { height: 52vh; min-height: 320px; overflow: auto; padding: 12px 14px; white-space: pre-wrap; word-break: break-word; }
.s5-term-out .l.head { color: #7ee0ff; font-weight: 700; } .s5-term-out .l.ok { color: #5ef29a; } .s5-term-out .l.err { color: #ff7b7b; } .s5-term-out .l.warn { color: #ffd166; } .s5-term-out .l.mute { color: #6f8a7d; } .s5-term-out .l.cmd { color: #ffffff; margin-top: 6px; }
.s5-term-in { display: flex; gap: 8px; padding: 10px 14px; border-top: 1px solid #1f2b26; }
.s5-term-in span { color: #5ef29a; white-space: nowrap; }
.s5-term-in input { flex: 1; background: transparent; border: 0; outline: 0; color: #fff; font: inherit; caret-color: #5ef29a; }

/* ============ 11. Komponen v2 ============ */
.s5-chip { display: inline-flex; align-items: center; gap: 5px; padding: 6px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; background: var(--s5-line); color: var(--s5-text-2); }
.s5-chip.ok { background: rgba(19, 138, 77, .14); color: var(--s5-ok); } .s5-chip.bad { background: rgba(220, 61, 67, .14); color: var(--s5-danger); }
.s5-teks-warn { color: var(--s5-warn); }
.s5-avatar.lg { width: 64px; height: 64px; border-radius: 20px; font-size: 1.2rem; }
.s5-avatar.xl { width: 104px; height: 104px; border-radius: 32px; font-size: 1.8rem; margin: 0 auto 10px; box-shadow: var(--s5-shadow); }
.s5-profil-head { display: flex; align-items: center; gap: 14px; }
.s5-foto-pilih { display: flex; flex-direction: column; align-items: center; gap: 8px; cursor: pointer; }
.s5-stats-4 { grid-template-columns: repeat(2, 1fr); }
.s5-absen-lokasi .s5-mini-map { height: 150px; }
.s5-pasang { display: flex; align-items: center; gap: 10px; padding: 12px; margin-bottom: 14px; border-radius: 18px; background: var(--s5-glass-strong); border: 1px solid var(--s5-glass-border); box-shadow: var(--s5-shadow); }
.s5-pasang img { border-radius: 12px; }
.s5-checklist { max-height: 240px; overflow: auto; padding: 6px 10px; border: 1px solid var(--s5-line); border-radius: 12px; background: var(--s5-input); }
.s5-checklist .s5-check { min-height: 36px; }
.s5-panduan summary { display: flex; align-items: center; gap: 12px; cursor: pointer; list-style: none; }
.s5-panduan summary::-webkit-details-marker { display: none; }
.s5-panduan summary b { flex: 1; }
.s5-panduan summary .s5-ico { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; flex: none; }
.s5-panduan[open] summary > .ic:last-child { transform: rotate(180deg); }
.s5-panduan summary > .ic:last-child { transition: transform .25s ease; }
.s5-panduan ol { margin: 12px 0 0; padding-left: 22px; line-height: 1.6; } .s5-panduan li { margin-bottom: 6px; }
details.s5-card summary { list-style: none; } details.s5-card summary::-webkit-details-marker { display: none; }

/* Tabel riwayat absen */
.s5-riwayat { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .86rem; }
.s5-riwayat th { position: sticky; top: 0; text-align: left; font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; color: var(--s5-muted); padding: 10px 8px; border-bottom: 1px solid var(--s5-line); background: var(--s5-glass-strong); }
.s5-riwayat td { padding: 9px 8px; border-bottom: 1px solid var(--s5-line); vertical-align: middle; }
.s5-riwayat tr:last-child td { border-bottom: 0; }
.s5-riwayat tbody tr { animation: s5-naik .45s cubic-bezier(.2, .8, .2, 1) both; }
.s5-jam { display: flex; align-items: center; gap: 8px; }
.s5-foto-kecil { all: unset; cursor: zoom-in; flex: none; width: 38px; height: 38px; border-radius: 11px; overflow: hidden; box-shadow: 0 2px 8px rgba(0, 0, 0, .15); transition: transform .2s ease; }
.s5-foto-kecil:hover, .s5-foto-kecil:focus-visible { transform: scale(1.08); }
.s5-foto-kecil img { width: 100%; height: 100%; object-fit: cover; }

/* Kalender pilih tanggal */
.s5-kalender { padding: 10px; border-radius: 16px; background: var(--s5-input); border: 1px solid var(--s5-line); }
.s5-kal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.s5-kalender .s5-cal .d { border: 1px solid var(--s5-line); cursor: pointer; font: 700 .82rem var(--s5-font); color: var(--s5-text); transition: transform .15s ease, background .2s ease; }
.s5-kalender .s5-cal .d:active { transform: scale(.92); }
.s5-kalender .s5-cal .d.pilih { background: linear-gradient(135deg, var(--s5-brand-2), var(--s5-brand)); color: #fff; border-color: transparent; box-shadow: 0 6px 14px -6px rgba(13, 138, 92, .8); }
.s5-kalender .s5-cal .d.libnas { color: var(--s5-danger); background: rgba(220, 61, 67, .08); cursor: not-allowed; }
.s5-kalender .s5-cal .d:disabled { opacity: .5; }

/* Slider beranda */
.s5-slider { position: relative; margin-bottom: 14px; border-radius: 22px; overflow: hidden; box-shadow: var(--s5-shadow); }
.s5-slider-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; }
.s5-slider-track::-webkit-scrollbar { display: none; }
.s5-slide { position: relative; flex: 0 0 100%; scroll-snap-align: center; aspect-ratio: 2 / 1; display: block; color: #fff; text-decoration: none !important; }
.s5-slide img { width: 100%; height: 100%; object-fit: cover; }
.s5-slide-teks { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 16px 14px; background: linear-gradient(transparent, rgba(0, 0, 0, .65)); display: flex; flex-direction: column; }
.s5-slide-teks small { opacity: .9; }
.s5-slider-dots { position: absolute; right: 12px; top: 12px; display: flex; gap: 5px; }
.s5-slider-dots i { width: 7px; height: 7px; border-radius: 4px; background: rgba(255, 255, 255, .55); transition: width .3s ease, background .3s ease; }
.s5-slider-dots i.on { width: 20px; background: #fff; }
.s5-slider-admin { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }

/* Garis pindai di kamera */
.s5-scan-line { position: absolute; left: 22%; right: 22%; top: 18%; height: 3px; border-radius: 3px; background: linear-gradient(90deg, transparent, #3ce59a, transparent); box-shadow: 0 0 18px #3ce59a; animation: s5-pindai 2.4s ease-in-out infinite; opacity: .85; }
@keyframes s5-pindai { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(calc(40vw + 60px)); } }
@media (min-width: 480px) { @keyframes s5-pindai { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(250px); } } }

/* ============ 12. Animasi profesional ============ */
@keyframes s5-naik { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes s5-muncul { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: none; } }
@keyframes s5-denyut { 0% { box-shadow: 0 0 0 0 rgba(20, 179, 125, .55), 0 12px 24px -8px rgba(13, 138, 92, .8); } 70% { box-shadow: 0 0 0 14px rgba(20, 179, 125, 0), 0 12px 24px -8px rgba(13, 138, 92, .8); } 100% { box-shadow: 0 0 0 0 rgba(20, 179, 125, 0), 0 12px 24px -8px rgba(13, 138, 92, .8); } }
@keyframes s5-geser-latar { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
@keyframes s5-masuk-halaman { from { opacity: 0; } to { opacity: 1; } }
.s5-anim-up { animation: s5-naik .55s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i, 0) * 60ms); }
.s5-anim-pop { animation: s5-muncul .45s cubic-bezier(.2, .9, .3, 1.2) both; }
.s5-app, .s5-main { animation: s5-masuk-halaman .35s ease both; }
.s5-hero { background-size: 160% 160%; animation: s5-geser-latar 16s ease infinite; }
.s5-nav .s5-fab { animation: s5-denyut 2.6s ease-out infinite; transition: transform .2s ease; }
.s5-nav .s5-nav-fab:active .s5-fab { transform: scale(.92); }
.s5-service .s5-tile { transition: transform .2s cubic-bezier(.2, .8, .2, 1.4), box-shadow .2s ease; }
.s5-service:hover .s5-tile { transform: translateY(-3px); }
.s5-service:active .s5-tile { transform: scale(.9); }
.s5-card, .s5-stat { transition: transform .25s ease, box-shadow .25s ease; }
.s5-btn { position: relative; overflow: hidden; }
.s5-btn::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at var(--rx, 50%) var(--ry, 50%), rgba(255, 255, 255, .45) 0, transparent 60%); opacity: 0; transition: opacity .4s ease; pointer-events: none; }
.s5-btn:active::after { opacity: 1; transition: 0s; }
.s5-sheet { transition: transform .32s cubic-bezier(.2, .9, .25, 1); }
.s5-centang { width: 64px; height: 64px; }
.s5-centang circle { stroke-dasharray: 166; stroke-dashoffset: 166; animation: s5-gambar .6s cubic-bezier(.65, 0, .45, 1) forwards; }
.s5-centang path { stroke-dasharray: 48; stroke-dashoffset: 48; animation: s5-gambar .35s cubic-bezier(.65, 0, .45, 1) .5s forwards; }
@keyframes s5-gambar { to { stroke-dashoffset: 0; } }

/* ============ 13. Tablet ============ */
@media (min-width: 640px) {
  .s5-app { max-width: 760px; }
  .s5-services { grid-template-columns: repeat(6, 1fr); }
  .s5-stats-4 { grid-template-columns: repeat(4, 1fr); }
  .s5-nav { width: min(620px, calc(100% - 48px)); }
  .s5-hero { border-radius: 0 0 40px 40px; padding-left: 28px; padding-right: 28px; }
  .s5-absen-card { margin-left: 24px; margin-right: 24px; }
  .s5-page { padding: 0 24px; }
  .s5-carousel { margin: 0 -24px; padding: 2px 24px 8px; } .s5-promo { flex-basis: 48%; }
  .s5-cam { aspect-ratio: 4 / 3; }
  .s5-absen-lokasi .s5-mini-map { height: 200px; }
  .s5-toasts { width: min(560px, calc(100% - 48px)); }
}
@media (min-width: 1024px) and (pointer: coarse) {
  .s5-app { max-width: 900px; }
  .s5-services { grid-template-columns: repeat(7, 1fr); }
}
@media (display-mode: standalone) { .s5-topbar { padding-top: calc(14px + env(safe-area-inset-top)); } }

/* ============ 14. SPPD: tahap, tanda tangan, SPJ ============ */
.s5-progres { display: flex; gap: 4px; margin-top: 14px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.s5-progres > div { flex: 1 0 64px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; color: var(--s5-muted); position: relative; }
.s5-progres > div::before { content: ""; position: absolute; top: 7px; left: -50%; width: 100%; height: 3px; background: var(--s5-line); z-index: 0; }
.s5-progres > div:first-child::before { display: none; }
.s5-progres i { width: 16px; height: 16px; border-radius: 50%; background: var(--s5-glass-strong); border: 3px solid var(--s5-line); position: relative; z-index: 1; transition: background .3s ease, border-color .3s ease; }
.s5-progres small { font-size: .66rem; line-height: 1.2; }
.s5-progres .selesai { color: var(--s5-text-2); }
.s5-progres .selesai i { background: var(--s5-brand-2); border-color: var(--s5-brand-2); }
.s5-progres .selesai::before, .s5-progres .kini::before { background: var(--s5-brand-2); }
.s5-progres .kini { color: var(--s5-brand); font-weight: 700; }
.s5-progres .kini i { border-color: var(--s5-brand-2); background: #fff; animation: s5-denyut 1.8s ease-in-out infinite; }
.s5-ttd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.s5-ttd { display: flex; flex-direction: column; gap: 3px; padding: 12px; border-radius: var(--s5-radius-sm); background: var(--s5-glass-strong); border: 1px dashed var(--s5-line); min-width: 0; }
.s5-ttd b { font-size: .8rem; } .s5-ttd small { color: var(--s5-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.s5-ttd-ikon { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--s5-line); color: var(--s5-muted); }
.s5-ttd.ok { border-style: solid; border-color: rgba(19, 138, 77, .35); }
.s5-ttd.ok .s5-ttd-ikon { background: var(--s5-ok); color: #fff; }
.s5-ttd.tolak .s5-ttd-ikon { background: var(--s5-danger); color: #fff; }
.s5-ttd-qr { font-size: .72rem; font-weight: 700; color: var(--s5-brand); display: inline-flex; gap: 4px; align-items: center; margin-top: 2px; }
.s5-spj-baris { padding: 12px; border-radius: var(--s5-radius-sm); background: var(--s5-glass-strong); border: 1px solid var(--s5-line); margin-bottom: 10px; transition: border-color .2s ease, background .2s ease; }
.s5-lebih, tr.s5-lebih td { background: rgba(242, 165, 22, .1); border-color: rgba(242, 165, 22, .45); }
.s5-spj-total { padding: 10px 12px; border-radius: var(--s5-radius-sm); background: var(--s5-brand-soft); }
.s5-selisih { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 12px; border-radius: var(--s5-radius-sm); background: var(--s5-glass-strong); border-left: 4px solid var(--s5-muted); }
.s5-selisih div { display: flex; flex-direction: column; } .s5-selisih small { color: var(--s5-muted); font-size: .7rem; }
.s5-selisih.ok { border-left-color: var(--s5-ok); } .s5-selisih.warn { border-left-color: var(--s5-accent); } .s5-selisih.info { border-left-color: var(--s5-info); }
.s5-langkah { display: flex; gap: 10px; align-items: flex-start; }
.s5-publik { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.s5-publik .s5-card { width: min(520px, 100%); }
@media (max-width: 420px) { .s5-selisih { grid-template-columns: 1fr; } }
.s5-num { white-space: nowrap; }
