/* Grocly: compact, readable cart identity and explicit light/dark presentation. */
.brand{font-size:29px;letter-spacing:-1.2px}.brand img{border-radius:12px}.hero-art{object-fit:contain}.product-insights{margin:16px 0;border:1px solid var(--line);border-radius:14px;padding:14px}.product-insights summary{cursor:pointer;font-weight:700;min-height:36px}.product-insights table{width:100%;border-collapse:collapse;font-variant-numeric:tabular-nums}.product-insights th,.product-insights td{padding:8px;text-align:left;border-bottom:1px solid var(--line)}.product-insights td{text-align:right}.product-insights .allergen-notice{padding:12px;border:1px solid #b17b3a;border-radius:10px;background:var(--peach)}.workspace-tools{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:10px 0}.workspace-tools select{max-width:180px}.shared-list-row{display:flex;align-items:center;gap:8px;padding:6px 0;border-bottom:1px solid var(--line)}.shared-list-row span{flex:1;min-width:0;overflow-wrap:anywhere}.shared-list-row.done span{color:var(--muted);text-decoration:line-through}.shared-list-row button{flex-shrink:0;min-width:44px}.shared-list-card{border:1px solid var(--line);border-radius:12px;margin:10px 0;padding:12px}.shared-list-card h3{margin:0}.shared-list-card small{color:var(--muted)}.invite-link{width:100%;min-height:96px;overflow-wrap:anywhere}.grocly-error{color:#a33325}.shared-dialog{max-height:94dvh}.shared-dialog .modal-body{overflow:visible}.shared-dialog .shared-list-row{min-height:54px}.nutrition-source{font-size:13px;color:var(--muted)}
html[data-theme=dark]{--ink:#e3efdf;--muted:#b0bfb1;--green:#97c7a6;--paper:#101b17;--line:#3c5145;--peach:#3a3025;--cream:#26372d;--ring:#edc27f;color-scheme:dark}html[data-theme=dark] body{background:var(--paper);color:var(--ink)}html[data-theme=dark] :is(dialog,.list-card,.item,.aside-card,.card,.meal-card,.catalog-results,.modal-head,.modal-body,.top,.setting-row,.photo-panel,.notice,.sheet,.sync-status,.list-footer,.catalog-summary,.catalog-toolbar,.catalog-row,.product-insights,.account-box){background:#19281f;color:var(--ink)}html[data-theme=dark] :is(input,select,textarea,.peek-item,.group-chip,.category-chip,.subcat-chip,.compact-quantity,.catalog-add){background:#22372b;color:var(--ink);border-color:var(--line)}html[data-theme=dark] :is(.item.done,.done){background:#15211a;color:var(--muted)}html[data-theme=dark] :is(.primary,.check[aria-pressed=true],.tabs button[aria-current=page]){background:#9ac8a7;color:#102419}html[data-theme=dark] button:hover{background:#334e3d}html[data-theme=dark] :is(.hero,.gentle-note,.aside-card.peach,.empty,.main-peek,.peek-head,.group-title,.catalog-section-head,.catalog-categories,.catalog-search,.swipe-hint){background:var(--paper);color:var(--ink)}html[data-theme=dark] :is(.text-button,.tagline,.small-tip,footer,.eyebrow,small,.save-status){color:var(--muted)}html[data-theme=dark] :is(.error,.grocly-error){color:#ffb3a6}html[data-theme=dark] .toast{background:#d7e7d5;color:#14251b}html[data-theme=dark] .contrast{--ink:#fff;--muted:#e4eadf;--line:#a1bba8}html[data-theme=dark] .hero-art{border-radius:24px}html[data-theme=dark] .progress meter{accent-color:#9ac8a7}html[data-theme=dark] a{color:#acd7b6}html[data-theme=dark] .brand{color:var(--ink)}
@media(max-width:600px){.workspace-tools{gap:4px}.workspace-tools button{padding:8px 10px}.product-insights{padding:10px}.shared-dialog{width:calc(100vw - 12px);max-width:none;margin:6px;max-height:calc(100dvh - 12px)}}

@font-face{font-family:GroclyHand;src:url('/fonts/Caveat.ttf') format('truetype');font-weight:400 700;font-display:swap}
.grocly-share-small{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-width:44px;min-height:44px;padding:8px 10px!important;font-size:13px!important}.grocly-share-small[hidden]{display:none!important}.grocly-share-small svg{flex:none}
#listStyle{max-width:180px;min-height:44px}.workspace-tools{flex-wrap:wrap;align-items:center}
body[data-list-style=paper] :is(.list-card,#sharedRows),body[data-list-style=handwritten] :is(.list-card,#sharedRows){background:#fffdf2;color:#29352b;border-color:#dbd4bc;box-shadow:0 5px 18px #30261510}
body[data-list-style=paper] :is(.item,.shared-list-row),body[data-list-style=handwritten] :is(.item,.shared-list-row){background:transparent;border-bottom:1px solid #b5c9df8c}
body[data-list-style=paper] :is(.list-body,#sharedRows),body[data-list-style=handwritten] :is(.list-body,#sharedRows){background:linear-gradient(to right,transparent 27px,#d69e9e8c 27px,#d69e9e8c 28px,transparent 28px)}
body[data-list-style=handwritten] :is(.item-label strong,.shared-list-row strong,.group-title){font-family:GroclyHand,cursive;font-size:26px;font-weight:600;letter-spacing:.15px;line-height:1.15}
body[data-list-style=handwritten] .item-label small{font-family:GroclyHand,cursive;font-size:21px}
[data-theme=dark] body:is([data-list-style=paper],[data-list-style=handwritten]) :is(.list-card,#sharedRows){background:#272820;color:#f4f0df;border-color:#5f6053}
[data-theme=dark] body:is([data-list-style=paper],[data-list-style=handwritten]) :is(.item,.shared-list-row){border-bottom-color:#596c7b}
@media(max-width:600px){.workspace-tools{gap:6px}.workspace-tools label{font-size:12px}#listStyle{max-width:154px}.grocly-share-small span{display:none}}

/* Keep view labels attached to their controls on narrow screens. */
.workspace-tools{align-items:end}.grocly-view-control{display:grid;gap:4px;min-width:0}.grocly-view-control label{font-size:12px}.grocly-view-control select{margin:0;min-height:44px;width:100%;max-width:none!important;font-size:13px}#groclyTools{gap:10px}.grocly-view-control:last-child{min-width:170px}
@media(max-width:600px){#groclyTools{display:grid;grid-template-columns:44px minmax(90px,1fr) minmax(145px,1.25fr);gap:6px}.grocly-view-control:last-child{min-width:0}.grocly-share-small{align-self:end}#groclyTools:has(.grocly-share-small[hidden]){grid-template-columns:1fr 1.25fr}}
/* Collected shopping-list items */
.swipe-row > .item.done {
  --collected-bg: #eef5ed;
  --collected-ink: #294237;
  --collected-edge: #517a5b;
  background: var(--collected-bg);
  color: var(--collected-ink);
  box-shadow: inset 4px 0 var(--collected-edge);
}
html[data-theme=dark] .swipe-row > .item.done {
  --collected-bg: #22362b;
  --collected-ink: #e6f3e9;
  --collected-edge: #90bb99;
  background: var(--collected-bg);
}
.swipe-row > .item.done :is(.item-label strong, .item-label small, .quantity) {
  color: var(--collected-ink);
}

/* Grocly catalogue selection: golden bezel, full visibility (2026-11-20). */
html body .catalog-dialog .catalog-product[data-in-list="true"] {
  border-color: #ad781b;
  box-shadow: inset 0 0 0 1px #ad781b, inset 0 0 0 2px #f6d77a;
  opacity: 1;
}
html body .catalog-dialog .catalog-product:disabled { opacity: 1; cursor: progress; }
html body .catalog-dialog .catalog-product[data-in-list="true"] :is(.item-picture, .item-label) { opacity: 1; filter: none; }
html[data-theme=dark] body .catalog-dialog .catalog-product { background: #19281f; color: var(--ink); }
html[data-theme=dark] body .catalog-dialog .catalog-product[data-in-list="true"] {
  border-color: #e6b84e;
  box-shadow: inset 0 0 0 1px #e6b84e, inset 0 0 0 2px #84601b;
}

/* Catalogue category contrast and gold interaction border (2026-11-20). */
html body .catalog-dialog :is(.category-card,.catalog-product) {
  --catalogue-tile-bg: #fffefa;
  --catalogue-tile-ink: #203f34;
  --catalogue-tile-muted: #647064;
  --catalogue-tile-gold: #ad781b;
  background: var(--catalogue-tile-bg);
  color: var(--catalogue-tile-ink);
  opacity: 1;
  -webkit-tap-highlight-color: transparent;
}
html[data-theme=dark] body .catalog-dialog :is(.category-card,.catalog-product) {
  --catalogue-tile-bg: #22372b;
  --catalogue-tile-ink: #e3efdf;
  --catalogue-tile-muted: #b0bfb1;
  --catalogue-tile-gold: #edc27f;
  background: var(--catalogue-tile-bg);
  color: var(--catalogue-tile-ink);
}
html body .catalog-dialog :is(.category-card,.catalog-product) strong { color: var(--catalogue-tile-ink); }
html body .catalog-dialog :is(.category-card,.catalog-product) small { color: var(--catalogue-tile-muted); }
html body .catalog-dialog :is(.category-card,.catalog-product):is(:hover,:active,:focus-visible) {
  background: var(--catalogue-tile-bg);
  color: var(--catalogue-tile-ink);
  border-color: var(--catalogue-tile-gold);
  box-shadow: inset 0 0 0 1px var(--catalogue-tile-gold);
}
