:root{--ink:#29231e;--muted:#898078;--line:#eee7df;--paper:#fff;--wash:#fffaf5;--orange:#e87524;--orange-dark:#bd5816;--orange-soft:#fff0e3;--green:#bd5816;--green-soft:#fff0e3;--red:#b94d3f;--shadow:0 12px 34px rgba(64,43,24,.055)}
*{box-sizing:border-box}body{margin:0;background:var(--wash);color:var(--ink);font:15px/1.5 Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}button{cursor:pointer}.topbar{height:76px;padding:0 max(24px,calc((100vw - 1160px)/2));display:flex;align-items:center;justify-content:space-between;gap:25px;border-bottom:1px solid var(--line);background:rgba(255,255,255,.92);position:sticky;top:0;z-index:10;backdrop-filter:blur(14px)}.brand{display:flex;align-items:center;gap:11px;flex:none}.brand-mark{width:39px;height:39px;border-radius:13px;background:var(--orange);color:white;display:grid;place-items:center;font-size:21px;font-weight:800;box-shadow:0 5px 12px #e8752438}.brand-copy strong{font-size:15px;letter-spacing:-.03em;display:block}.brand-copy small{font-size:10px;color:var(--muted);display:block}.desktop-nav{display:flex;align-items:center;gap:6px}.desktop-nav a{padding:9px 13px;border-radius:9px;font-size:13px;font-weight:600;color:#71685f}.desktop-nav a:hover,.desktop-nav a.active{background:var(--orange-soft);color:var(--orange-dark)}.account-menu{display:flex;align-items:center;gap:9px}.account-avatar{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#fff0e3;color:var(--orange-dark);font-weight:750}.account-name{font-size:13px;font-weight:650;max-width:140px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.account-menu form{margin-left:6px}.text-button{border:0;background:none;color:var(--muted);font-size:12px;font-weight:650;padding:5px}.text-button:hover{color:var(--orange-dark)}.page-wrap{width:min(1160px,calc(100% - 48px));margin:38px auto 76px}.page-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;margin-bottom:24px}.page-heading h1{font-size:clamp(27px,4vw,36px);letter-spacing:-.045em;line-height:1.14;margin:6px 0 7px}.page-heading p{margin:0}.eyebrow{font-size:11px;letter-spacing:.11em;text-transform:uppercase;color:var(--orange-dark);font-weight:800;margin:0}.muted{color:var(--muted)}.card{background:var(--paper);border:1px solid var(--line);border-radius:16px;box-shadow:var(--shadow)}.button{display:inline-flex;justify-content:center;align-items:center;gap:7px;min-height:43px;padding:10px 15px;border-radius:11px;border:1px solid transparent;font-size:13px;font-weight:700;transition:transform .15s,background .15s}.button:hover{transform:translateY(-1px)}.button.primary{background:var(--orange);color:#fff;box-shadow:0 6px 15px #e8752426}.button.primary:hover{background:var(--orange-dark)}.button.primary:disabled{opacity:.48;cursor:not-allowed;transform:none}.button.secondary{background:#fff;color:#5e554c;border-color:var(--line)}.button.secondary:hover{border-color:#e2b188;color:var(--orange-dark)}.button.full{width:100%}.button-icon{font-size:18px;line-height:1}.stat-grid{display:grid;grid-template-columns:1.25fr 1fr 1fr;gap:15px}.stat-grid.three{grid-template-columns:1.2fr 1fr 1fr}.stat-card{min-height:135px;padding:19px 21px}.stat-orange{background:linear-gradient(135deg,#eb7b2d,#d96218);border-color:#d96218;color:#fff;position:relative;overflow:hidden}.stat-orange:after{content:"";position:absolute;width:160px;height:160px;right:-42px;top:30px;border:1px solid #ffffff38;border-radius:50%;box-shadow:0 0 0 22px #ffffff0d,0 0 0 44px #ffffff0a}.stat-label{display:flex;align-items:center;justify-content:space-between;gap:8px;color:var(--muted);font-size:12px}.stat-orange .stat-label,.stat-orange small{color:#ffeadc}.stat-label>span{font-size:16px}.stat-card>strong{display:block;font-size:clamp(21px,3vw,29px);letter-spacing:-.04em;margin:11px 0 3px;position:relative;z-index:1}.stat-card small{font-size:11px;color:var(--muted)}.mini-icon{width:28px;height:28px;border-radius:9px;background:var(--orange-soft);color:var(--orange-dark);display:grid;place-items:center}.section-block{margin-top:27px}.section-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px}.section-heading h2,.category-add h2{font-size:17px;letter-spacing:-.02em;margin:0}.section-heading p,.category-add p{font-size:12px;margin:4px 0 0}.subtle-link,.back-link{font-size:13px;color:var(--orange-dark);font-weight:700}.subtle-link:hover,.back-link:hover{text-decoration:underline}.cash-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.cash-card{padding:19px 20px;transition:transform .16s,border-color .16s}.cash-card:hover{transform:translateY(-2px);border-color:#eab489}.cash-card-top{display:flex;align-items:center;justify-content:space-between}.cash-icon{width:36px;height:36px;border-radius:11px;display:grid;place-items:center;background:var(--orange-soft);color:var(--orange-dark);font-size:17px}.arrow{color:#b6aca1}.cash-card h3{font-size:16px;margin:15px 0 2px;letter-spacing:-.02em}.cash-card .clamp{font-size:12px;margin:0 0 16px;min-height:18px}.cash-balance-label{font-size:11px;color:var(--muted)}.cash-balance{font-size:22px;letter-spacing:-.04em;display:block;margin-top:2px}.cash-card-foot{display:flex;justify-content:space-between;border-top:1px solid var(--line);padding-top:12px;margin-top:16px;color:var(--muted);font-size:11px}.cash-card-foot span:last-child{color:var(--orange-dark);font-weight:700}.empty-state{text-align:center;padding:37px 20px}.empty-icon{width:48px;height:48px;border-radius:15px;background:var(--orange-soft);color:var(--orange-dark);display:grid;place-items:center;font-size:22px;margin:0 auto 13px}.empty-state h3{margin:0 0 5px;font-size:17px}.empty-state p{font-size:13px;margin:0 0 16px}.empty-slim{padding:18px 20px;font-size:13px}.table-card{overflow:hidden}.transaction-list{padding:0 19px}.transaction-row{display:grid;grid-template-columns:40px minmax(0,1fr) auto;align-items:center;gap:12px;padding:14px 0;border-bottom:1px solid var(--line)}.transaction-row:last-child{border-bottom:0}.transaction-icon{width:38px;height:38px;border-radius:12px;display:grid;place-items:center;font-size:17px;font-weight:700}.transaction-icon.income{background:#fff0e3;color:#bd5816}.transaction-icon.expense{background:var(--orange-soft);color:var(--orange-dark)}.transaction-main{min-width:0}.transaction-main strong{font-size:13px;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.transaction-main small{display:block;font-size:11px;color:var(--muted);margin-top:3px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.amount{font-size:13px;white-space:nowrap}.amount.income{color:#bd5816}.amount.expense{color:var(--ink)}.transaction-end{text-align:right}.receipt-link{display:block;font-size:10px;color:var(--orange-dark);margin-top:4px;font-weight:650}.cash-heading{margin-top:12px}.action-pair{display:flex;gap:8px}.narrow-page{max-width:700px;margin:0 auto}.compact-heading{margin:19px 0 20px}.form-card{padding:24px}.form-stack{display:grid;gap:17px}.form-stack label{display:grid;gap:7px;font-size:12px;font-weight:700;color:#62594f}.required{color:var(--orange-dark)}.optional{font-weight:500;color:var(--muted);font-size:11px}.form-stack input:not([type=checkbox]),.form-stack select,.form-stack textarea,.category-edit input{width:100%;border:1px solid #e5ddd4;border-radius:10px;background:#fff;color:var(--ink);padding:11px 12px;outline:none;font-weight:500;font-size:14px}.form-stack input:focus,.form-stack select:focus,.form-stack textarea:focus,.category-edit input:focus{border-color:#e79a61;box-shadow:0 0 0 3px #e8752419}.form-stack input[type=file]{font-size:12px}.form-stack textarea{resize:vertical}.form-stack label small{color:var(--muted);font-size:11px;font-weight:500}.form-actions{display:flex;justify-content:flex-end;gap:9px;padding-top:3px}.back-link{display:inline-block;margin-bottom:6px}.alert{padding:12px 15px;border-radius:11px;margin-bottom:17px;font-size:13px}.alert.success{color:#236343;background:#edf7f0;border:1px solid #d5ebdb}.alert.error{color:#9e3a31;background:#fff0ee;border:1px solid #f1d6d1}.alert ul{margin:6px 0 0;padding-left:18px}.category-layout{display:grid;grid-template-columns:minmax(260px,.8fr) minmax(0,1.3fr);gap:17px;align-items:start}.category-add{padding:21px}.category-add .button{justify-self:start}.category-list{padding:20px}.category-list .section-heading{margin-bottom:11px}.category-row{display:grid;grid-template-columns:10px minmax(0,1fr) auto 30px;align-items:center;gap:10px;padding:11px 0;border-top:1px solid var(--line)}.category-dot{width:9px;height:9px;border-radius:50%;background:var(--orange)}.category-edit{display:flex;align-items:center;gap:5px;min-width:0}.category-edit input{padding:7px 9px;font-size:12px}.category-edit .text-button{white-space:nowrap}.text-button.accent{color:var(--orange-dark)}.category-count{font-size:10px;color:var(--muted);white-space:nowrap}.icon-button{border:0;width:28px;height:28px;border-radius:8px;background:transparent;font-size:21px;line-height:1}.icon-button.danger{color:#a74d42}.icon-button:hover{background:#fff0ee}.inline-note{display:block;background:var(--orange-soft);padding:10px;border-radius:9px;color:#72533e;font-size:12px;font-weight:500}.inline-note a{color:var(--orange-dark);font-weight:700;text-decoration:underline}.pagination-wrap{padding:13px 18px;border-top:1px solid var(--line);font-size:12px}.pagination-wrap nav{display:flex;justify-content:space-between;align-items:center;gap:12px}.pagination-wrap nav div:first-child{color:var(--muted)}.pagination-wrap nav div:last-child span,.pagination-wrap nav div:last-child a{display:inline-block;padding:5px 9px;margin-left:3px;border:1px solid var(--line);border-radius:7px}.auth-shell{min-height:calc(100vh - 190px);display:grid;grid-template-columns:1fr minmax(350px,.85fr);align-items:center;gap:50px;max-width:930px;margin:0 auto}.auth-aside{padding:35px 15px}.auth-aside h1{font-size:clamp(32px,5vw,48px);line-height:1.05;letter-spacing:-.055em;max-width:440px;margin:11px 0 14px}.auth-aside .eyebrow{color:var(--orange-dark)}.muted-light{color:#86796b;max-width:420px}.auth-orb{width:67px;height:67px;border-radius:22px;background:var(--orange);color:white;display:grid;place-items:center;font-size:23px;font-weight:800;margin-bottom:34px;box-shadow:0 12px 25px #e8752438}.auth-card{padding:28px}.auth-card h2{font-size:25px;letter-spacing:-.04em;margin:5px 0}.auth-card>.muted{font-size:13px;margin:0 0 21px}.auth-foot{font-size:12px;text-align:center;color:var(--muted);margin:19px 0 0}.auth-foot a{color:var(--orange-dark);font-weight:700}.check-row{display:flex!important;align-items:center;grid-template-columns:18px auto;gap:8px!important;font-size:12px!important;font-weight:500!important}.check-row input{accent-color:var(--orange)}.mobile-nav{display:none}
@media(max-width:800px){.topbar{padding:0 19px}.desktop-nav{gap:0}.desktop-nav a{padding:8px 9px}.account-name{display:none}.page-wrap{width:calc(100% - 36px);margin:28px auto 90px}.cash-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.category-layout{grid-template-columns:1fr}.auth-shell{gap:26px}.stat-grid{gap:11px}.stat-card{padding:17px}}
@media(max-width:600px){.topbar{height:65px;padding:0 15px}.brand-copy small{font-size:9px}.desktop-nav,.account-menu .text-button,.account-name{display:none}.page-wrap{width:calc(100% - 28px);margin:24px auto 92px}.page-heading{align-items:flex-start;gap:12px}.page-heading h1{font-size:28px}.page-heading .button{min-height:40px;padding:9px 11px;font-size:11px;white-space:nowrap}.stat-grid,.stat-grid.three{grid-template-columns:1fr 1fr;gap:10px}.stat-orange{grid-column:1/-1}.stat-card{min-height:116px;padding:15px}.stat-card>strong{font-size:21px}.cash-grid{grid-template-columns:1fr;gap:10px}.cash-card{padding:17px}.cash-card h3{margin-top:11px}.cash-card-foot{margin-top:13px}.section-block{margin-top:23px}.section-heading{align-items:flex-start}.section-heading h2{font-size:16px}.section-heading .subtle-link{font-size:11px;white-space:nowrap}.action-pair{width:100%;margin-top:3px}.cash-heading{display:flex;flex-direction:column;align-items:flex-start}.cash-heading .button{align-self:flex-end;margin-top:-5px}.cash-heading+.stat-grid{margin-top:5px}.transaction-list{padding:0 13px}.transaction-row{grid-template-columns:34px minmax(0,1fr) auto;gap:8px;padding:12px 0}.transaction-icon{width:32px;height:32px;border-radius:10px;font-size:15px}.transaction-main strong{font-size:12px}.transaction-main small{font-size:10px}.amount{font-size:11px}.form-card,.category-list{padding:17px}.category-row{grid-template-columns:9px minmax(0,1fr) 26px;gap:7px}.category-count{display:none}.category-edit .text-button{font-size:11px}.auth-shell{display:block;max-width:430px;min-height:unset;margin:2px auto}.auth-aside{padding:6px 4px 22px}.auth-orb{width:47px;height:47px;border-radius:15px;font-size:17px;margin:0 0 16px}.auth-aside h1{font-size:30px;max-width:340px;margin:7px 0}.auth-aside .muted-light{font-size:12px;margin:7px 0 0}.auth-card{padding:21px}.mobile-nav{position:fixed;bottom:0;left:0;right:0;height:67px;display:flex;align-items:center;justify-content:space-around;border-top:1px solid var(--line);background:rgba(255,255,255,.97);backdrop-filter:blur(12px);z-index:12}.mobile-nav a,.mobile-nav button{display:grid;justify-items:center;gap:1px;min-width:56px;background:none;border:0;text-decoration:none;color:#8d847b;font-size:9px;font-weight:600;padding:6px}.mobile-nav b{font-size:18px;line-height:1.05;font-weight:500}.mobile-nav a.active{color:var(--orange-dark)}.mobile-nav form{margin:0}}
@media(max-width:390px){.page-heading h1{font-size:25px}.page-heading .button{font-size:10px;padding:8px}.brand-copy strong{font-size:14px}.brand-copy small{font-size:8px}.stat-label{font-size:10px}.stat-card>strong{font-size:19px}.transaction-row{grid-template-columns:31px minmax(0,1fr) auto}.transaction-main small{max-width:170px}}
