@import url('fonts.css');
:root{--bg:#f7f8f5;--surface:#fff;--text:#29352f;--muted:#7a827b;--line:#e9ede6;--green:#315949;--green-light:#edf3ec;--peach:#f7ede0;--radius:20px;--shadow:0 4px 24px #243b2b03;color-scheme:light}
:root[data-theme=dark]{--bg:#17201b;--surface:#202b24;--text:#edf2ed;--muted:#a1afa4;--line:#344239;--green:#a1cbb1;--green-light:#2b4032;--peach:#423b2e;--shadow:none;color-scheme:dark}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font-family:'Vardags Sans',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;font-size:14px;line-height:1.55}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}button,a,input,select,summary{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{cursor:pointer}a:focus-visible,button:focus-visible,summary:focus-visible{outline:3px solid #bc925b;outline-offset:4px}h1,h2,h3,p{margin-top:0}h1{font-size:clamp(30px,3.4vw,44px);font-weight:600;letter-spacing:-1.8px;line-height:1.14;margin-bottom:12px}h2{font-size:19px;font-weight:600;letter-spacing:-.5px;margin-bottom:12px}h3{font-size:16px;font-weight:600}p{margin-bottom:16px}small,.small{font-size:12px}.muted{color:var(--muted)}.eyebrow{font-size:10px;letter-spacing:1.9px;font-weight:600;color:var(--muted);margin-bottom:14px}.grow{flex:1;min-width:0}.actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.actions.compact{font-size:12px}.text-link{font-size:12px;font-weight:600;color:var(--green)}.text-link:hover,a:hover strong{text-decoration:underline}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.skip{position:fixed;z-index:20;top:-100px;left:20px;background:var(--surface);padding:16px}.skip:focus{top:12px}
.sidebar{position:fixed;inset:0 auto 0 0;width:248px;border-right:1px solid var(--line);padding:40px 25px;background:var(--surface);display:flex;flex-direction:column}.brand{display:flex;align-items:center;gap:9px;font-size:23px;font-weight:650;letter-spacing:-1.3px;white-space:nowrap}.brand-mark{display:grid;place-items:center;font-size:24px;background:#315949;color:#fff;width:34px;height:36px;border-radius:11px 11px 11px 3px}.brand-dot{color:#9aaf8d;margin-left:-6px}.sidebar-label{font-size:7px;letter-spacing:1.2px;margin:17px 0 36px 3px}.sidebar nav{display:grid;gap:8px}.sidebar nav>a{display:flex;align-items:center;gap:15px;padding:12px 16px;border-radius:10px;color:var(--muted);font-size:13px;font-weight:500}.sidebar nav>a>span{font-size:22px;width:23px;line-height:1}.sidebar nav>a:hover,.sidebar nav>a[aria-current]{background:var(--green-light);color:var(--green)}.nav-divider{height:1px;background:var(--line);margin:18px 10px}.sidebar-bottom{margin-top:auto;font-size:10px;color:var(--muted);padding:30px 0 0}.privacy-dot{width:6px;height:6px;display:inline-block;border-radius:50%;background:#84a385;margin-right:6px}.household-pill{border:1px solid var(--line);border-radius:13px;display:flex;gap:11px;padding:12px;margin-top:18px;align-items:center}.household-pill strong{font-size:12px;font-weight:500;color:var(--text);display:block}.household-pill small{font-size:10px}.avatar{width:34px;height:34px;background:var(--peach);border-radius:50%;display:grid;place-items:center;font-size:14px;color:var(--text);flex-shrink:0}.workspace{margin-left:248px}.topbar{height:88px;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:22px;padding:0 46px}.breadcrumb{color:var(--muted);font-size:12px;flex:1}.global-search{display:flex;align-items:center;gap:10px;width:250px}.global-search>span{font-size:24px;color:var(--muted)}.global-search input{border:0;background:transparent;padding:8px 0;font-size:12px;min-height:40px}.icon-button{border:1px solid var(--line);background:var(--surface);border-radius:50%;min-width:40px;min-height:40px;display:inline-grid;place-items:center;font-size:20px;color:var(--text)}main{max-width:1510px;margin:0 auto;padding:42px 46px 32px;min-height:calc(100vh - 170px)}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:29px}.page-heading p:last-child{margin-bottom:0;font-size:13px}.button{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:44px;padding:11px 19px;border:1px solid transparent;border-radius:10px;background:var(--green);color:var(--surface);font-size:12px;font-weight:600;white-space:nowrap}.button:hover{filter:brightness(.94)}.button.secondary{background:var(--surface);border-color:var(--line);color:var(--text)}.button.danger{background:#aa4943;color:#fff}.full-width{width:100%}.text-button{border:0;background:none;color:var(--green);padding:10px 0;min-height:44px}.overview-grid{display:grid;grid-template-columns:1.65fr 1fr 1fr;gap:20px;margin-bottom:30px}.hero-card{background:#315949;color:#fff;border-radius:var(--radius);padding:25px 27px;position:relative;overflow:hidden;min-height:235px}.hero-card:after{content:'';position:absolute;right:-50px;bottom:-130px;width:240px;height:240px;border:1px solid #ffffff0a;border-radius:50%;box-shadow:0 0 0 25px #ffffff03,0 0 0 50px #ffffff03;pointer-events:none}.hero-top{display:flex;gap:12px;align-items:center;justify-content:space-between;font-size:12px;color:#e1e9df}.tag{font-size:10px;border-radius:7px;padding:5px 9px;background:var(--green-light);color:var(--green)}.hero-card .tag{background:#ffffff12;color:#e1e9df;white-space:nowrap}.hero-amount{font-size:clamp(28px,3.1vw,44px);font-weight:500;letter-spacing:-1.5px;margin-top:19px;line-height:1.2}.hero-card p{color:#b2c7b8;font-size:11px;margin:8px 0 24px}.hero-bottom{border-top:1px solid #ffffff19;padding-top:15px;display:flex;align-items:center;gap:7px;font-size:10px;color:#d5e3d8}.hero-bottom a{margin-left:auto;color:#fff}.small-dot{width:5px;height:5px;border-radius:50%;background:#b2c8a4}.metric-card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:25px 24px;box-shadow:var(--shadow);min-width:0}.metric-icon{display:grid;place-items:center;width:36px;height:36px;border-radius:11px;background:var(--green-light);color:var(--green);font-size:21px;margin-bottom:17px}.peach{background:var(--peach)!important}.metric-card p{font-size:12px;margin-bottom:8px}.metric-card h2{font-size:clamp(22px,2.25vw,31px);line-height:1.2;letter-spacing:-1px;overflow-wrap:anywhere;margin-bottom:15px}.metric-card .small{font-size:10px}.panel{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:26px;box-shadow:var(--shadow);margin-bottom:22px;min-width:0}.dashboard-columns{display:grid;grid-template-columns:1fr 1fr;gap:24px}.dashboard-columns .panel{margin-bottom:0}.dashboard-columns{margin-bottom:26px}.section-heading{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:24px}.section-heading h2{margin-bottom:5px}.section-heading p{margin:0}.budget-row{margin:24px 0}.budget-row:last-child{margin-bottom:0}.row-heading{display:flex;justify-content:space-between;gap:15px;align-items:center;margin-bottom:10px;font-size:12px}.row-heading strong{font-weight:600}.row-heading>span{font-size:11px}.budget-row small{font-size:10px}.budget-row progress{margin-bottom:4px}progress{width:100%;height:6px;border:0;background:var(--green-light);border-radius:9px;overflow:hidden;display:block;appearance:none}progress::-webkit-progress-bar{background:var(--green-light);border-radius:9px}progress::-webkit-progress-value{background:#8b9e7d;border-radius:9px}progress::-moz-progress-bar{background:#8b9e7d;border-radius:9px}progress.over::-webkit-progress-value{background:#c48c65}progress.over::-moz-progress-bar{background:#c48c65}.purchase-row{display:flex;align-items:center;gap:14px;padding:18px 0;border-bottom:1px solid var(--line);font-size:12px;min-height:74px}.purchase-row:last-child{border-bottom:0}.purchase-row strong{font-weight:550}.purchase-row small{display:block;font-size:10px;color:var(--muted);margin-top:4px}.store-icon{width:40px;height:40px;background:var(--green-light);color:var(--green);font-size:18px;border-radius:12px;display:grid;place-items:center;flex-shrink:0}.purchase-row>strong{white-space:nowrap}.tip-card{display:flex;gap:20px;align-items:center;padding:24px 27px;border-radius:15px;background:#eef0e8;border:1px solid #e7eadf}.tip-card strong{font-size:12px;color:#3f5141}.tip-card p{font-size:11px;margin:4px 0 0;color:#7c8475}.tip-icon{color:#7a8c65;font-size:29px}.tip-card .text-link{margin-left:auto;white-space:nowrap}.page-footer{padding:0 46px 24px;max-width:1510px;margin:auto;display:flex;justify-content:space-between;color:var(--muted);font-size:9px}.bottom-nav{display:none}.empty-state{text-align:center;padding:30px 10px;color:var(--muted)}.empty-state>span{font-size:36px;color:#91a18a}.empty-state h2,.empty-state h3{color:var(--text);margin:12px 0}.empty-state p{font-size:12px;max-width:340px;margin:0 auto 20px}.narrow{max-width:680px;margin:0 auto}.narrow .page-heading{margin-top:18px}.form-stack label,.line-grid label,.filter-grid label{display:block;font-size:12px;font-weight:550;margin-bottom:7px}input,select,textarea{width:100%;min-height:45px;border:1px solid var(--line);border-radius:9px;padding:11px 12px;background:var(--bg);color:var(--text);outline:none}input:focus,select:focus,textarea:focus{border-color:var(--green);box-shadow:0 0 0 3px var(--green-light)}textarea{resize:vertical}input[type=checkbox]{width:20px;min-height:20px;height:20px;accent-color:var(--green);vertical-align:middle;margin-right:8px;flex-shrink:0}input[type=file]{padding:10px;font-size:13px}.form-stack p{margin-bottom:20px}.helptext{display:block;font-size:11px;color:var(--muted);margin-top:7px}.helptext ul{padding-left:17px}.errorlist{color:#bc554b;font-size:12px;padding-left:20px}.message{padding:16px 20px;border-radius:10px;background:var(--green-light);margin-bottom:20px;font-size:13px}.message.error{background:#f9e5df;color:#8d4037}.warning,.message.warning{background:#f8eed8;color:#825f26}.inline-form{display:flex;align-items:center;gap:12px}.inline-form input{min-width:0}.scan-panel{text-align:center;padding:30px}.scan-panel>p{max-width:360px;margin:14px auto}.scan-panel .button{margin:6px;width:calc(100% - 12px);max-width:340px}.scan-illustration{height:205px;display:flex;align-items:center;justify-content:center;background:radial-gradient(ellipse at center,var(--green-light),transparent 65%);margin-bottom:20px}.paper-receipt{width:130px;padding:20px 13px 18px;border:1px solid var(--line);box-shadow:7px 10px 25px #22362a11;background:var(--surface);transform:rotate(-8deg);font-size:7px;letter-spacing:1px}.paper-receipt>span{display:block;margin-bottom:15px}.paper-receipt i{display:block;height:3px;background:var(--line);margin:12px 0;width:90%}.paper-receipt i:nth-of-type(2){width:75%}.paper-receipt b{display:flex;justify-content:space-between;border-top:1px dashed var(--muted);padding-top:12px}.camera-label{position:relative;overflow:hidden;cursor:pointer}.camera-label input{position:absolute;opacity:0;inset:0;cursor:pointer;width:100%;height:100%}.review-layout{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:24px}.review-aside .sticky{position:sticky;top:25px}.receipt-preview{width:100%;max-height:600px;object-fit:contain;margin-top:20px;border-radius:8px}.summary-row{display:flex;justify-content:space-between;gap:18px;align-items:center;padding:13px 0;border-bottom:1px solid var(--line);font-size:12px}.summary-row small{display:block}.summary-row strong{white-space:nowrap}.difference{font-weight:600;margin-bottom:16px}.check-field{display:flex;align-items:flex-start;gap:5px;font-size:12px}.review-aside .text-link{display:block;text-align:center;margin-top:16px}.line-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}.line-grid p{margin:0}.line-grid .field-name{grid-column:span 3}.line-grid .field-category,.line-grid .field-product,.line-grid .field-new_product{grid-column:span 3}.line-form.uncertain{border:1px solid #d7ae6d;background:var(--surface)}.delete-line{display:flex;align-items:center;font-size:12px;margin-top:20px;color:var(--muted)}.line-form.marked-delete{opacity:.45}.filter-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;align-items:end}.filter-grid p{margin:0}.stats-summary{grid-template-columns:repeat(3,1fr)}.bar-row{margin:22px 0}.bar-row .row-heading{margin-bottom:7px}.bar-row small{display:block;margin-top:5px;font-size:10px}.product-chips{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:24px}.pagination{display:flex;gap:18px;justify-content:center;align-items:center;padding-top:24px;font-size:12px}.pagination a{padding:12px;border:1px solid var(--line);border-radius:9px}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px}.settings-grid .panel{margin:0}.settings-link{display:flex;justify-content:space-between;align-items:center;width:100%;font-size:13px;border:0;border-bottom:1px solid var(--line);background:none;color:var(--text);padding:18px 0;text-align:left;min-height:50px}.settings-link span{color:var(--muted)}details{margin-top:20px;font-size:13px}summary{cursor:pointer;min-height:44px;padding:10px 0;font-weight:550}pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:11px;background:var(--bg);padding:16px;border-radius:10px}code{font-size:12px;overflow-wrap:anywhere}.settings-grid p{font-size:13px}
@media(min-width:1550px){main{padding-top:52px}.overview-grid{gap:24px}.hero-card{min-height:245px}.hero-amount{font-size:48px}.metric-card h2{font-size:34px}.sidebar{width:265px}.workspace{margin-left:265px}}
@media(max-width:1150px){.sidebar{width:205px;padding:30px 18px}.brand{font-size:20px}.sidebar-label{font-size:6px}.workspace{margin-left:205px}main{padding:30px 25px}.topbar{padding:0 25px}.page-heading{align-items:flex-start}.page-heading .actions{justify-content:flex-end}.overview-grid{gap:12px}.metric-card,.hero-card{padding:22px 18px}.hero-top{flex-wrap:wrap}.dashboard-columns{gap:18px}.panel{padding:22px}.review-layout{grid-template-columns:minmax(0,1fr) 285px}.tip-card .text-link{display:none}}
@media(max-width:850px){.sidebar{display:none}.workspace{margin-left:0}.topbar{height:66px;padding:0 22px}.breadcrumb{font-size:11px}.global-search{width:210px}.bottom-nav{position:fixed;z-index:10;bottom:0;left:0;right:0;padding:7px 8px calc(7px + env(safe-area-inset-bottom));background:var(--surface);border-top:1px solid var(--line);display:flex;justify-content:space-around;box-shadow:0 -5px 25px #00000003}.bottom-nav a{display:flex;flex-direction:column;align-items:center;justify-content:center;width:19%;min-height:50px;font-size:22px;color:var(--muted);line-height:1.2}.bottom-nav a span{font-size:9px;margin-top:4px}.bottom-nav .scan-nav{color:var(--green)}.scan-nav b{display:grid;place-items:center;width:42px;height:36px;background:var(--green);color:var(--surface);border-radius:12px;font-size:28px;font-weight:400}.page-footer{padding-bottom:100px}.review-layout{grid-template-columns:1fr}.review-aside{order:-1}.review-aside .receipt-preview{display:none}.review-aside .sticky{position:static}.filter-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:600px){body{font-size:14px}.topbar .breadcrumb{max-width:110px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.topbar{gap:12px;padding:0 18px}.global-search{flex:1;min-width:0;width:auto}.global-search input{font-size:11px;min-width:0}.icon-button{min-width:38px;min-height:38px}main{padding:29px 18px 24px}.page-heading{display:block;margin-bottom:24px}.page-heading h1{font-size:34px}.page-heading .actions{justify-content:flex-start;margin-top:21px;gap:9px}.page-heading>.button{margin-top:18px}.page-heading p:last-child{font-size:12px}.overview-grid{grid-template-columns:1fr 1fr;gap:12px;margin-bottom:24px}.hero-card{grid-column:span 2;min-height:210px;padding:24px}.hero-top{flex-wrap:nowrap}.hero-amount{font-size:43px}.hero-card p{margin-bottom:18px}.hero-bottom{font-size:10px}.metric-card{padding:20px 17px;border-radius:15px}.metric-card h2{font-size:23px}.metric-icon{width:30px;height:30px;font-size:19px;margin-bottom:12px}.metric-card p{font-size:11px}.metric-card .text-link{font-size:10px}.dashboard-columns,.settings-grid{grid-template-columns:1fr;gap:20px}.panel{padding:22px 20px;border-radius:16px}.section-heading{margin-bottom:16px}.section-heading h2{font-size:18px}.section-heading .text-link{font-size:10px}.section-heading p{font-size:11px}.tip-card{padding:20px;gap:14px}.tip-card p{font-size:10px}.tip-card strong{font-size:11px}.page-footer{padding-left:20px;padding-right:20px;font-size:8px}.purchase-row{gap:11px;font-size:12px}.purchase-row small{font-size:10px}.purchase-row .actions{gap:9px}.purchase-row .actions a{padding:8px 0}.row-heading{flex-wrap:wrap;gap:4px}.row-heading>span{font-size:10px}.budget-row{margin:23px 0}.form-stack input,.form-stack select,.line-grid input,.line-grid select,.filter-grid input,.filter-grid select{font-size:16px}.scan-panel{padding:22px 14px}.line-grid{gap:12px;grid-template-columns:1fr 1fr}.line-grid .field-name,.line-grid .field-category,.line-grid .field-product,.line-grid .field-new_product{grid-column:span 2}.line-grid .field-kind{grid-column:span 2}.stats-summary{grid-template-columns:1fr 1fr}.stats-summary .metric-card:first-child{grid-column:span 2}.filter-grid{gap:12px}.filter-grid .button{width:100%}.section-heading .inline-form{flex-wrap:wrap}.section-heading:has(.inline-form){flex-wrap:wrap}.summary-row{gap:10px}.narrow .panel{margin-bottom:20px}}
.filter-grid>p{min-width:0}.filter-grid input,.filter-grid select{min-width:0;max-width:100%}.purchase-row .grow{overflow-wrap:anywhere}.stats-summary h2{overflow-wrap:anywhere}
/* Vardagskoll 2: compact review and resumable questions. */
.review-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 22px}.review-toolbar strong,.review-toolbar #autosave-status{display:block}.review-toolbar #autosave-status{margin-top:4px}.compact-line{padding:18px 20px;margin-bottom:12px;border-radius:14px;scroll-margin-top:20px}.compact-line.needs-review{border-color:#c49b58}.line-heading{display:flex;align-items:center;gap:10px;margin-bottom:13px}.line-badge{font-size:10px;letter-spacing:.7px;text-transform:uppercase;background:var(--green-light);color:var(--green);padding:4px 8px;border-radius:6px}.needs-review .line-badge{background:#f8eed8;color:#825f26}.compact-grid{display:grid;grid-template-columns:minmax(0,1fr) 115px;gap:12px}.compact-grid p{margin:0;min-width:0}.compact-grid label{display:block;font-size:11px;margin-bottom:5px}.compact-grid .category-field{grid-column:1/-1}.compact-grid input,.compact-grid select{min-width:0}.line-controls{display:flex;align-items:center;gap:14px;margin-top:12px}.small-button{min-height:36px;padding:7px 12px}.line-controls .text-button{font-size:12px}.line-details{margin-top:5px;border-top:1px solid var(--line)}.line-details summary{font-size:11px;color:var(--muted)}.line-details .field-apply_to_history label{display:inline}.receipt-fields{margin-top:0}.receipt-fields summary{font-size:13px}.review-aside .button+.button{margin-top:10px}.known-hidden .line-form:not(.needs-review):not(.adjustment-line){display:none}.adjustment-tools{margin-top:16px;border-top:1px solid var(--line);padding-top:14px}.allocation-target{display:grid;grid-template-columns:22px minmax(0,1fr) 100px;gap:10px;align-items:center;margin:9px 0}.allocation-target label{font-size:12px;overflow-wrap:anywhere}.allocation-target input[type=checkbox]{margin:0}.allocation-target input[type=text]{min-height:38px;padding:7px 9px}.allocation-target small{display:block;color:var(--muted)}.allocation-tools .row-heading{margin-top:15px}.net-amount{margin-left:auto}.review-toolbar .save-error{color:#b54f40}.followup-banner{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:19px 23px;border:1px solid #dbc69b;background:var(--surface);border-radius:15px;margin-bottom:24px}.followup-banner p{margin:4px 0 0}.forecast-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-bottom:25px}.forecast-grid .panel{margin:0;padding:18px}.forecast-grid strong{display:block;font-size:22px;margin-top:6px}.form-error{color:#b54f40}.adjustment-line .category-field{display:none}.adjustment-line .confirm-line{display:none}.deferred .line-badge{background:var(--peach);color:var(--text)}[hidden]{display:none!important}
@media(max-width:600px){.compact-grid{grid-template-columns:minmax(0,1fr) 105px}.compact-grid input,.compact-grid select{font-size:16px}.review-toolbar{align-items:flex-start;flex-direction:column}.review-toolbar .actions{gap:8px}.compact-line{padding:16px}.line-controls{gap:10px;flex-wrap:wrap}.review-aside{order:initial}.review-aside .sticky{margin-top:15px}.line-reason{font-size:10px}.allocation-target{grid-template-columns:20px minmax(0,1fr) 86px}.allocation-target input[type=text]{font-size:16px}.forecast-grid{grid-template-columns:1fr}.followup-banner{align-items:flex-start}.review-layout{gap:5px}}

.skip:not(:focus){width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
/* Phone is the primary interface. Desktop keeps the full working overview. */
.mobile-only,.mobile-search{display:none}.filter-disclosure{margin:0}.filter-disclosure>summary{display:none}
@media(max-width:600px){
 .mobile-only{display:block}.mobile-search{display:inline-grid}.global-search{display:none}.topbar{height:calc(58px + env(safe-area-inset-top));padding-top:env(safe-area-inset-top)}.topbar .breadcrumb{max-width:none;font-size:12px}.topbar .icon-button{min-width:42px;min-height:42px}.page-footer{display:none}main{padding:22px 16px 105px}input,select,textarea,.inline-form input,.global-search input{font-size:16px}.button,.text-button,.small-button{min-height:44px}.home-page .page-heading{margin-bottom:18px}.home-page .page-heading h1{font-size:30px;margin-bottom:6px}.home-page .page-heading .eyebrow{display:none}.home-page .page-heading .muted{font-size:12px}.home-page .page-heading .actions{margin-top:16px;display:grid;grid-template-columns:1fr 1.3fr;gap:9px}.home-page .hero-card{min-height:170px;padding:20px}.home-page .hero-amount{font-size:39px;margin-top:14px}.home-page .hero-card p{margin-bottom:12px}.home-page .hero-bottom{padding-top:11px}.home-page .overview-grid{margin-bottom:14px}.home-page .metric-card{padding:15px}.home-page .metric-icon{display:none}.home-page .metric-card h2{font-size:22px;margin-bottom:7px}.home-page .metric-card .small{display:none}.home-page .forecast-grid,.home-page .tip-card{display:none}.mobile-forecast{margin:0 0 15px;border-bottom:1px solid var(--line);font-size:12px}.mobile-forecast summary{color:var(--muted)}.mobile-home-tabs{display:flex;gap:3px;background:var(--green-light);padding:4px;border-radius:11px;margin:18px 0 15px}.mobile-home-tabs button{flex:1;border:0;background:none;color:var(--muted);font-size:11px;min-height:44px;padding:7px 4px;border-radius:8px}.mobile-home-tabs button[aria-selected=true]{background:var(--surface);color:var(--green);box-shadow:0 1px 5px #00000008;font-weight:600}.home-page .home-pane{display:none;padding:19px 18px}.home-page .home-pane.mobile-active{display:block}.home-page .dashboard-columns{display:contents}.home-pane .bar-row{margin:21px 0}.home-pane .bar-row .row-heading>span{font-size:13px}.home-pane .bar-row .row-heading strong{font-size:13px}.home-pane .bar-row a{font-size:13px;display:block;min-height:30px}.followup-banner{padding:14px 16px}.followup-banner .button{font-size:11px;padding:8px 10px}.filter-disclosure{background:var(--surface);border:1px solid var(--line);border-radius:14px;margin-bottom:18px}.filter-disclosure>summary{display:block;padding:14px 17px;font-size:12px;color:var(--green)}.filter-disclosure .filter-grid{border:0;margin:0;padding:14px 17px}.scan-panel .scan-illustration{height:135px;margin-bottom:10px}.scan-panel .paper-receipt{transform:rotate(-5deg) scale(.8)}.scan-panel .camera-label{min-height:54px;font-size:15px}.scan-panel .camera-label.secondary{min-height:44px;font-size:13px}.scan-panel[aria-busy=true] .camera-label{display:none}.scan-panel[aria-busy=true] .paper-receipt{animation:scan-pulse 1.4s ease-in-out infinite}.scan-panel[aria-busy=true] #scan-status{font-size:14px;color:var(--green)}
 .review-page main{padding-top:17px;padding-bottom:calc(100px + env(safe-area-inset-bottom))}.review-page .bottom-nav{display:none}.review-page .page-heading{display:flex;align-items:center;gap:10px;margin-bottom:17px}.review-page .page-heading .eyebrow{display:none}.review-page .page-heading h1{font-size:27px;margin-bottom:5px}.review-page .page-heading p:last-child{font-size:11px;max-width:240px}.review-page .page-heading>.button{margin-top:0;padding:9px;font-size:10px;white-space:normal;min-width:67px;max-width:78px}.review-page .review-toolbar{background:none;border:0;border-radius:0;box-shadow:none;padding:0 0 13px;margin-bottom:11px;display:flex;flex-direction:row;align-items:center;gap:8px}.review-toolbar strong{font-size:12px}.review-toolbar #autosave-status{font-size:10px;max-width:240px}.review-toolbar #next-question,.review-toolbar #toggle-known{display:none}.review-toolbar #mobile-overview{min-height:40px;padding:7px 10px;font-size:11px}.review-page .receipt-fields{padding:6px 14px;margin-bottom:14px}.review-page .receipt-fields summary{font-size:12px}.review-page .message{padding:12px 14px;font-size:12px}.mobile-wizard #line-forms .line-form{display:none}.mobile-wizard #line-forms .line-form.mobile-current{display:block}.mobile-wizard.mobile-summary #line-forms{display:none}.mobile-wizard:not(.mobile-summary) .review-aside{display:none}.mobile-wizard:not(.mobile-summary) #add-line{display:none}.mobile-wizard .line-controls{display:none}.mobile-wizard .compact-line{border:0;border-radius:17px;padding:20px 18px;box-shadow:0 3px 18px #243b2b08}.mobile-wizard .line-heading{margin-bottom:19px}.mobile-wizard .compact-grid{grid-template-columns:minmax(0,1fr) 100px;gap:17px 12px}.mobile-wizard .compact-grid input{background:var(--bg);min-height:49px}.mobile-wizard .category-field select{min-height:53px;border-color:var(--green);font-size:16px}.mobile-wizard .compact-grid .category-field{margin-top:3px}.mobile-wizard .compact-grid label{font-size:12px}.mobile-wizard .line-details{margin-top:20px}.mobile-wizard .line-details summary{font-size:12px;min-height:44px}.mobile-wizard .review-aside .button{display:none}.mobile-wizard .review-aside .receipt-preview{display:none}.mobile-wizard .review-aside .sticky{padding:17px;margin-top:10px}.mobile-wizard .review-aside h2{display:none}.mobile-wizard .review-aside .summary-row{font-size:12px}.mobile-review-actions{position:fixed;bottom:0;left:0;right:0;z-index:20;display:flex;gap:10px;padding:12px 16px calc(12px + env(safe-area-inset-bottom));background:var(--surface);border-top:1px solid var(--line);box-shadow:0 -4px 18px #00000004}.mobile-review-actions .button{min-height:50px;flex:1;font-size:14px}.mobile-review-actions .button:first-child{flex:1.6}.mobile-review-actions #mobile-publish{flex:1.6}.mobile-review-actions #mobile-save-draft{font-size:12px}.mobile-summary #mobile-confirm,.mobile-summary #mobile-defer{display:none}.mobile-summary #mobile-publish,.mobile-summary #mobile-save-draft{display:inline-flex}.mobile-overview-row{display:flex;align-items:center;justify-content:space-between;gap:12px;border:0;border-bottom:1px solid var(--line);background:none;color:var(--text);width:100%;padding:15px 0;text-align:left;min-height:64px;font-size:13px}.mobile-overview-row:last-child{border:0}.mobile-overview-row span{min-width:0;overflow-wrap:anywhere}.mobile-overview-row small{display:block;color:var(--muted);font-size:11px;margin-top:3px}.mobile-overview-row strong{white-space:nowrap;font-size:13px}#mobile-receipt-overview{padding:19px 18px;margin-bottom:15px}#mobile-receipt-overview .section-heading{margin-bottom:2px}.mobile-overview-row.is-pending small{color:#9b722e}
}
@keyframes scan-pulse{50%{opacity:.45;transform:rotate(-5deg) scale(.76)}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation:none!important}}
@media(max-width:600px){
 :root:not([data-theme=dark]){--muted:#68746b}
 .home-page .page-heading>div>p.muted{display:none}.home-page .overview-grid>.metric-card{display:none}.home-page .hero-card>p,.home-page .hero-bottom{display:none}.home-page .hero-card{min-height:0}.mobile-hero-budget{display:flex;gap:35px;border-top:1px solid #ffffff24;margin-top:18px;padding-top:13px}.mobile-hero-budget>div{flex:1}.mobile-hero-budget small{display:block;font-size:11px;color:#d7e4d9;margin-bottom:3px}.mobile-hero-budget strong{font-size:18px;font-weight:550;white-space:nowrap}.mobile-hero-budget a{font-size:13px}.home-page .followup-banner strong{font-size:13px}.home-page .followup-banner p{font-size:11px}.review-page.mobile-summary .review-aside{display:block}.mobile-summary.balanced .review-aside{display:none}.mobile-summary .review-aside .sticky>p.small,.mobile-summary .review-aside #save-hint{display:none}.mobile-summary #mobile-receipt-overview .section-heading{margin-bottom:7px}.mobile-summary #mobile-receipt-overview .section-heading h2{font-size:19px}.mobile-summary #mobile-purchase-total{font-size:18px;white-space:nowrap}.mobile-summary #mobile-overview-hint{margin-bottom:3px}.mobile-wizard .review-aside .check-field{font-size:12px;margin:12px 0 0}.mobile-wizard .review-aside .difference{margin-bottom:5px}.scan-panel .scan-illustration{display:none}.scan-panel{padding:26px 18px}.scan-panel h2{font-size:21px}.scan-panel[aria-busy=true]:before{content:'';display:block;width:32px;height:32px;border:3px solid var(--line);border-top-color:var(--green);border-radius:50%;margin:6px auto 20px;animation:scan-spin .9s linear infinite}
}
@keyframes scan-spin{to{transform:rotate(360deg)}}

.line-grid .field-spending_category{grid-column:1/-1}.spending-note{margin:12px 0 0;overflow-wrap:anywhere}

.receipt-ownership label,.line-attribution label{display:block;font-size:12px;font-weight:550;margin-bottom:7px}.receipt-ownership p{margin:0 0 12px}.line-attribution select{font-size:16px}.budget-warning{color:#a84737}.budget-tree-node{min-width:0;padding:12px 0}.budget-children>.budget-tree-node{margin-left:10px;padding-left:14px;border-left:2px solid var(--line)}.budget-tree-node .summary-row{flex-wrap:wrap}.budget-tree-node .actions{flex-wrap:wrap;font-size:12px}.over-tag{background:#f8e0d7;color:#8d4037}.budget-categories label{display:flex;gap:8px;align-items:center;padding:7px 0;font-weight:400}.budget-categories input{width:20px;flex-shrink:0}.budget-categories{max-height:330px;overflow:auto}.budget-over>progress{accent-color:#b54f40}@media(max-width:600px){.budget-tree-node .actions a{padding:10px 0}.budget-children>.budget-tree-node{margin-left:3px;padding-left:10px}.receipt-ownership{padding:16px}.receipt-ownership select{font-size:16px}}

.savings-grid {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:20px}.savings-card {padding:16px 0;min-width:0}.savings-card + .savings-card {border-top:1px solid var(--border,#e5e7eb)}.savings-card .row-heading strong {overflow-wrap:anywhere}.savings-totals {display:flex;flex-wrap:wrap;gap:20px;margin:16px 0}.savings-totals > div {display:flex;flex-direction:column;gap:5px;flex:1;min-width:130px}.savings-totals strong {font-size:1.65rem}.savings-home {margin:20px 0}.savings-home summary {min-height:44px;cursor:pointer}.savings-home .section-heading {flex-wrap:wrap}.savings-card .button {min-height:44px}

.savings-group {min-width:0;padding:16px 0}.savings-group strong {overflow-wrap:anywhere}.savings-children {margin-top:16px}.savings-children > summary {min-height:44px;cursor:pointer}.savings-children > .savings-card,.savings-children > .savings-group {padding:16px 12px;border-left:2px solid var(--border,#e5e7eb);margin-left:4px}.savings-form input[type=checkbox] {width:auto;min-width:22px;min-height:22px}.savings-form [data-savings-field=is_group] {display:flex;gap:12px;align-items:center;flex-wrap:wrap}

.category-search {margin-bottom:18px}.category-node {min-width:0;border-bottom:1px solid var(--line)}.category-node:last-child {border-bottom:0}.category-node>summary,.category-leaf-heading {min-height:64px;padding:9px 0;display:flex;align-items:center;gap:8px}.category-node>summary {cursor:pointer;list-style:none}.category-node>summary::before {content:'▸';color:var(--muted);flex-shrink:0}.category-node[open]>summary::before {content:'▾'}.category-title {flex:1;min-width:0;overflow-wrap:anywhere}.category-title small {display:block;margin-top:3px}.category-node-tools {display:flex;flex-shrink:0;gap:2px}.category-icon {display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;border:0;border-radius:9px;background:transparent;color:var(--green);font-size:21px;cursor:pointer}.category-icon:hover {background:var(--green-light)}.category-children {margin:0 0 8px 9px;padding-left:12px;border-left:2px solid var(--line)}.category-focused {background:var(--green-light);border-radius:9px}.category-dialog {width:min(440px,calc(100% - 24px));max-height:calc(100dvh - 24px);overflow:auto;margin:auto;padding:24px;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);color:var(--text);box-shadow:0 20px 80px #0003}.category-dialog::backdrop {background:#10251e80}.category-dialog h2 {margin:0}.category-dialog .actions {flex-wrap:wrap}.category-dialog label {display:block;margin-bottom:7px}.inline-category-add {font-size:12px;padding:8px 0;min-height:44px}.category-field .inline-category-add {margin-top:2px}@media(max-width:600px){.category-tree {padding:12px}.category-node-tools {gap:0}.category-children {margin-left:3px;padding-left:8px}.category-dialog {padding:18px}.category-dialog input,.category-dialog select {font-size:16px}}

.category-node>summary::-webkit-details-marker {display:none}

.category-node>summary::before,.category-node[open]>summary::before {content:none}.category-chevron {width:16px;height:16px;flex-shrink:0;color:var(--muted)}.category-node[open]>summary>.category-chevron {transform:rotate(90deg)}.category-leaf-heading::before {content:'';width:16px;flex-shrink:0}.category-icon svg {width:19px;height:19px}

.category-title {display:flex;align-items:center;flex-wrap:wrap;gap:6px}.category-title>strong {min-width:0;overflow-wrap:anywhere}.category-title>small {flex-basis:100%}.category-count {font-size:10px;line-height:1;min-width:18px;padding:4px 5px;text-align:center;border-radius:8px;background:var(--green-light);color:var(--green)}

.category-usage{display:block;font-size:.73rem;font-weight:400;line-height:1.35;margin-top:.2rem}
.category-title:has(.category-usage){display:block}
.category-settings section>p:first-of-type{margin-top:.7rem}
.usage-targets{max-height:20rem;overflow:auto;border:1px solid var(--line);border-radius:12px;margin-top:.6rem;padding:.4rem .65rem}
.usage-targets label{display:flex;align-items:center;gap:.65rem;min-height:44px;font-weight:400;overflow-wrap:anywhere}
.usage-targets input[type=checkbox]{width:20px;height:20px;flex:0 0 20px}
