/* ===== Nais — tampilan ===== */
@font-face { font-family: "PJS"; src: url(fonts/pjs-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "PJS"; src: url(fonts/pjs-500.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "PJS"; src: url(fonts/pjs-600.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "PJS"; src: url(fonts/pjs-700.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "PJS"; src: url(fonts/pjs-800.woff2) format("woff2"); font-weight: 800; font-display: swap; }

:root {
  --font: "PJS", "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --r-card: 24px; --r-md: 16px; --r-sm: 12px;
  --nav-h: 72px;
  --fs: 16px;
}
@media (min-width: 900px) { :root { --fs: 16px; } }

/* ---- Tema (warna utama + aksen), terang & gelap ---- */
[data-theme="klasik"] { --p: #3442D9; --pt: #ECEEFF; --acc: #F5B301; }
[data-theme="navy"]   { --p: #1E2A4F; --pt: #E8EBF4; --acc: #F2B705; }
[data-theme="hutan"]  { --p: #2E7D66; --pt: #E4F2EC; --acc: #EE8A62; }
[data-theme="ungu"]   { --p: #6A48E8; --pt: #EFEAFF; --acc: #8CC21A; }
[data-theme="pastel"] { --p: #C5714F; --pt: #FBEDE6; --acc: #6FBF9F; }
[data-theme="senja"]  { --p: #E2652A; --pt: #FDEFE6; --acc: #C8336A; }
[data-theme="laut"]   { --p: #13819A; --pt: #E2F4F7; --acc: #F0A202; }
[data-theme="sakura"] { --p: #C93D72; --pt: #FCE9F0; --acc: #5C7CFA; }
[data-theme="grafit"] { --p: #2B2F38; --pt: #ECEEF1; --acc: #1FAE85; }

:root, [data-mode="light"] {
  --bg: #F2F3F7; --surface: #FFFFFF; --surface2: #F6F7FA; --text: #1B1D2A; --text2: #3A3E4D; --muted: #737889;
  --border: #E5E7EE; --ok: #1E9E62; --bad: #DC3F3F; --warn: #B87A00; --on-p: #FFFFFF;
  --overlay: rgba(17, 20, 38, .42); --shadow: 0 1px 2px rgba(20, 24, 50, .04);
}
[data-theme="pastel"][data-mode="light"] { --bg: #F8F4EE; --surface2: #FBF8F3; --border: #ECE4D9; }
[data-theme="hutan"][data-mode="light"]  { --bg: #EFF3F1; }

[data-mode="dark"] {
  --bg: #121419; --surface: #1C1F27; --surface2: #23262F; --text: #ECEEF4; --text2: #C9CCD6; --muted: #9298AA;
  --border: #2C303B; --ok: #43C98A; --bad: #F06A6A; --warn: #E9B949; --on-p: #FFFFFF;
  --overlay: rgba(0, 0, 0, .6); --shadow: none;
}
[data-mode="dark"][data-theme="klasik"] { --p: #7380FF; --pt: #262B52; }
[data-mode="dark"][data-theme="navy"]   { --p: #F2B705; --pt: #3A3214; --on-p: #1E2A4F; }
[data-mode="dark"][data-theme="hutan"]  { --p: #4DB894; --pt: #183A30; --on-p: #0A2A20; }
[data-mode="dark"][data-theme="ungu"]   { --p: #9C82FF; --pt: #2E2650; }
[data-mode="dark"][data-theme="pastel"] { --p: #EBA488; --pt: #3E2C25; --on-p: #3A1C10; --bg: #17140F; --surface: #211D18; --surface2: #29241E; --border: #3A322A; }
[data-mode="dark"][data-theme="senja"]  { --p: #FF8C4D; --pt: #3E2617; --on-p: #2B1203; }
[data-mode="dark"][data-theme="laut"]   { --p: #45C6DB; --pt: #123843; --on-p: #05262D; }
[data-mode="dark"][data-theme="sakura"] { --p: #F06D9C; --pt: #43192B; }
[data-mode="dark"][data-theme="grafit"] { --p: #E3E6EB; --pt: #2C3038; --on-p: #14161B; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font); background: var(--bg); color: var(--text);
  font-size: var(--fs); line-height: 1.45; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--p); }
.hidden { display: none !important; }
.ic { flex: 0 0 auto; display: block; }

/* ===== Layout ===== */
.shell { display: flex; min-height: 100vh; }
.side { display: none; }
.main { flex: 1; min-width: 0; }
.page { max-width: 680px; margin: 0 auto; padding: 14px 18px calc(var(--nav-h) + 108px + env(safe-area-inset-bottom)); }

.bottomnav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  height: calc(var(--nav-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  background: var(--surface); border-top: 1px solid var(--border);
  display: flex; justify-content: space-around; align-items: stretch;
}
.navbtn {
  background: none; border: 0; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; color: var(--muted); font-size: 13px; font-weight: 500;
}
.navbtn.on { color: var(--p); font-weight: 700; }
.fab {
  position: fixed; right: 20px; bottom: calc(var(--nav-h) + 20px + env(safe-area-inset-bottom)); z-index: 21;
  width: 62px; height: 62px; border-radius: 50%; border: 0; background: var(--p); color: var(--on-p);
  box-shadow: 0 8px 20px rgba(30, 40, 120, .28); display: grid; place-items: center;
}

@media (min-width: 900px) {
  .side {
    display: block; width: 264px; flex: 0 0 264px; padding: 24px 16px; background: var(--surface);
    border-right: 1px solid var(--border); position: sticky; top: 0; height: 100vh; overflow: auto;
  }
  .bottomnav { display: none; }
  .page { max-width: 760px; padding: 32px 32px 120px; }
  .fab { bottom: 32px; right: 32px; }
  .side .navbtn { flex-direction: row; justify-content: flex-start; gap: 14px; padding: 12px 16px; border-radius: 14px; font-size: 15.5px; width: 100%; margin-bottom: 2px; }
  .side .navbtn:hover { background: var(--surface2); }
  .side .navbtn.on { background: var(--pt); color: var(--p); }
}
.brand { display: flex; align-items: center; gap: 12px; margin: 0 6px 20px; }
.applogo { width: 42px; height: 42px; border-radius: 13px; background: var(--p); color: var(--on-p); display: grid; place-items: center; flex: 0 0 auto; }
.brand b { font-size: 19px; font-weight: 800; }
.brand small { display: block; color: var(--muted); font-size: 12.5px; }

/* ===== Header ===== */
.topbar { display: flex; align-items: center; gap: 8px; margin: 6px 0 18px; min-height: 48px; }
.topbar h1 { font-size: 22px; font-weight: 800; margin: 0; flex: 1; min-width: 0; letter-spacing: -.2px; }
.topbar .sub { color: var(--muted); font-size: 14px; }
.iconbtn {
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface);
  display: grid; place-items: center; position: relative; flex: 0 0 auto; color: var(--text);
}
.iconbtn.plain { border: 0; background: transparent; }
.iconbtn:disabled { opacity: .35; cursor: default; }
.badge {
  position: absolute; top: 5px; right: 5px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--bad); color: #fff; font-size: 11px; display: grid; place-items: center; font-weight: 700;
}

/* ===== Kartu & teks ===== */
.card { background: var(--surface); border-radius: var(--r-card); padding: 22px; margin-bottom: 14px; box-shadow: var(--shadow); border: 1px solid transparent; }
[data-mode="dark"] .card { border-color: var(--border); }
.card.tight { padding: 8px 0; }
.card h2 { font-size: 18px; font-weight: 700; margin: 0 0 10px; display: flex; align-items: center; gap: 10px; }
.section-title { font-size: 19px; font-weight: 700; margin: 26px 2px 12px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.linkbtn { font-size: 15px; color: var(--p); background: none; border: 0; padding: 4px 0; font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.label { color: var(--muted); font-size: 14px; font-weight: 500; }
.big.md { font-size: 30px; }
.big { font-size: 34px; font-weight: 800; letter-spacing: -.8px; margin: 4px 0 2px; line-height: 1.15; word-break: break-word; }
.mid { font-size: 18px; font-weight: 700; margin-top: 2px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.tiny { font-size: 12.5px; }
.ok { color: var(--ok); } .bad { color: var(--bad); } .warn { color: var(--warn); }
.row { display: flex; align-items: center; gap: 12px; }
.row > .grow { flex: 1; min-width: 0; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.stack > * + * { margin-top: 10px; }
.divider { height: 1px; background: var(--border); margin: 18px 0; }
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: var(--surface2); color: var(--text2); vertical-align: middle; }
.pill.p { background: var(--pt); color: var(--p); }
.pill.bad { background: rgba(220, 63, 63, .12); color: var(--bad); }
.pill.warn { background: rgba(232, 168, 0, .16); color: var(--warn); }
.pill.ok { background: rgba(30, 158, 98, .12); color: var(--ok); }
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r-md); background: var(--surface2); font-size: 14px; color: var(--text2); margin-bottom: 14px; }
.notice.warn { background: rgba(232, 168, 0, .12); }
.notice.bad { background: rgba(220, 63, 63, .1); }
.notice .ic { margin-top: 1px; }
.empty { text-align: center; color: var(--muted); padding: 28px 18px; font-size: 15px; }
.empty .ill { width: 76px; height: 76px; border-radius: 50%; background: var(--pt); color: var(--p); display: grid; place-items: center; margin: 0 auto 12px; }

/* ===== Baris daftar ===== */
.item {
  display: flex; align-items: center; gap: 14px; padding: 13px 20px; width: 100%; min-height: 60px;
  background: none; border: 0; text-align: left; color: inherit; border-radius: 0;
}
button.item:active { background: var(--surface2); }
@media (hover: hover) { button.item:hover { background: var(--surface2); } }
.item .txt { flex: 1 1 auto; min-width: 0; }
.item .txt b, .item .txt .t { display: block; font-weight: 600; font-size: 16px; overflow-wrap: anywhere; }
.item .txt small { display: block; color: var(--muted); font-size: 13.5px; margin-top: 1px; }
.item .val { flex: 0 0 auto; max-width: 62%; text-align: right; font-weight: 700; white-space: nowrap; font-size: 16px; }
.item .val small { display: block; font-weight: 500; color: var(--muted); font-size: 12.5px; white-space: normal; }
.item .val.soft { font-weight: 500; color: var(--muted); font-size: 14.5px; white-space: normal; max-width: 45%; }
.item .chev { color: var(--muted); flex: 0 0 auto; }
.item .mi { color: var(--text2); flex: 0 0 auto; width: 26px; display: grid; place-items: center; }
.card.menu .item { min-height: 62px; padding: 14px 20px; }
.card.item { border-radius: var(--r-card); }
.card.tight > .item:first-child { border-radius: var(--r-card) var(--r-card) 0 0; }
.card.tight > .item:last-child { border-radius: 0 0 var(--r-card) var(--r-card); }

/* Ikon kategori: ikon berwarna di kotak lembut */
.ava { width: 46px; height: 46px; border-radius: 15px; flex: 0 0 46px; display: grid; place-items: center; font-weight: 800; font-size: 13px; color: #fff; }
.ava.sm { width: 34px; height: 34px; flex-basis: 34px; border-radius: 11px; }
.ava.emo { font-size: 22px; }

/* Logo sumber dana */
.logo {
  --lc: #6B7280; position: relative; overflow: hidden; display: grid; place-items: center; flex: 0 0 auto;
  width: 48px; height: 48px; border-radius: 14px; background: var(--lc); color: #fff; font-weight: 800; font-size: 13px; letter-spacing: -.2px;
}
.logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #fff; }
.logo.lg { width: 56px; height: 56px; border-radius: 16px; font-size: 15px; }
.logo.md { width: 38px; height: 38px; border-radius: 11px; font-size: 11.5px; }
.logo.sm { width: 26px; height: 26px; border-radius: 8px; font-size: 9px; }
.logo.cash { background: #2FA36B; }

/* ===== Tombol ===== */
.btn {
  border: 1.5px solid var(--border); background: var(--surface); padding: 11px 18px; border-radius: var(--r-md);
  font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; font-size: 15px;
}
.btn.primary { background: var(--p); color: var(--on-p); border-color: var(--p); }
.btn.dark { background: var(--text); color: var(--surface); border-color: var(--text); }
.btn.danger { color: var(--bad); border-color: rgba(220, 63, 63, .55); background: transparent; }
.btn.block { width: 100%; }
.btn.lg { min-height: 56px; font-size: 16px; border-radius: 18px; }
.btn.sm { min-height: 38px; padding: 6px 12px; font-size: 14px; border-radius: 12px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btnrow { display: flex; flex-wrap: wrap; gap: 10px; }

/* Chip pilihan */
.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chip {
  display: inline-flex; align-items: center; gap: 9px; padding: 8px 14px 8px 9px; border-radius: 14px;
  border: 1.5px solid var(--border); background: var(--surface); font-size: 15px; font-weight: 500; min-height: 46px; text-align: left;
}
.chip.textonly { padding: 8px 14px; }
.chip.on { border-color: var(--p); background: var(--pt); color: var(--p); font-weight: 700; }
.chip .cic { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; flex: 0 0 auto; }
.chip.square { width: 50px; height: 50px; padding: 0; justify-content: center; }

/* Segmented */
.seg { display: flex; background: var(--surface); border: 1.5px solid var(--border); border-radius: 18px; padding: 4px; gap: 4px; }
.seg button { flex: 1; border: 0; background: none; padding: 11px 8px; border-radius: 14px; font-weight: 600; color: var(--text2); font-size: 15px; }
.seg button.on { background: var(--p); color: var(--on-p); }

/* Form */
.field { margin-bottom: 16px; }
.flabel { display: block; font-size: 14px; color: var(--muted); margin: 0 0 8px; font-weight: 600; }
.input {
  width: 100%; border: 1.5px solid var(--border); background: var(--surface); border-radius: var(--r-md); padding: 13px 16px;
  min-height: 54px; outline: none; font-size: 16px;
}
.input::placeholder { color: var(--muted); opacity: .85; }
.input:focus { border-color: var(--p); box-shadow: 0 0 0 3px var(--pt); }
textarea.input { min-height: 80px; resize: vertical; }
.amount-wrap { display: flex; align-items: baseline; gap: 8px; margin-bottom: 18px; border-bottom: 1.5px solid var(--border); }
.amount-wrap:focus-within { border-bottom-color: var(--p); }
.amount-wrap .rp { font-size: 26px; font-weight: 700; color: var(--muted); }
.amount-input { width: 100%; border: 0; background: transparent; font-size: 36px; font-weight: 800; padding: 6px 0 10px; outline: none; letter-spacing: -.6px; }
.amount-input::placeholder { color: var(--muted); opacity: .5; }
.help { font-size: 13.5px; color: var(--muted); margin-top: 7px; line-height: 1.5; }
.err { color: var(--bad); font-size: 14px; margin: 6px 0 4px; font-weight: 600; }
.check { display: flex; gap: 14px; align-items: flex-start; padding: 8px 0; }
.check input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--p); flex: 0 0 auto; }
.switch { position: relative; width: 52px; height: 32px; flex: 0 0 52px; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: var(--border); border-radius: 32px; transition: .2s; cursor: pointer; }
.switch span::before { content: ""; position: absolute; width: 26px; height: 26px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.switch input:checked + span { background: var(--p); }
.switch input:checked + span::before { transform: translateX(20px); }
.inline-fields { display: grid; grid-template-columns: 1fr 1fr 40px; gap: 10px; align-items: end; margin-bottom: 10px; }

/* Sheet */
.overlay { position: fixed; inset: 0; background: var(--overlay); z-index: 50; display: flex; align-items: flex-end; justify-content: center; animation: fade .15s; }
.sheet {
  background: var(--surface); width: 100%; max-width: 640px; max-height: 93vh; overflow: auto; border-radius: 28px 28px 0 0;
  padding: 10px 22px calc(26px + env(safe-area-inset-bottom)); animation: up .22s ease-out;
}
@media (min-width: 700px) { .overlay { align-items: center; } .sheet { border-radius: 28px; max-height: 88vh; } }
.sheet .grab { width: 44px; height: 5px; border-radius: 3px; background: var(--border); margin: 0 auto 16px; }
.sheet h3 { margin: 0 0 8px; font-size: 21px; font-weight: 800; }
.sheet .sticky-actions { position: sticky; bottom: calc(-26px - env(safe-area-inset-bottom)); background: var(--surface); padding: 14px 0 6px; margin-top: 12px; }
@keyframes up { from { transform: translateY(40px); } to { transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.toast {
  position: fixed; left: 50%; bottom: calc(var(--nav-h) + 96px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 80;
  background: var(--text); color: var(--surface); padding: 12px 18px; border-radius: 14px; font-size: 14.5px; font-weight: 600; max-width: 90vw;
  box-shadow: 0 8px 24px rgba(0,0,0,.2); animation: fade .15s;
}
@media (min-width: 900px) { .toast { bottom: 40px; } }

/* Progress */
.bar { height: 8px; border-radius: 6px; background: var(--surface2); overflow: hidden; }
[data-mode="light"] .bar { background: #ECEEF3; }
.bar > i { display: block; height: 100%; background: var(--p); border-radius: 6px; }
.bar.warn > i { background: #E8A800; }
.bar.bad > i { background: var(--bad); }

/* Akun mini (beranda) */
.hscroll { display: flex; gap: 10px; overflow-x: auto; padding: 4px 0 4px; margin: 0 -4px; scrollbar-width: none; }
.hscroll::-webkit-scrollbar { display: none; }
.acct-mini { flex: 0 0 auto; display: flex; align-items: center; gap: 10px; padding: 10px 16px 10px 10px; border-radius: 18px; background: var(--surface2); border: 0; text-align: left; }
.acct-mini b { display: block; font-size: 14px; font-weight: 600; }
.acct-mini span { font-size: 14px; font-weight: 700; }

/* Tema */
.themes { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.theme-card { border: 1.5px solid var(--border); border-radius: 18px; padding: 10px; background: var(--surface); text-align: left; }
.theme-card.on { border: 2px solid var(--p); padding: 9.5px; }
.theme-card .prev { height: 62px; border-radius: 12px; display: flex; overflow: hidden; margin-bottom: 9px; }
.theme-card .prev i { display: block; }
.theme-card b { display: flex; align-items: center; gap: 6px; font-size: 14.5px; }
.theme-card small { color: var(--muted); font-size: 12.5px; }
.dots { display: flex; gap: 9px; flex-wrap: wrap; }
.dot { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--border); padding: 0; }
.dot.on { box-shadow: 0 0 0 2px var(--p); }

/* Kode sinkron */
.code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 18px; letter-spacing: 1.5px; background: var(--surface2); border-radius: var(--r-md); padding: 14px 16px; font-weight: 700; word-break: break-all; border: 0; }
input.code { border: 1.5px solid var(--border); }
.status-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; background: var(--muted); flex: 0 0 auto; }
.status-dot.ok { background: var(--ok); } .status-dot.bad { background: var(--bad); } .status-dot.warn { background: #E8A800; }

/* Grafik */
.chart svg { width: 100%; height: auto; display: block; }
.legend { display: flex; gap: 16px; font-size: 14px; color: var(--muted); margin-bottom: 10px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; }
.monthnav { display: flex; align-items: center; gap: 8px; }

/* PIN */
.pinpad { display: grid; grid-template-columns: repeat(3, 76px); gap: 16px; justify-content: center; margin-top: 18px; }
.pinpad button { height: 76px; border-radius: 50%; border: 0; background: var(--surface); font-size: 26px; font-weight: 600; box-shadow: var(--shadow); }
.pindots { display: flex; gap: 16px; justify-content: center; margin: 20px 0; }
.pindots i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--p); }
.pindots i.f { background: var(--p); }

/* Onboarding / layar penuh */
.center-screen { max-width: 520px; margin: 0 auto; padding: 24px 20px 32px; min-height: 100vh; display: flex; flex-direction: column; }
.progress-top { height: 6px; background: var(--border); border-radius: 3px; overflow: hidden; flex: 1; }
.progress-top i { display: block; height: 100%; background: var(--p); border-radius: 3px; }
.onb h1 { font-size: 28px; font-weight: 800; margin: 18px 0 8px; letter-spacing: -.5px; }
.onb p.muted { font-size: 15.5px; }
.onb .foot { margin-top: auto; padding-top: 22px; }
.soft-box { background: var(--surface2); border-radius: var(--r-md); padding: 14px 16px; }
.txdate { font-size: 12.5px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .5px; padding: 14px 20px 4px; }

.pava { width: 56px; height: 56px; flex-basis: 56px; font-size: 28px; border-radius: 50%; }
.pname { font-size: 19px !important; }
.gname { font-size: 16.5px; }

/* ===== Ukuran untuk HP (layar sempit): lebih ringkas ===== */
@media (max-width: 600px) {
  :root { --fs: 14.5px; --nav-h: 64px; --r-card: 20px; --r-md: 14px; }
  .page { padding: 10px 14px calc(var(--nav-h) + 96px + env(safe-area-inset-bottom)); }
  .topbar { margin: 4px 0 14px; min-height: 42px; gap: 6px; }
  .topbar h1 { font-size: 19px; }
  .topbar .sub { font-size: 12.5px; }
  .iconbtn { width: 40px; height: 40px; }
  .iconbtn svg { width: 20px; height: 20px; }
  .card { padding: 16px; margin-bottom: 12px; }
  .card.tight { padding: 6px 0; }
  .card h2 { font-size: 16px; }
  .section-title { font-size: 16px; margin: 20px 2px 10px; }
  .linkbtn { font-size: 13.5px; }
  .label { font-size: 12.5px; }
  .big { font-size: 27px; letter-spacing: -.5px; }
  .big.md { font-size: 23px; }
  .mid { font-size: 15.5px; }
  .small { font-size: 13px; }
  .tiny { font-size: 11.5px; }
  .divider { margin: 14px 0; }
  .grid2 { gap: 12px 14px; }
  .item { padding: 10px 16px; min-height: 52px; gap: 12px; }
  .card.menu .item { min-height: 52px; padding: 11px 16px; }
  .item .txt b, .item .txt .t { font-size: 14.5px; }
  .item .txt small { font-size: 12px; }
  .item .val { font-size: 14.5px; }
  .item .val small { font-size: 11.5px; }
  .item .val.soft { font-size: 13px; }
  .item .mi { width: 22px; }
  .item .mi svg { width: 21px; height: 21px; }
  .item .chev svg { width: 18px; height: 18px; }
  .ava { width: 40px; height: 40px; flex-basis: 40px; border-radius: 13px; }
  .ava svg { width: 20px; height: 20px; }
  .ava.sm { width: 30px; height: 30px; flex-basis: 30px; border-radius: 10px; }
  .logo { width: 42px; height: 42px; border-radius: 12px; font-size: 12px; }
  .logo.lg { width: 50px; height: 50px; border-radius: 14px; }
  .logo.md { width: 34px; height: 34px; border-radius: 10px; font-size: 10.5px; }
  .pava { width: 48px; height: 48px; flex-basis: 48px; font-size: 24px; }
  .pname { font-size: 16.5px !important; }
  .gname { font-size: 15px; }
  .btn { font-size: 14px; min-height: 44px; padding: 9px 14px; }
  .btn.lg { font-size: 15px; min-height: 50px; border-radius: 15px; }
  .btn.sm { font-size: 13px; min-height: 36px; padding: 6px 11px; }
  .btn svg { width: 17px; height: 17px; }
  .chips { gap: 7px; }
  .chip { font-size: 13.5px; min-height: 40px; padding: 6px 12px 6px 7px; border-radius: 12px; gap: 7px; }
  .chip.textonly { padding: 6px 12px; }
  .chip .cic { width: 25px; height: 25px; }
  .chip.square { width: 44px; height: 44px; }
  .seg { border-radius: 15px; }
  .seg button { font-size: 13.5px; padding: 9px 6px; border-radius: 11px; }
  .field { margin-bottom: 14px; }
  .flabel { font-size: 12.5px; margin-bottom: 6px; }
  .input { font-size: 15px; min-height: 46px; padding: 11px 14px; }
  .amount-input { font-size: 29px; }
  .amount-wrap .rp { font-size: 20px; }
  .help { font-size: 12.5px; }
  .err { font-size: 13px; }
  .notice { font-size: 13px; padding: 12px 14px; }
  .pill { font-size: 11.5px; padding: 2px 9px; }
  .empty { font-size: 13.5px; padding: 22px 14px; }
  .empty .ill { width: 64px; height: 64px; }
  .empty .ill svg { width: 28px; height: 28px; }
  .sheet { padding: 8px 18px calc(22px + env(safe-area-inset-bottom)); border-radius: 24px 24px 0 0; }
  .sheet h3 { font-size: 18px; }
  .navbtn { font-size: 11.5px; gap: 3px; }
  .navbtn svg { width: 22px; height: 22px; }
  .fab { width: 56px; height: 56px; right: 16px; bottom: calc(var(--nav-h) + 16px + env(safe-area-inset-bottom)); }
  .fab svg { width: 25px; height: 25px; }
  .toast { font-size: 13.5px; bottom: calc(var(--nav-h) + 86px + env(safe-area-inset-bottom)); }
  .acct-mini { padding: 8px 12px 8px 8px; border-radius: 15px; }
  .acct-mini b, .acct-mini span { font-size: 13px; }
  .txdate { font-size: 11px; padding: 12px 16px 2px; }
  .code { font-size: 15.5px; padding: 12px 14px; }
  .theme-card b { font-size: 13.5px; }
  .theme-card small { font-size: 11.5px; }
  .theme-card .prev { height: 52px; }
  .legend { font-size: 12.5px; }
  .onb h1 { font-size: 23px; margin-top: 14px; }
  .onb p.muted { font-size: 14px; }
  .center-screen { padding: 18px 16px 24px; }
  .pinpad { grid-template-columns: repeat(3, 68px); gap: 14px; }
  .pinpad button { height: 68px; font-size: 23px; }
  .soft-box { padding: 12px 14px; }
}

/* ===== Uang per orang & alokasi (v1.2) ===== */
.scopebar { margin: 0 0 14px; }
.scopebar button { padding: 9px 6px; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
details.moreacc { margin-top: 10px; }
details.moreacc > summary { cursor: pointer; font-size: 13.5px; font-weight: 600; color: var(--muted); padding: 4px 2px 8px; list-style: none; }
details.moreacc > summary::-webkit-details-marker { display: none; }
details.moreacc > summary::before { content: '▸ '; }
details.moreacc[open] > summary::before { content: '▾ '; }
.alloc-card { display: block; width: 100%; text-align: left; }
.alloc-card .gname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ic.inl { display: inline-block; vertical-align: -2px; margin-right: 2px; }

/* ===== Alokasi 2 kolom (v1.3) ===== */
.alloc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.alloc-grid .alloc-card { margin: 0; padding: 14px 14px 12px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.alloc-card .ac-head { display: flex; align-items: center; gap: 8px; min-width: 0; margin-bottom: 6px; }
.alloc-card .ac-head .gname { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.alloc-card .ac-label { font-size: 12px; color: var(--muted); }
.alloc-card .ac-val { font-size: 19px; font-weight: 800; letter-spacing: -.2px; margin-bottom: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.alloc-card .ac-val.bad, .alloc-card .ac-sub.bad { color: var(--bad); }
.alloc-card .ac-sub { font-size: 12px; color: var(--muted); margin-top: 2px; line-height: 1.45; overflow-wrap: anywhere; }
.alloc-card .ac-foot { display: flex; align-items: center; gap: 6px; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--border); font-size: 12px; color: var(--muted); min-width: 0; }
.alloc-card .ac-foot span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.alloc-card .ac-foot .logo { width: 20px; height: 20px; flex: 0 0 20px; border-radius: 6px; font-size: 7.5px; }
@media (max-width: 340px) { .alloc-grid { grid-template-columns: 1fr; } }

/* ===== Tanggal dd/mm/yyyy & pintasan keyboard (v1.4) ===== */
.dt-row { display: flex; gap: 10px; align-items: stretch; }
.dt-date { position: relative; flex: 1; min-width: 0; }
.dt-date .input { padding-right: 52px; letter-spacing: .3px; }
.dt-time { flex: 0 0 92px; width: 92px; text-align: center; letter-spacing: .3px; }
.dt-cal { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; display: grid; place-items: center; color: var(--muted); border-radius: 10px; }
.dt-cal:hover { background: var(--surface2); color: var(--p); }
.dt-pick { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; border: 0; padding: 0; margin: 0; }
.dt-pick::-webkit-calendar-picker-indicator { position: absolute; inset: 0; width: 100%; height: 100%; cursor: pointer; }
.kbd { display: inline-grid; place-items: center; min-width: 26px; height: 24px; padding: 0 7px; border-radius: 7px; border: 1px solid var(--border); border-bottom-width: 2px; background: var(--surface2); font-family: inherit; font-size: 12px; font-weight: 700; line-height: 1; color: var(--text2); white-space: nowrap; }
.navbtn .navkey { display: none; }
@media (min-width: 900px) and (hover: hover) { .side .navbtn .navkey { display: inline-grid; margin-left: auto; opacity: .55; } }
