/* Tema Kabut */
:root, [data-theme="light"] { --bg:#E6EAF0; --ink:#17202E; --sub:#48546A; --glass:rgba(255,255,255,.58); --edge:rgba(255,255,255,.95); --field:#FFF; --hair:rgba(23,32,46,.16); --acc:#2F3FB0; --on:#FFF; --o1:rgba(151,166,255,.75); --o2:rgba(169,228,218,.85); --warn:#9E2F22; color-scheme:light }
[data-theme="dark"] { --bg:#0D1119; --ink:#E9EDF7; --sub:#AAB4C9; --glass:rgba(255,255,255,.07); --edge:rgba(255,255,255,.16); --field:#1A2030; --hair:rgba(233,237,247,.18); --acc:#A5B1FF; --on:#0D1119; --o1:rgba(62,75,201,.55); --o2:rgba(19,114,105,.55); --warn:#FFAE9E; color-scheme:dark }
* { box-sizing:border-box }
html { background:var(--bg) }
body { margin:0; color:var(--ink); font-family:'Plus Jakarta Sans',system-ui,sans-serif; font-size:14px; font-variant-numeric:tabular-nums; -webkit-tap-highlight-color:transparent }
.orbs { position:fixed; inset:0; z-index:-1; pointer-events:none; background:
  radial-gradient(circle at 88% 14%, var(--o1), transparent 230px),
  radial-gradient(circle at 6% 60%, var(--o2), transparent 260px),
  radial-gradient(circle at 90% 98%, var(--o1), transparent 190px) }
main { max-width:480px; margin:0 auto; min-height:100dvh; padding:calc(14px + env(safe-area-inset-top)) 16px calc(14px + env(safe-area-inset-bottom)); display:flex; flex-direction:column; gap:10px }
main > * { flex:none }
a { color:var(--ink); text-decoration:none }
button, input, select, textarea { font:inherit; color:inherit }
button { cursor:pointer; background:transparent; border:1px solid var(--hair) }
button:disabled { cursor:default; opacity:.45 }
:focus-visible { outline:3px solid var(--acc); outline-offset:2px }
h1 { margin:0; font-size:19px; font-weight:600 }
h2 { margin:0; font-size:14px }
p { margin:0 }
small { display:block; font-size:12px; color:var(--sub) }
.ic { fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; flex:none }
.sr { position:absolute; width:1px; height:1px; opacity:0 }
.glass { background:var(--glass); -webkit-backdrop-filter:blur(22px); backdrop-filter:blur(22px); border:1px solid var(--edge); border-radius:22px }
.card { padding:14px 16px; display:flex; flex-direction:column; gap:10px }
.head { display:flex; justify-content:space-between; align-items:center; gap:10px; min-height:44px }
.back { display:flex; align-items:center; height:44px; font-weight:600 }
.note { margin:0 4px; font-size:12.5px; line-height:1.5; color:var(--sub) }
.note a { text-decoration:underline }
.warn { font-size:12.5px; font-weight:700; color:var(--warn); line-height:1.5 }
.strong { font-weight:700; font-size:13px }
.center { text-align:center }
.cap { font-size:12px; font-weight:600; color:var(--sub) }
.big { font-size:30px; font-weight:600 }
.grow { flex:1; min-width:0 }
.between { display:flex; justify-content:space-between; align-items:center; gap:10px }
.bottom { margin-top:auto; display:flex; flex-direction:column; gap:8px }
.grid { display:grid; gap:8px }
.c1 { grid-template-columns:minmax(0,1fr) } .c2 { grid-template-columns:repeat(2,minmax(0,1fr)) } .c3 { grid-template-columns:repeat(3,minmax(0,1fr)) }
.c4 { grid-template-columns:repeat(4,minmax(0,1fr)) } .c5 { grid-template-columns:repeat(5,minmax(0,1fr)); gap:4px }
.span2 { grid-column:span 2 }
.btn { display:flex; align-items:center; justify-content:center; gap:8px; min-height:50px; padding:0 18px; border-radius:25px; font-weight:700; text-align:center; border:1px solid transparent; cursor:pointer }
.btn.primary { background:var(--acc); color:var(--on) }
.btn.ghost { border:1px dashed var(--acc); color:var(--acc) }
.btn.text { min-height:44px; padding:0 8px; color:var(--acc); font-size:13px }
.btn.danger { color:var(--warn) }
.btn:focus-within { outline:3px solid var(--acc); outline-offset:2px }
.pill { display:flex; align-items:center; justify-content:center; min-height:44px; padding:2px 4px; border-radius:16px; border:1px solid var(--hair); background:var(--glass); font-size:12.5px; font-weight:600; text-align:center; overflow-wrap:anywhere }
.pill[aria-pressed="true"] { background:var(--acc); border-color:var(--acc); color:var(--on) }
.pill.dashed { border:1.5px dashed var(--acc); color:var(--acc); font-weight:700 }
.pill.small { font-weight:500; min-height:40px }
.c5 .pill { font-size:11.5px }
.c2 > .field:last-child:nth-child(odd) { grid-column:span 2 }
@media (max-width:380px) { .pill { padding:2px 0; font-size:11px } .c4.grid { gap:6px } .c3 .money { padding:0 6px } .c3 .money > span { display:none } }
.chip { display:flex; align-items:center; justify-content:center; min-height:44px; min-width:64px; padding:0 12px; border-radius:22px; border:1px solid var(--hair); color:var(--acc); font-size:12px; font-weight:700 }
.round { display:flex; align-items:center; justify-content:center; width:52px; height:52px; flex:none; border-radius:26px; border:1px solid var(--hair) }
.head .round, .period .round { width:44px; height:44px }
.field { display:flex; flex-direction:column; gap:4px; min-width:0 }
.field > span { font-size:12px; font-weight:600; color:var(--sub) }
input[type=text], input[type=search], input[type=password], input[type=date], select, textarea, .money { width:100%; min-width:0; height:44px; padding:0 10px; border-radius:12px; border:1px solid var(--hair); background:var(--field) }
textarea { height:auto; padding:10px; resize:vertical }
.money { display:flex; align-items:center; gap:6px }
.money > span { font-size:12.5px; color:var(--sub) }
.money input { flex:1; min-width:0; width:100%; border:0; background:transparent; padding:0; text-align:right; font-weight:600 }
.money:focus-within { outline:3px solid var(--acc); outline-offset:2px }
.money input:focus-visible { outline:0 }
.check { display:flex; align-items:center; gap:10px; min-height:44px; font-size:13px; font-weight:600 }
input[type=checkbox] { width:22px; height:22px; flex:none; accent-color:var(--acc) }
.alert { display:flex; align-items:center; min-height:44px; padding:6px 14px; border-radius:14px; border:1px solid var(--acc); color:var(--acc); font-size:12.5px; font-weight:700; background:var(--glass) }
.alert.bad { border-color:var(--warn); color:var(--warn) }
.hero { padding:2px 4px }
.hero strong { display:block; font-size:clamp(40px,14vw,56px); font-weight:500; letter-spacing:-.045em; line-height:1.15 }
.week { display:flex; justify-content:space-between }
.week > div { display:flex; flex-direction:column; align-items:center; gap:4px; font-size:11px; color:var(--sub) }
.day { width:100%; max-width:44px; min-height:40px; padding:0; border-radius:22px; font-size:13px; font-weight:700 }
.week .day { width:42px; height:44px }
.day.ok { background:var(--acc); border-color:var(--acc); color:var(--on) }
.day.miss { border:1.5px dashed var(--warn); color:var(--warn) }
.day.today { border:2px solid var(--acc); box-shadow:0 0 0 2px var(--field) inset }
.day[aria-pressed="true"] { outline:3px solid var(--ink); outline-offset:1px }
.day.next, .day.before { color:var(--sub) }
.cal { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:5px; justify-items:center }
.cal > span { font-size:11.5px; color:var(--sub) }
.wallets { display:flex; gap:8px; overflow-x:auto; scrollbar-width:none }
.wallets::-webkit-scrollbar { display:none }
.wallets > div { flex:none; padding:8px 14px; border-radius:16px }
.wallets b { font-size:13.5px }
.neg { color:var(--warn) }
.hint { margin-top:4px; font-size:11.5px; text-align:right; color:var(--sub) }
.bar { display:flex; flex-direction:column; gap:5px; font-size:13px; flex:1; min-width:0 }
.bar > div:first-child { display:flex; justify-content:space-between; gap:8px; flex-wrap:wrap }
.track { height:4px; border-radius:2px; background:var(--hair); overflow:hidden }
.track > div { height:4px; border-radius:2px; background:var(--acc) }
.bar.bad b { color:var(--warn) } .bar.bad .track > div { background:var(--warn) } .bar.bad .track { background:color-mix(in srgb,var(--warn) 25%,transparent) }
.item, .checkrow { display:flex; align-items:center; gap:10px; min-height:48px }
.item b, .checkrow b { font-size:14px; overflow-wrap:anywhere }
.item a.grow { display:block; min-height:44px }
.list { display:flex; flex-direction:column; gap:6px }
.del { display:flex; align-items:center; justify-content:center; width:44px; height:44px; flex:none; border:0; color:var(--warn) }
.more { display:flex; justify-content:center; align-items:center; min-height:40px; font-size:12.5px; font-weight:700; color:var(--acc) }
.inline { display:flex; flex-direction:column; gap:8px; padding:10px 0; border-block:1px solid var(--hair) }
.goal { display:flex; align-items:center; gap:10px }
.checkrow { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,160px) }
.itemrow { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,140px); gap:8px }
.totalbox { display:flex; flex-direction:column; justify-content:flex-end; min-height:44px }
.amount { padding:0 4px; text-align:right }
.amount div { font-size:12px; color:var(--sub) }
.amount strong { font-size:44px; font-weight:500; letter-spacing:-.04em; line-height:1.15; overflow-wrap:anywhere }
.keys { gap:6px; padding-top:4px }
.keys .grid { gap:6px }
.key { min-height:46px; border-radius:14px; font-size:19px; font-weight:500 }
.keys .btn { min-height:50px }
.period { display:flex; align-items:center; justify-content:space-between; gap:8px; text-align:center }
.stat { padding:10px 12px; border-radius:16px }
.stat b { font-size:16px }
.chart { display:grid; gap:4px }
.chart.c7 { grid-template-columns:repeat(7,minmax(0,1fr)) }
.chart > div { display:flex; flex-direction:column; justify-content:flex-end; align-items:center; gap:4px; height:116px }
.chart span { font-size:10.5px; font-weight:700 }
.chart i { width:20px; border-radius:4px 4px 0 0; background:var(--acc) }
.chart i.zero { background:var(--hair) }
.chart small { font-size:11px }
.li { display:flex; justify-content:space-between; align-items:center; gap:10px; min-height:44px; border-top:1px solid var(--hair) }
.li:first-of-type { border-top:0 }
.card:has(> .li) { gap:0; padding-block:4px }
.switch { display:flex; justify-content:space-between; align-items:center; gap:12px; min-height:52px }
.switch b { font-size:13.5px }
.record { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:6px; align-self:center; width:140px; height:140px; border-radius:70px; border:0; background:var(--acc); color:var(--on); font-weight:700 }
.record.live { background:var(--warn); color:var(--bg) }
.intro { margin-top:18vh; padding:24px 20px }
.intro h2 { font-size:28px; line-height:1.25 }
.intro p { font-size:14.5px; line-height:1.6 }
ul { margin:0; padding-left:18px; line-height:1.6 }
.dock { position:sticky; bottom:calc(8px + env(safe-area-inset-bottom)); margin-top:auto; padding:10px 10px 4px; border-radius:28px; z-index:2 }
.dock .row { display:flex; gap:10px; align-items:center }
.dock .btn { min-height:52px }
.dock nav { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)) }
.dock nav a { display:flex; align-items:center; justify-content:center; height:44px; font-size:12.5px; color:var(--sub) }
.dock nav a[aria-current] { color:var(--ink); font-weight:700 }
#toast { position:fixed; left:0; right:0; top:calc(10px + env(safe-area-inset-top)); display:flex; justify-content:center; padding:0 16px; z-index:5; pointer-events:none }
.toast { pointer-events:auto; display:flex; align-items:center; gap:12px; width:100%; max-width:440px; min-height:52px; padding:8px 8px 8px 18px; border-radius:26px; background:var(--ink); color:var(--bg); font-size:13.5px; font-weight:600 }
.toast span { flex:1 }
.toast button { min-height:44px; padding:0 14px; border:0; color:var(--bg); font-weight:700; text-decoration:underline }
