:root {
    color-scheme: dark;
    --bg: #0c0e0f;
    --paper: #151819;
    --raised: #1d2122;
    --soft: #ffffff04;
    --ink: #f3f0e9;
    --heading: #f3f0e9;
    --muted: #b0aea8;
    --subtle: #95938e;
    --line: #ffffff12;
    --line-strong: #ffffff25;
    --accent: #c9ad73;
    --accent-ink: #dfc690;
    --accent-button: #d2b67d;
    --accent-hover: #e4c990;
    --on-accent: #242016;
    --light: #c9ad7312;
    --cyan: #9eb9ad;
    --red: #e8a0a7;
    --warm: #d9bc8a;
    --shadow: inset 0 1px 0 #ffffff05;
    --radius: 18px;
}
:root[data-theme="light"] {
    color-scheme: light;
    --bg: #eeefeb;
    --paper: #fafbf7;
    --raised: #fff;
    --soft: #20202004;
    --ink: #272724;
    --heading: #272724;
    --muted: #666660;
    --subtle: #787870;
    --line: #28282815;
    --line-strong: #28282830;
    --accent: #947035;
    --accent-ink: #785719;
    --accent-button: #d2b67d;
    --accent-hover: #c5a567;
    --on-accent: #242016;
    --light: #ac853e0c;
    --cyan: #427462;
    --red: #b34357;
    --warm: #95671f;
    --shadow: inset 0 1px 0 #ffffff80;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: radial-gradient(ellipse at 85% 0, #c9ad7309, transparent 55%), var(--bg); color: var(--ink); font-family: "Avenir Next", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 14px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { opacity: .5; cursor: not-allowed; }
a, button, input, select, textarea, summary { outline-offset: 4px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); }
a, button, input, select, textarea { transition: background-color .18s, border-color .18s, color .18s, box-shadow .18s; }
.icon { width: 20px; height: 20px; flex-shrink: 0; }
.brand-mark { --aura-float: 1px; position: relative; display: inline-block; isolation: isolate; width: 46px; height: 46px; flex-shrink: 0; line-height: 0; transform-origin: center; animation: aura-orbit 48s linear infinite; }
.aura-image { display: block; width: 100%; height: 100%; object-fit: contain; }
.aura-reflection { position: absolute; inset: 0; pointer-events: none; mask-image: var(--aura-texture); mask-mode: luminance; mask-size: contain; mask-position: center; mask-repeat: no-repeat; background-image: radial-gradient(ellipse 27% 40% at 50% 50%, #fff9e9 0%, #ecd5a6dc 20%, #d2b67d50 38%, transparent 70%); background-size: 240% 220%; background-position: 68% 60%; background-repeat: no-repeat; mix-blend-mode: screen; opacity: .9; animation: aura-light-travel 10s ease-in-out infinite; }
.sidebar { width: 232px; position: fixed; inset: 0 auto 0 0; z-index: 20; display: flex; flex-direction: column; padding: 38px 18px 22px; background: radial-gradient(ellipse at 0 0, #c9ad730a, transparent 50%), linear-gradient(170deg, #191a1b, #101112 55%); border-right: 1px solid #ffffff10; color: #f3f0e9; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 10px; color: #f3f0e9; padding: 0 5px; }
.brand > .brand-mark { color: #d2b67d; }
.brand-wordmark { --wordmark-accent: #c9ad73; display: block; width: 128px; height: auto; color: #e8e4db; overflow: visible; }
.wordmark-point { fill: var(--wordmark-accent); }
.workspace-label { color: #96948e; font-size: 9px; letter-spacing: .15em; margin: 38px 13px 26px; }
.nav-section { color: #96948e; font-size: 9px; letter-spacing: .15em; margin: 0 14px 10px; }
.nav-link { display: flex; gap: 13px; align-items: center; padding: 12px 14px; margin: 3px 0; border: 1px solid transparent; border-radius: 10px; color: #b4b3ae; font-size: 12px; min-height: 44px; }
.nav-link .icon { width: 18px; height: 18px; }
.nav-link:hover:not(.muted):not(.active) { background: #ffffff05; color: #d6d3cb; }
.nav-link.active { background: linear-gradient(90deg, #c9ad7313, #c9ad7303); border-color: #c9ad7315; color: #e0c793; }
.nav-indicator { width: 4px; height: 4px; border-radius: 50%; background: #d2b67d; margin-left: auto; }
.second-section { margin-top: 30px; font-size: 8px; }
.muted { color: var(--subtle); }
.sidebar .muted { color: #85837d; }
.soon { margin-left: auto; font-size: 8px; border: 1px solid #ffffff13; color: #a4a29c; padding: 2px 5px; border-radius: 4px; white-space: nowrap; }
.sidebar-note { margin-top: auto; padding: 38px 14px 20px; position: relative; }
.sidebar-note > .brand-mark { width: 65px; height: 65px; opacity: .7; margin-bottom: 12px; animation-delay: -12s; }
.sidebar-note .aura-reflection { animation-delay: -3s; }
.sidebar-note strong { display: block; font-size: 17px; font-weight: 400; letter-spacing: -.3px; line-height: 1.6; color: #f3f0e9; }
.sidebar-note p { font-size: 10px; color: #96948e; margin: 10px 0 0; }
.sidebar-footer { display: flex; align-items: center; gap: 11px; padding: 20px 8px 0; border-top: 1px solid #ffffff0d; }
.profile { display: grid; place-items: center; width: 35px; height: 35px; border: 1px solid #ffffff14; border-radius: 50%; color: #b9b6ad; }
.profile .brand-mark { width: 26px; height: 26px; }
.sidebar-footer strong { display: block; font-size: 11px; font-weight: 500; color: #e1dfd9; }
.sidebar-footer small { display: block; font-size: 9px; color: #96948e; margin-top: 2px; }
.mobile-menu-toggle { display: none; }
.app-shell { margin-left: 232px; min-width: 0; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 18px; height: 68px; padding: 0 40px; border-bottom: 1px solid var(--line); }
.breadcrumb { font-size: 11px; color: var(--subtle); white-space: nowrap; }
.breadcrumb span { color: var(--line-strong); padding: 0 12px; }
.breadcrumb strong { color: var(--muted); font-weight: 400; }
.topbar-tools { display: flex; gap: 20px; align-items: center; }
.local-badge { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 10px; }
.local-badge > i { width: 5px; height: 5px; border-radius: 50%; background: var(--cyan); }
.currency-picker { display: inline-flex; margin-left: 5px; }
.currency-picker select { min-height: 30px; border: 0; background: transparent; padding: 3px 5px; font-size: 11px; color: var(--ink); }
.currency-label { padding-left: 12px; margin-left: 5px; border-left: 1px solid var(--line); font-size: 10px; }
.theme-picker { display: flex; align-items: center; gap: 7px; border-left: 1px solid var(--line); padding-left: 18px; color: var(--subtle); }
.theme-picker .icon { width: 15px; height: 15px; }
.theme-picker select { border: 0; background: transparent; padding: 4px 0; min-height: 30px; color: var(--muted); font-size: 10px; }
main { max-width: 1660px; margin: 0 auto; padding: 48px 40px 26px; }
.title-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 32px; }
.eyebrow { color: var(--accent); font-size: 9px; font-weight: 500; letter-spacing: .18em; margin: 0 0 14px; }
h1 { font-family: "Avenir Next", Inter, -apple-system, sans-serif; font-size: clamp(28px, 2.7vw, 42px); font-weight: 400; line-height: 1.2; letter-spacing: -1.5px; margin: 0 0 12px; color: var(--heading); }
.subtitle { font-size: 12px; color: var(--muted); margin: 0; max-width: 590px; line-height: 1.8; }
.page-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 17px; border: 1px solid transparent; border-radius: 9px; min-height: 44px; font-size: 10px; line-height: 1.6; letter-spacing: .06em; font-weight: 600; white-space: nowrap; }
.button .icon { width: 15px; height: 15px; }
.primary { background: linear-gradient(110deg, color-mix(in srgb, var(--accent-button) 86%, white), var(--accent-button)); color: var(--on-accent); border-color: #d8c59d; box-shadow: inset 0 1px 0 #ffffff30; }
.primary:hover { background: var(--accent-hover); border-color: #ffffff25; }
.secondary-button { background: var(--paper); border-color: var(--line-strong); color: var(--ink); }
.secondary-button:hover { background: var(--raised); }
.text-link { font-size: 11px; font-weight: 500; color: var(--accent-ink); white-space: nowrap; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.text-link span { margin-left: 5px; }
.text-button { padding: 0; background: none; border: 0; color: var(--accent-ink); font-size: 11px; min-height: 32px; }
.text-button:hover { text-decoration: underline; }
.month-picker { display: flex; align-items: center; gap: 2px; height: 44px; padding: 0 5px; border: 1px solid var(--line); border-radius: 9px; background: var(--paper); }
.month-picker a { display: grid; place-items: center; width: 28px; height: 34px; color: var(--subtle); }
.month-picker .icon { width: 13px; height: 13px; }
.month-picker input { width: 136px; min-height: 32px; padding: 5px; border: 0; background: transparent; color: var(--ink); font-size: 11px; }
.rotate { transform: rotate(180deg); }
.section-caption { display: flex; align-items: center; gap: 10px; margin-bottom: 17px; color: var(--muted); font-size: 11px; }
.section-caption > span:last-child { color: var(--subtle); font-size: 8px; letter-spacing: .14em; }
.caption-line { height: 1px; width: 28px; background: var(--line-strong); margin: 0 3px; }
.color-dot { width: 7px; height: 7px; display: inline-block; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 24px; }
.stats-grid.three { grid-template-columns: 1.4fr 1fr 1fr; }
.stat-card { min-width: 0; position: relative; overflow: hidden; padding: 25px 25px 22px; min-height: 166px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.stat-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 11px; color: var(--muted); position: relative; z-index: 1; }
.stat-card > strong { display: block; margin: 21px 0 12px; font-size: clamp(23px, 2.4vw, 36px); line-height: 1.1; font-weight: 500; letter-spacing: -1px; font-variant-numeric: tabular-nums; position: relative; z-index: 1; white-space: nowrap; }
.stat-card > small { color: var(--subtle); font-size: 10px; position: relative; z-index: 1; }
.featured { background: linear-gradient(120deg, #2a3031, #15191a 80%); border-color: #c9ad7338; color: #f3f0e9; }
.featured .stat-top { color: #c6c3bb; }
.featured > small { color: #aaa79f; }
.featured > strong { font-size: clamp(26px, 2.8vw, 41px); }
.balance-orbit { position: absolute; right: -30px; bottom: -28px; width: 170px; height: 170px; color: #c9ad73; opacity: .12; }
.stat-symbol { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 4px; }
.stat-symbol .icon { width: 14px; height: 14px; }
.income { color: var(--cyan); background: color-mix(in srgb, var(--cyan) 9%, transparent); }
.expense { color: var(--accent-ink); background: var(--light); }
.neutral { color: var(--muted); background: var(--soft); }
.monthly-net { display: flex; justify-content: flex-end; align-items: center; gap: 13px; font-size: 10px; color: var(--muted); margin: -10px 2px 26px; }
.monthly-net strong { font-size: 11px; color: var(--ink); font-weight: 500; }
.attention-strip { display: flex; align-items: center; gap: 14px; border: 1px solid var(--line); border-radius: 12px; padding: 15px 19px; margin-bottom: 26px; background: var(--soft); }
.attention-strip > .icon { color: var(--accent); width: 18px; height: 18px; }
.attention-strip > div { flex: 1; }
.attention-strip strong { font-weight: 500; font-size: 12px; }
.attention-strip p { color: var(--subtle); font-size: 10px; margin: 3px 0 0; }
.panel { background: radial-gradient(ellipse at 100% 0, #c9ad7305, transparent 60%), linear-gradient(145deg, var(--raised), var(--paper) 28%); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); min-width: 0; }
.panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 24px 25px 20px; }
.panel-heading h2 { color: var(--heading); font-size: 12px; font-weight: 600; letter-spacing: .025em; margin: 0; }
.panel-heading p { font-size: 10px; color: var(--subtle); margin: 6px 0 0; line-height: 1.7; }
.period-badge { border: 1px solid var(--line); padding: 4px 8px; border-radius: 2px; color: var(--muted); font-size: 9px; white-space: nowrap; }
.dashboard-charts { display: grid; grid-template-columns: 1.4fr 1fr; gap: 22px; margin-bottom: 24px; align-items: start; }
.dashboard-bottom { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-bottom: 24px; align-items: start; }
.chart-legend { display: flex; justify-content: flex-end; gap: 17px; margin: 0 26px 17px; font-size: 10px; color: var(--muted); }
.chart-legend span { display: flex; align-items: center; gap: 7px; }
.chart-legend i { width: 6px; height: 6px; border-radius: 2px; }
.income-dot { background: var(--cyan); }
.expense-dot { background: var(--accent); }
.bar-chart { display: flex; gap: clamp(10px, 3vw, 40px); align-items: stretch; position: relative; height: 205px; margin: 0 26px 25px; padding: 0 8px; background: repeating-linear-gradient(to top, transparent 0, transparent calc(25% - 1px), var(--line) calc(25% - 1px), var(--line) 25%); background-size: 100% calc(100% - 28px); background-repeat: no-repeat; }
.chart-column { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; text-align: center; }
.chart-column > span:not(.sr-only) { height: 18px; font-size: 9px; color: var(--subtle); text-transform: capitalize; }
.bars { display: flex; align-items: flex-end; justify-content: center; gap: 5px; height: 177px; }
.bar { width: 10px; max-width: 40%; border-radius: 1px 1px 0 0; }
.income-bar { background: var(--cyan); opacity: .8; }
.expense-bar { background: linear-gradient(to top, color-mix(in srgb, var(--accent) 65%, var(--paper)), var(--accent)); opacity: .9; }
.chart-empty { position: absolute; inset: 0 0 28px; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 12px; color: var(--muted); text-align: center; pointer-events: none; }
.chart-empty small { font-size: 10px; color: var(--subtle); margin-top: 8px; max-width: 240px; }
.account-line { display: flex; gap: 12px; align-items: center; padding: 19px 25px; border-top: 1px solid var(--line); }
.account-icon { display: inline-grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--line); background: var(--soft); border-radius: 4px; color: var(--muted); flex-shrink: 0; }
.account-icon .icon { width: 17px; height: 17px; }
.account-line > div { flex: 1; min-width: 0; }
.account-line strong { font-size: 11px; font-weight: 500; display: block; overflow-wrap: anywhere; }
.account-line > strong { white-space: nowrap; font-variant-numeric: tabular-nums; }
.account-line small { display: block; color: var(--subtle); font-size: 10px; margin-top: 4px; }
.accounts-panel > .panel-heading { padding-bottom: 21px; }
.dashboard-details { margin-top: 24px; border-top: 1px solid var(--line); padding-top: 22px; }
.dashboard-details > summary { cursor: pointer; font-size: 12px; color: var(--muted); padding: 8px 0; list-style-position: inside; }
.dashboard-details > summary > span { font-size: 10px; color: var(--subtle); margin-left: 15px; }
.dashboard-details[open] > summary { margin-bottom: 18px; color: var(--ink); }
.donut-wrap { display: flex; justify-content: center; margin: 5px 0 24px; }
.donut { width: 165px; height: 165px; border-radius: 50%; padding: 18px; }
.donut > div { background: var(--paper); border-radius: 50%; height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.donut small { font-size: 9px; color: var(--subtle); }
.donut strong { font-size: 15px; font-weight: 500; margin-top: 5px; white-space: nowrap; }
.breakdown-list { padding: 0 25px 23px; }
.breakdown-list > div { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 7px 0; font-size: 11px; }
.breakdown-list > div > span { display: flex; align-items: center; gap: 9px; color: var(--muted); }
.breakdown-list strong { font-size: 11px; font-weight: 500; }
.budget-row { padding: 15px 25px 20px; }
.budget-heading { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; margin-bottom: 12px; }
.budget-heading > span:first-child { display: flex; align-items: center; gap: 8px; }
.budget-heading .secondary { font-size: 10px; }
.budget-divider { color: var(--subtle); }
.progress-track { height: 4px; background: var(--line); border-radius: 10px; overflow: hidden; }
.progress-fill { height: 100%; border-radius: 10px; }
.budget-caption { display: flex; justify-content: space-between; gap: 10px; font-size: 10px; color: var(--subtle); margin-top: 9px; }
.table-wrap { position: relative; overflow: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; white-space: nowrap; }
th { background: var(--soft); color: var(--subtle); font-size: 10px; font-weight: 500; padding: 12px 23px; border-block: 1px solid var(--line); }
td { padding: 18px 23px; font-size: 11px; border-bottom: 1px solid var(--line); }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--soft); }
td > small { display: block; color: var(--subtle); font-size: 10px; margin-top: 4px; }
.number { text-align: right; font-variant-numeric: tabular-nums; font-weight: 500; }
.secondary { color: var(--muted); }
.positive { color: var(--cyan); }
.danger { color: var(--red) !important; }
.nowrap { white-space: nowrap; }
.operation-cell { display: flex; gap: 12px; align-items: center; }
.operation-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 4px; }
.operation-icon .icon { width: 15px; height: 15px; }
.operation-title { display: block; font-size: 11px; font-weight: 500; max-width: 250px; white-space: normal; }
.operation-title:hover { color: var(--accent-ink); }
.operation-cell small { display: block; font-size: 9px; color: var(--subtle); margin-top: 3px; }
.category-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; border: 1px solid var(--line); border-radius: 5px; font-size: 9px; color: var(--muted); }
.category-pill i { width: 5px; height: 5px; border-radius: 50%; }
.row-actions { display: flex; align-items: center; justify-content: flex-end; gap: 13px; font-size: 10px; }
.row-actions > a { color: var(--accent-ink); }
.row-actions > a:hover { text-decoration: underline; }
.main-footer { display: flex; justify-content: space-between; gap: 15px; padding: 30px 0 0; color: var(--subtle); font-size: 9px; }
.footer-brand { letter-spacing: .03em; }
.footer-dot { padding: 0 7px; opacity: .5; }
.notice { display: flex; align-items: center; gap: 12px; padding: 15px 18px; margin-bottom: 24px; border: 1px solid; border-radius: 10px; font-size: 12px; }
.notice ul { padding-left: 18px; margin: 8px 0 0; }
.notice p { line-height: 1.8; }
.success { color: var(--cyan); background: color-mix(in srgb, var(--cyan) 5%, var(--paper)); border-color: color-mix(in srgb, var(--cyan) 20%, transparent); }
.error { color: var(--red); background: color-mix(in srgb, var(--red) 5%, var(--paper)); border-color: color-mix(in srgb, var(--red) 20%, transparent); }
.info { color: var(--muted); background: var(--paper); border-color: var(--line-strong); }
.onboarding { display: flex; align-items: center; gap: 18px; padding: 23px 25px; margin-bottom: 28px; background: var(--light); border: 1px solid color-mix(in srgb, var(--accent) 23%, transparent); border-radius: 14px; }
.onboarding-symbol { width: 44px; height: 44px; display: grid; place-items: center; flex-shrink: 0; border: 1px solid var(--line); border-radius: 12px; color: var(--accent-ink); }
.onboarding > div { flex: 1; }
.onboarding strong { font-size: 13px; font-weight: 500; }
.onboarding p { font-size: 11px; color: var(--muted); margin: 5px 0 0; }
.empty-state { padding: 38px 22px; color: var(--muted); text-align: center; }
.empty-state h2, .empty-state h3 { font-size: 14px; font-weight: 500; margin: 14px 0 8px; color: var(--ink); }
.empty-state p { font-size: 11px; color: var(--subtle); max-width: 370px; margin: 0 auto 15px; line-height: 1.8; }
.empty-state .button { margin-top: 6px; }
.compact { padding: 25px 22px 30px; }
.empty-icon { display: inline-grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line); background: var(--soft); border-radius: 12px; color: var(--accent); }
.empty-donut { width: 116px; height: 116px; border: 15px solid var(--line); border-radius: 50%; margin: 0 auto 22px; display: grid; place-items: center; }
.empty-donut .brand-mark { width: 38px; height: 38px; color: var(--subtle); }
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 11px; padding: 22px; }
.filters select { max-width: 180px; }
.search-field { flex: 1; min-width: 190px; position: relative; }
.search-field > .icon { position: absolute; top: 14px; left: 12px; width: 16px; height: 16px; color: var(--subtle); }
.search-field input { padding-left: 37px !important; width: 100%; }
.list-caption { padding: 0 25px 18px; font-size: 11px; color: var(--subtle); }
input:not([type=radio]), select, textarea { min-height: 44px; color: var(--ink); background: var(--raised); border: 1px solid var(--line-strong); border-radius: 8px; padding: 10px 12px; font-size: 12px; max-width: 100%; }
input::placeholder, textarea::placeholder { color: var(--subtle); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 2px; }
.month-picker input { border: 0; background: transparent; min-height: 32px; padding: 5px; font-size: 11px; }
.theme-picker select, .currency-picker select { background: transparent; border: 0; min-height: 28px; padding: 3px 4px; font-size: 10px; }
option { color: var(--ink); background: var(--paper); }
.form-panel { max-width: 780px; padding: 30px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.field { display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.field label { font-size: 12px; font-weight: 500; color: var(--ink); }
.field small, .form-hint { color: var(--subtle); font-size: 11px; line-height: 1.8; }
.span-two { grid-column: 1 / -1; }
.optional { color: var(--subtle); font-size: 10px; font-weight: 400; }
.form-footer { display: flex; align-items: center; justify-content: space-between; gap: 15px; border-top: 1px solid var(--line); margin-top: 28px; padding-top: 23px; }
.type-choice, .color-options { border: 0; padding: 0; display: flex; gap: 13px; margin: 0 0 26px; }
.type-choice legend, .color-options legend { font-size: 12px; color: var(--ink); font-weight: 500; margin-bottom: 13px; }
.type-choice label { flex: 1; }
.type-choice input, .color-options input { position: absolute; opacity: 0; pointer-events: none; }
.type-choice span { display: flex; justify-content: center; align-items: center; gap: 10px; padding: 13px 18px; border: 1px solid var(--line-strong); border-radius: 8px; color: var(--muted); font-size: 12px; }
.type-choice input:checked + span { background: var(--light); border-color: var(--accent); color: var(--accent-ink); }
.type-choice input:focus-visible + span, .color-options input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 4px; }
.help-box { display: flex; align-items: flex-start; gap: 12px; padding: 17px; margin-top: 24px; border: 1px solid var(--line); border-radius: 10px; background: var(--soft); color: var(--muted); }
.help-box > .icon { color: var(--accent); width: 18px; height: 18px; }
.help-box p { font-size: 11px; line-height: 1.8; margin: 0; }
.help-box strong { font-weight: 500; }
.account-totals { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 25px; }
.account-total { display: flex; flex: 1; flex-direction: column; gap: 11px; min-width: 230px; max-width: 480px; padding: 28px; background: linear-gradient(120deg, #2a3031, #15191a 80%); border: 1px solid #c9ad7338; color: #f3f0e9; border-radius: var(--radius); margin-bottom: 0; }
.account-total span { font-size: 12px; color: #c6c3bb; }
.account-total strong { font-size: 36px; font-weight: 500; letter-spacing: -1px; font-variant-numeric: tabular-nums; }
.account-total small { font-size: 10px; color: #aaa79f; }
.account-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.account-card { padding: 25px; }
.account-card .panel-heading { padding: 0 0 20px; }
.account-card h2 { font-size: 14px; font-weight: 500; margin: 0 0 18px; overflow-wrap: anywhere; }
.account-balance { display: block; font-size: 29px; font-weight: 500; letter-spacing: -.8px; font-variant-numeric: tabular-nums; }
.account-card > p { font-size: 10px; }
.account-card .form-footer { padding-top: 18px; margin-top: 24px; }
.full-width { grid-column: 1 / -1; width: 100%; }
.category-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 23px; }
.category-row { display: flex; align-items: center; gap: 13px; padding: 18px 25px; border-top: 1px solid var(--line); }
.category-mark { width: 33px; height: 33px; display: grid; place-items: center; flex-shrink: 0; color: #fff; border-radius: 9px; }
.category-mark .icon { width: 15px; height: 15px; }
.category-info { flex: 1; }
.category-info strong { font-size: 12px; font-weight: 500; }
.category-info small { display: block; font-size: 10px; color: var(--subtle); margin-top: 4px; }
.color-options { margin: 27px 0; flex-wrap: wrap; }
.color-options span { display: grid; place-items: center; width: 35px; height: 35px; border: 4px solid var(--paper); border-radius: 50%; color: transparent; cursor: pointer; }
.color-options input:checked + span { color: #fff; box-shadow: 0 0 0 2px var(--accent); }
.budget-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 24px; align-items: start; }
.budget-item { border-top: 1px solid var(--line); padding: 9px 0 18px; }
.budget-item .row-actions { padding: 0 25px; }
.budget-create { padding: 0 25px 25px; }
.budget-create .panel-heading { padding: 25px 0; }
.budget-create .field { margin-bottom: 21px; }
.budget-create p { color: var(--subtle); font-size: 11px; }
.pagination { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 22px; font-size: 11px; color: var(--muted); }
.automation-banner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 21px 24px; margin-bottom: 25px; border: 1px solid var(--line); border-radius: 13px; background: var(--soft); }
.automation-banner strong { font-size: 13px; font-weight: 500; }
.automation-banner p { font-size: 11px; color: var(--muted); margin: 6px 0 0; line-height: 1.8; }
.connection-status { display: inline-flex; align-items: center; font-size: 9px; color: var(--warm); background: color-mix(in srgb, var(--warm) 7%, transparent); border: 1px solid color-mix(in srgb, var(--warm) 19%, transparent); padding: 5px 9px; border-radius: 20px; white-space: nowrap; }
.connection-status.connected { color: var(--cyan); background: color-mix(in srgb, var(--cyan) 7%, transparent); border-color: color-mix(in srgb, var(--cyan) 19%, transparent); }
.integration-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 23px; align-items: start; }
.connection-card .panel-heading { align-items: flex-start; }
.connection-card .panel-heading > div { flex: 1; }
.source-logo { display: grid; place-items: center; width: 40px; height: 40px; background: var(--light); border: 1px solid var(--line); border-radius: 11px; color: var(--accent-ink); margin-bottom: 17px; }
.gmail-logo { font-size: 24px; font-weight: 600; color: var(--muted); background: var(--soft); }
.connection-body { padding: 0 25px 25px; font-size: 12px; }
.connection-body > p { line-height: 1.85; color: var(--muted); }
.connection-intro { font-size: 12px; line-height: 1.85; color: var(--muted); }
.connection-form { display: flex; flex-direction: column; gap: 20px; margin-top: 23px; }
.connection-form .form-grid { gap: 15px; }
.connection-form input, .connection-form select, .connection-form textarea { width: 100%; }
.connection-form .button { align-self: flex-start; }
.source-highlight { padding: 17px 18px; border: 1px solid var(--line); background: var(--light); border-radius: 10px; margin: 3px 0 18px; color: var(--accent-ink); }
.source-highlight strong { font-size: 12px; font-weight: 500; }
.source-highlight p { color: var(--muted); font-size: 11px; line-height: 1.85; margin: 8px 0 0; }
.connected-label { color: var(--ink); font-size: 12px; }
.connection-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin: 18px 0; }
.connection-actions form { display: flex; align-items: center; gap: 8px; min-width: 0; }
.integration-details { margin-top: 21px; padding-top: 17px; border-top: 1px solid var(--line); }
.integration-details summary { cursor: pointer; font-size: 12px; font-weight: 500; color: var(--muted); }
.integration-details .form-hint { font-size: 11px; }
.setup-code { display: block; padding: 14px 16px; background: var(--raised); border: 1px solid var(--line); color: var(--accent-ink); border-radius: 8px; font-size: 11px; line-height: 1.9; overflow-wrap: anywhere; }
.check-field { display: flex; gap: 10px; align-items: flex-start; font-size: 11px; line-height: 1.85; color: var(--muted); }
.check-field input[type=checkbox] { min-height: 0; width: 16px; height: 16px; flex-shrink: 0; margin-top: 3px; accent-color: var(--accent); }
.integration-section { margin-top: 24px; }
.source-account { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 25px; border-top: 1px solid var(--line); }
.source-account strong { font-size: 12px; font-weight: 500; }
.source-account small { display: block; font-size: 10px; color: var(--subtle); margin-top: 6px; }
.source-account .connection-actions { margin: 0; }
.rule-form { display: flex; align-items: flex-end; gap: 13px; margin: 5px 0 22px; }
.rule-form .field { flex: 1; }
.rule-line { display: flex; align-items: center; justify-content: space-between; gap: 15px; border-top: 1px solid var(--line); padding: 13px 0; font-size: 11px; color: var(--muted); }
.rule-line strong { font-weight: 500; color: var(--ink); }
.runtime-help { font-size: 11px; color: var(--subtle); line-height: 1.9; margin-top: 27px; }
.import-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.import-tabs a { padding: 9px 14px; border: 1px solid var(--line); border-radius: 7px; font-size: 11px; color: var(--muted); }
.import-tabs a.selected { color: var(--accent-ink); background: var(--light); border-color: color-mix(in srgb, var(--accent) 32%, transparent); }
.import-meta { display: block; margin-top: 5px; font-size: 9px; color: var(--subtle); }
.document-layout { display: grid; grid-template-columns: 1.15fr 1fr; align-items: start; gap: 23px; }
.document-source h2 { line-height: 1.8; overflow-wrap: anywhere; }
.document-text { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 520px; overflow: auto; padding: 17px; background: var(--raised); font-size: 11px; line-height: 1.8; color: var(--muted); }
.document-form .field { margin-bottom: 20px; }
.document-form .form-grid { gap: 16px; }
.duplicate-box { padding: 17px; margin-bottom: 23px; background: color-mix(in srgb, var(--warm) 6%, var(--paper)); border: 1px solid color-mix(in srgb, var(--warm) 25%, transparent); border-radius: 10px; color: var(--warm); font-size: 11px; line-height: 1.8; }
.duplicate-box p { font-size: 11px; }
.duplicate-box .button { white-space: normal; text-align: left; margin-top: 9px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 100; top: -60px; left: 14px; background: var(--paper); color: var(--ink); padding: 10px; border: 1px solid var(--accent); border-radius: 7px; }
.skip-link:focus { top: 12px; }
@media (max-width: 1200px) {
    .sidebar { width: 226px; padding-inline: 17px; }
    .app-shell { margin-left: 226px; }
    .brand { gap: 8px; }
    .brand > .brand-mark { width: 40px; height: 40px; }
    .brand-wordmark { width: 124px; }
    main { padding: 35px 28px 22px; }
    .topbar { padding-inline: 28px; }
    .title-row { flex-direction: column; align-items: flex-start; gap: 22px; }
    .page-actions { justify-content: flex-start; }
    .stat-card { padding: 23px 19px; }
    .stat-card > strong { font-size: 27px; }
    .featured > strong { font-size: 32px; }
    .account-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .category-grid, .integration-grid, .document-layout { grid-template-columns: 1fr; }
    .source-account { align-items: flex-start; flex-direction: column; }
    .connection-card .panel-heading h2 { font-size: 15px; }
    .onboarding { flex-wrap: wrap; }
    .onboarding .button { margin-left: 62px; }
    .dashboard-charts { grid-template-columns: 1.2fr 1fr; }
}
@media (max-width: 1000px) {
    .stats-grid.three { grid-template-columns: 1fr 1fr; }
    .stats-grid.three .featured { grid-column: 1 / -1; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .dashboard-charts, .dashboard-bottom, .budget-layout { grid-template-columns: 1fr; }
    .account-grid { grid-template-columns: 1fr; }
    .category-row { flex-wrap: wrap; }
    .category-row .row-actions { margin-left: auto; }
    .filters select { flex: 1; max-width: none; min-width: 120px; }
    .rule-form { flex-wrap: wrap; }
    .rule-form .field { min-width: 170px; }
    .topbar-tools { gap: 10px; }
}
@media (max-width: 760px) {
    .sidebar { position: sticky; top: 0; width: 100%; padding: 14px 20px; display: grid; grid-template-columns: 1fr auto; align-items: center; border-right: 0; border-bottom: 1px solid #ffffff0d; overflow: visible; }
    .brand { padding: 0; gap: 10px; }
    .brand > .brand-mark { width: 34px; height: 34px; }
    .brand-wordmark { width: 120px; }
    .mobile-menu-toggle { display: flex; align-items: center; justify-content: center; gap: 8px; color: #e1dfd9; background: transparent; border: 1px solid #ffffff20; border-radius: 7px; padding: 9px 11px; min-height: 42px; font-size: 10px; }
    .mobile-menu-toggle .icon { width: 17px; height: 17px; }
    .workspace-label, .sidebar-note, .sidebar-footer, .sidebar .second-section, .sidebar nav > .muted { display: none; }
    .sidebar nav { display: none; grid-column: 1 / -1; padding: 20px 0 5px; max-height: calc(100dvh - 100px); overflow: auto; }
    .sidebar.is-open nav { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
    .sidebar nav > .nav-section { grid-column: 1 / -1; margin: 0 12px 6px; }
    .nav-link { margin: 0; padding: 11px 12px; min-height: 44px; font-size: 11px; }
    .nav-link .icon { width: 17px; height: 17px; }
    .nav-indicator { display: none; }
    .app-shell { margin-left: 0; }
    .topbar { height: 56px; padding: 0 20px; gap: 10px; }
    .breadcrumb { font-size: 10px; }
    .breadcrumb span { padding: 0 7px; }
    .local-label { display: none; }
    .local-badge { gap: 4px; }
    .local-badge > i { display: none; }
    .theme-picker { padding-left: 10px; gap: 3px; }
    .theme-picker .icon { width: 13px; height: 13px; }
    main { padding: 31px 20px 22px; }
    h1 { font-size: 30px; letter-spacing: -.9px; }
    .eyebrow { font-size: 8px; margin-bottom: 12px; letter-spacing: .15em; }
    .subtitle { font-size: 11px; max-width: 340px; }
    .title-row { gap: 23px; margin-bottom: 28px; }
    .page-actions { width: 100%; gap: 9px; }
    .page-actions > .primary { flex: 1; padding-inline: 12px; font-size: 10px; }
    .month-picker { gap: 0; }
    .month-picker input { width: 119px; font-size: 10px; }
    .month-picker a { width: 21px; }
    .stats-grid { gap: 12px; margin-bottom: 23px; }
    .stat-card { padding: 20px 17px; min-height: 145px; border-radius: var(--radius); }
    .stat-card > strong { font-size: 24px; letter-spacing: -.7px; margin-top: 20px; }
    .stat-card > small { font-size: 9px; }
    .featured { min-height: 166px; padding: 23px; }
    .featured > strong { font-size: 38px; }
    .stat-top { font-size: 10px; }
    .stat-symbol { width: 25px; height: 25px; }
    .monthly-net { font-size: 9px; margin-top: -8px; margin-bottom: 23px; }
    .attention-strip { padding: 15px; gap: 11px; flex-wrap: wrap; margin-bottom: 23px; }
    .attention-strip strong { font-size: 11px; }
    .attention-strip p { font-size: 9px; }
    .attention-strip .text-link { margin-left: 29px; }
    .dashboard-charts, .dashboard-bottom { gap: 20px; margin-bottom: 23px; }
    .panel { border-radius: var(--radius); }
    .panel-heading { padding: 22px 20px 19px; }
    .panel-heading h2 { font-size: 13px; }
    .panel-heading p { font-size: 10px; }
    .text-link { font-size: 10px; }
    .section-caption { font-size: 10px; }
    .section-caption > span:last-child { font-size: 7px; letter-spacing: .07em; }
    .caption-line { width: 20px; }
    .account-line { padding: 18px 20px; gap: 10px; }
    .account-line strong { font-size: 10px; }
    .account-line small { font-size: 9px; }
    .account-icon { width: 32px; height: 32px; border-radius: 4px; }
    .main-footer { font-size: 8px; flex-wrap: wrap; padding-top: 25px; }
    .dashboard-details > summary { font-size: 11px; }
    .dashboard-details > summary > span { display: block; margin: 7px 0 0 15px; }
    .onboarding { padding: 20px; gap: 12px; align-items: flex-start; }
    .onboarding-symbol { width: 36px; height: 36px; }
    .onboarding > div { min-width: 180px; }
    .onboarding .button { margin-left: 48px; }
    .form-panel { padding: 23px; }
    .form-grid { grid-template-columns: 1fr; gap: 21px; }
    .span-two { grid-column: auto; }
    .form-footer .button { font-size: 11px; white-space: normal; padding-inline: 12px; }
    .type-choice span { padding-inline: 12px; font-size: 11px; }
    .category-row { padding-inline: 20px; }
    .category-info strong { font-size: 11px; }
    .color-options { gap: 8px; }
    .account-card { padding: 23px; }
    .account-balance { font-size: 28px; }
    .account-total { min-width: 0; width: 100%; flex-basis: 100%; padding: 24px; }
    .account-total strong { font-size: 34px; }
    .notice { font-size: 11px; padding: 15px; align-items: flex-start; }
    .automation-banner { flex-direction: column; align-items: flex-start; padding: 20px; gap: 15px; }
    .connection-body { padding: 0 20px 23px; }
    .connection-card .panel-heading { flex-wrap: wrap; }
    .connection-card .panel-heading h2 { color: var(--heading); font-size: 14px; }
    .rule-form { flex-direction: column; align-items: stretch; }
    .rule-form .field { min-width: 0; }
    .source-account { padding: 20px; }
    .source-account .connection-actions { flex-direction: column; align-items: flex-start; }
    .source-account .connection-actions form { flex-wrap: wrap; }
    .source-account .connection-actions select { max-width: 100%; }
    .connection-form .button { white-space: normal; }
    .rule-line { align-items: flex-start; font-size: 10px; }
    th, td { padding-inline: 18px; }
    .budget-row { padding-inline: 20px; }
    .budget-heading { flex-wrap: wrap; font-size: 11px; }
    .budget-caption { font-size: 9px; }
    .import-tabs { gap: 6px; }
    .import-tabs a { font-size: 10px; padding: 8px 11px; }
    .document-source .notice { font-size: 10px; }
}

.finance-deck { display: grid; grid-template-columns: minmax(0, 1fr) 160px; column-gap: 24px; position: relative; overflow: hidden; padding: 27px 30px 20px; margin-bottom: 26px; background: radial-gradient(ellipse at 95% 0, #c9ad7312, transparent 50%), linear-gradient(115deg, #252728, #111415 76%); border: 1px solid #ffffff1b; border-radius: 24px; color: #f3f0e9; box-shadow: inset 0 1px 0 #ffffff12, 0 18px 55px #00000008; }
.finance-deck::before { content: ""; position: absolute; top: 0; left: 12%; right: 12%; height: 1px; background: linear-gradient(90deg, transparent, #e9e9dc68 30%, #c9ad7370 70%, transparent); }
.finance-deck .section-caption { grid-column: 1; color: #c0c2ba; margin-bottom: 24px; }
.finance-deck .section-caption > span:last-child { color: #929a98; }
.finance-deck .caption-line { background: #ffffff24; }
.finance-deck .stats-grid { grid-column: 1; gap: 0; margin-bottom: 0; }
.finance-deck .stat-card { padding: 0 20px 22px; border: 0; border-left: 1px solid #ffffff13; border-radius: 0; min-height: 160px; background: transparent; }
.finance-deck .featured { padding-left: 0; border-left: 0; }
.finance-deck .stat-top { color: #b9c0bb; font-size: 10px; letter-spacing: .03em; }
.finance-deck .stat-card > strong { margin-top: 22px; font-weight: 400; }
.finance-deck .featured > strong { font-size: clamp(29px, 2.8vw, 42px); letter-spacing: -1.8px; }
.finance-deck .stat-card > small { color: #929b97; }
.finance-deck .stat-symbol.income { color: #a8c1b4; background: #a8c1b40d; }
.finance-deck .stat-symbol.expense { color: #d3bb88; background: #c9ad730d; }
.finance-deck .balance-orbit { width: 145px; height: 145px; bottom: -20px; right: 8px; opacity: .055; }
.finance-deck .monthly-net { grid-column: 1 / -1; margin: 0; padding-top: 15px; border-top: 1px solid #ffffff13; color: #929b97; }
.finance-deck .monthly-net strong { color: #e4e6dd; }
.finance-deck .deck-aura { --aura-float: 6px; grid-column: 2; grid-row: 1 / 3; align-self: center; justify-self: center; width: 210px; height: 210px; margin-right: -8px; animation-duration: 60s; }
.deck-aura .aura-reflection { animation-duration: 12s; }
@keyframes aura-orbit {
    0% { transform: translateY(0) rotate(-8deg) scale(1); }
    25% { transform: translateY(calc(-1 * var(--aura-float))) rotate(82deg) scale(1.025); }
    50% { transform: translateY(0) rotate(172deg) scale(1); }
    75% { transform: translateY(var(--aura-float)) rotate(262deg) scale(.985); }
    100% { transform: translateY(0) rotate(352deg) scale(1); }
}
@keyframes aura-light-travel {
    0%, 100% { background-position: 68% 60%; }
    25% { background-position: 46% 77%; }
    50% { background-position: 28% 47%; }
    75% { background-position: 50% 24%; }
}
@media (max-width: 1150px) {
    .finance-deck { grid-template-columns: minmax(0, 1fr); }
    .finance-deck .deck-aura { position: absolute; top: 15px; right: 15px; width: 145px; height: 145px; margin: 0; opacity: .2; pointer-events: none; }
}
@media (max-width: 1000px) {
    .finance-deck .featured { padding-bottom: 25px; margin-bottom: 22px; border-bottom: 1px solid #ffffff13; }
    .finance-deck .stat-card:nth-child(2) { padding-left: 0; border-left: 0; }
}
@media (max-width: 760px) {
    .finance-deck { padding: 22px 20px 18px; margin-bottom: 23px; border-radius: 20px; }
    .finance-deck::before { left: 20px; right: 20px; }
    .finance-deck .section-caption { margin-bottom: 22px; }
    .finance-deck .stat-card { padding: 0 0 20px 17px; min-height: 133px; }
    .finance-deck .featured { padding-left: 0; padding-right: 0; min-height: 143px; margin-bottom: 21px; }
    .finance-deck .deck-aura { top: 63px; right: -18px; width: 155px; height: 155px; opacity: .2; }
    .finance-deck .stat-card > strong { font-size: 24px; margin-top: 21px; }
    .finance-deck .featured > strong { font-size: 40px; }
    .finance-deck .stat-top { font-size: 9px; }
    .finance-deck .stat-symbol { width: 22px; height: 22px; }
    .finance-deck .stat-card > small { font-size: 9px; }
    .finance-deck .monthly-net { font-size: 9px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}

.auth-page { min-height: 100svh; display: grid; place-items: center; padding: 32px 20px; background: radial-gradient(ellipse at 50% 10%, var(--light), transparent 65%), var(--bg); }
.auth-card { width: 100%; max-width: 480px; padding: 40px; }
.auth-brand { gap: 16px; margin-bottom: 40px; }
.auth-brand > .brand-mark { width: 54px; height: 54px; }
.auth-brand .brand-wordmark { width: 168px; color: var(--heading); --wordmark-accent: var(--accent-ink); }
.auth-card h1 { font-size: clamp(26px, 4vw, 34px); line-height: 1.2; margin: 12px 0; }
.auth-card .subtitle { margin-bottom: 28px; }
.auth-submit { width: 100%; margin-top: 12px; justify-content: center; }
.auth-code { text-align: center; font-size: 26px; letter-spacing: 0.4em; font-variant-numeric: tabular-nums; }
.auth-return { display: block; text-align: center; margin-top: 24px; }
.auth-note { color: var(--subtle); text-align: center; font-size: 12px; margin: 32px 0 0; }
.sidebar-footer .logout-form { margin-left: auto; }
.sidebar-footer .logout-form button { font-size: 11px; }
@media (max-width: 520px) { .auth-card { padding: 28px 24px; } }

.wealth-overview { display: grid; grid-template-columns: 1.2fr 1fr; gap: 36px; padding: 32px; margin-bottom: 32px; background: radial-gradient(ellipse at top left, var(--light), transparent 70%), var(--paper); }
.wealth-total { display: block; font-size: clamp(28px, 3.5vw, 44px); font-weight: 400; letter-spacing: -1.2px; margin: 22px 0 18px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.wealth-breakdown { display: grid; align-content: center; gap: 18px; }
.wealth-breakdown > div, .asset-details > div { display: flex; justify-content: space-between; gap: 16px; }
.wealth-breakdown span, .asset-details dt { color: var(--muted); font-size: 12px; }
.wealth-breakdown strong, .asset-details dd { font-variant-numeric: tabular-nums; font-size: 13px; font-weight: 500; margin: 0; text-align: right; }
.asset-details { display: grid; gap: 14px; border-top: 1px solid var(--line); padding-top: 20px; margin: 22px 0; }
.asset-notes { white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 760px) { .wealth-overview { grid-template-columns: 1fr; padding: 24px; gap: 24px; } .wealth-breakdown { padding-top: 24px; border-top: 1px solid var(--line); } }

[data-asset-loan][hidden], [data-asset-manual-debt][hidden] { display: none; }
/* Consolidated amounts keep their source currency available without competing with CAD. */
.converted-money { display: inline-block; }
.native-amount { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; font-weight: 400; line-height: 1.5; }
.exchange-note { margin: 0 0 24px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.exchange-note summary { cursor: pointer; color: var(--ink); }
.exchange-note summary span { color: var(--muted); }
.exchange-note p { margin: 8px 0 0; }
.wealth-credits { margin-bottom: 32px; }
.credit-impact { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding: 0 28px 24px; }
.credit-impact > div { min-width: 0; }
.credit-impact span { display: block; color: var(--muted); font-size: 12px; margin-bottom: 12px; }
.credit-impact strong { display: block; font-size: clamp(20px, 2.1vw, 28px); font-weight: 400; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.credit-impact-net { border-left: 1px solid var(--line); padding-left: 24px; }
.credit-impact-net strong { color: var(--accent-ink); }
.credit-explanation { margin: 0; padding: 0 28px 24px; }
.credit-details { border-top: 1px solid var(--line); padding: 20px 28px; font-size: 12px; }
.credit-details summary { cursor: pointer; color: var(--muted); }
.credit-list { padding-top: 12px; }
.credit-line { display: flex; justify-content: space-between; gap: 20px; padding: 16px 0; }
.credit-line + .credit-line { border-top: 1px solid var(--line); }
.credit-line > div:first-child { min-width: 0; overflow-wrap: anywhere; }
.credit-line small { display: block; color: var(--muted); margin-top: 6px; }
.credit-outstanding { text-align: right; flex-shrink: 0; font-variant-numeric: tabular-nums; }
.credit-outstanding strong { font-weight: 500; }
@media (max-width: 760px) {
    .credit-impact { grid-template-columns: 1fr; gap: 20px; padding: 0 24px 24px; }
    .credit-impact > div { display: block; }
    .credit-impact span { margin-bottom: 8px; }
    .credit-impact strong { font-size: 22px; text-align: left; }
    .credit-impact-net { border-left: 0; border-top: 1px solid var(--line); padding: 20px 0 0; }
    .credit-explanation { padding: 0 24px 24px; }
    .credit-details { padding: 20px 24px; }
}
.account-scope { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 20px; }
.account-scope .form-hint { margin: 0; }
.mortgage-switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 12px; color: var(--ink); }
.switch-track { display: inline-block; width: 38px; height: 22px; border-radius: 20px; background: var(--raised); border: 1px solid var(--line-strong); position: relative; flex-shrink: 0; transition: background 160ms ease; }
.switch-track::after { content: ''; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--muted); transition: transform 160ms ease; }
.mortgage-switch input:checked + .switch-track { background: var(--accent-button); border-color: var(--accent-button); }
.mortgage-switch input:checked + .switch-track::after { transform: translateX(16px); background: var(--on-accent); }
.mortgage-switch input:focus-visible + .switch-track { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (max-width: 760px) { .account-scope { align-items: flex-start; flex-direction: column; gap: 12px; } }
@media (prefers-reduced-motion: reduce) { .switch-track, .switch-track::after { transition: none; } }
.subscription-guidance { margin: 0 0 24px; }
.subscription-preview { display: flex; justify-content: space-between; gap: 24px; padding: 28px; margin-bottom: 28px; }
.subscription-preview .eyebrow { margin: 0 0 16px; }
.subscription-preview strong { font-size: clamp(25px, 3vw, 36px); font-weight: 400; font-variant-numeric: tabular-nums; }
.subscription-preview strong small { font-size: 13px; color: var(--muted); }
.subscription-preview p:last-child { max-width: 580px; color: var(--muted); font-size: 12px; margin-bottom: 0; }
.subscription-preview > .icon { color: var(--accent); flex-shrink: 0; margin-top: 4px; }
.subscription-actions { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; margin-top: 22px; }
.subscription-actions .button { font-size: 11px; }
.subscription-actions .text-button { font-size: 11px; }
.subscription-card .notice { font-size: 11px; margin: 16px 0; padding: 12px; }
.subscription-to-cancel { color: var(--red); border-color: color-mix(in srgb, var(--red) 30%, transparent); }

.invoice-overview { margin: 0 0 24px; padding: 0; }
.invoice-overview > summary { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding: 20px 24px; cursor: pointer; }
.invoice-overview .connection-body { padding-top: 0; }
.invoice-evidence { padding: 14px 0; border-top: 1px solid var(--line); }
.invoice-items { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 14px; }
.invoice-items li { display: grid; gap: 5px; }
.invoice-items li > span { font-size: .82rem; color: var(--muted); line-height: 1.6; }
.invoice-items strong { font-size: .92rem; font-weight: 500; }
.invoice-leads { margin-top: 28px; }
.invoice-lead + .invoice-lead { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.subscription-source-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 20px 0; }
.subscription-source-filter label { color: var(--muted); font-size: .85rem; }
.subscription-source-filter select { width: auto; max-width: 100%; }
.subscription-service-name { color: var(--accent-ink); font-size: .86rem; margin-top: -12px; margin-bottom: 16px; line-height: 1.6; }
.subscription-classification { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 14px; font-size: .72rem; color: var(--muted); }
.subscription-classification span { padding: 4px 9px; border: 1px solid var(--line); border-radius: 6px; }
.subscription-classification .importance-essential { color: var(--cyan); background: color-mix(in srgb, var(--cyan) 7%, transparent); }
.subscription-classification .importance-useful { color: var(--accent-ink); }
.subscription-source-filter select { min-width: 150px; max-width: 280px; }
.asset-receipt-link { padding-top: 18px; }
.asset-receipt-history { margin-top: 24px; }
.asset-receipt-line { display: flex; justify-content: space-between; align-items: start; gap: 20px; padding: 18px 0; }
.asset-receipt-line + .asset-receipt-line { border-top: 1px solid var(--line); }
.asset-receipt-summary .stat-card > span { color: var(--muted); }
.receipt-picker { position: relative; }
.receipt-results { position: absolute; top: 82px; left: 0; right: 0; z-index: 10; max-height: 380px; overflow-y: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); box-shadow: 0 20px 50px #0005; padding: 6px; }
.receipt-option { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px; border: 0; border-radius: 10px; color: var(--ink); background: transparent; font: inherit; text-align: left; cursor: pointer; }
.receipt-option > span { min-width: 0; }
.receipt-option strong { font-size: 14px; overflow-wrap: anywhere; }
.receipt-option > strong { flex-shrink: 0; }
.receipt-option small, .receipt-selected-row small { display: block; color: var(--muted); font-size: 12px; margin-top: 5px; }
.receipt-option:hover, .receipt-option.is-highlighted { background: var(--raised); }
.receipt-option .period-badge { display: inline-block; margin-top: 8px; font-size: 11px; }
.receipt-no-results { padding: 14px; }
.receipt-selection:empty { display: none; }
.receipt-selected-row { display: grid; grid-template-columns: minmax(0, 1fr) 190px auto; align-items: center; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.receipt-selected-row > div > strong { font-weight: 500; overflow-wrap: anywhere; }
.receipt-selected-row .field { margin: 0; }
.receipt-selection-total { padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; }
.receipt-selection-total > * { display: block; }
.receipt-selection-total > strong { margin: 8px 0; font-size: 22px; font-weight: 500; }
.receipt-selection-total > small { color: var(--muted); }
.classification-review { display: block; max-width: 240px; color: var(--muted); font-size: 10px; margin-top: 6px; }
.field-error { color: var(--red) !important; font-size: 12px; }
.subscription-commitments, .trip-add, .trip-advice { margin: 24px 0; }
.budget-composition { margin: 24px 0; }
.expense-composition { margin: 24px 0; }
.budget-chart-legend.expense-chart-legend { max-height: 420px; overflow-y: auto; padding-right: 14px; scrollbar-gutter: stable; }
.budget-chart-legend.expense-chart-legend li { padding: 0; }
.expense-chart-legend li > a { display: flex; justify-content: space-between; align-items: center; width: 100%; gap: 20px; padding: 10px 0; color: var(--ink); text-decoration: none; }
.expense-chart-legend li > a:hover .budget-chart-category { color: var(--accent-ink); }
.expense-chart-legend li > a > span:last-child { white-space: nowrap; text-align: right; }
.budget-chart-legend.interactive-chart-legend li { padding: 0; }
.interactive-chart-legend li > a, .interactive-chart-legend li > div { display: flex; align-items: center; justify-content: space-between; gap: 20px; width: 100%; padding: 9px 0; color: var(--ink); text-decoration: none; }
.interactive-chart-legend li > a:hover { color: var(--accent-ink); }
.interactive-chart-legend li > a > span:last-child, .interactive-chart-legend li > div > span:last-child { text-align: right; white-space: nowrap; }
.category-review-summary { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; padding: 30px; margin: 24px 0; align-items: center; }
.category-review-summary h2 { margin: 10px 0; font-size: 15px; font-weight: 500; }
.category-review-summary .review-total { display: block; font-size: 36px; font-weight: 400; line-height: 1.4; }
.category-review-summary > div:last-child { border-left: 1px solid var(--line); padding-left: 30px; }
.category-review-summary > div:last-child > span, .category-review-summary > div:last-child > small { display: block; font-size: 12px; color: var(--muted); }
.category-review-summary > div:last-child > strong { display: block; font-size: 22px; font-weight: 500; margin: 9px 0; }
.category-review-list { margin: 24px 0; }
.category-review-list .panel-heading { flex-wrap: wrap; gap: 18px; }
.category-review-cards { padding: 0 26px 26px; }
.category-review-card { padding: 24px; margin-bottom: 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); min-width: 0; }
.category-review-card:last-child { margin-bottom: 0; }
.category-review-heading { display: flex; justify-content: space-between; align-items: start; gap: 24px; }
.category-review-heading > div { min-width: 0; }
.category-review-heading a { font-size: 15px; font-weight: 500; color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.category-review-heading a:hover { color: var(--accent-ink); }
.category-review-heading small { display: block; color: var(--muted); font-size: 11px; line-height: 1.6; margin: 7px 0 14px; overflow-wrap: anywhere; }
.category-review-heading > strong { font-size: 21px; font-weight: 400; flex-shrink: 0; }
.category-review-current { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.category-choice-label { font-size: 11px; color: var(--muted); margin: 18px 0 10px; }
.category-quick-choices, .category-picker-options { display: flex; flex-wrap: wrap; gap: 8px; }
.category-quick-choices button, .category-picker-options button { background: transparent; border: 1px solid var(--line); border-radius: 9px; padding: 10px 13px; font-size: 11px; color: var(--ink); text-align: left; line-height: 1.5; max-width: 100%; }
.category-quick-choices button:hover, .category-picker-options button:hover { border-color: var(--accent-ink); color: var(--accent-ink); background: var(--light); }
.category-picker { margin-top: 18px; }
.category-picker summary { cursor: pointer; color: var(--accent-ink); font-size: 12px; padding: 6px 0; }
.category-picker .field { margin: 16px 0 10px; }
.category-picker-options { max-height: 230px; overflow-y: auto; padding: 2px 2px 6px; }
.category-apply-similar { font-size: 11px; color: var(--muted); margin-top: 20px; align-items: start; line-height: 1.6; }
.category-suggestion { margin: 8px 0; }
@media (max-width: 600px) {
    .category-review-summary { grid-template-columns: 1fr; gap: 20px; padding: 22px; }
    .category-review-summary > div:last-child { border-left: 0; border-top: 1px solid var(--line); padding: 20px 0 0; }
    .category-review-summary .review-total { font-size: 30px; }
    .category-review-cards { padding: 0 16px 16px; }
    .category-review-card { padding: 18px; }
    .category-review-heading { flex-direction: column; gap: 0; }
    .category-review-heading > strong { margin: 0 0 14px; }
    .category-quick-choices button, .category-picker-options button { padding: 11px 12px; min-height: 44px; }
}
.budget-composition .panel-heading { align-items: center; flex-wrap: wrap; gap: 20px; }
.budget-chart-tabs { display: flex; flex-wrap: wrap; gap: 5px; padding: 4px; border: 1px solid var(--line); border-radius: 10px; }
.budget-chart-tabs button { background: transparent; color: var(--muted); border: 0; border-radius: 7px; padding: 9px 12px; font-size: 11px; }
.budget-chart-tabs button[aria-selected="true"] { background: var(--light); color: var(--accent-ink); }
.budget-chart-panel { padding: 0 26px 24px; }
.budget-chart-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 40px; align-items: center; }
.budget-donut { width: 260px; height: 260px; border-radius: 50%; position: relative; margin: 14px auto 24px; }
.budget-donut > div { position: absolute; inset: 32px; border-radius: 50%; background: var(--paper); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 15px; }
.budget-donut small { font-size: 10px; color: var(--muted); line-height: 1.5; }
.budget-donut strong { display: block; font-size: 24px; font-weight: 400; white-space: nowrap; margin: 9px 0; }
.budget-chart-legend { list-style: none; padding: 0; margin: 0; }
.budget-chart-legend li { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.budget-chart-category { display: flex; gap: 10px; align-items: center; min-width: 0; }
.budget-chart-category i { display: block; width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.budget-chart-legend li > span:last-child { white-space: nowrap; text-align: right; }
.budget-chart-legend strong { font-size: 12px; font-weight: 500; }
.budget-chart-legend small { display: block; font-size: 10px; color: var(--muted); }
@media (max-width: 900px) { .budget-chart-layout { grid-template-columns: 240px minmax(0, 1fr); gap: 22px; } .budget-donut { width: 230px; height: 230px; } .budget-donut strong { font-size: 21px; } }
@media (max-width: 600px) { .budget-chart-layout { grid-template-columns: 1fr; gap: 6px; } .budget-chart-panel { padding: 0 20px 20px; } .budget-chart-tabs { width: 100%; } .budget-chart-tabs button { flex: 1; } .budget-chart-legend.expense-chart-legend { max-height: none; padding-right: 0; } }
.trip-report-totals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-bottom: 18px; }
.trip-report-totals span { display: block; font-size: 11px; color: var(--muted); }
.trip-report-totals strong { display: block; font-size: 24px; font-weight: 400; margin-top: 8px; }
.trip-movement { display: grid; grid-template-columns: minmax(0, 1fr) 170px auto; align-items: center; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.trip-movement .field { margin: 0; }
.trip-movement .check-field { align-items: start; }
.trip-movement strong { overflow-wrap: anywhere; }
#trip-confirm { margin-top: 20px; }
.trip-advice-row { display: flex; justify-content: space-between; align-items: start; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.trip-advice-row p { max-width: 700px; font-size: 12px; }
.trip-advice-row .period-badge { margin-left: 12px; }
.trip-advice-row form { display: grid; gap: 10px; min-width: 180px; }
.trip-delete { margin: 28px 0; }
.asset-calculation { margin: 20px 0; }
.asset-calculation > summary { padding: 20px 24px; cursor: pointer; color: var(--accent-ink); font-size: 12px; }
.asset-calculation small { display: block; color: var(--muted); font-size: 11px; }
@media (max-width: 760px) { .trip-movement { grid-template-columns: minmax(0, 1fr) auto; gap: 14px; } .trip-movement > div:first-child { grid-column: 1 / -1; } .trip-advice-row { flex-direction: column; } .trip-advice-row form { width: 100%; } .trip-advice-row .period-badge { display: block; margin: 8px 0 0; width: fit-content; } .trip-report-totals { grid-template-columns: 1fr; gap: 14px; } }
@media (max-width: 600px) { .stats-grid.three.trip-summary { grid-template-columns: 1fr; } }
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--red); }
.monthly-budget-settings { padding: 24px; margin-bottom: 24px; }
.monthly-budget-settings h2 { margin: 0; font-weight: 500; font-size: 19px; }
.monthly-budget-settings > form { display: flex; align-items: end; gap: 16px; margin-top: 18px; }
.monthly-budget-settings .field { max-width: 340px; flex: 1; margin: 0; }
.monthly-budget-settings .text-button { text-align: left; }
.budget-summary .stat-card > .text-link { display: block; margin-top: 10px; }
.budget-history-month { margin-top: 16px; }
.budget-history-month > strong { color: var(--muted); font-size: 12px; font-weight: 500; }
.budget-history-transaction { display: flex; align-items: start; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.budget-history-transaction > div { min-width: 0; }
.budget-history-transaction .text-link { display: block; white-space: normal; overflow-wrap: anywhere; }
.budget-history-transaction small { display: block; color: var(--muted); font-size: 10px; }
.budget-history-transaction > strong { white-space: nowrap; font-size: 12px; font-weight: 500; }
@media (max-width: 600px) { .monthly-budget-settings > form { align-items: stretch; flex-direction: column; } .monthly-budget-settings .field { max-width: none; } .stats-grid.three.budget-summary { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .receipt-selected-row { grid-template-columns: minmax(0, 1fr) auto; gap: 14px; } .receipt-selected-row > div:first-of-type { grid-column: 1 / -1; } .receipt-option { align-items: start; gap: 10px; padding: 12px 8px; } .receipt-option > strong { font-size: 12px; } .receipt-results { max-height: 320px; } }
@media (max-width: 600px) { .asset-receipt-line { flex-direction: column; } }
.budget-proposals { margin-bottom: 28px; }
.budget-proposal-list { margin: 18px 0 24px; }
.budget-proposal-row { display: grid; grid-template-columns: minmax(0, 1fr) 180px; gap: 24px; padding: 20px 0; border-top: 1px solid var(--line); }
.budget-proposal-row .check-field { margin: 0; }
@media (max-width: 600px) { .budget-proposal-row { grid-template-columns: 1fr; gap: 10px; } }
.budget-history-review { margin: 18px 0; }
.budget-history-assignment { padding: 12px 0; border-top: 1px solid var(--line); }
@media (max-width: 600px) { .stats-grid.three.asset-receipt-summary { grid-template-columns: 1fr; } }
