:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#22332d;background:#f5f7f3;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.6;cursor:wait}button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #a8cb95;outline-offset:2px}::-webkit-scrollbar{width:7px;height:7px}::-webkit-scrollbar-track{background:transparent}::-webkit-scrollbar-thumb{background:#cbd5cc;border:2px solid transparent;background-clip:padding-box;border-radius:20px}.layout{min-height:100vh;display:grid;grid-template-columns:250px minmax(0,1fr)}.sidebar{background:#10231e;color:#ecf4eb;display:flex;flex-direction:column;padding:30px 16px 18px;position:sticky;top:0;height:100vh}.brand{display:flex;align-items:center;gap:11px;padding:0 11px}.brand-mark{width:40px;height:40px;border-radius:13px;background:#c8edaa;color:#17392b;font-family:Georgia,serif;font-weight:bold;font-size:31px;line-height:35px;text-align:center}.brand-mark span{color:#5d9062}.brand strong{font-size:21px;letter-spacing:-1px;display:block;line-height:22px}.brand small{color:#8da399;font-size:10px;letter-spacing:.04em}.nav-caption,.eyebrow{font-weight:750;font-size:10px;letter-spacing:.14em;color:#809187}.nav-caption{margin:55px 12px 15px;color:#728b7f}.sidebar nav{display:grid;gap:5px}.nav-item{border:0;background:transparent;color:#aebfb5;display:flex;align-items:center;gap:13px;text-align:left;border-radius:9px;padding:12px;font-size:13px;font-weight:550;position:relative}.nav-item:hover{background:#1a342a;color:white}.nav-item.active{color:#def2d2;background:#294939}.nav-item i{position:absolute;right:11px;background:#bfe6a8;width:5px;height:5px;border-radius:50%}.nav-icon{width:21px;text-align:center;font-size:19px;font-weight:400}.sidebar-bottom{margin-top:auto}.sidebar-note{border:1px solid #345044;border-radius:10px;padding:14px 11px;display:flex;gap:10px;font-size:11px}.sidebar-note>span{color:#c1e8a6;font-size:18px}.sidebar-note b,.sidebar-note small{display:block}.sidebar-note small{color:#8ba095;margin-top:5px;font-size:10px}.logout{background:none;color:#aebfb5;border:0;width:100%;text-align:left;padding:20px 10px 2px;font-size:12px}.logout span{float:right}.topbar{height:76px;border-bottom:1px solid #e6ebe5;display:flex;align-items:center;justify-content:space-between;padding:0 5.1%;color:#8d9a92;font-size:12px;background:#fbfcfa}.breadcrumbs span{margin:0 12px;color:#c2ccc3}.breadcrumbs strong{color:#34483f;font-weight:650}.top-right{display:flex;align-items:center;gap:9px}.secure-dot{width:6px;height:6px;border-radius:50%;background:#8bc583}.avatar{height:33px;width:33px;border-radius:50%;background:#e4eee1;color:#345c40;display:grid;place-items:center;margin-left:16px;font-weight:700}.content{max-width:1530px;padding:47px 5.1% 65px;margin:auto}.eyebrow span{color:#86b97b;margin-left:3px}.page-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin:12px 0 32px}.page-heading h1,.login-card h1{font-family:Georgia,"Times New Roman",serif;font-size:clamp(32px,3.2vw,47px);letter-spacing:-1.9px;line-height:1.12;font-weight:400;margin:0;color:#20372d}.page-heading h1 em,.login-card h1 em{font-weight:400;color:#749c78}.page-heading p,.panel-head p,.categories>p,.login-card>p{color:#90a097;font-size:13px;line-height:1.55;margin:11px 0 0}.button{border:0;border-radius:9px;padding:13px 17px;font-size:12px;font-weight:700;white-space:nowrap}.primary{background:#244b37;color:#fff;box-shadow:0 5px 12px #1a47221c}.primary:hover{background:#326346}.primary span{font-size:17px;vertical-align:-1px}.secondary{background:#edf2eb;color:#315343}.secondary:hover{background:#e1eadf}.danger{color:#a34e42;background:#f9eeeb}.overview{display:grid;grid-template-columns:1.35fr 1fr 1fr;gap:15px}.balance-card{background:#2d5a40;color:#f3faef;border-radius:13px;padding:23px 25px;position:relative;overflow:hidden;min-height:176px}.balance-card:after{content:'';position:absolute;width:210px;height:210px;right:-62px;top:-95px;border:1px solid #ffffff17;border-radius:50%;box-shadow:0 0 0 30px #ffffff08,0 0 0 60px #ffffff08;pointer-events:none}.card-head,.metric-top{display:flex;justify-content:space-between;align-items:center;font-size:10px;letter-spacing:.1em;font-weight:700;color:#b7d2bb}.card-head span+span{font-size:17px}.balance{font-family:Georgia,serif;font-size:34px;letter-spacing:-.8px;margin:15px 0 22px}.balance-bottom{display:flex;align-items:center;gap:8px;font-size:10px;color:#d2e6d1}.balance-icon{display:grid;place-items:center;background:#ffffff1f;border-radius:50%;width:24px;height:24px;font-size:16px}.month{margin-left:auto;text-transform:capitalize}.metric{background:#fff;border:1px solid #e7ede5;border-radius:13px;padding:22px 22px;display:flex;flex-direction:column;min-height:176px}.metric-top{color:#9aa89e}.metric-symbol{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;font-size:17px;letter-spacing:0}.orange{background:#faeee4;color:#d48c60}.violet{background:#efebf9;color:#9985cb}.metric>strong{font-family:Georgia,serif;font-weight:400;font-size:26px;letter-spacing:-.5px;margin-top:auto}.metric>small{font-size:11px;color:#9cac9f;margin-top:7px}.main-grid{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(260px,1fr);gap:16px;margin-top:20px}.panel{background:#fff;border:1px solid #e7ede5;border-radius:13px;min-width:0}.panel-head{padding:25px 25px 18px;display:flex;justify-content:space-between;align-items:center;gap:14px}.panel h2,.modal h2{font-family:Georgia,serif;font-weight:400;color:#2a4135;font-size:22px;letter-spacing:-.5px;margin:8px 0 0}.panel-head p,.categories>p{margin-top:5px;font-size:11px}.text-button{border:0;background:none;color:#527e5a;font-size:11px;font-weight:700;white-space:nowrap}.text-button span{margin-left:5px}.rows{padding:0 25px 10px}.item-row{display:flex;gap:12px;align-items:center;padding:17px 0;border-top:1px solid #eff2ee}.item-icon,.category-icon{height:38px;width:38px;flex:none;display:grid;place-items:center;border-radius:11px;font-size:19px}.monthly{background:#eaf3e7;color:#648e67}.annual{background:#fbefe3;color:#d2975d}.loan{background:#efecf8;color:#9180b3}.subscription{background:#e6f1f0;color:#639a91}.item-main{min-width:0;flex:1}.item-main strong,.item-main span,.category strong,.category small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.item-main strong,.category strong{font-size:12px;color:#33473d}.item-main span,.category small{font-size:10px;color:#9aa99e;margin-top:5px}.item-amount{text-align:right}.item-amount strong{display:block;color:#34483c;font-size:12px;white-space:nowrap}.badge{display:inline-block;border-radius:5px;padding:4px 7px;margin-top:5px;font-size:9px;font-weight:700;white-space:nowrap}.waiting{background:#f5f3e5;color:#9b8c4a}.late{background:#faede9;color:#c97c68}.paid{background:#eaf5e9;color:#689b6a}.more{border:0;background:#f5f8f4;color:#829c86;width:30px;height:30px;border-radius:9px}.empty{text-align:center;padding:45px 15px 52px;color:#96a69b;border-top:1px solid #eff2ee}.empty-icon{display:grid;place-items:center;margin:0 auto 14px;width:46px;height:46px;background:#eef5ea;color:#749c78;border-radius:14px;font-size:22px}.empty strong{font-size:13px;color:#486151}.empty p{font-size:11px;max-width:280px;margin:9px auto 18px;line-height:1.6}.side-stack{display:grid;gap:15px;align-content:start}.categories{padding:25px}.categories>p{margin-bottom:13px}.category{display:flex;width:100%;align-items:center;gap:11px;background:none;border:0;border-top:1px solid #f0f3ef;text-align:left;padding:12px 0}.category>span:nth-child(2){flex:1;min-width:0}.category-icon{height:35px;width:35px;font-size:17px}.category b{font-size:13px;color:#a7b5a9}.tip{background:#e8f2e3;border-radius:12px;padding:17px;display:flex;gap:12px;color:#4e7153}.tip>span{font-size:20px}.tip strong{font-size:11px}.tip p{font-size:10px;line-height:1.5;color:#78947a;margin:5px 0 0}.module-heading{margin-bottom:30px}.module-panel{max-width:900px}.mobile-brand,.mobile-nav{display:none}.overlay{position:fixed;inset:0;background:#0b1f17aa;z-index:10;display:flex;align-items:center;justify-content:center;padding:20px}.modal-open{overflow:hidden}.modal{width:min(540px,100%);max-height:calc(100vh - 40px);overflow:auto;background:#fff;border-radius:17px;padding:26px;box-shadow:0 25px 80px #07160e3d}.modal-top{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:24px}.modal-top p{font-size:12px;color:#91a197;line-height:1.5}.close{width:34px;height:34px;border:0;border-radius:10px;background:#f2f6f1;color:#5b7161;font-size:24px;line-height:1}.modal form{display:grid;gap:17px}label{display:grid;gap:8px;font-weight:700;color:#4d6255;font-size:11px}label small{font-size:10px;color:#9bab9e;font-weight:400}input,textarea,select{width:100%;border:1px solid #dce5dc;background:#fafcf9;border-radius:9px;padding:12px;color:#253c2e;font-size:13px}textarea{resize:vertical}input::placeholder,textarea::placeholder{color:#afbbb1}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.input-suffix{position:relative}.input-suffix input{padding-right:37px}.input-suffix span{position:absolute;right:13px;top:12px;color:#95a698;font-size:12px}.modal-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:6px}.detail-summary{padding:19px;border-radius:11px;background:#f3f8f0;display:flex;justify-content:space-between;align-items:center}.detail-summary div span,.detail-summary div strong{display:block}.detail-summary div span{font-size:9px;letter-spacing:.12em;color:#8aa08e;font-weight:700}.detail-summary div strong{font-family:Georgia,serif;font-size:27px;font-weight:400;margin-top:6px}.detail-meta{display:flex;justify-content:space-between;padding:18px 0;font-size:12px;color:#91a096;border-bottom:1px solid #edf1ec}.detail-meta b{color:#4b6152}.detail-note{white-space:pre-wrap;padding:14px 0;color:#75897a;font-size:12px}.detail-actions{display:flex;gap:8px;flex-wrap:wrap;margin:19px 0}.modal h3{font-size:12px;margin:25px 0 10px;color:#41594a}.history-row{display:flex;justify-content:space-between;border-top:1px solid #edf1ec;padding:12px 0;font-size:12px}.history-row small{display:block;color:#9eada2;margin-top:4px}.history-empty,.form-hint{font-size:11px;color:#96a59a}.choose-list .category{padding:15px 0}.login-screen{min-height:100vh;display:grid;place-items:center;background:#edf3e9;padding:20px}.login-card{width:min(460px,100%);background:white;padding:40px;border-radius:18px;box-shadow:0 20px 70px #1e4f2710}.login-card .brand{padding:0;margin-bottom:52px}.login-card .brand small{color:#90a496}.login-card h1{font-size:40px;margin-top:13px}.login-card>p{margin-bottom:25px}.login-card form{display:grid;gap:18px}.login-card form button{width:100%;padding:15px}.loading{min-height:100vh;display:grid;place-content:center;text-align:center;font-family:Georgia,serif;font-size:30px;color:#315b40;gap:10px}.loading span{font:12px system-ui;color:#8ca18e}#toast{position:fixed;bottom:22px;right:22px;z-index:20;background:#203f30;color:white;padding:13px 17px;border-radius:10px;font-size:12px;opacity:0;transform:translateY(8px);transition:.2s;pointer-events:none;max-width:90vw}#toast.show{opacity:1;transform:none}
@media(max-width:1000px){.overview{grid-template-columns:1fr 1fr}.balance-card{grid-column:span 2}.main-grid{grid-template-columns:1fr}.side-stack{grid-template-columns:1fr 1fr}.tip{align-self:start}}
@media(max-width:700px){.layout{display:block}.sidebar{display:none}.topbar{height:60px;padding:0 18px}.breadcrumbs{display:none}.mobile-brand{display:block;font-family:Georgia,serif;font-size:21px;font-weight:bold;color:#284b35;letter-spacing:-1px}.mobile-brand span{color:#87b67f}.top-right{font-size:10px}.avatar{margin-left:5px}.mobile-nav{display:flex;gap:6px;overflow:auto;padding:12px 16px;background:#fff;border-bottom:1px solid #e6ebe5;scrollbar-width:none}.mobile-nav::-webkit-scrollbar{display:none}.mobile-nav button{border:0;background:#f4f7f2;color:#789080;border-radius:8px;white-space:nowrap;padding:9px 11px;font-size:11px}.mobile-nav button.selected{background:#dfeedd;color:#2f6340}.content{padding:30px 18px 45px}.page-heading{align-items:flex-start;flex-direction:column;margin-bottom:25px}.page-heading h1{font-size:37px}.page-heading .button{width:100%;margin-top:4px}.overview{gap:10px}.balance-card{min-height:155px}.metric{min-height:145px;padding:16px 14px}.metric-top{font-size:9px;gap:5px}.metric>strong{font-size:22px}.metric-symbol{width:29px;height:29px}.main-grid{margin-top:12px;gap:12px}.side-stack{grid-template-columns:1fr}.panel-head{padding:21px 18px 16px}.rows{padding:0 18px 8px}.categories{padding:21px 18px}.modal{padding:21px}.form-grid{grid-template-columns:1fr}.balance{font-size:30px}.text-button{font-size:10px}.item-row{gap:8px}.item-icon{width:34px;height:34px}.item-amount strong{font-size:11px}}

.segmented{display:flex;gap:7px}.segmented label{display:block;flex:1;cursor:pointer}.segmented input{position:absolute;opacity:0;width:1px;height:1px}.segmented label span{display:block;padding:12px;text-align:center;border:1px solid #dce5dc;background:#fafcf9;border-radius:9px;color:#728779;font-size:12px}.segmented input:checked+span{border-color:#77a781;background:#edf6e9;color:#315c3b}.segmented input:focus-visible+span{outline:3px solid #a8cb95;outline-offset:2px}

.sub-summary{max-width:900px;display:flex;gap:45px;align-items:center;padding:18px 22px;margin-bottom:15px;background:#e8f2e3;border-radius:12px}.sub-summary div span,.sub-summary div strong{display:block}.sub-summary div span{font-size:9px;letter-spacing:.1em;color:#79917d;font-weight:700}.sub-summary div strong{font:23px Georgia,serif;color:#31533a;margin-top:6px}.sub-summary small{font-size:10px;color:#79917d;margin-left:auto}@media(max-width:600px){.sub-summary{gap:25px;flex-wrap:wrap}.sub-summary small{width:100%;margin:0}.sub-summary div strong{font-size:20px}}

.settings-panel{max-width:660px;padding:28px}.settings-head{display:flex;align-items:center;gap:15px;padding-bottom:23px;border-bottom:1px solid #edf1ec}.settings-head h2{margin:6px 0 0}.settings-head p{font-size:12px;color:#90a097;margin:5px 0 0}.settings-icon{width:46px;height:46px;flex:none;display:grid;place-items:center;background:#edf5e9;color:#668f69;border-radius:13px;font-size:25px}.settings-form{display:grid;gap:18px;padding-top:25px;max-width:460px}.settings-hint{margin:0;color:#829589;line-height:1.6;font-size:11px}.settings-actions{padding-top:3px}.settings-actions .button{min-width:150px}@media(max-width:700px){.settings-panel{padding:21px}.settings-actions .button{width:100%}}
.date-field{min-width:0;position:relative}.field-label{display:block;color:#4d6255;font-size:11px;font-weight:700;margin:0 0 8px}.date-button{width:100%;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:11px 12px;border:1px solid #dce5dc;border-radius:9px;background:#fafcf9;color:#253c2e;font-size:13px;text-align:left}.date-button:hover{border-color:#a3c5a2}.calendar-symbol{font-size:19px;line-height:1;color:#739779}.calendar{position:relative;z-index:2;margin-top:7px;padding:12px;background:#fff;border:1px solid #dfeae0;border-radius:11px;box-shadow:0 8px 22px #22433312}.calendar[hidden]{display:none}.calendar-header{display:grid;grid-template-columns:24px 24px minmax(0,1fr) 24px 24px;align-items:center;gap:2px}.calendar-header strong{text-align:center;text-transform:capitalize;font-size:11px;color:#385642;white-space:nowrap}.calendar-arrow{display:grid;place-items:center;border:0;border-radius:7px;background:#f1f6ef;color:#587c5e;width:24px;height:28px;font-size:17px}.calendar-arrow:hover{background:#e2efdf}.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:2px;margin-top:11px;text-align:center}.calendar-weekday{font-size:9px;font-weight:700;color:#94a799;padding-bottom:5px}.calendar-day{border:0;border-radius:7px;background:transparent;color:#476052;font-size:11px;height:29px;min-width:0;padding:0}.calendar-day:hover{background:#edf5e9}.calendar-day.is-today{box-shadow:inset 0 0 0 1px #a8c9a6}.calendar-day.selected{background:#315e3e;color:#fff;box-shadow:none;font-weight:700}.calendar-today{width:100%;border:0;border-top:1px solid #edf1ec;background:transparent;padding:10px 0 1px;margin-top:7px;color:#557c5c;font-size:11px;font-weight:700}.delete-copy{font-size:13px;color:#718478;line-height:1.7;margin:0 0 22px}.delete-copy strong{color:#334d3d;overflow-wrap:anywhere}

/* Kalendarz jest nakładką i nie rozciąga wiersza formularza. */
.form-grid{align-items:start}
.calendar{position:fixed;z-index:15;margin:0;width:min(304px,calc(100vw - 24px));max-height:calc(100vh - 24px);overflow-y:auto;padding:16px;border-color:#dbe8dc;border-radius:14px;box-shadow:0 16px 45px #152d2030}
.calendar-header{grid-template-columns:30px 30px minmax(0,1fr) 30px 30px;gap:3px}
.calendar-header strong{font-size:12px}.calendar-arrow{width:30px;height:30px}.calendar-grid{gap:3px;margin-top:14px}.calendar-weekday{font-size:10px;padding-bottom:7px}.calendar-day{height:33px;font-size:12px}.calendar-today{margin-top:10px;padding-top:12px;font-size:12px}
