:root{color:#12221f;font-synthesis:none;text-rendering:optimizelegibility;--ink:#12221f;--muted:#667773;--line:#dfe8e5;--card:#fff;--soft:#eef6f4;--accent:#0f766e;--accent2:#14b8a6;--accent-soft:#dff7f2;--danger:#b42318;--warning:#a15c00;background:#f5f8f7;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}*{box-sizing:border-box}body{min-width:320px;color:var(--ink);background:#f5f8f7;margin:0}button,input,select{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.55}input,select{color:var(--ink)}.app-shell{min-height:100vh;padding-bottom:92px}.topbar{align-items:center;gap:11px;max-width:1120px;height:68px;margin:auto;padding:0 22px;display:flex}.brand-mark{background:var(--accent);color:#fff;border-radius:13px;place-items:center;width:38px;height:38px;display:grid}.brand-copy{flex-direction:column;flex:1;line-height:1.1;display:flex}.brand-copy strong{font-size:15px}.brand-copy span{color:var(--muted);margin-top:4px;font-size:12px}.content{max-width:1120px;margin:auto;padding:16px 22px 40px}.view-stack{flex-direction:column;gap:22px;display:flex}.eyebrow{text-transform:uppercase;letter-spacing:.11em;color:var(--accent);font-size:11px;font-weight:800}h1,h2,p{margin:0}h1{letter-spacing:-.035em;font-size:clamp(30px,4vw,44px);line-height:1.05}h2{letter-spacing:-.02em;font-size:21px}.page-title{justify-content:space-between;align-items:flex-end;gap:20px;display:flex}.page-title p,.hero p{color:var(--muted);max-width:680px;margin-top:8px;line-height:1.55}.icon-button{color:#40514d;background:0 0;border:0;border-radius:12px;place-items:center;width:42px;height:42px;display:grid}.icon-button:hover{background:#e9efed}.primary,.secondary,.danger{border:1px solid #0000;border-radius:13px;justify-content:center;align-items:center;gap:8px;min-height:44px;padding:0 16px;font-weight:750;display:inline-flex}.primary{background:var(--accent);color:#fff}.primary:hover{background:#0b655e}.primary.large{min-height:52px;padding:0 20px}.secondary{border-color:var(--line);color:var(--ink);background:#fff}.danger{color:var(--danger);background:#fff2f0}.ghost{background:0 0}.text-button{color:var(--accent);background:0 0;border:0;align-items:center;gap:4px;font-weight:700;display:flex}.hero{color:#fff;background:linear-gradient(135deg,#0b5f58,#12877d);border-radius:28px;justify-content:space-between;align-items:end;gap:28px;padding:32px;display:flex;position:relative;overflow:hidden}.hero:after{content:"";background:#ffffff12;border-radius:50%;width:260px;height:260px;position:absolute;top:-130px;right:-90px}.hero .eyebrow{color:#bff7eb}.hero p{color:#d9f5ef}.hero .primary{color:#0d665f;z-index:1;background:#fff;position:relative}.stats-grid{grid-template-columns:repeat(3,1fr);gap:14px;display:grid}.stat-card{border:1px solid var(--line);background:var(--card);text-align:left;border-radius:20px;grid-template-columns:42px 1fr;align-items:center;column-gap:12px;padding:18px;display:grid}.stat-card .stat-icon{background:var(--soft);width:42px;height:42px;color:var(--accent);border-radius:13px;grid-row:1/3;place-items:center;display:grid}.stat-card strong{font-size:27px;line-height:1}.stat-card small{color:var(--muted);margin-top:2px}.stat-card .warning{color:var(--warning);background:#fff4df}.section-card,.scan-card,.settings-group{border:1px solid var(--line);background:#fff;border-radius:22px;padding:22px}.section-card.subtle{background:#fbfdfc}.section-heading{justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px;display:flex}.section-help{color:var(--muted);margin:-5px 0 15px;font-size:14px;line-height:1.5}.horizontal-products{grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:10px;display:grid}.mini-product{border:1px solid var(--line);border-radius:14px;align-items:center;gap:10px;padding:12px;display:flex}.mini-product>span{font-size:25px}.mini-product div,.recurrence-row div{flex-direction:column;min-width:0;display:flex}.mini-product strong,.recurrence-row strong{white-space:nowrap;text-overflow:ellipsis;font-size:14px;overflow:hidden}.mini-product small,.recurrence-row small{color:var(--muted);margin-top:4px;font-size:12px}.quick-grid{grid-template-columns:1fr 1fr;gap:14px;display:grid}.quick-card{border:1px solid var(--line);text-align:left;background:#fff;border-radius:18px;align-items:center;gap:13px;padding:16px;display:flex}.quick-card .quick-icon{background:var(--accent-soft);width:44px;height:44px;color:var(--accent);border-radius:14px;place-items:center;display:grid}.quick-card div{flex-direction:column;flex:1;gap:4px;display:flex}.quick-card small{color:var(--muted)}.quick-card>svg{color:#8b9996}.list-clean{flex-direction:column;display:flex}.recurrence-row{border-top:1px solid var(--line);align-items:center;gap:12px;padding:12px 0;display:flex}.recurrence-row:first-child{border-top:0}.recurrence-row div{flex:1}.recurrence-row>svg{color:var(--muted)}.emoji-box{background:var(--soft);border-radius:12px;place-items:center;width:38px;height:38px;font-size:20px;display:grid}.toolbar{gap:10px;display:flex}.search-box{border:1px solid var(--line);height:46px;color:var(--muted);background:#fff;border-radius:13px;flex:1;align-items:center;gap:9px;padding:0 13px;display:flex}.search-box input{background:0 0;border:0;outline:0;width:100%}.toolbar select,.settings-row select{border:1px solid var(--line);background:#fff;border-radius:13px;height:46px;padding:0 13px}.product-list,.shopping-list{flex-direction:column;gap:10px;display:flex}.product-row,.shopping-row{border:1px solid var(--line);background:#fff;border-radius:17px;align-items:center;gap:10px;min-height:76px;padding:10px 12px;display:flex}.product-row.disabled{opacity:.55}.product-main{text-align:left;background:0 0;border:0;flex:1;align-items:center;gap:12px;min-width:0;display:flex}.product-main div,.shopping-copy{flex-direction:column;flex:1;min-width:0;display:flex}.product-main strong,.shopping-copy strong{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.product-main small,.shopping-copy small{color:var(--muted);margin-top:4px}.product-emoji{background:var(--soft);border-radius:14px;flex:none;place-items:center;width:44px;height:44px;font-size:23px;display:grid}.stock-stepper{border:1px solid var(--line);background:#fbfdfc;border-radius:13px;align-items:center;height:46px;display:flex;overflow:hidden}.stock-stepper button{width:36px;height:100%;color:var(--accent);background:0 0;border:0;place-items:center;display:grid}.stock-stepper span{text-align:center;flex-direction:column;min-width:46px;line-height:1;display:flex}.stock-stepper small{color:var(--muted);margin-top:3px;font-size:10px}.stock-stepper.compact{height:40px}.stock-stepper.compact span{min-width:34px}.empty-state{text-align:center;background:#fff;border:1px dashed #c9d8d4;border-radius:22px;flex-direction:column;justify-content:center;align-items:center;min-height:220px;padding:30px;display:flex}.empty-state>span{background:var(--soft);width:58px;height:58px;color:var(--accent);border-radius:18px;place-items:center;margin-bottom:14px;display:grid}.empty-state p{color:var(--muted);max-width:380px;margin-top:7px;line-height:1.5}.segmented{background:#e8efed;border-radius:14px;align-self:flex-start;padding:4px;display:flex}.segmented button{height:40px;color:var(--muted);background:0 0;border:0;border-radius:10px;align-items:center;gap:7px;padding:0 16px;font-weight:700;display:flex}.segmented button.active{color:var(--accent);background:#fff;box-shadow:0 1px 3px #00000014}.scan-card{padding:28px}.scan-visual{text-align:center;max-width:520px;margin:0 auto 22px}.scan-orbit{background:var(--accent-soft);width:64px;height:64px;color:var(--accent);border-radius:21px;place-items:center;margin:0 auto 14px;display:grid}.scan-visual p{color:var(--muted);margin-top:7px;line-height:1.45}.photo-grid{grid-template-columns:repeat(4,1fr);gap:10px;max-width:720px;margin:0 auto 18px;display:grid}.photo-thumb,.photo-add{aspect-ratio:1.1;border-radius:15px;position:relative;overflow:hidden}.photo-thumb img{object-fit:cover;width:100%;height:100%}.photo-thumb button{color:#fff;background:#11211dc2;border:0;border-radius:50%;place-items:center;width:28px;height:28px;display:grid;position:absolute;top:6px;right:6px}.photo-add{color:var(--accent);background:#f8fbfa;border:1.5px dashed #aac3bd;flex-direction:column;justify-content:center;align-items:center;gap:7px;display:flex}.scan-submit{width:100%;max-width:720px;min-height:50px;margin:0 auto;display:flex}.privacy-note{text-align:center;color:var(--muted);max-width:680px;margin:12px auto 0;line-height:1.45;display:block}.error-box{color:#8e281d;background:#fff0ed;border:1px solid #ffd0c7;border-radius:13px;align-items:flex-start;gap:8px;max-width:720px;margin:0 auto 12px;padding:11px 13px;display:flex}.tip-card{color:#24443e;background:#eef8f5;border:1px solid #d4e4e0;border-radius:17px;gap:11px;padding:15px 17px;display:flex}.tip-card>svg{color:var(--accent);flex:none}.tip-card p{color:#55716b;margin-top:3px;font-size:14px;line-height:1.5}.review-head{align-items:center;gap:12px;display:flex}.review-head .icon-button{border:1px solid var(--line);background:#fff}.review-head p{color:var(--muted);margin-top:4px}.ai-summary{background:linear-gradient(120deg,#e9f8f5,#f6fbfa);border:1px solid #cfeae4;border-radius:17px;align-items:flex-start;gap:10px;padding:16px;display:flex}.ai-summary svg{color:var(--accent);flex:none}.ai-summary p{line-height:1.5}.detection-list{flex-direction:column;gap:8px;display:flex}.detection-row{border:1px solid var(--line);border-radius:15px;align-items:center;gap:10px;padding:11px;display:flex}.detection-row.selected{background:#f5fcfa;border-color:#9fd9cd}.check-circle input{opacity:0;pointer-events:none;position:absolute}.check-circle span{border:1.5px solid #aebdb9;border-radius:50%;place-items:center;width:27px;height:27px;display:grid}.check-circle input:checked+span{background:var(--accent);border-color:var(--accent);color:#fff}.detection-copy{flex-direction:column;flex:1;min-width:0;display:flex}.detection-copy small{color:var(--muted);white-space:nowrap;text-overflow:ellipsis;margin-top:2px;overflow:hidden}.confidence{border-radius:20px;align-self:flex-start;margin-top:5px;padding:3px 7px;font-size:11px;font-weight:800}.confidence.good{color:#176b45;background:#e4f7ed}.confidence.medium{color:#8c5b00;background:#fff3d5}.confidence.low{color:#9a3125;background:#ffebe7}.unknown-box{border:1px solid var(--line);background:#fff;border-radius:17px;padding:16px}.unknown-box>div{flex-wrap:wrap;gap:8px;margin-top:10px;display:flex}.unknown-box span{background:#f0f4f3;border-radius:999px;padding:6px 9px;font-size:13px}.sticky-action{-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border:1px solid var(--line);z-index:4;background:#f5f8f7f0;border-radius:17px;justify-content:space-between;align-items:center;gap:12px;padding:10px 12px;display:flex;position:sticky;bottom:86px}.sticky-action>span{color:var(--muted);font-size:13px}.receipt-list{flex-direction:column;display:flex}.receipt-row{border-top:1px solid var(--line);align-items:center;gap:10px;padding:12px 0;display:flex}.receipt-row:first-child{border-top:0}.receipt-qty{color:var(--accent);width:34px;font-weight:800}.receipt-row>div{flex-direction:column;flex:1;display:flex}.receipt-row small{color:var(--muted);margin-top:3px}.matched,.unmatched{border-radius:999px;align-items:center;gap:3px;padding:5px 8px;font-size:11px;font-weight:800;display:flex}.matched{color:#14633f;background:#e5f7ef}.unmatched{color:#6e7b78;background:#f0f2f1}.add-item{gap:9px;display:flex}.add-item input{border:1px solid var(--line);background:#fff;border-radius:14px;flex:1;height:48px;padding:0 14px}.add-item .primary{width:50px;padding:0}.purchase-check{color:#0000;background:#fff;border:1.5px solid #aac0ba;border-radius:50%;flex:none;place-items:center;width:35px;height:35px;display:grid}.purchase-check:hover{border-color:var(--accent);color:var(--accent)}.shopping-row.done{opacity:.48}.shopping-row.done .purchase-check{background:var(--accent);color:#fff;border-color:var(--accent)}.shopping-row.done strong{text-decoration:line-through}.need-qty{flex-direction:column;align-items:flex-end;min-width:48px;display:flex}.need-qty b{font-size:18px}.need-qty small{color:var(--muted)}.habit-tag{color:#755500;background:#fff3cf;border-radius:999px;align-self:flex-start;align-items:center;gap:4px;margin-top:6px;padding:4px 7px;font-size:11px;display:inline-flex!important}.settings-group{padding:0;overflow:hidden}.settings-group>h2{padding:18px 19px 12px}.settings-row{border-top:1px solid var(--line);align-items:center;gap:14px;min-height:70px;padding:13px 18px;display:flex}.settings-row>div{flex-direction:column;flex:1;display:flex}.settings-row small{color:var(--muted);margin-top:4px;line-height:1.35}.settings-row input[type=checkbox]{width:22px;height:22px;accent-color:var(--accent)}.settings-row.clickable{text-align:left;background:#fff;border-bottom:0;border-left:0;border-right:0;width:100%}.settings-row.clickable>svg{color:var(--muted)}.inline-input{border:1px solid var(--line);border-radius:11px;width:190px;height:40px;padding:0 10px}.status-dot{background:#aaa;border-radius:50%;width:12px;height:12px}.status-dot.ok{background:#18a96b;box-shadow:0 0 0 4px #def6ea}.status-dot.missing{background:#d58d13;box-shadow:0 0 0 4px #fff0d4}.status-dot.error{background:#c84839}.status-dot.checking{animation:1.2s infinite pulse}.danger-text{color:var(--danger)}.settings-note{border-top:1px solid var(--line);padding:16px 18px}.settings-note p,.muted{color:var(--muted);margin-top:5px;line-height:1.5}.history-list>div{border-top:1px solid var(--line);align-items:center;gap:11px;padding:12px 18px;display:flex}.history-list span{background:var(--soft);width:36px;height:36px;color:var(--accent);border-radius:11px;place-items:center;display:grid}.history-list span svg{width:18px}.history-list div div{flex-direction:column;flex:1;display:flex}.history-list small{color:var(--muted);white-space:nowrap;text-overflow:ellipsis;max-width:640px;margin-top:3px;overflow:hidden}.history-list time{color:var(--muted);font-size:12px}.settings-group>.muted{padding:0 18px 18px}.switch-row{border:1px solid var(--line);border-radius:14px;align-items:center;gap:12px;padding:12px;display:flex}.switch-row div{flex-direction:column;flex:1;display:flex}.switch-row input{width:22px;height:22px;accent-color:var(--accent)}.modal-backdrop{z-index:30;background:#0c1a1780;place-items:center;padding:18px;display:grid;position:fixed;inset:0}.modal{background:#fff;border-radius:24px;width:min(720px,100%);max-height:min(860px,94vh);overflow:auto;box-shadow:0 20px 70px #0000003d}.modal-head{z-index:2;border-bottom:1px solid var(--line);background:#fff;align-items:center;gap:12px;padding:16px 18px;display:flex;position:sticky;top:0}.modal-head>div:nth-child(2){flex:1}.modal-head h2{margin-top:2px}.modal-body{padding:18px}.form-grid{grid-template-columns:1fr 1fr;gap:14px;display:grid}.field{flex-direction:column;gap:6px;display:flex}.field>span{font-size:13px;font-weight:750}.field input,.field select{border:1px solid var(--line);background:#fff;border-radius:12px;height:45px;padding:0 11px}.field small{color:var(--muted);font-size:12px;line-height:1.35}.field-wide{grid-column:1/-1}.reference-upload{min-height:110px;color:var(--accent);background:#f8fbfa;border:1.5px dashed #b4c8c3;border-radius:14px;place-items:center;display:grid;overflow:hidden}.reference-upload>span{align-items:center;gap:8px;font-weight:700;display:flex}.reference-upload img{object-fit:contain;background:#f2f5f4;width:100%;height:150px}.modal-actions{border-top:1px solid var(--line);background:#fff;gap:9px;padding:12px 18px;display:flex;position:sticky;bottom:0}.spacer{flex:1}.toast{z-index:50;color:#fff;background:#153d37;border-radius:13px;align-items:center;gap:8px;padding:11px 15px;font-size:14px;font-weight:700;display:flex;position:fixed;bottom:102px;left:50%;transform:translate(-50%);box-shadow:0 10px 30px #0003}.spin{animation:1s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}@keyframes pulse{50%{opacity:.4}}.bottom-nav{z-index:20;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);border:1px solid var(--line);background:#fffffff2;border-radius:23px;grid-template-columns:1fr 1fr 76px 1fr 1fr;align-items:center;width:min(640px,100% - 24px);height:68px;padding:5px 8px;display:grid;position:fixed;bottom:12px;left:50%;transform:translate(-50%);box-shadow:0 10px 35px #1937301f}.nav-button{color:#788884;background:0 0;border:0;flex-direction:column;justify-content:center;align-items:center;gap:3px;height:54px;font-size:10px;font-weight:700;display:flex}.nav-button svg{width:20px;height:20px}.nav-button.active{color:var(--accent)}.nav-icon{place-items:center;display:grid;position:relative}.nav-icon b{color:#fff;background:#c63f2f;border:2px solid #fff;border-radius:20px;place-items:center;min-width:17px;height:17px;padding:0 3px;font-size:9px;display:grid;position:absolute;top:-6px;right:-10px}.scan-nav{background:var(--accent);color:#fff;border:0;border-radius:18px;justify-self:center;place-items:center;width:54px;height:54px;display:grid;box-shadow:0 8px 18px #0f766e45}.scan-nav.active{background:#095f58;outline:4px solid #dff5f0}@media (width<=720px){.topbar{padding:0 16px}.content{padding:10px 14px 30px}.hero{flex-direction:column;align-items:stretch;padding:24px}.hero .primary{align-self:stretch}.stats-grid{grid-template-columns:1fr 1fr}.stat-card:last-child{grid-column:1/-1}.quick-grid{grid-template-columns:1fr}.page-title{flex-direction:column;align-items:flex-start}.page-title>.primary{width:100%}.toolbar{flex-direction:column}.toolbar select{width:100%}.product-row{flex-wrap:wrap}.product-main{min-width:calc(100% - 54px)}.stock-stepper{margin-left:56px}.photo-grid{grid-template-columns:1fr 1fr}.form-grid{grid-template-columns:1fr}.field-wide{grid-column:auto}.modal-backdrop{align-items:end;padding:0}.modal{border-radius:24px 24px 0 0;max-height:94vh}.modal-actions{flex-wrap:wrap}.modal-actions .spacer{display:none}.modal-actions button{flex:1}.sticky-action{flex-direction:column;align-items:stretch;bottom:84px}.sticky-action .primary{width:100%}.settings-row{align-items:flex-start}.inline-input{width:140px}.receipt-row{flex-wrap:wrap}.matched,.unmatched{margin-left:44px}.history-list time{display:none}}@media (width<=430px){.stats-grid{grid-template-columns:1fr}.stat-card:last-child{grid-column:auto}.bottom-nav{grid-template-columns:1fr 1fr 64px 1fr 1fr}.nav-button span:last-child{font-size:9px}.section-card,.scan-card{padding:17px}.detection-row{flex-wrap:wrap}.detection-copy{min-width:150px}.detection-row .stock-stepper{margin-left:37px}.product-row>.icon-button{display:none}.shopping-row{gap:8px}.need-qty{min-width:38px}}@media (prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important;animation:none!important}}.unknown-list{flex-direction:column;gap:9px;display:flex}.unknown-item{border:1px solid var(--line);border-radius:15px;justify-content:space-between;align-items:center;gap:14px;padding:12px;display:flex}.unknown-main{flex:1;align-items:flex-start;gap:11px;min-width:0;display:flex}.unknown-main>div{flex-direction:column;min-width:0;display:flex}.unknown-main small{color:var(--muted);margin-top:3px;line-height:1.35}.unknown-item .secondary{white-space:nowrap;min-height:40px;padding:0 12px}.unknown-item .secondary:disabled{opacity:.55;cursor:default}@media (width<=560px){.unknown-item{flex-direction:column;align-items:stretch}.unknown-item .secondary{width:100%}}.catalogue-tabs{justify-content:flex-start;align-self:stretch;gap:2px}.catalogue-tabs button b{background:var(--soft);color:var(--muted);border-radius:999px;padding:2px 6px;font-size:11px}.catalogue-tabs button.active b{background:var(--accent-soft);color:var(--accent)}.inventory-inline{color:var(--accent);margin-top:5px;font-size:11px;font-weight:750}.product-main.static{cursor:default}.inventory-row{flex-wrap:wrap}.inventory-habitual{white-space:nowrap}.unknown-actions{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:8px;display:flex}.primary.small{min-height:40px;padding:0 12px;font-size:13px}.inventory-row .danger-text{color:var(--danger)}@media (width<=680px){.catalogue-tabs{grid-template-columns:1fr 1fr;display:grid}.catalogue-tabs button{justify-content:center;padding:0 10px}.inventory-row .stock-stepper,.inventory-habitual{margin-left:56px}.unknown-actions{justify-content:stretch;width:100%}.unknown-actions button{flex:1}}@media (width<=430px){.inventory-row .stock-stepper,.inventory-habitual{margin-left:0}.inventory-row .product-main.static{min-width:100%}}.receipt-row-actions{gap:12px}.receipt-copy{flex:1;min-width:0}.receipt-new-actions{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:10px;margin-left:auto;display:flex}.receipt-new-actions .secondary.small{white-space:nowrap;min-height:38px;padding:8px 12px}@media (width<=640px){.receipt-row-actions{flex-wrap:wrap;align-items:flex-start}.receipt-copy{min-width:calc(100% - 64px)}.receipt-new-actions{justify-content:flex-start;width:100%;margin-left:48px}}.receipt-delete{flex:none}.receipt-delete:hover{border-color:var(--danger,#d64545)}.empty-ticket{text-align:center;min-height:150px;color:var(--muted);align-content:center;place-items:center;gap:7px;display:grid}.empty-ticket strong{color:var(--text)}.receipt-sticky{align-items:center}@media (width<=640px){.receipt-row-actions{align-items:center}.receipt-new-actions{flex-wrap:nowrap}.receipt-sticky{align-items:stretch}.receipt-sticky .primary{justify-content:center;width:100%}}
