:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;color:#112033;background:#f5f7fb;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}*{box-sizing:border-box}body{color:#112033;background:linear-gradient(135deg,#f8fbff 0%,#eef4ff 45%,#f8fafc 100%);min-height:100vh;margin:0}a{color:inherit}button,input,select{font:inherit}button{cursor:pointer}.auth-shell{grid-template-columns:1.1fr .9fr;align-items:center;gap:1.5rem;min-height:100vh;padding:2rem;display:grid}.auth-hero{color:#fff;background:linear-gradient(135deg,#4f46e5f2 0%,#06b6d4e6 100%);border-radius:32px;justify-content:flex-start;align-items:flex-end;min-height:72vh;padding:3rem;box-shadow:0 24px 60px #4f46e540}.auth-card{background:#fffffff5;border:1px solid #0f172a14;border-radius:24px;width:min(100%,480px);margin:0 auto;box-shadow:0 24px 80px #0f172a1f}.auth-page{flex-direction:column;gap:1rem;max-width:420px;margin:4rem auto;padding:2rem;display:flex}.auth-page form,.card-grid,.panel-stack{flex-direction:column;gap:.75rem;display:flex}.app-layout{min-height:100vh}.app-layout header{-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);background:#ffffffe6;border-bottom:1px solid #0f172a14;justify-content:space-between;align-items:center;gap:1rem;padding:1rem 1.5rem;display:flex}.app-layout__brand{align-items:center;gap:.8rem;display:flex}.app-layout__brand-logo{background:linear-gradient(135deg,#eef2ff,#e0f2fe);border-radius:14px;width:44px;height:44px;padding:4px;box-shadow:0 8px 20px #4338ca1f}.app-layout__brand p{color:#64748b;margin:.15rem 0 0;font-size:.95rem}.app-layout__user{align-items:center;gap:.75rem;display:flex}.app-layout__user button{color:#4338ca;background:#eef2ff;border:1px solid #c7d2fe;border-radius:999px;padding:.5rem .8rem}.app-layout nav{flex-wrap:wrap;gap:1rem;display:flex}.app-layout nav a{color:#334155;border-radius:999px;padding:.5rem .75rem;text-decoration:none;transition:background .2s}.app-layout nav a:hover{background:#eef2ff}.app-layout main{max-width:1280px;margin:0 auto;padding:1.5rem}.panel,.stat-card,.list-card,.form-card{background:#fffffff0;border:1px solid #0f172a14;border-radius:20px;box-shadow:0 12px 36px #0f172a14}.stat-grid{grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:1rem;display:grid}.stat-card{padding:1rem 1.1rem}.hero-grid{grid-template-columns:1.4fr .9fr;gap:1rem;margin-bottom:1rem;display:grid}.form-card{padding:1rem}.transactions-header,.modal-heading{justify-content:space-between;align-items:center;gap:1rem;display:flex}.primary-action{color:#fff;background:#24624f;border:0;border-radius:10px;flex:none;padding:.75rem 1rem;font-weight:700}.secondary-action{color:#334155;background:#f8fafc;border:1px solid #cbd5e1;border-radius:10px;padding:.7rem .9rem;font-weight:700}.secondary-action:hover{background:#eef2f1}.account-balance-summary{flex-wrap:wrap;gap:.65rem;margin:.5rem 0 .85rem;display:flex}.account-balance-summary p{background:#f7faf8;border:1px solid #dbe7e1;border-radius:10px;gap:.15rem;min-width:120px;margin:0;padding:.7rem .8rem;display:grid}.account-balance-summary span{color:#64748b;letter-spacing:.04em;font-size:.75rem}.forecast-card{gap:.2rem;display:grid}.forecast-value{color:#2f6f5b;font-size:1.18rem;display:block}.forecast-card small{color:#69727e;font-size:.74rem}.empty-month-state{color:#69727e;gap:.3rem;padding:1.25rem;display:grid}.empty-month-state strong{color:#303844}.forecast-row{color:#9aa3ad;background:#fbfcfc}.forecast-row:hover{background:#f5f8f8!important}.forecast-row-clickable{cursor:pointer}.forecast-row-clickable:focus-visible{outline:2px solid var(--accent);outline-offset:-2px}.forecast-row.drop-target,.transaction-row.drop-target{background:#fff0f6;box-shadow:inset 4px 0 #d61e6b}.forecast-label{text-transform:uppercase;font-weight:800;display:block;color:#2f6f5b!important}.forecast-amount{color:#2f6f5b;font-weight:700}.forecast-balance{color:#2f6f5b;font-size:inherit;font-weight:inherit;line-height:inherit}.forecast-mark{color:#2f6f5b;border:1px solid #c9ded5;border-radius:999px;padding:.2rem .5rem;font-size:.72rem;font-weight:700;display:inline-block}.transaction-currency{color:#64748b;background:#f3f8f5;border:1px solid #d6e4dc;border-radius:10px;grid-column:1/-1;justify-content:space-between;align-items:center;min-height:3rem;padding:.65rem .85rem;display:flex}.transaction-currency strong{color:#2f6f5b;font-size:1rem}.modal-backdrop{z-index:20;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);background:#0f172a9e;place-items:center;padding:1rem;animation:.16s ease-out modal-fade-in;display:grid;position:fixed;inset:0}.transaction-modal{border:0;border-top:4px solid #2f6f5b;border-radius:18px;width:min(100%,700px);max-height:min(90vh,760px);padding:1.5rem;animation:.18s ease-out modal-slide-up;overflow-y:auto;box-shadow:0 28px 80px #0f172a47}.category-modal{border:0;border-top:4px solid #2f6f5b;border-radius:18px;width:min(100%,620px);max-height:min(90vh,760px);padding:1.5rem;animation:.18s ease-out modal-slide-up;overflow-y:auto;box-shadow:0 28px 80px #0f172a47}.transaction-import-modal{border:0;border-top:4px solid #2f6f5b;border-radius:18px;width:min(96vw,1280px);max-height:92vh;padding:1.5rem;animation:.18s ease-out modal-slide-up;overflow-y:auto;box-shadow:0 28px 80px #0f172a47}.import-form{gap:.85rem;display:grid}.import-form select,.import-form input{background:#fbfcfd;border:1px solid #d6e0e8;border-radius:9px;min-height:3rem;padding:.7rem .8rem}.import-preview{gap:.9rem;display:grid}.import-preview-filters{grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem;display:grid}.import-preview-filters label{color:#475569;gap:.35rem;font-size:.85rem;font-weight:700;display:grid}.import-preview-filters input{background:#fbfcfd;border:1px solid #d6e0e8;border-radius:8px;min-height:2.5rem;padding:.55rem .7rem}.import-preview-summary,.import-preview-actions{justify-content:space-between;align-items:center;gap:.75rem;display:flex}.import-preview-summary span{color:#64748b;font-size:.85rem;display:block}.import-preview-selection-actions{gap:.45rem;display:flex}.import-preview-selection-actions button{color:#2f6f5b;background:#f8fbf9;border:1px solid #d8e2dd;border-radius:7px;width:auto;padding:.45rem .65rem;font-size:.78rem;font-weight:700}.import-preview-selection-actions button:disabled{cursor:not-allowed;opacity:.55}.import-preview-list{border:1px solid #e1e8ed;border-radius:10px;max-height:56vh;display:grid;overflow-y:auto}.import-preview-row{cursor:pointer;border-bottom:1px solid #edf1f3;grid-template-columns:auto 82px minmax(220px,1.5fr) minmax(150px,.8fr) minmax(170px,.9fr) auto auto;align-items:center;gap:.75rem;padding:.7rem .8rem;display:grid}.import-preview-row:last-child{border-bottom:0}.import-preview-row:hover{background:#f7faf8}.import-preview-row.is-duplicate{background:#fff9f2}.import-preview-row input:not([type=checkbox]),.import-preview-row select{color:#303844;background:#fff;border:1px solid #d8e2df;border-radius:7px;min-width:0;min-height:2.4rem;padding:.45rem .55rem}.import-preview-row em{color:#a13b32;font-size:.76rem;font-style:normal;font-weight:700}@media (width<=700px){.import-preview-row{grid-template-columns:auto 72px minmax(0,1fr) auto}.import-preview-row input:not([type=checkbox]),.import-preview-row select,.import-preview-row em{grid-column:3/-1}.import-preview-actions{flex-direction:column;align-items:stretch}.import-preview-actions button{width:100%}}.category-editor{background:#f7faf8;border:1px solid #e0e9e5;border-radius:12px;grid-template-columns:minmax(0,1fr) 150px auto auto;gap:.55rem;padding:.9rem;display:grid}.category-editor input,.category-editor select,.category-editor button{color:#1e293b;background:#fff;border:1px solid #d2ded8;border-radius:8px;min-width:0;min-height:2.75rem;padding:.55rem .7rem}.category-editor button{font-weight:700}.category-save{color:#fff!important;background:#2f6f5b!important;border-color:#2f6f5b!important}.category-cancel{color:#64748b}.category-list{gap:.45rem;margin-top:1rem;display:grid}.category-row{border-bottom:1px solid #e7eee9;justify-content:space-between;align-items:center;gap:1rem;padding:.75rem .2rem;display:flex}.category-row span{color:#64748b;margin-top:.15rem;font-size:.78rem;display:block}.category-row-actions{gap:.4rem;display:flex}.category-row-actions button{color:#2f6f5b;background:#f8fbf9;border:1px solid #d7e2dc;border-radius:8px;width:auto;font-weight:700}.category-row-actions button:last-child{color:#a13b32;background:#fff8f7;border-color:#ead5d1}.empty-category-list{color:#64748b;margin:0}.modal-heading{margin-bottom:1rem}.modal-close{color:#334155;background:#fff;border:1px solid #cbd5e1;border-radius:50%;width:2.25rem;height:2.25rem;font-size:1.5rem;line-height:1;transition:background .12s,color .12s}.modal-close:hover{color:#2f6f5b;background:#eef2f1}.form-card input,.form-card select,.form-card button{color:#0f172a;background:#f8fafc;border:1px solid #0f172a1f;border-radius:12px;width:100%;padding:.8rem .9rem}.transaction-modal .card-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:.85rem;display:grid}.transaction-modal .card-grid>input,.transaction-modal .card-grid>select{background:#fbfcfd;border-color:#d6e0e8;min-width:0;min-height:3rem;transition:border-color .12s,box-shadow .12s,background .12s}.transaction-modal .card-grid>input:focus,.transaction-modal .card-grid>select:focus{background:#fff;border-color:#4d967e;outline:none;box-shadow:0 0 0 3px #24624f21}.transaction-modal .card-grid>input:first-child,.transaction-modal .card-grid>div,.transaction-modal .card-grid>button{grid-column:1/-1}.transaction-modal .card-grid>div{align-items:center;margin:0;gap:.5rem!important;display:flex!important}.transaction-modal .card-grid>div button{color:#24624f;background:#eef7f2;border:1px solid #c7ddd3;border-radius:999px;flex:none;width:auto;padding:.55rem .75rem;font-size:.82rem;font-weight:700}.transaction-modal .card-grid>div button:hover{background:#dcefe6}.transaction-modal .card-grid>div input,.transaction-modal .card-grid>div select{min-width:0;min-height:2.7rem}.form-card button{color:#fff;background:#2f6f5b;border:none;font-weight:700}.transaction-modal .modal-close,.category-modal .modal-close,.transaction-import-modal .modal-close{color:#334155;background:#fff;border:1px solid #cbd5e1;border-radius:50%;flex:0 0 2.25rem;width:2.25rem;min-width:2.25rem;height:2.25rem;min-height:2.25rem;padding:0;font-size:1.35rem;line-height:1}.category-modal .category-row-actions button{color:#2f6f5b;background:#f8fbf9;border:1px solid #d7e2dc;border-radius:8px;width:auto;min-height:2.2rem;padding:.45rem .7rem}.category-modal .category-row-actions button:last-child{color:#a13b32;background:#fff8f7;border-color:#ead5d1}.category-modal .category-editor button:not(.category-save){color:#64748b;background:#fff}.category-modal .tag,.transaction-modal .tag{color:#2f6f5b;background:#e8f1ed}.transaction-modal .card-grid>button[type=submit]{background:#2f6f5b;border-radius:10px;min-height:3rem;margin-top:.35rem;box-shadow:0 8px 18px #2f6f5b33}.transaction-modal .card-grid>button[type=submit]:hover{background:#255a49}.transaction-modal .card-grid>button[type=button]{color:#64748b;background:0 0;border:0;justify-self:end;width:auto;margin-top:-.55rem;padding:.45rem .75rem;font-weight:600}.transaction-modal [role=status],.transaction-modal [role=alert]{margin-bottom:0}@keyframes modal-fade-in{0%{opacity:0}to{opacity:1}}@keyframes modal-slide-up{0%{opacity:0;transform:translateY(12px)scale(.98)}to{opacity:1;transform:translateY(0)scale(1)}}.list-card{padding:1rem}.tag{color:#4338ca;background:#4f46e51a;border-radius:999px;align-items:center;gap:.35rem;padding:.3rem .7rem;font-size:.9rem;display:inline-flex}.monthly-view-heading{justify-content:space-between;align-items:center;gap:1rem;margin-bottom:1rem;display:flex}.month-nav,.row-actions{align-items:center;gap:.4rem;display:flex}.month-nav button,.month-nav input,.row-actions button{color:#334155;background:#fff;border:1px solid #cbd5e1;border-radius:8px;min-height:2.25rem;padding:.4rem .65rem}.monthly-table-wrap{contain:inline-size;overscroll-behavior-x:contain;border:1px solid #dbe4ee;border-radius:12px;width:100%;min-width:0;max-width:100%;overflow-x:auto}.skeleton-block{background:linear-gradient(90deg,#edf1f4 25%,#f7f9fa 50%,#edf1f4 75%) 0 0/200% 100%;border-radius:4px;height:.78rem;animation:1.35s ease-in-out infinite ledger-skeleton-shimmer;display:block}.skeleton-value{width:100%;height:.78rem;margin:auto;position:absolute;inset:0}.value-loading{vertical-align:middle;display:inline-block;position:relative}.value-loading-text{visibility:hidden}@keyframes ledger-skeleton-shimmer{0%{background-position:100% 0}to{background-position:-100% 0}}.monthly-table{border-collapse:collapse;width:100%;min-width:980px;font-size:.88rem}.monthly-table th,.monthly-table td{text-align:left;white-space:nowrap;border-bottom:1px solid #e6ebf1;padding:.65rem .7rem}.monthly-table th:nth-child(5),.monthly-table td:nth-child(5),.monthly-table th:nth-child(6),.monthly-table td:nth-child(6),.monthly-table th:nth-child(7),.monthly-table td:nth-child(7){min-width:8rem}.monthly-table th{color:#fff;background:#24624f;font-weight:700}.monthly-table tbody tr:nth-child(2n){background:#f5f8fa}.description-cell{width:280px;min-width:190px;max-width:280px}.description-cell strong{text-overflow:ellipsis;white-space:nowrap;display:block;overflow:hidden}.description-cell span{color:#64748b;text-transform:capitalize;margin-top:.15rem;font-size:.74rem;display:block}.amount-positive{color:#087443;font-weight:700}.amount-negative{color:#a13b32;font-weight:700}.status-pill{color:#fff;background:#087443;border-radius:999px;padding:.2rem .55rem;font-size:.75rem;font-weight:700;display:inline-block}.consolidated-mark{color:#475569;font-weight:600}@media (width<=900px){.hero-grid{grid-template-columns:1fr}.monthly-view-heading,.transactions-header{flex-direction:column;align-items:flex-start}.primary-action,.header-actions{width:100%}.secondary-action{flex:1}.category-editor{grid-template-columns:1fr}.category-row{flex-direction:column;align-items:flex-start}.transaction-modal .card-grid{grid-template-columns:1fr}.transaction-modal .card-grid>input,.transaction-modal .card-grid>select,.transaction-modal .card-grid>div,.transaction-modal .card-grid>button{grid-column:auto}.transaction-modal .card-grid>div{flex-wrap:wrap;align-items:stretch}}:root{--ink:#303844;--muted:#69727e;--line:#e5e8eb;--surface:#fff;--soft-surface:#f3f6f7;--accent:#ce0060;--accent-dark:#a9004e;--success:#2f6f5b;color:var(--ink);background:var(--soft-surface);font-family:Avenir Next,Helvetica Neue,sans-serif}body{background:var(--soft-surface);color:var(--ink)}.app-layout{background:var(--soft-surface);min-height:100vh}.app-layout header{z-index:10;border-bottom:1px solid var(--line);background:#fffffff5;grid-template-columns:180px 1fr auto;align-items:center;min-height:76px;padding:.8rem clamp(1rem,4vw,3rem);display:grid;position:sticky;top:0;box-shadow:0 4px 18px #3038440a}.app-layout__brand{gap:.65rem}.app-layout__brand-logo{object-fit:contain;width:168px;height:auto;max-height:52px;box-shadow:none;background:0 0;border-radius:0;padding:0;display:block}.app-layout__brand strong{color:var(--ink);letter-spacing:.02em;font-size:1rem}.app-layout__brand p{color:var(--muted);margin-top:.1rem;font-size:.72rem}.app-layout nav{justify-content:center;gap:.25rem}.app-layout nav a{color:var(--muted);border-radius:9px;align-items:center;gap:.4rem;padding:.55rem .8rem;font-size:.86rem;font-weight:700;display:inline-flex}.app-layout nav a span{color:currentColor;font-size:1rem;line-height:1}.app-layout nav a:hover,.app-layout nav a:focus-visible,.app-layout nav a.active{color:var(--accent);background:#fff0f6}.app-layout__user{color:var(--muted);gap:.55rem;font-size:.82rem}.app-layout__user button{color:var(--accent);background:#fff5f9;border:1px solid #f0bfd5;border-radius:8px;padding:.5rem .7rem;font-size:.8rem;font-weight:700}.app-layout main{width:min(100%,1180px);padding:clamp(1.25rem,4vw,2.75rem) clamp(1rem,4vw,2.5rem) 4rem}.app-layout main h1,.app-layout main h2,.app-layout main h3{color:var(--ink);letter-spacing:-.02em}.app-layout main h1{font-size:clamp(1.8rem,3vw,2.65rem);line-height:1.08}.app-layout main p{color:var(--muted)}.panel,.stat-card,.list-card,.form-card{border:1px solid var(--line);background:var(--surface);border-radius:16px;box-shadow:0 8px 22px #3038440b}.panel{padding:clamp(1rem,2vw,1.5rem)}.hero-grid{gap:1rem}.tag{color:var(--accent);letter-spacing:.04em;text-transform:uppercase;background:#fff0f6;border-radius:6px;padding:.28rem .55rem;font-size:.74rem;font-weight:800}button.primary-action,.form-card button,.transaction-modal .card-grid>button[type=submit]{background:var(--accent);border-radius:9px;box-shadow:0 6px 14px #ce006029}button.primary-action:hover,.form-card button:hover,.transaction-modal .card-grid>button[type=submit]:hover{background:var(--accent-dark)}.monthly-table th{background:var(--ink)}.monthly-table tbody tr:hover{background:#fff5f9}.status-pill{background:var(--success)}.status-pill,.scheduled-pill{cursor:pointer;font-family:inherit;font-size:.75rem;line-height:inherit;border:0}.scheduled-pill{color:#a9004e;background:#fff5f9;border:1px solid #e5c6d6;border-radius:999px;padding:.2rem .55rem;font-size:.75rem;font-weight:700;display:inline-block}.transaction-row{cursor:grab}.transaction-row:active,.transaction-row.dragging{cursor:grabbing;opacity:.58}.transaction-row[draggable=true]:hover{background:#fff8fb}@media (width<=900px){.app-layout header{grid-template-columns:1fr auto;min-height:68px;padding:.7rem 1rem}.app-layout header nav{z-index:15;padding:.45rem .35rem calc(.45rem + env(safe-area-inset-bottom));border-top:1px solid var(--line);background:#fffffff7;grid-template-columns:repeat(6,1fr);gap:0;display:grid;position:fixed;bottom:0;left:0;right:0;box-shadow:0 -5px 20px #30384414}.app-layout nav a{text-align:center;border-radius:8px;flex-direction:column;justify-content:center;gap:.25rem;min-width:0;padding:.45rem .15rem;font-size:.64rem}.app-layout nav a span{font-size:1.15rem}.app-layout__brand p,.app-layout__user span{display:none}.app-layout__user button{padding:.45rem .55rem;font-size:.72rem}.app-layout main{padding-bottom:7rem}}.people-page{gap:1.25rem;display:grid}.people-list{gap:.7rem;display:grid}.person-card{justify-content:space-between;align-items:center;gap:1rem;display:flex}.person-card>div:first-child{gap:.25rem;display:grid}.person-card span{color:var(--muted);font-size:.8rem}.person-actions{gap:.45rem;display:flex}.person-actions button{min-height:2.3rem;color:var(--success);background:#f8fbf9;border:1px solid #d7e2dc;border-radius:8px;padding:.45rem .7rem;font-weight:700}.person-actions button:last-child{color:#a13b32;background:#fff8f7;border-color:#ead5d1}.person-modal{width:min(100%,560px)}.ledger-filter-toolbar{flex-wrap:wrap;align-items:center;gap:.6rem;margin-bottom:1rem;padding:.25rem 0;display:flex}.ledger-filter-control,.ledger-filter-submit{border-radius:9px;min-height:2.6rem;font-size:.85rem;font-weight:700}.ledger-filter-control{color:#3b4552;background:#f8fafb;border:1px solid #d8dee3;min-width:145px;padding:.55rem 2rem .55rem .75rem}.ledger-filter-control:focus{border-color:#d10061;outline:none;box-shadow:0 0 0 3px #d100611a}.ledger-filter-submit{color:#fff;background:#ce0060;border:1px solid #c70059;padding:.55rem 1rem;box-shadow:0 5px 12px #ce006021}.ledger-filter-submit:hover{background:#a9004e}@media (width<=900px){.person-card{flex-direction:column;align-items:flex-start}.person-actions{width:100%}.person-actions button{flex:1}.ledger-filter-toolbar{grid-template-columns:repeat(2,minmax(0,1fr));display:grid}.ledger-filter-control,.ledger-filter-submit{width:100%;min-width:0}}
