.shopping-layout-tabs{display:flex;gap:6px;background:var(--soft);border-radius:100px;padding:5px;margin:20px 0 16px;width:max-content;max-width:100%}
.shopping-layout-tabs button{border:0;background:none;color:var(--muted);border-radius:100px;padding:11px 20px;min-height:44px;font-size:12px}
.shopping-layout-tabs button[aria-pressed=true]{background:var(--ink);color:var(--cream);box-shadow:0 2px 6px #0000000d}
.store-summary{scroll-margin-top:90px;margin:28px 0 12px}
.store-summary-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0;min-height:54px;cursor:pointer;list-style:none;border-radius:12px}
.store-summary-lists[open]>.store-summary-heading{margin-bottom:12px}
.store-summary-heading .screen-kicker{font-size:9px;letter-spacing:1px;margin:0 0 9px}
.store-summary-heading h3,.store-summary-title{display:block;font-size:25px;letter-spacing:-1px;line-height:1.2;margin:0}
.store-summary-heading p,.store-summary-heading-copy>small{display:block;font-size:11px;color:var(--muted);margin:7px 0 0}
.store-summary-heading-copy{min-width:0}
.store-summary-actions{display:flex;justify-content:flex-end;margin:0 0 12px}
.store-summary-actions>.button{background:none;border:1px solid var(--line);border-radius:100px;white-space:nowrap;min-height:40px;font-size:11px;padding:8px 12px;color:var(--ink)}
.store-summary-fold-label{display:flex;gap:12px;align-items:center;flex:none;font-size:11px;color:var(--muted);padding:12px 4px}
.store-summary-lists:not([open])>.store-summary-heading .store-fold-open,.store-summary-lists[open]>.store-summary-heading .store-fold-closed{display:none}
.store-fold-chevron{display:block;flex:none;width:7px;height:7px;margin:0 3px 4px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg)}
.store-list[open]>summary .store-fold-chevron,.store-summary-lists[open]>.store-summary-heading .store-fold-chevron,.store-pending[open]>summary .store-fold-chevron{transform:rotate(225deg);margin-bottom:0;margin-top:4px}
.store-summary-heading::-webkit-details-marker,.store-list>summary::-webkit-details-marker{display:none}
.store-summary-heading:focus-visible,.store-list>summary:focus-visible,.store-pending>summary:focus-visible{outline:2px solid var(--ink);outline-offset:-4px}
.store-summary-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;align-items:start}
.store-list{border:1px solid var(--line);border-radius:22px;background:var(--surface,#fffdfb);overflow:hidden}
.store-list>summary{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:17px 18px;background:var(--soft);list-style:none;cursor:pointer;min-height:74px}
.store-list[open]>summary{border-bottom:1px solid var(--line)}
.store-list-brand{display:flex;align-items:center;gap:10px;min-width:0}
.store-list-monogram{width:36px;height:36px;background:var(--ink);color:var(--accent);border-radius:11px;display:grid;place-items:center;font-size:18px;font-weight:800;flex:none}
.store-list-identity{display:block;min-width:0}
.store-list-brand h4,.store-list-name{display:block;font-size:16px;letter-spacing:-.4px;line-height:1.2;margin:0}
.store-list-brand small{display:block;color:var(--muted);font-size:10px;margin-top:4px;line-height:1.4}
.store-list-logo{display:block;margin-top:5px;line-height:0}
.store-list-logo .retailer-mini-logo{display:block;height:16px;width:auto;max-width:72px;object-fit:contain;object-position:left center}
.store-list-logo .retailer-name-fallback{display:none}
.store-list-summary-end{display:flex;align-items:center;gap:12px;flex:none}
.store-list-total{font-size:23px;letter-spacing:-.8px;white-space:nowrap;font-variant-numeric:tabular-nums}
.store-list-total small{font-size:11px;letter-spacing:0}
.store-list ul,.store-pending ul{list-style:none;margin:0;padding:0 17px}
.store-list-row{display:flex;gap:10px;align-items:center;padding:13px 0;border-bottom:1px solid var(--line);min-height:74px}
.store-list-row:last-child{border-bottom:0}
.store-list-image,.store-list-placeholder{width:34px;height:43px;object-fit:contain;flex:none;mix-blend-mode:multiply}
.store-list-placeholder{display:grid;place-items:center;font-size:24px;color:var(--muted)}
.store-list-product{flex:1;min-width:0}
.store-list-product>strong{display:block;font-size:12px;font-weight:750;line-height:1.4}
.store-list-product>small{display:block;font-size:10px;color:var(--muted);margin-top:3px}
.store-list-product>.store-list-replaces{font-size:9px;opacity:.85}
.store-list-price{font-size:15px;font-weight:800;letter-spacing:-.3px;white-space:nowrap;align-self:center}
.store-list-price small{font-size:10px;letter-spacing:0}
.store-list>footer{display:flex;justify-content:space-between;gap:10px;padding:7px 17px;border-top:1px solid var(--line)}
.store-list>footer button{background:none;border:0;color:var(--ink);font-size:10px;font-weight:750;padding:8px 0;min-height:40px;text-align:left}
.store-list-check{position:relative;flex:none;display:grid;place-items:center;min-width:32px;min-height:44px;cursor:pointer}
.store-list-check input{width:20px;height:20px;accent-color:var(--ink);cursor:pointer;min-height:0;margin:0}
.store-list-check span{display:none}
.store-list-row.is-checked .store-list-product>strong{text-decoration:line-through;color:var(--muted)}
.store-list-row.is-checked .store-list-image{opacity:.5}
.store-pending-block{margin-top:18px}
.store-pending-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}
.store-pending-actions>.button{min-height:44px;font-size:12px;text-align:left}
.store-pending-actions>small{flex:none;color:var(--muted);font-size:10px}
.store-pending{border:1px dashed var(--line);border-radius:18px;background:transparent;overflow:hidden}
.store-pending>summary{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:16px;list-style:none;cursor:pointer;font-size:12px;font-weight:750;min-height:52px}
.store-pending>summary::-webkit-details-marker{display:none}
.store-pending>summary small{color:var(--muted);font-size:10px;font-weight:500}
.store-pending li{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 0;border-top:1px solid var(--line)}
.store-pending li strong{font-size:12px;display:block}
.store-pending li small{color:var(--muted);font-size:10px;display:block;margin-top:3px}
.store-pending li button{border:0;background:var(--soft);color:var(--ink);border-radius:100px;padding:9px 12px;min-height:44px;font-size:11px;white-space:nowrap}
.store-summary-note{font-size:10px;line-height:1.6;color:var(--muted);margin:14px 2px 0;max-width:65ch}
.store-summary-empty{font-size:13px;color:var(--muted);padding:20px;border:1px solid var(--line);border-radius:18px}
.comparison-summary-link{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;border:1px solid var(--line);border-radius:15px;padding:13px 16px;background:var(--surface,#fffdfb);color:var(--ink);font-size:12px;margin:0 0 16px;min-height:48px}
.match-warning{background:var(--soft);border:1px solid var(--line);border-radius:13px;padding:11px 13px;font-size:11px;line-height:1.6;color:var(--ink);margin-top:12px}
.match-warning strong{display:block;margin-bottom:3px;font-weight:800}
.match-badge{display:inline-block;background:var(--soft);color:var(--ink);border-radius:100px;padding:4px 8px;font-size:10px;font-weight:700;margin:6px 0}
.receipt-reread{display:flex;align-items:center;justify-content:space-between;gap:12px;background:var(--soft);border:1px solid var(--line);border-radius:16px;padding:13px 15px;margin:14px 0}
.receipt-reread p{font-size:11px;line-height:1.5;color:var(--muted);margin:0}
.receipt-reread button{border:0;background:var(--ink);color:var(--cream);border-radius:100px;font-size:11px;padding:11px 14px;min-height:44px;flex:none}
.receipt-photo-link{border:0;background:none;color:var(--ink);text-decoration:underline;font-size:11px;min-height:36px;padding:5px 0}
.receipt-review-photo{max-height:none!important;width:100%;object-fit:contain}
@media(max-width:680px){
 .store-summary{margin-top:23px}.store-summary-grid{grid-template-columns:minmax(0,1fr);gap:14px}
 .store-summary-heading{gap:8px}.store-summary-heading h3,.store-summary-title{font-size:23px}.store-summary-heading .screen-kicker{font-size:8px;letter-spacing:.7px}
 .store-list>summary{padding:15px}.store-list ul{padding:0 14px}.store-list-brand h4,.store-list-name{font-size:16px}.store-list-total{font-size:22px}
 .store-list-row{gap:9px}.store-list-image{width:30px}.store-list-product>.store-list-replaces{font-size:9px}.store-list-product>strong{font-size:12px}
 .store-list-check{min-width:25px}.store-list-price{font-size:14px}.store-list-price small{font-size:9px}
 .shopping-layout-tabs{margin:16px 0 12px}.shopping-layout-tabs button{padding:9px 18px;font-size:11px}
 .receipt-reread{padding:12px;gap:9px}.receipt-reread button{padding:10px 12px}
 .store-summary-actions>.button{font-size:10px;padding:8px 10px}
}

.habits-controls.stores-mode .habits-tabs{display:none}.habits-controls.stores-mode{display:block}.habits-controls.stores-mode .habits-search{max-width:100%;width:100%}.stores-mode+.store-summary{margin-top:20px}

/* Short actions stay intact; product names retain their full meaning. */
.shopping-layout-tabs button,.comparison-filters button,.comparison-save-bar .button,
.replacement-card>.button,.coop-card-bottom>.button,.receipt-import-footer>.button,
.receipt-reread button{white-space:nowrap}
.replacement-top .match-badge{margin:0;white-space:nowrap}
.replacement-match{font-size:11px;line-height:1.5;color:var(--warning-ink);margin:10px 0 0}
.replacement-product>div:last-child,.store-summary-heading>div{min-width:0}
.store-list-total,.store-list-price,.picker-original-price,.store-side>strong{font-variant-numeric:tabular-nums;white-space:nowrap}
.receipt-reread .receipt-photo-link{background:transparent;color:var(--ink);padding:4px 0;min-height:36px;border-radius:0}
.receipt-source-buttons{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
.receipt-source-buttons>.button{min-width:0;white-space:nowrap;padding-left:10px;padding-right:10px}
.comparison-choice-actions{display:flex;gap:8px;align-items:center}
.comparison-choice-actions>.button{min-height:44px;border-radius:100px;padding:9px 15px;white-space:nowrap;font-size:11px}
.coop-card-bottom.has-direct-choice{display:flex;flex-direction:column;align-items:stretch;gap:3px}
.has-direct-choice .comparison-choice-actions{order:-1;display:grid;grid-template-columns:1fr 1fr;width:100%;gap:9px;margin-top:4px}
.has-direct-choice .ticket-card-details>summary{min-height:40px;display:flex;align-items:center}
.receipt-found-lines{border:1px solid var(--accent-border);background:var(--accent-soft);padding:13px 15px;border-radius:15px;margin:12px 0}
.receipt-found-lines>strong{display:block;font-size:12px;margin-bottom:7px}
.receipt-found-lines>div{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:7px 0}
.receipt-found-lines>div>span{font-size:12px;min-width:0}
.receipt-found-lines small{display:block;font-size:11px;color:var(--ink);margin-top:3px}
.receipt-found-lines button{flex:none;border:0;border-radius:100px;padding:10px 13px;min-height:44px;background:var(--hero);color:var(--on-hero);font-size:12px}
@media(max-width:680px){
 .comparison-filters{display:grid;grid-template-columns:auto minmax(0,1fr) auto}
 .comparison-filters button{font-size:11px;padding:8px 10px}
 .replacement-card .replacement-product{grid-template-columns:64px minmax(0,1fr);gap:12px}
 .replacement-card .replacement-photo{width:64px;height:72px}
 .comparison-save-bar{display:grid;gap:12px;text-align:center}
 .comparison-save-bar .button{width:100%}
 .store-summary-heading h3{font-size:23px;white-space:nowrap}
}
