:root{--bg:#f6f8f6;--surface:#fff;--ink:#21352d;--muted:#748079;--line:#e7ece7;--green:#176e55;--pale:#e9f3ed;--lime:#d8edb0;--red:#bd5a52;--orange:#c08a3c;--radius:22px;font-family:"Avenir Next",Avenir,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);font-synthesis:none;font-size:14px;background:var(--bg)}
*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:default;opacity:.5}a{color:inherit;text-decoration:none}button{border:0}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #9bb896;outline-offset:3px}svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.skip{position:absolute;top:-100px;left:20px;z-index:50;background:white;padding:12px}.skip:focus{top:10px}
.sidebar{position:fixed;inset:0 auto 0 0;width:238px;background:#fff;border-right:1px solid var(--line);padding:36px 22px 22px;display:flex;flex-direction:column;z-index:10}.brand{display:flex;align-items:center;gap:10px;padding:0 12px;font-size:39px;line-height:1;font-weight:750;letter-spacing:-2px}.brand-dot,.mobile-brand span{color:var(--green)}.brand-icon{width:40px;height:40px;background:var(--green);border-radius:13px;color:var(--lime);display:grid;place-items:center}.brand-icon svg{width:28px;height:28px;stroke-width:3}.sidebar-caption{font-size:10px;letter-spacing:1.8px;color:#869188;font-weight:650;padding:0 15px;margin-top:48px;margin-bottom:18px}.nav-item{display:flex;align-items:center;gap:14px;padding:14px 16px;border-radius:12px;margin:5px 0;color:#75817a;font-weight:550}.nav-item.active{color:var(--green);background:var(--pale)}.nav-item.active:after{content:"";width:6px;height:6px;background:var(--green);border-radius:50%;margin-left:auto}.sidebar-bottom{margin-top:auto;padding-top:25px}.install-card{background:#f6f8f3;border:1px solid #e9eddf;border-radius:16px;padding:18px}.small-icon{display:block;color:var(--green);margin-bottom:10px}.install-card strong{display:block;font-size:13px}.install-card p{color:var(--muted);font-size:12px;line-height:1.7;margin:8px 0 10px}.text-button{padding:0;background:none;color:var(--green);font-weight:600;font-size:12px}.text-button:hover{text-decoration:underline}.profile{display:flex;align-items:center;gap:10px;border-top:1px solid var(--line);margin-top:25px;padding-top:20px}.profile strong{font-size:12px}.profile small{display:block;font-size:10px;color:var(--muted);margin-top:4px}.avatar{width:36px;height:36px;flex-shrink:0;display:grid;place-items:center;background:#edf0e5;color:#667647;border-radius:50%;font-size:12px;font-weight:650}.profile-dot{width:6px;height:6px;background:#92ab65;border-radius:50%;margin-left:auto}.workspace{margin-left:238px}.topbar{height:85px;display:flex;align-items:center;justify-content:space-between;padding:0 42px;border-bottom:1px solid var(--line);background:#fcfdfb}.topbar-label{font-size:12px;color:#89928a}.topbar-right{display:flex;align-items:center;gap:16px}.save-status{font-size:11px;color:#748079;display:flex;align-items:center;gap:7px}.save-status i{width:5px;height:5px;background:#6a9b74;border-radius:50%}.icon-button{background:none;color:#819087;padding:8px;display:grid;place-items:center;border-radius:50%}.icon-button:hover{background:var(--pale)}.mobile-brand{display:none}.avatar-button{border:1px solid #e3e8d8}
main{max-width:1460px;margin:auto;padding:34px 42px 18px}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:24px}.eyebrow{font-size:10px;letter-spacing:1.6px;color:var(--muted);font-weight:650;margin:0 0 7px}h1{font-size:30px;letter-spacing:-1.1px;line-height:1.2;margin:0 0 7px;font-weight:650}.subtitle{margin:0;color:var(--muted);font-size:12px;line-height:1.7}.heading-actions{display:flex;gap:10px;align-items:center}.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:11px;background:var(--green);color:white;padding:13px 18px;font-size:12px;font-weight:600;min-height:44px}.button svg{width:16px;height:16px}.button:hover{filter:brightness(.96)}.button.secondary{background:white;color:var(--ink);border:1px solid var(--line)}.button.soft{background:var(--pale);color:var(--green)}.button.danger{background:#f9ece8;color:#9d423c}.month-picker{display:flex;align-items:center;gap:8px;border:1px solid var(--line);background:white;border-radius:10px;padding:8px 12px;max-width:200px}.month-picker svg{width:16px;height:16px;color:var(--muted)}.month-picker input{border:0;background:transparent;color:var(--ink);width:141px;font-size:12px;min-height:26px}.demo-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:22px;padding:11px 16px;background:#eef2e3;border:1px solid #e1e8d3;border-radius:11px;font-size:11px;color:#5d6c43}.demo-bar span{display:flex;align-items:center;gap:8px}.demo-bar svg{width:15px;height:15px}.demo-bar button{color:#53673c;flex-shrink:0}.stats-grid{display:grid;grid-template-columns:1.55fr 1fr 1fr;gap:18px;margin-bottom:23px}.stat{background:white;border:1px solid var(--line);border-radius:var(--radius);padding:24px;min-height:168px;position:relative;overflow:hidden}.stat.primary{background:var(--green);color:white;border-color:var(--green)}.stat-label{display:flex;justify-content:space-between;align-items:center;color:var(--muted);font-size:12px}.stat.primary .stat-label{color:#d1e5d8}.stat-icon{width:34px;height:34px;display:grid;place-items:center;background:#f0f6f0;border-radius:10px;color:var(--green)}.stat-icon svg{width:17px;height:17px}.stat.expense .stat-icon{background:#fcf0ec;color:var(--red)}.primary .stat-icon{background:#ffffff14;color:#e4f0d1}.stat-number{font-size:29px;letter-spacing:-1.1px;font-weight:650;margin:11px 0 12px;position:relative;z-index:1;white-space:nowrap}.primary .stat-number{font-size:34px}.stat-number .currency{font-size:.45em;letter-spacing:0;font-weight:500;margin-right:6px;opacity:.65}.stat-foot{font-size:10px;color:var(--muted);position:relative;z-index:1}.primary .stat-foot{color:#d4e8d7}.balance-decoration{position:absolute;right:-14px;bottom:-35px;width:130px;height:130px;border:22px solid #ffffff08;border-radius:50%;transform:rotate(-20deg)}.stat-foot .pill{padding:4px 7px;border-radius:6px;background:#ffffff15;margin-right:7px;color:#e7f2dd}.stat-foot .up{color:var(--green)}
.dashboard-grid{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(275px,1fr);gap:22px}.panel{background:white;border:1px solid var(--line);border-radius:var(--radius);padding:24px}.panel-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:19px}.panel-heading h2{font-size:15px;letter-spacing:-.3px;margin:0;font-weight:650}.panel-heading p{font-size:10px;color:var(--muted);margin:5px 0 0}.panel-heading .text-button{font-size:10px}.trend{min-height:266px}.legend{display:flex;gap:14px;font-size:9px;color:var(--muted);align-items:center}.legend span{display:flex;gap:5px;align-items:center}.legend i{height:6px;width:6px;background:var(--green);border-radius:50%}.legend i.expense-dot{background:#b4c59e}.chart{width:100%;height:158px;display:block;stroke:none;overflow:visible}.chart text{fill:#939d95;font-size:9px;font-family:inherit}.chart line{stroke:#eef1ed;stroke-width:1}.chart .income-bar{fill:var(--green)}.chart .expense-bar{fill:#becfac}.chart-note{font-size:10px;color:var(--muted);padding-top:8px;margin-top:12px;border-top:1px solid var(--line)}.chart-note strong{color:var(--ink);font-weight:550}.spending-panel{min-height:266px}.spending-content{display:flex;align-items:center;gap:18px;margin-top:20px}.donut{width:114px;height:114px;border-radius:50%;position:relative;flex-shrink:0}.donut-center{position:absolute;inset:17px;border-radius:50%;background:white;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:4px}.donut-center strong{font-size:20px;letter-spacing:-.7px}.donut-center small{font-size:8px;color:var(--muted)}.category-legend{list-style:none;margin:0;padding:0;flex:1}.category-legend li{display:flex;align-items:center;font-size:10px;gap:6px;padding:7px 0}.category-legend .dot{height:6px;width:6px;border-radius:50%;flex-shrink:0}.category-legend strong{margin-left:auto;font-size:10px;color:var(--muted);font-weight:500}.transactions-panel{grid-column:1;padding-bottom:12px}.side-stack{display:flex;flex-direction:column;gap:18px}.transaction-row{display:flex;align-items:center;gap:12px;padding:14px 0;border-top:1px solid #f0f2ef;min-width:0}.transaction-row .category-icon{height:38px;width:38px;border-radius:12px;flex-shrink:0;display:grid;place-items:center}.category-icon svg{width:17px;height:17px}.transaction-detail{min-width:0;flex:1}.transaction-detail strong{display:block;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:550}.transaction-detail small{display:block;color:var(--muted);font-size:10px;margin-top:5px}.transaction-amount{text-align:right;font-size:12px;font-weight:550;white-space:nowrap}.transaction-amount.income{color:var(--green)}.transaction-amount small{display:block;font-weight:400;font-size:9px;color:var(--muted);margin-top:5px}.transaction-row .edit-button{width:28px;padding:4px;color:#7d8a7e;background:none}.edit-button svg{width:15px;height:15px}.budget-row{margin-top:20px}.budget-top{display:flex;justify-content:space-between;font-size:11px;margin-bottom:9px;gap:8px}.budget-top span{font-weight:550}.budget-top small{color:var(--muted);font-size:10px}.progress-track{height:6px;overflow:hidden;background:#f0f3ed;border-radius:20px}.progress-fill{height:100%;border-radius:20px;background:var(--green);min-width:0}.budget-bottom{font-size:9px;color:var(--muted);margin-top:7px}.budget-bottom.over{color:var(--red)}.goal-mini{display:flex;align-items:center;gap:10px;padding-top:4px}.goal-mini .category-icon{display:grid;place-items:center;background:#f4f3e7;color:#969542;height:37px;width:37px;border-radius:12px}.goal-mini strong{display:block;font-size:11px;margin-bottom:4px}.goal-mini small{color:var(--muted);font-size:9px}.goal-mini .percent{margin-left:auto;font-size:19px;font-weight:600;letter-spacing:-.8px}.goal-mini + .progress-track{margin-top:14px}.ad-placeholder{margin-top:22px;padding:12px 18px;display:flex;align-items:center;justify-content:center;gap:10px;border:1px dashed #d8dfd5;border-radius:11px;font-size:10px;color:#84907e;background:#f3f5ef}.ad-badge{font-size:8px;letter-spacing:1px;border:1px solid #d9dfd5;padding:3px 6px;border-radius:4px}.footer{display:flex;align-items:center;justify-content:space-between;padding:15px 42px 28px;font-size:11px;color:#8d978e}.footer>span{font-weight:600}.footer span span{font-weight:400;margin-left:8px;font-size:10px}.footer .text-button{font-size:10px;font-weight:400;color:#8d978e}.bottom-nav{display:none}
.filters{display:flex;align-items:center;gap:12px;margin-bottom:20px}.search-field{position:relative;flex:1}.search-field svg{position:absolute;top:13px;left:13px;width:17px;height:17px;color:var(--muted)}.search-field input{width:100%;padding:13px 14px 13px 39px;border:1px solid var(--line);border-radius:11px;background:white;font-size:12px}.filters select{padding:13px 12px;border:1px solid var(--line);border-radius:11px;background:white;color:var(--ink);font-size:12px;min-height:44px}.list-summary{display:flex;justify-content:space-between;padding-bottom:16px;color:var(--muted);font-size:11px}.empty{padding:32px 15px;text-align:center;color:var(--muted)}.empty .empty-icon{background:var(--pale);color:var(--green);display:grid;place-items:center;border-radius:17px;width:48px;height:48px;margin:0 auto 14px}.empty strong{display:block;color:var(--ink);font-size:14px;margin-bottom:8px}.empty p{font-size:12px;line-height:1.7;margin:0 auto 15px;max-width:290px}.empty .button{font-size:11px}.cards-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.budget-card .card-category{display:flex;align-items:center;gap:10px;font-size:14px;font-weight:600}.budget-card .card-category .category-icon{height:40px;width:40px;border-radius:12px;display:grid;place-items:center}.budget-card .card-category button{margin-left:auto}.budget-card .budget-total{font-size:25px;letter-spacing:-.6px;margin:26px 0 9px}.budget-card .budget-total small{font-size:10px;color:var(--muted);letter-spacing:0}.budget-card .budget-bottom{font-size:11px;margin-top:14px}.goal-card .goal-icon{color:#8d985f;background:#f2f4e9;width:44px;height:44px;border-radius:13px;display:grid;place-items:center}.goal-card .goal-card-top{display:flex;justify-content:space-between}.goal-card h2{font-size:16px;margin:22px 0 7px}.goal-card p{font-size:11px;color:var(--muted)}.goal-card .saved{font-size:25px;letter-spacing:-.5px;margin:20px 0 7px}.goal-card .goal-target{font-size:11px;color:var(--muted);margin-bottom:15px}.goal-card .button{margin-top:20px;width:100%}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.settings-grid h2{font-size:15px;margin:0 0 10px}.settings-grid p{font-size:12px;line-height:1.8;color:var(--muted)}.settings-grid .field{margin:20px 0 14px}.settings-grid .button{margin:5px 7px 5px 0}.settings-grid .full-width{grid-column:1/-1}.notice{padding:12px 15px;background:#f6f7ee;border-radius:10px;font-size:11px;line-height:1.8;color:#727857;margin:15px 0}.notice.warning{background:#fff0ea;color:#975848}.settings-list{padding:0;list-style:none}.settings-list li{padding:10px 0;display:flex;justify-content:space-between;border-bottom:1px solid var(--line);font-size:12px;gap:10px}.settings-list li span{color:var(--muted)}
dialog{border:1px solid var(--line);border-radius:24px;padding:0;width:min(480px,calc(100% - 30px));max-height:90dvh;box-shadow:0 24px 90px #143c3425;color:var(--ink);background:white}dialog::backdrop{background:#172f2c66;backdrop-filter:blur(3px)}.modal-body{padding:28px}.modal-head{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:22px}.modal-head h2{font-size:20px;letter-spacing:-.5px;margin:0}.modal-head button{padding:4px}.field{display:flex;flex-direction:column;gap:8px;margin-bottom:17px;font-size:12px;font-weight:550}.field input,.field select{min-height:46px;border:1px solid #dfe5df;border-radius:10px;padding:12px;background:#fbfcfa;color:var(--ink);width:100%;font-size:14px}.field input[type=number]{font-variant-numeric:tabular-nums}.field.amount input{font-size:28px;padding:18px;font-weight:600;letter-spacing:-1px}.field-row{display:grid;grid-template-columns:1fr 1fr;gap:14px}.segmented{display:flex;padding:4px;background:#f1f4ef;border-radius:11px;margin-bottom:22px;gap:4px}.segmented button{flex:1;background:none;border-radius:8px;padding:10px;font-size:12px;color:var(--muted)}.segmented .selected{color:var(--green);background:white;box-shadow:0 2px 5px #183b3010;font-weight:600}.form-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:25px}.form-actions .button{flex:1}.form-actions .danger{flex:0}.form-error{background:#fff2ed;color:#9d403a;padding:10px;border-radius:8px;font-size:12px;margin-bottom:10px;line-height:1.6}.modal-body p{font-size:12px;line-height:1.8;color:var(--muted)}.modal-body ol{font-size:12px;line-height:2;padding-left:22px;color:var(--muted)}.toast{position:fixed;bottom:28px;left:50%;transform:translateX(-50%) translateY(120px);background:#203e32;color:#fff;border-radius:12px;padding:14px 20px;z-index:40;font-size:12px;box-shadow:0 4px 30px #173a3220;transition:transform .2s;display:flex;gap:18px;align-items:center;max-width:calc(100% - 24px)}.toast.show{transform:translateX(-50%) translateY(0)}.toast button{background:none;color:var(--lime);white-space:nowrap;font-size:12px;font-weight:600}body:has(dialog[open]){overflow:hidden}
@media(min-width:1600px){main{padding-top:50px}.topbar{padding-left:52px;padding-right:52px}.sidebar{width:260px}.workspace{margin-left:260px}.stat-number{font-size:36px}}
@media(max-width:1150px){.sidebar{width:210px;padding:30px 15px 20px}.workspace{margin-left:210px}.topbar{padding:0 26px}main{padding:30px 26px 18px}.footer{padding:15px 26px 24px}.stats-grid{gap:12px;grid-template-columns:1.3fr 1fr 1fr}.stat{padding:20px}.stat-number{font-size:24px}.primary .stat-number{font-size:28px}.dashboard-grid{gap:16px;grid-template-columns:minmax(0,1.4fr) minmax(250px,1fr)}.panel{padding:20px}.spending-content{gap:12px}.donut{width:96px;height:96px}.donut-center{inset:14px}.cards-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.topbar-label{display:none}.topbar{justify-content:flex-end}}
@media(max-width:850px){.sidebar{display:none}.workspace{margin-left:0}.topbar{height:66px;padding:0 22px;justify-content:space-between}.mobile-brand{display:block;font-size:30px;font-weight:750;letter-spacing:-1.6px}.topbar-right{gap:10px}.avatar-button{width:32px;height:32px}.bottom-nav{position:fixed;bottom:0;left:0;right:0;background:#ffffffed;backdrop-filter:blur(15px);border-top:1px solid var(--line);display:grid;grid-template-columns:repeat(5,1fr);padding:9px 8px calc(9px + env(safe-area-inset-bottom));z-index:15}.bottom-nav a{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:5px;font-size:9px;color:#8a948c;min-height:43px;font-weight:550}.bottom-nav a.active{color:var(--green)}.bottom-nav a.active svg{background:#ebf3e8;border-radius:6px}.bottom-nav svg{width:23px;height:23px;padding:1px}.footer{padding-bottom:95px}.toast{bottom:87px}.topbar .save-status{font-size:9px}.topbar .icon-button{padding:5px}}
@media(max-width:600px){main{padding:25px 19px 12px}.page-heading{align-items:flex-start;margin-bottom:20px;flex-wrap:wrap;gap:16px}h1{font-size:27px}.eyebrow{font-size:9px}.subtitle{font-size:11px}.heading-actions{width:100%;justify-content:space-between}.heading-actions .button{padding:11px 16px}.month-picker{max-width:190px}.month-picker input{font-size:11px}.demo-bar{font-size:10px;padding:11px 12px;gap:8px;align-items:flex-start}.demo-bar span{align-items:flex-start;line-height:1.7}.demo-bar svg{flex-shrink:0;margin-top:2px}.demo-bar .text-button{font-size:10px;line-height:1.7;max-width:102px;text-align:right}.stats-grid{grid-template-columns:1fr 1fr;gap:12px;margin-bottom:18px}.stat.primary{grid-column:1/-1;min-height:160px;padding:23px}.primary .stat-number{font-size:37px;margin:10px 0 15px}.balance-decoration{right:8px;width:180px;height:180px;bottom:-70px;border-width:28px}.stat{padding:17px;min-height:140px;border-radius:18px}.stat-label{font-size:10px}.stat-number{font-size:23px;margin:16px 0 10px}.stat-icon{width:28px;height:28px;border-radius:9px}.stat-foot{font-size:9px;line-height:1.7}.dashboard-grid{display:flex;flex-direction:column;gap:17px}.panel{border-radius:19px;padding:20px}.panel-heading h2{font-size:14px}.panel-heading p{font-size:10px}.trend{min-height:260px}.spending-panel{min-height:215px}.spending-content{gap:30px;padding:0 7px}.donut{width:110px;height:110px}.donut-center{inset:16px}.category-legend li{font-size:11px}.category-legend strong{font-size:11px}.transactions-panel{order:2}.side-stack{order:3}.spending-panel{order:4}.ad-placeholder{font-size:9px;line-height:1.6;text-align:center;gap:8px}.footer{padding:13px 19px 94px;gap:10px}.footer span span{display:none}.footer .text-button{font-size:9px}.cards-grid{grid-template-columns:1fr}.filters{gap:8px;flex-wrap:wrap}.filters .search-field{flex-basis:100%}.filters select{flex:1;font-size:11px}.settings-grid{grid-template-columns:1fr;gap:15px}.settings-grid .full-width{grid-column:auto}.field-row{gap:10px}.modal-body{padding:23px}.transaction-row{gap:10px}.transaction-amount{font-size:11px}.transaction-detail strong{font-size:11px}.transaction-detail small{font-size:9px}.transaction-row .category-icon{width:34px;height:34px}.legend{font-size:8px;gap:8px}.budget-card .budget-total{font-size:27px}dialog{max-height:88dvh}input,select{font-size:16px!important}.month-picker input{font-size:12px!important}.filters select,.search-field input{font-size:14px!important}.field.amount input{font-size:28px!important}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
/* Visual direction inspired by the supplied KyraCloud dashboard. */
:root{--bg:#f4f6fc;--ink:#303644;--muted:#707886;--line:#e8eaf2;--green:#6744db;--pale:#efebfb;--lime:#ece4ff;--red:#c44889;--orange:#de9a37;background:#f4f6fc}
body{background:radial-gradient(ellipse at 14% 15%,#def3f970,transparent 45%),radial-gradient(ellipse at 85% 21%,#f4ddf175,transparent 43%),#f4f6fc;background-attachment:fixed}
.sidebar{background:#ffffffed;border-right-color:#e8eaf2}.brand>span:last-child,.mobile-brand{background:linear-gradient(115deg,#13b0c5 10%,#6571dc 40%,#843fd9 70%,#ce4497 100%);color:transparent;background-clip:text}.brand-dot,.mobile-brand span{color:#ca489b}.brand-icon{background:linear-gradient(130deg,#40bcda,#6545dd 60%,#cc499f);color:white;box-shadow:0 5px 14px #6c4fca20}.nav-item.active{background:linear-gradient(110deg,#eaf6fb,#efebfd);color:#6644cc}.nav-item.active:after{background:#c348a1}.install-card{background:linear-gradient(130deg,#eef8fb,#f2ecfb);border-color:#e8e6f4}.avatar{color:#7854b6;background:#eee9f8}.profile-dot{background:#9c74d9}.topbar{background:#ffffffed;border-color:#e7e9f2}.save-status i{background:#8070cf}.page-heading h1{background:linear-gradient(100deg,#48aecf 5%,#6b4dde 70%,#a445c7);color:transparent;background-clip:text}.button{background:linear-gradient(115deg,#45b7d4,#6250dd 60%,#9f45d0);box-shadow:0 6px 15px #7252ce16}.button.secondary,.button.soft,.button.danger{box-shadow:none}.button.soft{background:#eeebfb;color:#6543ce}.button.danger{background:#faeaf2;color:#ac3977}.demo-bar{background:linear-gradient(110deg,#e1f4fa,#ede6fd 70%,#f4e4f5);border-color:#e5e5f2;color:#6b599b}.demo-bar button{color:#6540ba}.stat{box-shadow:0 12px 32px #5e549208;border:0;border-radius:24px;background:#ffffffee;padding-top:26px}.stat:before{content:"";height:4px;position:absolute;top:0;left:0;right:0;background:linear-gradient(100deg,#4bbada,#6450e3 53%,#cc479c)}.stat.primary{background:#ffffffee;color:var(--ink);border:0}.stat.primary .stat-label{color:#666d79}.primary .stat-number{background:linear-gradient(100deg,#46accf,#6a47db 67%,#b83ea6);color:transparent;background-clip:text;display:inline-block}.stat-number .currency{opacity:1}.primary .stat-foot{color:#777e8c}.stat-foot .pill{background:#eeebfb;color:#7c50bf}.stat-icon,.primary .stat-icon{background:linear-gradient(130deg,#3aafd7,#663fe0 65%,#cb429e);color:white;box-shadow:0 5px 16px #724acb20;border-radius:13px}.stat.expense .stat-icon{background:linear-gradient(130deg,#59bfd7,#7a44dc 65%,#ce47a4);color:white}.balance-decoration{border-color:#d3c7f328;border-width:24px;background:linear-gradient(145deg,#d9eff730,#e9cfee45);width:150px;height:150px;right:-18px;bottom:-48px}.panel{background:#fffffff2;border:0;box-shadow:0 8px 32px #594c8e07;border-radius:24px}.legend i{background:#6552d8}.legend i.expense-dot{background:#53bdd3}.chart .income-bar{fill:#6c53dc}.chart .expense-bar{fill:#60bdd3}.progress-track{background:#f1eff8}.progress-fill{background:linear-gradient(95deg,#48bad5,#7852db)}.goal-mini .category-icon,.goal-card .goal-icon{background:#efebfa;color:#8851cd}.goal-mini+.progress-track .progress-fill{background:linear-gradient(100deg,#45b7d6,#7b50da)!important}.notice{background:#efecfa;color:#7b629d}.ad-placeholder{background:#ffffff60;border-color:#d9d9e9;color:#8b859c}.ad-badge{border-color:#ddd9e9}.install-card p{color:#7e8196}.toast{background:#554088}.donut-center{background:white}.bottom-nav a.active{color:#6c49d3}.bottom-nav a.active svg{background:#ede8fc}.footer{color:#9290a0}.profile small{color:#90909b}.budget-card .budget-total{color:#6652a0}.goal-card .saved{color:#7150b4}.segmented{background:#f0edf8}.segmented .selected{color:#6845d2}
@media(max-width:600px){.stat{border-radius:21px}.stat.primary{padding-top:26px}.panel{border-radius:23px}.balance-decoration{width:180px;height:180px;bottom:-67px;right:-4px}.primary .stat-number{font-size:37px}}
/* Device-friendly reading and the same Clara palette. */
[hidden]{display:none!important}.quick-actions{display:flex;gap:10px;flex-wrap:wrap;margin:0 0 24px}.quick-actions .button{white-space:normal}.install-links{display:flex;gap:12px;flex-wrap:wrap;margin:14px 0}.stat-number{font-size:clamp(22px,2.25vw,36px);overflow-wrap:anywhere;line-height:1.3}.stat-foot{flex-wrap:wrap}.account-total{display:block;font-size:clamp(25px,5vw,34px);font-weight:750;letter-spacing:-1px;overflow-wrap:anywhere}.account-card .card-category h2{flex:1;font-size:16px}.account-card small{display:block;color:var(--muted);margin-top:12px}.receipt-preview{max-width:100%;max-height:230px;object-fit:contain;border-radius:12px;display:block;margin:16px auto}.receipt-item{display:grid;grid-template-columns:minmax(100px,1fr) 65px 95px 30px;gap:8px;align-items:center;padding:10px 0;border-bottom:1px solid var(--border)}.receipt-item .field{margin:0}.receipt-item .field input{padding:9px;min-width:0}.receipt-table{overflow:auto}.receipt-table table{width:100%;border-collapse:collapse;margin:16px 0}.receipt-table th,.receipt-table td{padding:12px 6px;text-align:left;border-bottom:1px solid var(--border)}.receipt-table td:last-child{white-space:nowrap}.ocr-text{white-space:pre-wrap;font-size:12px;max-height:200px;overflow:auto}.check-field{display:flex;gap:10px;align-items:flex-start;margin:20px 0;font-size:14px}.check-field input{width:18px;min-height:18px;flex-shrink:0;accent-color:var(--green)}textarea{font:inherit;border:1px solid var(--border);padding:13px;border-radius:12px;resize:vertical;background:white;color:var(--ink);width:100%}.settings-grid .button{margin:7px 6px 7px 0}.settings-grid .text-button{display:block;margin-top:12px}.settings-grid form{margin-top:18px}.sidebar nav{max-height:calc(100vh - 400px);overflow:auto}.transaction-amount.transfer{color:#7351d6}a.button{text-decoration:none}dialog .button{white-space:normal}#ocr-progress{padding:15px 0;font-size:14px}.segmented{flex-wrap:wrap}.notice.warning{background:#fff3da}.footer{gap:15px;flex-wrap:wrap}
@media(max-width:600px){.stat-number{font-size:clamp(20px,5.4vw,29px);letter-spacing:-.8px}.stat-number .currency{font-size:12px;margin-right:5px}.quick-actions .button{flex:1;min-width:135px;font-size:13px}.receipt-item{grid-template-columns:minmax(90px,1fr) 50px 78px 24px;gap:5px}.receipt-item .field{font-size:11px}.receipt-item .field input{padding:8px 5px}.bottom-nav span{font-size:10px}.save-status{font-size:10px;max-width:130px}.modal-body{padding:22px 17px}.stat-foot{font-size:11px}.account-card .card-category h2{min-width:0}.settings-list li{gap:14px}}
@supports(-webkit-touch-callout:none){html{-webkit-text-size-adjust:100%}.field input,.field select,.field textarea,.search-field input{font-size:16px}dialog{max-height:calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 20px)}.modal-body{padding-bottom:max(24px,env(safe-area-inset-bottom))}.bottom-nav{padding-bottom:max(9px,env(safe-area-inset-bottom))}.workspace{padding-bottom:env(safe-area-inset-bottom)}button,a,label.button{-webkit-tap-highlight-color:transparent;touch-action:manipulation}.icon-button,.text-button,.edit-button{min-height:44px;min-width:44px}}
@media(max-width:600px){.stat:not(.primary) .stat-number{font-size:clamp(18px,5.1vw,23px)}.stat-number{white-space:normal}.bottom-nav a{min-height:50px}}

/* Appearance follows the device unless the visitor chooses a fixed theme. */
:root{--border:var(--line);color-scheme:light}
.appearance-panel{grid-column:1/-1}.theme-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;max-width:480px;margin-top:20px}.theme-option{display:flex;align-items:center;flex-direction:column;gap:12px;min-height:110px;border:2px solid var(--line);border-radius:16px;background:var(--surface);color:var(--ink);padding:14px 8px;font-weight:600}.theme-option.selected{border-color:var(--green);background:var(--pale)}.theme-preview{display:flex;flex-direction:column;gap:6px;width:52px;height:42px;border:1px solid #d6d9e5;border-radius:9px;padding:8px;background:#f4f6fc}.theme-preview i{display:block;height:6px;border-radius:3px;background:#d9d2f2}.theme-preview i:last-child{width:60%;background:#b1d8e8}.theme-preview-dark{background:#14151b;border-color:#484b59}.theme-preview-dark i{background:#7763b5}.theme-preview-dark i:last-child{background:#467b94}.theme-preview-system{background:linear-gradient(90deg,#f4f6fc 50%,#14151b 50%)}.settings-grid .appearance-note{font-size:11px;margin-bottom:0}
:root[data-theme=dark]{--bg:#101116;--surface:#1c1d25;--ink:#f1f2f8;--muted:#b0b2c4;--line:#363846;--green:#b29afa;--pale:#302841;--lime:#e6dcff;--red:#f089b9;--orange:#edb76b;background:var(--bg);color-scheme:dark}
[data-theme=dark] body{background:radial-gradient(ellipse at 14% 15%,#17343b45,transparent 45%),radial-gradient(ellipse at 85% 21%,#41213c35,transparent 43%),var(--bg)}
[data-theme=dark] .sidebar,[data-theme=dark] .topbar{background:#191a22ed;border-color:var(--line)}
[data-theme=dark] .panel,[data-theme=dark] .stat,[data-theme=dark] .stat.primary,[data-theme=dark] dialog{background:var(--surface);color:var(--ink);box-shadow:0 8px 28px #00000018}
[data-theme=dark] .brand>span:last-child,[data-theme=dark] .mobile-brand{background-image:linear-gradient(115deg,#75d9e8,#af9bff 55%,#ed94d4)}
[data-theme=dark] .page-heading h1,[data-theme=dark] .primary .stat-number{background-image:linear-gradient(100deg,#80d7ec,#b8a1ff 67%,#f4a2e2)}
[data-theme=dark] .stat.primary .stat-label,[data-theme=dark] .primary .stat-foot,[data-theme=dark] .topbar-label,[data-theme=dark] .save-status,[data-theme=dark] .sidebar-caption,[data-theme=dark] .profile small,[data-theme=dark] .install-card p,[data-theme=dark] .footer,[data-theme=dark] .footer .text-button{color:var(--muted)}
[data-theme=dark] .nav-item{color:#b9bbcb}[data-theme=dark] .nav-item.active{background:linear-gradient(110deg,#20353e,#302544);color:#c7b5ff}
[data-theme=dark] .install-card,[data-theme=dark] .demo-bar{background:linear-gradient(110deg,#1d333c,#302540);border-color:var(--line);color:#d2c8ed}[data-theme=dark] .demo-bar button{color:#d0baff}
[data-theme=dark] .avatar{background:#352944;color:#ddc6ff;border-color:#554563}
[data-theme=dark] .button.secondary,[data-theme=dark] .month-picker,[data-theme=dark] .donut-center,[data-theme=dark] .segmented .selected,[data-theme=dark] .skip{background:var(--surface);color:var(--ink);border-color:var(--line)}
[data-theme=dark] .button.soft,[data-theme=dark] .stat-foot .pill,[data-theme=dark] .empty .empty-icon,[data-theme=dark] .goal-mini .category-icon,[data-theme=dark] .goal-card .goal-icon{background:var(--pale);color:#c6aeff}
[data-theme=dark] .button.danger,[data-theme=dark] .form-error{background:#442738;color:#ffb1cd}
[data-theme=dark] .segmented,[data-theme=dark] .progress-track{background:#30303e}[data-theme=dark] .segmented .selected{color:#cbb6ff}
[data-theme=dark] .field input,[data-theme=dark] .field select,[data-theme=dark] textarea,[data-theme=dark] .filters select,[data-theme=dark] .search-field input{background:#14151c;color:var(--ink);border-color:#414353}
[data-theme=dark] input::placeholder,[data-theme=dark] textarea::placeholder{color:#9598ac;opacity:1}
[data-theme=dark] .notice{background:#30283f;color:#d0bee9}[data-theme=dark] .notice.warning{background:#42321e;color:#f7d398}
[data-theme=dark] .transaction-row,[data-theme=dark] .profile{border-color:var(--line)}[data-theme=dark] .transaction-row .edit-button,[data-theme=dark] .icon-button{color:#bbb8d1}
[data-theme=dark] .chart line{stroke:#363846}[data-theme=dark] .chart text{fill:#b0b2c4}[data-theme=dark] .chart .income-bar{fill:#a995ef}[data-theme=dark] .legend i{background:#a995ef}
[data-theme=dark] .goal-card .saved,[data-theme=dark] .budget-card .budget-total,[data-theme=dark] .transaction-amount.transfer{color:#c7b2fb}
[data-theme=dark] .ad-placeholder{background:#202029;border-color:#4a455d;color:var(--muted)}[data-theme=dark] .ad-badge{border-color:#5b546c}
[data-theme=dark] .bottom-nav{background:#191a22ed;border-color:var(--line)}[data-theme=dark] .bottom-nav a{color:#b0b2c4}[data-theme=dark] .bottom-nav a.active{color:#ceb7ff}[data-theme=dark] .bottom-nav a.active svg{background:#352946}
[data-theme=dark] .toast{background:#49365f;color:#fff}[data-theme=dark] dialog::backdrop{background:#00000099}
[data-theme=dark] .balance-decoration{border-color:#71609122;background:linear-gradient(145deg,#315c6420,#723c7928)}
[data-theme=dark] button:focus-visible,[data-theme=dark] a:focus-visible,[data-theme=dark] input:focus-visible,[data-theme=dark] select:focus-visible{outline-color:#c0a5ff}

/* One optional placement, separated from all financial controls. */
.clara-publicidad{max-width:1376px;margin:4px 42px 20px;padding:20px 24px;border:1px solid var(--line);border-radius:18px;background:var(--surface);color:var(--muted);font-size:12px;line-height:1.7;overflow:hidden}.clara-publicidad p{margin:12px 0}.publicidad-actions{display:flex;align-items:center;gap:18px;flex-wrap:wrap}#publicidad-content{margin-top:16px;min-height:100px}.clara-publicidad .text-button{min-height:44px}[data-theme=dark] .clara-publicidad{background:var(--surface,#202234)}@media(max-width:1150px){.clara-publicidad{margin-left:26px;margin-right:26px}}@media(max-width:600px){.clara-publicidad{margin:8px 19px 18px;padding:18px}.publicidad-actions{gap:8px}}
