@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');
.item-source-preview{display:block;max-width:100%;max-height:65px;object-fit:contain;object-position:left;margin:10px 0;border-radius:4px;background:#f2f2e9}
.receipt-item{padding:14px 0;border-bottom:1px solid var(--line);margin-bottom:10px}.receipt-line-options{display:flex;flex-wrap:wrap;gap:10px}.receipt-line-options label{display:flex;flex-direction:column;gap:5px;font-size:11px;flex:1;min-width:80px}.receipt-line-options input,.receipt-line-options select{width:100%;min-width:0;font-size:12px;padding:9px}.receipt-totals{margin-top:18px;padding:18px;background:#f3f5ee;border-radius:10px;font-size:12px}.receipt-totals>div{display:flex;justify-content:space-between;gap:15px;padding:6px 0}.receipt-totals p{line-height:1.8;margin-top:10px}.receipt-match{color:#315c37}.review-check{font-size:11px;display:flex;align-items:center;gap:8px;margin-top:12px;line-height:1.7}.review-check input{width:18px;height:18px;flex-shrink:0}
.ocr-item-note{font-size:11px;line-height:1.7;color:var(--muted);margin:0 0 9px;overflow-wrap:anywhere}.ocr-item-note strong{font-weight:500}
.receipt-file-label{display:block;font-weight:600;font-size:12px;margin-bottom:10px}.receipt-file-input{display:block;width:100%;max-width:420px;margin:0 auto;text-align:left;background:#fff;font-size:12px;padding:7px}.receipt-file-input::file-selector-button{border:0;border-radius:6px;background:#244d40;color:#fff;padding:11px 13px;font:inherit;margin-right:12px;cursor:pointer}.scan-feedback{margin-top:20px;padding:18px;background:#f1f5e8;border-radius:12px;border:1px solid #dce5cf}.scan-feedback.scan-error{background:#fff5ec;border-color:#e5cebb}.scan-file{display:flex;align-items:center;gap:13px;min-width:0}.scan-file>div{min-width:0}.scan-file strong{display:block;overflow-wrap:anywhere;font-size:12px}.scan-file small{display:block;margin-top:6px;font-size:10px}.scan-preview{width:68px;height:82px;object-fit:contain;background:#fff;border-radius:6px;flex-shrink:0}.scan-message{font-size:12px;line-height:1.8;margin:15px 0 0}.scan-feedback .actions:empty{display:none}.scan-feedback small{font-size:11px}
:root{--bg:#f7f8f4;--ink:#243b33;--muted:#7c867f;--green:#244d40;--lime:#e7efc2;--line:#e7eae3;--orange:#b57644}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:14px 'DM Sans',sans-serif}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{cursor:pointer}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible{outline:3px solid #86ae7a;outline-offset:3px}button{border:0}h1,h2,h3,p{margin:0}h1,h2,h3{font-family:Manrope,sans-serif}h1{font-size:32px;letter-spacing:-1.1px;font-weight:800}h2{font-size:18px;letter-spacing:-.4px}h3{font-size:15px}small{font-size:12px;color:var(--muted)}.shell{display:flex;min-height:100vh}.sidebar{width:236px;position:fixed;inset:0 auto 0 0;background:#fff;border-right:1px solid var(--line);padding:38px 25px;display:flex;flex-direction:column}.brand{display:flex;align-items:center;gap:9px;font-size:29px;font-weight:700;letter-spacing:-1.5px}.brand-icon{width:32px;height:35px;border-radius:9px;background:var(--green);color:#fff;text-align:center;line-height:30px;font-size:27px;position:relative;font-weight:500}.brand-icon span{position:absolute;font-size:13px;color:var(--lime);right:2px;bottom:-8px}.brand-dot{color:#9eae74;margin-left:-9px}.tagline{font-size:10px;color:var(--muted);margin:13px 0 40px}.nav-item{display:flex;align-items:center;gap:13px;padding:14px 16px;margin-bottom:7px;border-radius:11px;color:#78827c;font-weight:500}.nav-item.active{background:var(--green);color:#fff}.nav-item svg{width:20px;height:20px}.nav-count{margin-left:auto;background:#ffffff20;border-radius:5px;padding:1px 6px;font-size:11px}.side-bottom{margin-top:auto;background:#f3f5ec;border-radius:14px;padding:20px 16px}.side-bottom .leaf{font-size:28px;color:#78915b}.side-bottom h3{margin:9px 0}.side-bottom p{font-size:12px;line-height:1.7;color:var(--muted)}.text-button{background:none;color:var(--green);padding:0;font-weight:600}.side-bottom button{border-top:1px solid #dfe5d5;margin-top:18px;padding-top:16px;width:100%;text-align:left;font-size:12px}.side-bottom button span{float:right}.main-shell{margin-left:236px;flex:1;min-width:0}.topbar{height:84px;padding:0 42px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;background:#fafbf8}.breadcrumb{font-size:12px;color:var(--muted)}.top-actions{display:flex;align-items:center;gap:20px}.local-status{font-size:11px;color:var(--muted)}.local-status i{display:inline-block;background:#7c9a67;width:6px;height:6px;border-radius:50%;margin-right:6px}.avatar{width:35px;height:35px;border:1px solid #dce3d4;border-radius:50%;background:#e9eddf;color:var(--green);font-weight:600}main{padding:34px 42px;max-width:1440px;margin:auto}.page-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;margin-bottom:25px}.eyebrow{font-size:11px;text-transform:uppercase;letter-spacing:1.5px;color:#8a947e;margin-bottom:8px}.subtitle{color:var(--muted);margin-top:9px;font-size:13px;line-height:1.7}.btn{padding:12px 18px;border-radius:9px;background:var(--green);color:#fff;font-size:12px;font-weight:600;display:inline-flex;gap:9px;align-items:center;justify-content:center;white-space:nowrap}.btn svg{width:17px;height:17px}.btn.secondary{background:#fff;border:1px solid #dfe5dc;color:var(--ink)}.btn.soft{background:var(--lime);color:var(--green)}.btn.danger{background:#a54536}.actions{display:flex;gap:10px;flex-wrap:wrap}.demo-strip{font-size:11px;color:#7b8067;display:flex;gap:10px;align-items:center;justify-content:space-between;background:#eef1e3;padding:10px 14px;border-radius:8px;margin-bottom:23px;line-height:1.5}.demo-strip button{background:none;color:var(--green);font-size:11px;text-decoration:underline;white-space:nowrap}.hero{display:grid;grid-template-columns:1.6fr 1fr;background:var(--green);border-radius:18px;overflow:hidden;color:#fff;margin-bottom:23px;min-height:200px}.hero-copy{padding:29px 30px;z-index:1}.hero .eyebrow{color:#bbcba9;font-size:10px}.hero h2{font-size:26px;line-height:1.35;letter-spacing:-.7px;max-width:340px}.hero p{font-size:12px;color:#bed0c5;line-height:1.8;margin:12px 0 18px;max-width:360px}.hero-art{position:relative;min-height:200px;display:flex;align-items:center;justify-content:center;background:radial-gradient(ellipse at bottom,#52714d77,transparent 70%)}.grocery-bag{position:relative;width:125px;height:130px;background:#d8bc83;border-radius:5px 5px 24px 24px;transform:rotate(-9deg);box-shadow:15px 20px 35px #152f3530;margin-top:32px}.grocery-bag:before{content:'';position:absolute;width:48px;height:42px;border:7px solid #b9995f;border-bottom:0;border-radius:30px 30px 0 0;left:32px;top:-23px}.grocery-bag:after{content:'✓';position:absolute;inset:40px 0 0;text-align:center;color:#345743;font-size:50px}.produce{position:absolute;font-size:55px;top:9px;left:40px;transform:rotate(-18deg);filter:drop-shadow(2px 6px 3px #173b3030)}.produce.two{left:100px;top:0;transform:rotate(17deg)}.art-label{position:absolute;right:18px;bottom:20px;background:#fcfff4;color:var(--green);border-radius:10px;padding:10px 13px;box-shadow:0 4px 18px #0001;font-size:10px;transform:rotate(6deg)}.art-label strong{display:block;font-size:13px;margin-top:4px}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-bottom:25px}.stat{background:#fff;border:1px solid var(--line);border-radius:13px;padding:20px}.stat-top{display:flex;justify-content:space-between;align-items:center;color:var(--muted);font-size:12px}.stat-icon{background:#f3f5ee;border-radius:8px;padding:7px;display:flex;color:#829473}.stat-icon svg{width:17px;height:17px}.stat-value{font-size:27px;font-weight:700;margin:12px 0 7px;letter-spacing:-.6px}.stat small{font-size:10px}.progress{height:5px;background:#eff1e9;border-radius:5px;overflow:hidden;margin:12px 0}.progress>span{display:block;height:100%;background:#8fa977;border-radius:5px}.grid-main{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(260px,1fr);gap:22px;align-items:start}.panel{background:#fff;border:1px solid var(--line);border-radius:14px;overflow:hidden;margin-bottom:22px}.panel-head{padding:21px 23px;display:flex;align-items:center;justify-content:space-between;gap:10px}.panel-head a,.panel-head button{font-size:11px}.panel-head p{font-size:11px;color:var(--muted);margin-top:5px}.list-row{display:flex;gap:13px;align-items:center;padding:16px 23px;border-top:1px solid #f0f2ec}.item-icon{font-size:22px;background:#f5f6f0;width:41px;height:41px;display:flex;align-items:center;justify-content:center;border-radius:10px;flex-shrink:0}.item-info{flex:1;min-width:0}.item-info strong{font-weight:500;font-size:13px;display:block;overflow-wrap:anywhere}.item-info small{font-size:10px;display:block;margin-top:5px}.item-price{text-align:right;white-space:nowrap;font-size:12px;font-weight:600}.item-price small{display:block;font-size:10px;font-weight:400;margin-top:4px}.check{appearance:none;width:19px;height:19px;border:1.5px solid #d6decf;border-radius:6px;background:#fff;flex-shrink:0;cursor:pointer;margin:0}.check:checked{background:var(--green);border-color:var(--green)}.check:checked:after{content:'✓';color:#fff;display:block;text-align:center;font-size:13px}.checked .item-info strong{text-decoration:line-through;color:var(--muted)}.pill{display:inline-block;background:#f0f4e5;color:#74825c;font-size:9px;border-radius:5px;padding:4px 7px}.pill.warning{background:#fcf1e4;color:#ac7841}.pill.gray{background:#f0f2ef;color:#858c84}.panel-foot{padding:15px 23px;background:#fcfcf9;border-top:1px solid var(--line);font-size:11px;display:flex;justify-content:space-between;align-items:center;gap:10px}.insight{padding:0 23px 19px}.insight-entry{padding:16px 0;border-top:1px solid var(--line);display:flex;gap:12px}.insight-entry>span{background:#f2f5e9;width:32px;height:32px;border-radius:9px;display:flex;align-items:center;justify-content:center;flex-shrink:0}.insight-entry strong{font-size:12px;font-weight:600}.insight-entry p{font-size:11px;line-height:1.8;color:var(--muted);margin-top:5px}.chart{padding:0 23px 21px}.bar-row{margin:15px 0}.bar-meta{display:flex;justify-content:space-between;font-size:11px;margin-bottom:8px}.bar-track{height:7px;background:#f1f3ec;border-radius:6px;overflow:hidden}.bar-track span{height:100%;display:block;background:#8ca67b;border-radius:6px}.bar-row:nth-child(2) .bar-track span{background:#b9c993}.bar-row:nth-child(3) .bar-track span{background:#d4c69c}.bar-row:nth-child(4) .bar-track span{background:#a4b8b0}.muted{color:var(--muted)}.tabs{display:flex;gap:8px;margin:20px 0;flex-wrap:wrap}.tab{background:transparent;padding:9px 15px;border:1px solid var(--line);border-radius:8px;color:var(--muted);font-size:12px}.tab.active{background:var(--green);color:white;border-color:var(--green)}.search{display:flex;gap:12px;margin-bottom:18px}.search input{flex:1;min-width:0}.field,input,select,textarea{padding:12px;border:1px solid #dce2d7;background:#fff;border-radius:8px;color:var(--ink)}input:focus,select:focus,textarea:focus{outline:2px solid #9db78a;outline-offset:1px}.empty{text-align:center;padding:45px 24px;color:var(--muted);line-height:1.8}.empty span{font-size:36px;display:block;margin-bottom:12px}.empty strong{display:block;color:var(--ink);font-size:16px;margin-bottom:7px}.empty .btn{margin-top:16px}.remove{background:none;color:#a4aba1;font-size:19px;padding:9px}.upload-zone{border:1.5px dashed #c8d3bc;padding:32px 24px;text-align:center;border-radius:13px;background:#fafcf6;line-height:1.8}.upload-zone .upload-symbol{display:block;font-size:34px;color:#77925e;margin-bottom:12px}.upload-zone p{color:var(--muted);font-size:12px;margin:9px auto 20px;max-width:380px}.note{font-size:11px;color:var(--muted);line-height:1.8;padding:14px 0}.receipt-preview{max-height:190px;max-width:100%;object-fit:contain;margin:16px auto;display:block}.receipt-line{display:grid;grid-template-columns:minmax(100px,1fr) 70px 90px 30px;gap:8px;margin:8px 0}.receipt-line input{width:100%;min-width:0}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}.form-grid .full{grid-column:1/-1}.form-field{display:flex;flex-direction:column;gap:7px;font-size:12px}.form-field label{font-weight:500}dialog{border:1px solid var(--line);border-radius:18px;padding:26px;width:min(500px,calc(100% - 26px));max-height:90dvh;color:var(--ink);box-shadow:0 20px 100px #14271a30}dialog::backdrop{background:#12251b70;backdrop-filter:blur(3px)}.modal-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:22px}.modal-head button{background:#f0f2eb;border-radius:50%;font-size:23px;width:30px;height:30px;color:#6c7a6c}.modal-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:23px}.modal-note{font-size:12px;color:var(--muted);line-height:1.8;margin:12px 0}.settings-stack{display:flex;flex-direction:column;gap:13px}.settings-stack .btn{white-space:normal}.receipt-card{padding:18px 23px;border-top:1px solid var(--line);display:flex;gap:12px;align-items:center}.restock-cards{display:grid;grid-template-columns:repeat(2,1fr);gap:18px}.stock-card{padding:23px;background:#fff;border:1px solid var(--line);border-radius:14px}.stock-card .item-icon{margin-bottom:16px}.stock-card .stock-title{display:flex;justify-content:space-between;gap:10px}.stock-card p{font-size:11px;color:var(--muted);line-height:1.8;margin:9px 0 15px}.stock-actions{display:flex;gap:10px;flex-wrap:wrap}.stock-actions button{font-size:11px;padding:9px 12px}.chart-donut{width:130px;height:130px;border-radius:50%;margin:12px auto 25px;display:flex;align-items:center;justify-content:center;position:relative}.chart-donut:after{content:'';position:absolute;inset:17px;border-radius:50%;background:#fff}.donut-label{z-index:1;font-size:12px;text-align:center}.donut-label strong{font-size:18px;display:block;margin-top:5px}.budget-edit{background:none;color:var(--green);font-size:11px;padding:0}.date-label{font-size:11px;color:var(--muted)}footer{padding:15px 42px 25px;display:flex;justify-content:space-between;gap:15px;color:#a0a69c;font-size:10px}.bottom-nav,.mobile-brand{display:none}#toast{position:fixed;bottom:25px;left:50%;transform:translate(-50%,20px);opacity:0;pointer-events:none;background:var(--green);color:white;padding:13px 22px;border-radius:10px;z-index:10;font-size:12px;transition:.2s;max-width:90vw;box-shadow:0 5px 20px #0002}#toast.show{opacity:1;transform:translate(-50%,0)}.table-wrap{overflow-x:auto}table{border-collapse:collapse;width:100%;font-size:12px}th,td{padding:13px 19px;text-align:left;border-top:1px solid var(--line);white-space:nowrap}th{color:var(--muted);font-weight:400;font-size:10px}.error{color:#a54536}.info-box{padding:15px;border-radius:10px;background:#f0f3e8;font-size:12px;line-height:1.8;margin:15px 0}.filter-label{font-size:12px;display:flex;align-items:center;gap:10px}.ocr-progress{margin:15px 0;font-size:12px;color:var(--green)}.page-enter{animation:appear .25s ease}@keyframes appear{from{opacity:.3;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}@media(min-width:1450px){main{padding-top:42px}.hero{min-height:225px}.hero-copy{padding:34px}}@media(max-width:1100px){.sidebar{width:205px;padding:30px 19px}.main-shell{margin-left:205px}.topbar{padding:0 25px}main{padding:28px 25px}.grid-main{grid-template-columns:1.3fr 1fr;gap:16px}.hero h2{font-size:23px}.hero-copy{padding:24px}.stat{padding:16px}.stat-value{font-size:23px}.panel-head,.list-row{padding-left:18px;padding-right:18px}footer{padding-left:25px;padding-right:25px}.art-label{right:8px}.hero-art .produce{left:10px}.hero-art .produce.two{left:70px}}@media(max-width:800px){.sidebar{display:none}.main-shell{margin-left:0}.topbar{height:66px;padding:0 23px}.breadcrumb{display:none}.mobile-brand{display:block;font-size:24px;font-weight:700;letter-spacing:-1px}.local-status{font-size:9px}.top-actions{gap:13px}main{padding:26px 20px 15px}h1{font-size:28px}.page-heading{margin-bottom:20px}.bottom-nav{display:flex;position:fixed;bottom:0;left:0;right:0;background:#ffffffed;border-top:1px solid var(--line);backdrop-filter:blur(16px);justify-content:space-around;z-index:5;padding:8px 6px calc(8px + env(safe-area-inset-bottom))}.bottom-nav a{display:flex;flex-direction:column;align-items:center;gap:5px;flex:1;font-size:9px;color:#8b958c;padding:5px}.bottom-nav svg{width:21px;height:21px}.bottom-nav .active{color:var(--green);font-weight:700}.bottom-nav .active svg{stroke-width:2.4}.shell{padding-bottom:80px}.grid-main{grid-template-columns:1.3fr 1fr}.hero-copy{padding:26px}.hero h2{font-size:24px}.stats{gap:10px}.stat{padding:16px}.stat-top{font-size:10px}.stat-icon{padding:5px}.stat-value{font-size:23px}.stat small{font-size:9px}footer{padding:12px 20px 20px;font-size:9px}#toast{bottom:92px}}@media(max-width:600px){.grid-main{grid-template-columns:1fr;gap:0}.page-heading{align-items:flex-start}.page-heading>.actions{margin-top:6px}.page-heading .date-label{display:none}.page-heading .btn{padding:10px 12px;font-size:11px}.hero{grid-template-columns:1fr .65fr;min-height:196px}.hero-copy{padding:23px 0 23px 21px}.hero h2{font-size:22px}.hero p{font-size:11px;max-width:215px}.hero .eyebrow{font-size:9px;letter-spacing:1.1px}.hero-art{min-height:190px}.grocery-bag{width:87px;height:100px;margin-top:38px}.grocery-bag:before{width:34px;left:23px;height:30px;top:-22px;border-width:5px}.grocery-bag:after{font-size:38px;top:28px}.produce{font-size:43px!important;top:20px!important;left:-2px!important}.produce.two{left:40px!important;top:10px!important}.art-label{right:5px;bottom:25px;font-size:8px;padding:8px}.art-label strong{font-size:10px}.stats{grid-template-columns:1fr 1fr;margin-bottom:19px}.stat:nth-child(3){display:block;grid-column:1/-1}.stat:nth-child(3) .stat-value{font-size:22px;margin:7px 0}.stat-value{font-size:25px}.stat-top{font-size:11px}.stat small{font-size:10px}.panel{margin-bottom:18px}.panel-head{padding:19px 18px}h2{font-size:16px}.list-row{padding:15px 18px;gap:11px}.item-info strong{font-size:12px}.item-price{font-size:11px}.item-icon{width:36px;height:36px;font-size:21px}.check{width:20px;height:20px}.panel-foot{padding:14px 18px}.restock-cards{grid-template-columns:1fr}.demo-strip{font-size:10px;gap:8px;margin-bottom:18px}.demo-strip button{font-size:10px}.subtitle{font-size:12px}.local-status{max-width:100px;line-height:1.5}.search{gap:8px}.search input{font-size:12px}.tabs{gap:6px}.tab{font-size:11px;padding:8px 11px}.form-grid{gap:12px}.receipt-line{grid-template-columns:minmax(85px,1fr) 55px 72px 24px;gap:5px}.receipt-line input{padding:9px 6px;font-size:12px}.receipt-line .remove{padding:5px}.filter-label{font-size:10px}footer span{display:none}.topbar{padding:0 20px}.chart-donut{width:150px;height:150px}.page-heading h1{font-size:27px}.upload-zone{padding:25px 18px}.stock-card{padding:20px}dialog{padding:21px}input,select,textarea{font-size:16px}.form-field{font-size:12px}.search input{font-size:16px}.actions .btn{flex-shrink:0}}
/* Account controls stay readable on narrow mobile screens. */
button:disabled{cursor:not-allowed;opacity:.55}
@media(max-width:600px){.topbar{height:auto;min-height:76px;gap:12px}.top-actions{display:grid;grid-template-columns:minmax(0,1fr) 35px;column-gap:10px;row-gap:4px;max-width:220px}.top-actions .local-status{grid-column:1/-1;grid-row:2;max-width:none;text-align:right}.top-actions [data-action="account"]{font-size:12px;text-align:right}.top-actions .avatar{grid-column:2;grid-row:1}}

/* Account entry is separate from the private app shell, including before JS loads. */
.account-entry{display:none;min-height:100dvh;padding:32px 20px;align-items:center;justify-content:center;background:var(--bg,#f7f8f2)}
.auth-locked .account-entry{display:flex}.auth-locked .shell,.auth-locked .bottom-nav{display:none!important}
.entry-card{width:100%;max-width:440px;background:#fff;border:1px solid #e2e5dd;border-radius:24px;padding:32px;box-shadow:0 12px 40px #244d4009}
.entry-card h1{font-size:32px;line-height:1.2;margin:0 0 16px;color:#244d40}.entry-card p{line-height:1.65}.entry-card .btn{width:100%;margin-top:16px}.entry-card .form-field{margin-top:18px}.entry-card .text-button{display:block;margin:20px auto 0}.entry-card .entry-brand{font-weight:800;color:#244d40;margin-bottom:28px;font-size:24px}
@media(max-width:480px){.entry-card{padding:26px 22px}.account-entry{padding:24px 16px}}
