/* Brand swatches; darker text/action shades preserve contrast. */
:root{
 --brand-green:#079663;--brand-yellow:#f6c33e;--brand-orange:#e25a32;--brand-lime:#91bd27;
 --green:#08794f;--action:#087f54;--action-hover:#066741;--dark:#203b32;--muted:#62716a;
 --bg:#f7f8f4;--surface:#fff;--surface-muted:#f2f5f0;--line:#dfe7df;--field-line:#afc1b5;
 --green-soft:#eaf5ef;--green-tint:#d8ede2;--green-line:#b4d3c1;--placeholder:#82978b;
 --yellow-soft:#fff7df;--yellow-ink:#795609;--orange-soft:#fff0e9;--danger:#a63822;
 --lime-soft:#f1f6e4;--lime-ink:#526e1a;--focus:#079663;
 --radius-control:12px;--radius-card:18px;--radius-dialog:24px;
 --shadow-card:0 2px 8px #203b3205,0 8px 24px #203b3204;
 --shadow-popover:0 12px 40px #203b321a,0 2px 8px #203b320a;
}
:root{font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--dark);background:var(--bg);font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid var(--focus);outline-offset:3px}button{border:0;background:none;color:inherit}button:disabled{opacity:.5;cursor:wait}svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.sidebar{position:fixed;inset:0 auto 0 0;width:250px;border-right:1px solid var(--line);padding:35px 22px;display:flex;flex-direction:column;z-index:5}.brand{display:flex;align-items:center;min-width:0}.brand img{display:block;width:220px;max-width:100%;height:auto}.brand-caption{color:var(--muted);font-size:12px;letter-spacing:1.6px;margin:12px 0 46px 54px}.nav{display:flex;flex-direction:column}.nav button{display:flex;align-items:center;gap:13px;padding:15px;text-align:left;font-size:15px}.badge{margin-left:auto;color:white;border-radius:50%;font-size:12px;min-width:23px;height:23px;display:grid;place-items:center}.main{margin-left:250px;padding:40px 46px;max-width:1550px}.topbar{display:flex;justify-content:space-between}.eyebrow{font-size:12px;letter-spacing:1.8px;color:var(--green);font-weight:700;margin-bottom:9px}h1{margin:0;font-size:32px;letter-spacing:-1.1px;font-weight:700}h2{font-size:20px;letter-spacing:-.5px;margin:0}p{line-height:1.6}.subtitle{color:var(--muted);font-size:14px;margin:9px 0 0}.primary{color:white;font-size:14px;display:inline-flex;align-items:center;justify-content:center;gap:8px}.secondary{border:1px solid var(--line);background:white;display:inline-flex;align-items:center;justify-content:center;gap:8px;font-size:14px}.toolbar{display:flex}.search{display:flex;align-items:center;gap:12px;background:white;border:1px solid var(--line);padding:0 16px;flex:1;color:var(--muted)}.search input{border:0;outline:none;background:none;width:100%;color:var(--dark)}.chips{display:flex;overflow:auto;padding:0 0 22px;scrollbar-width:none}.chip{white-space:nowrap;border:1px solid var(--line);background:white}.chip.active{background:var(--dark);color:white;border-color:var(--dark)}.sectionline{display:flex;justify-content:space-between;align-items:center}.count{font-size:13px;color:var(--muted)}.grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr))}.card{background:white;border:1px solid var(--line);position:relative}.product-image{width:100%;aspect-ratio:1.0;border-radius:10px;background-color:var(--surface-muted);background-repeat:no-repeat;display:grid;place-items:center;overflow:hidden}.product-image img{width:100%;height:100%;object-fit:cover}.placeholder svg{width:48px;height:48px;color:var(--placeholder)}.card .image-button{width:100%;padding:0}.product-name{font-weight:650;font-size:15px;display:block;text-align:left;padding:0;line-height:1.4}.unit{color:var(--muted);font-size:13px;margin-top:5px}.card-bottom{display:flex;align-items:center;justify-content:space-between;gap:8px}.price{font-size:18px;font-weight:750;letter-spacing:-.5px}.add{display:grid;place-items:center}.stepper{display:flex;align-items:center;color:var(--green);font-size:14px;font-weight:650}.stepper button{display:grid;place-items:center}.stepper svg{width:17px}.note-link{font-size:12px;color:var(--green);padding:10px 0 0;display:flex;gap:5px;align-items:center}.note-link svg{width:14px;height:14px}.edit-btn{position:absolute;background:#ffffffed;border:1px solid var(--line);border-radius:50%;display:grid;place-items:center}.edit-btn svg{width:15px}.empty{text-align:center}.empty p{color:var(--muted)}.cart-list{display:flex;flex-direction:column;gap:12px}.text-danger{color:var(--danger);font-size:14px}.manage-list{background:white;border:1px solid var(--line);border-radius:16px;overflow:hidden}.manage-row{display:flex;align-items:center;border-bottom:1px solid var(--line)}.manage-row:last-child{border:0}.manage-row .product-image{width:66px;aspect-ratio:1}.manage-row .desc{flex:1}.manage-row strong{font-size:15px}.manage-row .secondary{padding:9px}.hint{color:var(--muted);font-size:12px}.mobile-brand{display:none}dialog{max-width:510px;width:calc(100% - 28px);max-height:90dvh;color:var(--dark)}.dialog-head{display:flex;align-items:center;justify-content:space-between}.icon-button{display:grid;place-items:center}label{display:block;font-size:14px;font-weight:600;margin-bottom:7px}.field input,.field select,.field textarea{width:100%;padding:12px;border:1px solid var(--field-line);background:white;color:var(--dark);font-size:16px}.field textarea{min-height:85px;resize:vertical}.fields{display:grid;grid-template-columns:1fr 1fr;gap:14px}.photo-editor{display:flex;align-items:center;margin-bottom:22px}.photo-editor .product-image{width:110px;aspect-ratio:1}.photo-actions{display:flex;flex-direction:column;gap:8px}.photo-actions button{font-size:13px}.actions{display:flex;justify-content:flex-end;gap:10px;margin-top:20px}.actions .primary{flex:1}.form-error{color:var(--danger);font-size:14px}.note-product{display:flex;align-items:center;gap:16px;margin-bottom:22px}.note-product .product-image{width:85px;aspect-ratio:1}.install{margin-top:20px}.hidden{display:none!important}#toast{position:fixed;bottom:30px;left:50%;transform:translateX(-50%);z-index:100;color:white;padding:13px 22px;font-size:14px;opacity:0;pointer-events:none;transition:opacity .2s}#toast.show{opacity:1}
@media(min-width:1450px){.grid{grid-template-columns:repeat(5,minmax(0,1fr))}}@media(max-width:1100px){.sidebar{width:210px;padding:30px 16px}.main{margin-left:210px;padding:30px}.grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:760px){.sidebar{inset:auto 0 0;width:100%;border-right:0;border-top:1px solid var(--line)}.sidebar>.brand,.brand-caption{display:none}.nav{flex-direction:row;justify-content:space-around}.nav button{flex-direction:column;border-radius:10px;position:relative}.nav .badge{position:absolute;left:calc(50% + 7px);min-width:18px;height:18px;font-size:10px}.main{margin:0;padding:22px 18px 110px}.topbar{align-items:center}h1{font-size:28px}.eyebrow{font-size:11px}.topbar>.primary{padding:11px;font-size:0;gap:0}.topbar>.primary svg{width:22px}.subtitle{font-size:13px}.grid{grid-template-columns:repeat(2,minmax(0,1fr))}.card{border-radius:14px}.product-name{font-size:14px}.price{font-size:17px}.card-bottom{margin-top:15px}.chip{padding:9px 14px;font-size:13px}.chips{margin-right:-18px;padding-right:18px}.manage-row{gap:11px;padding:12px}.manage-row .product-image{width:49px}.manage-row .price{font-size:14px}.manage-row .secondary{font-size:0;gap:0}.manage-row .secondary svg{width:18px}.manage-row strong{font-size:14px}#toast{bottom:90px;max-width:90%;width:max-content}.sectionline h2{font-size:18px}}
.add-product-card{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;min-height:220px;text-align:center;color:var(--green);width:100%;overflow-wrap:anywhere}
.add-product-card>svg{width:42px;height:42px;padding:9px;border-radius:50%}.add-product-card strong{font-size:16px}.add-product-card span{font-size:13px;line-height:1.5;color:var(--muted);max-width:240px}
.manage-list>.add-product-card,.picker-results>.add-product-card{min-height:150px;border-radius:12px;box-shadow:none;transform:none}.picker-results>.add-product-card{margin-top:12px}

@media(prefers-reduced-motion:reduce){*{transition:none!important}}
.list-actions{display:flex;flex-wrap:wrap}.saved-note{font-size:14px;margin:8px 0 0;overflow-wrap:anywhere}.picker-results{margin-top:16px;max-height:52dvh;overflow:auto}.picker-row{display:flex;align-items:center;gap:13px;width:100%;text-align:left;padding:12px 0;border-bottom:1px solid var(--line)}.picker-row .product-image{width:58px;flex-shrink:0}.picker-row>span{flex:1}.picker-row .unit{display:block}.picker-row strong{font-size:15px}@media(max-width:760px){.list-actions .primary,.list-actions .secondary{font-size:13px;padding:11px 12px}.list-progress{font-size:13px}}
.auth-shell{min-height:100dvh;display:grid;place-items:center;padding:25px}.auth-card{width:100%;background:white;border:1px solid var(--line)}.auth-logo{width:66px;height:66px;border-radius:18px;margin-bottom:25px}.auth-card p{font-size:15px}.auth-card .primary{width:100%}.auth-card>.secondary{margin-top:18px;width:100%}.account-shell{max-width:820px;margin:auto;padding:40px 22px}.account-card{background:white;border:1px solid var(--line)}.account-card .picker-row{overflow-wrap:anywhere;gap:15px}.account-card .picker-row>span{min-width:0}.auth-card input[autocomplete="one-time-code"]{letter-spacing:.2em;font-size:24px}.auth-card .form-error{color:var(--danger)}@media(max-width:760px){.account-shell{padding:25px 18px}.account-shell .topbar{align-items:flex-start}.account-shell h1{font-size:24px}}
.presence-status{color:var(--muted);overflow-wrap:anywhere}

.header-actions{display:flex;flex-wrap:wrap;justify-content:flex-end}.header-actions button{white-space:nowrap}
.import-intro{margin:0 0 20px;color:var(--muted);font-size:14px}.import-file{padding:20px;border:1px dashed var(--field-line);border-radius:14px}.import-file label{display:flex;align-items:center;gap:9px;margin-bottom:14px}.import-file input{padding:0;border:0;background:transparent;font-size:13px}.import-file input::file-selector-button{font:inherit;border:1px solid var(--field-line);border-radius:8px;padding:10px 12px;margin-right:10px;background:white;color:var(--dark);cursor:pointer}.import-help{font-size:12px;color:var(--muted)}.import-help strong{font-size:13px;color:var(--dark)}.import-help p{margin:7px 0}.import-submit{width:100%;margin-top:20px}#import-error:not(:empty){margin-top:16px;padding:12px;background:var(--orange-soft);border-radius:10px;overflow-wrap:anywhere}
@media(max-width:1100px){.topbar{align-items:flex-start}.header-actions{flex-direction:column}}
@media(max-width:760px){.presence-status{margin-bottom:24px}.header-actions button{flex:1;font-size:12px;gap:6px}.import-file{padding:16px}}
@media(max-width:360px){.header-actions{flex-direction:column}}

.nav button>.nav-mobile{display:none}
[hidden]{display:none!important}
.web-image-search{padding:16px;border:1px solid var(--line);border-radius:14px;background:var(--bg);margin-bottom:22px}.image-search-controls{display:flex;align-items:end;gap:10px}.image-search-controls .field{min-width:0;flex:1;margin:0}.image-search-controls select{font-size:13px}.image-search-controls .primary{min-height:45px}.web-image-search .hint{margin:14px 0}.image-search-results{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;max-height:360px;overflow:auto}.image-search-result{min-width:0;border:1px solid var(--line);border-radius:10px;background:white;overflow:hidden}.image-search-result button{width:100%;padding:10px;text-align:left;display:flex;flex-direction:column;gap:7px}.image-search-result button:hover{background:var(--green-soft)}.image-search-result img{width:100%;height:120px;object-fit:contain;background:white;border-radius:6px}.image-search-result strong{font-size:13px;overflow-wrap:anywhere}.image-search-result span,.image-search-result>a{font-size:11px;overflow-wrap:anywhere}.image-search-result>a{display:block;padding:0 10px 10px;color:var(--green)}.image-search-result .image-use-label{color:var(--green);font-weight:650}.photo-credit{font-size:11px;line-height:1.6;overflow-wrap:anywhere;color:var(--muted);margin:0 0 20px}.photo-credit a{color:var(--green)}.image-credit-link{font-size:10px;color:var(--green);padding:0;margin-bottom:8px;text-decoration:underline}.photo-actions{min-width:0}.photo-actions .secondary{padding:10px 12px}.photo-editor{gap:12px}@media(max-width:380px){.photo-editor .product-image{width:80px}.photo-actions .secondary{font-size:12px;padding:9px}.image-search-controls{flex-wrap:wrap}.image-search-controls .field{flex-basis:100%}.image-search-controls .primary{width:100%}.web-image-search{padding:12px}.image-search-results{gap:8px}}
.sidebar{overflow-y:auto}.nav button>span:not(.badge){min-width:0;overflow-wrap:anywhere}

.jump-top{position:fixed;bottom:24px;z-index:6;display:flex;align-items:center;gap:8px;padding:13px 16px;border:1px solid var(--green-line);border-radius:24px;background:white;color:var(--green);box-shadow:0 5px 18px #183c311f;font-size:13px;font-weight:600}
.history-list{display:grid}.history-card{display:flex;align-items:center;background:white}.history-card>div{flex:1;min-width:0}.history-status{display:inline-block;padding:5px 9px;font-size:12px}.history-card .price{white-space:nowrap}.history-item{display:flex;gap:16px;align-items:start;padding:18px 0;border-bottom:1px solid var(--line)}.history-item>div{flex:1;min-width:0;overflow-wrap:anywhere}.history-item h3{margin:0;font-size:16px}.history-item p{margin-bottom:0}.history-item>strong{white-space:nowrap}
@media(max-width:760px){.nav{align-items:stretch}.nav button{line-height:1.15}.nav button>span.nav-label{display:none}.nav button>span.nav-mobile{display:block;align-content:center;white-space:nowrap}.sidebar{overflow:visible;padding-left:4px;padding-right:4px}.main{padding-bottom:calc(145px + env(safe-area-inset-bottom))}.jump-top{bottom:calc(88px + env(safe-area-inset-bottom));padding:12px}.jump-top span{display:none}.history-card{flex-wrap:wrap;gap:16px}.history-card>div{flex-basis:65%}.history-card>button{width:100%}}
@media(max-width:360px){.nav button{font-size:9px}}
.history-card{flex-wrap:wrap}.history-card>.history-actions{flex:1 0 100%}.history-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;margin-top:12px}.history-card .history-actions{margin-top:0}.history-actions button{white-space:nowrap}
@media(max-width:760px){.history-actions{gap:8px}.history-actions button{padding:11px 12px;font-size:13px}.history-actions .primary{order:-1}}

@media(max-width:480px){.image-search-controls{flex-wrap:wrap}.image-search-controls .field{flex-basis:100%}.image-search-controls .primary{width:100%}}
.image-search-controls>[hidden],#google-image-help[hidden]{display:none}.image-search-controls a.primary{text-decoration:none;text-align:center;flex-shrink:0}.image-search-controls a.primary:focus-visible{outline:3px solid var(--focus);outline-offset:3px}.image-search-controls a[aria-disabled="true"]{opacity:.5;cursor:wait}#google-image-help .secondary{width:100%;text-align:center}
#image-improvement-details{font-size:12px;margin:12px 0}#image-improvement-details summary{cursor:pointer}#image-improvement-error{white-space:pre-wrap;overflow-wrap:anywhere;font:12px/1.5 ui-monospace,monospace;max-height:180px;overflow:auto}
.product-image.improved-image img{object-fit:contain;background:white}
.product-image{position:relative}
.store-badge{position:absolute;right:5px;bottom:5px;display:flex;align-items:center;justify-content:center;min-width:28px;max-width:calc(100% - 10px);border:1px solid var(--field-line);border-radius:9px;background:#fff;box-shadow:0 2px 6px #12321d18;font-size:17px;line-height:1;overflow:hidden;white-space:nowrap;color:var(--dark)}
.manage-row .store-badge,.picker-row .store-badge{right:2px;bottom:2px;min-width:22px;padding:2px;font-size:14px;border-radius:6px}
.toolbar{align-items:center;flex-wrap:wrap}.toolbar .search{min-width:160px}
.store-filter{display:flex;align-items:center;gap:10px;font-size:13px;color:var(--muted);min-width:0}
.store-filter select{min-width:0;max-width:240px;padding:13px 30px 13px 12px;border:1px solid var(--field-line);border-radius:10px;background:white;color:var(--dark);font:inherit;font-size:14px}
#editor>.store-filter{margin-top:14px}
.store-list{margin-top:18px}.store-row{display:flex;align-items:center;gap:12px;padding:16px 0;border-bottom:1px solid var(--line)}
.store-row>div{flex:1;min-width:0;overflow-wrap:anywhere}.store-row .unit{display:block;margin-top:4px}
.category-list{margin-top:18px;display:flex;flex-direction:column;gap:12px}
.category-row{display:flex;align-items:flex-end;gap:10px;padding:12px;border:1px solid var(--line);border-radius:12px;background:var(--surface-muted)}
.category-name-field{flex:1;min-width:0;margin:0}
.category-name-field label{font-size:12px;color:var(--muted);font-weight:600}
.category-row-buttons{display:flex;align-items:center;gap:8px;padding-bottom:1px}
.category-row-button{width:34px;height:34px}
.category-row-button.is-down svg{transform:rotate(180deg)}
.category-actions{justify-content:flex-end;flex-wrap:wrap}
.category-actions .primary,.category-actions .secondary{flex:0 0 auto;padding:10px 14px;font-size:13px}
.store-symbol{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;max-width:80px;min-height:34px;padding:4px;border-radius:10px;font-size:21px;overflow-wrap:anywhere}
.store-badge{width:32px;height:32px;padding:3px}
.store-symbol{width:38px;height:38px;min-width:38px;background:white;border:1px solid var(--line)}
.store-badge .store-logo,.store-symbol .store-logo{width:100%;height:100%;object-fit:contain;background:transparent;border-radius:0}
.store-badge>svg{width:20px;height:20px}.store-symbol>svg{width:24px;height:24px}
.manage-row .store-badge,.picker-row .store-badge{width:24px;height:24px}
.store-logo-editor{display:flex;align-items:center;gap:16px}.store-logo-editor .store-symbol{width:80px;height:80px;padding:6px;border-radius:12px}
.product-image>.image-button{position:absolute;inset:0;width:100%;height:100%;border-radius:inherit;padding:0}
.product-image>.image-button:focus-visible{outline-offset:-3px}
button.store-badge{z-index:1;cursor:pointer}button.store-badge:hover{border-color:var(--green);box-shadow:0 2px 8px #12321d30}
.store-badge.is-unassigned{color:var(--green);border-style:dashed}
.manage-row>.product-image{width:60px;flex-shrink:0}
.store-badge>svg{color:inherit}
.store-picker{display:flex;flex-direction:column;gap:8px;max-height:52dvh;overflow:auto;padding:3px}
.store-choice{display:flex;align-items:center;gap:12px;padding:12px;border:1px solid var(--line);border-radius:12px;text-align:left;width:100%;min-height:60px}
.store-choice>span:nth-child(2){flex:1;min-width:0;overflow-wrap:anywhere}.store-choice:hover,.store-choice.is-selected{background:var(--green-soft);border-color:var(--green-line)}
.store-choice>svg{color:var(--green)}.new-store-choice{width:100%;margin-top:16px}
.card-bottom{flex-wrap:wrap}.card-bottom .stepper{margin-left:auto}
.store-logo-actions{display:flex;flex-direction:column;align-items:flex-start;gap:12px}
.store-website-controls{display:flex;gap:8px}.store-website-controls input{min-width:0;flex:1}.store-website-controls button{flex-shrink:0;font-size:13px}
.store-website-examples{display:flex;gap:10px;align-items:center;margin-top:10px;font-size:12px;color:var(--muted)}.store-website-examples button{color:var(--green);text-decoration:underline;padding:5px}
@media(max-width:380px){.store-website-controls{flex-wrap:wrap}.store-website-controls input{flex-basis:100%}}

@media(max-width:760px){.toolbar .search{flex-basis:100%}.store-filter select{flex:1;max-width:none}.store-heading{gap:6px}.store-heading h3{font-size:16px}}
@media(max-width:760px){.category-row{flex-direction:column;align-items:stretch}.category-row-buttons{justify-content:flex-end}.category-actions button{flex:1 1 auto;min-width:0}}

.image-improve-hint{margin:-8px 0 18px;line-height:1.6}.image-improvement{padding:16px;border:1px solid var(--green-line);border-radius:14px;margin-bottom:22px}.image-improvement h3{font-size:17px;margin:0 0 10px}.image-improvement>p{font-size:13px;overflow-wrap:anywhere}.image-improvement progress{width:100%;accent-color:var(--green)}.image-comparison{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:16px}.image-comparison figure{margin:0;min-width:0}.image-comparison img{width:100%;aspect-ratio:1;object-fit:contain;background:white;border:1px solid var(--line);border-radius:10px}.image-comparison figcaption{font-size:12px;text-align:center;margin-top:6px}.image-comparison .hint{grid-column:1/-1;margin:0}.image-improvement-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}.image-improvement-actions button{flex:1;font-size:13px}.photo-actions button:disabled{cursor:default}
.receipt-entry{width:100%;margin-bottom:18px}.receipt-dialog{width:min(740px,calc(100% - 24px));max-width:740px}.receipt-items{display:grid;gap:12px;margin:18px 0}.receipt-item{padding:16px;border:1px solid var(--line);border-radius:12px;min-width:0;background:var(--bg)}.receipt-item h3{font-size:16px;margin:0;overflow-wrap:anywhere}.receipt-item p{font-size:13px;margin:8px 0}.receipt-item label{display:block;font-size:12px;margin:12px 0 6px}.receipt-item select{width:100%;min-width:0;max-width:100%;padding:10px;border:1px solid var(--line);border-radius:8px;background:white;font:inherit;font-size:13px}.receipt-change{color:var(--green)}#receipt-form input[type=file]{max-width:100%;min-width:0}#receipt-submit{width:100%}
.image-credit-slot:empty{display:none}.grid:has(.image-credit-link) .image-credit-slot{display:block;height:22px}.image-credit-slot .image-credit-link{display:block;line-height:14px}
.sidebar-head{display:flex;align-items:center;justify-content:space-between;gap:4px}
.sidebar-head .brand{flex:1}.sidebar-head .brand img{width:100%}
#sidebar-toggle{width:32px;height:36px;padding:6px;flex-shrink:0;color:var(--muted)}#sidebar-toggle:hover{background:var(--green-soft);color:var(--green)}
.sidebar>.brand-caption{margin:14px 0 34px;font-size:10px}
[data-act="install"][hidden]{display:none!important}
@media(min-width:761px){
 #app.sidebar-collapsed .sidebar{width:76px;padding:30px 12px}
 #app.sidebar-collapsed .main{margin-left:76px}
 .sidebar-collapsed .sidebar-head{justify-content:center;margin-bottom:34px}
 .sidebar-collapsed .sidebar-head .brand,.sidebar-collapsed .brand-caption,.sidebar-collapsed .nav-label{display:none}
 .sidebar-collapsed .nav button{position:relative;justify-content:center;padding:15px 0}
 .sidebar-collapsed .nav .badge{position:absolute;right:0;top:2px;min-width:18px;height:18px;font-size:10px;padding:0 4px}
}
@media(min-width:761px) and (max-width:1100px){.nav button{font-size:13px;gap:8px;padding:14px 10px}}
@media(max-width:760px){.sidebar-head{display:none}}
@media(display-mode:standalone),(display-mode:window-controls-overlay){[data-act="install"]{display:none!important}}
#telegram-account{overflow-wrap:anywhere}#telegram-account select{width:100%;min-width:0;padding-block:10px;border:1px solid var(--line);font:inherit;background-color:white}
#telegram-account a.secondary{display:inline-flex;text-decoration:none}#telegram-authorize-form{margin-top:20px;padding-top:16px;border-top:1px solid var(--line)}
.third-party-kicker{font-size:12px;font-weight:700;letter-spacing:.09em;text-transform:uppercase;color:var(--green);margin:0 0 6px}.third-party-auth h1{font-size:30px;line-height:1.2}.third-party-user{background:var(--green-soft);border:1px solid var(--green-line);border-radius:12px;padding:10px 12px;font-size:14px;color:var(--dark)}.third-party-status{margin-top:16px}.third-party-status h2{font-size:20px;margin:0 0 8px}.third-party-actions{display:flex;gap:10px;flex-wrap:nowrap;margin-top:16px}.third-party-actions .primary,.third-party-actions .secondary{flex:1 1 50%;min-width:0;padding:10px 14px;font-size:13px}
.account-status{margin:0 0 18px;padding:12px 14px;border:1px solid var(--green-line);background:var(--green-soft);border-radius:12px}.account-overview .hint{margin-top:14px}.account-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr))}.account-stats span{display:block;font-size:12px;letter-spacing:.05em;text-transform:uppercase;color:var(--muted)}.account-stats strong{display:block;overflow-wrap:anywhere}.account-subheading{margin:20px 0 12px;font-size:16px}
.account-section-nav{display:flex;overflow:auto;padding:0 0 16px;scrollbar-width:none}.account-section-nav .chip{border:1px solid var(--line)}.account-section-nav .chip.active{background:var(--dark);color:white;border-color:var(--dark)}
@media(max-width:760px){.third-party-auth h1{font-size:25px}.third-party-auth #telegram-login-authorize .third-party-actions{flex-direction:column-reverse}.third-party-actions .primary,.third-party-actions .secondary{width:100%;min-width:0}}

@supports (content-visibility:auto){.card{content-visibility:auto;contain-intrinsic-size:auto 360px}}
.sync-draft{white-space:pre-wrap;overflow-wrap:anywhere;max-height:12rem;overflow:auto;font-size:.85rem}

.jump-top{right:84px}
@media(max-width:760px){.jump-top{right:76px}}

.keyword-tags{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:8px}.keyword-tag{display:inline-flex;align-items:center;gap:6px;background:var(--green-soft);color:var(--green);border-radius:20px;padding:7px 10px;font-size:13px}.keyword-tag svg{width:16px;height:16px}.product-link{display:inline-flex;align-items:center;gap:5px;max-width:100%;margin-top:8px;color:var(--green);font-size:12px;line-height:1.5;text-underline-offset:3px}.product-link svg{width:14px;height:14px}.note-product>div:last-child{min-width:0}

[data-gallery]{touch-action:pan-y}.gallery-arrow{position:absolute;z-index:2;top:50%;transform:translateY(-50%);width:32px;height:44px;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;color:var(--dark);display:grid;place-items:center}.gallery-arrow svg{width:25px;height:25px;stroke-width:2.5;filter:drop-shadow(0 1px 1px white)}.gallery-arrow:hover{color:var(--green)}.gallery-outgoing{position:absolute;inset:0;pointer-events:none}.gallery-prev{left:2px}.gallery-next{right:2px}.gallery-counter{position:absolute;bottom:3px;left:50%;transform:translateX(-50%);background:#ffffffed;border-radius:12px;padding:2px 7px;font-size:11px;pointer-events:none;white-space:nowrap}.gallery-editor{margin-bottom:18px}.gallery-thumbnails{display:flex;gap:9px;overflow-x:auto;padding:4px 3px 12px}.gallery-thumbnail{flex:0 0 80px;position:relative;width:80px;height:92px;border:2px solid var(--line);border-radius:10px;overflow:hidden;padding:3px;background:white}.gallery-thumbnail.selected{border-color:var(--green)}.gallery-thumbnail img{width:100%;height:64px;object-fit:contain}.gallery-thumbnail span{font-size:10px;display:block}.gallery-editor .hint{margin-top:12px}.note-product>[data-gallery]{width:150px;flex-shrink:0}.manage-row>[data-gallery]{width:96px;min-height:96px}.product-image>.store-badge{z-index:3}.card .edit-btn{z-index:3}

#toast{display:flex;align-items:center;flex-wrap:wrap;gap:8px 14px;max-width:calc(100% - 32px);overflow-wrap:anywhere}#toast.show button{pointer-events:auto}#toast>span{flex:1;min-width:100px}#toast button{min-height:44px;padding:8px;font-weight:650;flex-shrink:0}#toast-undo{text-decoration:underline;text-underline-offset:3px}#toast-dismiss{font-size:22px}
@media(max-width:760px){#toast:has(#toast-undo){bottom:calc(150px + env(safe-area-inset-bottom))}}

.household-cart{display:flex;align-items:center;justify-content:space-between;gap:1rem;border-bottom:1px solid var(--line);padding:1rem 0;flex-wrap:wrap}
.household-cart>div{min-width:0;overflow-wrap:anywhere}
.household-member{display:flex;align-items:center;gap:.5rem;margin:.75rem 0;overflow-wrap:anywhere}
#household-management .picker-row{flex-wrap:wrap;gap:.5rem;overflow-wrap:anywhere}
#household-management select{max-width:100%}
.household-name-control{display:flex;align-items:center;gap:8px}
.household-name-control select{flex:1;min-width:0}

.community-fields{display:grid;grid-template-columns:minmax(80px,1fr) minmax(0,2fr);gap:.4rem}.community-fields dd{margin:0;overflow-wrap:anywhere}.community-comparison{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:1rem}.community-photo{max-width:200px;max-height:200px;object-fit:contain}.community-choice{display:flex;align-items:center;gap:.6rem;padding:.5rem}.community-choice input{width:auto}.is-unread{border-inline-start:4px solid var(--green,var(--green))}.community-requests details{margin:.7rem 0}

@media(max-width:760px){.nav{overflow-x:auto;overscroll-behavior-inline:contain}.manage-row [data-community-submit],.manage-row [data-community-offers]{font-size:12px}}

[dir="rtl"] body{text-align:right}[dir="rtl"] .sidebar{left:auto;right:0}[dir="rtl"] .main{margin-left:0;margin-right:250px}[dir="rtl"] .sidebar-collapsed .main{margin-right:76px}[dir="rtl"] .dialog-head{text-align:right}[dir="rtl"] .community-fields dd,[dir="rtl"] .saved-note{unicode-bidi:plaintext}[dir="rtl"] input[type="email"],[dir="rtl"] input[inputmode="url"]{direction:ltr;text-align:left}@media(max-width:760px){[dir="rtl"] .main,[dir="rtl"] .sidebar-collapsed .main{margin-right:0}[dir="rtl"] .sidebar{right:0;left:0}}

@media(min-width:761px) and (max-width:1100px){[dir="rtl"] .main{margin-right:210px}[dir="rtl"] .sidebar-collapsed .main{margin-right:76px}}

.account-section-nav[role="tablist"]{display:flex;gap:.5rem;overflow-x:auto}.account-section-nav [role="tab"]{flex-shrink:0}.account-card[hidden]{display:none}.account-card[role="tabpanel"]:focus{outline:2px solid var(--green);outline-offset:3px}
.cloud-status{position:relative;display:grid;place-items:center;flex-shrink:0;color:var(--muted)}
.cloud-status-mark{position:absolute;right:0;display:grid;place-items:center;width:15px;height:15px;border-radius:50%;background:var(--bg)}.cloud-status-mark svg{width:12px;height:12px;stroke-width:2.5}
.cloud-status[data-state="synced"]{color:var(--green)}.cloud-status[data-state="pending"]{color:var(--yellow-ink)}.cloud-status[data-state="error"]{color:var(--danger)}
.cloud-status-text{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.sync-progress{width:12px;height:12px;border:2px solid currentColor;border-top-color:transparent;border-radius:50%;animation:cloud-sync-spin .8s linear infinite}
@keyframes cloud-sync-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.sync-progress{animation:none}}
.account-actions{display:flex;align-items:center;margin-inline-start:auto}.account-actions .icon-button{flex-shrink:0}
.notification-bell{position:relative;flex-shrink:0}.notification-bell .badge{position:absolute;top:-3px;right:-4px;min-width:18px;font-size:11px}.notification-bell .badge[hidden]{display:none}
#notification-popover{position:fixed;z-index:90;width:390px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 110px);overflow:auto;background:var(--white,#fff);border:1px solid var(--line);border-radius:18px;box-shadow:0 12px 40px #153f3030;padding:16px;overscroll-behavior:contain}
.notification-event{padding:10px;border-bottom:1px solid var(--line);overflow-wrap:anywhere}.notification-open{display:flex;flex-direction:column;gap:5px;width:100%;text-align:start;color:inherit;padding:4px}.notification-open time{font-size:12px;color:var(--muted)}.notification-read{font-size:13px;text-decoration:underline}.notification-open:focus-visible,.notification-read:focus-visible{outline:2px solid var(--green);outline-offset:2px}
@media(max-width:760px){.account-section-nav{margin-inline:-4px;padding:4px}}

.household-invitation-qr{text-align:center;margin:16px auto}.household-invitation-qr canvas{width:280px;max-width:100%;height:auto;image-rendering:pixelated}

.header-popover{position:fixed;z-index:30;width:310px;max-width:calc(100vw - 24px);overflow:auto;border:1px solid var(--line);border-radius:18px;background:white;box-shadow:0 14px 45px #183c3126;padding:8px}
.account-menu-heading{padding:14px 12px 16px;border-bottom:1px solid var(--line);margin-bottom:6px;display:grid;gap:5px}
.account-menu-heading bdi{font-size:12px;color:var(--muted);overflow-wrap:anywhere}
.account-menu-item{display:flex;align-items:center;gap:12px;text-align:start;width:100%;border-radius:10px;padding:12px}
.account-menu-item:hover,.account-menu-item:focus-visible{background:var(--green-soft)}
.account-menu-item>svg:first-child{color:var(--green)}
.account-menu-item>svg:last-child{width:16px;margin-inline-start:auto;color:var(--muted)}
.account-menu-item span{display:grid;gap:4px}.account-menu-item strong{font-size:14px;font-weight:600}.account-menu-item small{font-size:12px;color:var(--muted)}
.account-menu-footer{border-top:1px solid var(--line);margin-top:6px;padding-top:6px}
.product-brand{display:block;color:var(--green);font-size:12px;font-weight:700;line-height:1.5;margin-bottom:3px;overflow-wrap:anywhere}
.deposit-hint{display:block;font-size:12px;color:var(--muted);margin-top:7px}
.product-preview{max-width:760px}.product-preview .dialog-head{align-items:flex-start;gap:16px}.product-preview .dialog-head>div{min-width:0;overflow-wrap:anywhere}.product-preview .icon-button{flex-shrink:0}
.preview-image{overflow:hidden;touch-action:none}.preview-image .product-image{aspect-ratio:auto;height:50dvh;grid-template:minmax(0,1fr)/minmax(0,1fr);touch-action:none}.preview-image .product-image img{min-width:0;min-height:0;object-fit:contain;transform-origin:center;user-select:none}.preview-surface{position:absolute;inset:0;pointer-events:none}.is-zoomed .preview-image{cursor:grab}.is-zoomed .preview-image:active{cursor:grabbing}.preview-zoom{margin-top:14px}.preview-zoom output{font-variant-numeric:tabular-nums}.preview-credit:empty{display:none}
.deposit-fields{margin:0 0 18px;border:1px solid var(--line);border-radius:12px;padding:14px;background:var(--bg)}.deposit-fields legend{font-weight:650;padding:0 6px}.deposit-fields .hint{margin:0 0 12px}.deposit-fields .field{margin:0}
.field .hint{margin-top:6px}.scan-trigger{flex-shrink:0}.barcode-input-row{display:flex;gap:8px}.barcode-input-row input{min-width:0}.barcode-input-row button{flex-shrink:0}
@media(max-width:760px){.scan-trigger span{display:none}.scan-trigger{padding:10px}.toolbar{flex-wrap:wrap}.toolbar .search{min-width:0}.product-preview{padding:20px}.deposit-fields .fields{grid-template-columns:1fr}}

.language-picker{position:relative;flex-shrink:0;color:var(--dark)}
.language-picker summary{cursor:pointer;list-style:none}
.language-picker summary::-webkit-details-marker{display:none}
.language-picker img{display:block;width:24px;height:18px;object-fit:cover;border-radius:3px;box-shadow:0 0 0 1px #183c3114}
.language-picker summary:hover,.language-options button:hover{background:var(--green-tint)}
.language-picker summary:focus-visible{outline:3px solid var(--focus);outline-offset:3px}
.language-options{position:absolute;inset-block-start:100%;inset-inline-end:-6px;display:grid;gap:4px;padding:8px 6px;background:white;border:1px solid var(--line);border-radius:18px;box-shadow:0 10px 28px #183c3126;z-index:95}
.language-picker[aria-busy="true"]{opacity:.6}.auth-card>.language-picker{position:absolute;z-index:2}
@media(max-width:360px){.app-navbar .account-actions{gap:4px}.app-navbar .account-actions .icon-button,.app-navbar .cloud-status{width:32px}}
#app{--navbar-offset:250px}
.app-navbar{position:fixed;inset-block-start:0;inset-inline-start:var(--navbar-offset);inset-inline-end:0;height:var(--navbar-height);padding-block-start:env(safe-area-inset-top);z-index:25;border-bottom:1px solid var(--line)}
.app-navbar .sync-bar{display:flex;align-items:center;gap:16px;height:100%;max-width:1550px;margin:0;padding:10px var(--navbar-gutter)}
.app-navbar .account-actions{flex-shrink:0}

#sync-review:not([hidden]){margin-bottom:16px}
#list-content :is(button,input,select,textarea,[tabindex]){scroll-margin-block-start:calc(var(--navbar-height) + 16px);scroll-margin-block-end:100px}
html:has(.app-navbar){scroll-padding-block-start:100px}
@media(min-width:761px){#app.sidebar-collapsed{--navbar-offset:76px}}
@media(min-width:761px) and (max-width:1100px){#app{--navbar-offset:210px;--navbar-gutter:30px}}
@media(max-width:760px){
 #app{--navbar-offset:0px}
 .app-navbar .sync-bar{flex-wrap:wrap;align-content:center}
 .app-navbar .mobile-brand{display:flex;align-items:center;flex:1;min-width:0;margin:0;justify-content:flex-start;order:0}
 .app-navbar .mobile-brand .brand{max-width:none}
 .app-navbar .account-actions{order:1}
}

.sort-handle{touch-action:none;cursor:grab;flex-shrink:0;width:30px;min-height:44px;padding:0;display:grid;place-items:center;color:var(--muted);border-radius:8px}
.sort-handle:hover{background:var(--green-soft);color:var(--green)}
.sort-handle svg{stroke-width:3}
.summary-line{display:flex;justify-content:space-between;font-size:14px;margin-top:24px;color:var(--muted)}
.total{border-top:1px solid var(--line);padding-top:20px;font-size:19px;font-weight:700;color:var(--dark)}

.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
#app{--navbar-height:calc(60px + env(safe-area-inset-top));--navbar-gutter:28px}
.main{padding-inline:28px;padding-block-start:calc(var(--navbar-height) + 16px);padding-block-end:24px}
.app-navbar .sync-bar{padding-block:6px;flex-wrap:nowrap}
.sidebar{padding-top:20px}.sidebar>.brand-caption{margin-bottom:20px}.nav{gap:4px}.nav button{min-height:48px;padding-block:12px}
.nav .nav-more,.nav .nav-cart{display:none}.brand picture{display:block;max-width:100%}
.topbar{flex-direction:row;align-items:center;gap:8px;margin-bottom:12px}.topbar>div:first-child{min-width:0;flex:1}.topbar h1{font-size:24px;overflow-wrap:anywhere}.topbar .subtitle{margin-top:3px;font-size:12px}
.header-actions{flex-direction:row;width:auto;gap:4px}.header-actions button{flex:none}.page-assistant{flex-shrink:0}
.icon-button,.add,.edit-btn{width:44px;height:44px;flex-shrink:0}.primary,.secondary,.chip{min-height:44px;padding:9px 12px}.text-danger{min-height:44px;min-width:44px}.stepper{gap:4px}.stepper button{width:44px;height:44px}.stepper>span{min-width:18px;text-align:center}
.account-actions{gap:4px}.app-navbar .account-actions .icon-button{width:44px;height:44px}.app-navbar .cloud-status{width:44px;height:44px}.cloud-status-mark{bottom:5px}
.presence-status{margin:0 0 8px;font-size:12px}.presence-status:empty{display:none}
.toolbar{gap:8px;margin-bottom:8px}.search{padding-inline:12px}.search input{height:44px;font-size:16px}.chips{padding-bottom:8px;gap:4px}.chip{font-size:13px}.sectionline{margin:4px 0 8px;min-height:28px}.sectionline h2{font-size:15px}
.grid{gap:12px}.card:hover{transform:none;box-shadow:none}.card-bottom{margin-top:8px}.product-name{min-height:44px}.edit-btn{top:8px;right:8px}.note-link{min-height:44px;padding-block:6px}.hint{margin-top:12px}
.manage-row{padding:10px 12px;gap:12px}.manage-row .desc{min-width:0;overflow-wrap:anywhere}.manage-row .secondary{min-width:44px}.empty>svg{width:32px;height:32px;margin-bottom:8px}.empty h2{font-size:18px}.empty p{font-size:14px}
#jump-top{position:static;width:max-content;min-height:44px;margin:16px auto 0;box-shadow:none}#jump-top span{display:inline}
.list-actions{gap:8px;margin-bottom:12px}.account-card{padding:16px;margin-bottom:12px}.account-card h2{font-size:18px;margin-bottom:10px}.account-card h3{margin:0;font-size:16px}.account-card form{margin-top:16px}.account-card p{font-size:14px}.account-card summary{min-height:44px;align-content:center;cursor:pointer}.account-section-nav{padding-bottom:8px}.account-stats{gap:0;margin-top:8px}.account-stats article{border:0;border-bottom:1px solid var(--line);background:none;border-radius:0}.account-stats strong{margin-top:4px;font-size:16px}.field{margin-bottom:12px}.field input,.field select{min-height:44px;padding:10px}.community-choice{min-height:44px}.notification-read{min-height:44px}
.history-list,.community-requests{gap:0;background:white;border:1px solid var(--line);border-radius:12px;overflow:hidden}.history-card,.community-requests>.account-card{border:0;border-bottom:1px solid var(--line);border-radius:0;margin:0;padding:14px;gap:8px}.history-card:last-child,.community-requests>.account-card:last-child{border-bottom:0}.history-card h2{margin:4px 0;font-size:16px}.history-card p{margin:4px 0}.history-copy-hint{margin:0 0 10px;font-size:12px}.history-actions{gap:6px}.history-actions .primary{flex-basis:auto;order:0}.history-actions button{font-size:13px;padding:8px}
.template-group{margin-top:14px}.template-group>h2{font-size:15px;margin-bottom:8px}.template-group .account-card{margin:0;border-radius:0;border-width:0 0 1px}.template-group .hint{margin:4px 0}.template-group .list-actions{margin-bottom:0}.page-help{font-size:13px;margin:8px 0;color:var(--muted)}.page-help summary{min-height:44px;align-content:center;cursor:pointer}.dialog-head{gap:8px}.dialog-head h2{font-size:20px}.dialog-head .icon-button{flex-shrink:0}
.app-menu{width:340px;padding:12px}.app-menu .dialog-head{margin:0 0 6px;padding-inline-start:10px}.app-menu nav{display:grid}.app-menu nav button{display:flex;align-items:center;gap:12px;min-height:48px;width:100%;padding:10px 12px;border-radius:8px;text-align:start;font-size:14px}.app-menu nav button:hover,.app-menu nav [aria-current]{background:var(--green-soft);color:var(--green)}
@media(max-width:760px){
 #app{--navbar-height:calc(56px + env(safe-area-inset-top));--navbar-gutter:12px}
 .main{padding-inline:12px;padding-block-start:calc(var(--navbar-height) + 8px);padding-block-end:calc(86px + env(safe-area-inset-bottom))}
 .app-navbar .sync-bar{gap:4px;padding-block:4px}.app-navbar .mobile-brand{gap:0}.app-navbar .mobile-brand .brand{flex:0 1 120px;width:120px}.app-navbar .account-actions{gap:0}
 .sidebar{height:calc(68px + env(safe-area-inset-bottom));padding:4px 4px max(4px,env(safe-area-inset-bottom))}.nav{overflow:visible;gap:0}.nav .nav-secondary{display:none}.nav .nav-more{display:flex}.nav button{flex:1 1 0;min-width:0;min-height:56px;padding:6px 2px;font-size:10px;gap:2px;justify-content:center}.nav button.active{background:transparent;color:var(--green)}.nav button.active>svg{background:var(--green-soft);box-shadow:0 0 0 5px var(--green-soft);border-radius:5px}.nav button>span.nav-mobile{min-height:18px}.nav .badge{top:0}
 .topbar{flex-direction:row;gap:4px;margin-bottom:8px}.topbar h1{font-size:21px}.header-actions{flex-direction:row;justify-content:flex-end;width:auto}.header-actions button{padding:10px}.header-actions svg{width:22px}
 .toolbar{display:flex;flex-wrap:nowrap}.toolbar .search{min-width:0;flex-basis:0}

 .chips{margin-inline:0;padding-inline:0}.card-body{padding:6px 0 0}.card .price{font-size:15px}.card-bottom{flex-wrap:wrap;gap:4px}.stepper{gap:0}.grid{gap:8px}.card{padding:8px}.card .note-link{font-size:11px}.card .product-image{aspect-ratio:4/3}.card .product-name{line-height:1.3}.add-product-card{min-height:150px;padding:12px;gap:8px}
 .history-card{padding:12px}.history-card>.history-actions{justify-content:stretch}.history-actions button{flex:1}.history-actions .primary{flex-basis:auto}.history-copy-hint{line-height:1.4}
 .account-card{padding:12px}.account-stats{grid-template-columns:1fr}.account-stats article{display:flex;gap:12px;align-items:center;justify-content:space-between}.account-stats strong{margin:0;text-align:end;max-width:65%}.account-section-nav .chip{border-radius:8px}.auth-shell{padding:16px}.auth-card{padding:20px}
 .app-menu{margin-block:auto 80px;max-height:calc(100dvh - 100px)}
}
@media(max-width:359px){.app-navbar .mobile-brand .brand{width:36px;flex:0 0 36px}.brand picture,.brand img{width:36px;height:36px}.auth-card>.brand{width:48px}.auth-card>.brand picture,.auth-card>.brand img{width:48px;height:48px}}

.product-name{overflow-wrap:anywhere}.card button.store-badge,.gallery-arrow{min-width:44px;min-height:44px}
@media(max-width:760px){.manage-row{display:grid;grid-template-columns:96px minmax(0,1fr) 44px;gap:6px 8px}.manage-row>[data-gallery],.manage-row>.product-image{grid-column:1;grid-row:1}.manage-row>.desc{grid-column:2/-1;grid-row:1}.manage-row>.price{grid-column:1;grid-row:2}.manage-row>.stepper,.manage-row>.add{grid-column:2;grid-row:2;justify-self:start}.manage-row>[data-act="edit"]{grid-column:3;grid-row:2;width:44px}.manage-row .desc .hint{margin:4px 0}.manage-row .desc button{font-size:12px;white-space:normal}}

body select:not([multiple]):not([size]){appearance:none;cursor:pointer;min-height:44px;border-radius:10px;padding-inline:10px 30px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23617067' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 8px center;text-overflow:ellipsis}
body[dir="rtl"] select:not([multiple]):not([size]),[dir="rtl"] body select:not([multiple]):not([size]){background-position:left 8px center}
select:hover{border-color:var(--green-line)}select:disabled{cursor:wait;opacity:.65}
.catalog-filters{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) 44px;gap:6px;max-width:640px}.catalog-filters>.store-filter{margin:0;min-width:0}.catalog-filters>.store-filter>span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.catalog-filters select{width:100%;min-width:0;max-width:none;border:1px solid var(--line);background-color:white;color:var(--dark);font-size:13px;font-weight:500}.catalog-sort{position:relative;display:grid;place-items:center;margin:0;box-shadow:inset 0 0 0 1px var(--line);border-radius:10px;background:white;color:var(--muted)}.catalog-sort.is-active{color:var(--green);background:var(--green-soft)}.catalog-sort select{position:absolute;inset:0;opacity:0}.catalog-sort:focus-within{outline:3px solid var(--focus);outline-offset:3px}.catalog-count{min-height:20px;margin:4px 0 6px}
#header-cart{display:flex;align-items:center;justify-content:center;gap:5px;min-width:76px;max-width:120px;height:44px;padding:3px 6px}.header-cart-info{display:grid;justify-items:center;min-width:0;gap:1px;font-variant-numeric:tabular-nums}.header-cart-info .badge{height:17px;min-width:20px;margin:0;padding:0 4px;border-radius:8px;font-size:10px}.header-cart-info [data-cart-link-total]{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;font-weight:600}
#install-banner{display:flex;align-items:center;gap:8px;margin-bottom:8px;padding:0 4px 0 12px;border:1px solid var(--line)}.install-banner-action{display:flex;align-items:center;gap:10px;flex:1;min-height:44px;text-align:start;font-size:14px}.install-banner-action+button{background:transparent}
.language-in-menu{margin-block:4px}.language-in-menu summary{display:flex;align-items:center;gap:12px;width:100%;height:auto;min-height:52px;padding:8px 12px;background:none;text-align:start}.language-in-menu summary>span{display:grid;gap:3px;font-size:14px}.language-in-menu small{font-size:12px;font-weight:400;color:var(--muted)}.language-in-menu summary>svg{margin-inline-start:auto;width:16px}.language-in-menu .language-options{position:static;display:flex;justify-content:space-around;border:0;padding:4px;background:var(--bg)}
@media(max-width:760px){
 #header-cart{display:none}.nav .nav-cart{display:flex}
 .nav-cart [data-cart-link-total]{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:600;font-variant-numeric:tabular-nums}
 .nav .nav-cart .badge{left:auto;inset-inline-start:calc(50% + 5px);top:1px;min-width:18px;max-width:calc(50% - 6px);height:18px;margin:0;padding:0 3px;border-radius:9px;display:block;line-height:18px;font-size:9px;font-variant-numeric:tabular-nums;text-align:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 .app-navbar .mobile-brand{flex:1;overflow:hidden}.app-navbar .mobile-brand picture{width:100%}.catalog-filters{max-width:none}
}

body{background:var(--bg);line-height:1.45;-webkit-tap-highlight-color:#0796631a}
::selection{background:var(--green-tint);color:var(--dark)}
button,a,input,select,textarea,summary{touch-action:manipulation}
button{transition:background-color .16s,border-color .16s,box-shadow .16s,color .16s}
a{color:var(--green);text-underline-offset:3px}
input::placeholder,textarea::placeholder{color:var(--muted);opacity:1}
input[type="checkbox"],input[type="radio"],progress{accent-color:var(--green)}
:where(a,summary,[tabindex]):focus-visible{outline:3px solid var(--focus);outline-offset:3px}
.primary{background:var(--action);border:1px solid transparent;border-radius:var(--radius-control);box-shadow:0 2px 3px #087f5414;font-weight:650}
.primary:hover{background:var(--action-hover);box-shadow:0 3px 8px #087f5420}
.secondary{border-color:var(--line);border-radius:var(--radius-control);color:var(--dark);font-weight:550}
.secondary:hover,.icon-button:hover{background:var(--green-soft);border-color:var(--green-line);color:var(--green)}
.icon-button{border-radius:var(--radius-control);background:var(--surface-muted);color:var(--muted)}
.text-danger,.form-error{color:var(--danger)}
.text-danger:hover{background:var(--orange-soft);border-radius:var(--radius-control)}
.badge{background:var(--action)}
.field input,.field select,.field textarea{border-radius:var(--radius-control);border-color:var(--field-line);transition:border-color .16s,box-shadow .16s}
.field input:hover,.field textarea:hover{border-color:var(--green)}
.field input:focus,.field select:focus,.field textarea:focus{border-color:var(--green)}
.search{border-color:var(--field-line);border-radius:var(--radius-control);box-shadow:0 2px 4px #203b3203}
.search:focus-within{border-color:var(--green);outline:3px solid var(--focus);outline-offset:3px}
.search input:focus-visible{outline:none}
.search>svg{color:var(--green)}
.catalog-filters select,.catalog-sort,body select:not([multiple]):not([size]){border-radius:var(--radius-control)}
.chip{border-radius:var(--radius-control);font-weight:550}
.chip.active,.account-section-nav .chip.active{background:var(--green-soft);color:var(--green);border-color:var(--green-line)}
.chip:hover{background:var(--surface-muted)}
.chip.active:hover{background:var(--green-tint)}
.sidebar{background:var(--surface);border-color:var(--line)}
.sidebar>.brand-caption{color:var(--muted);letter-spacing:.12em;padding-bottom:20px;border-bottom:1px solid var(--line)}
.sidebar-head .brand{min-height:52px}
.nav button{border-radius:var(--radius-control);font-weight:550;color:var(--muted)}
.nav button:hover{background:var(--surface-muted);color:var(--green)}
.nav button.active{background:var(--green-soft);color:var(--green);font-weight:650}
.nav button.active>svg{color:var(--brand-green)}
.app-navbar{background:var(--surface);box-shadow:0 3px 14px #203b3204}
.app-navbar .icon-button{background:transparent}
.app-navbar .icon-button:hover,.app-navbar .icon-button[aria-expanded="true"]{background:var(--green-soft);color:var(--green)}
#header-cart{border-radius:var(--radius-control);background:var(--green-soft);color:var(--green)}
#header-cart[aria-current]{box-shadow:inset 0 0 0 1px var(--green-line)}
#header-cart:hover{background:var(--green-tint)}
.header-cart-info .badge{background:var(--action)}
.topbar h1{font-weight:750;letter-spacing:-.7px;color:var(--dark)}
.sectionline h2,.template-group>h2{font-weight:650}
.card{border-radius:var(--radius-card);box-shadow:var(--shadow-card);padding:12px;transition:border-color .16s,box-shadow .16s}
.card .product-image{border-radius:12px;background-color:var(--surface-muted)}
.card-body{padding:10px 2px 0}
.card .price{color:var(--dark);font-variant-numeric:tabular-nums}
.add{background:var(--lime-soft);color:var(--green);border:1px solid #dce7c4;border-radius:14px}
.add:hover{background:#e5efce}
.stepper{background:var(--green-soft);border-radius:var(--radius-control)}
.stepper button{border-radius:var(--radius-control)}
.stepper button:hover{background:var(--green-tint)}
.edit-btn{border-color:var(--line);box-shadow:0 2px 6px #203b3208}
.add-product-card{background:var(--green-soft);border:1px dashed var(--green-line);box-shadow:none}
.add-product-card>svg{background:var(--surface);color:var(--brand-green)}
.empty{border:1px dashed var(--green-line);border-radius:var(--radius-card);background:var(--surface);padding:32px 20px}
.empty>svg{box-sizing:content-box;padding:14px;border-radius:18px;background:var(--lime-soft);color:var(--green)}
.manage-list,.history-list,.community-requests{border-radius:var(--radius-card);box-shadow:var(--shadow-card)}
.manage-row,.picker-row,.store-row,.history-card{border-color:var(--line)}
.history-status{background:var(--lime-soft);color:var(--lime-ink);border-radius:8px;font-weight:600}
.account-card{border-radius:var(--radius-card);box-shadow:var(--shadow-card)}
.account-section-nav{gap:8px;padding-block:4px 12px}
.account-section-nav .chip{border-radius:var(--radius-control)}
.account-status,.third-party-user{background:var(--green-soft);border-color:var(--green-line);border-radius:var(--radius-control)}
.account-stats article{padding:12px 4px}
.account-stats strong{color:var(--green)}
.template-group .account-card{border-color:var(--line);box-shadow:none}
.template-group .account-card:first-of-type{border-radius:var(--radius-card) var(--radius-card) 0 0}
.template-group .account-card:last-of-type{border-radius:0 0 var(--radius-card) var(--radius-card)}
.template-group .account-card:only-of-type{border-radius:var(--radius-card)}
.community-requests>.account-card{border-radius:0;box-shadow:none}
.community-choice{border-radius:var(--radius-control)}
.community-choice:has(input:checked){background:var(--green-soft)}
.is-unread{border-inline-start-color:var(--brand-orange)}
.notification-event.is-unread{background:var(--yellow-soft)}
.notification-bell .badge{background:var(--brand-orange);color:#22100a;font-weight:750}
.header-popover,#notification-popover,.language-options{border-color:var(--line);border-radius:20px;box-shadow:var(--shadow-popover)}
.account-menu-heading{background:var(--surface-muted);border-radius:12px 12px 0 0}
.account-menu-item,.app-menu nav button{border-radius:var(--radius-control)}
.language-in-menu .language-options{border-radius:var(--radius-control);box-shadow:none}
#install-banner{background:var(--yellow-soft);border-color:#eadba7;color:var(--yellow-ink);border-radius:var(--radius-control)}
#install-banner .icon-button{color:var(--yellow-ink)}
dialog{border:1px solid var(--line);border-radius:var(--radius-dialog);background:var(--surface);box-shadow:0 24px 80px #203b322b;padding:24px}
dialog::backdrop{background:#203b3266;backdrop-filter:blur(5px)}
.dialog-head{padding-bottom:14px;border-bottom:1px solid var(--line);margin-bottom:18px}
.dialog-head h2{font-weight:700;letter-spacing:-.4px}
.dialog-head .icon-button{background:var(--surface-muted)}
.actions{padding-top:16px;border-top:1px solid var(--line)}
.photo-editor,.note-product{gap:16px}
.import-file{background:var(--yellow-soft);border-color:#d9c78c}
.import-file label{color:var(--yellow-ink)}
.web-image-search,.image-improvement,.deposit-fields,.category-row,.receipt-item{border-radius:var(--radius-card);background:var(--surface-muted);border-color:var(--line)}
.image-improvement{background:var(--lime-soft)}
.preview-image{background:var(--surface-muted);border-radius:var(--radius-card)}
#toast{background:var(--dark);border:1px solid #ffffff1a;border-radius:16px;box-shadow:var(--shadow-popover)}
#toast-undo{color:var(--brand-yellow)}
.auth-shell{background:radial-gradient(ellipse at 12% 12%,#0796630d,transparent 48%),radial-gradient(ellipse at 90% 85%,#f6c33e17,transparent 44%),var(--bg)}
.auth-card{max-width:460px;border-radius:28px;padding:36px;box-shadow:0 12px 50px #203b320b;position:relative}
.auth-card::before{content:"";display:block;width:76px;height:5px;position:absolute;top:-1px;inset-inline-start:36px;border-radius:0 0 6px 6px;background:linear-gradient(90deg,var(--brand-green) 0 40%,var(--brand-yellow) 40% 65%,var(--brand-orange) 65% 82%,var(--brand-lime) 82%)}
.auth-card>.brand{width:220px;max-width:calc(100% - 40px);margin-bottom:24px}
.auth-card h1{font-size:28px;letter-spacing:-.8px;line-height:1.2}
.auth-card p{color:var(--muted);line-height:1.65}
.auth-card .field{margin-block:24px 16px}
.auth-card .field input,.auth-card .primary{min-height:48px}
.auth-card>.language-picker{inset-block-start:28px;inset-inline-end:24px}
@media(hover:hover){
 .card:hover{border-color:var(--green-line);box-shadow:0 6px 20px #203b320c}
 .manage-row:hover,.picker-row:hover,.history-card:hover{background:#fafbf8}
}
@media(min-width:761px){
 .grid{gap:16px}
 .topbar{margin-bottom:16px}
 .topbar h1{font-size:26px}
 .account-card{padding:20px}
 .community-requests>.account-card{padding:16px}
}
@media(max-width:760px){
 .sidebar{box-shadow:0 -4px 20px #203b3206}
 .nav button.active{background:transparent}
 .nav button.active>svg{background:var(--green-soft);box-shadow:0 0 0 5px var(--green-soft);color:var(--green)}
 .grid{gap:10px}.card{padding:9px;border-radius:16px}.card-body{padding:8px 0 0}
 .account-card{padding:14px}.community-requests>.account-card{padding:12px}
 dialog{padding:18px;border-radius:20px}.dialog-head{margin-bottom:14px;padding-bottom:12px}
 .auth-card{padding:28px 24px;border-radius:24px}.auth-card h1{font-size:25px}
 .auth-card>.language-picker{inset-block-start:22px;inset-inline-end:16px}
 .auth-card>.brand{max-width:calc(100% - 36px)}
}
@media(max-width:359px){.auth-card>.brand{width:52px}.auth-card>.brand picture,.auth-card>.brand img{width:52px;height:52px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@media(forced-colors:active){
 .primary,.secondary,.icon-button,.add,.stepper,.chip,.nav button.active,[data-cart-link]{border:1px solid ButtonText}
 .nav button.active,.chip.active{outline:2px solid Highlight;outline-offset:-3px}
}

/* Compact notifications retain the shared neutral popover surface. */
#notification-popover{width:340px;max-height:440px;padding:8px;display:flex;flex-direction:column;overflow:hidden;border-radius:16px}
#notification-popover .dialog-head{flex-shrink:0;margin:0;padding:0 0 4px;gap:8px}
#notification-popover h2{font-size:16px;letter-spacing:-.2px}
#notification-popover .icon-button{width:44px;height:44px}
#notification-popover .list-actions{flex-shrink:0;align-items:center;justify-content:space-between;gap:8px;margin:0;padding:0 4px}
#notification-popover .list-actions button{min-width:44px;min-height:44px;font-size:12px;color:var(--green)}
#notification-popover .notification-list{overflow:auto;overscroll-behavior:contain;min-height:0}
#notification-popover .notification-event{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:4px;padding:6px;border-radius:10px;border-inline-start:3px solid transparent;margin-bottom:4px}
#notification-popover .notification-event.is-unread{border-inline-start-color:var(--brand-orange);background:var(--yellow-soft)}
#notification-popover .notification-open{min-height:44px;min-width:0;padding:4px;gap:2px;font-size:12px;line-height:1.35}
#notification-popover .notification-open strong{font-size:13px;font-weight:650}
#notification-popover .notification-open time{font-size:11px}
#notification-popover .notification-read{width:44px;height:44px;padding:0;display:grid;place-items:center;color:var(--green);background:var(--green-soft);border-radius:10px}
#notification-popover .notification-read svg{width:18px;height:18px}
@media(forced-colors:active){#notification-popover{border:1px solid CanvasText}}
