:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color-scheme:light;--canvas:#faf7ff;--surface:#fff;--surface-2:#f5efff;--text:#28143f;--muted:#6d607b;--line:#e6def0;--brand:#7c3aed;--brand-strong:#5b21b6;--accent:#ea580c;--accent-soft:#fff1e8;--good:#16724a;--good-soft:#e8f7ee;--shadow:0 18px 50px rgba(60,25,95,.07)}:root[data-theme=dark]{color-scheme:dark;--canvas:#120b1f;--surface:#201332;--surface-2:#2c1c42;--text:#faf5ff;--muted:#bcadce;--line:#48365d;--brand:#a78bfa;--brand-strong:#c4b5fd;--accent:#fb923c;--accent-soft:#3d241d;--good:#73d5a6;--good-soft:#193d32;--shadow:0 18px 50px rgba(0,0,0,.18)}*{box-sizing:border-box}body{margin:0;background:var(--canvas);color:var(--text)}button,input,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.55;cursor:wait}a{color:inherit}button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid var(--brand);outline-offset:2px}.boot{padding:4rem;text-align:center}.brand{display:flex;align-items:center;gap:10px;font-weight:800;letter-spacing:-.05em;font-size:23px}.brand-mark{display:grid;place-items:center;width:33px;height:33px;border-radius:11px;background:var(--brand);color:var(--surface);font-size:19px}.smallcaps{font-size:11px;text-transform:uppercase;letter-spacing:.13em;font-weight:800;color:var(--muted)}.theme{width:39px;height:39px;display:grid;place-items:center;border:1px solid var(--line);background:var(--surface);border-radius:12px;color:var(--text);font-size:19px}.btn{border:0;border-radius:11px;padding:11px 16px;font-weight:700}.btn-primary{background:var(--brand);color:#fff}.btn-secondary{background:var(--surface-2);color:var(--text)}.btn-ghost{background:transparent;color:var(--muted)}.btn:hover,.theme:hover,.nav-link:hover{filter:brightness(.96)}.landing{min-height:100vh;display:flex;flex-direction:column}.landing-header{display:flex;align-items:center;justify-content:space-between;padding:22px max(32px,calc((100vw - 1180px)/2))}.header-actions{display:flex;gap:14px;align-items:center}.landing-main{max-width:1180px;width:100%;margin:auto;display:grid;grid-template-columns:1.05fr .95fr;gap:70px;padding:45px 32px 85px;align-items:center}.eyebrow{display:inline-flex;align-items:center;gap:8px;color:var(--brand-strong);font-size:12px;font-weight:800;letter-spacing:.1em;text-transform:uppercase}.eyebrow:before{content:'';height:8px;width:8px;background:var(--accent);border-radius:50%}.hero h1{font-size:clamp(42px,5vw,72px);line-height:1.03;letter-spacing:-.065em;margin:20px 0 22px;max-width:630px}.hero p{font-size:18px;line-height:1.7;color:var(--muted);max-width:510px}.hero-features{display:flex;gap:23px;flex-wrap:wrap;margin:32px 0}.hero-features span{font-size:13px;font-weight:700}.hero-features b{color:var(--accent);margin-right:6px}.hero-card{background:var(--surface);border:1px solid var(--line);border-radius:25px;padding:28px;box-shadow:var(--shadow);transform:rotate(1deg)}.hero-card .big{font-size:43px;font-weight:800;letter-spacing:-.06em;margin:12px 0}.hero-chart{height:180px;display:flex;align-items:end;gap:12px;border-bottom:1px solid var(--line);padding:10px 0}.hero-chart i{flex:1;background:linear-gradient(180deg,var(--brand),var(--surface-2));border-radius:8px 8px 0 0;opacity:.8}.hero-chart i:nth-child(3n){background:linear-gradient(180deg,var(--accent),var(--accent-soft))}.hero-card-foot{display:flex;justify-content:space-between;align-items:center;margin-top:20px;color:var(--muted);font-size:13px}.pill{display:inline-flex;gap:6px;align-items:center;padding:6px 10px;border-radius:99px;background:var(--good-soft);color:var(--good);font-size:12px;font-weight:750}.auth-card{width:min(430px,100%);background:var(--surface);border:1px solid var(--line);border-radius:23px;padding:32px;box-shadow:var(--shadow)}.auth-card h1{font-size:29px;letter-spacing:-.04em;margin:10px 0}.auth-card p{color:var(--muted);line-height:1.5;margin-bottom:26px}.field{display:grid;gap:7px;margin-bottom:17px}.field label{font-size:13px;font-weight:750}.field input,.field select,.search{width:100%;border:1px solid var(--line);background:var(--surface);color:var(--text);border-radius:10px;padding:11px 12px;min-height:43px}.form-error{background:var(--accent-soft);color:var(--text);border-left:3px solid var(--accent);padding:11px;border-radius:7px;margin:12px 0;font-size:13px}.auth-card .btn-primary{width:100%}.auth-back{margin-top:18px;width:100%}.shell{display:grid;grid-template-columns:235px minmax(0,1fr);min-height:100vh}.sidebar{background:var(--surface);border-right:1px solid var(--line);padding:27px 17px;display:flex;flex-direction:column;gap:31px}.sidebar .brand{margin-left:9px}.nav{display:grid;gap:5px}.nav-link{width:100%;text-align:left;border:0;background:none;color:var(--muted);padding:12px 14px;border-radius:11px;font-weight:650;display:flex;gap:12px;align-items:center}.nav-link.active{background:var(--surface-2);color:var(--brand-strong)}.nav-link span:first-child{width:19px;text-align:center;font-size:17px}.side-bottom{margin-top:auto}.side-note{background:var(--surface-2);border-radius:14px;padding:16px;margin-bottom:22px;font-size:12px;line-height:1.5;color:var(--muted)}.side-note strong{display:block;color:var(--text);margin-bottom:4px}.profile{border-top:1px solid var(--line);padding-top:16px;display:flex;align-items:center;gap:10px}.avatar{width:34px;height:34px;border-radius:50%;background:var(--brand);color:#fff;display:grid;place-items:center;font-weight:750}.profile-text{min-width:0;flex:1}.profile-text strong,.profile-text small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.profile-text strong{font-size:12px}.profile-text small{font-size:11px;color:var(--muted)}.logout{background:none;border:0;color:var(--muted);font-size:18px}.main{min-width:0}.topbar{height:75px;border-bottom:1px solid var(--line);background:var(--surface);display:flex;align-items:center;justify-content:space-between;padding:0 34px}.topbar .crumb{color:var(--muted);font-size:13px}.topbar .crumb strong{color:var(--text)}.top-actions{display:flex;align-items:center;gap:16px}.today{font-size:12px;color:var(--muted)}.content{padding:32px 34px 55px;max-width:1600px;margin:auto}.page-head{display:flex;justify-content:space-between;gap:20px;align-items:start;margin-bottom:28px}.page-head h1{font-size:30px;letter-spacing:-.045em;margin:6px 0 7px}.page-head p{color:var(--muted);font-size:13px;margin:0}.head-controls{display:flex;gap:9px;align-items:center}.segmented{display:flex;background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:3px;gap:2px}.segmented button{border:0;background:transparent;color:var(--muted);padding:7px 10px;border-radius:7px;font-size:12px;font-weight:700}.segmented button.active{background:var(--brand);color:#fff}.card{background:var(--surface);border:1px solid var(--line);border-radius:16px;box-shadow:var(--shadow)}.metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:19px}.metric{padding:19px 20px;min-height:142px}.metric-top{display:flex;justify-content:space-between;align-items:center;color:var(--muted);font-size:12px;font-weight:700}.metric-icon{width:31px;height:31px;border-radius:10px;background:var(--surface-2);color:var(--brand-strong);display:grid;place-items:center;font-size:17px}.metric-icon.orange{background:var(--accent-soft);color:var(--accent)}.metric-value{font-size:28px;letter-spacing:-.055em;font-weight:800;margin-top:17px}.metric-foot{color:var(--muted);font-size:11px;margin-top:5px}.grid-main{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(290px,1fr);gap:18px;margin-bottom:18px}.card-pad{padding:22px}.card-title{display:flex;justify-content:space-between;gap:12px;align-items:start;margin-bottom:19px}.card-title h2{font-size:16px;letter-spacing:-.02em;margin:0}.card-title p{color:var(--muted);font-size:11px;margin:5px 0 0}.chart-legend{display:flex;gap:13px;color:var(--muted);font-size:11px}.dot{display:inline-block;width:8px;height:8px;border-radius:50%;margin-right:5px;background:var(--brand)}.dot.orange{background:var(--accent)}.chart{height:230px;display:flex;position:relative;align-items:end;gap:20px;padding:12px 12px 24px 43px;border-bottom:1px solid var(--line);background:repeating-linear-gradient(to top,transparent 0,transparent 55px,var(--line) 56px)}.chart-y{position:absolute;left:0;top:8px;bottom:26px;display:flex;flex-direction:column;justify-content:space-between;color:var(--muted);font-size:10px}.bar-group{height:100%;flex:1;display:flex;align-items:end;gap:4px;position:relative}.bar{flex:1;border-radius:5px 5px 0 0;min-height:3px;background:var(--brand)}.bar.out{background:var(--accent)}.bar-group label{position:absolute;bottom:-24px;left:0;right:0;text-align:center;color:var(--muted);font-size:10px}.summary{background:linear-gradient(145deg,var(--surface-2),var(--surface));}.summary .lead{font-size:19px;font-weight:750;line-height:1.38;letter-spacing:-.03em;margin:11px 0}.summary ul{padding:0;margin:16px 0 0;list-style:none}.summary li{border-top:1px solid var(--line);padding:12px 0;font-size:12px;line-height:1.5;color:var(--muted)}.summary li strong{color:var(--text)}.lower-grid{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(290px,1fr);gap:18px}.table-wrap{overflow-x:auto}table{border-collapse:collapse;width:100%;font-size:12px}th{text-align:left;color:var(--muted);font-size:10px;text-transform:uppercase;letter-spacing:.08em;font-weight:750;border-bottom:1px solid var(--line);padding:11px 10px}td{padding:14px 10px;border-bottom:1px solid var(--line)}tr:last-child td{border-bottom:0}.amount-in{color:var(--good);font-weight:750}.amount-out{color:var(--text);font-weight:750}.status{border-radius:99px;padding:5px 8px;font-size:10px;font-weight:750;background:var(--surface-2);color:var(--brand-strong)}.status.overdue,.status.due-soon{background:var(--accent-soft);color:var(--accent)}.status.paid{background:var(--good-soft);color:var(--good)}.alert{display:flex;gap:10px;padding:13px 0;border-top:1px solid var(--line)}.alert:first-of-type{border-top:0}.alert-symbol{width:25px;height:25px;flex:0 0 25px;display:grid;place-items:center;border-radius:8px;background:var(--accent-soft);color:var(--accent);font-weight:800}.alert-symbol.good{background:var(--good-soft);color:var(--good)}.alert-body{flex:1}.alert strong{display:block;font-size:12px}.alert p{font-size:11px;color:var(--muted);line-height:1.4;margin:4px 0}.tiny-btn{border:0;background:transparent;color:var(--brand-strong);font-size:11px;font-weight:750;padding:0}.section-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px;gap:12px}.section-head h2{margin:0;font-size:17px}.section-head p{margin:4px 0 0;color:var(--muted);font-size:12px}.toolbar{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:16px}.toolbar .search{max-width:310px}.empty{padding:35px;text-align:center;color:var(--muted);font-size:13px}.forecast-layout{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(280px,1fr);gap:18px}.forecast-row{display:grid;grid-template-columns:72px 1fr 1fr 1fr;gap:10px;padding:15px 0;border-top:1px solid var(--line);font-size:12px;align-items:center}.forecast-row span{color:var(--muted)}.forecast-row strong{text-align:right}.forecast-row.head{font-size:10px;text-transform:uppercase;color:var(--muted);font-weight:800}.forecast-row.head strong{font-weight:800}.forecast-row .positive{color:var(--good)}.inline-error{color:var(--accent);font-size:12px;min-height:18px}.adjustment{display:flex;justify-content:space-between;gap:10px;border-top:1px solid var(--line);padding:12px 0;font-size:12px}.adjustment small{display:block;color:var(--muted);margin-top:4px}.loading,.error-panel{padding:35px;text-align:center}.error-panel p{color:var(--muted)}@media(max-width:1080px){.metrics{grid-template-columns:repeat(2,1fr)}.grid-main,.lower-grid,.forecast-layout{grid-template-columns:1fr}.sidebar{width:190px}.shell{grid-template-columns:190px minmax(0,1fr)}}@media(max-width:720px){.landing-main{grid-template-columns:1fr;gap:22px;padding:30px 22px 50px}.hero-card{transform:none}.landing-header{padding:17px 22px}.shell{display:block}.sidebar{width:auto;padding:14px;gap:12px;border-right:0;border-bottom:1px solid var(--line)}.sidebar .brand{display:none}.nav{display:flex;overflow-x:auto}.nav-link{white-space:nowrap}.side-bottom{display:none}.topbar{height:57px;padding:0 18px}.today{display:none}.content{padding:23px 16px}.page-head{flex-direction:column}.metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.metric{padding:14px;min-height:125px}.metric-value{font-size:22px}.chart{gap:8px}.hero h1{font-size:44px}.forecast-row{grid-template-columns:55px repeat(3,1fr);gap:4px;font-size:11px}}@media(max-width:390px){.metrics{grid-template-columns:1fr}.nav-link{padding:10px}.hero h1{font-size:39px}}

.auth-layout{grid-template-columns:1fr 1fr}:root[data-theme=dark] .btn-primary,:root[data-theme=dark] .segmented button.active,:root[data-theme=dark] .brand-mark{color:#120b1f}:root:not([data-theme=dark]) .status.overdue,:root:not([data-theme=dark]) .status.due-soon{color:#a33a00}@media(max-width:720px){.auth-layout{grid-template-columns:1fr}}
