
:root{font-family:Inter,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;color:#191b27;background:#f7f8fc;font-synthesis:none;--purple:#3c65eb;--muted:#6d7080;--line:#eef0f5;--green:#1e8362;--red:#c62e4e}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a,input,select{outline-offset:4px}button{cursor:pointer;border:0}button:disabled{opacity:.45;cursor:default}button:hover{filter:brightness(.97)}button:active{transform:translateY(1px)}button:focus-visible,a:focus-visible{outline:3px solid #9eb4fa}svg{width:21px;height:21px;stroke:currentColor;stroke-width:1.75;fill:none;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.layout{min-height:100vh}.sidebar{position:fixed;width:238px;inset:0 auto 0 0;background:#fff;border-right:1px solid var(--line);padding:33px 24px;display:flex;flex-direction:column;z-index:20}.brand{display:flex;gap:11px;align-items:center;font-size:20px;letter-spacing:-1px;font-weight:850}.brand-mark{display:grid;place-items:center;background:#191b27;color:white;border-radius:13px;width:39px;height:39px;font-size:31px;letter-spacing:-4px;padding-right:4px}.brand small{display:block;letter-spacing:2px;color:var(--muted);font-size:11px;font-weight:600;margin-top:3px}.space-label{font-size:11px;color:#6c7082;font-weight:700;letter-spacing:1.5px;margin:46px 12px 15px}.nav{display:flex;flex-direction:column;gap:7px}.nav button{display:flex;align-items:center;gap:13px;border-radius:12px;background:none;color:#6c707e;padding:14px 16px;text-align:left;font-size:13px;font-weight:550}.nav button.active{color:var(--purple);background:#e8edfe;font-weight:700}.nav button svg{width:19px}.sidebar-bottom{margin-top:auto}.privacy-note{padding:17px 12px;display:flex;gap:10px;color:#656a7a;font-size:11px;line-height:1.6}.privacy-note svg{width:16px}.profile{display:flex;align-items:center;gap:10px;border-top:1px solid var(--line);padding:21px 4px 0}.avatar{background:#e8edfe;color:var(--purple);border-radius:50%;display:grid;place-items:center;width:34px;height:34px;font-size:12px;font-weight:750}.profile strong{font-size:12px}.profile small{display:block;font-size:11px;color:var(--muted);margin-top:3px}.main{margin-left:238px;padding:30px 40px 50px;max-width:1660px}.topbar{display:flex;align-items:center;justify-content:space-between;margin-bottom:35px;font-size:11px;color:var(--muted)}.topbar-left{display:flex;align-items:center;gap:8px}.dot{width:6px;height:6px;background:#48b998;border-radius:50%}.top-actions{display:flex;gap:10px;align-items:center}.icon-button{background:white;border:1px solid var(--line);height:37px;width:37px;border-radius:50%;display:grid;place-items:center;color:#676b7b}.icon-button svg{width:17px}.month{display:flex;align-items:center;gap:8px;color:#555b70}.month input{border:0;background:transparent;color:#666c7a;width:146px;font-size:11px}.page-head{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:25px}.eyebrow{text-transform:uppercase;letter-spacing:2px;font-size:11px;font-weight:750;color:var(--purple);margin-bottom:9px}h1{font-size:30px;line-height:1.2;letter-spacing:-1px;margin:0;font-weight:720}.subtitle{font-size:12px;color:var(--muted);margin:9px 0 0;line-height:1.6}.primary,.secondary,.ghost,.danger{display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:24px;font-size:12px;font-weight:650;padding:12px 19px;white-space:nowrap}.primary{background:#202230;color:white}.primary.purple{background:var(--purple)}.secondary{background:#eaeefc;color:#3c61d7}.ghost{background:transparent;color:#656a7a;padding:8px 10px}.danger{background:#fceaf0;color:var(--red)}.primary svg,.secondary svg{width:16px;height:16px}.hero-grid{display:grid;grid-template-columns:1.45fr 1fr;gap:20px}.balance-card{background:radial-gradient(ellipse at 90% 2%,#374b8f55,transparent 60%),linear-gradient(120deg,#1e2231,#212534);border-radius:23px;padding:27px 30px;color:white;min-height:240px;position:relative;overflow:hidden}.balance-card:after{content:'';position:absolute;width:230px;height:230px;border:1px solid #ffffff07;border-radius:50%;right:-25px;top:80px;box-shadow:0 0 0 34px #ffffff03,0 0 0 68px #ffffff02;pointer-events:none}.balance-top{display:flex;align-items:center;justify-content:space-between;color:#bdc1d0;font-size:11px}.balance-top svg{width:16px}.amount{font-size:45px;font-weight:600;letter-spacing:-2px;margin-top:17px;line-height:1.15}.amount small{font-size:27px;color:#c2c6d5;letter-spacing:-1px}.balance-caption{font-size:11px;color:#9ea3b5;margin-top:8px}.balance-footer{display:flex;align-items:center;justify-content:space-between;margin-top:27px;gap:12px;position:relative;z-index:1}.balance-footer .primary{background:white;color:#1f232f;font-size:11px}.balance-footer .ghost{color:#bcc2d5;font-size:11px}.mini-tag{display:flex;align-items:center;gap:6px;color:#bfc6de;font-size:11px}.mini-tag svg{width:13px}.hero-side{display:grid;grid-template-columns:1fr 1fr;gap:16px}.stat-card{background:white;border:1px solid var(--line);border-radius:21px;padding:22px 20px;display:flex;flex-direction:column;justify-content:space-between}.stat-top{display:flex;align-items:center;gap:8px;color:#6b707f;font-size:11px}.stat-icon{width:31px;height:31px;border-radius:50%;display:grid;place-items:center;background:#eaf8f2;color:var(--green)}.stat-icon svg{width:15px;height:15px}.stat-icon.pink{background:#fcecf1;color:#d36789}.stat-card .stat-value{font-size:26px;font-weight:650;letter-spacing:-1px;margin-top:15px}.stat-note{font-size:11px;color:#6b707f;margin-top:10px;line-height:1.6}.onboarding{display:flex;align-items:center;justify-content:space-between;gap:15px;background:#e8edfc;border:1px solid #d9e0fa;border-radius:16px;padding:16px 20px;margin-top:19px}.onboarding strong{font-size:12px;color:#3b4b7f}.onboarding p{color:#5b6894;font-size:11px;margin:5px 0 0}.onboarding-actions{display:flex;gap:8px}.demo-bar{background:#e4eafe;color:#4c5c91;padding:10px 20px;border-radius:12px;margin-bottom:20px;font-size:11px;display:flex;justify-content:space-between;align-items:center}.demo-bar button{background:transparent;color:#465ca4;text-decoration:underline;font-size:11px}.quick-row{display:grid;grid-template-columns:repeat(4,1fr);gap:13px;margin:22px 0}.quick{background:white;border:1px solid var(--line);border-radius:15px;display:flex;gap:11px;align-items:center;padding:15px 17px;text-align:left}.quick-icon{background:#f0f3fe;color:#637bc7;border-radius:11px;width:34px;height:34px;display:grid;place-items:center}.quick-icon svg{width:17px}.quick strong{font-size:11px;display:block;font-weight:600}.quick small{font-size:11px;color:#6f7486;margin-top:4px;display:block}.grid-two{display:grid;grid-template-columns:1.4fr 1fr;gap:20px;margin-top:20px}.card{background:white;border:1px solid var(--line);border-radius:20px;padding:23px}.card-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px;gap:10px}.card h2{margin:0;font-size:14px;font-weight:680;letter-spacing:-.2px}.card-head small{font-size:11px;color:#6b6f81}.link-btn{font-size:11px;background:none;color:#5c6eab;display:flex;align-items:center;gap:4px;padding:4px}.link-btn svg{width:12px}.account-strip{display:flex;gap:12px;overflow:auto;padding-bottom:3px;margin:22px 0 0}.account-pill{background:white;display:flex;align-items:center;gap:10px;border:1px solid var(--line);border-radius:13px;padding:12px 15px;min-width:190px}.account-pill strong{font-size:11px;display:block;font-weight:600}.account-pill span{font-size:11px;color:#6a7080;display:block;margin-top:3px}.account-icon{background:#e8ecf9;color:#6d7db0;border-radius:10px;display:grid;place-items:center;width:31px;height:31px}.account-icon svg{width:16px}.account-add{border:1px dashed #ced2df;background:transparent;color:#898fa2;border-radius:13px;min-width:40px;display:grid;place-items:center}.transaction{display:flex;align-items:center;gap:12px;padding:13px 0;border-bottom:1px solid #f4f5f9}.transaction:last-child{border:0}.category-icon{width:37px;height:37px;background:var(--tint,#e9edfc);color:var(--color,#6d81c3);border-radius:13px;display:grid;place-items:center;flex-shrink:0}.category-icon svg{width:17px;height:17px}.tx-text{flex:1;min-width:0}.tx-text strong{font-size:11px;font-weight:600;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tx-text small{font-size:11px;color:#6a6f83;display:block;margin-top:5px}.tx-amount{font-size:12px;font-weight:620;white-space:nowrap}.positive{color:var(--green)}.negative{color:var(--red)}.tx-edit{border:0;background:none;color:#898ea5;padding:4px;display:grid;place-items:center}.tx-edit svg{width:14px}.empty{min-height:175px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:24px;color:#6d7388}.empty .empty-icon{display:grid;place-items:center;width:50px;height:50px;border-radius:17px;background:#f3f5fc;color:#a1add2;margin-bottom:12px}.empty strong{font-size:12px;font-weight:550;color:#707586}.empty p{font-size:11px;line-height:1.7;max-width:240px;margin:7px auto 13px}.breakdown{display:flex;align-items:center;gap:20px;min-height:175px}.donut{width:144px;height:144px;border-radius:50%;background:conic-gradient(var(--segments));display:grid;place-items:center;flex-shrink:0}.donut-center{width:111px;height:111px;background:white;border-radius:50%;display:flex;flex-direction:column;justify-content:center;align-items:center}.donut-center span{font-size:11px;color:#6d6f80}.donut-center strong{font-size:17px;letter-spacing:-.5px;margin-top:4px}.legend{flex:1;min-width:0}.legend-row{display:flex;align-items:center;gap:7px;margin:13px 0;font-size:11px;color:#6b7182}.legend-row strong{font-size:11px;font-weight:600;margin-left:auto;color:#53546b;white-space:nowrap}.legend-dot{width:6px;height:6px;border-radius:50%;flex-shrink:0}.progress{height:5px;border-radius:5px;background:#edeff8;overflow:hidden}.progress i{height:100%;display:block;border-radius:5px;background:var(--purple)}.goal-row{padding:13px 0;border-bottom:1px solid #f3f5f9}.goal-row:last-child{border:0}.goal-top{display:flex;gap:10px;align-items:center;justify-content:space-between;margin-bottom:11px}.goal-top strong{font-size:11px;font-weight:550}.goal-top span{font-size:11px;color:#676f8a}.goal-amount{display:flex;justify-content:space-between;font-size:11px;color:#676f8a;margin-top:8px}.goal-amount strong{color:#60667b;font-weight:550}.bill-row{display:flex;align-items:center;gap:10px;padding:12px 0;border-bottom:1px solid #f3f5f9}.bill-date{width:37px;height:38px;background:#f2f4f9;border-radius:10px;display:grid;place-items:center;color:#646d8b;font-size:11px;line-height:1.1;text-align:center;flex-shrink:0}.bill-date strong{font-size:15px;display:block;color:#585e74}.bill-row .tx-text small{font-size:11px}.due{background:#fff1dc;color:#be8f3d;padding:4px 7px;border-radius:5px;font-size:11px}.footer{display:flex;justify-content:space-between;color:#6b7084;font-size:11px;line-height:1.7;margin-top:28px;gap:20px}.footer span{display:flex;align-items:center;gap:5px}.footer svg{width:12px}.segmented{display:inline-flex;padding:4px;border-radius:12px;background:#eeeff5;gap:3px;flex-wrap:wrap}.segmented button{padding:9px 17px;border-radius:9px;font-size:11px;background:transparent;color:#676a7c}.segmented button.selected{background:white;color:#313749;box-shadow:0 1px 5px #20202008}.toolbar{display:flex;justify-content:space-between;gap:12px;align-items:center;margin:20px 0}.search{background:white;border:1px solid var(--line);border-radius:12px;display:flex;align-items:center;padding:10px 12px;gap:8px}.search svg{color:#a4a7b5;width:16px}.search input{border:0;background:transparent;font-size:11px;min-width:130px;outline:none}.list-card{min-height:300px}.section-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin:24px 0}.item-card{background:white;border:1px solid var(--line);border-radius:19px;padding:22px}.item-top{display:flex;justify-content:space-between;align-items:center}.item-card h3{font-size:14px;margin:15px 0 8px}.item-card .big-number{font-size:28px;letter-spacing:-1px;font-weight:650;margin:15px 0}.item-card p{color:#6a6f83;font-size:11px;line-height:1.7}.item-actions{display:flex;gap:5px;justify-content:flex-end;margin-top:20px}.budget-row{display:grid;grid-template-columns:150px 1fr 100px 90px;gap:20px;align-items:center;padding:20px 0;border-bottom:1px solid var(--line);font-size:11px}.budget-row span{color:#6f748b;font-size:11px}.budget-row .link-btn{justify-content:flex-end}.help-strip{padding:15px 18px;border:1px solid #e1e6f8;border-radius:14px;background:#ecf0fe;color:#5f6b94;font-size:11px;line-height:1.8;margin:20px 0}.help-strip strong{color:#4d5a87}.badge{display:inline-block;font-size:11px;color:#626a83;background:#ebeef9;border-radius:6px;padding:5px 8px}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.setting-row{display:flex;justify-content:space-between;align-items:center;padding:15px 0;border-bottom:1px solid var(--line);gap:10px}.setting-row strong{font-size:12px;display:block}.setting-row p{font-size:11px;color:#6f7489;line-height:1.6;margin-bottom:0}.mobile-nav{display:none}.demo-label{display:inline-block;font-size:11px;border-radius:5px;padding:4px 7px;margin-left:7px;background:#dbe3fc;color:#6676a9}
dialog{border:0;border-radius:25px;padding:0;width:min(470px,calc(100vw - 24px));max-height:90vh;color:#242835;box-shadow:0 30px 100px #1e222f33;background:white}dialog::backdrop{background:#11162866;backdrop-filter:blur(5px)}.modal-head{display:flex;justify-content:space-between;align-items:center;padding:25px 27px 10px}.modal-head h2{font-size:19px;letter-spacing:-.4px;margin:0}.modal-body{padding:14px 27px 27px}.modal-body .segmented{display:flex;margin-bottom:22px}.modal-body .segmented button{flex:1;padding:11px}.field{margin-top:17px}.field label{display:block;font-size:11px;font-weight:600;color:#6e7383;margin-bottom:8px}.field input,.field select{width:100%;border:1px solid #e6e8ef;background:#fafafc;padding:12px 13px;border-radius:11px;font-size:13px;color:#444857}.field .amount-input{font-size:32px;background:none;border:0;border-bottom:1px solid #e4e6ef;border-radius:0;padding:10px 0;font-weight:600;letter-spacing:-1px}.field-row{display:grid;grid-template-columns:1fr 1fr;gap:14px}.form-note{font-size:11px;line-height:1.7;color:#6d748b;margin:16px 0}.submit{width:100%;margin-top:23px;padding:14px}.form-error{font-size:11px;color:var(--red);margin-top:12px;min-height:14px}.delete-action{display:block;margin:13px auto 0;background:none;color:#bb6680;font-size:11px}.hidden{display:none!important}#toast{position:fixed;bottom:25px;left:50%;transform:translate(-50%,20px);padding:13px 22px;background:#1f2331;color:#fff;border-radius:14px;font-size:12px;z-index:100;opacity:0;transition:opacity .2s,transform .2s;pointer-events:none;max-width:90vw;text-align:center}#toast.show{opacity:1;transform:translate(-50%,0)}
@media(min-width:1450px){.main{padding:36px 60px 60px}.balance-card{min-height:260px}.card{padding:26px}.amount{font-size:52px}.hero-grid,.grid-two{gap:25px}.hero-side{gap:22px}.breakdown{gap:30px}}@media(max-width:1150px){.sidebar{width:200px;padding:30px 17px}.main{margin-left:200px;padding:27px}.hero-grid{grid-template-columns:1.25fr 1fr}.stat-card{padding:18px 14px}.stat-card .stat-value{font-size:23px}.grid-two{grid-template-columns:1.2fr 1fr}.breakdown{gap:13px;flex-wrap:wrap;justify-content:center}.legend{min-width:140px}.quick{padding:12px}.quick small{display:none}.section-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:900px){.hero-grid{grid-template-columns:1fr}.hero-side{grid-template-columns:1fr 1fr}.stat-card{padding:17px 20px}.stat-card .stat-value{margin-top:8px}.hero-side .stat-card{display:grid;grid-template-columns:1fr 1fr}.stat-note{grid-column:1 / -1}.stat-value{text-align:right}.grid-two{grid-template-columns:1fr 1fr}.onboarding{align-items:flex-start;flex-direction:column}.quick-row{grid-template-columns:repeat(2,1fr)}.settings-grid{grid-template-columns:1fr}.budget-row{grid-template-columns:110px 1fr 70px 60px;gap:10px}.page-head .primary{padding:11px 15px}.page-head h1{font-size:26px}.main{padding:25px}.footer{flex-direction:column;gap:5px}.onboarding-actions{width:100%}.breakdown .legend{width:100%}}
@media(max-width:650px){.sidebar{display:none}.main{margin-left:0;padding:20px 18px 100px}.topbar{margin-bottom:25px}.topbar-left{font-size:11px}.topbar-left:before{content:'b';display:grid;place-items:center;background:#212531;border-radius:9px;width:28px;height:28px;color:white;font-size:23px;font-weight:750;margin-right:5px}.top-actions .icon-button{width:31px;height:31px}.month input{width:125px;font-size:11px}.month svg{display:none}.page-head{margin-bottom:20px}.page-head h1{font-size:25px}.page-head .primary{width:39px;height:39px;border-radius:50%;padding:0}.page-head .primary .button-label{display:none}.page-head .primary svg{width:20px;height:20px}.eyebrow{font-size:11px}.subtitle{font-size:11px}.balance-card{min-height:228px;padding:24px}.amount{font-size:43px}.balance-footer{margin-top:23px}.hero-grid{gap:13px}.hero-side{gap:12px}.stat-card .stat-value{font-size:21px}.stat-top{font-size:11px;gap:6px}.stat-icon{width:25px;height:25px}.stat-note{font-size:11px}.stat-card{padding:15px}.hero-side .stat-card{display:flex}.stat-value{text-align:left}.onboarding{padding:15px}.onboarding-actions .primary,.onboarding-actions .ghost{font-size:11px}.quick-row{gap:10px;margin:17px 0}.quick{padding:12px}.quick-icon{width:31px;height:31px}.quick strong{font-size:11px}.grid-two{grid-template-columns:1fr;gap:15px;margin-top:15px}.card{padding:21px}.breakdown{flex-wrap:nowrap;gap:25px;justify-content:space-around}.breakdown .legend{min-width:120px;width:auto}.donut{width:132px;height:132px}.donut-center{width:101px;height:101px}.account-strip{margin-top:17px}.account-pill{min-width:175px}.footer{margin-top:22px;font-size:11px}.mobile-nav{position:fixed;bottom:0;left:0;right:0;height:73px;padding:8px 7px max(8px,env(safe-area-inset-bottom));background:#ffffffed;border-top:1px solid var(--line);backdrop-filter:blur(16px);display:flex;justify-content:space-around;z-index:30}.mobile-nav button{background:none;color:#6a6f82;font-size:11px;display:flex;align-items:center;gap:5px;flex-direction:column;width:60px;padding:6px}.mobile-nav button svg{width:21px;height:21px}.mobile-nav button.active{color:var(--purple)}.section-grid{grid-template-columns:1fr;gap:13px}.toolbar{flex-wrap:wrap}.segmented{width:100%;display:flex}.segmented button{flex:1;padding:9px 11px}.search{width:100%}.search input{width:100%}.budget-row{grid-template-columns:1fr 80px;gap:10px}.budget-row .progress{grid-row:2;grid-column:1}.budget-row .link-btn{grid-row:2;grid-column:2}.list-card .transaction{gap:9px}.tx-amount{font-size:11px}.tx-text strong{font-size:11px}.tx-text small{font-size:11px}.category-icon{width:32px;height:32px;border-radius:11px}.demo-bar{font-size:11px;padding:9px 12px}.demo-bar button{font-size:11px}.item-card{padding:20px}#toast{bottom:90px}.modal-head{padding:23px 23px 10px}.modal-body{padding:12px 23px 23px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

/* Dark surfaces retain the same layout, category colors and financial meaning. */
:root[data-theme="dark"]{color-scheme:dark;color:#eaedf5;background:#11131b;--purple:#8ba6ff;--muted:#a1a4b6;--line:#2a2d3e;--green:#76d8b2;--red:#f39bb2}
[data-theme="dark"] .sidebar{background:#171923}
[data-theme="dark"] .brand-mark{background:#8ba6ff;color:#131725}
[data-theme="dark"] .brand small,[data-theme="dark"] .space-label,[data-theme="dark"] .privacy-note,[data-theme="dark"] .profile small{color:#a1a4b6}
[data-theme="dark"] .nav button{color:#a4a7bb}
[data-theme="dark"] .nav button.active{color:#b6c7ff;background:#21283e}
[data-theme="dark"] .avatar{background:#262c42;color:#bcccff}
[data-theme="dark"] .icon-button{background:#202330;color:#cacfde}
[data-theme="dark"] .theme-toggle{background:#262c42;border-color:#414a69;color:#cedaff}
[data-theme="dark"] .month,[data-theme="dark"] .month input{color:#b4b6c9}
[data-theme="dark"] .primary{background:#e4e8f7;color:#1e2332}
[data-theme="dark"] .primary.purple{background:#6787f3;color:#090e1e}
[data-theme="dark"] .secondary{background:#262d47;color:#bacaff}
[data-theme="dark"] .ghost{color:#a5adc7}
[data-theme="dark"] .danger{background:#442535;color:#ffb2c6}
[data-theme="dark"] .balance-card{background:radial-gradient(ellipse at 90% 2%,#40539155,transparent 60%),linear-gradient(120deg,#202535,#22283c);border:1px solid #333a50}
[data-theme="dark"] .balance-footer .primary{background:#e4e9fc;color:#1f2435}
[data-theme="dark"] .balance-footer .ghost{color:#c3ccea}
[data-theme="dark"] .stat-card,[data-theme="dark"] .quick,[data-theme="dark"] .card,[data-theme="dark"] .account-pill,[data-theme="dark"] .item-card{background:#1b1e2a;color:#e6e9f2}
[data-theme="dark"] .stat-top,[data-theme="dark"] .stat-note,[data-theme="dark"] .quick small,[data-theme="dark"] .account-pill span,[data-theme="dark"] .tx-text small,[data-theme="dark"] .card-head small,[data-theme="dark"] .item-card p,[data-theme="dark"] .budget-row span,[data-theme="dark"] .setting-row p{color:#a9abc0}
[data-theme="dark"] .stat-icon{background:#233b35;color:#8cdfbb}
[data-theme="dark"] .stat-icon.pink{background:#422c3c;color:#efabc8}
[data-theme="dark"] .onboarding,[data-theme="dark"] .demo-bar,[data-theme="dark"] .help-strip{background:#21273b;border-color:#343c59;color:#a9b2cc}
[data-theme="dark"] .onboarding strong,[data-theme="dark"] .help-strip strong{color:#c2d0ff}
[data-theme="dark"] .onboarding p,[data-theme="dark"] .demo-bar button{color:#afbadc}
[data-theme="dark"] .quick-icon,[data-theme="dark"] .account-icon{background:#272d41;color:#abbcf3}
[data-theme="dark"] .account-add{border-color:#495270;color:#b1bad7}
[data-theme="dark"] .category-icon{background:color-mix(in srgb,var(--tint) 16%,#1b1e2a);color:color-mix(in srgb,var(--color) 80%,white)}
[data-theme="dark"] .link-btn{color:#a0b2eb}
[data-theme="dark"] .transaction,[data-theme="dark"] .goal-row,[data-theme="dark"] .bill-row{border-bottom-color:#2a2d3e}
[data-theme="dark"] .tx-edit{color:#979eb4}
[data-theme="dark"] .empty{color:#a0a6ba}
[data-theme="dark"] .empty .empty-icon{background:#262b3c;color:#a0aedb}
[data-theme="dark"] .empty strong{color:#b7bcce}
[data-theme="dark"] .donut-center{background:#1b1e2a}
[data-theme="dark"] .donut-center span,[data-theme="dark"] .legend-row{color:#a2a8bb}
[data-theme="dark"] .legend-row strong{color:#dadeec}
[data-theme="dark"] .progress{background:#2e3241}
[data-theme="dark"] .goal-top span,[data-theme="dark"] .goal-amount{color:#a7afc6}
[data-theme="dark"] .goal-amount strong{color:#c7cee6}
[data-theme="dark"] .bill-date{background:#292e3d;color:#a1aac9}
[data-theme="dark"] .bill-date strong{color:#c7d0ee}
[data-theme="dark"] .due{background:#473d26;color:#efd39b}
[data-theme="dark"] .footer{color:#9b9eb1}
[data-theme="dark"] .segmented{background:#151722}
[data-theme="dark"] .segmented button{color:#a0a6b9}
[data-theme="dark"] .segmented button.selected{background:#2e3343;color:#e1e8ff;box-shadow:none}
[data-theme="dark"] .search{background:#1b1e2a}
[data-theme="dark"] .search input{color:#e6e9f2}
[data-theme="dark"] input::placeholder{color:#8d92a3}
[data-theme="dark"] .badge,[data-theme="dark"] .demo-label{background:#293047;color:#bcc6e8}
[data-theme="dark"] dialog{background:#1b1e2a;color:#e6e9f4;box-shadow:0 30px 100px #0009;border:1px solid #33394a}
[data-theme="dark"] dialog::backdrop{background:#060710b3}
[data-theme="dark"] .field label{color:#b6bcd0}
[data-theme="dark"] .field input,[data-theme="dark"] .field select{background:#212430;border-color:#3e4251;color:#e1e5f2}
[data-theme="dark"] .field .amount-input{background:none;border-color:#3e4251}
[data-theme="dark"] .form-note{color:#abb0c3}
[data-theme="dark"] .delete-action{color:#f2a6bc}
[data-theme="dark"] #toast{background:#e3e8fa;color:#1e2438;box-shadow:0 6px 28px #0005}
[data-theme="dark"] .positive{color:var(--green)}
[data-theme="dark"] .negative{color:var(--red)}
@media(max-width:650px){[data-theme="dark"] .mobile-nav{background:#171923f2}[data-theme="dark"] .mobile-nav button{color:#9ea4b9}[data-theme="dark"] .mobile-nav button.active{color:#b0c2ff}[data-theme="dark"] .topbar-left:before{background:#8ba6ff;color:#141825}.topbar-left{white-space:nowrap}.top-actions{gap:6px}.month input{width:118px}}
@media(max-width:370px){.topbar-left{font-size:11px;gap:5px}.topbar-left:before{margin-right:0}.top-actions{gap:4px}.month input{width:104px}.topbar-left .dot{display:none}}
@media(max-width:650px){.topbar{gap:12px}.topbar-left{font-size:0;gap:0;min-width:28px}.topbar-left .dot{display:none}.topbar-left:before{font-size:23px;margin:0}.top-actions{flex-shrink:0}}


.sync-banner{display:flex;align-items:center;justify-content:space-between;gap:10px;border:1px solid var(--line);border-radius:12px;padding:11px 15px;margin:-14px 0 22px;background:#fff;color:#818696;font-size:11px}.sync-banner span{display:flex;align-items:center;gap:8px}.sync-banner button{background:transparent;color:var(--purple);font-size:11px;white-space:nowrap}.sync-warning{border-color:#d5b16b;background:#fff8e8;color:#9a6e24}.device-panel{margin-bottom:20px}.install-guide h3{font-size:13px;margin-top:22px}.install-guide p{font-size:12px;line-height:1.8;color:var(--muted)}[data-theme="dark"] .sync-banner{background:#1b1e2a;color:#adb4c9}[data-theme="dark"] .sync-warning{background:#3b3021;border-color:#76613b;color:#ead4a8}.device-panel a{color:var(--purple)}@media(max-width:650px){.sync-banner{font-size:11px;padding:10px 12px}.device-panel .card-head{align-items:flex-start;flex-direction:column}}

/* --- Versión local: avisos, ajustes del dispositivo y privacidad --- */
.status-banner{display:flex;align-items:center;justify-content:space-between;gap:10px;border:1px solid var(--line);border-radius:12px;padding:11px 15px;margin:-14px 0 22px;background:#fff;color:#818696;font-size:11px}
.status-banner span{display:flex;align-items:center;gap:8px}
.status-banner button{background:transparent;color:var(--purple);font-size:11px;font-weight:600;white-space:nowrap}
.status-update{border-color:#9cafec;background:#eef2ff;color:#3d55a3}
.status-warning{border-color:#d5b16b;background:#fff8e8;color:#9a6e24}
[data-theme="dark"] .status-banner{background:#1b1e2a;color:#adb4c9}
[data-theme="dark"] .status-update{background:#21283d;border-color:#43548c;color:#c3d1ff}
[data-theme="dark"] .status-warning{background:#3b3021;border-color:#76613b;color:#ead4a8}
.device-panel{margin-bottom:20px}
.device-panel a,.privacy-link{color:var(--purple)}
.install-guide h3{font-size:13px;margin-top:22px}
.install-guide p{font-size:12px;line-height:1.8;color:var(--muted)}
.backup-ready{display:grid;gap:10px;margin-top:12px}
.backup-ready button{width:100%;justify-content:center}
@media(max-width:650px){.status-banner{font-size:11px;padding:10px 12px}.device-panel .card-head{align-items:flex-start;flex-direction:column}}

/* Página de privacidad */
  .legal{max-width:680px;margin:0 auto;padding:40px 20px 80px;line-height:1.75;font-size:14px}
  .legal h1{font-size:26px;margin-bottom:6px}
  .legal h2{font-size:16px;margin:28px 0 6px}
  .legal p,.legal li{color:var(--muted)}
  .legal ul{padding-left:20px}
  .legal a{color:var(--purple)}

/* Accesibilidad (modo claro): morado activo con contraste suficiente sobre el lila y zona táctil mínima de 24 px */
:root:not([data-theme="dark"]) .nav button.active,:root:not([data-theme="dark"]) .avatar{color:#2e4fbe}
.tx-edit{min-width:32px;min-height:32px}
.demo-bar button{min-height:24px}

/* Sincronización: controles nuevos con contraste AA y objetivos táctiles de 24 px o más. */
.sync-settings{margin-top:18px;padding-top:18px;border-top:1px solid var(--line)}
.sync-settings h3{font-size:14px;margin:0 0 8px}.sync-state{font-size:12px;font-weight:600;line-height:1.6}
.sync-actions{display:flex;flex-wrap:wrap;gap:8px}.sync-actions button{min-height:36px}
.sync-code{font-family:monospace;font-size:18px!important;letter-spacing:.5px}
[id^="form-sync-"] .field input,[id^="form-sync-"] .field select{border-color:#6e748a;min-height:40px}
[data-theme="dark"] [id^="form-sync-"] .field input,[data-theme="dark"] [id^="form-sync-"] .field select{border-color:#949bb3}
.status-sync{color:#604227;background:#fff8e8;border-color:#9a6e24}
[data-theme="dark"] .status-sync{color:#ecd6a8;background:#3b3021;border-color:#b9a37c}
[id^="form-sync-"] .submit:disabled{opacity:1;background:#dce2f5;color:#384260}
[data-theme="dark"] [id^="form-sync-"] .submit:disabled{background:#353a4c;color:#e3e8fa}
@media(max-width:650px){.sync-actions{display:grid;grid-template-columns:1fr}.sync-actions button{width:100%}}

.privacy-link,.legal a{display:inline-flex;align-items:center;min-height:24px}
.status-sync button{min-height:28px;min-width:24px}

/* BLVNKY: tinta, blanco cálido y azul eléctrico de la referencia de marca. */
:root{--purple:#1646ed;background:#f8f7f3;color:#191b20;--line:#e5e5e3}
.brand{gap:10px;letter-spacing:-1.6px}.brand-word{font-size:25px;font-weight:900;line-height:1;letter-spacing:-1.7px}.brand-word small{font-size:11px;font-weight:750;letter-spacing:3px;margin-top:7px;color:#555c6d}.brand-portrait{width:44px;height:44px;object-fit:cover;border-radius:14px;border:2px solid #191b20}.brand-word:after{content:'';display:block;height:3px;background:#1646ed;width:43px;transform:rotate(-5deg);margin-top:6px}.brand small{letter-spacing:3px}
.balance-card{background:linear-gradient(125deg,#16191f,#252b36);border:1px solid #353b48;border-radius:22px}.balance-card:after{border-color:#4778ff38;box-shadow:0 0 0 34px #4778ff10,0 0 0 68px #4778ff08}.balance-top{color:#d1d5df}.balance-caption{color:#b9c2d4}.balance-footer .primary{background:#fff;color:#191b20}.balance-footer .ghost{color:#d0d7e8}.amount small{color:#c6d1e9}
.nav button.active{color:#1646d0;background:#edf1ff}.primary.purple{background:#1646ed}.avatar{background:#eaf0ff;color:#1646d0}.eyebrow{color:#1646d0}.dot{background:#1646ed}.primary{background:#191b20}.sidebar{background:#fff}.main h1{font-weight:780;letter-spacing:-1.1px}.onboarding{border-left:3px solid #1646ed}.quick-icon{border-radius:10px}.profile .avatar{font-weight:850}.topbar-left{font-weight:600}
:root[data-theme="dark"]{background:#101114;color:#eeeff2;--line:#34363c;--purple:#98b5ff}
[data-theme="dark"] .sidebar{background:#17181c}[data-theme="dark"] .stat-card,[data-theme="dark"] .quick,[data-theme="dark"] .card,[data-theme="dark"] .account-pill,[data-theme="dark"] .item-card,[data-theme="dark"] dialog,[data-theme="dark"] .search,[data-theme="dark"] .donut-center{background:#1d1f24}
[data-theme="dark"] .brand-word small{color:#b5bac6}[data-theme="dark"] .brand-portrait{border-color:#6b83bd}[data-theme="dark"] .brand-word:after{background:#618aff}[data-theme="dark"] .nav button.active{color:#b0c6ff;background:#26324e}[data-theme="dark"] .eyebrow{color:#a7bfff}[data-theme="dark"] .balance-card{background:linear-gradient(125deg,#171b24,#252e43);border-color:#4b5b7a}[data-theme="dark"] .primary.purple{background:#a6beff;color:#131c32}[data-theme="dark"] .primary{background:#edf0f8;color:#191b20}
@media(max-width:650px){.topbar-left:before{content:'';width:32px;height:36px;background:#191b20 url('blvnky.webp') center/cover;border-radius:10px;border-bottom:3px solid #1646ed}[data-theme="dark"] .topbar-left:before{background:#191b20 url('blvnky.webp') center/cover}.main h1{letter-spacing:-.8px}[data-theme="dark"] .mobile-nav{background:#17181cf5}}

/* Revisión 27/10: botón «Ver más» de la lista de movimientos */
.list-more{display:flex;justify-content:center;padding:14px 0 4px}

/* Revisión 27/10: en pantallas táctiles los campos usan 16 px para que el iPhone no haga zoom al tocarlos */
@media (max-width:650px),(pointer:coarse){input,select,textarea{font-size:16px}}
.mobile-nav button{width:auto;min-width:60px;flex:1;white-space:nowrap;padding:6px 2px}
