:root{color-scheme:light;--bg:#f7f8f6;--surface:#fff;--ink:#182a2a;--muted:#71817d;--accent:#286a59;--accent-deep:#1f5347;--mint:#e8f3ef;--border:#e4e9e6;--peach:#fff1e5;--accent-warm:#d87312;--accent-warm-deep:#b85f06;--danger:#a34d44;--radius:20px;--shadow:0 10px 32px rgba(27,53,47,.045)}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--ink);font:15px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif}button,input,select,textarea{font:inherit}button{cursor:pointer}a{color:inherit}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #a5d5c4;outline-offset:3px}.app-shell{display:flex;min-height:100vh}.sidebar{width:244px;flex:none;background:#fff;border-right:1px solid var(--border);padding:32px 18px 20px;position:sticky;top:0;height:100vh;display:flex;flex-direction:column}.brand{text-decoration:none;font-weight:800;font-size:30px;letter-spacing:-1.5px;display:flex;align-items:center;gap:11px;padding:0 12px;color:var(--ink)}.brand-icon{display:inline-flex;justify-content:center;align-items:center;border-radius:13px;background:var(--accent);color:#fff;width:36px;height:36px;font-weight:500;font-size:29px;line-height:1}.brand-dot{color:#d5aa66}.side-caption{margin:9px 0 38px 62px;font-size:9px;font-weight:800;letter-spacing:1.65px;color:#9ba7a2}.sidebar nav{display:grid;gap:7px}.nav-link{width:100%;display:flex;align-items:center;gap:13px;text-decoration:none;color:#627670;border-radius:12px;padding:13px 15px;font-weight:650;font-size:14px;background:transparent;border:0;text-align:left}.nav-link:hover{background:#f7faf8}.nav-link.active{background:var(--mint);color:var(--accent-deep)}.nav-ico{font-size:21px;display:inline-flex;align-items:center;justify-content:center;width:25px;height:23px}.sidebar-footer{margin-top:auto;border-top:1px solid var(--border);padding:20px 8px 4px;color:var(--muted);font-size:12px}.sidebar-footer p{margin-top:8px}.privacy-mark{display:flex;align-items:center;gap:7px;color:var(--accent);font-weight:700}.private-dot{width:7px;height:7px;background:#65ae8f;border-radius:100%}.right-panel{min-width:0;flex:1;display:flex;flex-direction:column}.topbar{height:88px;background:#fff;border-bottom:1px solid var(--border);padding:0 clamp(22px,4vw,65px);display:flex;align-items:center;justify-content:flex-end}.topbar-actions{display:flex;align-items:center;gap:19px}.privacy-pill{font-size:12px;color:var(--accent);font-weight:700}#content{width:100%;max-width:1310px;padding:42px clamp(22px,4vw,65px) 60px;margin:0 auto;flex:1;outline:none}.main-footer{padding:18px 30px 24px;text-align:center;color:#9aa8a1;font-size:11px}.top-brand{display:none}.page-header{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;margin-bottom:28px}.eyebrow{text-transform:uppercase;letter-spacing:2px;font-size:11px;font-weight:850;color:var(--accent);margin:0 0 8px}.page-title{margin:0;font-size:clamp(29px,3.6vw,41px);font-weight:790;letter-spacing:-1.4px;line-height:1.15}.page-desc{margin:10px 0 0;color:var(--muted);font-size:14px}.button{border:1px solid var(--border);background:#fff;border-radius:11px;padding:11px 15px;display:inline-flex;align-items:center;justify-content:center;gap:9px;color:var(--ink);font-weight:750;text-decoration:none;white-space:nowrap;min-height:42px}.button:hover{background:#f5faf7}.button.primary{background:var(--accent);border-color:var(--accent);color:#fff}.button.primary:hover{background:var(--accent-deep)}.button.small{padding:9px 13px;min-height:38px;font-size:13px}.button.ghost{background:transparent;color:var(--accent);border-color:transparent}.button.warn{color:var(--danger);border-color:#e9d7d3}.button:disabled{opacity:.45;cursor:not-allowed}.month-switch{display:flex;align-items:center;gap:8px}.month-switch strong{min-width:148px;text-align:center;text-transform:capitalize;font-size:14px}.circle-btn{width:34px;height:34px;display:inline-flex;align-items:center;justify-content:center;border-radius:10px;background:#fff;border:1px solid var(--border)}.dashboard-hero{display:flex;align-items:center;justify-content:space-between;gap:28px;background:linear-gradient(120deg,#245c50 0%,#367664 100%);color:#fff;padding:29px 33px;border-radius:22px;margin-bottom:21px;overflow:hidden;position:relative}.dashboard-hero:before{content:'';position:absolute;width:245px;height:245px;border-radius:100%;border:35px solid #ffffff0d;right:-40px;top:-130px}.dashboard-hero>*{position:relative}.dashboard-hero .kicker{margin:0 0 8px;font-size:12px;color:#cae2d7;letter-spacing:.3px}.dashboard-hero h2{font-size:clamp(25px,2.6vw,32px);margin:0 0 7px;line-height:1.2;letter-spacing:-.8px}.dashboard-hero p{margin:0;color:#d7e8df;max-width:48ch;font-size:13px}.hero-icon{font-size:59px;opacity:.9;flex:none}.stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin-bottom:24px}.stat-card{background:#fff;border:1px solid var(--border);border-radius:18px;padding:22px 20px;box-shadow:var(--shadow);min-width:0}.stat-label{font-size:12px;color:var(--muted);font-weight:650;display:flex;gap:8px;align-items:center}.stat-value{font-size:clamp(21px,2.3vw,31px);font-weight:760;letter-spacing:-1px;margin:10px 0 4px;white-space:nowrap}.stat-hint{font-size:11px;color:var(--muted)}.stat-card.alert .stat-value{color:var(--danger)}.stat-card.good .stat-value{color:var(--accent)}.columns{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(310px,.85fr);gap:20px;align-items:start}.panel{background:#fff;border:1px solid var(--border);border-radius:20px;padding:24px;box-shadow:var(--shadow);min-width:0}.panel-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:19px}.panel h3{font-size:17px;letter-spacing:-.4px;margin:0}.link-button{border:none;background:none;color:var(--accent);font-size:12px;font-weight:800;padding:5px 2px}.bar-row{display:grid;grid-template-columns:minmax(130px,1fr) 1.2fr 91px;align-items:center;gap:13px;margin:18px 0}.bar-label{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.bar-track{height:9px;background:#f0f3f0;border-radius:30px;overflow:hidden}.bar-fill{height:100%;border-radius:30px}.bar-value{text-align:right;font-weight:720;font-size:12px}.row-list{list-style:none;padding:0;margin:0}.entry{display:flex;align-items:center;gap:13px;padding:13px 0;border-bottom:1px solid #eef0ed;min-width:0}.entry:last-child{border:0}.entry-icon{border-radius:13px;width:43px;height:43px;background:var(--mint);color:#31745e;display:flex;align-items:center;justify-content:center;font-size:20px;flex:none}.entry-main{flex:1;min-width:0}.entry-title{font-size:13px;font-weight:760;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.entry-sub{font-size:11px;color:var(--muted);margin-top:3px}.entry-price{font-weight:760;font-size:14px;white-space:nowrap}.entry-actions{display:flex;gap:4px}.icon-btn{border:0;background:transparent;border-radius:9px;padding:7px;min-width:29px;color:#758680;font-size:16px}.icon-btn:hover{background:#e6efe6;color:#0d5b43}.pill{border-radius:99px;background:#e8f1e8;color:#0d5b43;font-size:11px;font-weight:800;padding:5px 9px;display:inline-block;border:1px solid #d6e4d6}.pill.overdue{background:#ffebe8;color:#a34d44}.pill.today{background:#fff3df;color:#9f6c27}.pill.done{background:#f2f4f2;color:#7e8983}.empty{padding:31px 17px;text-align:center;background:#f9faf9;border-radius:13px;color:var(--muted);font-size:13px}.empty strong{display:block;color:var(--ink);font-size:15px;margin-top:4px}.empty-icon{font-size:29px;margin-bottom:9px}.filter-bar{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-bottom:20px}.field-inline{border:1px solid var(--border);border-radius:11px;padding:10px 13px;background:#fff;min-height:44px;color:var(--ink);max-width:100%;font-size:13px}.field-inline.search{flex:1;min-width:180px}.summary-mini{font-size:12px;color:var(--muted);margin:0 0 18px}.full-panel{min-height:360px}.bill-card{display:grid;grid-template-columns:48px minmax(0,1fr) auto;gap:14px;align-items:center;padding:16px 14px;border:1px solid #e4e9df;border-radius:17px;background:#fffef9;box-shadow:0 8px 18px rgba(13,59,46,.03);margin-bottom:11px}.bill-card:last-child{margin-bottom:0}.bill-meta{display:flex;flex-wrap:wrap;align-items:center;gap:9px;margin-top:6px;font-size:12px;color:#617369;font-weight:560}.bill-amount{text-align:right}.bill-amount strong{display:block;font-size:18px}.bill-buttons{display:flex;gap:7px;justify-content:flex-end;margin-top:10px;flex-wrap:wrap}.bill-card .entry-icon{width:46px;height:46px}.report-total{font-size:33px;letter-spacing:-1px;font-weight:800;margin:0 0 14px}.report-sub{font-size:12px;color:var(--muted)}.trend-bars{height:178px;display:flex;gap:11px;align-items:flex-end;padding:12px 0 6px;border-bottom:1px solid var(--border)}.trend-col{flex:1;text-align:center;min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;height:100%}.trend-bar{background:#85b6a1;width:min(40px,72%);min-height:2px;border-radius:7px 7px 0 0}.trend-bar.current{background:var(--accent)}.trend-col small{font-size:10px;color:var(--muted);margin-top:8px}.report-row{padding:16px 0;border-bottom:1px solid var(--border);display:flex;justify-content:space-between;gap:20px;font-size:13px}.report-row:last-child{border:0}.report-row strong{font-size:15px}.settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.settings-card p{font-size:13px;color:var(--muted);max-width:62ch}.settings-card h3{margin-bottom:12px}.settings-card input{margin-top:6px}.settings-card .button{margin:6px 8px 6px 0}.note{padding:13px 16px;background:#f0f6f2;border:1px solid #dfebe3;border-radius:12px;font-size:12px;color:#46725f;margin:16px 0}.note.warning{background:#fff7ee;border-color:#fae6cb;color:#8c642e}.note.danger{background:#fff1f0;border-color:#f6d9d5;color:var(--danger)}.dialog{border:0;border-radius:22px;width:min(620px,calc(100% - 22px));max-height:min(92dvh,900px);overflow:auto;padding:0;background:#fff;box-shadow:0 28px 75px #112a2440;color:var(--ink)}.dialog::backdrop{background:rgba(15,34,30,.52);backdrop-filter:blur(2px)}.modal-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;border-bottom:1px solid var(--border);padding:23px 25px 18px}.modal-head h2{font-size:23px;letter-spacing:-.6px;margin:0}.modal-head p{margin:6px 0 0;font-size:12px;color:var(--muted)}.modal-content{padding:20px 25px 26px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.form-field{display:flex;flex-direction:column;min-width:0;gap:6px}.form-field.span-2{grid-column:1/-1}.form-field label{font-weight:720;font-size:12px}.form-field input,.form-field select,.form-field textarea{width:100%;border:1px solid #dce4df;border-radius:10px;padding:11px 12px;background:#fff;min-height:44px;color:var(--ink);outline-offset:2px}.form-field textarea{min-height:72px;resize:vertical}.field-help{font-size:10px;color:var(--muted)}.form-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:24px;padding-top:18px;border-top:1px solid var(--border)}.preview-doc{font-size:12px;color:var(--muted);margin:8px 0}.divider{border-top:1px solid var(--border);margin:24px 0}.secondary-title{font-size:17px;font-weight:760;margin:26px 0 10px}.top-link{display:inline-flex;color:var(--accent);font-weight:750;font-size:12px;margin-top:7px}.welcome-tools{display:flex;gap:10px;flex-wrap:wrap;margin-top:15px}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:#203b34;color:#fff;border-radius:12px;padding:13px 19px;font-size:13px;font-weight:620;box-shadow:0 10px 25px #152e253a;opacity:0;pointer-events:none;transition:opacity .2s;z-index:1000;max-width:calc(100vw - 30px);text-align:center}#toast.show{opacity:1}.bottom-nav{display:none}@media(max-width:1120px){.sidebar{width:210px}.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.columns{grid-template-columns:1fr}.stat-value{font-size:29px}}@media(max-width:760px){.sidebar{display:none}.topbar{height:67px;padding:0 18px;justify-content:space-between}.top-brand{display:flex;gap:8px;align-items:center;font-size:23px;letter-spacing:-1px}.top-brand .brand-icon{width:30px;height:30px;border-radius:9px;font-size:25px}.topbar-actions .privacy-pill{display:none}.topbar-actions .button{font-size:12px}#content{padding:28px 17px 105px}.main-footer{display:none}.bottom-nav{position:fixed;bottom:0;left:0;right:0;display:flex;justify-content:space-around;align-items:stretch;background:#fff;border-top:1px solid var(--border);padding:8px 4px calc(8px + env(safe-area-inset-bottom));z-index:50;box-shadow:0 -4px 18px #10262210}.bottom-nav .nav-link{flex:1;display:flex;flex-direction:column;gap:1px;text-align:center;align-items:center;font-size:10px;white-space:nowrap;padding:7px 2px;border-radius:11px;min-height:51px}.bottom-nav .nav-ico{font-size:20px}.page-header{align-items:flex-start;flex-direction:column;gap:17px}.page-title{font-size:31px}.stats-grid{gap:10px}.stat-card{padding:17px 14px}.stat-value{font-size:clamp(19px,5vw,27px)}.stat-label{font-size:10px}.stat-hint{font-size:10px}.dashboard-hero{padding:23px;min-height:140px}.dashboard-hero h2{font-size:25px}.hero-icon{display:none}.panel{padding:20px 17px}.bar-row{grid-template-columns:minmax(110px,1fr) .8fr 81px;gap:7px}.bill-card{grid-template-columns:42px 1fr;align-items:start}.bill-amount{grid-column:2;text-align:left;display:flex;gap:10px;align-items:baseline;flex-wrap:wrap}.bill-buttons{grid-column:1/-1;justify-content:flex-start}.form-grid{gap:12px}.settings-grid{grid-template-columns:1fr}#toast{bottom:92px}}@media(max-width:390px){.form-grid{grid-template-columns:1fr}.form-field.span-2{grid-column:auto}.filter-bar>*{flex:1}.stat-value{font-size:21px}.bar-row{grid-template-columns:1fr 65px}.bar-track{grid-column:1;grid-row:2}.bar-value{grid-column:2;grid-row:1/3}.dashboard-hero h2{font-size:23px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important}}


/* Oiko v0.2 — forest/sage/gold, functional design system */
:root{--bg:#FAF7F1;--surface:#fffefa;--ink:#172f2a;--muted:#74847e;--accent:#0D3B2E;--accent-deep:#092d23;--mint:#e8f0e6;--border:#e7e8df;--peach:#fcf1df;--radius:22px;--shadow:0 13px 38px rgba(31,55,39,.045);--sage:#8FAD8F;--gold:#D4AF6A;--cream:#FAF7F1;--sand:#E7DBC9}
body{background:var(--bg);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Inter,Roboto,Arial,sans-serif;letter-spacing:-.15px}
.sidebar{background:#fffefa;border-color:#e9e9e1;padding-top:33px}
.brand{font-size:29px;letter-spacing:-1.15px;color:var(--accent);gap:11px}
.brand-logo{width:43px;height:43px;border-radius:12px;box-shadow:0 6px 12px rgba(13,59,46,.1)}
.brand-dot{color:var(--gold)}
.side-caption{color:#8f9c90;margin-left:67px;letter-spacing:1.2px;font-size:9px}
.sidebar-motto{font-family:Georgia,"Times New Roman",serif;color:var(--accent);font-size:20px;margin-bottom:22px;line-height:1.24;max-width:165px}
.nav-link{border-radius:14px;color:#687d71;font-weight:650;transition:background .16s ease,color .16s ease}
.nav-link:hover{background:#f2f5ed}.nav-link.active{color:#0d3b2e;background:#e4efe3}
.nav-ico{width:25px;display:inline-flex;align-items:center;justify-content:center}
.nav-ico svg{display:block;flex:none}
.topbar{background:rgba(255,254,250,.97);height:79px;border-color:var(--border)}
.top-brand{color:var(--accent);text-decoration:none;letter-spacing:-.8px}
.top-brand img{width:35px;height:35px;border-radius:11px}
.privacy-pill{color:#607568}.privacy-pill span{color:#6b9d80;font-size:10px;margin-right:4px}
#content{max-width:1380px;padding-top:34px}
.page-header{margin-bottom:25px;align-items:center}
.eyebrow,.section-kicker{color:#547b66;letter-spacing:2.2px;font-size:10px;font-weight:820}
.page-title{color:#143c2d;font-size:clamp(28px,3.15vw,40px);letter-spacing:-1.45px}
.page-desc{color:#71837a;font-size:13px}
.button{border-radius:12px}.button.primary{background:var(--accent);border-color:var(--accent)}
.circle-btn{border-radius:12px;background:#fffefa;border-color:var(--border);width:37px;height:37px;color:var(--accent);font-size:19px;font-weight:500}
.month-switch{padding:5px;background:#fffefa;border:1px solid var(--border);border-radius:15px;box-shadow:0 3px 12px rgba(13,59,46,.025)}
.month-switch strong{min-width:137px;font-size:13px}
.dashboard-hero{background:radial-gradient(circle at 18% 130%,rgba(127,170,127,.26),transparent 45%),linear-gradient(118deg,#0D3B2E,#185643 83%);border-radius:27px;padding:29px 31px;min-height:242px;align-items:stretch;box-shadow:0 17px 33px rgba(13,59,46,.12);margin-bottom:18px}
.dashboard-hero:before{right:-55px;top:-170px;width:420px;height:420px;border:1px solid rgba(255,255,255,.13);border-radius:50%}
.dashboard-hero:after{content:'';position:absolute;right:30%;bottom:-110px;width:240px;height:240px;border:1px solid rgba(255,255,255,.09);border-radius:50%;pointer-events:none}
.hero-copy{flex:1;min-width:0;display:flex;flex-direction:column;align-items:flex-start;justify-content:center}
.dashboard-hero .kicker{font-size:10px;font-weight:820;letter-spacing:2px;color:#c6ddc3;margin-bottom:10px}
.dashboard-hero h2{font-size:clamp(29px,3.1vw,42px);line-height:1.12;letter-spacing:-1.4px;color:#fff;margin:0 0 10px;font-weight:750}
.dashboard-hero h2 em{color:var(--accent-warm);font-family:Georgia,"Times New Roman",serif;font-weight:700;font-style:italic;text-shadow:0 1px 0 rgba(0,0,0,.08)}
.dashboard-hero p{max-width:44ch;color:#d9e4dc;font-size:12.5px}
.hero-actions{display:flex;gap:10px;align-items:center;margin-top:21px;flex-wrap:wrap}
.hero-actions .button{font-size:12px;min-height:40px}
.hero-primary{background:#f9f7ef;color:#103e30;border:1px solid #f9f7ef}.hero-primary:hover{background:#e5eadc}
.hero-secondary{background:rgba(255,255,255,.07);color:#f5f5ee;border:1px solid rgba(255,255,255,.27)}.hero-secondary:hover{background:rgba(255,255,255,.15)}
.hero-figure{display:flex;flex-direction:column;justify-content:center;width:min(40%,365px);min-width:240px;padding:21px 22px;background:rgba(255,255,255,.095);border:1px solid rgba(255,255,255,.2);border-radius:20px;backdrop-filter:blur(2px)}
.hero-figure-label{font-size:10px;font-weight:760;letter-spacing:1.65px;color:#d0dfd1}
.hero-figure-value{font-size:clamp(30px,3.4vw,45px);font-weight:760;letter-spacing:-1.4px;line-height:1.2;margin:12px 0 18px;color:white;white-space:nowrap}
.hero-budget-row{display:flex;justify-content:space-between;gap:10px;font-size:11px;color:#d6e1d5}.hero-budget-row strong{color:#f4eee2}
.hero-budget-track{height:8px;background:rgba(255,255,255,.22);border-radius:999px;overflow:hidden;margin:10px 0 8px}
.hero-budget-fill{height:100%;background:linear-gradient(90deg,#B9CEAA,#D8B56C);border-radius:inherit}
.hero-figure-help{font-size:10px;color:#d1dfd2;line-height:1.4}
.stats-grid{gap:13px;margin-bottom:19px}
.stat-card{background:var(--surface);padding:18px 19px;border-radius:19px;position:relative;box-shadow:var(--shadow);overflow:hidden}
.stat-card:before{content:'';position:absolute;left:0;top:15px;bottom:15px;width:3px;border-radius:0 6px 6px 0;background:#d8e4d4}
.stat-card.alert:before{background:#bd6c58}.stat-card.good:before{background:#99b48c}
.stat-overline{color:#b4bcad;font-size:10px;letter-spacing:1.5px;float:right;font-weight:800}
.stat-label{font-size:11px;color:#687d70;font-weight:700}
.stat-value{font-size:clamp(21px,2.45vw,31px);color:#123e30;margin-top:12px;letter-spacing:-.9px}
.stat-hint{font-size:10.5px;color:#86938b}
.panel{background:var(--surface);border-color:var(--border);border-radius:22px;padding:23px;box-shadow:var(--shadow)}
.row-list{display:flex;flex-direction:column;gap:10px}
.panel h3{font-size:18px;letter-spacing:-.5px;color:#173e30}
.section-kicker{margin:0 0 5px;color:#7a9780;font-size:9px}
.panel-header{margin-bottom:18px}
.link-button{color:#22644f;border-radius:9px}.link-button:hover{color:#0d3b2e;background:#eaf1e9}
.bar-track{background:#e8ede5;height:10px}.bar-label{font-weight:640;color:#234335}
.entry-icon{background:linear-gradient(180deg,#d6ead7,#c7e1cb);color:#0d5b43;border-radius:14px;box-shadow:inset 0 1px 0 rgba(255,255,255,.55)}
.entry-title{color:#173a2d;font-weight:780}.entry-sub{color:#5f7068;font-weight:560}.entry-price{color:#103e30;font-weight:790}
.entry{border:1px solid #e4e9df;border-radius:16px;padding:14px 13px;margin-bottom:10px;background:#fffef9;box-shadow:0 8px 18px rgba(13,59,46,.03)}
.entry:last-child{margin-bottom:0}
.recent-panel{margin-top:19px}
.settings-card,.full-panel{background:#fffefa}
.form-field input:focus,.form-field select:focus,.form-field textarea:focus{border-color:#568974}
input,select,textarea{accent-color:#0D3B2E}
.mobile-quick-add{display:none}
@media(max-width:1120px){.hero-figure{min-width:220px}.dashboard-hero h2{font-size:34px}}
@media(max-width:760px){
 .topbar{height:64px;padding:0 16px}.top-brand{display:flex;align-items:center;gap:9px;font-size:22px}
 .topbar-actions .button{display:none}
 #content{padding:20px 15px calc(175px + env(safe-area-inset-bottom))}
 .page-header{align-items:flex-start;gap:13px;margin-bottom:17px}.page-title{font-size:29px}.page-desc{font-size:12px;line-height:1.4}
 .month-switch{align-self:flex-start;padding:3px}.month-switch strong{min-width:129px}
 .dashboard-hero{flex-direction:column;gap:22px;padding:24px 22px 21px;min-height:unset;border-radius:23px}
 .dashboard-hero h2{font-size:31px}.hero-figure{width:100%;min-width:0;padding:17px 18px;border-radius:17px}
 .hero-figure-value{font-size:37px;margin:8px 0 13px}
 .hero-actions{margin-top:17px;gap:8px}.hero-actions .button{min-height:39px}
 .stats-grid{gap:9px}.stat-card{padding:15px 13px;border-radius:17px}.stat-value{font-size:clamp(19px,5vw,26px)}.stat-label{font-size:10px}.stat-hint{font-size:9.5px}.stat-overline{font-size:8px}
 .panel{border-radius:19px;padding:19px 17px}.panel-header{align-items:center}.panel h3{font-size:17px}
 .bottom-nav{padding:7px 3px calc(9px + env(safe-area-inset-bottom));background:rgba(255,254,250,.98);border-color:#e2e8de;box-shadow:0 -8px 27px rgba(13,59,46,.08);backdrop-filter:blur(16px)}
 .bottom-nav .nav-link{font-size:10px;gap:3px;color:#7e9187;font-weight:680;min-height:54px;padding:8px 1px}
 .bottom-nav .nav-link.active{color:#0d3b2e;background:#dcebdd}
 .bottom-nav .nav-ico{width:24px;height:24px}.bottom-nav svg{width:21px;height:21px}
 .mobile-quick-add{position:fixed;z-index:49;right:17px;bottom:calc(83px + env(safe-area-inset-bottom));border:0;border-radius:30px;background:#0d3b2e;color:white;display:flex;align-items:center;gap:9px;padding:10px 17px 10px 12px;box-shadow:0 10px 25px rgba(13,59,46,.27);font-weight:770;font-size:12px;min-height:45px}
 .mobile-quick-add span:first-child{font-size:24px;line-height:16px;font-weight:400}
 .mobile-quick-add:active{transform:scale(.98)}
 .entry{flex-wrap:wrap}.entry-actions{margin-left:auto}
 #toast{bottom:calc(146px + env(safe-area-inset-bottom))}
}
@media(max-width:390px){
 .dashboard-hero{padding:20px 17px}.dashboard-hero h2{font-size:27px}
 .stat-card{padding:14px 11px}.stat-value{font-size:19px;letter-spacing:-.65px}
 .stat-hint{font-size:9px}.hero-actions .button{font-size:11px;padding:9px 10px}
 .bar-row{grid-template-columns:1fr 68px}.bar-value{font-size:11px}
}
@media(max-width:350px){.bottom-nav .nav-link{font-size:9px}.stats-grid{grid-template-columns:1fr 1fr}.stat-value{font-size:17px}}
@media(prefers-reduced-motion:reduce){.mobile-quick-add:active{transform:none}}

/* Oiko v0.3 - functional category limits */
.category-budget-panel{margin-top:19px}
.category-budget-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 19px}
.category-budget-item{padding:14px;border:1px solid #e1e7de;border-radius:14px;background:#fffef9;min-width:0;box-shadow:0 6px 16px rgba(13,59,46,.03)}
.category-budget-head{display:flex;align-items:flex-start;justify-content:space-between;flex-wrap:wrap;gap:6px 10px;font-size:12px;margin-bottom:10px}
.category-budget-name{font-weight:700;color:#224738}
.category-budget-head strong{white-space:nowrap;font-variant-numeric:tabular-nums;color:#123e30}
.category-budget-of{color:#7f9183;font-weight:500}
.category-budget-track{height:9px;border-radius:99px;background:#e4ece1;overflow:hidden}
.category-budget-fill{display:block;height:100%;background:linear-gradient(90deg,#77a68a,#0d5b43);border-radius:inherit}
.category-budget-item.is-over{border-color:#efd8c6;background:#fff9f2}
.category-budget-item.is-over .category-budget-fill{background:linear-gradient(90deg,#dba54e,#bd7458)}
.category-budget-item.is-over .category-budget-detail{color:#a6503d}
.category-budget-detail{display:flex;justify-content:space-between;flex-wrap:wrap;gap:7px;font-size:11px;color:#7a8b80;margin-top:8px}
.category-budget-detail strong{color:inherit}
.category-budget-empty{font-size:13px;color:#728276;background:#f4f7f1;border-radius:13px;padding:18px}
.category-budget-empty button{margin-left:4px}
.category-budget-settings h4{font-size:14px;margin:18px 0 12px;color:#194634}
.category-budget-settings .category-budget-list{grid-template-columns:1fr}
.category-budget-controls{display:flex;flex-wrap:wrap;gap:9px;margin:14px 0 0}
@media(max-width:760px){.category-budget-list{grid-template-columns:1fr}.category-budget-panel{margin-top:14px}.category-budget-head{font-size:12px}}


/* Oiko v0.3.1 · contrast and visual hierarchy — mobile + desktop */
:root{--accent-warm:#FFA13F;--accent-warm-deep:#cc690d}
.dashboard-hero h2 em{color:var(--accent-warm);font-weight:750;text-shadow:0 1px 1px rgba(0,0,0,.13)}
.bar-label{color:#1d4535;font-weight:700}.bar-track{background:#e2ebe2}
.entry{border:1px solid #dce5db!important;border-radius:15px;padding:14px 12px;margin-bottom:10px;background:#fffefb;box-shadow:0 5px 15px rgba(13,59,46,.045)}
.entry:last-child{border:1px solid #dce5db!important;margin-bottom:0}
.entry-icon{background:linear-gradient(145deg,#d4ead6,#bedcc4);color:#0a5c42;box-shadow:inset 0 1px 0 rgba(255,255,255,.55)}
.entry-title{color:#17392d;font-weight:790}.entry-sub{color:#536c5f;font-weight:550}.entry-price{color:#0b3e2e;font-weight:800}
.bill-card{border:1px solid #dce5db!important;border-radius:16px;padding:16px 13px;margin-bottom:10px;background:#fffefb;box-shadow:0 5px 15px rgba(13,59,46,.045)}
.bill-card:last-child{border:1px solid #dce5db!important;margin-bottom:0}.bill-meta{color:#526b5e;font-weight:550}
.pill{background:#dceee1;color:#0e5a41;border:1px solid #c4dfca;font-weight:800}
.pill.overdue{background:#fff0e8;color:#a0432c;border-color:#f1d2c6}.pill.today{background:#fff1dc;color:#87530b;border-color:#f3dcac}
.row-list{display:flex;flex-direction:column;gap:10px}
.category-budget-item{background:#fffefb;border-color:#dce5db;box-shadow:0 5px 15px rgba(13,59,46,.035)}
.bottom-nav .nav-link.active{background:#dceee1;color:#0d3b2e}


/* Oiko v0.4 · deadlines intelligence */
.deadline-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:17px}
.deadline-summary-card{display:flex;flex-direction:column;align-items:flex-start;gap:5px;text-align:left;border:1px solid #dce6db;border-radius:19px;background:#fffef9;color:#153e30;padding:18px 19px;min-width:0;box-shadow:0 6px 19px rgba(13,59,46,.045)}
.deadline-summary-card:hover,.deadline-dashboard-item:hover{border-color:#74a68b;background:#f4faf3}
.deadline-summary-card span{font-weight:750;font-size:12px;color:#4d6c5b}
.deadline-summary-card strong{font-weight:800;font-size:clamp(20px,2.5vw,29px);letter-spacing:-.8px;white-space:nowrap}
.deadline-summary-card small{font-size:11px;color:#607a68}
.deadline-summary-card.has-overdue{border-color:#efc9ae;background:#fff7ed}.deadline-summary-card.has-overdue strong{color:#a34826}
.deadline-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:20px 0 16px}
.deadline-tab{border:1px solid #dce6db;border-radius:99px;background:#fffef9;color:#355b46;padding:10px 15px;font-size:12px;font-weight:740;display:inline-flex;align-items:center;gap:9px;min-height:41px}
.deadline-tab span{background:#e2ede3;padding:2px 7px;border-radius:20px;font-size:10px;min-width:22px;text-align:center}
.deadline-tab.active{background:#0d3b2e;color:#fff;border-color:#0d3b2e}.deadline-tab.active span{background:#2d6954;color:#fff}
.deadline-results .panel-header{gap:11px;flex-wrap:wrap}.deadline-results .pill{font-variant-numeric:tabular-nums}
.deadline-footnote{font-size:12px;color:#607a68;margin-top:13px}
.deadline-dashboard{border:1px solid #dce6db;border-radius:19px;background:#fffefb;padding:17px 19px;margin-bottom:20px;box-shadow:0 5px 17px rgba(13,59,46,.035)}
.deadline-dashboard-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.deadline-dashboard-title strong{font-size:15px;color:#173e30}
.deadline-dashboard-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.deadline-dashboard-item{background:#f4f8f1;border:1px solid #e1eadd;border-radius:13px;display:flex;flex-direction:column;align-items:flex-start;gap:4px;text-align:left;padding:13px;min-width:0;color:#1c4b37}
.deadline-dashboard-item span{font-size:11px;font-weight:720;color:#526e5b}.deadline-dashboard-item strong{font-size:20px;font-weight:820;white-space:nowrap;letter-spacing:-.4px}.deadline-dashboard-item small{color:#617c68;font-size:10px}
.deadline-dashboard-item.is-overdue{background:#fff4eb;border-color:#f0d3bc}.deadline-dashboard-item.is-overdue strong{color:#a34d2b}
.deadline-dashboard-note{color:#61786a;font-size:11px;margin:12px 0 0}
@media(max-width:760px){.deadline-summary{gap:8px}.deadline-summary-card{padding:13px 10px;border-radius:14px}.deadline-summary-card span{font-size:10px}.deadline-summary-card strong{font-size:clamp(16px,4.2vw,22px)}.deadline-summary-card small{font-size:9px}.deadline-tabs{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:thin;padding-bottom:5px}.deadline-tab{flex:0 0 auto}.deadline-dashboard{padding:14px}.deadline-dashboard-metrics{gap:7px}.deadline-dashboard-item{padding:10px 8px}.deadline-dashboard-item strong{font-size:clamp(14px,4vw,19px)}.deadline-dashboard-item span{font-size:10px}.deadline-dashboard-item small{font-size:9px}}
@media(max-width:355px){.deadline-summary{grid-template-columns:1fr}.deadline-summary-card{flex-direction:row;align-items:center;justify-content:space-between;flex-wrap:wrap}.deadline-dashboard-metrics{grid-template-columns:1fr}.deadline-dashboard-item{flex-direction:row;justify-content:space-between;align-items:center;flex-wrap:wrap}}

.mobile-quick-add[hidden]{display:none!important}
/* Oiko 0.4.1 — vivid, restrained data surfaces (no data-model changes) */
:root {
  --line-data: #D7E1DA;
  --line-strong: #C8D6CC;
  --line-soft: #DDE7E0;
  --track-data: #DDE8E0;
  --sage-data: #EEF5EF;
  --sage-active: #EAF3EC;
  --ink-secondary-data: #4F695C;
  --warning-bg-data: #FFF0D8;
  --warning-text-data: #87530B;
  --overdue-bg-data: #FDECE4;
  --overdue-text-data: #9E4228;
}
/* Surfaces, strokes and numerals */
.panel, .stat-card, .full-panel, .settings-card {
  border-color: var(--line-data);
  box-shadow: 0 8px 24px rgba(13,59,46,.055);
}
.stat-card:before { width: 4px; background: #7FAF91; }
.stat-card.alert:before { background: #C66F50; }
.stat-card.good:before { background: #21835C; }
.stat-label, .stat-hint, .report-sub, .summary-mini { color: var(--ink-secondary-data); }
.stat-value, .report-total, .report-row strong { color: #0B3E2E; }
.panel-header, .modal-head, .form-actions { border-color: var(--line-soft); }
.bar-label, .bar-value { color: #153C2B; font-weight: 750; }
.bar-track, .category-budget-track { background: var(--track-data); }
.bar-fill { filter: saturate(1.32) contrast(1.06); box-shadow: inset 0 -1px 0 rgba(0,0,0,.08); }
.category-budget-fill { background: linear-gradient(90deg,#63A77D,#0D5B43); }
.category-budget-item.is-over .category-budget-fill { background: linear-gradient(90deg,#DF9B3C,#BF654A); }
.trend-bars { border-bottom-color: var(--line-strong); }
.trend-bar { background: #6FAD8E; }
.trend-bar.current { background: #0D5B43; }
/* Transaction lists: precise boundaries rather than a grey haze */
.entry, .entry:last-child, .bill-card, .bill-card:last-child {
  border-color: var(--line-strong)!important;
  background: #FFFEFA;
  box-shadow: 0 5px 14px rgba(13,59,46,.05);
}
.entry-icon { background: #DDEEE0; color: #0D5B43; }
.entry-title { color: #133D2D; }
.entry-sub, .bill-meta { color: var(--ink-secondary-data); }
.entry-price, .bill-amount strong { color: #0B3E2E; font-variant-numeric: tabular-nums; }
@media (hover:hover) {
  .entry:hover, .bill-card:hover { background: #F3F8F4; border-color: #A8C6B4!important; }
}
.report-row { border-color: var(--line-data); border-radius: 8px; padding-inline: 9px; }
.report-row:nth-child(even) { background: #F5F9F5; }
/* Clear semantics: planned, due today, overdue, confirmed */
.pill { background: #E5F1E7; border-color: #BEDBC5; color: #1F5B46; }
.pill.today { background: var(--warning-bg-data); border-color: #EBD19F; color: var(--warning-text-data); }
.pill.overdue { background: var(--overdue-bg-data); border-color: #E8C0B2; color: var(--overdue-text-data); }
.pill.done { background: #EEF1EE; border-color: #D0DBD2; color: #536D5D; }
/* Smart-deadline tables, filters and summary cards */
.deadline-summary-card, .deadline-dashboard { border-color: var(--line-data); }
.deadline-summary-card { background: #FFFEFA; }
.deadline-summary-card.has-overdue, .deadline-dashboard-item.is-overdue {
  background: #FFF1E7; border-color: #E7C6B3;
}
.deadline-summary-card.has-overdue strong, .deadline-dashboard-item.is-overdue strong { color: #A14A2B; }
.deadline-dashboard-item { background: var(--sage-data); border-color: var(--line-strong); }
.deadline-dashboard-item span, .deadline-summary-card span { color: #3B6450; }
.deadline-tab { border-color: var(--line-strong); background: #FFFEFA; color: #214F38; }
.deadline-tab span { background: #DFEDE2; color: #1B513A; }
.deadline-tab.active { background: #0D5B43; border-color: #0D5B43; color: white; }
.deadline-tab.active span { background: #26785A; color: white; }
.category-budget-item { background: #FFFEFA; border-color: var(--line-data); }
.category-budget-item.is-over { background: #FFF5EE; border-color: #E9C5B0; }
.category-budget-name, .category-budget-head strong { color: #153D2D; }
.category-budget-detail { color: var(--ink-secondary-data); }
/* Stronger navigation and field dividers without extra decoration */
.field-inline, .form-field input, .form-field select, .form-field textarea { border-color: var(--line-strong); }
.bottom-nav { border-top-color: var(--line-strong); }
.bottom-nav .nav-link.active { background: var(--sage-active); color: #0D5B43; }
@media (max-width:760px) {
  .panel, .stat-card { border-color: var(--line-data); }
  .deadline-dashboard-item { border-color: var(--line-strong); }
}

/* OIKO v0.5 · visual system: violet + sunshine / brand, statuses, hierarchy */
:root {
  --bg:#F7F7FC; --surface:#FFFFFF; --ink:#15182D; --muted:#60677C;
  --accent:#6945EE; --accent-deep:#4E32C9; --mint:#F0EBFF; --border:#E3E4F0;
  --accent-warm:#FFD04A; --danger:#BE3F55;
  --line-data:#E3E4F0; --line-strong:#D2D4E4; --line-soft:#EEEFF5;
  --track-data:#E9E9F4; --sage-data:#F1EDFF; --sage-active:#EEE8FF;
  --ink-secondary-data:#60677C; --warning-bg-data:#FFF3D9; --warning-text-data:#86520B;
  --overdue-bg-data:#FFE9EF; --overdue-text-data:#B43A50;
  --oiko-primary:#6945EE; --oiko-primary-dark:#4E32C9; --oiko-navy:#171536;
  --oiko-yellow:#FFD04A; --oiko-positive:#16835B; --oiko-info:#2E7BC9;
  --shadow:0 8px 25px rgba(30,25,90,.052)
}
body{background:var(--bg);color:var(--ink)}
.sidebar{background:linear-gradient(180deg,#191638,#13142F);border-right:1px solid #29234D}
.sidebar .brand,.sidebar .side-caption,.sidebar .sidebar-motto{color:#fff!important}
.sidebar .brand-logo{box-shadow:0 6px 17px rgba(0,0,0,.18)}
.sidebar .side-caption{color:#BAB2E5!important}
.sidebar nav .nav-link{color:#D1CDE7}
.sidebar nav .nav-link:hover{background:#2C2758;color:#FFF}
.sidebar nav .nav-link.active{background:linear-gradient(115deg,#7248F6,#5939D8)!important;color:#FFF!important;box-shadow:0 7px 17px rgba(17,9,62,.32)}
.sidebar .sidebar-footer{border-color:#353051;color:#BDB7D5}
.sidebar .sidebar-footer p{color:#AFA9C8}
.sidebar .privacy-mark{color:#D6D1F1}
.sidebar .private-dot{background:#FFD04A}
.topbar{background:#FFFFFF;border-color:var(--border)}
.top-brand,.privacy-pill{color:#4734A9!important}
.privacy-pill span{color:#6945EE!important}
.page-title{color:#171632}
.page-desc{color:#62677E}
.eyebrow,.section-kicker{color:#6547CC}
.button.primary,.mobile-quick-add{background:#6945EE;border-color:#6945EE;color:white}
.button.primary:hover,.mobile-quick-add:hover{background:#5132D6;border-color:#5132D6}
.link-button,.button.ghost,.top-link{color:#5C39D5}
.link-button:hover{color:#3E26B1;background:#F1EBFF}
.circle-btn{color:#5236C8;border-color:#D8D4EB}
.month-switch{border-color:#DDDDEC;background:#FFF}
.dashboard-hero{background:radial-gradient(circle at 12% 108%,rgba(154,126,255,.38),transparent 48%),linear-gradient(120deg,#28205F 0%,#5638BE 68%,#7045EA 100%);box-shadow:0 20px 38px rgba(65,40,168,.18)}
.dashboard-hero:before,.dashboard-hero:after{border-color:rgba(255,255,255,.16)}
.dashboard-hero .kicker,.hero-figure-label{color:#DAD2FF}
.dashboard-hero h2 em{color:#FFD04A!important;text-shadow:none;font-weight:700}
.dashboard-hero p,.hero-figure-help,.hero-budget-row{color:#E9E3FF}
.hero-figure{background:rgba(255,255,255,.13);border:1px solid rgba(255,255,255,.29)}
.hero-primary{background:#FFD04A;border-color:#FFD04A;color:#29204E;font-weight:830}
.hero-primary:hover{background:#FFDB75;border-color:#FFDB75}
.hero-secondary{border-color:#BFB2FF;background:rgba(255,255,255,.10);color:white}
.hero-secondary:hover{background:rgba(255,255,255,.19)}
.hero-budget-track{background:rgba(255,255,255,.26)}
.hero-budget-fill{background:linear-gradient(90deg,#FFD04A,#FFB827)}
.stat-card,.panel,.deadline-dashboard{background:#FFF;border:1px solid #E3E4F0;box-shadow:var(--shadow)}
.stat-card:before{background:#6B4AEA;width:4px}
.stat-card:nth-child(1):before{background:#6F46EB}
.stat-card:nth-child(2):before{background:#2C86E5}
.stat-card:nth-child(3):before,.stat-card.alert:before{background:#F1884A}
.stat-card:nth-child(4):before,.stat-card.good:before{background:#18A671}
.stat-value,.report-total,.report-row strong{color:#171632}
.stat-card.alert .stat-value{color:#B43A50}
.stat-card.good .stat-value{color:#16835B}
.stat-label,.stat-hint,.report-sub,.summary-mini{color:#5B6075}
.stat-overline{color:#B5AFD5}
.panel h3,.deadline-dashboard-title strong{color:#191934}
.panel-header,.modal-head,.form-actions{border-color:#E7E8F2}
.entry,.entry:last-child,.bill-card,.bill-card:last-child{background:#FFF;border-color:#E0E1ED!important;box-shadow:0 5px 17px rgba(38,33,95,.04)}
.entry-icon{background:#EAE3FF;color:#603FE5;box-shadow:none}
.entry-title,.bill-amount strong,.entry-price{color:#171632}
.entry-sub,.bill-meta{color:#63697D}
.entry-actions .icon-btn{color:#6357A5}
.entry-actions .icon-btn:hover{background:#ECE6FF;color:#5130C6}
.entry[data-category-id="supermercato-alimentari"] .entry-icon,.bill-card[data-cat="supermercato-alimentari"] .entry-icon{background:#E3F8ED;color:#16835B}
.entry[data-category-id="casa-utenze"] .entry-icon,.bill-card[data-cat="casa-utenze"] .entry-icon{background:#EAE3FF;color:#6945EE}
.entry[data-category-id="mobilita-assicurazioni"] .entry-icon,.bill-card[data-cat="mobilita-assicurazioni"] .entry-icon{background:#E7F1FF;color:#287AD2}
.entry[data-category-id="salute-farmacia"] .entry-icon,.bill-card[data-cat="salute-farmacia"] .entry-icon{background:#FFEAF2;color:#D54E84}
.entry[data-category-id="digitale-media"] .entry-icon,.bill-card[data-cat="digitale-media"] .entry-icon{background:#FFF2D7;color:#A36E06}
@media(hover:hover){.entry:hover,.bill-card:hover{background:#FCFAFF;border-color:#BDB1F1!important}}
.bar-label,.bar-value{color:#242241;font-weight:760}
.bar-track,.category-budget-track{background:#E9E9F4}
.bar-fill{filter:none;box-shadow:none}
.trend-bars{border-color:#D5D8E9}
.trend-bar{background:#B7A2FF}.trend-bar.current{background:#6945EE}
.report-row{border-color:#E3E4F0}.report-row:nth-child(even){background:#FAF9FF}
.category-budget-item{background:#FCFBFF;border-color:#E1DCEF;box-shadow:0 4px 14px rgba(62,39,125,.035)}
.category-budget-name,.category-budget-head strong{color:#252148}
.category-budget-detail,.category-budget-of{color:#62677C}
.category-budget-fill{background:linear-gradient(90deg,#A08BFA,#6945EE)}
.category-budget-item.is-over{background:#FFF6ED;border-color:#F0D4B2}
.category-budget-item.is-over .category-budget-fill{background:linear-gradient(90deg,#FFBC60,#E87542)}
.deadline-summary-card,.deadline-dashboard{background:#FFF;border-color:#E3E4F0}
.deadline-summary-card:not(.has-overdue){border-top:3px solid #7452EC}
.deadline-summary-card span,.deadline-dashboard-item span{color:#504C78}
.deadline-summary-card strong,.deadline-dashboard-item strong{color:#211D48}
.deadline-dashboard-item{background:#F1EDFF;border-color:#DDD5FF;color:#4638A7}
.deadline-dashboard-item:nth-child(2){background:#EDF4FF;border-color:#CFE3FC}
.deadline-dashboard-item:nth-child(2) strong{color:#1F66B1}
.deadline-summary-card.has-overdue,.deadline-dashboard-item.is-overdue{background:#FFF0E9;border-color:#F6C6B0}
.deadline-summary-card.has-overdue strong,.deadline-dashboard-item.is-overdue strong{color:#AE4229}
.deadline-tabs .deadline-tab{background:#FFF;color:#4A426E;border-color:#D8D2E9}
.deadline-tabs .deadline-tab span{background:#F0EDFA;color:#4634A0}
.deadline-tabs .deadline-tab.active{background:#6945EE;border-color:#6945EE;color:#FFF;box-shadow:0 5px 13px rgba(91,64,196,.16)}
.deadline-tabs .deadline-tab.active span{background:#9175F3;color:#FFF}
.pill{background:#EEE9FF;color:#4F32BC;border:1px solid #D8CFFF}
.pill.today{background:#FFF0D5;color:#805208;border-color:#F3DDAA}
.pill.overdue{background:#FFE7EB;color:#AE334C;border-color:#F8C6D2}
.pill.done{background:#E2F7EA;color:#127C53;border-color:#B7E7CA}
.field-inline,.form-field input,.form-field select,.form-field textarea{border-color:#D2D4E4}
.form-field input:focus,.form-field select:focus,.form-field textarea:focus{border-color:#7453EE}
input,select,textarea{accent-color:#6945EE}
.note{background:#F3F0FF;border-color:#E2DAFF;color:#51448B}
.note.warning{background:#FFF6E9;border-color:#F1D9B1;color:#86500B}
.note.danger{background:#FFEFF2;border-color:#F1C6D0;color:#B43A50}
.empty{background:#FAF9FF;color:#5D607A}
.bottom-nav{background:rgba(255,255,255,.99);border-top-color:#E1DFEC}
.bottom-nav .nav-link{color:#7C7B93}
.bottom-nav .nav-link.active{background:#EEE8FF;color:#5534CA}
.bottom-nav .nav-ico{color:inherit}
#toast{background:#211B51;color:#FFF}
@media(max-width:760px){
  .top-brand{color:#3E2D91!important}
  .dashboard-hero{padding:22px 20px 20px;gap:16px}
  .dashboard-hero .hero-figure{padding:15px 17px}
  .hero-figure-value{font-size:34px}
  .hero-actions{margin-top:16px}
  .mobile-quick-add{box-shadow:0 10px 23px rgba(76,52,189,.30)}
  .bottom-nav .nav-link.active{color:#5534CA!important;background:#EEE8FF!important}
  .stat-card,.panel{border-color:#E3E4F0}
}
@media(prefers-reduced-motion:reduce){.sidebar .nav-link,.button{transition:none}}


/* Oiko v0.5.1 · dashboard and truthful, accessible data visualization */
.spending-overview{display:grid;grid-template-columns:minmax(145px,200px) minmax(0,1fr);align-items:center;gap:24px;padding:6px 0 10px}
.donut-wrap{display:flex;align-items:center;justify-content:center;min-width:0}
.spending-donut{width:min(100%,190px);aspect-ratio:1;border-radius:50%;display:grid;place-items:center;box-shadow:0 7px 20px rgba(68,50,142,.09)}
.donut-hole{width:68%;height:68%;background:#fff;border-radius:50%;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:3px;text-align:center;padding:10px;box-shadow:inset 0 0 0 1px #EDEAF5}
.donut-hole span{font-weight:820;color:#75738E;font-size:9px;letter-spacing:1px}
.donut-hole strong{font-size:clamp(15px,1.5vw,22px);font-variant-numeric:tabular-nums;color:#211941;letter-spacing:-.8px;white-space:nowrap}
.donut-legend{display:grid;gap:2px;min-width:0}
.donut-legend-item{display:grid;grid-template-columns:minmax(0,1fr) 38px auto;align-items:center;gap:8px;padding:9px 0;border-bottom:1px solid #EFEFF7;font-size:12px}
.donut-legend-item:last-child{border-bottom:0}
.donut-label{display:flex;align-items:center;gap:9px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:650;color:#302B52}
.category-dot{display:inline-block;width:10px;height:10px;flex:none;border-radius:3px}
.donut-percent{color:#604F9C;font-weight:800;font-variant-numeric:tabular-nums}
.donut-legend-item strong{color:#252142;font-size:12px;font-weight:760;font-variant-numeric:tabular-nums;white-space:nowrap}
.chart-explainer{margin:14px 0 0;color:#6A6880;font-size:11px;line-height:1.5}
/* Percentages in category bars are the share of total, not scaled against the largest expense */
.bar-row{display:grid;grid-template-columns:1fr auto;gap:7px 12px;margin:12px 0 17px}
.bar-row-head{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:14px}
.bar-label{font-size:12px;display:flex;gap:7px;align-items:center;min-width:0;font-weight:680;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bar-amount{color:#252143;font-size:12px;font-weight:800;font-variant-numeric:tabular-nums;white-space:nowrap}
.bar-track{grid-column:1;grid-row:auto;height:10px;border-radius:99px;background:#EBEAF5;overflow:hidden}
.bar-fill{height:100%;border-radius:99px}
.bar-share{grid-column:2;font-size:11px;color:#625990;font-variant-numeric:tabular-nums;white-space:nowrap;font-weight:720}
.trend-chart{padding:7px 0 16px}
.trend-chart-caption{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;color:#514970;font-size:11px}
.trend-chart-caption strong{color:#29234D}
.trend-bars{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:9px;align-items:end;min-height:195px;height:auto;border-bottom:1px solid #DCD9EA;padding:10px 2px 0;margin-top:10px}
.trend-col{min-width:0;height:auto;display:grid;grid-template-rows:22px 132px 26px;justify-items:center;align-items:end;gap:0}
.trend-amount{font-weight:740;font-size:clamp(9px,.9vw,12px);color:#4C446F;letter-spacing:-.25px;white-space:nowrap;font-variant-numeric:tabular-nums}
.trend-col.is-current .trend-amount{color:#6040DA;font-weight:850}
.trend-bar-space{height:132px;width:100%;display:flex;justify-content:center;align-items:flex-end;position:relative;background:linear-gradient(0deg,transparent calc(50% - 1px),#F2F0F9 calc(50% - 1px),#F2F0F9 50%,transparent 50%)}
.trend-bar{width:min(43px,72%);background:linear-gradient(180deg,#A58CFA,#7654ED);border-radius:7px 7px 0 0;min-height:0;box-shadow:none}
.trend-bar.current{background:linear-gradient(180deg,#F9C34E,#EE9840)}
.trend-col small{font-size:11px;color:#6E668A;font-weight:650;text-transform:capitalize}
@media(max-width:1120px){.spending-overview{grid-template-columns:minmax(145px,185px) minmax(0,1fr)}}
@media(max-width:760px){
  .dashboard-hero{padding:18px 18px 16px;gap:11px;border-radius:22px}
  .dashboard-hero .kicker{font-size:9px;margin-bottom:6px}
  .dashboard-hero h2{font-size:clamp(25px,6.8vw,29px);line-height:1.1;margin-bottom:0}
  .dashboard-hero .hero-copy>p:not(.kicker){display:none}
  .dashboard-hero .hero-actions{margin-top:12px}
  .dashboard-hero .hero-secondary{display:none}
  .dashboard-hero .hero-primary{min-height:37px;padding:8px 12px;font-size:12px}
  .dashboard-hero .hero-figure{padding:12px 14px;min-width:0}
  .hero-figure-value{font-size:clamp(26px,7.5vw,32px);margin:5px 0 7px}
  .hero-figure-label{font-size:9px;letter-spacing:1px}
  .hero-budget-row{font-size:10px}.hero-budget-track{margin:7px 0 5px}
  .hero-figure-help{font-size:10px}
  .spending-overview{grid-template-columns:1fr;gap:12px}
  .spending-donut{width:165px}
  .donut-legend-item{grid-template-columns:minmax(0,1fr) 36px auto}
  .trend-bars{gap:4px;min-height:190px}
  .trend-col{grid-template-rows:20px 132px 26px}
  .trend-amount{font-size:9px}
  .bar-row{grid-template-columns:1fr auto;gap:6px 8px}
  .bar-share{font-size:10px}
}
@media(max-width:380px){.donut-legend-item{font-size:11px}.donut-legend-item strong{font-size:11px}.trend-amount{font-size:8px}}


/* Oiko v0.6 — previsioni, stessi colori della v0.5.1 */
.deadline-dashboard-actions{display:flex;align-items:center;justify-content:flex-end;gap:12px;flex-wrap:wrap}
.forecast-panel{margin-top:20px;scroll-margin-top:22px}
.forecast-intro{margin:0 0 15px;font-size:13px;color:var(--muted);line-height:1.5}
.forecast-chart{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;margin:18px 0 20px;padding:16px 15px 12px;border:1px solid var(--border);border-radius:18px;background:var(--bg)}
.forecast-month{display:flex;flex-direction:column;align-items:center;gap:8px;border:1px solid transparent;border-radius:14px;background:transparent;padding:8px 4px 10px;color:var(--ink);min-width:0;min-height:178px}
.forecast-month:hover{background:var(--mint)}
.forecast-month.active{border-color:var(--accent);background:var(--mint)}
.forecast-month-value{font-size:12px;white-space:nowrap;letter-spacing:-.3px;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.forecast-track{height:100px;width:32px;max-width:85%;background:var(--border);border-radius:9px;overflow:hidden;display:flex;align-items:flex-end}
.forecast-fill{width:100%;background:var(--accent);border-radius:8px 8px 0 0;transition:height .2s}
.forecast-month.active .forecast-fill{background:var(--accent-warm)}
.forecast-month-label{font-size:12px;font-weight:700;text-transform:capitalize}
.forecast-list-title{display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:14px;padding:12px 0;border-bottom:1px solid var(--border)}
.forecast-list-title strong{text-transform:capitalize}
.forecast-list-title span{font-size:12px;color:var(--muted)}
.forecast-details{list-style:none;padding:0;margin:0}
.forecast-detail{display:grid;grid-template-columns:90px minmax(0,1fr) auto;gap:12px;align-items:center;padding:12px 5px;border-bottom:1px solid var(--border);font-size:13px}
.forecast-detail-date{font-size:12px;color:var(--muted)}
.forecast-detail-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.forecast-detail strong{white-space:nowrap;font-variant-numeric:tabular-nums}
.forecast-detail-empty{padding:22px 5px;color:var(--muted);font-size:13px}
.forecast-overdue{display:flex;flex-wrap:wrap;align-items:center;gap:7px 13px;border:1px solid #F0D4C8;border-radius:13px;padding:13px;margin-top:15px;background:#FFF3ED;color:#9D4730;font-size:12px}
.forecast-overdue span{flex:1;min-width:130px}.forecast-overdue .link-button{color:#9D4730}
@media(max-width:760px){.forecast-panel{margin-top:14px}.forecast-chart{gap:3px;padding:10px 5px}.forecast-month{padding:8px 1px;min-height:153px;gap:6px}.forecast-month-value{font-size:9px;letter-spacing:-.4px}.forecast-track{height:83px;width:24px}.forecast-month-label{font-size:10px}.forecast-detail{grid-template-columns:73px minmax(0,1fr) auto;gap:7px;font-size:12px}.forecast-detail-date{font-size:11px}.deadline-dashboard-actions{gap:3px 9px}}
@media(max-width:355px){.forecast-month-value{font-size:8px}.forecast-track{width:20px}.forecast-list-title{flex-wrap:wrap}}
@media(prefers-reduced-motion:reduce){.forecast-fill{transition:none}}


/* Oiko v0.6.1 — struttura prodotto: Oiko locale + area Family */
.sidebar-family-link{display:flex;gap:11px;align-items:center;text-decoration:none;border:1px solid #51409E;border-radius:14px;padding:14px 12px;color:#fff;background:linear-gradient(110deg,#463080,#6945EE);font-size:13px;font-weight:850;margin:14px 7px 0;box-shadow:0 10px 23px rgba(59,37,129,.15)}
.sidebar-family-link>span:first-child{display:grid;place-items:center;width:26px;height:26px;flex:none;border-radius:8px;background:rgba(255,255,255,.15)}
.sidebar-family-link small{font-weight:550;color:#E2D9FF;display:block;font-size:10px;margin-top:2px}
.sidebar-family-link:hover{background:linear-gradient(110deg,#32206F,#5C38E5)}
.topbar-family-link{color:#6039D7;background:#F1ECFF;border:1px solid #E1D8FC;text-decoration:none;font-weight:800;font-size:12px;padding:10px 12px;border-radius:11px;white-space:nowrap}
.topbar-family-link:hover{background:#E7DCFF}
.oiko-family-invite{display:flex;align-items:center;justify-content:space-between;gap:22px;background:#FFF;border:1px solid #DCD7F0;border-radius:19px;padding:19px 21px;margin-top:24px;box-shadow:0 7px 22px rgba(58,44,105,.04)}
.oiko-family-invite-copy{display:grid;gap:4px}
.oiko-family-kicker,.family-product-eyebrow{color:#7455E4;letter-spacing:1.3px;font-size:10px;font-weight:850}
.oiko-family-invite-copy strong{font-size:18px;color:#211B46;letter-spacing:-.3px}
.oiko-family-invite-copy p{font-size:12px;color:#716A88;margin:0;max-width:610px}
.oiko-family-invite-link{display:inline-flex;align-items:center;gap:6px;padding:11px 14px;background:#6945EE;color:#FFF;border-radius:10px;text-decoration:none;font-weight:800;font-size:12px;white-space:nowrap}
.oiko-family-invite-link:hover{background:#5535CF}
.family-product-hero{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(225px,.7fr);gap:25px;background:linear-gradient(125deg,#251A55,#5437C7 70%,#6945EE);color:#fff;border-radius:24px;padding:36px 39px;box-shadow:0 20px 38px rgba(38,27,82,.13)}
.family-product-hero h2{font-size:clamp(31px,4vw,50px);line-height:1.07;letter-spacing:-1.5px;margin:12px 0}
.family-product-hero h2 em{font-style:normal;color:#FFD04A}
.family-product-hero p{max-width:530px;color:#EAE5FF;font-size:14px;line-height:1.65;margin:0}
.family-product-actions{display:flex;flex-wrap:wrap;gap:11px;margin-top:24px}
.family-product-primary{background:#FFD04A!important;border-color:#FFD04A!important;color:#211745!important}
.family-product-secondary{background:transparent!important;color:#fff!important;border-color:#A391E9!important}
.family-product-visual{align-self:center;background:rgba(255,255,255,.10);border:1px solid rgba(255,255,255,.23);padding:26px;border-radius:20px;display:grid;gap:10px;font-weight:750;text-align:center}
.family-product-number{font-size:clamp(57px,8vw,90px);font-weight:850;color:#FFD04A;line-height:1}
.family-product-mini{display:flex;gap:7px;justify-content:center;flex-wrap:wrap;margin-top:8px}
.family-product-mini span{padding:5px 8px;border-radius:99px;background:rgba(255,255,255,.13);font-size:10px;color:#EEE9FF}
.family-product-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:19px 0}
.family-benefit{min-width:0}
.family-benefit h3{color:#241B50;margin:10px 0 6px}
.family-benefit p{font-size:12px;color:#706B84;margin:0}
.family-benefit-icon{display:grid;place-items:center;background:#EDE7FE;color:#6945EE;border-radius:12px;width:37px;height:37px;font-size:22px;font-weight:800}
.family-separation{display:flex;align-items:center;justify-content:space-between;gap:20px}
.family-separation h3{color:#211B46;margin:7px 0 5px}
.family-separation p{font-size:12px;color:#6D6781;max-width:780px}
.family-separation>a{flex:none}
@media(max-width:920px){.family-product-hero{grid-template-columns:1fr}.family-product-visual{display:none}.family-product-grid{grid-template-columns:1fr}}
@media(max-width:760px){.topbar-family-link{font-size:10px;padding:8px}.privacy-pill{display:none}.topbar-actions{gap:8px}.oiko-family-invite{padding:16px;flex-wrap:wrap}.oiko-family-invite-copy strong{font-size:16px}.oiko-family-invite-link{width:100%;justify-content:center}.family-product-hero{padding:22px 19px;border-radius:20px}.family-product-hero h2{font-size:32px}.family-product-actions a{flex:1;text-align:center}.family-separation{display:grid}.family-separation>a{justify-self:start}}
@media(max-width:390px){.topbar-family-link{max-width:100px;white-space:normal;text-align:center}.family-product-actions{display:grid}}


/* v0.6.2 — promessa sulla privacy: trust card Oiko locale */
.sidebar .sidebar-footer{padding:15px 0 0;border-top:1px solid #363054;color:inherit}
.oiko-trust-card{background:linear-gradient(155deg,#FCFAFF 4%,#EEE9FF 100%);border:1px solid #E0D7FF;border-radius:18px;padding:13px 11px 11px;box-shadow:0 12px 28px rgba(10,9,38,.17);color:#252045}
.oiko-trust-header{display:flex;align-items:center;gap:9px;margin-bottom:14px}
.oiko-trust-avatar{position:relative;width:49px;height:49px;flex:none;display:grid;place-items:center}
.oiko-trust-avatar img{border-radius:12px;display:block;width:40px;height:40px;box-shadow:0 5px 11px rgba(49,32,109,.18)}
.oiko-trust-smile{position:absolute;bottom:-3px;right:-5px;filter:drop-shadow(0 2px 3px rgba(32,20,67,.17))}
.oiko-trust-copy{min-width:0;display:grid;gap:3px}
.oiko-trust-kicker{color:#6A46D2;font-size:8px;font-weight:900;line-height:1.3;letter-spacing:.8px}
.oiko-trust-copy strong{color:#251A52;font-size:14px;font-weight:850;letter-spacing:-.35px;line-height:1.2}
.oiko-trust-pills{display:grid;gap:7px}
.oiko-trust-pill{display:flex;align-items:center;gap:7px;padding:8px 9px;border:1px solid #E6DFF7;border-radius:10px;background:#FFF;color:#45346E;font-size:10.5px;font-weight:750;line-height:1.25}
.oiko-trust-pill svg{flex:none;color:#6945EE}
.sidebar .sidebar-footer .oiko-trust-promise{display:flex;align-items:flex-start;gap:7px;margin:11px 0 0;border-radius:10px;padding:9px 8px;background:#DDD3FF;color:#332263;font-size:10.5px;line-height:1.4;font-weight:700;overflow-wrap:break-word}
.oiko-trust-promise svg{flex:none;color:#5B3BC6;margin-top:1px}
@media(min-width:761px) and (max-height:760px){.sidebar{overflow-y:auto}.sidebar .sidebar-footer{margin-top:22px;flex:none}}

/* Oiko v0.6.3 — una promessa semplice, senza spostare la dashboard sotto la piega */
.oiko-hero-benefits{display:flex;align-items:center;flex-wrap:wrap;gap:6px 9px;margin:12px 0 1px}
.oiko-hero-benefits span{display:inline-flex;align-items:center;min-height:25px;padding:5px 9px;border-radius:999px;background:rgba(255,255,255,.13);border:1px solid rgba(255,255,255,.25);color:#FFF7D8;font-size:11px;font-weight:730;line-height:1.3}
@media(max-width:760px){.oiko-hero-benefits{gap:5px;margin:9px 0 0}.oiko-hero-benefits span{font-size:10px;padding:4px 7px;min-height:23px}}


/* MANZO AI ecosystem: visible contact and small creator image only, no data handling. */
.oiko-contact-strip{display:flex;justify-content:flex-end;align-items:center;padding:7px clamp(20px,4vw,65px);background:#EEE9FF;border-bottom:1px solid #D4C8F6;min-height:39px}
.oiko-contact-strip a{display:inline-flex;gap:5px 12px;flex-wrap:wrap;justify-content:flex-end;align-items:center;color:#30225E;font-weight:650;font-size:12px;text-decoration:none}
.oiko-contact-strip a strong{color:#5334AD;font-size:13px;overflow-wrap:anywhere}
.oiko-contact-strip a:hover strong{text-decoration:underline}
.oiko-manzo-signature{display:inline-flex;align-items:center;gap:9px;border-radius:9px;padding:7px 11px;border:1px solid #D9D5E7;background:#F4F0FF;text-decoration:none;color:#30225E;min-height:42px;font-size:11px;font-weight:650}
.oiko-manzo-signature img{object-fit:contain;flex:none;display:block;width:32px;height:31px}
.oiko-manzo-signature:hover{border-color:#7353BF}
.oiko-contact-strip a:focus-visible,.oiko-manzo-signature:focus-visible{outline:3px solid #B13F28;outline-offset:3px}
.main-footer{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:12px}
@media(max-width:760px){.oiko-contact-strip{justify-content:center;padding:9px 12px}.oiko-contact-strip a{justify-content:center;font-size:11px}.main-footer{padding-bottom:78px}}
@media print{.oiko-contact-strip,.oiko-manzo-signature{display:none!important}}
