:root{--navy:#142a38;--navy-dark:#10232f;--teal:#157f76;--teal-soft:#e5f4ee;--ink:#203541;--muted:#72818a;--line:#e4ebe9;--bg:#f4f7f6;--white:#fff;--red:#bf5961;--red-soft:#fff0f0;--amber:#a87a26;--radius:18px;font-family:Inter,"Segoe UI",Arial,sans-serif;color:var(--ink);font-size:14px;font-synthesis:none}*{box-sizing:border-box}body{margin:0;background:var(--bg);line-height:1.5}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}a{color:var(--teal);text-decoration:none}a:hover{text-decoration:underline}button{cursor:pointer}svg{vertical-align:middle}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #79bfb2;outline-offset:3px}h1,h2,h3,p{margin-top:0}h1{font-size:30px;line-height:1.2;letter-spacing:-1px;margin-bottom:9px;font-weight:650}h2{font-size:17px;letter-spacing:-.3px;margin-bottom:4px}h3{font-size:15px}small,.muted,.text-muted{color:var(--muted)}small{font-size:12px}.app-shell{display:grid;grid-template-columns:244px minmax(0,1fr);min-height:100vh}.sidebar{background:var(--navy);color:#eaf1f1;position:fixed;inset:0 auto 0 0;width:244px;display:flex;flex-direction:column;padding:31px 20px 22px;z-index:20}.brand{display:flex;align-items:center;gap:11px;color:white;padding:0 12px 32px;text-decoration:none!important}.brand-symbol{display:grid;place-items:center;width:38px;height:38px;background:#30968c;border-radius:12px;font-size:26px;font-weight:500}.brand-name{font-size:23px;letter-spacing:-.9px;font-weight:650;line-height:1.1}.brand-name small{display:block;color:#9eb4bc;font-size:10px;letter-spacing:2px;font-weight:500;margin-top:6px}.nav-label{font-size:10px;color:#8ba2ad;text-transform:uppercase;letter-spacing:1.9px;padding:0 14px;margin:10px 0 12px}.nav-link{display:flex;align-items:center;gap:12px;padding:13px 14px;color:#acbec6;margin-bottom:6px;border-radius:9px;font-weight:500;text-decoration:none!important}.nav-link svg{width:19px;height:19px;flex:none}.nav-link:hover{background:#213d4b;color:white}.nav-link.active{background:#2a4b54;color:#fff;box-shadow:inset 3px 0 #55c2a7}.sidebar-foot{margin-top:auto}.household-chip{padding:17px 13px;background:#203b48;border:1px solid #304a55;border-radius:12px;margin:24px 0 16px;display:flex;align-items:center;gap:11px}.household-chip .avatar{background:#3d625e;color:#c4eadf}.household-chip strong{font-size:12px}.household-chip small{display:block;color:#a1b6bc;font-size:11px}.sidebar-bottom{color:#8ba2ad;font-size:11px;padding:0 13px}.workspace{grid-column:2;min-width:0}.topbar{height:82px;padding:0 42px;border-bottom:1px solid var(--line);background:#fff;display:flex;align-items:center;justify-content:space-between;gap:15px}.breadcrumb{color:#8b989e;font-size:12px}.breadcrumb strong{color:#435763;font-weight:500}.profile{display:flex;align-items:center;gap:11px}.avatar{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:#e8efec;color:#477667;font-size:11px;font-weight:650;flex:none}.profile-name{font-size:12px;font-weight:600}.profile small{display:block;font-size:10px}.logout{border:0;background:none;color:#76868c;font-size:11px;padding:8px}.page{max-width:1530px;margin:0 auto;padding:38px 42px 40px}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:28px}.page-heading p{color:var(--muted);margin:0;font-size:13px}.eyebrow{text-transform:uppercase;letter-spacing:1.9px;font-size:10px;font-weight:600;color:var(--teal);margin-bottom:11px}.heading-actions{display:flex;align-items:center;gap:10px}.button,button.primary,.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;background:white;border:1px solid #dce5e2;border-radius:9px;padding:10px 15px;font-weight:550;font-size:12px;line-height:1.5;color:#405762;text-decoration:none;min-height:39px}.button:hover,.btn:hover{text-decoration:none;background:#f0f6f3}.button.primary,button.primary,.btn-primary{background:var(--teal);color:white;border-color:var(--teal);box-shadow:0 3px 5px #157f7610}.button.primary:hover,button.primary:hover{background:#116c65}.button svg{width:15px;height:15px}.button.danger{color:var(--red);border-color:#ebcdd0}.button.small{font-size:11px;min-height:31px;padding:5px 9px}.button.ghost{border-color:transparent;background:transparent}.icon-button{border:0;background:transparent;padding:7px;color:var(--muted);border-radius:6px}.icon-button:hover{background:#edf3f0}.icon-button svg{width:16px;height:16px}.card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:24px;box-shadow:0 2px 5px #1e3d3502;min-width:0}.card-header{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:25px}.card-header p{color:var(--muted);font-size:11px;margin:5px 0 0}.card-header .text-link{font-size:11px}.grid{display:grid;gap:20px}.grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-4,.stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}.stats-grid{margin-bottom:24px}.stat-card{padding:21px 22px;position:relative}.stat-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}.stat-label{font-size:11px;color:#6c7d86;font-weight:500}.stat-icon{width:30px;height:30px;display:grid;place-items:center;border-radius:9px;background:var(--teal-soft);color:var(--teal)}.stat-icon svg{width:15px;height:15px}.stat-icon.red{background:var(--red-soft);color:var(--red)}.stat-icon.blue{background:#eaf0f7;color:#5476a0}.stat-icon.gold{background:#f8f1e2;color:#af8b46}.stat-value{font-size:25px;font-weight:620;letter-spacing:-.8px;white-space:nowrap}.stat-foot{font-size:10px;color:var(--muted);margin-top:8px}.positive{color:var(--teal)}.negative{color:var(--red)}.dashboard-middle{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(280px,1fr);gap:22px;margin-bottom:24px}.chart-legend{display:flex;gap:15px;align-items:center;font-size:10px;color:#79888e}.legend-item{display:inline-flex;gap:6px;align-items:center}.dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#26978c}.dot.expense{background:#b9d7cd}.dot.future{background:#7c93b2}.chart-svg{display:block;width:100%;height:auto;max-height:232px}.chart-grid{stroke:#edf1ef;stroke-width:1}.chart-axis{fill:#8b989e;font-size:10px}.chart-bar-income{fill:#258d81}.chart-bar-expense{fill:#b4d6cb}.chart-line{fill:none;stroke:#258d81;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}.chart-area{fill:#edf7f2}.chart-point{fill:white;stroke:#258d81;stroke-width:2}.chart-caption{display:flex;justify-content:space-between;gap:12px;font-size:10px;color:#85939a;margin-top:11px}.category-row{display:flex;align-items:center;gap:11px;padding:12px 0;border-bottom:1px solid #eef2f0}.category-row:last-child{border-bottom:0}.category-icon{width:32px;height:32px;border-radius:9px;display:grid;place-items:center;background:#eff5f2;color:#5c8175}.category-icon svg{width:15px;height:15px}.category-detail{flex:1;min-width:0;font-size:12px}.category-detail small{display:block;font-size:10px;margin-top:2px}.category-value{font-size:12px;font-weight:600;white-space:nowrap}.section-space{margin-top:24px}.section-gap{margin-bottom:24px}.table-wrap{overflow:auto;margin:0 -24px}.table-wrap table{width:100%;border-collapse:collapse;font-size:12px;white-space:nowrap}th{text-align:left;color:#8a979d;font-size:10px;font-weight:500;letter-spacing:.2px;padding:12px 20px;background:#fafcfb;border-top:1px solid #edf1ef;border-bottom:1px solid #edf1ef}td{padding:16px 20px;border-bottom:1px solid #edf1ef}th:first-child,td:first-child{padding-left:24px}th:last-child,td:last-child{padding-right:24px}tbody tr:last-child td{border-bottom:0}tbody tr:hover{background:#fcfdfc}.table-description{display:flex;align-items:center;gap:11px}.table-description strong{font-size:12px;font-weight:550}.table-description small{display:block;font-size:10px;margin-top:2px}.movement-icon{width:32px;height:32px;display:grid;place-items:center;border-radius:10px;background:#eaf5ef;color:#258d81}.movement-icon.out{color:#c16a71;background:#fdf0ef}.movement-icon.transfer{background:#edf1f7;color:#6a80a0}.movement-icon svg{width:15px;height:15px}.amount{font-weight:600;font-variant-numeric:tabular-nums}.badge{display:inline-flex;align-items:center;gap:5px;background:#f0f4f2;color:#6f8179;border-radius:5px;padding:4px 7px;font-size:10px;font-weight:500}.badge.success,.badge.paid{background:#eaf5ef;color:#42816a}.badge.pending,.badge.warning{background:#faf2e3;color:#ab853f}.badge.info{background:#eaf0f8;color:#657f9d}.forecast-card{background:var(--navy);color:#eaf1ef;border:0;position:relative;overflow:hidden}.forecast-card .eyebrow{color:#81b9aa}.forecast-card h2{color:#f2f8f4}.forecast-card p{font-size:11px;color:#a9c0c5}.forecast-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;margin-top:22px}.forecast-item{border-left:1px solid #3e565f;padding-left:18px}.forecast-item:first-child{border-left:0;padding-left:0}.forecast-month{color:#adc4c6;font-size:11px}.forecast-balance{font-size:22px;letter-spacing:-.5px;color:#d3eee3;margin:6px 0 9px}.forecast-meta{display:flex;gap:16px;font-size:10px;color:#a7c1c2}.forecast-note{border-top:1px solid #314c57;margin-top:23px;padding-top:13px;font-size:10px;color:#92afb7}.alert,.notice,.success-message,.error-message{border-radius:11px;padding:12px 16px;font-size:12px;margin-bottom:20px;border:1px solid #d6e9de;background:#ebf6ee;color:#31734f}.alert.warning,.notice{background:#fff9e8;border-color:#f0e2b7;color:#947431}.alert.error,.error-message{background:#fff1f0;border-color:#f0d4d2;color:#ad5053}.alert ul{padding-left:18px;margin:5px 0}.empty-state{text-align:center;padding:38px 15px;color:var(--muted)}.empty-state h3{color:#526974;margin:14px 0 5px}.empty-state p{font-size:12px;max-width:350px;margin:0 auto 17px}.empty-symbol{width:48px;height:48px;border-radius:14px;display:grid;place-items:center;background:#edf5ef;margin:0 auto;color:#6d9d87;font-size:21px}.filters{display:flex;gap:12px;align-items:end;flex-wrap:wrap;margin-bottom:21px}.filters label{flex:1;min-width:130px}.filters label.search-filter{flex:2}.filters input,.filters select{min-height:39px;background:#fff}.filters .button{margin-bottom:0}label{display:block;font-size:11px;color:#647782;font-weight:500}input,select,textarea{display:block;width:100%;min-width:0;border:1px solid #dce5e1;border-radius:8px;padding:10px 11px;margin-top:6px;background:#fff;color:#304953;font-size:12px;min-height:40px}input[type=checkbox],input[type=radio]{display:inline-block;width:auto;min-height:0;margin:0 7px 0 0;accent-color:var(--teal)}input[type=color]{padding:4px;max-width:100px}textarea{resize:vertical;min-height:82px}input::placeholder,textarea::placeholder{color:#a2adb1}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px}.form-grid .full,.span-2{grid-column:1/-1}.form-hint{display:block;font-size:10px;color:#8a979d;font-weight:400;margin-top:5px}.form-actions,.dialog-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:24px;border-top:1px solid #edf1ef;padding-top:19px}.field-error{font-size:11px;color:var(--red);margin-top:4px}dialog{border:1px solid var(--line);border-radius:20px;padding:26px;width:min(620px,calc(100vw - 32px));max-height:90vh;overflow:auto;color:var(--ink);background:#fff;box-shadow:0 24px 80px #132e3b30}dialog::backdrop{background:#142a3866;backdrop-filter:blur(3px)}.dialog-header{display:flex;justify-content:space-between;gap:15px;align-items:start;margin-bottom:23px}.dialog-header h2{font-size:20px}.dialog-header p{font-size:12px;color:var(--muted);margin:6px 0 0}.dialog-close{border:0;border-radius:8px;background:#f2f6f3;color:#6b7f87;width:29px;height:29px;font-size:20px;line-height:1}.details-note{background:#f4f8f5;border-radius:10px;padding:13px;font-size:11px;color:#7b8e82}.pagination{display:flex;justify-content:space-between;align-items:center;padding-top:20px;font-size:11px;color:var(--muted)}.pagination-buttons{display:flex;gap:8px}.settings-grid{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:22px}.list-row{padding:15px 0;display:flex;justify-content:space-between;align-items:center;gap:14px;border-bottom:1px solid #edf1ef}.list-row:last-child{border-bottom:0}.list-row strong{font-size:12px;font-weight:550}.list-row small{display:block;margin-top:3px;font-size:10px}.account-mark{width:35px;height:35px;border-radius:10px;background:#eaf2ef;color:#628175;font-size:12px;font-weight:600;display:grid;place-items:center;flex:none}.row-main{display:flex;align-items:center;gap:11px;min-width:0}.member-email{word-break:break-all}.page-footer{font-size:10px;color:#91a09f;display:flex;justify-content:space-between;gap:12px;padding-top:28px}.footer-lock{color:#7c948a}.mobile-menu{display:none}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.guest-body,.auth-page{min-height:100vh;background:#f1f6f2}.guest-shell,.auth-shell{min-height:100vh;display:grid;place-items:center;padding:30px}.guest-card,.auth-card{background:#fff;border:1px solid var(--line);border-radius:20px;width:min(460px,100%);padding:35px;box-shadow:0 20px 70px #193a2a08}.guest-card h1,.auth-card h1{font-size:27px}.guest-card label,.auth-card label{margin-top:18px}.guest-card .button,.auth-card .button{margin-top:21px;width:100%}.auth-brand{color:var(--teal);font-size:24px;letter-spacing:-1px;font-weight:650;margin-bottom:24px}.auth-card p{color:var(--muted);font-size:12px}.auth-card input[name=code]{font-size:23px;letter-spacing:8px;text-align:center}.investment-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.investment-metric{padding:12px;background:#f5f8f6;border-radius:10px}.investment-metric strong{display:block;font-size:17px;margin-top:5px}.import-preview{max-height:420px;overflow:auto}.nowrap{white-space:nowrap}.flex{display:flex;align-items:center;gap:10px}.space-between{justify-content:space-between}.text-right{text-align:right}.mb-0{margin-bottom:0}.mt-2{margin-top:12px}.mt-4{margin-top:24px}.stack{display:grid;gap:18px}.full-width{width:100%}
@media(min-width:1550px){.page{padding-top:44px}.stat-value{font-size:28px}.card{padding:27px}}
@media(max-width:1180px){.sidebar{width:210px;padding-left:13px;padding-right:13px}.app-shell{grid-template-columns:210px minmax(0,1fr)}.page{padding:30px 25px}.topbar{padding:0 25px}.stats-grid{gap:12px}.stat-card{padding:18px 16px}.stat-value{font-size:21px}.dashboard-middle{grid-template-columns:minmax(0,1.5fr) minmax(250px,1fr);gap:16px}.card{padding:20px}.table-wrap{margin:0 -20px}.forecast-meta{display:block}.forecast-meta span{display:block;margin-top:3px}}
@media(max-width:920px){.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-middle,.settings-grid{grid-template-columns:1fr}.page-heading{align-items:start}.heading-actions{flex-wrap:wrap;justify-content:flex-end}.forecast-balance{font-size:19px}.grid-3{grid-template-columns:1fr}.profile-info{display:none}}
@media(max-width:640px){.app-shell{display:block}.sidebar{transform:translateX(-100%);transition:transform .2s ease;width:244px;box-shadow:10px 0 50px #10232f33}.sidebar.is-open{transform:translateX(0)}.workspace{width:100%}.topbar{height:64px;padding:0 18px}.mobile-menu{display:grid;place-items:center;width:32px;height:32px;border:0;background:#eff5f1;color:#456958;border-radius:8px}.topbar-leading{display:flex;gap:12px;align-items:center}.page{padding:25px 17px 30px}.page-heading{display:block;margin-bottom:22px}h1{font-size:25px}.page-heading p{font-size:12px}.heading-actions{justify-content:flex-start;margin-top:18px}.stat-value{font-size:21px}.stat-label{font-size:10px}.stat-top{margin-bottom:12px}.stat-card{padding:16px 14px}.stats-grid{gap:10px;margin-bottom:18px}.stat-foot{font-size:9px}.stat-icon{width:26px;height:26px}.card{border-radius:14px;padding:19px}.card-header{margin-bottom:20px}.card-header h2{font-size:16px}.chart-legend{gap:9px;font-size:9px}.table-wrap{margin:0 -19px}.dashboard-middle{gap:18px;margin-bottom:18px}.forecast-grid{gap:10px}.forecast-item{padding-left:11px}.forecast-balance{font-size:15px}.forecast-meta{font-size:9px}.forecast-month{font-size:10px}.forecast-note{font-size:9px}.forecast-card p{font-size:10px}.form-grid{gap:13px}.filters{gap:9px}.filters label{min-width:135px}.filters label.search-filter{flex-basis:100%}.page-footer{font-size:9px;display:block}.page-footer span{display:block;margin-top:4px}.grid-2,.investment-metrics{grid-template-columns:1fr}.guest-card,.auth-card{padding:28px}.profile{gap:7px}.logout{padding:5px}.breadcrumb{font-size:11px}.settings-grid{gap:18px}.card-header .button{font-size:10px;padding:7px 9px;min-height:32px}}
.section-heading,.dialog-heading{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:24px}.section-heading p{font-size:11px;margin:5px 0 0}.dialog-heading h2{font-size:20px}.stat>span{display:block;font-size:11px}.stat>strong{display:block;font-size:25px;font-weight:600;letter-spacing:-.7px;margin-top:15px}.stat>small{display:block;font-size:10px;margin-top:8px}.stats-grid:has(.stat):not(:has(.stat-card)){grid-template-columns:repeat(3,minmax(0,1fr))}.page>section.card+section.card{margin-top:22px}.page>section.card.notice{font-size:11px;line-height:1.7;background:#f5f8f4;border-color:#e0e9de;color:#67806d}.page>section.card.notice p:last-child{margin-bottom:0}table td>small{display:block;margin-top:4px;color:var(--muted);font-size:10px}.checkbox-label{display:flex;align-items:center;gap:5px;align-self:center}.checkbox-label input{flex:none}.auth-shell{max-width:1100px;margin:0 auto;grid-template-columns:1.05fr 1fr;gap:85px}.auth-story{padding:35px 0}.auth-story .brand{color:var(--navy);font-size:23px;font-weight:650;letter-spacing:-.8px;padding:0;margin-bottom:78px;gap:9px}.brand-mark{display:grid;place-items:center;width:35px;height:35px;color:white;background:var(--teal);border-radius:11px;font-size:20px}.auth-story h1{font-size:48px;font-weight:600;line-height:1.16;letter-spacing:-1.8px;margin:17px 0 24px}.auth-story>p:not(.eyebrow){font-size:15px;color:#71827a;max-width:330px;line-height:1.8}.auth-story-note{font-size:11px;color:#799187;border-top:1px solid #dfe8e0;padding-top:22px;margin-top:65px;line-height:1.8;max-width:330px}.auth-card{width:100%;padding:36px}.auth-card h2{font-size:24px;margin-bottom:13px;line-height:1.3;letter-spacing:-.6px}.auth-card>p{line-height:1.8}.auth-card .eyebrow{font-size:9px;margin-bottom:15px;line-height:1.5}.auth-card label{margin-top:24px}.auth-card input{min-height:46px}.auth-card .button{min-height:45px}.auth-card .auth-footnote{font-size:10px;color:#8b9b93;border-top:1px solid #e8eee9;padding-top:19px;margin-top:27px;margin-bottom:0}.auth-resend{font-size:11px;margin-top:22px;color:#73877d}.auth-resend summary{cursor:pointer;color:var(--teal)}.notice.error{background:#fff0ef;color:#b15c59;border-color:#f0d1ce}.notice.success{background:#eaf7ee;color:#39765a;border-color:#d6e8dc}.notice ul{padding-left:16px;margin:0}
@media(max-width:800px){.auth-shell{gap:30px;max-width:700px}.auth-story h1{font-size:36px}.auth-story .brand{font-size:20px;margin-bottom:55px}.auth-card{padding:28px}.auth-story-note{margin-top:40px}}
@media(max-width:600px){.auth-shell{display:block;padding:24px 20px;max-width:460px}.auth-story{padding:10px 8px 24px}.auth-story .brand{margin-bottom:23px}.auth-story h1{font-size:33px;margin:10px 0 13px}.auth-story>p:not(.eyebrow){font-size:12px;margin-bottom:0}.auth-story-note{display:none}.auth-story .eyebrow{margin:0;font-size:9px}.auth-card{padding:27px 24px}.auth-card h2{font-size:22px}.stats-grid:has(.stat):not(:has(.stat-card)){grid-template-columns:1fr}.stat>strong{font-size:23px}.section-heading{align-items:start}.section-heading h2{font-size:15px}.section-heading .button{font-size:10px;padding:8px 10px;min-width:90px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
