/*
 * Russell New World skin authority layer.
 * Source: docs/design-studio-modernisation/russell-visual-language.md
 */

:root {
  --r-red: var(--brand-primary, #e31837);
  --r-red-pressed: var(--brand-primary-pressed, #bd0f28);
  --r-ink: var(--brand-text-primary, #171719);
  --r-text: #303034;
  --r-muted: var(--brand-text-secondary, #66676d);
  --r-surface: var(--brand-surface, #ffffff);
  --r-canvas: var(--brand-background, #f6f6f7);
  --r-divider: #e7e7ea;
  --r-pink-soft: #fff0f2;
  --r-mint-soft: #edf8f4;
  --r-peach-soft: #fff5ea;
  --r-lilac-soft: #f5eefa;
  --r-success: var(--brand-success, #167a45);
  --r-warning: var(--brand-warning, #d76714);
  --r-purple: #7b3fa0;
  --r-shadow-card: 0 2px 8px rgb(23 23 25 / 7%);
  --r-shadow-nav: 0 -2px 12px rgb(23 23 25 / 8%);
  --r-focus: 0 0 0 3px rgb(227 24 55 / 18%);
  --r-gutter: 20px;
  --r-nav-height: 72px;
  --r-font: Nunito, "Arial Rounded MT Bold", "Segoe UI", Arial, sans-serif;
  --brand-border: #e7e7ea !important;
  --nw-line: #e7e7ea !important;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: #eeeeef;
}

body {
  min-width: 0;
  margin: 0;
  overflow-x: hidden;
  background: #eeeeef;
  color: var(--r-text);
  font-family: var(--r-font);
  font-size: 13px;
  line-height: 1.35;
  letter-spacing: 0;
}

button,
input,
select,
textarea {
  font: inherit;
  letter-spacing: 0;
}

button,
a,
input,
select,
textarea,
summary {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 0;
  box-shadow: var(--r-focus);
}

button:disabled,
input:disabled,
select:disabled {
  cursor: default;
  opacity: 0.45;
  box-shadow: none;
}

img {
  display: block;
  max-width: 100%;
}

svg.lucide {
  display: block;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  stroke: currentcolor;
}

[hidden] {
  display: none !important;
}

.app-shell {
  position: relative;
  width: min(100%, 390px);
  max-width: 390px;
  min-height: 100dvh;
  margin: 0 auto;
  overflow: clip;
  background: var(--r-surface);
  box-shadow: 0 0 28px rgb(23 23 25 / 8%);
}

main {
  width: 100%;
  padding: 0 var(--r-gutter) calc(var(--r-nav-height) + 32px);
}

.screen {
  width: 100%;
  min-width: 0;
  padding: 0;
  color: var(--r-text);
}

.screen.active {
  animation: russell-screen-in 160ms ease-out both;
}

@keyframes russell-screen-in {
  from {
    opacity: 0;
    transform: translateY(2px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1,
h2,
h3,
h4,
strong {
  color: var(--r-ink);
}

h1,
h2,
h3,
h4 {
  letter-spacing: 0;
}

.screen > h2,
.screen-heading h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.08;
}

.screen h3 {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.15;
}

.copy,
.objective-meta,
.result-detail,
.screen-heading .copy {
  color: var(--r-muted);
  font-size: 13px;
  line-height: 1.4;
}

.step-label,
.eyebrow {
  margin: 0 0 4px;
  color: var(--r-red);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0;
  text-transform: uppercase;
}

.objective-title {
  margin: 0 0 4px;
  color: var(--r-ink);
  font-size: 14px;
  font-weight: 750;
  line-height: 1.18;
}

.screen-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 16px;
  padding: 8px 0 0;
}

.screen-heading > div {
  min-width: 0;
}

.screen-heading .copy {
  max-width: 260px;
  margin: 6px 0 0;
}

.topbar {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 72px;
  padding: 14px var(--r-gutter) 10px;
  background: var(--r-surface);
  border: 0;
  box-shadow: none;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.brand-lockup > div {
  display: grid;
  gap: 0;
}

.brand-lockup .eyebrow {
  margin: 0;
  color: var(--r-red);
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
}

.brand-lockup h1 {
  margin: 2px 0 0;
  color: var(--r-ink);
  font-size: 7px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.new-world-mark {
  position: relative;
  display: grid;
  width: 38px;
  height: 28px;
  place-items: center;
  transform: rotate(-8deg);
  margin-left: 7px;
  border: 0;
  background: var(--r-ink);
  clip-path: polygon(50% 0, 100% 26%, 87% 72%, 50% 100%, 13% 72%, 0 26%);
}

.new-world-mark::before {
  position: absolute;
  inset: 3px;
  width: auto;
  height: auto;
  content: "";
  background: var(--r-red);
  clip-path: inherit;
}

.new-world-mark::after {
  display: none;
  content: none;
}

.new-world-mark span {
  position: relative;
  z-index: 1;
  color: #fff;
  font-size: 8px;
  font-weight: 800;
  transform: rotate(8deg);
}

.header-more-button {
  position: relative;
  display: grid;
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  place-items: center;
  color: var(--r-ink);
  border: 0;
  border-radius: 50%;
  background: transparent;
}

/* Family journeys are part of the published product catalogue and must remain
   reachable so the Russell skin applies to the complete customer experience. */
.add-choice-card.family-feature,
.more-tile.family-feature {
  display: grid !important;
}

#listsHuntButton.family-feature {
  display: inline-flex !important;
}

.header-more-button .notification-badge {
  position: absolute;
  top: 5px;
  right: 4px;
  display: grid;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  place-items: center;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  border: 2px solid #fff;
  border-radius: 999px;
  background: var(--r-red);
}

.primary-button,
.secondary-button,
.action-button,
.settings-button,
.compact-button,
.icon-submit,
.icon-button {
  min-height: 44px;
  border-radius: 8px;
  font-weight: 700;
  transition: color 160ms ease-out, background-color 160ms ease-out, border-color 160ms ease-out;
}

.primary-button,
.icon-submit {
  color: #fff;
  border: 1px solid var(--r-red);
  background: var(--r-red);
  box-shadow: none;
}

.primary-button:active,
.icon-submit:active {
  border-color: var(--r-red-pressed);
  background: var(--r-red-pressed);
  transform: none;
}

.secondary-button,
.action-button.secondary-button,
.compact-button.secondary-button {
  color: var(--r-ink);
  border: 1px solid #d7d7db;
  background: var(--r-surface);
  box-shadow: none;
}

.secondary-button:active {
  background: var(--r-canvas);
  transform: none;
}

.compact-button {
  min-height: 40px;
  padding: 8px 12px;
  white-space: nowrap;
}

.icon-button,
.item-icon-button {
  display: inline-grid;
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  place-items: center;
  color: var(--r-text);
  border: 1px solid #d7d7db;
  border-radius: 8px;
  background: var(--r-surface);
}

.danger,
.danger-button {
  color: var(--r-red-pressed);
}

input,
select,
textarea {
  min-height: 44px;
  padding: 10px 12px;
  color: var(--r-ink);
  border: 1px solid #d7d7db;
  border-radius: 8px;
  background: var(--r-surface);
  box-shadow: none;
}

input::placeholder,
textarea::placeholder {
  color: #8a8a90;
}

.shelf-card,
.route-panel,
.objective-panel,
.result-panel,
.info-card,
.recipe-detail-card,
.product-detail-card,
.quiz-card,
.quest-settings-card,
.current-shop-card,
.shopping-list-card,
.account-settings-card,
.install-card {
  border: 1px solid var(--r-divider);
  border-radius: 8px;
  background: var(--r-surface);
  box-shadow: var(--r-shadow-card);
}

.home-greeting-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  margin: 4px 0 12px;
}

.home-greeting-row h2 {
  margin: 0;
  color: var(--r-ink);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.08;
}

.home-greeting-row p {
  margin: 3px 0 0;
  color: var(--r-text);
  font-size: 12px;
  font-weight: 500;
}

.store-status-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  gap: 2px;
  width: auto;
}

.store-status-strip > button:first-child {
  display: flex;
  align-items: center;
  gap: 5px;
  width: auto;
  max-width: 158px;
  min-height: 38px;
  padding: 7px 10px;
  color: var(--r-ink);
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
  border: 1px solid var(--r-divider);
  border-radius: 999px;
  background: var(--r-surface);
  box-shadow: 0 1px 4px rgb(23 23 25 / 5%);
}

.store-status-strip > button:first-child span {
  display: block;
  min-width: 0;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  color: inherit;
  font: inherit;
  line-height: inherit;
  text-align: left;
  text-overflow: ellipsis;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.store-status-strip > button:first-child svg:first-child {
  width: 14px;
  height: 14px;
  color: var(--r-red);
}

.store-status-strip > button:first-child svg:last-child {
  width: 12px;
  height: 12px;
  color: var(--r-muted);
}

.store-change-link {
  display: block;
  min-height: 18px;
  padding: 0;
  color: var(--r-red);
  font-size: 9px;
  font-weight: 700;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.store-status-strip > button + .store-change-link {
  display: block;
  width: auto;
  min-height: 18px;
  padding: 0;
  overflow: visible;
  color: var(--r-red);
  font-size: 9px;
  font-weight: 700;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.fresh-hero {
  position: relative;
  display: block;
  width: 100%;
  min-height: 228px;
  margin: 0 0 12px;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  background-color: #1a2419;
  background-image: url("/prototype/assets/russell/russell-fresh-produce-hero-v2.jpg");
  background-position: center;
  background-size: cover;
  box-shadow: none;
}

.fresh-hero::before,
.fresh-hero::after {
  display: none;
  content: none;
}

.fresh-hero-copy {
  position: absolute;
  z-index: 2;
  top: 22px;
  left: 14px;
  width: 48%;
  padding: 0;
  color: #fff;
  background: transparent;
}

.fresh-hero h2 {
  margin: 0;
  color: #fff;
  font-size: 23px;
  font-weight: 800;
  line-height: 1.05;
  text-wrap: balance;
  text-shadow: 0 1px 2px rgb(0 0 0 / 45%);
}

.fresh-hero-copy > span {
  display: block;
  width: 30px;
  height: 3px;
  margin: 10px 0 9px;
  border-radius: 999px;
  background: var(--r-red);
}

.fresh-hero p {
  max-width: 130px;
  margin: 0;
  color: #fff;
  font-size: 11px;
  line-height: 1.3;
  text-shadow: 0 1px 2px rgb(0 0 0 / 55%);
}

.fresh-hero-badge {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  padding: 0;
  color: #fff;
  font-size: 9px;
  font-style: italic;
  font-weight: 800;
  line-height: 1.05;
  text-align: center;
  border: 0;
  background: transparent;
  transform: rotate(-4deg);
  text-shadow: 0 1px 2px rgb(0 0 0 / 55%);
}

.hero-offer-row {
  position: absolute;
  z-index: 3;
  right: 10px;
  bottom: 10px;
  left: 10px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.hero-offer-card {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 5px;
  align-items: center;
  min-width: 0;
  min-height: 58px;
  padding: 6px;
  overflow: hidden;
  text-align: left;
  border: 0;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 7px rgb(23 23 25 / 10%);
}

.hero-offer-card > img {
  width: 38px;
  height: 38px;
  object-fit: cover;
  border: 0;
  border-radius: 6px;
  background: var(--r-canvas);
}

.hero-offer-card:first-child > img,
.hero-offer-card:last-child > img {
  object-fit: contain;
  background: transparent;
}

.hero-offer-card > span {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.hero-offer-card strong {
  overflow: hidden;
  color: var(--r-ink);
  font-size: 8.5px;
  font-weight: 750;
  line-height: 1.12;
  text-overflow: ellipsis;
}

.hero-offer-card small {
  color: var(--r-red);
  font-size: 7.5px;
  font-weight: 700;
  line-height: 1.1;
}

.home-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 12px;
}

.home-feature-card {
  position: relative;
  display: grid;
  align-content: start;
  min-width: 0;
  min-height: 142px;
  padding: 12px;
  overflow: hidden;
  text-align: left;
  border: 0;
  border-radius: 8px;
  box-shadow: var(--r-shadow-card);
}

.home-feature-card.find-card {
  background: var(--r-pink-soft);
}

.home-feature-card.list-card {
  background: var(--r-mint-soft);
}

.home-feature-card.recipe-card-home {
  background: var(--r-peach-soft);
}

.home-feature-card.win-card {
  background: var(--r-lilac-soft);
}

.home-feature-card strong {
  position: relative;
  z-index: 2;
  max-width: 66%;
  margin-top: 8px;
  color: var(--r-ink);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.12;
}

.home-feature-card small {
  position: relative;
  z-index: 2;
  max-width: 65%;
  margin-top: 5px;
  color: var(--r-text);
  font-size: 9px;
  line-height: 1.25;
}

.feature-icon {
  position: relative;
  z-index: 3;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  color: var(--r-red);
  border: 1px solid rgb(23 23 25 / 5%);
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 2px 7px rgb(23 23 25 / 7%);
}

.feature-icon::before {
  display: none;
  content: none;
}

.feature-icon svg {
  width: 17px;
  height: 17px;
}

.home-feature-card.list-card .feature-icon {
  color: var(--r-success);
}

.home-feature-card.recipe-card-home .feature-icon {
  color: var(--r-warning);
}

.home-feature-card.win-card .feature-icon {
  color: var(--r-purple);
}

.home-feature-card > img,
.home-feature-card.list-card > img,
.home-feature-card.recipe-card-home > img,
.home-feature-card.win-card > img {
  position: absolute;
  z-index: 1;
  right: -7px;
  bottom: -8px;
  width: 96px;
  height: 104px;
  object-fit: contain;
  object-position: right bottom;
  border: 0;
  border-radius: 0;
  background: transparent;
  filter: drop-shadow(0 3px 4px rgb(23 23 25 / 10%));
}

.home-feature-card.list-card > img {
  right: -2px;
  bottom: -10px;
  width: 72px;
  height: 112px;
}

.home-feature-card.recipe-card-home > img {
  right: -8px;
  bottom: -13px;
  width: 104px;
  height: 104px;
}

.home-feature-card.win-card > img {
  right: -4px;
  bottom: -11px;
  width: 98px;
  height: 108px;
}

.home-stats-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0 0 16px;
  overflow: hidden;
  border: 1px solid var(--r-divider);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 4px rgb(23 23 25 / 5%);
}

.home-stat-card {
  display: grid;
  min-width: 0;
  min-height: 70px;
  padding: 9px 5px;
  place-items: start center;
  align-content: start;
  text-align: center;
  border: 0;
  border-left: 1px solid var(--r-divider);
  border-radius: 0;
  background: transparent;
}

.home-stat-card:first-child {
  border-left: 0;
}

.home-stat-card svg {
  width: 15px;
  height: 15px;
  margin-bottom: 4px;
  color: var(--r-red);
}

.home-stat-card strong {
  width: 100%;
  overflow: hidden;
  color: var(--r-ink);
  font-size: 8.5px;
  font-weight: 750;
  line-height: 1.15;
  text-overflow: ellipsis;
}

.home-stat-card small {
  display: -webkit-box;
  width: 100%;
  margin-top: 3px;
  overflow: hidden;
  color: var(--r-muted);
  font-size: 7.5px;
  line-height: 1.2;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.shopping-list-card,
.current-shop-card {
  margin-top: 12px;
  padding: 14px;
}

.list-header {
  align-items: flex-start;
  gap: 10px;
}

.list-header h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.15;
}

.list-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.list-tools select {
  min-width: 120px;
}

.list-primary-actions,
.list-action-row,
.current-shop-secondary,
.shop-quick-actions,
.route-actions,
.scan-actions,
.catalogue-heading-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 12px;
}

.action-button svg {
  width: 18px;
  height: 18px;
}

.shopping-item,
.suggestion-row,
.custom-map-point,
.ingredient-row {
  border: 0;
  border-bottom: 1px solid var(--r-divider);
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

.shopping-item:last-child,
.suggestion-row:last-child,
.custom-map-point:last-child,
.ingredient-row:last-child {
  border-bottom: 0;
}

.shopping-item {
  min-height: 72px;
  padding: 10px 0;
}

.shopping-item-icon {
  border-radius: 6px;
  background: var(--r-canvas);
}

.empty-list,
.catalogue-empty-state,
.recipe-empty-card {
  padding: 18px 12px;
  text-align: center;
  border: 1px dashed #d7d7db;
  border-radius: 8px;
  background: var(--r-canvas);
}

.item-composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px;
  gap: 8px;
}

/* Roadmap item 8 (Voice). Toggled by JS, not :has(), for broad browser support. The voice
   button is [hidden] by default and by CSS fallback, so an unsupported/flagged-off browser
   sees exactly the pre-existing two-column composer, unchanged. */
.item-composer.has-voice-button {
  grid-template-columns: minmax(0, 1fr) 48px 48px;
}

.item-composer .icon-submit {
  width: 48px;
  min-width: 48px;
  padding: 0;
}

.voice-input-button[hidden] {
  display: none;
}

.voice-input-button.voice-listening {
  color: #fff;
  background: var(--r-red);
}

.add-item-primary-paths,
.add-choice-grid {
  display: grid;
  gap: 8px;
}

.freestyle-panel {
  padding: 14px;
  border: 1px solid var(--r-divider);
  border-radius: 8px;
  background: #fff;
}

.item-suggestions:empty {
  display: none;
  min-height: 0;
}

.scan-barcode-card,
.add-choice-card {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 64px;
  padding: 10px 12px;
  text-align: left;
  border: 1px solid var(--r-divider);
  border-radius: 8px;
  background: #fff;
  box-shadow: none;
}

.scan-barcode-card svg,
.add-choice-card svg {
  width: 20px;
  height: 20px;
  color: var(--r-red);
}

.add-choice-card {
  grid-template-rows: auto auto;
  align-content: center;
}

.add-choice-specials-icon {
  display: block;
  width: 20px;
  height: 20px;
  padding: 0;
  color: var(--r-red);
  border-radius: 0;
  background: transparent;
  filter: none;
}

.scan-barcode-card span,
.add-choice-card span {
  min-width: 0;
}

.scan-barcode-card strong,
.add-choice-card > span:not(.add-choice-specials-icon) {
  color: var(--r-ink);
  font-size: 13px;
  font-weight: 750;
}

.scan-barcode-card small,
.add-choice-card small {
  grid-column: 2;
  color: var(--r-muted);
  font-size: 11px;
  line-height: 1.3;
}

.account-settings-card,
.install-card {
  padding: 14px;
}

.account-toolbar .user-chip {
  min-height: 44px;
  color: var(--r-text);
  border: 1px solid #d7d7db;
  border-radius: 8px;
  background: #fff;
  box-shadow: none;
}

.account-settings-actions {
  display: grid;
  gap: 0;
  margin: 10px 0 0;
  overflow: hidden;
  border: 1px solid var(--r-divider);
  border-radius: 8px;
}

.settings-button {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 58px;
  padding: 8px 10px;
  text-align: left;
  border: 0;
  border-bottom: 1px solid var(--r-divider);
  border-radius: 0;
  background: #fff;
}

.settings-button:last-child {
  border-bottom: 0;
}

.settings-button-mark {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  color: var(--r-red);
  font-size: 12px;
  font-weight: 800;
  border-radius: 6px;
  background: var(--r-pink-soft);
}

.more-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: 12px;
  overflow: hidden;
  border: 1px solid var(--r-divider);
  border-radius: 8px;
  background: #fff;
}

.more-tile,
.more-tile.more-tile-priority {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 14px;
  grid-template-rows: auto auto;
  gap: 2px 10px;
  align-items: center;
  min-width: 0;
  min-height: 62px;
  padding: 9px 12px;
  text-align: left;
  border: 0;
  border-bottom: 1px solid var(--r-divider);
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

.more-tile:last-child {
  border-bottom: 0;
}

.more-tile::after {
  display: none;
  content: none;
}

.more-tile .more-tile-chevron {
  display: block;
  grid-column: 3;
  grid-row: 1 / span 2;
  align-self: center;
  width: 16px;
  height: 16px;
  margin: 0;
  color: var(--r-muted);
  border: 0;
  border-radius: 0;
  background: transparent;
}

.more-tile > svg,
.more-tile-symbol {
  grid-column: 1;
  grid-row: 1 / span 2;
  display: grid;
  width: 32px;
  height: 32px;
  margin: 0;
  place-items: center;
  color: var(--r-red);
  border: 0;
  border-radius: 6px;
  background: var(--r-pink-soft);
}

.more-tile > svg {
  padding: 7px;
}

.more-tile-symbol svg {
  width: 17px;
  height: 17px;
}

.more-tile > span:not(.more-tile-symbol) {
  grid-column: 2;
  grid-row: 1;
  color: var(--r-ink);
  font-size: 13px;
  font-weight: 750;
}

.more-tile > small {
  grid-column: 2;
  grid-row: 2;
  color: var(--r-muted);
  font-size: 10px;
  line-height: 1.25;
}

/* Assisted shopping companion, Foundation phase (Roadmap item 1): a settings toggle row,
   not a navigation row, so it swaps the trailing chevron for a checkbox. Hidden by default
   in HTML; app.js only reveals it once the backend confirms the feature is enabled. */
.more-tile.more-tile-toggle {
  grid-template-columns: 34px minmax(0, 1fr) 34px;
  cursor: pointer;
}

.more-tile-toggle input[type="checkbox"] {
  grid-column: 3;
  grid-row: 1 / span 2;
  align-self: center;
  justify-self: end;
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--r-red);
}

/* Assisted shopping companion, Roadmap item 3 (shopper-facing suggestion, off by default
   behind ASSISTED_SHOPPING_V1_ENABLED). Deliberately reuses the peach "food/recipe" task
   tint and the existing card geometry rather than any ad-style treatment — the strategy doc
   requires suggestions to look like the product's own recipe/specials cards, never a
   distinct ad unit. One suggestion at a time, dismissible, non-collapsing layout. */
.assisted-suggestion-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 12px 0;
  padding: 12px 13px;
  border: 1px solid var(--r-divider);
  border-radius: 11px;
  background: var(--r-peach-soft);
}

.assisted-suggestion-card[hidden] {
  display: none;
}

.assisted-suggestion-copy .step-label {
  margin: 0 0 2px;
}

.assisted-suggestion-copy p:last-child {
  margin: 0;
  color: var(--r-ink);
  font-size: 13px;
  line-height: 1.35;
}

.assisted-suggestion-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.catalogue-search,
.specials-search,
.pantry-recipe-form {
  padding: 12px;
  border: 1px solid var(--r-divider);
  border-radius: 8px;
  background: var(--r-canvas);
}

.catalogue-results,
.specials-list,
.recipe-list,
.quest-template-list,
.trophy-tile-grid,
.store-card-grid {
  display: grid;
  gap: 8px;
}

.store-card-grid {
  grid-template-columns: 1fr;
}

.store-card {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  grid-template-rows: auto auto auto;
  gap: 4px 12px;
  align-items: start;
  min-height: 98px;
  padding: 14px;
  color: var(--r-text);
  text-align: left;
}

.store-card > svg {
  grid-column: 1;
  grid-row: 1 / span 3;
  width: 22px;
  height: 22px;
  color: var(--r-red);
}

.store-card-title,
.store-card-meta,
.store-card-status {
  grid-column: 2;
  min-width: 0;
}

.store-card-title {
  color: var(--r-ink);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
}

.store-card-meta {
  color: var(--r-muted);
  font-size: 11px;
  line-height: 1.35;
}

.store-card .store-card-status {
  justify-self: start;
  min-height: 26px;
  padding: 5px 8px;
}

.catalogue-result,
.recipe-card,
.quest-template-card,
.store-card,
.trophy-card {
  overflow: hidden;
  border: 1px solid var(--r-divider);
  border-radius: 8px;
  background: #fff;
  box-shadow: none;
}

.catalogue-result {
  min-height: 104px;
  padding: 10px;
}

.catalogue-product-media {
  width: 82px;
  min-width: 82px;
  height: 82px;
  border: 0;
  border-radius: 6px;
  background: var(--r-canvas);
}

.catalogue-product-media img,
.recipe-card-image img,
.product-card-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border: 0;
}

.specials-price {
  color: var(--r-red);
  font-weight: 800;
}

.specials-tabs,
.recipe-category-row,
.map-support-pills {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

.specials-tabs::-webkit-scrollbar,
.recipe-category-row::-webkit-scrollbar,
.map-support-pills::-webkit-scrollbar {
  display: none;
}

.specials-tab,
.recipe-category-pill,
.map-support-pills span,
.product-location-chip,
.reward-badge,
.route-stop-badge,
.store-card-status {
  min-height: 32px;
  padding: 7px 10px;
  color: var(--r-text);
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
  border: 1px solid var(--r-divider);
  border-radius: 999px;
  background: #fff;
}

.specials-tab.selected,
.recipe-category-pill.selected,
.product-location-chip {
  color: var(--r-red);
  border-color: rgb(227 24 55 / 30%);
  background: var(--r-pink-soft);
}

.specials-toggle {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 16px;
  gap: 8px;
  align-items: center;
  width: 100%;
  min-height: 62px;
  margin: 10px 0;
  padding: 10px 12px;
  text-align: left;
  border: 1px solid var(--r-divider);
  border-radius: 8px;
  background: #fff;
}

.specials-toggle-chevron {
  width: 16px;
  height: 16px;
  color: var(--r-muted);
}

.specials-toggle[aria-expanded="true"] .specials-toggle-chevron {
  transform: rotate(90deg);
}

.specials-toggle-badge {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  color: #fff;
  font-weight: 800;
  border-radius: 50%;
  background: var(--r-red);
}

.recipe-layout,
.pantry-recipe-card {
  display: grid;
  gap: 12px;
}

.recipe-list {
  grid-template-columns: 1fr;
}

.recipe-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  min-height: 104px;
  align-items: stretch;
}

.recipe-card .recipe-card-image {
  width: 96px;
  height: 100%;
  min-height: 104px;
  aspect-ratio: auto;
  border: 0;
  border-right: 1px solid var(--r-divider);
  object-fit: cover;
}

.recipe-card .recipe-card-main {
  align-content: center;
  padding: 12px;
}

.recipe-card .recipe-card-main strong {
  font-size: 13px;
  line-height: 1.25;
}

.recipe-card-main,
.recipe-detail-card,
.pantry-recipe-card {
  padding: 12px;
}

.recipe-controls {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--r-divider);
  border-radius: 8px;
}

.recipe-controls button {
  grid-column: 1 / -1;
}

.guardian-ethos-grid,
.role-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.guardian-ethos-grid .info-card {
  min-height: 88px;
}

.trophy-feature-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--r-divider);
  border-radius: 8px;
  background: var(--r-lilac-soft);
  box-shadow: none;
}

.trophy-tile-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.trophy-tile {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  min-height: 142px;
  padding: 12px;
  justify-items: stretch;
  text-align: left;
}

.trophy-tile.locked,
.trophy-card.locked,
.trophy-feature-card.locked {
  opacity: 1;
  filter: none;
}

.trophy-icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: var(--r-red);
  border-radius: 8px;
  background: var(--r-pink-soft);
}

.trophy-tile .trophy-icon {
  width: 34px;
  height: 34px;
}

.trophy-icon svg {
  width: 20px;
  height: 20px;
}

.trophy-tile.locked .trophy-icon {
  color: var(--r-muted);
  background: var(--r-canvas);
}

.trophy-tile > div {
  min-width: 0;
}

.trophy-tile p,
.trophy-tile small {
  font-size: 10px;
  line-height: 1.3;
}

.action-button-badge,
.recipe-specials-badge,
.specials-toggle-badge {
  display: grid;
  place-items: center;
}

.action-button-badge svg,
.recipe-specials-badge svg,
.specials-toggle-badge svg {
  width: 18px;
  height: 18px;
}

.result-state-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.result-state-chip svg {
  width: 16px;
  height: 16px;
}

.find-substitute-button {
  width: 100%;
  min-height: 38px;
  overflow: visible;
  padding: 8px 10px;
  text-align: left;
  white-space: normal;
  border-radius: 8px;
  text-overflow: clip;
}

.info-card,
.safety-shield-card,
.guardian-note-card {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 12px;
}

.info-card > svg,
.safety-shield-card > svg,
.guardian-note-card > svg {
  width: 22px;
  height: 22px;
  color: var(--r-red);
}

.role {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-height: 48px;
  padding: 8px 10px;
  color: var(--r-text);
  text-align: left;
  border: 1px solid var(--r-divider);
  border-radius: 8px;
  background: #fff;
}

.role.selected {
  color: var(--r-red);
  border-color: rgb(227 24 55 / 35%);
  background: var(--r-pink-soft);
}

.quest-template-card {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 68px;
  padding: 10px 12px;
  text-align: left;
}

.quest-template-card > svg {
  width: 22px;
  height: 22px;
  color: var(--r-red);
}

.camera-panel {
  position: relative;
  min-height: 330px;
  padding: 16px;
  overflow: hidden;
  border: 1px solid var(--r-divider);
  border-radius: 8px;
  background: #161618;
  box-shadow: none;
}

.camera-panel .panel-icon,
.camera-panel .scan-guide-mascot {
  width: 24px;
  height: 24px;
  color: #fff;
}

.scan-instruction-pill {
  display: inline-flex;
  min-height: 30px;
  padding: 7px 10px;
  align-items: center;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border: 1px solid rgb(255 255 255 / 25%);
  border-radius: 999px;
  background: rgb(0 0 0 / 28%);
}

.camera-frame {
  border: 2px solid #fff;
  border-radius: 8px;
}

.progress-track,
.current-shop-progress-track {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--r-divider);
}

.progress-track > div,
.current-shop-progress-track > span {
  height: 100%;
  border-radius: inherit;
  background: var(--r-red);
}

.objective-hero,
.result-hero,
.route-summary,
.reward-earned,
.quest-progress-chip {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--r-divider);
  border-radius: 8px;
  background: #fff;
  box-shadow: none;
}

.quest-clue-hero {
  grid-template-columns: minmax(0, 1fr) 48px;
  align-items: center;
}

.quest-clue-hero > div:first-child {
  min-width: 0;
}

.quest-clue-hero .objective-asset {
  justify-self: end;
}

.result-hero > svg,
.route-summary > svg,
.reward-earned > svg,
.quest-progress-chip > svg {
  width: 22px;
  height: 22px;
  color: var(--r-red);
}

.objective-asset {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: var(--r-red);
  border-radius: 8px;
  background: var(--r-pink-soft);
}

.objective-asset svg {
  width: 22px;
  height: 22px;
}

.route-panel:empty {
  display: none;
}

.substitution-direction,
.substitute-route-icon {
  display: grid;
  place-items: center;
}

.substitution-direction svg,
.substitute-route-icon {
  width: 18px;
  height: 18px;
}

.pioneer-map-panel,
.route-map-frame,
.shopper-map,
.store-map-visual,
.expanded-map-viewport {
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--r-divider);
  border-radius: 8px;
  background: var(--r-canvas);
  box-shadow: none;
}

.expanded-map-overlay {
  align-content: start;
  grid-template-rows: auto auto;
}

.expanded-map-viewport {
  height: auto;
  max-height: calc(100dvh - 82px);
  align-self: start;
}

.expanded-map-canvas {
  width: 100%;
  min-width: 0;
}

.expanded-map-canvas .store-map-visual {
  min-height: 0;
}

.map-status-panel {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 5px 10px;
  align-items: start;
  margin-top: 10px;
  padding: 12px;
}

.map-status-panel .panel-icon {
  grid-row: 1 / span 2;
  width: 22px;
  height: 22px;
  color: var(--r-red);
}

.map-support-pills {
  grid-column: 1 / -1;
}

.route-now-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--r-divider);
  border-radius: 8px;
  background: #fff;
}

.route-now-card > * {
  grid-column: 1;
  min-width: 0;
}

.route-now-card > .action-button {
  width: 100%;
}

.route-now-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.catalogue-modal {
  border: 0;
  border-radius: 8px 8px 0 0;
  background: #fff;
  box-shadow: 0 -8px 28px rgb(23 23 25 / 18%);
}

body.map-overlay-open .catalogue-modal {
  z-index: 140;
}

.toast {
  left: 50%;
  max-width: calc(390px - 32px);
  color: #fff;
  border-radius: 8px;
  background: var(--r-ink);
  transform: translateX(-50%);
}

.parent-bar.shelfquest-bottom-nav {
  position: fixed;
  z-index: 100;
  right: auto;
  bottom: 0;
  left: 50%;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  width: min(100%, 390px);
  height: var(--r-nav-height);
  padding: 5px 8px max(5px, env(safe-area-inset-bottom));
  border: 0;
  border-top: 1px solid var(--r-divider);
  border-radius: 0;
  background: rgb(255 255 255 / 97%);
  box-shadow: var(--r-shadow-nav);
  transform: translateX(-50%);
  backdrop-filter: blur(12px);
}

.parent-bar.shelfquest-bottom-nav button,
.parent-bar.shelfquest-bottom-nav .floating-scan-button {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 58px;
  padding: 5px 2px;
  place-items: center;
  align-content: center;
  gap: 3px;
  color: #55565c;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.parent-bar.shelfquest-bottom-nav button svg {
  width: 19px;
  height: 19px;
}

.parent-bar.shelfquest-bottom-nav button span {
  color: inherit;
  font-size: 8.5px;
  font-weight: 650;
  line-height: 1;
  white-space: nowrap;
}

.parent-bar.shelfquest-bottom-nav button.active,
.parent-bar.shelfquest-bottom-nav button.centered {
  color: var(--r-red);
}

.parent-bar.shelfquest-bottom-nav button.active::after {
  position: absolute;
  right: 10px;
  bottom: 0;
  left: 10px;
  height: 2px;
  content: "";
  border-radius: 999px;
  background: var(--r-red);
}

.parent-bar.shelfquest-bottom-nav .floating-scan-button {
  z-index: 2;
  align-self: start;
  width: 58px;
  min-width: 58px;
  height: 58px;
  min-height: 58px;
  margin: -24px auto 0;
  color: #fff;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--r-red);
  box-shadow: 0 4px 12px rgb(23 23 25 / 18%);
}

.parent-bar.shelfquest-bottom-nav .floating-scan-button::before {
  display: none;
  content: none;
}

.parent-bar.shelfquest-bottom-nav .floating-scan-button svg {
  width: 21px;
  height: 21px;
  color: #fff;
  filter: none;
}

.parent-bar.shelfquest-bottom-nav .floating-scan-button span {
  position: absolute;
  top: 59px;
  color: var(--r-ink);
}

.parent-bar.shelfquest-bottom-nav .floating-scan-button.active::after {
  display: none;
}

body.login-active .parent-bar.shelfquest-bottom-nav {
  display: none;
}

#loginStep {
  display: none;
  min-height: 0;
  padding-top: 8px;
}

#loginStep.active {
  display: block;
}

.login-hero {
  text-align: left;
}

.login-logo {
  display: none;
}

.login-kicker {
  margin-bottom: 4px;
  color: var(--r-red);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.login-hero h2 {
  margin-bottom: 8px;
  font-size: 24px;
}

.login-sub,
.login-privacy {
  color: var(--r-muted);
}

.login-form {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  padding: 14px;
  border: 1px solid var(--r-divider);
  border-radius: 8px;
  background: #fff;
}

.evidence-screen {
  padding-bottom: 24px;
}

.design-direction-card,
.design-foundation-section,
.design-pattern-section,
.design-state-section,
.design-screen-section {
  border-radius: 8px;
}

@media (max-width: 359px) {
  :root {
    --r-gutter: 14px;
  }

  .topbar {
    min-height: 66px;
    padding-top: 10px;
  }

  .brand-lockup .eyebrow {
    font-size: 14px;
  }

  .home-greeting-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .home-greeting-row h2 {
    font-size: 20px;
  }

  .store-status-strip {
    grid-template-columns: auto auto;
    justify-content: start;
    justify-items: start;
    align-items: center;
    gap: 8px;
  }

  .store-status-strip > button:first-child {
    max-width: none;
    overflow: hidden;
  }

  .store-status-strip > button:first-child span {
    overflow: visible;
    text-overflow: clip;
  }

  .fresh-hero {
    min-height: 220px;
  }

  .fresh-hero-copy {
    top: 18px;
    left: 12px;
  }

  .fresh-hero h2 {
    font-size: 21px;
  }

  .hero-offer-row {
    right: 7px;
    bottom: 7px;
    left: 7px;
    gap: 4px;
  }

  .hero-offer-card {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 3px;
    min-height: 54px;
    padding: 5px;
  }

  .hero-offer-card > img {
    width: 32px;
    height: 32px;
  }

  .hero-offer-card strong {
    overflow: visible;
    overflow-wrap: anywhere;
    white-space: normal;
    text-overflow: clip;
  }

  .home-feature-card {
    min-height: 138px;
    padding: 10px;
  }

  .home-feature-card strong {
    max-width: 70%;
    font-size: 13px;
  }

  .home-feature-card small {
    max-width: 66%;
    font-size: 8.5px;
  }

  .home-stat-card {
    min-height: 68px;
    padding-inline: 3px;
  }

  .home-stat-card strong {
    font-size: 7.8px;
  }

  .screen-heading {
    flex-direction: column;
  }

  .screen-heading > button,
  .screen-heading > .catalogue-heading-actions {
    align-self: stretch;
  }

  .screen-heading > button {
    width: 100%;
  }

  .list-header {
    display: grid;
  }

  .list-tools {
    justify-content: flex-start;
  }

  .list-tools select {
    flex: 1 1 100%;
  }

  .route-now-actions {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/*
 * Russell high-resolution reconstruction.
 * Measured against russell-new-world-reference-high-resolution.png (883 x 1911).
 * The 442px viewport is the half-scale implementation baseline.
 */
:root {
  --r-app-width: 442px;
  --r-gutter: 18px;
  --r-nav-height: 64px;
  --r-font: Arial, "Segoe UI", sans-serif;
  --r-shadow-card: 0 4px 14px rgb(23 23 25 / 8%);
  --r-shadow-nav: 0 3px 15px rgb(23 23 25 / 11%);
}

body {
  background: #f2f2f3;
  font-family: var(--r-font);
}

body:not(.login-active) .app-shell,
body:not(.login-active)[data-active-screen="presence"] .app-shell,
body.login-active .app-shell,
.app-shell {
  width: min(100%, var(--r-app-width));
  max-width: var(--r-app-width);
  min-height: 100dvh;
  padding-top: 0;
  overflow: hidden;
  background: #fff;
}

body:not(.login-active) main,
body:not(.login-active)[data-active-screen="presence"] main,
body:not(.login-active):not([data-active-screen]) main,
main {
  width: 100%;
  padding: 0 var(--r-gutter) calc(var(--r-nav-height) + 16px);
  background: #fff;
}

body:not(.login-active) .topbar,
body:not(.login-active)[data-active-screen] .topbar,
body:not(.login-active)[data-active-screen="presence"] .topbar,
body:not(.login-active):not([data-active-screen]) .topbar,
body.login-active .topbar,
.topbar {
  position: relative;
  z-index: 20;
  top: auto;
  left: auto;
  display: flex;
  width: 100%;
  max-width: none;
  min-height: 78px;
  margin: 0;
  padding: max(17px, env(safe-area-inset-top)) var(--r-gutter) 11px;
  transform: none;
  background: #fff;
  backdrop-filter: none;
}

.brand-lockup {
  position: relative;
  display: block;
  width: 173px;
  height: 48px;
}

.brand-lockup .new-world-logo {
  width: 170px;
  height: auto;
  object-fit: contain;
  object-position: left top;
}

body:not(.login-active) .brand-lockup h1,
body:not(.login-active)[data-active-screen="presence"] .brand-lockup h1,
.brand-lockup h1 {
  position: absolute;
  top: 37px;
  left: 59px;
  width: 112px;
  max-width: none;
  margin: 0;
  overflow: visible;
  color: #171719;
  font-size: 7.5px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.new-world-mark,
.brand-lockup .eyebrow {
  display: none !important;
}

.header-more-button {
  width: 42px;
  min-width: 42px;
  height: 42px;
  min-height: 42px;
  color: #171719;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.header-more-button::before,
.header-more-button::after {
  display: none;
}

.header-more-button svg {
  width: 23px;
  height: 23px;
  stroke-width: 2.1;
}

.header-more-button .notification-badge {
  top: 2px;
  right: 0;
  min-width: 18px;
  height: 18px;
  font-size: 10px;
}

#presenceStep.screen {
  padding: 0;
}

.home-greeting-row {
  grid-template-columns: minmax(0, 1fr) 158px;
  gap: 10px;
  align-items: start;
  min-height: 66px;
  margin: 7px 0 12px;
}

.home-greeting-row h2 {
  margin: 0;
  color: #121214;
  font-size: 21px;
  font-weight: 800;
  line-height: 1.08;
  white-space: nowrap;
}

.greeting-wave {
  display: inline-block;
  font-size: 20px;
  line-height: 1;
  transform: translateY(-1px);
}

.home-greeting-row p {
  margin: 7px 0 0;
  color: #27272b;
  font-size: 12.5px;
  font-weight: 400;
  line-height: 1.25;
}

.store-status-strip {
  display: grid;
  justify-items: center;
  gap: 4px;
  width: 158px;
}

.store-status-strip > button:first-child {
  width: 158px;
  max-width: 158px;
  min-height: 36px;
  gap: 6px;
  padding: 7px 10px;
  font-size: 10.5px;
  border-color: #e6e6e8;
  box-shadow: 0 3px 10px rgb(23 23 25 / 10%);
}

.store-status-strip > button:first-child svg:first-child {
  width: 16px;
  height: 16px;
}

.store-status-strip > button:first-child svg:last-child {
  width: 13px;
  height: 13px;
}

.store-status-strip > button + .store-change-link,
.store-change-link {
  min-height: 18px;
  color: #d71935;
  font-size: 10px;
}

.fresh-hero {
  min-height: 269px;
  margin: 0 0 16px;
  border-radius: 11px;
  background-position: center center;
  box-shadow: none;
}

.fresh-hero::before {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: block;
  content: "";
  background: linear-gradient(90deg, rgb(4 13 9 / 78%) 0%, rgb(4 13 9 / 43%) 38%, transparent 66%);
}

.fresh-hero::after {
  position: absolute;
  z-index: 3;
  bottom: 89px;
  left: 50%;
  display: block;
  width: 11px;
  height: 5px;
  content: "";
  border-radius: 999px;
  background: #fff;
  box-shadow: -18px 0 0 rgb(255 255 255 / 60%), 18px 0 0 rgb(255 255 255 / 60%), 36px 0 0 rgb(255 255 255 / 35%);
  transform: translateX(-50%);
}

.fresh-hero-copy {
  top: 33px;
  left: 18px;
  width: 46%;
}

.fresh-hero h2 {
  font-size: 23px;
  font-weight: 800;
  line-height: 1.1;
  text-shadow: 0 1px 3px rgb(0 0 0 / 50%);
}

.fresh-hero-copy > span {
  width: 27px;
  height: 2px;
  margin: 14px 0 14px;
}

.fresh-hero p {
  max-width: 145px;
  font-size: 12px;
  line-height: 1.45;
}

.fresh-hero-badge {
  top: 0;
  right: 24px;
  display: grid;
  width: 58px;
  height: 72px;
  padding: 16px 4px 0;
  place-items: start center;
  color: #fff;
  font-family: "Segoe Print", "Comic Sans MS", cursive;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.05;
  background: rgb(5 5 6 / 78%);
  transform: none;
}

.fresh-hero-badge::after {
  display: block;
  width: 28px;
  height: 2px;
  margin-top: 8px;
  content: "";
  background: var(--r-red);
}

.hero-offer-row {
  right: 15px;
  bottom: 12px;
  left: 15px;
  gap: 8px;
}

.hero-offer-card {
  grid-template-columns: 44px minmax(0, 1fr) 8px;
  gap: 4px;
  min-height: 66px;
  padding: 7px 6px;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgb(23 23 25 / 12%);
}

.hero-offer-card > img {
  width: 44px;
  height: 46px;
  border-radius: 0;
  object-fit: contain;
  background: transparent;
}

.hero-offer-card strong {
  overflow: visible;
  font-size: 9.5px;
  font-weight: 700;
  line-height: 1.08;
  text-overflow: clip;
}

.hero-offer-card small {
  margin-top: 4px;
  font-size: 8px;
  line-height: 1;
  white-space: nowrap;
}

.hero-offer-card > svg {
  width: 8px;
  height: 10px;
  color: var(--r-red);
  stroke-width: 3;
}

.home-feature-grid {
  gap: 10px;
  margin: 0 0 14px;
}

.home-feature-card {
  height: 151px;
  min-height: 151px;
  padding: 12px 13px;
  border-radius: 11px;
  box-shadow: none;
}

.feature-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  box-shadow: 0 3px 9px rgb(23 23 25 / 10%);
}

.feature-icon svg {
  width: 20px;
  height: 20px;
  stroke-width: 2;
}

.home-feature-card strong {
  max-width: 62%;
  margin-top: 9px;
  font-size: 15.5px;
  line-height: 1.12;
}

.home-feature-card small {
  max-width: 61%;
  margin-top: 8px;
  font-size: 9.5px;
  line-height: 1.32;
}

.home-feature-card > img,
.home-feature-card.list-card > img,
.home-feature-card.recipe-card-home > img,
.home-feature-card.win-card > img {
  right: -9px;
  bottom: -8px;
  width: 124px;
  height: 129px;
}

.home-feature-card.list-card > img {
  right: -2px;
  bottom: -9px;
  width: 92px;
  height: 139px;
}

.home-feature-card.recipe-card-home > img {
  right: -12px;
  bottom: -14px;
  width: 137px;
  height: 137px;
}

.home-feature-card.win-card > img {
  right: -6px;
  bottom: -12px;
  width: 130px;
  height: 138px;
}

.feature-go {
  position: absolute;
  z-index: 4;
  right: 39%;
  bottom: 13px;
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  color: #fff;
  border-radius: 50%;
  background: var(--r-red);
}

.feature-go svg {
  width: 13px;
  height: 13px;
  stroke-width: 2.5;
}

.list-card .feature-go {
  background: #30a266;
}

.recipe-card-home .feature-go {
  background: #ef710f;
}

.win-card .feature-go {
  background: #9139b8;
}

.home-stats-strip {
  min-height: 86px;
  margin: 0;
  border-radius: 11px;
  box-shadow: 0 3px 10px rgb(23 23 25 / 8%);
}

.home-stat-card {
  min-height: 84px;
  padding: 11px 7px 8px;
  place-items: start;
  align-content: start;
  text-align: left;
}

.home-stat-card svg,
.clubcard-mark {
  width: 17px;
  height: 17px;
  margin-bottom: 7px;
  color: var(--r-red);
}

.clubcard-mark {
  display: grid;
  width: 22px;
  place-items: center;
  color: #fff;
  font-size: 6.5px;
  font-weight: 800;
  border-radius: 3px;
  background: var(--r-red);
}

.home-stat-card strong {
  font-size: 9.5px;
  font-weight: 700;
  line-height: 1.1;
}

.home-stat-card small {
  display: block;
  margin-top: 5px;
  font-size: 8px;
  line-height: 1.25;
  -webkit-line-clamp: initial;
}

#presenceStep > .shopping-list-card,
#presenceStep > .action-footer,
#presenceStep > .current-shop-card,
#presenceStep > #brandStudioHomeModules {
  display: none !important;
}

.parent-bar.shelfquest-bottom-nav {
  right: auto;
  bottom: 9px;
  left: 50%;
  width: min(calc(100% - 36px), 406px);
  height: var(--r-nav-height);
  padding: 5px 8px;
  overflow: visible;
  border: 1px solid var(--r-divider);
  border-radius: 12px;
  background: rgb(255 255 255 / 98%);
  box-shadow: var(--r-shadow-nav);
}

.parent-bar.shelfquest-bottom-nav button,
.parent-bar.shelfquest-bottom-nav .floating-scan-button {
  min-height: 52px;
  padding: 4px 2px;
  gap: 5px;
}

.parent-bar.shelfquest-bottom-nav button svg {
  width: 20px;
  height: 20px;
  stroke-width: 2;
}

.parent-bar.shelfquest-bottom-nav button span {
  font-size: 9px;
  font-weight: 600;
}

.parent-bar.shelfquest-bottom-nav button.active::after {
  right: 8px;
  bottom: -5px;
  left: 8px;
}

.parent-bar.shelfquest-bottom-nav .floating-scan-button {
  width: 58px;
  min-width: 58px;
  height: 58px;
  min-height: 58px;
  margin-top: -28px;
  border: 3px solid #fff;
  box-shadow: 0 4px 12px rgb(23 23 25 / 22%);
}

.parent-bar.shelfquest-bottom-nav .floating-scan-button svg {
  width: 24px;
  height: 24px;
}

.parent-bar.shelfquest-bottom-nav .floating-scan-button span {
  top: 60px;
  font-size: 9px;
}

/* Russell's larger shell and calmer geometry are shared by every route. */
.screen-heading {
  margin-bottom: 18px;
  padding-top: 10px;
}

.screen > h2,
.screen-heading h2 {
  font-size: 25px;
}

.shelf-card,
.route-panel,
.objective-panel,
.result-panel,
.info-card,
.recipe-detail-card,
.product-detail-card,
.quiz-card,
.quest-settings-card,
.current-shop-card,
.shopping-list-card,
.account-settings-card,
.install-card,
.catalogue-modal,
.pioneer-map-panel,
.route-map-frame,
.shopper-map,
.store-map-visual,
.expanded-map-viewport,
.camera-panel,
.objective-hero,
.result-hero,
.route-summary,
.reward-earned,
.quest-progress-chip,
.route-now-card {
  border-radius: 10px;
}

.more-tile,
.catalogue-result,
.recipe-card,
.quest-template-card,
.trophy-card,
.add-choice-card,
.role {
  min-height: 58px;
  border-radius: 10px;
}

.toast {
  max-width: min(calc(100% - 36px), 406px);
  border-radius: 10px;
}

.shopping-item {
  grid-template-columns: 24px 44px minmax(0, 1fr);
  grid-template-areas:
    "select icon main"
    ". actions actions";
  gap: 8px;
  min-height: 116px;
  padding: 10px 0;
}

.shopping-item .item-select-wrap {
  grid-area: select;
}

.shopping-item .shopping-item-icon {
  grid-area: icon;
  width: 44px;
  height: 44px;
}

.shopping-item .item-main {
  grid-area: main;
  min-width: 0;
  overflow: hidden;
}

.shopping-item .item-detail-trigger {
  width: 100%;
  min-width: 0;
  overflow: hidden;
}

.shopping-item .item-actions {
  grid-area: actions;
  display: grid;
  grid-template-columns: repeat(3, 44px);
  justify-content: end;
  width: 100%;
  min-width: 0;
  gap: 6px;
}

.shopping-item .item-actions .item-icon-button,
.shopping-item .item-actions .item-check {
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
}

.shopping-item .item-name,
.shopping-item .shopping-item-summary {
  max-width: 100%;
}

.shopping-item .shopping-item-heading {
  display: flex;
  width: 100%;
  min-width: 0;
  overflow: hidden;
}

.shopping-item .item-name {
  flex: 1 1 auto;
  width: 0;
  min-width: 0;
}

.russell-principle-band {
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 16px;
  color: var(--r-text);
  background: #fff;
  border-block: 1px solid var(--r-divider);
}

.russell-principle-band .russell-catalogue-logo {
  width: 132px;
  height: auto;
}

.russell-principle-band .step-label {
  color: var(--r-red);
}

.russell-principle-band h3 {
  color: var(--r-ink);
}

.russell-principle-band p:last-child {
  color: var(--r-muted);
}

.design-measurement-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--r-divider);
}

.design-measurement-grid span {
  display: grid;
  gap: 3px;
}

.design-measurement-grid strong {
  color: var(--r-ink);
  font-size: 11px;
}

.design-measurement-grid small {
  color: var(--r-muted);
  font-size: 9px;
  line-height: 1.2;
}

.design-provenance {
  margin: 16px 0 0;
  color: var(--r-muted);
  font-size: 10px;
  line-height: 1.45;
}

@media (max-width: 419px) {
  :root {
    --r-gutter: 14px;
  }

  .topbar {
    min-height: 72px;
  }

  .brand-lockup,
  .brand-lockup .new-world-logo {
    width: 154px;
  }

  .brand-lockup h1 {
    top: 33px;
    left: 54px;
    font-size: 7px;
  }

  .home-greeting-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    min-height: 112px;
  }

  .home-greeting-row h2 {
    font-size: 20px;
    white-space: normal;
  }

  .store-status-strip {
    grid-template-columns: auto auto;
    justify-content: start;
    justify-items: start;
    gap: 8px;
    width: 100%;
  }

  .store-status-strip > button:first-child {
    width: 174px;
    max-width: 174px;
  }

  .store-status-strip > button:first-child span {
    overflow: visible;
    text-overflow: clip;
  }

  .fresh-hero {
    min-height: 248px;
  }

  .fresh-hero-copy {
    top: 25px;
  }

  .fresh-hero h2 {
    font-size: 21px;
  }

  .fresh-hero-badge {
    right: 15px;
  }

  .hero-offer-row {
    right: 8px;
    left: 8px;
    gap: 5px;
  }

  .hero-offer-card {
    grid-template-columns: 35px minmax(0, 1fr);
    padding: 6px 5px;
  }

  .hero-offer-card > img {
    width: 35px;
    height: 42px;
  }

  .hero-offer-card > svg {
    display: none;
  }

  .hero-offer-card strong {
    font-size: 8.5px;
  }

  .hero-offer-card small {
    font-size: 7px;
  }

  .home-feature-card {
    min-height: 146px;
    padding: 10px;
  }

  .home-feature-card strong {
    max-width: 70%;
    font-size: 13px;
  }

  .home-feature-card small {
    max-width: 65%;
    margin-top: 5px;
    font-size: 8.5px;
  }

  .home-feature-card > img,
  .home-feature-card.list-card > img,
  .home-feature-card.recipe-card-home > img,
  .home-feature-card.win-card > img {
    width: 102px;
    height: 112px;
  }

  .home-feature-card.list-card > img {
    right: -4px;
    width: 70px;
    height: 116px;
  }

  .home-feature-card.list-card strong {
    max-width: 72%;
  }

  .home-feature-card.list-card small {
    max-width: 55%;
    font-size: 8px;
  }

  .feature-go {
    right: 37%;
  }

  .home-stat-card {
    padding-inline: 4px;
  }

  .home-stat-card strong {
    font-size: 8px;
  }

  .home-stat-card small {
    font-size: 7px;
  }

  .parent-bar.shelfquest-bottom-nav {
    width: calc(100% - 20px);
  }

  .russell-principle-band {
    grid-template-columns: minmax(0, 1fr);
  }

  .design-measurement-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
