:root{--ink:#202633;--muted:#858b96;--line:#e9ecf0;--bg:#f7f8fb;--surface:#fff;--dark:#151c30;--accent:#6659d9;--accent-bg:#f0edff;--green:#129c77;--red:#e45858;--orange:#ee943e}
*{box-sizing:border-box}
html{min-height:100%;-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--ink);font:14px/1.5 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif}
a{color:inherit;text-decoration:none}
button,input,select,textarea{font:inherit}
button{cursor:pointer}
button:disabled{cursor:not-allowed}
h1,h2,h3,p{margin:0}
h1{font-size:clamp(28px,3vw,36px);letter-spacing:-1.1px;font-weight:760}
h2{font-size:17px;letter-spacing:-.3px;font-weight:750}
h3{font-size:15px}
p{color:var(--muted)}
.sidebar{width:244px;position:fixed;inset:0 auto 0 0;background:var(--surface);border-right:1px solid var(--line);display:flex;flex-direction:column;padding:28px 14px 20px;z-index:10}
.brand{display:flex;gap:10px;align-items:center;padding:0 13px 40px;font-size:15px}
.brand strong{display:block;letter-spacing:-.4px}
.brand small{display:block;font-size:11px;color:#9599a4;margin-top:1px}
.brand-icon{display:flex;align-items:center;justify-content:center;background:var(--accent);color:#fff;border-radius:12px;width:34px;height:34px;font-size:24px;font-weight:400;box-shadow:0 5px 15px #6659d938;flex-shrink:0}
.nav-label,.eyebrow{font-size:10px;letter-spacing:1.5px;font-weight:800;color:#969aa6}
.nav-label{padding:0 16px 14px}
.side-nav{display:flex;gap:4px;flex-direction:column}
.side-nav a{padding:12px 15px;display:flex;align-items:center;gap:14px;border-radius:10px;color:#677080;font-weight:600;font-size:13px}
.side-nav a span{font-size:20px;width:20px;text-align:center;line-height:1}
.side-nav a:hover{background:#f7f7fb;color:var(--dark)}
.side-nav a.active{background:var(--accent-bg);color:#6252d4}
.sidebar-bottom{margin-top:auto;padding:0 13px;color:#89909b;font-size:11px}
.secure-pill{display:inline-block;color:#228d6c;background:#eaf8f2;border-radius:8px;padding:8px 11px;font-size:11px;font-weight:700}
.secure-pill span{margin-right:7px}
.username{margin:18px 0 7px}.username strong{color:var(--ink)}
.logout{padding:3px 0;border:0;background:none;color:#6759d9;font-size:12px;font-weight:700}
.app-shell{min-height:100vh;margin-left:244px}
.topbar{height:76px;display:flex;align-items:center;justify-content:space-between;padding:0 42px;background:#fff;border-bottom:1px solid var(--line)}
.topbar-meta{color:#858b96;font-weight:500;font-size:12px}.topbar-dot{color:#bbc0c9;padding:0 7px}
.content{padding:34px 42px 80px;max-width:1530px;margin:0 auto}
.mobile-brand{display:none}
.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:10px 16px;border-radius:10px;font-size:12px;font-weight:750;border:1px solid transparent;white-space:nowrap;min-height:40px;transition:.15s}
.button-primary{background:var(--accent);color:white;box-shadow:0 3px 8px #685ad72c}
.button-primary:hover{background:#5043c4}
.button-ghost{background:white;border:1px solid #e4e6eb;color:#596071}
.button-ghost:hover{border-color:#b8b5e9;color:#574bd0}
.page-top{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:26px}
.page-top .eyebrow{margin-bottom:8px}
.page-top p{margin-top:4px;font-size:13px}
.month-picker{display:flex;flex-direction:column;gap:7px}
.month-picker label{font-size:10px;letter-spacing:1px;font-weight:800;color:#9a9ea8}
.month-picker input{width:170px;border:1px solid var(--line);border-radius:10px;padding:10px 12px;color:#3b4151;background:#fff;cursor:pointer;outline:none}
.header-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.stat-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-bottom:20px}
.stat-grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}
.stat-card{background:var(--surface);padding:25px 26px;border:1px solid var(--line);border-radius:15px;min-height:157px}
.stat-label{display:flex;align-items:center;justify-content:space-between;color:#757c8a;font-size:12px;font-weight:650}
.trend{display:grid;place-items:center;width:27px;height:27px;border-radius:9px}
.trend-green{background:#e8faf1;color:#0da67a}.trend-orange{background:#fff0e4;color:#e5903b}
.stat-value{font-size:clamp(24px,2.8vw,32px);font-weight:790;letter-spacing:-1.2px;margin-top:17px;white-space:nowrap}
.stat-foot{color:#9ba0aa;font-size:11px;margin-top:5px}
.stat-emphasis{background:#211e4c;color:#fff;border-color:#211e4c;position:relative;overflow:hidden}
.stat-emphasis:before{content:"";position:absolute;width:190px;height:190px;border:1px solid #ffffff1c;border-radius:50%;right:-60px;bottom:-110px}
.stat-emphasis .stat-label,.stat-emphasis .stat-foot{color:#bbb7e6}
.stat-emphasis .stat-foot strong{color:white}
.dashboard-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-bottom:18px}
.panel{background:#fff;border:1px solid var(--line);border-radius:15px;padding:25px;min-width:0}
.panel-header{display:flex;align-items:flex-start;justify-content:space-between;gap:13px;margin-bottom:20px}
.panel-header p{font-size:11px;margin-top:3px}
.plain-link{color:#6254d3;font-weight:750;font-size:12px;white-space:nowrap}
.plain-link:hover{text-decoration:underline}
.account-row,.recent-row{display:flex;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid #f1f2f4}
.account-row:last-of-type,.recent-row:last-of-type{border-bottom:0}
.account-avatar{width:37px;height:37px;border-radius:11px;background:#f0edff;color:#685bd9;display:grid;place-items:center;flex-shrink:0;font-weight:700;font-size:18px}
.account-avatar.large{width:44px;height:44px}
.account-title,.recent-name{min-width:0;flex:1}
.account-title strong,.recent-name strong{display:block;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.account-title small,.recent-name small{display:block;font-size:11px;color:#9ba0aa;margin-top:2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.account-balance{font-weight:800;font-size:13px;white-space:nowrap}
.account-summary{margin-top:14px;border-top:1px solid var(--line);padding-top:17px;display:flex;justify-content:space-between;gap:8px;font-size:12px}
.account-summary span{color:var(--muted)}.account-summary strong{font-size:14px}
.bar-row{margin:0 0 20px}.bar-row:last-child{margin-bottom:0}
.bar-label{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:12px;margin-bottom:8px}
.bar-label span{color:#5e6573}.bar-label strong{font-size:12px}
.track{height:7px;border-radius:30px;background:#f0eff6;overflow:hidden}
.fill{height:100%;border-radius:30px;background:#796de1;transition:width .2s}
.fill.over{background:#df6f6d}
.entry-symbol{width:36px;height:36px;border-radius:12px;display:grid;place-items:center;flex-shrink:0;font-size:18px}
.entry-symbol.expense{background:#fff1eb;color:#e98a62}
.entry-symbol.income{background:#e9faf1;color:#13a079}
.entry-symbol.transfer{background:#eeeafd;color:#7765dd}
.recent-amount{font-weight:760;white-space:nowrap;font-size:12px}
.positive,.recent-amount.income,.amount.income{color:var(--green)}
.negative,.recent-amount.expense,.amount.expense{color:var(--red)}
.review-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px;margin:24px 0 19px}
.review-item{display:flex;flex-direction:column;align-items:center;gap:5px;background:#f8f9fc;border-radius:12px;padding:10px 2px 7px}
.review-item>span:first-child{font-size:10px;color:#969ca6}
.review-item strong{font-size:17px}
.review-done{color:#099e74;font-size:18px;font-weight:800;line-height:19px}
.review-button{border:0;background:none;color:#b6b7c5;font-size:21px;line-height:20px;padding:0}
.review-button:hover{color:#6556d8}
.tip{background:#f0eefc;border-radius:10px;padding:14px 17px;color:#6c63a1;font-size:11px;line-height:1.7;margin-top:12px}
.budget-glance{display:flex;justify-content:space-between;gap:8px;margin:19px 0 9px;padding-top:15px;border-top:1px solid var(--line);font-size:12px}
.budget-glance span{color:var(--muted)}
.subtle-tag{font-size:9px;background:#f3f4f8;color:#818796;border-radius:7px;padding:6px 8px;font-weight:750;letter-spacing:.3px}
.empty-state{color:#9299a6;font-size:13px;text-align:center;padding:37px 16px;line-height:1.7}
.empty-state a{color:#6659d9;font-weight:700}
.filter-panel{margin-bottom:16px;padding:18px}
.filter-grid{display:flex;flex-wrap:wrap;gap:10px;align-items:flex-end}
.filter-grid label{font-size:11px;color:#838997;font-weight:650;display:flex;flex-direction:column;gap:5px;min-width:125px;flex:1}
.filter-grid .field-input{width:100%}.filter-grid>.button{margin-bottom:0}
.field-input{width:100%;border:1px solid #e1e4ea;background:white;border-radius:9px;padding:11px 12px;min-height:42px;outline:none;color:var(--ink);font-size:13px}
.field-input:focus{border-color:#9589ee;box-shadow:0 0 0 3px #675ad91e}
.field-input[type=checkbox]{width:auto;min-height:0;accent-color:#675ad9}
textarea.field-input{resize:vertical}
.summary-strip{display:flex;flex-wrap:wrap;gap:24px;align-items:center;padding:14px 18px;margin-bottom:16px;background:white;border:1px solid var(--line);border-radius:11px;font-size:12px;color:#838994}
.summary-strip strong{color:var(--ink);margin-left:5px}.summary-strip strong.positive{color:var(--green)}
.table-panel{padding:0;overflow:hidden}.table-wrap{overflow-x:auto}
table{width:100%;border-collapse:collapse;min-width:570px}
th{background:#fbfbfd;color:#8e95a3;font-size:10px;letter-spacing:.4px;text-align:left;padding:15px 20px;text-transform:uppercase;white-space:nowrap;font-weight:750}
td{padding:16px 20px;border-top:1px solid #f0f1f4;color:#5e6574;font-size:12px;vertical-align:middle}
.row-primary{color:#252b38;font-size:12px;font-weight:750}
.row-secondary{color:#969ca8;font-size:11px;margin-top:3px}
.nowrap{white-space:nowrap}
td.amount{font-weight:790;font-size:13px}
.type-pill{display:inline-block;font-size:10px;font-weight:700;border-radius:6px;padding:5px 8px}
.type-pill.expense{color:#d46a45;background:#fff0e8}
.type-pill.income{color:#148b6d;background:#e9f9ef}
.type-pill.transfer{color:#6e5dc3;background:#f0edff}
.actions{display:flex;align-items:center;gap:13px}.actions form{margin:0}
.text-danger{border:0;background:none;padding:0;color:#e26969;font-size:12px;font-weight:600}
.pagination{display:flex;justify-content:space-between;align-items:center;padding:16px 20px;gap:10px;font-size:11px;color:#9399a4;border-top:1px solid var(--line)}
.pagination>div{display:flex;gap:7px}
.form-layout{display:grid;grid-template-columns:minmax(0,700px) minmax(220px,300px);align-items:start;gap:20px}
.entry-panel{padding:27px}
.field-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px 18px}
.form-group{min-width:0;display:flex;flex-direction:column;gap:6px}
.form-group label{font-size:12px;font-weight:730;color:#42495a}
.form-group[data-field=description],.form-group[data-field=member],.form-group[data-field=reference],.form-group[data-field=notes]{grid-column:span 2}
.form-group[data-field=active]{justify-content:flex-end}
.form-group[data-field=active] input{align-self:start}
.req{color:#e07a75}.field-error{color:#d54545;font-size:11px}.help-text{font-size:10px;color:#999dab}
.form-actions{display:flex;justify-content:flex-end;align-items:center;gap:10px;margin-top:27px;padding-top:24px;border-top:1px solid var(--line)}
.info-panel{background:#f0eefc;border-radius:14px;padding:25px;color:#5e568e}
.info-panel h3{font-size:15px;margin:12px 0}.info-panel p{color:#736d97;font-size:12px;margin-top:12px;line-height:1.7}
.info-icon{font-size:24px}
.account-card-grid,.project-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.account-card{min-height:220px}.account-card-header,.project-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px}
.account-card h2{font-size:15px}
.account-card-balance{font-size:27px;font-weight:800;letter-spacing:-1px;margin-top:8px}
.account-card p{margin-top:3px;font-size:12px;margin-bottom:18px}
.project-card h2{font-size:16px}.project-card>p{font-size:12px;margin-top:3px}
.project-metrics{display:grid;grid-template-columns:1fr 1fr;gap:18px 9px;margin-top:23px}
.project-metrics span{display:block;color:#8b919e;font-size:10px}
.project-metrics strong{display:block;font-size:15px;margin-top:3px}
.project-cash{grid-column:span 2;border-top:1px solid var(--line);padding-top:13px}
.budget-panel{padding:8px 25px}
.budget-row{padding:19px 0;border-bottom:1px solid var(--line)}.budget-row:last-child{border:0}
.budget-row .bar-label strong{font-size:13px}
.budget-amounts{font-size:12px;color:#737b87;margin-bottom:10px}
.budget-amounts span{font-weight:730;float:right}
.export-box{display:flex;justify-content:space-between;align-items:center;gap:16px;background:#eae7fc;border-radius:13px;padding:22px 25px;margin-top:20px}
.export-box p{font-size:12px;margin-top:4px}
.messages{margin-bottom:18px}
.alert{border-radius:9px;padding:12px 16px;font-size:12px;background:#e9f8f1;color:#23836b;margin-bottom:10px}
.alert.error{background:#fff0ee;color:#cc4f48}
.login-wrap{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:28px}
.login-card{max-width:445px;width:100%;background:white;padding:43px 45px;border-radius:20px;border:1px solid var(--line);box-shadow:0 15px 80px #2a28430c}
.login-logo{margin-bottom:30px}
.login-card .eyebrow{margin-bottom:11px}
.login-card h1{font-size:34px;line-height:1.15}
.login-card h1 span{color:var(--accent)}
.login-card p{font-size:12px;margin:15px 0 27px}
.login-card label{display:block;font-size:12px;font-weight:700;margin:17px 0 7px}
.login-submit{width:100%;justify-content:space-between;margin-top:25px;padding:15px 18px;font-size:13px}
.login-footer{margin-top:28px;text-align:center;font-size:10px;color:#9da1ab}
.mobile-nav{display:none}
@media(max-width:1190px){.sidebar{width:205px}.app-shell{margin-left:205px}.content{padding:30px 25px 65px}.topbar{padding:0 25px}.account-card-grid,.project-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.stat-card{padding:22px 19px}}
@media(max-width:850px){.sidebar{display:none}.app-shell{margin-left:0}.topbar{height:62px;padding:0 20px}.topbar-meta{display:none}.mobile-brand{display:flex;align-items:center;gap:10px;font-weight:800}.mobile-brand .brand-icon{width:30px;height:30px;font-size:22px}.content{padding:23px 18px 105px}.mobile-nav{display:flex;position:fixed;bottom:0;left:0;right:0;z-index:20;height:75px;background:#fff;border-top:1px solid var(--line);align-items:center;justify-content:space-around;padding:0 8px env(safe-area-inset-bottom)}.mobile-nav>a{display:flex;align-items:center;flex-direction:column;gap:1px;font-size:10px;font-weight:700;color:#858b96;min-width:50px}.mobile-nav>a span{font-size:23px;line-height:1.1}.mobile-nav .mobile-add{width:47px;min-width:47px;height:47px;border-radius:15px;background:var(--accent);color:white;font-size:29px;display:grid;place-items:center;box-shadow:0 5px 15px #6659d93a;margin-top:-15px}.dashboard-grid{grid-template-columns:1fr}.form-layout{grid-template-columns:1fr}.info-panel{display:none}}
@media(max-width:620px){.page-top{align-items:flex-start;flex-wrap:wrap;gap:14px}.page-top .month-picker{width:100%}.page-top .month-picker input{width:100%}.stat-grid,.stat-grid.two{grid-template-columns:1fr 1fr;gap:10px}.stat-grid .stat-card:last-child:nth-child(odd){grid-column:span 2}.stat-card{min-height:123px;padding:18px}.stat-value{font-size:22px;letter-spacing:-.7px;margin-top:17px}.stat-label{font-size:11px}.stat-foot{font-size:10px}.panel{padding:20px}.table-panel{padding:0}.panel-header{margin-bottom:14px}.account-card-grid,.project-grid{grid-template-columns:1fr}.top-action{padding:9px 11px;font-size:11px;min-height:36px}.page-top h1{font-size:30px}.page-top p{font-size:12px}.form-layout{gap:10px}.field-grid{grid-template-columns:1fr}.form-group[data-field=description],.form-group[data-field=member],.form-group[data-field=reference],.form-group[data-field=notes]{grid-column:span 1}.entry-panel{padding:19px}.form-actions .button{flex:1}.filter-grid label{flex:1 1 42%}.filter-grid>.button{flex:1}.summary-strip{gap:11px;font-size:11px}.review-grid{gap:4px}.review-item{padding:10px 0 7px}.account-card-header{margin-bottom:17px}.export-box{flex-direction:column;align-items:flex-start}.login-card{padding:34px 26px}.login-card h1{font-size:30px}.pagination{flex-wrap:wrap}.table-wrap{margin:0}}
