:root{--bg:#0d0f10;--panel:#151819;--panel2:#1b1f20;--line:#292e30;--text:#f4f5f3;--muted:#9ba4a1;--accent:#8bdc72;--accent-strong:#68bd50;--danger:#ff7979;--warn:#f4c46c;--radius:18px;--shadow:0 22px 70px rgba(0,0,0,.26)}
*{box-sizing:border-box}html{background:var(--bg)}body{margin:0;background:var(--bg);color:var(--text);font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;min-height:100vh}button,input,select{font:inherit}button{cursor:pointer}h1,h2,h3,p{margin-top:0}.hidden{display:none!important}.grow{flex:1;min-width:0}.good-text{color:var(--accent)!important}.danger-text{color:var(--danger)!important}.muted{color:var(--muted)}.optional{font-weight:500;color:var(--muted);font-size:12px}
.brand-mark{width:38px;height:38px;display:grid;place-items:center;border-radius:12px;background:var(--accent);color:#10200d;font-weight:1000;font-size:21px;box-shadow:0 8px 24px rgba(139,220,114,.15)}.brand-mark.large{width:72px;height:72px;border-radius:22px;font-size:38px}
.auth-shell{min-height:100vh;display:grid;grid-template-columns:1fr 440px;align-items:center;gap:80px;padding:8vw 12vw;background:radial-gradient(circle at 22% 25%,#1a291d 0,transparent 32%),var(--bg)}.auth-intro h1{font-size:64px;line-height:1;margin:20px 0 12px;letter-spacing:-.055em}.auth-intro>p{font-size:20px;color:#c4cac7;max-width:520px}.auth-points{display:grid;gap:10px;margin-top:34px;color:#cdd4d0}.auth-card{background:var(--panel);border:1px solid var(--line);border-radius:24px;padding:28px;box-shadow:var(--shadow)}.auth-tabs{display:grid;grid-template-columns:1fr 1fr;background:#0f1112;padding:4px;border-radius:12px;margin-bottom:24px}.auth-tab{border:0;background:transparent;color:var(--muted);padding:11px;border-radius:9px;font-weight:800}.auth-tab.active{background:#242829;color:white}.privacy-note{font-size:12px;line-height:1.5;color:var(--muted);margin:18px 0 0}
.stack{display:grid;gap:15px}label{display:grid;gap:7px;font-size:12px;font-weight:800;color:#cfd4d1}input,select{width:100%;border:1px solid #343a3c;background:#101213;color:white;border-radius:11px;padding:12px 13px;outline:0}input:focus,select:focus{border-color:#698f61;box-shadow:0 0 0 3px rgba(139,220,114,.09)}
.btn{border:1px solid #34393a;background:#202425;color:#f5f6f5;padding:10px 14px;border-radius:11px;font-weight:800;white-space:nowrap}.btn:hover{background:#282d2e}.btn.primary{background:var(--accent);border-color:var(--accent);color:#10200d}.btn.primary:hover{background:#9be585}.btn.white{background:white;border-color:white;color:#151817}.btn.ghost-white{background:transparent;border-color:rgba(255,255,255,.4);color:white}.btn.full{width:100%}.btn.big{padding:13px 16px}.icon-btn{border:0;background:transparent;color:#aeb5b2;font-size:20px;padding:7px}
.app{display:grid;grid-template-columns:224px 1fr;min-height:100vh}.sidebar{position:fixed;z-index:30;inset:0 auto 0 0;width:224px;background:#101213;border-right:1px solid #232728;padding:22px 14px 14px;display:flex;flex-direction:column}.brand{display:flex;align-items:center;gap:11px;padding:0 8px 25px;font-size:20px;font-weight:950;letter-spacing:-.03em}.sidebar nav{display:grid;gap:5px}.nav-item{display:flex;align-items:center;gap:11px;border:0;background:transparent;color:#9ca5a1;border-radius:12px;padding:12px;width:100%;text-align:left}.nav-item span{font-size:18px;width:22px;text-align:center}.nav-item b{font-size:13px}.nav-item:hover{background:#181b1c;color:white}.nav-item.active{background:#232727;color:white}.sidebar-help{margin-top:auto;padding:14px;border:1px solid #27302a;background:#151b16;border-radius:14px;font-size:11px;color:#bdd1bd}.sidebar-help small{display:block;color:#8fa08f;line-height:1.45;margin-top:5px}.sidebar-footer{margin-top:13px;padding:13px 8px 0;border-top:1px solid var(--line);display:flex;align-items:center;gap:8px}.profile-mini{min-width:0;flex:1}.profile-mini strong,.profile-mini span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.profile-mini strong{font-size:12px}.profile-mini span{font-size:10px;color:var(--muted);margin-top:3px}
.main{grid-column:2;min-width:0}.topbar{position:sticky;top:0;z-index:15;height:82px;padding:0 28px;background:rgba(13,15,16,.9);backdrop-filter:blur(18px);border-bottom:1px solid rgba(41,46,48,.8);display:flex;align-items:center;justify-content:space-between}.top-label{display:block;color:#727b78;font-size:9px;font-weight:950;letter-spacing:.13em;margin-bottom:6px}.scope-switch{display:flex;gap:4px;padding:3px;background:#151819;border:1px solid #252a2b;border-radius:12px}.scope-switch button{border:0;background:transparent;color:#949e9a;border-radius:9px;padding:7px 11px;font-size:12px;font-weight:850}.scope-switch button.active{background:#2a2f2e;color:white}.top-actions{display:flex;align-items:center;gap:8px}.month-picker{display:flex;align-items:center;gap:8px;border:1px solid #2d3233;background:#151819;border-radius:11px;padding:5px 9px;color:var(--muted);font-size:11px}.month-picker input{border:0;background:transparent;padding:4px;width:135px}.mobile-menu{display:none;border:0;background:transparent;color:white;font-size:24px}.mobile-bottom{display:none}
.content{max-width:1320px;margin:0 auto;padding:28px}.welcome{margin-bottom:17px}.welcome-label{font-size:10px;color:var(--accent);font-weight:950;letter-spacing:.13em}.welcome h1{font-size:31px;margin:5px 0 4px;letter-spacing:-.04em}.welcome p{margin:0;color:var(--muted);font-size:13px}.balance-hero{background:linear-gradient(125deg,#213f25,#1b2f1e);border:1px solid #355a39;border-radius:22px;padding:25px 27px;display:flex;justify-content:space-between;align-items:center;gap:24px}.balance-hero.negative-hero{background:linear-gradient(125deg,#3a2222,#2a1c1c);border-color:#623535}.balance-hero span,.balance-hero small{display:block;color:#bed0bd}.balance-hero strong{display:block;color:white!important;font-size:44px;line-height:1.08;letter-spacing:-.055em;margin:4px 0 6px}.hero-actions{display:flex;gap:9px}.simple-kpis{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:14px 0}.simple-kpi{background:var(--panel);border:1px solid var(--line);border-radius:15px;padding:15px 17px;display:flex;align-items:center;justify-content:space-between;gap:12px}.simple-kpi span{color:var(--muted);font-size:12px}.simple-kpi strong{font-size:18px}.home-grid{display:grid;grid-template-columns:1.08fr .92fr;gap:14px}.card{background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);padding:20px}.card.flat{padding:5px 18px}.card-head{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;margin-bottom:17px}.card-head h2,.section-explain h2{font-size:16px;margin:0}.card-head p,.section-explain p{font-size:11px;color:var(--muted);margin:4px 0 0}.recent-card{margin-top:14px}.text-btn,.link-danger{border:0;background:transparent;padding:4px;color:#b7c0bc;font-size:11px;font-weight:850}.text-btn:hover{color:white}.link-danger{color:#f58b8b}.category-list{display:grid;gap:14px}.category-row-simple{display:grid;grid-template-columns:minmax(120px,1fr) minmax(100px,1.6fr) auto;gap:12px;align-items:center}.cat-name{display:flex;gap:9px;align-items:center;font-size:12px}.track,.progress-track{height:8px;background:#262b2c;border-radius:99px;overflow:hidden}.fill,.progress-fill{height:100%;background:var(--accent);border-radius:inherit}.category-row-simple strong{font-size:12px}.overview-list{display:grid}.overview-list button{display:grid;grid-template-columns:33px 1fr 18px;align-items:center;gap:10px;text-align:left;padding:12px 0;border:0;border-bottom:1px solid var(--line);background:transparent;color:white}.overview-list button:last-child{border-bottom:0}.overview-list button>span{width:33px;height:33px;border-radius:10px;background:#202525;display:grid;place-items:center}.overview-list b,.overview-list small{display:block}.overview-list b{font-size:12px}.overview-list small{color:var(--muted);font-size:10px;margin-top:3px}.overview-list i{font-size:20px;color:#69716e;font-style:normal}
.tx-list{display:grid}.tx-row{display:flex;align-items:center;gap:12px;padding:11px 0;border-bottom:1px solid var(--line)}.tx-row:last-child{border-bottom:0}.tx-icon{width:39px;height:39px;border-radius:12px;background:#262b2b;display:grid;place-items:center;flex:0 0 auto}.tx-icon.income{background:#1d3322}.tx-main{min-width:0;flex:1}.tx-main b,.tx-main span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tx-main b{font-size:12px}.tx-main span{font-size:10px;color:var(--muted);margin-top:3px}.tx-amount{font-size:13px}.delete-icon{border:0;background:transparent;color:#747c79;width:28px;height:28px;border-radius:8px;font-size:18px}.delete-icon:hover{background:#332326;color:#ff9a9a}.tx-list.large .tx-row{padding:14px 0}.summary-strip{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:14px}.summary-strip span{border:1px solid var(--line);background:var(--panel);border-radius:999px;padding:8px 12px;font-size:11px;color:var(--muted)}.summary-strip b{color:white;margin-right:4px}.section-explain{margin-bottom:13px}
.page-head{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;margin-bottom:20px}.page-head h1{font-size:28px;margin:0;letter-spacing:-.04em}.page-head p{font-size:12px;color:var(--muted);margin:5px 0 0}.head-actions{display:flex;gap:8px}.empty{text-align:center;border:1px dashed #323839;border-radius:14px;padding:34px 15px;color:var(--muted)}.empty-icon{font-size:25px;margin-bottom:7px;color:#66706c}.empty b,.empty span{display:block}.empty b{color:#dce0de;font-size:13px}.empty span{font-size:11px;margin-top:5px}.empty .btn{margin-top:15px}
.budget-tabs{display:flex;gap:7px;margin-bottom:18px;overflow:auto;padding-bottom:2px}.budget-tabs button{border:1px solid var(--line);background:var(--panel);color:#9fa8a4;border-radius:999px;padding:9px 13px;font-size:11px;font-weight:850;white-space:nowrap}.budget-tabs button.active{background:var(--accent);border-color:var(--accent);color:#12200f}.section-bar{display:flex;justify-content:space-between;align-items:end;gap:20px;margin-bottom:14px}.section-bar h2{font-size:17px;margin:0}.section-bar p{font-size:11px;color:var(--muted);margin:4px 0 0}.budget-list{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.budget-item,.goal-simple{background:var(--panel);border:1px solid var(--line);border-radius:16px;padding:17px}.budget-item-top,.goal-top{display:flex;gap:11px;align-items:center}.round-icon,.goal-icon{width:39px;height:39px;border-radius:12px;background:#222727;display:grid;place-items:center;flex:0 0 auto}.budget-item-top b,.budget-item-top span,.goal-top b,.goal-top span{display:block}.budget-item-top b,.goal-top b{font-size:12px}.budget-item-top span,.goal-top span{font-size:10px;color:var(--muted);margin-top:3px}.budget-item-top>strong,.goal-top>strong{font-size:16px}.budget-item .progress-track,.goal-simple .progress-track{margin:14px 0 8px}.budget-item.over .progress-fill{background:var(--danger)}.budget-foot,.goal-bottom{display:flex;justify-content:space-between;align-items:center;gap:10px;color:var(--muted);font-size:10px}.goal-bottom>div{display:flex;gap:4px}.list-stack{display:grid}.list-item,.account-simple{display:flex;align-items:center;gap:11px;padding:13px 0;border-bottom:1px solid var(--line)}.list-item:last-child,.account-simple:last-child{border-bottom:0}.list-item b,.list-item span,.account-simple b,.account-simple span{display:block}.list-item b,.account-simple b{font-size:12px}.list-item span,.account-simple span{font-size:10px;color:var(--muted);margin-top:3px}.list-item>strong,.account-simple>strong{font-size:13px}
.couple-intro{text-align:center;max-width:720px;margin:10px auto 24px;padding:24px}.heart-orb{width:68px;height:68px;border-radius:50%;margin:0 auto 17px;display:grid;place-items:center;background:#3a2428;color:#ff9caa;font-size:28px}.couple-intro h2{font-size:24px;margin-bottom:9px}.couple-intro>p{color:var(--muted);font-size:13px;line-height:1.55}.couple-points{display:flex;justify-content:center;gap:12px;flex-wrap:wrap;margin-top:20px}.couple-points span{font-size:10px;border:1px solid var(--line);background:var(--panel);padding:8px 10px;border-radius:999px}.two-col{display:grid;grid-template-columns:1fr 1fr;gap:14px}.simple-couple .card>p{color:var(--muted);font-size:12px}.couple-status{display:flex;justify-content:space-between;align-items:center;gap:20px;background:linear-gradient(125deg,#3b242b,#2c1d22);border:1px solid #633a45;border-radius:20px;padding:22px 24px;margin-bottom:14px}.couple-status span{font-size:9px;color:#ff9bad;font-weight:950;letter-spacing:.12em}.couple-status h2{margin:5px 0;font-size:24px}.couple-status p{margin:0;color:#c9afb5;font-size:11px}.members-list{display:grid}.member-simple{display:flex;align-items:center;gap:10px;padding:12px 0;border-bottom:1px solid var(--line)}.avatar{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:#2b3030;font-weight:900}.member-simple b,.member-simple span{display:block}.member-simple b{font-size:12px}.member-simple span{font-size:10px;color:var(--muted);margin-top:3px}.invite-simple{margin-top:17px;background:#101313;border:1px dashed #3b4541;border-radius:13px;padding:14px;text-align:center}.invite-simple span,.invite-simple strong{display:block}.invite-simple span{font-size:10px;color:var(--muted)}.invite-simple strong{font-size:25px;letter-spacing:.12em;margin:7px 0 11px}.choice-cards{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:14px 0}.choice-cards button{text-align:left;border:1px solid var(--line);background:#101313;color:#c8cecb;padding:13px;border-radius:13px}.choice-cards button.active{border-color:#6da562;background:#172017}.choice-cards b,.choice-cards span{display:block}.choice-cards b{font-size:12px}.choice-cards span{font-size:10px;color:var(--muted);margin-top:4px}.inline-form{display:flex;align-items:end;gap:8px;margin:12px 0}.inline-form label{flex:1}.privacy-box{display:grid;gap:4px;margin-top:16px;border-radius:12px;background:#141a16;border:1px solid #2b382d;padding:13px}.privacy-box b{font-size:11px}.privacy-box span{font-size:10px;color:#9eafa1}
.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.settings-list{display:grid}.setting-row{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:15px 0;border-bottom:1px solid var(--line)}.setting-row:last-child{border-bottom:0}.setting-row b,.setting-row span{display:block}.setting-row b{font-size:12px}.setting-row div span{font-size:10px;color:var(--muted);margin-top:4px}.version-badge{padding:5px 8px;border-radius:999px;background:#263027;color:#b5e8ad;font-size:10px;font-weight:900}.install-steps{display:grid;gap:10px}.install-steps>div{background:#111414;border:1px solid var(--line);padding:14px;border-radius:12px}.install-steps b{font-size:12px}.install-steps p{font-size:11px;color:var(--muted);line-height:1.5;margin:6px 0 0}
.modal{width:min(570px,calc(100vw - 22px));max-height:90vh;overflow:auto;border:1px solid var(--line);background:var(--panel);color:white;border-radius:21px;padding:24px;box-shadow:var(--shadow)}.modal::backdrop{background:rgba(0,0,0,.7);backdrop-filter:blur(4px)}.modal-close{position:absolute;right:14px;top:12px;border:0;background:transparent;color:#8d9692;font-size:25px}.modal-heading h2{font-size:21px;margin:0}.modal-heading p{color:var(--muted);font-size:11px;margin:5px 0 0}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:13px;margin-top:18px}.span2{grid-column:1/-1}.amount-field input{font-size:27px;font-weight:900;padding:15px}.type-toggle{display:grid;grid-template-columns:1fr 1fr;background:#0f1111;padding:4px;border-radius:12px}.type-toggle button{border:0;background:transparent;color:var(--muted);padding:10px;border-radius:9px;font-weight:900}.type-toggle button.active{background:#213523;color:#b8efad}.type-toggle button.active.expense{background:#3a2528;color:#ffb7bd}.toast{position:fixed;z-index:100;right:19px;bottom:19px;background:#f1f4f2;color:#121413;border-radius:11px;padding:11px 14px;font-weight:850;font-size:12px;box-shadow:var(--shadow);opacity:0;transform:translateY(10px);pointer-events:none;transition:.2s}.toast.show{opacity:1;transform:none}.toast.error{background:#ffc1c1;color:#461515}
@media(max-width:1050px){.home-grid,.settings-grid,.two-col{grid-template-columns:1fr}.budget-list{grid-template-columns:1fr}.auth-shell{grid-template-columns:1fr;padding:7vw;gap:32px}.auth-intro{text-align:center}.auth-intro .brand-mark{margin:auto}.auth-points{justify-items:center}.auth-card{max-width:520px;width:100%;margin:auto}}
@media(max-width:760px){body{padding-bottom:69px}.app{display:block}.sidebar{transform:translateX(-105%);transition:.22s;box-shadow:20px 0 50px rgba(0,0,0,.35)}.sidebar.open{transform:none}.main{grid-column:auto}.topbar{height:72px;padding:9px 12px}.mobile-menu{display:block}.scope-area .top-label{display:none}.scope-switch button{padding:7px 8px;font-size:11px}.top-actions .btn{display:none}.month-picker span{display:none}.month-picker input{width:124px}.content{padding:17px 12px}.mobile-bottom{display:grid;position:fixed;z-index:25;bottom:0;left:0;right:0;grid-template-columns:repeat(5,1fr);background:rgba(16,18,19,.96);backdrop-filter:blur(14px);border-top:1px solid var(--line);padding:7px 4px calc(7px + env(safe-area-inset-bottom))}.mobile-bottom button{border:0;background:transparent;color:#7f8985;display:grid;justify-items:center;gap:2px;font-size:18px}.mobile-bottom button.active{color:white}.mobile-bottom small{font-size:9px;font-weight:800}.mobile-bottom .plus{width:32px;height:32px;border-radius:11px;background:var(--accent);color:#11200f;display:grid;place-items:center;margin-top:-12px}.welcome h1{font-size:25px}.balance-hero{display:block;padding:20px}.balance-hero strong{font-size:38px}.hero-actions{margin-top:16px}.hero-actions .btn{flex:1;padding:10px 8px;font-size:11px}.simple-kpis{grid-template-columns:1fr;gap:7px}.simple-kpi{padding:12px 14px}.category-row-simple{grid-template-columns:110px 1fr auto;gap:8px}.page-head{align-items:flex-start}.page-head h1{font-size:24px}.head-actions{display:grid;gap:6px}.summary-strip{display:grid;grid-template-columns:1fr 1fr}.summary-strip span:last-child{grid-column:1/-1}.section-bar{align-items:flex-start}.section-bar .btn{font-size:0;padding:10px 12px}.section-bar .btn::first-letter{font-size:16px}.budget-tabs{margin-left:-2px;margin-right:-2px}.form-grid{grid-template-columns:1fr}.span2{grid-column:1}.modal{padding:21px 16px}.couple-status{display:block}.couple-status .btn{margin-top:15px;width:100%}.choice-cards{grid-template-columns:1fr}.inline-form{display:grid}.auth-shell{padding:26px 15px}.auth-intro h1{font-size:47px}.auth-intro>p{font-size:16px}.auth-points{display:none}.auth-card{padding:21px}.sidebar-help{display:none}.tx-main span{max-width:190px}}

/* =========================
   MONEVIA V3 — THEME CLAIR
   ========================= */
:root{
  --bg:#f4f7f4;
  --panel:#ffffff;
  --panel2:#f8faf8;
  --line:#dfe8e1;
  --text:#1d2921;
  --muted:#6f7f75;
  --accent:#63b86a;
  --accent-strong:#469b4f;
  --danger:#d85f65;
  --warn:#d9a63f;
  --radius:20px;
  --shadow:0 12px 35px rgba(42,72,50,.08);
}
html,body{background:var(--bg);color:var(--text)}
body{background:linear-gradient(180deg,#f7faf7 0,#eef4ef 100%)}
.brand-mark{background:linear-gradient(145deg,#6bc774,#4fa959);color:#fff;box-shadow:0 8px 20px rgba(79,169,89,.22)}
.auth-shell{background:
  radial-gradient(circle at 18% 23%,rgba(113,199,121,.16) 0,transparent 30%),
  radial-gradient(circle at 75% 80%,rgba(174,221,178,.22) 0,transparent 32%),
  linear-gradient(145deg,#f9fcf9,#eef6ef);}
.auth-intro h1{color:#1d2921}.auth-intro>p{color:#627267}.auth-points{color:#405448}.auth-points span{display:flex;align-items:center;gap:8px}
.auth-card{background:rgba(255,255,255,.94);border:1px solid #dce7de;box-shadow:0 24px 70px rgba(47,84,55,.12)}
.auth-tabs{background:#edf3ee;border:1px solid #e0e9e2}.auth-tab{color:#77877c}.auth-tab.active{background:white;color:#243529;box-shadow:0 3px 12px rgba(44,74,50,.08)}
.stack label,.form-grid label,label{color:#435449}
input,select{background:#fff;color:#203027;border-color:#cedbd1}.month-picker input{background:transparent}
input::placeholder{color:#9aa9a0}input:focus,select:focus{border-color:#69b970;box-shadow:0 0 0 4px rgba(99,184,106,.12)}
.field-help{font-size:10px;color:#839187;font-weight:600;margin-top:-2px}
.password-field{position:relative}.password-field input{padding-right:48px}.password-toggle{position:absolute;right:7px;top:50%;transform:translateY(-50%);width:36px;height:36px;border:0;background:#edf4ee;border-radius:10px;font-size:16px;display:grid;place-items:center}.password-toggle:hover{background:#e1ede3}
.privacy-note{color:#6e7f73;background:#f4f8f4;border:1px solid #e2eae3;border-radius:12px;padding:11px 12px}
.btn{background:#fff;color:#26372c;border-color:#d3ded5;box-shadow:0 2px 7px rgba(37,66,43,.04)}.btn:hover{background:#f5f9f5}.btn.primary{background:linear-gradient(145deg,#70c878,#58ae61);border-color:#58ae61;color:white;box-shadow:0 7px 18px rgba(82,174,97,.18)}.btn.primary:hover{background:linear-gradient(145deg,#7cd184,#61b86a)}.btn.white{background:#fff;color:#25352a;border-color:#fff}.btn.ghost-white{color:#fff;border-color:rgba(255,255,255,.55)}
.sidebar{background:rgba(255,255,255,.96);border-right:1px solid #e0e9e2;box-shadow:8px 0 30px rgba(56,84,61,.04)}.brand{color:#203027}.nav-item{color:#6f8075}.nav-item:hover{background:#f0f6f1;color:#24362a}.nav-item.active{background:#e7f4e9;color:#2e6d38;box-shadow:inset 0 0 0 1px #d8ecdb}.nav-icon{width:32px!important;height:32px;border-radius:10px;background:#f0f5f1;display:grid;place-items:center;font-size:17px!important}.nav-item.active .nav-icon{background:#d5ebd8}.sidebar-help{background:#f1f8f2;border-color:#dcecdf;color:#48664e}.sidebar-help small{color:#728576}.sidebar-footer{border-top-color:#e3ebe4}.profile-mini strong{color:#293a2f}.icon-btn{color:#738379}
.topbar{background:rgba(247,250,247,.9);border-bottom:1px solid rgba(218,228,220,.9)}.top-label{color:#839087}.scope-switch{background:#eaf0eb;border-color:#dce6de}.scope-switch button{color:#6b7b70}.scope-switch button.active{background:#fff;color:#2b4f31;box-shadow:0 2px 8px rgba(52,82,58,.08)}.month-picker{background:white;border-color:#d8e2da;color:#66766b}.mobile-menu{color:#27382d}
.welcome-label{color:#469b4f}.welcome h1{color:#203027}.welcome p{color:#748278}
.balance-hero{background:linear-gradient(125deg,#5db36a,#438e50);border-color:#4f9f5b;box-shadow:0 16px 34px rgba(73,149,84,.18)}.balance-hero span,.balance-hero small{color:#e8f5ea}.balance-hero strong{color:#fff!important}.balance-hero.negative-hero{background:linear-gradient(125deg,#d77478,#b9545a);border-color:#c75d62}.good-text{color:#409a4b!important}.danger-text{color:#c44e55!important}
.simple-kpi,.card,.budget-item,.goal-simple{background:#fff;border-color:#dee8e0;box-shadow:var(--shadow)}.simple-kpi span,.card-head p,.section-explain p,.page-head p,.section-bar p,.muted{color:#76867b}.simple-kpi strong,.card h2,.page-head h1,.section-bar h2{color:#24342a}.recent-card{box-shadow:var(--shadow)}
.track,.progress-track{background:#e9f0ea}.fill,.progress-fill{background:linear-gradient(90deg,#66bd6e,#4da557)}.overview-list button{color:#293a2f;border-bottom-color:#e6ece7}.overview-list button>span,.round-icon,.goal-icon{background:#edf5ee;color:#315f38}.overview-list small{color:#819087}.overview-list i{color:#93a098}
.tx-row{border-bottom-color:#e8eee9}.tx-icon{background:#eef3ef}.tx-icon.income{background:#e2f3e5}.tx-main b{color:#26372c}.tx-main span{color:#849188}.delete-icon{color:#98a49c}.delete-icon:hover{background:#fdecee;color:#c4565c}
.summary-strip span{background:#fff;border-color:#dfe8e1;color:#748278;box-shadow:0 3px 12px rgba(56,86,62,.04)}.summary-strip b{color:#25362b}.empty{border-color:#d5dfd7;color:#839088;background:#fbfdfb}.empty b{color:#33463a}.empty-icon{color:#9aa79f}
.budget-tabs button{background:#fff;color:#68786e;border-color:#dce6de;box-shadow:0 3px 10px rgba(48,78,54,.04)}.budget-tabs button.active{background:#dff0e2;border-color:#cde7d1;color:#2d6b37}.link-danger{color:#c85d63}.budget-item.over .progress-fill{background:#db696f}
.account-simple,.list-item{border-bottom-color:#e7ede8}.account-simple b,.list-item b,.goal-top b,.budget-item-top b{color:#2b3c31}.account-simple span,.list-item span,.goal-top span,.budget-item-top span{color:#7d8c82}
.couple-intro>p{color:#6e7d73}.couple-points span{background:#fff;border-color:#dde7df;color:#4f6155}.heart-orb{background:#fdecef;color:#d75d66}.simple-couple .card>p{color:#748278}.couple-status{background:linear-gradient(125deg,#fff0f2,#fff8f8);border-color:#f0d1d5;box-shadow:var(--shadow)}.couple-status span{color:#d35d67}.couple-status h2{color:#55343a}.couple-status p{color:#7e656a}.member-simple{border-bottom-color:#e7ede8}.avatar{background:#edf4ee;color:#395a40}.member-simple b{color:#2b3c31}.invite-simple{background:#f7faf7;border-color:#d8e3da}.choice-cards button{background:#f8faf8;color:#46574c;border-color:#dbe5dd}.choice-cards button.active{border-color:#a9d6af;background:#e8f5ea;color:#2e6436}.privacy-box{background:#f0f7f1;border-color:#d9e9dc}.privacy-box span{color:#728677}
.setting-row{border-bottom-color:#e6ede7}.version-badge{background:#e2f3e5;color:#3e8b48}.install-steps>div{background:#f8faf8;border-color:#dfe8e1}.install-steps p{color:#718077}
.modal{background:#fff;color:#26372c;border-color:#d7e2d9;box-shadow:0 28px 80px rgba(48,77,54,.18)}.modal::backdrop{background:rgba(38,55,43,.28);backdrop-filter:blur(5px)}.modal-close{color:#78877d}.modal-heading h2{color:#23342a}.modal-heading p{color:#78877d}.type-toggle{background:#edf3ee}.type-toggle button{color:#78877d}.type-toggle button.active{background:#dff1e2;color:#2e6d38}.type-toggle button.active.expense{background:#fde9eb;color:#b84d56}
.context-banner{display:flex;align-items:center;gap:12px;background:#edf7ef;border:1px solid #d5ead9;border-radius:14px;padding:13px 14px}.context-icon{width:38px;height:38px;border-radius:11px;background:#fff;display:grid;place-items:center;font-size:18px}.context-banner b,.context-banner small{display:block}.context-banner b{font-size:12px;color:#2c5d35}.context-banner small{font-size:10px;color:#728176;margin-top:3px}.amount-field input{background:#fbfdfb}
.toast{background:#21352a;color:#fff;box-shadow:0 16px 40px rgba(35,58,42,.18)}.toast.error{background:#d26469;color:#fff}
.mobile-bottom{background:rgba(255,255,255,.96)!important;border-top-color:#dce6de!important;box-shadow:0 -8px 25px rgba(43,70,49,.06)}.mobile-bottom button{color:#7d8b81!important}.mobile-bottom button.active{color:#2e6d38!important}.mobile-bottom .plus{background:#62b76a!important;color:white!important;box-shadow:0 6px 16px rgba(82,165,93,.22)}
@media(max-width:760px){.sidebar{background:#fff}.topbar{background:rgba(247,250,247,.96)}.section-bar .btn{font-size:11px}.section-bar .btn::first-letter{font-size:inherit}.auth-shell{background:linear-gradient(180deg,#f7fbf7,#edf5ee)}.auth-intro h1{color:#1f3026}}

/* MONEVIA V4 — fenêtre robuste indépendante de <dialog> */
body.modal-open{overflow:hidden}
.modal-overlay{position:fixed;inset:0;z-index:1000;display:grid;place-items:center;padding:18px;background:rgba(38,55,43,.30);backdrop-filter:blur(5px)}
.modal-overlay.hidden{display:none!important}
.modal-panel{position:relative;width:min(570px,calc(100vw - 24px));max-height:90vh;overflow:auto;background:#fff;color:#26372c;border:1px solid #d7e2d9;border-radius:21px;padding:24px;box-shadow:0 28px 80px rgba(48,77,54,.18)}
.modal-panel .modal-close{position:absolute;right:14px;top:12px;z-index:2}
@media(max-width:760px){.modal-panel{padding:21px 16px;max-height:calc(100vh - 28px)}}

/* V5 — mot de passe et installation */
.password-toggle{color:#48664e;overflow:hidden}
.password-toggle .eye-icon{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.password-toggle.visible::after{content:"";position:absolute;width:22px;height:2px;background:#48664e;transform:rotate(-42deg);border-radius:2px}
.install-status{display:block;margin-top:4px;font-size:10px;color:#718077}


/* =========================
   MONEVIA V6 — MOBILE + RECUPERATION
   ========================= */
.auth-forgot-row{display:flex;justify-content:flex-end;margin-top:-3px}
.auth-link{border:0;background:transparent;color:#4e8f58;font-weight:800;font-size:12px;padding:2px 0;cursor:pointer}
.auth-link:hover{text-decoration:underline;color:#377d43}
.mobile-menu-backdrop{display:none}
.modal-copy{margin:0 0 2px;color:#6f7f75;line-height:1.55;font-size:13px}
.recovery-help,.recovery-warning{font-size:11px;line-height:1.5;color:#748278;background:#f5f8f5;border:1px solid #e1e9e2;border-radius:11px;padding:10px 11px}
.recovery-box{display:grid;gap:14px}.recovery-box>p{margin:0;color:#607067;line-height:1.55}
.recovery-code{display:flex;align-items:center;gap:10px;background:#edf6ee;border:1px solid #d6e9d9;border-radius:14px;padding:12px}
.recovery-code code{flex:1;min-width:0;font-size:16px;font-weight:900;letter-spacing:.08em;color:#285d32;word-break:break-all}
body.mobile-drawer-open{overflow:hidden}
@media(max-width:760px){
  .topbar{z-index:40}
  .mobile-menu{display:grid;place-items:center;flex:0 0 42px;width:42px;height:42px;border:1px solid #dbe5dd;background:#fff;border-radius:12px;box-shadow:0 3px 10px rgba(45,75,51,.06);cursor:pointer}
  .sidebar{inset:72px auto 0 0;width:min(82vw,280px);height:auto;z-index:35;transform:translateX(-105%);transition:transform .22s ease;box-shadow:18px 18px 45px rgba(36,60,42,.16)}
  .sidebar.open{transform:translateX(0)}
  .mobile-menu-backdrop{display:block;position:fixed;z-index:34;inset:72px 0 0 0;background:rgba(30,48,35,.26);backdrop-filter:blur(2px);opacity:0;pointer-events:none;transition:opacity .2s ease}
  .mobile-menu-backdrop.show{opacity:1;pointer-events:auto}
  .auth-forgot-row{margin-top:-5px}
  .auth-link{font-size:12px;padding:5px 0}
  .recovery-code{align-items:stretch;flex-direction:column}
  .recovery-code .btn{width:100%}
}
