:root{--bg: #eef1f3;--bg-2: #f7f9fa;--surface: #ffffff;--surface-2: #f4f6f8;--ink: #0c1a24;--ink-2: #34465a;--muted: #6b7c8e;--line: rgba(12, 26, 36, .08);--line-strong: rgba(12, 26, 36, .14);--emerald: #0e7c66;--emerald-600: #0c6c59;--emerald-700: #0a5546;--teal: #0ea59a;--ink-green: #08312c;--gold: #c8a24a;--gold-soft: #e7c878;--success: #15803d;--warning: #b45309;--danger: #c0392b;--info: #2563eb;--grad-hero: radial-gradient(120% 140% at 85% -10%, #11806c 0%, #0b3b36 55%, #07292527 100%), linear-gradient(135deg, #0b463f 0%, #07302b 100%);--grad-gold: linear-gradient(135deg, #e7c878 0%, #c8a24a 100%);--grad-emerald: linear-gradient(135deg, #14a08a 0%, #0c6657 100%);--r-sm: 10px;--r: 16px;--r-lg: 22px;--r-xl: 28px;--shadow-sm: 0 1px 2px rgba(8, 25, 30, .06), 0 1px 3px rgba(8, 25, 30, .05);--shadow: 0 6px 18px -6px rgba(8, 25, 30, .12), 0 2px 6px rgba(8, 25, 30, .06);--shadow-lg: 0 24px 48px -16px rgba(8, 30, 26, .22), 0 8px 20px -10px rgba(8, 30, 26, .12);--shadow-hero: 0 30px 60px -22px rgba(7, 41, 37, .5);--font: "Assistant", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;--font-display: "Frank Ruhl Libre", "Assistant", serif}*{box-sizing:border-box}html,body,#root{height:100%;margin:0}body{font-family:var(--font);color:var(--ink);background:linear-gradient(180deg,var(--bg) 0%,var(--bg-2) 100%);background-attachment:fixed;line-height:1.55;-webkit-font-smoothing:antialiased}h1,h2,h3,h4{margin:0;font-weight:700;letter-spacing:-.01em}a{color:inherit;text-decoration:none}button{font:inherit;cursor:pointer}.num{font-variant-numeric:tabular-nums;font-feature-settings:"tnum"}.display{font-family:var(--font-display);letter-spacing:-.02em}.shell{display:grid;grid-template-columns:264px 1fr;min-height:100%}.sidebar{position:sticky;top:0;align-self:start;height:100vh;padding:1.4rem 1rem;display:flex;flex-direction:column;gap:1.5rem;background:var(--grad-hero);color:#eaf6f1;box-shadow:var(--shadow-hero);z-index:10}.brand-row{display:flex;align-items:center;gap:.7rem;padding:.2rem .4rem}.brand-mark{width:40px;height:40px;border-radius:12px;background:var(--grad-gold);display:grid;place-items:center;color:#3a2c07;box-shadow:0 6px 16px -6px #c8a24ab3;flex:none}.brand-name{font-family:var(--font-display);font-size:1.2rem;font-weight:700;color:#fff}.brand-sub{font-size:.72rem;color:#9fc7ba;letter-spacing:.06em}.side-nav{display:flex;flex-direction:column;gap:.25rem}.side-link{display:flex;align-items:center;gap:.75rem;padding:.6rem .8rem;border-radius:12px;color:#cfe6dd;font-weight:600;font-size:.95rem;transition:background .18s,color .18s,transform .18s}.side-link svg{width:20px;height:20px;opacity:.85}.side-link:hover{background:#ffffff14;color:#fff}.side-link.active{background:#ffffff24;color:#fff;box-shadow:inset 0 0 0 1px #ffffff14}.side-link.active svg{opacity:1}.side-foot{margin-top:auto;display:flex;flex-direction:column;gap:.6rem}.side-free{background:#ffffff12;border:1px solid rgba(255,255,255,.1);border-radius:14px;padding:.8rem .9rem}.side-free .lbl{font-size:.72rem;color:#9fc7ba}.side-free .val{font-size:1.25rem;font-weight:800;color:var(--gold-soft)}.side-user{display:flex;align-items:center;justify-content:space-between;font-size:.8rem;color:#bcd8cd}.main{min-width:0;display:flex;flex-direction:column}.topbar{display:none;align-items:center;justify-content:space-between;padding:.8rem 1rem;background:var(--ink-green);color:#fff;position:sticky;top:0;z-index:20}.content{padding:1.8rem 2rem 3rem;width:100%;max-width:1180px;margin:0 auto;animation:rise .4s ease both}.page-head{display:flex;align-items:flex-end;justify-content:space-between;gap:1rem;margin-bottom:1.4rem}.page-head h1{font-size:1.7rem}.page-head .sub{color:var(--muted);font-size:.95rem}.bottom-nav{display:none}.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg);box-shadow:var(--shadow);padding:1.3rem}.card.tight{padding:1rem}.card-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:1rem}.card-head h3{font-size:1.05rem}.card-head .hint{font-size:.8rem;color:var(--muted)}.grid{display:grid;gap:1.1rem}.cols-2{grid-template-columns:1fr 1fr}.cols-3{grid-template-columns:repeat(3,1fr)}.cols-4{grid-template-columns:repeat(4,1fr)}.span-2{grid-column:span 2}.hero{position:relative;overflow:hidden;border-radius:var(--r-xl);background:var(--grad-hero);color:#eaf6f1;padding:1.8rem 2rem;box-shadow:var(--shadow-hero)}.hero:after{content:"";position:absolute;inset:auto -60px -120px auto;width:320px;height:320px;border-radius:50%;border:40px solid rgba(255,255,255,.04);box-shadow:0 0 0 40px #ffffff08;pointer-events:none}.hero .eyebrow{font-size:.8rem;letter-spacing:.12em;color:#9fc7ba;text-transform:uppercase}.hero .amount{font-family:var(--font-display);font-size:3.1rem;font-weight:900;line-height:1.05;margin:.3rem 0 .2rem;background:var(--grad-gold);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}.hero .meta{display:flex;gap:1.6rem;margin-top:1.1rem;flex-wrap:wrap}.hero .meta .m-lbl{font-size:.78rem;color:#9fc7ba}.hero .meta .m-val{font-size:1.15rem;font-weight:700;color:#fff}.kpi{background:var(--surface);border:1px solid var(--line);border-radius:var(--r);box-shadow:var(--shadow-sm);padding:1rem 1.1rem;transition:transform .18s,box-shadow .18s}.kpi:hover{transform:translateY(-2px);box-shadow:var(--shadow)}.kpi .k-top{display:flex;align-items:center;gap:.55rem;color:var(--muted);font-size:.82rem}.kpi .k-icon{width:30px;height:30px;border-radius:9px;display:grid;place-items:center;background:var(--surface-2);color:var(--emerald)}.kpi .k-val{font-size:1.5rem;font-weight:800;margin-top:.45rem}.kpi .k-sub{font-size:.78rem;color:var(--muted);margin-top:.1rem}.btn{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;padding:.62rem 1.1rem;border-radius:12px;border:1px solid transparent;font-weight:700;font-size:.92rem;transition:transform .12s,box-shadow .18s,background .18s,border-color .18s}.btn:active{transform:translateY(1px)}.btn:disabled{opacity:.55;cursor:not-allowed}.btn-primary{background:var(--grad-emerald);color:#fff;box-shadow:0 10px 22px -12px #0c6657e6}.btn-primary:hover{box-shadow:0 14px 26px -12px #0c6657f2}.btn-gold{background:var(--grad-gold);color:#3a2c07}.btn-ghost{background:var(--surface);border-color:var(--line-strong);color:var(--ink-2)}.btn-ghost:hover{border-color:var(--emerald);color:var(--emerald)}.btn-sm{padding:.42rem .8rem;font-size:.82rem;border-radius:10px}.btn-block{width:100%}.icon-btn{width:38px;height:38px;border-radius:11px;display:grid;place-items:center;background:var(--surface);border:1px solid var(--line);color:var(--ink-2)}.icon-btn:hover{color:var(--emerald);border-color:var(--emerald)}.field{display:flex;flex-direction:column;gap:.35rem;margin-bottom:.9rem}.field label,.lbl{font-size:.85rem;font-weight:600;color:var(--ink-2)}input,select,textarea{width:100%;padding:.66rem .8rem;border:1px solid var(--line-strong);border-radius:11px;background:var(--surface);font:inherit;color:var(--ink);transition:border-color .15s,box-shadow .15s}input:focus,select:focus,textarea:focus{outline:none;border-color:var(--emerald);box-shadow:0 0 0 3px #0e7c6624}.row-fields{display:grid;grid-template-columns:1fr 1fr;gap:.8rem}.segmented{display:inline-flex;background:var(--surface-2);border:1px solid var(--line);border-radius:12px;padding:3px;gap:3px}.segmented button{border:none;background:transparent;padding:.4rem .85rem;border-radius:9px;font-weight:600;font-size:.85rem;color:var(--muted)}.segmented button.on{background:var(--surface);color:var(--emerald);box-shadow:var(--shadow-sm)}.list{list-style:none;margin:0;padding:0}.list li{display:flex;align-items:center;gap:.8rem;padding:.7rem 0;border-bottom:1px solid var(--line)}.list li:last-child{border-bottom:none}.li-main{flex:1;min-width:0}.li-title{font-weight:600}.li-sub{font-size:.8rem;color:var(--muted)}.dot{width:10px;height:10px;border-radius:50%;flex:none}.amount-pos{color:var(--success);font-weight:700}.amount-neg{color:var(--ink);font-weight:700}.badge{font-size:.74rem;font-weight:700;padding:.18rem .55rem;border-radius:999px;background:#eef2ff;color:var(--info)}.badge.info{background:#eff6ff;color:var(--info)}.badge.warning{background:#fff7ed;color:var(--warning)}.badge.critical{background:#fef2f2;color:var(--danger)}.badge.success{background:#ecfdf3;color:var(--success)}.chip{display:inline-flex;align-items:center;gap:.35rem;padding:.25rem .6rem;border-radius:999px;background:var(--surface-2);border:1px solid var(--line);font-size:.8rem;color:var(--ink-2)}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#07191673;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);display:grid;place-items:center;padding:1rem;z-index:60;animation:fade .2s ease both}.modal{width:min(520px,96vw);max-height:92vh;overflow:auto;background:var(--surface);border-radius:var(--r-lg);box-shadow:var(--shadow-lg);padding:1.4rem;animation:rise .25s ease both}.modal-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:1rem}.modal-head h3{font-size:1.2rem}.legend{display:flex;flex-direction:column;gap:.45rem}.legend-item{display:flex;align-items:center;gap:.5rem;font-size:.85rem}.legend-item .val{margin-inline-start:auto;font-weight:700;color:var(--ink-2)}.donut-wrap{display:flex;align-items:center;gap:1.3rem;flex-wrap:wrap}.ring-row{display:flex;gap:1rem;overflow-x:auto;padding-bottom:.4rem}.ring-card{flex:none;width:160px;text-align:center;background:var(--surface-2);border:1px solid var(--line);border-radius:var(--r);padding:1rem .8rem}.bar-meter{height:10px;border-radius:999px;background:var(--surface-2);overflow:hidden}.bar-meter>span{display:block;height:100%;border-radius:999px;background:var(--grad-emerald);transition:width .6s cubic-bezier(.2,.8,.2,1)}.bar-meter.over>span{background:linear-gradient(135deg,#e06a5a,#c0392b)}.auth-wrap{min-height:100vh;display:grid;grid-template-columns:1.1fr 1fr}.auth-aside{background:var(--grad-hero);color:#eaf6f1;padding:3rem;display:flex;flex-direction:column;justify-content:space-between;position:relative;overflow:hidden}.auth-aside:after{content:"";position:absolute;inset:auto -80px -140px auto;width:360px;height:360px;border-radius:50%;border:50px solid rgba(255,255,255,.04)}.auth-aside h2{font-family:var(--font-display);font-size:2.3rem;line-height:1.2}.auth-aside p{color:#bcd8cd;max-width:30ch}.auth-aside .feat{display:flex;align-items:center;gap:.7rem;margin:.5rem 0;color:#dcefe6;font-weight:600}.auth-aside .feat svg{color:var(--gold-soft)}.auth-panel{display:grid;place-items:center;padding:2rem}.auth-card{width:min(400px,92vw)}.auth-card h1{font-family:var(--font-display);font-size:1.7rem}.center{min-height:60vh;display:grid;place-items:center;text-align:center}.empty{text-align:center;padding:2.4rem 1rem;color:var(--muted)}.empty .ill{width:64px;height:64px;margin:0 auto .8rem;border-radius:18px;display:grid;place-items:center;background:var(--surface-2);color:var(--emerald)}.muted{color:var(--muted)}.error{background:#fef2f2;color:var(--danger);border:1px solid #fecaca;border-radius:11px;padding:.6rem .8rem;font-size:.9rem}.notice{background:#eff6ff;color:var(--info);border:1px solid #bfdbfe;border-radius:11px;padding:.6rem .8rem;font-size:.9rem}.skeleton{background:linear-gradient(90deg,#eef1f3 25%,#e2e7ea 37%,#eef1f3 63%);background-size:400% 100%;animation:shimmer 1.3s ease infinite;border-radius:10px}.install-banner{position:fixed;inset-inline:0;bottom:calc(1rem + env(safe-area-inset-bottom));margin:0 auto;max-width:460px;z-index:55;display:flex;align-items:center;gap:.7rem;background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow-lg);border-radius:16px;padding:.7rem .8rem;animation:rise .3s ease both}.install-banner img{width:40px;height:40px;border-radius:11px;flex:none}.install-banner .ib-text{flex:1;min-width:0;font-size:.85rem;line-height:1.3}.install-banner .ib-title{font-weight:700}@media (max-width: 900px){.install-banner{inset-inline:.7rem;bottom:calc(5.4rem + env(safe-area-inset-bottom))}}.fab{position:fixed;inset-block-end:calc(1.2rem + env(safe-area-inset-bottom));inset-inline-start:1.2rem;width:56px;height:56px;border-radius:18px;background:var(--grad-emerald);color:#fff;display:none;place-items:center;box-shadow:var(--shadow-lg);z-index:40}@keyframes rise{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}@keyframes fade{0%{opacity:0}to{opacity:1}}@keyframes shimmer{to{background-position:-400% 0}}@media (max-width: 900px){.shell{grid-template-columns:1fr}.sidebar{display:none}.topbar{display:flex}.content{padding:1.1rem 1rem 5.5rem}.cols-2,.cols-3,.cols-4{grid-template-columns:1fr}.span-2{grid-column:auto}.bottom-nav{display:flex;position:fixed;inset-inline:0;inset-block-end:0;background:var(--surface);border-top:1px solid var(--line);padding:.4rem .3rem calc(.4rem + env(safe-area-inset-bottom));justify-content:space-around;z-index:50;box-shadow:0 -6px 20px -12px #08191e40}.bottom-nav a{display:flex;flex-direction:column;align-items:center;gap:.15rem;font-size:.66rem;color:var(--muted);padding:.3rem .5rem;border-radius:10px;font-weight:600}.bottom-nav a svg{width:22px;height:22px}.bottom-nav a.active{color:var(--emerald)}.fab{display:grid;inset-block-end:calc(5.2rem + env(safe-area-inset-bottom))}.auth-wrap{grid-template-columns:1fr}.auth-aside{display:none}.row-fields{grid-template-columns:1fr}.page-head{flex-direction:column;align-items:stretch}}@media (max-width: 560px){.hero{padding:1.4rem 1.3rem}.hero .amount{font-size:2.4rem}.hero .meta{gap:1.1rem 1.6rem}.page-head h1{font-size:1.45rem}.list li{flex-wrap:wrap;row-gap:.55rem}.li-main{flex:1 1 100%}.list li>.btn,.list li>select,.list li>.badge,.list li>.amount-pos,.list li>.amount-neg,.list li>.num{margin-inline-start:0}.list li>.num:not(.li-main .num){margin-inline-end:auto}.list li .btn-sm{padding:.55rem .9rem;min-height:40px}.list li select{width:auto;min-width:110px;min-height:40px}.segmented{flex-wrap:wrap}.segmented button{padding:.55rem .9rem;min-height:38px}.card-head{flex-wrap:wrap;gap:.6rem}.bottom-nav a{min-width:56px;min-height:48px;justify-content:center}.modal{padding:1.1rem}}@media (max-width: 380px){.content{padding:.9rem .8rem 5.5rem}.card{padding:1rem}.hero .amount{font-size:2.05rem}.hero .meta{flex-direction:column;gap:.7rem}.budget-row-head{flex-wrap:wrap;row-gap:.5rem}.budget-row-head>input[type=number]{width:100%!important;flex:1 1 100%;min-height:40px}.list li input{flex:1 1 100%;min-height:40px}}
