/* Grocery-app home polish (2026-10-28) — structural patterns only; brand-stripped.
   Clean white space, soft shadows, circular quick actions. Edition skins tint via --ds-primary. */
.bk-groc {
  --groc-well: color-mix(in srgb, var(--ds-primary-tint, #e6f4e7) 70%, #fff);
  --groc-card-shadow: 0 2px 8px rgba(20, 30, 24, .06), 0 8px 28px rgba(20, 30, 24, .07);
  max-width: 720px;
  margin: 0 auto;
  padding: 4px 0 28px;
}
.bk-groc-head {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}
.bk-groc-greet {
  margin: 0;
  font-size: clamp(1.55rem, 4.5vw, 1.95rem);
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--ds-ink, #1f1a24);
  line-height: 1.15;
}
.bk-groc-store {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: .9rem;
  color: var(--ds-muted, #5e5766);
}
.bk-groc-store b { color: var(--ds-ink, #1f1a24); font-weight: 700; }
.bk-groc-store .bk-list-storechip,
.bk-groc-storechip {
  appearance: none;
  border: 1.5px solid var(--ds-border, #e6ded4);
  background: #fff;
  color: var(--ds-ink-2, #4a4350);
  border-radius: 999px;
  padding: 6px 12px;
  font: 650 .8rem var(--ds-font, inherit);
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s, box-shadow .15s;
}
.bk-groc-store .bk-list-storechip.on,
.bk-groc-storechip.on {
  background: var(--ds-primary-tint, #e6f4e7);
  border-color: var(--ds-primary, #2e7d32);
  color: var(--ds-primary-hover, #1b5e20);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--ds-primary) 25%, transparent);
}
.bk-groc-search {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--ds-surface-2, #f5f0ea);
  border-radius: 999px;
  padding: 4px 4px 4px 14px;
  border: 1px solid transparent;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ds-border, #e6ded4) 80%, transparent);
}
.bk-groc-search:focus-within {
  border-color: var(--ds-primary, #2e7d32);
  box-shadow: var(--ds-focus, 0 0 0 3px #fff, 0 0 0 5px var(--ds-primary));
  background: #fff;
}
.bk-groc-search input[type=search] {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 10px 8px;
  font: 500 1rem var(--ds-font, inherit);
  color: var(--ds-ink);
  outline: none;
}
.bk-groc-search input::placeholder { color: var(--ds-muted); }
.bk-groc-scan {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: #fff;
  color: var(--ds-primary, #2e7d32);
  text-decoration: none;
  border: 1px solid var(--ds-border, #e6ded4);
  flex-shrink: 0;
  font-size: 1.15rem;
}
.bk-groc-scan:hover { background: var(--ds-primary-tint); }
.bk-groc-scan:focus-visible { outline: 2px solid var(--ds-primary); outline-offset: 2px; }

.bk-groc-quick {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 18px 0 20px;
  padding: 0;
  list-style: none;
}
.bk-groc-quick a,
.bk-groc-quick button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--ds-ink, #1f1a24);
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font: inherit;
  -webkit-tap-highlight-color: transparent;
}
.bk-groc-qico {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--groc-well);
  box-shadow: 0 1px 3px rgba(20, 30, 24, .06);
  font-size: 1.45rem;
  transition: transform .18s cubic-bezier(.34, 1.56, .64, 1), box-shadow .18s;
}
.bk-groc-quick a:hover .bk-groc-qico,
.bk-groc-quick button:hover .bk-groc-qico {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 6px 16px rgba(20, 30, 24, .12);
}
.bk-groc-quick a:active .bk-groc-qico,
.bk-groc-quick button:active .bk-groc-qico { transform: scale(.96); }
.bk-groc-qlab {
  font-size: .72rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.2;
  max-width: 5.5rem;
  color: var(--ds-ink-2, #4a4350);
}
@media (prefers-reduced-motion: reduce) {
  .bk-groc-qico { transition: none; }
  .bk-groc-quick a:hover .bk-groc-qico,
  .bk-groc-quick button:hover .bk-groc-qico { transform: none; }
}

.bk-groc-hero {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border-radius: 18px;
  padding: 16px 18px;
  box-shadow: var(--groc-card-shadow);
  text-decoration: none;
  color: inherit;
  margin: 0 0 22px;
  border: 1px solid color-mix(in srgb, var(--ds-border, #e6ded4) 70%, transparent);
  transition: transform .15s, box-shadow .15s;
}
.bk-groc-hero:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(20, 30, 24, .12);
}
.bk-groc-hero-copy { flex: 1; min-width: 0; }
.bk-groc-hero-copy h2 {
  margin: 0 0 4px;
  font-size: 1.05rem;
  font-weight: 750;
  color: var(--ds-ink);
  font-family: var(--ds-font, inherit);
}
.bk-groc-hero-copy p {
  margin: 0;
  font-size: .85rem;
  color: var(--ds-muted);
  line-height: 1.35;
}
.bk-groc-hero-badge {
  flex-shrink: 0;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: linear-gradient(145deg, #c8e86a, #8bc34a 55%, var(--ds-primary, #2e7d32));
  color: #122018;
  display: grid;
  place-items: center;
  text-align: center;
  font-weight: 900;
  font-size: .72rem;
  line-height: 1.15;
  letter-spacing: -.01em;
  box-shadow: 0 4px 14px rgba(46, 125, 50, .28);
  padding: 8px;
}

.bk-groc-cats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px 10px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}
.bk-groc-cats a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--ds-ink);
}
.bk-groc-cat-img {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--groc-well);
  box-shadow: 0 2px 10px rgba(20, 30, 24, .1);
  border: 3px solid #fff;
}
.bk-groc-cats a:hover .bk-groc-cat-img {
  box-shadow: 0 6px 18px rgba(20, 30, 24, .16);
  transform: scale(1.03);
}
.bk-groc-cats a span {
  font-size: .78rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.2;
}
@media (max-width: 380px) {
  .bk-groc-cat-img { width: 80px; height: 80px; }
  .bk-groc-qico { width: 56px; height: 56px; }
}

.bk-groc-rail-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin: 8px 0 10px;
}
.bk-groc-rail-head h2 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  font-family: var(--ds-font, inherit);
  color: var(--ds-ink);
}
.bk-groc-rail-head a {
  font-size: .85rem;
  font-weight: 700;
  color: var(--ds-primary, #2e7d32);
  text-decoration: none;
}
.bk-groc-mood { margin-top: 8px; }
.bk-groc-mood .bk19-home-hub { display: flex; flex-wrap: wrap; gap: 8px; }

/* Rate your cook stub */
.bk-rate {
  max-width: 560px;
  margin: 0 auto;
  padding: 8px 0 40px;
}
.bk-rate-x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--ds-primary) 18%, #fff);
  color: var(--ds-primary);
  text-decoration: none;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.bk-rate h1 {
  font-size: 1.55rem;
  font-weight: 800;
  margin: 0 0 18px;
  font-family: var(--ds-font, inherit);
}
.bk-rate-sec {
  padding: 16px 0;
  border-top: 1px solid var(--ds-border, #e6ded4);
}
.bk-rate-sec h2 {
  font-size: 1rem;
  font-weight: 650;
  margin: 0 0 14px;
  font-family: var(--ds-font, inherit);
  color: var(--ds-ink);
}
.bk-rate-faces,
.bk-rate-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  justify-content: flex-start;
  list-style: none;
  margin: 0;
  padding: 0;
}
.bk-rate-opt {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  min-width: 48px;
}
.bk-rate-opt input {
  width: 22px;
  height: 22px;
  accent-color: var(--ds-primary, #2e7d32);
}
.bk-rate-face {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  line-height: 1;
}
.bk-rate-face[data-n="1"] { background: #ffcdd2; }
.bk-rate-face[data-n="2"] { background: #ffe0b2; }
.bk-rate-face[data-n="3"] { background: #fff9c4; }
.bk-rate-face[data-n="4"] { background: #c8e6c9; }
.bk-rate-face[data-n="5"] { background: #81c784; }
.bk-rate-thumb {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  background: var(--ds-primary-tint, #e6f4e7);
}
.bk-rate-thumb.no { background: #ffebee; }
.bk-rate-next {
  display: block;
  width: 100%;
  max-width: 280px;
  margin: 24px auto 8px;
  text-align: center;
  background: var(--ds-primary, #2e7d32);
  color: #fff;
  border: 0;
  border-radius: 12px;
  padding: 14px 20px;
  font: 700 1.05rem var(--ds-font, inherit);
  cursor: pointer;
  text-transform: lowercase;
}
.bk-rate-next:disabled { opacity: .45; cursor: not-allowed; }
.bk-rate-note { text-align: center; font-size: .8rem; color: var(--ds-muted); font-style: italic; }

/* Soften legacy home hero when grocery shell present */
#view:has(.bk-groc) > .bk-hero-land { display: none; }
#view:has(.bk-groc) > h2:first-of-type { margin-top: 8px; }

html[data-skin=green] .bk-groc-hero-badge {
  background: linear-gradient(145deg, #d4ef8a, #9ccc65 50%, #2e7d32);
}
html[data-skin=red] .bk-groc-hero-badge {
  background: linear-gradient(145deg, #ffcdd2, #ef5350 55%, #c81e35);
  color: #fff;
}
