:root{
  --bg:#0b1023; --surface:#161c36; --surface2:#1d2444; --text:#f2f4ff; --muted:#a3abd1; --dim:#7d86b0;
  --blue:#2f6bff; --blue2:#4b80ff; --line:rgba(255,255,255,.07); --red:#f26b8a; --green:#34d399; --amber:#fbbf24;
  --font:'Plus Jakarta Sans',system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;
}
*{box-sizing:border-box;margin:0;padding:0;-webkit-tap-highlight-color:transparent}
html,body{background:var(--bg);color:var(--text);font-family:var(--font)}
body{min-height:100dvh;overscroll-behavior-y:contain;-webkit-font-smoothing:antialiased}
button,input,select,textarea{font:inherit;color:inherit}
button{cursor:pointer;border:0;background:none}
svg{display:block}
[hidden]{display:none!important}

.app{max-width:480px;margin:0 auto;padding:calc(env(safe-area-inset-top) + 14px) 18px calc(130px + env(safe-area-inset-bottom))}

/* header */
.top{display:flex;justify-content:space-between;align-items:flex-start;margin:26px 0 26px}
.title{font-size:39px;font-weight:800;letter-spacing:-.035em;line-height:1.05}
.date{color:var(--muted);font-size:17px;margin-top:8px;font-weight:500;letter-spacing:-.01em}
.top-btns{display:flex;gap:10px}
.icon-btn{width:52px;height:52px;border-radius:50%;background:var(--surface);display:grid;place-items:center;color:var(--text);flex:none;transition:transform .15s}
.icon-btn:active{transform:scale(.92)}
.icon-btn svg{width:22px;height:22px}
.page-title{font-size:32px;font-weight:800;letter-spacing:-.03em}

/* hero card */
.hero{background:linear-gradient(160deg,#2a62ea 0%,#3271f4 100%);border-radius:28px;padding:26px 22px 24px;position:relative;box-shadow:0 22px 50px -22px rgba(47,107,255,.65);overflow:hidden}
.hero.low{background:linear-gradient(160deg,#b45309,#d97706)}
.hero.neg{background:linear-gradient(160deg,#be123c,#e11d48)}
.hero .label{font-size:18px;font-weight:500;opacity:.96}
.hero .amount{font-size:54px;font-weight:800;letter-spacing:-.045em;margin:12px 0 24px;line-height:1;font-variant-numeric:tabular-nums}
.wallet{position:absolute;right:22px;top:24px;width:64px;height:64px;border-radius:50%;background:rgba(255,255,255,.17);display:grid;place-items:center}
.wallet svg{width:32px;height:32px}
.bar{height:11px;border-radius:99px;background:rgba(255,255,255,.16);overflow:hidden}
.bar>i{display:block;height:100%;background:#aac2fb;border-radius:99px;transition:width .6s cubic-bezier(.2,.8,.2,1)}
.spent{margin:20px 0 12px;font-size:17px;font-weight:500}
.hero-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.pill-btn{background:#fff;color:#2457e6;border-radius:99px;padding:13px 20px;font-weight:700;font-size:16px;display:inline-flex;gap:10px;align-items:center;transition:transform .15s}
.pill-btn svg{width:20px;height:20px}
.pill-btn:active{transform:scale(.96)}
.warn{background:rgba(255,255,255,.2);border-radius:99px;padding:7px 12px;font-size:13px;font-weight:700}

/* ask bar */
.ask{margin-top:16px;width:100%;display:flex;align-items:center;gap:12px;background:var(--surface);border:1px solid var(--line);border-radius:20px;padding:14px 14px 14px 16px;text-align:left}
.ask .spark{width:36px;height:36px;border-radius:12px;background:linear-gradient(135deg,#6d5dfc,#2f6bff);display:grid;place-items:center;flex:none}
.ask .spark svg{width:18px;height:18px;color:#fff}
.ask span.t{flex:1;color:var(--muted);font-size:14.5px;line-height:1.3}
.ask span.t b{color:var(--text);display:block;font-size:15px}
.ask .mic{color:var(--muted)} .ask .mic svg{width:22px;height:22px}

/* sections */
.sec{display:flex;justify-content:space-between;align-items:flex-start;margin:34px 0 16px;gap:10px}
.sec h2{font-size:25px;font-weight:800;letter-spacing:-.035em;line-height:1.2}
.sec p{color:var(--muted);font-size:16px;margin-top:5px}
.date-pill{background:var(--surface);border-radius:99px;padding:12px 16px;display:flex;gap:10px;align-items:center;font-size:17px;font-weight:500;flex:none;margin-top:-4px}
.date-pill svg{width:22px;height:22px}
.date-pill .ch{width:18px;height:18px;opacity:.9}
.link{color:#4c82ff;font-weight:700;font-size:18px;display:flex;align-items:center;gap:10px;margin-top:4px}
.link svg{width:22px;height:22px}

/* quick tiles */
.tiles{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.tile{--c:#f26b8a;display:flex;gap:12px;align-items:center;padding:13px 12px;border-radius:24px;background:color-mix(in srgb,var(--c) 7%,#13182f);border:1.5px solid color-mix(in srgb,var(--c) 17%,#13182f);text-align:left;transition:transform .12s;min-height:64px;position:relative;overflow:hidden}
.tile:active{transform:scale(.96)}
.tile .ic,.row .ic{width:44px;height:44px;border-radius:50%;background:color-mix(in srgb,var(--c) 16%,#13182f);color:var(--c);display:grid;place-items:center;flex:none}
.tile .ic svg,.row .ic svg{width:22px;height:22px}
.tile b{font-size:16.5px;font-weight:700;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;letter-spacing:-.01em}
.tile .txt{min-width:0}
.chip{display:inline-block;margin-top:5px;padding:2px 10px;border-radius:99px;background:color-mix(in srgb,var(--c) 21%,#13182f);color:var(--c);font-weight:800;font-size:15.5px;font-variant-numeric:tabular-nums}
.tile.ghost{--c:#7d86b0;border-style:dashed;background:transparent;justify-content:center;color:var(--dim);font-weight:600;font-size:15px}
.tile.ghost svg{width:18px;height:18px}
.tile.flash::after{content:'';position:absolute;inset:0;background:var(--c);opacity:.25;animation:flash .5s forwards}
@keyframes flash{to{opacity:0}}

/* list rows */
.card{background:var(--surface);border-radius:26px;padding:6px}
.empty{background:var(--surface);border-radius:28px;padding:56px 24px;text-align:center}
.empty h3{font-size:21px;font-weight:700;margin-bottom:10px}
.empty p{color:var(--muted);font-size:17px;line-height:1.45}
.row{--c:#60a5fa;display:flex;align-items:center;gap:12px;padding:11px 10px;width:100%;text-align:left;border-radius:18px}
.row:active{background:var(--surface2)}
.row .grow{flex:1;min-width:0}
.row b{font-weight:700;font-size:15.5px;display:block}
.row small{color:var(--muted);font-size:13px;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:2px}
.row .amt{font-weight:800;font-size:16px;font-variant-numeric:tabular-nums}
.row .amt.plus{color:var(--green)}
.group-h{display:flex;justify-content:space-between;color:var(--muted);font-size:13px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;padding:18px 6px 8px}

/* inputs */
.search{display:flex;align-items:center;gap:10px;background:var(--surface);border-radius:18px;padding:0 14px;margin:18px 0 12px}
.search svg{width:20px;height:20px;color:var(--muted)}
.search input{flex:1;background:none;border:0;outline:0;padding:15px 0;font-size:16px}
.chips{display:flex;gap:8px;overflow-x:auto;padding-bottom:4px;scrollbar-width:none}
.chips::-webkit-scrollbar{display:none}
.fchip{--c:#4b80ff;padding:9px 14px;border-radius:99px;background:var(--surface);font-size:14px;font-weight:600;white-space:nowrap;color:var(--muted);border:1.5px solid transparent}
.fchip.on{background:color-mix(in srgb,var(--c) 20%,#13182f);color:var(--c);border-color:color-mix(in srgb,var(--c) 40%,#13182f)}
.seg{display:flex;background:var(--surface);border-radius:16px;padding:4px;gap:4px;margin:14px 0}
.seg button{flex:1;padding:10px 6px;border-radius:12px;font-size:13.5px;font-weight:700;color:var(--muted)}
.seg button.on{background:var(--blue);color:#fff}

/* reports */
.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.stat{background:var(--surface);border-radius:20px;padding:14px}
.stat small{color:var(--muted);font-size:12.5px;font-weight:600}
.stat b{display:block;font-size:19px;font-weight:800;margin-top:6px;letter-spacing:-.02em;font-variant-numeric:tabular-nums}
.panel{background:var(--surface);border-radius:24px;padding:18px;margin-top:12px}
.panel h3{font-size:16px;font-weight:700;margin-bottom:14px;display:flex;justify-content:space-between}
.panel h3 span{color:var(--muted);font-weight:600;font-size:13px}
.cbar{margin-bottom:14px}
.cbar .l{display:flex;justify-content:space-between;font-size:14px;font-weight:600;margin-bottom:7px}
.cbar .l span:last-child{color:var(--muted);font-variant-numeric:tabular-nums}
.cbar .t{height:9px;border-radius:99px;background:var(--surface2);overflow:hidden}
.cbar .t i{display:block;height:100%;border-radius:99px;background:var(--c)}
.chart{width:100%;height:150px}
.insight{display:flex;gap:10px;align-items:flex-start;font-size:14px;line-height:1.45;color:#d6dbf5;padding:8px 0}
.insight svg{width:18px;height:18px;flex:none;margin-top:2px;color:#8ea8ff}
.btns{display:flex;gap:10px;margin-top:14px}
.btn{flex:1;padding:15px;border-radius:16px;background:var(--surface2);font-weight:700;font-size:15px;display:flex;gap:8px;align-items:center;justify-content:center}
.btn svg{width:18px;height:18px}
.btn.primary{background:var(--blue);color:#fff}
.btn.danger{background:rgba(242,107,138,.14);color:var(--red)}
.btn:active{transform:scale(.97)}

/* more */
.menu{background:var(--surface);border-radius:24px;overflow:hidden;margin-top:14px}
.menu button,.menu label.mi{display:flex;align-items:center;gap:14px;width:100%;padding:16px;text-align:left;border-bottom:1px solid var(--line)}
.menu > :last-child{border-bottom:0}
.menu .mic2{width:38px;height:38px;border-radius:12px;background:var(--surface2);display:grid;place-items:center;color:#8ea8ff;flex:none}
.menu .mic2 svg{width:19px;height:19px}
.menu .grow{flex:1}
.menu b{font-weight:700;font-size:15.5px;display:block}
.menu small{color:var(--muted);font-size:13px}
.menu .arr{width:18px;height:18px;color:var(--dim)}
.mh{color:var(--muted);font-size:13px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;margin:26px 6px 0}

/* nav */
.nav{position:fixed;left:0;right:0;bottom:0;max-width:480px;margin:0 auto;background:#161c36;border-radius:36px 36px 0 0;padding:14px 6px calc(12px + env(safe-area-inset-bottom));display:grid;grid-template-columns:repeat(5,1fr);z-index:20;box-shadow:0 -10px 30px rgba(0,0,0,.25)}
.nav button{color:#aab2d8;display:flex;flex-direction:column;align-items:center;gap:7px;font-size:14.5px;font-weight:600}
.nav button.on{color:#4c82ff}
.nav .ni svg{width:30px;height:30px}
.fab{width:68px;height:68px;border-radius:50%;background:#4b80ff;margin-top:-50px;box-shadow:0 12px 34px rgba(75,128,255,.55);color:#fff;display:grid;place-items:center;transition:transform .15s}
.fab svg{width:34px;height:34px}
.nav .add:active .fab{transform:scale(.92)}

/* sheet */
.sheet-wrap{position:fixed;inset:0;z-index:50}
.backdrop{position:absolute;inset:0;background:rgba(3,6,18,.6);backdrop-filter:blur(3px);animation:fade .2s}
.sheet{position:absolute;left:0;right:0;bottom:0;max-width:480px;margin:0 auto;background:#141a33;border-radius:30px 30px 0 0;padding:10px 18px calc(20px + env(safe-area-inset-bottom));max-height:92dvh;overflow-y:auto;animation:up .28s cubic-bezier(.2,.8,.2,1)}
.sheet::before{content:'';display:block;width:42px;height:5px;border-radius:9px;background:#2c3460;margin:0 auto 14px}
.sheet h3{font-size:22px;font-weight:800;letter-spacing:-.02em;margin-bottom:14px}
@keyframes up{from{transform:translateY(100%)}}
@keyframes fade{from{opacity:0}}
.field{margin-bottom:14px}
.field label{display:block;color:var(--muted);font-size:13px;font-weight:700;margin:0 0 7px 4px}
.inp{width:100%;background:var(--surface);border:1.5px solid var(--line);border-radius:16px;padding:14px 15px;font-size:16px;outline:0}
.inp:focus{border-color:#3d5fd6}
.big-amt{display:flex;align-items:center;gap:6px;background:var(--surface);border-radius:20px;padding:6px 18px;border:1.5px solid var(--line)}
.big-amt span{font-size:34px;font-weight:800;color:var(--muted)}
.big-amt input{flex:1;background:none;border:0;outline:0;font-size:40px;font-weight:800;padding:8px 0;width:100%;letter-spacing:-.03em}
.cat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
.cat-btn{--c:#60a5fa;display:flex;flex-direction:column;align-items:center;gap:6px;padding:10px 4px;border-radius:16px;background:var(--surface);border:1.5px solid transparent;font-size:12px;font-weight:600;color:var(--muted);text-align:center}
.cat-btn .ic{width:36px;height:36px;border-radius:50%;background:color-mix(in srgb,var(--c) 16%,#13182f);color:var(--c);display:grid;place-items:center}
.cat-btn .ic svg{width:18px;height:18px}
.cat-btn.on{border-color:var(--c);color:var(--text);background:color-mix(in srgb,var(--c) 10%,#13182f)}
.smart{display:flex;gap:8px;align-items:center;background:linear-gradient(135deg,rgba(109,93,252,.18),rgba(47,107,255,.12));border:1px solid rgba(109,93,252,.35);border-radius:18px;padding:6px 6px 6px 14px;margin-bottom:16px}
.smart svg{width:18px;height:18px;color:#a99bff;flex:none}
.smart input{flex:1;background:none;border:0;outline:0;padding:10px 0;font-size:15px;min-width:0}
.smart button{width:40px;height:40px;border-radius:12px;display:grid;place-items:center;color:#c9c2ff;flex:none}
.smart button.go{background:#6d5dfc;color:#fff}
.hint{font-size:12.5px;color:var(--dim);margin:-8px 4px 14px}
.suggest{font-size:13px;color:#a99bff;margin:6px 4px 0}
.opt{display:flex;align-items:center;gap:14px;width:100%;padding:16px;border-radius:16px;background:var(--surface);margin-bottom:8px;font-weight:600;text-align:left}
.opt svg{width:20px;height:20px;color:#8ea8ff}
.opt.on{outline:1.5px solid var(--blue)}
.swatches{display:flex;gap:10px;flex-wrap:wrap}
.sw{width:34px;height:34px;border-radius:50%;border:3px solid transparent}
.sw.on{border-color:#fff}
.qrow{display:flex;align-items:center;gap:10px;padding:8px 6px;border-bottom:1px solid var(--line)}
.qrow .grow{flex:1}
.qrow button{width:36px;height:36px;border-radius:10px;background:var(--surface);display:grid;place-items:center;color:var(--muted)}
.qrow button svg{width:16px;height:16px}
.toggle{width:50px;height:30px;border-radius:99px;background:#2c3460;position:relative;flex:none;transition:background .2s}
.toggle::after{content:'';position:absolute;top:3px;left:3px;width:24px;height:24px;border-radius:50%;background:#fff;transition:transform .2s}
.toggle.on{background:var(--blue)} .toggle.on::after{transform:translateX(20px)}

/* toast */
.toast{position:fixed;left:50%;transform:translateX(-50%);bottom:calc(118px + env(safe-area-inset-bottom));background:#f2f4ff;color:#0b1023;border-radius:16px;padding:12px 14px 12px 16px;font-weight:600;font-size:14.5px;display:flex;gap:14px;align-items:center;z-index:60;box-shadow:0 10px 30px rgba(0,0,0,.4);max-width:calc(100% - 32px);animation:pop .25s}
.toast button{color:#2457e6;font-weight:800}
@keyframes pop{from{opacity:0;transform:translate(-50%,10px)}}

/* assistant */
.assistant{position:fixed;inset:0;z-index:40;background:var(--bg);display:flex;flex-direction:column;max-width:480px;margin:0 auto;animation:fade .2s}
.as-top{display:flex;align-items:center;gap:12px;padding:calc(env(safe-area-inset-top) + 14px) 16px 12px;border-bottom:1px solid var(--line)}
.as-top .grow{flex:1}
.as-top b{font-size:18px;font-weight:800;display:block}
.as-top small{color:var(--muted);font-size:12.5px;display:flex;align-items:center;gap:6px}
.dot{width:7px;height:7px;border-radius:50%;background:var(--green)}
.dot.off{background:var(--amber)}
.msgs{flex:1;overflow-y:auto;padding:16px;display:flex;flex-direction:column;gap:10px}
.msg{max-width:86%;padding:12px 14px;border-radius:20px;font-size:15px;line-height:1.45;white-space:pre-wrap;word-wrap:break-word}
.msg.user{align-self:flex-end;background:var(--blue);color:#fff;border-bottom-right-radius:6px}
.msg.bot{align-self:flex-start;background:var(--surface);border-bottom-left-radius:6px}
.msg.typing{color:var(--muted)}
.acts{margin-top:10px;display:flex;flex-direction:column;gap:6px}
.act{--c:#60a5fa;display:flex;align-items:center;gap:10px;background:var(--surface2);border-radius:14px;padding:8px 10px;font-size:14px}
.act .ic{width:30px;height:30px;border-radius:50%;background:color-mix(in srgb,var(--c) 18%,#13182f);color:var(--c);display:grid;place-items:center;flex:none}
.act .ic svg{width:15px;height:15px}
.act .grow{flex:1;min-width:0}
.act small{color:var(--muted);display:block;font-size:12px}
.act b{font-variant-numeric:tabular-nums}
.acts .btn{margin-top:4px;padding:11px}
.sugs{display:flex;gap:8px;overflow-x:auto;padding:0 16px 10px;scrollbar-width:none}
.sugs::-webkit-scrollbar{display:none}
.sugs button{padding:9px 13px;border-radius:99px;background:var(--surface);font-size:13.5px;white-space:nowrap;color:#cfd5f3;border:1px solid var(--line)}
.composer{display:flex;gap:8px;align-items:flex-end;padding:10px 12px calc(12px + env(safe-area-inset-bottom));border-top:1px solid var(--line)}
.composer textarea{flex:1;background:var(--surface);border:1.5px solid var(--line);border-radius:22px;padding:13px 16px;font-size:15.5px;outline:0;resize:none;max-height:120px;line-height:1.35}
.composer button{width:48px;height:48px;border-radius:50%;display:grid;place-items:center;background:var(--surface);flex:none}
.composer button svg{width:22px;height:22px}
.composer button.send{background:var(--blue)}
.composer button.rec{background:var(--red);animation:pulse 1s infinite}
@keyframes pulse{50%{box-shadow:0 0 0 8px rgba(242,107,138,.2)}}
.msgs{min-height:0}
.msg{flex:none}
body.as-open .toast{bottom:auto;top:calc(env(safe-area-inset-top) + 78px)}
body.as-open{overflow:hidden}
.as-top,.sugs,.composer{flex:none}
.sec h2{font-size:clamp(20px,6.1vw,25px);white-space:nowrap}
.date-pill{padding:11px 14px;font-size:clamp(15px,4.3vw,17px)}

/* ===== v2 additions ===== */
.who{display:inline-flex;align-items:center;gap:6px;margin-top:8px;padding:5px 10px 5px 8px;border-radius:99px;background:var(--surface);color:#cfd5f3;font-size:12.5px;font-weight:700}
.who svg{width:14px;height:14px}
.pill-btn.ghost{background:rgba(255,255,255,.16);color:#fff}
.staff-cash{opacity:.85;font-size:15px}
.ask .mic{display:grid;place-items:center;width:34px;height:34px;border-radius:10px}
.ask .mic:active{background:var(--surface2)}
.tile.hot{border-color:color-mix(in srgb,var(--c) 45%,#13182f)}
.hot-dot{position:absolute;top:8px;right:10px;color:var(--c);opacity:.9}
.hot-dot svg{width:14px;height:14px}
.sugcard{display:flex;align-items:center;gap:10px;margin-top:10px;background:linear-gradient(135deg,rgba(109,93,252,.14),rgba(47,107,255,.08));border:1px solid rgba(109,93,252,.3);border-radius:18px;padding:10px 10px 10px 14px}
.sugcard>span{color:#a99bff;flex:none}.sugcard>span svg{width:20px;height:20px}
.sugcard p{flex:1;font-size:13.5px;line-height:1.35;color:#d6dbf5}
.mini{padding:8px 12px;border-radius:12px;background:#6d5dfc;color:#fff;font-weight:700;font-size:13px;flex:none}
.mini.x{background:transparent;color:var(--muted);padding:6px}.mini.x svg{width:16px;height:16px}
.badge{display:inline-flex;align-items:center;vertical-align:middle;font-style:normal;font-size:11px;font-weight:800;padding:2px 7px;border-radius:99px;margin-left:4px;letter-spacing:.02em}
.badge.amber{background:rgba(251,191,36,.16);color:var(--amber)}
.badge.red{background:rgba(242,107,138,.16);color:var(--red)}
.badge.green{background:rgba(52,211,153,.16);color:var(--green)}
.badge.blue{background:rgba(75,128,255,.18);color:#8ea8ff}
.badge.ic-b{padding:2px 4px;background:var(--surface2);color:var(--muted)}.badge.ic-b svg{width:12px;height:12px}
.apprv{display:flex;align-items:center}
.apprv .row{flex:1;min-width:0}
.apprv-btns{display:flex;gap:6px;padding-right:6px}
.apprv-btns button{width:38px;height:38px;border-radius:12px;display:grid;place-items:center;background:rgba(242,107,138,.14);color:var(--red)}
.apprv-btns button.ok{background:rgba(52,211,153,.16);color:var(--green)}
.apprv-btns svg{width:18px;height:18px}
.armed{background:rgba(242,107,138,.25)!important;color:#f26b8a!important}
/* receipts */
.rc-row{display:flex;gap:10px;align-items:center;margin-bottom:14px}
.rc-btn{display:flex;align-items:center;gap:8px;padding:11px 14px;border-radius:14px;background:var(--surface);border:1.5px dashed #34407a;color:#cfd5f3;font-weight:600;font-size:14px;cursor:pointer}
.rc-btn svg{width:18px;height:18px}
.rc-thumb{position:relative;width:54px;height:54px;border-radius:12px;overflow:hidden;flex:none}
.rc-thumb img{width:100%;height:100%;object-fit:cover;cursor:zoom-in}
.rc-thumb button{position:absolute;top:2px;right:2px;width:20px;height:20px;border-radius:50%;background:rgba(0,0,0,.6);display:grid;place-items:center;color:#fff}
.rc-thumb button svg{width:12px;height:12px}
.rc-full{width:100%;border-radius:16px;display:block}
/* settle lines */
.line{display:grid;grid-template-columns:1.3fr .8fr 1.2fr auto;gap:6px;margin-bottom:8px;align-items:center}
.line .inp{padding:12px 10px;font-size:14.5px;min-width:0}
.line select.inp{appearance:none;-webkit-appearance:none}
.line button{width:34px;height:34px;border-radius:10px;background:var(--surface);display:grid;place-items:center;color:var(--muted)}
.line button svg{width:15px;height:15px}
/* cash count */
.denoms{display:flex;flex-direction:column;gap:8px}
.denom{display:grid;grid-template-columns:58px 14px 40px 1fr 40px 76px;gap:6px;align-items:center}
.denom b{font-size:15px}.denom span{color:var(--dim)}
.denom .inp{padding:11px 8px;text-align:center;font-size:16px;font-weight:700}
.denom button{height:40px;border-radius:12px;background:var(--surface);font-size:20px;font-weight:700;color:#cfd5f3}
.denom em{font-style:normal;text-align:right;color:var(--muted);font-size:13.5px;font-variant-numeric:tabular-nums}
.count-res{margin-top:16px;border-radius:20px;padding:16px;display:flex;flex-direction:column;gap:2px;background:var(--surface)}
.count-res small{color:var(--muted);font-weight:600}
.count-res b{font-size:30px;font-weight:800;letter-spacing:-.03em}
.count-res span{font-weight:700}
.count-res.ok{background:rgba(52,211,153,.1)}.count-res.ok span{color:var(--green)}
.count-res.short{background:rgba(242,107,138,.1)}.count-res.short span{color:var(--red)}
.count-res.over{background:rgba(251,191,36,.1)}.count-res.over span{color:var(--amber)}
/* users & log */
.avatar{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;font-weight:800;background:color-mix(in srgb,var(--c) 22%,#13182f);color:var(--c);flex:none}
.avatar.big{width:64px;height:64px;font-size:26px}
.qrow button{font-weight:800}
.log{display:flex;flex-direction:column}
.log-row{display:flex;gap:12px;align-items:flex-start;padding:10px 2px;border-bottom:1px solid var(--line)}
.log-row .mic2{width:32px;height:32px;border-radius:10px;background:var(--surface);display:grid;place-items:center;color:#8ea8ff;flex:none}
.log-row .mic2 svg{width:16px;height:16px}
.log-row .grow{flex:1;min-width:0}
.log-row b{font-weight:600;font-size:14px;display:block;line-height:1.35}
.log-row small{color:var(--muted);font-size:12px}
/* lock screen */
body.locked{overflow:hidden}
body.locked .nav{display:none}
.lock{position:fixed;inset:0;z-index:70;background:radial-gradient(circle at 50% 0%,#18245a 0%,var(--bg) 60%);display:flex;align-items:center;justify-content:center;padding:24px}
.lock-in{width:100%;max-width:360px;display:flex;flex-direction:column;align-items:center;text-align:center;gap:10px}
.lock-logo{width:72px;height:72px;border-radius:22px;background:linear-gradient(160deg,#2a62ea,#3271f4);display:grid;place-items:center;margin-bottom:6px}
.lock-logo svg{width:36px;height:36px}
.lock h2{font-size:24px;font-weight:800;letter-spacing:-.02em}
.lock-users{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;width:100%;margin-top:14px}
.lock-users button{display:flex;flex-direction:column;align-items:center;gap:8px;padding:14px 6px;border-radius:20px;background:var(--surface);font-weight:700;font-size:14px}
.lock-users small{color:var(--muted);font-weight:600;font-size:11.5px;margin-top:-4px}
.dots{display:flex;gap:14px;margin:12px 0 18px}
.dots i{width:14px;height:14px;border-radius:50%;border:2px solid #4b5aa0}
.dots i.on{background:#4b80ff;border-color:#4b80ff}
.dots.shake{animation:shake .35s}
@keyframes shake{25%{transform:translateX(-8px)}75%{transform:translateX(8px)}}
.pad{display:grid;grid-template-columns:repeat(3,72px);gap:14px}
.pad button{width:72px;height:72px;border-radius:50%;background:var(--surface);font-size:26px;font-weight:700;display:grid;place-items:center}
.pad button:active{background:var(--surface2)}
.pad button svg{width:24px;height:24px}
.hero-row{flex-wrap:nowrap}
.hero-row .pill-btn{padding:12px 15px;font-size:clamp(13.5px,3.9vw,16px);gap:8px;white-space:nowrap}
.hero-row .pill-btn svg{width:18px;height:18px}
.hero-row .warn{display:none}
.lock-users{display:flex;flex-wrap:wrap;justify-content:center}
.lock-users button{width:calc(33.3% - 8px)}
.perm{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:14px;background:var(--surface);margin-bottom:6px;font-size:14px;font-weight:600}
.perm>span:first-child{color:var(--amber)}.perm.ok>span:first-child{color:var(--green)}
.perm svg{width:18px;height:18px}
.perm .grow{flex:1}
.mil{display:grid;grid-template-columns:1.6fr 1fr 1fr 1fr;gap:8px;align-items:center;padding:10px 0;border-bottom:1px solid var(--line)}
.mil:last-child{border-bottom:0}
.mil b{display:block;font-weight:800}.mil small{color:var(--muted);font-size:11.5px}
.mil-n{text-align:center}.mil-n b{font-size:18px}.mil-n.bad b{color:var(--red)}
.sugcard.habit{background:linear-gradient(135deg,rgba(251,191,36,.12),rgba(251,191,36,.05));border-color:rgba(251,191,36,.3)}
.sugcard.habit>span{color:var(--amber)}
.sugcard.habit .mini:not(.x){background:#b7791f}
.trip-live{display:flex;align-items:center;gap:10px;background:rgba(242,107,138,.1);border:1px solid rgba(242,107,138,.3);border-radius:16px;padding:12px 14px;margin-bottom:8px}
.trip-live .dot{width:10px;height:10px;border-radius:50%;background:var(--red);animation:pulse 1s infinite}
.trip-live b{flex:1;font-size:14.5px}
.wprev{background:#0b1023;border:1px solid var(--line);border-radius:24px;padding:14px}
.wtop{display:flex;justify-content:space-between;align-items:center}
.wtop small{display:block;color:var(--muted);font-size:12px}.wtop b{display:block;font-size:26px;font-weight:800}
.wplus{width:44px;height:44px;border-radius:50%;background:#4b80ff;display:grid;place-items:center;font-size:26px}
.wbtns{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;margin-top:10px}
.wbtns span{background:var(--surface2);border:1px solid #2e3466;border-radius:14px;padding:8px 4px;text-align:center;font-size:12px;line-height:1.35}
