@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');
:root{--navy:#132844;--ink:#1a2d48;--muted:#748094;--bg:#f3f6fa;--line:#e6ebf2;--green:#ace87c;--success:#23794b;--red:#bc4754;font-family:'DM Sans',system-ui,sans-serif;color:var(--ink);font-size:16px}*{box-sizing:border-box}body{margin:0;background:var(--bg)}button,input,select{font:inherit}button,a,input,select{ -webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.5;cursor:wait}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #5492e0;outline-offset:3px}button{border:0}h1,h2,p{margin:0}h1,h2,.brand{font-family:Manrope,system-ui,sans-serif}h1{font-size:clamp(1.9rem,3vw,2.6rem);letter-spacing:-1.4px;font-weight:800;line-height:1.2}h1>span{color:#60ae48}h2{font-size:1.06rem;font-weight:800}.muted{color:var(--muted);font-size:.9rem;line-height:1.6}.sidebar{width:234px;background:var(--navy);position:fixed;inset:0 auto 0 0;padding:35px 23px;color:#fff;display:flex;flex-direction:column}.brand{color:white;text-decoration:none;display:flex;align-items:center;gap:10px;font-size:2rem;letter-spacing:-1px;font-weight:800}.brand span{font-size:.75rem;align-self:flex-start;margin-top:10px;margin-left:-4px}.nav-label{color:#899aaf;font-size:.75rem;letter-spacing:1.6px;margin:60px 14px 16px}.nav{background:transparent;color:#a9b8cb;display:flex;gap:14px;width:100%;align-items:center;padding:16px 14px;border-radius:10px;font-size:.94rem;text-align:left;margin-bottom:8px}.nav span{font-size:1.4rem}.nav.active{background:#263d59;color:#d1f4b2}.nav:hover{background:#263d59}.sidebar-bottom{margin-top:auto;border-top:1px solid #31445e;padding-top:24px;display:flex;gap:12px;align-items:center;font-size:.9rem}.sidebar-bottom small{display:block;color:#8fa2b9;font-size:.78rem;margin-top:4px}.avatar{border-radius:50%;background:#314e6b;color:#daf5c7;width:37px;height:37px;display:grid;place-items:center}.sidebar-bottom .icon-button{color:white}main{margin-left:234px}header{height:84px;background:white;border-bottom:1px solid var(--line);padding:0 42px;display:flex;justify-content:space-between;align-items:center}.breadcrumb{font-size:.88rem;color:var(--muted)}.breadcrumb span{margin:0 13px;color:#c5cdd8}.breadcrumb strong{color:var(--ink);font-weight:500}.header-right{display:flex;gap:24px;align-items:center}.private-label{font-size:.82rem;color:var(--muted)}.workspace{max-width:1560px;margin:auto;padding:40px 42px 20px}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:30px}.page-heading .muted{margin-top:12px}.eyebrow{color:#74869e;letter-spacing:1.7px;font-size:.73rem;font-weight:700;margin-bottom:12px}.button{display:inline-flex;align-items:center;justify-content:center;gap:9px;padding:13px 20px;border-radius:9px;font-size:.9rem;font-weight:600;min-height:44px;white-space:nowrap}.primary{background:var(--navy);color:white;box-shadow:0 4px 8px #13284415}.primary:hover{background:#274b72}.primary span{font-size:1.4rem;font-weight:400}.subtle{background:white;border:1px solid var(--line);color:var(--ink)}.danger{background:#bc4754;color:white}.period-bar{display:flex;justify-content:space-between;align-items:center;margin-bottom:23px}.period-controls{display:flex;align-items:center;background:white;border:1px solid var(--line);padding:4px 7px;border-radius:10px;gap:6px}.icon-button{background:transparent;font-size:1.5rem;color:#677b94;border-radius:6px;min-width:38px;min-height:38px}.icon-button:hover{background:#e9eff650}.period-controls select,.period-controls input{border:0;background:white;padding:7px;color:var(--ink);font-weight:600}.period-controls input{width:80px}.summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin-bottom:28px}.metric{background:white;border:1px solid var(--line);border-radius:14px;padding:23px 23px 20px;min-width:0}.metric-label{display:flex;justify-content:space-between;align-items:center;font-size:.86rem;color:var(--muted)}.metric-label>span{display:grid;place-items:center;width:29px;height:29px;background:#f2f5f9;border-radius:8px;font-size:1.1rem}.metric h2{font-size:clamp(1.4rem,2.1vw,2rem);letter-spacing:-1px;margin-top:18px;white-space:nowrap}.metric-foot{font-size:.78rem;color:var(--muted);margin-top:13px}.main-metric{background:var(--navy);color:white;border-color:var(--navy);position:relative;overflow:hidden}.main-metric:after{content:'';position:absolute;right:-33px;bottom:-77px;width:160px;height:160px;border:25px solid #ffffff04;border-radius:50%;pointer-events:none}.main-metric .metric-label,.main-metric .metric-foot{color:#a8bad0}.main-metric .metric-label>span{background:#2a435f;color:var(--green)}.green{color:var(--success)}.red{color:var(--red)}.content-grid{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:25px}.panel{background:white;border:1px solid var(--line);border-radius:15px}.panel-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:24px 24px 18px}.panel-heading .muted{margin-top:6px;font-size:.82rem}.count{background:#f1f5f9;color:#64778f;border-radius:8px;font-size:.8rem;min-width:29px;padding:6px;text-align:center}.filters{display:flex;gap:7px;padding:0 24px 20px;flex-wrap:wrap;border-bottom:1px solid var(--line)}.chip{font-size:.82rem;background:#f5f7fa;color:#6a7b92;padding:9px 14px;border-radius:7px;min-height:38px}.chip.active{background:#e7eef6;color:var(--navy);font-weight:700}.entry{display:flex;align-items:center;gap:14px;padding:18px 24px;border-bottom:1px solid #edf1f6}.entry:last-child{border:0}.entry-icon{height:44px;width:44px;flex-shrink:0;border-radius:12px;background:#f0f4fa;display:grid;place-items:center;color:#547092;font-size:1.3rem}.entry-content{flex:1;min-width:0}.entry-content strong{font-size:.91rem;display:block;overflow-wrap:anywhere}.entry-content small{font-size:.78rem;color:var(--muted);display:block;margin-top:6px}.entry-right{text-align:right}.entry-right strong{font-size:.93rem;display:block;white-space:nowrap}.status{font-size:.75rem;display:inline-flex;align-items:center;border-radius:5px;padding:4px 7px;margin-top:7px;white-space:nowrap}.status.pending{background:#f0f4f8;color:#6c7d93}.status.paid{background:#e9f6ee;color:#267c50}.status.overdue{background:#fceef0;color:var(--red)}.pay-button{width:32px;height:32px;border:1px solid #d6e0eb;background:white;border-radius:50%;color:#8ba0b7;font-size:.95rem;flex-shrink:0}.pay-button.paid{background:#e3f4d8;border-color:#cbe9b9;color:#3f7e30}.delete-button{font-size:1.05rem;color:#a4b1c1;background:none;min-width:28px;min-height:32px}.delete-button:hover{color:var(--red)}.right-column{display:flex;flex-direction:column;gap:22px}.progress-panel .panel-heading .muted{font-size:.65rem;letter-spacing:1px;margin:0}.ring{--progress:0%;width:164px;height:164px;margin:14px auto 21px;border-radius:50%;background:conic-gradient(#91d96a var(--progress),#eef2f7 0);padding:12px;transform:rotate(-90deg)}.ring>div{background:white;width:100%;height:100%;border-radius:50%;display:flex;flex-direction:column;justify-content:center;align-items:center;transform:rotate(90deg)}.ring strong{font-family:Manrope,sans-serif;font-size:2.1rem;letter-spacing:-1px}.ring span{font-size:.76rem;color:var(--muted);margin-top:5px}.progress-panel>p{text-align:center;font-size:.85rem;font-weight:500;padding:0 20px;line-height:1.5}.legend{display:flex;gap:23px;justify-content:center;padding:20px 0 23px;font-size:.75rem;color:var(--muted)}.legend i{display:inline-block;height:8px;width:8px;background:#e1e8f1;border-radius:50%;margin-right:6px}.legend i.green-dot{background:#91d96a}.text-button{background:none;color:#647d9c;font-size:.8rem;padding:6px}.card-summary .panel-heading{padding-bottom:13px}.card-total{display:flex;align-items:center;gap:10px;margin:0 24px;padding:15px 0;border-top:1px solid var(--line);font-size:.8rem}.bank-mark{width:32px;height:32px;display:grid;place-items:center;border-radius:8px;color:white;font-weight:700;font-size:.72rem;flex-shrink:0}.card-total strong{margin-left:auto;white-space:nowrap}.card-total small{display:block;color:var(--muted);font-size:.72rem;margin-top:4px}.card-total:last-child{margin-bottom:9px}.empty{text-align:center;padding:65px 22px}.empty .empty-icon{width:64px;height:64px;border-radius:20px;background:#eff4f9;display:grid;place-items:center;font-size:2rem;color:#6683a4;margin:0 auto 20px}.empty h3{font-family:Manrope,sans-serif;font-size:1rem}.empty p{color:var(--muted);font-size:.88rem;line-height:1.65;margin:10px auto 22px;max-width:330px}footer{display:flex;justify-content:space-between;gap:20px;font-size:.75rem;color:#8b98ab;padding:27px 0 12px}.environment{padding:11px 15px;background:#e7eef7;border:1px solid #d7e2ef;border-radius:9px;color:#506885;font-size:.8rem;margin-bottom:24px;display:flex;align-items:center;gap:10px;flex-wrap:wrap}.environment[hidden]{display:none}.environment button{background:transparent;color:#23446b;font-weight:600;text-decoration:underline;font-size:.8rem}.notice{background:#e8eff8;border:1px solid #dbe6f4;color:#4f6785;border-radius:10px;padding:17px 20px;line-height:1.6;font-size:.9rem;margin-bottom:25px}.card-settings{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}.bank-setting{background:white;border:1px solid var(--line);padding:25px;border-radius:15px}.bank-face{height:140px;border-radius:12px;padding:23px;color:white;display:flex;flex-direction:column;justify-content:space-between;margin-bottom:23px}.bank-face strong{font-family:Manrope,sans-serif;font-size:1.3rem}.bank-face small{font-size:.83rem;color:#ffffffe0}.bank-face>span{font-size:1.5rem}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}label{display:flex;flex-direction:column;gap:8px;font-size:.86rem;font-weight:500}input,select{border:1px solid #dce4ee;background:white;border-radius:8px;padding:12px 13px;color:var(--ink);width:100%;min-height:44px}input::placeholder{color:#9ca9ba}.form-footer{display:flex;align-items:center;justify-content:space-between;gap:25px;padding:25px 0}.form-footer p{max-width:500px}dialog{border:1px solid var(--line);border-radius:18px;width:min(590px,calc(100vw - 28px));max-height:92vh;overflow:auto;padding:28px;box-shadow:0 24px 100px #13284440;color:var(--ink)}dialog::backdrop{background:#11254077;backdrop-filter:blur(4px)}.dialog-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px}.dialog-heading h2{font-size:1.4rem;letter-spacing:-.5px}.type-picker{display:flex;gap:8px;margin-bottom:23px}.type-picker .chip{flex:1}#entry-form>.form-grid{margin-top:18px}.dialog-footer{display:flex;justify-content:flex-end;gap:12px;margin-top:24px;border-top:1px solid var(--line);padding-top:20px}.checkbox-label{flex-direction:row;align-items:center;margin-top:20px;line-height:1.5}.checkbox-label input{width:18px;min-height:18px;accent-color:var(--navy)}[hidden]{display:none!important}.calculation-note{font-size:.8rem;line-height:1.6;color:#627991;background:#f1f5fa;padding:13px;border-radius:8px;margin-top:20px}.form-error{font-size:.85rem;color:var(--red);margin-top:14px;line-height:1.5}.form-error:empty{display:none}#payment-description,#confirm-copy{margin-bottom:22px;line-height:1.6}#login-dialog{max-width:400px}#login-dialog h2{font-size:1.5rem;margin:18px 0 10px}#login-dialog label{margin-top:22px}#login-dialog .button{width:100%;margin-top:20px}#toast{position:fixed;bottom:28px;left:50%;transform:translateX(-50%);border-radius:10px;background:var(--navy);color:white;padding:15px 22px;box-shadow:0 10px 40px #13284430;z-index:10;font-size:.9rem;max-width:90vw}.accounts{align-self:start}
@media(min-width:1550px){.workspace{padding-top:48px}.metric{padding:27px}.entry{padding-top:21px;padding-bottom:21px}}@media(max-width:1180px){.sidebar{width:190px;padding:30px 15px}main{margin-left:190px}.workspace{padding:32px 25px}header{padding:0 25px}.summary{gap:12px}.metric{padding:18px 15px}.content-grid{grid-template-columns:minmax(0,1fr) 260px;gap:18px}.entry{padding:18px 16px;gap:10px}.entry-icon{width:36px;height:36px}.metric h2{font-size:1.5rem}.panel-heading{padding:20px}.filters{padding:0 20px 18px}}@media(max-width:950px){.content-grid{grid-template-columns:1fr}.right-column{display:grid;grid-template-columns:1fr 1fr}.summary{grid-template-columns:repeat(2,minmax(0,1fr))}.page-heading{align-items:flex-start}.page-heading .button{padding:12px 15px}.private-label{display:none}}@media(max-width:680px){.sidebar{position:static;width:100%;padding:15px 20px;flex-direction:row;align-items:center;justify-content:space-between;gap:15px}.brand{font-size:1.6rem;gap:6px}.brand img{width:32px;height:32px}.brand span,.nav-label,.sidebar-bottom{display:none}.sidebar nav{display:flex;gap:5px}.nav{margin:0;width:auto;padding:10px;font-size:.8rem}.nav span{display:none}main{margin:0}header{height:62px;padding:0 20px}.header-right{gap:0}header .button{padding:8px 10px;font-size:.75rem}.breadcrumb{font-size:.75rem}.breadcrumb span{margin:0 7px}.workspace{padding:25px 18px}.page-heading{flex-direction:column;gap:18px;margin-bottom:24px}h1{font-size:2rem;letter-spacing:-1px}.page-heading .muted{font-size:.85rem}.page-heading .button{align-self:stretch}.period-caption{display:none}.period-bar{margin-bottom:18px}.summary{gap:10px;margin-bottom:20px}.metric{padding:17px 14px}.metric-label{font-size:.78rem}.metric h2{font-size:1.4rem;letter-spacing:-.7px}.metric-foot{font-size:.7rem;line-height:1.5}.metric-label>span{width:24px;height:24px}.right-column{grid-template-columns:1fr}.entry{gap:9px;padding:16px 13px}.entry-content strong{font-size:.84rem}.entry-content small{font-size:.73rem;line-height:1.5}.entry-icon{display:none}.entry-right strong{font-size:.85rem}.status{font-size:.68rem}.delete-button{min-width:24px}.pay-button{width:29px;height:29px}.card-settings{grid-template-columns:1fr}.form-footer{flex-direction:column;align-items:stretch}.form-grid{gap:13px}.form-grid label{font-size:.8rem}dialog{padding:22px 18px}.dialog-heading h2{font-size:1.25rem}footer{font-size:.7rem;flex-direction:column;gap:8px}.period-controls{width:100%;justify-content:space-between}.progress-panel .ring{width:150px;height:150px}}

.edit-button{background:#edf3fa;color:#4f6c91;border-radius:7px;min-width:32px;min-height:36px;font-size:1.1rem;flex-shrink:0}.edit-button:hover{background:#dbe7f5}#edit-scope{margin:0 0 20px}
@media(max-width:680px){.entry{flex-wrap:wrap}.entry-content{min-width:110px}.edit-button{min-width:30px}}
