/* Penny: charcoal and off-white, lime pills, pastel stacked cards. Inspired by LemFi. */
@font-face { font-family: "Shoulders"; src: url("fonts/bigshoulders-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Shoulders"; src: url("fonts/bigshoulders-900.woff2") format("woff2"); font-weight: 900; font-display: swap; }
@font-face { font-family: "Instrument"; src: url("fonts/instrument-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Instrument"; src: url("fonts/instrument-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Instrument"; src: url("fonts/instrument-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Instrument"; src: url("fonts/instrument-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("fonts/plexmono-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("fonts/plexmono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("fonts/plexmono-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --ink: #212120;
  --ink-2: #545452;
  --ink-3: #8A8A85;
  --paper: #F5F5EE;
  --surface: #FFFFFF;
  --surface-2: #EFEFE7;
  --line: #D7D7D1;
  --line-2: #E6E6DF;
  --stroke: #212120;          /* the thin dark outline LemFi puts on its cards */
  --lime: #C3F98A;
  --lime-soft: #E3FFC5;
  --lime-ink: #2F6B0C;
  --lav: #C3BAF4;
  --lav-soft: #E7E2FC;
  --violet: #8D5CFF;
  --plum: #5D198E;
  --cyan: #79F5F8;
  --coral: #FC9592;
  --peach: #F2A76C;
  --copper: #D8844B;
  --bad: #B3261E;
  --bad-soft: #FDE2E0;
  --warn-soft: #FFF1D6;
  --warn: #7A4A00;
  --receipt: #FFFEFA;
  --on-dark: #F5F5EE;
  --r-xl: 28px; --r-lg: 22px; --r-md: 14px;
  --rail: 244px;
  --display: "Shoulders", "Arial Narrow", ui-sans-serif, sans-serif;
  --text: "Instrument", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono: "Plex Mono", ui-monospace, Menlo, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #F5F5EE; --ink-2: #BDBDB5; --ink-3: #8A8A85; --paper: #1A1A19; --surface: #252524; --surface-2: #2E2E2C;
    --line: #3A3A37; --line-2: #31312F; --stroke: #4A4A46; --lime-ink: #C3F98A; --lav-soft: #34304A; --lime-soft: #2E3A22;
    --bad: #FF8A80; --bad-soft: #3D2321; --warn-soft: #3A3020; --warn: #F3C97A; --receipt: #F6F3EA;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ink: #F5F5EE; --ink-2: #BDBDB5; --ink-3: #8A8A85; --paper: #1A1A19; --surface: #252524; --surface-2: #2E2E2C;
  --line: #3A3A37; --line-2: #31312F; --stroke: #4A4A46; --lime-ink: #C3F98A; --lav-soft: #34304A; --lime-soft: #2E3A22;
  --bad: #FF8A80; --bad-soft: #3D2321; --warn-soft: #3A3020; --warn: #F3C97A; --receipt: #F6F3EA;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 15.5px/1.5 var(--text); font-feature-settings: "tnum" 1; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
h1, h2, h3 { margin: 0; letter-spacing: -0.01em; line-height: 1.1; }
h1 { font: 900 clamp(38px, 5vw, 60px)/0.92 var(--display); text-transform: uppercase; letter-spacing: 0; }
h2 { font: 700 19px/1.2 var(--text); letter-spacing: -0.015em; }
h3 { font: 700 16px/1.25 var(--text); }
p { margin: 0 0 .8em; }
.muted { color: var(--ink-2); }
.faint { color: var(--ink-3); }
.small { font-size: 13.5px; }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 2px; border-radius: 8px; }
code { font: 500 13px var(--mono); background: var(--surface-2); padding: 2px 6px; border-radius: 6px; }

/* ---------- mascot: Penny the coin */
.mascot { display: inline-block; width: 44px; height: 44px; flex: none; }
.mascot svg { width: 100%; height: 100%; display: block; overflow: visible; }
.mascot .face { transform-origin: 50% 50%; }
.mascot .ml { stroke: var(--mline, #212120); }
.rail, .hero, .dark-ui { --mline: #F5F5EE; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --mline: #F5F5EE; } }
.receipt, .drop, .why, .stack, .mobile-top, .empty, .page-head { --mline: #212120; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .mobile-top, :root:not([data-theme="light"]) .empty { --mline: #F5F5EE; } }
.mascot.bob { animation: bob 3.2s ease-in-out infinite; }
.mascot.spin svg { animation: flip 1.2s cubic-bezier(.45,.05,.55,.95) infinite; }
@keyframes bob { 50% { transform: translateY(-5px) rotate(-4deg); } }
@keyframes flip { to { transform: rotateY(360deg); } }
.mascot .eye { animation: blink 5s infinite; transform-origin: center; transform-box: fill-box; }
@keyframes blink { 0%, 94%, 100% { transform: scaleY(1); } 97% { transform: scaleY(.1); } }

/* ---------- shell */
.shell { display: grid; grid-template-columns: var(--rail) 1fr; min-height: 100vh; }
.rail { position: sticky; top: 0; height: 100vh; padding: 22px 16px; display: flex; flex-direction: column; gap: 2px;
  background: #212120; color: var(--on-dark); }
.brand { display: flex; align-items: center; gap: 8px; padding: 2px 8px 22px; text-decoration: none; color: inherit; }
.brand b { font: 900 34px/1 var(--display); letter-spacing: 0.01em; text-transform: lowercase; }
.brand .mascot { width: 36px; height: 36px; }
.nav a { display: flex; align-items: center; gap: 11px; padding: 9px 14px; border-radius: 100px; text-decoration: none;
  color: #CFCFC8; font-weight: 600; transition: background .15s, color .15s; }
.nav a svg { width: 19px; height: 19px; flex: none; }
.nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
.nav a.on { background: var(--lime); color: #212120; }
.nav a .pill { margin-left: auto; }
.nav .sep { height: 1px; background: rgba(255,255,255,.12); margin: 10px 8px; }
.rail .foot { margin-top: auto; display: grid; gap: 12px; }
.rail .foot .faint { padding: 0 12px; font-size: 12.5px; color: #8A8A85; }
main { padding: 32px clamp(18px, 4vw, 52px) 120px; max-width: 1200px; width: 100%; }
.mobile-top, .tabbar { display: none; }

.pill { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 7px;
  border-radius: 99px; background: var(--coral); color: #212120; font-size: 12px; font-weight: 800; border: 1px solid #212120; }
.nav a.on .pill { background: #212120; color: var(--lime); }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 99px; font-size: 12.5px; font-weight: 700;
  border: 1px solid #212120; color: #212120; white-space: nowrap; }
.tag.business { background: var(--lime); }
.tag.personal { background: var(--lav); }
.tag.warn { background: #FFE2B8; }
.tag.bad { background: var(--coral); }
.tag.ok { background: var(--lime-soft); }
.tag.plain { border-color: transparent; }

/* ---------- buttons (pills, like LemFi) */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 100px;
  border: 1px solid #212120; font: 700 15px/1 var(--text); cursor: pointer; text-decoration: none; background: #212120; color: #F5F5EE;
  transition: transform .14s cubic-bezier(.3,1.6,.5,1), background .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 4px 0 #212120; }
.btn:active { transform: translateY(1px); box-shadow: 0 0 0 #212120; }
.btn svg { width: 18px; height: 18px; }
.btn.lime, .btn.patina, .btn.copper { background: var(--lime); color: #212120; }
.btn.quiet { background: transparent; color: var(--ink); border-color: var(--stroke); }
.btn.ghost { background: transparent; color: var(--ink-2); border-color: transparent; height: 36px; padding: 0 12px; }
.btn.ghost:hover { color: var(--ink); background: var(--surface-2); box-shadow: none; transform: none; }
.btn.danger { background: transparent; color: var(--bad); border-color: color-mix(in srgb, var(--bad) 45%, transparent); }
.btn.danger:hover { box-shadow: none; }
.btn.sm { height: 34px; padding: 0 14px; font-size: 14px; }
.btn.block { width: 100%; }
.rail .btn.lime:hover { box-shadow: 0 4px 0 #000; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spread { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }

/* ---------- page */
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.page-head p { margin: 12px 0 0; color: var(--ink-2); max-width: 64ch; font-size: 16px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; }
.panel + .panel { margin-top: 18px; }
.grid > .panel + .panel { margin-top: 0; }
.panel h2 { margin-bottom: 14px; }
.grid { display: grid; gap: 18px; }
.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.empty { text-align: center; padding: 40px 16px; color: var(--ink-2); display: grid; justify-items: center; gap: 6px; }
.empty .mascot { width: 72px; height: 72px; margin-bottom: 8px; }
.empty h3 { color: var(--ink); font: 900 30px/1 var(--display); text-transform: uppercase; }

/* ---------- dashboard hero: dark band + wallet stack */
.hero { background: #212120; color: var(--on-dark); border-radius: var(--r-xl); padding: clamp(22px, 3.4vw, 40px);
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr); gap: 32px; align-items: center; position: relative; overflow: hidden; margin-bottom: 22px; }
.hero::after { content: ""; position: absolute; right: -80px; top: -120px; width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(circle, rgba(195, 249, 138, .16), transparent 65%); pointer-events: none; }
.hero .hello { display: flex; align-items: center; gap: 10px; color: var(--lime); font-weight: 600; font-size: 16px; margin-bottom: 18px; }
.hero .hello .mascot { width: 40px; height: 40px; }
.hero .big { font: 900 clamp(56px, 8.6vw, 112px)/0.86 var(--display); text-transform: uppercase; letter-spacing: -0.005em; margin: 0; }
.hero .big .amt { color: var(--lime); display: block; }
.hero .big .amt.neg { color: var(--coral); }
.hero .flow { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.hero .flow span { border: 1px solid rgba(245,245,238,.28); border-radius: 100px; padding: 7px 14px; font-weight: 600; font-size: 14.5px; }
.hero .flow b { font-weight: 800; }
.hero .sub { color: #BDBDB5; margin-top: 16px; font-size: 14.5px; max-width: 46ch; }

.stack { display: grid; position: relative; z-index: 1; }
.stack .card { border: 1.5px solid #212120; border-radius: 22px 22px 18px 18px; padding: 16px 20px 30px; color: #212120;
  display: flex; justify-content: space-between; align-items: baseline; gap: 10px; text-decoration: none;
  margin-top: -18px; transition: transform .25s cubic-bezier(.2,1.2,.4,1); animation: deal .7s cubic-bezier(.2,1.1,.3,1) both; }
.stack .card:first-child { margin-top: 0; }
.stack .card:hover { transform: translateY(-6px); }
.stack .card .k { font: 700 19px var(--text); letter-spacing: -0.02em; }
.stack .card .v { font: 800 20px var(--text); letter-spacing: -0.02em; white-space: nowrap; }
.stack .card .v small { display: block; text-align: right; font: 600 11.5px var(--text); opacity: .7; letter-spacing: 0; }
.stack .c1 { background: var(--lav); animation-delay: .05s; }
.stack .c2 { background: var(--peach); animation-delay: .12s; }
.stack .c3 { background: var(--cyan); animation-delay: .19s; }
.stack .c4 { background: var(--coral); animation-delay: .26s; }
.stack .front { background: var(--lime); color: #212120; border: 1.5px solid #212120; border-radius: 22px; padding: 34px 20px 20px; display: grid; gap: 14px; margin-top: -18px; animation-delay: .33s; }
.stack .front:hover { transform: none; }
.stack .front .k { font: 900 30px/0.95 var(--display); text-transform: uppercase; }
.stack .front .btn { background: #212120; color: #F5F5EE; height: 48px; }
@keyframes deal { from { transform: translateY(26px) rotate(1.5deg); opacity: 0; } }

.todo { display: grid; }
.todo a { display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; align-items: center; padding: 14px 2px; border-bottom: 1px solid var(--line-2); text-decoration: none; }
.todo a:last-child { border-bottom: 0; }
.todo .ic { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid #212120; color: #212120; background: var(--lav-soft); }
.todo .ic svg { width: 20px; height: 20px; }
.todo .ic.hot { background: var(--coral); }
.todo .ic.good { background: var(--lime); }
.todo .ic.cool { background: var(--cyan); }
.todo b { display: block; font-weight: 700; }
.todo span.muted { font-size: 14px; }
.todo a:hover b { text-decoration: underline; text-underline-offset: 3px; }
.todo .chev { color: var(--ink-3); }

.bars { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 10px; align-items: end; height: 180px; padding-top: 12px; }
.bars .m { display: grid; grid-template-rows: 1fr auto; gap: 8px; height: 100%; text-align: center; }
.bars .pair { display: flex; gap: 4px; align-items: end; justify-content: center; height: 100%; }
.bars .b { width: min(16px, 42%); border-radius: 8px 8px 3px 3px; border: 1px solid #212120; transform-origin: bottom; animation: grow .8s cubic-bezier(.2,.9,.2,1) both; min-height: 3px; }
.bars .b.in { background: var(--lime); }
.bars .b.out { background: var(--lav); }
.bars .lbl { font-size: 12px; color: var(--ink-3); font-weight: 600; }
@keyframes grow { from { transform: scaleY(0); } }
.legend { display: flex; gap: 16px; font-size: 13px; color: var(--ink-2); font-weight: 600; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 4px; margin-right: 6px; vertical-align: -1px; border: 1px solid #212120; }

.deadline { display: grid; grid-template-columns: 60px 1fr; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line-2); align-items: center; }
.deadline:last-child { border-bottom: 0; }
.deadline .when { text-align: center; border-radius: 16px; padding: 6px 0; line-height: 1.05; border: 1px solid #212120; color: #212120; background: var(--lav-soft); }
.deadline:nth-child(4n+2) .when { background: var(--cyan); }
.deadline:nth-child(4n+3) .when { background: #FFD9BE; }
.deadline:nth-child(4n+4) .when { background: var(--lime-soft); }
.deadline .when b { display: block; font: 900 26px var(--display); }
.deadline .when span { font-size: 11.5px; font-weight: 700; }
.deadline.soon .when { background: var(--coral) !important; }
.deadline .t { font-weight: 700; }
.deadline .s { font-size: 13.5px; color: var(--ink-2); }

/* ---------- receipts */
.drop { display: block; position: relative; border: 1.5px dashed var(--stroke); border-radius: var(--r-xl); padding: 36px 20px; text-align: center;
  background: var(--lime-soft); transition: background .2s, transform .2s; cursor: pointer; color: #212120; }
.drop.over { background: var(--lime); transform: scale(1.01) rotate(-.3deg); }
.drop h3 { font: 900 34px/1 var(--display); text-transform: uppercase; margin: 12px 0 8px; }
.drop .muted { color: #545452; }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop .mascot { width: 64px; height: 64px; }

.reel { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 24px 18px; margin-top: 28px; align-items: start; }
.receipt { --tooth: 9px; position: relative; display: block; text-decoration: none; color: #2A2A27; background: var(--receipt);
  font: 400 12.5px/1.45 var(--mono); padding: 16px 16px calc(16px + var(--tooth)); filter: drop-shadow(0 1px 0 #212120) drop-shadow(0 8px 12px rgba(33,33,32,.14));
  -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - var(--tooth)) no-repeat, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / calc(var(--tooth) * 2) var(--tooth) repeat-x;
          mask: linear-gradient(#000 0 0) top / 100% calc(100% - var(--tooth)) no-repeat, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / calc(var(--tooth) * 2) var(--tooth) repeat-x;
  transition: transform .22s cubic-bezier(.2,1.2,.4,1); border-radius: 6px 6px 0 0; }
a.receipt:hover { transform: translateY(-4px) rotate(-.6deg); }
.receipt.printing { animation: print 1.1s steps(14, end) both; }
@keyframes print { from { clip-path: inset(0 0 100% 0); transform: translateY(-14px); } to { clip-path: inset(0 0 0 0); transform: none; } }
.receipt .thumb { height: 120px; margin: -4px -4px 12px; background: #E9E6DD center top/cover no-repeat; border-radius: 4px; }
.receipt .who { font-weight: 600; font-size: 13.5px; text-transform: uppercase; letter-spacing: .02em; text-align: center; }
.receipt .dash { border-top: 1px dashed #B8B3A6; margin: 8px 0; }
.receipt .ln { display: flex; justify-content: space-between; gap: 10px; }
.receipt .ln.total { font-weight: 600; font-size: 14px; }
.receipt .meta { margin-top: 10px; display: flex; justify-content: space-between; align-items: center; font-family: var(--text); }
.receipt .reading { display: grid; justify-items: center; gap: 8px; padding: 14px 0 8px; color: #6E6A60; font-family: var(--text); font-weight: 600; }
.receipt .reading .mascot { width: 40px; height: 40px; }
.receipt.err .who { color: #A03A2E; }
.receipt .tag { font-size: 11.5px; }

.stamp { position: fixed; inset: 0; display: grid; place-items: center; pointer-events: none; z-index: 90; }
.stamp div { font: 900 clamp(54px, 10vw, 108px)/1 var(--display); text-transform: uppercase; color: #212120; padding: 14px 34px 10px;
  background: var(--lime); border: 3px solid #212120; border-radius: 100px; box-shadow: 0 8px 0 #212120; transform: rotate(-7deg);
  animation: slam .8s cubic-bezier(.2,1.6,.4,1) both, fadeaway .45s 1.1s ease-in forwards; }
@keyframes slam { 0% { transform: rotate(-7deg) scale(2.2); opacity: 0; } 60% { opacity: 1; } 100% { transform: rotate(-7deg) scale(1); } }
@keyframes fadeaway { to { opacity: 0; transform: rotate(-7deg) translateY(-20px) scale(.96); } }

/* ---------- review */
.review { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 24px; align-items: start; }
.viewer { position: sticky; top: 24px; background: #212120; border-radius: var(--r-xl); overflow: hidden; min-height: 360px; display: grid; place-items: center; padding: 14px; }
.viewer img { max-width: 100%; max-height: 80vh; display: block; cursor: zoom-in; transition: transform .25s; border-radius: 10px; }
.viewer img.zoom { transform: scale(1.9); cursor: zoom-out; }
.viewer iframe { width: 100%; height: 78vh; border: 0; background: #fff; border-radius: 12px; }
.why { font-size: 14px; color: #212120; background: var(--lav-soft); border-radius: 16px; padding: 10px 14px; margin-bottom: 14px; display: flex; gap: 10px; align-items: center; }
:root[data-theme="dark"] .why { color: var(--ink); }
.why .mascot { width: 28px; height: 28px; }

/* ---------- forms */
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field > label, .lab { font-weight: 700; font-size: 14px; }
.field .help { font-size: 13px; color: var(--ink-2); }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.taxes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
input[type=text], input[type=number], input[type=date], input[type=password], input[type=email], input[type=search], input:not([type]), select, textarea {
  width: 100%; height: 46px; padding: 0 14px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface);
  color: var(--ink); font: 500 15.5px var(--text); transition: border-color .15s, box-shadow .15s; }
textarea { height: auto; min-height: 78px; padding: 10px 14px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 4px color-mix(in srgb, var(--violet) 22%, transparent); }
input.money { font: 700 17px var(--text); letter-spacing: -0.01em; text-align: right; }
input.big { height: 64px; font: 900 38px var(--display); border-radius: 18px; }
.seg { display: inline-grid; grid-auto-flow: column; background: var(--surface-2); border-radius: 100px; padding: 4px; gap: 4px; border: 1px solid var(--line); }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { padding: 8px 18px; border-radius: 100px; cursor: pointer; font-weight: 700; color: var(--ink-2); font-size: 14.5px; transition: background .15s, color .15s; text-align: center; }
.seg input:checked + label { background: #212120; color: #F5F5EE; }
.seg input:focus-visible + label { outline: 3px solid var(--violet); }
.seg.entity input[value=business]:checked + label { background: var(--lime); color: #212120; box-shadow: inset 0 0 0 1px #212120; }
.seg.entity input[value=personal]:checked + label { background: var(--lav); color: #212120; box-shadow: inset 0 0 0 1px #212120; }
.seg.wrap { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); border-radius: 22px; }
.seg.wrap label { border-radius: 18px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.check input { width: 20px; height: 20px; margin-top: 1px; accent-color: #212120; }
.error { background: var(--bad-soft); color: var(--bad); padding: 12px 16px; border-radius: 16px; font-weight: 700; }
.note { background: var(--warn-soft); color: var(--warn); padding: 12px 16px; border-radius: 16px; font-size: 14.5px; }
.note.info { background: var(--lime-soft); color: var(--lime-ink); }
.sum-line { display: flex; justify-content: space-between; font-size: 13.5px; color: var(--ink-2); padding: 0 2px; }
.sum-line.bad { color: var(--bad); font-weight: 700; }
details.more summary { cursor: pointer; font-weight: 700; color: var(--ink-2); padding: 4px 0; list-style: none; }
details.more summary::-webkit-details-marker { display: none; }
details.more summary::before { content: "+ "; }
details.more[open] summary::before { content: "− "; }
details.more > div { padding-top: 12px; display: grid; gap: 14px; }
.hide { display: none !important; }

/* ---------- tables */
.ledger { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.ledger th { text-align: left; font-weight: 700; color: var(--ink-2); font-size: 13px; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.ledger td { padding: 12px 10px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.ledger tr:last-child td { border-bottom: 0; }
.ledger .r { text-align: right; }
.ledger tr.click { cursor: pointer; }
.ledger tr.click td { transition: background .12s; }
.ledger tr.click:hover td { background: var(--surface-2); }
.ledger tr.click:hover td:first-child { border-radius: 12px 0 0 12px; }
.ledger tr.click:hover td:last-child { border-radius: 0 12px 12px 0; }
.ledger tr.total td { font-weight: 800; border-top: 2px solid var(--ink); border-bottom: 0; }
.ledger tr.sub td { font-weight: 700; background: var(--surface-2); }
.ledger tr.head td { font: 700 15px var(--text); padding-top: 20px; border-bottom: 1px solid var(--line); }
.ledger .gifi { color: var(--ink-3); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.ledger .amt-in { color: var(--lime-ink); font-weight: 700; }
.scroll-x { overflow-x: auto; }
.date-cell { color: var(--ink-2); white-space: nowrap; font-size: 14px; }

.tabs { display: flex; gap: 6px; margin-bottom: 22px; overflow-x: auto; padding-bottom: 2px; }
.tabs a { padding: 9px 16px; text-decoration: none; color: var(--ink-2); font-weight: 700; border-radius: 100px; border: 1px solid var(--line); white-space: nowrap; background: var(--surface); }
.tabs a.on { color: #212120; background: var(--lime); border-color: #212120; }

.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; }
.filters input[type=search] { max-width: 280px; border-radius: 100px; }
.filters select { width: auto; border-radius: 100px; }

.check-list { display: grid; }
.check-list a { display: grid; grid-template-columns: 32px 1fr; gap: 12px; padding: 14px 2px; border-bottom: 1px solid var(--line-2); text-decoration: none; align-items: center; }
.check-list .dot { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--stroke); color: transparent; }
.check-list .ok .dot { background: var(--lime); border-color: #212120; color: #212120; }
.check-list .dot svg { width: 16px; height: 16px; }
.check-list b { display: block; }

.toasts { position: fixed; top: 18px; right: 18px; z-index: 80; display: grid; gap: 8px; }
.toast { background: #212120; color: #F5F5EE; padding: 12px 18px; border-radius: 100px; max-width: 420px; font-weight: 600; box-shadow: 0 6px 0 var(--lime);
  animation: toastIn .45s cubic-bezier(.2,1.2,.4,1) both, toastOut .4s 4.6s ease-in forwards; }
@keyframes toastIn { from { transform: translateY(-12px) scale(.96); opacity: 0; } }
@keyframes toastOut { to { transform: translateY(-8px); opacity: 0; } }

.qr { display: grid; grid-template-columns: 176px 1fr; gap: 20px; align-items: center; }
.qr svg { width: 176px; height: 176px; background: #fff; border-radius: 20px; padding: 8px; border: 1.5px solid #212120; }
.pin { font: 900 46px/1 var(--display); letter-spacing: .14em; color: var(--ink); }
.steps { counter-reset: s; display: grid; gap: 14px; padding: 0; margin: 0; list-style: none; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 32px 1fr; gap: 12px; }
.steps li::before { content: counter(s); width: 30px; height: 30px; border-radius: 50%; background: var(--lime); color: #212120; border: 1px solid #212120; display: grid; place-items: center; font: 900 17px var(--display); }

/* ---------- responsive */
@media (max-width: 1080px) { .hero { grid-template-columns: 1fr; } }
@media (max-width: 980px) {
  .split, .review, .cols-2, .cols-3 { grid-template-columns: 1fr; }
  .viewer { position: relative; top: 0; min-height: 0; }
  .viewer img { max-height: 46vh; }
}
@media (max-width: 760px) {
  .shell { display: block; }
  .rail { display: none; }
  main { padding: 12px 14px 120px; }
  .mobile-top { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 4px; }
  .mobile-top .brand { padding: 0; }
  .hero { border-radius: 24px; padding: 22px 18px; gap: 26px; }
  .hero .hello .mascot { display: none; }
  .stack .card { padding: 14px 16px 28px; }
  .stack .card .k, .stack .card .v { font-size: 17px; }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 50;
    background: #212120; border-radius: 100px; padding: 6px; box-shadow: 0 10px 30px -10px rgba(0,0,0,.5); }
  .tabbar a { display: grid; justify-items: center; gap: 1px; font-size: 10.5px; font-weight: 700; color: #A9A9A3; text-decoration: none; padding: 6px 0; position: relative; border-radius: 100px; }
  .tabbar a svg { width: 22px; height: 22px; }
  .tabbar a.on { color: var(--lime); }
  .tabbar .snapbtn { place-items: center; }
  .tabbar .snapbtn span.c { width: 54px; height: 54px; margin-top: -22px; border-radius: 50%; display: grid; place-items: center; color: #212120; background: var(--lime); border: 2px solid #212120; box-shadow: 0 0 0 4px var(--paper); }
  .tabbar .snapbtn svg { width: 25px; height: 25px; }
  .tabbar .pill { position: absolute; top: 0; left: 56%; transform: scale(.8); }
  .ledger .hide-sm { display: none; }
  .page-head { margin-bottom: 18px; }
  .qr { grid-template-columns: 1fr; justify-items: start; }
  .toasts { left: 12px; right: 12px; top: 12px; }
  .seg label { padding: 8px 12px; }
  .reel { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
  .taxes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .panel { padding: 18px; border-radius: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
@media print {
  .rail, .tabbar, .mobile-top, .toasts, .no-print { display: none !important; }
  body { background: #fff; }
  main { padding: 0; }
  .panel { border: 0; padding: 0; }
}

/* ---------- business switcher (rail) ---------- */
.bizpick { border: 1px solid #3A3A38; border-radius: var(--r-md); background: #2A2A29; }
.bizpick summary { list-style: none; cursor: pointer; padding: 10px 12px; display: grid; gap: 2px; position: relative; }
.bizpick summary::-webkit-details-marker { display: none; }
.bizpick summary::after { content: ""; position: absolute; right: 14px; top: 50%; width: 7px; height: 7px; border-right: 2px solid #8A8A85; border-bottom: 2px solid #8A8A85; transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.bizpick[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.bz-name { font-weight: 700; color: var(--on-dark); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 18px; }
.bz-sub { font-size: 12px; color: #8A8A85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bz-menu { display: grid; padding: 4px 6px 8px; border-top: 1px solid #3A3A38; animation: bzin .18s ease-out; }
.bz-menu form { margin: 0; }
.bz-menu button, .bz-menu a { display: block; width: 100%; text-align: left; background: none; border: 0; color: #D7D7D1; font: 500 13.5px var(--body, inherit); padding: 8px 8px; border-radius: 10px; text-decoration: none; cursor: pointer; }
.bz-menu button:hover, .bz-menu a:hover { background: #353533; color: var(--on-dark); }
.bz-menu button.on { color: var(--lime); }
.bz-menu button.on::before { content: "● "; font-size: 9px; vertical-align: 2px; }
@keyframes bzin { from { opacity: 0; transform: translateY(-4px); } }

/* ---------- sign up, log in, setup, legal ---------- */
.auth-body { background: var(--ink); color: var(--on-dark); --mline: #F5F5EE; min-height: 100svh; }
.auth { max-width: 1080px; margin: 0 auto; padding: clamp(28px, 8vh, 90px) 22px 24px; display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 6vw, 80px); align-items: start; }
.auth-pitch .brand { padding: 0 0 30px; }
.auth-pitch .brand b { color: var(--on-dark); }
.auth-h { font: 900 clamp(46px, 6.4vw, 84px)/.92 var(--display); text-transform: uppercase; letter-spacing: .005em; margin: 0; }
.auth-h span { display: block; color: var(--lime); }
.auth-pitch > p { color: #BDBDB5; font-size: 17px; line-height: 1.55; max-width: 34em; margin-top: 18px; }
.auth-points { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.auth-points li { display: flex; gap: 10px; align-items: center; color: #E6E6DF; }
.auth-points svg { width: 20px; height: 20px; color: var(--ink); background: var(--lime); border-radius: 50%; padding: 3px; flex: none; }
.auth-card { background: var(--paper); color: var(--ink); border-radius: var(--r-xl); padding: clamp(22px, 3vw, 34px); box-shadow: 10px 10px 0 var(--lav); border: 1.5px solid var(--stroke); animation: cardin .5s cubic-bezier(.2,.9,.3,1.2) both; --mline: #212120; }
.auth-card .form { gap: 16px; }
.auth-card a { color: var(--plum); }
@keyframes cardin { from { opacity: 0; transform: translateY(18px) rotate(1.5deg); } }
.auth-foot { text-align: center; color: #8A8A85; font-size: 12.5px; padding: 10px 22px 30px; }
.auth-foot a { color: #BDBDB5; }
.legal { max-height: 70vh; overflow: auto; padding-right: 6px; }
.legal h3 { font-size: 15px; margin: 18px 0 4px; }
.legal h3:first-child { margin-top: 0; }
.legal p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--ink-2); }
[hidden] { display: none !important; }
@media (max-width: 820px) {
  .auth { grid-template-columns: 1fr; padding-top: 24px; }
  .auth-pitch .brand { padding-bottom: 18px; }
  .auth-pitch > p { font-size: 15.5px; }
  .auth-points { display: none; }
  .auth-card { box-shadow: 6px 6px 0 var(--lav); }
  .legal { max-height: none; }
}
.bz-menu { max-height: 44vh; overflow: auto; }

/* ---------- legal pages ---------- */
.legal-head { max-width: 860px; margin: 0 auto; padding: 28px 22px 0; }
.legal-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.legal-top .brand { padding: 0; } .legal-top .brand b { color: var(--on-dark); }
.legal-lang { display: flex; background: #2E2E2C; border-radius: 100px; padding: 4px; }
.legal-lang a { color: #BDBDB5; text-decoration: none; font-weight: 600; font-size: 13.5px; padding: 6px 14px; border-radius: 100px; }
.legal-lang a.on { background: var(--paper); color: var(--ink); }
.legal-head .auth-h { margin-top: 34px; font-size: clamp(42px, 6vw, 72px); }
.legal-head > p { color: #BDBDB5; margin: 12px 0 0; }
.legal-tabs { display: flex; gap: 8px; margin-top: 22px; flex-wrap: wrap; }
.legal-tabs a { color: var(--on-dark); text-decoration: none; border: 1.5px solid #4A4A47; padding: 8px 16px; border-radius: 100px; font-weight: 600; font-size: 14px; }
.legal-tabs a.on { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.legal-page { max-width: 860px; margin: 0 auto; padding: 22px 22px 20px; }
.legal-doc { background: var(--paper); color: var(--ink); border: 1.5px solid var(--stroke); border-radius: var(--r-xl); padding: clamp(22px, 4vw, 48px); box-shadow: 10px 10px 0 var(--lav); }
.legal-doc .lead { font-size: 17px; line-height: 1.6; margin: 0 0 8px; }
.legal-doc h3 { font-size: 18px; margin: 30px 0 8px; scroll-margin-top: 20px; }
.legal-doc p, .legal-doc li { font-size: 15px; line-height: 1.65; color: #3A3A38; }
.legal-doc p { margin: 0 0 10px; }
.legal-doc ul { margin: 0 0 10px; padding-left: 20px; display: grid; gap: 6px; }
.legal-doc a { color: var(--plum); }
.legal-doc .callout { background: var(--lime-soft); border: 1.5px solid var(--stroke); border-radius: var(--r-md); padding: 14px 16px; margin: 16px 0 4px; font-size: 15px; line-height: 1.55; }
.legal-t { width: 100%; border-collapse: collapse; margin: 6px 0 14px; font-size: 14px; }
.legal-t th, .legal-t td { text-align: left; padding: 9px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal-t th { font-size: 12.5px; color: var(--ink-2); }
@media (max-width: 600px) { .legal-t { font-size: 13px; } .legal-doc { box-shadow: 6px 6px 0 var(--lav); } }
.codes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 14px; }
.codes code { font-size: 15px; padding: 8px 10px; text-align: center; }
a.help { color: var(--plum); font-size: 13px; }
.verify-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
