/* BTLB SMM v2 — phone-first app styles. Themes: navy (default) · light · black. Accents: blue · violet · green · orange */
:root, [data-theme="navy"] {
  --bg: #0A0F1E; --bg-2: #0D1426; --surface: #111827; --surface-2: #172036; --surface-3: #1E2942;
  --line: rgba(255,255,255,.07); --line-2: rgba(255,255,255,.13);
  --text: #EEF2F8; --dim: #A3AEC2; --mut: #6B7790;
  --shadow: 0 10px 30px -14px rgba(0,0,0,.7); --tab-bg: rgba(13,20,38,.92);
}
[data-theme="light"] {
  --bg: #F3F5FA; --bg-2: #EAEEF6; --surface: #FFFFFF; --surface-2: #F7F9FC; --surface-3: #EEF2F8;
  --line: rgba(15,23,42,.08); --line-2: rgba(15,23,42,.14);
  --text: #0F172A; --dim: #475569; --mut: #8A96AB;
  --shadow: 0 10px 28px -16px rgba(15,23,42,.25); --tab-bg: rgba(255,255,255,.94);
}
[data-theme="black"] {
  --bg: #000; --bg-2: #050507; --surface: #0C0C10; --surface-2: #131318; --surface-3: #1B1B22;
  --line: rgba(255,255,255,.08); --line-2: rgba(255,255,255,.14);
  --text: #F2F2F5; --dim: #A1A1AA; --mut: #6B6B76;
  --shadow: 0 10px 30px -14px rgba(0,0,0,.9); --tab-bg: rgba(8,8,10,.94);
}
:root, [data-accent="blue"] { --accent: #3B82F6; --accent-2: #60A5FA; }
[data-accent="violet"] { --accent: #8B5CF6; --accent-2: #A78BFA; }
[data-accent="green"] { --accent: #16A34A; --accent-2: #22C55E; }
[data-accent="orange"] { --accent: #EA580C; --accent-2: #F97316; }
:root {
  --accent-soft: color-mix(in oklch, var(--accent) 16%, transparent);
  --green: #22C55E; --red: #EF4444; --orange: #F97316; --yellow: #EAB308; --violet: #8B5CF6; --teal: #14B8A6;
  --r: 18px; --r-sm: 12px; --ease: cubic-bezier(.22,.61,.36,1);
  --safe-b: env(safe-area-inset-bottom); --safe-t: env(safe-area-inset-top);
}
[data-theme="light"] { --green: #16A34A; --red: #DC2626; --orange: #EA580C; --yellow: #CA8A04; }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-tap-highlight-color: transparent; -webkit-text-size-adjust: 100%; }
body { font-family: 'Inter', system-ui, -apple-system, sans-serif; background: var(--bg); color: var(--text);
  -webkit-font-smoothing: antialiased; font-feature-settings: 'cv11','tnum'; min-height: 100dvh; overscroll-behavior-y: none; }
a { color: var(--accent-2); text-decoration: none; } a:hover { color: var(--accent); }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
input, select, textarea { font: inherit; color: inherit; }
.num { font-variant-numeric: tabular-nums; }
.mut { color: var(--mut); } .dim { color: var(--dim); } .pos { color: var(--green); } .neg { color: var(--red); }
.hide { display: none !important; }

/* ---------- Shell ---------- */
.shell { min-height: 100dvh; display: grid; grid-template-columns: 1fr; }
.side { display: none; }
.main { min-width: 0; padding-bottom: calc(92px + var(--safe-b)); }
.top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 12px;
  padding: calc(12px + var(--safe-t)) 16px 12px; background: color-mix(in oklch, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(16px); -webkit-backdrop-filter: saturate(1.4) blur(16px); border-bottom: 1px solid var(--line); }
.top-back { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--surface-2); flex: none; }
.top-title { min-width: 0; flex: 1; }
.top-title h1 { font-size: 19px; font-weight: 750; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-title p { font-size: 12px; color: var(--mut); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chip-bal { display: flex; flex-direction: column; align-items: flex-end; padding: 6px 12px; border-radius: 12px;
  background: color-mix(in oklch, var(--green) 12%, transparent); border: 1px solid color-mix(in oklch, var(--green) 30%, transparent); }
.chip-bal small { font-size: 9.5px; font-weight: 700; letter-spacing: .1em; color: var(--green); }
.chip-bal b { font-size: 14.5px; font-weight: 750; }
.content { padding: 16px; max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }

.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: repeat(5, 1fr);
  padding: 6px 8px calc(6px + var(--safe-b)); background: var(--tab-bg); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid var(--line); }
.tab { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 0; font-size: 10.5px; font-weight: 600; color: var(--mut); border-radius: 12px; }
.tab svg { width: 23px; height: 23px; }
.tab.on { color: var(--text); }
.tab.on svg { color: var(--accent-2); }
.tab-fab { margin-top: -22px; }
.tab-fab span.fab { width: 54px; height: 54px; border-radius: 18px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(160deg, var(--accent-2), var(--accent)); box-shadow: 0 12px 26px -10px var(--accent), inset 0 1px 0 rgba(255,255,255,.3); }
.tab-fab svg { width: 26px; height: 26px; color: #fff !important; }

@media (min-width: 1024px) {
  .shell { grid-template-columns: 248px 1fr; }
  .side { display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100dvh; padding: 20px 14px;
    background: var(--bg-2); border-right: 1px solid var(--line); overflow-y: auto; }
  .tabbar { display: none; }
  .main { padding-bottom: 32px; }
  .content { max-width: 1080px; padding: 22px 28px; }
  .top { padding: 16px 28px; }
  .grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
}
.brand { display: flex; align-items: center; gap: 11px; padding: 4px 8px 18px; }
.brand-mark { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; font-size: 18px; color: #fff;
  background: linear-gradient(140deg, var(--accent-2), var(--violet)); flex: none; }
.brand b { display: block; font-size: 15.5px; letter-spacing: -.01em; } .brand small { font-size: 10px; letter-spacing: .2em; color: var(--mut); font-weight: 700; }
.side-sec { font-size: 10px; font-weight: 800; letter-spacing: .16em; color: var(--mut); padding: 14px 10px 6px; }
.side a { display: flex; align-items: center; gap: 11px; padding: 10px 11px; border-radius: 11px; color: var(--dim); font-size: 14px; font-weight: 550; }
.side a svg { width: 19px; height: 19px; flex: none; }
.side a:hover { background: var(--surface-2); color: var(--text); }
.side a.on { background: var(--accent-soft); color: var(--text); }
.side a.on svg { color: var(--accent-2); }

/* ---------- Cards ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; box-shadow: var(--shadow); }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.card-h h3 { font-size: 15px; font-weight: 700; letter-spacing: -.01em; }
.card-h p, .sub { font-size: 12.5px; color: var(--mut); }
.sec-title { font-size: 12px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; color: var(--mut); padding: 6px 2px 0; }
.hero { position: relative; overflow: hidden; border-radius: 22px; padding: 18px; color: #fff; border: 1px solid rgba(255,255,255,.08);
  background: radial-gradient(120% 140% at 100% 0%, color-mix(in oklch, var(--violet) 55%, transparent), transparent 55%),
              linear-gradient(150deg, var(--accent), color-mix(in oklch, var(--accent) 45%, #0A0F1E)); box-shadow: 0 22px 44px -22px var(--accent); }
.hero .lbl { font-size: 12px; font-weight: 650; opacity: .85; letter-spacing: .02em; }
.hero .big { font-size: 38px; font-weight: 800; letter-spacing: -.035em; line-height: 1.05; margin-top: 6px; }
.hero .row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.hero .mini { background: rgba(255,255,255,.12); border-radius: 13px; padding: 9px 10px; }
.hero .mini small { display: block; font-size: 10.5px; opacity: .8; font-weight: 600; }
.hero .mini b { font-size: 15px; font-weight: 750; }
.delta { display: inline-flex; align-items: center; gap: 3px; padding: 3px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 700; }
.delta.up { background: color-mix(in oklch, var(--green) 18%, transparent); color: var(--green); }
.delta.down { background: color-mix(in oklch, var(--red) 18%, transparent); color: var(--red); }
.hero .delta.up, .hero .delta.down { background: rgba(255,255,255,.18); color: #fff; }
.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (min-width: 700px) { .kpis.k4 { grid-template-columns: repeat(4, 1fr); } .kpis.k3 { grid-template-columns: repeat(3, 1fr); } }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 13px 14px; }
.kpi small { display: block; font-size: 11.5px; color: var(--mut); font-weight: 600; }
.kpi b { display: block; font-size: 20px; font-weight: 780; letter-spacing: -.02em; margin-top: 4px; }
.kpi em { display: block; font-style: normal; font-size: 11.5px; color: var(--dim); margin-top: 3px; }

/* ---------- Lists ---------- */
.list { display: flex; flex-direction: column; }
.li { display: flex; align-items: center; gap: 12px; padding: 12px 2px; border-bottom: 1px solid var(--line); }
.li:last-child { border-bottom: 0; }
.li.tap { cursor: pointer; border-radius: 10px; }
.li.tap:active { background: var(--surface-2); }
.li-ic { width: 38px; height: 38px; border-radius: 12px; flex: none; display: grid; place-items: center; background: var(--surface-2); color: var(--dim); font-weight: 750; font-size: 13px; }
.li-ic svg { width: 18px; height: 18px; }
.li-main { flex: 1; min-width: 0; }
.li-main b { display: block; font-size: 14px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.li-main small { display: block; font-size: 12px; color: var(--mut); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.li-end { text-align: right; flex: none; }
.li-end b { display: block; font-size: 14px; font-weight: 700; }
.li-end small { display: block; font-size: 11.5px; color: var(--mut); margin-top: 2px; }

.ocard { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 13px 14px; display: flex; flex-direction: column; gap: 9px; cursor: pointer; }
.ocard:active { transform: scale(.995); }
.ocard-top { display: flex; align-items: flex-start; gap: 10px; }
.ocard-top .t { flex: 1; min-width: 0; }
.ocard-top .t b { font-size: 14.5px; font-weight: 680; display: block; }
.ocard-top .t small { font-size: 12px; color: var(--mut); display: block; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ocard-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--dim); }
.ocard-meta span b { color: var(--text); font-weight: 650; }

/* ---------- Badges / chips ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; white-space: nowrap;
  color: var(--b, var(--dim)); background: color-mix(in oklch, var(--b, var(--dim)) 14%, transparent); }
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.b-pending { --b: var(--yellow); } .b-progress { --b: var(--accent-2); } .b-done { --b: var(--green); } .b-partial { --b: var(--orange); }
.b-fail { --b: var(--red); } .b-cancel { --b: var(--mut); } .b-unconf { --b: var(--violet); }
.tag { display: inline-flex; padding: 2px 8px; border-radius: 7px; font-size: 11px; font-weight: 650; background: var(--surface-3); color: var(--dim); }
.chips { display: flex; gap: 7px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; }
.chips::-webkit-scrollbar { display: none; }
.chipb { flex: none; padding: 8px 13px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--surface); border: 1px solid var(--line-2); color: var(--dim); }
.chipb.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.seg { display: flex; padding: 4px; gap: 4px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.seg button { flex: 1; padding: 9px 8px; border-radius: 10px; font-size: 13px; font-weight: 650; color: var(--dim); white-space: nowrap; }
.seg button.on { background: var(--surface); color: var(--text); box-shadow: 0 2px 8px -3px rgba(0,0,0,.4); }
[data-theme="light"] .seg button.on { box-shadow: 0 1px 4px rgba(15,23,42,.12); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 18px; border-radius: 14px;
  font-size: 14.5px; font-weight: 700; background: var(--surface-2); border: 1px solid var(--line-2); color: var(--text); transition: transform .1s, opacity .15s; }
.btn:active { transform: scale(.98); }
.btn svg { width: 18px; height: 18px; }
.btn-p { background: linear-gradient(170deg, var(--accent-2), var(--accent)); color: #fff; border: 0; box-shadow: 0 10px 22px -12px var(--accent); }
.btn-g { background: color-mix(in oklch, var(--green) 16%, transparent); color: var(--green); border-color: color-mix(in oklch, var(--green) 30%, transparent); }
.btn-d { background: color-mix(in oklch, var(--red) 13%, transparent); color: var(--red); border-color: color-mix(in oklch, var(--red) 28%, transparent); }
.btn-s { min-height: 36px; padding: 0 12px; border-radius: 11px; font-size: 13px; }
.btn-w { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn .spin { width: 17px; height: 17px; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
.icon-btn { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line); color: var(--dim); flex: none; }
.icon-btn svg { width: 18px; height: 18px; }
.row { display: flex; gap: 10px; align-items: center; } .row > .grow { flex: 1; min-width: 0; } .wrap { flex-wrap: wrap; }
.btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: 12.5px; font-weight: 650; color: var(--dim); display: flex; justify-content: space-between; gap: 8px; }
.field > span i { font-style: normal; font-weight: 500; color: var(--mut); }
.inp, .field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 13px; font-size: 16px;
  background: var(--surface-2); border: 1px solid var(--line-2); color: var(--text); outline: none; transition: border-color .15s, box-shadow .15s; }
.field textarea { min-height: 110px; resize: vertical; line-height: 1.45; }
.inp:focus, .field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.field select, select.inp { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238A96AB' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.form { display: flex; flex-direction: column; gap: 14px; }
.f2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.picker { display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 10px 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line-2); text-align: left; width: 100%; }
.picker .grow b { display: block; font-size: 15px; font-weight: 650; } .picker .grow small { display: block; font-size: 12px; color: var(--mut); margin-top: 2px; }
.qchips { display: flex; gap: 6px; flex-wrap: wrap; }
.qchips button { padding: 7px 11px; border-radius: 10px; font-size: 12.5px; font-weight: 650; background: var(--surface-3); color: var(--dim); }
.toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; }
.sw { position: relative; width: 48px; height: 28px; flex: none; }
.sw input { position: absolute; opacity: 0; inset: 0; cursor: pointer; z-index: 1; }
.sw i { position: absolute; inset: 0; border-radius: 99px; background: var(--surface-3); transition: .2s; }
.sw i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: .2s var(--ease); box-shadow: 0 2px 4px rgba(0,0,0,.3); }
.sw input:checked + i { background: var(--accent); } .sw input:checked + i::after { transform: translateX(20px); }
.err { padding: 11px 13px; border-radius: 12px; font-size: 13px; font-weight: 550; color: var(--red); background: color-mix(in oklch, var(--red) 11%, transparent); }
.note { padding: 11px 13px; border-radius: 12px; font-size: 12.5px; color: var(--dim); background: var(--surface-2); line-height: 1.45; }

/* sticky action bar (above tab bar) */
.actionbar { position: sticky; bottom: calc(78px + var(--safe-b)); z-index: 20; margin: 4px -4px 0; padding: 12px; border-radius: 18px;
  display: flex; align-items: center; gap: 12px; background: color-mix(in oklch, var(--surface) 92%, transparent); border: 1px solid var(--line-2);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 -8px 30px -18px rgba(0,0,0,.6); }
.actionbar .grow { flex: 1; min-width: 0; }
.actionbar .grow small { display: block; font-size: 11.5px; color: var(--mut); font-weight: 600; }
.actionbar .grow b { font-size: 19px; font-weight: 800; letter-spacing: -.02em; }
@media (min-width: 1024px) { .actionbar { bottom: 16px; } }

/* ---------- Progress / charts ---------- */
.bar { height: 8px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.bar.g > i { background: var(--green); }
.stack { display: flex; height: 12px; border-radius: 99px; overflow: hidden; background: var(--surface-3); gap: 2px; }
.stack > i { display: block; height: 100%; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--dim); margin-top: 10px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; } .legend span::before { content: ''; width: 9px; height: 9px; border-radius: 3px; background: var(--c); }
.spark { display: block; width: 100%; height: 56px; }
.chart { display: block; width: 100%; height: 170px; }
.ring { --p: 0; --c: var(--accent); width: 64px; height: 64px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: conic-gradient(var(--c) calc(var(--p) * 1%), var(--surface-3) 0); }
.ring::before { content: ''; position: absolute; }
.ring b { width: 50px; height: 50px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; font-size: 13px; font-weight: 800; }

/* ---------- Sheet / modal ---------- */
.scrim { position: fixed; inset: 0; z-index: 60; background: rgba(2,6,16,.55); backdrop-filter: blur(3px); opacity: 0; transition: opacity .2s; }
.scrim.in { opacity: 1; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 61; max-height: 92dvh; display: flex; flex-direction: column;
  background: var(--surface); border-radius: 24px 24px 0 0; border: 1px solid var(--line-2); border-bottom: 0;
  transform: translateY(100%); transition: transform .28s var(--ease); padding-bottom: var(--safe-b); }
.sheet.in { transform: none; }
.sheet-h { display: flex; align-items: center; gap: 10px; padding: 10px 16px 12px; border-bottom: 1px solid var(--line); }
.sheet-h::before { content: ''; position: absolute; top: 7px; left: 50%; width: 38px; height: 4px; margin-left: -19px; border-radius: 9px; background: var(--line-2); }
.sheet-h h3 { flex: 1; font-size: 17px; font-weight: 750; padding-top: 10px; }
.sheet-h .icon-btn { margin-top: 8px; }
.sheet-b { padding: 16px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
@media (min-width: 760px) {
  .sheet { left: 50%; right: auto; bottom: auto; top: 50%; width: min(560px, 94vw); border-radius: 22px; border-bottom: 1px solid var(--line-2);
    transform: translate(-50%, -46%) scale(.98); opacity: 0; transition: .2s var(--ease); max-height: 88dvh; }
  .sheet.in { transform: translate(-50%, -50%); opacity: 1; }
  .sheet-h::before { display: none; } .sheet-h h3, .sheet-h .icon-btn { padding-top: 0; margin-top: 0; }
}

/* ---------- Toast ---------- */
.toasts { position: fixed; top: calc(10px + var(--safe-t)); left: 12px; right: 12px; z-index: 80; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
.toast { pointer-events: auto; max-width: 440px; width: 100%; display: flex; align-items: center; gap: 11px; padding: 12px 14px; border-radius: 15px;
  background: var(--surface-3); border: 1px solid var(--line-2); box-shadow: 0 16px 34px -16px rgba(0,0,0,.6); font-size: 13.5px; font-weight: 550;
  animation: tin .25s var(--ease); }
.toast i { width: 26px; height: 26px; border-radius: 9px; display: grid; place-items: center; flex: none; font-style: normal; font-weight: 800; }
.toast.ok i { background: color-mix(in oklch, var(--green) 20%, transparent); color: var(--green); }
.toast.bad i { background: color-mix(in oklch, var(--red) 20%, transparent); color: var(--red); }
.toast.info i { background: var(--accent-soft); color: var(--accent-2); }
.toast.out { animation: tout .2s forwards; }
@keyframes tin { from { opacity: 0; transform: translateY(-10px); } }
@keyframes tout { to { opacity: 0; transform: translateY(-10px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } }
.page { animation: fade .25s var(--ease); display: contents; }

.skel { border-radius: 16px; background: linear-gradient(90deg, var(--surface) 0%, var(--surface-2) 50%, var(--surface) 100%); background-size: 200% 100%; animation: sh 1.2s infinite; }
@keyframes sh { to { background-position: -200% 0; } }
.empty { text-align: center; padding: 34px 16px; color: var(--mut); font-size: 13.5px; }
.empty svg { width: 34px; height: 34px; opacity: .5; margin-bottom: 8px; }

/* tiles (More) */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (min-width: 700px) { .tiles { grid-template-columns: repeat(4, 1fr); } }
.tile { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); text-align: left; }
.tile span { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-2); }
.tile span svg { width: 19px; height: 19px; }
.tile b { font-size: 13px; font-weight: 650; }

/* Report card */
.rep { border-radius: 22px; overflow: hidden; border: 1px solid var(--line-2); background: var(--surface); box-shadow: var(--shadow); }
.rep-h { padding: 20px 18px 18px; color: #fff; background: radial-gradient(130% 120% at 0% 0%, color-mix(in oklch, var(--accent-2) 70%, transparent), transparent 60%),
  linear-gradient(160deg, #101a36, #0A0F1E 70%); position: relative; }
[data-theme="light"] .rep-h { background: radial-gradient(130% 120% at 0% 0%, color-mix(in oklch, var(--accent-2) 75%, transparent), transparent 60%), linear-gradient(160deg, #1E3A8A, #0F172A 75%); }
.rep-h .k { font-size: 11px; font-weight: 750; letter-spacing: .16em; opacity: .75; }
.rep-h h2 { font-size: 21px; font-weight: 780; letter-spacing: -.02em; margin-top: 4px; }
.rep-h .big { font-size: 40px; font-weight: 820; letter-spacing: -.035em; margin-top: 14px; line-height: 1; }
.rep-h .row { margin-top: 10px; gap: 8px; flex-wrap: wrap; font-size: 12.5px; opacity: .9; }
.rep-b { padding: 16px 18px; display: flex; flex-direction: column; gap: 16px; }
.wf { display: flex; flex-direction: column; gap: 8px; }
.wf-r { display: grid; grid-template-columns: 96px 1fr 92px; align-items: center; gap: 10px; font-size: 13px; }
.wf-r .lb { color: var(--dim); font-weight: 600; }
.wf-r .vl { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.wf-r .tr { height: 10px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.wf-r .tr i { display: block; height: 100%; border-radius: 99px; }
.ent-sec { padding-top: 14px; border-top: 1px dashed var(--line-2); }
.ent-sec:first-child { border-top: 0; padding-top: 0; }
.wa-prev { white-space: pre-wrap; font-size: 13px; line-height: 1.5; padding: 13px 14px; border-radius: 14px 14px 14px 4px;
  background: color-mix(in oklch, #25D366 13%, var(--surface-2)); border: 1px solid color-mix(in oklch, #25D366 25%, transparent); }

/* login */
.login { min-height: 100dvh; display: grid; place-items: center; padding: 24px 18px calc(24px + var(--safe-b));
  background: radial-gradient(70% 50% at 20% 0%, color-mix(in oklch, var(--accent) 30%, transparent), transparent 70%),
              radial-gradient(60% 40% at 100% 10%, color-mix(in oklch, var(--violet) 22%, transparent), transparent 70%), var(--bg); }
.login-card { width: min(420px, 100%); display: flex; flex-direction: column; gap: 18px; }
.login-card h1 { font-size: 28px; font-weight: 800; letter-spacing: -.03em; }
.login-card .sub { font-size: 14px; }
.linkbtn { color: var(--accent-2); font-weight: 650; font-size: 14px; }
.pin-dots { display: flex; justify-content: center; gap: 16px; height: 18px; }
.pin-dots i { width: 15px; height: 15px; border-radius: 50%; border: 2px solid var(--line-2); transition: .15s; }
.pin-dots i.on { background: var(--accent-2); border-color: var(--accent-2); transform: scale(1.08); }
.pin-dots.shake { animation: shake .35s; }
@keyframes shake { 20%, 60% { transform: translateX(-9px); } 40%, 80% { transform: translateX(9px); } }
.keypad { display: grid; grid-template-columns: repeat(3, 76px); gap: 14px 22px; justify-content: center; margin-top: 6px; }
.keypad button { width: 76px; height: 76px; border-radius: 50%; font-size: 27px; font-weight: 600; background: var(--surface); border: 1px solid var(--line-2); }
.keypad button:active { background: var(--accent-soft); transform: scale(.96); }
