/*
  Panitia Natal Youth - stylesheet
  Font: Geist (self-hosted, OFL). Ikon: Tabler (lihat icons.js).
  Aturan sudut: kontainer 14px, kontrol (tombol/input) 10px, badge & segmen pill, sheet 18px.
  Satu aksen: hijau pinus. Merah/kuning/biru cuma buat status (telat, izin, nggak hadir).
*/
@font-face {
  font-family: 'Geist';
  src: url('fonts/Geist-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f3f4f2;
  --surface: #fcfcfb;
  --surface-2: #eceeeb;
  --line: #e0e3df;
  --line-strong: #cbd0cb;
  --text: #131614;
  --muted: #59605b;
  --faint: #717872;
  --accent: #1f5c44;
  --accent-ink: #f2f7f4;
  --accent-text: #1f5c44;
  --accent-soft: #e1ece6;
  --red: #b2372b;
  --red-soft: #f6e2de;
  --amber: #85580a;
  --amber-soft: #f4ead3;
  --blue: #2b5a92;
  --blue-soft: #e2eaf4;
  --shadow-pop: 0 1px 2px rgb(19 22 20 / .06), 0 8px 24px rgb(19 22 20 / .08);
  --r-box: 14px;
  --r-ctl: 10px;
  --font: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d100e;
    --surface: #141816;
    --surface-2: #1b201d;
    --line: #252b27;
    --line-strong: #343b36;
    --text: #e7eae7;
    --muted: #a1a8a3;
    --faint: #848b86;
    --accent: #2c7353;
    --accent-ink: #eff6f2;
    --accent-text: #80c6a2;
    --accent-soft: #172e23;
    --red: #ef8f7e;
    --red-soft: #371f1b;
    --amber: #e0b35e;
    --amber-soft: #2f250f;
    --blue: #91b5e7;
    --blue-soft: #192434;
    --shadow-pop: 0 8px 28px rgb(0 0 0 / .45);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 var(--font);
  font-feature-settings: 'ss01', 'cv11';
  letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; }
a { color: var(--accent-text); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -0.02em; font-weight: 600; }
p { margin: 0; }
svg { flex: none; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 13px; }
.grow { flex: 1; min-width: 0; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hidden { display: none !important; }

/* ---------- shell ---------- */
.top {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.top-in {
  max-width: 760px; margin: 0 auto;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; padding-top: max(10px, env(safe-area-inset-top));
  min-height: 56px;
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; text-decoration: none; color: inherit; }
.brand img { width: 28px; height: 28px; border-radius: 8px; flex: none; }
.brand b { font-weight: 600; font-size: 15.5px; letter-spacing: -0.015em; }
.hpill {
  flex: none; font-weight: 600; font-size: 12.5px; padding: 3px 9px; border-radius: 999px;
  border: 1px solid var(--line-strong); color: var(--text); font-variant-numeric: tabular-nums;
}
main {
  max-width: 760px; margin: 0 auto;
  padding: 18px 16px calc(96px + env(safe-area-inset-bottom));
}
main > .stack { animation: enter .28s var(--ease) both; }
@keyframes enter { from { opacity: 0; transform: translateY(4px); } }

.nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
.nav-in { max-width: 760px; margin: 0 auto; display: grid; grid-template-columns: repeat(5, 1fr); }
.nav a {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 8px 2px 7px; font-size: 11px; font-weight: 500; color: var(--faint); text-decoration: none;
  transition: color .15s;
}
.nav a:hover { color: var(--text); }
.nav a.on { color: var(--accent-text); }

/* Desktop: menu jadi sidebar kiri */
@media (min-width: 960px) {
  .shell {
    display: grid;
    grid-template-columns: 236px minmax(0, 1fr);
    grid-template-areas: 'top top' 'nav main';
    min-height: 100dvh;
  }
  .top { grid-area: top; }
  .top-in { max-width: none; padding: 12px 28px; }
  .nav {
    grid-area: nav; position: sticky; top: 57px; align-self: start;
    height: calc(100dvh - 57px); border-top: 0; border-right: 1px solid var(--line);
    background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; padding: 16px 12px;
  }
  .nav-in { display: flex; flex-direction: column; gap: 2px; }
  .nav a {
    flex-direction: row; gap: 10px; justify-content: flex-start;
    padding: 8px 12px; font-size: 14px; border-radius: var(--r-ctl); color: var(--muted);
  }
  .nav a:hover { background: var(--surface-2); }
  .nav a.on { background: var(--surface); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
  .nav a.on svg { color: var(--accent-text); }
  main { grid-area: main; width: 100%; margin: 0; max-width: 820px; padding: 32px 48px 72px; }
  #toast { bottom: 24px; }
}

/* ---------- blocks ---------- */
.stack { display: flex; flex-direction: column; gap: 14px; }
.stack-s { display: flex; flex-direction: column; gap: 8px; }
.row { display: flex; align-items: center; gap: 10px; }
.row-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 2px; }
.page-head h1, .page-title { font-size: 26px; font-weight: 650; letter-spacing: -0.03em; }
.sec-title { font-size: 15px; font-weight: 600; color: var(--text); margin: 14px 0 -4px; letter-spacing: -0.01em; }
.meta-line { display: flex; flex-wrap: wrap; gap: 2px 12px; }
/* Judul section + link/tombol di kanan */
.between:has(> .sec-title) { margin: 16px 0 -4px; min-height: 30px; }
.between > .sec-title { margin: 0; }
.between > a.small { text-decoration: none; color: var(--muted); font-weight: 550; }
.between > a.small:hover { color: var(--text); }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-box);
  padding: 16px;
}
.card.tight { padding: 0; overflow: hidden; }
.card h3 { font-size: 15.5px; font-weight: 600; }
.card-link { display: block; color: inherit; text-decoration: none; transition: border-color .15s, background .15s; }
.card-link:hover { border-color: var(--line-strong); }
.list > * + * { border-top: 1px solid var(--line); }
.item { display: flex; align-items: center; gap: 12px; padding: 12px 16px; color: inherit; text-decoration: none; }
a.item:hover, button.item:hover { background: var(--surface-2); }
button.item { width: 100%; border: 0; background: none; text-align: left; }
.list-head { gap: 8px; }
.list-head svg { color: var(--muted); }
.empty { text-align: center; color: var(--muted); padding: 28px 16px; font-size: 14px; }
.notice {
  display: flex; align-items: center; gap: 10px;
  border-radius: var(--r-box); padding: 12px 14px; font-size: 14px;
  background: var(--amber-soft); color: var(--text); border: 1px solid transparent;
}
.notice.red { background: var(--red-soft); }
.notice.green { background: var(--accent-soft); }
.notice svg { color: var(--muted); }
.notice.red svg { color: var(--red); }
a.notice { text-decoration: none; }
a.notice:hover { border-color: var(--line-strong); }
.notice-link > span { flex: 1; }

/* ---------- beranda: countdown ---------- */
.countdown {
  display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 4px 18px;
  padding: 20px; border-radius: var(--r-box); border: 1px solid var(--line); background: var(--surface);
}
.cd-num { font-size: 56px; line-height: .95; font-weight: 650; letter-spacing: -0.05em; color: var(--accent-text); font-variant-numeric: tabular-nums; }
.cd-num small { display: block; font-size: 13px; letter-spacing: 0; font-weight: 500; color: var(--muted); margin-top: 6px; }
.cd-text { min-width: 0; display: flex; flex-direction: column; gap: 4px; padding-left: 18px; border-left: 1px solid var(--line); }
.cd-text .eyebrow { font-size: 13px; color: var(--muted); }
.cd-text b { font-size: 17px; font-weight: 600; letter-spacing: -0.02em; }
.cd-text .meta-line { font-size: 13px; color: var(--muted); }
.hello h2 { font-size: 21px; font-weight: 600; letter-spacing: -0.025em; }
.hello .meta-line { margin-top: 2px; }

/* ---------- ringkasan angka: satu panel, sel dipisah garis ---------- */
.stats {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--r-box); overflow: hidden;
}
.stat { background: var(--surface); padding: 14px 16px; min-width: 0; display: block; color: inherit; text-decoration: none; }
a.stat:hover { background: var(--surface-2); }
.stat .k { font-size: 12.5px; color: var(--muted); }
.stat .v { font-size: 22px; font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; margin-top: 4px; }
.stat .s { font-size: 12px; color: var(--faint); margin-top: 2px; overflow-wrap: anywhere; }
@media (max-width: 420px) {
  .stat { padding: 12px; }
  .stat .v { font-size: 18px; }
}
.bar { height: 6px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 99px; background: var(--accent); transition: width .5s var(--ease); }
.bar > i.over { background: var(--red); }

/* ---------- badge ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 4px; white-space: nowrap;
  font-size: 12px; font-weight: 550; padding: 2px 8px; border-radius: 999px;
  background: var(--surface-2); color: var(--muted);
}
.badge.ok { background: var(--accent-soft); color: var(--accent-text); }
.badge.warn { background: var(--amber-soft); color: var(--amber); }
.badge.info { background: var(--blue-soft); color: var(--blue); }
.badge.bad { background: var(--red-soft); color: var(--red); }
.badge.solid { background: var(--accent); color: var(--accent-ink); }

/* ---------- daftar rapat ---------- */
.mt { display: flex; gap: 14px; align-items: flex-start; }
.datebox {
  flex: none; width: 48px; text-align: center; border-radius: var(--r-ctl); padding: 6px 0 7px;
  border: 1px solid var(--line); line-height: 1.1;
}
.datebox b { display: block; font-size: 19px; font-weight: 650; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.datebox span { font-size: 11px; color: var(--muted); font-weight: 500; }
.datebox.today { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.datebox.today span { color: inherit; opacity: .85; }
.mt-title { font-weight: 600; letter-spacing: -0.01em; }
.meta { display: flex; flex-wrap: wrap; gap: 3px 14px; color: var(--muted); font-size: 13px; margin-top: 4px; }
.meta span { display: inline-flex; align-items: center; gap: 5px; }
.meta svg { color: var(--faint); }
.canceled .mt-title { text-decoration: line-through; color: var(--muted); }

/* ---------- absen ---------- */
.checkin { text-align: center; padding: 20px 16px; }
.checkin .state { font-size: 14.5px; color: var(--muted); }
.btn-hadir {
  width: 100%; border: 0; border-radius: var(--r-box); padding: 15px; margin-top: 10px;
  background: var(--accent); color: var(--accent-ink); font-size: 17px; font-weight: 600; letter-spacing: -0.01em;
  transition: transform .12s var(--ease), filter .15s;
}
.btn-hadir:hover { filter: brightness(1.07); }
.btn-hadir:active { transform: scale(.985); }
.btn-hadir:disabled { opacity: .55; cursor: default; }
.code-input { text-align: center; font-size: 22px !important; letter-spacing: .3em; text-transform: uppercase; font-weight: 600; }
.done-mark { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 18px; font-weight: 600; letter-spacing: -0.02em; }
.done-mark.ok svg { color: var(--accent-text); }
.done-mark.warn svg { color: var(--amber); }
.done-mark.info svg { color: var(--blue); }
.done-mark.bad svg { color: var(--red); }

/* ---------- tombol & form ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid var(--line-strong); background: var(--surface); border-radius: var(--r-ctl);
  padding: 8px 14px; font-weight: 550; font-size: 14px; text-decoration: none; color: var(--text); white-space: nowrap;
  transition: background .15s, border-color .15s, transform .12s var(--ease);
}
.btn:hover { background: var(--surface-2); }
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.08); background: var(--accent); }
.btn.danger { color: var(--red); }
.btn.danger-fill { background: var(--red); border-color: var(--red); color: #fff; }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: var(--surface-2); }
.btn.sm { padding: 5px 10px; font-size: 13px; border-radius: 8px; }
.btn.block { width: 100%; padding: 12px; }
.btn:disabled { opacity: .55; cursor: default; transform: none; }
.icon-btn {
  display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: var(--r-ctl);
  border: 0; background: transparent; color: var(--muted); flex: none;
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.back { display: inline-flex; align-items: center; gap: 2px; color: var(--muted); text-decoration: none; font-size: 14px; margin-left: -4px; align-self: flex-start; }
.back:hover { color: var(--text); }
button.back { border: 0; background: none; padding: 0; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: 13px; font-weight: 550; color: var(--text); }
.field .hint { font-size: 12.5px; color: var(--faint); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid3 { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 12px; }
input[type=text], input[type=search], input[type=url], input[type=password], input[type=date], input[type=time], input[type=number], input[type=tel], input:not([type]), select, textarea {
  width: 100%; border: 1px solid var(--line-strong); background: var(--surface); border-radius: var(--r-ctl);
  padding: 10px 12px; font-size: 16px; min-height: 44px;
  transition: border-color .15s, box-shadow .15s;
}
input::placeholder, textarea::placeholder { color: var(--faint); }
textarea { min-height: 96px; resize: vertical; line-height: 1.55; }
textarea.tall { min-height: 260px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent-text); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-text) 18%, transparent); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); flex: none; }
.check b { display: block; font-weight: 550; }
.seg { display: inline-flex; background: var(--surface-2); border-radius: 999px; padding: 3px; gap: 2px; max-width: 100%; overflow-x: auto; }
.seg button { border: 0; background: none; padding: 6px 13px; border-radius: 999px; font-size: 13.5px; font-weight: 550; color: var(--muted); white-space: nowrap; transition: color .15s, background .15s; }
.seg button.on { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgb(0 0 0 / .08), inset 0 0 0 1px var(--line); }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.toolbar select { width: auto; min-height: 36px; padding: 6px 10px; font-size: 14px; border-radius: 999px; }
.att-select { width: auto !important; min-height: 34px !important; padding: 4px 8px !important; font-size: 13.5px !important; }

/* ---------- tugas ---------- */
.task { display: flex; gap: 12px; align-items: flex-start; padding: 13px 16px; }
.tstat {
  flex: none; width: 22px; height: 22px; border-radius: 7px; margin-top: 1px;
  border: 1.5px solid var(--line-strong); background: var(--surface); display: grid; place-items: center; color: var(--accent-ink);
  transition: background .15s, border-color .15s;
}
.tstat:hover:not(:disabled) { border-color: var(--accent-text); }
.tstat.doing { border-color: var(--amber); color: var(--amber); }
.tstat.done { border-color: var(--accent); background: var(--accent); }
.tstat:disabled { cursor: default; }
.task.done .t-title { text-decoration: line-through; color: var(--muted); }
.t-title { font-weight: 550; }
.t-edit { border: 0; background: none; padding: 0; text-align: left; flex: 1; min-width: 0; color: inherit; }
.due-late { color: var(--red); font-weight: 550; }

/* ---------- RAB ---------- */
details.div-budget > summary { list-style: none; cursor: pointer; padding: 15px 16px; }
details.div-budget > summary::-webkit-details-marker { display: none; }
details.div-budget > summary:hover { background: var(--surface-2); }
details.div-budget[open] > summary { border-bottom: 1px solid var(--line); }
.bitem { display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; }
.bitem .amt { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Daftar hadir: sisanya dilipat */
.att-rest > summary { list-style: none; cursor: pointer; font-weight: 550; }
.att-rest > summary::-webkit-details-marker { display: none; }
.att-rest > summary:hover { background: var(--surface-2); }
.att-rest.bordered { border-top: 1px solid var(--line); }
.att-rest[open] > summary { border-bottom: 1px solid var(--line); }
.att-rest[open] > summary .small { visibility: hidden; }

/* ---------- notulen ---------- */
.rich { font-size: 15px; line-height: 1.65; overflow-wrap: anywhere; max-width: 68ch; }
.rich > * + * { margin-top: 8px; }
.rich h4 { font-size: 15px; font-weight: 600; margin-top: 16px; }
.rich ul, .rich ol { margin: 0; padding-left: 22px; }
.rich li + li { margin-top: 2px; }
.decisions { margin: 0; padding: 0; list-style: none; }
.decisions li { display: flex; gap: 10px; padding: 5px 0; }
.decisions li svg { color: var(--accent-text); margin-top: 3px; }

/* ---------- login ---------- */
.login { max-width: 400px; margin: 0 auto; padding: 48px 16px; padding-top: max(48px, env(safe-area-inset-top)); }
.login-head { margin-bottom: 24px; }
.login-head img { width: 40px; height: 40px; border-radius: 11px; }
.login-head h1 { font-size: 28px; font-weight: 650; letter-spacing: -0.035em; margin-top: 18px; }
.login-head p { margin-top: 4px; }
.names { max-height: 52vh; overflow-y: auto; }
.pin-input { text-align: center; font-size: 26px !important; letter-spacing: .5em; font-weight: 600; padding-left: calc(12px + .5em) !important; }
.linkish { border: 0; background: none; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; font-size: 13.5px; padding: 6px; }

/* ---------- sheet ---------- */
dialog.sheet {
  border: 0; padding: 0; background: transparent; color: var(--text);
  width: 100%; max-width: 560px; max-height: 100dvh; margin: auto auto 0;
}
@media (min-width: 640px) { dialog.sheet { margin: auto; } }
dialog.sheet::backdrop { background: rgb(8 10 9 / .42); backdrop-filter: blur(2px); }
.sheet-box {
  background: var(--surface); border-radius: 18px 18px 0 0; max-height: 92dvh; overflow-y: auto;
  padding: 6px 18px calc(20px + env(safe-area-inset-bottom));
  border: 1px solid var(--line); border-bottom: 0;
}
@media (min-width: 640px) { .sheet-box { border-radius: 18px; padding-bottom: 20px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-pop); } }
dialog.sheet[open] .sheet-box { animation: sheet-in .26s var(--ease) both; }
@keyframes sheet-in { from { transform: translateY(16px); opacity: 0; } }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; position: sticky; top: 0; background: var(--surface); padding: 10px 0 8px; z-index: 1; }
.sheet-head h2 { font-size: 18px; font-weight: 600; letter-spacing: -0.02em; }
.sheet-actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; margin-top: 6px; }
.sheet-actions .spacer { flex: 1; }

/* ---------- mode layar (proyektor) ---------- */
.screen {
  position: fixed; inset: 0; z-index: 50; background: #0f1512; color: #eef3f0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px;
}
.screen .s-title { font-size: clamp(20px, 3.4vw, 36px); font-weight: 600; letter-spacing: -0.02em; }
.screen .s-label { margin-top: 5vh; font-size: clamp(14px, 1.8vw, 20px); color: #a9b5ae; }
.screen .s-code { font-size: clamp(72px, 19vw, 230px); font-weight: 700; letter-spacing: .1em; margin: 1.5vh 0; line-height: 1; color: #8fd3ae; font-variant-numeric: tabular-nums; }
.screen .s-count { font-size: clamp(16px, 2.2vw, 26px); font-variant-numeric: tabular-nums; color: #cfd9d3; }
.screen .s-close { position: absolute; top: 16px; right: 16px; color: inherit; }

/* ---------- toast ---------- */
#toast { position: fixed; left: 0; right: 0; bottom: calc(80px + env(safe-area-inset-bottom)); z-index: 100; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; padding: 0 16px; }
.toast {
  pointer-events: auto; background: var(--text); color: var(--bg); border-radius: 12px; padding: 10px 14px;
  font-size: 14px; max-width: 480px; box-shadow: var(--shadow-pop); animation: sheet-in .22s var(--ease) both;
}
.toast.err { background: var(--red); color: #fff; }

/* Loading: kerangka abu-abu, bukan spinner */
.loading { display: flex; flex-direction: column; gap: 12px; padding-top: 4px; }
.loading i { display: block; height: 72px; border-radius: var(--r-box); background: var(--surface-2); animation: pulse 1.2s ease-in-out infinite alternate; }
.loading i:first-child { height: 30px; width: 40%; border-radius: 8px; }
@keyframes pulse { to { opacity: .5; } }

/* ---------- progress ---------- */
.prog-div { display: flex; flex-direction: column; gap: 10px; padding: 15px 16px; }
.metric { display: flex; flex-direction: column; gap: 6px; }
.big-pct { font-size: 24px; font-weight: 650; letter-spacing: -0.03em; }
.fund-log > summary { cursor: pointer; padding: 4px 0; }
.fund-item { padding: 10px 0; }
.kas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-ctl); overflow: hidden; }
.kas > div { background: var(--surface); padding: 9px 11px; min-width: 0; }
.kas .num { font-size: 13.5px; white-space: nowrap; }

/* ---------- bukti / lampiran ---------- */
.file-input { display: none; }
.thumbs { display: flex; flex-wrap: wrap; gap: 8px; }
.thumb { position: relative; width: 76px; height: 76px; border-radius: var(--r-ctl); overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); flex: none; }
.thumb a { display: block; width: 100%; height: 100%; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb .pdf { display: grid; place-items: center; width: 100%; height: 100%; font-weight: 650; font-size: 13px; color: var(--red); }
.thumb-tag { position: absolute; left: 4px; bottom: 4px; font-size: 10px; font-weight: 600; padding: 1px 6px; border-radius: 999px; background: rgb(10 12 11 / .66); color: #fff; pointer-events: none; }
.thumb-tag.transfer { background: rgb(31 92 68 / .92); }
.thumb-x {
  position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%; border: 0;
  display: grid; place-items: center; background: rgb(10 12 11 / .62); color: #fff; padding: 0;
}
.expense { display: flex; flex-direction: column; gap: 8px; padding: 13px; border: 1px solid var(--line); border-radius: var(--r-box); background: var(--surface); }

@media (max-width: 420px) {
  .grid3 { grid-template-columns: 1fr 1fr; }
  .grid3 > :first-child { grid-column: 1 / -1; }
  .cd-num { font-size: 46px; }
  .countdown { padding: 16px; gap: 4px 14px; }
  .cd-text { padding-left: 14px; }
}

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