:root{--ink:#183b35;--muted:#717d76;--paper:#f7f8f4;--white:#fff;--line:#e4e8e1;--green:#2f6658;--orange:#c46f45;--soft:#edf3eb;--radius:16px;font-family:Inter,"Segoe UI",sans-serif;color:var(--ink);background:var(--paper);font-synthesis:none}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{ -webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{cursor:pointer}button:disabled{opacity:.5;cursor:wait}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #b9d7be;outline-offset:3px}[hidden]{display:none!important}a{color:inherit;text-decoration:none}.brand{display:flex;align-items:center;font-size:28px;font-weight:700;letter-spacing:-1.3px}.brand-mark{background:var(--ink);color:white;width:32px;height:35px;display:grid;place-items:center;border-radius:11px 11px 11px 3px;font-family:Georgia,serif;font-size:31px;margin-right:9px;font-weight:400}.brand-dot{color:var(--orange)}.shell{display:grid;grid-template-columns:238px minmax(0,1fr);min-height:100vh}.sidebar{background:#fff;border-right:1px solid var(--line);padding:32px 22px;display:flex;flex-direction:column;position:sticky;top:0;height:100vh}.business-label{font-size:10px;letter-spacing:1.6px;font-weight:700;color:var(--muted);margin-top:44px;margin-bottom:9px}.sidebar select{width:100%;padding:11px 8px;background:var(--paper);border:1px solid var(--line);border-radius:9px;font-size:12px;color:var(--ink)}nav{display:grid;gap:7px;margin-top:28px}.nav-item{border:0;background:transparent;color:var(--muted);display:flex;align-items:center;text-align:left;border-radius:10px;padding:13px 12px;font-size:13px;font-weight:600;gap:13px;white-space:nowrap}.nav-item:hover{background:#f5f7f2;color:var(--ink)}.nav-item.active{background:var(--soft);color:var(--ink)}.nav-symbol{font-size:20px;width:21px;text-align:center;font-weight:400}.sidebar-bottom{margin-top:auto;padding-top:36px}.sidebar-bottom p{font-size:12px;line-height:1.6;color:var(--muted)}.preview-pill{font-size:10px;display:flex;align-items:center;gap:6px;font-weight:600}.preview-pill span{background:#709b68;width:6px;height:6px;border-radius:50%}.signout{border:0;background:none;padding:14px 0 0;color:var(--muted);font-size:12px}main{padding:22px 40px 24px;max-width:1500px;width:100%;margin:auto}.preview-banner{display:flex;align-items:center;gap:13px;background:#eef2e9;color:#63705d;padding:9px 14px;font-size:10px;border-radius:8px;margin-bottom:31px;line-height:1.6}.preview-banner strong{white-space:nowrap}.page-header{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:28px}.eyebrow{font-size:10px;font-weight:700;letter-spacing:1.65px;color:var(--muted);margin:0 0 11px}h1{font-size:34px;letter-spacing:-1.2px;line-height:1.2;margin:0 0 10px;font-weight:650}.page-header p:last-child{font-size:13px;color:var(--muted);margin:0}.header-actions{display:flex;gap:10px}.button{display:inline-flex;align-items:center;justify-content:center;gap:14px;background:var(--ink);color:#fff;border:1px solid var(--ink);border-radius:9px;padding:12px 17px;font-size:12px;font-weight:600;white-space:nowrap}.button:hover{background:#285047}.button.secondary{background:white;color:var(--ink);border-color:var(--line)}.button.secondary:hover{background:var(--soft)}.button.small{padding:8px 11px;font-size:11px}.button.danger{color:#9a4033;background:#fff7f4;border-color:#edd0c7}.period-bar{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:22px}.period-bar>div:first-child{display:flex;align-items:center;gap:12px}.period-caption{font-size:9px;letter-spacing:1.2px;color:var(--muted);font-weight:700}.period-bar strong{font-size:13px;font-weight:600}.period-controls{display:flex;align-items:center;gap:13px}.segmented{display:flex;padding:3px;background:#e9ede5;border-radius:8px;gap:2px}.segmented button{padding:7px 13px;border:0;background:none;font-size:11px;color:var(--muted);border-radius:6px}.segmented button.active{background:white;color:var(--ink);box-shadow:0 1px 3px #00000009}.anchor-label{font-size:10px;color:var(--muted);display:flex;align-items:center;gap:7px}.anchor-label input{font-size:11px;padding:7px 5px;border:1px solid var(--line);background:transparent;color:var(--ink);border-radius:7px;width:126px}.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin-bottom:20px}.metric{background:white;border:1px solid var(--line);padding:22px 20px;border-radius:var(--radius);min-width:0}.metric-label{font-size:11px;color:var(--muted);margin:0 0 19px;display:flex;align-items:center;justify-content:space-between;gap:10px}.metric-symbol{font-size:17px;background:var(--soft);color:var(--green);display:grid;place-items:center;width:29px;height:29px;border-radius:8px}.metric strong{font-size:29px;letter-spacing:-1px;font-weight:600;display:block;overflow-wrap:anywhere}.metric small{display:block;color:var(--muted);font-size:10px;line-height:1.6;margin-top:9px}.metric.hero{background:var(--ink);color:white;border-color:var(--ink)}.metric.hero .metric-label,.metric.hero small{color:#c5d5cc}.metric.hero .metric-symbol{background:#36584e;color:#dde8dd}.dashboard-grid{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(260px,1fr);gap:20px;margin-bottom:20px}.panel{background:white;border:1px solid var(--line);border-radius:var(--radius);padding:23px;min-width:0}.panel-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:19px}h2{font-size:16px;font-weight:650;letter-spacing:-.25px;margin:0}h3{font-size:13px;margin:0 0 10px}.panel-subtitle{font-size:11px;color:var(--muted);margin:8px 0 0;line-height:1.6}.legend{display:flex;gap:12px;font-size:9px;color:var(--muted);white-space:nowrap}.legend span{display:flex;align-items:center;gap:5px}.legend i{display:inline-block;width:6px;height:6px;background:var(--green);border-radius:50%}.legend .spend-dot{background:#d29a75}.chart{display:block;width:100%;height:200px}.empty-chart{height:200px;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;gap:10px;background:linear-gradient(0deg,#f8faf6,white);border-radius:8px}.empty-chart strong{font-size:13px;font-weight:500}.muted{color:var(--muted);font-size:12px;line-height:1.65}.empty-chart p{max-width:320px;font-size:11px;margin:0;color:var(--muted)}.invoice-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;border-bottom:1px solid var(--line);padding:4px 0 19px;margin-bottom:20px}.invoice-summary strong{font-size:25px;display:block;font-weight:600}.invoice-summary span{font-size:10px;color:var(--muted)}.outstanding strong{font-size:24px;display:block;margin-bottom:5px;letter-spacing:-.7px}.outstanding p{margin:0;color:var(--muted);font-size:10px;line-height:1.7}.panel-bottom{display:flex;justify-content:space-between;align-items:center;border-top:1px solid var(--line);margin-top:18px;padding-top:15px;color:var(--muted);font-size:10px}.text-button{background:none;border:0;color:var(--green);font-size:11px;font-weight:600;padding:4px 0}.spending-breakdown{display:grid;gap:14px;margin-top:22px}.breakdown-row{display:grid;grid-template-columns:1fr auto;gap:8px;font-size:11px}.breakdown-row strong{font-weight:600}.track{height:5px;display:flex;background:#edf0e9;border-radius:4px;overflow:hidden;margin-top:12px}.track span{background:var(--green)}.track .overhead{background:#d29a75}.attention{background:#edf2e8;border-color:#dce5d5}.attention p{font-size:12px;line-height:1.7;color:#65745f;margin-top:13px}.attention strong{font-size:26px}.table-wrap{overflow-x:auto}.records-table{width:100%;border-collapse:collapse;text-align:left;font-size:12px}.records-table th{font-size:9px;font-weight:600;letter-spacing:1px;color:var(--muted);padding:0 12px 13px 0;border-bottom:1px solid var(--line);white-space:nowrap}.records-table td{padding:16px 12px 16px 0;border-bottom:1px solid #f0f2ed;vertical-align:middle}.records-table tr:last-child td{border-bottom:0}.records-table .numeric{text-align:right;white-space:nowrap}.records-table .sub{display:block;font-size:10px;color:var(--muted);margin-top:5px;max-width:280px;overflow-wrap:anywhere}.records-table .strong{font-weight:600}.badge{display:inline-block;padding:5px 8px;background:var(--soft);color:var(--green);font-size:9px;font-weight:600;border-radius:6px;white-space:nowrap}.badge.orange{background:#fbefe4;color:#b57845}.badge.gray{background:#f0f1ed;color:var(--muted)}.badge.red{background:#fbebe5;color:#a7513d}.income-value{color:var(--green)}.expense-value{color:#9e7050}.empty-state{padding:39px 20px;text-align:center}.empty-state .empty-icon{display:grid;place-items:center;font-size:25px;color:var(--green);background:var(--soft);width:54px;height:54px;border-radius:15px;margin:0 auto 15px}.empty-state h3{font-size:16px}.empty-state p{font-size:12px;color:var(--muted);line-height:1.7;max-width:430px;margin:10px auto 20px}.notice{font-size:11px;line-height:1.7;padding:13px 15px;background:#f1f4ed;border-radius:9px;color:#697361;margin:18px 0}.message{background:#fff1e8;color:#964c30;border:1px solid #ecd2bf;border-radius:8px;padding:12px 16px;font-size:12px;line-height:1.6;margin:12px 0}.workspace-footer{display:flex;justify-content:space-between;gap:12px;font-size:9px;color:#8b958b;margin-top:28px}.page-stack{display:grid;gap:20px}.actions-cell{display:flex;gap:10px;justify-content:flex-end}.record-tools{display:flex;gap:10px;flex-wrap:wrap}.receipt-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.receipt-card{padding:15px;border:1px solid var(--line);border-radius:10px}.receipt-card strong{font-size:12px;display:block;margin-bottom:8px}.receipt-card p{font-size:10px;color:var(--muted);line-height:1.6}.receipt-preview{width:100%;max-height:300px;object-fit:contain;background:var(--paper);border-radius:9px}.ocr{font-family:monospace;white-space:pre-wrap;overflow-wrap:anywhere;font-size:11px;color:var(--muted);max-height:170px;overflow:auto;background:var(--paper);padding:12px;border-radius:8px}.welcome{min-height:100vh;padding:40px 7%;background:radial-gradient(ellipse at 85% 45%,#dfe8d9 0,transparent 55%),var(--paper)}.welcome-content{margin:100px 0 90px;max-width:800px}.welcome h1{font-family:Georgia,serif;font-weight:400;font-size:clamp(45px,7vw,85px);letter-spacing:-3px;line-height:1.1;margin:22px 0}.welcome-content>p:not(.eyebrow){font-size:18px;line-height:1.9;color:var(--muted)}.welcome .button{margin:20px 0;min-width:210px;padding:16px;font-size:14px}.welcome small{display:block;color:var(--muted);font-size:11px}.welcome footer{font-size:12px;color:var(--muted)}dialog{border:1px solid var(--line);border-radius:20px;padding:26px;width:min(580px,calc(100% - 30px));max-height:90vh;overflow:auto;color:var(--ink);box-shadow:0 22px 100px #183b3526}dialog::backdrop{background:#122f286b;backdrop-filter:blur(3px)}.dialog-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}.dialog-head h2{font-size:23px}.icon-button{border:1px solid var(--line);background:white;color:var(--muted);font-size:23px;border-radius:8px;width:33px;height:33px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}.field{display:flex;flex-direction:column;gap:7px;font-size:11px;font-weight:600}.field.full{grid-column:1/-1}.field input,.field select,.field textarea{padding:11px 10px;border:1px solid #dbe1d7;border-radius:8px;background:#fcfdfb;color:var(--ink);width:100%;font-size:13px;font-weight:400;min-width:0}.field textarea{min-height:77px;resize:vertical}.form-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:23px}.form-note{font-size:10px;line-height:1.6;color:var(--muted);margin-top:15px}.check-label{display:flex;align-items:flex-start;gap:9px;font-size:12px;line-height:1.6;margin:16px 0}.check-label input{margin-top:4px}.report-values{display:grid;grid-template-columns:1fr 1fr;gap:12px}.report-values>div{padding:16px;background:var(--paper);border-radius:9px}.report-values strong{font-size:22px;display:block;margin-top:7px}.report-values span{font-size:11px;color:var(--muted)}
@media(min-width:1400px){main{padding:26px 50px}.metrics{gap:20px}.metric{padding:26px}.metric strong{font-size:34px}.chart,.empty-chart{height:235px}}
.mobile-signout{display:none}@media(max-width:850px){.mobile-signout{display:block}}
@media(max-width:1100px){.shell{grid-template-columns:205px minmax(0,1fr)}.sidebar{padding:25px 15px}main{padding:20px 25px}.metric{padding:17px 13px}.metric strong{font-size:24px}.header-actions{gap:6px}.button{padding:11px 12px}.dashboard-grid{grid-template-columns:1.4fr 1fr}.period-caption{display:none}}
@media(max-width:850px){.shell{display:block}.sidebar{height:auto;position:relative;padding:18px 20px;border-right:0;border-bottom:1px solid var(--line);display:grid;grid-template-columns:1fr 1fr;gap:15px}.brand{font-size:24px}.brand-mark{width:28px;height:31px;font-size:27px}.business-label,.sidebar-bottom{display:none}.sidebar select{margin:0;align-self:center}nav{grid-column:1/-1;display:flex;margin:0;gap:4px;overflow-x:auto}.nav-item{font-size:11px;padding:10px 11px;gap:6px}.nav-symbol{font-size:15px;width:14px}main{padding:20px}.preview-banner{margin-bottom:25px}.dashboard-grid{grid-template-columns:1.5fr 1fr}.metrics{gap:10px}.metric{padding:16px 13px}.metric strong{font-size:24px}.metric-label{font-size:10px}.metric-symbol{width:24px;height:24px;font-size:14px}.workspace-footer{flex-wrap:wrap}.page-header h1{font-size:29px}}
@media(max-width:600px){main{padding:17px}.preview-banner{display:block;font-size:9px}.preview-banner strong{display:block;margin-bottom:2px}.page-header{align-items:flex-start;gap:10px;flex-wrap:wrap;margin-bottom:23px}.page-header>div:first-child{width:100%}.header-actions{width:100%;justify-content:flex-end}.metrics{grid-template-columns:1fr 1fr}.metric strong{font-size:27px}.metric small{font-size:9px}.period-bar{align-items:flex-start;flex-direction:column;gap:12px}.period-controls{width:100%;justify-content:space-between;gap:8px}.anchor-label{font-size:9px;gap:4px}.anchor-label input{width:115px;font-size:10px}.dashboard-grid{grid-template-columns:1fr}.panel{padding:19px}.panel-head{flex-wrap:wrap}.receipt-grid{grid-template-columns:1fr}.form-grid{grid-template-columns:1fr}.field{grid-column:1/-1}h1{font-size:28px}.workspace-footer{font-size:8px}.records-table{font-size:11px}.records-table td{padding:13px 8px 13px 0}.records-table th{font-size:8px}.welcome{padding:30px 25px}.welcome-content{margin-top:85px}.welcome h1{letter-spacing:-1.8px}.sidebar{padding:16px}.nav-item{padding:9px}.report-values{grid-template-columns:1fr 1fr}.report-values strong{font-size:20px}}
