@font-face { font-family: 'Inter'; src: url('../fonts/Inter-var.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
:root {
  --teal: #0F4C4A; --teal-2: #145E5B; --teal-ink: #0B3836;
  --mint: #7EDCB5; --mint-2: #3FCB8F; --mint-soft: #E6F7EF; --mint-bg: #C9EFDD;
  --bg: #F5F8F7; --card: #FFFFFF; --line: #E3EBE9; --ink: #0E1F1E; --muted: #5E716F; --faint: #8FA09E;
  --amber: #E09F3E; --red: #C8463D;
  --r: 18px; --r-sm: 12px;
  --shadow: 0 1px 2px rgba(15, 76, 74, .05), 0 4px 16px rgba(15, 76, 74, .06);
  --safe-b: env(safe-area-inset-bottom, 0px); --safe-t: env(safe-area-inset-top, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: #E9EFEE; color: var(--ink); font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; font-size: 16px; line-height: 1.4; -webkit-font-smoothing: antialiased; font-feature-settings: 'cv11', 'ss01', 'tnum'; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
a { color: var(--teal); font-weight: 600; }
.ic { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

#stage { position: relative; max-width: 440px; min-height: 100vh; min-height: 100dvh; margin: 0 auto; background: var(--bg); overflow-x: hidden; }
@media (min-width: 520px) {
  body { padding: 24px 0; }
  #stage { min-height: calc(100vh - 48px); border-radius: 28px; box-shadow: 0 20px 60px rgba(15, 76, 74, .18); overflow: hidden; }
}

/* demo banner */
.demo-bar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: center; gap: 6px; padding: calc(6px + var(--safe-t)) 12px 6px; background: #FFF4DE; color: #7A5212; font-size: 12.5px; border-bottom: 1px solid #F3E1BC; }
.demo-bar .ic { width: 15px; height: 15px; }

/* screen */
.screen { padding: 8px 20px 28px; }
.screen.has-nav { padding-bottom: calc(96px + var(--safe-b)); }
.screen.pad-bottom { padding-bottom: calc(32px + var(--safe-b)); }
.screen.enter { animation: enter .28s ease-out; }
@keyframes enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.flex-col { display: flex; flex-direction: column; min-height: calc(100dvh - 34px); }
.top { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; height: 60px; margin: 0 -8px 6px; }
.top.center { display: flex; justify-content: center; margin: 4px 0 10px; }
.top-title { margin: 0; text-align: center; font-size: 17px; font-weight: 650; }
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: var(--ink); }
.icon-btn:active { background: var(--line); }

/* logo */
.logo { display: inline-flex; align-items: center; gap: .3em; padding: .5em 1em .5em 1.45em; border: 2px solid var(--teal); border-radius: 999px; color: var(--teal); font-weight: 800; font-size: 17px; letter-spacing: .5em; line-height: 1; background: #fff; }
.logo .word { margin-right: -.12em; }
.logo .check { width: 1.3em; height: 1.3em; border-radius: 50%; background: var(--mint-2); color: #fff; display: grid; place-items: center; letter-spacing: 0; }
.logo .check .ic { width: .82em; height: .82em; stroke-width: 3.2; }
.logo.lg { font-size: 24px; border-width: 2.5px; }

/* type */
.h1 { font-size: 28px; line-height: 1.15; font-weight: 750; letter-spacing: -.02em; margin: 6px 0 8px; }
.h1.tight { margin-bottom: 4px; }
.hero { font-size: 38px; line-height: 1.08; font-weight: 800; letter-spacing: -.03em; margin: 28px 0 14px; }
.hello { font-size: 30px; font-weight: 800; letter-spacing: -.025em; margin: 2px 0 14px; }
.sub, .lead { color: var(--muted); margin: 0 0 22px; font-size: 15.5px; }
.lead { font-size: 17px; }
.center { text-align: center; }
.fine { font-size: 13px; color: var(--muted); margin: 12px 0; }
.note { font-size: 13px; color: #7A5212; background: #FFF4DE; border-radius: 10px; padding: 10px 12px; margin: 14px 0 0; }
.muted { color: var(--muted); font-size: 13.5px; }
.row-ic { display: flex; align-items: center; justify-content: center; gap: 6px; }
.row-ic .ic { width: 16px; height: 16px; }
.auto { display: flex; align-items: center; justify-content: center; gap: 6px; }
.auto .ic { width: 16px; height: 16px; color: var(--mint-2); }
.err { color: var(--red); font-size: 14px; margin: -4px 0 12px; }

/* buttons */
.btn { display: flex; width: 100%; align-items: center; justify-content: center; gap: 8px; height: 54px; border-radius: 14px; font-weight: 650; font-size: 16.5px; text-align: center; transition: transform .08s, opacity .2s, background .2s; }
.btn:active { transform: scale(.985); }
.btn .ic { width: 20px; height: 20px; }
.btn.primary { background: var(--teal); color: #fff; box-shadow: 0 6px 16px rgba(15, 76, 74, .22); }
.btn.mint { background: var(--mint-2); color: #fff; box-shadow: 0 6px 16px rgba(63, 203, 143, .3); }
.btn.outline { border: 1.5px solid var(--teal); color: var(--teal); background: #fff; }
.btn.danger { background: #FCECEA; color: var(--red); margin-top: 18px; }
.btn.danger-soft { background: #FCECEA; color: var(--red); }
.btn.ghost-btn { background: #EEF3F2; color: var(--ink); }
.btn:disabled { opacity: .38; box-shadow: none; cursor: default; transform: none; }
.link { color: var(--teal); font-weight: 650; font-size: 14.5px; display: inline-flex; align-items: center; gap: 6px; }
.link .ic { width: 18px; height: 18px; }
.center-block { display: flex; margin: 14px auto 0; justify-content: center; }

/* forms */
.form { display: block; }
.field { display: block; background: #fff; border: 1.5px solid #CFDDDA; border-radius: 14px; padding: 10px 14px 9px; margin-bottom: 12px; transition: border-color .15s, box-shadow .15s; }
.field:focus-within { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(15, 76, 74, .08); }
.field span { display: block; font-size: 12.5px; color: var(--muted); font-weight: 500; }
.field input { display: block; width: 100%; border: 0; outline: 0; background: transparent; font: inherit; font-size: 17px; font-weight: 550; color: var(--ink); padding: 3px 0 0; }
.field input::placeholder { color: #B5C3C1; font-weight: 450; }
.form .btn { margin-top: 18px; }
.amt-in { display: flex; align-items: baseline; gap: 4px; }
.amt-in i { font-style: normal; font-size: 26px; font-weight: 700; color: var(--muted); }
.field.amount input { font-size: 28px; font-weight: 750; }

/* welcome */
.welcome { display: flex; flex-direction: column; min-height: calc(100dvh - 70px); padding-top: 34px; }
.welcome-logo { display: flex; }
.trio { display: flex; justify-content: space-around; margin: 30px 0 10px; }
.trio > div { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--ink); }
.bubble { width: 60px; height: 60px; border-radius: 50%; background: var(--mint-soft); color: var(--teal); display: grid; place-items: center; }
.bubble .ic { width: 26px; height: 26px; }
.uc-mini { font-weight: 850; font-size: 19px; letter-spacing: -.02em; }
.spacer { flex: 1; min-height: 24px; }
.centered { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 40px 0; }
.centered.tight { padding: 18px 0 8px; flex: none; }
.big-check { width: 92px; height: 92px; border-radius: 50%; background: var(--mint-2); color: #fff; display: grid; place-items: center; margin-bottom: 22px; box-shadow: 0 12px 30px rgba(63, 203, 143, .35); }
.big-check .ic { width: 48px; height: 48px; stroke-width: 2.6; }
.pop { animation: pop .5s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }

/* home */
.year-card { display: block; width: 100%; background: linear-gradient(140deg, var(--teal) 0%, var(--teal-2) 100%); color: #fff; border-radius: var(--r); padding: 16px 18px 14px; box-shadow: 0 10px 26px rgba(15, 76, 74, .25); position: relative; overflow: hidden; }
.year-card::after { content: ''; position: absolute; right: -40px; top: -50px; width: 160px; height: 160px; border-radius: 50%; background: radial-gradient(circle, rgba(126, 220, 181, .28), transparent 70%); }
.yc-top { display: flex; justify-content: space-between; align-items: center; font-weight: 650; font-size: 15px; }
.pill-soft { font-size: 11.5px; font-weight: 600; background: rgba(255, 255, 255, .14); padding: 3px 9px; border-radius: 99px; }
.yc-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0 12px; }
.yc-row small { display: block; font-size: 12.5px; opacity: .75; }
.yc-row b { font-size: 21px; font-weight: 750; letter-spacing: -.02em; }
.yc-foot { display: flex; align-items: center; gap: 6px; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: 13.5px; opacity: .92; }
.yc-foot b { margin-left: auto; font-weight: 700; color: var(--mint); }
.yc-foot .ic { width: 16px; height: 16px; }

.task { display: flex; align-items: center; gap: 12px; width: 100%; background: #fff; border-radius: 16px; padding: 12px 14px; margin-top: 10px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.task-ic { width: 38px; height: 38px; border-radius: 11px; background: var(--mint-soft); color: var(--teal); display: grid; place-items: center; }
.task-ic .ic { width: 20px; height: 20px; }
.task-main { flex: 1; min-width: 0; }
.task-main b { display: block; font-size: 14.5px; font-weight: 650; }
.task-main span { display: block; font-size: 12.5px; color: var(--muted); }
.task-cta { display: flex; align-items: center; color: var(--teal); font-weight: 700; font-size: 14px; }
.task-cta .ic { width: 16px; height: 16px; }
.task.done .task-ic { background: var(--mint-2); color: #fff; }

.add-card { background: linear-gradient(160deg, #8FE3C0 0%, #6FD3AA 100%); border-radius: 22px; padding: 14px 14px 14px; margin: 14px 0 6px; box-shadow: 0 8px 22px rgba(63, 203, 143, .22); }
.add-card h2 { margin: 2px 4px 10px; font-size: 18px; font-weight: 750; color: var(--teal-ink); }
.add-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile { background: #fff; border-radius: 16px; min-height: 92px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 12px 8px; box-shadow: 0 1px 2px rgba(15, 76, 74, .06); transition: transform .08s; }
.tile:active { transform: scale(.97); }
.tile-ic { width: 42px; height: 42px; border-radius: 13px; background: var(--mint-soft); color: var(--teal); display: grid; place-items: center; flex: none; }
.tile-ic.sm { width: 38px; height: 38px; border-radius: 11px; }
.tile-ic .ic { width: 23px; height: 23px; }
.tile-l { font-size: 14px; font-weight: 650; color: var(--ink); }
.tile.uc { gap: 2px; }
.uc-big { font-size: 38px; line-height: 1; font-weight: 850; letter-spacing: -.04em; color: var(--teal); }
.tile.uc .tile-l { font-weight: 600; color: var(--muted); font-size: 13.5px; }
.add-grid.big { gap: 12px; }
.add-grid.big .tile { min-height: 132px; border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: 20px; }
.add-grid.big .tile-ic { width: 54px; height: 54px; border-radius: 16px; }
.add-grid.big .tile-ic .ic { width: 28px; height: 28px; }
.add-grid.big .uc-big { font-size: 52px; }
.add-grid.big .tile-l { font-size: 15px; }

.sec-head { display: flex; justify-content: space-between; align-items: baseline; margin: 22px 2px 8px; }
.sec-head h2 { margin: 0; font-size: 17px; font-weight: 700; }
.list { background: #fff; border-radius: var(--r); box-shadow: var(--shadow); border: 1px solid var(--line); overflow: hidden; }
.list.tight { box-shadow: none; margin: 8px 0 0; }
.item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border-bottom: 1px solid var(--line); background: #fff; }
.item:last-child { border-bottom: 0; }
.item:active:not(.static) { background: #F6FAF9; }
.item.old { opacity: .5; }
.item-ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 13%, white); flex: none; }
.item-ic .ic { width: 20px; height: 20px; }
.item-main { flex: 1; min-width: 0; }
.item-t { display: block; font-weight: 620; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item-s { display: block; font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item-a { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; white-space: nowrap; }
.item-a.inc { color: #1E8F65; }
.ok { width: 20px; height: 20px; border-radius: 50%; background: var(--mint-2); color: #fff; display: grid; place-items: center; }
.ok .ic { width: 13px; height: 13px; stroke-width: 3; }
.month { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 20px 4px 8px; font-weight: 650; }
.empty { text-align: center; color: var(--muted); padding: 40px 0; }

/* add page */
.row-btn { display: flex; align-items: center; gap: 12px; width: 100%; background: #fff; border-radius: 16px; padding: 13px 14px; margin-top: 12px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.row-btn > span:nth-child(2) { flex: 1; }
.row-btn b { display: block; font-weight: 650; font-size: 15px; }
.row-btn small { display: block; color: var(--muted); font-size: 12.5px; }
.row-btn > .ic { color: var(--faint); width: 18px; height: 18px; }
.tip { display: flex; gap: 10px; align-items: flex-start; background: var(--mint-soft); color: var(--teal-ink); border-radius: 14px; padding: 12px 14px; margin-top: 16px; font-size: 14px; }
.tip .ic { width: 18px; height: 18px; margin-top: 1px; }

/* chips / segmented */
.chips { display: flex; gap: 8px; overflow-x: auto; margin: 0 -20px 12px; padding: 2px 20px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 8px 15px; border-radius: 99px; background: #fff; border: 1.5px solid #D6E2E0; font-weight: 600; font-size: 14px; color: var(--ink); }
.chip.on { background: var(--teal); border-color: var(--teal); color: #fff; }
.cat-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cat-chips .chip { padding: 7px 13px; font-size: 13.5px; }
.total-bar { display: flex; justify-content: space-between; align-items: center; background: #fff; border-radius: 14px; padding: 12px 16px; border: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.total-bar b { color: var(--ink); font-size: 17px; }
.seg { display: flex; background: #E4ECEA; border-radius: 12px; padding: 4px; margin: 10px auto 16px; max-width: 260px; }
.seg button { flex: 1; text-align: center; padding: 8px 0; border-radius: 9px; font-weight: 650; font-size: 14px; color: var(--muted); }
.seg button.on { background: #fff; color: var(--teal); box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
.seg.small { max-width: none; margin: 4px 0 14px; }

/* tax year */
.card { background: #fff; border-radius: var(--r); box-shadow: var(--shadow); border: 1px solid var(--line); padding: 16px; margin-bottom: 14px; }
.donut-card { display: flex; align-items: center; gap: 18px; }
.donut { width: 128px; height: 128px; border-radius: 50%; flex: none; background: conic-gradient(var(--mint) 0 var(--a1), var(--amber) var(--a1) var(--a2), var(--teal) var(--a2) 360deg); display: grid; place-items: center; }
.donut > div { width: 84px; height: 84px; border-radius: 50%; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.donut small { font-size: 11.5px; color: var(--muted); }
.donut b { font-size: 16px; font-weight: 750; letter-spacing: -.02em; }
.legend { list-style: none; margin: 0; padding: 0; font-size: 13.5px; display: grid; gap: 9px; }
.legend li { display: flex; align-items: center; gap: 8px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.kvs { padding: 4px 16px; }
.kv { display: flex; width: 100%; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.kv:last-child { border-bottom: 0; }
.kv > span { color: var(--muted); }
.kv b { font-weight: 650; display: flex; align-items: center; gap: 4px; }
.kv b .ic { width: 16px; height: 16px; color: var(--faint); }
.kv b em { font-style: normal; font-weight: 500; font-size: 12px; color: var(--faint); margin-left: 6px; }
.kv.strong b { font-size: 16px; }
.kv.total > span { color: var(--ink); font-weight: 650; }
.kv.total b { font-size: 19px; color: var(--teal); font-weight: 800; }
.kv b.good { color: #1E8F65; }
.kv b.good .ic { color: #1E8F65; }
.kvs.compact .kv { padding: 10px 0; font-size: 14.5px; }
.qbars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; text-align: center; }
.qb .bars { height: 92px; display: flex; align-items: flex-end; justify-content: center; gap: 4px; margin-bottom: 6px; }
.qb .bars i { width: 14px; border-radius: 5px 5px 2px 2px; min-height: 3px; }
.bi { background: var(--teal); } .be { background: var(--mint); }
.qb span { display: block; font-weight: 700; font-size: 13.5px; }
.qb small { display: block; color: var(--muted); font-size: 12px; }
.qlegend { display: flex; gap: 16px; justify-content: center; margin-top: 10px; font-size: 12.5px; color: var(--muted); }
.qlegend i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 5px; }
.cats { display: grid; gap: 12px; }
.cat { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; font-size: 14px; }
.cat-l { display: flex; align-items: center; gap: 8px; }
.cat-l i { width: 9px; height: 9px; border-radius: 3px; }
.cat b { font-weight: 650; }
.cat-bar { grid-column: 1 / -1; height: 6px; background: #EEF3F2; border-radius: 99px; overflow: hidden; }
.cat-bar i { display: block; height: 100%; border-radius: 99px; }
.filed-strip { display: flex; gap: 12px; align-items: center; background: var(--mint-soft); color: var(--teal-ink); border-radius: 14px; padding: 12px 14px; font-weight: 600; font-size: 14.5px; }
.filed-strip .ic { width: 26px; height: 26px; background: var(--mint-2); color: #fff; border-radius: 50%; padding: 5px; stroke-width: 3; }
.filed-strip small { font-weight: 500; color: var(--muted); }

/* MTD */
.q-card { background: #fff; border-radius: var(--r); border: 1px solid var(--line); padding: 14px 16px; margin-bottom: 10px; box-shadow: var(--shadow); }
.q-card.active { border: 1.5px solid var(--teal); box-shadow: 0 10px 26px rgba(15, 76, 74, .14); padding: 16px; }
.q-card.dim { opacity: .62; box-shadow: none; }
.q-head { display: flex; justify-content: space-between; align-items: baseline; }
.q-head b { font-size: 16.5px; font-weight: 750; }
.q-head span { color: var(--muted); font-size: 13.5px; }
.q-fig { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0 8px; }
.q-fig span { background: var(--bg); border-radius: 12px; padding: 10px 12px; font-size: 12.5px; color: var(--muted); }
.q-fig b { display: block; font-size: 19px; color: var(--ink); font-weight: 750; margin-top: 2px; }
.q-note { font-size: 13px; color: var(--muted); margin: 0 0 14px; }
.q-status { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 14px; font-weight: 600; color: var(--muted); }
.q-status .ic { width: 17px; height: 17px; }
.q-status.good { color: #1E8F65; }
.q-card small.muted { display: block; margin-top: 3px; font-size: 12.5px; }

/* review */
.checks { list-style: none; padding: 0; margin: 0 0 14px; }
.checks li { display: flex; gap: 12px; padding: 10px 0; }
.ck { width: 24px; height: 24px; border-radius: 50%; background: var(--mint-soft); color: #1E8F65; display: grid; place-items: center; flex: none; margin-top: 1px; }
.ck .ic { width: 15px; height: 15px; stroke-width: 3; }
.checks b { display: block; font-size: 15px; font-weight: 650; }
.checks small { display: block; font-size: 13px; color: var(--muted); }
.declare { display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 1.5px solid #CFDDDA; border-radius: 16px; padding: 14px; margin: 4px 0 16px; font-size: 14.5px; cursor: pointer; transition: border-color .15s, background .15s; }
.declare input { position: absolute; opacity: 0; pointer-events: none; }
.declare .box { width: 24px; height: 24px; border-radius: 7px; border: 2px solid #A9BDBA; display: grid; place-items: center; flex: none; color: transparent; transition: all .15s; }
.declare .box .ic { width: 16px; height: 16px; stroke-width: 3.2; }
.declare.on { border-color: var(--mint-2); background: #F3FCF8; }
.declare.on .box { background: var(--mint-2); border-color: var(--mint-2); color: #fff; }
.receipt { padding: 6px 16px 12px; }
.r-row { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px dashed #D6E2E0; font-size: 14.5px; }
.r-row span { color: var(--muted); }
.r-row b { font-weight: 650; text-align: right; }
.mono { font-family: ui-monospace, 'SF Mono', Menlo, monospace; letter-spacing: .04em; font-size: 15px; }
.demo-note { display: flex; gap: 6px; align-items: center; font-size: 12.5px; color: #7A5212; margin: 12px 0 0; }
.demo-note .ic { width: 15px; height: 15px; }

/* profile */
.prof { display: flex; flex-direction: column; align-items: center; margin: 10px 0 16px; }
.avatar { width: 76px; height: 76px; border-radius: 50%; background: linear-gradient(140deg, var(--teal), var(--teal-2)); color: var(--mint); display: grid; place-items: center; font-weight: 800; font-size: 26px; margin-bottom: 10px; letter-spacing: .02em; }
.prof .sub { margin: 0; }

/* bottom tabs */
.tabs { position: fixed; z-index: 40; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 440px; display: grid; grid-template-columns: repeat(4, 1fr); background: rgba(255, 255, 255, .94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); padding: 8px 6px calc(8px + var(--safe-b)); }
@media (min-width: 520px) { .tabs { position: absolute; bottom: 0; } #stage { padding-bottom: 0; } }
.tab { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 4px 0; font-size: 11.5px; font-weight: 600; color: var(--faint); text-align: center; }
.tab .ic { width: 25px; height: 25px; }
.tab.on { color: var(--teal); }
.tab.on .ic { stroke-width: 2.2; }

/* sheet */
.sheet-wrap { position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-end; justify-content: center; }
@media (min-width: 520px) { .sheet-wrap { position: absolute; } }
.scrim { position: absolute; inset: 0; background: rgba(9, 30, 29, .42); opacity: 0; transition: opacity .25s; }
.sheet { position: relative; width: 100%; max-width: 440px; max-height: 90%; overflow-y: auto; background: #fff; border-radius: 26px 26px 0 0; padding: 8px 20px calc(22px + var(--safe-b)); transform: translateY(100%); transition: transform .3s cubic-bezier(.2, .9, .3, 1); }
.sheet-wrap.open .scrim { opacity: 1; }
.sheet-wrap.open .sheet { transform: none; }
.grab { width: 40px; height: 5px; border-radius: 9px; background: #D6E2E0; margin: 0 auto 14px; }
.sheet h3 { font-size: 20px; font-weight: 750; margin: 8px 0 6px; letter-spacing: -.01em; }
.sheet-actions { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; margin-top: 20px; }
.lbl { font-size: 12.5px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; margin: 16px 0 8px; }

.scan { position: relative; width: 160px; height: 200px; margin: 10px auto 14px; border-radius: 16px; overflow: hidden; background: var(--mint-soft); display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line); }
.scan img { width: 100%; height: 100%; object-fit: cover; }
.scan .ph { color: var(--teal); font-weight: 850; font-size: 44px; }
.scan .ph .ic { width: 56px; height: 56px; stroke-width: 1.4; }
.beam { position: absolute; left: 0; right: 0; height: 3px; background: var(--mint-2); box-shadow: 0 0 18px 6px rgba(63, 203, 143, .5); animation: beam 1.2s ease-in-out infinite alternate; }
@keyframes beam { from { top: 6%; } to { top: 92%; } }

.res-head { display: flex; align-items: center; gap: 8px; color: #1E8F65; font-weight: 700; font-size: 14px; margin: 6px 0 12px; }
.res-ok { width: 22px; height: 22px; border-radius: 50%; background: var(--mint-2); color: #fff; display: grid; place-items: center; }
.res-ok .ic { width: 14px; height: 14px; stroke-width: 3; }
.thumb { float: right; width: 56px; height: 70px; object-fit: cover; border-radius: 10px; margin: 0 0 8px 12px; border: 1px solid var(--line); }
.res-main { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; clear: both; padding: 14px 16px; background: var(--bg); border-radius: 16px; margin-top: 4px; }
.res-main small { display: block; font-size: 12.5px; color: var(--muted); }
.res-main b { font-size: 19px; font-weight: 750; }
.res-amt { font-size: 26px; font-weight: 800; letter-spacing: -.02em; white-space: nowrap; }
.res-amt.inc { color: #1E8F65; }
.transcript { font-size: 15px; color: var(--teal-ink); background: var(--mint-soft); border-radius: 14px; padding: 12px 14px; margin: 8px 0 10px; }
.lines { list-style: none; padding: 0; margin: 10px 0 0; font-size: 13.5px; color: var(--muted); }
.lines li { display: flex; justify-content: space-between; padding: 5px 2px; }
.uc-lines { list-style: none; padding: 0; margin: 14px 0 0; background: var(--bg); border-radius: 16px; overflow: hidden; }
.uc-lines li { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border-bottom: 1px solid var(--line); font-weight: 650; }
.uc-lines li:last-child { border-bottom: 0; }
.uc-lines li > span:nth-child(2) { flex: 1; }
.uc-lines small { display: block; font-weight: 500; color: #1E8F65; font-size: 12.5px; }
.uc-lines li.old { opacity: .55; }
.uc-lines li.old small { color: var(--muted); }
.uc-lines li .ck { background: var(--mint-2); color: #fff; }
.how { padding-left: 20px; margin: 10px 0 14px; display: grid; gap: 10px; font-size: 15px; }
.how b { color: var(--teal); }
.sheet .note { margin-bottom: 18px; }

.voice { text-align: center; padding-bottom: 4px; }
.wave { display: flex; align-items: center; justify-content: center; gap: 4px; height: 64px; margin: 18px 0 6px; }
.wave i { width: 4px; height: 8px; border-radius: 4px; background: #C8D7D4; transition: background .2s; }
.voice.rec .wave i, .wave.thinking i { background: var(--mint-2); animation: wv .9s ease-in-out infinite; }
.wave i:nth-child(3n) { animation-delay: -.3s !important; } .wave i:nth-child(3n+1) { animation-delay: -.6s !important; } .wave i:nth-child(4n) { animation-duration: .7s !important; } .wave i:nth-child(5n) { animation-duration: 1.1s !important; }
@keyframes wv { 0%, 100% { height: 8px; } 50% { height: 52px; } }
.rec-time { font-variant-numeric: tabular-nums; font-weight: 700; font-size: 18px; margin: 0 0 14px; }
.mic-btn { width: 84px; height: 84px; border-radius: 50%; background: var(--teal); color: #fff; display: grid; place-items: center; margin: 0 auto; box-shadow: 0 10px 26px rgba(15, 76, 74, .3); }
.mic-btn .ic { width: 36px; height: 36px; }
.voice.rec .mic-btn { background: var(--red); animation: pulse 1.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(200, 70, 61, .45); } 100% { box-shadow: 0 0 0 22px rgba(200, 70, 61, 0); } }

/* toast & progress */
.toast { position: fixed; z-index: 80; left: 50%; bottom: calc(96px + var(--safe-b)); transform: translate(-50%, 20px); opacity: 0; display: flex; align-items: center; gap: 8px; background: var(--teal-ink); color: #fff; padding: 11px 16px; border-radius: 14px; font-size: 14.5px; font-weight: 600; box-shadow: 0 10px 30px rgba(0, 0, 0, .2); transition: all .25s; white-space: nowrap; }
.toast .ic { width: 18px; height: 18px; color: var(--mint); stroke-width: 2.6; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.progress { position: fixed; z-index: 90; inset: 0; background: rgba(9, 30, 29, .5); display: grid; place-items: center; opacity: 0; transition: opacity .2s; padding: 24px; }
@media (min-width: 520px) { .progress, .toast { position: absolute; } }
.progress.show { opacity: 1; }
.p-card { background: #fff; border-radius: 22px; padding: 24px 22px; width: 100%; max-width: 330px; text-align: center; }
.p-card h3 { margin: 14px 0 14px; font-size: 18px; }
.p-card ul { list-style: none; padding: 0; margin: 0; text-align: left; display: grid; gap: 10px; }
.p-card li { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--faint); transition: color .2s; }
.p-card li .ic { width: 20px; height: 20px; border-radius: 50%; padding: 3px; background: #EEF3F2; color: transparent; stroke-width: 3; transition: all .2s; }
.p-card li.doing { color: var(--ink); font-weight: 600; }
.p-card li.done { color: var(--ink); }
.p-card li.done .ic { background: var(--mint-2); color: #fff; }
.spinner { width: 40px; height: 40px; border-radius: 50%; border: 4px solid var(--mint-soft); border-top-color: var(--teal); margin: 0 auto; animation: spin .8s linear infinite; }
.spinner.sm { width: 18px; height: 18px; border-width: 2.5px; border-color: rgba(255, 255, 255, .3); border-top-color: #fff; margin: 0; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

.r-ref { padding: 14px 0 12px; border-bottom: 1px dashed #D6E2E0; }
.r-ref span { display: block; font-size: 13px; color: var(--muted); }
.r-ref b { display: block; font-size: 22px; font-weight: 700; color: var(--teal); margin-top: 4px; }
.perks { list-style: none; padding: 16px 16px; margin: 18px 0 0; background: #fff; border: 1px solid var(--line); border-radius: 16px; display: grid; gap: 10px; font-size: 14.5px; box-shadow: var(--shadow); }
.perks li { display: flex; gap: 10px; align-items: center; }
.perks .ic { width: 20px; height: 20px; padding: 3px; border-radius: 50%; background: var(--mint-soft); color: #1E8F65; stroke-width: 3; }
