:root {
  --v-void: #060a12;
  --v-navy: #0b1426;
  --v-graphite: #111c30;
  --v-raised: #17243b;
  --v-line: #263550;
  --v-line-soft: #1b2940;
  --v-frost: #edf3ff;
  --v-muted: #9ba9bf;
  --v-subtle: #65748d;
  --v-electric: #6677ff;
  --v-cyan: #35d7e7;
  --v-violet: #9b87ff;
  --v-amber: #f2b84b;
  --v-danger: #ff7a70;
  --v-success: #4fd1a5;
  --v-radius: 9px;
  --v-shadow: 0 24px 70px rgba(0, 0, 0, .28);
}

html { color-scheme: dark; scroll-behavior: smooth; }
body { background: var(--v-void); color: var(--v-frost); font-family: 'IBM Plex Sans', sans-serif; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }
:where(button, a, input, select, textarea, summary):focus-visible { outline: 2px solid var(--v-cyan) !important; outline-offset: 3px; }

.v3-shell { min-height: 100vh; background: var(--v-void); }
.v3-sidebar { width: 236px; padding: 25px 14px 18px; background: #080e19; border-right: 1px solid var(--v-line-soft); }
.v3-sidebar .brand { padding: 0 12px 30px; color: var(--v-frost); font: 600 20px/1 'Sora', sans-serif; }
.v3-sidebar .brand-mark, .auth-shell .brand-mark { width: 34px; height: 34px; color: white; background: var(--v-electric); border-radius: 8px 8px 8px 2px; box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 8px 24px rgba(102,119,255,.25); font: 700 19px/1 'Sora', sans-serif; transform: none; }
.v3-sidebar .side-nav { gap: 2px; }
.v3-sidebar .nav-item { min-height: 42px; padding: 0 12px; color: #7f8da5; border-radius: 6px; font-size: 12px; font-weight: 500; }
.v3-sidebar .nav-item:hover { color: var(--v-frost); background: #101a2b; }
.v3-sidebar .nav-item.active { color: white; background: var(--v-graphite); }
.v3-sidebar .nav-item.active::before { left: -14px; width: 2px; height: 22px; border-radius: 0; background: var(--v-cyan); box-shadow: 0 0 10px rgba(53,215,231,.5); }
.v3-sidebar .nav-item .icon { width: 17px; height: 17px; }
.v3-sidebar .nav-item kbd { margin-left: auto; padding: 2px 5px; color: #52617a; background: #070c15; border: 1px solid #1c2940; border-radius: 3px; font: 500 8px 'IBM Plex Mono', monospace; }
.v3-sidebar .sidebar-bottom { gap: 6px; }
.v3-sidebar .profile { margin-top: 8px; padding: 15px 7px 0; border-color: var(--v-line-soft); }
.v3-sidebar .profile > span:nth-child(2) { min-width: 0; flex: 1; }
.v3-sidebar .profile strong, .v3-sidebar .profile small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v3-sidebar .profile strong { color: #dce5f5; font-size: 11px; }
.v3-sidebar .profile small { color: var(--v-subtle); font: 400 8px 'IBM Plex Mono', monospace; }
.v3-sidebar .avatar { width: 31px; height: 31px; display: grid; place-items: center; color: var(--v-cyan); background: #0e1d2c; border: 1px solid #203a4a; border-radius: 6px; font: 600 9px 'IBM Plex Mono', monospace; }

.sync-chip { min-height: 29px; margin: 4px 7px 7px; padding: 0 8px; display: flex; align-items: center; gap: 7px; color: var(--v-subtle); background: #070d17; border: 1px solid var(--v-line-soft); border-radius: 5px; font: 500 8px 'IBM Plex Mono', monospace; }
.sync-chip i { width: 5px; height: 5px; border-radius: 50%; background: var(--v-subtle); }
.sync-chip.synced i { background: var(--v-success); box-shadow: 0 0 8px var(--v-success); }
.sync-chip.syncing i { background: var(--v-cyan); animation: sync-pulse 1s infinite; }
.sync-chip.offline i, .sync-chip.upgrade i { background: var(--v-amber); }
.sync-chip.error i, .sync-chip.conflict i { background: var(--v-danger); }

.v3-main { max-width: 1700px; margin-left: 236px; padding: 34px clamp(24px, 4vw, 62px) 80px; }
.v3-header { margin-bottom: 29px; align-items: center; }
.v3-header h1 { margin-top: 7px; color: var(--v-frost); font: 550 clamp(2rem, 3.4vw, 3.7rem)/.95 'Sora', sans-serif; letter-spacing: -.055em; }
.eyebrow { color: var(--v-subtle); font: 500 9px/1.3 'IBM Plex Mono', monospace; letter-spacing: .13em; }
.button { min-height: 42px; padding: 0 15px; border-radius: 6px; font-size: 11px; font-weight: 600; transition: transform .16s ease, border-color .16s ease, background .16s ease, color .16s ease; }
.button:hover { transform: translateY(-1px); }
.button.primary { color: white; background: var(--v-electric); border: 1px solid #7181ff; box-shadow: 0 9px 24px rgba(102,119,255,.18); }
.button.secondary { color: #dce7fa; background: #14223a; border: 1px solid #2e4162; }
.button.ghost { color: var(--v-muted); background: transparent; border: 1px solid var(--v-line); }
.button.light { color: #07101e; background: var(--v-frost); border: 1px solid white; }
.button.danger { color: var(--v-danger); background: transparent; border: 1px solid rgba(255,122,112,.38); }
.button.danger:hover { color: white; background: var(--v-danger); }
.light-border { color: white !important; border-color: rgba(255,255,255,.25) !important; }
.icon-button { width: 42px; height: 42px; color: var(--v-muted); background: #0c1524; border: 1px solid var(--v-line); border-radius: 6px; }
.icon-button:hover { color: white; background: var(--v-raised); border-color: #3a4b69; }
.alert-button { position: relative; }
.alert-button b { position: absolute; right: -5px; top: -5px; min-width: 17px; height: 17px; padding: 0 4px; display: grid; place-items: center; color: #101010; background: var(--v-amber); border: 2px solid var(--v-void); border-radius: 9px; font: 700 8px 'IBM Plex Mono', monospace; }

.panel { color: var(--v-frost); background: var(--v-navy); border: 1px solid var(--v-line-soft); border-radius: var(--v-radius); box-shadow: none; }
.section-heading { margin-bottom: 18px; }
.section-heading h2 { color: var(--v-frost); font: 550 18px/1.15 'Sora', sans-serif; }
.text-button { color: var(--v-cyan); background: transparent; }
.quiet-empty { padding: 42px 12px; color: var(--v-subtle); font-size: 11px; text-align: center; }

.first-run { min-height: 520px; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(330px, .65fr); color: white; background: var(--v-navy); border: 1px solid var(--v-line); border-radius: 10px; overflow: hidden; }
.first-run > div { padding: clamp(38px, 7vw, 90px); background: radial-gradient(circle at 12% 20%, rgba(102,119,255,.12), transparent 36%), #0b1426; }
.first-run h2 { max-width: 720px; margin: 18px 0; font: 550 clamp(2.5rem, 5vw, 5.6rem)/.98 'Sora', sans-serif; letter-spacing: -.065em; }
.first-run p { max-width: 620px; margin: 0 0 28px; color: var(--v-muted); line-height: 1.7; }
.first-run ol { margin: 0; padding: 36px; display: grid; align-content: center; gap: 0; background: #080f1b; list-style: none; }
.first-run li { min-height: 110px; padding: 24px 0; display: grid; grid-template-columns: 44px 1fr; gap: 15px; border-bottom: 1px solid var(--v-line-soft); }
.first-run li:last-child { border-bottom: 0; }
.first-run li > b { color: var(--v-cyan); font: 500 10px 'IBM Plex Mono', monospace; }
.first-run li strong, .first-run li small { display: block; }
.first-run li strong { font: 500 15px 'Sora', sans-serif; }
.first-run li small { margin-top: 8px; color: var(--v-subtle); line-height: 1.5; }

.v3-overview-hero { grid-template-columns: minmax(370px, .72fr) minmax(0, 1.28fr); gap: 12px; }
.v3-free { min-height: 294px; padding: 27px; display: flex; flex-direction: column; text-align: left; color: var(--v-frost); background: var(--v-navy); border: 1px solid var(--v-line-soft); border-radius: var(--v-radius); }
.v3-free:hover { border-color: #344563; }
.v3-free > strong { max-width: 100%; margin-top: auto; font: 500 clamp(2.3rem, 3.25vw, 4.1rem)/.93 'IBM Plex Mono', monospace; letter-spacing: -.075em; white-space: nowrap; }
.v3-free > strong.money-medium { font-size: clamp(1.9rem, 2.65vw, 3rem); letter-spacing: -.065em; }
.v3-free > strong.money-long { font-size: clamp(1.5rem, 1.95vw, 2rem); letter-spacing: -.055em; }
.v3-free > p { margin: 11px 0 22px; color: var(--v-muted); }
.v3-free > small { padding-top: 17px; color: var(--v-cyan); border-top: 1px solid var(--v-line-soft); font-size: 10px; }
.v3-ruler { min-height: 294px; padding: 27px 29px; background: #101d36; border: 1px solid #263b60; border-radius: var(--v-radius); box-shadow: inset 3px 0 0 var(--v-electric), 0 18px 55px rgba(0,0,0,.2); overflow: visible; }
.v3-ruler::after { content: none; }
.v3-ruler .ruler-heading { display: flex; justify-content: space-between; gap: 20px; }
.v3-ruler .ruler-heading h2 { margin: 6px 0 0; font: 500 20px 'Sora', sans-serif; }
.v3-ruler .ruler-heading > strong { text-align: right; font: 500 17px 'IBM Plex Mono', monospace; }
.v3-ruler .ruler-heading small { margin-top: 5px; display: block; color: var(--v-subtle); font: 500 8px 'IBM Plex Mono', monospace; text-transform: uppercase; }
.breath-timeline { position: relative; height: 108px; margin: 34px 12px 0; }
.timeline-line { position: absolute; left: 0; right: 0; top: 13px; height: 1px; background: #405274; }
.timeline-point { --position: 0%; --lane: 0; position: absolute; left: var(--position); top: calc(5px + var(--lane) * 43px); max-width: 118px; display: grid; gap: 4px; color: var(--v-muted); background: transparent; text-align: left; transform: translateX(-50%); white-space: nowrap; }
.timeline-point.today { transform: none; }
.timeline-point i { width: 17px; height: 17px; margin-left: calc(50% - 8px); display: block; background: #101d36; border: 4px solid var(--v-electric); border-radius: 50%; }
.timeline-point.today i { margin-left: 0; background: var(--v-cyan); border-color: var(--v-cyan); box-shadow: 0 0 12px rgba(53,215,231,.5); }
.timeline-point.income i { border-radius: 3px; border-color: var(--v-success); transform: rotate(45deg); }
.timeline-point b { margin-top: 6px; max-width: 115px; overflow: hidden; color: #dce5f5; font-size: 10px; text-overflow: ellipsis; }
.timeline-point small { color: var(--v-subtle); font: 500 8px 'IBM Plex Mono', monospace; }
.v3-ruler > p { margin: 0; padding-top: 14px; color: var(--v-subtle); border-top: 1px solid #263652; font-size: 10px; }

.metric-grid { margin: 12px 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.metric-grid.compact { margin-top: 0; }
.metric-card { min-height: 133px; padding: 19px 21px; display: flex; flex-direction: column; color: var(--v-frost); background: var(--v-navy); border: 1px solid var(--v-line-soft); border-radius: var(--v-radius); text-align: left; }
.metric-card:hover { border-color: #354664; background: #0d182b; }
.metric-card > span, .metric-card > small { color: var(--v-muted); font-size: 10px; }
.metric-card > strong { margin: 13px 0 8px; font: 500 22px 'IBM Plex Mono', monospace; letter-spacing: -.04em; }
.metric-card > em { margin-top: auto; color: var(--v-subtle); font-size: 8px; font-style: normal; text-transform: uppercase; letter-spacing: .06em; }
.metric-card > em .icon { width: 12px; vertical-align: middle; }
.metric-card.positive > strong { color: var(--v-success); }
.metric-card.negative > strong { color: var(--v-danger); }
.content-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, .78fr); gap: 12px; }

.v3-row { width: 100%; min-height: 65px; color: var(--v-frost); border-color: var(--v-line-soft); }
.v3-row:hover { background: rgba(255,255,255,.018); }
.v3-row.reversed { opacity: .52; }
.v3-row.reversed .transaction-copy strong { text-decoration: line-through; }
.v3-row .transaction-icon { width: 37px; height: 37px; border: 1px solid currentColor; border-radius: 6px; font: 600 14px 'IBM Plex Mono', monospace; background: transparent; }
.v3-row .transaction-icon.income, .v3-row .transaction-meta strong.income { color: var(--v-success); }
.v3-row .transaction-icon.expense, .v3-row .transaction-meta strong.expense { color: var(--v-danger); }
.v3-row .transaction-icon.investment, .v3-row .transaction-meta strong.investment { color: var(--v-violet); }
.v3-row .transaction-icon.donation, .v3-row .transaction-meta strong.donation { color: var(--v-amber); }
.v3-row .transaction-copy strong { color: #dce5f5; font-size: 12px; font-weight: 500; }
.v3-row .transaction-copy small, .v3-row .transaction-meta small { color: var(--v-subtle); font-size: 9px; }
.v3-row .transaction-meta strong { color: #dce5f5; font: 500 11px 'IBM Plex Mono', monospace; }
.upcoming-row { width: 100%; min-height: 60px; display: grid; grid-template-columns: 52px minmax(0,1fr) auto; align-items: center; gap: 10px; color: var(--v-frost); background: transparent; border-bottom: 1px solid var(--v-line-soft); text-align: left; }
.upcoming-row time { color: var(--v-cyan); font: 500 9px 'IBM Plex Mono', monospace; }
.upcoming-row strong, .upcoming-row small { display: block; }
.upcoming-row strong { font-size: 11px; }
.upcoming-row small { margin-top: 4px; color: var(--v-subtle); font-size: 8px; }
.upcoming-row > b { font: 500 10px 'IBM Plex Mono', monospace; }

.filter-console { padding: 13px; margin-bottom: 10px; display: grid; grid-template-columns: minmax(220px, 1.6fr) repeat(4, minmax(130px, .55fr)) auto; gap: 8px; align-items: end; background: #09111f; border: 1px solid var(--v-line-soft); border-radius: 8px; }
.filter-console > label { display: grid; gap: 6px; color: var(--v-subtle); font-size: 8px; text-transform: uppercase; letter-spacing: .08em; }
.filter-console input, .filter-console select, .report-toolbar input { width: 100%; height: 40px; padding: 0 10px; color: #dbe5f6; background: #0e192b; border: 1px solid var(--v-line); border-radius: 5px; font-size: 10px; }
.filter-console .search-field { max-width: none; height: 40px; display: flex; align-items: center; gap: 9px; background: #0e192b; border-color: var(--v-line); border-radius: 5px; }
.filter-console .search-field input { height: auto; padding: 0; border: 0; }
.filter-actions { display: flex; gap: 6px; }
.saved-views { margin: 0 0 10px; display: flex; align-items: center; gap: 6px; overflow-x: auto; }
.saved-views > span { color: var(--v-subtle); font: 500 8px 'IBM Plex Mono', monospace; text-transform: uppercase; }
.saved-views button { padding: 6px 9px; color: var(--v-muted); background: #0b1525; border: 1px solid var(--v-line-soft); border-radius: 4px; font-size: 9px; white-space: nowrap; }

.command-bar, .account-hero, .invoice-hero, .planning-strip { position: relative; min-height: 185px; padding: 31px 34px; margin-bottom: 12px; display: flex; align-items: flex-end; justify-content: space-between; gap: 26px; color: white; background: #101d35; border: 1px solid #263a5e; border-radius: var(--v-radius); overflow: hidden; }
.command-bar::after, .account-hero::after, .invoice-hero::after { content: ''; position: absolute; right: -90px; top: -180px; width: 300px; height: 300px; border: 42px solid rgba(102,119,255,.08); border-radius: 50%; pointer-events: none; }
.command-bar > *, .account-hero > *, .invoice-hero > * { position: relative; z-index: 1; }
.command-bar > div:first-child > strong, .account-hero > div:first-child > strong, .invoice-hero > div:first-child > strong { margin: 13px 0 8px; display: block; font: 500 clamp(2.1rem, 4vw, 4.1rem)/1 'IBM Plex Mono', monospace; letter-spacing: -.06em; }
.command-bar p, .account-hero p, .invoice-hero p { margin: 0; color: var(--v-muted); font-size: 11px; }
.command-bar > div:last-child, .account-hero > div:last-child, .invoice-hero > div:last-child { display: flex; gap: 8px; }
.entity-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.entity-card { min-height: 270px; padding: 23px; display: flex; flex-direction: column; color: var(--v-frost); background: var(--v-navy); border: 1px solid var(--v-line-soft); border-radius: var(--v-radius); text-align: left; }
.entity-card:hover { border-color: #394b69; transform: translateY(-2px); }
.entity-symbol { width: 41px; height: 41px; margin-bottom: 36px; display: grid; place-items: center; color: var(--v-cyan); background: #0e1c30; border: 1px solid #213a57; border-radius: 6px; }
.entity-symbol .icon { width: 18px; }
.entity-card h2 { margin: 8px 0 13px; font: 500 17px 'Sora', sans-serif; }
.entity-card > strong { font: 500 20px 'IBM Plex Mono', monospace; }
.entity-card > small { margin: 7px 0 auto; color: var(--v-subtle); font-size: 9px; }
.entity-card > em { padding-top: 14px; color: var(--v-cyan); border-top: 1px solid var(--v-line-soft); font-size: 9px; font-style: normal; }
.back-link { margin: -10px 0 15px; color: var(--v-cyan); background: transparent; font-size: 10px; }
.ledger-table { min-width: 800px; }
.ledger-head, .ledger-row { display: grid; grid-template-columns: 80px minmax(170px,1.4fr) repeat(3, minmax(120px,.7fr)); align-items: center; gap: 12px; }
.ledger-head { min-height: 36px; color: var(--v-subtle); border-bottom: 1px solid var(--v-line); font: 500 8px 'IBM Plex Mono', monospace; text-transform: uppercase; }
.ledger-row { min-height: 58px; color: var(--v-muted); border-bottom: 1px solid var(--v-line-soft); font-size: 10px; }
.ledger-row time, .ledger-row b { font: 500 9px 'IBM Plex Mono', monospace; }
.ledger-row strong, .ledger-row small { display: block; }
.ledger-row strong { color: #dce4f2; font-size: 11px; }
.ledger-row small { margin-top: 4px; color: var(--v-subtle); font-size: 8px; }
.ledger-row .positive { color: var(--v-success); }
.ledger-row .negative { color: var(--v-danger); }

.cards-grid { grid-template-columns: repeat(3, 1fr); }
.credit-tile { min-height: 310px; padding: 23px; display: flex; flex-direction: column; color: white; background: linear-gradient(145deg, #142546, #0e192b 68%); border: 1px solid #2a4167; border-radius: var(--v-radius); text-align: left; box-shadow: 0 20px 45px rgba(0,0,0,.18); }
.credit-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 48px; }
.credit-top > b { color: var(--v-muted); font: 600 9px 'IBM Plex Mono', monospace; text-transform: uppercase; }
.status { padding: 5px 7px; border: 1px solid currentColor; border-radius: 4px; font: 600 7px 'IBM Plex Mono', monospace; text-transform: uppercase; font-style: normal; }
.status.open { color: var(--v-cyan); }.status.closed { color: var(--v-violet); }.status.overdue { color: var(--v-danger); }.status.paid { color: var(--v-success); }
.credit-tile h2 { margin: 8px 0 18px; font: 500 19px 'Sora', sans-serif; }
.credit-tile > strong { font: 500 25px 'IBM Plex Mono', monospace; }
.credit-tile > small { margin: 8px 0 auto; color: var(--v-subtle); font-size: 9px; }
.credit-tile > em { padding-top: 15px; color: var(--v-cyan); border-top: 1px solid #283a58; font-size: 9px; font-style: normal; }
.invoice-audit { margin-bottom: 12px; padding: 14px 17px; display: grid; grid-template-columns: 34px 1fr; align-items: center; gap: 12px; color: var(--v-muted); background: #0b1828; border: 1px solid #203851; border-left: 2px solid var(--v-cyan); }
.invoice-audit > span { color: var(--v-cyan); }.invoice-audit strong { color: #dce5f4; font-size: 11px; }.invoice-audit p { margin: 4px 0 0; font-size: 9px; }
.invoice-row { width: 100%; min-height: 58px; padding: 0 4px; display: flex; align-items: center; justify-content: space-between; color: var(--v-muted); background: transparent; border-bottom: 1px solid var(--v-line-soft); text-align: left; }
.invoice-row.active { color: var(--v-cyan); }
.invoice-row strong, .invoice-row small { display: block; }.invoice-row strong { color: #dce5f5; font-size: 10px; }.invoice-row small { margin-top: 4px; font-size: 8px; text-transform: uppercase; }.invoice-row b { font: 500 10px 'IBM Plex Mono', monospace; }
.event-row { min-height: 56px; display: grid; grid-template-columns: 32px 1fr auto; align-items: center; gap: 10px; border-bottom: 1px solid var(--v-line-soft); }
.event-row > span { color: var(--v-success); }.event-row strong, .event-row small { display: block; }.event-row strong { font-size: 11px; }.event-row small { color: var(--v-subtle); font-size: 8px; }.event-row > b { color: var(--v-success); font: 500 10px 'IBM Plex Mono', monospace; }

.planning-strip { align-items: center; }
.planning-strip > div:first-child > strong { margin: 13px 0 5px; display: block; font: 500 36px 'IBM Plex Mono', monospace; }
.planning-strip p { margin: 0; color: var(--v-muted); font-size: 10px; }
.planning-strip dl { margin: 0; display: flex; gap: 25px; }
.planning-strip dl div { padding-left: 15px; border-left: 1px solid #344869; }
.planning-strip dt { color: var(--v-subtle); font-size: 8px; text-transform: uppercase; }.planning-strip dd { margin: 6px 0 0; font: 500 11px 'IBM Plex Mono', monospace; }
.budget-list { display: grid; gap: 8px; }
.budget-line { min-height: 100px; padding: 19px 21px; display: grid; grid-template-columns: minmax(180px,.55fr) 1.4fr 20px; align-items: center; gap: 25px; color: var(--v-frost); background: var(--v-navy); border: 1px solid var(--v-line-soft); border-radius: 7px; text-align: left; }
.budget-line:hover { border-color: #364866; }
.budget-line h2 { margin: 7px 0 0; font: 500 16px 'IBM Plex Mono', monospace; }
.budget-bars > span { height: 8px; display: flex; overflow: hidden; background: #16223a; border-radius: 2px; }
.budget-bars i { height: 100%; }.budget-bars .confirmed { background: var(--v-electric); }.budget-bars .committed { background: var(--v-amber); }
.budget-bars small { margin-top: 8px; display: block; color: var(--v-subtle); font-size: 8px; }

.goal-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.goal-card-v3 { min-height: 265px; padding: 24px; display: grid; grid-template-columns: 38px minmax(0,1fr) auto; gap: 18px; color: var(--v-frost); background: var(--v-navy); border: 1px solid var(--v-line-soft); border-radius: var(--v-radius); }
.goal-card-v3.completed { border-color: rgba(79,209,165,.3); }
.goal-index { color: var(--v-cyan); font: 500 9px 'IBM Plex Mono', monospace; }
.goal-card-v3 h2 { margin: 12px 0 28px; font: 500 24px 'Sora', sans-serif; letter-spacing: -.03em; }
.goal-card-v3 strong { font: 500 18px 'IBM Plex Mono', monospace; }.goal-card-v3 strong small { color: var(--v-subtle); font-size: 10px; }
.goal-card-v3 .progress { height: 5px; margin: 19px 0 10px; display: block; overflow: hidden; background: #18243a; border-radius: 0; }.goal-card-v3 .progress i { height: 100%; display: block; background: var(--v-cyan); }
.goal-card-v3 p { color: var(--v-subtle); font-size: 9px; }
.goal-card-v3 > div:last-child { display: grid; align-content: end; gap: 7px; }

.calendar-toolbar { margin-bottom: 12px; display: flex; align-items: center; justify-content: center; gap: 20px; }
.calendar-toolbar button { width: 36px; height: 36px; color: var(--v-muted); background: var(--v-navy); border: 1px solid var(--v-line); border-radius: 5px; }.calendar-toolbar strong { min-width: 210px; text-align: center; font: 500 14px 'Sora', sans-serif; }
.calendar-grid { padding: 16px; background: var(--v-navy); border: 1px solid var(--v-line-soft); border-radius: var(--v-radius); }
.weekday-row, .calendar-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.weekday-row span { padding: 8px; color: var(--v-subtle); font: 500 8px 'IBM Plex Mono', monospace; text-align: center; text-transform: uppercase; }
.calendar-day { min-height: 112px; padding: 9px; color: var(--v-muted); background: #0a1322; border: 1px solid #17243a; border-radius: 5px; text-align: left; overflow: hidden; }
.calendar-day:hover { border-color: #344968; }.calendar-day.today { border-color: var(--v-cyan); }
.calendar-day > b { display: block; color: #cbd6e8; font: 500 9px 'IBM Plex Mono', monospace; }
.calendar-day > span { margin-top: 8px; display: grid; gap: 3px; }
.calendar-day i { padding: 3px 5px; overflow: hidden; color: var(--v-muted); background: #121e32; border-left: 2px solid var(--v-electric); font-size: 7px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.calendar-day i.income { border-color: var(--v-success); }.calendar-day i.expense { border-color: var(--v-danger); }.calendar-day i.invoice { border-color: var(--v-amber); }
.calendar-day > small { color: var(--v-subtle); font-size: 7px; }.calendar-day.blank { background: transparent; border-color: transparent; }
.calendar-ruler { margin-top: 12px; padding: 0; background: transparent; border: 0; }.calendar-ruler .v3-ruler { box-shadow: none; }

.report-toolbar { margin-bottom: 12px; padding: 10px 12px; display: flex; align-items: end; justify-content: space-between; color: var(--v-subtle); background: #09111f; border: 1px solid var(--v-line-soft); border-radius: 6px; font-size: 9px; }
.report-toolbar label { display: grid; gap: 5px; }.report-toolbar input { width: 170px; }
.vertical-chart { height: 310px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; align-items: end; }
.vertical-chart button { height: 100%; display: grid; grid-template-rows: 28px 1fr 24px; color: var(--v-muted); background: transparent; }
.vertical-chart strong { font: 500 9px 'IBM Plex Mono', monospace; }.vertical-chart button > span { position: relative; width: 70%; margin: 0 auto; background: #121d30; border: 1px solid #1c2941; }.vertical-chart i { position: absolute; left: 0; right: 0; bottom: 0; min-height: 2px; background: var(--v-electric); }.vertical-chart i.income { background: var(--v-success); }.vertical-chart i.expense { background: var(--v-danger); }.vertical-chart i.investment { background: var(--v-violet); }.vertical-chart i.donation { background: var(--v-amber); }.vertical-chart small { align-self: end; font-size: 8px; }
.accessible-data { margin-top: 15px; color: var(--v-subtle); font-size: 9px; }.accessible-data summary { cursor: pointer; color: var(--v-cyan); }.accessible-data table { width: 100%; margin-top: 10px; border-collapse: collapse; }.accessible-data th, .accessible-data td { padding: 8px; border-bottom: 1px solid var(--v-line-soft); text-align: left; }
.insight-row { width: 100%; padding: 15px 2px; color: var(--v-frost); background: transparent; border-bottom: 1px solid var(--v-line-soft); text-align: left; }.insight-row strong { font: 500 13px 'Sora', sans-serif; }.insight-row p { color: var(--v-muted); font-size: 9px; line-height: 1.55; }.insight-row > span { color: var(--v-cyan); font-size: 8px; }.insight-row .icon { width: 11px; vertical-align: middle; }
.breakdown-row { width: 100%; min-height: 54px; display: grid; grid-template-columns: minmax(140px,.6fr) minmax(180px,1.2fr) 110px; align-items: center; gap: 20px; color: var(--v-frost); background: transparent; border-bottom: 1px solid var(--v-line-soft); text-align: left; }.breakdown-row strong, .breakdown-row small { display: block; }.breakdown-row strong { font-size: 11px; }.breakdown-row small { margin-top: 4px; color: var(--v-subtle); font-size: 8px; }.breakdown-row .bar { height: 5px; background: #172238; }.breakdown-row .bar i { height: 100%; display: block; background: var(--v-electric); }.breakdown-row .bar i.income { background: var(--v-success); }.breakdown-row .bar i.expense { background: var(--v-danger); }.breakdown-row .bar i.investment { background: var(--v-violet); }.breakdown-row .bar i.donation { background: var(--v-amber); }.breakdown-row > b { text-align: right; font: 500 10px 'IBM Plex Mono', monospace; }

.settings-layout { display: grid; grid-template-columns: 190px minmax(0, 780px); gap: 25px; align-items: start; }
.settings-layout > nav { position: sticky; top: 25px; display: grid; border-left: 1px solid var(--v-line); }
.settings-layout > nav a { padding: 9px 13px; color: var(--v-subtle); font-size: 10px; text-decoration: none; }.settings-layout > nav a:hover { color: var(--v-cyan); border-left: 1px solid var(--v-cyan); margin-left: -1px; }
.settings-section { padding: 27px; margin-bottom: 12px; background: var(--v-navy); border: 1px solid var(--v-line-soft); border-radius: var(--v-radius); }
.settings-section h2 { margin: 7px 0 15px; font: 500 20px 'Sora', sans-serif; }.settings-section > p { color: var(--v-muted); font-size: 10px; line-height: 1.6; }
.settings-actions { margin: 20px 0; display: flex; flex-wrap: wrap; gap: 7px; }
.sync-panel { padding: 15px; display: grid; grid-template-columns: 8px 1fr auto; align-items: center; gap: 12px; background: #0a1424; border: 1px solid var(--v-line); }.sync-panel > i { width: 7px; height: 7px; background: var(--v-success); border-radius: 50%; }.sync-panel.conflict > i, .sync-panel.error > i { background: var(--v-danger); }.sync-panel strong { font-size: 11px; }.sync-panel p { margin: 4px 0 0; color: var(--v-subtle); font-size: 8px; }
.import-history, .version-list { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--v-line-soft); }.import-history > strong, .version-list > strong { font-size: 11px; }.import-history > div, .version-list > button { width: 100%; min-height: 48px; display: flex; align-items: center; justify-content: space-between; color: var(--v-muted); background: transparent; border-bottom: 1px solid var(--v-line-soft); text-align: left; font-size: 9px; }.import-history button, .version-list b { color: var(--v-cyan); background: transparent; font-size: 8px; }.version-list span small { margin-top: 3px; display: block; color: var(--v-subtle); }
.danger-zone { border-color: rgba(255,122,112,.2); }.danger-zone .eyebrow, .danger-zone h2 { color: var(--v-danger); }

.v3-empty { min-height: 330px; display: grid; place-items: center; align-content: center; }.v3-empty > span { color: var(--v-cyan); background: #0f1d30; border: 1px solid #203a56; border-radius: 7px; }.v3-empty h2 { margin: 0; font: 500 18px 'Sora', sans-serif; }.v3-empty p { max-width: 440px; color: var(--v-muted); line-height: 1.6; }.v3-empty .button { margin-top: 8px; }

.modal-backdrop { top: var(--app-viewport-offset-top, 0); bottom: auto; height: var(--app-viewport-height, 100dvh); justify-content: flex-end; padding: 15px; overflow: hidden; background: rgba(2,5,10,.78); backdrop-filter: blur(6px); }
.modal { position: relative; width: min(560px, 100%); height: calc(var(--app-viewport-height, 100dvh) - 30px); max-height: calc(var(--app-viewport-height, 100dvh) - 30px); padding: 0; display: grid; grid-template-rows: auto minmax(0,1fr); overflow: hidden; color: var(--v-frost); background: var(--v-navy); border: 1px solid var(--v-line); border-radius: 9px; box-shadow: var(--v-shadow); }
.modal.wide { width: min(760px, 100%); }
.modal-header { position: relative; top: auto; z-index: 4; margin: 0; padding: 24px 25px 18px; background: rgba(11,20,38,.97); border-bottom: 1px solid var(--v-line-soft); }
.modal-header h2 { color: var(--v-frost); font: 500 22px 'Sora', sans-serif; }
.modal form { min-height: 0; padding: 0; display: grid; grid-template-rows: minmax(0,1fr) auto; overflow: hidden; }
.modal-body { min-height: 0; padding: 23px 25px; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; -webkit-overflow-scrolling: touch; }
.field { margin-bottom: 15px; display: grid; gap: 7px; color: var(--v-muted); font-size: 10px; }
.field input, .field select, .field textarea { width: 100%; min-height: 43px; padding: 9px 11px; color: var(--v-frost); background: #080f1c; border: 1px solid var(--v-line); border-radius: 5px; outline: none; }
.field textarea { resize: vertical; line-height: 1.5; }.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--v-electric); box-shadow: 0 0 0 3px rgba(102,119,255,.1); }
.field > small, .status-field > small { color: var(--v-subtle); font-size: 8px; line-height: 1.5; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.money-input { min-height: 54px; padding: 0 12px; display: flex; align-items: center; gap: 8px; color: var(--v-subtle); background: #080f1c; border: 1px solid var(--v-line); border-radius: 5px; font: 500 14px 'IBM Plex Mono', monospace; }.money-input:focus-within { border-color: var(--v-electric); box-shadow: 0 0 0 3px rgba(102,119,255,.1); }.money-input input { min-width: 0; padding: 0; color: white; background: transparent; border: 0; box-shadow: none !important; font: 500 22px 'IBM Plex Mono', monospace; }
.segmented { margin-bottom: 18px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }.segmented label { cursor: pointer; }.segmented input { position: absolute; opacity: 0; }.segmented span { min-height: 39px; display: grid; place-items: center; color: var(--v-subtle); background: #080f1c; border: 1px solid var(--v-line-soft); border-radius: 5px; font-size: 9px; }.segmented input:checked + span { color: white; background: #17243c; border-color: var(--v-electric); }
.status-field, .tag-picker { margin: 0 0 16px; padding: 0; border: 0; }.status-field legend, .tag-picker legend { margin-bottom: 8px; color: var(--v-muted); font-size: 10px; }.status-field .segmented { grid-template-columns: repeat(2, 1fr); margin-bottom: 6px; }
.tag-picker { display: flex; flex-wrap: wrap; gap: 6px; }.tag-picker legend { width: 100%; }.tag-picker label input { position: absolute; opacity: 0; }.tag-picker label span { padding: 6px 9px; display: block; color: var(--v-subtle); border: 1px solid var(--v-line); border-radius: 4px; font-size: 8px; }.tag-picker label input:checked + span { color: var(--v-cyan); background: rgba(53,215,231,.06); border-color: rgba(53,215,231,.4); }.tag-picker p { color: var(--v-subtle); font-size: 9px; }
.check-field { margin: 13px 0; display: flex; gap: 10px; color: var(--v-muted); }.check-field input { accent-color: var(--v-electric); }.check-field b, .check-field small { display: block; }.check-field b { color: #dce5f4; font-size: 10px; }.check-field small { margin-top: 4px; color: var(--v-subtle); font-size: 8px; }
.impact-preview, .consequence-preview { margin: 5px 0 17px; padding: 13px 14px; color: var(--v-muted); background: #0c182a; border: 1px solid #20324d; border-left: 2px solid var(--v-cyan); font-size: 9px; line-height: 1.55; }.consequence-preview strong { color: #dbe5f5; }.consequence-preview p { margin: 5px 0 0; }
.modal-actions { position: relative; left: auto; right: auto; bottom: auto; min-height: 72px; margin: 0; padding: 13px 25px; display: flex; align-items: center; gap: 8px; background: #09111f; border-top: 1px solid var(--v-line); }.modal-actions > span { flex: 1; }
.detail-amount { padding: 17px; margin-bottom: 17px; display: grid; gap: 5px; background: #0e1b30; border-left: 3px solid var(--v-electric); }.detail-amount strong { font: 500 26px 'IBM Plex Mono', monospace; }.detail-amount span { color: var(--v-muted); font-size: 9px; }.detail-amount.income { border-color: var(--v-success); }.detail-amount.expense { border-color: var(--v-danger); }
.detail-list { margin: 0 0 18px; }.detail-list div { min-height: 42px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--v-line-soft); }.detail-list dt { color: var(--v-subtle); font-size: 9px; }.detail-list dd { margin: 0; color: #dce5f4; font-size: 9px; text-align: right; }.detail-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.restore-preview, .conflict-compare, .import-summary { display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; }.restore-preview div, .conflict-compare section, .import-summary span { padding: 12px; display: grid; gap: 5px; background: #0b1728; border: 1px solid var(--v-line-soft); }.restore-preview dt, .conflict-compare span { color: var(--v-subtle); font-size: 8px; }.restore-preview dd { margin: 0; font: 500 15px 'IBM Plex Mono', monospace; }.conflict-compare { grid-template-columns: repeat(2,1fr); margin-bottom: 14px; }.conflict-compare small { color: var(--v-subtle); font-size: 8px; }
.import-summary { grid-template-columns: repeat(3,1fr); margin-bottom: 14px; }.import-summary b { color: var(--v-cyan); font: 500 20px 'IBM Plex Mono', monospace; }.import-preview-table { max-height: 380px; overflow: auto; border: 1px solid var(--v-line-soft); }.import-preview-table > div { min-width: 620px; min-height: 38px; padding: 7px 9px; display: grid; grid-template-columns: 45px 90px 1fr 90px 120px; align-items: center; gap: 8px; border-bottom: 1px solid var(--v-line-soft); font-size: 8px; }.import-preview-table .rejected { color: #b98582; background: rgba(255,122,112,.03); }.import-preview-table .accepted { color: var(--v-muted); }
.global-search-field { max-width: none; height: 48px; margin-bottom: 15px; background: #080f1c; border-color: var(--v-line); border-radius: 5px; }.global-results { display: grid; }.global-results > p { padding: 30px; color: var(--v-subtle); text-align: center; }.global-results button { min-height: 54px; display: flex; align-items: center; justify-content: space-between; color: var(--v-frost); background: transparent; border-bottom: 1px solid var(--v-line-soft); text-align: left; }.global-results strong, .global-results small { display: block; }.global-results strong { font-size: 11px; }.global-results small { margin-top: 4px; color: var(--v-subtle); font-size: 8px; }.global-results .icon { width: 14px; }
.mobile-menu-list { display: grid; }.mobile-menu-list button { min-height: 55px; display: grid; grid-template-columns: 28px 1fr 18px; align-items: center; color: var(--v-muted); background: transparent; border-bottom: 1px solid var(--v-line-soft); text-align: left; }.mobile-menu-list button > .icon:first-child { color: var(--v-cyan); }
.quick-add-backdrop { position: fixed; inset: 0; z-index: 115; display: grid; place-items: center; padding: 18px; background: rgba(2,5,10,.58); backdrop-filter: blur(4px); animation: fade .18s ease; }
.quick-add-menu { width: min(330px, calc(100vw - 32px)); overflow: hidden; color: var(--v-frost); background: #0b1426; border: 1px solid #2a3b59; border-radius: 14px; box-shadow: 0 24px 70px rgba(0,0,0,.48); animation: quick-add-enter .2s ease both; }
.quick-add-menu > header { padding: 17px 17px 13px 19px; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--v-line-soft); }
.quick-add-menu h2 { margin: 6px 0 0; font: 500 15px/1.25 'Sora', sans-serif; }
.quick-add-menu .icon-button { width: 34px; height: 34px; flex: 0 0 auto; }
.quick-add-options { padding: 7px; display: grid; }
.quick-add-options > button { min-height: 53px; padding: 7px 9px; display: grid; grid-template-columns: 34px minmax(0,1fr) 15px; align-items: center; gap: 10px; color: var(--v-muted); background: transparent; border: 1px solid transparent; border-radius: 8px; text-align: left; }
.quick-add-options > button:hover, .quick-add-options > button:focus-visible { color: var(--v-frost); background: #101d31; border-color: #263a59; }
.quick-add-options > button > span:first-child { width: 32px; height: 32px; display: grid; place-items: center; color: var(--v-cyan); background: #0c1b2c; border: 1px solid #203650; border-radius: 7px; }
.quick-add-options > button:nth-child(1) > span:first-child { color: var(--v-danger); }
.quick-add-options > button:nth-child(2) > span:first-child { color: #8da2ff; }
.quick-add-options > button:nth-child(3) > span:first-child { color: var(--v-success); }
.quick-add-options > button:nth-child(5) > span:first-child { color: var(--v-violet); }
.quick-add-options .icon { width: 16px; height: 16px; }
.quick-add-options > button > .icon:last-child { width: 13px; color: var(--v-subtle); }
.quick-add-options strong, .quick-add-options small { display: block; }
.quick-add-options strong { color: #e5ecf8; font-size: 10px; }
.quick-add-options small { margin-top: 3px; color: var(--v-subtle); font-size: 8px; }
.transaction-context { margin-bottom: 18px; padding: 13px 14px; display: grid; grid-template-columns: 34px 1fr; align-items: center; gap: 11px; color: var(--v-cyan); background: #0c1a2b; border: 1px solid #233a58; border-left: 2px solid var(--v-electric); }
.transaction-context > .icon { width: 19px; }
.transaction-context strong, .transaction-context small { display: block; }
.transaction-context strong { color: #e4ebf8; font-size: 11px; }
.transaction-context small { margin-top: 4px; color: var(--v-subtle); font-size: 8px; }
.organization-list { max-height: 330px; margin-bottom: 20px; overflow-y: auto; border-top: 1px solid var(--v-line-soft); }.organization-row { min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 15px; border-bottom: 1px solid var(--v-line-soft); }.organization-row strong, .organization-row small { display: block; }.organization-row strong { color: #dce5f4; font-size: 10px; }.organization-row small { margin-top: 4px; color: var(--v-subtle); font-size: 8px; }.organization-row > button { color: var(--v-cyan); background: transparent; font-size: 8px; }.organization-row.archived strong { color: var(--v-subtle); text-decoration: line-through; }.organization-create { padding: 15px; background: #091321; border: 1px solid var(--v-line-soft); }

#drawer-root:empty { display: none; }.drawer-backdrop { position: fixed; inset: 0; z-index: 110; display: flex; justify-content: flex-end; background: rgba(2,5,10,.64); backdrop-filter: blur(4px); }.audit-drawer { width: min(490px,100%); height: 100%; padding: 24px; overflow-y: auto; background: #091220; border-left: 1px solid var(--v-line); box-shadow: var(--v-shadow); animation: slide .25s ease; }.audit-drawer > header { display: flex; align-items: center; justify-content: space-between; padding-bottom: 17px; border-bottom: 1px solid var(--v-line); }.audit-drawer h2 { margin: 6px 0 0; font: 500 21px 'Sora', sans-serif; }.audit-formula { margin: 18px 0; padding: 18px; display: grid; gap: 7px; background: #101d31; border-left: 3px solid var(--v-cyan); }.audit-formula span { color: var(--v-subtle); font: 500 8px 'IBM Plex Mono', monospace; text-transform: uppercase; }.audit-formula strong { color: #dce5f4; font-size: 12px; }.audit-formula b { margin-top: 8px; font: 500 25px 'IBM Plex Mono', monospace; }.audit-rows > .eyebrow { margin-bottom: 7px; }.audit-rows > button { width: 100%; min-height: 55px; display: flex; align-items: center; justify-content: space-between; color: var(--v-muted); background: transparent; border-bottom: 1px solid var(--v-line-soft); text-align: left; }.audit-rows strong, .audit-rows small { display: block; }.audit-rows strong { color: #dbe4f3; font-size: 10px; }.audit-rows small { margin-top: 4px; color: var(--v-subtle); font-size: 8px; }.audit-rows b { font: 500 10px 'IBM Plex Mono', monospace; }.audit-rows > p { color: var(--v-subtle); font-size: 10px; }
.alert-list { display: grid; gap: 8px; margin-top: 18px; }.alert-item { padding: 14px; display: grid; grid-template-columns: 7px 1fr 25px; gap: 11px; background: #0c1728; border: 1px solid var(--v-line-soft); }.alert-item > i { width: 6px; height: 6px; margin-top: 5px; background: var(--v-amber); border-radius: 50%; }.alert-item.danger > i { background: var(--v-danger); }.alert-item strong { font-size: 11px; }.alert-item p { margin: 5px 0 9px; color: var(--v-muted); font-size: 9px; }.alert-item button { color: var(--v-cyan); background: transparent; font-size: 8px; }.alert-item > button:last-child { color: var(--v-subtle); }
.event-history { margin-top: 17px; border-top: 1px solid var(--v-line-soft); }.event-history > div { min-height: 48px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--v-line-soft); }.event-history strong, .event-history small { display: block; }.event-history strong { font-size: 9px; }.event-history small { color: var(--v-subtle); font-size: 8px; }.event-history b { font: 500 9px 'IBM Plex Mono', monospace; }

#toast-root .toast { color: var(--v-frost); background: #14233b; border: 1px solid #304665; border-radius: 6px; box-shadow: var(--v-shadow); }.toast span { color: #041015; background: var(--v-cyan); }.toast.error { border-color: rgba(255,122,112,.5); }.toast.error span { color: white; background: var(--v-danger); }
.auth-shell { background: var(--v-void); }.auth-thesis { background: radial-gradient(circle at 25% 30%, rgba(102,119,255,.13), transparent 35%), #080f1b; }.auth-thesis::after { content: 'FÔLEGO'; color: rgba(255,255,255,.018); font: 700 15vw 'Sora', sans-serif; }.auth-brand { color: white; }.auth-thesis-copy h1 { color: white; font-family: 'Sora', sans-serif; }.auth-thesis-copy h1 em { color: var(--v-cyan); }.auth-panel { background: var(--v-navy); }
.auth-credit { width: fit-content; margin: 38px 0 0; color: #718098; font: 500 10px/1.4 'Sora', sans-serif; letter-spacing: .01em; }
.auth-credit span { margin-right: 5px; color: #46546b; font: 500 8px/1.4 'IBM Plex Mono', monospace; letter-spacing: .12em; text-transform: uppercase; }

@keyframes quick-add-enter {
  from { opacity: 0; transform: translateY(10px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 760px) {
  .auth-credit { margin-top: 34px; font-size: 9px; }
  .auth-credit span { font-size: 7px; }
}

@media (max-width: 1220px) {
  .filter-console { grid-template-columns: minmax(220px,1fr) repeat(2,minmax(130px,.5fr)); }
  .filter-actions { grid-column: span 1; }
  .entity-grid, .cards-grid { grid-template-columns: repeat(2,1fr); }
  .v3-overview-hero { grid-template-columns: 1fr; }
  .v3-free { min-height: 230px; }
  .planning-strip { align-items: flex-start; flex-wrap: wrap; }
}

@media (max-width: 840px) {
  .v3-sidebar { display: none; }
  .v3-main { margin-left: 0; padding: 24px 18px 96px; }
  .v3-mobile-nav { left: max(9px, env(safe-area-inset-left)); right: max(9px, env(safe-area-inset-right)); bottom: max(9px, env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(5,1fr); border-radius: 22px; overflow: visible; }
  .v3-mobile-nav > .mobile-nav-item { position: relative; min-width: 0; grid-row: 1; display: grid; color: var(--v-subtle); }
  .v3-mobile-nav > .mobile-nav-item:nth-child(1) { grid-column: 1; }
  .v3-mobile-nav > .mobile-nav-item:nth-child(2) { grid-column: 2; }
  .v3-mobile-nav > .mobile-nav-item:nth-child(3) { grid-column: 3; }
  .v3-mobile-nav > .mobile-nav-item:nth-child(4) { grid-column: 4; }
  .v3-mobile-nav > .mobile-nav-item:nth-child(5) { grid-column: 5; }
  .v3-mobile-nav .mobile-add-v3 { width: 52px; height: 52px; margin-top: -17px; justify-self: center; color: #fff; background: var(--v-electric); border: 4px solid var(--v-void); border-radius: 10px; box-shadow: 0 10px 24px rgba(83,104,255,.35); }
  .v3-mobile-nav .mobile-add-v3 .icon { width: 24px; height: 24px; }
  .v3-mobile-nav .mobile-add-v3 span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
  .v3-header h1 { font-size: 2.35rem; }
  .desktop-add { display: none; }
  .first-run { grid-template-columns: 1fr; }.first-run ol { display: none; }.first-run > div { padding: 45px 30px; }.first-run h2 { font-size: 3rem; }
  .metric-grid { grid-template-columns: 1fr; }
  .content-grid { grid-template-columns: 1fr; }
  .entity-grid, .cards-grid, .goal-grid { grid-template-columns: 1fr 1fr; }
  .filter-console { grid-template-columns: repeat(2,1fr); }.filter-console > .search-field { grid-column: 1 / -1; }.filter-actions { justify-content: flex-end; }
  .settings-layout { grid-template-columns: 1fr; }.settings-layout > nav { position: static; display: flex; overflow-x: auto; border-left: 0; border-bottom: 1px solid var(--v-line); }.settings-layout > nav a { white-space: nowrap; }
  .calendar-day { min-height: 90px; }
  .calendar-day i { display: none; }
  .calendar-day > small { display: block; margin-top: 15px; }
  .ledger-table { min-width: 720px; }.panel:has(.ledger-table) { overflow-x: auto; }
}

@media (max-width: 600px) {
  input, select, textarea { font-size: 16px !important; }
  .v3-main { padding: 20px 13px 92px; }
  .v3-header { margin-bottom: 20px; align-items: flex-end; }.v3-header h1 { max-width: 220px; font-size: 2rem; line-height: 1; }.v3-header .header-actions { gap: 5px; }.v3-header .header-actions .icon-button:first-child { display: none; }.icon-button { width: 38px; height: 38px; }
  .v3-mobile-nav { height: 68px; padding: 7px 5px; background: rgba(8,14,25,.97); border: 1px solid var(--v-line); border-radius: 24px; backdrop-filter: blur(12px); }.v3-mobile-nav .mobile-nav-item { font-size: 8px; }.v3-mobile-nav .mobile-nav-item.active { color: var(--v-cyan); }
  .first-run { min-height: 480px; }.first-run > div { padding: 39px 23px; }.first-run h2 { font-size: 2.65rem; }.first-run p { font-size: 12px; }
  .v3-free { min-height: 215px; padding: 22px; }.v3-free > strong { font-size: clamp(2rem, 11vw, 3.1rem); white-space: normal; }.v3-free > strong.money-medium { font-size: clamp(1.7rem, 8.5vw, 2.45rem); white-space: nowrap; }.v3-free > strong.money-long { font-size: clamp(1.4rem, 6.4vw, 1.9rem); white-space: nowrap; }
  .quick-add-backdrop { place-items: end center; padding: 14px 12px calc(91px + env(safe-area-inset-bottom)); }
  .quick-add-menu { width: min(350px, 100%); max-height: calc(var(--app-viewport-height, 100dvh) - 118px - env(safe-area-inset-bottom)); overflow-y: auto; border-radius: 18px; }
  .v3-ruler { min-height: auto; padding: 22px 19px; overflow: hidden; }.v3-ruler .ruler-heading h2 { font-size: 16px; }.v3-ruler .ruler-heading > strong { font-size: 13px; }
  .breath-timeline { height: auto; min-height: 160px; margin: 24px 0 10px; display: grid; gap: 0; }.timeline-line { left: 8px; right: auto; top: 8px; bottom: 8px; width: 1px; height: auto; }.timeline-point, .timeline-point.today { position: relative; left: auto !important; top: auto; max-width: none; min-height: 38px; padding-left: 28px; grid-template-columns: minmax(0,1fr) auto; align-items: start; transform: none; white-space: normal; }.timeline-point i, .timeline-point.today i { position: absolute; left: 1px; top: 0; width: 15px; height: 15px; margin: 0; }.timeline-point b { margin: 0; max-width: none; }.timeline-point small { text-align: right; }.v3-ruler > p { font-size: 9px; }
  .metric-card { min-height: 112px; }.metric-card > strong { font-size: 20px; }
  .panel { padding: 20px 16px; }.section-heading h2 { font-size: 16px; }
  .v3-row { gap: 9px; }.v3-row .transaction-icon { width: 33px; height: 33px; }.v3-row .transaction-copy small { max-width: 145px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.v3-row .transaction-meta strong { font-size: 9px; }.v3-row > .icon:last-child { display: none; }
  .filter-console { grid-template-columns: 1fr 1fr; padding: 10px; }.filter-console > label:nth-of-type(n+4) { grid-column: span 1; }.filter-actions { grid-column: 1 / -1; }.filter-actions .button { flex: 1; }
  .command-bar, .account-hero, .invoice-hero, .planning-strip { min-height: 190px; padding: 24px 21px; align-items: flex-start; flex-direction: column; }.command-bar > div:first-child > strong, .account-hero > div:first-child > strong, .invoice-hero > div:first-child > strong { font-size: 2.4rem; }.command-bar > div:last-child, .account-hero > div:last-child, .invoice-hero > div:last-child { width: 100%; }.command-bar > div:last-child .button, .account-hero > div:last-child .button, .invoice-hero > div:last-child .button { flex: 1; }
  .entity-grid, .cards-grid, .goal-grid { grid-template-columns: 1fr; }.entity-card { min-height: 235px; }.credit-tile { min-height: 270px; }
  .planning-strip dl { width: 100%; gap: 10px; justify-content: space-between; }.planning-strip dl div { padding-left: 9px; }.planning-strip .button { width: 100%; }
  .budget-line { grid-template-columns: 1fr 18px; gap: 14px; }.budget-bars { grid-column: 1 / -1; grid-row: 2; }.budget-line > .icon { grid-column: 2; grid-row: 1; }
  .goal-card-v3 { min-height: 300px; grid-template-columns: 28px 1fr; }.goal-card-v3 > div:last-child { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; }
  .weekday-row span { padding: 5px 0; font-size: 6px; }.calendar-grid { padding: 8px; }.calendar-days, .weekday-row { gap: 3px; }.calendar-day { min-height: 58px; padding: 6px; }.calendar-day > b { font-size: 7px; }.calendar-day > small { margin-top: 8px; font-size: 6px; }
  .reports-grid { display: block; }.reports-grid > .panel { margin-bottom: 12px; }.vertical-chart { height: 250px; gap: 5px; }.vertical-chart strong { font-size: 7px; }.breakdown-row { grid-template-columns: minmax(100px,.8fr) 1fr 80px; gap: 8px; }.breakdown-row > b { font-size: 8px; }
  .settings-section { padding: 22px 17px; }.settings-actions .button { width: 100%; }.settings-layout > nav { margin: 0 -13px; padding: 0 13px; }.sync-panel { grid-template-columns: 8px 1fr; }.sync-panel .button { grid-column: 1 / -1; }
  .form-grid { grid-template-columns: 1fr; gap: 0; }.segmented { grid-template-columns: repeat(2,1fr); }.modal-backdrop { padding: 0; }.modal, .modal.wide { width: 100%; height: var(--app-viewport-height, 100dvh); max-height: var(--app-viewport-height, 100dvh); border: 0; border-radius: 0; }.modal-header { padding: 20px 18px 15px; }.modal-body { padding: 20px 18px; scrollbar-gutter: auto; }.modal-actions { min-height: calc(68px + env(safe-area-inset-bottom)); padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); }.modal-actions .button { min-width: 0; padding: 0 11px; }.restore-preview { grid-template-columns: repeat(2,1fr); }.restore-preview div:last-child { grid-column: span 2; }.detail-actions .button { width: 100%; }
  .audit-drawer { padding: 20px 16px 88px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
