:root {
  color-scheme: dark;
  --bg: #101114;
  --surface: #191b20;
  --surface-raised: #22252c;
  --text: #f5f5f2;
  --muted: #969aa6;
  --line: #2c2f36;
  --lime: #d9f57b;
  --mint: #82e3c5;
  --purple: #ac93ed;
  --error: #ffaaa5;
  --font-display: "Space Grotesk", sans-serif;
  --font-body: "DM Sans", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-body); font-size: 14px; -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button, select { cursor: pointer; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
button { border: 0; }
button:disabled { cursor: wait; opacity: .65; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 4px; }
::selection { background: var(--lime); color: #151a14; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
[hidden] { display: none !important; }
.skip-link { position: fixed; top: -60px; left: 16px; z-index: 100; background: var(--lime); color: #101114; padding: 12px 20px; border-radius: 8px; }
.skip-link:focus { top: 12px; }

.app-shell { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 218px; padding: 37px 22px 22px; border-right: 1px solid var(--line); background: #121316; display: flex; flex-direction: column; z-index: 30; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 22px; font-weight: 700; letter-spacing: -.8px; width: fit-content; }
.brand-mark { display: grid; place-items: center; width: 31px; height: 31px; background: var(--lime); color: #141912; font-size: 22px; font-weight: 700; border-radius: 8px 8px 8px 2px; }
.brand-dot { color: var(--lime); }
.primary-nav { margin-top: 62px; }
.nav-label { margin: 0 12px 15px; color: #737883; font-size: 10px; text-transform: uppercase; letter-spacing: 1.7px; }
.nav-item { display: flex; align-items: center; gap: 13px; width: 100%; min-height: 46px; padding: 12px; color: #9699a3; font-weight: 500; border-radius: 10px; background: transparent; transition: background .2s, color .2s; }
.nav-item svg { width: 18px; height: 18px; }
.nav-item:hover { background: #1b1d22; color: #e7e9e3; }
.nav-item.active { color: var(--lime); background: #252a22; }
.sidebar-bottom { margin-top: auto; }
.insight-note { padding: 20px 12px 24px; margin-bottom: 19px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tiny-star { color: var(--lime); font-size: 28px; }
.insight-note p { font-family: var(--font-display); font-size: 16px; line-height: 1.45; margin: 9px 0; }
.insight-note > span:last-child { color: var(--muted); font-size: 11px; }
.settings-button { margin-bottom: 20px; }
.sidebar-profile { display: flex; align-items: center; gap: 10px; border-top: 1px solid var(--line); padding: 21px 0 0; font-size: 12px; }
.sidebar-profile > span:nth-child(2) { flex: 1; }
.sidebar-profile small { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }
.sidebar-profile > svg { width: 16px; color: var(--muted); }
.avatar { display: grid; place-items: center; flex-shrink: 0; width: 37px; height: 37px; border-radius: 50%; background: #c4ab97; border: 2px solid #e5c8b2; color: #35291f; font-family: var(--font-display); font-size: 12px; font-weight: 700; }
.avatar-small { width: 33px; height: 33px; border: 0; }
.workspace { margin-left: 218px; }
.topbar { display: flex; align-items: center; gap: 24px; height: 92px; padding: 0 38px; border-bottom: 1px solid var(--line); }
.global-search { position: relative; width: min(360px, 42%); display: flex; align-items: center; gap: 10px; }
.global-search > svg { position: absolute; left: 0; color: var(--muted); width: 18px; pointer-events: none; }
.global-search input { width: 100%; height: 44px; border: 1px solid transparent; border-radius: 10px; padding: 0 46px 0 29px; color: var(--text); background: transparent; outline-offset: 1px; }
.global-search input::placeholder { color: #818591; }
.global-search input:focus { background: var(--surface); border-color: #41464c; }
.global-search kbd { position: absolute; right: 7px; border: 1px solid #343740; border-radius: 5px; padding: 3px 5px; font-family: inherit; font-size: 10px; color: #90949e; pointer-events: none; }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 19px; }
.demo-label { color: #7d838c; font-size: 11px; }
.icon-button { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: #1b1d22; transition: background .2s; }
.icon-button:hover { background: #2c2f35; }
.notification-button { position: relative; }
.notification-button svg { width: 18px; }
.notification-dot { position: absolute; top: 9px; right: 9px; width: 5px; height: 5px; background: var(--lime); border: 1px solid #1b1d22; border-radius: 50%; }
.mobile-menu, .mobile-brand { display: none; }

main { max-width: 1660px; margin: 0 auto; padding: 36px 38px 22px; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 31px; }
.eyebrow { color: var(--muted); font-size: 11px; letter-spacing: .4px; margin: 0 0 9px; }
h1 { font-family: var(--font-display); font-size: clamp(26px, 2.3vw, 34px); font-weight: 500; letter-spacing: -1.4px; line-height: 1.2; margin: 0; }
h1 > span { color: var(--lime); }
.heading-note { margin: 9px 0 0; color: var(--muted); font-size: 13px; }
.date-button { display: flex; align-items: center; gap: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 9px; padding: 11px 14px; font-size: 12px; }
.date-button svg { width: 15px; color: var(--muted); }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 22px; align-items: start; }
.primary-column { min-width: 0; display: grid; gap: 22px; }
.right-column { display: grid; gap: 22px; min-width: 0; }
.money-overview { display: grid; grid-template-columns: minmax(0, 1fr) 226px; gap: 18px; }
.balance-card { position: relative; isolation: isolate; overflow: hidden; min-height: 277px; border-radius: 20px; background: linear-gradient(115deg, #72d9c5 0%, #b6eea2 45%, #dcf376 100%); color: #192c22; padding: 26px 27px; box-shadow: 0 12px 32px #0000000c; }
.balance-top { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; font-weight: 500; font-size: 14px; }
.plain-icon { display: grid; place-items: center; background: transparent; width: 32px; height: 32px; border-radius: 50%; color: var(--muted); }
.plain-icon:hover { background: #ffffff0a; color: var(--text); }
.balance-card .plain-icon { color: #385c47; width: 28px; height: 28px; }
.balance-card .plain-icon svg { width: 18px; }
.balance-value { position: relative; z-index: 1; margin-top: 11px; font-family: var(--font-display); font-size: clamp(33px, 3vw, 47px); font-weight: 600; letter-spacing: -2.4px; font-variant-numeric: tabular-nums; }
.balance-value > span { font-size: .64em; letter-spacing: -1.5px; }
.balance-change { position: relative; z-index: 1; display: flex; align-items: center; gap: 9px; margin: 10px 0 0; font-size: 11px; color: #42614b; }
.trend-up { color: #254d32; font-weight: 700; }
.balance-actions { position: absolute; z-index: 2; left: 27px; bottom: 26px; display: flex; gap: 9px; }
.button { min-height: 44px; padding: 12px 20px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; font-weight: 600; border-radius: 10px; font-size: 12px; transition: transform .2s, background .2s; }
.button svg { width: 16px; height: 16px; }
.button:hover { transform: translateY(-1px); }
.button-dark { background: #18271e; color: #f0f9e9; }
.button-dark:hover { background: #293c2b; }
.button-light { background: #f6f8ed; color: #243126; }
.button-light:hover { background: #fff; }
.balance-card-note { position: absolute; right: 24px; bottom: 28px; font-size: 10px; color: #517548; }
.balance-orbit { position: absolute; width: 300px; height: 300px; border: 1px solid #526e3520; border-radius: 50%; right: -135px; top: -118px; }
.balance-orbit::after { content: ""; position: absolute; width: 230px; height: 230px; border: 1px solid #526e3520; border-radius: 50%; top: 36px; left: 34px; }
.summary-stack { display: grid; gap: 15px; }
.summary-card { min-width: 0; border-radius: 18px; padding: 20px; display: flex; flex-direction: column; justify-content: space-between; }
.summary-card > div { display: flex; justify-content: space-between; align-items: center; }
.income-card { background: linear-gradient(125deg, #9f84df, #7761b4); color: #fff; }
.expense-card { background: #24252c; border: 1px solid #2e2e35; }
.summary-label { font-size: 12px; }
.summary-icon { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 50%; background: #ffffff15; }
.summary-icon svg { width: 14px; height: 14px; }
.summary-card strong { display: block; font-family: var(--font-display); font-weight: 500; font-size: clamp(24px, 2.2vw, 31px); letter-spacing: -1.5px; font-variant-numeric: tabular-nums; }
.summary-card strong span { font-size: .65em; }
.summary-bottom { font-size: 9px; gap: 7px; color: #b3aec3; }
.income-card .summary-bottom { color: #e0d7f5; }
.metric-positive { color: var(--lime); white-space: nowrap; }
.metric-negative { color: #c9d1c3; white-space: nowrap; }

.analytics-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(245px, 1fr); gap: 22px; }
.panel { border: 1px solid var(--line); background: var(--surface); border-radius: 18px; padding: 23px; }
.panel-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
h2 { font-family: var(--font-display); font-size: 16px; font-weight: 500; margin: 0; letter-spacing: -.4px; }
.panel-heading p { color: var(--muted); font-size: 11px; margin: 6px 0 0; line-height: 1.5; }
.count { font-family: var(--font-body); color: var(--muted); font-size: 11px; vertical-align: top; margin-left: 3px; }
.period-select { border: 1px solid #33363d; border-radius: 7px; padding: 7px 8px; background: #24262c; color: #c8cbd0; font-size: 10px; }
.revenue-summary { display: flex; align-items: center; gap: 10px; margin-top: 23px; }
.revenue-summary > strong { font-family: var(--font-display); font-size: 23px; font-weight: 500; letter-spacing: -.8px; }
.positive-badge { font-size: 10px; color: var(--lime); background: #d9f57b10; padding: 4px 6px; border-radius: 5px; }
.bar-chart { height: 188px; margin-top: 19px; display: flex; align-items: stretch; justify-content: space-between; gap: 11px; background: repeating-linear-gradient(to bottom, transparent 0, transparent 46px, #ffffff06 47px); }
.bar-item { position: relative; flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 11px; min-width: 0; }
.bar-track { position: relative; width: 100%; max-width: 39px; height: 145px; display: flex; align-items: flex-end; border-radius: 8px 8px 3px 3px; background: #20222880; }
.bar-fill { position: relative; width: 100%; height: var(--height); min-height: 6px; border-radius: 8px 8px 3px 3px; background: #5d5a70; transition: background .25s, height .5s; }
.bar-item.current .bar-fill { background: linear-gradient(#c5b4f4, #8e76c9); }
.bar-item:hover .bar-fill { background: var(--lime); }
.bar-label { color: #9296a0; font-size: 10px; }
.bar-tooltip { pointer-events: none; position: absolute; z-index: 2; left: 50%; top: -30px; transform: translateX(-50%); background: #e4e4dd; color: #22251f; font-size: 10px; border-radius: 5px; padding: 5px 7px; opacity: 0; white-space: nowrap; transition: opacity .2s; }
.bar-item:hover .bar-tooltip, .bar-item:focus-within .bar-tooltip { opacity: 1; }
.bar-item:focus-visible { outline-offset: 6px; border-radius: 4px; }
.split-panel { min-width: 0; }
.donut-wrap { display: grid; place-items: center; padding: 18px 0 15px; }
.donut { width: 146px; height: 146px; border-radius: 50%; background: conic-gradient(var(--lime) 0 40%, var(--purple) 40% 65%, #74d8bf 65% 85%, #616675 85% 100%); display: grid; place-items: center; transform: rotate(-30deg); }
.donut::after { content: ""; position: absolute; width: 106px; height: 106px; background: var(--surface); border-radius: 50%; }
.donut > div { position: relative; z-index: 1; text-align: center; transform: rotate(30deg); }
.donut span, .donut small { display: block; font-size: 9px; color: var(--muted); }
.donut strong { display: block; font-family: var(--font-display); font-size: 24px; letter-spacing: -1px; font-weight: 500; margin: 4px 0; }
.split-legend { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 9px; }
.split-legend > span { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 10px; }
.split-legend i { width: 5px; height: 5px; border-radius: 50%; background: var(--dot); }
.split-legend strong { color: #d9dbe0; margin-left: auto; font-weight: 500; font-size: 10px; }

.transactions-panel { padding-bottom: 12px; }
.text-button { display: inline-flex; align-items: center; gap: 5px; background: transparent; color: #b9bec5; padding: 4px 0; font-size: 11px; white-space: nowrap; min-height: 28px; }
.text-button:hover { color: var(--lime); }
.text-button svg { width: 13px; height: 13px; }
table { width: 100%; border-collapse: collapse; margin-top: 17px; text-align: left; }
th { font-weight: 400; font-size: 10px; color: #808590; padding: 0 10px 12px; border-bottom: 1px solid var(--line); }
td { padding: 13px 10px; border-bottom: 1px solid #2b2e3366; font-size: 11px; color: #afb3bc; white-space: nowrap; }
tr:last-child td { border-bottom: none; }
th:first-child, td:first-child { padding-left: 0; }
th:last-child, td:last-child { text-align: right; padding-right: 0; }
.transaction-name { display: flex; align-items: center; gap: 11px; color: #e3e4e7; font-weight: 500; }
.transaction-name small { display: block; color: var(--muted); font-size: 9px; font-weight: 400; margin-top: 3px; }
.merchant-icon { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 9px; background: #292c33; color: #c4c8d0; font-family: var(--font-display); font-size: 13px; }
.merchant-icon svg { width: 16px; height: 16px; }
.merchant-icon.incoming { background: #d9f57b12; color: var(--lime); }
.status { display: inline-flex; align-items: center; gap: 5px; font-size: 9px; }
.status::before { content: ""; width: 4px; height: 4px; background: var(--lime); border-radius: 50%; }
.amount-positive { color: var(--lime); }
.transaction-amount { color: #e3e4e7; font-weight: 500; font-variant-numeric: tabular-nums; }

.cards-panel { padding: 22px 20px 20px; overflow: hidden; }
.small-add { display: grid; place-items: center; width: 28px; height: 28px; background: #292c32; border-radius: 8px; }
.small-add svg { width: 15px; }
.small-add:hover { background: var(--lime); color: #172015; }
.card-stack { position: relative; height: 264px; margin: 20px -20px 0; }
.bank-card { position: absolute; left: 20px; right: 20px; width: calc(100% - 40px); height: 159px; border-radius: 17px; padding: 18px; display: flex; text-align: left; transition: transform .35s ease, filter .35s; overflow: hidden; }
.bank-card:hover { filter: brightness(1.08); }
.bank-card.selected { z-index: 3; top: 67px; transform: none; box-shadow: 0 12px 22px #06081099; }
.bank-card:not(.selected) { z-index: 1; }
.bank-card.selected .card-brand { width: auto; flex-direction: column; align-items: flex-start; gap: 3px; }
.bank-card.selected .card-brand > span { display: block; }
.bank-card.selected .card-last4 { top: auto; bottom: 22px; right: 20px; font-size: 14px; }
.bank-card:focus-visible { outline-offset: -3px; z-index: 10; }
.bank-card-orange { top: 0; background: linear-gradient(115deg, #c18f75, #e9b38d); color: #392a24; transform: scale(.9); transform-origin: center top; }
.bank-card-mint { top: 33px; background: linear-gradient(105deg, #71c8ba, #d7ed93); color: #274b37; transform: scale(.95); transform-origin: center top; }
.bank-card-visa { top: 67px; flex-direction: column; justify-content: space-between; background: radial-gradient(ellipse at 15% 10%, #bfa8ee77, transparent 70%), linear-gradient(135deg, #8270bc, #4f568b); box-shadow: 0 12px 22px #06081099; }
.bank-card-visa::after { content: ""; position: absolute; width: 200px; height: 200px; border-radius: 50%; border: 1px solid #ffffff13; right: -87px; top: -120px; box-shadow: 0 0 0 25px #ffffff05; }
.card-brand { font-family: var(--font-display); font-size: 17px; font-weight: 700; letter-spacing: -.7px; display: flex; justify-content: space-between; align-items: center; width: 100%; }
.card-brand > span { font-family: var(--font-body); font-size: 7px; font-weight: 500; letter-spacing: 1.5px; }
.card-last4 { position: absolute; top: 17px; right: 18px; font-size: 10px; }
.bank-card-mint .card-brand { width: auto; }
.bank-card-mint .card-brand > span { display: none; }
.bank-card-orange .card-brand { width: auto; }
.bank-card-orange .card-brand > span { display: none; }
.visa-top { display: flex; align-items: center; justify-content: space-between; }
.visa-top .card-brand { width: auto; flex-direction: column; align-items: flex-start; gap: 2px; font-size: 19px; font-style: italic; }
.card-chip { width: 29px; height: 21px; border-radius: 5px; border: 1px solid #e8e2b077; background: linear-gradient(120deg, #c7c097, #efdfac); }
.card-number { font-family: var(--font-display); font-size: 14px; letter-spacing: 1px; }
.card-holder { display: flex; justify-content: space-between; font-size: 11px; }
.card-holder small { display: block; font-size: 7px; text-transform: uppercase; color: #d0cee3; margin-top: 4px; letter-spacing: .7px; }
.selected-card-info { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 13px; }
.selected-card-info > span { display: flex; align-items: center; gap: 7px; font-size: 11px; }
.selected-card-info i { width: 5px; height: 5px; background: var(--lime); border-radius: 50%; }
.card-limit { margin-top: 15px; }
.card-limit > div:first-child { display: flex; justify-content: space-between; font-size: 10px; color: var(--muted); }
.card-limit strong { font-weight: 400; color: #d9dce1; }
.card-limit strong span { color: #777d88; }
.limit-track { height: 4px; margin-top: 10px; border-radius: 3px; background: #30333b; overflow: hidden; }
.limit-track > span { display: block; height: 100%; width: 31%; background: var(--lime); border-radius: 3px; transition: width .4s; }
.subscriptions-panel { padding: 22px 20px 16px; }
.subscription-icons { display: flex; margin: 20px 0 16px; }
.sub-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; margin-right: 8px; font-family: var(--font-display); font-weight: 600; border: 3px solid var(--surface); }
.sub-icon svg { width: 20px; height: 20px; }
.apple { background: #f2f1eb; color: #16171a; }
.apple svg, .sub-icon.apple svg { fill: currentColor; stroke-width: 0; }
.spotify { background: #1ed760; color: #0c2415; }
.notion { background: #d1c6f1; color: #423865; }
.dribbble { background: #ed78ab; color: #481d3c; }
.figma { background: #8b85a9; color: #fff; }
.subscription-row { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-top: 1px solid #2c2f3566; }
.subscription-row .merchant-icon { width: 34px; height: 34px; }
.subscription-row .merchant-icon svg { width: 16px; }
.subscription-info { min-width: 0; flex: 1; }
.subscription-info strong { display: block; font-size: 11px; font-weight: 500; }
.subscription-info small { display: block; color: var(--muted); font-size: 9px; margin-top: 4px; }
.subscription-price { font-family: var(--font-display); font-size: 13px; white-space: nowrap; }
.secure-note { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 0 10px; }
.secure-note > svg { width: 23px; height: 23px; border: 1px solid #485039; border-radius: 50%; padding: 5px; color: var(--lime); }
.secure-note > span { font-size: 10px; color: #b6bbb6; }
.secure-note small { display: block; margin-top: 4px; color: #717781; font-size: 9px; }
.workspace-footer { display: flex; justify-content: space-between; gap: 15px; border-top: 1px solid var(--line); margin-top: 28px; padding-top: 18px; color: #6f7580; font-size: 9px; letter-spacing: .2px; }

.search-results { position: absolute; z-index: 50; top: 51px; left: -10px; width: 390px; max-width: calc(100vw - 40px); padding: 10px; border: 1px solid #3b3f47; background: #1e2026; box-shadow: 0 15px 35px #0009; border-radius: 13px; }
.search-result-heading { padding: 6px 8px 10px; color: var(--muted); font-size: 11px; }
.search-result { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 9px; text-align: left; border-radius: 8px; background: transparent; }
.search-result:hover, .search-result:focus { background: #2d3037; }
.search-result > span:nth-child(2) { flex: 1; font-size: 12px; }
.search-result small { display: block; margin-top: 4px; font-size: 10px; color: var(--muted); }
.search-result > strong { font-size: 12px; font-weight: 500; }
.search-empty { padding: 20px 12px; text-align: center; color: var(--muted); font-size: 12px; line-height: 1.8; }
.search-empty strong { display: block; color: var(--text); }

.action-dialog { width: 440px; max-width: calc(100vw - 32px); border: 1px solid #3d4149; border-radius: 22px; background: #1b1d23; color: var(--text); padding: 30px; box-shadow: 0 30px 100px #0009; }
.action-dialog::backdrop { background: #07090bcc; backdrop-filter: blur(6px); }
.dialog-close { position: absolute; right: 16px; top: 16px; width: 34px; height: 34px; }
.dialog-close svg { width: 17px; }
.dialog-eyebrow { color: var(--lime); font-size: 10px; letter-spacing: 1.2px; text-transform: uppercase; margin: 0 0 12px; }
.action-dialog h2 { font-size: 26px; letter-spacing: -1px; padding-right: 25px; }
.dialog-description { color: var(--muted); font-size: 12px; line-height: 1.7; margin: 10px 0 23px; }
.form-field { display: grid; gap: 8px; margin-bottom: 18px; }
.form-field > label, .form-label { font-size: 12px; color: #c6c9d0; }
.form-field input, .form-field select { min-height: 48px; width: 100%; border: 1px solid #3c414a; border-radius: 10px; background: #13151a; color: var(--text); padding: 12px 14px; font-size: 14px; }
.form-field input:focus, .form-field select:focus { border-color: var(--lime); outline: none; }
.form-field input[aria-invalid="true"] { border-color: var(--error); }
.field-hint { color: var(--muted); font-size: 10px; line-height: 1.5; }
.field-error { color: var(--error); font-size: 11px; line-height: 1.5; }
.amount-input { position: relative; }
.amount-input > span { position: absolute; left: 15px; top: 13px; font-family: var(--font-display); font-size: 20px; color: var(--muted); }
.amount-input input { padding-left: 32px; font-family: var(--font-display); font-size: 20px; }
.dialog-balance { display: flex; justify-content: space-between; margin: -3px 0 21px; font-size: 11px; color: var(--muted); }
.dialog-balance strong { color: #d9dce2; font-weight: 500; }
.dialog-submit { width: 100%; background: var(--lime); color: #182016; margin-top: 5px; min-height: 48px; font-size: 13px; }
.dialog-submit:hover { background: #e5ff94; }
.dialog-footnote { margin: 14px 0 0; text-align: center; color: #838995; font-size: 10px; }
.success-state { text-align: center; padding: 17px 0 0; }
.success-icon { display: grid; place-items: center; width: 63px; height: 63px; border-radius: 50%; background: #d9f57b18; color: var(--lime); margin: 0 auto 20px; }
.success-icon svg { width: 28px; height: 28px; }
.success-amount { display: block; margin-top: 18px; font-family: var(--font-display); font-size: 38px; font-weight: 500; letter-spacing: -1px; }
.success-detail { color: var(--muted); margin: 9px 0 25px; font-size: 12px; line-height: 1.7; }
.notification-popover { position: fixed; z-index: 45; top: 76px; right: 32px; width: 310px; padding: 20px; border: 1px solid var(--line); border-radius: 15px; background: #202228; box-shadow: 0 15px 40px #0007; }
.notification-popover h2 { margin-bottom: 15px; }
.notification-popover p { color: #b7bcc4; font-size: 12px; line-height: 1.7; }
.notification-popover small { color: var(--muted); }
.toast-region { position: fixed; bottom: 25px; left: 50%; transform: translateX(-50%); z-index: 100; display: grid; gap: 10px; width: max-content; max-width: calc(100vw - 30px); }
.toast { display: flex; align-items: center; gap: 10px; background: #e4e8dc; color: #20281e; border: 1px solid #f7f8ee; border-radius: 10px; padding: 14px 18px; box-shadow: 0 8px 30px #0007; font-size: 12px; animation: toast-in .25s ease-out; }
.toast svg { width: 16px; height: 16px; }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

@media (min-width: 1550px) {
  .sidebar { width: 240px; padding-left: 28px; padding-right: 28px; }
  .workspace { margin-left: 240px; }
  main, .topbar { padding-left: 46px; padding-right: 46px; }
  .dashboard-grid { grid-template-columns: minmax(0, 1fr) 340px; gap: 25px; }
  .money-overview { grid-template-columns: minmax(0, 1fr) 252px; }
  .balance-card { min-height: 294px; }
}

@media (max-width: 1190px) {
  .sidebar { width: 188px; padding-left: 15px; padding-right: 15px; }
  .workspace { margin-left: 188px; }
  main, .topbar { padding-left: 25px; padding-right: 25px; }
  .dashboard-grid { grid-template-columns: minmax(0, 1fr) 278px; gap: 17px; }
  .money-overview { grid-template-columns: 1fr; }
  .summary-stack { grid-template-columns: 1fr 1fr; gap: 17px; }
  .summary-card { min-height: 135px; }
  .summary-card strong { font-size: 29px; }
  .analytics-grid { grid-template-columns: 1fr; }
  .split-panel { display: grid; grid-template-columns: 1fr 1fr; }
  .split-panel .panel-heading { grid-column: 1 / -1; }
  .split-legend { align-content: center; }
  .balance-card { min-height: 267px; }
  .bank-card { left: 15px; right: 15px; width: calc(100% - 30px); }
  .card-stack { margin-left: -15px; margin-right: -15px; }
  .cards-panel, .subscriptions-panel { padding-left: 15px; padding-right: 15px; }
  .sub-icon { width: 34px; height: 34px; margin-right: 6px; }
}

@media (max-width: 920px) {
  .sidebar { transform: translateX(-100%); width: 230px; padding: 28px 22px 22px; transition: transform .25s; box-shadow: 15px 0 50px #0008; }
  .sidebar.is-open { transform: translateX(0); }
  .sidebar-scrim { position: fixed; inset: 0; z-index: 25; background: #06080bc4; backdrop-filter: blur(3px); }
  .workspace { margin-left: 0; }
  .mobile-menu { display: grid; flex-shrink: 0; }
  .mobile-brand { display: none; }
  .topbar { height: 80px; gap: 17px; }
  .global-search { width: min(390px, 55%); }
  .demo-label { display: none; }
  main { padding-top: 29px; }
  .dashboard-grid { grid-template-columns: minmax(0, 1fr) 278px; }
  .money-overview { grid-template-columns: 1fr; }
  .balance-value { font-size: 43px; }
  .card-stack { height: 264px; }
  th:nth-child(3), td:nth-child(3) { display: none; }
}

@media (max-width: 740px) {
  .topbar { padding: 0 20px; gap: 12px; }
  main { padding: 25px 20px 22px; }
  .topbar-actions { gap: 11px; }
  .topbar-actions .avatar { display: none; }
  .global-search { flex: 1; width: auto; }
  .global-search kbd { display: none; }
  .global-search input { padding-right: 5px; font-size: 12px; }
  .dashboard-grid { display: flex; flex-direction: column; }
  .primary-column { display: contents; }
  .money-overview { order: 1; width: 100%; grid-template-columns: minmax(0, 1.4fr) minmax(190px, 1fr); }
  .right-column { display: contents; }
  .cards-panel { order: 2; width: 100%; }
  .analytics-grid { order: 3; width: 100%; grid-template-columns: minmax(0, 1.2fr) minmax(240px, 1fr); }
  .split-panel { display: block; }
  .subscriptions-panel { order: 4; width: 100%; }
  .transactions-panel { order: 5; width: 100%; }
  .secure-note { order: 6; width: 100%; padding: 10px; }
  .card-stack { height: 295px; margin: 20px auto 0; max-width: 370px; }
  .bank-card { height: 180px; left: 10px; right: 10px; width: calc(100% - 20px); padding: 22px; }
  .bank-card-mint { top: 39px; }
  .bank-card-visa { top: 78px; }
  .bank-card.selected { top: 78px; }
  .card-number { font-size: 17px; }
  .card-holder { font-size: 13px; }
  .card-last4 { top: 22px; right: 23px; }
  .selected-card-info, .card-limit { max-width: 370px; margin-left: auto; margin-right: auto; }
  .selected-card-info { margin-top: 13px; }
  .card-limit { margin-top: 15px; }
  .subscription-icons { gap: 8px; }
  .sub-icon { width: 42px; height: 42px; margin: 0; }
  .subscription-row { padding: 13px 0; }
  .subscription-info strong { font-size: 12px; }
  .subscription-price { font-size: 14px; }
}

@media (max-width: 520px) {
  .topbar { height: 70px; padding: 0 16px; gap: 8px; }
  .topbar .icon-button { width: 40px; height: 40px; background: transparent; }
  .topbar-actions { gap: 0; }
  .global-search { margin-left: 2px; }
  .global-search input { height: 40px; font-size: 11px; padding-left: 26px; }
  .global-search input::placeholder { color: #8d929b; }
  .global-search > svg { width: 16px; }
  .search-results { left: -45px; top: 48px; width: calc(100vw - 32px); }
  main { padding: 25px 16px 20px; }
  .page-heading { align-items: flex-start; margin-bottom: 24px; }
  .eyebrow { font-size: 10px; margin-bottom: 8px; }
  h1 { font-size: 27px; letter-spacing: -1.2px; }
  .heading-note { font-size: 11px; line-height: 1.6; max-width: 245px; }
  .date-button { display: none; }
  .dashboard-grid, .primary-column { gap: 16px; }
  .money-overview { grid-template-columns: 1fr; gap: 13px; }
  .balance-card { min-height: 262px; padding: 23px; border-radius: 18px; }
  .balance-value { font-size: 43px; margin-top: 12px; }
  .balance-change { font-size: 10px; }
  .balance-actions { left: 23px; bottom: 23px; gap: 8px; }
  .balance-card-note { bottom: 32px; right: 21px; font-size: 8px; }
  .button { padding: 12px 17px; }
  .summary-stack { gap: 13px; }
  .summary-card { min-height: 135px; padding: 17px 14px; border-radius: 15px; }
  .summary-card strong { font-size: 24px; letter-spacing: -1.2px; }
  .summary-label { font-size: 11px; }
  .summary-icon { width: 25px; height: 25px; }
  .summary-bottom { font-size: 8px; flex-wrap: wrap; gap: 4px; }
  .panel { border-radius: 16px; padding: 20px; }
  h2 { font-size: 16px; }
  .panel-heading p { font-size: 10px; }
  .cards-panel { padding-bottom: 22px; }
  .card-stack { height: 288px; margin-top: 21px; }
  .bank-card { height: 174px; }
  .card-number { font-size: 16px; }
  .analytics-grid { grid-template-columns: 1fr; gap: 16px; }
  .bar-chart { height: 202px; gap: 12px; }
  .bar-track { height: 156px; }
  .revenue-summary { margin-top: 22px; }
  .split-panel { display: grid; grid-template-columns: 1fr 1fr; }
  .split-panel .panel-heading { grid-column: 1 / -1; }
  .donut { width: 126px; height: 126px; }
  .donut::after { width: 90px; height: 90px; }
  .donut strong { font-size: 21px; }
  .donut-wrap { padding-top: 23px; }
  .split-legend { grid-template-columns: 1fr; gap: 12px; padding-left: 5px; }
  .split-legend > span { font-size: 10px; }
  .split-legend strong { margin-left: 8px; }
  .transactions-panel { padding: 20px 17px 8px; }
  table { margin-top: 13px; }
  th { font-size: 9px; padding-bottom: 10px; }
  td { font-size: 10px; padding: 12px 5px; }
  th:nth-child(2), td:nth-child(2), th:nth-child(3), td:nth-child(3) { display: none; }
  th:nth-child(4), td:nth-child(4) { padding-left: 5px; }
  .transaction-name { gap: 8px; font-size: 11px; }
  .transaction-name small { font-size: 8px; }
  .merchant-icon { width: 29px; height: 29px; border-radius: 8px; }
  .transaction-amount { font-size: 10px; }
  .status { font-size: 8px; gap: 4px; }
  .workspace-footer { flex-direction: column; font-size: 9px; line-height: 1.7; margin-top: 22px; }
  .action-dialog { padding: 27px 22px; border-radius: 18px; }
  .notification-popover { right: 16px; top: 65px; width: calc(100vw - 32px); }
  .toast-region { bottom: 18px; }
}

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