:root {
  color-scheme: dark;
  --bg:#101415; --side:#101415; --panel:#1c2021; --panel-2:#272a2c; --line:#363b3e;
  --ink:#f4f5f5; --muted:#b0b4b6; --quiet:#969c9f; --accent:#ff6672; --accent-ink:#150d0e;
  --positive:#63d99d; --negative:#ff858c; --violet:#b5a0ff; --radius:18px;
  --dock-active:#ff6672;
  --chart-income:#55c98d; --chart-expense:#ef5664;
  --shadow:0 12px 35px #0004;
  font-family: Inter, "Segoe UI", Roboto, "Nirmala UI", system-ui, sans-serif;
  font-synthesis:none; text-rendering:optimizeLegibility;
}
[data-theme="light"] {
  color-scheme:light;
  --bg:#edf3f9; --side:#f9fbfe; --panel:#fff; --panel-2:#edf3fa; --line:#d6e0ec;
  --ink:#14243a; --muted:#435772; --quiet:#526a89; --accent:#00738b; --accent-ink:#fff;
  --positive:#0c7158; --negative:#a73c43; --violet:#6347b6; --shadow:0 12px 35px #4361820c;
  --dock-active:#b13c49;
  --chart-income:#68d7f4; --chart-expense:#a992f4;
}
*,*::before,*::after { box-sizing:border-box }
[hidden] { display:none!important }
body { margin:0; background:var(--bg); color:var(--ink); font-size:16px; line-height:1.5 }
button,input,select,textarea { font:inherit }
button,a,select { -webkit-tap-highlight-color:transparent }
button { cursor:pointer }
a { color:var(--accent); text-decoration:none }
button:disabled { opacity:.55; cursor:default }
:focus-visible { outline:2px solid var(--accent); outline-offset:3px }
h1,h2,h3,p { margin:0 }
h1,h2,h3 { line-height:1.2; letter-spacing:-.025em }
h1 { font-size:clamp(1.65rem,3.2vw,2.45rem); font-weight:730 }
h2 { font-size:1.12rem; font-weight:675 }
h3 { font-size:1rem }
.muted { color:var(--muted) }
.quiet { color:var(--quiet) }
.small { font-size:.85rem }
.positive { color:var(--positive) }
.negative { color:var(--negative) }
.numbers { font-variant-numeric:tabular-nums }
.skip { position:absolute; top:8px; left:8px; z-index:30; transform:translateY(-160%); padding:10px; background:var(--panel) }
.skip:focus { transform:none }
.visually-hidden { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; border:0 }
.layout { display:grid; grid-template-columns:228px minmax(0,1fr); min-height:100dvh }
.sidebar { position:sticky; top:0; display:flex; flex-direction:column; height:100dvh; background:var(--side); border-right:1px solid var(--line); padding:28px 17px 20px }
.brand { display:inline-flex; align-items:center; gap:11px; color:var(--ink); font-size:.97rem; font-weight:735; letter-spacing:-.02em; white-space:nowrap }
.brand-logo { width:40px; height:40px; border-radius:11px; box-shadow:0 0 0 1px #6adff436; object-fit:cover }
.sidebar .brand { margin:0 6px 42px }
.nav { display:grid; gap:7px }
.nav-link { color:var(--muted); display:flex; align-items:center; gap:11px; padding:12px 13px; min-height:46px; border:1px solid transparent; border-radius:11px; font-size:.925rem; font-weight:600 }
.nav-link:hover { background:var(--panel-2); color:var(--ink) }
.nav-link[aria-current="page"] { background:color-mix(in srgb,var(--accent) 9%,transparent); border-color:color-mix(in srgb,var(--accent) 17%,transparent); color:var(--accent) }
.sidebar-end { margin-top:auto; display:grid; gap:8px }
.device-status { display:flex; align-items:center; gap:8px; margin:0 5px; border-top:1px solid var(--line); padding:17px 7px 3px; color:var(--quiet); font-size:.78rem }
.device-status svg { color:var(--positive); flex:none }
.mobile-head,.mobile-nav { display:none }
.workspace { width:min(100%,1270px); margin:0 auto; padding:33px clamp(22px,3.35vw,51px) 45px; min-width:0 }
.workspace:focus { outline:none }
.page-head { display:flex; justify-content:space-between; align-items:flex-end; gap:16px; margin-bottom:23px }
.page-head p { margin-top:6px }
.page-tools { display:flex; align-items:center; gap:8px; flex:none }
.month-control { display:flex; align-items:center; background:var(--panel); border:1px solid var(--line); border-radius:11px; color:var(--ink); white-space:nowrap }
.month-control button { border:0; background:none; display:grid; place-items:center; padding:0; width:38px; min-height:43px; color:var(--muted) }
.month-control button:hover { color:var(--accent) }
.month-control strong { font-size:.88rem; text-align:center; min-width:105px }
.button,.icon-button { display:inline-flex; align-items:center; justify-content:center; gap:8px; border:1px solid var(--line); background:var(--panel-2); color:var(--ink); border-radius:10px; padding:9px 14px; font-size:.875rem; font-weight:665; min-height:42px; text-align:center }
.icon-button { padding:0; width:42px; flex:none; position:relative }
.button:hover,.icon-button:hover { border-color:var(--accent); color:var(--accent) }
.button.primary { border-color:transparent; background:var(--accent); color:var(--accent-ink) }
.button.primary:hover { filter:brightness(1.09) }
.button.danger { color:var(--negative) }
.button.ghost { background:transparent }
.text-button { display:inline-flex; align-items:center; gap:5px; min-height:40px; padding:3px 0; color:var(--accent); border:none; background:none; font-size:.875rem; font-weight:650 }
.text-button:hover { text-decoration:underline; text-underline-offset:3px }
.layout-row { display:flex; align-items:center; justify-content:space-between; gap:14px }
.stack { display:grid; gap:16px }
.surface { background:var(--panel); border:1px solid var(--line); border-radius:var(--radius); box-shadow:var(--shadow); min-width:0 }
.pad { padding:20px }
.section-head { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:14px }
.section-title { display:flex; align-items:center; gap:9px }
.section-title svg { color:var(--accent); flex:none }
.overview-grid { display:grid; grid-template-columns:1.58fr 1fr; gap:16px; margin-bottom:16px }
.hero { position:relative; isolation:isolate; overflow:hidden; padding:22px 24px; min-height:210px; color:#f6faff; border:1px solid #386593; border-radius:var(--radius); background:radial-gradient(ellipse at 92% 15%,#204577 0%,transparent 57%),linear-gradient(115deg,#102d50,#132544 67%,#16375d); box-shadow:0 16px 35px #0004 }
.hero::before { content:""; position:absolute; inset:0; z-index:-2; background:radial-gradient(#9ceefe85 .65px,transparent .85px) right 4px top 3px/13px 13px; mask-image:linear-gradient(99deg,transparent 43%,#000 100%); opacity:.28 }
.orbit { width:380px; height:154px; position:absolute; right:-83px; top:59px; border:1px solid #70ddfd44; border-radius:50%; transform:rotate(-31deg); z-index:-1; box-shadow:0 0 0 17px #6bd8fc16, 0 0 0 37px #6bd8fc0c,0 0 0 62px #6bd8fc0a }
.orbit::after { content:""; position:absolute; left:68px; bottom:0; width:8px; height:8px; border-radius:50%; background:#a4f2ff; box-shadow:0 0 16px #67e8fc }
.hero-top { display:flex; align-items:center; justify-content:space-between; gap:8px; color:#c9dbee }
.hero-label { display:flex; align-items:center; gap:8px; font-size:.84rem; font-weight:650; letter-spacing:.04em }
.visibility-toggle { display:grid; place-items:center; min-width:35px; min-height:35px; padding:2px; border:0; background:none; color:#d2e6fa; border-radius:5px }
.currency { border:1px solid #82dff54f; background:#83dff516; color:#b8f5ff; padding:5px 9px; border-radius:8px; font-size:.73rem; font-weight:750; letter-spacing:.08em }
.hero-amount { color:#fff; font-size:clamp(2.35rem,5vw,3.55rem); letter-spacing:-.06em; font-weight:735; line-height:1.1; overflow-wrap:anywhere }
.hero-foot { display:flex; gap:25px; margin-top:19px; padding-top:16px; border-top:1px solid #a3dcff35; width:max-content; max-width:100%; flex-wrap:wrap }
.hero-stat { display:flex; align-items:center; gap:8px; min-width:0 }
.hero-stat span:not(.tile-icon) { display:block; color:#b6cce5; font-size:.76rem; line-height:1.25 }
.hero-stat strong { display:block; color:#f5faff; font-size:.98rem; font-weight:660; overflow-wrap:anywhere }
.tile-icon { display:inline-grid; place-items:center; width:39px; height:39px; border-radius:11px; color:var(--tile,var(--accent)); background:color-mix(in srgb,var(--tile,var(--accent)) 14%,var(--panel-2)); flex:none }
.hero .tile-icon { width:33px; height:33px; color:#8cebd7; background:#8cebd726 }
.hero .tile-icon.cost { color:#ffbbb8; background:#ffbbb828 }
[data-theme="dark"] .hero { color:var(--ink); border-color:#444043; background:radial-gradient(ellipse at 94% 10%,#3d292d 0%,transparent 62%),linear-gradient(112deg,#222627,#1c2021 66%,#242225) }
[data-theme="dark"] .hero::before { background-image:radial-gradient(#ff858c85 .65px,transparent .85px) }
[data-theme="dark"] .orbit { border-color:#e66b7544; box-shadow:0 0 0 17px #e66b7516,0 0 0 37px #e66b750c,0 0 0 62px #e66b750a }
[data-theme="dark"] .orbit::after { background:#ff8a94; box-shadow:0 0 16px #ed6673 }
[data-theme="dark"] :is(.hero-top,.visibility-toggle,.hero-stat span:not(.tile-icon)) { color:var(--muted) }
[data-theme="dark"] .hero-foot { border-color:var(--line) }
[data-theme="dark"] .currency { color:var(--negative); border-color:#ff858c52; background:#ff858c15 }
[data-theme="dark"] .hero .tile-icon { color:var(--positive); background:#63d99d22 }
[data-theme="dark"] .hero .tile-icon.cost { color:var(--negative); background:#ff858c22 }
.budget-surface { display:flex; flex-direction:column; justify-content:center; gap:14px }
.budget-surface .section-head { margin:0 }
.budget-spent { font-size:clamp(1.5rem,3vw,2rem); letter-spacing:-.04em; line-height:1.2; overflow-wrap:anywhere }
.track { height:8px; background:var(--panel-2); border-radius:99px; overflow:hidden }
.track > div { height:100%; border-radius:inherit; background:var(--progress,var(--accent)) }
.budget-foot { align-items:start; font-size:.82rem }
.budget-foot span { color:var(--muted) }
.budget-foot strong { text-align:right }
.actions { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; margin-bottom:20px }
.quick-action { display:flex; align-items:center; padding:10px 12px; gap:10px; text-align:left; color:var(--ink); text-decoration:none; min-height:63px; font-weight:625; font-size:.89rem }
.quick-action:hover { border-color:var(--accent); color:var(--accent) }
.chart-card { min-width:0 }
.chart-card .section-head { min-height:25px }
.chart-card .section-head p { color:var(--quiet); font-size:.79rem }
.pie-body { display:grid; grid-template-columns:minmax(98px, .75fr) minmax(0,1.25fr); gap:18px; min-height:167px; align-items:center }
.spending-details summary { display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:49px; padding:12px 16px; border-radius:inherit; cursor:pointer; font-weight:650; list-style:none }
.spending-details summary::-webkit-details-marker { display:none }
.spending-details summary > svg { color:var(--muted); flex:none }
.spending-details[open] summary > svg { transform:rotate(180deg) }
.spending-details .pie-body { padding:4px 16px 16px }
.donut { display:grid; place-items:center; width:min(100%,154px); aspect-ratio:1; margin:0 auto; border-radius:50%; background:var(--slices,var(--panel-2)); position:relative; isolation:isolate }
.donut::after { position:absolute; inset:13%; content:""; border-radius:50%; background:var(--panel); z-index:-1 }
.donut-value { display:grid; gap:2px; text-align:center; max-width:72%; overflow-wrap:anywhere }
.donut-value span { color:var(--muted); font-size:.69rem }
.donut-value strong { font-size:clamp(.82rem,2vw,1.05rem); letter-spacing:-.03em }
.legend { display:grid; gap:6px; list-style:none; padding:0; margin:0; font-size:.83rem }
.legend li { display:grid; align-items:center; grid-template-columns:8px minmax(0,1fr) auto; gap:8px; color:var(--muted) }
.legend strong { color:var(--ink); font-weight:600; font-variant-numeric:tabular-nums }
.dot { width:8px; height:8px; border-radius:50%; background:var(--dot); display:inline-block; flex:none }
.bar-chart { display:grid; grid-template-columns:auto minmax(0,1fr); gap:5px 9px; min-height:165px }
.bar-axis { display:flex; flex-direction:column; justify-content:space-between; color:var(--quiet); font-size:.71rem; padding-bottom:1px; line-height:1 }
.bar-area { display:flex; justify-content:space-around; align-items:end; height:129px; background:repeating-linear-gradient(to bottom,var(--line) 0 1px,transparent 1px 33.333%); border-bottom:1px solid var(--line) }
.bar-group { display:flex; align-items:end; gap:4px; justify-content:center; height:100%; width:20% }
.bar { width:clamp(6px,2vw,16px); height:var(--height); background:var(--bar); border-radius:4px 4px 1px 1px }
.bar-labels { grid-column:2; display:flex; justify-content:space-around; font-size:.72rem; color:var(--quiet) }
.inline-legend { display:flex; flex-wrap:wrap; gap:12px; color:var(--muted); font-size:.78rem }
.inline-legend span { display:inline-flex; align-items:center; gap:5px }
.transaction-list { list-style:none; padding:0; margin:0 }
.transaction-list li+li { border-top:1px solid var(--line) }
.transaction { width:100%; display:grid; grid-template-columns:auto minmax(0,1fr) auto auto; align-items:center; gap:12px; padding:10px 2px; background:none; border:0; text-align:left; color:var(--ink); min-height:62px }
.transaction:hover .transaction-name { color:var(--accent) }
.transaction-name { font-weight:640; overflow-wrap:anywhere }
.transaction-meta { display:block; color:var(--muted); font-size:.8rem }
.transaction strong { font-size:.9rem; overflow-wrap:anywhere; max-width:11ch; text-align:right }
.transaction > svg { color:var(--quiet) }
.empty { color:var(--muted); padding:16px 0; margin:auto 0; line-height:1.55 }
.notice { background:var(--panel); border:1px solid var(--line); color:var(--muted); border-radius:12px; padding:12px 15px; display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:15px; font-size:.85rem }
.notice span { display:flex; align-items:center; gap:8px }
.notice span svg { color:var(--accent); flex:none }
.notice .text-button { min-height:30px; flex:none }
.subnav { display:flex; align-items:center; gap:8px; margin:0 0 17px; flex-wrap:wrap }
.subnav a { color:var(--muted); border:1px solid var(--line); background:var(--panel); padding:7px 13px; min-height:41px; align-content:center; border-radius:9px; font-size:.88rem; font-weight:650 }
.subnav a[aria-current="page"] { color:var(--accent); background:color-mix(in srgb,var(--accent) 8%,transparent); border-color:color-mix(in srgb,var(--accent) 22%,transparent) }
.goals-grid,.profile-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:15px }
.goal-card { display:grid; gap:11px }
.goal-title { display:flex; align-items:center; gap:10px; min-width:0 }
.goal-title h2 { overflow-wrap:anywhere }
.goal-card .track { margin-top:3px }
.goal-card .tag { justify-self:start }
.goal-actions { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin-top:4px }
.tag { display:inline-flex; align-items:center; gap:5px; font-size:.78rem; padding:3px 8px; background:var(--panel-2); border:1px solid var(--line); color:var(--muted); border-radius:7px }
.tag.due { color:var(--negative) }
.goal-card .numbers { overflow-wrap:anywhere }
.setting { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:14px 0; min-height:58px }
.setting + .setting { border-top:1px solid var(--line) }
.setting-label { display:flex; align-items:center; gap:9px; font-weight:620 }
.setting-label svg { flex:none; color:var(--accent) }
.choice { display:flex; border:1px solid var(--line); border-radius:9px; background:var(--bg); padding:3px; gap:3px; flex-wrap:wrap }
.choice button { color:var(--muted); border:0; border-radius:6px; background:transparent; min-height:33px; padding:6px 9px; font-size:.8rem; font-weight:640 }
.choice button[aria-pressed="true"] { background:var(--panel-2); color:var(--accent) }
.market-page { max-width:780px }
.market-page .page-head { display:flex; align-items:center; margin-bottom:15px }
.market-page .page-head p:empty { display:none }
.market-iframe { width:100%; height:315px; display:block; border:0 }
.market-note { margin:10px 2px 0 }
.market-note + .market-note { margin-top:3px }
.market-frame { background:transparent }
.market-frame-content { display:flow-root }
.provider-frame { width:100%; height:87px; border:0; display:block; background:var(--panel) }
.quotes { display:grid; gap:8px; padding:0; list-style:none; margin:0 }
.quote { min-width:0; border:1px solid var(--line); border-radius:11px; background:var(--panel); overflow:hidden }
.quote-row { display:flex; align-items:center; justify-content:space-between; gap:10px; min-height:54px; padding:8px 12px }
.quote-label { display:grid; gap:2px; line-height:1.25; min-width:0 }
.quote-label strong { font-size:.92rem }
.quote-value { font-variant-numeric:tabular-nums; text-align:right }
.quote-price { display:block; font-size:1.05rem; line-height:1.15 }
.feed-source { margin-top:8px; overflow-wrap:anywhere }
.policy { max-width:800px }
.policy article { display:grid; gap:10px }
.policy h2 { margin-top:11px }
.policy p { color:var(--muted) }
.policy a { overflow-wrap:anywhere }
.admin-shell { max-width:760px; margin:0 auto; padding:28px 18px 64px }
.admin-shell > .brand { margin-bottom:25px }
.admin-shell .surface { margin-top:18px }
.admin-shell summary { cursor:pointer; font-weight:650 }
.admin-shell form { max-width:540px }
.admin-shell .page-head { align-items:start }
form { display:grid; gap:14px }
label.field { font-size:.88rem; font-weight:630; display:grid; gap:6px }
input:not([type="checkbox"]),select,textarea { color:var(--ink); width:100%; min-width:0; min-height:44px; padding:8px 11px; background:var(--bg); border:1px solid var(--line); border-radius:9px }
textarea { resize:vertical; min-height:85px }
input[type="checkbox"] { width:17px; height:17px; accent-color:var(--accent); margin:0 }
.check-field { display:flex; align-items:center; gap:9px }
.form-actions { display:flex; gap:8px; justify-content:flex-end; flex-wrap:wrap; margin-top:5px }
.form-actions .danger { margin-right:auto }
.form-error { color:var(--negative); font-size:.85rem }
dialog { width:min(calc(100% - 28px),475px); max-height:calc(100dvh - 24px); margin:auto; padding:22px; border:1px solid var(--line); background:var(--panel); color:var(--ink); border-radius:19px; box-shadow:0 25px 80px #01040b99; overflow:auto }
dialog::backdrop { background:#020814ad; backdrop-filter:blur(4px) }
dialog .section-head { margin-bottom:15px }
.toast { position:fixed; z-index:12; bottom:20px; right:20px; max-width:min(90vw,430px); padding:10px 14px; border-radius:10px; background:var(--accent); color:var(--accent-ink); font-size:.87rem; font-weight:700; box-shadow:var(--shadow) }
.toast:empty { display:none }
.notice-indicator { width:7px; height:7px; background:var(--negative); border-radius:50%; position:absolute; top:8px; right:8px }
@media (max-width:1100px) {
  .layout { grid-template-columns:190px minmax(0,1fr) }
  .sidebar { padding-inline:13px }
  .workspace { padding-inline:24px }
  .quick-action { font-size:.8rem; gap:6px; padding-inline:8px }
  .quick-action .tile-icon { width:34px; height:34px }
}
@media (max-width:850px) {
  html:not(.market-document) { scrollbar-gutter:stable }
  @supports not (scrollbar-gutter:stable) {
    html:not(.market-document) { overflow-y:scroll }
  }
  .layout { display:block }
  .sidebar { display:none }
  .mobile-head { display:flex; align-items:center; justify-content:space-between; gap:10px; min-height:64px; padding:10px max(16px,env(safe-area-inset-right)) 10px max(16px,env(safe-area-inset-left)); background:var(--side); border-bottom:1px solid var(--line) }
  .mobile-head .brand-logo { width:35px; height:35px }
  .mobile-nav {
    display:grid; grid-template-columns:repeat(5,minmax(0,1fr));
    position:fixed; z-index:5; inset:auto 0 0;
    padding:4px max(15px,env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(15px,env(safe-area-inset-left));
    background:var(--side); border-top:1px solid var(--line);
  }
  .mobile-nav .nav-link {
    flex-direction:column; justify-content:center; gap:4px;
    min-height:49px; padding:2px; border-radius:7px;
    font-size:.75rem; font-weight:550; line-height:1.2; text-align:center;
  }
  .mobile-nav .nav-link svg { flex:none }
  .mobile-nav .nav-link[aria-current="page"] { background:none; border-color:transparent; color:var(--dock-active) }
  .workspace { padding-bottom:calc(85px + env(safe-area-inset-bottom)); padding-top:23px }
  .toast { bottom:calc(67px + env(safe-area-inset-bottom)) }
  .desktop-bell { display:none }
}
@media (max-width:590px) {
  .workspace { padding-left:15px; padding-right:15px }
  .page-head { align-items:flex-start; display:grid; gap:10px; margin-bottom:15px }
  .page-head p { font-size:.86rem; margin-top:4px }
  .page-tools { min-width:0 }
  .overview-grid,.profile-grid,.goals-grid { grid-template-columns:1fr; gap:12px }
  .overview-grid { margin-bottom:12px }
  .hero { min-height:180px; padding:15px 16px }
  .hero-foot { margin-top:14px; padding-top:12px; gap:17px }
  .hero-amount { font-size:clamp(2.35rem,10.4vw,3rem) }
  .pad { padding:15px }
  .budget-surface { gap:9px }
  .budget-surface .section-head .button { min-height:36px; padding-block:6px }
  .actions { gap:6px; margin-bottom:14px }
  .quick-action { min-height:77px; flex-direction:column; justify-content:center; font-size:.72rem; padding:6px 2px; text-align:center; border-radius:11px; line-height:1.2 }
  .quick-action .tile-icon { width:32px; height:32px; border-radius:9px }
  .quick-action svg { width:17px; height:17px }
  .pie-body { grid-template-columns:minmax(96px,.78fr) minmax(0,1.22fr); gap:12px }
  .bar { width:clamp(8px,3.6vw,16px) }
  .section-head { gap:8px }
  .notice { flex-wrap:wrap }
}
@media (max-width:340px) {
  .workspace { padding-left:10px; padding-right:10px }
  .hero-foot { gap:10px }
  .hero-stat strong { font-size:.83rem }
  .legend li { gap:5px }
  .budget-foot { flex-wrap:wrap; gap:4px }
}
