:root {
  color-scheme: light;
  --ink: #17130f;
  --muted: #756e65;
  --paper: #f5f0e7;
  --card: #fffdf8;
  --accent: #e84b2c;
  --accent-dark: #b83019;
  --accent-soft: #fbe5dd;
  --line: rgba(23, 19, 15, 0.12);
  --shadow: 0 16px 50px rgba(37, 25, 12, 0.14);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--paper);
  color: var(--ink);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 95% 8%, rgba(232, 75, 44, 0.18), transparent 28rem),
    var(--paper);
  padding-bottom: calc(104px + env(safe-area-inset-bottom));
}

html:has(body[data-workspace-mode="customer"]),
body[data-workspace-mode="customer"] {
  min-height: 100%;
  background: #171716;
  overscroll-behavior-y: none;
  scrollbar-color: rgba(241, 238, 231, .28) #171716;
}

body[data-workspace-mode="customer"]::-webkit-scrollbar,
body[data-workspace-mode="customer"]::-webkit-scrollbar-track {
  background: #171716;
}

button { font: inherit; }

.hero {
  position: relative;
  overflow: hidden;
  padding: calc(24px + env(safe-area-inset-top)) 20px 26px;
  color: #fff9ef;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.04), transparent 42%),
    #17130f;
}

.hero::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  right: -78px;
  bottom: -102px;
  border: 28px solid var(--accent);
  border-radius: 50%;
  opacity: 0.9;
}

.hero__top, .section-heading, .cart-line, .product-dialog__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.hero__top > :first-child { min-width: 0; }
.hero__identity { display: flex; min-width: 0; align-items: flex-start; gap: 14px; }
.hero__copy { min-width: 0; }
.icon-button.hero__menu-button { flex: 0 0 auto; width: 52px; height: 52px; margin-top: 19px; font-size: 24px; }
.icon-button.hero__profile-button { width: 56px; height: 56px; font-size: 23px; }

h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 8px; font-size: clamp(30px, 9vw, 44px); letter-spacing: -0.05em; }
h2 { margin-bottom: 0; font-size: 28px; letter-spacing: -0.04em; }
h3 { margin-bottom: 7px; font-size: 18px; line-height: 1.12; letter-spacing: -0.025em; }

.eyebrow {
  margin-bottom: 6px;
  color: #ff7a5f;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.18em;
}

.eyebrow--dark { color: var(--accent-dark); }

.hero__description {
  position: relative;
  z-index: 1;
  max-width: 32rem;
  margin: 8px 0 17px;
  color: rgba(255, 249, 239, 0.74);
  font-size: 14px;
  line-height: 1.45;
}

.location-line {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 8px;
  align-items: center;
  color: rgba(255, 249, 239, 0.9);
  font-size: 13px;
}

.location-line > :first-child { color: #62c777; font-size: 10px; }

.icon-button {
  position: relative;
  z-index: 2;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  color: white;
  background: rgba(255, 255, 255, 0.08);
  font-size: 20px;
  touch-action: manipulation;
}

.cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 21px;
  height: 21px;
  padding: 2px 6px;
  border-radius: 99px;
  color: var(--ink);
  background: #fff9ef;
  font-size: 11px;
  font-weight: 800;
  line-height: 17px;
  text-align: center;
  white-space: nowrap;
  pointer-events: none;
}

.cart-count--attention { color: white; background: var(--accent); }

html[data-customer-theme="dark"] #orders-quick-count {
  border: 2px solid #2a1b08;
  color: #241500;
  background: linear-gradient(145deg, #ffc13b, #ed9410);
  box-shadow: 0 3px 9px rgba(0, 0, 0, .4), inset 0 1px 0 rgba(255, 255, 255, .48);
  font-weight: 950;
  line-height: 13px;
}

.staff-communication-count {
  position: absolute;
  right: -5px;
  bottom: -5px;
  display: grid;
  min-width: 21px;
  height: 21px;
  place-items: center;
  padding: 0 5px;
  border: 2px solid #4a251b;
  border-radius: 999px;
  color: #4d2d00;
  background: #ffd45c;
  box-sizing: border-box;
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
}

.staff-communication-count[hidden] { display: none; }

.categories {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  padding: 18px 20px 8px;
  scrollbar-width: none;
}

.categories::-webkit-scrollbar { display: none; }

.category-pill {
  flex: 0 0 auto;
  padding: 10px 15px;
  border: 1px solid var(--line);
  border-radius: 99px;
  color: var(--ink);
  background: rgba(255, 253, 248, 0.7);
  font-size: 13px;
  font-weight: 750;
}

.category-pill[aria-current="true"] {
  border-color: var(--ink);
  color: white;
  background: var(--ink);
}

.menu-section { padding: 19px 20px; }
.section-heading { margin-bottom: 18px; }
.result-count { color: var(--muted); font-size: 12px; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.product-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(23, 19, 15, 0.07);
  border-radius: 19px;
  background: var(--card);
  box-shadow: 0 7px 22px rgba(37, 25, 12, 0.07);
}

.product-card__button {
  width: 100%;
  padding: 0;
  border: 0;
  color: inherit;
  text-align: left;
  background: transparent;
}

.product-card__image, .product-dialog__image {
  display: block;
  width: 100%;
  object-fit: cover;
  background: #e8e0d3;
}

.product-card__image { aspect-ratio: 1.14; }
.product-dialog__image { aspect-ratio: 1.45; max-height: min(38vh, 340px); border-radius: 17px; }

.image-placeholder {
  display: grid;
  place-items: center;
  color: rgba(23, 19, 15, 0.35);
  background: linear-gradient(135deg, #e8ded0, #f8f3eb);
  font-size: 34px;
}

.product-card__body { padding: 12px; }
.product-card__description {
  display: -webkit-box;
  min-height: 34px;
  margin-bottom: 12px;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.product-card__bottom { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.price { font-size: 16px; font-weight: 850; letter-spacing: -0.03em; }
.catalog-price { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 16px; }
.catalog-price--discounted { display: inline-flex; align-items: center; gap: 5px; line-height: 1; white-space: nowrap; }
.catalog-price__old { color: var(--muted); font-size: .72em; font-weight: 750; line-height: 1.1; text-decoration-color: currentColor; text-decoration-thickness: 1.5px; }
.catalog-price--discounted > .catalog-price__old { margin: 0; }
.catalog-price__current { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.catalog-price__new { color: var(--accent, #ef482f); font-weight: 900; letter-spacing: -.02em; }
.catalog-price__badge { display: inline-flex; align-items: center; min-height: 20px; padding: 2px 6px; border-radius: 999px; color: #fff; background: #ef482f; font-size: 10px; font-weight: 900; box-shadow: 0 5px 14px rgba(239,72,47,.2); }
.catalog-price--compact { font-size: 12px; }
.catalog-price--compact .catalog-price__current { gap: 4px; }
.catalog-price--compact.catalog-price--discounted { gap: 3px; }
.catalog-price--compact .catalog-price__badge { min-height: 17px; padding: 1px 5px; font-size: 8px; }
.catalog-price__suffix { grid-column: 1; flex-basis: 100%; color: var(--muted); font-size: 10px; line-height: 1.25; }
.cart-item__total { gap: 2px; }
.cart-item__total .catalog-price__old { font-size: 10px; }
.catalog-discount-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.catalog-discount-card { display: grid; align-content: start; gap: 10px; }
.catalog-discount-card__amount { color: #c53620; font-size: clamp(22px, 2vw, 32px); }
.weight { color: var(--muted); font-size: 11px; }

.plus-button {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border: 0;
  border-radius: 50%;
  color: white;
  background: var(--accent);
  font-size: 20px;
}

.floating-cart {
  position: fixed;
  z-index: 8;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom));
  left: 16px;
  display: flex;
  justify-content: space-between;
  padding: 16px 18px;
  border: 0;
  border-radius: 17px;
  color: white;
  background: var(--accent);
  box-shadow: 0 16px 38px rgba(184, 48, 25, 0.32);
  font-weight: 750;
}

.sheet {
  width: min(100%, 680px);
  max-width: none;
  max-height: 88vh;
  margin: auto auto 0;
  padding: 12px 20px calc(24px + env(safe-area-inset-bottom));
  overflow-y: auto;
  border: 0;
  border-radius: 25px 25px 0 0;
  color: var(--ink);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.sheet::backdrop { background: rgba(17, 12, 8, 0.62); backdrop-filter: blur(4px); }
.sheet__handle { width: 42px; height: 4px; margin: 0 auto 12px; border-radius: 99px; background: rgba(23, 19, 15, 0.18); }
.sheet__close { position: sticky; z-index: 3; top: 0; float: right; width: 38px; height: 38px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.86); font-size: 24px; }
.sheet--cart { padding-bottom: 0; }
.product-dialog__layout { clear: both; min-width: 0; }
.product-dialog__media { position: relative; min-width: 0; isolation: isolate; }
.product-dialog__discount-badge {
  position: absolute;
  inset: 12px 12px auto auto;
  z-index: 2;
}
.product-dialog__body { display: flex; min-width: 0; flex-direction: column; padding: 18px 1px 4px; }
.product-dialog__body > p { color: var(--muted); line-height: 1.5; }
.product-dialog__meta { display: flex; gap: 9px; margin-bottom: 16px; color: var(--muted); font-size: 13px; }

.modifier-group { margin: 20px 0; }
.modifier-group__title { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 10px; font-weight: 800; }
.modifier-group__hint { color: var(--muted); font-size: 12px; font-weight: 500; }
.modifier-option { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.modifier-option label { display: flex; align-items: center; gap: 10px; }
.modifier-option input { width: 19px; height: 19px; accent-color: var(--accent); }
.modifier-option__price { color: var(--muted); font-size: 13px; }

.quantity-control { display: grid; grid-template-columns: 40px 44px 40px; align-items: center; text-align: center; border: 1px solid var(--line); border-radius: 13px; overflow: hidden; }
.quantity-control button { height: 42px; border: 0; background: transparent; font-size: 20px; }
.quantity-control strong { font-size: 14px; }

.primary-button, .secondary-button {
  min-height: 50px;
  padding: 13px 17px;
  border-radius: 14px;
  font-weight: 800;
}

.primary-button { flex: 1; border: 0; color: white; background: var(--accent); }
.secondary-button { border: 1px solid var(--line); color: var(--ink); background: transparent; }
.primary-button:disabled { opacity: 0.45; }
.product-dialog__footer { position: sticky; bottom: 0; margin-top: auto; padding: 14px 0 0; background: linear-gradient(transparent, var(--paper) 24%); }

.cart-heading { padding: 4px 0 18px; }
.cart-overview { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; padding: 12px 14px; border-radius: 15px; background: color-mix(in srgb, var(--accent-soft) 70%, white); }
.cart-overview__copy { display: grid; gap: 3px; }
.cart-overview__copy strong { font-size: 13px; }
.cart-overview__copy small { color: var(--muted); font-size: 10px; line-height: 1.35; }
.cart-overview__count { flex: 0 0 auto; padding: 6px 9px; border-radius: 99px; color: white; background: var(--ink); font-size: 11px; font-weight: 850; }
.cart-list { display: grid; gap: 10px; }
.cart-item { display: grid; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 17px; background: var(--card); box-shadow: 0 7px 20px rgba(37, 25, 12, 0.05); }
.cart-item__headline { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; align-items: start; gap: 10px; }
.cart-item__marker { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 10px; color: var(--accent-dark); background: var(--accent-soft); font-size: 12px; font-weight: 900; }
.cart-item__copy { display: grid; grid-template-rows: auto auto; gap: 4px; min-width: 0; }
.cart-item__copy h3 { margin: 0; font-size: 15px; line-height: 18px; overflow-wrap: anywhere; }
.cart-item__copy > .catalog-price { align-content: start; min-height: 18px; line-height: 18px; }
.cart-item__copy small { color: var(--muted); font-size: 10px; }
.cart-item__total { display: grid; grid-template-rows: 18px 18px; align-self: start; gap: 4px; justify-items: end; white-space: nowrap; }
.cart-item__total small { color: var(--muted); font-size: 9px; line-height: 18px; }
.cart-item__total strong { font-size: 14px; line-height: 18px; }
.cart-benefits { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 11px; margin-bottom: 10px; padding: 12px 14px; border: 1px solid color-mix(in srgb, var(--customer-theme-accent) 35%, var(--line)); border-radius: 16px; background: color-mix(in srgb, var(--customer-theme-accent) 9%, var(--card)); }
.cart-benefits__icon { display: grid; width: 42px; height: 42px; place-self: center; place-items: center; border-radius: 13px; background: color-mix(in srgb, var(--customer-theme-accent) 13%, var(--customer-theme-surface-raised)); }
.cart-benefits__icon .dimensional-icon { display: block; width: 30px; height: 30px; }
.cart-benefits__copy { display: grid; align-content: center; min-width: 0; min-height: 42px; gap: 3px; }
.cart-benefits__copy strong { font-size: 13px; }
.cart-benefits__copy small { overflow-wrap: anywhere; color: var(--muted); font-size: 11px; }
.cart-benefits__free { place-self: center end; color: #46a56b; font-size: 14px; font-weight: 950; white-space: nowrap; }
.cart-item__modifiers { display: flex; flex-wrap: wrap; gap: 5px; padding-left: 42px; }
.cart-item__modifiers span { max-width: 100%; padding: 5px 8px; border-radius: 99px; color: var(--muted); background: var(--paper); font-size: 10px; overflow-wrap: anywhere; }
.cart-item__footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 11px; border-top: 1px solid var(--line); }
.cart-item__remove, .cart-clear { padding: 8px 4px; border: 0; color: var(--accent-dark); background: transparent; font-size: 11px; font-weight: 800; }
.cart-summary { position: sticky; z-index: 2; bottom: 0; margin: 14px -4px 0; padding: 17px 17px calc(17px + env(safe-area-inset-bottom)); border: 1px solid var(--line); border-bottom: 0; border-radius: 20px 20px 0 0; background: color-mix(in srgb, var(--card) 96%, transparent); box-shadow: 0 -12px 32px rgba(37, 25, 12, 0.1); backdrop-filter: blur(14px); }
.cart-summary__meta { display: flex; justify-content: space-between; color: var(--muted); font-size: 10px; }
.cart-line { margin-bottom: 9px; color: var(--muted); }
.cart-line--total { margin: 15px 0 0; padding-top: 15px; border-top: 1px solid var(--line); color: var(--ink); font-size: 19px; font-weight: 850; }
.cart-line--total > span { color: var(--ink); font-weight: 900; }
.cart-actions { display: grid; gap: 10px; margin-top: 14px; }
.cart-checkout { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.cart-checkout span { font-size: 13px; font-weight: 850; }
.cart-clear { justify-self: center; color: var(--muted); }
.checkout-form { display: grid; gap: 18px; }
.checkout-section { display: grid; gap: 10px; padding: 16px; border: 1px solid var(--line); border-radius: 17px; background: var(--card); }
.checkout-section h3 { margin: 0 0 2px; font-size: 15px; }
.checkout-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.checkout-option { position: relative; display: block; }
.checkout-option input { position: absolute; opacity: 0; pointer-events: none; }
.checkout-option span { display: grid; min-height: 44px; place-items: center; padding: 9px; border: 1px solid var(--line); border-radius: 12px; text-align: center; font-size: 13px; font-weight: 750; }
.checkout-option input:checked + span { border-color: var(--ink); color: white; background: var(--ink); }
.checkout-section__label { margin: 4px 0 0; font-size: 12px; font-weight: 800; }
.checkout-delivery-methods { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.checkout-delivery-method { position: relative; display: block; min-width: 0; height: 100%; cursor: pointer; }
.checkout-delivery-method input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.checkout-delivery-method__card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  box-sizing: border-box;
  height: 100%;
  min-height: 70px;
  align-items: center;
  gap: 9px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: white;
}
.checkout-delivery-method__icon { font-size: 20px; }
.checkout-delivery-method__copy { display: grid; gap: 3px; min-width: 0; }
.checkout-delivery-method__copy strong { font-size: 13px; }
.checkout-delivery-method__copy small { color: var(--muted); font-size: 10px; line-height: 1.3; }
.checkout-delivery-method input:checked + .checkout-delivery-method__card { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.checkout-delivery-method:has(input:disabled) { cursor: default; opacity: 0.48; }
.field { display: grid; gap: 6px; color: var(--muted); font-size: 12px; font-weight: 650; }
.field input, .field select, .field textarea { width: 100%; min-height: 46px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: white; font: inherit; }
.field textarea { min-height: 76px; resize: vertical; }
.checkout-zone-picker { position: relative; display: grid; min-width: 0; }
.checkout-zone-trigger { display: grid; min-height: 56px; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); background: white; cursor: pointer; list-style: none; }
.checkout-zone-trigger::-webkit-details-marker { display: none; }
.checkout-zone-trigger__icon { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 11px; background: var(--accent-soft); font-size: 17px; }
.checkout-zone-trigger__copy { display: grid; gap: 2px; min-width: 0; }
.checkout-zone-trigger__copy small { color: var(--muted); font-size: 10px; font-weight: 650; }
.checkout-zone-trigger__copy strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.checkout-zone-trigger__chevron { color: var(--muted); font-size: 20px; transition: transform 160ms ease; }
.checkout-zone-picker[open] .checkout-zone-trigger { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.checkout-zone-picker[open] .checkout-zone-trigger__chevron { transform: rotate(180deg); }
.checkout-zone-trigger--selected .checkout-zone-trigger__icon { color: white; background: var(--ink); }
.checkout-zone-panel { display: grid; gap: 9px; margin-top: 8px; padding: 10px; border: 1px solid var(--line); border-radius: 15px; background: #fff; box-shadow: 0 14px 30px rgba(37, 25, 12, 0.12); }
.checkout-zone-panel input[type="search"] { padding-left: 38px; background-image: radial-gradient(circle, transparent 5px, var(--muted) 5.5px, var(--muted) 7px, transparent 7.5px), linear-gradient(45deg, transparent 46%, var(--muted) 47% 56%, transparent 57%); background-position: 12px 14px, 24px 27px; background-repeat: no-repeat; background-size: 16px 16px, 8px 8px; }
.checkout-zone-choices { display: grid; max-height: 230px; gap: 6px; overflow-y: auto; overscroll-behavior: contain; }
.checkout-zone-choice { display: grid; width: 100%; min-height: 46px; grid-template-columns: auto minmax(0, 1fr) 22px; align-items: center; gap: 9px; padding: 9px 10px; border: 1px solid transparent; border-radius: 12px; color: var(--ink); background: var(--paper); text-align: left; }
.checkout-zone-choice strong { font-size: 13px; overflow-wrap: anywhere; }
.checkout-zone-choice__pin { font-size: 15px; }
.checkout-zone-choice__check { color: var(--accent); font-size: 16px; font-weight: 900; text-align: center; }
.checkout-zone-choice--selected { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); background: var(--accent-soft); }
.checkout-zone-empty { margin: 0; padding: 18px 10px; color: var(--muted); text-align: center; font-size: 12px; }
.checkout-zone-native { position: absolute; width: 1px !important; height: 1px; min-height: 1px !important; padding: 0 !important; opacity: 0; pointer-events: none; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.checkout-note { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.checkout-note--error { color: #a72d1d; }
.checkout-settlement { gap: 0; }
.checkout-settlement > h3 { margin-bottom: 10px; }
.checkout-payment-options {
  display: flex;
  gap: 8px;
  margin: 0 -3px;
  padding: 3px 3px 14px;
  overflow-x: auto;
  scrollbar-width: none;
}
.checkout-payment-options::-webkit-scrollbar { display: none; }
.checkout-payment-option { position: relative; flex: 1 0 112px; min-width: 112px; cursor: pointer; }
.checkout-payment-option input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.checkout-payment-option__card {
  display: grid;
  min-height: 82px;
  align-content: space-between;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
.checkout-payment-option__icon { font-size: 22px; line-height: 1; }
.checkout-payment-option__card strong { font-size: 12px; line-height: 1.25; }
.checkout-payment-option input:checked + .checkout-payment-option__card {
  border-color: var(--ink);
  background: white;
  box-shadow: 0 0 0 1px var(--ink);
}
.checkout-payment-option:has(input:focus-visible) { outline: 3px solid rgba(77, 119, 74, 0.2); outline-offset: 2px; border-radius: 14px; }
.checkout-bonus {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  min-width: 0;
  align-items: center;
  gap: 14px;
  padding: 15px 2px;
  border-top: 1px solid var(--line);
  cursor: pointer;
}
.checkout-bonus > input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.checkout-bonus__copy { display: grid; min-width: 0; gap: 4px; line-height: 1.35; }
.checkout-bonus__copy strong { overflow-wrap: anywhere; font-size: 14px; }
.checkout-bonus__copy small { color: var(--muted); font-size: 11px; font-weight: 500; }
.checkout-bonus__switch {
  position: relative;
  width: 52px;
  height: 30px;
  flex: 0 0 auto;
  border: 1px solid rgba(23, 19, 15, 0.15);
  border-radius: 99px;
  background: rgba(23, 19, 15, 0.16);
  box-shadow: inset 0 1px 3px rgba(23, 19, 15, 0.12);
  transition: background 160ms ease, border-color 160ms ease;
}
.checkout-bonus__thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 2px 6px rgba(23, 19, 15, 0.28);
  transition: transform 160ms ease;
}
.checkout-bonus > input:checked ~ .checkout-bonus__switch { border-color: #4d774a; background: #4d774a; }
.checkout-bonus > input:checked ~ .checkout-bonus__switch .checkout-bonus__thumb { transform: translateX(22px); }
.checkout-bonus:has(> input:focus-visible) { outline: 3px solid rgba(77, 119, 74, 0.2); outline-offset: 2px; }
.checkout-bonus:has(> input:disabled) { cursor: default; opacity: 0.62; }
.checkout-promo { border-top: 1px solid var(--line); }
.checkout-promo summary {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 8px 2px;
  list-style: none;
  cursor: pointer;
}
.checkout-promo summary::-webkit-details-marker { display: none; }
.checkout-promo__icon {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: var(--ink);
  font-size: 22px;
  font-weight: 500;
  line-height: 1;
}
.checkout-promo__arrow { color: var(--muted); font-size: 30px; line-height: 1; transition: transform 160ms ease; }
.checkout-promo[open] .checkout-promo__arrow { transform: rotate(90deg); }
.checkout-promo > .field { padding: 0 2px 14px 42px; }
.checkout-promo__input-wrap { position: relative; display: block; }
.checkout-promo__input-wrap > input { padding-right: 48px; }
.checkout-promo__clear {
  position: absolute;
  top: 50%;
  right: 7px;
  width: 34px;
  height: 34px;
  padding: 0;
  transform: translateY(-50%);
  border: 0;
  border-radius: 50%;
  color: var(--muted);
  background: rgba(127, 119, 108, 0.14);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.checkout-promo__clear[hidden] { display: none; }
.checkout-promo__status { color: #4d774a; font-size: 12px; line-height: 1.35; }
.checkout-promo--applied .checkout-promo__icon { background: #4d774a; }
.checkout-promo--applied .checkout-promo__icon { font-size: 0; }
.checkout-promo--applied .checkout-promo__icon::before { content: "✓"; font-size: 18px; }
.checkout-promo--invalid .checkout-promo__status { color: #c83a2a; }
.checkout-promo--invalid .checkout-promo__input-wrap > input { border-color: #c83a2a; }
.checkout-blocker {
  display: grid;
  gap: 6px;
  margin-top: 12px;
  padding: 15px 17px;
  border: 1px solid rgba(200, 58, 42, 0.32);
  border-radius: 16px;
  color: #b83426;
  background: rgba(200, 58, 42, 0.08);
}
.checkout-blocker[hidden] { display: none; }
.checkout-blocker p {
  margin: 0;
  font-size: 15px;
  font-weight: 620;
  line-height: 1.38;
  letter-spacing: -0.012em;
}
.checkout-blocker:not(.checkout-blocker--guidance) p {
  width: 100%;
  text-align: center;
  text-wrap: balance;
}
.checkout-blocker ul { margin: 0; padding-left: 20px; line-height: 1.5; }
.checkout-blocker--guidance { color: var(--ink); border-color: var(--line); background: rgba(127, 119, 108, 0.08); }
.checkout-earn {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 15px 2px 2px;
  border-top: 1px solid var(--line);
}
.checkout-earn__icon {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  color: #3f3210;
  background: #f4d868;
  font-size: 15px;
}
.checkout-earn__copy { display: grid; min-width: 0; gap: 3px; }
.checkout-earn__copy strong { font-size: 14px; line-height: 1.25; }
.checkout-earn__copy small { color: var(--muted); font-size: 11px; line-height: 1.3; }
.checkout-earn__value {
  min-width: 38px;
  padding: 5px 8px;
  border-radius: 99px;
  color: var(--muted);
  background: rgba(23, 19, 15, 0.08);
  text-align: center;
  font-size: 14px;
}
.checkout-earn__value--active { color: #3f3210; background: #f4d868; }
.promotion-choice { display: grid; gap: 9px; margin-bottom: 4px; padding-bottom: 13px; border-bottom: 1px solid var(--line); }
.promotion-choice__title, .checkout-benefits__title { margin: 0; font-size: 14px; }
.checkout-benefits__title { text-align: center; }
.promotion-choice__options { display: grid; gap: 8px; }
.promotion-choice__option { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: center; padding: 11px 12px; border: 1px solid var(--line); border-radius: 13px; background: white; cursor: pointer; }
.promotion-choice__option--selected { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.promotion-choice__option input { width: 18px; height: 18px; margin: 0; accent-color: var(--ink); }
.promotion-choice__copy { display: grid; gap: 3px; }
.promotion-choice__copy small { color: var(--muted); font-size: 12px; }
.checkout-benefits { display: grid; gap: 9px; margin-top: 14px; padding: 13px; border-radius: 13px; background: linear-gradient(135deg, rgba(239, 155, 24, 0.13), rgba(239, 155, 24, 0.055)); }
.checkout-benefit { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; gap: 11px; align-items: center; min-height: 64px; padding: 11px 13px; border: 1px solid rgba(239, 155, 24, 0.2); border-radius: 15px; background: rgba(255, 255, 255, 0.035); font-size: 13px; }
.checkout-benefit__icon { display: grid; width: 42px; min-width: 42px; place-items: center; }
.checkout-benefit__icon .dimensional-icon { width: 22px; height: 22px; }
.checkout-benefit__icon--reward { height: 42px; border-radius: 13px; background: rgba(239, 155, 24, 0.12); font-size: 22px; }
.checkout-benefit__copy { display: grid; min-width: 0; gap: 3px; }
.checkout-benefit__copy strong { font-size: 13px; line-height: 18px; }
.checkout-benefit__copy small { color: var(--muted); font-size: 11px; line-height: 16px; overflow-wrap: anywhere; }
.checkout-benefit__value { min-width: max-content; color: var(--accent); font-size: 14px; font-weight: 950; white-space: nowrap; text-align: right; }
.checkout-benefit--gift { grid-template-columns: 42px minmax(0, 1fr) auto; gap: 11px; min-height: 68px; padding: 12px 14px; border: 1px solid rgba(56, 121, 75, 0.25); border-radius: 16px; background: rgba(56, 121, 75, 0.08); }
.checkout-benefit__icon--gift { width: 42px; height: 42px; place-self: center; border-radius: 13px; background: rgba(56, 121, 75, 0.12); }
.checkout-benefit__icon--gift .dimensional-icon { display: block; width: 30px; height: 30px; }
.checkout-benefit__gift-copy { display: grid; align-content: center; min-width: 0; min-height: 42px; gap: 3px; }
.checkout-benefit__gift-copy strong { font-size: 13px; line-height: 18px; }
.checkout-benefit__gift-copy small { overflow-wrap: anywhere; color: var(--muted); font-size: 11px; line-height: 16px; }
.checkout-benefit__gift-price { display: inline-flex; place-self: center end; align-items: baseline; gap: 6px; white-space: nowrap; }
.checkout-benefit__gift-price del { color: var(--muted); font-size: 11px; font-weight: 700; }
.checkout-benefit__gift-price b { color: #46a56b; font-size: 14px; font-weight: 950; }
.loyalty-acceptance { display: grid; gap: 8px; margin-top: 8px; padding: 13px; border: 1px solid rgba(77, 119, 74, .24); border-radius: 14px; background: rgba(77, 119, 74, .07); }
.loyalty-acceptance--selected { border-color: #4d774a; box-shadow: 0 0 0 1px rgba(77, 119, 74, .25); }
.loyalty-acceptance__choice { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 11px; align-items: start; cursor: pointer; }
.loyalty-acceptance__choice input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: #4d774a; }
.loyalty-acceptance__copy { display: grid; min-width: 0; gap: 4px; line-height: 1.35; }
.loyalty-acceptance__copy small { color: var(--muted); font-size: 12px; }
.loyalty-acceptance__link { width: fit-content; color: #3f663d; font-size: 12px; font-weight: 800; overflow-wrap: anywhere; }
.checkout-submit { width: 100%; }
.checkout-recipient { gap: 10px; }
.checkout-recipient__summary {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
}
.checkout-recipient__avatar {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: rgba(77, 119, 74, 0.11);
  font-size: 19px;
}
.checkout-recipient__copy { display: grid; min-width: 0; gap: 4px; }
.checkout-recipient__copy strong { overflow-wrap: anywhere; font-size: 15px; }
.checkout-recipient__copy small { color: var(--muted); font-size: 13px; font-weight: 650; }
.checkout-recipient__edit {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  background: white;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
}
.checkout-recipient--missing { border: 1px solid rgba(167, 45, 29, 0.24); background: rgba(167, 45, 29, 0.06); }
.checkout-recipient__warning { margin: 0; color: #8f291d; font-weight: 750; line-height: 1.45; }
.checkout-time-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.checkout-time-option { position: relative; display: block; min-width: 0; height: 100%; cursor: pointer; }
.checkout-time-option input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.checkout-time-option__card {
  display: grid;
  box-sizing: border-box;
  height: 100%;
  min-height: 92px;
  align-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
.checkout-time-option__icon { font-size: 21px; line-height: 1; }
.checkout-time-option__copy { display: grid; min-width: 0; gap: 4px; }
.checkout-time-option__copy strong { font-size: 13px; line-height: 1.25; }
.checkout-time-option__copy small { color: var(--muted); font-size: 10px; line-height: 1.3; }
.checkout-time-option input:checked + .checkout-time-option__card {
  border-color: var(--ink);
  background: white;
  box-shadow: 0 0 0 1px var(--ink);
}
.checkout-time-option:has(input:focus-visible) { outline: 3px solid rgba(77, 119, 74, 0.2); outline-offset: 2px; border-radius: 14px; }
.checkout-time-option:has(input:disabled) { cursor: default; opacity: 0.5; }
[data-scheduled-field][hidden] { display: none; }
.checkout-schedule-field { min-width: 0; }
.checkout-schedule {
  display: grid;
  gap: 11px;
  overflow: hidden;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.62);
}
.checkout-schedule__lead { margin: 0; font-size: 12px; font-weight: 800; }
.checkout-schedule__dates {
  display: flex;
  gap: 7px;
  margin: 0 -3px;
  padding: 3px;
  overflow-x: auto;
  scrollbar-width: none;
}
.checkout-schedule__dates::-webkit-scrollbar { display: none; }
.checkout-schedule__date,
.checkout-schedule__time {
  border: 1px solid var(--line);
  color: var(--ink);
  background: white;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}
.checkout-schedule__date {
  flex: 0 0 auto;
  min-width: 94px;
  padding: 9px 11px;
  border-radius: 11px;
  font-size: 12px;
  white-space: nowrap;
}
.checkout-schedule__date--active,
.checkout-schedule__time--active {
  border-color: var(--ink);
  background: var(--ink);
  color: white;
  box-shadow: none;
}
.checkout-schedule__heading { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.checkout-schedule__heading strong { font-size: 12px; }
.checkout-schedule__heading span { color: var(--muted); font-size: 10px; text-align: right; }
.checkout-schedule__time-strip { position: relative; min-width: 0; }
.checkout-schedule__times {
  display: flex;
  gap: 7px;
  margin: 0 -3px;
  padding: 3px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  touch-action: pan-x pan-y;
  -webkit-overflow-scrolling: touch;
}
.checkout-schedule__times::-webkit-scrollbar { display: none; }
.checkout-schedule__time {
  min-width: 0;
  min-height: 40px;
  flex: 0 0 calc((100% - 14px) / 3);
  padding: 8px;
  border-radius: 11px;
  font-size: 13px;
  scroll-snap-align: start;
  scroll-snap-stop: normal;
}
.checkout-schedule__time[hidden] { display: none; }
.checkout-schedule--selected .checkout-schedule__times { overflow: hidden; }
.checkout-schedule--selected .checkout-schedule__time:not(.checkout-schedule__time--active) { display: none; }
.checkout-schedule--selected .checkout-schedule__time--active {
  flex-basis: 100%;
  padding-right: 42px;
  text-align: center;
}
.checkout-schedule__clear {
  position: absolute;
  z-index: 2;
  top: 50%;
  right: 7px;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  padding: 0;
  border: 1px solid color-mix(in srgb, currentColor 18%, transparent);
  border-radius: 50%;
  color: inherit;
  background: color-mix(in srgb, currentColor 10%, transparent);
  font: inherit;
  font-size: 0;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
}
.checkout-schedule__clear::before,
.checkout-schedule__clear::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 1.5px;
  border-radius: 99px;
  background: currentColor;
  content: "";
  transform: translate(-50%, -50%) rotate(45deg);
}
.checkout-schedule__clear::after { transform: translate(-50%, -50%) rotate(-45deg); }
.checkout-schedule__clear[hidden] { display: none; }
.checkout-schedule__native {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.profile-link { width: fit-content; padding: 5px 0; border: 0; color: #7b4b18; background: transparent; font: inherit; font-size: 13px; font-weight: 800; text-align: left; }
.profile-return { width: 100%; margin-bottom: 18px; }
.profile-return-note { margin: 0 0 8px; color: var(--muted); font-size: 13px; }
.profile-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 13px;
  align-items: center;
  margin-bottom: 14px;
  padding: 16px;
  border-radius: 20px;
  color: #fff9ef;
  border: 1px solid rgba(255, 222, 126, 0.12);
  background:
    radial-gradient(circle at 100% 0, rgba(232, 75, 44, 0.38), transparent 11rem),
    linear-gradient(145deg, #251812, #4a251b);
  box-shadow: 0 12px 28px rgba(37, 20, 14, 0.2);
}
.profile-hero__avatar { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 16px; color: var(--ink); background: #ffdd76; font-size: 18px; font-weight: 900; }
.profile-hero__copy { display: grid; gap: 2px; min-width: 0; }
.profile-hero__label { color: rgba(255, 249, 239, 0.58); font-size: 10px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.profile-hero__name, .profile-hero__phone { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-hero__name { font-size: 17px; }
.profile-hero__phone { color: rgba(255, 249, 239, 0.72); font-size: 12px; }
.profile-hero__badge { padding: 6px 8px; border: 1px solid rgba(255,255,255,.16); border-radius: 99px; color: rgba(255, 249, 239, 0.82); background: rgba(255,255,255,.08); font-size: 10px; font-weight: 750; white-space: nowrap; }
.profile-form, .profile-address-form { display: grid; gap: 12px; margin-bottom: 24px; }
.profile-data-card, .profile-address-editor__card, .profile-addresses {
  padding: 16px;
  border: 1px solid rgba(255, 222, 126, 0.12);
  border-radius: 22px;
  color: #fff9ef;
  background:
    radial-gradient(circle at 100% 0, rgba(232, 75, 44, 0.2), transparent 12rem),
    linear-gradient(145deg, #251812, #4a251b);
  box-shadow: 0 10px 28px rgba(37, 20, 14, 0.18);
}
.profile-section-heading { display: flex; align-items: center; gap: 11px; min-width: 0; }
.profile-section-heading__icon { display: grid; flex: 0 0 auto; place-items: center; width: 34px; height: 34px; border-radius: 11px; color: #4d2d00; background: linear-gradient(145deg, #ffe58a, #ffc94f); box-shadow: inset 0 0 0 1px rgba(90,54,0,.08); font-size: 16px; }
.profile-section-heading__copy { min-width: 0; }
.profile-section-heading h3 { margin: 0; font-size: 17px; }
.profile-section-heading p { margin: 3px 0 0; color: var(--muted); font-size: 11px; line-height: 1.35; }
.profile-data-card .profile-section-heading p, .profile-addresses .profile-section-heading p, .profile-address-editor__card .profile-section-heading p { color: rgba(255,249,239,.62); }
.profile-field { grid-template-columns: 28px minmax(0, 1fr); gap: 9px; align-items: center; padding: 5px 7px 5px 10px; border: 1px solid rgba(255,255,255,.12); border-radius: 15px; color: #fff9ef; background: rgba(255,255,255,.075); }
.profile-field__icon { display: grid; place-items: center; color: #ffd978; font-size: 15px; }
.profile-field__body { display: grid; min-width: 0; }
.profile-field__label { color: rgba(255,249,239,.58); font-size: 10px; font-weight: 750; }
.profile-field input { min-height: 31px; padding: 2px 0; border: 0; border-radius: 0; color: #fff9ef; background: transparent; font-size: 14px; font-weight: 750; outline: none; color-scheme: dark; }
.profile-field:focus-within { border-color: rgba(255,217,120,.58); box-shadow: 0 0 0 3px rgba(255,217,120,.1); }
.profile-field:has(input:disabled) { opacity: 0.65; background: rgba(0,0,0,.1); }
.profile-save:disabled { cursor: default; opacity: 0.45; }
.profile-support-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; margin: 0 0 24px; padding: 16px; border: 1px solid rgba(255,222,126,.12); border-radius: 20px; color: #fff9ef; background: radial-gradient(circle at 100% 0, rgba(232,75,44,.24), transparent 10rem), linear-gradient(145deg, #251812, #4a251b); box-shadow: 0 10px 28px rgba(37,20,14,.18); }
.profile-support-card__copy { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 2px 10px; align-items: center; min-width: 0; }
.profile-support-card__icon { display: grid; grid-row: 1 / span 2; place-items: center; width: 34px; height: 34px; border-radius: 11px; color: #4d2d00; background: linear-gradient(145deg, #ffe58a, #ffc94f); }
.profile-support-card__copy small { color: rgba(255,249,239,.62); font-size: 10px; line-height: 1.35; }
.profile-support-card__button { padding: 9px 11px; border: 0; border-radius: 11px; color: #4d2d00; background: linear-gradient(145deg, #ffe58a, #ffc94f); font-size: 11px; font-weight: 850; white-space: nowrap; }
.sheet--support { height: min(92vh, 820px); max-height: 92vh; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); overflow-y: auto; background: linear-gradient(180deg, #fffaf2, #f4ede3); }
.support-sheet-heading { display: flex; align-items: center; gap: 12px; margin: 0 46px 15px 2px; }
.support-sheet-heading__icon { display: grid; flex: 0 0 auto; place-items: center; width: 44px; height: 44px; border-radius: 15px; color: white; background: linear-gradient(145deg, #ef5133, #b92f1d); box-shadow: 0 9px 22px rgba(185,47,29,.24); font-size: 20px; }
.support-sheet-heading h2 { margin: 1px 0 2px; font-size: 22px; }
.support-sheet-heading p { margin: 0; color: var(--muted); font-size: 10px; }
#support-content { min-height: calc(min(92vh, 820px) - 104px); }
.customer-support-intro { display: grid; gap: 10px; padding: 18px; border-radius: 21px; color: white; background: radial-gradient(circle at 95% 0, rgba(255,217,120,.34), transparent 9rem), linear-gradient(145deg, #4d251a, #241713); box-shadow: 0 12px 30px rgba(37,20,14,.18); }
.customer-support-intro > strong { font-size: 19px; }
.customer-support-intro > p { margin: 0; color: rgba(255,249,239,.7); font-size: 12px; line-height: 1.45; }
.customer-support-intro__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 4px; }
.customer-support-intro__actions button { min-height: 44px; font-size: 12px; }
.customer-support-primary { background: linear-gradient(145deg, #ff6847, #e84328); }
.customer-support-intro .secondary-button { border-color: rgba(255,255,255,.18); color: white; background: rgba(255,255,255,.09); }
.customer-support-history { display: grid; gap: 8px; margin-top: 15px; }
.customer-support-history__heading { display: flex; align-items: center; justify-content: space-between; padding: 0 3px 3px; }
.customer-support-history__heading strong { font-size: 16px; }
.customer-support-history__heading span { display: grid; min-width: 25px; height: 25px; place-items: center; border-radius: 99px; color: #8f291d; background: #f4dcd4; font-size: 11px; font-weight: 850; }
.customer-support-empty { margin: 0; padding: 24px 16px; border: 1px dashed rgba(74,50,34,.2); border-radius: 17px; color: var(--muted); background: rgba(255,255,255,.52); text-align: center; line-height: 1.45; }
.customer-support-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 11px; width: 100%; padding: 13px; border: 1px solid rgba(74,50,34,.12); border-radius: 17px; color: var(--ink); background: rgba(255,255,255,.8); box-shadow: 0 6px 18px rgba(37,20,14,.055); font: inherit; text-align: left; }
.customer-support-card__icon { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 13px; background: #f5e6d8; font-size: 17px; }
.customer-support-card__copy { display: grid; gap: 3px; min-width: 0; }
.customer-support-card__copy strong, .customer-support-card__copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.customer-support-card__copy strong { font-size: 13px; }
.customer-support-card__copy small, .customer-support-card__copy time { color: var(--muted); font-size: 10px; }
.customer-support-card__side { display: grid; justify-items: end; gap: 6px; }
.customer-support-card__arrow { color: #b83b25; font-size: 23px; line-height: .7; }
.customer-support-status { width: max-content; padding: 5px 8px; border-radius: 99px; font-size: 9px; font-weight: 850; white-space: nowrap; }
.customer-support-status.is-open { color: #8a5a00; background: #fff0c8; }
.customer-support-status.is-answered { color: #176a3b; background: #dff2e4; }
.customer-support-status.is-closed { color: #6e6761; background: #ebe7e3; }
.support-back { margin: 0 0 12px; padding: 7px 2px; border: 0; color: #a63220; background: transparent; font: inherit; font-size: 12px; font-weight: 850; }
.customer-support-compose { display: grid; }
.customer-support-compose__heading { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 3px 10px; margin-bottom: 14px; }
.customer-support-compose__icon { display: grid; grid-row: 1 / span 2; width: 40px; height: 40px; place-items: center; border-radius: 14px; color: white; background: linear-gradient(145deg, #ef5133, #b92f1d); }
.customer-support-compose__heading strong { font-size: 18px; }
.customer-support-compose__heading p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.35; }
.customer-support-compose__form { display: grid; gap: 12px; }
.customer-support-field { display: grid; gap: 7px; color: var(--muted); font-size: 11px; font-weight: 800; }
.customer-support-field select, .customer-support-field textarea { width: 100%; box-sizing: border-box; padding: 13px 14px; border: 1px solid rgba(74,50,34,.16); border-radius: 15px; color: var(--ink); background: rgba(255,255,255,.84); font: inherit; outline: none; }
.customer-support-field textarea { min-height: 128px; resize: vertical; line-height: 1.45; }
.customer-support-field select:focus, .customer-support-field textarea:focus { border-color: #d5452b; box-shadow: 0 0 0 3px rgba(213,69,43,.11); }
.customer-support-submit { width: 100%; }
.customer-support-thread-view { display: grid; min-height: calc(min(92vh, 820px) - 104px); grid-template-rows: auto auto minmax(220px, 1fr) auto; }
.customer-support-thread-overview { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; padding: 12px 13px; border: 1px solid rgba(74,50,34,.12); border-radius: 16px; background: rgba(255,255,255,.72); }
.customer-support-thread-overview__copy { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 2px 9px; min-width: 0; }
.customer-support-thread-overview__icon { display: grid; grid-row: 1 / span 2; width: 35px; height: 35px; place-items: center; border-radius: 12px; background: #f5e6d8; }
.customer-support-thread-overview__copy small { color: var(--muted); font-size: 9px; }
.customer-support-chat { display: flex; flex-direction: column; gap: 9px; min-height: 240px; padding: 13px 8px 18px; overflow-y: auto; border-radius: 19px; background: linear-gradient(rgba(255,255,255,.44), rgba(255,255,255,.44)), radial-gradient(circle at 10px 10px, rgba(74,50,34,.055) 1px, transparent 1px); background-size: auto, 18px 18px; }
.customer-support-message { display: grid; align-self: flex-start; gap: 4px; width: fit-content; max-width: 82%; padding: 10px 12px; border-radius: 16px 16px 16px 5px; background: white; box-shadow: 0 5px 14px rgba(37,20,14,.08); }
.customer-support-message--customer { align-self: flex-end; border-radius: 16px 16px 5px 16px; color: white; background: linear-gradient(145deg, #e64a2f, #b93020); }
.customer-support-message--system { align-self: center; color: var(--muted); background: rgba(255,255,255,.55); box-shadow: none; text-align: center; }
.customer-support-message__author { display: flex; align-items: baseline; gap: 6px; }
.customer-support-message__author strong { font-size: 12px; font-weight: 900; }
.customer-support-message__author small { font-size: 8px; font-weight: 650; opacity: .52; }
.customer-support-message__body { margin: 0; overflow-wrap: anywhere; white-space: pre-wrap; font-size: 13px; line-height: 1.42; }
.customer-support-message__time { justify-self: end; font-size: 8px; opacity: .62; }
.customer-support-chat-controls { position: sticky; bottom: calc(-12px - env(safe-area-inset-bottom)); display: grid; gap: 8px; margin: 0 -16px; padding: 10px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(74,50,34,.1); background: rgba(248,241,231,.96); backdrop-filter: blur(12px); }
.customer-support-chat-form { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: end; gap: 8px; padding: 7px; border: 1px solid rgba(74,50,34,.19); border-radius: 18px; background: white; box-shadow: 0 5px 16px rgba(37,20,14,.06); }
.customer-support-chat-form.is-dragging { border-color: #d5452b; box-shadow: 0 0 0 3px rgba(213,69,43,.12); }
.customer-support-chat-form textarea { width: 100%; min-width: 0; min-height: 42px; max-height: 112px; padding: 10px 0 2px; border: 0; color: var(--ink); background: transparent; font: inherit; resize: none; outline: none; }
.customer-support-attach { display: grid; width: 42px; height: 42px; align-self: end; padding: 0; place-items: center; border: 0; border-radius: 14px; color: #913321; background: #f7e7df; }
.customer-support-attach svg { display: block; width: 21px; height: 21px; }
.customer-support-attach:disabled { opacity: .5; }
.customer-support-send { display: grid; width: 42px; height: 42px; place-items: center; border: 0; border-radius: 14px; color: white; background: linear-gradient(145deg, #ef5133, #b92f1d); font-size: 17px; }
.customer-support-send:disabled { opacity: .5; }
.customer-support-closed-note { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.4; text-align: center; }
.confirmation-dialog {
  width: min(360px, calc(100% - 32px));
  padding: 24px;
  border: 0;
  border-radius: 22px;
  color: var(--ink);
  background: var(--paper);
  box-shadow: var(--shadow);
  text-align: center;
}
.confirmation-dialog::backdrop { background: rgba(23, 19, 15, 0.58); }
.confirmation-dialog__icon { margin-bottom: 8px; font-size: 38px; }
.confirmation-dialog h2 { margin: 0 0 18px; }
.confirmation-dialog p { margin: 12px 0; color: var(--muted); line-height: 1.45; }
.confirmation-dialog strong { display: block; font-size: 22px; }
.confirmation-dialog__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; }
.profile-lock { margin: -7px 0 2px 47px; color: rgba(255,249,239,.58); font-size: 11px; line-height: 1.4; }
.profile-addresses { display: grid; gap: 11px; margin-bottom: 18px; }
.profile-addresses-title { scroll-margin-top: 12px; }
.profile-addresses__heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.profile-addresses__heading > .profile-section-heading { min-width: 0; }
.profile-addresses__add { flex: 0 0 auto; padding: 8px 10px; border: 0; border-radius: 11px; color: #4d2d00; background: linear-gradient(145deg, #ffe58a, #ffc94f); font-size: 11px; font-weight: 850; }
.profile-addresses__empty { margin: 1px 0 0; padding: 15px; border: 1px dashed rgba(255,255,255,.18); border-radius: 15px; color: rgba(255,249,239,.68); background: rgba(255,255,255,.055); font-size: 12px; line-height: 1.5; }
.profile-address-card { display: grid; gap: 10px; padding: 14px; border: 1px solid rgba(255,255,255,.12); border-radius: 16px; color: #fff9ef; background: rgba(255,255,255,.075); }
.profile-address-card p { margin: 0; color: rgba(255,249,239,.7); line-height: 1.4; }
.profile-address-card__heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.profile-address-card__title { display: flex; align-items: center; gap: 8px; min-width: 0; }
.profile-address-card__title strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-address-card__pin { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 9px; color: #4d2d00; background: #ffd66c; font-weight: 900; }
.profile-address-card__badge { padding: 5px 8px; border-radius: 99px; color: #ffe69a; background: rgba(255,217,120,.12); font-size: 10px; font-weight: 850; white-space: nowrap; }
.profile-address-card__address { font-size: 13px; }
.profile-address-card__meta { display: flex; flex-wrap: wrap; gap: 5px; }
.profile-address-card__meta span { padding: 5px 7px; border-radius: 8px; color: rgba(255,249,239,.7); background: rgba(0,0,0,.13); font-size: 10px; font-weight: 700; }
.profile-address-card__comment { padding: 8px 10px; border-radius: 10px; background: rgba(255,217,120,.1); font-size: 11px; }
.profile-address-actions { display: flex; flex-wrap: wrap; gap: 7px; padding-top: 2px; }
.profile-address-action { padding: 7px 9px; border: 0; border-radius: 9px; color: #ffe69a; background: rgba(255,217,120,.1); font-size: 10px; font-weight: 800; }
.profile-address-action--danger { margin-left: auto; color: #ffb4a4; background: rgba(232,75,44,.14); }
.profile-address-editor { display: grid; gap: 15px; }
.profile-address-editor__toolbar { display: flex; align-items: center; gap: 11px; }
.profile-address-editor__back { display: grid; flex: 0 0 auto; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 13px; color: var(--ink); background: var(--card); font-size: 20px; }
.profile-address-editor__heading p { margin-bottom: 2px; }
.profile-address-editor__heading h3 { margin: 0; font-size: 20px; }
.profile-address-form { gap: 13px; margin: 0; }
.profile-address-editor__card { display: grid; gap: 11px; }
.profile-address-editor__card .field { color: rgba(255,249,239,.68); }
.profile-address-editor__card .field input, .profile-address-editor__card .field textarea { border-color: rgba(255,255,255,.12); color: #fff9ef; background: rgba(255,255,255,.075); color-scheme: dark; }
.profile-address-editor__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.profile-default { display: flex; align-items: center; gap: 11px; padding: 13px 14px; border: 1px solid rgba(255,255,255,.12); border-radius: 15px; color: #fff9ef; background: linear-gradient(145deg, #251812, #4a251b); }
.profile-default input { flex: 0 0 auto; width: 20px; height: 20px; accent-color: var(--accent); }
.profile-default__copy { display: grid; gap: 2px; }
.profile-default__copy small { color: rgba(255,249,239,.58); font-size: 10px; font-weight: 500; }
.profile-address-editor__actions { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 9px; }
.loyalty-profile-mount { margin-bottom: 14px; }
.loyalty-card { display: grid; gap: 15px; padding: 17px; overflow: hidden; border: 1px solid rgba(255,222,126,.12); border-radius: 22px; color: #fff9ef; background: radial-gradient(circle at 100% 0, rgba(232,75,44,.2), transparent 12rem), linear-gradient(145deg, #251812, #4a251b); box-shadow: 0 10px 28px rgba(37,20,14,.18); }
.loyalty-card__title { margin: 0; font-size: 18px; }
.loyalty-card--manageable { cursor: pointer; outline: none; }
.loyalty-card--manageable::after {
  padding-top: 13px;
  border-top: 1px solid rgba(255,255,255,.12);
  color: #ffd978;
  content: "⚙️ Управлять бонусной программой";
  font-size: 12px;
  font-weight: 800;
}
.loyalty-card--manageable:focus-visible { box-shadow: 0 0 0 3px rgba(232, 75, 44, 0.22); }
.loyalty-overview { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 10px; }
.loyalty-balance, .loyalty-level { display: grid; align-content: start; gap: 5px; min-width: 0; padding: 14px; border-radius: 15px; background: rgba(23, 19, 15, 0.05); }
.loyalty-balance span, .loyalty-level span, .loyalty-level small { color: var(--muted); font-size: 11px; }
.loyalty-balance strong { overflow-wrap: anywhere; color: var(--accent-dark); font-size: clamp(25px, 8vw, 34px); line-height: 1; }
.loyalty-level strong { overflow-wrap: anywhere; font-size: 17px; }
.loyalty-progress__heading { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; }
.loyalty-progress__heading span { color: var(--accent-dark); font-weight: 850; }
.loyalty-progress { height: 9px; overflow: hidden; border-radius: 99px; background: rgba(23, 19, 15, 0.09); }
.loyalty-progress__fill { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), #ff9c51); }
.loyalty-progress__caption, .loyalty-progress__complete { margin: -8px 0 0; color: var(--muted); font-size: 11px; line-height: 1.4; }
.loyalty-card--disabled { opacity: 0.78; }
.loyalty-rewards { display: grid; gap: 10px; }
.loyalty-rewards__title { margin: 2px 0 0; font-size: 16px; }
.loyalty-rewards__list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.loyalty-reward { display: grid; gap: 5px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, 0.64); }
.loyalty-reward--received { border-color: rgba(23, 107, 58, 0.2); background: rgba(23, 107, 58, 0.06); }
.loyalty-reward__heading { display: flex; justify-content: space-between; gap: 10px; }
.loyalty-reward__heading span { color: var(--accent-dark); font-weight: 800; white-space: nowrap; }
.loyalty-reward__received, .loyalty-reward__progress, .loyalty-reward__remaining, .loyalty-reward__unavailable, .loyalty-rewards__empty { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.loyalty-reward__received { color: #176b3a; font-weight: 750; }
.loyalty-reward__unavailable { color: #8a3529; }
.loyalty-history__title { margin: 2px 0 -4px; font-size: 16px; }
.loyalty-history__heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; min-width: 0; }
.loyalty-history__heading h3 { min-width: 0; overflow-wrap: anywhere; }
.loyalty-history__balance { flex: 0 0 auto; color: #ffd45f; font-size: 12px; white-space: nowrap; }
.loyalty-history__caption { margin: -6px 0 0; color: rgba(255,249,239,.58); font-size: 10px; }
.loyalty-history { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.loyalty-history__item { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 10px; max-width: 100%; padding: 11px; border: 1px solid rgba(255,255,255,.1); border-radius: 14px; background: rgba(255,255,255,.055); }
.loyalty-history__icon { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 12px; font-size: 17px; font-weight: 900; }
.loyalty-history__icon--positive { color: #bdf0c9; background: rgba(67,177,104,.18); }
.loyalty-history__icon--negative { color: #ffc1b5; background: rgba(232,75,44,.18); }
.loyalty-history__amount { align-self: start; color: #ffc1b5; font-size: 15px; white-space: nowrap; }
.loyalty-history__amount--positive { color: #bdf0c9; }
.loyalty-history__detail { display: grid; gap: 3px; min-width: 0; }
.loyalty-history__detail > strong { color: #fff9ef; font-size: 13px; }
.loyalty-history__reason { margin: 0; overflow-wrap: anywhere; color: rgba(255,249,239,.66); font-size: 11px; line-height: 1.4; }
.loyalty-history__date { color: rgba(255,249,239,.48); font-size: 9px; }
.loyalty-history__open { border-color: rgba(255,217,120,.28); color: #fff9ef; }
.loyalty-history-sheet { display: none; width: min(100%, 680px); max-height: min(88vh, 760px); gap: 12px; }
.loyalty-history-sheet[open] { display: grid; animation: loyalty-history-sheet-in 220ms ease-out; }
.loyalty-history-sheet .sheet__close { position: absolute; top: 14px; right: 16px; }
.loyalty-history-sheet__heading { display: flex; align-items: end; justify-content: space-between; gap: 14px; padding: 2px 0 6px; }
.loyalty-history-sheet__copy { display: grid; gap: 4px; min-width: 0; }
.loyalty-history-sheet__copy h2, .loyalty-history-sheet__copy p { margin: 0; }
.loyalty-history-sheet__copy p { color: var(--muted); font-size: 11px; line-height: 1.4; }
.loyalty-history-sheet__balance { color: var(--accent-dark); white-space: nowrap; }
.loyalty-history-sheet .loyalty-history__item { border-color: var(--line); background: var(--card); }
.loyalty-history-sheet .loyalty-history__detail > strong { color: var(--ink); }
.loyalty-history-sheet .loyalty-history__reason,
.loyalty-history-sheet .loyalty-history__date { color: var(--muted); }
.loyalty-history-sheet .loyalty-history__amount--positive { color: #176b3a; }
@keyframes loyalty-history-sheet-in { from { transform: translateY(100%); } to { transform: translateY(0); } }
@media (max-width: 359px) {
  .loyalty-history-sheet__heading { display: grid; gap: 8px; }
  .loyalty-history-sheet__balance { justify-self: start; }
}
.loyalty-history__empty, .loyalty-state { margin: 0; padding: 18px 8px; color: var(--muted); text-align: center; }
.loyalty-state--error { display: grid; gap: 8px; color: #8a3529; }
.loyalty-state--error p { margin: 0; color: var(--muted); }
.loyalty-state--error button { width: 100%; margin-top: 4px; }
.loyalty-widget__header { display: flex; align-items: center; gap: 11px; }
.loyalty-widget__mark { display: grid; flex: 0 0 auto; place-items: center; width: 38px; height: 38px; border-radius: 13px; color: #5a3600; background: linear-gradient(145deg, #ffe58a, #ffc94f); box-shadow: inset 0 0 0 1px rgba(90, 54, 0, 0.08); font-size: 18px; }
.loyalty-widget__heading { display: grid; min-width: 0; gap: 2px; }
.loyalty-widget__subtitle { margin: 0; color: rgba(255,249,239,.6); font-size: 10px; line-height: 1.35; }
.loyalty-widget__overview { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 9px; padding: 6px; border: 1px solid rgba(255,255,255,.1); border-radius: 18px; color: #fffaf1; background: rgba(255,255,255,.055); box-shadow: inset 0 1px 0 rgba(255,255,255,.04); }
.loyalty-widget__balance, .loyalty-widget__level { display: grid; min-width: 0; padding: 12px; }
.loyalty-widget__balance { align-content: space-between; gap: 8px; border-radius: 14px; background: rgba(255, 255, 255, 0.07); }
.loyalty-widget__level { align-content: center; gap: 3px; border-left: 1px solid rgba(255, 255, 255, 0.12); }
.loyalty-widget__label { color: rgba(255, 250, 241, 0.62); font-size: 10px; font-weight: 700; }
.loyalty-widget__balance-value { display: flex; align-items: center; gap: 7px; min-width: 0; }
.loyalty-widget__balance-value strong { overflow-wrap: anywhere; font-size: clamp(27px, 8vw, 34px); line-height: 1; letter-spacing: -0.04em; }
.loyalty-widget__balance-star { color: #ffd45f; font-size: 23px; line-height: 1; }
.loyalty-widget__level-name { overflow-wrap: anywhere; color: #fffaf1; font-size: 17px; }
.loyalty-widget__level-rate { color: #ffd978; font-size: 10px; font-weight: 750; line-height: 1.35; }
.loyalty-widget__progress { display: grid; gap: 8px; padding: 12px 13px; border: 1px solid rgba(255,255,255,.1); border-radius: 15px; background: rgba(255,255,255,.055); }
.loyalty-widget__progress .loyalty-progress { height: 8px; }
.loyalty-widget__progress .loyalty-progress { background: rgba(255,255,255,.14); }
.loyalty-widget__progress .loyalty-progress__heading span, .loyalty-widget__progress .loyalty-progress__heading strong { color: #fff9ef; }
.loyalty-widget__progress-caption { margin: 0; color: rgba(255,249,239,.58); font-size: 10px; line-height: 1.35; }
.loyalty-widget__progress-heading { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; }
.loyalty-widget__progress-heading span { color: var(--accent-dark); font-weight: 850; }
.loyalty-widget__available { color: #ffe69a; font-weight: 750; }
.loyalty-widget__open { width: 100%; min-height: 45px; border-color: rgba(255,217,120,.28); color: #4d2d00; background: linear-gradient(145deg, #ffe58a, #ffc94f); font-weight: 850; }
.loyalty-center { display: grid; gap: 16px; min-width: 0; max-width: 100%; overflow-x: hidden; }
.loyalty-center__overview { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.loyalty-center__metric { display: grid; gap: 5px; min-width: 0; padding: 14px; border-radius: 15px; background: rgba(23, 19, 15, 0.05); }
.loyalty-center__metric span { color: var(--muted); font-size: 11px; }
.loyalty-center__metric strong { overflow-wrap: anywhere; color: var(--accent-dark); font-size: 24px; }
.loyalty-center__section { display: grid; gap: 10px; padding-top: 2px; }
.loyalty-center__section h3 { margin: 0; font-size: 17px; }
.loyalty-center__rules, .loyalty-center__benefits, .loyalty-center__missions { padding: 14px; border-radius: 15px; background: rgba(23, 19, 15, 0.045); }
.loyalty-center__enrollment { padding: 14px; border-radius: 15px; background: rgba(23, 19, 15, 0.045); }
.loyalty-center__enrollment .primary-button, .loyalty-center__enrollment .secondary-button { box-sizing: border-box; width: 100%; text-align: center; }
.loyalty-center__rule-list { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.loyalty-center__rule { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 7px; align-items: start; color: var(--text); font-size: 13px; line-height: 1.45; }
.loyalty-center__rule-icon { width: 22px; text-align: center; }
.loyalty-center__rule-note, .loyalty-center__benefits p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.loyalty-center__missions .loyalty-state { padding: 8px 0 2px; text-align: left; }
.loyalty-missions { display: grid; gap: 9px; }
.loyalty-mission { display: grid; gap: 8px; padding: 13px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, 0.7); }
.loyalty-mission--available { border-color: rgba(214, 137, 22, 0.45); background: rgba(214, 137, 22, 0.08); }
.loyalty-mission--claimed { border-color: rgba(23, 107, 58, 0.2); background: rgba(23, 107, 58, 0.06); }
.loyalty-mission__heading { display: flex; align-items: start; justify-content: space-between; gap: 10px; }
.loyalty-mission__heading span { color: var(--accent-dark); font-weight: 800; white-space: nowrap; }
.loyalty-mission__description, .loyalty-mission__progress, .loyalty-mission__remaining, .loyalty-mission__deadline { margin: 0; overflow-wrap: anywhere; color: var(--muted); font-size: 12px; line-height: 1.45; }
.loyalty-mission__claim { width: 100%; }
.loyalty-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  padding: 4px;
  border-radius: 13px;
  background: rgba(23, 19, 15, 0.055);
}
.loyalty-tab {
  min-width: 0;
  min-height: 38px;
  padding: 7px 5px;
  border: 0;
  border-radius: 10px;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
}
.loyalty-tab--active {
  color: var(--accent-dark);
  background: var(--card);
  box-shadow: 0 3px 10px rgba(37, 25, 12, 0.08);
}
.loyalty-tab-panel { display: grid; gap: 8px; }
.loyalty-offer-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
}
.loyalty-offer-card__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 62px;
  padding: 11px 12px;
  cursor: pointer;
  list-style: none;
}
.loyalty-offer-card__summary::-webkit-details-marker { display: none; }
.loyalty-offer-card__copy { display: grid; min-width: 0; gap: 3px; }
.loyalty-offer-card__title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.loyalty-offer-card__description {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.loyalty-offer-card__period { color: var(--muted); font-size: 11px; }
.loyalty-offer-card__chevron {
  flex: 0 0 auto;
  color: var(--accent-dark);
  font-size: 25px;
  line-height: 1;
  transition: transform 160ms ease;
}
.loyalty-offer-card[open] .loyalty-offer-card__chevron { transform: rotate(90deg); }
.crm-admin-shell {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: hidden;
  color: var(--tg-theme-text-color, var(--ink));
}
.crm-admin-shell,
.crm-admin-shell * { min-width: 0; }
.crm-admin-shell button { appearance: none; }
.crm-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}
.crm-heading__copy { min-width: 0; }
.crm-heading > .crm-back { margin: 0; }
.crm-heading h2,
.crm-card__title,
.crm-menu-card strong {
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: auto;
}
.crm-admin-menu {
  width: 100%;
  grid-template-columns: minmax(0, 1fr);
}
.crm-menu-card {
  width: 100%;
  min-height: 76px;
  grid-template-columns: 38px minmax(0, 1fr);
  padding: 14px;
  border-color: var(--tg-theme-section-separator-color, var(--line));
  color: var(--tg-theme-text-color, var(--ink));
  background: var(--tg-theme-section-bg-color, var(--card));
  appearance: none;
}
.crm-menu-card__icon { font-size: 25px; }
.crm-menu-card__copy { display: grid; gap: 4px; }
.crm-menu-card__copy strong { font-size: 14px; line-height: 1.3; }
.crm-menu-card__copy small {
  color: var(--tg-theme-hint-color, var(--muted));
  font-size: 11px;
  line-height: 1.4;
}
.crm-toolbar {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}
.crm-toolbar button { width: 100%; }
.crm-back { display: block; margin: 0 0 16px auto; }
.crm-toolbar .crm-back { width: auto; margin: 0 0 0 auto; }
.crm-card-list { width: 100%; }
.crm-card {
  display: grid;
  width: 100%;
  max-width: 100%;
  gap: 13px;
  color: var(--tg-theme-text-color, var(--ink));
  background: var(--tg-theme-section-bg-color, var(--card));
}
.crm-card .secondary-button { width: 100%; }
.crm-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.crm-card__meta span {
  padding: 5px 8px;
  border-radius: 99px;
  color: var(--tg-theme-hint-color, var(--muted));
  background: var(--tg-theme-secondary-bg-color, rgba(23, 19, 15, 0.06));
  font-size: 10px;
  font-weight: 750;
}
.crm-campaign-toolbar { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.crm-campaign-toolbar select { width: 100%; }
.crm-campaign-notice {
  display: grid;
  width: 100%;
  gap: 4px;
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-color: color-mix(in srgb, var(--accent) 34%, var(--line));
  border-radius: 15px;
  background: var(--card);
  background: color-mix(in srgb, var(--accent-soft) 72%, var(--card));
  font-size: 12px;
  line-height: 1.45;
}
.crm-campaign-notice p,
.crm-campaign-execution-note { margin: 0; }
.crm-campaign-card__header,
.crm-campaign-card__copy { width: 100%; }
.crm-campaign-card__copy { display: grid; gap: 8px; }
.crm-campaign-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.crm-source-badge {
  display: inline-flex;
  max-width: 100%;
  padding: 5px 8px;
  border-radius: 999px;
  color: var(--tg-theme-text-color, var(--ink));
  background: var(--tg-theme-secondary-bg-color, rgba(23, 19, 15, 0.07));
  font-size: 10px;
  font-weight: 800;
  overflow-wrap: anywhere;
}
.crm-source-badge--campaign_v1 { color: #2f5f42; background: #ddf4e4; }
.crm-campaign-meta { display: grid; width: 100%; gap: 8px; margin: 0; }
.crm-campaign-meta__row {
  display: grid;
  grid-template-columns: minmax(78px, 0.35fr) minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}
.crm-campaign-meta dt {
  color: var(--tg-theme-hint-color, var(--muted));
  font-size: 11px;
  font-weight: 750;
}
.crm-campaign-meta dd {
  margin: 0;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.crm-campaign-definition {
  min-width: 0;
}

.crm-definition-json {
  max-width: 100%;
  overflow-x: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.crm-campaign-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.crm-campaign-actions button { width: 100%; }
.crm-campaign-execution-note {
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--tg-theme-hint-color, var(--muted));
  background: var(--tg-theme-secondary-bg-color, rgba(23, 19, 15, 0.06));
  font-size: 11px;
  line-height: 1.45;
}
.crm-form {
  width: 100%;
  max-width: 100%;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}
.crm-form > * { grid-column: 1 / -1; }
.crm-form-section {
  display: grid;
  width: 100%;
  gap: 12px;
  padding: 15px;
  border: 1px solid var(--tg-theme-section-separator-color, var(--line));
  border-radius: 17px;
  color: var(--tg-theme-text-color, var(--ink));
  background: var(--tg-theme-section-bg-color, var(--card));
}
.crm-form-section__heading {
  display: flex;
  align-items: center;
  gap: 10px;
}
.crm-form-section__heading h3 { margin: 0; font-size: 16px; }
.crm-form-section__description {
  margin: -4px 0 1px;
  color: var(--tg-theme-hint-color, var(--muted));
  font-size: 12px;
  line-height: 1.45;
}
.crm-step {
  display: inline-grid;
  width: 27px;
  height: 27px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: var(--tg-theme-button-text-color, white);
  background: var(--tg-theme-button-color, var(--accent));
  font-size: 12px;
  font-weight: 900;
}
.crm-field {
  width: 100%;
  gap: 7px;
}
.crm-field > input,
.crm-field > select,
.crm-field > textarea,
.crm-target-fields input,
.crm-target-fields select {
  width: 100%;
  max-width: 100%;
  min-height: 46px;
  border-color: var(--tg-theme-section-separator-color, var(--line));
  color: var(--tg-theme-text-color, var(--ink));
  background: var(--tg-theme-bg-color, var(--card));
}
.crm-field > textarea { resize: vertical; }
.crm-field__hint {
  margin: 0;
  color: var(--tg-theme-hint-color, var(--muted));
  font-size: 11px;
  line-height: 1.4;
}
.crm-check {
  width: 100%;
  align-items: flex-start;
  color: var(--tg-theme-text-color, var(--ink));
  background: var(--tg-theme-bg-color, transparent);
}
.crm-check__copy { display: grid; gap: 3px; }
.crm-check__copy strong { font-size: 13px; line-height: 1.3; }
.crm-check__copy small {
  color: var(--tg-theme-hint-color, var(--muted));
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
}

.crm-choice-list {
  display: grid;
  width: 100%;
  gap: 6px;
}

.crm-choice-row {
  display: grid;
  width: 100%;
  min-width: 0;
  min-height: 48px;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, .72);
  cursor: pointer;
  box-sizing: border-box;
}

.crm-choice-row:has(input:checked) {
  border-color: var(--accent);
  background: rgba(255, 123, 52, .1);
}

.crm-choice-row input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  accent-color: var(--accent);
}

.crm-choice-row__copy {
  display: grid;
  min-width: 0;
  gap: 2px;
  overflow-wrap: anywhere;
}
.crm-choice-row__copy strong {
  font-size: 13px;
  line-height: 1.3;
}
.crm-choice-row__copy small {
  color: var(--tg-theme-hint-color, var(--muted));
  font-size: 11px;
  line-height: 1.35;
}

.crm-product-picker {
  display: grid;
  width: 100%;
  min-width: 0;
  gap: 8px;
}

.crm-product-picker__toggle {
  width: 100%;
  min-height: 46px;
  justify-content: space-between;
  overflow-wrap: anywhere;
  text-align: left;
}

.crm-product-picker__toggle::after {
  content: "⌄";
  flex: 0 0 auto;
  margin-left: 8px;
}

.crm-product-picker__toggle[aria-expanded="true"]::after { content: "⌃"; }

.crm-product-picker__panel {
  display: grid;
  min-width: 0;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--tg-theme-bg-color, var(--card));
}

.crm-product-picker__panel[hidden] { display: none; }

.crm-product-picker__panel > input {
  width: 100%;
  min-height: 44px;
}

.crm-product-picker__options {
  display: grid;
  max-height: min(240px, 42vh);
  gap: 6px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.crm-product-picker__option {
  width: 100%;
  min-height: 44px;
  justify-content: flex-start;
  overflow-wrap: anywhere;
  text-align: left;
}

.crm-product-picker__option[aria-selected="true"] {
  border-color: var(--accent);
  background: rgba(255, 123, 52, .1);
}

.crm-product-picker__empty {
  margin: 4px 2px;
  color: var(--tg-theme-hint-color, var(--muted));
  font-size: 12px;
}

.crm-optional-settings {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, .58);
  padding: 0 13px;
}

.crm-optional-settings[open] {
  padding-bottom: 13px;
}

.crm-optional-settings__summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  padding: 13px 0;
}

.crm-optional-settings > .crm-field,
.crm-optional-settings > .crm-check {
  margin-top: 10px;
}

.crm-condition-list { display: grid; gap: 10px; }
.crm-condition-group {
  display: grid;
  min-width: 0;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(183, 105, 45, .24);
  border-left: 4px solid var(--accent, #b7692d);
  border-radius: 14px;
  background: rgba(255, 248, 239, .58);
}
.crm-condition-group__header {
  display: grid;
  grid-template-columns: minmax(100px, 1fr) minmax(180px, 1fr) auto;
  align-items: center;
  gap: 8px;
}
.crm-condition-group__children { display: grid; min-width: 0; gap: 10px; }
.crm-condition-group__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.crm-segment-comparison {
  display: grid;
  min-width: 0;
  gap: 14px;
}
.crm-segment-comparison__snapshot {
  display: grid;
  min-width: 0;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, .52);
}
.crm-condition {
  display: grid;
  width: 100%;
  gap: 12px;
  padding: 13px;
  border-radius: 14px;
  background: var(--tg-theme-secondary-bg-color, rgba(23, 19, 15, 0.045));
}
.crm-segment-preview {
  display: grid;
  gap: 6px;
  min-width: 0;
}
.crm-segment-preview strong {
  font-size: 15px;
}
.crm-segment-preview__customers {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}
.crm-segment-preview__customer {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
  color: var(--ink);
  font-size: 11px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.crm-segment-preview__customer:is(button) {
  width: auto;
  border: 1px solid color-mix(in srgb, var(--accent) 24%, transparent);
  color: var(--tg-theme-text-color, var(--ink));
  cursor: pointer;
}
.crm-segment-preview__customer:is(button)::after {
  content: "Почему?";
  margin-left: 6px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.crm-segment-explanation {
  display: grid;
  min-width: 0;
  gap: 8px;
  margin-top: 8px;
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  border-radius: 14px;
  background: color-mix(in srgb, var(--accent) 7%, var(--card));
}
.crm-segment-explanation[hidden] { display: none; }
.crm-segment-explanation__rows { display: grid; gap: 6px; }
.crm-segment-explanation__row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 4px 8px;
  min-width: 0;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--tg-theme-section-bg-color, rgba(255, 255, 255, .7));
}
.crm-segment-explanation__row small {
  grid-column: 2;
  overflow-wrap: anywhere;
  color: var(--tg-theme-hint-color, var(--muted));
}
.crm-segment-explanation__row--depth-1 { margin-left: 10px; }
.crm-segment-explanation__row--depth-2 { margin-left: 20px; }
.crm-segment-explanation__row--depth-3,
.crm-segment-explanation__row--depth-4 { margin-left: 30px; }
.crm-segment-explanation__status {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  min-height: 24px;
  padding: 2px 7px;
  border-radius: 999px;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}
.crm-segment-explanation__status--matched { background: #2b7a4b; }
.crm-segment-explanation__status--missed { background: #a74235; }
.crm-multi-picker {
  gap: 6px;
}
.crm-multi-picker__select {
  width: 100%;
  min-height: 172px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--tg-theme-bg-color, var(--card));
  color: var(--tg-theme-text-color, var(--ink));
}
.crm-multi-picker__summary {
  color: var(--tg-theme-hint-color, var(--muted));
  font-size: 11px;
  line-height: 1.35;
}
.crm-condition__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.crm-condition__fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.crm-condition__fields > :first-child,
.crm-condition__fields > .crm-check { grid-column: 1 / -1; }
.crm-icon-button {
  min-height: 36px;
  padding: 7px 10px;
  border: 1px solid rgba(167, 45, 29, 0.28);
  border-radius: 10px;
  color: #a72d1d;
  background: transparent;
  font-size: 11px;
  font-weight: 800;
  appearance: none;
}
.crm-add-condition { width: 100%; }
.crm-inline-empty {
  margin: 0;
  padding: 14px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  color: var(--tg-theme-hint-color, var(--muted));
  text-align: center;
  font-size: 12px;
}
.crm-debug {
  padding-top: 4px;
  color: var(--tg-theme-hint-color, var(--muted));
  font-size: 11px;
}
.crm-debug summary { cursor: pointer; }
.crm-json-editor {
  width: 100%;
  min-height: 190px;
  margin-top: 9px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--tg-theme-text-color, var(--ink));
  background: var(--tg-theme-bg-color, var(--card));
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 11px;
}
.crm-target-fields { display: grid; width: 100%; gap: 10px; }
.crm-targeted-offer-form,
.crm-targeted-offer-form *,
.crm-targeted-preview { min-width: 0; max-width: 100%; box-sizing: border-box; }
.crm-targeted-offer-form select[multiple] { min-height: 156px; overflow-x: hidden; }
.crm-targeted-offer-form textarea { resize: vertical; overflow-wrap: anywhere; }
.crm-targeted-preview { display: grid; gap: 5px; overflow: hidden; }
.crm-targeted-preview p { margin: 0; overflow-wrap: anywhere; }
.crm-card-actions {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.crm-card-actions button { width: 100%; min-width: 0; }
.crm-assignment-details {
  display: grid;
  min-width: 0;
  gap: 5px;
  color: var(--tg-theme-hint-color, var(--muted));
  font-size: 12px;
  overflow-wrap: anywhere;
}
.crm-danger-action {
  width: 100%;
  border-color: rgba(167, 45, 29, .28);
  color: #a72d1d;
}
.crm-search-row {
  display: grid;
  width: 100%;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}
.crm-search-row .secondary-button { min-width: 82px; }
.crm-offer-summary {
  display: grid;
  gap: 5px;
  padding: 13px;
  border-radius: 13px;
  color: var(--tg-theme-text-color, var(--ink));
  background: var(--tg-theme-secondary-bg-color, rgba(214, 137, 22, 0.1));
}
.crm-offer-summary p {
  margin: 0;
  color: var(--tg-theme-hint-color, var(--muted));
  font-size: 12px;
  line-height: 1.45;
}
.crm-form-actions {
  width: 100%;
  margin-top: 0;
}
.crm-form-actions button {
  width: 100%;
  min-height: 48px;
  border-radius: 13px;
  appearance: none;
}
.crm-state {
  display: grid;
  width: 100%;
  justify-items: center;
  gap: 9px;
  padding: 30px 18px;
  border: 1px solid var(--tg-theme-section-separator-color, var(--line));
  border-radius: 17px;
  color: var(--tg-theme-hint-color, var(--muted));
  background: var(--tg-theme-section-bg-color, var(--card));
  text-align: center;
}
.crm-state p { max-width: 280px; margin: 0; line-height: 1.45; }
.crm-state__icon { font-size: 34px; }
.crm-state__spinner {
  width: 28px;
  height: 28px;
  border: 3px solid var(--line);
  border-top-color: var(--tg-theme-button-color, var(--accent));
  border-radius: 50%;
  animation: crm-spin 800ms linear infinite;
}
.crm-state--error { color: #8a2f22; }
.crm-state--error .primary-button { width: min(210px, 100%); }
.crm-metrics { width: 100%; }
@keyframes crm-spin { to { transform: rotate(360deg); } }
.loyalty-offer-card__detail {
  display: grid;
  gap: 10px;
  padding: 0 12px 12px;
  border-top: 1px solid var(--line);
}
.loyalty-offer-card__full-description,
.loyalty-offer-card__meta { margin: 10px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.loyalty-offer-detail h4 { margin: 0 0 5px; font-size: 13px; }
.loyalty-offer-detail ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.loyalty-promocode {
  margin-top: 10px;
  padding: 9px 11px;
  border-radius: 10px;
  color: var(--accent-dark);
  background: rgba(214, 137, 22, 0.1);
  font-size: 16px;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-align: center;
}
.loyalty-promocode__copy { width: 100%; }
.loyalty-history-group { display: grid; gap: 4px; }
.loyalty-history-group__title { margin: 4px 0 0; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; }
.loyalty-reconciliation__issues { display: grid; gap: 6px; margin: 0; padding-left: 20px; overflow-wrap: anywhere; }
.loyalty-center__more { width: 100%; }
.loyalty-center__history-sentinel { display: block; width: 100%; height: 1px; }
.save-address-offer { display: grid; gap: 12px; margin-top: 20px; padding: 15px; border-radius: 15px; background: rgba(37, 131, 75, 0.08); }
.order-success { padding: 34px 8px; text-align: center; }
.order-success__icon { display: grid; width: 72px; height: 72px; margin: 0 auto 18px; place-items: center; border-radius: 50%; color: white; background: #25834b; font-size: 34px; }
.order-success p { color: var(--muted); line-height: 1.5; }
.empty-state { padding: 40px 12px; text-align: center; color: var(--muted); }
.empty-state span { display: block; margin-bottom: 12px; font-size: 44px; }

.hero__actions {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: flex-end;
  flex: 0 0 auto;
  gap: 9px;
  overflow: visible;
}

.navigation-sheet { overflow-x: visible; }
.navigation-menu { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.navigation-menu__item {
  position: relative;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  min-width: 0;
  min-height: 58px;
  align-items: center;
  gap: 9px;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 15px;
  color: var(--ink);
  background: var(--card);
  text-align: left;
}
.navigation-menu__item > span:first-child { font-size: 21px; text-align: center; }
.navigation-menu__item strong { overflow-wrap: anywhere; font-size: 13px; }
.navigation-menu__copy { display: grid; min-width: 0; gap: 3px; }
.navigation-menu__copy small { color: var(--muted); font-size: 10px; line-height: 1.35; }
.navigation-menu__staff-entry { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.navigation-menu__item--staff { width: 100%; grid-template-columns: 30px minmax(0, 1fr) auto; }
.navigation-menu__badges { display: flex; align-items: center; gap: 5px; }
.navigation-menu__item--staff .cart-count,
.navigation-menu__item--staff .staff-communication-count {
  position: static;
  display: grid;
  min-width: 23px;
  height: 23px;
  place-items: center;
  padding: 0 6px;
  border: 0;
  line-height: 1;
}
.navigation-menu__badge {
  position: absolute;
  top: 6px;
  right: 6px;
  min-width: 21px;
  height: 21px;
  padding: 2px 6px;
  border-radius: 99px;
  color: white;
  background: var(--accent);
  font-size: 11px;
  font-weight: 800;
  line-height: 17px;
  text-align: center;
}
[hidden] { display: none !important; }
.order-card { margin-bottom: 14px; padding: 17px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); box-shadow: 0 7px 22px rgba(37, 25, 12, 0.06); }
.order-card--terminal { opacity: 0.76; }
.order-card__heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.order-card__heading > div { display: grid; gap: 5px; }
.order-card__toggle { display: flex; width: 100%; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 0; border: 0; color: inherit; background: transparent; text-align: left; font: inherit; }
.order-card__toggle > div { display: grid; gap: 5px; }
.order-card__side { display: flex; align-items: center; gap: 10px; }
.order-card__arrow { display: inline-grid; width: 24px; height: 24px; place-items: center; border-radius: 50%; color: var(--muted); background: rgba(23, 19, 15, 0.07); font-size: 20px; transition: transform 180ms ease; }
.order-card__toggle[aria-expanded="true"] .order-card__arrow { transform: rotate(180deg); }
.order-card__status { color: #25834b; font-size: 13px; font-weight: 800; }
.order-card__detail { margin: 12px 0 15px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.order-card__hint { margin: 8px 0 0; color: var(--muted); font-size: 11px; line-height: 1.4; }
.repeat-preview { display: grid; gap: 9px; padding: 13px; border-radius: 14px; background: rgba(23, 19, 15, 0.045); }
.repeat-preview__title { margin-top: 3px; font-size: 13px; }
.repeat-preview__list { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.repeat-preview__list li { display: flex; justify-content: space-between; gap: 12px; }
.repeat-preview__list small { color: var(--muted); text-align: right; }
.repeat-preview__actions { display: grid; gap: 8px; margin-top: 4px; }
.repeat-preview--empty { justify-items: stretch; padding: 18px; text-align: center; background: rgba(214, 137, 22, 0.09); }
.repeat-preview__icon { font-size: 30px; }
.repeat-preview__empty-title { font-size: 15px; }
.repeat-preview__empty-message { margin: 3px 0 7px; font-size: 13px; font-weight: 700; }
.order-card__expanded, .order-details { display: grid; gap: 9px; margin-top: 7px; padding-top: 14px; border-top: 1px solid var(--line); }
.order-card__review { margin-top: 3px; }
.order-card__review-summary { display: grid; gap: 5px; padding: 12px; border-radius: 14px; color: #fff8ed; background: linear-gradient(135deg, #3a1e15, #6b2b1c); }
.order-card__review-summary span { font-size: 12px; }
.order-card__review-summary p { margin: 4px 0 0; padding-top: 8px; border-top: 1px solid rgba(255,255,255,.18); font-size: 12px; line-height: 1.45; }
.order-card__review-response { display: grid; gap: 5px; margin-top: 4px; padding-top: 8px; border-top: 1px solid rgba(255,255,255,.18); }
.order-card__review-response-author { display: flex; align-items: baseline; gap: 6px; }
.order-card__review-response-author strong { font-size: 13px; font-weight: 900; }
.order-card__review-response-author small { font-size: 8px; font-weight: 650; opacity: .5; }
.order-card__review-response p { margin: 0; padding: 0; border: 0; }
.order-review-dialog { width: min(100%, 520px); max-width: none; margin: auto 0 0; padding: 0; border: 0; border-radius: 24px 24px 0 0; color: var(--ink); background: var(--card); }
.order-review-dialog::backdrop { background: rgba(23, 19, 15, 0.62); backdrop-filter: blur(2px); }
.order-review { display: grid; max-height: min(88dvh, 760px); overflow: hidden; }
.order-review__header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 20px 20px 15px; border-bottom: 1px solid var(--line); }
.order-review__header > div { display: grid; gap: 4px; }
.order-review__header strong { font-size: 19px; }
.order-review__header p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.4; }
.order-review__close { display: grid; width: 36px; height: 36px; flex: 0 0 auto; place-items: center; padding: 0; border: 0; border-radius: 50%; color: var(--ink); background: rgba(23,19,15,.06); font-size: 24px; }
.order-review__content { display: grid; gap: 19px; padding: 18px 20px; overflow-y: auto; overscroll-behavior: contain; }
.order-review__rating, .order-review__tags { display: grid; gap: 9px; }
.order-review__stars { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; }
.order-review__star { min-height: 49px; padding: 4px; border: 1px solid var(--line); border-radius: 13px; color: #d4cdc4; background: #f6f2ed; font-size: 30px; line-height: 1; }
.order-review__star.is-selected { border-color: #e4a11b; color: #f4b72f; background: #fff7df; transform: translateY(-1px); }
.order-review__chips { display: flex; flex-wrap: wrap; gap: 7px; }
.order-review__chip { min-height: 38px; padding: 8px 11px; border: 1px solid var(--line); border-radius: 99px; color: var(--ink); background: var(--card); font-size: 12px; font-weight: 750; }
.order-review__chip.is-selected { border-color: #f04b2f; color: #9e2d1c; background: #fff0eb; }
.order-review__comment { width: 100%; min-height: 88px; padding: 12px; resize: vertical; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); background: #fbf9f6; font: inherit; }
.order-review__error { min-height: 16px; margin: 0; padding: 0 20px; color: #a72d1d; font-size: 12px; }
.order-review__submit { margin: 0 20px max(18px, env(safe-area-inset-bottom)); }
.order-history-pagination { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; margin-top: 18px; text-align: center; }
.order-history-pagination button:last-child { justify-self: stretch; }
.order-history-pagination button:disabled { opacity: 0.45; }
.order-detail-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 12px; }
.order-detail-row strong { max-width: 66%; color: var(--ink); text-align: right; font-size: 12px; }
.order-progress { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin: 7px 0 16px; overflow: hidden; }
.order-progress__item { position: relative; display: grid; justify-items: center; gap: 6px; min-width: 0; text-align: center; }
.order-progress__item::before { position: absolute; z-index: 0; top: 6px; right: 50%; left: -50%; border-top: 2px solid var(--line); content: ""; }
.order-progress__item:first-child::before { display: none; }
.order-progress__dot { position: relative; z-index: 1; width: 14px; height: 14px; border: 2px solid var(--line); border-radius: 50%; background: var(--card); }
.order-progress__item.is-active::before { border-color: #25834b; }
.order-progress__item.is-active .order-progress__dot { border-color: #25834b; background: #25834b; }
.order-progress__item small { overflow: hidden; color: var(--muted); font-size: 8px; text-overflow: ellipsis; }
.order-progress--failed .order-progress__dot { border-color: #a72d1d; }
.danger-button { width: 100%; min-height: 46px; padding: 11px 15px; border: 1px solid #a72d1d; border-radius: 13px; color: #a72d1d; background: transparent; font-weight: 800; }
.staff-order-card { margin-bottom: 14px; padding: 17px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); box-shadow: 0 7px 22px rgba(37, 25, 12, 0.06); }
.staff-order-lines { display: grid; gap: 5px; margin: 14px 0; padding: 12px 12px 12px 30px; border-radius: 12px; background: rgba(23, 19, 15, 0.045); font-size: 13px; }
.staff-order-line { padding-block: 3px; }
.staff-order-modifiers { display: grid; gap: 3px; margin-top: 5px; padding-left: 18px; color: var(--muted); font-size: 12px; }
.staff-order-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-top: 15px; }
.staff-order-actions > :only-child { grid-column: 1 / -1; }
.staff-order-action--edit { grid-column: 1 / -1; }
.staff-order-item-editor { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin-top: 12px; }
.staff-order-item-editor > *, .staff-order-editor > * { grid-column: 1 / -1; }
.staff-order-item-editor__lines { display: grid; gap: 12px; }
.staff-order-item-editor__line { display: grid; grid-template-columns: minmax(0, 1fr) 130px; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 15px; background: rgba(23, 19, 15, .035); }
.staff-order-item-editor__heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; }
.staff-order-item-editor__quantity { margin: 0; }
.staff-order-item-editor__modifiers { display: flex; grid-column: 1 / -1; flex-wrap: wrap; gap: 8px; min-width: 0; margin: 0; padding: 10px; border: 1px solid var(--line); border-radius: 12px; }
.staff-order-item-editor__modifiers legend { padding: 0 5px; font-size: 11px; font-weight: 850; }
.staff-order-item-editor__option { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 8px 10px; border-radius: 10px; background: var(--card); font-size: 12px; cursor: pointer; }
.staff-order-item-editor__option input { width: 17px; height: 17px; margin: 0; accent-color: var(--accent); }
.staff-order-item-editor__remove { grid-column: 1 / -1; width: auto; justify-self: start; }
.staff-order-item-editor__add { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 9px; }
.staff-order-item-editor__add select { min-width: 0; }
.staff-order-item-editor__add button { width: auto; white-space: nowrap; }
@media (max-width: 620px) {
  .staff-order-item-editor__line { grid-template-columns: 1fr; }
  .staff-order-item-editor__quantity, .staff-order-item-editor__modifiers, .staff-order-item-editor__remove { grid-column: 1; }
  .staff-order-item-editor__add { grid-template-columns: 1fr; }
  .staff-order-item-editor__add button, .staff-order-item-editor__remove { width: 100%; }
}
.staff-toolbar { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 16px; }
.staff-toolbar .is-active { color: white; background: var(--ink); }
.staff-toolbar input { grid-column: 1 / -1; width: 100%; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: var(--card); font: inherit; }
.staff-toolbar > #staff-journal-date { grid-column: 1 / -1; }
.staff-journal-shortcuts { display: flex; grid-column: 1 / -1; gap: 8px; }
.staff-journal-shortcuts[hidden] { display: none; }
.staff-journal-shortcuts button { width: auto; min-height: 38px; padding: 8px 13px; }
.staff-order-search { position: relative; display: flex; grid-column: 1; align-items: center; }
.staff-order-search__icon { position: absolute; z-index: 1; top: 50%; left: 14px; display: grid; width: 18px; height: 18px; color: #8e7d71; pointer-events: none; transform: translateY(-50%); }
.staff-order-search__icon svg { display: block; width: 100%; height: 100%; overflow: visible; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; }
.staff-toolbar .staff-order-search input { grid-column: auto; padding-left: 40px; }
.staff-toolbar > select { min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: var(--card); font: inherit; }
.staff-order-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.staff-order-metric { display: grid; gap: 3px; padding: 12px 14px; border: 1px solid rgba(74,50,34,.1); border-radius: 14px; background: #fffaf5; }
.staff-order-metric small { color: #877468; font-size: 10px; font-weight: 750; }
.staff-order-metric strong { color: #2b211a; font-size: 18px; }
.staff-orders-workbench { display: grid; grid-template-columns: minmax(680px, 1.25fr) minmax(520px, 1fr); align-items: start; gap: 16px; }
.staff-order-board { display: grid; max-height: clamp(380px, calc(100vh - 300px), 760px); grid-template-columns: repeat(4, minmax(185px, 1fr)); align-items: start; gap: 10px; overflow: auto; padding: 0 5px 22px 0; scrollbar-gutter: stable; }
.staff-order-column { min-height: 180px; padding: 9px; border: 1px solid rgba(74,50,34,.1); border-radius: 17px; background: #f4f0eb; }
.staff-order-column__heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 5px 10px; }
.staff-order-column__heading > strong { font-size: 13px; }
.staff-order-column__heading > span { display: grid; min-width: 24px; height: 24px; place-items: center; padding: 0 7px; border-radius: 99px; color: #753428; background: #f7dcd2; font-size: 10px; font-weight: 900; }
.staff-order-column--new .staff-order-column__heading > span { color: #8b4d12; background: #ffebc8; }
.staff-order-column--ready .staff-order-column__heading > span { color: #17633a; background: #dceddf; }
.staff-order-column__list { display: grid; gap: 8px; }
.staff-order-column__empty { margin: 0; padding: 24px 8px; color: #9b8e84; text-align: center; font-size: 11px; }
.staff-order-summary { display: grid; width: 100%; gap: 7px; padding: 12px; border: 1px solid transparent; border-radius: 13px; color: #2b211a; background: #fff; box-shadow: 0 5px 14px rgba(42,26,16,.045); text-align: left; cursor: pointer; transition: 150ms ease; }
.staff-order-summary:hover, .staff-order-summary.is-selected { border-color: #ef9e8a; box-shadow: 0 8px 19px rgba(152,50,31,.11); transform: translateY(-1px); }
.staff-order-summary.is-selected { background: #fff5ef; }
.staff-order-summary__heading, .staff-order-summary__meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.staff-order-summary__number { color: #2b211a; font-size: 15px; }
.staff-order-summary__total { color: #b53220; font-size: 15px; font-weight: 900; white-space: nowrap; }
.staff-order-summary__status { width: fit-content; padding: 4px 7px; border-radius: 99px; color: #96500f; background: #fff0cf; font-size: 9px; font-weight: 900; }
.staff-order-summary--ready .staff-order-summary__status, .staff-order-summary--awaiting_pickup .staff-order-summary__status, .staff-order-summary--completed .staff-order-summary__status { color: #17633a; background: #dff1e4; }
.staff-order-summary--rejected .staff-order-summary__status, .staff-order-summary--cancelled_by_customer .staff-order-summary__status, .staff-order-summary--cancelled_by_store .staff-order-summary__status { color: #9d2b1d; background: #fde1da; }
.staff-order-summary__meta { color: #76675d; font-size: 10px; }
.staff-order-summary__meta strong { color: #4b392e; font-size: 10px; }
.staff-order-summary__customer { display: grid; gap: 2px; padding-top: 6px; border-top: 1px solid rgba(74,50,34,.08); }
.staff-order-summary__customer strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.staff-order-summary__customer span { color: #8a786c; font-size: 9px; }
.staff-order-summary__open { color: #b53220; font-size: 10px; font-weight: 850; }
.staff-order-detail-panel { position: sticky; top: 12px; min-width: 0; max-height: clamp(380px, calc(100vh - 300px), 760px); overflow-y: auto; padding: 0 5px 22px 0; scrollbar-gutter: stable; }
.staff-orders-workbench:has(.staff-order-detail-panel.is-editing) { grid-template-columns: minmax(560px, .9fr) minmax(680px, 1.1fr); }
.staff-order-detail { margin: 0; padding: 18px; border-color: rgba(74,50,34,.12); border-radius: 20px; box-shadow: 0 12px 30px rgba(48,29,17,.08); }
.staff-order-detail--editing { padding: 20px; }
.staff-order-detail--editing > h3 { margin-bottom: 4px; font-size: 20px; }
.staff-order-detail__heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.staff-order-detail__title { display: grid; gap: 4px; }
.staff-order-detail__eyebrow { color: #b53220; font-size: 8px; font-weight: 900; letter-spacing: .14em; }
.staff-order-detail__title > strong { font-size: 20px; }
.staff-order-detail__status { width: fit-content; color: #227044; font-size: 11px; font-weight: 900; }
.staff-order-detail--pending_confirmation .staff-order-detail__status, .staff-order-detail--needs_clarification .staff-order-detail__status { color: #9b570d; }
.staff-order-detail--cancelled_by_customer .staff-order-detail__status, .staff-order-detail--cancelled_by_store .staff-order-detail__status, .staff-order-detail--rejected .staff-order-detail__status { color: #a72d1d; }
.staff-order-detail__total { color: #b53220; font-size: 21px; font-weight: 900; white-space: nowrap; }
.staff-order-key-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin-top: 14px; }
.staff-order-key-fact { display: grid; gap: 3px; padding: 9px; border-radius: 11px; background: #f6f1ec; }
.staff-order-key-fact small { color: #89766a; font-size: 8px; font-weight: 750; }
.staff-order-key-fact strong { color: #35261d; font-size: 10px; overflow-wrap: anywhere; }
.staff-order-customer-comment { display: grid; gap: 5px; margin-top: 12px; padding: 12px 14px; border-left: 4px solid #e84b2c; border-radius: 0 12px 12px 0; color: #3e2b20; background: #fff0e9; }
.staff-order-customer-comment span { color: #a63a26; font-size: 8px; font-weight: 900; letter-spacing: .12em; }
.staff-order-customer-comment strong { font-size: 12px; line-height: 1.45; overflow-wrap: anywhere; }
.staff-order-detail--editing .staff-order-item-editor__line { grid-template-columns: minmax(0, 1fr) 120px auto; align-items: end; }
.staff-order-detail--editing .staff-order-item-editor__modifiers { grid-column: 1 / -1; }
.staff-order-detail--editing .staff-order-item-editor__remove { grid-column: 3; grid-row: 1; width: auto; min-height: 48px; align-self: end; }
.staff-order-detail__details { display: grid; grid-template-columns: minmax(0, 1fr); gap: 7px; }
.staff-order-detail__details .order-detail-row { padding-bottom: 6px; border-bottom: 1px solid rgba(74,50,34,.07); }
.staff-order-detail__details .order-detail-row strong { color: #34251d; font-weight: 850; }
.staff-journal-list { display: grid; gap: 8px; }
.staff-orders-workbench.is-journal { grid-template-columns: minmax(500px, .85fr) minmax(560px, 1.15fr); }
.staff-journal-list .staff-order-summary { grid-template-columns: 80px minmax(110px, .7fr) minmax(150px, 1.3fr) auto; align-items: center; gap: 8px; }
.staff-journal-list .staff-order-summary__heading { display: contents; }
.staff-journal-list .staff-order-summary__status { grid-column: 2; grid-row: 1; }
.staff-journal-list .staff-order-summary__meta { grid-column: 3; grid-row: 1; }
.staff-journal-list .staff-order-summary__customer { grid-column: 3; grid-row: 2; padding: 0; border: 0; }
.staff-journal-list .staff-order-summary__total { grid-column: 4; grid-row: 1; }
.staff-journal-list .staff-order-summary__open { grid-column: 4; grid-row: 2; text-align: right; }
.staff-orders-empty { margin-top: 8px; }
@media (max-width: 1180px) {
  .staff-orders-workbench, .staff-orders-workbench.is-journal { grid-template-columns: minmax(0, 1fr); }
  .staff-order-board, .staff-order-detail-panel { max-height: none; overflow: visible; padding-right: 0; scrollbar-gutter: auto; }
  .staff-order-detail-panel { position: static; }
  .staff-order-detail--editing .staff-order-item-editor__line { grid-template-columns: minmax(0, 1fr) 120px; }
  .staff-order-detail--editing .staff-order-item-editor__remove { grid-column: 1 / -1; grid-row: auto; width: 100%; }
}
@media (max-width: 720px) {
  .staff-toolbar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .staff-order-search, .staff-toolbar > select { grid-column: 1 / -1; }
  .staff-order-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .staff-order-board { grid-template-columns: minmax(250px, 1fr); overflow: visible; }
  .staff-order-column { min-height: 0; }
  .staff-order-key-facts { grid-template-columns: minmax(0, 1fr); }
  .staff-order-detail--editing .staff-order-item-editor__line { grid-template-columns: minmax(0, 1fr); }
  .staff-order-detail--editing .staff-order-item-editor__quantity,
  .staff-order-detail--editing .staff-order-item-editor__modifiers,
  .staff-order-detail--editing .staff-order-item-editor__remove { grid-column: 1; }
  .staff-journal-list .staff-order-summary { grid-template-columns: minmax(0, 1fr) auto; }
  .staff-journal-list .staff-order-summary__heading { display: flex; grid-column: 1 / -1; }
  .staff-journal-list .staff-order-summary__status, .staff-journal-list .staff-order-summary__meta,
  .staff-journal-list .staff-order-summary__customer, .staff-journal-list .staff-order-summary__total,
  .staff-journal-list .staff-order-summary__open { grid-column: auto; grid-row: auto; }
  .staff-journal-list .staff-order-summary__total { display: none; }
}
#staff-content { padding-bottom: max(28px, env(safe-area-inset-bottom)); }
.clarification-button { grid-column: 1 / -1; }
.clarification-button:disabled { color: var(--muted); background: rgba(23, 19, 15, 0.08); border-color: transparent; cursor: not-allowed; opacity: 1; }

@media (min-width: 1400px) and (min-height: 720px) {
  .staff-orders-workbench {
    grid-template-columns: minmax(770px, 1.35fr) minmax(550px, 1fr);
    gap: 20px;
  }

  .staff-order-board {
    max-height: none;
    grid-template-columns: repeat(4, minmax(190px, 1fr));
    gap: 12px;
    overflow: visible;
    padding-right: 0;
    padding-bottom: 12px;
    scrollbar-gutter: auto;
  }

  .staff-order-column { padding: 10px; }
  .staff-order-column__heading { padding: 5px 6px 12px; }
  .staff-order-column__heading > strong { font-size: 15px; }
  .staff-order-column__heading > span { min-width: 28px; height: 28px; font-size: 12px; }
  .staff-order-column__list { gap: 10px; }
  .staff-order-summary { gap: 8px; padding: 13px; }
  .staff-order-summary__number, .staff-order-summary__total { font-size: 17px; }
  .staff-order-summary__status { max-width: 100%; padding: 5px 8px; font-size: 10px; line-height: 1.25; }
  .staff-order-board .staff-order-summary__meta {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    align-items: start;
    gap: 8px;
    line-height: 1.25;
  }
  .staff-order-summary__meta, .staff-order-summary__meta strong { font-size: 11px; }
  .staff-order-board .staff-order-summary__meta > span { min-width: 0; text-align: right; overflow-wrap: anywhere; }
  .staff-order-summary__customer { gap: 3px; padding-top: 8px; line-height: 1.25; }
  .staff-order-summary__customer strong { font-size: 13px; line-height: 1.25; }
  .staff-order-summary__customer span { font-size: 10px; line-height: 1.3; }
  .staff-order-summary__open { font-size: 12px; }

  .staff-order-detail-panel {
    position: sticky;
    top: 12px;
    max-height: none;
    overflow: visible;
    padding-right: 0;
    padding-bottom: 0;
    scrollbar-gutter: auto;
  }

  .staff-order-detail {
    display: flex;
    min-height: min(640px, calc(100vh - 112px));
    flex-direction: column;
    padding: 20px;
  }
  .staff-order-detail__title { gap: 4px; }
  .staff-order-detail__eyebrow { font-size: 10px; }
  .staff-order-detail__title > strong { font-size: 24px; }
  .staff-order-detail__status { font-size: 13px; }
  .staff-order-detail__total { font-size: 26px; }
  .staff-order-key-facts { gap: 8px; margin-top: 13px; }
  .staff-order-key-fact { gap: 3px; padding: 10px 12px; }
  .staff-order-key-fact small { font-size: 11px; font-weight: 850; }
  .staff-order-key-fact strong { font-size: 15px; line-height: 1.3; }
  .staff-order-key-fact--customer-id small { color: #705b4e; font-size: 11px; font-weight: 900; }
  .staff-order-key-fact--customer-id strong { color: #211710; font-size: 16px; font-weight: 950; letter-spacing: .015em; }
  .staff-order-lines { gap: 4px; margin: 10px 0; padding: 10px 12px 10px 32px; font-size: 14px; }
  .staff-order-line { padding-block: 2px; }
  .staff-order-detail__details { flex: 1; grid-auto-rows: minmax(32px, 1fr); gap: 0; }
  .staff-order-detail__details .order-detail-row { align-items: center; padding: 5px 0; font-size: 15px; line-height: 1.4; }
  .staff-order-detail__details .order-detail-row strong { font-size: 15px; }
  .staff-order-actions { gap: 8px; margin-top: 12px; padding-top: 0; }
  .staff-order-actions :is(.primary-button, .secondary-button, .danger-button) { min-height: 46px; padding: 10px 13px; font-size: 15px; }
}

.admin-workspace { min-height: min(88vh, 780px); }
#admin-workspace-dialog {
  color: var(--ink);
  background: var(--tg-theme-bg-color, var(--paper));
}
.loyalty-admin-menu { margin-top: 12px; }
.admin-page-heading { display: flex; flex-wrap: wrap; min-width: 0; align-items: center; justify-content: space-between; gap: 14px; margin: 4px 0 18px; }
.admin-page-heading > * { min-width: 0; max-width: 100%; }
.admin-page-heading h2 { margin: 0; }
.admin-page-heading--list-actions { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
.admin-page-heading--list-actions > .admin-list-toolbar { grid-column: 1 / -1; }
.admin-page-heading__actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.admin-page-heading__actions > :only-child { grid-column: 1 / -1; }
.admin-button { width: auto; min-height: 44px; }
.admin-back-button {
  display: inline-grid;
  width: auto;
  min-width: 84px;
  min-height: 44px;
  align-self: center;
  flex: 0 0 auto;
  padding: 10px 16px;
  place-items: center;
  line-height: 1;
  white-space: nowrap;
}
.admin-filter { display: grid; grid-template-columns: minmax(0, 1fr) minmax(140px, 0.55fr) auto; gap: 8px; margin-bottom: 16px; }
.admin-filter input, .admin-filter select, .admin-field input, .admin-field select, .admin-field textarea {
  width: 100%; min-width: 0; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: var(--card); font: inherit;
}
.admin-field textarea { resize: vertical; }
.admin-card-list { display: grid; gap: 12px; }
.broadcast-audience { display: grid; grid-column: 1 / -1; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 18px; background: #fffaf4; }
.broadcast-audience-types { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.broadcast-audience-option { display: flex; align-items: center; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); font-weight: 700; cursor: pointer; }
.broadcast-audience-option:has(input:checked) { border-color: var(--accent); background: #fff0eb; }
.broadcast-audience-panel { display: grid; gap: 10px; }
.broadcast-composer-field { grid-column: 1 / -1; width: min(100%, 820px); }
.broadcast-composer { overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--card); transition: border-color .18s ease, box-shadow .18s ease; }
.broadcast-composer:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(225, 145, 0, .12); }
.admin-field .broadcast-composer > textarea { display: block; width: 100%; min-height: 104px; max-height: 180px; padding: 14px 15px 10px; border: 0; border-radius: 0; background: transparent; line-height: 1.45; resize: vertical; outline: 0; box-shadow: none; }
.broadcast-composer__toolbar { display: flex; min-height: 48px; align-items: center; gap: 10px; padding: 8px 10px; border-top: 1px solid var(--line); }
.broadcast-composer__attach { display: inline-flex; min-height: 34px; align-items: center; padding: 7px 11px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: rgba(23, 19, 15, .035); font-size: 12px; font-weight: 800; cursor: pointer; white-space: nowrap; }
.broadcast-composer__attach:hover { border-color: var(--accent); background: rgba(225, 145, 0, .08); }
.broadcast-composer__file-input { position: absolute; width: 1px !important; height: 1px; min-height: 0 !important; overflow: hidden; padding: 0 !important; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.broadcast-composer__hint { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.broadcast-composer__preview { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 10px; margin: 0 10px 10px; padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: rgba(23, 19, 15, .035); }
.broadcast-composer__preview[hidden] { display: none; }
.broadcast-composer__preview img { width: 48px; height: 48px; object-fit: cover; border-radius: 9px; }
.broadcast-composer__file-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: 12px; font-weight: 750; white-space: nowrap; }
.broadcast-composer__remove { min-height: 34px; padding: 6px 9px; border: 0; border-radius: 9px; color: #9d2e1e; background: transparent; font: inherit; font-size: 11px; font-weight: 800; cursor: pointer; }
.broadcast-customer-search { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.broadcast-customer-results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; max-height: 280px; overflow: auto; }
.broadcast-customer-option { display: grid; grid-template-columns: auto 1fr; gap: 2px 8px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.broadcast-customer-option input { grid-row: 1 / span 2; }
.broadcast-preview { padding: 12px 14px; border-radius: 12px; background: #f2efeb; }
.broadcast-preview.is-ready { color: #185b31; background: #e7f4e9; }
.broadcast-preview.is-empty { color: #9d2e1e; background: #fbe9e5; }
.broadcast-delivery-grid { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 4px; font-size: 13px; color: var(--muted); }
.broadcast-history-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.broadcast-history-tabs .is-active { border-color: var(--ink); color: white; background: var(--ink); }
.broadcast-lifecycle-actions { margin-top: 4px; }
@media (max-width: 680px) {
  .broadcast-audience-types, .broadcast-customer-results { grid-template-columns: 1fr; }
  .broadcast-customer-search { grid-template-columns: 1fr; }
  .broadcast-composer-field { grid-column: auto; }
  .broadcast-composer__hint { white-space: normal; }
}

/* v187: communication workspace — careful visual refresh around the existing workflows. */
.communications-workspace-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(150px, 44%) minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  margin: 0 0 16px;
  padding: 12px;
  overflow: hidden;
  border: 1px solid #ead8cc;
  border-radius: 22px;
  background: linear-gradient(135deg, #fff9f3 0%, #f7dfd3 100%);
  box-shadow: 0 12px 30px rgba(78, 44, 27, .07);
}
.communications-workspace-hero::after {
  position: absolute;
  right: -36px;
  bottom: -64px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: rgba(225, 89, 59, .08);
  content: "";
  pointer-events: none;
}
.communications-workspace-hero img {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 112px;
  max-height: 160px;
  object-fit: cover;
  border-radius: 16px;
}

/* v198: blend the illustration into the hero instead of showing its pale bitmap rectangle. */
.communications-workspace-hero img {
  mix-blend-mode: multiply;
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 84%, transparent 100%);
  mask-image: linear-gradient(90deg, #000 0%, #000 84%, transparent 100%);
}
.communications-workspace-hero__copy { position: relative; z-index: 1; display: grid; gap: 7px; min-width: 0; }
.communications-workspace-hero__eyebrow { color: #b74731; font-size: 9px; font-weight: 900; letter-spacing: .18em; }
.communications-workspace-hero__copy strong { color: #30231c; font-size: clamp(18px, 4vw, 24px); line-height: 1.12; }
.communications-workspace-hero__copy small { color: #75665b; font-size: 11px; line-height: 1.45; }
.workspace-content.communications-admin-menu .workspace-home-heading { margin-bottom: 13px; }
.workspace-content.communications-admin-menu .workspace-section-cards { grid-template-columns: minmax(0, 1fr); gap: 10px; }
.workspace-content.communications-admin-menu .workspace-section-card {
  grid-template-columns: 58px minmax(0, 1fr) 28px;
  grid-template-rows: auto auto;
  align-items: center;
  min-height: 96px;
  gap: 3px 13px;
  padding: 13px 14px;
  border-radius: 19px;
  background: linear-gradient(145deg, #fffefa, #fffaf6);
  box-shadow: 0 8px 22px rgba(65, 39, 23, .05);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.workspace-content.communications-admin-menu .workspace-section-card::after {
  grid-column: 3;
  grid-row: 1 / 3;
  align-self: center;
  color: #a28f83;
  content: "›";
  font-size: 28px;
  font-weight: 350;
}
.workspace-content.communications-admin-menu .workspace-section-card:hover,
.workspace-content.communications-admin-menu .workspace-section-card:focus-visible {
  border-color: #e9b6a8;
  box-shadow: 0 13px 28px rgba(78, 44, 27, .09);
  transform: translateY(-2px);
}
.workspace-content.communications-admin-menu .workspace-section-card__icon {
  display: grid;
  grid-column: 1;
  grid-row: 1 / 3;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 1px solid #efd9cc;
  border-radius: 17px;
  background: linear-gradient(145deg, #fff8f1, #f7e1d4);
  box-shadow: inset 0 1px rgba(255,255,255,.85), 0 6px 14px rgba(92,49,25,.08);
}
.workspace-content.communications-admin-menu .workspace-section-card__icon .dimensional-icon { width: 39px; height: 39px; }
.workspace-content.communications-admin-menu .workspace-section-card > strong { grid-column: 2; align-self: end; font-size: 16px; line-height: 1.2; }
.workspace-content.communications-admin-menu .workspace-section-card > small { grid-column: 2; align-self: start; font-size: 11px; line-height: 1.4; }
.workspace-content.communications-admin-menu .workspace-attention-badge { top: 9px; right: 10px; z-index: 2; }

.workspace-content:has(> .communication-page-heading) { color-scheme: light; }
.communication-page-heading {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  margin: 2px 0 16px;
  padding: 14px;
  border: 1px solid #ead8cc;
  border-radius: 21px;
  background: linear-gradient(135deg, #fff9f3, #f5dfd4);
  box-shadow: 0 10px 28px rgba(66, 38, 24, .055);
}
.communication-page-heading__icon {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 1px solid rgba(226, 94, 61, .18);
  border-radius: 17px;
  background: rgba(255,255,255,.7);
  box-shadow: 0 7px 16px rgba(79,43,24,.07);
}
.communication-page-heading__icon .dimensional-icon { width: 40px; height: 40px; }
.communication-page-heading__copy { display: grid; min-width: 0; gap: 4px; }
.communication-page-heading__copy :is(p, h2) { margin: 0; }
.communication-page-heading__copy h2 { color: #30231c; font-size: clamp(20px, 5vw, 28px); line-height: 1.08; }
.communication-page-heading__copy > p:last-child { color: #75665b; font-size: 11px; line-height: 1.42; }
.communication-page-heading .admin-back-button { width: auto; min-width: 82px; min-height: 44px; }

.communication-form {
  margin-bottom: 18px;
  padding: 14px;
  border: 1px solid #eadfd7;
  border-radius: 20px;
  background: rgba(255,253,249,.78);
  box-shadow: 0 9px 26px rgba(53,33,22,.045);
}
.communication-form > .broadcast-audience {
  border-color: #ead8cc;
  border-radius: 17px;
  background: #fffdfa;
}
.broadcast-history-tabs { padding: 4px; border: 1px solid #eadfd7; border-radius: 16px; background: #f7f1ec; }
.broadcast-history-tabs .secondary-button { border-color: transparent; background: transparent; box-shadow: none; }
.broadcast-history-tabs .secondary-button.is-active { color: #fff; background: #2c211c; }
.support-inbox__metric, .review-inbox__metric {
  border: 1px solid #eee2da;
  background: linear-gradient(145deg, #fffefa, #faf4ee);
  box-shadow: 0 5px 14px rgba(58,35,22,.035);
}
.support-inbox__metric dd, .review-inbox__metric dd { color: #3a2921; }
.support-inbox__tabs, .review-inbox__tabs { padding: 4px; border: 1px solid #eadfd7; border-radius: 16px; background: #f7f1ec; }
.support-inbox__tabs .secondary-button, .review-inbox__tabs .secondary-button { min-height: 42px; border-color: transparent; background: transparent; box-shadow: none; }
.support-inbox__tabs .is-active, .review-inbox__tabs .is-active { border-color: transparent; background: #2c211c; box-shadow: 0 5px 13px rgba(31,20,15,.16); }
.support-card, .review-card { border-radius: 19px; box-shadow: 0 8px 22px rgba(52,32,21,.045); }
.support-card > .primary-button { justify-self: stretch; }
.review-rating-stars { color: #d89216; font-family: Georgia, "Times New Roman", serif; font-size: 1em; letter-spacing: .04em; }
.review-card__rating-line { display: inline-flex; align-items: center; gap: 4px; }

@media (max-width: 620px) {
  .communications-workspace-hero { grid-template-columns: 124px minmax(0, 1fr); gap: 11px; padding: 10px; }
  .communications-workspace-hero img { min-height: 102px; }
  .communications-workspace-hero__copy small { font-size: 10px; }
  .communication-page-heading { grid-template-columns: 52px minmax(0, 1fr) auto; gap: 10px; padding: 12px; }
  .communication-page-heading__icon { width: 52px; height: 52px; }
  .communication-page-heading__icon .dimensional-icon { width: 36px; height: 36px; }
  .communication-page-heading .admin-back-button { min-width: 70px; padding-inline: 11px; }
  .communication-form { grid-template-columns: minmax(0, 1fr); padding: 11px; }
  .communication-form > * { grid-column: 1; }
}

@media (max-width: 390px) {
  .communications-workspace-hero { grid-template-columns: minmax(0, 1fr); }
  .communications-workspace-hero img { width: 100%; height: 118px; min-height: 0; }
  .communication-page-heading { grid-template-columns: 48px minmax(0, 1fr); }
  .communication-page-heading__icon { width: 48px; height: 48px; }
  .communication-page-heading .admin-back-button { grid-column: 1 / -1; width: 100%; }
}
.admin-card { padding: 16px; border: 1px solid var(--line); border-radius: 17px; background: var(--card); box-shadow: 0 6px 18px rgba(37, 25, 12, 0.05); }
.quantity-promotion-limit__form { display: grid; gap: 16px; margin-top: 16px; }
.quantity-promotion-limit__form > .admin-button { justify-self: start; width: auto; margin: 0; }
.admin-card--disabled { color: var(--muted); background: rgba(23, 19, 15, 0.035); box-shadow: none; }
.admin-card--disabled p { margin: 7px 0 0; font-size: 12px; line-height: 1.45; }
.admin-card__header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.admin-card__header > div { display: grid; gap: 5px; min-width: 0; }
.promotion-campaign-card { display: grid; gap: 13px; padding: 17px; }
.promotion-campaign-card__header { align-items: start; }
.promotion-campaign-card__title { gap: 6px !important; }
.promotion-campaign-card__title > strong { overflow-wrap: anywhere; font-size: 17px; line-height: 1.2; }
.promotion-campaign-card__reward { color: var(--accent-dark); font-size: 14px; font-weight: 850; line-height: 1.3; }
.promotion-campaign-card__period { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.4; }
.promotion-campaign-card__metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; }
.promotion-campaign-card__metric { display: grid; gap: 3px; min-width: 0; padding: 10px; border-radius: 12px; background: rgba(23, 19, 15, 0.045); }
.promotion-campaign-card__metric dt { color: var(--muted); font-size: 10px; }
.promotion-campaign-card__metric dd { margin: 0; overflow-wrap: anywhere; font-size: 14px; font-weight: 850; }
.promotion-campaign-card__footer { display: grid; gap: 9px; padding-top: 1px; }
.promotion-campaign-card__version { color: var(--muted); font-size: 9px; }
.promotion-campaign-card__actions { display: grid; grid-template-columns: minmax(0, 1fr) 46px; gap: 8px; }
.promotion-campaign-card__actions--single { grid-template-columns: minmax(0, 1fr); }
.promotion-campaign-card__open { min-height: 46px; }
.promotion-campaign-menu { position: relative; min-width: 0; }
.promotion-campaign-menu__toggle { display: grid; place-items: center; min-height: 46px; border: 1px solid var(--line); border-radius: 13px; color: var(--ink); background: var(--card); cursor: pointer; font-size: 25px; font-weight: 900; line-height: 1; list-style: none; }
.promotion-campaign-menu__toggle::-webkit-details-marker { display: none; }
.promotion-campaign-menu[open] .promotion-campaign-menu__toggle { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.promotion-campaign-menu__items { position: absolute; z-index: 12; right: 0; top: calc(100% + 6px); display: grid; width: min(220px, calc(100vw - 56px)); overflow: hidden; padding: 5px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); box-shadow: 0 16px 34px rgba(23, 19, 15, 0.2); }
.promotion-campaign-menu__action { width: 100%; min-height: 41px; padding: 9px 11px; border: 0; border-radius: 10px; color: var(--ink); background: transparent; font-size: 12px; font-weight: 800; text-align: left; }
.promotion-campaign-menu__action:active { background: rgba(23, 19, 15, 0.06); }
.promotion-campaign-menu__action--danger { color: #9d2f21; }
.promotion-code-card { display: grid; gap: 13px; padding: 17px; }
.promotion-code-card__header { align-items: start; }
.promotion-code-card__title { gap: 6px !important; }
.promotion-code-card__title > strong { overflow-wrap: anywhere; font-size: 17px; line-height: 1.2; }
.promotion-code-card__reward { color: var(--accent-dark); font-size: 14px; font-weight: 850; line-height: 1.3; }
.promotion-code-card__period { margin: 0; overflow-wrap: anywhere; color: var(--muted); font-size: 11px; line-height: 1.4; }
.promotion-code-card__metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; }
.promotion-code-card__metric { display: grid; align-content: start; gap: 3px; min-width: 0; padding: 10px; border-radius: 12px; background: rgba(23, 19, 15, 0.045); }
.promotion-code-card__metric dt { color: var(--muted); font-size: 10px; }
.promotion-code-card__metric dd { margin: 0; overflow-wrap: anywhere; font-size: 14px; font-weight: 850; }
.promotion-code-card__footer { display: grid; gap: 9px; padding-top: 1px; }
.promotion-code-card__actions { display: grid; grid-template-columns: minmax(0, 1fr) 46px; gap: 8px; }
.promotion-code-card__open { min-height: 46px; white-space: nowrap; font-size: 12px; }
.promotion-code-menu { position: relative; min-width: 0; }
.promotion-code-menu__toggle { display: grid; place-items: center; min-height: 46px; border: 1px solid var(--line); border-radius: 13px; color: var(--ink); background: var(--card); cursor: pointer; font-size: 25px; font-weight: 900; line-height: 1; list-style: none; }
.promotion-code-menu__toggle::-webkit-details-marker { display: none; }
.promotion-code-menu[open] .promotion-code-menu__toggle { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.promotion-code-menu__items { position: absolute; z-index: 12; right: 0; top: calc(100% + 6px); display: grid; width: min(220px, calc(100vw - 56px)); overflow: hidden; padding: 5px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); box-shadow: 0 16px 34px rgba(23, 19, 15, 0.2); }
.promotion-code-menu__action { width: 100%; min-height: 41px; padding: 9px 11px; border: 0; border-radius: 10px; color: var(--ink); background: transparent; font-size: 12px; font-weight: 800; text-align: left; }
.promotion-code-menu__action:active { background: rgba(23, 19, 15, 0.06); }
.promotion-code-menu__action--danger { color: #9d2f21; }
.loyalty-admin-card { display: grid; gap: 13px; padding: 17px; }
.loyalty-admin-card__header { align-items: start; }
.loyalty-admin-card__title { gap: 6px !important; }
.loyalty-admin-card__title > strong { overflow-wrap: anywhere; font-size: 17px; line-height: 1.2; }
.loyalty-admin-card__reward { color: var(--accent-dark); font-size: 14px; font-weight: 850; line-height: 1.3; }
.loyalty-admin-card__period,
.loyalty-admin-card__description { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.loyalty-admin-card__description { font-size: 12px; }
.loyalty-admin-card__metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0; }
.loyalty-admin-card__metric { display: grid; align-content: start; gap: 3px; min-width: 0; padding: 10px; border-radius: 12px; background: rgba(23, 19, 15, 0.045); }
.loyalty-admin-card__metric:last-child:nth-child(odd) { grid-column: 1 / -1; }
.loyalty-admin-card__metric dt { color: var(--muted); font-size: 10px; }
.loyalty-admin-card__metric dd { margin: 0; overflow-wrap: anywhere; font-size: 14px; font-weight: 850; }
.loyalty-admin-card__footer { display: grid; gap: 9px; padding-top: 1px; }
.loyalty-admin-card__meta { color: var(--muted); font-size: 9px; }
.loyalty-admin-card__actions { display: grid; grid-template-columns: minmax(0, 1fr) 46px; gap: 8px; }
.loyalty-admin-card__actions--single { grid-template-columns: minmax(0, 1fr); }
.loyalty-admin-card__open { min-height: 46px; }
.loyalty-admin-menu { position: relative; min-width: 0; }
.loyalty-admin-menu__toggle { display: grid; place-items: center; min-height: 46px; border: 1px solid var(--line); border-radius: 13px; color: var(--ink); background: var(--card); cursor: pointer; font-size: 25px; font-weight: 900; line-height: 1; list-style: none; }
.loyalty-admin-menu__toggle::-webkit-details-marker { display: none; }
.loyalty-admin-menu[open] .loyalty-admin-menu__toggle { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.loyalty-admin-menu__items { position: absolute; z-index: 12; right: 0; top: calc(100% + 6px); display: grid; width: min(220px, calc(100vw - 56px)); overflow: hidden; padding: 5px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); box-shadow: 0 16px 34px rgba(23, 19, 15, 0.2); }
.loyalty-admin-menu__action { width: 100%; min-height: 41px; padding: 9px 11px; border: 0; border-radius: 10px; color: var(--ink); background: transparent; font-size: 12px; font-weight: 800; text-align: left; }
.loyalty-admin-menu__action:active { background: rgba(23, 19, 15, 0.06); }
.loyalty-admin-menu__action--danger { color: #9d2f21; }
.admin-code { width: fit-content; max-width: 100%; overflow-wrap: anywhere; color: var(--muted); }
.admin-status { padding: 5px 8px; border-radius: 99px; color: var(--muted); background: rgba(23, 19, 15, 0.07); font-size: 10px; font-weight: 900; text-transform: uppercase; }
.admin-status--active { color: #176b3a; background: rgba(37, 131, 75, 0.12); }
.admin-status--inactive, .admin-status--expired, .admin-status--exhausted { color: #8a3529; background: rgba(167, 45, 29, 0.1); }
.admin-status--scheduled { color: #85590f; background: rgba(214, 137, 22, 0.13); }
.admin-details { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px 14px; margin: 15px 0 0; font-size: 12px; }
.admin-details dt { color: var(--muted); }
.admin-details dd { margin: 0; text-align: right; font-weight: 750; }
.admin-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 15px; }
.admin-actions .danger-button, .admin-actions .primary-button, .admin-actions .secondary-button { min-height: 44px; }
.admin-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.admin-field { display: grid; align-content: start; gap: 6px; }
.admin-field__label { color: var(--muted); font-size: 12px; font-weight: 750; line-height: 1.35; }
.company-form-section {
  grid-column: 1 / -1;
  min-width: 0;
  margin: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--card);
}
.company-form-section__title { padding: 0 6px; font-size: 15px; font-weight: 850; }
.company-form-section__description { margin: 0 0 14px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.company-form-section__fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.company-form-section__fields > .admin-field:only-child,
.company-form-section__fields > .admin-field:last-child:nth-child(odd),
.company-form-section__fields > .company-links-editor { grid-column: 1 / -1; }
.company-links-editor { display: grid; gap: 10px; padding-top: 2px; }
.company-links-editor__rows { display: grid; gap: 9px; }
.company-link-row { display: grid; grid-template-columns: minmax(150px, 0.7fr) minmax(0, 1.3fr) 44px; align-items: end; gap: 8px; }
.company-link-row__remove { width: 44px; min-width: 44px; min-height: 44px; padding: 0; font-size: 22px; line-height: 1; }
.company-links-editor__add { width: fit-content; min-height: 44px; }
.admin-mission-period-fields, .admin-mission-schedule {
  grid-column: 1 / -1;
}
.admin-mission-schedule {
  min-width: 0;
  margin: 0;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.admin-mission-schedule > legend { padding: 0 5px; }
.admin-check { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; font-size: 13px; font-weight: 750; }
.admin-check input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); }
.admin-form > .admin-actions, .admin-form > .admin-button, .admin-form > .admin-notice { grid-column: 1 / -1; }
.notification-template-field { min-width: 0; }
.notification-template-field textarea { min-height: 92px; }
.review-inbox__summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0 0 12px; }
.support-inbox__summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 0 0 12px; }
.support-inbox__metric { display: grid; gap: 4px; min-width: 0; padding: 12px; border-radius: 14px; background: rgba(23,19,15,.045); }
.support-inbox__metric dt { color: var(--muted); font-size: 10px; }
.support-inbox__metric dd { margin: 0; font-size: 20px; font-weight: 900; }
.support-inbox__tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.support-inbox__tabs .is-active { border-color: var(--ink); color: white; background: var(--ink); }
.support-archive-filter { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin: 0 0 14px; padding: 13px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,253,249,.72); }
.support-archive-filter__actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 8px; }
.support-archive-filter__actions button { width: auto; min-width: 120px; }
.support-card { display: grid; gap: 10px; }
.support-card__header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.support-card__identity { display: grid; gap: 2px; min-width: 0; }
.support-card__category { width: max-content; max-width: 100%; padding: 5px 9px; border-radius: 999px; color: #7f2d1d; background: #f5e3da; font-size: 11px; font-weight: 800; }
.support-card__preview { display: -webkit-box; margin: 0; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-height: 1.45; }
.support-card__meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 11px; }
.support-card__assignee { padding: 3px 7px; border-radius: 999px; color: #765000; background: #fff0bd; font-weight: 800; }
.support-card__assignee--closed { color: #665d57; background: #ece8e3; }
.staff-order-customer-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 8px 0 2px; }
.staff-order-customer-tags__label { width: 100%; color: var(--muted); font-size: 10px; font-weight: 750; }
.staff-order-customer-tag, .crm-customer-tag[data-colored="true"] { display: inline-flex; align-items: center; min-height: 25px; padding: 4px 9px; border: 1px solid color-mix(in srgb, var(--customer-tag-color) 72%, #4a3222); border-radius: 999px; color: color-mix(in srgb, var(--customer-tag-color) 55%, #24160f); background: color-mix(in srgb, var(--customer-tag-color) 18%, white); box-shadow: 0 3px 8px color-mix(in srgb, var(--customer-tag-color) 16%, transparent); font-size: 10px; font-weight: 850; }
.crm-tag-definition-picker { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.crm-tag-definition-option { display: flex; min-width: 0; align-items: center; gap: 8px; padding: 9px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); cursor: pointer; }
.crm-tag-definition-option:has(input:checked) { border-color: var(--accent); background: #fff8e8; }
.crm-tag-definitions-dialog { width: min(94vw, 720px); }
.crm-tag-definition-list { display: grid; gap: 8px; max-height: 42vh; margin: 12px 0; overflow-y: auto; }
.crm-tag-definition-row { display: grid; grid-template-columns: minmax(140px, 1fr) 52px auto 22px auto; align-items: center; gap: 8px; padding: 9px; border: 1px solid var(--line); border-radius: 12px; }
.crm-tag-definition-row input[type="text"] { min-width: 0; min-height: 40px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; }
.crm-tag-definition-row input[type="color"] { width: 46px; height: 38px; padding: 2px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
.crm-tag-definition-active { color: var(--muted); font-size: 10px; }
.crm-tag-definition-create { display: grid; grid-template-columns: minmax(0, 1fr) 90px auto; align-items: end; gap: 8px; }
.support-thread-workspace { display: grid; grid-template-rows: auto minmax(240px, 1fr) auto; height: clamp(480px, calc(100dvh - 260px), 720px); min-height: 0; overflow: hidden; border: 1px solid rgba(74,50,34,.12); border-radius: 22px; background: #f0ece6; box-shadow: 0 16px 40px rgba(38,24,16,.08); }
.support-thread__overview { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid rgba(74,50,34,.11); background: rgba(255,253,249,.94); }
.support-thread__avatar { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 14px; color: #fff; background: linear-gradient(145deg, #4b2a20, #241713); font-size: 13px; font-weight: 900; letter-spacing: .04em; }
.support-thread__identity { display: grid; gap: 3px; min-width: 0; }
.support-thread__identity strong, .support-thread__identity small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.support-thread__identity strong { font-size: 15px; }
.support-thread__identity small { color: var(--muted); font-size: 11px; }
.support-thread__assignee { display: flex; align-items: baseline; gap: 6px; margin-top: 3px; color: var(--muted); font-size: 9px; }
.support-thread__assignee strong { color: var(--ink); font-size: 12px; font-weight: 900; }
.support-thread__assignee small { font-size: 8px; opacity: .62; }
.support-thread__context { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px; max-width: min(48vw, 520px); }
.support-thread__activity { flex-basis: 100%; color: var(--muted); font-size: 9px; text-align: right; }
.support-thread { display: flex; flex-direction: column; gap: 7px; min-height: 0; padding: 16px 18px; overflow-y: auto; overscroll-behavior: contain; background: linear-gradient(rgba(255,255,255,.42), rgba(255,255,255,.42)), radial-gradient(circle at 10px 10px, rgba(74,50,34,.045) 1px, transparent 1px); background-size: auto, 18px 18px; scroll-behavior: smooth; scrollbar-width: none; }
.support-thread::-webkit-scrollbar { display: none; }
.support-thread__day { align-self: center; margin: 7px 0 9px; padding: 6px 11px; border-radius: 999px; color: var(--muted); background: rgba(255,255,255,.82); box-shadow: 0 2px 8px rgba(23,19,15,.05); font-size: 11px; font-weight: 750; }
.support-message { display: grid; align-self: flex-start; gap: 4px; width: fit-content; max-width: min(76%, 640px); margin: 1px 0; color: var(--ink); }
.support-message--staff { align-self: flex-end; max-width: min(80%, 620px); color: #24180b; }
.support-message--system { align-self: center; max-width: min(86%, 520px); color: var(--muted); text-align: center; }
.support-message__author { display: flex; min-width: 0; align-items: center; gap: 6px; padding: 0 9px; overflow: hidden; color: var(--muted); font-size: 11px; font-weight: 800; line-height: 1.1; text-overflow: ellipsis; white-space: nowrap; }
.support-message__author strong { overflow: hidden; font-size: 12px; font-weight: 850; text-overflow: ellipsis; white-space: nowrap; }
.support-message__bubble { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 3px 8px; min-width: 58px; padding: 10px 12px 8px 13px; border: 1px solid rgba(74,50,34,.1); border-radius: 19px 19px 19px 6px; background: #fffdfa; box-shadow: 0 4px 12px rgba(23,19,15,.1); }
.support-message--staff .support-message__bubble { border-color: rgba(180,112,0,.28); border-radius: 17px 17px 5px 17px; background: linear-gradient(145deg, #ffc13b, #eba008); }
.support-message--system .support-message__bubble { display: block; padding: 6px 10px; border-radius: 999px; background: rgba(255,255,255,.72); box-shadow: none; }
.support-message__body { grid-row: 1; grid-column: 1; min-width: 0; margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15px; line-height: 1.4; }
.support-message__time { grid-row: 1; grid-column: 2; align-self: end; justify-self: end; margin: 0 0 1px; font-size: 10px; font-variant-numeric: tabular-nums; line-height: 1; white-space: nowrap; opacity: .55; }
.support-message.has-attachments { max-width: min(82%, 360px); }
.support-message.has-attachments .support-message__bubble { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; padding: 3px; overflow: hidden; }
.support-message.has-attachments .support-message__body { grid-row: auto; grid-column: 1; margin: 0; padding: 6px 7px 7px; }
.support-message.has-attachments .support-attachments,
.support-message.has-attachments .support-attachments--2 { grid-row: auto; grid-column: 1; width: min(340px, 72vw); max-width: 100%; gap: 4px; }
.support-message.has-attachments .support-attachment { border: 1px solid rgba(74,50,34,.1); border-radius: 14px; }
.support-message.has-attachments:not(.has-body) .support-message__bubble { padding: 0; border: 0; background: transparent; box-shadow: 0 5px 16px rgba(23,19,15,.14); }
.support-message.has-attachments .support-message__time { position: absolute; right: 8px; bottom: 8px; z-index: 1; margin: 0; padding: 3px 5px; border-radius: 999px; color: #fff; background: rgba(0,0,0,.52); box-shadow: 0 1px 4px rgba(0,0,0,.24); opacity: .9; }
.support-attachments { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; width: min(320px, 66vw); max-width: 100%; }
.support-attachments--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); width: min(440px, 66vw); }
.support-attachment { position: relative; display: grid; min-width: 0; aspect-ratio: 4 / 3; padding: 0; overflow: hidden; place-items: center; border: 0; border-radius: 12px; color: var(--muted); background: rgba(74,50,34,.09); cursor: zoom-in; }
.support-attachment img { width: 100%; height: 100%; object-fit: cover; }
.support-attachment:not([data-ready="true"])::before { content: "Фото"; position: absolute; font-size: 10px; }
.support-attachment.is-error { cursor: default; }
.support-attachment.is-error span { position: absolute; padding: 8px; font-size: 9px; text-align: center; }
.support-image-viewer { width: min(94vw, 1200px); max-width: none; height: min(92dvh, 900px); max-height: none; padding: 0; overflow: hidden; border: 0; border-radius: 18px; background: #17120f; box-shadow: 0 28px 80px rgba(0,0,0,.38); }
.support-image-viewer::backdrop { background: rgba(14,10,8,.72); backdrop-filter: blur(4px); }
.support-image-viewer img { display: block; width: 100%; height: 100%; object-fit: contain; }
.support-image-viewer__close { position: absolute; z-index: 1; top: 10px; right: 10px; display: grid; width: 38px; height: 38px; padding: 0; place-items: center; border: 1px solid rgba(255,255,255,.28); border-radius: 50%; color: #fff; background: rgba(15,10,8,.72); font: inherit; font-size: 24px; line-height: 1; }
.support-draft-images { grid-column: 1 / -1; display: flex; gap: 7px; padding: 1px 1px 0; }
.support-draft-images[hidden] { display: none; }
.support-draft-image { position: relative; width: 72px; height: 58px; overflow: hidden; border-radius: 11px; background: #eee7df; }
.support-draft-image img { width: 100%; height: 100%; object-fit: cover; }
.support-draft-image__remove { position: absolute; top: 3px; right: 3px; display: grid; width: 22px; height: 22px; padding: 0; place-items: center; border: 0; border-radius: 50%; color: white; background: rgba(24,16,13,.78); font: inherit; font-size: 16px; line-height: 1; }
.support-thread__empty { margin: auto; color: var(--muted); text-align: center; }
.support-thread__actions { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px 12px; border-top: 1px solid rgba(74,50,34,.11); background: rgba(255,253,249,.96); backdrop-filter: blur(12px); }
.support-reply-wrap { display: grid; gap: 4px; min-width: 0; }
.support-reply { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 8px; min-width: 0; padding: 6px 6px 6px 13px; border: 1px solid rgba(74,50,34,.18); border-radius: 18px; background: #fff; box-shadow: 0 4px 14px rgba(37,20,14,.05); }
.support-reply textarea { box-sizing: border-box; width: 100%; min-height: 44px; max-height: 132px; padding: 11px 0 4px; overflow-y: auto; border: 0; color: var(--ink); background: transparent; font: inherit; font-size: 15px; line-height: 1.4; resize: none; outline: none; }
.support-reply__send { display: grid; width: 42px; height: 42px; place-items: center; border: 0; border-radius: 14px; color: #21170a; background: linear-gradient(145deg, #ffc13b, #e99b00); box-shadow: 0 6px 14px rgba(208,133,0,.22); font-size: 22px; font-weight: 800; line-height: 1; }
.support-reply__send:disabled { cursor: default; opacity: .42; box-shadow: none; }
.support-reply__hint { padding-left: 5px; color: var(--muted); font-size: 9px; }
.support-thread__lifecycle { display: grid; grid-template-columns: minmax(174px, 1fr) auto; align-items: center; gap: 14px; }
.support-thread__release-action { min-height: 34px; padding: 7px 12px; border: 1px solid rgba(74,50,34,.14); border-radius: 11px; color: var(--muted); background: rgba(74,50,34,.045); font: inherit; font-size: 10px; font-weight: 800; white-space: nowrap; }
.support-thread__release-action:hover { color: var(--ink); background: rgba(74,50,34,.08); }
.support-thread__close-action { min-height: 46px; padding-inline: 20px; border-color: #b83b2a; color: #fff; background: linear-gradient(145deg, #c94a36, #a92f20); box-shadow: 0 7px 16px rgba(169,47,32,.2); font-size: 13px; white-space: nowrap; }
.support-thread__close-action:hover { border-color: #a92f20; background: linear-gradient(145deg, #b9402f, #96291c); }
.support-thread__closed-note { grid-column: 1 / -1; margin: 0; padding: 11px 13px; border-radius: 13px; color: var(--muted); background: rgba(74,50,34,.055); font-size: 12px; line-height: 1.45; }
.review-inbox__metric { display: grid; gap: 4px; min-width: 0; padding: 12px; border-radius: 14px; background: rgba(23,19,15,.045); }
.review-inbox__metric dt { color: var(--muted); font-size: 10px; }
.review-inbox__metric dd { margin: 0; font-size: 20px; font-weight: 900; }
.review-inbox__toolbar { display: grid; grid-template-columns: minmax(0, 1fr) minmax(140px, .42fr); gap: 8px; margin-bottom: 12px; }
.review-inbox__tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.review-inbox__tabs .is-active { border-color: var(--ink); color: white; background: var(--ink); }
.review-inbox__rating { min-width: 0; min-height: 44px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: var(--card); font: inherit; }
.review-card { display: grid; gap: 12px; }
.review-card__customer-header { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid #e7ddd2; border-radius: 14px; background: linear-gradient(135deg, #f7f2eb, #fffdfa); }
.review-card__customer-avatar { display: grid; flex: 0 0 34px; width: 34px; height: 34px; place-items: center; border-radius: 11px; color: #fff7ee; background: #b84b32; font-size: 12px; font-weight: 900; letter-spacing: .02em; }
.review-card__customer { display: grid; gap: 3px; min-width: 0; }
.review-card__customer-label { color: #9a4a37; font-size: 8px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.review-card__customer-identity { display: flex; flex-wrap: wrap; align-items: baseline; gap: 7px; min-width: 0; }
.review-card__customer-identity strong { color: var(--ink); font-size: 15px; font-weight: 900; line-height: 1.2; }
.review-card__customer-identity small { color: var(--muted); font-size: 9px; font-weight: 600; opacity: .58; }
.review-card__heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.review-card__title { display: grid; gap: 4px; min-width: 0; }
.review-card__title strong { color: #8a5a00; font-size: 16px; }
.review-card__title span, .review-card__date { color: var(--muted); font-size: 10px; }
.review-card__comment { margin: 0; padding: 12px 13px; border-left: 3px solid #f2c84b; border-radius: 0 12px 12px 0; background: rgba(242,200,75,.09); font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.review-card__comment--empty { color: var(--muted); font-style: italic; }
.review-card__delivery { margin: 0; color: var(--muted); font-size: 11px; }
.review-card__delivery { color: #8a5a00; font-weight: 800; }
.review-card__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.review-card__tags span { padding: 6px 9px; border-radius: 99px; color: #7e3124; background: #fff0eb; font-size: 10px; font-weight: 800; }
.review-card__response { display: grid; gap: 5px; padding: 12px 13px; border-radius: 12px; color: #fef8f1; background: #231712; }
.review-card__response-author { display: flex; flex-wrap: wrap; align-items: baseline; gap: 7px; }
.review-card__response-author strong { font-size: 15px; font-weight: 900; line-height: 1.2; }
.review-card__response-author small { font-size: 9px; font-weight: 650; opacity: .58; }
.review-card__response p { margin: 0; font-size: 12px; line-height: 1.5; white-space: pre-wrap; }
.review-card__reply { display: grid; grid-template-columns: minmax(0, 1fr) minmax(180px, .35fr); gap: 8px; }
.review-card__reply textarea { width: 100%; min-height: 82px; padding: 11px; resize: vertical; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); background: var(--card); font: inherit; }
.review-card__actions { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 8px; }
.status-badge { display: inline-flex; align-items: center; min-height: 25px; padding: 5px 8px; border-radius: 99px; font-size: 9px; font-weight: 850; white-space: nowrap; }
.status-badge--pending { color: #855300; background: #fff1c2; }
.status-badge--handled { color: #176b3a; background: #e3f2e7; }
.status-badge--dismissed { color: #6d625a; background: #ece8e2; }
@media (max-width: 479px) {
  .review-inbox__summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .support-inbox__summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .support-inbox__metric { padding: 10px 8px; }
  .support-inbox__metric dd { font-size: 17px; }
  .support-inbox__tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .support-archive-filter { grid-template-columns: minmax(0, 1fr); }
  .crm-tag-definition-picker, .crm-tag-definition-create, .crm-tag-definition-row { grid-template-columns: minmax(0, 1fr); }
  .support-thread-workspace { height: calc(100dvh - 145px); min-height: 500px; border-radius: 17px; }
  .support-thread__overview { grid-template-columns: auto minmax(0, 1fr); padding: 11px 12px; }
  .support-thread__context { grid-column: 1 / -1; justify-content: flex-start; max-width: none; }
  .support-thread__activity { text-align: left; }
  .support-thread { padding: 12px 9px; }
  .support-message { max-width: 78%; }
  .support-message--staff { max-width: 84%; }
  .support-message.has-attachments { max-width: min(86%, 330px); }
  .support-thread__lifecycle { grid-template-columns: auto minmax(0, 1fr); gap: 10px; }
  .support-thread__actions { grid-template-columns: minmax(0, 1fr); padding: 9px; }
  .support-thread__status-action { justify-self: center; }
  .support-reply__hint { display: none; }
  .review-inbox__metric { padding: 10px 8px; }
  .review-inbox__metric dd { font-size: 17px; }
  .review-inbox__toolbar { grid-template-columns: 1fr; }
  .review-card__heading { align-items: stretch; flex-direction: column; }
  .review-card__heading .status-badge { justify-self: start; }
  .review-card__actions { grid-template-columns: 1fr; }
  .review-card__reply { grid-template-columns: 1fr; }
}
.admin-schedule-panel { display: grid; gap: 12px; margin-top: 18px; }
.admin-schedule-panel__header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.admin-schedule-panel__header h3 { margin: 0; }
.admin-schedule-panel__header .secondary-button { width: auto; }
.admin-schedule-form { display: grid; gap: 12px; }
.admin-schedule-days { display: grid; gap: 9px; }
.admin-schedule-day { display: grid; grid-template-columns: minmax(130px, 0.7fr) minmax(135px, 0.8fr) repeat(2, minmax(120px, 1fr)); align-items: end; gap: 10px; }
.admin-schedule-day > strong { align-self: center; }
.admin-schedule-day .admin-check { align-self: end; }
.admin-schedule-form > .primary-button { width: fit-content; min-width: 190px; }
.admin-notice { display: grid; gap: 6px; margin: 0 0 16px; padding: 14px; border-radius: 14px; color: #6f4b13; background: rgba(214, 137, 22, 0.11); }
.admin-notice p { margin: 0; font-size: 12px; line-height: 1.5; }
.admin-notice--success { color: #27653d; background: rgba(40, 137, 78, 0.11); }
.admin-notice--error { color: #8a2f22; background: rgba(167, 45, 29, 0.1); }
.admin-form--campaign > .admin-rule-collection, .admin-form--campaign > .admin-simulation-result { grid-column: 1 / -1; }
.admin-campaign-description { margin: -6px 0 16px; color: var(--muted); line-height: 1.5; }
.admin-definition-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.admin-definition { padding: 14px; border: 1px solid var(--line); border-radius: 15px; background: var(--card); }
.admin-definition h3, .admin-rule-collection h3, .admin-simulation-result h3 { margin: 0 0 10px; font-size: 15px; }
.admin-definition__item { display: grid; gap: 5px; padding: 10px 0; border-top: 1px solid var(--line); }
.admin-definition__item:first-of-type { border-top: 0; }
.admin-rule-collection { padding: 14px; border: 1px solid var(--line); border-radius: 15px; }
.admin-rule-collection__heading, .admin-rule__header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.admin-rule-collection__heading h3 { margin: 0; }
.admin-rule-list { display: grid; gap: 10px; }
.admin-rule { display: grid; gap: 12px; margin-top: 12px; padding: 12px; border-radius: 13px; background: rgba(23, 19, 15, 0.04); }
.admin-rule__header .admin-field { flex: 1; }
.admin-rule__fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.admin-rule__hint { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: 12px; }
.admin-actions--wide { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
.loyalty-admin-list-toolbar {
  display: grid;
  width: 100%;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.loyalty-admin-list-toolbar .admin-actions--wide {
  min-width: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
}
.admin-list-toolbar {
  display: grid;
  width: 100%;
  min-width: 0;
  grid-template-columns: minmax(0, 520px) auto;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 4px;
}
.admin-list-toolbar__filters {
  display: grid;
  width: 100%;
  min-width: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.admin-list-toolbar__create { margin: 0; white-space: nowrap; }
.loyalty-admin-list-add { margin: 0; white-space: nowrap; }
.admin-simulation-result { padding: 15px; border-radius: 15px; background: rgba(23, 19, 15, 0.04); }
.admin-simulation-list { display: grid; gap: 7px; margin-bottom: 14px; }
.admin-simulation-item { padding: 9px 11px; border-radius: 10px; font-size: 12px; font-weight: 750; }
.admin-simulation-item--passed { color: #176b3a; background: rgba(37, 131, 75, 0.12); }
.admin-simulation-item--failed { color: #8a3529; background: rgba(167, 45, 29, 0.1); }
.admin-simulation-item--reward { color: #6f4b13; background: rgba(214, 137, 22, 0.13); }
.loyalty-reward--available { border-color: rgba(214, 137, 22, 0.45); background: rgba(214, 137, 22, 0.08); }
.loyalty-reward__available { margin: 8px 0; color: #6f4b13; font-size: 12px; font-weight: 800; }
.loyalty-reward__claim { width: 100%; margin-top: 6px; }
.crm-customer-toolbar { align-items: center; }
.crm-customer-toolbar .crm-search-row { flex: 1; margin: 0; }
.crm-customer-filters { padding: 10px 12px; border: 1px solid rgba(23, 19, 15, .1); border-radius: 14px; background: rgba(255, 255, 255, .42); }
.crm-customer-filters summary { cursor: pointer; font-weight: 800; }
.crm-customer-query-controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; gap: 8px; margin-top: 12px; }
.crm-customer-query-controls .admin-field { min-width: 0; margin: 0; }
.crm-customer-query-controls .secondary-button { width: auto; }
.crm-filter-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.crm-tag-filter { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: end; gap: 8px; margin-top: 12px; }
.crm-tag-filter .admin-field { margin: 0; }
.crm-tag-filter .secondary-button { width: auto; }
.crm-filter-chip { width: auto; min-height: 38px; padding: 8px 12px; border-radius: 999px; }
.crm-filter-chip[aria-pressed="true"] { color: #fff; border-color: var(--accent); background: var(--accent); }
.crm-customer-result { margin: 0; color: var(--tg-theme-hint-color, var(--muted)); font-size: 13px; font-weight: 750; }
.crm-customer-more { width: 100%; }
.crm-customer-card { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-width: 0; }
.crm-customer-card__copy { display: grid; gap: 4px; min-width: 0; overflow-wrap: anywhere; }
.crm-customer-card .secondary-button { width: auto; flex: 0 0 auto; }
.crm-customer-overview, .crm-customer-summary, .crm-customer-timeline, .crm-customer-tags, .crm-customer-loyalty { margin-top: 12px; }
.crm-customer-overview h3, .crm-customer-summary h3, .crm-customer-timeline h3, .crm-customer-tags h3, .crm-customer-loyalty h3, .crm-customer-history__section h3 { margin: 0; }
.crm-customer-tags { display: grid; gap: 12px; }
.crm-customer-tags__header { align-items: center; }
.crm-customer-tags__copy { display: grid; gap: 3px; }
.crm-customer-tag-list { display: flex; flex-wrap: wrap; gap: 7px; }
.crm-customer-tag { max-width: 100%; padding: 7px 10px; border: 1px solid color-mix(in srgb, var(--accent) 34%, transparent); border-radius: 999px; color: var(--text); background: color-mix(in srgb, var(--accent) 10%, var(--card)); font-size: 12px; font-weight: 800; overflow-wrap: anywhere; }
.crm-customer-tags-dialog { width: min(470px, calc(100vw - 28px)); }
.crm-customer-tags-form { display: grid; gap: 12px; }
.crm-customer-details { margin-top: 12px; }
.crm-customer-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin-top: 13px; }
.crm-customer-metric { display: grid; gap: 5px; min-width: 0; padding: 11px; border-radius: 12px; background: rgba(23, 19, 15, 0.045); }
.crm-customer-metric span, .crm-customer-metric strong { overflow-wrap: anywhere; }
.crm-quality { display: inline-flex; width: fit-content; max-width: 100%; padding: 3px 7px; border-radius: 999px; font-size: 10px; line-height: 1.3; overflow-wrap: anywhere; }
.crm-quality--exact { color: #28543b; background: #dcebdd; }
.crm-quality--partial { color: #76520d; background: #fff0c7; }
.crm-quality--unavailable, .crm-quality--inconsistent { color: #7c3027; background: #f7ddd8; }
.crm-timeline-sources { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.crm-timeline-list { position: relative; display: grid; gap: 0; margin-top: 12px; padding-left: 18px; }
.crm-timeline-list::before { position: absolute; top: 5px; bottom: 5px; left: 5px; width: 2px; content: ""; background: var(--line); }
.crm-timeline-item { position: relative; display: grid; gap: 4px; min-width: 0; padding: 0 0 16px 12px; overflow-wrap: anywhere; }
.crm-timeline-item::before { position: absolute; top: 5px; left: -17px; width: 10px; height: 10px; content: ""; border: 2px solid var(--surface); border-radius: 50%; background: var(--accent); }
.crm-timeline-item time, .crm-timeline-item span { font-size: 12px; }
.crm-timeline-actions { display: flex; justify-content: flex-start; }
.crm-balance-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-top: 13px; }
.crm-balance-actions button { width: 100%; }
.crm-balance-dialog { width: min(430px, calc(100vw - 28px)); }
.crm-balance-form { display: grid; gap: 12px; }
.crm-balance-preview { margin: 0; padding: 10px 12px; border-radius: 12px; background: rgba(23, 19, 15, 0.045); font-weight: 750; }
.crm-customer-progress { display: grid; gap: 9px; margin-top: 14px; }
.crm-customer-progress__copy { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; }
.crm-customer-progress__track { height: 8px; overflow: hidden; border-radius: 99px; background: rgba(23, 19, 15, 0.1); }
.crm-customer-progress__fill { display: block; height: 100%; border-radius: inherit; background: var(--accent); }
.crm-customer-history { display: grid; gap: 12px; margin-top: 12px; }
.crm-customer-history__section { min-width: 0; }
.crm-customer-history__list { display: grid; gap: 8px; margin: 12px 0; }
.crm-customer-history__item { display: grid; gap: 4px; min-width: 0; padding: 10px 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.crm-customer-history__item:first-child { border-top: 0; }
.crm-customer-history__item span { font-size: 12px; }
.crm-customer-history__item small { font-size: 11px; }
.crm-repeat-preview { display: grid; gap: 10px; margin-top: 6px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: color-mix(in srgb, var(--card) 88%, var(--accent) 12%); }
.crm-repeat-preview__items, .crm-repeat-preview__warnings, .crm-repeat-preview__controls { display: grid; gap: 8px; min-width: 0; }
.crm-repeat-preview__items p, .crm-repeat-preview__warnings small { margin: 0; overflow-wrap: anywhere; }
.crm-repeat-preview__controls .primary-button { width: 100%; }
.crm-customer-care { display: grid; gap: 12px; margin-top: 18px; padding-top: 18px; border-top: 2px solid color-mix(in srgb, var(--accent) 28%, var(--line)); }
.crm-customer-care__heading { display: grid; gap: 3px; padding: 0 2px; }
.crm-customer-care__heading > div { font-size: 19px; font-weight: 900; letter-spacing: -.02em; }
.crm-care-row { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.crm-care-row__copy { display: grid; gap: 4px; min-width: 0; }
.crm-care-row .secondary-button { width: auto; }
.crm-care-dialog { width: min(680px, calc(100vw - 28px)); max-height: min(88vh, 820px); overflow-y: auto; }
.crm-care-dialog__header { display: grid; gap: 4px; margin-bottom: 12px; }
.crm-care-dialog__header h2, .crm-care-form h2 { margin: 0; }
.crm-care-message { margin: 0 0 12px; padding: 13px; border-radius: 13px; background: color-mix(in srgb, var(--accent) 8%, var(--card)); line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.crm-care-summary { margin: 0 0 14px; }
.crm-care-dialog__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.crm-care-dialog__actions button { width: auto; }
.crm-care-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.crm-care-form h2, .crm-care-form .confirmation-dialog__actions { grid-column: 1 / -1; }
.crm-care-form .crm-field:has(textarea) { grid-column: 1 / -1; }
.crm-care-note { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
.crm-care-note .secondary-button { width: auto; }
.crm-positive { color: #176b3a; }
.crm-negative { color: #8a3529; }

/* CRM customer workspace: compact, interactive and readable at every width. */
.workspace-content .crm-admin-shell { color: #271d16; }
.workspace-content .crm-admin-shell .crm-card,
.workspace-content .crm-admin-shell .crm-state {
  color: #271d16;
  background: #fffdf9;
}
.crm-heading { align-items: center; margin-bottom: 20px; }
.crm-heading__copy { display: grid; gap: 4px; }
.crm-heading__copy .eyebrow { margin: 0; color: #b4311f; letter-spacing: .18em; }
.crm-heading__copy h2 { margin: 0; font-size: clamp(25px, 3vw, 34px); letter-spacing: -.035em; }
.crm-heading__copy > .muted { margin: 0; font-size: 13px; }
.crm-customer-control-panel {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
  padding: 16px;
  border: 1px solid rgba(111, 71, 39, .14);
  border-radius: 20px;
  background: linear-gradient(145deg, #fff9f1, #fff);
  box-shadow: 0 12px 30px rgba(67, 41, 22, .06);
}
.crm-customer-control-panel .crm-toolbar { margin: 0; grid-template-columns: minmax(0, 1fr) auto; }
.crm-customer-control-panel .crm-search-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.crm-customer-control-panel .crm-search-row input {
  min-height: 50px;
  padding-inline: 16px;
  border: 1px solid rgba(74, 50, 34, .18);
  border-radius: 14px;
  color: #271d16;
  background: #fff;
}
.crm-customer-control-panel .crm-search-row input:focus { border-color: #e14529; outline: 3px solid rgba(225, 69, 41, .12); }
.crm-customer-control-panel .crm-search-row button,
.crm-customer-control-panel > .crm-toolbar > button { width: auto; min-height: 50px; padding-inline: 20px; }
.crm-customer-filters { padding: 0; border: 0; background: transparent; }
.crm-customer-filters > summary {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 13px;
  border: 1px solid rgba(74, 50, 34, .12);
  border-radius: 13px;
  background: rgba(247, 242, 235, .78);
  list-style: none;
}
.crm-customer-filters > summary::-webkit-details-marker { display: none; }
.crm-customer-filters > summary::before { content: "⚙"; color: #b4311f; }
.crm-customer-filters[open] > summary { border-color: rgba(225, 69, 41, .3); background: #fff4ed; }
.crm-filter-count { margin-left: auto; padding: 4px 8px; border-radius: 999px; color: #7c3a25; background: #f7ded2; font-size: 10px; font-weight: 850; }
.crm-customer-query-controls {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 14px 2px 4px;
}
.crm-customer-query-controls > :first-child { grid-column: span 2; }
.crm-customer-query-controls > .secondary-button { min-height: 44px; }
.crm-tag-filter { grid-template-columns: minmax(220px, .55fr) auto auto; padding: 4px 2px 2px; }
.crm-customer-filters > .secondary-button { width: auto; margin: 8px 2px 0; min-height: 38px; padding: 8px 12px; color: #8a3529; border-color: transparent; }
.crm-active-filters { display: flex; flex-wrap: wrap; gap: 7px; }
.crm-active-filter {
  width: auto;
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid #efc1b4;
  border-radius: 999px;
  color: #8a3529;
  background: #fff2ed;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}
.crm-customer-result {
  display: grid;
  width: fit-content;
  grid-template-columns: auto auto;
  align-items: baseline;
  gap: 2px 7px;
  margin: 4px 0 12px;
  color: #271d16;
}
.crm-customer-result strong { color: #e14529; font-size: 22px; line-height: 1; }
.crm-customer-result span { font-size: 13px; font-weight: 800; }
.crm-customer-result small { grid-column: 1 / -1; color: #827266; font-size: 10px; }
.crm-customer-list { grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 11px; }
.workspace-content.crm-admin-shell .crm-customer-card {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  min-height: 124px;
  align-items: center;
  gap: 12px;
  padding: 15px;
  border-color: rgba(74, 50, 34, .12);
  background: linear-gradient(145deg, #fff, #fffaf4);
  box-shadow: 0 8px 22px rgba(67, 41, 22, .055);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}
.workspace-content .crm-admin-shell .crm-customer-card:hover { transform: translateY(-2px); border-color: rgba(225, 69, 41, .32); box-shadow: 0 12px 28px rgba(67, 41, 22, .1); }
.crm-customer-avatar {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid #efb89e;
  border-radius: 15px;
  color: #fff;
  background: linear-gradient(145deg, #f05a35, #b92d1d);
  box-shadow: 0 7px 16px rgba(188, 49, 29, .2);
  font-size: 18px;
  font-weight: 900;
}
.crm-customer-avatar--large { width: 62px; height: 62px; border-radius: 19px; font-size: 24px; }
.crm-customer-card__copy { gap: 3px; }
.crm-customer-card__copy .crm-card__title { font-size: 15px; }
.crm-customer-card__contact { font-size: 12px; font-weight: 750; }
.crm-profile-state { width: fit-content; margin-top: 4px; padding: 4px 7px; border-radius: 999px; color: #865121; background: #fff0cb; font-size: 9px; font-weight: 850; }
.crm-profile-state--ready { color: #236140; background: #e1f1e6; }
.crm-customer-card .crm-customer-card__open { width: auto; min-height: 38px; padding: 8px 11px; border-color: rgba(225, 69, 41, .22); color: #a52f1f; background: #fff; }
.crm-customer-workspace { display: grid; gap: 12px; }
.crm-customer-section-nav {
  position: sticky;
  z-index: 3;
  top: -1px;
  display: flex;
  gap: 7px;
  margin: 0 0 12px;
  padding: 8px;
  overflow-x: auto;
  border: 1px solid rgba(74, 50, 34, .12);
  border-radius: 15px;
  background: rgba(255, 253, 249, .94);
  box-shadow: 0 7px 18px rgba(67, 41, 22, .06);
  backdrop-filter: blur(12px);
  scrollbar-width: none;
}
.crm-customer-section-nav::-webkit-scrollbar { display: none; }
.crm-customer-section-nav__button { min-height: 34px; flex: 0 0 auto; padding: 7px 11px; border: 0; border-radius: 10px; color: #66564b; background: transparent; font: inherit; font-size: 11px; font-weight: 850; cursor: pointer; white-space: nowrap; }
.crm-customer-section-nav__button:hover { color: #a52f1f; background: #fff0e9; }
.crm-customer-dashboard { display: grid; grid-template-columns: minmax(280px, .8fr) minmax(440px, 1.2fr); gap: 12px; scroll-margin-top: 70px; }
.crm-customer-dashboard > .admin-card { margin: 0; }
.crm-customer-overview, .crm-customer-restrictions, .crm-customer-tags { grid-column: 1; }
.crm-customer-summary, .crm-customer-loyalty { grid-column: 2; }
.crm-customer-summary { grid-row: span 2; }
.crm-customer-identity-hero { display: flex; align-items: center; gap: 13px; }
.crm-customer-identity-hero__copy { display: grid; gap: 3px; }
.crm-customer-identity-hero__copy h3 { font-size: 20px; }
.crm-customer-details { padding-top: 12px; border-top: 1px solid rgba(74, 50, 34, .1); }
.crm-customer-tags__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.crm-customer-tags__actions .secondary-button { width: auto; min-height: 38px; padding: 8px 11px; }
.crm-customer-restrictions { display: grid; align-content: start; gap: 12px; }
.crm-customer-restrictions__list { display: grid; gap: 9px; }
.crm-customer-restriction { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; border: 1px solid rgba(45, 126, 76, .18); border-radius: 14px; background: rgba(232, 245, 235, .52); }
.crm-customer-restriction.is-restricted { border-color: rgba(230, 74, 47, .28); background: rgba(255, 237, 232, .72); }
.crm-customer-restriction__copy { display: grid; justify-items: start; gap: 5px; min-width: 0; }
.crm-customer-restriction__copy small { overflow-wrap: anywhere; }
.crm-customer-metrics { grid-template-columns: repeat(3, minmax(120px, 1fr)); }
.crm-customer-metric { border: 1px solid rgba(74, 50, 34, .07); background: #f8f5f1; }
.crm-customer-metric strong { font-size: 16px; }
.crm-bonus-points-value { display: inline-flex; align-items: center; gap: 5px; }
.crm-bonus-points-value .bonus-token { width: 20px; height: 20px; flex: 0 0 20px; }
.crm-quality { padding: 3px 7px; font-size: 8px; font-weight: 800; }
.crm-customer-timeline { scroll-margin-top: 70px; }
.crm-timeline-sources { margin-top: 10px; padding: 8px 10px; border-radius: 11px; background: #faf6f1; }
.crm-timeline-sources summary { color: #77675c; cursor: pointer; font-size: 10px; font-weight: 800; }
.crm-timeline-sources__list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.crm-customer-history { grid-template-columns: repeat(2, minmax(0, 1fr)); scroll-margin-top: 70px; }
.crm-customer-history__section { min-height: 0; }
.crm-customer-history__heading-copy { display: flex !important; align-items: center; gap: 8px !important; }
.crm-section-count { display: inline-grid; min-width: 24px; height: 24px; place-items: center; padding: 0 7px; border-radius: 999px; color: #9a2f20; background: #fde8df; font-size: 10px; font-weight: 900; }
.crm-customer-history__section .admin-card__header { align-items: center; }
.crm-customer-history__section .admin-card__header > .primary-button { width: auto; max-width: 340px; min-height: 40px; padding: 9px 14px; }
.crm-customer-history__list { margin: 10px 0 0; }
.crm-inline-empty { display: grid; min-height: 70px; place-items: center; align-content: center; gap: 4px; padding: 12px; border: 1px dashed rgba(74, 50, 34, .16); border-radius: 13px; color: #8b7b70; text-align: center; }
.crm-inline-empty__icon { display: grid; width: 25px; height: 25px; place-items: center; border-radius: 50%; background: #f3eee8; font-weight: 900; }
.crm-inline-empty p { margin: 0; font-size: 11px; }
.crm-customer-care { scroll-margin-top: 70px; }
.crm-customer-care__heading { padding-left: 4px; }
.crm-customer-care__heading > div { font-size: 22px; }

@media (min-width: 1100px) {
  .crm-customer-workspace {
    width: 100%;
    max-width: 1480px;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 16px;
    margin-inline: auto;
  }
  .crm-customer-section-nav {
    position: static;
    grid-column: 1 / -1;
    justify-content: center;
    gap: 4px;
    margin: 0;
    padding: 6px;
    overflow: visible;
    border-radius: 17px;
    box-shadow: 0 8px 24px rgba(67, 41, 22, .055);
    backdrop-filter: none;
  }
  .crm-customer-section-nav__button {
    min-width: 150px;
    min-height: 38px;
    padding-inline: 16px;
    text-align: center;
  }
  .crm-customer-dashboard {
    grid-column: 1 / -1;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 16px;
    margin: 0;
    scroll-margin-top: 18px;
  }
  .crm-customer-dashboard > .admin-card { margin: 0; }
  .crm-customer-overview { grid-column: 1 / span 4; grid-row: 1; }
  .crm-customer-summary { grid-column: 5 / -1; grid-row: 1; }
  .crm-customer-restrictions { grid-column: 1 / span 6; grid-row: 2; }
  .crm-customer-tags { grid-column: 7 / -1; grid-row: 2; }
  .crm-customer-loyalty { grid-column: 1 / -1; grid-row: 3; }
  .crm-customer-loyalty .crm-customer-metrics {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }
  .crm-customer-timeline,
  .crm-customer-history,
  .crm-customer-workspace > .crm-customer-history__section,
  .crm-customer-care {
    grid-column: 1 / -1;
    margin-top: 0;
    scroll-margin-top: 18px;
  }
  .crm-customer-history { gap: 16px; }
  .crm-customer-history__section {
    padding: 16px;
    border-radius: 18px;
  }
  .crm-customer-history__section .admin-card__header > .primary-button {
    max-width: 260px;
  }
  .crm-inline-empty { min-height: 82px; }
  .crm-customer-care {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    padding-top: 20px;
  }
  .crm-customer-care__heading { grid-column: 1 / -1; }
  .crm-customer-care > .crm-customer-history__section { margin: 0; }
}

@media (max-width: 900px) {
  .crm-customer-query-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .crm-customer-query-controls > :first-child { grid-column: span 2; }
  .crm-customer-dashboard { grid-template-columns: minmax(0, 1fr); }
  .crm-customer-overview, .crm-customer-restrictions, .crm-customer-tags, .crm-customer-summary, .crm-customer-loyalty { grid-column: 1; grid-row: auto; }
}

@media (max-width: 620px) {
  .crm-customer-restriction { align-items: stretch; flex-direction: column; }
  .crm-customer-restriction > button { width: 100%; }
  .crm-heading { align-items: flex-start; }
  .crm-heading > .crm-back { min-width: 70px; padding-inline: 11px; }
  .crm-customer-control-panel { padding: 12px; border-radius: 16px; }
  .crm-customer-control-panel .crm-toolbar,
  .crm-customer-control-panel .crm-search-row,
  .crm-customer-query-controls,
  .crm-tag-filter { grid-template-columns: minmax(0, 1fr); }
  .crm-customer-query-controls > :first-child { grid-column: 1; }
  .crm-customer-control-panel .crm-search-row button,
  .crm-customer-control-panel > .crm-toolbar > button,
  .crm-tag-filter .secondary-button { width: 100%; }
  .workspace-content .crm-admin-shell .crm-customer-card { grid-template-columns: 42px minmax(0, 1fr); min-height: 0; }
  .crm-customer-avatar { width: 42px; height: 42px; border-radius: 13px; }
  .crm-customer-card .crm-customer-card__open { grid-column: 1 / -1; width: 100%; }
  .crm-customer-metrics, .crm-customer-history { grid-template-columns: minmax(0, 1fr); }
  .crm-customer-tags__actions { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .crm-customer-tags__actions .secondary-button { width: 100%; }
  .crm-customer-history__section .admin-card__header { align-items: stretch; }
  .crm-customer-history__section .admin-card__header > .primary-button { width: 100%; max-width: none; }
}

.toast { position: fixed; z-index: 20; top: auto; right: 18px; bottom: calc(86px + env(safe-area-inset-bottom)); left: 18px; width: auto; height: auto; margin: 0; padding: 13px 16px; overflow: visible; border: 0; border-radius: 13px; color: white; background: #2b211a; box-shadow: var(--shadow); opacity: 0; transform: translateY(14px); pointer-events: none; transition: 180ms ease; }
.toast--visible { opacity: 1; transform: translateY(0); }
.toast--error { background: #a72d1d; }

.skeleton { border-radius: 8px; background: linear-gradient(90deg, #e7ded0 25%, #f7f1e7 50%, #e7ded0 75%); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
.skeleton--image { aspect-ratio: 1.14; border-radius: 0; }
.skeleton--title { width: 68%; height: 18px; margin: 13px 12px; }
.skeleton--text { width: 82%; height: 12px; margin: 0 12px 18px; }

@keyframes shimmer { to { background-position: -200% 0; } }

@media (min-width: 680px) {
  .hero, .categories, .menu-section { padding-right: max(32px, calc((100vw - 760px) / 2)); padding-left: max(32px, calc((100vw - 760px) / 2)); }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .floating-cart { right: max(24px, calc((100vw - 720px) / 2)); left: max(24px, calc((100vw - 720px) / 2)); }
  #product-dialog {
    width: min(680px, calc(100vw - 40px));
    max-height: min(86vh, 820px);
    margin: auto;
    border-radius: 25px;
  }
}

@media (max-width: 479px) {
  .admin-list-toolbar { grid-template-columns: minmax(0, 1fr); align-items: stretch; }
  .admin-page-heading--list-actions > .admin-back-button { grid-row: 1; grid-column: 2; }
  .admin-list-toolbar__create { width: 100%; min-width: 0; }
  .loyalty-admin-list-toolbar { grid-template-columns: minmax(0, 1fr); }
  .loyalty-admin-list-add { width: 100%; min-width: 0; }
  .admin-page-heading--mobile-actions { grid-template-columns: minmax(0, 1fr); align-items: stretch; }
  .admin-page-heading--mobile-actions,
  .admin-page-heading--mobile-actions .admin-page-heading__actions { display: grid; width: 100%; }
  .admin-page-heading--mobile-actions .admin-button { width: 100%; min-width: 0; }
  .crm-card-actions { grid-template-columns: 1fr; }
  .crm-campaign-toolbar,
  .crm-campaign-actions,
  .crm-campaign-meta__row { grid-template-columns: minmax(0, 1fr); }
  .hero { padding-right: 16px; padding-left: 16px; }
  .hero::after { width: 150px; height: 150px; right: -95px; bottom: -88px; border-width: 22px; }
  .hero__top { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: 10px; }
  .hero__identity { display: contents; }
  .icon-button.hero__menu-button { grid-row: 1; grid-column: 1; margin-top: 0; }
  .hero__copy { grid-row: 2; grid-column: 1 / -1; padding-top: 2px; }
  .hero__actions {
    grid-row: 1;
    grid-column: 3;
    width: auto;
    justify-content: flex-end;
    gap: clamp(4px, 2vw, 9px);
  }
  .icon-button { width: 46px; height: 46px; justify-self: center; }
  .icon-button.hero__menu-button { width: 52px; height: 52px; }
  .icon-button.hero__profile-button { width: 56px; height: 56px; }
  .admin-filter, .admin-form, .admin-definition-grid, .admin-rule__fields { grid-template-columns: minmax(0, 1fr); }
  .admin-form > .admin-actions, .admin-form > .admin-button, .admin-form > .admin-notice { grid-column: auto; }
  .admin-schedule-panel__header { align-items: stretch; flex-direction: column; }
  .admin-schedule-panel__header .secondary-button, .admin-schedule-form > .primary-button { width: 100%; }
  .admin-schedule-day { grid-template-columns: minmax(0, 1fr); }
  .company-form-section { grid-column: auto; padding: 14px; }
  .company-form-section__fields, .company-link-row { grid-template-columns: minmax(0, 1fr); }
  .company-form-section__fields > .admin-field,
  .company-form-section__fields > .company-links-editor { grid-column: auto; }
  .company-link-row__remove, .company-links-editor__add { width: 100%; }
  .crm-admin-shell { width: 100%; max-width: 100%; overflow-x: hidden; }
  .crm-condition__fields,
  .crm-condition-group__header,
  .crm-condition-group__actions,
  .crm-form-actions { grid-template-columns: minmax(0, 1fr); }
  .crm-condition__fields > * { grid-column: 1; }
  .crm-segment-preview__customers { gap: 5px; }
  .crm-segment-preview__customer { width: 100%; justify-content: flex-start; }
  .crm-segment-explanation__row--depth-1,
  .crm-segment-explanation__row--depth-2,
  .crm-segment-explanation__row--depth-3,
  .crm-segment-explanation__row--depth-4 { margin-left: 0; }
  .crm-multi-picker__select { min-height: 184px; }
  .crm-search-row { grid-template-columns: minmax(0, 1fr); }
  .crm-search-row .secondary-button { width: 100%; }
  .crm-customer-toolbar { grid-template-columns: minmax(0, 1fr); }
  .crm-customer-query-controls { grid-template-columns: minmax(0, 1fr); }
  .crm-customer-query-controls .secondary-button { width: 100%; }
  .crm-filter-chips { display: grid; grid-template-columns: minmax(0, 1fr); }
  .crm-tag-filter { grid-template-columns: minmax(0, 1fr); }
  .crm-tag-filter .secondary-button { width: 100%; }
  .crm-filter-chip { width: 100%; text-align: left; }
  .crm-customer-card, .crm-customer-progress__copy { align-items: stretch; flex-direction: column; }
  .crm-customer-toolbar .crm-search-row button { width: 100%; }
  .crm-customer-toolbar .crm-search-row, .crm-customer-card .secondary-button { width: 100%; }
  .crm-customer-metrics { grid-template-columns: minmax(0, 1fr); }
  .crm-balance-actions, .crm-balance-dialog .confirmation-dialog__actions { grid-template-columns: minmax(0, 1fr); }
  .crm-customer-details { grid-template-columns: minmax(0, 1fr); }
  .crm-customer-details dd { text-align: left; }
  .crm-customer-tags__header { align-items: stretch; flex-direction: column; }
  .crm-customer-tags__header .secondary-button { width: 100%; }
  .crm-customer-history__section .admin-card__header {
    align-items: stretch;
    flex-direction: column;
  }
  .crm-customer-history__section .admin-card__header .primary-button {
    width: 100%;
  }
  .crm-care-row, .crm-care-note, .crm-care-form { grid-template-columns: minmax(0, 1fr); }
  .crm-care-row .secondary-button, .crm-care-note .secondary-button,
  .crm-care-dialog__actions button { width: 100%; }
  .crm-care-form h2, .crm-care-form .confirmation-dialog__actions,
  .crm-care-form .crm-field:has(textarea) { grid-column: 1; }
}

@media (max-width: 339px) {
  .hero { padding-right: 12px; padding-left: 12px; }
  .hero__actions { gap: 3px; }
  .icon-button { width: 44px; height: 44px; }
  .navigation-menu { grid-template-columns: minmax(0, 1fr); }
  .loyalty-overview { grid-template-columns: minmax(0, 1fr); }
  .loyalty-widget__overview, .loyalty-center__overview { grid-template-columns: minmax(0, 1fr); }
  .loyalty-widget__level { border-top: 1px solid rgba(255, 255, 255, 0.12); border-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

@media (prefers-color-scheme: dark) {
  .crm-admin-shell { color-scheme: dark; }
  .crm-admin-shell .crm-form-section,
  .crm-admin-shell .crm-card,
  .crm-admin-shell .crm-menu-card,
  .crm-admin-shell .crm-state {
    color: var(--tg-theme-text-color, #f4eee7);
    background: var(--tg-theme-section-bg-color, #211d19);
  }
  .crm-admin-shell .crm-field > input,
  .crm-admin-shell .crm-field > select,
  .crm-admin-shell .crm-field > textarea,
  .crm-admin-shell .crm-json-editor,
  .crm-admin-shell .crm-multi-picker__select {
    color: var(--tg-theme-text-color, #f4eee7);
    background: var(--tg-theme-bg-color, #171411);
  }
  .crm-admin-shell .crm-condition,
  .crm-admin-shell .crm-condition-group,
  .crm-admin-shell .crm-offer-summary,
  .crm-admin-shell .crm-card__meta span,
  .crm-admin-shell .crm-segment-preview__customer {
    background: var(--tg-theme-secondary-bg-color, #2d2823);
  }
  .crm-admin-shell .crm-segment-preview__customer:is(button) {
    color: var(--tg-theme-text-color, #f4eee7);
  }
  .crm-admin-shell .crm-segment-explanation {
    color: var(--tg-theme-text-color, #f4eee7);
    background: var(--tg-theme-secondary-bg-color, #2d2823);
  }
  .crm-admin-shell .crm-segment-explanation__row {
    color: var(--tg-theme-text-color, #f4eee7);
    background: var(--tg-theme-section-bg-color, #3a342f);
  }
  .crm-admin-shell .crm-care-message {
    color: var(--tg-theme-text-color, #f4eee7);
    background: var(--tg-theme-secondary-bg-color, #2d2823);
  }
  .crm-admin-shell .crm-segment-explanation .crm-field__hint,
  .crm-admin-shell .crm-segment-explanation__row small {
    color: var(--tg-theme-hint-color, #cfc4b9);
  }
}

.loyalty-center { gap: 12px; }
.loyalty-center__overview,
.loyalty-center > .loyalty-center__section,
.loyalty-referral,
.loyalty-offers {
  padding: 16px;
  border: 1px solid rgba(255,222,126,.12);
  border-radius: 22px;
  color: #fff9ef;
  background: radial-gradient(circle at 100% 0, rgba(232,75,44,.2), transparent 12rem), linear-gradient(145deg, #251812, #4a251b);
  box-shadow: 0 10px 28px rgba(37,20,14,.18);
}
.loyalty-center__overview { gap: 8px; }
.loyalty-center__metric { border: 1px solid rgba(255,255,255,.1); color: #fff9ef; background: rgba(255,255,255,.065); }
.loyalty-center__metric span, .loyalty-center__metric small { color: rgba(255,249,239,.58); }
.loyalty-center__metric strong { color: #ffd978; }
.loyalty-center > .loyalty-center__section .loyalty-progress { background: rgba(255,255,255,.14); }
.loyalty-center > .loyalty-center__section .loyalty-progress__heading span,
.loyalty-center > .loyalty-center__section .loyalty-progress__heading strong { color: #fff9ef; }
.loyalty-center > .loyalty-center__section .loyalty-progress__caption,
.loyalty-center__rule-note,
.loyalty-center__benefits p,
.loyalty-center__enrollment .loyalty-center__card-heading p { color: rgba(255,249,239,.62); }
.loyalty-center__rules, .loyalty-center__benefits, .loyalty-center__missions, .loyalty-center__enrollment { background: radial-gradient(circle at 100% 0, rgba(232,75,44,.2), transparent 12rem), linear-gradient(145deg, #251812, #4a251b); }
.loyalty-center__rule { color: #fff9ef; }
.loyalty-center__card-header { display: flex; align-items: center; gap: 11px; min-width: 0; }
.loyalty-center__card-icon { display: grid; flex: 0 0 auto; place-items: center; width: 38px; height: 38px; border-radius: 13px; color: #4d2d00; background: linear-gradient(145deg, #ffe58a, #ffc94f); box-shadow: inset 0 0 0 1px rgba(90,54,0,.08); font-size: 17px; font-weight: 900; }
.loyalty-center__card-heading { display: grid; min-width: 0; gap: 2px; }
.loyalty-center__card-heading h3, .loyalty-center__card-heading p { margin: 0; }
.loyalty-center__card-heading p { color: rgba(255,249,239,.58); font-size: 10px; line-height: 1.35; }
.loyalty-referral { display: grid; gap: 13px; margin: 0; }
.loyalty-referral__rewards { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
.loyalty-referral__reward { display: grid; gap: 3px; padding: 11px 12px; border: 1px solid rgba(255,255,255,.1); border-radius: 14px; background: rgba(255,255,255,.065); }
.loyalty-referral__reward span { color: rgba(255,249,239,.58); font-size: 10px; }
.loyalty-referral__reward strong { color: #ffd978; font-size: 18px; }
.loyalty-referral__code-label { margin-bottom: -6px; color: rgba(255,249,239,.58); font-size: 10px; font-weight: 750; }
.loyalty-referral__code-box { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; min-width: 0; padding: 8px 8px 8px 12px; border: 1px solid rgba(255,255,255,.12); border-radius: 14px; background: rgba(0,0,0,.14); }
.loyalty-referral__code { min-width: 0; overflow-wrap: anywhere; color: #fff9ef; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; font-weight: 800; letter-spacing: .05em; }
.loyalty-referral__copy { min-height: 36px; padding: 8px 11px; border: 0; border-radius: 10px; color: #4d2d00; background: #ffd66c; font: inherit; font-size: 11px; font-weight: 850; cursor: pointer; }
.loyalty-referral__copy:disabled { cursor: default; opacity: .78; }
.loyalty-referral__share { width: 100%; color: #4d2d00; background: linear-gradient(145deg, #ffe58a, #ffc94f); }
.loyalty-referral__activity { display: grid; gap: 10px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.12); }
.loyalty-referral__activity-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.loyalty-referral__activity-heading h4 { margin: 0; font-size: 15px; }
.loyalty-referral__activity-heading span { color: #ffd978; font-size: 10px; font-weight: 800; }
.loyalty-referral__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.loyalty-referral__stat { display: grid; gap: 3px; min-width: 0; padding: 9px 7px; border: 1px solid rgba(255,255,255,.08); border-radius: 12px; background: rgba(255,255,255,.055); text-align: center; }
.loyalty-referral__stat span { color: rgba(255,249,239,.55); font-size: 9px; }
.loyalty-referral__stat strong { overflow-wrap: anywhere; color: #fff9ef; font-size: 14px; }
.loyalty-referral__limit { display: grid; gap: 3px; color: rgba(255,249,239,.58); }
.loyalty-referral__limit .muted { color: inherit; }
.loyalty-referral__limit-reached { color: #ffd978; font-size: 12px; }
.loyalty-referral__history-button { width: 100%; border-color: rgba(255,255,255,.16); color: #fff9ef; }
.loyalty-referral__history { display: grid; gap: 7px; }
.loyalty-referral__history[hidden] { display: none; }
.loyalty-referral__history .empty-state { color: rgba(255,249,239,.58); }
.loyalty-referral__history-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px; border: 1px solid rgba(255,255,255,.1); border-radius: 12px; background: rgba(255,255,255,.055); }
.loyalty-referral__history-item > div { display: grid; gap: 3px; min-width: 0; }
.loyalty-referral__history-item small, .loyalty-referral__history-item time { color: rgba(255,249,239,.58); line-height: 1.35; }
.loyalty-referral__history-result { justify-items: end; text-align: right; }
.loyalty-referral__history-result time { font-size: 10px; }
.loyalty-offers { display: grid; gap: 13px; }
.loyalty-tabs { background: rgba(0,0,0,.16); }
.loyalty-tab { color: rgba(255,249,239,.58); }
.loyalty-tab--active { color: #4d2d00; background: linear-gradient(145deg, #ffe58a, #ffc94f); box-shadow: none; }
.loyalty-offer-card { border-color: rgba(255,255,255,.1); color: #fff9ef; background: rgba(255,255,255,.06); }
.loyalty-offer-card__summary { display: grid; grid-template-columns: 34px minmax(0,1fr) auto; }
.loyalty-offer-card__icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; color: #4d2d00; background: #ffd66c; font-weight: 900; }
.loyalty-offer-card__description, .loyalty-offer-card__period, .loyalty-offer-card__full-description, .loyalty-offer-card__meta, .loyalty-offer-detail ul { color: rgba(255,249,239,.58); }
.loyalty-offer-card__chevron { color: #ffd978; }
.loyalty-offer-card__detail { border-top-color: rgba(255,255,255,.1); }
.loyalty-center__enrollment .secondary-button { border-color: rgba(255,255,255,.16); color: #fff9ef; }
.crm-recipient-card-list {
  display: grid;
  gap: 10px;
  max-height: 360px;
  overflow-y: auto;
  overflow-x: hidden;
}

.crm-recipient-card {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  cursor: pointer;
  display: flex;
  gap: 12px;
  min-height: 52px;
  padding: 12px;
  width: 100%;
}

.crm-recipient-card__copy {
  display: grid;
  min-width: 0;
}

.crm-recipient-card__copy strong,
.crm-recipient-card__copy small {
  overflow-wrap: anywhere;
}

.crm-customer-picker { display: grid; gap: 9px; min-width: 0; }
.crm-customer-picker__toolbar { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 7px; }
.crm-customer-picker__toolbar > input { min-width: 0; min-height: 46px; padding: 10px 13px; border: 1px solid #ded1c7; border-radius: 13px; color: #2b211a; background: #fff; font: inherit; }
.crm-customer-picker__filter, .crm-customer-picker__clear { width: auto; min-height: 46px; padding: 9px 12px; white-space: nowrap; }
.crm-customer-picker__filter.is-active { color: #fff; border-color: #b43d28; background: #b43d28; }
.crm-customer-picker__summary { color: #963a27; font-size: 12px; font-weight: 900; }
.crm-customer-picker__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.crm-customer-picker__chips:empty { display: none; }
.crm-customer-picker__chip { width: auto; min-height: 32px; padding: 6px 10px; border: 1px solid #efb4a5; border-radius: 999px; color: #8e321f; background: #fff0eb; font: inherit; font-size: 11px; font-weight: 850; cursor: pointer; }
.crm-customer-picker__list { display: grid; max-height: 330px; gap: 7px; overflow-y: auto; padding: 7px; border: 1px solid #ded5cd; border-radius: 15px; background: #faf7f3; overscroll-behavior: contain; }
.crm-customer-picker__option { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr) 26px; align-items: center; gap: 9px; min-height: 64px; padding: 9px 10px; border: 1px solid transparent; border-radius: 13px; color: #2b211a; background: #fff; cursor: pointer; transition: border-color .16s ease, background .16s ease, transform .16s ease; }
.crm-customer-picker__option:hover { border-color: #edc2b7; transform: translateY(-1px); }
.crm-customer-picker__option[hidden] { display: none; }
.crm-customer-picker__option > input { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.crm-customer-picker__option:focus-within { outline: 2px solid #dc583d; outline-offset: 2px; }
.crm-customer-picker__avatar { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 12px; color: #7f3b1d; background: linear-gradient(145deg, #ffe58d, #ffc94f); font-size: 15px; font-weight: 950; }
.crm-customer-picker__copy { display: grid; min-width: 0; gap: 3px; }
.crm-customer-picker__copy strong { overflow-wrap: anywhere; font-size: 13px; line-height: 1.25; }
.crm-customer-picker__copy small { overflow-wrap: anywhere; color: #7d6e64; font-size: 11px; line-height: 1.3; }
.crm-customer-picker__mark { display: grid; width: 25px; height: 25px; place-items: center; border-radius: 50%; color: transparent; background: #eee8e2; font-weight: 950; }
.crm-customer-picker__option--selected { border-color: #ec9e8b; background: #fff1ec; box-shadow: 0 6px 16px rgba(153, 52, 31, .08); }
.crm-customer-picker__option--selected .crm-customer-picker__mark { color: #fff; background: #e94a2f; }
.crm-customer-picker__empty { margin: 0; padding: 18px; border: 1px dashed #d8cbc2; border-radius: 13px; color: #7d6e64; text-align: center; }
.crm-customer-picker__empty[hidden] { display: none; }

@media (max-width: 720px) {
  .crm-customer-picker__toolbar { grid-template-columns: minmax(0, 1fr) auto; }
  .crm-customer-picker__toolbar > input { grid-column: 1 / -1; }
  .crm-customer-picker__filter, .crm-customer-picker__clear { width: 100%; min-height: 42px; }
  .crm-customer-picker__list { max-height: 350px; padding: 6px; }
  .crm-customer-picker__option { grid-template-columns: 38px minmax(0, 1fr) 24px; gap: 8px; min-height: 62px; padding: 8px; }
  .crm-customer-picker__avatar { width: 38px; height: 38px; }
}

.crm-warning-card {
  background: rgba(255, 176, 32, 0.1);
  border: 1px solid rgba(255, 176, 32, 0.35);
  border-radius: 14px;
  max-width: 100%;
  overflow-wrap: anywhere;
  padding: 14px;
}

.crm-builder-scenario .crm-menu-card__icon {
  align-items: center;
  background: rgba(170, 67, 22, 0.12);
  border-radius: 12px;
  display: inline-flex;
  font-weight: 900;
  height: 40px;
  justify-content: center;
  width: 40px;
}

.crm-personal-discount-builder,
.crm-builder-preview,
.crm-builder-success {
  min-width: 0;
  overflow-wrap: anywhere;
}

.crm-builder-success {
  border-color: rgba(40, 132, 76, 0.35);
  display: grid;
  gap: 14px;
}

.crm-builder-success h3 {
  margin: 0;
}

.workspace-shell[hidden],
#customer-workspace-root[hidden] {
  display: none !important;
}

body[data-workspace-mode]:not([data-workspace-mode="customer"]) {
  overflow: hidden;
  padding-bottom: 0;
}

.workspace-shell {
  background: #f6f2ec;
  box-sizing: border-box;
  color: #271d16;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  height: 100vh;
  height: var(--tg-viewport-height, 100dvh);
  min-height: 0;
  overflow: hidden;
  padding: env(safe-area-inset-top) env(safe-area-inset-right)
    env(safe-area-inset-bottom) env(safe-area-inset-left);
  width: 100%;
}

.workspace-shell__header {
  align-items: center;
  background: #17130f;
  color: #fff8ef;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  padding: 20px clamp(16px, 4vw, 36px);
}

.workspace-shell__header h1,
.workspace-shell__header p {
  margin: 0;
}

.workspace-shell__return {
  flex: 0 0 auto;
}

.workspace-shell__layout {
  display: grid;
  grid-template-columns: minmax(190px, 260px) minmax(0, 1fr);
  min-height: 0;
  overflow: hidden;
}

.workspace-navigation {
  align-content: start;
  background: #fffaf4;
  border-right: 1px solid rgba(74, 50, 34, 0.14);
  display: grid;
  gap: 8px;
  overflow-y: auto;
  padding: 18px 14px;
}

.workspace-navigation__item {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 12px;
  color: inherit;
  cursor: pointer;
  font: inherit;
  font-weight: 750;
  display: flex;
  gap: 8px;
  justify-content: space-between;
  padding: 12px 14px;
  text-align: left;
}

.workspace-navigation__item:hover,
.workspace-navigation__item.is-active {
  background: rgba(170, 67, 22, 0.12);
  color: #8d3514;
}

.workspace-content {
  box-sizing: border-box;
  color: #271d16;
  min-height: 0;
  min-width: 0;
  overscroll-behavior: contain;
  overflow-x: hidden;
  overflow-y: auto;
  padding: clamp(18px, 4vw, 40px);
  -webkit-overflow-scrolling: touch;
}

@media (min-width: 1280px) {
  .workspace-shell {
    height: 100dvh;
  }
}

.workspace-home-heading {
  margin-bottom: 20px;
}

.workspace-home-heading h2,
.workspace-home-heading p {
  margin: 0 0 8px;
}

.workspace-overview {
  background: linear-gradient(145deg, #fff8ef, #fff);
  border: 1px solid rgba(145, 85, 38, 0.18);
  border-radius: 18px;
  margin-bottom: 24px;
  padding: clamp(16px, 3vw, 24px);
}

.workspace-overview__header h3,
.workspace-overview__header p {
  margin: 0 0 6px;
}

.workspace-overview__period {
  align-items: end;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.workspace-overview__period label {
  color: #75665a;
  display: grid;
  font-size: 13px;
  gap: 4px;
}

.workspace-overview__period input {
  background: #fff;
  border: 1px solid rgba(74, 50, 34, 0.2);
  border-radius: 10px;
  color: inherit;
  font: inherit;
  min-height: 42px;
  padding: 0 10px;
}

.workspace-overview__hint {
  color: #75665a;
  display: block;
  margin-top: 8px;
}

.workspace-overview__body {
  margin-top: 16px;
}

.workspace-overview__metrics {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 155px), 1fr));
}

.workspace-overview__metric {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(74, 50, 34, 0.1);
  border-radius: 13px;
  display: grid;
  gap: 6px;
  padding: 14px;
}

.workspace-overview__metric span {
  color: #75665a;
  font-size: 13px;
}

.workspace-overview__metric strong {
  color: #271d16 !important;
  font-size: clamp(18px, 4vw, 24px);
  overflow-wrap: anywhere;
}

.workspace-content .admin-details dd,
.workspace-content .crm-customer-metric strong,
.workspace-content .loyalty-referral__stat strong {
  color: #271d16 !important;
}

.workspace-overview__error {
  color: #9b2c2c;
}

.workspace-section-cards {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}

.workspace-section-card {
  align-content: start;
  background: #fff;
  border: 1px solid rgba(74, 50, 34, 0.14);
  border-radius: 16px;
  color: inherit;
  cursor: pointer;
  display: grid;
  font: inherit;
  gap: 8px;
  min-width: 0;
  padding: 18px;
  position: relative;
  text-align: left;
}

.workspace-attention-badge {
  align-items: center;
  background: #e83f27;
  border: 2px solid #fffaf4;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(182, 42, 24, 0.24);
  color: #fff;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 900;
  justify-content: center;
  line-height: 1;
  min-height: 22px;
  min-width: 22px;
  padding: 0 6px;
}

.workspace-attention-badge[hidden] { display: none; }
.workspace-section-card > .workspace-attention-badge { position: absolute; right: 13px; top: 13px; }

.workspace-section-card__icon {
  font-size: 24px;
}

.workspace-section-card small,
.workspace-empty-state {
  color: #75665a;
  overflow-wrap: anywhere;
}

/* Admin home cards v190: tactile section launchers without changing the home navigation. */
.workspace-home-cards {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  gap: 14px;
}

.workspace-home-card {
  grid-template-columns: 68px minmax(0, 1fr) 42px;
  align-items: center;
  align-content: center;
  gap: 16px;
  min-height: 146px;
  overflow: hidden;
  padding: 20px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 0 0, rgba(239, 71, 43, .12), transparent 44%),
    linear-gradient(145deg, #fffdf9, #fff8ef);
  box-shadow: 0 10px 26px rgba(58, 38, 22, .07);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.workspace-home-card:hover,
.workspace-home-card:focus-visible {
  border-color: rgba(225, 69, 41, .38);
  box-shadow: 0 16px 34px rgba(58, 38, 22, .12);
  transform: translateY(-3px);
}

.workspace-home-card:focus-visible { outline: 3px solid rgba(225, 69, 41, .16); outline-offset: 2px; }
.workspace-home-card > .workspace-section-card__icon {
  display: grid;
  width: 68px;
  height: 68px;
  place-items: center;
  border: 1px solid rgba(225, 69, 41, .13);
  border-radius: 22px;
  background: linear-gradient(145deg, #fff4e8, #ffd9cc);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.86), 0 8px 18px rgba(172, 70, 35, .1);
}
.workspace-home-card > .workspace-section-card__icon .dimensional-icon { width: 46px; height: 46px; }
.workspace-home-card__copy { display: grid; gap: 5px; min-width: 0; }
.workspace-home-card__eyebrow { color: #c83b25; font-size: 9px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.workspace-home-card__copy strong { font-size: 19px; line-height: 1.15; }
.workspace-home-card__copy small { color: #75665a; font-size: 11px; line-height: 1.45; }
.workspace-home-card__arrow {
  position: relative;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  justify-self: end;
  border: 1px solid rgba(74, 50, 34, .13);
  border-radius: 14px;
  color: #a43820;
  background: rgba(255,255,255,.72);
  font-size: 0;
  line-height: 0;
  transition: color .18s ease, background .18s ease, transform .18s ease;
}
.workspace-home-card__arrow::before {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 2px;
  border-radius: 99px;
  background: currentColor;
  content: "";
  transform: translate(-58%, -50%);
}
.workspace-home-card__arrow::after {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 6px;
  height: 6px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  content: "";
  transform: translate(0, -50%) rotate(45deg);
}
.workspace-home-card:hover .workspace-home-card__arrow,
.workspace-home-card:focus-visible .workspace-home-card__arrow { color: #fff; background: #ed492d; transform: translateX(3px); }
.workspace-home-card > .workspace-attention-badge { left: 70px; right: auto; top: 14px; }

@media (max-width: 479px) {
  .workspace-home-cards { grid-template-columns: minmax(0, 1fr); gap: 11px; }
  .workspace-home-card { grid-template-columns: 58px minmax(0, 1fr) 36px; gap: 12px; min-height: 122px; padding: 15px; border-radius: 20px; }
  .workspace-home-card:hover { transform: none; }
  .workspace-home-card > .workspace-section-card__icon { width: 58px; height: 58px; border-radius: 18px; }
  .workspace-home-card > .workspace-section-card__icon .dimensional-icon { width: 40px; height: 40px; }
  .workspace-home-card__copy strong { font-size: 17px; }
  .workspace-home-card__copy small { font-size: 10px; line-height: 1.38; }
  .workspace-home-card__arrow { width: 36px; height: 36px; border-radius: 12px; }
  .workspace-home-card > .workspace-attention-badge { left: 59px; top: 9px; }
}

.catalog-page { display: grid; gap: 18px; }
.catalog-view-toggle { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; width: min(100%, 520px); }
.catalog-state { display: grid; gap: 12px; justify-items: start; }
.catalog-state p { margin: 0; }
.catalog-category-card {
  position: relative;
  display: grid;
  width: 100%;
  gap: 12px;
}
.catalog-category-card__open {
  display: grid;
  width: 100%;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.catalog-category-card > .catalog-action-menu { position: absolute; top: 12px; right: 12px; }
.catalog-category-card:has(> .catalog-action-menu) .catalog-category-card__open { padding-right: 50px; }
.catalog-category-card__copy { display: grid; gap: 5px; min-width: 0; }
.catalog-category-card__copy small { color: var(--muted); }
.catalog-category-card__arrow { font-size: 22px; }
.catalog-product-card__price { color: var(--muted); font-weight: 700; }
.catalog-product-card__description { margin: 12px 0 0; color: var(--muted); line-height: 1.5; white-space: pre-line; }
.admin-field__hint { color: var(--muted); font-size: 12px; line-height: 1.4; }
.catalog-product-card__facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.catalog-product-card__actions { display: flex; align-items: stretch; gap: 8px; margin-top: 14px; }
.catalog-product-card__edit, .catalog-product-card__availability { flex: 1 1 0; min-width: 0; }
.catalog-action-menu { position: relative; width: 46px; min-width: 46px; }
.catalog-action-menu__toggle { display: grid; width: 46px; min-height: 44px; padding: 0; place-items: center; border: 1px solid var(--line); border-radius: 13px; color: var(--ink); background: var(--card); cursor: pointer; font-size: 24px; font-weight: 900; line-height: 1; list-style: none; }
.catalog-action-menu__toggle::-webkit-details-marker { display: none; }
.catalog-action-menu[open] .catalog-action-menu__toggle { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.catalog-action-menu__items { position: absolute; z-index: 20; top: calc(100% + 6px); right: 0; display: grid; width: min(230px, calc(100vw - 48px)); overflow: hidden; padding: 5px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); box-shadow: 0 16px 34px rgba(23, 19, 15, 0.2); }
.catalog-action-menu__action { width: 100%; min-height: 41px; padding: 9px 11px; border: 0; border-radius: 10px; color: var(--ink); background: transparent; font-size: 12px; font-weight: 800; text-align: left; cursor: pointer; }
.catalog-action-menu__action:hover, .catalog-action-menu__action:active { background: rgba(23, 19, 15, 0.06); }
.catalog-action-menu__action--danger { color: #9d2f21; }
.catalog-editor__section h3 { margin: 0; }
.catalog-editor__form { margin-top: 14px; }
.catalog-image-uploader { display: grid; grid-template-columns: minmax(180px, 0.38fr) minmax(0, 1fr); gap: 14px; margin-top: 14px; }
.catalog-image-uploader__preview { grid-row: 1 / span 2; min-height: 190px; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: rgba(23, 19, 15, 0.04); }
.catalog-image-uploader__preview.is-empty { display: grid; padding: 20px; place-items: center; color: var(--muted); text-align: center; }
.catalog-image-uploader__image { display: block; width: 100%; height: 100%; min-height: 190px; object-fit: cover; }
.catalog-image-dropzone { display: grid; min-height: 132px; padding: 18px; place-items: center; align-content: center; gap: 7px; border: 2px dashed rgba(23, 19, 15, 0.24); border-radius: 16px; background: rgba(239, 71, 43, 0.035); text-align: center; cursor: pointer; transition: border-color 160ms ease, background 160ms ease; }
.catalog-image-dropzone span { color: var(--muted); font-size: 12px; line-height: 1.4; }
.catalog-image-dropzone.is-dragging, .catalog-image-dropzone:focus-visible { border-color: var(--accent); background: rgba(239, 71, 43, 0.1); outline: none; }
.catalog-image-dropzone .admin-button { margin-top: 4px; }
.catalog-image-uploader__actions { display: flex; align-items: center; gap: 12px; }
.catalog-image-uploader__actions .admin-button { flex: 0 0 auto; }
.catalog-editor__field--full { grid-column: 1 / -1; }
.catalog-confirmation__actions { max-width: 520px; margin-top: 0; }
.catalog-modifier-create h3, .catalog-modifier-options h4 { margin: 0; }
.catalog-modifier-form { margin-top: 14px; }
.catalog-modifier-group__limits { margin: 8px 0 0; color: var(--muted); }
.catalog-modifier-options { display: grid; gap: 12px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.catalog-modifier-option { padding: 14px; border-radius: 14px; background: rgba(23, 19, 15, 0.04); }
.catalog-modifier-option--new { background: rgba(239, 71, 43, 0.06); }
.catalog-modifier-actions { grid-column: 1 / -1; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
.catalog-addon-list { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.catalog-addon-card { align-items: end; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.catalog-addon-card__meta { grid-column: 1 / -1; margin: 0; color: var(--muted); }
.catalog-addon-card > .admin-button { min-height: 46px; }
.catalog-fact { padding: 6px 9px; border-radius: 99px; background: rgba(23, 19, 15, 0.07); font-size: 12px; font-weight: 700; }
.catalog-fact--available { color: #176b3a; background: rgba(37, 131, 75, 0.12); }
.catalog-fact--unavailable { color: #8a3529; background: rgba(167, 45, 29, 0.1); }

/* Catalog workbench v188: interactive lists, compact editors and live dish preview. */
.catalog-page > .admin-page-heading {
  padding: clamp(18px, 2.5vw, 28px);
  border: 1px solid rgba(67, 45, 29, .09);
  border-radius: 24px;
  background:
    radial-gradient(circle at 96% 5%, rgba(239, 71, 43, .1), transparent 17rem),
    linear-gradient(145deg, #fffdf9, #f7f0e7);
  box-shadow: 0 12px 32px rgba(63, 42, 24, .07);
}
.catalog-page > .admin-page-heading .admin-page-description { max-width: 720px; }
.catalog-page .admin-list-toolbar { grid-template-columns: minmax(0, 520px) auto auto; }
.catalog-finder {
  display: grid;
  min-width: 0;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 5px;
  padding: 0 12px;
  border: 1px solid rgba(67, 45, 29, .13);
  border-radius: 14px;
  background: rgba(255, 253, 249, .88);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.catalog-finder:focus-within { border-color: rgba(239, 71, 43, .55); box-shadow: 0 0 0 3px rgba(239, 71, 43, .09); }
.catalog-finder__icon { color: #8a7669; font-size: 22px; line-height: 1; }
.catalog-finder input { min-width: 0; min-height: 46px; padding: 0; border: 0; background: transparent; box-shadow: none; }
.catalog-finder input:focus { outline: 0; box-shadow: none; }
.catalog-page .admin-list-toolbar > .catalog-finder { grid-column: 1 / -1; }
.catalog-workbench {
  display: grid;
  width: 100%;
  min-width: 0;
  grid-column: 1 / -1;
  grid-template-columns: minmax(220px, .75fr) minmax(0, 1.25fr);
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}
.catalog-quick-filters { display: flex; min-width: 0; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.catalog-quick-filter {
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid rgba(67, 45, 29, .12);
  border-radius: 999px;
  color: #705f54;
  background: rgba(255,255,255,.66);
  font: inherit;
  font-size: 11px;
  font-weight: 850;
  cursor: pointer;
}
.catalog-quick-filter.is-active { border-color: #2e251f; color: #fff; background: #2e251f; }
.catalog-category-list { grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 12px; }
.catalog-category-list { isolation: isolate; }
.catalog-category-card {
  min-height: 104px;
  overflow: visible;
  padding: 0;
  border-color: rgba(67, 45, 29, .1);
  background: linear-gradient(145deg, #fffdf9, #fbf6ef);
  box-shadow: 0 8px 24px rgba(58, 38, 22, .06);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.catalog-category-card:hover { border-color: rgba(239, 71, 43, .28); box-shadow: 0 14px 30px rgba(58, 38, 22, .1); transform: translateY(-2px); }
.catalog-category-card__open {
  position: relative;
  min-height: 102px;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  padding: 16px 52px 16px 18px;
}
.catalog-category-card:has(> .catalog-action-menu) .catalog-category-card__open { padding-right: 116px; }
.catalog-category-card:has(> .catalog-action-menu[open]) { z-index: 50; }
.catalog-category-card__open::before {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 16px;
  color: #a63520;
  background: linear-gradient(145deg, #ffe2d8, #f7b9a7);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.72);
  content: "▦";
  font-size: 24px;
  font-weight: 900;
}
.catalog-category-card__copy strong { font-size: 16px; }
.catalog-category-card__arrow { position: absolute; top: 50%; right: 18px; color: #9c877a; transition: transform .18s ease; transform: translateY(-50%); }
.catalog-category-card:hover .catalog-category-card__arrow { transform: translate(3px, -50%); }
.catalog-category-card > .catalog-action-menu { z-index: 60; top: 29px; right: 58px; }
.catalog-product-list { grid-template-columns: repeat(auto-fit, minmax(min(100%, 390px), 1fr)); align-items: stretch; gap: 14px; }
.catalog-product-card {
  display: flex;
  min-width: 0;
  min-height: 260px;
  flex-direction: column;
  border-color: rgba(67, 45, 29, .1);
  background: linear-gradient(145deg, #fffdf9, #fbf6ef);
  box-shadow: 0 9px 26px rgba(58, 38, 22, .07);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.catalog-product-card:hover { border-color: rgba(239, 71, 43, .26); box-shadow: 0 15px 34px rgba(58, 38, 22, .11); transform: translateY(-2px); }
.catalog-product-card__header {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
}
.catalog-product-card__header > div:first-child { grid-column: 2; min-width: 0; }
.catalog-product-card__header > .admin-status { grid-column: 3; }
.catalog-product-card__media {
  grid-row: 1;
  grid-column: 1;
  width: 88px;
  height: 78px;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 16px;
  background: #efe4d7;
  cursor: pointer;
}
.catalog-product-card__media.is-empty { display: grid; place-items: center; color: #b2402b; background: linear-gradient(145deg, #ffe2d8, #f3c4b5); }
.catalog-product-card__image { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .22s ease; }
.catalog-product-card:hover .catalog-product-card__image { transform: scale(1.035); }
.catalog-product-card__initial { font-size: 29px; font-weight: 900; }
.catalog-product-card__price { display: block; margin-top: 6px; color: #a63520; font-size: 17px; font-weight: 900; }
.catalog-product-card__position { display: block; margin-top: 4px; color: #8a796d; font-size: 10px; font-weight: 800; }
.catalog-product-card__description { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.catalog-product-card__facts { margin-top: 12px; }
.catalog-fact--margin { color: #77530e; background: rgba(214, 157, 22, .14); }
.catalog-product-card__actions { margin-top: auto; padding-top: 15px; }
.catalog-product-card__edit { flex: 0 1 auto; }
.catalog-category-create { width: min(100%, 760px); margin-inline: auto; }
.catalog-category-create .catalog-editor__form { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
.catalog-category-create .catalog-editor__form > .admin-button { grid-column: auto; min-width: 190px; }
.catalog-product-create {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, .55fr);
  align-items: start;
  gap: 22px;
}
.catalog-product-create__form { margin-top: 0; }
.catalog-create-preview {
  position: sticky;
  top: 18px;
  overflow: hidden;
  border: 1px solid rgba(67, 45, 29, .12);
  border-radius: 20px;
  background: #221c18;
  box-shadow: 0 16px 36px rgba(45, 28, 17, .18);
}
.catalog-create-preview__eyebrow { display: block; padding: 12px 14px; color: #efb39f; font-size: 10px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.catalog-create-preview__media { display: grid; min-height: 170px; padding: 22px; place-items: center; color: rgba(255,255,255,.55); background: radial-gradient(circle at 50% 30%, #6a3d2d, #30231d 68%); font-size: 11px; text-align: center; }
.catalog-create-preview__copy { display: grid; gap: 9px; padding: 16px; color: #fff; }
.catalog-create-preview__copy > strong { font-size: 18px; }
.catalog-create-preview__copy p { min-height: 2.8em; margin: 0; color: rgba(255,255,255,.62); font-size: 12px; line-height: 1.45; white-space: pre-line; }
.catalog-create-preview__meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 4px; }
.catalog-create-preview__meta strong { color: #ffb39b; font-size: 18px; }
.catalog-create-preview__meta span { color: rgba(255,255,255,.55); font-size: 11px; }
.catalog-product-editor { grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr); align-items: start; }
.catalog-product-editor > .admin-page-heading { grid-column: 1 / -1; }
.catalog-editor__section--details { grid-row: 2 / span 2; grid-column: 1; }
.catalog-editor__section--price { grid-row: 2; grid-column: 2; }
.catalog-editor__section--cost { grid-row: 3; grid-column: 2; }
.catalog-editor__section--image { grid-column: 1 / -1; }
.catalog-product-editor .catalog-editor__form > .admin-button { width: fit-content; min-width: 180px; justify-self: end; }
.catalog-editor-nav { display: flex; width: 100%; grid-column: 1 / -1; flex-wrap: wrap; gap: 7px; margin-top: 8px; }
.catalog-editor-nav__item { min-height: 38px; padding: 8px 12px; border: 1px solid rgba(67,45,29,.12); border-radius: 999px; color: #6f5e53; background: rgba(255,255,255,.7); font: inherit; font-size: 11px; font-weight: 850; cursor: pointer; }
.catalog-editor-nav__item.is-active { border-color: #2e251f; color: #fff; background: #2e251f; }
.catalog-editor__section--image .catalog-image-uploader { grid-template-columns: minmax(220px, .42fr) minmax(0, .58fr); }

@media (max-width: 860px) {
  /* Catalog mobile fixes v189: keep media controls and image upload inside the viewport. */
  .catalog-product-create, .catalog-product-editor { grid-template-columns: minmax(0, 1fr); }
  .catalog-product-editor > .admin-page-heading,
  .catalog-editor__section--details,
  .catalog-editor__section--price,
  .catalog-editor__section--cost,
  .catalog-editor__section--image { grid-row: auto; grid-column: 1; }
  .catalog-create-preview { position: static; }
  .catalog-editor__section--image .catalog-image-uploader { grid-template-columns: minmax(0, 1fr); }
  .catalog-editor__section--image .catalog-image-uploader__preview { grid-row: auto; width: 100%; min-width: 0; }
  .catalog-editor__section--image .catalog-image-dropzone { width: 100%; min-width: 0; }
}

.analytics-page { display: grid; gap: 20px; }
.analytics-section-tabs {
  position: sticky;
  top: 8px;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
  padding: 7px;
  border: 1px solid rgba(72, 46, 31, 0.1);
  border-radius: 18px;
  background: color-mix(in srgb, var(--card) 94%, transparent);
  box-shadow: 0 12px 34px rgba(58, 35, 22, 0.09);
  backdrop-filter: blur(18px);
}
.analytics-section-tabs .admin-button { min-width: 0; min-height: 44px; padding-inline: 9px; }
.analytics-catalog-picker { display: grid; gap: 7px; padding: 13px 15px; border: 1px solid var(--line); border-radius: 15px; background: rgba(23, 19, 15, 0.035); }
.analytics-catalog-picker__label { color: var(--muted); font-size: 12px; font-weight: 750; }
.analytics-catalog-picker select { width: 100%; min-height: 44px; }
.analytics-filters {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(120px, 1fr) auto auto;
  gap: 12px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(145deg, var(--card), color-mix(in srgb, var(--card) 93%, #ffdfd4));
  box-shadow: 0 10px 28px rgba(67, 39, 24, 0.06);
}
.analytics-filters > .admin-button { align-self: end; white-space: nowrap; }
.analytics-period-presets {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.analytics-period-preset, .analytics-trend-switch {
  min-height: 34px;
  padding: 7px 13px;
  border: 1px solid rgba(74, 50, 34, 0.13);
  border-radius: 999px;
  color: #6d5a4d;
  background: rgba(255, 255, 255, 0.62);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.analytics-period-preset:is(:hover, .is-active), .analytics-trend-switch:is(:hover, .is-active) {
  border-color: var(--accent);
  color: #fff;
  background: var(--accent);
  box-shadow: 0 7px 17px rgba(239, 71, 43, 0.2);
}
.analytics-filters__advanced {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
}
.analytics-filters__advanced[hidden] { display: none; }
.analytics-filter-apply { min-width: 140px; }
.analytics-filter-toggle { min-width: 200px; }
.analytics-weekdays {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0;
  padding: 0;
  border: 0;
}
.analytics-weekdays legend { width: 100%; margin-bottom: 2px; }
.analytics-weekday { display: flex; align-items: center; gap: 5px; min-height: 38px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 11px; font-size: 12px; font-weight: 750; }
.analytics-weekday input { width: 16px; height: 16px; margin: 0; accent-color: var(--accent); }
.analytics-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.analytics-meta small { color: var(--muted); text-align: right; }
.analytics-card { display: grid; gap: 14px; }
.analytics-card .admin-card__header small:empty { display: none; }
.analytics-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.analytics-financial-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 9px; }
.analytics-results { display: grid; gap: 18px; }
.analytics-kpi-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.analytics-kpi {
  position: relative;
  display: grid;
  align-content: start;
  gap: 7px;
  min-height: 132px;
  padding: 17px;
  overflow: hidden;
  border: 1px solid rgba(74, 50, 34, 0.1);
  border-radius: 19px;
  background: linear-gradient(145deg, #fffaf6, #f8eee7);
  box-shadow: 0 10px 28px rgba(60, 37, 23, 0.07);
  color: var(--ink);
  font: inherit;
  text-align: left;
}
button.analytics-kpi { width: 100%; cursor: pointer; }
button.analytics-kpi:hover { transform: translateY(-2px); border-color: rgba(239,71,43,.35); box-shadow: 0 15px 32px rgba(60,37,23,.12); }
.analytics-kpi::after {
  position: absolute;
  right: -26px;
  bottom: -31px;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: rgba(239, 71, 43, 0.07);
  content: "";
}
.analytics-kpi--revenue {
  border-color: rgba(239, 71, 43, 0.34);
  color: #fff;
  background: linear-gradient(145deg, #ef472b, #c92f1b);
  box-shadow: 0 13px 30px rgba(212, 52, 29, 0.23);
}
.analytics-kpi--revenue::after { background: rgba(255, 255, 255, 0.11); }
.analytics-kpi__label { font-size: 11px; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.analytics-kpi__value { position: relative; z-index: 1; font-size: clamp(20px, 1.65vw, 29px); line-height: 1.06; overflow-wrap: anywhere; }
.analytics-kpi__hint { position: relative; z-index: 1; margin-top: auto; color: #827268; font-size: 11px; line-height: 1.35; }
.analytics-kpi--revenue .analytics-kpi__hint { color: rgba(255,255,255,.78); }
.analytics-details {
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
}
.analytics-details__summary { padding: 16px 2px; color: var(--ink); font-weight: 850; cursor: pointer; }
.analytics-details[open] .analytics-details__summary { border-bottom: 1px solid var(--line); }
.analytics-details > :last-child { margin-block: 14px 16px; }
.analytics-metric {
  display: grid;
  gap: 5px;
  min-width: 0;
  min-height: 72px;
  padding: 11px;
  border: 1px solid rgba(74, 50, 34, 0.1);
  border-radius: 13px;
  color: var(--ink);
  background: rgba(23, 19, 15, 0.035);
  font: inherit;
  text-align: left;
}
.analytics-metric:not(:disabled) { cursor: pointer; }
.analytics-metric:not(:disabled):hover { border-color: rgba(239, 71, 43, 0.35); background: rgba(239, 71, 43, 0.055); }
.analytics-metric:disabled { cursor: default; opacity: 1; }
.analytics-metric span { color: var(--muted); font-size: 11px; line-height: 1.35; }
.analytics-metric strong { color: #271d16 !important; overflow-wrap: anywhere; }
.analytics-quality, .analytics-formula { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.analytics-quality-summary { margin-top: 14px; }
.analytics-daily-heading { margin: 0; }
.analytics-daily-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 10px; }
.analytics-daily-card { box-shadow: none; }
.analytics-trend-card { display: grid; gap: 14px; padding: 17px; border: 1px solid var(--line); border-radius: 19px; background: var(--card); }
.analytics-trend-toolbar, .analytics-diagrams__heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.analytics-trend-toolbar :is(h3, p), .analytics-diagrams__heading :is(h3, p) { margin: 0; }
.analytics-trend-toolbar p, .analytics-diagrams__heading p { margin-top: 4px; color: var(--muted); font-size: 11px; }
.analytics-trend-switcher { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.analytics-chart { display: grid; grid-template-columns: repeat(auto-fit, minmax(52px, 1fr)); align-items: end; gap: 8px; min-height: 230px; padding: 14px; border: 0; border-radius: 15px; background: linear-gradient(180deg, rgba(239,71,43,.035), rgba(239,71,43,.012)); overflow-x: auto; }
.analytics-chart__item { display: grid; grid-template-rows: 152px auto; align-items: end; gap: 7px; min-width: 52px; text-align: center; }
.analytics-chart__item strong { font-size: 10px; overflow-wrap: anywhere; }
.analytics-chart__plot { position: relative; width: 100%; height: 152px; }
.analytics-chart__bar-slot { position: absolute; inset: auto 0 0; height: 132px; }
.analytics-chart__bar-slot > .analytics-chart__bar { position: absolute; inset: auto 0 0; }
.analytics-chart__value { position: absolute; right: 0; bottom: calc(var(--analytics-bar-height) + 5px); left: 0; z-index: 1; line-height: 1; white-space: nowrap; }
.analytics-chart__bar { align-self: end; width: 100%; height: var(--analytics-bar-height); min-height: 4px; border-radius: 9px 9px 3px 3px; background: linear-gradient(180deg, #ff9c82, var(--accent)); box-shadow: 0 5px 12px rgba(239,71,43,.16); transition: filter .18s ease, transform .18s ease; }
.analytics-chart__bar:hover { filter: saturate(1.2) brightness(1.03); transform: scaleX(1.04); }
.analytics-chart__item small { color: var(--muted); font-size: 10px; white-space: nowrap; }
.analytics-chart__bars { display: flex; align-items: end; align-self: end; gap: 4px; width: 100%; height: 132px; }
.analytics-chart__bars .analytics-chart__bar { flex: 1 1 0; }
.analytics-chart__bar--secondary { background: linear-gradient(180deg, #6fc6c3, #2b817e); box-shadow: 0 5px 12px rgba(43,129,126,.18); }
.analytics-chart__bar--positive { background: linear-gradient(180deg, #8fd6a5, #328c52); box-shadow: 0 5px 12px rgba(50,140,82,.18); }
.analytics-chart__bar--negative { background: linear-gradient(180deg, #ff9d91, #c83f31); }
.analytics-series-legend { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 15px; min-height: 20px; color: var(--muted); font-size: 10px; font-weight: 800; }
.analytics-series-legend span { display: inline-flex; align-items: center; gap: 6px; }
.analytics-series-legend span::before { width: 9px; height: 9px; border-radius: 3px; background: var(--accent); content: ""; }
.analytics-series-legend__secondary::before { background: #2b817e !important; }
.analytics-chart-dashboard { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.analytics-visual-card { display: grid; min-width: 0; gap: 12px; padding: 17px; border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(145deg, var(--card), color-mix(in srgb, var(--card) 95%, #ffe3d9)); box-shadow: 0 9px 26px rgba(61,36,22,.065); }
.analytics-visual-card__heading :is(h3, p) { margin: 0; }
.analytics-visual-card__heading h3 { font-size: 16px; }
.analytics-visual-card__heading p { margin-top: 4px; color: var(--muted); font-size: 11px; line-height: 1.4; }
.analytics-visual-card > .analytics-chart, .analytics-visual-card > .analytics-trend-card { min-height: 205px; padding: 8px; background: transparent; }
.analytics-visual-card > .analytics-trend-card { border: 0; box-shadow: none; }
.analytics-rank-chart { display: grid; gap: 11px; padding: 18px; border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(145deg, var(--card), color-mix(in srgb, var(--card) 95%, #ffe3d9)); box-shadow: 0 9px 26px rgba(61,36,22,.065); }
.analytics-rank-chart__title { margin: 0 0 3px; font-size: 15px; }
.analytics-rank-chart__item { display: grid; grid-template-columns: minmax(100px, 1fr) minmax(90px, 2fr) auto; align-items: center; gap: 9px; }
.analytics-rank-chart__label { min-width: 0; overflow: hidden; color: var(--ink); font-size: 12px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.analytics-rank-chart__track { height: 10px; overflow: hidden; border-radius: 99px; background: rgba(23, 19, 15, 0.065); }
.analytics-rank-chart__bar { width: var(--analytics-rank-width); min-width: 4px; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #ffab91, var(--accent)); box-shadow: 0 3px 9px rgba(239,71,43,.2); }
.analytics-rank-chart__item strong { font-size: 12px; text-align: right; }
.analytics-diagrams { display: grid; gap: 12px; }
.analytics-diagrams__toggle { min-width: 170px; justify-content: center; }
.analytics-diagrams__panel { display: grid; gap: 14px; margin-top: 10px; }
.analytics-donut-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); gap: 12px; }
.analytics-donut { display: grid; grid-template-columns: minmax(130px, .8fr) minmax(150px, 1.2fr); align-items: center; gap: 12px 16px; padding: 18px; border: 1px solid color-mix(in srgb, var(--line) 86%, #ef472b); border-radius: 20px; background: linear-gradient(145deg, var(--card), color-mix(in srgb, var(--card) 94%, #ffded3)); box-shadow: 0 9px 26px rgba(67, 38, 23, 0.075); }
.analytics-donut > :is(.analytics-donut__title, .analytics-donut__description, .empty-state) { grid-column: 1 / -1; }
.analytics-donut__title { margin: 0; font-size: 15px; letter-spacing: -0.01em; }
.analytics-donut__description { margin: -4px 0 0; color: var(--muted); font-size: 11px; line-height: 1.35; }
.analytics-donut__svg { display: block; width: min(100%, 205px); margin: 1px auto; overflow: visible; filter: drop-shadow(0 9px 12px rgba(55,37,27,.1)); }
.analytics-donut__slice { stroke: var(--card); stroke-width: 2; }
.analytics-donut__centre { fill: var(--card); stroke: color-mix(in srgb, var(--line) 70%, #244a56); stroke-width: 1; }
.analytics-donut__percentage { fill: #fff; font-size: 8px; font-weight: 800; paint-order: stroke; stroke: rgba(19, 37, 43, 0.5); stroke-width: 1.2px; }
.analytics-donut__total { fill: var(--ink); font-size: 11px; font-weight: 800; }
.analytics-donut__legend { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.analytics-donut__legend-item { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; align-items: center; gap: 7px; padding: 6px 0; border-bottom: 1px solid rgba(74,50,34,.07); color: var(--muted); font-size: 11px; }
.analytics-donut__legend-item > span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.analytics-donut__legend-item strong { color: var(--ink); font-size: 11px; text-align: right; }
.analytics-donut__marker { width: 10px; height: 10px; border-radius: 99px; }
.analytics-metric--emphasis { border-color: color-mix(in srgb, var(--accent) 25%, var(--line)); }
.analytics-drilldown:empty { display: none; }
.analytics-orders { position: sticky; bottom: 0; z-index: 2; border-color: rgba(239, 71, 43, 0.24); box-shadow: 0 12px 35px rgba(37, 25, 12, 0.14); }
.analytics-orders h3 { margin: 0; }
.analytics-order-list { display: grid; gap: 0; margin-top: 12px; max-height: min(48vh, 460px); overflow-y: auto; }
.analytics-order { display: grid; gap: 4px; padding: 11px 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.analytics-order span, .analytics-order small { color: var(--muted); font-size: 11px; }

@media (max-width: 1240px) {
  .analytics-section-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .analytics-kpi-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .analytics-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .analytics-filter-apply, .analytics-filter-toggle { width: 100%; min-width: 0; }
  .analytics-filters__advanced { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .analytics-trend-toolbar, .analytics-diagrams__heading { align-items: stretch; flex-direction: column; }
  .analytics-trend-switcher { justify-content: flex-start; }
  .analytics-diagrams__toggle { width: 100%; }
  .analytics-chart-dashboard { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 479px) {
  .profile-support-card { grid-template-columns: minmax(0, 1fr); }
  .profile-support-card__button { width: 100%; }
  .customer-support-intro__actions { grid-template-columns: minmax(0, 1fr); }
  .customer-support-card { grid-template-columns: auto minmax(0, 1fr); }
  .customer-support-card__side { grid-column: 2; grid-row: 2; justify-content: space-between; justify-items: start; grid-template-columns: auto auto; }
  .customer-support-card__arrow { display: none; }
  .customer-support-thread-overview { align-items: flex-start; flex-direction: column; }
  .catalog-category-card__open { grid-template-columns: 46px minmax(0, 1fr); gap: 10px; padding: 13px 116px 13px 14px; }
  .catalog-category-card__open::before { grid-row: 1 / span 2; grid-column: 1; width: 42px; height: 42px; border-radius: 14px; }
  .catalog-category-card__copy { grid-row: 1; grid-column: 2; }
  .catalog-category-card__open .admin-status { grid-row: 2; grid-column: 2; width: fit-content; }
  .catalog-category-card__arrow { top: 50%; right: 17px; }
  .catalog-page .admin-page-heading > .admin-button,
  .catalog-product-card__actions { width: 100%; min-width: 0; }
  .catalog-product-card__actions { flex-wrap: wrap; }
  .catalog-product-card__edit, .catalog-product-card__availability { flex-basis: calc(50% - 28px); }
  .catalog-confirmation__actions { grid-template-columns: minmax(0, 1fr); }
  .catalog-editor__form { grid-template-columns: minmax(0, 1fr); }
  .catalog-image-uploader { grid-template-columns: minmax(0, 1fr); }
  .catalog-image-uploader__preview { grid-row: auto; min-height: 180px; }
  .catalog-image-uploader__actions { align-items: stretch; flex-direction: column; }
  .catalog-editor__field--full { grid-column: auto; }
  .catalog-modifier-form, .catalog-modifier-option { grid-template-columns: minmax(0, 1fr); }
  .catalog-modifier-actions { grid-template-columns: minmax(0, 1fr); }
  .catalog-view-toggle { grid-template-columns: minmax(0, 1fr); }
  .catalog-page .admin-list-toolbar { grid-template-columns: minmax(0, 1fr); align-items: stretch; }
  .catalog-workbench { grid-template-columns: minmax(0, 1fr); }
  .catalog-quick-filters { justify-content: flex-start; }
  .catalog-category-create .catalog-editor__form { grid-template-columns: minmax(0, 1fr); }
  .catalog-category-create .catalog-editor__form > .admin-button { grid-column: 1; width: 100%; min-width: 0; }
  .catalog-product-card__header { grid-template-columns: 70px minmax(0, 1fr); }
  .catalog-product-card__media { width: 70px; height: 68px; }
  .catalog-product-card__header > .admin-status { grid-row: 2; grid-column: 2; width: fit-content; }
  .catalog-product-card__actions { display: grid; grid-template-columns: minmax(0, 1fr) 46px; }
  .catalog-product-card__edit { grid-column: 1 / -1; width: 100%; }
  .catalog-product-card__availability { grid-column: 1; width: 100%; }
  .catalog-product-card__actions > .catalog-action-menu { grid-column: 2; }
  .catalog-product-editor .catalog-editor__form > .admin-button { width: 100%; min-width: 0; justify-self: stretch; }
  .analytics-section-tabs { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .analytics-filters, .analytics-filters__advanced, .analytics-metrics, .analytics-financial-metrics { grid-template-columns: minmax(0, 1fr); }
  .analytics-period-presets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .analytics-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .analytics-kpi { min-height: 116px; padding: 14px; }
  .analytics-kpi__value { font-size: 21px; }
  .analytics-trend-switcher { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; }
  .analytics-trend-switch { min-width: 0; padding-inline: 7px; }
  .analytics-chart { grid-template-columns: repeat(auto-fit, minmax(46px, 1fr)); gap: 6px; padding: 10px; }
  .analytics-rank-chart__item { grid-template-columns: minmax(80px, 1fr) minmax(72px, 1.4fr) auto; gap: 7px; }
  .analytics-rank-chart__item strong { font-size: 11px; }
  .analytics-donut { padding: 12px; }
  .analytics-donut { grid-template-columns: minmax(0, 1fr); }
  .analytics-donut > :is(.analytics-donut__title, .analytics-donut__description, .empty-state) { grid-column: 1; }
  .analytics-donut__svg { width: min(78vw, 220px); }
  .analytics-donut__legend-item { grid-template-columns: 9px minmax(0, 1fr) auto; gap: 6px; }
  .analytics-meta, .analytics-orders .admin-card__header { align-items: stretch; flex-direction: column; }
  .analytics-meta small { text-align: left; }
  .analytics-orders .admin-button { width: 100%; }
}

@media (max-width: 720px) {
  .workspace-shell__header {
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }

  .workspace-shell__return {
    width: 100%;
  }

  .workspace-shell__layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
  }

  .workspace-navigation {
    border-bottom: 1px solid rgba(74, 50, 34, 0.14);
    border-right: 0;
    display: flex;
    overflow-x: auto;
    padding: 10px 12px;
  }

  .workspace-navigation__item {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .workspace-content {
    padding: 16px;
  }
}

@media (min-width: 1024px) {
  body {
    background:
      radial-gradient(circle at 88% 8%, rgba(232, 75, 44, 0.14), transparent 32rem),
      linear-gradient(135deg, #e8e0d5, #f6f1e9 48%, #e9e1d6);
  }

  #customer-workspace-root {
    width: 100%;
    min-height: 100vh;
    background: var(--paper);
  }

  .hero,
  .categories,
  .menu-section {
    padding-right: clamp(32px, 4vw, 52px);
    padding-left: clamp(32px, 4vw, 52px);
  }

  .categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
    overflow: visible;
  }

  .category-pill {
    display: grid;
    width: 100%;
    min-width: 0;
    min-height: 42px;
    place-items: center;
    text-align: center;
    white-space: normal;
  }

  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(210px, 240px));
    gap: 16px;
    justify-content: start;
  }

  .product-card__image {
    aspect-ratio: 1.28;
  }

  .floating-cart {
    right: auto;
    left: 50%;
    width: min(760px, calc(100vw - 64px));
    transform: translateX(-50%);
  }

  .sheet,
  .order-review-dialog {
    width: min(760px, calc(100vw - 64px));
    max-height: min(86vh, 900px);
    margin: auto;
    border-radius: 25px;
  }

  .sheet--support {
    height: min(86vh, 820px);
    max-height: min(86vh, 820px);
  }

  .order-review-dialog {
    width: min(560px, calc(100vw - 64px));
  }

  .toast {
    right: auto;
    left: 50%;
    width: min(460px, calc(100vw - 56px));
    transform: translate(-50%, 14px);
  }

  .toast--visible { transform: translate(-50%, 0); }

  .workspace-shell {
    width: 100%;
  }

  .workspace-content > * {
    width: 100%;
  }
}

@media (min-width: 860px) {
  #product-dialog {
    width: min(840px, calc(100vw - 48px));
    max-height: min(72vh, 680px);
    padding: 16px;
    overflow-y: auto;
    border-radius: 25px;
  }

  #product-dialog > .sheet__handle { display: none; }
  #product-dialog > .sheet__close {
    position: absolute;
    top: 24px;
    right: 24px;
    float: none;
  }

  .product-dialog__layout {
    display: grid;
    grid-template-columns: minmax(260px, .85fr) minmax(340px, 1.15fr);
    gap: clamp(20px, 2.5vw, 30px);
    align-items: stretch;
  }

  .product-dialog__media {
    position: sticky;
    top: 0;
    align-self: start;
  }

  .product-dialog__image {
    width: 100%;
    max-height: min(380px, calc(min(72vh, 680px) - 32px));
    aspect-ratio: 1 / 1.05;
  }

  .product-dialog__body {
    padding: 8px 44px 0 0;
  }

  .product-dialog__body h2 { margin-top: 0; font-size: clamp(27px, 3vw, 36px); }
}

@media (min-width: 680px) {
  .navigation-sheet {
    width: min(400px, calc(100vw - 32px));
    height: 100dvh;
    max-height: 100dvh;
    margin: 0 auto 0 0;
    padding: 22px 24px calc(24px + env(safe-area-inset-bottom));
    border-radius: 0 25px 25px 0;
  }

  .navigation-sheet .sheet__handle { display: none; }
  .navigation-sheet .navigation-menu { grid-template-columns: minmax(0, 1fr); }
}

@media (min-width: 1600px) {
  .review-card-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }
}

.onboarding { width: min(100% - 28px, 480px); margin: auto; padding: clamp(24px, 7vw, 42px); border: 0; border-radius: 30px; color: #271d16; background: radial-gradient(circle at 90% 5%, #ffd96a 0 16%, transparent 17%), linear-gradient(145deg, #fff9e9, #f4e5c4); box-shadow: 0 28px 80px rgba(23, 19, 15, .35); }
.onboarding::backdrop { background: rgba(23, 19, 15, .82); backdrop-filter: blur(10px); }
.onboarding__mark { display: grid; place-items: center; width: 58px; height: 58px; margin-bottom: 24px; border-radius: 18px; color: #fff8e8; background: #d94b2b; font: 900 20px/1 Georgia, serif; transform: rotate(-4deg); }
.onboarding h1 { max-width: 360px; margin: 8px 0 12px; font: 800 clamp(34px, 10vw, 52px)/.96 Georgia, serif; letter-spacing: -.045em; }
.onboarding__lead, .onboarding__note { line-height: 1.5; }
.onboarding__form { display: grid; gap: 14px; margin-top: 26px; }
.onboarding__form label { display: grid; gap: 8px; font-weight: 800; }
.onboarding__form input { width: 100%; min-width: 0; padding: 16px 18px; border: 2px solid #271d16; border-radius: 16px; color: #271d16; background: rgba(255,255,255,.72); font: inherit; font-size: 18px; }
.onboarding__form .primary-button { width: 100%; min-height: 52px; }
.onboarding__error { margin: 0; color: #a92e1a; font-weight: 800; }
.onboarding__note { margin: 18px 0 0; font-size: 12px; opacity: .72; }

/* Customer visual refresh. Keep customer structure and behaviour unchanged. */
#customer-workspace-root {
  --customer-surface: #fffdf9;
  --customer-surface-soft: #f1e9de;
  --customer-line: rgba(48, 35, 25, 0.1);
  --customer-shadow-sm: 0 8px 24px rgba(55, 38, 22, 0.07);
  --customer-shadow-md: 0 18px 46px rgba(55, 38, 22, 0.12);
  min-height: 100vh;
  background:
    radial-gradient(circle at 8% 28%, rgba(255, 255, 255, 0.72), transparent 24rem),
    linear-gradient(180deg, #f8f3eb 0, var(--paper) 32rem);
}

#customer-workspace-root .hero {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background:
    radial-gradient(circle at 76% -45%, rgba(255, 255, 255, 0.1), transparent 25rem),
    linear-gradient(135deg, #1b1714 0%, #120f0d 72%);
}

#customer-workspace-root .hero h1 {
  line-height: 0.98;
  text-wrap: balance;
}

#customer-workspace-root .hero__description {
  max-width: 36rem;
  color: rgba(255, 249, 239, 0.7);
}

#customer-workspace-root .icon-button {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.075);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(10px);
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

#customer-workspace-root .categories {
  align-items: stretch;
  padding-top: 20px;
}

#customer-workspace-root .category-pill {
  min-height: 42px;
  border-color: var(--customer-line);
  color: #2a211a;
  background: color-mix(in srgb, var(--customer-surface) 88%, transparent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
  line-height: 1.2;
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

#customer-workspace-root .category-pill[aria-current="true"] {
  border-color: #214eaa;
  color: #fff;
  background: linear-gradient(145deg, #2f6fe4, #214eaa);
  box-shadow: 0 7px 18px rgba(33, 78, 170, 0.24);
}

#customer-workspace-root .section-heading {
  align-items: end;
}

#customer-workspace-root .section-heading h2 {
  line-height: 1;
}

#customer-workspace-root .result-count {
  padding-bottom: 3px;
  font-variant-numeric: tabular-nums;
}

#customer-workspace-root .product-grid {
  align-items: stretch;
}

#customer-workspace-root .home-showcase {
  padding: 16px 20px 8px;
}

#customer-workspace-root .home-showcase[hidden] { display: none; }
#customer-workspace-root .home-showcase__heading {
  justify-content: center;
  margin-bottom: 14px;
  text-align: center;
}
#customer-workspace-root .home-showcase__heading > div { width: 100%; }
#customer-workspace-root .home-showcase__heading h2 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: clamp(30px, 9vw, 44px);
  letter-spacing: -.04em;
}
#customer-workspace-root .home-showcase__title-icon { display: block; line-height: 1; transform: translateY(-1px); }
#customer-workspace-root .home-showcase__tagline { margin: 7px 0 0; }
#customer-workspace-root .home-showcase__blocks { display: grid; min-width: 0; gap: 22px; }
#customer-workspace-root .home-showcase__empty {
  display: grid;
  min-height: 116px;
  place-content: center;
  gap: 7px;
  padding: 22px;
  border: 1px solid rgba(239, 167, 25, .2);
  border-radius: 22px;
  color: rgba(241, 238, 231, .58);
  background: linear-gradient(135deg, rgba(239, 167, 25, .08), rgba(36, 36, 34, .92));
  text-align: center;
}
#customer-workspace-root .home-showcase__empty strong { color: #f1eee7; font-size: 16px; }
#customer-workspace-root .home-showcase__empty span { font-size: 12px; line-height: 1.4; }
#customer-workspace-root .category-pill--hot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-weight: 900;
  text-align: center;
}
#customer-workspace-root .category-pill--hot__label,
#customer-workspace-root .category-pill--hot__icon { display: block; line-height: 1; }
#customer-workspace-root .category-pill--hot__icon { transform: translateY(-.5px); }
#customer-workspace-root .showcase-carousel { position: relative; min-width: 0; }
#customer-workspace-root .showcase-carousel__rail {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  touch-action: pan-y;
}
#customer-workspace-root .showcase-carousel__rail.is-touch-dragging { scroll-snap-type: none; }
#customer-workspace-root .showcase-carousel__rail::-webkit-scrollbar,
#customer-workspace-root .showcase-popular__rail::-webkit-scrollbar { display: none; }
#customer-workspace-root .showcase-banner {
  position: relative;
  display: flex;
  min-width: 100%;
  aspect-ratio: 2 / 1;
  align-items: flex-end;
  overflow: hidden;
  padding: 22px;
  border: 1px solid color-mix(in srgb, var(--customer-theme-accent) 55%, transparent);
  border-radius: 24px;
  color: #fff;
  background-color: #111;
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  box-shadow: 0 16px 34px rgba(0,0,0,.2);
  text-align: left;
  scroll-snap-align: center;
  scroll-snap-stop: always;
}
#customer-workspace-root .showcase-banner__copy { display: grid; max-width: min(78%, 420px); gap: 7px; }
#customer-workspace-root .showcase-banner__copy strong { font-size: clamp(18px, 4.6vw, 25px); line-height: 1.08; text-wrap: balance; }
#customer-workspace-root .showcase-banner__copy small { color: rgba(255,255,255,.76); font-size: 13px; line-height: 1.35; }
#customer-workspace-root .showcase-banner__action { width: fit-content; margin-top: 5px; padding: 8px 13px; border-radius: 999px; color: #17120d; background: var(--customer-theme-accent); font-size: 12px; font-weight: 900; }
html[data-customer-theme="light"] #customer-workspace-root .showcase-carousel:not(.showcase-carousel--single) .showcase-banner {
  border-color: rgba(232, 75, 44, .82);
  box-shadow: none;
}
#customer-workspace-root .showcase-carousel__dots { display: flex; justify-content: center; gap: 7px; padding-top: 10px; }
#customer-workspace-root .showcase-carousel__dot { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 99px; background: color-mix(in srgb, var(--customer-theme-muted) 42%, transparent); transition: width 160ms ease, background 160ms ease; }
#customer-workspace-root .showcase-carousel__dot.is-active { width: 24px; background: var(--customer-theme-accent); }
#customer-workspace-root .showcase-carousel__arrow { display: none; }
#customer-workspace-root .showcase-carousel--single .showcase-carousel__rail { overflow: visible; }
#customer-workspace-root .showcase-carousel--single .showcase-banner { width: 100%; min-width: 100%; }
#customer-workspace-root .showcase-block-heading { margin-bottom: 12px; }
#customer-workspace-root .showcase-block-heading h3 { margin: 0 0 4px; color: var(--customer-theme-text); font-size: 25px; line-height: 1; }
#customer-workspace-root .showcase-block-heading p { margin: 0; color: var(--customer-theme-muted); font-size: 12px; }
#customer-workspace-root .showcase-popular { min-width: 0; }
#customer-workspace-root .showcase-popular__rail { display: flex; width: 100%; max-width: 100%; gap: 12px; overflow-x: auto; padding: 2px 0 10px; scroll-snap-type: x proximity; scrollbar-width: none; }
#customer-workspace-root .showcase-popular__rail .product-card { width: min(45vw, 190px); min-width: min(45vw, 190px); scroll-snap-align: start; }

@media (min-width: 760px) {
  #customer-workspace-root .home-showcase { padding-right: max(32px, calc((100vw - 760px) / 2)); padding-left: max(32px, calc((100vw - 760px) / 2)); }
  #customer-workspace-root .showcase-popular__rail .product-card { width: 190px; min-width: 190px; }
}

@media (min-width: 1024px) {
  #customer-workspace-root .home-showcase {
    padding-right: max(32px, calc((100vw - 1440px) / 2));
    padding-left: max(32px, calc((100vw - 1440px) / 2));
  }
  #customer-workspace-root .showcase-carousel__rail { gap: 16px; scroll-padding-inline: 2px; }
  #customer-workspace-root .showcase-banner {
    min-width: calc((100% - 16px) / 2);
    scroll-snap-align: start;
  }
  #customer-workspace-root .showcase-carousel__dots { display: none; }
  #customer-workspace-root .showcase-carousel--many .showcase-carousel__dots { display: flex; }
}

@media (min-width: 1440px) {
  #customer-workspace-root .showcase-banner { min-width: calc((100% - 32px) / 3); }
}

@media (min-width: 1024px) and (hover: hover) and (pointer: fine) {
  #customer-workspace-root .showcase-carousel__arrow {
    position: absolute;
    z-index: 3;
    top: 50%;
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    padding: 0 0 5px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 50%;
    color: #fff;
    background: rgba(18, 18, 17, .82);
    box-shadow: 0 9px 24px rgba(0, 0, 0, .34);
    font-size: 38px;
    line-height: 1;
    opacity: 0;
    transform: translateY(-50%);
    transition: opacity 160ms ease, background 160ms ease, transform 160ms ease;
  }
  #customer-workspace-root .showcase-carousel__arrow--previous { left: -18px; }
  #customer-workspace-root .showcase-carousel__arrow--next { right: -18px; }
  #customer-workspace-root .showcase-carousel:hover .showcase-carousel__arrow,
  #customer-workspace-root .showcase-carousel:focus-within .showcase-carousel__arrow { opacity: 1; }
  #customer-workspace-root .showcase-carousel__arrow:hover:not(:disabled) { background: #343431; transform: translateY(-50%) scale(1.06); }
  #customer-workspace-root .showcase-carousel__arrow:disabled { opacity: .24; cursor: default; }
}

#customer-workspace-root .product-card {
  height: 100%;
  border-color: var(--customer-line);
  border-radius: 20px;
  background: var(--customer-surface);
  box-shadow: var(--customer-shadow-sm);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

#customer-workspace-root .product-card__button {
  display: flex;
  height: 100%;
  flex-direction: column;
}

#customer-workspace-root .product-card__image {
  transition: transform 280ms ease, filter 280ms ease;
}

#customer-workspace-root .product-card .image-placeholder {
  color: rgba(62, 47, 35, 0.36);
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.82), transparent 5rem),
    linear-gradient(145deg, #e9dfd2, #f5eee5);
}

#customer-workspace-root .product-card__body {
  display: flex;
  min-height: 128px;
  flex: 1;
  flex-direction: column;
  padding: 13px 13px 12px;
}

#customer-workspace-root .product-card__body h3 {
  margin-bottom: 6px;
  overflow-wrap: anywhere;
}

#customer-workspace-root .product-card__description {
  margin-bottom: 13px;
}

#customer-workspace-root .product-card__bottom {
  margin-top: auto;
}

#customer-workspace-root .plus-button {
  position: relative;
  box-sizing: border-box;
  width: 34px;
  height: 34px;
  padding: 0;
  background: linear-gradient(145deg, #f25a39, #df4024);
  box-shadow: 0 7px 15px rgba(205, 55, 29, 0.24);
  font-size: 0;
  transition: box-shadow 160ms ease, transform 160ms ease;
}

#customer-workspace-root .plus-button::before,
#customer-workspace-root .plus-button::after {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 2px;
  background: #fff;
  content: "";
  transform: translate(-50%, -50%);
}

#customer-workspace-root .plus-button::before { width: 10px; height: 2px; }
#customer-workspace-root .plus-button::after { width: 2px; height: 10px; }

#customer-workspace-root .floating-cart {
  min-height: 54px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(135deg, #f05232, #dd3f24);
  box-shadow: 0 18px 42px rgba(184, 48, 25, 0.28);
  font-variant-numeric: tabular-nums;
  transition: box-shadow 160ms ease, transform 160ms ease;
}

:is(#product-dialog, #cart-dialog, #checkout-dialog, #orders-dialog, #profile-dialog, #support-dialog, #loyalty-center-dialog, #more-dialog) {
  --customer-line: rgba(48, 35, 25, 0.1);
  border: 1px solid rgba(48, 35, 25, 0.1);
  background:
    radial-gradient(circle at 100% 0, rgba(232, 75, 44, 0.055), transparent 18rem),
    var(--paper);
}

:is(#product-dialog, #cart-dialog, #checkout-dialog, #orders-dialog, #profile-dialog, #support-dialog, #loyalty-center-dialog, #more-dialog)::backdrop {
  background: rgba(18, 14, 11, 0.66);
  backdrop-filter: blur(6px);
}

:is(#product-dialog, #cart-dialog, #checkout-dialog, #orders-dialog, #profile-dialog, #support-dialog, #loyalty-center-dialog, #more-dialog) > .sheet__close {
  border: 1px solid rgba(48, 35, 25, 0.08);
  box-shadow: 0 7px 18px rgba(55, 38, 22, 0.08);
}

#product-dialog .product-dialog__image {
  box-shadow: inset 0 0 0 1px rgba(48, 35, 25, 0.055);
}

#product-dialog .product-dialog__body h2 {
  text-wrap: balance;
}

#product-dialog .product-dialog__footer {
  gap: 10px;
}

#cart-dialog .cart-item,
#checkout-dialog .checkout-section {
  border-color: var(--customer-line);
  background: rgba(255, 253, 249, 0.88);
}

#more-dialog .navigation-menu__item {
  border-color: var(--customer-line);
  background: rgba(255, 253, 249, 0.86);
  box-shadow: 0 6px 18px rgba(55, 38, 22, 0.045);
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

#customer-workspace-root :is(button, [role="button"]):focus-visible,
:is(#product-dialog, #cart-dialog, #checkout-dialog, #orders-dialog, #profile-dialog, #support-dialog, #loyalty-center-dialog, #more-dialog) :is(button, input, textarea, select, [role="button"]):focus-visible {
  outline: 3px solid rgba(232, 75, 44, 0.26);
  outline-offset: 3px;
}

@media (hover: hover) and (pointer: fine) {
  #customer-workspace-root .icon-button:hover {
    border-color: rgba(255, 255, 255, 0.32);
    background: rgba(255, 255, 255, 0.13);
    transform: translateY(-1px);
  }

  #customer-workspace-root .category-pill:hover:not([aria-current="true"]) {
    border-color: rgba(48, 35, 25, 0.2);
    background: var(--customer-surface);
    transform: translateY(-1px);
  }

  #customer-workspace-root .product-card:hover {
    border-color: rgba(48, 35, 25, 0.16);
    box-shadow: var(--customer-shadow-md);
    transform: translateY(-3px);
  }

  #customer-workspace-root .product-card:hover .product-card__image {
    filter: saturate(1.04) contrast(1.015);
    transform: scale(1.018);
  }

  #customer-workspace-root .plus-button:hover {
    box-shadow: 0 9px 19px rgba(205, 55, 29, 0.32);
    transform: translateY(-1px);
  }

  #customer-workspace-root .floating-cart:hover {
    box-shadow: 0 21px 48px rgba(184, 48, 25, 0.36);
  }

  #more-dialog .navigation-menu__item:hover {
    border-color: rgba(48, 35, 25, 0.18);
    background: #fffdf9;
    transform: translateY(-1px);
  }
}

@media (max-width: 479px) {
  #customer-workspace-root .hero {
    padding-bottom: 23px;
  }

  #customer-workspace-root .hero__description {
    margin-top: 7px;
    margin-bottom: 14px;
  }

  #customer-workspace-root .categories {
    padding-top: 15px;
    padding-bottom: 7px;
  }

  #customer-workspace-root .menu-section {
    padding-top: 16px;
  }

  #customer-workspace-root .product-grid {
    gap: 11px;
  }

  #customer-workspace-root .product-card__body {
    min-height: 122px;
    padding: 12px 11px 11px;
  }

  #customer-workspace-root .product-card__body h3 {
    font-size: 16px;
  }

  #customer-workspace-root .floating-cart {
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    left: 12px;
  }
}

@media (min-width: 1024px) {
  #customer-workspace-root .hero {
    display: grid;
    min-height: 198px;
    grid-template-columns: minmax(0, 1fr) minmax(0, 620px) minmax(0, 1fr);
    align-content: center;
    padding-top: calc(28px + env(safe-area-inset-top));
    padding-bottom: 28px;
  }

  #customer-workspace-root .hero__top {
    display: contents;
  }

  #customer-workspace-root .hero__identity {
    display: block;
    grid-row: 1;
    grid-column: 2;
  }

  #customer-workspace-root .icon-button.hero__menu-button {
    position: absolute;
    top: calc(28px + env(safe-area-inset-top));
    left: clamp(32px, 4vw, 52px);
    width: 54px;
    height: 54px;
    margin-top: 0;
  }

  #customer-workspace-root .hero__copy {
    display: grid;
    width: min(100%, 540px);
    margin: 0 auto;
    gap: 4px;
  }

  #customer-workspace-root .hero__copy .eyebrow,
  #customer-workspace-root .hero__copy h1 {
    margin: 0;
  }

  #customer-workspace-root .hero__copy h1 {
    font-size: clamp(38px, 3vw, 48px);
  }

  #customer-workspace-root .hero__description {
    grid-row: 2;
    grid-column: 2;
    max-width: 540px;
    margin: 15px auto 0;
    font-size: 14px;
    line-height: 1.55;
  }

  #customer-workspace-root .location-line {
    grid-row: 3;
    grid-column: 2;
    width: fit-content;
    max-width: 540px;
    margin: 12px 0 0 40px;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.065);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055);
    backdrop-filter: blur(10px);
    line-height: 1.35;
  }

  #customer-workspace-root .hero__actions {
    position: absolute;
    top: calc(28px + env(safe-area-inset-top));
    right: clamp(32px, 4vw, 52px);
    align-items: center;
    gap: 10px;
  }

  #customer-workspace-root .icon-button.hero__profile-button {
    width: 60px;
    height: 60px;
  }

  #customer-workspace-root .categories {
    gap: 9px;
    padding-top: 18px;
    padding-bottom: 10px;
  }

  #customer-workspace-root .category-pill {
    padding-right: 13px;
    padding-left: 13px;
  }

  #customer-workspace-root .menu-section {
    padding-top: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #customer-workspace-root .icon-button,
  #customer-workspace-root .category-pill,
  #customer-workspace-root .product-card,
  #customer-workspace-root .product-card__image,
  #customer-workspace-root .plus-button,
  #customer-workspace-root .floating-cart,
  #more-dialog .navigation-menu__item {
    transition: none;
  }
}

/* Project Sushista brand entry and calm customer storefront. Client-only release. */
body.brand-entry-open { overflow: hidden; }
html.skip-brand-entry-once body.brand-entry-open { overflow: auto; }
html.skip-brand-entry-once .brand-entry { display: none; }

.brand-entry {
  position: fixed;
  z-index: 60;
  inset: 0;
  display: grid;
  min-height: 100dvh;
  grid-template-rows: minmax(0, 1fr) auto;
  overflow: hidden;
  color: #f1eee7;
  background:
    radial-gradient(circle at 78% 38%, rgba(239, 167, 25, 0.075), transparent 18rem),
    linear-gradient(180deg, #181817 0%, #111 100%);
  opacity: 1;
  transition: opacity 240ms ease, transform 240ms ease;
}

.brand-entry[hidden] { display: none; }
.brand-entry.is-leaving { opacity: 0; transform: scale(1.015); pointer-events: none; }

/* Dark graphite is softer than pure black; amber stays limited to actions and state. */
#customer-workspace-root {
  --customer-surface: #242422;
  --customer-surface-soft: #2c2c29;
  --customer-line: rgba(244, 240, 232, 0.09);
  --customer-shadow-sm: 0 9px 28px rgba(0, 0, 0, 0.18);
  --customer-shadow-md: 0 18px 42px rgba(0, 0, 0, 0.26);
  color: #f1eee7;
  min-height: var(--tg-viewport-stable-height, 100dvh);
  overflow-x: clip;
  background:
    radial-gradient(circle at 8% 28%, rgba(239, 167, 25, 0.045), transparent 22rem),
    linear-gradient(180deg, #1c1c1b 0, #171716 32rem);
}

#customer-workspace-root .hero {
  border-bottom-color: rgba(239, 167, 25, 0.22);
  background:
    radial-gradient(circle at 76% -45%, rgba(239, 167, 25, 0.13), transparent 25rem),
    linear-gradient(135deg, #181817 0%, #101010 72%);
}

#customer-workspace-root .hero::after {
  width: 220px;
  height: 12px;
  right: -26px;
  bottom: 17px;
  border: 0;
  border-radius: 0;
  background: linear-gradient(90deg, transparent, #e6a018 18% 82%, transparent);
  clip-path: polygon(0 44%, 11% 19%, 22% 58%, 35% 27%, 49% 65%, 63% 25%, 78% 61%, 91% 31%, 100% 50%, 100% 100%, 0 100%);
  opacity: .55;
}

#customer-workspace-root .eyebrow { color: #e7a31e; }
#customer-workspace-root .hero__description { color: rgba(241,238,231,.68); }
#customer-workspace-root .location-line { color: rgba(241,238,231,.88); }
#customer-workspace-root .location-line > :first-child { color: #e6a018; }
#customer-workspace-root main { background: transparent; }
#customer-workspace-root .categories { background: rgba(20,20,19,.72); }

#customer-workspace-root .category-pill {
  border-color: rgba(244,240,232,.1);
  color: rgba(241,238,231,.78);
  background: #252523;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035);
}

#customer-workspace-root .category-pill[aria-current="true"] {
  border-color: #f0b12b;
  color: #171716;
  background: linear-gradient(145deg, #f0b12b, #d68a08);
  box-shadow: 0 7px 18px rgba(214, 138, 8, .2);
}

#customer-workspace-root .section-heading .eyebrow--dark { color: #d89a20; }
#customer-workspace-root .section-heading h2 { color: #f1eee7; }
#customer-workspace-root .result-count { color: rgba(241,238,231,.48); }

#customer-workspace-root .product-card {
  border-color: rgba(244,240,232,.085);
  background: #242422;
  box-shadow: var(--customer-shadow-sm);
}

#customer-workspace-root .product-card__image { background: #1b1b1a; filter: saturate(.94) brightness(.92); }
#customer-workspace-root .product-card .image-placeholder { color: rgba(241,238,231,.28); background: linear-gradient(145deg, #2b2b28, #1d1d1c); }
#customer-workspace-root .product-card__body h3 { color: #f2efe8; }
#customer-workspace-root .product-card__description, #customer-workspace-root .weight { color: rgba(241,238,231,.52); }
#customer-workspace-root .price { color: #efae2b; }

#customer-workspace-root .plus-button {
  color: #171716;
  background: linear-gradient(145deg, #f0b12b, #d68a08);
  box-shadow: 0 7px 15px rgba(214, 138, 8, .22);
}
#customer-workspace-root .plus-button::before, #customer-workspace-root .plus-button::after { background: #171716; }

#customer-workspace-root .floating-cart {
  color: #171716;
  border-color: rgba(255,255,255,.12);
  background: linear-gradient(135deg, #f0b12b, #d68a08);
  box-shadow: 0 18px 42px rgba(0,0,0,.32);
}

#product-dialog {
  color: #f1eee7;
  border-color: rgba(244,240,232,.1);
  background: radial-gradient(circle at 100% 0, rgba(239,167,25,.08), transparent 18rem), #1d1d1c;
}
#product-dialog > .sheet__close { color: #f1eee7; border-color: rgba(244,240,232,.1); background: #2c2c29; }
#product-dialog .sheet__handle { background: rgba(244,240,232,.2); }
#product-dialog .product-dialog__body > p, #product-dialog .product-dialog__meta, #product-dialog .modifier-group__hint, #product-dialog .modifier-option__price { color: rgba(241,238,231,.58); }
#product-dialog .modifier-option { border-color: rgba(244,240,232,.1); }
#product-dialog .quantity-control { border-color: rgba(244,240,232,.13); }
#product-dialog .quantity-control button { color: #f1eee7; }
#product-dialog .product-dialog__footer { background: linear-gradient(transparent, #1d1d1c 24%); }
#product-dialog .primary-button { color: #171716; background: linear-gradient(145deg, #f0b12b, #d68a08); }

.onboarding {
  color: #f1eee7;
  background: radial-gradient(circle at 90% 5%, rgba(239,167,25,.2) 0 16%, transparent 17%), linear-gradient(145deg, #292927, #171716);
}
.onboarding::backdrop { background: rgba(10,10,10,.86); }
.onboarding__mark { color: #171716; background: #e7a31e; }
.onboarding .eyebrow--dark { color: #e7a31e; }
.onboarding__form input { color: #f1eee7; border-color: rgba(244,240,232,.18); background: rgba(255,255,255,.07); }
.onboarding__form .primary-button { color: #171716; background: linear-gradient(145deg, #f0b12b, #d68a08); }
.onboarding__error { color: #ff9a84; }

@media (hover: hover) and (pointer: fine) {
  #customer-workspace-root .category-pill:hover:not([aria-current="true"]) { border-color: rgba(239,167,25,.25); background: #2b2b28; }
  #customer-workspace-root .product-card:hover { border-color: rgba(239,167,25,.24); }
  #customer-workspace-root .floating-cart:hover { box-shadow: 0 21px 48px rgba(0,0,0,.4); }
}

@media (prefers-reduced-motion: reduce) {
  .brand-entry { transition: none; }
}

/* Final supplied brand artwork. The transparent hotspot keeps the CTA semantic and clickable. */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.brand-entry {
  display: grid;
  grid-template: minmax(0, 1fr) / minmax(0, 1fr);
  place-items: center;
  height: var(--tg-viewport-stable-height, 100dvh);
  min-height: 0;
  background: #090909;
  isolation: isolate;
}

/* Continue the supplied artwork into unused viewport space without stretching the poster. */
.brand-entry::before,
.brand-entry::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.brand-entry::before {
  z-index: 0;
  inset: -32px;
  background: #090909 url("./assets/project-sushista-responsive-clean-cta-v117.png") center / cover no-repeat;
  filter: blur(22px) brightness(.34) saturate(.78);
  transform: scale(1.055);
}

.brand-entry::after {
  z-index: 0;
  inset: 0;
  background:
    radial-gradient(circle at 50% 42%, transparent 0 24%, rgba(5, 5, 5, .18) 68%),
    linear-gradient(90deg, rgba(5, 5, 5, .62), rgba(5, 5, 5, .12) 31% 69%, rgba(5, 5, 5, .62));
}

.brand-entry__poster {
  position: relative;
  z-index: 1;
  width: min(100vw, 45.905dvh);
  max-width: 100vw;
  max-height: 100dvh;
  aspect-ratio: 852 / 1856;
  overflow: hidden;
  background: #090909;
  box-shadow: 0 0 80px rgba(0, 0, 0, .48);
}

.brand-entry__poster > picture,
.brand-entry__poster > picture > img {
  display: block;
  width: 100%;
  height: 100%;
}

.brand-entry__poster > picture > img {
  object-fit: contain;
}

.customer-support-connection-warning {
  margin: 0 0 8px;
  padding: 8px 10px;
  border: 1px solid rgba(239, 169, 30, .32);
  border-radius: 10px;
  background: rgba(239, 169, 30, .1);
  color: #f4c55f;
  font-size: 11px;
  line-height: 1.35;
  text-align: center;
}

/* Mirrors the rendered artwork bounds, so the CTA remains attached to its painted panel. */
.brand-entry__action-plane {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.brand-entry__button {
  position: absolute;
  right: 13.8%;
  bottom: 2.75%;
  left: 13.8%;
  height: 5.75%;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 2.2vw, 30px);
  padding: 0 clamp(14px, 3vw, 40px);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 18px;
  color: #f0a10a;
  background: linear-gradient(180deg, #0b0b0b, #020202);
  box-shadow: 0 7px 18px rgba(0, 0, 0, .25);
  font-family: inherit;
  font-size: clamp(12px, 1.65vw, 24px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: .025em;
  text-transform: uppercase;
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.brand-entry__button-label { white-space: nowrap; }
.brand-entry__button-arrow {
  flex: 0 0 auto;
  color: #fff;
  font-size: 1.45em;
  font-weight: 400;
  line-height: .75;
}
.brand-entry__button:disabled {
  color: #aaa9a5;
  border-color: rgba(255, 255, 255, .1);
  background: linear-gradient(180deg, #3b3b39, #292927);
  box-shadow: none;
  cursor: wait;
}
.brand-entry__button:disabled .brand-entry__button-arrow { display: none; }
.brand-entry__button:focus-visible { outline: 3px solid #ffb21a; outline-offset: 4px; }
.brand-entry__button:not(:disabled):active { transform: translateY(1px); }

@media (max-height: 690px) {
  .brand-entry__button { min-height: 36px; }
}

@media (min-width: 720px) {
  .brand-entry__poster {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    aspect-ratio: auto;
    border: 0;
    border-radius: 0;
    background: #090909 url("./assets/project-sushista-desktop-tall-clean-cta-v117.png") center / cover no-repeat;
    box-shadow: none;
  }

  .brand-entry__poster > picture > img {
    object-fit: cover;
    object-position: center;
  }

  .brand-entry__button {
    right: 12.5%;
    bottom: 13%;
    left: 60.5%;
    height: 8.2%;
    font-size: clamp(12px, 1.7vw, 21px);
  }

  .brand-entry__action-plane {
    width: max(100%, 133.333dvh);
    height: max(100%, 75vw);
  }
}

/* v219: crisp, readable typography across every wide desktop workspace. */
@media (min-width: 1100px) {
  body {
    font-family: "Segoe UI Variable Text", "Segoe UI Variable", "Segoe UI", Inter, ui-sans-serif, system-ui, sans-serif;
    font-kerning: normal;
    text-rendering: optimizeLegibility;
  }

  body[data-workspace-mode="customer"] #customer-workspace-root .section-heading__subtitle {
    color: color-mix(in srgb, var(--customer-theme-text) 72%, var(--customer-theme-muted));
    font-size: 13px;
  }

  body[data-workspace-mode="customer"] #customer-workspace-root .product-card__description {
    color: color-mix(in srgb, var(--customer-theme-text) 70%, var(--customer-theme-muted));
    font-size: 13px;
    font-weight: 450;
    line-height: 1.4;
  }

  body[data-workspace-mode="customer"] #customer-workspace-root .weight {
    color: color-mix(in srgb, var(--customer-theme-text) 68%, var(--customer-theme-muted));
    font-size: 12px;
    font-weight: 600;
  }

  body[data-workspace-mode="customer"] #customer-workspace-root .price {
    font-weight: 700;
  }

  body[data-workspace-mode="customer"] #customer-workspace-root .customer-benefit strong {
    font-size: 13px;
    font-weight: 700;
  }

  body[data-workspace-mode="customer"] #customer-workspace-root .customer-benefit small {
    color: color-mix(in srgb, var(--customer-theme-text) 70%, var(--customer-theme-muted));
    font-size: 11px;
    font-weight: 500;
    line-height: 1.35;
  }

  body[data-workspace-mode="customer"] :is(
    #profile-dialog,
    #loyalty-center-dialog,
    #support-dialog,
    #cart-dialog,
    #checkout-dialog
  ) :is(
    .profile-section-heading p,
    .profile-field__label,
    .profile-address-card__meta span,
    .loyalty-history__caption,
    .loyalty-history__date,
    .loyalty-widget__subtitle,
    .loyalty-widget__label,
    .loyalty-widget__progress-caption,
    .loyalty-center__metric span,
    .checkout-delivery-method__copy small,
    .checkout-zone-trigger__copy small,
    .checkout-time-option__copy small,
    .cart-item__copy small,
    .cart-summary__meta
  ) {
    color: color-mix(in srgb, var(--customer-theme-text) 72%, var(--customer-theme-muted));
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    opacity: 1;
  }

  body[data-workspace-mode="customer"] #support-dialog .customer-support-chat__day {
    color: color-mix(in srgb, var(--customer-theme-text) 72%, var(--customer-theme-muted));
    font-size: 11px;
    font-weight: 650;
  }

  body[data-workspace-mode="customer"] #support-dialog .customer-support-message__author strong {
    font-size: 13px;
    font-weight: 700;
  }

  body[data-workspace-mode="customer"] #support-dialog .customer-support-message__author small,
  body[data-workspace-mode="customer"] #support-dialog .customer-support-message__time {
    font-size: 11px;
    font-weight: 600;
    opacity: .74;
  }
}

/* v215: interactive, theme-aware customer order history. */
body[data-workspace-mode="customer"] #orders-dialog {
  --order-success: #2f9b62;
  --order-danger: #d65342;
  --order-surface-soft: color-mix(in srgb, var(--customer-theme-surface-raised) 84%, var(--customer-theme-surface));
}

body[data-workspace-mode="customer"] #orders-dialog #orders-content {
  display: grid;
  gap: 12px;
}

body[data-workspace-mode="customer"] #orders-dialog .order-card {
  position: relative;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border-color: color-mix(in srgb, var(--customer-theme-line) 82%, var(--customer-theme-accent) 18%);
  border-radius: 22px;
  color: var(--customer-theme-text);
  background:
    radial-gradient(circle at 100% 0, color-mix(in srgb, var(--customer-theme-accent) 6%, transparent), transparent 12rem),
    var(--customer-theme-surface);
  box-shadow: var(--customer-theme-shadow-soft);
  opacity: 1;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

body[data-workspace-mode="customer"] #orders-dialog .order-card.is-expanded {
  border-color: color-mix(in srgb, var(--customer-theme-accent) 44%, var(--customer-theme-line));
  box-shadow: var(--customer-theme-shadow);
}

body[data-workspace-mode="customer"] #orders-dialog .order-card__toggle {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  min-height: 116px;
  padding: 18px 20px;
  color: inherit;
  cursor: pointer;
  touch-action: manipulation;
}

body[data-workspace-mode="customer"] #orders-dialog .order-card__identity {
  display: grid;
  gap: 7px;
  min-width: 0;
}

body[data-workspace-mode="customer"] #orders-dialog .order-card__overline {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 7px 12px;
  color: var(--customer-theme-muted);
  font-size: 11px;
}

body[data-workspace-mode="customer"] #orders-dialog .order-card__overline strong {
  color: var(--customer-theme-text);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .01em;
}

body[data-workspace-mode="customer"] #orders-dialog .order-card__status {
  width: fit-content;
  padding: 5px 9px;
  border: 1px solid color-mix(in srgb, var(--order-success) 30%, transparent);
  border-radius: 999px;
  color: color-mix(in srgb, var(--order-success) 82%, var(--customer-theme-text));
  background: color-mix(in srgb, var(--order-success) 13%, transparent);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.1;
}

body[data-workspace-mode="customer"] #orders-dialog .order-card__status--failed {
  border-color: color-mix(in srgb, var(--order-danger) 32%, transparent);
  color: color-mix(in srgb, var(--order-danger) 84%, var(--customer-theme-text));
  background: color-mix(in srgb, var(--order-danger) 12%, transparent);
}

body[data-workspace-mode="customer"] #orders-dialog .order-card__detail {
  margin: 0;
  color: var(--customer-theme-muted);
  font-size: 12px;
  line-height: 1.4;
}

body[data-workspace-mode="customer"] #orders-dialog .order-card__summary {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

body[data-workspace-mode="customer"] #orders-dialog .order-card__summary span {
  padding: 4px 7px;
  border-radius: 8px;
  color: var(--customer-theme-muted);
  background: var(--order-surface-soft);
  font-size: 10px;
  font-weight: 750;
}

body[data-workspace-mode="customer"] #orders-dialog .order-card__side {
  display: grid;
  grid-template-columns: auto 34px;
  align-items: center;
  justify-items: end;
  gap: 3px 10px;
  min-width: max-content;
}

body[data-workspace-mode="customer"] #orders-dialog .order-card__total-label {
  grid-column: 1;
  color: var(--customer-theme-muted);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
}

body[data-workspace-mode="customer"] #orders-dialog .order-card__side .price {
  grid-column: 1;
  color: var(--customer-theme-accent-dark);
  font-size: 17px;
  font-weight: 950;
}

body[data-workspace-mode="customer"] #orders-dialog .order-card__arrow {
  grid-row: 1 / span 2;
  grid-column: 2;
  width: 34px;
  height: 34px;
  border: 1px solid var(--customer-theme-line);
  background-color: var(--order-surface-soft);
  background-size: 13px 13px;
}

body[data-workspace-mode="customer"] #orders-dialog .order-card__expanded {
  display: grid;
  gap: 15px;
  margin: 0;
  padding: 0 20px 20px;
  border: 0;
}

body[data-workspace-mode="customer"] #orders-dialog .order-card__progress-panel,
body[data-workspace-mode="customer"] #orders-dialog .order-card__items,
body[data-workspace-mode="customer"] #orders-dialog .order-card__facts {
  border: 1px solid var(--customer-theme-line);
  border-radius: 17px;
  background: var(--order-surface-soft);
}

body[data-workspace-mode="customer"] #orders-dialog .order-card__progress-panel {
  display: grid;
  gap: 12px;
  padding: 14px 14px 11px;
}

body[data-workspace-mode="customer"] #orders-dialog .order-card__section-label {
  color: var(--customer-theme-muted);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

body[data-workspace-mode="customer"] #orders-dialog .order-progress {
  margin: 0;
  padding: 3px 0 0;
  overflow: visible;
}

body[data-workspace-mode="customer"] #orders-dialog .order-progress__item {
  gap: 8px;
}

body[data-workspace-mode="customer"] #orders-dialog .order-progress__item::before {
  top: 8px;
  border-color: var(--customer-theme-line);
  border-width: 2px;
}

body[data-workspace-mode="customer"] #orders-dialog .order-progress__dot {
  width: 17px;
  height: 17px;
  border-color: color-mix(in srgb, var(--customer-theme-muted) 32%, transparent);
  background: var(--customer-theme-surface);
}

body[data-workspace-mode="customer"] #orders-dialog .order-progress__item.is-active::before {
  border-color: var(--order-success);
}

body[data-workspace-mode="customer"] #orders-dialog .order-progress__item.is-active .order-progress__dot {
  border-color: var(--order-success);
  background: var(--order-success);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--order-success) 12%, transparent);
}

body[data-workspace-mode="customer"] #orders-dialog .order-progress__item.is-current .order-progress__dot {
  box-shadow:
    0 0 0 3px var(--customer-theme-surface),
    0 0 0 6px color-mix(in srgb, var(--order-success) 34%, transparent);
}

body[data-workspace-mode="customer"] #orders-dialog .order-progress__item small {
  color: var(--customer-theme-muted);
  font-size: 9px;
  font-weight: 700;
  text-overflow: clip;
}

body[data-workspace-mode="customer"] #orders-dialog .order-progress__item.is-current small {
  color: var(--customer-theme-text);
  font-weight: 900;
}

body[data-workspace-mode="customer"] #orders-dialog .order-progress--failed .order-progress__dot {
  border-color: var(--order-danger);
  background: color-mix(in srgb, var(--order-danger) 12%, var(--customer-theme-surface));
}

body[data-workspace-mode="customer"] #orders-dialog .order-card__items {
  overflow: hidden;
}

body[data-workspace-mode="customer"] #orders-dialog .order-card__section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 15px;
  border-bottom: 1px solid var(--customer-theme-line);
}

body[data-workspace-mode="customer"] #orders-dialog .order-card__section-heading strong {
  font-size: 13px;
  font-weight: 900;
}

body[data-workspace-mode="customer"] #orders-dialog .order-card__count {
  color: var(--customer-theme-muted);
  font-size: 10px;
  font-weight: 750;
}

body[data-workspace-mode="customer"] #orders-dialog .order-card__line-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 3px 14px;
  list-style: none;
}

body[data-workspace-mode="customer"] #orders-dialog .order-card__line {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  padding: 12px 0;
  border-bottom: 1px solid var(--customer-theme-line);
}

body[data-workspace-mode="customer"] #orders-dialog .order-card__line:last-child { border-bottom: 0; }

body[data-workspace-mode="customer"] #orders-dialog .order-card__line-marker {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--customer-theme-accent) 30%, var(--customer-theme-line));
  border-radius: 10px;
  color: var(--customer-theme-on-accent);
  background: linear-gradient(145deg, var(--customer-theme-accent), var(--customer-theme-accent-dark));
  font-size: 11px;
  font-weight: 950;
}

body[data-workspace-mode="customer"] #orders-dialog .order-card__line-marker--gift {
  border-color: color-mix(in srgb, #ef5239 45%, var(--customer-theme-line));
  background: color-mix(in srgb, #ef5239 13%, var(--customer-theme-surface-raised));
}
body[data-workspace-mode="customer"] #orders-dialog .order-card__line-marker--gift .dimensional-icon { width: 26px; height: 26px; }

body[data-workspace-mode="customer"] #orders-dialog .order-card__line-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
}

body[data-workspace-mode="customer"] #orders-dialog .order-card__line-copy > strong {
  color: var(--customer-theme-text);
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

body[data-workspace-mode="customer"] #orders-dialog .order-card__modifiers {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 0;
  padding: 0;
  color: var(--customer-theme-muted);
  font-size: 10px;
  list-style: none;
}

body[data-workspace-mode="customer"] #orders-dialog .order-card__modifiers li {
  padding: 4px 7px;
  border-radius: 7px;
  background: var(--customer-theme-surface);
}

body[data-workspace-mode="customer"] #orders-dialog .order-card__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  background: var(--customer-theme-line);
}

body[data-workspace-mode="customer"] #orders-dialog .order-card__fact {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 2px 9px;
  min-width: 0;
  padding: 12px;
  background: var(--order-surface-soft);
}

body[data-workspace-mode="customer"] #orders-dialog .order-card__fact-icon {
  display: grid;
  grid-row: 1 / span 2;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  color: var(--customer-theme-accent-dark);
  background: color-mix(in srgb, var(--customer-theme-accent) 13%, var(--customer-theme-surface));
  font-size: 13px;
  font-weight: 900;
}

body[data-workspace-mode="customer"] #orders-dialog .order-card__fact-label {
  color: var(--customer-theme-muted);
  font-size: 9px;
  font-weight: 700;
}

body[data-workspace-mode="customer"] #orders-dialog .order-card__fact-value {
  min-width: 0;
  color: var(--customer-theme-text);
  font-size: 11px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

body[data-workspace-mode="customer"] #orders-dialog .order-card__fact--wide { grid-column: 1 / -1; }

body[data-workspace-mode="customer"] #orders-dialog .order-card__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

body[data-workspace-mode="customer"] #orders-dialog .order-card__actions > :only-child { grid-column: 1 / -1; }

body[data-workspace-mode="customer"] #orders-dialog .order-card__actions button {
  min-height: 47px;
  margin: 0;
  border-radius: 14px;
}

body[data-workspace-mode="customer"] #orders-dialog .order-card__repeat {
  color: var(--customer-theme-on-accent);
  background: linear-gradient(145deg, var(--customer-theme-accent), var(--customer-theme-accent-dark));
  box-shadow: 0 9px 20px color-mix(in srgb, var(--customer-theme-accent) 20%, transparent);
}

body[data-workspace-mode="customer"] #orders-dialog .order-card__review {
  border-color: color-mix(in srgb, var(--customer-theme-accent) 42%, var(--customer-theme-line));
  color: var(--customer-theme-accent-dark);
  background: color-mix(in srgb, var(--customer-theme-accent) 7%, var(--customer-theme-surface));
}

body[data-workspace-mode="customer"] #orders-dialog .order-card__hint {
  margin: -6px 2px 0;
  color: var(--customer-theme-muted);
  text-align: center;
}

body[data-workspace-mode="customer"] #orders-dialog .order-card__review-summary {
  border: 1px solid color-mix(in srgb, var(--customer-theme-accent) 24%, var(--customer-theme-line));
  color: var(--customer-theme-text);
  background:
    radial-gradient(circle at 100% 0, color-mix(in srgb, var(--customer-theme-accent) 12%, transparent), transparent 9rem),
    var(--order-surface-soft);
}

body[data-workspace-mode="customer"] #orders-dialog .order-card__review-summary :is(p, .order-card__review-response) {
  border-color: var(--customer-theme-line);
}

body[data-workspace-mode="customer"] #orders-dialog .repeat-preview {
  border: 1px solid var(--customer-theme-line);
  border-radius: 17px;
}

body[data-workspace-mode="customer"] #orders-dialog .order-history-pagination {
  margin-top: 4px;
  padding: 8px;
  border: 1px solid var(--customer-theme-line);
  border-radius: 17px;
  background: var(--customer-theme-surface);
}

@media (hover: hover) and (pointer: fine) {
  body[data-workspace-mode="customer"] #orders-dialog .order-card:not(.is-expanded):hover {
    border-color: color-mix(in srgb, var(--customer-theme-accent) 38%, var(--customer-theme-line));
    box-shadow: var(--customer-theme-shadow);
    transform: translateY(-2px);
  }

  body[data-workspace-mode="customer"] #orders-dialog .order-card__toggle:hover .order-card__arrow {
    border-color: color-mix(in srgb, var(--customer-theme-accent) 42%, var(--customer-theme-line));
  }
}

@media (min-width: 720px) {
  body[data-workspace-mode="customer"] #orders-dialog {
    width: min(94vw, 960px);
  }

  body[data-workspace-mode="customer"] #orders-dialog #orders-content {
    max-width: 900px;
  }

  body[data-workspace-mode="customer"] #orders-dialog .order-card__toggle {
    min-height: 108px;
    padding: 18px 22px;
  }

  body[data-workspace-mode="customer"] #orders-dialog .order-card__expanded {
    padding: 0 22px 22px;
  }

  body[data-workspace-mode="customer"] #orders-dialog .order-card__facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body[data-workspace-mode="customer"] #orders-dialog .order-card__facts:has(> .order-card__fact--wide:nth-child(6)) > .order-card__fact:nth-child(5) {
    grid-column: span 2;
  }
}

/* v217/v218: a roomier, presentation-grade order history with crisp desktop progress labels. */
@media (min-width: 1100px) {
  body[data-workspace-mode="customer"] #orders-dialog {
    width: min(94vw, 1180px);
  }

  body[data-workspace-mode="customer"] #orders-dialog .cart-heading h2 {
    font-size: clamp(30px, 2.25vw, 38px);
    line-height: 1.05;
  }

  body[data-workspace-mode="customer"] #orders-dialog #orders-content {
    max-width: 1120px;
    gap: 16px;
  }

  body[data-workspace-mode="customer"] #orders-dialog .order-card__toggle {
    min-height: 132px;
    padding: 22px 26px;
  }

  body[data-workspace-mode="customer"] #orders-dialog .order-card__identity {
    gap: 9px;
  }

  body[data-workspace-mode="customer"] #orders-dialog .order-card__overline {
    gap: 8px 14px;
    font-size: 13px;
  }

  body[data-workspace-mode="customer"] #orders-dialog .order-card__overline strong {
    font-size: 16px;
  }

  body[data-workspace-mode="customer"] #orders-dialog .order-card__status {
    padding: 6px 11px;
    font-size: 14px;
  }

  body[data-workspace-mode="customer"] #orders-dialog .order-card__detail {
    font-size: 14px;
  }

  body[data-workspace-mode="customer"] #orders-dialog .order-card__summary span {
    padding: 5px 9px;
    font-size: 12px;
  }

  body[data-workspace-mode="customer"] #orders-dialog .order-card__total-label {
    font-size: 11px;
  }

  body[data-workspace-mode="customer"] #orders-dialog .order-card__side .price {
    font-size: 22px;
  }

  body[data-workspace-mode="customer"] #orders-dialog .order-card__arrow {
    position: relative;
    width: 40px;
    height: 40px;
    background-image: none;
    transform: none;
  }

  body[data-workspace-mode="customer"] #orders-dialog .order-card__arrow::after {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    border-right: 3px solid currentColor;
    border-bottom: 3px solid currentColor;
    box-sizing: border-box;
    content: "";
    transform: translate(-50%, -65%) rotate(45deg);
    transform-origin: center;
  }

  body[data-workspace-mode="customer"] #orders-dialog .order-card__toggle[aria-expanded="true"] .order-card__arrow {
    transform: none;
  }

  body[data-workspace-mode="customer"] #orders-dialog .order-card__toggle[aria-expanded="true"] .order-card__arrow::after {
    transform: translate(-50%, -35%) rotate(225deg);
  }

  body[data-workspace-mode="customer"] #orders-dialog .order-card__expanded {
    gap: 18px;
    padding: 0 26px 26px;
  }

  body[data-workspace-mode="customer"] #orders-dialog .order-card__progress-panel {
    gap: 16px;
    padding: 18px 20px 16px;
  }

  body[data-workspace-mode="customer"] #orders-dialog .order-card__section-label {
    font-size: 12px;
  }

  body[data-workspace-mode="customer"] #orders-dialog .order-progress {
    padding: 5px 8px 0;
  }

  body[data-workspace-mode="customer"] #orders-dialog .order-progress__item {
    gap: 11px;
  }

  body[data-workspace-mode="customer"] #orders-dialog .order-progress__item::before {
    top: 10px;
    border-color: color-mix(in srgb, var(--customer-theme-text) 22%, transparent);
    border-width: 3px;
  }

  body[data-workspace-mode="customer"] #orders-dialog .order-progress__dot {
    width: 22px;
    height: 22px;
    border-color: color-mix(in srgb, var(--customer-theme-text) 34%, transparent);
    border-width: 3px;
  }

  body[data-workspace-mode="customer"] #orders-dialog .order-progress__item.is-current .order-progress__dot {
    box-shadow:
      0 0 0 4px var(--customer-theme-surface),
      0 0 0 8px color-mix(in srgb, var(--order-success) 30%, transparent),
      0 7px 18px color-mix(in srgb, var(--order-success) 24%, transparent);
  }

  body[data-workspace-mode="customer"] #orders-dialog .order-progress__item small {
    max-width: 100%;
    padding: 5px 9px;
    overflow: visible;
    border: 1px solid transparent;
    border-radius: 999px;
    color: color-mix(in srgb, var(--customer-theme-text) 74%, var(--customer-theme-muted));
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .005em;
    line-height: 1.25;
    text-overflow: clip;
    text-rendering: geometricPrecision;
    white-space: nowrap;
  }

  body[data-workspace-mode="customer"] #orders-dialog .order-progress__item.is-active small {
    color: color-mix(in srgb, var(--order-success) 72%, var(--customer-theme-text));
    font-weight: 750;
  }

  body[data-workspace-mode="customer"] #orders-dialog .order-progress__item.is-current small {
    border-color: color-mix(in srgb, var(--order-success) 28%, transparent);
    color: color-mix(in srgb, var(--order-success) 82%, var(--customer-theme-text));
    background: color-mix(in srgb, var(--order-success) 12%, var(--customer-theme-surface));
    font-weight: 800;
  }

  body[data-workspace-mode="customer"] #orders-dialog .order-card__section-heading {
    padding: 16px 18px;
  }

  body[data-workspace-mode="customer"] #orders-dialog .order-card__section-heading strong {
    font-size: 16px;
  }

  body[data-workspace-mode="customer"] #orders-dialog .order-card__count {
    font-size: 12px;
  }

  body[data-workspace-mode="customer"] #orders-dialog .order-card__line-list {
    padding: 5px 18px;
  }

  body[data-workspace-mode="customer"] #orders-dialog .order-card__line {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 14px;
    padding: 15px 0;
  }

  body[data-workspace-mode="customer"] #orders-dialog .order-card__line-marker {
    width: 38px;
    height: 38px;
    font-size: 13px;
  }

  body[data-workspace-mode="customer"] #orders-dialog .order-card__line-copy > strong {
    font-size: 14px;
  }

  body[data-workspace-mode="customer"] #orders-dialog .order-card__modifiers {
    font-size: 12px;
  }

  body[data-workspace-mode="customer"] #orders-dialog .order-card__fact {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 3px 11px;
    padding: 15px;
  }

  body[data-workspace-mode="customer"] #orders-dialog .order-card__fact-icon {
    width: 34px;
    height: 34px;
    font-size: 15px;
  }

  body[data-workspace-mode="customer"] #orders-dialog .order-card__fact-label {
    font-size: 11px;
  }

  body[data-workspace-mode="customer"] #orders-dialog .order-card__fact-value {
    font-size: 13px;
  }
}

@media (max-width: 479px) {
  body[data-workspace-mode="customer"] #orders-dialog .order-card__toggle {
    gap: 10px;
    min-height: 108px;
    padding: 15px;
  }

  body[data-workspace-mode="customer"] #orders-dialog .order-card__overline {
    gap: 4px 8px;
    font-size: 9px;
  }

  body[data-workspace-mode="customer"] #orders-dialog .order-card__side {
    grid-template-columns: auto 30px;
    gap: 2px 7px;
  }

  body[data-workspace-mode="customer"] #orders-dialog .order-card__side .price { font-size: 14px; }
  body[data-workspace-mode="customer"] #orders-dialog .order-card__arrow { width: 30px; height: 30px; }
  body[data-workspace-mode="customer"] #orders-dialog .order-card__expanded { gap: 12px; padding: 0 15px 15px; }
  body[data-workspace-mode="customer"] #orders-dialog .order-card__progress-panel { padding: 13px 8px 10px; }
  body[data-workspace-mode="customer"] #orders-dialog .order-progress__item small {
    padding: 3px 2px;
    color: color-mix(in srgb, var(--customer-theme-text) 78%, var(--customer-theme-muted));
    font-family: "Segoe UI Variable Text", "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.2;
    text-rendering: geometricPrecision;
  }
  body[data-workspace-mode="customer"] #orders-dialog .order-progress__dot { width: 14px; height: 14px; }
  body[data-workspace-mode="customer"] #orders-dialog .order-progress__item::before { top: 6px; }
  body[data-workspace-mode="customer"] #orders-dialog .order-card__facts { grid-template-columns: minmax(0, 1fr); }
  body[data-workspace-mode="customer"] #orders-dialog .order-card__facts:has(> .order-card__fact--wide:nth-child(6)) > .order-card__fact:nth-child(5) { grid-column: auto; }
  body[data-workspace-mode="customer"] #orders-dialog .order-card__fact--wide { grid-column: auto; }
  body[data-workspace-mode="customer"] #orders-dialog .order-card__actions { grid-template-columns: minmax(0, 1fr); }
  body[data-workspace-mode="customer"] #orders-dialog .order-card__actions > * { grid-column: auto; }
}

@media (max-width: 350px) {
  body[data-workspace-mode="customer"] #orders-dialog .order-card__toggle { align-items: start; }
  body[data-workspace-mode="customer"] #orders-dialog .order-card__overline > span { display: none; }
  body[data-workspace-mode="customer"] #orders-dialog .order-card__total-label { display: none; }
  body[data-workspace-mode="customer"] #orders-dialog .order-card__side .price { grid-row: 1 / span 2; align-self: center; }
  body[data-workspace-mode="customer"] #orders-dialog .order-card__summary span { padding: 3px 5px; font-size: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  body[data-workspace-mode="customer"] #orders-dialog .order-card { transition: none; }
}

/* v201: marketing tools are compact image buttons with in-artwork copy. */
.workspace-section-card--artwork {
  display: block;
  min-height: 0;
  aspect-ratio: 2.05 / 1;
  padding: 0;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  background: #f3d8c5;
  box-shadow: 0 9px 24px rgba(77, 40, 20, .1);
}

.workspace-section-card--artwork:hover {
  transform: translateY(-4px);
  border-color: rgba(235, 74, 45, .62);
  box-shadow: 0 18px 38px rgba(120, 50, 26, .2), 0 0 0 3px rgba(239, 92, 62, .1);
}

.workspace-section-card--artwork:focus-visible {
  outline: 3px solid #ec4b31;
  outline-offset: 4px;
}

.workspace-section-card--artwork .workspace-section-card__artwork {
  position: absolute;
  inset: 0;
  width: auto;
  aspect-ratio: auto;
  border: 0;
}

.workspace-section-card--artwork .workspace-section-card__artwork::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 34%, rgba(55, 23, 12, .18) 58%, rgba(35, 16, 9, .88) 100%);
  pointer-events: none;
}

.workspace-section-card--artwork .workspace-section-card__artwork img,
.workspace-section-card--artwork[data-tool="campaigns"] .workspace-section-card__artwork img {
  transition: transform 240ms ease, filter 240ms ease;
}

.workspace-section-card--artwork:hover .workspace-section-card__artwork img {
  transform: scale(1.025);
  filter: saturate(1.06) brightness(1.035);
}

.workspace-section-card--artwork > :is(strong, small, .workspace-section-card__arrow) {
  position: absolute;
  z-index: 1;
  right: 21px;
  left: 21px;
  margin: 0;
  color: #fff;
  text-shadow: 0 2px 8px rgba(25, 11, 6, .55);
}

.workspace-section-card--artwork > strong {
  bottom: 55px;
  font-size: 19px;
  line-height: 1.15;
}

.workspace-section-card--artwork > small {
  bottom: 34px;
  overflow: hidden;
  color: rgba(255, 255, 255, .92);
  font-size: 11px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-section-card--artwork > .workspace-section-card__arrow {
  bottom: 16px;
  color: #fff;
  font-size: 10px;
}

@media (max-width: 479px) {
  .workspace-section-card--artwork { aspect-ratio: 1.65 / 1; }
  .workspace-section-card--artwork > :is(strong, small, .workspace-section-card__arrow) { right: 16px; left: 16px; }
  .workspace-section-card--artwork > strong { bottom: 52px; font-size: 17px; }
  .workspace-section-card--artwork > small { bottom: 31px; }
  .workspace-section-card--artwork > .workspace-section-card__arrow { bottom: 13px; }
}

@media (min-width: 720px) and (min-aspect-ratio: 3/2) {
  .brand-entry__poster {
    background-image: url("./assets/project-sushista-desktop-wide-clean-cta-v117.png");
  }

  .brand-entry__button {
    right: 13.42%;
    bottom: 8.27%;
    left: 61.02%;
    height: 8.46%;
    font-size: clamp(12px, 1.45vw, 21px);
  }

  .brand-entry__action-plane {
    width: max(100%, 177.683dvh);
    height: max(100%, 56.280vw);
  }
}

@media (min-width: 720px) and (min-aspect-ratio: 19/10) {
  .brand-entry::before {
    background-image: url("./assets/project-sushista-desktop-panorama-clean-cta-v117.png");
    filter: blur(34px) brightness(.2) saturate(.68);
    transform: scale(1.09);
  }

  .brand-entry::after {
    background: linear-gradient(90deg, rgba(3, 3, 3, .48), rgba(8, 8, 8, .16) 30% 70%, rgba(3, 3, 3, .48));
  }

  .brand-entry__poster {
    background: #050505 url("./assets/project-sushista-desktop-panorama-clean-cta-v117.png") center / cover no-repeat;
  }
  .brand-entry__poster > picture > img { object-fit: contain; }

  .brand-entry__action-plane {
    width: min(100%, 200dvh);
    height: min(100%, 50vw);
  }

  .brand-entry__button {
    right: 18.71%;
    bottom: 9.17%;
    left: 61.41%;
    height: 8.46%;
    font-size: clamp(12px, 1.2vw, 20px);
  }
}

@media (min-width: 720px) and (min-aspect-ratio: 21/10) {
  .brand-entry::before {
    filter: blur(42px) brightness(.44) saturate(.8);
    transform: scale(1.12);
  }

  .brand-entry::after {
    background: linear-gradient(90deg, rgba(3, 3, 3, .22), rgba(8, 8, 8, .06) 28% 72%, rgba(3, 3, 3, .22));
  }

  .brand-entry__poster { background: rgba(5, 5, 5, .08); }

}

/* Desktop Telegram can retain a shorter stable viewport from a previous window size. */
@media (min-width: 720px) {
  .brand-entry {
    height: auto;
    min-height: 0;
  }
}

@media (min-width: 1280px) {
  #cart-dialog {
    padding-bottom: 20px;
  }

  #cart-dialog .cart-summary {
    position: static;
    margin: 14px 0 0;
    padding-bottom: 17px;
    border-bottom: 1px solid var(--customer-theme-line);
    border-radius: 20px;
  }
}

@media (max-width: 719px) {
  .brand-entry__poster {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    aspect-ratio: auto;
    box-shadow: none;
  }

  .brand-entry__poster > picture > img {
    object-fit: cover;
    object-position: center;
  }

  .brand-entry__button {
    right: 26%;
    bottom: 7.75%;
    left: 30.25%;
    height: 5.9%;
    border-radius: clamp(12px, 4vw, 20px);
    font-size: clamp(11px, 3.4vw, 17px);
    gap: clamp(8px, 4vw, 22px);
    padding-inline: 12px;
  }

  .brand-entry__action-plane {
    width: max(100%, 66.667dvh);
    height: max(100%, 150vw);
  }

  .brand-entry::before {
    background-image: url("./assets/project-sushista-responsive-clean-cta-v117.png");
    filter: blur(16px) brightness(.3) saturate(.72);
  }
}

/* Customer surface refinement. No navigation or behavior changes. */
:is(#cart-dialog, #checkout-dialog, #orders-dialog, #profile-dialog, #support-dialog, #loyalty-center-dialog, #product-dialog, #more-dialog),
.order-review-dialog,
.loyalty-history-sheet,
.onboarding {
  --customer-blue: #2f6fe4;
  --customer-blue-dark: #214eaa;
  --customer-blue-soft: #eaf1ff;
  --customer-card: #fffdf9;
  --customer-card-muted: #f6f0e8;
  --customer-card-line: rgba(48, 35, 25, 0.1);
  --customer-card-shadow: 0 10px 28px rgba(55, 38, 22, 0.075);
}

:is(#cart-dialog, #checkout-dialog, #orders-dialog, #profile-dialog, #loyalty-center-dialog) .cart-heading {
  margin: 0 44px 16px 0;
  padding: 2px 0 14px;
  border-bottom: 1px solid var(--customer-card-line);
}

:is(#cart-dialog, #checkout-dialog, #orders-dialog, #profile-dialog, #loyalty-center-dialog) .cart-heading .eyebrow {
  margin-bottom: 5px;
}

:is(#cart-dialog, #checkout-dialog, #orders-dialog, #profile-dialog, #loyalty-center-dialog) .cart-heading h2 {
  font-size: clamp(25px, 6vw, 30px);
  line-height: 1;
  text-wrap: balance;
}

#cart-dialog .cart-overview {
  min-height: 58px;
  padding: 13px 15px;
  border: 1px solid rgba(47, 111, 228, 0.14);
  border-radius: 17px;
  background: linear-gradient(135deg, #edf3ff, #f8f3eb);
}

#cart-dialog .cart-overview__copy strong { font-size: 14px; }
#cart-dialog .cart-overview__count { background: linear-gradient(145deg, var(--customer-blue), var(--customer-blue-dark)); }
#cart-dialog .cart-list { gap: 11px; }

#cart-dialog .cart-item {
  padding: 15px;
  border-color: var(--customer-card-line);
  border-radius: 18px;
  background: var(--customer-card);
  box-shadow: var(--customer-card-shadow);
}

#cart-dialog .cart-item__marker {
  color: #8d2e1e;
  background: linear-gradient(145deg, #ffe7dd, #f8d5c9);
}

#cart-dialog .cart-item__copy h3 { font-size: 16px; line-height: 1.2; }
#cart-dialog .cart-item__total strong { font-size: 15px; font-variant-numeric: tabular-nums; }
#cart-dialog .cart-item__modifiers span { border: 1px solid rgba(48, 35, 25, 0.065); background: #f7f1e9; }

#cart-dialog .quantity-control {
  border-color: rgba(48, 35, 25, 0.13);
  background: rgba(255, 255, 255, 0.74);
}

#cart-dialog .cart-summary {
  border-color: var(--customer-card-line);
  background: rgba(255, 253, 249, 0.94);
  box-shadow: 0 -14px 34px rgba(55, 38, 22, 0.11);
}

#cart-dialog .cart-checkout,
#checkout-dialog .checkout-submit {
  background: linear-gradient(135deg, #f05232, #d83d23);
  box-shadow: 0 10px 22px rgba(184, 48, 25, 0.2);
}

#checkout-dialog .checkout-form { gap: 14px; }

#checkout-dialog .checkout-section {
  gap: 12px;
  padding: 17px;
  border-color: var(--customer-card-line);
  border-radius: 19px;
  background: var(--customer-card);
  box-shadow: var(--customer-card-shadow);
}

#checkout-dialog .checkout-section h3 {
  font-size: 16px;
  line-height: 1.2;
}

#checkout-dialog :is(.checkout-option span, .checkout-delivery-method__card, .checkout-payment-option__card, .checkout-time-option__card) {
  border-color: rgba(48, 35, 25, 0.12);
  background: #faf6f0;
  transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

#checkout-dialog .checkout-option input:checked + span,
#checkout-dialog .checkout-delivery-method input:checked + .checkout-delivery-method__card,
#checkout-dialog .checkout-payment-option input:checked + .checkout-payment-option__card,
#checkout-dialog .checkout-time-option input:checked + .checkout-time-option__card {
  border-color: var(--customer-blue-dark);
  color: #fff;
  background: linear-gradient(145deg, var(--customer-blue), var(--customer-blue-dark));
  box-shadow: 0 8px 18px rgba(33, 78, 170, 0.19);
}

#checkout-dialog :is(.checkout-delivery-method input:checked + .checkout-delivery-method__card, .checkout-payment-option input:checked + .checkout-payment-option__card, .checkout-time-option input:checked + .checkout-time-option__card) small {
  color: rgba(255, 255, 255, 0.76);
}

#checkout-dialog .checkout-zone-trigger,
#checkout-dialog .checkout-zone-panel,
#checkout-dialog :is(input:not([type="checkbox"]):not([type="radio"]), textarea, select) {
  border-color: rgba(48, 35, 25, 0.13);
  background-color: #fffefa;
}

#checkout-dialog .checkout-zone-trigger--selected .checkout-zone-trigger__icon,
#checkout-dialog .checkout-zone-choice--selected {
  color: #fff;
  background: linear-gradient(145deg, var(--customer-blue), var(--customer-blue-dark));
}

#checkout-dialog .checkout-zone-choice--selected :is(strong, .checkout-zone-choice__check) { color: #fff; }
#checkout-dialog .checkout-recipient__summary { border-radius: 16px; background: linear-gradient(135deg, #f7f1e9, #fffdf9); }
#checkout-dialog .checkout-recipient__avatar { background: linear-gradient(145deg, #ffe38a, #ffc74f); }

#checkout-dialog .checkout-bonus,
#checkout-dialog .checkout-earn {
  border-radius: 15px;
  background: linear-gradient(135deg, #f5f1e9, #fffdf9);
}

#checkout-dialog .checkout-promo { border-color: var(--customer-card-line); }
#checkout-dialog .checkout-benefits { border: 1px solid rgba(239, 155, 24, 0.24); border-radius: 15px; }
#checkout-dialog [data-checkout-preview] > .checkout-benefits { margin-top: 3px; }

#checkout-dialog :is(.checkout-schedule__date--active, .checkout-schedule__time--active) {
  border-color: var(--customer-blue-dark);
  color: #fff;
  background: linear-gradient(145deg, var(--customer-blue), var(--customer-blue-dark));
}

#profile-dialog .profile-hero,
#profile-dialog :is(.profile-data-card, .profile-addresses, .profile-address-editor__card) {
  border-color: rgba(255, 255, 255, 0.12);
  background:
    radial-gradient(circle at 100% 0, rgba(47, 111, 228, 0.2), transparent 12rem),
    linear-gradient(145deg, #201814, #40261d);
  box-shadow: 0 13px 32px rgba(37, 20, 14, 0.17);
}

#profile-dialog .profile-hero { padding: 17px; border-radius: 21px; }
#profile-dialog .profile-hero__avatar { background: linear-gradient(145deg, #ffe38a, #ffc74f); box-shadow: 0 8px 18px rgba(0, 0, 0, 0.14); }
#profile-dialog .profile-field { min-height: 46px; }
#profile-dialog .profile-field:focus-within { border-color: rgba(104, 153, 255, 0.72); box-shadow: 0 0 0 3px rgba(47, 111, 228, 0.16); }

#profile-dialog .profile-support-card {
  border-color: rgba(104, 153, 255, 0.2);
  background:
    radial-gradient(circle at 100% 0, rgba(47, 111, 228, 0.28), transparent 11rem),
    linear-gradient(145deg, #201814, #3c241c);
}

#profile-dialog .profile-address-card {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.085);
}

#profile-dialog .profile-address-card__meta span { background: rgba(0, 0, 0, 0.17); }
#profile-dialog .profile-address-action { min-height: 34px; padding: 8px 10px; }
#profile-dialog .profile-address-editor__back { box-shadow: var(--customer-card-shadow); }

#orders-dialog .order-card {
  margin-bottom: 12px;
  padding: 16px;
  border-color: var(--customer-card-line);
  border-radius: 19px;
  background: var(--customer-card);
  box-shadow: var(--customer-card-shadow);
}

#orders-dialog .order-card--terminal { opacity: 1; }
#orders-dialog .order-card__arrow {
  overflow: hidden;
  background-color: var(--customer-blue-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 4.25 6 8l4-3.75' fill='none' stroke='%23214eaa' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 12px 12px;
  color: var(--customer-blue-dark);
  font-size: 0;
  line-height: 1;
}
#orders-dialog .order-card__status { color: #1f7a48; }
#orders-dialog .order-card__expanded { border-color: var(--customer-card-line); }

#orders-dialog .order-card__review-summary {
  background:
    radial-gradient(circle at 100% 0, rgba(47, 111, 228, 0.22), transparent 9rem),
    linear-gradient(135deg, #271a15, #4b281d);
}

.order-review-dialog {
  border: 1px solid var(--customer-card-line);
  background: #f8f3eb;
  box-shadow: 0 24px 70px rgba(23, 19, 15, 0.28);
}

.order-review__header { border-color: var(--customer-card-line); background: rgba(255, 253, 249, 0.7); }
.order-review__star { border-color: var(--customer-card-line); background: #fffdf9; }
.order-review__star.is-selected { box-shadow: 0 7px 15px rgba(228, 161, 27, 0.16); }
.order-review__chip { border-color: var(--customer-card-line); background: #fffdf9; }
.order-review__comment { border-color: var(--customer-card-line); background: #fffdf9; }

#loyalty-center-dialog .loyalty-center { gap: 14px; }

#support-dialog .support-sheet-heading {
  margin-bottom: 17px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--customer-card-line);
}

#support-dialog .customer-support-intro {
  border: 1px solid rgba(104, 153, 255, 0.18);
  background:
    radial-gradient(circle at 95% 0, rgba(47, 111, 228, 0.34), transparent 10rem),
    linear-gradient(145deg, #241814, #46271d);
}

#support-dialog .customer-support-card {
  border-color: var(--customer-card-line);
  background: var(--customer-card);
  box-shadow: var(--customer-card-shadow);
}

#support-dialog .customer-support-card__arrow { color: var(--customer-blue-dark); }
#support-dialog .customer-support-compose__icon { background: linear-gradient(145deg, var(--customer-blue), var(--customer-blue-dark)); }

#support-dialog .customer-support-field :is(select, textarea) {
  border-color: rgba(48, 35, 25, 0.13);
  background: #fffefa;
}

#support-dialog .customer-support-field :is(select, textarea):focus {
  border-color: var(--customer-blue);
  box-shadow: 0 0 0 3px rgba(47, 111, 228, 0.13);
}

#support-dialog .customer-support-chat {
  border: 1px solid rgba(48, 35, 25, 0.07);
  background:
    linear-gradient(rgba(255, 255, 255, 0.48), rgba(255, 255, 255, 0.48)),
    radial-gradient(circle at 10px 10px, rgba(47, 111, 228, 0.075) 1px, transparent 1px);
  background-size: auto, 18px 18px;
}

#support-dialog .customer-support-message { border: 1px solid rgba(48, 35, 25, 0.055); }
#support-dialog .customer-support-message--customer { border-color: rgba(33, 78, 170, 0.3); background: linear-gradient(145deg, var(--customer-blue), var(--customer-blue-dark)); }
#support-dialog .customer-support-chat-form { border-color: rgba(48, 35, 25, 0.14); }
#support-dialog .customer-support-attach { color: var(--customer-blue-dark); background: var(--customer-blue-soft); }
#support-dialog .customer-support-send { background: linear-gradient(145deg, var(--customer-blue), var(--customer-blue-dark)); }

:is(#cart-dialog, #checkout-dialog, #orders-dialog, #profile-dialog, #support-dialog, #loyalty-center-dialog) .empty-state,
:is(#cart-dialog, #checkout-dialog, #orders-dialog, #profile-dialog, #support-dialog, #loyalty-center-dialog) .loyalty-state {
  margin: 4px 0;
  padding: 32px 18px;
  border: 1px dashed rgba(48, 35, 25, 0.17);
  border-radius: 18px;
  background: rgba(255, 253, 249, 0.58);
  line-height: 1.5;
}

:is(#cart-dialog, #checkout-dialog, #orders-dialog, #profile-dialog, #support-dialog, #loyalty-center-dialog) .skeleton {
  background: linear-gradient(90deg, #e9e1d7 25%, #fffdf9 50%, #e9e1d7 75%);
  background-size: 200% 100%;
}

.toast {
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 16px 42px rgba(23, 19, 15, 0.24);
  backdrop-filter: blur(12px);
}

@media (hover: hover) and (pointer: fine) {
  #orders-dialog .order-card,
  #support-dialog .customer-support-card,
  #loyalty-center-dialog :is(.loyalty-offer-card, .loyalty-mission, .loyalty-reward) {
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
  }

  #orders-dialog .order-card:hover,
  #support-dialog .customer-support-card:hover,
  #loyalty-center-dialog :is(.loyalty-offer-card, .loyalty-mission, .loyalty-reward):hover {
    border-color: rgba(47, 111, 228, 0.2);
    box-shadow: 0 13px 30px rgba(55, 38, 22, 0.095);
    transform: translateY(-1px);
  }
}

@media (max-width: 479px) {
  :is(#cart-dialog, #checkout-dialog, #orders-dialog, #profile-dialog, #support-dialog, #loyalty-center-dialog) {
    padding-right: 16px;
    padding-left: 16px;
  }

  :is(#cart-dialog, #checkout-dialog, #orders-dialog, #profile-dialog, #loyalty-center-dialog) .cart-heading {
    margin-right: 40px;
    margin-bottom: 13px;
  }

  #cart-dialog .cart-item,
  #checkout-dialog .checkout-section,
  #orders-dialog .order-card { padding: 14px; }

  #cart-dialog .cart-item__modifiers { padding-left: 0; }
  #checkout-dialog .checkout-form { gap: 11px; }
  #profile-dialog .profile-support-card { grid-template-columns: minmax(0, 1fr); }
  #profile-dialog .profile-support-card__button { width: 100%; min-height: 40px; }
  #support-dialog .customer-support-intro__actions { grid-template-columns: minmax(0, 1fr); }
}

@media (min-width: 860px) {
  #checkout-dialog,
  #orders-dialog,
  #profile-dialog,
  #support-dialog,
  #loyalty-center-dialog {
    padding: 20px 24px 24px;
  }

  #cart-dialog .cart-list,
  #orders-dialog #orders-content,
  #loyalty-center-dialog .loyalty-center,
  #profile-dialog #profile-content {
    max-width: 680px;
    margin-right: auto;
    margin-left: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  #orders-dialog .order-card,
  #support-dialog .customer-support-card,
  #loyalty-center-dialog :is(.loyalty-offer-card, .loyalty-mission, .loyalty-reward),
  #checkout-dialog :is(.checkout-option span, .checkout-delivery-method__card, .checkout-payment-option__card, .checkout-time-option__card) {
    transition: none;
  }
}

/* Project Sushista customer themes v65. Visual-only layer; staff workspace is excluded. */
html[data-customer-theme="dark"] {
  --customer-theme-bg: #171716;
  --customer-theme-bg-soft: #1c1c1a;
  --customer-theme-surface: #242422;
  --customer-theme-surface-raised: #2b2b28;
  --customer-theme-field: #20201e;
  --customer-theme-text: #f2efe8;
  --customer-theme-muted: rgba(242, 239, 232, .58);
  --customer-theme-line: rgba(244, 240, 232, .1);
  --customer-theme-accent: #efa91e;
  --customer-theme-accent-dark: #cf8200;
  --customer-theme-on-accent: #17130c;
  --customer-theme-shadow: 0 12px 34px rgba(0, 0, 0, .24);
  --customer-theme-shadow-soft: 0 7px 22px rgba(0, 0, 0, .18);
  --customer-theme-scrollbar: rgba(242, 239, 232, .28);
  --customer-theme-placeholder-a: #2c2c29;
  --customer-theme-placeholder-b: #1d1d1b;
  --bonus-value: #f4d568;
  --bonus-switch-active: #c99520;
  --bonus-switch-thumb: #fffdf8;
}

html[data-customer-theme="light"] {
  --customer-theme-bg: #f3ede2;
  --customer-theme-bg-soft: #ebe2d4;
  --customer-theme-surface: #fffaf1;
  --customer-theme-surface-raised: #f4ecdf;
  --customer-theme-field: #fffdf8;
  --customer-theme-text: #231f19;
  --customer-theme-muted: #756d62;
  --customer-theme-line: rgba(55, 43, 29, .13);
  --customer-theme-accent: #e9a018;
  --customer-theme-accent-dark: #b96f00;
  --customer-theme-on-accent: #1d170d;
  --customer-theme-shadow: 0 14px 36px rgba(63, 44, 19, .13);
  --customer-theme-shadow-soft: 0 7px 22px rgba(63, 44, 19, .09);
  --customer-theme-scrollbar: rgba(63, 44, 19, .28);
  --customer-theme-placeholder-a: #eadfce;
  --customer-theme-placeholder-b: #f8f2e8;
  --bonus-value: #9c5f00;
  --bonus-switch-active: #b06d00;
  --bonus-switch-thumb: #ffffff;
}

html[data-customer-theme]:has(body[data-workspace-mode="customer"]),
html[data-customer-theme] body[data-workspace-mode="customer"] {
  color-scheme: dark;
  background: var(--customer-theme-bg);
  scrollbar-color: var(--customer-theme-scrollbar) var(--customer-theme-bg);
}

html[data-customer-theme="light"]:has(body[data-workspace-mode="customer"]),
html[data-customer-theme="light"] body[data-workspace-mode="customer"] {
  color-scheme: light;
}

html[data-customer-theme] body[data-workspace-mode="customer"]::-webkit-scrollbar,
html[data-customer-theme] body[data-workspace-mode="customer"]::-webkit-scrollbar-track {
  background: var(--customer-theme-bg);
}

#customer-workspace-root {
  --ink: var(--customer-theme-text);
  --muted: var(--customer-theme-muted);
  --paper: var(--customer-theme-bg);
  --card: var(--customer-theme-surface);
  --accent: var(--customer-theme-accent);
  --accent-dark: var(--customer-theme-accent-dark);
  --accent-soft: color-mix(in srgb, var(--customer-theme-accent) 16%, var(--customer-theme-surface));
  --line: var(--customer-theme-line);
  --shadow: var(--customer-theme-shadow);
  --customer-surface: var(--customer-theme-surface);
  --customer-surface-soft: var(--customer-theme-surface-raised);
  --customer-line: var(--customer-theme-line);
  --customer-shadow-sm: var(--customer-theme-shadow-soft);
  --customer-shadow-md: var(--customer-theme-shadow);
  color: var(--customer-theme-text);
  background:
    radial-gradient(circle at 86% 8%, color-mix(in srgb, var(--customer-theme-accent) 7%, transparent), transparent 27rem),
    radial-gradient(circle at 7% 36%, color-mix(in srgb, var(--customer-theme-accent) 4%, transparent), transparent 22rem),
    var(--customer-theme-bg);
  transition: color 180ms ease, background-color 180ms ease;
}

#customer-workspace-root .hero {
  min-height: 230px;
  border-bottom-color: rgba(239, 169, 30, .28);
  background:
    linear-gradient(115deg, rgba(255, 255, 255, .035), transparent 38%),
    radial-gradient(circle at 77% 17%, rgba(239, 169, 30, .14), transparent 20rem),
    linear-gradient(135deg, #1b1b19 0%, #0f0f0f 78%);
}

#customer-workspace-root .hero::before {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(168deg, transparent 0 19px, rgba(255,255,255,.012) 20px, transparent 21px),
    linear-gradient(102deg, transparent 0 70%, rgba(239,169,30,.045) 70% 70.5%, transparent 70.5%);
  content: "";
  pointer-events: none;
}

@font-face {
  font-family: "Project Grunge";
  src: url("./assets/fonts/RubikDirt-Cyrillic.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

.customer-brand-signature {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 10px;
  color: #f4f0e8;
}

.customer-brand-signature[role="button"] {
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.customer-brand-signature[role="button"]:focus-visible {
  outline: 2px solid #efa91e;
  outline-offset: 5px;
  border-radius: 6px;
}

.customer-brand-signature strong {
  font-family: "Project Grunge", Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  letter-spacing: .015em;
  line-height: 1;
  text-transform: uppercase;
}

.customer-brand-signature em { color: #efa91e; font-style: inherit; }

.customer-brand-mark {
  position: relative;
  display: block;
  width: 33px;
  height: 33px;
  flex: 0 0 33px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%;
  background: rgba(255,255,255,.055);
}

.customer-brand-mark::before {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 25px;
  height: 14px;
  background: linear-gradient(145deg, #ffbd31, #dc8900);
  clip-path: polygon(50% 0, 100% 82%, 63% 72%, 50% 100%, 37% 72%, 0 82%);
  content: "";
}

.customer-brand-mark > span {
  position: absolute;
  top: 18px;
  left: 9px;
  width: 15px;
  height: 9px;
  border: 2px solid #f5f1e9;
  border-top: 0;
  border-radius: 0 0 12px 12px;
}

.customer-theme-toggle {
  position: relative;
  z-index: 2;
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  color: #f4f0e8;
  background: rgba(255,255,255,.075);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07);
  backdrop-filter: blur(10px);
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.customer-theme-toggle__icon { font-size: 21px; line-height: 1; }
.customer-theme-toggle__label { display: none; white-space: nowrap; font-size: 12px; font-weight: 800; }

#customer-workspace-root .categories {
  border-bottom: 1px solid var(--customer-theme-line);
  background: color-mix(in srgb, var(--customer-theme-bg) 86%, transparent);
  backdrop-filter: blur(12px);
}

#customer-workspace-root .category-pill {
  border-color: var(--customer-theme-line);
  color: var(--customer-theme-muted);
  background: var(--customer-theme-surface);
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--customer-theme-text) 5%, transparent);
}

#customer-workspace-root .category-pill[aria-current="true"] {
  border-color: var(--customer-theme-accent);
  color: var(--customer-theme-on-accent);
  background: linear-gradient(145deg, var(--customer-theme-accent), var(--customer-theme-accent-dark));
  box-shadow: 0 8px 20px color-mix(in srgb, var(--customer-theme-accent) 22%, transparent);
}

#customer-workspace-root .section-heading .eyebrow--dark { color: var(--customer-theme-accent-dark); }
#customer-workspace-root .section-heading h2 { color: var(--customer-theme-text); }
#customer-workspace-root .result-count { color: var(--customer-theme-muted); }

#customer-workspace-root .product-card {
  border-color: var(--customer-theme-line);
  background: var(--customer-theme-surface);
  box-shadow: var(--customer-theme-shadow-soft);
}

#customer-workspace-root .product-card__body h3 { color: var(--customer-theme-text); }
#customer-workspace-root .product-card__description,
#customer-workspace-root .weight { color: var(--customer-theme-muted); }
#customer-workspace-root .price { color: var(--customer-theme-accent-dark); }
#customer-workspace-root .product-card .image-placeholder {
  color: color-mix(in srgb, var(--customer-theme-text) 28%, transparent);
  background: linear-gradient(145deg, var(--customer-theme-placeholder-a), var(--customer-theme-placeholder-b));
}

html[data-customer-theme="dark"] #customer-workspace-root .product-card__image { filter: saturate(.96) brightness(.94); }
html[data-customer-theme="light"] #customer-workspace-root .product-card__image { filter: saturate(1.01) contrast(1.01); }

#customer-workspace-root .plus-button,
#customer-workspace-root .floating-cart {
  color: var(--customer-theme-on-accent);
  background: linear-gradient(145deg, var(--customer-theme-accent), var(--customer-theme-accent-dark));
}

#customer-workspace-root .plus-button { box-shadow: 0 7px 16px color-mix(in srgb, var(--customer-theme-accent) 23%, transparent); }
#customer-workspace-root .plus-button::before,
#customer-workspace-root .plus-button::after { background: var(--customer-theme-on-accent); }
#customer-workspace-root .floating-cart {
  border-color: color-mix(in srgb, var(--customer-theme-accent) 46%, var(--customer-theme-line));
  box-shadow: 0 18px 42px color-mix(in srgb, var(--customer-theme-accent) 18%, rgba(0,0,0,.3));
}

body[data-workspace-mode="customer"] :is(
  #product-dialog,
  #cart-dialog,
  #checkout-dialog,
  #orders-dialog,
  #profile-dialog,
  #support-dialog,
  #loyalty-center-dialog,
  #more-dialog,
  .order-review-dialog,
  .loyalty-history-sheet,
  .onboarding
) {
  --ink: var(--customer-theme-text);
  --muted: var(--customer-theme-muted);
  --paper: var(--customer-theme-bg);
  --card: var(--customer-theme-surface);
  --accent: var(--customer-theme-accent);
  --accent-dark: var(--customer-theme-accent-dark);
  --accent-soft: color-mix(in srgb, var(--customer-theme-accent) 16%, var(--customer-theme-surface));
  --line: var(--customer-theme-line);
  --shadow: var(--customer-theme-shadow);
  --customer-blue: var(--customer-theme-accent);
  --customer-blue-dark: var(--customer-theme-accent-dark);
  --customer-blue-soft: color-mix(in srgb, var(--customer-theme-accent) 14%, var(--customer-theme-surface));
  --customer-card: var(--customer-theme-surface);
  --customer-card-muted: var(--customer-theme-surface-raised);
  --customer-card-line: var(--customer-theme-line);
  --customer-card-shadow: var(--customer-theme-shadow-soft);
  color: var(--customer-theme-text);
  border-color: var(--customer-theme-line);
  background:
    radial-gradient(circle at 100% 0, color-mix(in srgb, var(--customer-theme-accent) 7%, transparent), transparent 18rem),
    var(--customer-theme-bg);
}

body[data-workspace-mode="customer"] :is(#product-dialog, #cart-dialog, #checkout-dialog, #orders-dialog, #profile-dialog, #support-dialog, #loyalty-center-dialog, #more-dialog) > .sheet__close {
  color: var(--customer-theme-text);
  border-color: var(--customer-theme-line);
  background: var(--customer-theme-surface-raised);
}

body[data-workspace-mode="customer"] :is(#product-dialog, #cart-dialog, #checkout-dialog, #orders-dialog, #profile-dialog, #support-dialog, #loyalty-center-dialog, #more-dialog) .sheet__handle {
  background: color-mix(in srgb, var(--customer-theme-text) 20%, transparent);
}

body[data-workspace-mode="customer"] :is(#cart-dialog, #checkout-dialog, #orders-dialog, #profile-dialog, #support-dialog, #loyalty-center-dialog) .cart-heading {
  border-color: var(--customer-theme-line);
}

body[data-workspace-mode="customer"] #product-dialog .product-dialog__footer {
  background: linear-gradient(transparent, var(--customer-theme-bg) 24%);
}

body[data-workspace-mode="customer"] #product-dialog .primary-button,
body[data-workspace-mode="customer"] #cart-dialog .cart-checkout,
body[data-workspace-mode="customer"] #checkout-dialog .checkout-submit {
  color: var(--customer-theme-on-accent);
  background: linear-gradient(145deg, var(--customer-theme-accent), var(--customer-theme-accent-dark));
  box-shadow: 0 10px 24px color-mix(in srgb, var(--customer-theme-accent) 22%, transparent);
}

body[data-workspace-mode="customer"] #cart-dialog :is(.cart-overview, .cart-item, .cart-summary),
body[data-workspace-mode="customer"] #checkout-dialog .checkout-section,
body[data-workspace-mode="customer"] #orders-dialog .order-card,
body[data-workspace-mode="customer"] #support-dialog .customer-support-card,
body[data-workspace-mode="customer"] #more-dialog .navigation-menu__item {
  color: var(--customer-theme-text);
  border-color: var(--customer-theme-line);
  background: var(--customer-theme-surface);
  box-shadow: var(--customer-theme-shadow-soft);
}

body[data-workspace-mode="customer"] #cart-dialog .cart-overview {
  background: linear-gradient(135deg, color-mix(in srgb, var(--customer-theme-accent) 12%, var(--customer-theme-surface)), var(--customer-theme-surface));
}

body[data-workspace-mode="customer"] #cart-dialog .cart-overview__count,
body[data-workspace-mode="customer"] #cart-dialog .cart-item__marker {
  color: var(--customer-theme-on-accent);
  background: linear-gradient(145deg, var(--customer-theme-accent), var(--customer-theme-accent-dark));
}

body[data-workspace-mode="customer"] #cart-dialog .cart-item__modifiers span,
body[data-workspace-mode="customer"] #cart-dialog .quantity-control,
body[data-workspace-mode="customer"] #checkout-dialog :is(.checkout-option span, .checkout-delivery-method__card, .checkout-payment-option__card, .checkout-time-option__card),
body[data-workspace-mode="customer"] #checkout-dialog .checkout-recipient__summary,
body[data-workspace-mode="customer"] #checkout-dialog :is(.checkout-bonus, .checkout-earn),
body[data-workspace-mode="customer"] #orders-dialog .repeat-preview {
  color: var(--customer-theme-text);
  border-color: var(--customer-theme-line);
  background: var(--customer-theme-surface-raised);
}

body[data-workspace-mode="customer"] #checkout-dialog :is(.checkout-option input:checked + span, .checkout-delivery-method input:checked + .checkout-delivery-method__card, .checkout-payment-option input:checked + .checkout-payment-option__card, .checkout-time-option input:checked + .checkout-time-option__card),
body[data-workspace-mode="customer"] #checkout-dialog :is(.checkout-schedule__date--active, .checkout-schedule__time--active),
body[data-workspace-mode="customer"] #checkout-dialog :is(.checkout-zone-trigger--selected .checkout-zone-trigger__icon, .checkout-zone-choice--selected) {
  color: var(--customer-theme-on-accent);
  border-color: var(--customer-theme-accent-dark);
  background: linear-gradient(145deg, var(--customer-theme-accent), var(--customer-theme-accent-dark));
  box-shadow: 0 8px 18px color-mix(in srgb, var(--customer-theme-accent) 20%, transparent);
}

body[data-workspace-mode="customer"] #checkout-dialog :is(.checkout-zone-trigger, .checkout-zone-panel, input:not([type="checkbox"]):not([type="radio"]), textarea, select),
body[data-workspace-mode="customer"] #support-dialog .customer-support-field :is(select, textarea),
body[data-workspace-mode="customer"] .order-review__comment {
  color: var(--customer-theme-text);
  border-color: var(--customer-theme-line);
  background-color: var(--customer-theme-field);
}

body[data-workspace-mode="customer"] #orders-dialog .order-card__arrow {
  color: var(--customer-theme-accent-dark);
  background-color: color-mix(in srgb, var(--customer-theme-accent) 14%, var(--customer-theme-surface));
}

body[data-workspace-mode="customer"] :is(.order-review-dialog, .loyalty-history-sheet) {
  color: var(--customer-theme-text);
  background: var(--customer-theme-bg);
}

body[data-workspace-mode="customer"] :is(.order-review__header, .order-review__star, .order-review__chip) {
  color: var(--customer-theme-text);
  border-color: var(--customer-theme-line);
  background: var(--customer-theme-surface);
}

/* Order and courier review v124: one soft, theme-aware feedback surface. */
body[data-workspace-mode="customer"] .order-review-dialog {
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--customer-theme-line) 82%, var(--customer-theme-accent) 18%);
  border-radius: 26px 26px 0 0;
  color: var(--customer-theme-text);
  background:
    radial-gradient(circle at 92% 2%, color-mix(in srgb, var(--customer-theme-accent) 10%, transparent), transparent 13rem),
    var(--customer-theme-surface);
  box-shadow: 0 24px 64px rgba(0, 0, 0, .34);
}

body[data-workspace-mode="customer"] .order-review-dialog::backdrop {
  background: rgba(8, 8, 7, .66);
  backdrop-filter: blur(5px);
}

body[data-workspace-mode="customer"] .order-review {
  max-height: min(88dvh, 760px);
}

body[data-workspace-mode="customer"] .order-review__header {
  align-items: center;
  padding: 20px 22px 13px;
  border: 0;
  background: transparent;
}

.product-card__media { position: relative; }
.product-card__discount-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  color: #fff;
  background: #ef482f;
  font-size: 11px;
  font-weight: 900;
  box-shadow: 0 6px 18px rgba(239,72,47,.28);
}

@media (min-width: 768px) {
  #customer-workspace-root .product-card__discount-badge,
  #product-dialog .product-dialog__discount-badge {
    min-height: 27px;
    padding: 4px 9px;
    border: 1px solid rgba(255,255,255,.68);
    color: #fff;
    background: #f0442c;
    font-size: 12px;
    font-weight: 950;
    line-height: 1;
    letter-spacing: -.01em;
    text-shadow: 0 1px 1px rgba(93,17,7,.42);
    box-shadow: 0 7px 18px rgba(0,0,0,.32), 0 2px 8px rgba(239,72,47,.32);
    -webkit-font-smoothing: antialiased;
    text-rendering: geometricPrecision;
  }
}

@media (min-width: 1280px) {
  #customer-workspace-root .product-card__discount-badge,
  #product-dialog .product-dialog__discount-badge {
    box-sizing: border-box;
    justify-content: center;
    height: 32px;
    min-height: 32px;
    padding: 0 10px;
    border: 0;
    border-radius: 16px;
    background: #ef442f;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0;
    text-shadow: none;
    box-shadow: none;
    text-rendering: geometricPrecision;
    -webkit-font-smoothing: antialiased;
    font-synthesis: none;
    font-variant-numeric: normal;
  }
}

body[data-workspace-mode="customer"] .order-review__header > div { gap: 5px; }
body[data-workspace-mode="customer"] .order-review__header strong {
  font-size: clamp(18px, 4.8vw, 21px);
  line-height: 1.15;
}

body[data-workspace-mode="customer"] .order-review__header p {
  color: var(--customer-theme-muted);
  font-size: 12px;
}

body[data-workspace-mode="customer"] .order-review__close {
  width: 38px;
  height: 38px;
  border: 1px solid var(--customer-theme-line);
  color: var(--customer-theme-text);
  background: color-mix(in srgb, var(--customer-theme-surface-raised) 88%, transparent);
  font-size: 22px;
}

body[data-workspace-mode="customer"] .order-review__content {
  gap: 20px;
  padding: 14px 22px 18px;
}

body[data-workspace-mode="customer"] :is(.order-review__rating, .order-review__tags) {
  gap: 10px;
}

body[data-workspace-mode="customer"] :is(.order-review__rating, .order-review__tags) > strong {
  color: var(--customer-theme-text);
  font-size: 13px;
  line-height: 1.25;
}

body[data-workspace-mode="customer"] .order-review__rating > strong {
  text-align: center;
}

body[data-workspace-mode="customer"] .order-review__stars {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 1.4vw, 18px);
}

body[data-workspace-mode="customer"] .order-review__star {
  display: grid;
  width: clamp(44px, 3vw, 56px);
  min-width: clamp(44px, 3vw, 56px);
  height: clamp(44px, 3vw, 56px);
  min-height: clamp(44px, 3vw, 56px);
  place-items: center;
  padding: 3px;
  border: 0;
  border-radius: 50%;
  color: color-mix(in srgb, var(--customer-theme-muted) 62%, var(--customer-theme-text) 38%);
  background: transparent;
  box-shadow: none;
  transform: none;
  -webkit-tap-highlight-color: transparent;
}

body[data-workspace-mode="customer"] .order-review__star svg {
  width: clamp(34px, 2.4vw, 44px);
  height: clamp(34px, 2.4vw, 44px);
  overflow: visible;
  filter: none;
}

body[data-workspace-mode="customer"] .order-review__star svg path {
  fill: transparent;
  stroke: currentColor;
  stroke-linejoin: round;
  stroke-width: 1.55;
  transition: fill .16s ease, stroke .16s ease, transform .16s ease;
  transform-origin: center;
}

body[data-workspace-mode="customer"] .order-review__star.is-selected {
  color: var(--customer-theme-accent);
  background: transparent;
  box-shadow: none;
  transform: none;
}

body[data-workspace-mode="customer"] .order-review__star.is-selected svg path {
  fill: currentColor;
  stroke: color-mix(in srgb, var(--customer-theme-accent-dark) 76%, var(--customer-theme-text) 24%);
  transform: scale(1.04);
}

body[data-workspace-mode="customer"] .order-review__star:focus-visible {
  outline: 2px solid var(--customer-theme-accent);
  outline-offset: 1px;
}

body[data-workspace-mode="customer"] .order-review__chips { gap: 8px; }
body[data-workspace-mode="customer"] .order-review__chip {
  min-height: 35px;
  padding: 8px 12px;
  border: 1px solid var(--customer-theme-line);
  color: var(--customer-theme-text);
  background: color-mix(in srgb, var(--customer-theme-surface-raised) 74%, transparent);
  box-shadow: none;
  -webkit-tap-highlight-color: transparent;
}

body[data-workspace-mode="customer"] .order-review__chip.is-selected {
  border-color: color-mix(in srgb, var(--customer-theme-accent-dark) 72%, var(--customer-theme-line));
  color: var(--customer-theme-on-accent);
  background: linear-gradient(145deg, var(--customer-theme-accent), var(--customer-theme-accent-dark));
  box-shadow: 0 6px 16px color-mix(in srgb, var(--customer-theme-accent) 18%, transparent);
}

body[data-workspace-mode="customer"] .order-review__comment {
  min-height: 92px;
  padding: 13px 14px;
  border-radius: 16px;
  outline: 0;
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--customer-theme-text) 3%, transparent);
}

body[data-workspace-mode="customer"] .order-review__comment:focus {
  border-color: color-mix(in srgb, var(--customer-theme-accent) 58%, var(--customer-theme-line));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--customer-theme-accent) 13%, transparent);
}

body[data-workspace-mode="customer"] .order-review__error {
  color: #e85c46;
}

body[data-workspace-mode="customer"] .order-review__submit {
  display: flex;
  width: auto;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  margin: 0 22px max(20px, env(safe-area-inset-bottom));
  padding: 12px 18px;
  text-align: center;
  line-height: 1.15;
}

html[data-customer-theme="dark"] body[data-workspace-mode="customer"] .order-review__star.is-selected {
  color: #f4b72f;
}

html[data-customer-theme="light"] body[data-workspace-mode="customer"] .order-review__star.is-selected {
  color: #c97800;
}

@media (min-width: 720px) {
  body[data-workspace-mode="customer"] .order-review-dialog {
    border-radius: 26px;
  }
}

@media (max-width: 380px) {
  body[data-workspace-mode="customer"] .order-review__header { padding-inline: 18px; }
  body[data-workspace-mode="customer"] .order-review__content { padding-inline: 18px; }
  body[data-workspace-mode="customer"] .order-review__stars { justify-content: center; gap: 4px; }
  body[data-workspace-mode="customer"] .order-review__star {
    width: 40px;
    min-width: 40px;
    height: 40px;
    min-height: 40px;
  }
  body[data-workspace-mode="customer"] .order-review__star svg { width: 31px; height: 31px; }
  body[data-workspace-mode="customer"] .order-review__submit { margin-inline: 18px; }
}

body[data-workspace-mode="customer"] #support-dialog .customer-support-chat {
  border-color: var(--customer-theme-line);
  background:
    linear-gradient(color-mix(in srgb, var(--customer-theme-surface) 78%, transparent), color-mix(in srgb, var(--customer-theme-surface) 78%, transparent)),
    radial-gradient(circle at 10px 10px, color-mix(in srgb, var(--customer-theme-accent) 12%, transparent) 1px, transparent 1px);
  background-size: auto, 18px 18px;
}

body[data-workspace-mode="customer"] #support-dialog .customer-support-message,
body[data-workspace-mode="customer"] #support-dialog .customer-support-chat-form {
  border-color: var(--customer-theme-line);
}

body[data-workspace-mode="customer"] #support-dialog .customer-support-message--customer,
body[data-workspace-mode="customer"] #support-dialog .customer-support-compose__icon,
body[data-workspace-mode="customer"] #support-dialog .customer-support-send {
  color: var(--customer-theme-on-accent);
  background: linear-gradient(145deg, var(--customer-theme-accent), var(--customer-theme-accent-dark));
}

body[data-workspace-mode="customer"] :is(#cart-dialog, #checkout-dialog, #orders-dialog, #profile-dialog, #support-dialog, #loyalty-center-dialog) :is(.empty-state, .loyalty-state) {
  border-color: var(--customer-theme-line);
  background: color-mix(in srgb, var(--customer-theme-surface) 72%, transparent);
}

body[data-workspace-mode="customer"] .onboarding {
  color: var(--customer-theme-text);
  background:
    radial-gradient(circle at 90% 5%, color-mix(in srgb, var(--customer-theme-accent) 20%, transparent) 0 16%, transparent 17%),
    linear-gradient(145deg, var(--customer-theme-surface-raised), var(--customer-theme-bg));
}

body[data-workspace-mode="customer"] .onboarding__mark,
body[data-workspace-mode="customer"] .onboarding__form .primary-button {
  color: var(--customer-theme-on-accent);
  background: linear-gradient(145deg, var(--customer-theme-accent), var(--customer-theme-accent-dark));
}

body[data-workspace-mode="customer"] .onboarding__form input {
  color: var(--customer-theme-text);
  border-color: var(--customer-theme-line);
  background: var(--customer-theme-field);
}

@media (hover: hover) and (pointer: fine) {
  .customer-theme-toggle:hover {
    border-color: rgba(239,169,30,.5);
    background: rgba(239,169,30,.12);
    transform: translateY(-1px);
  }

  #customer-workspace-root .category-pill:hover:not([aria-current="true"]),
  body[data-workspace-mode="customer"] #more-dialog .navigation-menu__item:hover {
    border-color: color-mix(in srgb, var(--customer-theme-accent) 28%, var(--customer-theme-line));
    background: var(--customer-theme-surface-raised);
  }

  #customer-workspace-root .product-card:hover {
    border-color: color-mix(in srgb, var(--customer-theme-accent) 27%, var(--customer-theme-line));
    box-shadow: var(--customer-theme-shadow);
  }
}

@media (min-width: 1280px) {
  .customer-theme-toggle {
    width: auto;
    min-width: 48px;
    padding: 0 15px;
  }

  .customer-theme-toggle__label { display: inline; }
}

@media (max-width: 479px) {
  #customer-workspace-root .hero { min-height: 245px; }
  .customer-brand-signature { margin-bottom: 7px; }
  .customer-theme-toggle { width: 46px; height: 46px; }
}

@media (max-width: 339px) {
  .customer-theme-toggle { width: 42px; height: 42px; }
  .customer-theme-toggle__icon { font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  #customer-workspace-root,
  .customer-theme-toggle { transition: none; }
}

/* v66: premium catalog hero. Content remains bound to the public location settings. */
#customer-workspace-root .hero {
  isolation: isolate;
  min-height: clamp(360px, 31vw, 470px);
  padding: calc(30px + env(safe-area-inset-top)) clamp(32px, 6vw, 112px) 42px;
  border-bottom-color: rgba(239, 169, 30, .3);
  background:
    linear-gradient(90deg, rgba(5, 5, 5, .98) 0%, rgba(5, 5, 5, .92) 31%, rgba(5, 5, 5, .48) 55%, rgba(5, 5, 5, .08) 78%),
    linear-gradient(0deg, rgba(5, 5, 5, .72), transparent 38%),
    url("./assets/project-sushista-catalog-hero-v66.jpg") center / cover no-repeat,
    #080808;
}

#customer-workspace-root .hero::before {
  z-index: -1;
  background:
    radial-gradient(circle at 64% 32%, rgba(239, 137, 14, .11), transparent 22rem),
    linear-gradient(180deg, rgba(0,0,0,.05), transparent 68%, rgba(0,0,0,.54));
}

#customer-workspace-root .hero::after {
  z-index: -1;
  inset: auto 0 0;
  width: auto;
  height: 72px;
  border: 0;
  border-radius: 0;
  opacity: 1;
  background: linear-gradient(transparent, rgba(6, 6, 6, .72));
}

#customer-workspace-root .hero__top { display: block; }
#customer-workspace-root .hero__identity { display: block; }
#customer-workspace-root .hero__copy {
  display: block;
  width: min(52%, 660px);
  margin: 0;
  padding-top: 126px;
  container-type: inline-size;
}

/* Mobile controls v87: keep counters visible and checkout rows inside their cards. */
body[data-workspace-mode="customer"] :is(#product-dialog, #cart-dialog) .quantity-control {
  width: 124px;
  min-width: 124px;
  flex: 0 0 124px;
  color: var(--customer-theme-text);
  border: 1px solid color-mix(in srgb, var(--customer-theme-text) 24%, transparent);
  background: var(--customer-theme-surface-raised);
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--customer-theme-text) 7%, transparent);
}

body[data-workspace-mode="customer"] :is(#product-dialog, #cart-dialog) .quantity-control button {
  position: relative;
  display: grid;
  min-width: 40px;
  padding: 0;
  place-items: center;
  color: var(--customer-theme-text);
  background: color-mix(in srgb, var(--customer-theme-text) 5%, transparent);
  font-size: 0;
  -webkit-appearance: none;
  appearance: none;
}

body[data-workspace-mode="customer"] :is(#product-dialog, #cart-dialog) .quantity-control button:first-child {
  border-right: 1px solid color-mix(in srgb, var(--customer-theme-text) 18%, transparent);
}

body[data-workspace-mode="customer"] :is(#product-dialog, #cart-dialog) .quantity-control button:last-child {
  border-left: 1px solid color-mix(in srgb, var(--customer-theme-text) 18%, transparent);
}

body[data-workspace-mode="customer"] :is(#product-dialog, #cart-dialog) .quantity-control button::before,
body[data-workspace-mode="customer"] :is(#product-dialog, #cart-dialog) .quantity-control button:last-child::after {
  position: absolute;
  width: 14px;
  height: 2px;
  border-radius: 99px;
  background: currentColor;
  content: "";
}

body[data-workspace-mode="customer"] :is(#product-dialog, #cart-dialog) .quantity-control button:last-child::after {
  transform: rotate(90deg);
}

body[data-workspace-mode="customer"] :is(#product-dialog, #cart-dialog) .quantity-control strong {
  min-width: 0;
  color: var(--customer-theme-text);
}

#checkout-dialog :is(.checkout-section, .checkout-recipient__summary, .checkout-bonus, .checkout-earn) {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

#checkout-dialog .checkout-section > * { min-width: 0; }

#checkout-dialog .checkout-recipient__summary {
  padding: 10px 12px;
}

#checkout-dialog .checkout-recipient__edit {
  min-width: 0;
  max-width: 100%;
  justify-self: end;
  white-space: nowrap;
}

#checkout-dialog .checkout-earn {
  padding: 12px;
}

@media (max-width: 479px) {
  #checkout-dialog .checkout-recipient__summary {
    grid-template-columns: 38px minmax(0, 1fr) auto;
    gap: 8px;
    padding: 9px 10px;
  }

  #checkout-dialog .checkout-recipient__avatar {
    width: 38px;
    height: 38px;
  }

  #checkout-dialog .checkout-recipient__edit {
    padding: 7px 8px;
    font-size: 11px;
  }

  #checkout-dialog .checkout-earn {
    grid-template-columns: 28px minmax(0, 1fr) auto;
    gap: 8px;
    padding: 11px 10px;
  }
}

/* v140: real chat bubbles with Telegram-like time placement. */
body[data-workspace-mode="customer"] #profile-dialog .profile-section-heading__icon--pin {
  width: 40px;
  height: 40px;
  border: 1px solid color-mix(in srgb, var(--customer-theme-accent) 22%, var(--customer-theme-line));
  border-radius: 13px;
  background: linear-gradient(145deg,
    color-mix(in srgb, var(--customer-theme-accent) 13%, var(--customer-theme-surface-raised)),
    var(--customer-theme-surface-raised));
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--customer-theme-text) 8%, transparent);
}

body[data-workspace-mode="customer"] #profile-dialog .profile-section-heading__icon--pin .dimensional-icon {
  width: 26px;
  height: 26px;
}

#customer-workspace-root .hero__contact-icon--phone {
  width: 21px;
  height: 21px;
  flex-basis: 21px;
}

#customer-workspace-root .hero__contact-icon--phone .dimensional-icon,
#customer-workspace-root .hero__contact-icon--phone .dimensional-icon svg {
  width: 21px;
  height: 21px;
}

@media (max-width: 767px) {
  #customer-workspace-root .hero__contacts {
    margin-top: 26px;
  }
}

/* Versioned legal confirmations shared by onboarding, profile and checkout. */
.legal-confirmations { display: grid; gap: 10px; }
.legal-confirmation {
  display: grid !important;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: start;
  gap: 10px !important;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(255, 205, 91, .24);
  border-radius: 14px;
  background: rgba(255, 255, 255, .055);
  font-size: 12px;
  font-weight: 600 !important;
  line-height: 1.45;
  cursor: pointer;
}
.legal-confirmation input[type="checkbox"],
.onboarding__form .legal-confirmation input[type="checkbox"] {
  appearance: none;
  display: grid;
  width: 20px;
  height: 20px;
  min-width: 20px;
  margin: 0;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(255, 205, 91, .62);
  border-radius: 6px;
  background: rgba(0, 0, 0, .16);
}
.legal-confirmation input[type="checkbox"]::before {
  content: "✓";
  color: #21180d;
  font-size: 14px;
  font-weight: 950;
  transform: scale(0);
  transition: transform 120ms ease;
}
.legal-confirmation input[type="checkbox"]:checked { background: #f1ab1b; }
.legal-confirmation input[type="checkbox"]:checked::before { transform: scale(1); }
.legal-confirmation input[type="checkbox"]:focus-visible { outline: 3px solid rgba(241,171,27,.28); outline-offset: 2px; }
.legal-confirmation__copy { min-width: 0; }
.legal-confirmation__link { color: #ffd66d; font-weight: 800; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.onboarding__actions { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 9px; }
.onboarding__actions .secondary-button { min-width: 112px; }
.onboarding .legal-confirmations { margin-top: 2px; }
.onboarding .legal-confirmation { color: #f1eee7; }
.onboarding .legal-confirmation__link { color: #f0b12b; }
.profile-legal { display: grid; gap: 14px; margin-bottom: 24px; }
.profile-legal__states { display: grid; gap: 8px; }
.profile-legal__state { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-top: 1px solid rgba(255,255,255,.1); font-size: 12px; }
.profile-legal__state > span { text-align: right; }
.profile-legal__state-copy { display: grid; min-width: 0; gap: 5px; }
.profile-legal__state-links { color: rgba(255,249,239,.62); font-size: 10px; line-height: 1.45; }
.profile-legal__state-links .legal-confirmation__link { font-size: inherit; }
.profile-legal__state .is-accepted { color: #9ed68f; }
.profile-legal__state .is-pending { color: #ffd16a; }
.profile-legal__form .primary-button { width: 100%; }
.profile-legal__withdraw { justify-self: start; padding: 7px 0; border: 0; color: #ffad98; background: transparent; font: inherit; font-size: 11px; font-weight: 750; text-align: left; }
.checkout-legal .legal-confirmation { color: var(--ink); background: color-mix(in srgb, var(--card) 88%, var(--accent-soft)); }
.checkout-legal .legal-confirmation__link { color: var(--accent); }

@media (max-width: 420px) {
  .onboarding { max-height: calc(100dvh - 20px); padding: 22px 18px; overflow-y: auto; }
  .onboarding__mark { width: 44px; height: 44px; margin-bottom: 14px; border-radius: 14px; }
  .onboarding h1 { font-size: 31px; }
  .onboarding__form { margin-top: 17px; }
  .onboarding__actions { grid-template-columns: 1fr; }
  .onboarding__actions .secondary-button { width: 100%; }
  .profile-legal__state { align-items: flex-start; flex-direction: column; gap: 4px; }
  .profile-legal__state > span { text-align: left; }
}

/* Compact first-entry experience and repeatable staff preview. */
body[data-workspace-mode="customer"] .onboarding {
  box-sizing: border-box;
  width: min(calc(100% - 24px), 520px);
  max-height: calc(100dvh - 24px);
  margin: auto;
  padding: clamp(18px, 4vw, 26px);
  overflow-x: hidden;
  overflow-y: auto;
  border: 1px solid color-mix(in srgb, var(--customer-theme-accent) 24%, var(--customer-theme-line));
  border-radius: 26px;
  color: var(--customer-theme-text);
  background:
    radial-gradient(circle at 92% 2%, color-mix(in srgb, var(--customer-theme-accent) 16%, transparent), transparent 12rem),
    linear-gradient(155deg, var(--customer-theme-surface-raised), var(--customer-theme-bg));
  box-shadow: 0 28px 80px rgba(0, 0, 0, .42);
}

body[data-workspace-mode="customer"] .onboarding::backdrop {
  background: rgba(5, 5, 5, .84);
  backdrop-filter: blur(9px);
}

.onboarding__preview-badge {
  margin: -2px 0 14px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 205, 91, .28);
  border-radius: 10px;
  color: #ffd36b;
  background: rgba(239, 169, 30, .09);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .055em;
  line-height: 1.35;
  text-align: center;
}

.onboarding__header {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
  gap: 15px;
}

.onboarding__brand {
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 205, 91, .2);
  border-radius: 22px;
  background: radial-gradient(circle at 50% 20%, rgba(255, 187, 41, .14), transparent 70%);
  box-shadow: inset 0 1px rgba(255,255,255,.06), 0 12px 28px rgba(0,0,0,.18);
}

.onboarding__brand img { width: 64px; height: 64px; object-fit: contain; }
.onboarding__heading { min-width: 0; }
.onboarding__eyebrow { margin: 0 0 5px; color: var(--customer-theme-accent); font-size: 9px; font-weight: 900; letter-spacing: .12em; }
body[data-workspace-mode="customer"] .onboarding h1 { max-width: none; margin: 0; font: 900 clamp(25px, 6vw, 32px)/1.03 Inter, system-ui, sans-serif; letter-spacing: -.035em; }
.onboarding__lead { margin: 8px 0 0; color: var(--customer-theme-muted); font-size: 11px; line-height: 1.45; }

body[data-workspace-mode="customer"] .onboarding__form { gap: 12px; margin-top: 19px; }
body[data-workspace-mode="customer"] .onboarding__name-field { display: grid; gap: 7px; font-size: 11px; font-weight: 800; }
body[data-workspace-mode="customer"] .onboarding__name-field > span { padding-left: 3px; color: var(--customer-theme-muted); }
body[data-workspace-mode="customer"] .onboarding__name-field input {
  box-sizing: border-box;
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid var(--customer-theme-line);
  border-radius: 14px;
  color: var(--customer-theme-text);
  background: var(--customer-theme-field);
  font-size: 15px;
  font-weight: 750;
  outline: none;
}
body[data-workspace-mode="customer"] .onboarding__name-field input:focus { border-color: color-mix(in srgb, var(--customer-theme-accent) 68%, white); box-shadow: 0 0 0 3px color-mix(in srgb, var(--customer-theme-accent) 16%, transparent); }

.onboarding__legal-heading { display: grid; gap: 3px; margin-top: 2px; padding: 0 3px; }
.onboarding__legal-heading strong { font-size: 12px; }
.onboarding__legal-heading span { color: var(--customer-theme-muted); font-size: 9px; line-height: 1.35; }
body[data-workspace-mode="customer"] .onboarding .legal-confirmation { padding: 11px; border-radius: 13px; color: var(--customer-theme-text); background: color-mix(in srgb, var(--customer-theme-field) 84%, transparent); font-size: 10px; line-height: 1.42; }
body[data-workspace-mode="customer"] .onboarding .legal-confirmation__link { color: var(--customer-theme-accent); }
body[data-workspace-mode="customer"] .onboarding .legal-confirmation--optional {
  border-style: dashed;
  color: color-mix(in srgb, var(--customer-theme-text) 82%, transparent);
}
body[data-workspace-mode="customer"] .onboarding .legal-confirmation--optional strong { color: var(--customer-theme-accent); }
body[data-workspace-mode="customer"] .onboarding__actions { grid-template-columns: minmax(0, 1fr) 118px; gap: 8px; margin-top: 2px; }
body[data-workspace-mode="customer"] .onboarding__actions :is(.primary-button, .secondary-button) { min-height: 46px; border-radius: 13px; font-size: 12px; }
body[data-workspace-mode="customer"] .onboarding__note { margin: 12px 2px 0; color: var(--customer-theme-muted); font-size: 9px; line-height: 1.45; opacity: 1; text-align: center; }
.onboarding--preview { outline: 1px solid rgba(255, 205, 91, .18); outline-offset: -6px; }

.profile-onboarding-preview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin: 0 0 24px;
  padding: 13px 15px;
  border: 1px dashed rgba(255, 205, 91, .3);
  border-radius: 17px;
  color: #fff9ef;
  background: rgba(239, 169, 30, .06);
}
.profile-onboarding-preview__copy { display: grid; min-width: 0; gap: 3px; }
.profile-onboarding-preview__copy strong { font-size: 12px; }
.profile-onboarding-preview__copy small { color: rgba(255,249,239,.58); font-size: 9px; line-height: 1.35; }
.profile-onboarding-preview .secondary-button { min-height: 38px; padding: 8px 10px; border-color: rgba(255,205,91,.28); color: #ffd36b; font-size: 10px; white-space: nowrap; }

@media (max-width: 420px) {
  body[data-workspace-mode="customer"] .onboarding { width: min(calc(100% - 12px), 520px); max-height: calc(100dvh - 12px); padding: 16px 14px; border-radius: 22px; }
  .onboarding__header { grid-template-columns: 58px minmax(0, 1fr); gap: 12px; }
  .onboarding__brand { width: 58px; height: 58px; border-radius: 18px; }
  .onboarding__brand img { width: 52px; height: 52px; }
  body[data-workspace-mode="customer"] .onboarding h1 { font-size: 25px; }
  .onboarding__lead { margin-top: 6px; font-size: 10px; }
  body[data-workspace-mode="customer"] .onboarding__form { gap: 10px; margin-top: 15px; }
  body[data-workspace-mode="customer"] .onboarding .legal-confirmation { padding: 10px; font-size: 9.5px; }
  body[data-workspace-mode="customer"] .onboarding__actions { grid-template-columns: 1fr 104px; }
  .profile-onboarding-preview { grid-template-columns: 1fr; }
  .profile-onboarding-preview .secondary-button { width: 100%; }
}

@media (max-height: 680px) {
  .onboarding__preview-badge { margin-bottom: 9px; }
  .onboarding__header { grid-template-columns: 52px minmax(0, 1fr); gap: 11px; }
  .onboarding__brand { width: 52px; height: 52px; border-radius: 16px; }
  .onboarding__brand img { width: 47px; height: 47px; }
  body[data-workspace-mode="customer"] .onboarding h1 { font-size: 23px; }
  .onboarding__lead { font-size: 9.5px; }
  body[data-workspace-mode="customer"] .onboarding__form { gap: 9px; margin-top: 13px; }
  body[data-workspace-mode="customer"] .onboarding__name-field input { min-height: 44px; padding: 10px 12px; }
  body[data-workspace-mode="customer"] .onboarding .legal-confirmation { padding: 9px; font-size: 9px; }
  body[data-workspace-mode="customer"] .onboarding__actions :is(.primary-button, .secondary-button) { min-height: 42px; }
}

/* Onboarding refinement: fewer outlines and a calmer hierarchy. */
body[data-workspace-mode="customer"] .onboarding {
  border-color: rgba(255, 205, 91, .18);
  background:
    radial-gradient(circle at 88% 4%, rgba(239, 169, 30, .09), transparent 13rem),
    linear-gradient(155deg, var(--customer-theme-surface-raised), var(--customer-theme-bg));
}
.onboarding--preview { outline: 0; }
.onboarding__preview-badge {
  width: fit-content;
  max-width: 100%;
  margin-right: auto;
  margin-left: auto;
  padding: 6px 12px;
  border-color: rgba(255, 205, 91, .2);
  border-radius: 999px;
  background: rgba(239, 169, 30, .065);
}
.onboarding__brand {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}
body[data-workspace-mode="customer"] .onboarding__name-field input {
  border-color: color-mix(in srgb, var(--customer-theme-line) 82%, transparent);
  box-shadow: inset 0 1px rgba(255,255,255,.025);
}
body[data-workspace-mode="customer"] .onboarding .legal-confirmation {
  border-color: color-mix(in srgb, var(--customer-theme-line) 82%, transparent);
  background: color-mix(in srgb, var(--customer-theme-field) 72%, transparent);
  box-shadow: inset 0 1px rgba(255,255,255,.018);
}
.onboarding__legal-heading span { opacity: .82; }
body[data-workspace-mode="customer"] .onboarding__note { max-width: 410px; margin-right: auto; margin-left: auto; }

.onboarding-exit-confirm {
  width: min(calc(100% - 28px), 430px);
  padding: 24px;
  border: 1px solid rgba(255, 205, 91, .2);
  border-radius: 24px;
  color: #f4f0e8;
  background:
    radial-gradient(circle at 92% 0, rgba(239,169,30,.11), transparent 11rem),
    linear-gradient(155deg, #272521, #171716);
  box-shadow: 0 28px 80px rgba(0,0,0,.48);
}
.onboarding-exit-confirm h2 { color: #f4f0e8; }
.onboarding-exit-confirm::backdrop { background: rgba(4,4,4,.86); backdrop-filter: blur(10px); }
.onboarding-exit-confirm__icon {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
  place-items: center;
  border-radius: 14px;
  color: #21180d;
  background: linear-gradient(145deg, #ffc446, #df9006);
  font-size: 22px;
  font-weight: 950;
  box-shadow: 0 9px 22px rgba(223,144,6,.2);
}
.onboarding-exit-confirm h2 { margin: 0 0 10px; font-size: 22px; line-height: 1.12; }
.onboarding-exit-confirm p { margin: 0; color: rgba(244,240,232,.72); font-size: 12px; line-height: 1.5; }
.onboarding-exit-confirm .onboarding-exit-confirm__hint { margin-top: 10px; color: rgba(244,240,232,.5); font-size: 10px; }
.onboarding-exit-confirm__actions { grid-template-columns: minmax(0, 1fr); gap: 9px; margin-top: 20px; }
.onboarding-exit-confirm__actions button { width: 100%; min-height: 46px; border-radius: 13px; font-size: 11px; }
.onboarding-exit-confirm__continue {
  grid-row: 2;
  border-color: rgba(255,255,255,.12);
  color: rgba(244,240,232,.72);
  background: rgba(255,255,255,.045);
}
.onboarding-exit-confirm__back {
  grid-row: 1;
  color: #21180d;
  background: linear-gradient(145deg, #ffbd32, #e49205);
  box-shadow: 0 9px 22px rgba(228,146,5,.18);
}

@media (max-width: 420px) {
  .onboarding-exit-confirm { padding: 20px 17px; border-radius: 21px; }
  .onboarding-exit-confirm h2 { font-size: 20px; }
}

body[data-workspace-mode="customer"] #support-dialog .customer-support-chat {
  gap: 7px;
  padding: 12px 12px 18px;
  border: 0;
  border-radius: 0;
  background:
    radial-gradient(circle at 10px 10px, color-mix(in srgb, var(--customer-theme-accent) 6%, transparent) 1px, transparent 1px),
    transparent;
  background-size: 20px 20px, auto;
}

body[data-workspace-mode="customer"] #support-dialog .customer-support-message,
body[data-workspace-mode="customer"] #support-dialog .customer-support-message--customer,
body[data-workspace-mode="customer"] #support-dialog .customer-support-message--system {
  display: grid;
  width: fit-content;
  max-width: min(74%, 520px);
  gap: 3px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: var(--customer-theme-text);
  background: transparent;
  box-shadow: none;
  text-align: left;
}

body[data-workspace-mode="customer"] #support-dialog .customer-support-message--customer {
  max-width: min(80%, 560px);
  color: var(--customer-theme-on-accent);
}

body[data-workspace-mode="customer"] #support-dialog .customer-support-message--system {
  align-self: center;
  max-width: min(86%, 520px);
  color: var(--customer-theme-muted);
  text-align: center;
}

body[data-workspace-mode="customer"] #support-dialog .customer-support-message__author {
  display: flex;
  min-width: 0;
  align-items: baseline;
  gap: 4px;
  padding: 0 8px;
  color: var(--customer-theme-muted);
  line-height: 1;
}

body[data-workspace-mode="customer"] #support-dialog .customer-support-message__author strong {
  font-size: 9px;
  font-weight: 800;
}

body[data-workspace-mode="customer"] #support-dialog .customer-support-message__author small {
  padding: 0;
  background: transparent;
  font-size: 7px;
  font-weight: 650;
  opacity: .56;
}

body[data-workspace-mode="customer"] #support-dialog .customer-support-message__author small::before {
  margin-right: 4px;
  content: "·";
}

body[data-workspace-mode="customer"] #support-dialog .customer-support-message__bubble {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 2px 6px;
  min-width: 48px;
  padding: 8px 9px 6px 10px;
  border: 1px solid var(--customer-theme-line);
  border-radius: 17px 17px 17px 5px;
  background: var(--customer-theme-surface-raised);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
}

body[data-workspace-mode="customer"] #support-dialog .customer-support-message--customer .customer-support-message__bubble {
  border-color: color-mix(in srgb, var(--customer-theme-accent-dark) 72%, transparent);
  border-radius: 17px 17px 5px 17px;
  background: linear-gradient(145deg, var(--customer-theme-accent), var(--customer-theme-accent-dark));
}

body[data-workspace-mode="customer"] #support-dialog .customer-support-message--system .customer-support-message__bubble {
  display: block;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--customer-theme-surface);
  box-shadow: none;
  text-align: center;
}

body[data-workspace-mode="customer"] #support-dialog .customer-support-message__body {
  grid-row: 1;
  grid-column: 1;
  min-width: 0;
  font-size: 13px;
  line-height: 1.38;
}

body[data-workspace-mode="customer"] #support-dialog .customer-support-message__time {
  grid-row: 1;
  grid-column: 2;
  align-self: end;
  justify-self: end;
  margin: 0 0 1px;
  font-size: 8px;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  white-space: nowrap;
  opacity: .52;
}

body[data-workspace-mode="customer"] #support-dialog .customer-support-message.has-attachments {
  max-width: min(78%, 300px);
  padding: 0;
}

body[data-workspace-mode="customer"] #support-dialog .customer-support-message.has-attachments .customer-support-message__bubble {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  padding: 3px;
  overflow: hidden;
}

body[data-workspace-mode="customer"] #support-dialog .customer-support-message.has-attachments .customer-support-message__body {
  grid-row: auto;
  grid-column: 1;
  margin: 0;
  padding: 6px 7px 7px;
}

body[data-workspace-mode="customer"] #support-dialog .customer-support-message.has-attachments .support-attachments,
body[data-workspace-mode="customer"] #support-dialog .customer-support-message.has-attachments .support-attachments--2 {
  grid-row: auto;
  grid-column: 1;
  width: min(280px, 68vw);
  max-width: 100%;
  gap: 3px;
}

body[data-workspace-mode="customer"] #support-dialog .customer-support-message.has-attachments .support-attachment {
  border-radius: 14px;
}

body[data-workspace-mode="customer"] #support-dialog .customer-support-message.has-attachments .customer-support-message__time {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 1;
  margin: 0;
  padding: 3px 5px;
  border-radius: 999px;
  color: #fff;
  background: rgba(0, 0, 0, .52);
  box-shadow: 0 1px 4px rgba(0, 0, 0, .24);
  opacity: .9;
}

@media (max-width: 479px) {
  body[data-workspace-mode="customer"] #support-dialog .customer-support-chat {
    padding-inline: 9px;
  }

  body[data-workspace-mode="customer"] #support-dialog .customer-support-message {
    max-width: 78%;
  }

  body[data-workspace-mode="customer"] #support-dialog .customer-support-message--customer {
    max-width: 84%;
  }

  body[data-workspace-mode="customer"] #support-dialog .customer-support-message.has-attachments {
    max-width: min(82%, 286px);
  }

  body[data-workspace-mode="customer"] #support-dialog .customer-support-message.has-attachments .support-attachments,
  body[data-workspace-mode="customer"] #support-dialog .customer-support-message.has-attachments .support-attachments--2 {
    width: min(270px, 72vw);
  }
}

.customer-brand-signature {
  position: absolute;
  top: calc(28px + env(safe-area-inset-top));
  left: 50%;
  flex-direction: column;
  justify-content: flex-start;
  gap: 2px;
  width: clamp(124px, 11vw, 164px);
  margin: 0;
  text-align: center;
  transform: translateX(-50%);
}

.customer-brand-mark {
  width: 64px;
  height: 57px;
  flex: 0 0 auto;
  border: 0;
  border-radius: 0;
  object-fit: contain;
  object-position: center;
  background: transparent;
  filter: drop-shadow(0 5px 12px rgba(0, 0, 0, .38));
}

.customer-brand-mark::before,
.customer-brand-mark > span { display: none; }

.customer-brand-signature__copy { display: block; }
.customer-brand-signature strong {
  display: block;
  font-size: clamp(17px, 1.1vw, 20px);
  letter-spacing: .015em;
  line-height: .86;
  text-shadow: 0 3px 12px rgba(0,0,0,.8);
}
.customer-brand-signature strong span,
.customer-brand-signature strong em {
  display: block;
  white-space: nowrap;
}
.customer-brand-signature small {
  color: rgba(255,255,255,.66);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .2em;
}

#customer-workspace-root .hero__eyebrow {
  width: fit-content;
  margin: 0 0 12px;
  padding: 6px 11px;
  border: 1px solid rgba(239, 169, 30, .58);
  border-radius: 999px;
  color: #efa91e;
  background: rgba(8,8,8,.34);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .13em;
  line-height: 1;
  backdrop-filter: blur(8px);
}

#customer-workspace-root .hero__copy h1 {
  max-width: none;
  margin: 0;
  color: #fff;
  font-family: "Project Grunge", Impact, Haettenschweiler, "Arial Narrow Bold", Arial, sans-serif;
  font-size: clamp(30px, 3vw, 48px);
  font-size: clamp(28px, 7.2cqi, 48px);
  font-style: normal;
  font-weight: 400;
  letter-spacing: -.01em;
  line-height: .98;
  overflow-wrap: normal;
  white-space: nowrap;
  text-shadow: 0 5px 24px rgba(0,0,0,.88);
  text-transform: uppercase;
}

#customer-workspace-root .hero__copy h1 em {
  color: #efa91e;
  font-style: inherit;
}

#customer-workspace-root .hero__description {
  max-width: min(47%, 650px);
  margin: 20px 0 0;
  color: rgba(255,255,255,.78);
  font-size: clamp(14px, 1.15vw, 18px);
  line-height: 1.55;
  text-shadow: 0 2px 12px rgba(0,0,0,.92);
}

#customer-workspace-root .hero__contacts {
  position: relative;
  z-index: 1;
  display: flex;
  width: fit-content;
  max-width: min(54%, 760px);
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
  padding: 8px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 20px;
  background: rgba(22,22,21,.72);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.055), 0 14px 34px rgba(0,0,0,.24);
  backdrop-filter: blur(14px);
}

#customer-workspace-root .location-line {
  width: auto;
  max-width: 100%;
  margin: 0;
  padding: 8px 11px;
  border: 0;
  border-radius: 12px;
  color: rgba(255,255,255,.94);
  background: transparent;
  box-shadow: none;
  font-size: clamp(13px, 1vw, 16px);
  font-weight: 720;
  line-height: 1.3;
  text-decoration: none;
  overflow-wrap: anywhere;
}

#customer-workspace-root .hero__contact-icon {
  position: relative;
  width: 17px;
  height: 21px;
  flex: 0 0 17px;
  color: transparent;
  font-size: 0;
}

#customer-workspace-root .hero__contact-icon::before {
  position: absolute;
  inset: 1px 2px 5px;
  border: 3px solid #efa91e;
  border-radius: 50% 50% 50% 0;
  content: "";
  transform: rotate(-45deg);
}

#customer-workspace-root .hero__contact-icon::after {
  position: absolute;
  top: 6px;
  left: 7px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #efa91e;
  content: "";
}

#customer-workspace-root .location-line--phone .hero__contact-icon::before {
  inset: 2px;
  border-width: 0 0 4px 4px;
  border-radius: 3px 3px 3px 10px;
  transform: rotate(-42deg);
}

#customer-workspace-root .location-line--phone .hero__contact-icon::after {
  top: 2px;
  left: 1px;
  width: 8px;
  height: 8px;
  border: 3px solid #efa91e;
  border-right: 0;
  border-bottom: 0;
  border-radius: 6px 0 0;
  background: transparent;
}

html[data-customer-theme="dark"] #customer-workspace-root .categories {
  border-color: rgba(255,255,255,.06);
  background: rgba(10,10,10,.92);
}

html[data-customer-theme="dark"] #customer-workspace-root .category-pill {
  border-color: rgba(255,255,255,.09);
  color: rgba(255,255,255,.82);
  background: linear-gradient(145deg, #242423, #191919);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.045);
}

html[data-customer-theme="dark"] #customer-workspace-root .category-pill[aria-current="true"] {
  border-color: #f0a411;
  color: #15100a;
  background: linear-gradient(145deg, #ffbd2d, #e99508);
  box-shadow: 0 9px 24px rgba(239,169,30,.22), inset 0 1px 0 rgba(255,255,255,.42);
}

html[data-customer-theme="dark"] #customer-workspace-root .product-card {
  border-color: rgba(255,255,255,.08);
  background: linear-gradient(160deg, #242423, #191919);
  box-shadow: 0 16px 34px rgba(0,0,0,.24), inset 0 1px 0 rgba(255,255,255,.035);
}

html[data-customer-theme="dark"] #customer-workspace-root .product-card__body {
  border-top: 1px solid rgba(255,255,255,.045);
}

html[data-customer-theme="dark"] #customer-workspace-root .product-card__body h3 { color: #fff; }
html[data-customer-theme="dark"] #customer-workspace-root .price { color: #ffae13; }

@media (min-width: 1024px) {
  #customer-workspace-root .hero { display: block; }
  #customer-workspace-root .hero__top { display: block; }
  #customer-workspace-root .hero__identity { display: block; }
  #customer-workspace-root .hero__copy { margin: 0; }
  #customer-workspace-root .hero__description { margin: 20px 0 0; }
  #customer-workspace-root .hero__actions { top: calc(30px + env(safe-area-inset-top)); }
  #customer-workspace-root .icon-button.hero__menu-button { top: calc(30px + env(safe-area-inset-top)); }
}

@media (max-width: 767px) {
  #customer-workspace-root .hero {
    min-height: 440px;
    padding: calc(18px + env(safe-area-inset-top)) 16px 25px;
    background:
      linear-gradient(90deg, rgba(5,5,5,.98), rgba(5,5,5,.78) 72%, rgba(5,5,5,.46)),
      linear-gradient(0deg, rgba(5,5,5,.72), transparent 45%),
      url("./assets/project-sushista-catalog-hero-v66.jpg") 66% center / auto 100% no-repeat,
      #080808;
  }

  #customer-workspace-root .hero__top {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    align-items: start;
    gap: 8px;
  }

  #customer-workspace-root .hero__identity { display: contents; }
  #customer-workspace-root .icon-button.hero__menu-button {
    position: relative;
    inset: auto;
    grid-column: 1;
    grid-row: 1;
    width: 46px;
    height: 46px;
    margin: 0;
  }

  #customer-workspace-root .hero__actions {
    position: relative;
    inset: auto;
    grid-column: 3;
    grid-row: 1;
    gap: 4px;
  }

  #customer-workspace-root .hero__copy {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    padding-top: 65px;
  }

  .customer-brand-signature {
    top: calc(24px + env(safe-area-inset-top));
    width: 124px;
  }
  .customer-brand-mark { width: 54px; height: 48px; flex-basis: auto; }
  .customer-brand-signature strong { font-size: 16px; white-space: nowrap; }
  #customer-workspace-root .hero__copy h1 {
    width: 100%;
    max-width: none;
    font-size: clamp(25px, 8.2vw, 35px);
    letter-spacing: -.025em;
    line-height: 1;
    overflow-wrap: normal;
    white-space: nowrap;
  }
  #customer-workspace-root .hero__description { max-width: 88%; margin-top: 15px; font-size: 14px; }
  #customer-workspace-root .hero__contacts { max-width: 100%; margin-top: 18px; border-radius: 17px; }
  #customer-workspace-root .location-line { font-size: 13px; }
}

@media (max-width: 399px) {
  #customer-workspace-root .hero { min-height: 458px; }
  .customer-brand-signature__copy small { display: none; }
  #customer-workspace-root .hero__copy h1 { font-size: clamp(24px, 8vw, 31px); }
  #customer-workspace-root .hero__description { max-width: 100%; }
  #customer-workspace-root .hero__contacts { display: grid; width: 100%; }
}

/* v67: product cards and service benefits aligned with the premium storefront. */
#customer-workspace-root .section-heading { align-items: end; }
#customer-workspace-root .section-heading__subtitle {
  margin: 7px 0 0;
  color: var(--customer-theme-muted);
  font-size: 11px;
  line-height: 1.35;
}

#customer-workspace-root .product-card {
  border-radius: 17px;
  transform: translateZ(0);
}

#customer-workspace-root .product-card__button { position: relative; }
#customer-workspace-root .product-card__image {
  aspect-ratio: 1.04;
  border-bottom: 1px solid var(--customer-theme-line);
}

#customer-workspace-root .product-card__body {
  min-height: 150px;
  padding: 15px 14px 13px;
}

#customer-workspace-root .product-card__body h3 {
  min-height: 2.24em;
  margin-bottom: 8px;
  font-size: 17px;
  line-height: 1.12;
}

#customer-workspace-root .product-card__description {
  min-height: 3.9em;
  margin-bottom: 15px;
  -webkit-line-clamp: 3;
  font-size: 11px;
  line-height: 1.3;
}

#customer-workspace-root .product-card__bottom { min-height: 38px; }
#customer-workspace-root .price {
  font-size: 16px;
  font-weight: 900;
  letter-spacing: -.02em;
}

#customer-workspace-root .weight { margin-top: 3px; font-size: 10px; }
#customer-workspace-root .plus-button {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
}

/* Mobile checkout polish v88. */
body[data-workspace-mode="customer"],
body[data-workspace-mode="customer"] * {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

body[data-workspace-mode="customer"]::-webkit-scrollbar,
body[data-workspace-mode="customer"] *::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

body[data-workspace-mode="customer"] :is(#product-dialog, #cart-dialog, #checkout-dialog) {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

html[data-customer-theme="light"] #customer-workspace-root .category-pill:not([aria-current="true"]) {
  color: #51493f;
  font-weight: 760;
  opacity: 1;
}

body[data-workspace-mode="customer"] #checkout-dialog .checkout-recipient__edit {
  color: var(--customer-theme-text);
  border-color: var(--customer-theme-line);
  background: var(--customer-theme-field);
  opacity: 1;
}

body[data-workspace-mode="customer"] #checkout-dialog .checkout-schedule {
  color: var(--customer-theme-text);
  border-color: var(--customer-theme-line);
  background: var(--customer-theme-surface-raised);
}

body[data-workspace-mode="customer"] #checkout-dialog :is(.checkout-schedule__date, .checkout-schedule__time) {
  color: var(--customer-theme-text);
  border-color: var(--customer-theme-line);
  background: var(--customer-theme-field);
  opacity: 1;
  -webkit-text-fill-color: currentColor;
}

body[data-workspace-mode="customer"] #checkout-dialog :is(.checkout-schedule__date, .checkout-schedule__time):disabled {
  color: var(--customer-theme-muted);
  background: var(--customer-theme-surface);
  opacity: .68;
}

body[data-workspace-mode="customer"] #checkout-dialog :is(.checkout-schedule__date--active, .checkout-schedule__time--active) {
  color: var(--customer-theme-on-accent);
  border-color: var(--customer-theme-accent-dark);
  background: linear-gradient(145deg, var(--customer-theme-accent), var(--customer-theme-accent-dark));
  box-shadow: none;
  -webkit-text-fill-color: currentColor;
}

#checkout-dialog .checkout-bonus__copy {
  align-content: center;
  gap: 3px;
  line-height: normal;
}

#checkout-dialog .checkout-bonus__copy :is(strong, small) {
  display: block;
  margin: 0;
}

#checkout-dialog .checkout-bonus__copy strong { line-height: 1.25; }
#checkout-dialog .checkout-bonus__copy small { line-height: 1.3; }

#checkout-dialog .checkout-earn__icon {
  position: relative;
  font-size: 0;
}

#checkout-dialog .checkout-earn__icon::before {
  width: 15px;
  aspect-ratio: 1;
  background: currentColor;
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 94%, 50% 72%, 21% 94%, 32% 57%, 2% 35%, 39% 35%);
  content: "";
}

#checkout-dialog .checkout-payment-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  margin-right: 0;
  margin-left: 0;
  padding-right: 0;
  padding-left: 0;
}

#checkout-dialog .checkout-payment-option {
  min-width: 0;
  height: 100%;
}

#checkout-dialog .checkout-payment-option__card {
  grid-template-rows: 24px minmax(32px, auto);
  width: 100%;
  height: 100%;
  min-height: 96px;
  align-content: stretch;
}

#checkout-dialog .checkout-payment-option__icon {
  display: flex;
  height: 24px;
  align-items: center;
  line-height: 24px;
}

#checkout-dialog .checkout-payment-option__card strong {
  align-self: start;
  padding-top: 8px;
}

#checkout-dialog .checkout-time-options { align-items: stretch; }

#checkout-dialog .checkout-time-option__card {
  grid-template-rows: 24px minmax(0, 1fr);
  min-height: 122px;
  align-content: stretch;
}

#checkout-dialog .checkout-time-option__icon {
  display: flex;
  height: 24px;
  align-items: center;
  line-height: 24px;
}

#checkout-dialog .checkout-time-option__copy {
  align-content: start;
  align-self: stretch;
  padding-top: 10px;
}

@media (max-width: 479px) {
  #checkout-dialog .checkout-payment-option__card {
    min-height: 98px;
    padding: 11px;
  }

  #checkout-dialog .checkout-time-option__card {
    min-height: 124px;
    padding: 11px;
  }
}

/* Checkout alignment v89. */
#checkout-dialog .checkout-earn__icon::before {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  width: 15px;
  height: 15px;
  transform: translate(-50%, -50%);
}

#checkout-dialog .checkout-bonus {
  padding: 14px 12px;
}

#checkout-dialog .checkout-payment-option input:checked + .checkout-payment-option__card {
  box-shadow: inset 0 1px 0 color-mix(in srgb, white 35%, transparent);
}

@media (max-width: 479px) {
  #checkout-dialog .checkout-bonus {
    gap: 10px;
    padding: 13px 11px;
  }
}
#customer-workspace-root .plus-button::before,
#customer-workspace-root .plus-button::after { display: none; }
#customer-workspace-root .plus-button svg {
  display: block;
  width: 15px;
  height: 15px;
  overflow: visible;
  pointer-events: none;
}
#customer-workspace-root .plus-button path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

html[data-customer-theme="dark"] #customer-workspace-root .product-card {
  border-color: rgba(255,255,255,.075);
  background:
    radial-gradient(circle at 85% 102%, rgba(239,169,30,.055), transparent 9rem),
    linear-gradient(155deg, #242423, #171717);
  box-shadow: 0 18px 38px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.04);
}

html[data-customer-theme="dark"] #customer-workspace-root .product-card__image {
  border-bottom-color: rgba(255,255,255,.055);
  filter: saturate(1.02) contrast(1.025) brightness(.91);
}

html[data-customer-theme="dark"] #customer-workspace-root .product-card .image-placeholder {
  color: rgba(255,255,255,.25);
  background:
    radial-gradient(circle at 50% 42%, rgba(239,169,30,.08), transparent 5rem),
    linear-gradient(145deg, #222220, #171716);
}

#customer-workspace-root .customer-benefits {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 28px clamp(20px, 4vw, 52px) 34px;
  overflow: hidden;
  border: 1px solid var(--customer-theme-line);
  border-radius: 13px;
  background: var(--customer-theme-surface);
  box-shadow: var(--customer-theme-shadow-soft);
}

#customer-workspace-root .customer-benefit {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 11px;
  min-height: 70px;
  padding: 13px 16px;
  border-right: 1px solid var(--customer-theme-line);
}

#customer-workspace-root .customer-benefit:last-child { border-right: 0; }
#customer-workspace-root .customer-benefit > span:last-child {
  display: grid;
  min-width: 0;
  gap: 5px;
}

#customer-workspace-root .customer-benefit strong {
  color: var(--customer-theme-text);
  font-size: 12px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

#customer-workspace-root .customer-benefit small {
  color: var(--customer-theme-muted);
  font-size: 10px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

#customer-workspace-root .customer-benefit__icon {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--customer-theme-accent) 50%, var(--customer-theme-line));
  border-radius: 50%;
  color: var(--customer-theme-accent);
  background: color-mix(in srgb, var(--customer-theme-accent) 7%, var(--customer-theme-surface-raised));
}

#customer-workspace-root .customer-benefit__icon svg {
  width: 21px;
  height: 21px;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#customer-workspace-root :is(.customer-benefit__icon--delivery, .customer-benefit__icon--quality) svg {
  width: 24px;
  height: 24px;
  stroke-width: 2.05;
}

#customer-workspace-root .customer-benefit__delivery-art {
  width: 28px;
  height: 28px;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#customer-workspace-root .customer-benefit__icon--delivery { overflow: hidden; }

#customer-workspace-root .customer-benefit__delivery-speed { stroke-width: 2.2; }
#customer-workspace-root .customer-benefit__delivery-bolt { fill: currentColor; stroke: none; }

#customer-workspace-root .customer-benefit__verification-badge {
  fill: currentColor;
  stroke: currentColor;
}

#customer-workspace-root .customer-benefit__verification-check {
  fill: none;
  stroke: #1a1a18;
  stroke-width: 2.15;
}

html[data-customer-theme="dark"] #customer-workspace-root .customer-benefits {
  border-color: rgba(255,255,255,.075);
  background: linear-gradient(100deg, #1a1a19, #151514 48%, #1b1a18);
  box-shadow: 0 18px 42px rgba(0,0,0,.24), inset 0 1px 0 rgba(255,255,255,.035);
}

html[data-customer-theme="dark"] #customer-workspace-root .customer-benefit {
  border-right-color: rgba(255,255,255,.065);
}

@media (hover: hover) and (pointer: fine) {
  html[data-customer-theme="dark"] #customer-workspace-root .product-card:hover {
    border-color: rgba(239,169,30,.25);
    box-shadow: 0 22px 48px rgba(0,0,0,.34), 0 0 0 1px rgba(239,169,30,.06);
  }
}

@media (max-width: 899px) {
  #customer-workspace-root .customer-benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #customer-workspace-root .customer-benefit:nth-child(2) { border-right: 0; }
  #customer-workspace-root .customer-benefit:nth-child(-n+2) { border-bottom: 1px solid var(--customer-theme-line); }
  html[data-customer-theme="dark"] #customer-workspace-root .customer-benefit:nth-child(-n+2) { border-bottom-color: rgba(255,255,255,.065); }
}

@media (max-width: 479px) {
  #customer-workspace-root .product-card__image { aspect-ratio: 1.02; }
  #customer-workspace-root .product-card__body { min-height: 143px; padding: 13px 11px 11px; }
  #customer-workspace-root .product-card__body h3 { min-height: 2.2em; font-size: 15px; }
  #customer-workspace-root .product-card__description { min-height: 3.75em; margin-bottom: 11px; font-size: 10px; }
  #customer-workspace-root .price { font-size: 14px; }
  #customer-workspace-root .plus-button {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
  }
  #customer-workspace-root .plus-button svg { width: 14px; height: 14px; }
  #customer-workspace-root .customer-benefits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 20px 12px 28px;
  }
  #customer-workspace-root .customer-benefit,
  #customer-workspace-root .customer-benefit:nth-child(2) {
    min-height: 76px;
    padding: 13px 11px;
    border-right: 1px solid var(--customer-theme-line);
    border-bottom: 1px solid var(--customer-theme-line);
  }
  #customer-workspace-root .customer-benefit:nth-child(2n) { border-right: 0; }
  #customer-workspace-root .customer-benefit:nth-child(n+3) { border-bottom: 0; }
  html[data-customer-theme="dark"] #customer-workspace-root .customer-benefit,
  html[data-customer-theme="dark"] #customer-workspace-root .customer-benefit:nth-child(2) { border-bottom-color: rgba(255,255,255,.065); }
  html[data-customer-theme="dark"] #customer-workspace-root .customer-benefit:nth-child(n+3) { border-bottom-color: transparent; }
  #customer-workspace-root .customer-benefit__icon { width: 34px; height: 34px; flex-basis: 34px; }
  #customer-workspace-root .customer-benefit__icon svg { width: 19px; height: 19px; }
  #customer-workspace-root :is(.customer-benefit__icon--delivery, .customer-benefit__icon--quality) svg { width: 22px; height: 22px; }
  #customer-workspace-root .customer-benefit__delivery-art { width: 26px; height: 26px; }
  #customer-workspace-root .customer-benefit strong { font-size: 11px; }
  #customer-workspace-root .customer-benefit small { font-size: 9px; }
}

/* v68: compact four-part benefits rail with illustrated amber icons. */
/* v69: refined delivery and quality icons; approved gift and support icons stay unchanged. */
/* v70: reference scooter and yellow social-verification badge. */
/* v71: approved electric-scooter artwork in the delivery benefit. */
/* v72: deterministic SVG crop keeps the approved scooter inside the icon. */
/* v73: delivery scooter uses the same transparent amber SVG system as peer icons. */
/* v74: exact user-selected generated electric scooter artwork. */
/* v75: compact native SVG scooter stays crisp at the real Telegram icon size. */
/* v76: bold speed bolt replaces the over-detailed delivery vehicle at icon size. */

/* v94: rich scarlet promo action for the dark customer theme. */
html[data-customer-theme="dark"] body[data-workspace-mode="customer"] #checkout-dialog .checkout-promo__icon {
  color: #fff4e8;
  background: linear-gradient(145deg, #f0523d, #bd281f);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .26),
    0 6px 16px rgba(189, 40, 31, .3);
}

/* v91: suppress the Android WebView tap flash without changing component states. */
body[data-workspace-mode="customer"] :is(
  a,
  button,
  label,
  summary,
  select,
  [role="button"],
  [tabindex]
) {
  -webkit-tap-highlight-color: transparent;
}

/* v92: compact quantity controls and one focus ring around the chat composer. */
body[data-workspace-mode="customer"] :is(#product-dialog, #cart-dialog) .quantity-control {
  width: 90px;
  min-width: 90px;
  flex-basis: 90px;
  grid-template-columns: 29px 32px 29px;
  border-radius: 10px;
}

body[data-workspace-mode="customer"] :is(#product-dialog, #cart-dialog) .quantity-control button {
  min-width: 29px;
  height: 34px;
}

body[data-workspace-mode="customer"] :is(#product-dialog, #cart-dialog) .quantity-control strong {
  font-size: 13px;
}

body[data-workspace-mode="customer"] :is(#product-dialog, #cart-dialog) .quantity-control button::before,
body[data-workspace-mode="customer"] :is(#product-dialog, #cart-dialog) .quantity-control button:last-child::after {
  width: 10px;
}

#support-dialog .customer-support-chat-form textarea:focus,
#support-dialog .customer-support-chat-form textarea:focus-visible {
  outline: 0;
  box-shadow: none;
}

body[data-workspace-mode="customer"] #support-dialog .customer-support-chat-form:focus-within {
  border-color: color-mix(in srgb, var(--customer-theme-accent) 48%, var(--customer-theme-line));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--customer-theme-accent) 13%, transparent);
}

@media (max-width: 479px) {
  body[data-workspace-mode="customer"] :is(#product-dialog, #cart-dialog) .quantity-control {
    width: 72px;
    min-width: 72px;
    flex-basis: 72px;
    grid-template-columns: 23px 26px 23px;
    border-radius: 9px;
  }

  body[data-workspace-mode="customer"] :is(#product-dialog, #cart-dialog) .quantity-control button {
    min-width: 23px;
    height: 28px;
  }

  body[data-workspace-mode="customer"] :is(#product-dialog, #cart-dialog) .quantity-control strong {
    font-size: 12px;
  }

  body[data-workspace-mode="customer"] :is(#product-dialog, #cart-dialog) .quantity-control button::before,
  body[data-workspace-mode="customer"] :is(#product-dialog, #cart-dialog) .quantity-control button:last-child::after {
    width: 8px;
    height: 1.5px;
  }
}

/* Final mobile surfaces and controls v90. */
#profile-dialog .profile-field input:focus,
#profile-dialog .profile-field input:focus-visible {
  outline: 0;
  box-shadow: none;
}

#profile-dialog .profile-field:focus-within {
  border-color: rgba(255, 217, 120, .58);
  box-shadow: 0 0 0 1px rgba(255, 217, 120, .16);
}

#checkout-dialog .checkout-payment-option {
  overflow: hidden;
  border-radius: 14px;
  filter: none;
}

#checkout-dialog .checkout-payment-option:has(input:focus-visible) {
  outline: 0;
}

body[data-workspace-mode="customer"] #checkout-dialog .checkout-payment-option input:checked + .checkout-payment-option__card {
  overflow: hidden;
  box-shadow: none;
  filter: none;
  transform: none;
}

body[data-workspace-mode="customer"] :is(#product-dialog, #cart-dialog) .quantity-control {
  width: 108px;
  min-width: 108px;
  flex-basis: 108px;
  grid-template-columns: 34px 40px 34px;
  border-radius: 12px;
}

body[data-workspace-mode="customer"] :is(#product-dialog, #cart-dialog) .quantity-control button {
  min-width: 34px;
  height: 38px;
}

body[data-workspace-mode="customer"] :is(#product-dialog, #cart-dialog) .quantity-control button::before,
body[data-workspace-mode="customer"] :is(#product-dialog, #cart-dialog) .quantity-control button:last-child::after {
  width: 12px;
}

html[data-customer-theme="dark"] body[data-workspace-mode="customer"] #support-dialog {
  color: var(--customer-theme-text);
  background: var(--customer-theme-bg);
}

html[data-customer-theme="dark"] body[data-workspace-mode="customer"] #support-dialog .customer-support-thread-overview {
  color: var(--customer-theme-text);
  border-color: var(--customer-theme-line);
  background: var(--customer-theme-surface-raised);
}

html[data-customer-theme="dark"] body[data-workspace-mode="customer"] #support-dialog .customer-support-thread-overview__copy :is(strong, small) {
  color: var(--customer-theme-text);
}

html[data-customer-theme="dark"] body[data-workspace-mode="customer"] #support-dialog .customer-support-thread-overview__copy small {
  opacity: .62;
}

html[data-customer-theme="dark"] body[data-workspace-mode="customer"] #support-dialog .customer-support-chat {
  border-color: var(--customer-theme-line);
  background:
    linear-gradient(rgba(20, 20, 19, .94), rgba(20, 20, 19, .94)),
    radial-gradient(circle at 10px 10px, rgba(239, 169, 30, .1) 1px, transparent 1px);
  background-size: auto, 18px 18px;
}

html[data-customer-theme="dark"] body[data-workspace-mode="customer"] #support-dialog .customer-support-message {
  color: var(--customer-theme-text);
  border-color: var(--customer-theme-line);
  background: var(--customer-theme-surface-raised);
  box-shadow: 0 5px 14px rgba(0, 0, 0, .22);
}

html[data-customer-theme="dark"] body[data-workspace-mode="customer"] #support-dialog .customer-support-message--customer {
  color: var(--customer-theme-on-accent);
  border-color: var(--customer-theme-accent-dark);
  background: linear-gradient(145deg, var(--customer-theme-accent), var(--customer-theme-accent-dark));
}

html[data-customer-theme="dark"] body[data-workspace-mode="customer"] #support-dialog .customer-support-message--system {
  color: var(--customer-theme-muted);
  background: var(--customer-theme-surface);
  box-shadow: none;
}

html[data-customer-theme="dark"] body[data-workspace-mode="customer"] #support-dialog .customer-support-chat-controls {
  border-color: var(--customer-theme-line);
  background: color-mix(in srgb, var(--customer-theme-bg) 94%, transparent);
}

html[data-customer-theme="dark"] body[data-workspace-mode="customer"] #support-dialog .customer-support-chat-form {
  border-color: var(--customer-theme-line);
  background: var(--customer-theme-surface-raised);
  box-shadow: 0 5px 16px rgba(0, 0, 0, .2);
}

html[data-customer-theme="dark"] body[data-workspace-mode="customer"] #support-dialog .customer-support-chat-form textarea {
  color: var(--customer-theme-text);
}

html[data-customer-theme="dark"] body[data-workspace-mode="customer"] #support-dialog .customer-support-chat-form textarea::placeholder {
  color: var(--customer-theme-muted);
}

html[data-customer-theme="dark"] body[data-workspace-mode="customer"] #support-dialog .customer-support-attach {
  color: var(--customer-theme-accent);
  background: var(--customer-theme-surface);
}

/* v99: compact, evenly aligned support composer on phones. */
@media (max-width: 767px) {
  body[data-workspace-mode="customer"] #support-dialog .customer-support-chat-controls {
    gap: 6px;
    margin-inline: -8px;
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
  }

  body[data-workspace-mode="customer"] #support-dialog .customer-support-chat-form {
    grid-template-columns: 40px minmax(0, 1fr) 40px;
    align-items: center;
    gap: 6px;
    padding: 5px;
    border-radius: 16px;
  }

  body[data-workspace-mode="customer"] #support-dialog .customer-support-chat-form textarea {
    box-sizing: border-box;
    height: 40px;
    min-height: 40px;
    padding: 9px 4px 7px;
    line-height: 24px;
  }

  body[data-workspace-mode="customer"] #support-dialog :is(.customer-support-attach, .customer-support-send) {
    width: 40px;
    height: 40px;
    min-width: 40px;
    align-self: center;
    border-radius: 12px;
  }

  body[data-workspace-mode="customer"] #support-dialog .customer-support-attach svg {
    width: 20px;
    height: 20px;
  }
}

/* v100: restore product details contrast in the customer light theme. */
html[data-customer-theme="light"] body[data-workspace-mode="customer"] #product-dialog .product-dialog__meta,
html[data-customer-theme="light"] body[data-workspace-mode="customer"] #product-dialog .product-dialog__body > p,
html[data-customer-theme="light"] body[data-workspace-mode="customer"] #product-dialog .modifier-group__hint,
html[data-customer-theme="light"] body[data-workspace-mode="customer"] #product-dialog .modifier-option__price {
  color: var(--customer-theme-muted);
}

html[data-customer-theme="light"] body[data-workspace-mode="customer"] #product-dialog .product-dialog__meta .price {
  color: var(--customer-theme-accent-dark);
}

html[data-customer-theme="light"] body[data-workspace-mode="customer"] #product-dialog .modifier-option,
html[data-customer-theme="light"] body[data-workspace-mode="customer"] #product-dialog .quantity-control {
  border-color: var(--customer-theme-line);
}

html[data-customer-theme="light"] body[data-workspace-mode="customer"] #product-dialog .quantity-control button {
  color: var(--customer-theme-text);
}

/* v101: give support form labels clear breathing room above their fields. */
body[data-workspace-mode="customer"] #support-dialog .customer-support-compose__form .customer-support-field {
  gap: 10px;
}

body[data-workspace-mode="customer"] #support-dialog .customer-support-compose__form .customer-support-field > span {
  padding-inline: 3px;
  font-size: 10px;
  line-height: 1;
}

/* v102: pin catalog add buttons to a stable card edge in iOS WebKit. */
@media (max-width: 767px) {
  #customer-workspace-root .product-card__button,
  #customer-workspace-root .product-card__body,
  #customer-workspace-root .product-card__bottom {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
  }

  #customer-workspace-root .product-card__button {
    -webkit-appearance: none;
    appearance: none;
  }

  #customer-workspace-root .product-card__bottom {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 32px;
    align-items: center;
    column-gap: 8px;
  }

  #customer-workspace-root .product-card__bottom .plus-button {
    justify-self: end;
  }
}

/* v103: use the same stable price/add layout on every storefront size. */
#customer-workspace-root .product-card__button,
#customer-workspace-root .product-card__body,
#customer-workspace-root .product-card__bottom {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
}

#customer-workspace-root .product-card__button {
  -webkit-appearance: none;
  appearance: none;
}

#customer-workspace-root .product-card__bottom {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  align-items: center;
  column-gap: 8px;
}

#customer-workspace-root .product-card__bottom .plus-button {
  justify-self: end;
}

/* v104: consistent vector contact icons across iOS, Android and desktop. */
#customer-workspace-root .hero__contact-icon {
  display: grid;
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  place-items: center;
  color: #efa91e;
}

#customer-workspace-root .hero__contact-icon::before,
#customer-workspace-root .hero__contact-icon::after,
#customer-workspace-root .location-line--phone .hero__contact-icon::before,
#customer-workspace-root .location-line--phone .hero__contact-icon::after {
  display: none;
  content: none;
}

#customer-workspace-root .hero__contact-icon svg {
  display: block;
  width: 19px;
  height: 19px;
  overflow: visible;
}

#customer-workspace-root .hero__contact-icon > svg :is(path, circle) {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

#customer-workspace-root .hero__contact-icon--phone path {
  stroke-width: 1.8;
}

/* v108: device-independent dimensional bonus token. */
.bonus-token {
  display: inline-grid;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  place-items: center;
  margin-inline: .08em;
  vertical-align: -3px;
  filter:
    drop-shadow(0 1px 0 rgba(255, 241, 150, .24))
    drop-shadow(0 2px .75px rgba(82, 42, 0, .42));
}

.bonus-token svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  shape-rendering: geometricPrecision;
}

.bonus-token__depth {
  fill: #9b5600;
  stroke: #774000;
  stroke-width: .8;
}

.bonus-token__face {
  stroke: #ffe477;
  stroke-width: .8;
}

.bonus-token__inset {
  fill: rgba(181, 104, 0, .2);
  stroke: rgba(126, 68, 0, .72);
  stroke-width: 1;
}

.bonus-token__engraving {
  fill: #a45c00;
  stroke: #7d4300;
  stroke-width: .65;
  stroke-linejoin: round;
}

.bonus-token__engraving-edge {
  fill: none;
  stroke: rgba(255, 238, 154, .58);
  stroke-width: .75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bonus-token__shine {
  fill: none;
  stroke: rgba(255, 255, 255, .72);
  stroke-width: 1.15;
  stroke-linecap: round;
}

.loyalty-widget__mark .bonus-token,
.loyalty-widget__balance-star .bonus-token,
.checkout-earn__icon .bonus-token {
  width: 25px;
  height: 25px;
  margin: 0;
}

#loyalty-center-title .bonus-token {
  width: 28px;
  height: 28px;
  margin-right: 6px;
  vertical-align: -4px;
}

.navigation-menu__item > span .bonus-token,
.loyalty-center__rule-icon .bonus-token {
  width: 20px;
  height: 20px;
  margin: 0;
}

.loyalty-center__metric strong .bonus-token {
  width: 22px;
  height: 22px;
  margin-left: 4px;
}

.loyalty-referral__reward strong .bonus-token {
  width: 20px;
  height: 20px;
  margin-left: 3px;
}

.loyalty-referral__stat strong .bonus-token {
  width: 17px;
  height: 17px;
  margin-left: 2px;
  vertical-align: -3px;
}

/* v110: bonus values and their token read as one precisely aligned unit. */
.loyalty-center :is(
  .loyalty-center__metric strong,
  .loyalty-referral__reward strong,
  .loyalty-referral__stat strong,
  .loyalty-referral__history-result strong,
  .loyalty-history__amount
) {
  display: inline-flex;
  align-items: center;
  column-gap: 0;
  line-height: 1;
}

.loyalty-center :is(
  .loyalty-center__metric strong,
  .loyalty-referral__reward strong,
  .loyalty-referral__stat strong,
  .loyalty-referral__history-result strong,
  .loyalty-history__amount
) > .bonus-token {
  margin-inline: 0;
  vertical-align: middle;
}

/* v129: device-independent 2.5D interface icons. */
.dimensional-icon {
  display: inline-grid;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  place-items: center;
  isolation: isolate;
  filter:
    drop-shadow(0 1px 0 rgba(255, 245, 194, .2))
    drop-shadow(0 2px .7px rgba(55, 24, 0, .4));
}

.dimensional-icon svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  shape-rendering: geometricPrecision;
}

.dimensional-icon svg :is(path, circle, rect),
.bonus-token svg :is(path, circle, rect) {
  vector-effect: non-scaling-stroke;
}

.dimensional-icon__depth {
  fill: #8c4d0b;
  stroke: #623207;
  stroke-width: 1.05;
  stroke-linejoin: round;
}

.dimensional-icon--profile .dimensional-icon__depth {
  fill: #2b1255;
  stroke: #1f0b41;
}

.dimensional-icon--clock .dimensional-icon__depth { fill: #686473; stroke: #413d49; }
.dimensional-icon--cash .dimensional-icon__depth { fill: #076532; stroke: #03431f; }
.dimensional-icon--card .dimensional-icon__depth { fill: #07577c; stroke: #043c59; }
.dimensional-icon--lightning .dimensional-icon__depth { fill: #a93b1e; stroke: #762514; }

.dimensional-icon__face {
  stroke: rgba(255, 245, 194, .72);
  stroke-width: 1;
  stroke-linejoin: round;
}

.dimensional-icon--profile .dimensional-icon__face {
  stroke: rgba(227, 210, 255, .72);
}

.dimensional-icon__face--small { stroke-width: .8; }

.dimensional-icon__highlight {
  fill: none;
  stroke: rgba(255, 255, 255, .72);
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dimensional-icon__icing {
  stroke: rgba(255, 238, 194, .88);
  stroke-width: .65;
  stroke-linejoin: round;
}

.dimensional-icon__candle {
  fill: #fff0a7;
  stroke: #b75c23;
  stroke-width: .55;
}

.dimensional-icon__flame { fill: #ff713d; stroke: #ad321d; stroke-width: .45; }

.dimensional-icon__receipt-line {
  fill: none;
  stroke: #8b5515;
  stroke-width: 1.35;
  stroke-linecap: round;
}

.dimensional-icon__clock-dial { stroke: rgba(78, 68, 91, .5); stroke-width: .7; }
.dimensional-icon__clock-hand { fill: none; stroke: #4d294f; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dimensional-icon__clock-pin { fill: #f06546; stroke: #8f2b32; stroke-width: .55; }
.dimensional-icon__cash-back { stroke: #087739; stroke-width: .75; stroke-linejoin: round; }
.dimensional-icon__cash-frame { fill: none; stroke: rgba(4, 83, 36, .72); stroke-width: 1; }
.dimensional-icon__cash-coin { fill: rgba(255, 239, 123, .85); stroke: #6d7a16; stroke-width: .75; }
.dimensional-icon__card-stripe { fill: #155580; opacity: .88; }
.dimensional-icon__card-chip { fill: #ffe58c; stroke: #9b731b; stroke-width: .6; }

.profile-section-heading__icon .dimensional-icon {
  width: 27px;
  height: 27px;
}

.profile-field__icon .dimensional-icon {
  width: 23px;
  height: 23px;
}

.loyalty-center__rule-icon .dimensional-icon {
  width: 21px;
  height: 21px;
}

#checkout-dialog :is(.checkout-payment-option__icon, .checkout-time-option__icon) .dimensional-icon {
  width: 28px;
  height: 28px;
}

#checkout-dialog .checkout-promo__icon {
  position: relative;
  overflow: hidden;
  color: transparent;
  font-size: 0;
}

#checkout-dialog .checkout-promo__icon::before,
#checkout-dialog .checkout-promo__icon::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 2px;
  border-radius: 99px;
  background: #fff4e8;
  content: "";
  transform: translate(-50%, -50%);
}

#checkout-dialog .checkout-promo__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

#checkout-dialog .checkout-promo--applied .checkout-promo__icon::before {
  width: 7px;
  height: 13px;
  border: 0;
  border-right: 2px solid #fff4e8;
  border-bottom: 2px solid #fff4e8;
  border-radius: 0;
  background: transparent;
  transform: translate(-50%, -60%) rotate(45deg);
}

#checkout-dialog .checkout-promo--applied .checkout-promo__icon::after { display: none; }

#checkout-dialog .checkout-earn__icon {
  width: 30px;
  height: 30px;
  border-radius: 0;
  background: transparent;
}

#checkout-dialog .checkout-earn__icon::before { display: none; }

#checkout-dialog .checkout-earn__icon .bonus-token {
  width: 30px;
  height: 30px;
}

@media (max-width: 479px) {
  #checkout-dialog .checkout-earn {
    grid-template-columns: 30px minmax(0, 1fr) auto;
  }
}

/* v112: keep the promo-code copy action clearly framed in the light theme. */
html[data-customer-theme="light"] body[data-workspace-mode="customer"]
  #loyalty-center-dialog .loyalty-promocode__copy {
  border: 1px solid #b97000;
  color: #2c1a00;
  background: linear-gradient(145deg, #f8bd32, #dc9107);
  box-shadow: 0 7px 16px rgba(156, 95, 0, .18), inset 0 1px rgba(255, 255, 255, .38);
}

html[data-customer-theme="light"] body[data-workspace-mode="customer"]
  #loyalty-center-dialog .loyalty-promocode__copy:active {
  background: linear-gradient(145deg, #e8a714, #c77b00);
  box-shadow: inset 0 2px 5px rgba(87, 46, 0, .18);
}

/* v95: authoritative mobile quantity size; intentionally last in the cascade. */
@media (max-width: 767px) {
  body[data-workspace-mode="customer"] :is(#product-dialog, #cart-dialog) .quantity-control {
    width: 72px;
    min-width: 72px;
    flex-basis: 72px;
    grid-template-columns: 23px 26px 23px;
    border-radius: 9px;
  }

  body[data-workspace-mode="customer"] :is(#product-dialog, #cart-dialog) .quantity-control button {
    min-width: 23px;
    height: 28px;
  }

  body[data-workspace-mode="customer"] :is(#product-dialog, #cart-dialog) .quantity-control strong {
    font-size: 12px;
  }

  body[data-workspace-mode="customer"] :is(#product-dialog, #cart-dialog) .quantity-control button::before,
  body[data-workspace-mode="customer"] :is(#product-dialog, #cart-dialog) .quantity-control button:last-child::after {
    width: 8px;
    height: 1.5px;
  }
}

/* v97: use the balanced counter size in both product picker and cart. */
@media (max-width: 767px) {
  body[data-workspace-mode="customer"] :is(#product-dialog, #cart-dialog) .quantity-control {
    width: 82px;
    min-width: 82px;
    flex-basis: 82px;
    grid-template-columns: 26px 30px 26px;
    border-radius: 10px;
  }

  body[data-workspace-mode="customer"] :is(#product-dialog, #cart-dialog) .quantity-control button {
    min-width: 26px;
    height: 32px;
  }

  body[data-workspace-mode="customer"] :is(#product-dialog, #cart-dialog) .quantity-control strong {
    font-size: 13px;
  }

  body[data-workspace-mode="customer"] :is(#product-dialog, #cart-dialog) .quantity-control button::before,
  body[data-workspace-mode="customer"] :is(#product-dialog, #cart-dialog) .quantity-control button:last-child::after {
    width: 9px;
    height: 1.5px;
  }
}

/* v97: bonus controls follow the customer theme palette. */
body[data-workspace-mode="customer"] #checkout-dialog .checkout-bonus__value {
  color: var(--bonus-value);
}

body[data-workspace-mode="customer"] #checkout-dialog .checkout-bonus > input:checked ~ .checkout-bonus__switch {
  border-color: var(--bonus-switch-active);
  background: var(--bonus-switch-active);
}

body[data-workspace-mode="customer"] #checkout-dialog .checkout-bonus__thumb {
  background: var(--bonus-switch-thumb);
}

/* v132: permanent 2.5D controls for the customer header and section menu. */
.dimensional-icon__control-depth {
  fill: #9b5608;
  stroke: #653405;
  stroke-width: .9;
  stroke-linejoin: round;
}

.dimensional-icon__control-face {
  stroke: rgba(255, 246, 199, .72);
  stroke-width: .85;
  stroke-linejoin: round;
}

.dimensional-icon__control-line,
.dimensional-icon__control-line-depth,
.dimensional-icon__control-ray,
.dimensional-icon__cart-grid {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dimensional-icon__control-line { stroke-width: 3.2; }
.dimensional-icon__control-line-depth { stroke: #653405; stroke-width: 4.4; }
.dimensional-icon__control-ray { stroke: #e29b16; stroke-width: 2.35; }
.dimensional-icon__cart-grid { stroke: rgba(126, 70, 8, .7); stroke-width: .8; }
.dimensional-icon__pin-center { stroke: #84231f; stroke-width: .7; }
.dimensional-icon__chat-dot { fill: #66747b; }
.dimensional-icon__info-dot { fill: #6f3b05; }
.dimensional-icon__info-line { fill: none; stroke: #6f3b05; stroke-width: 2.15; stroke-linecap: round; stroke-linejoin: round; }

.dimensional-icon--profile .dimensional-icon__control-depth { fill: #2b1255; stroke: #1f0b41; }
.dimensional-icon--moon .dimensional-icon__control-depth { fill: #94732d; stroke: #5d4619; }
.dimensional-icon--pin .dimensional-icon__control-depth { fill: #861d1b; stroke: #59100f; }
.dimensional-icon--chat .dimensional-icon__control-depth { fill: #78858a; stroke: #4a555a; }
.dimensional-icon--info .dimensional-icon__control-depth { fill: #995407; stroke: #663405; }

/* v145: customer-facing service information, driven by existing company settings. */
body[data-workspace-mode="customer"] #more-dialog .navigation-menu__item--about { grid-column: 1 / -1; }

.sheet--about {
  height: min(92vh, 820px);
  max-height: 92vh;
}

body[data-workspace-mode="customer"] #about-dialog {
  --ink: var(--customer-theme-text);
  --muted: var(--customer-theme-muted);
  color: var(--customer-theme-text);
  border-color: var(--customer-theme-line);
  background: var(--customer-theme-bg);
}

body[data-workspace-mode="customer"] #about-dialog > .sheet__close {
  color: var(--customer-theme-text);
  border: 1px solid var(--customer-theme-line);
  background: var(--customer-theme-surface-raised);
}

body[data-workspace-mode="customer"] #about-dialog .sheet__handle {
  background: color-mix(in srgb, var(--customer-theme-text) 20%, transparent);
}

#about-dialog .cart-heading {
  margin: 0 44px 16px 0;
  padding: 2px 0 14px;
  border-bottom: 1px solid var(--customer-theme-line);
}

.about-service { display: grid; gap: 14px; padding-bottom: 8px; }
.about-service__identity,
.about-service__section {
  border: 1px solid var(--customer-theme-line);
  border-radius: 20px;
  background: var(--customer-theme-surface);
  box-shadow: var(--customer-theme-shadow-soft);
}
.about-service__identity { display: flex; align-items: center; gap: 14px; padding: 18px; }
.about-service__logo { width: 64px; height: 64px; flex: 0 0 64px; object-fit: contain; }
.about-service__identity-copy { min-width: 0; }
.about-service__identity h3 { margin: 0 0 4px; font-size: 21px; }
.about-service__identity p { margin: 0 0 5px; color: var(--customer-theme-muted); font-size: 13px; }
.about-service__identity small { color: var(--customer-theme-accent); font-size: 11px; font-weight: 800; }
.about-service__section { padding: 16px; }
.about-service__section > h3 { margin: 0 0 12px; font-size: 15px; }
.about-service__contacts { display: grid; grid-template-columns: minmax(90px, .7fr) minmax(0, 1.3fr); gap: 10px 16px; margin: 0; }
.about-service__contacts dt { color: var(--customer-theme-muted); font-size: 12px; }
.about-service__contacts dd { min-width: 0; margin: 0; overflow-wrap: anywhere; color: var(--customer-theme-text); font-size: 13px; font-weight: 700; }
.about-service__contacts dd a { color: inherit; text-decoration-color: color-mix(in srgb, var(--customer-theme-accent) 55%, transparent); text-underline-offset: 3px; }
.about-service__links { display: grid; }
.about-link { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; min-height: 48px; color: var(--customer-theme-text); border-top: 1px solid var(--customer-theme-line); text-decoration: none; }
.about-link:first-child { border-top: 0; }
.about-link__copy { overflow-wrap: anywhere; font-size: 13px; font-weight: 750; }
.about-link__arrow { color: var(--customer-theme-accent); font-size: 19px; }
@media (max-width: 479px) {
  .sheet--about { padding-right: 16px; padding-left: 16px; }
  .about-service__identity { padding: 15px; }
  .about-service__logo { width: 54px; height: 54px; flex-basis: 54px; }
  .about-service__contacts { grid-template-columns: minmax(0, 1fr); gap: 3px; }
  .about-service__contacts dd + dt { margin-top: 8px; }
}

@media (min-width: 860px) {
  #about-dialog { padding: 20px 24px 24px; }
  #about-content { max-width: 680px; margin-right: auto; margin-left: auto; }
}

.dimensional-icon--moon {
  filter:
    drop-shadow(0 1px 0 rgba(255, 245, 194, .12))
    drop-shadow(0 1.5px .6px rgba(55, 24, 0, .26));
}

.dimensional-icon--moon .dimensional-icon__control-depth {
  stroke-width: .65;
}

.dimensional-icon--moon .dimensional-icon__control-face {
  stroke: rgba(255, 246, 199, .46);
  stroke-width: .65;
}

.dimensional-icon--moon .dimensional-icon__highlight {
  opacity: .58;
}

.customer-control-icon,
.customer-theme-toggle__icon {
  display: inline-grid;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  place-items: center;
  line-height: 0;
}

.customer-control-icon .dimensional-icon,
.customer-theme-toggle__icon .dimensional-icon {
  width: 30px;
  height: 30px;
}

#customer-workspace-root :is(.hero__menu-button, .hero__profile-button),
.customer-theme-toggle {
  border: 1px solid rgba(255, 255, 255, .2);
  background: linear-gradient(145deg, rgba(255, 255, 255, .105), rgba(255, 255, 255, .045));
  box-shadow:
    0 8px 18px rgba(0, 0, 0, .24),
    inset 0 1px 0 rgba(255, 255, 255, .11);
  backdrop-filter: blur(12px);
}

#customer-workspace-root .hero__primary-actions {
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
}

#customer-workspace-root .hero__orders-button {
  position: relative;
  display: grid;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .2);
  background: linear-gradient(145deg, rgba(255, 255, 255, .105), rgba(255, 255, 255, .045));
  box-shadow: 0 8px 18px rgba(0, 0, 0, .24), inset 0 1px 0 rgba(255, 255, 255, .11);
  backdrop-filter: blur(12px);
}

#customer-workspace-root .hero__orders-button:active {
  transform: translateY(1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, .23), inset 0 1px 3px rgba(0, 0, 0, .2);
}

#customer-workspace-root :is(.hero__menu-button, .hero__orders-button, .hero__profile-button) {
  display: grid;
  place-items: center;
  padding: 0;
  line-height: 0;
  text-align: center;
}

#customer-workspace-root :is(.hero__menu-button, .hero__orders-button, .hero__profile-button) > .customer-control-icon,
.customer-theme-toggle > .customer-theme-toggle__icon {
  align-self: center;
  justify-self: center;
}

#customer-workspace-root :is(.hero__menu-button, .hero__profile-button):active,
.customer-theme-toggle:active {
  transform: translateY(1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, .23), inset 0 1px 3px rgba(0, 0, 0, .2);
}

body[data-workspace-mode="customer"] #more-dialog .navigation-menu__item {
  min-height: 88px;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 21px;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--customer-theme-text) 3%, var(--customer-theme-surface)), var(--customer-theme-surface));
  box-shadow:
    0 10px 24px rgba(0, 0, 0, .12),
    inset 0 1px 0 color-mix(in srgb, var(--customer-theme-text) 8%, transparent);
}

body[data-workspace-mode="customer"] #more-dialog .navigation-menu__icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--customer-theme-accent) 22%, var(--customer-theme-line));
  border-radius: 15px;
  background: linear-gradient(145deg,
    color-mix(in srgb, var(--customer-theme-accent) 13%, var(--customer-theme-surface-raised)),
    var(--customer-theme-surface-raised));
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--customer-theme-text) 8%, transparent);
}

body[data-workspace-mode="customer"] #more-dialog .navigation-menu__icon .dimensional-icon,
body[data-workspace-mode="customer"] #more-dialog .navigation-menu__icon .bonus-token {
  width: 32px;
  height: 32px;
  margin: 0;
}

body[data-workspace-mode="customer"] #more-dialog .navigation-menu__item strong {
  font-size: clamp(16px, 2.2vw, 19px);
  line-height: 1.2;
}

body[data-workspace-mode="customer"] :is(
  #product-dialog,
  #cart-dialog,
  #checkout-dialog,
  #orders-dialog,
  #profile-dialog,
  #support-dialog,
  #loyalty-center-dialog,
  #more-dialog
) > .sheet__close {
  overflow: hidden;
  color: transparent;
  font-size: 0;
  box-shadow: 0 7px 17px rgba(0, 0, 0, .18), inset 0 1px 0 rgba(255, 255, 255, .08);
}

body[data-workspace-mode="customer"] :is(
  #product-dialog,
  #cart-dialog,
  #checkout-dialog,
  #orders-dialog,
  #profile-dialog,
  #support-dialog,
  #loyalty-center-dialog,
  #more-dialog
) > .sheet__close::before,
body[data-workspace-mode="customer"] :is(
  #product-dialog,
  #cart-dialog,
  #checkout-dialog,
  #orders-dialog,
  #profile-dialog,
  #support-dialog,
  #loyalty-center-dialog,
  #more-dialog
) > .sheet__close::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 3px;
  border-radius: 99px;
  background: linear-gradient(90deg, #fff4c7, #e3a52c);
  box-shadow: 0 1px 1px rgba(70, 33, 0, .55);
  content: "";
}

body[data-workspace-mode="customer"] :is(
  #product-dialog,
  #cart-dialog,
  #checkout-dialog,
  #orders-dialog,
  #profile-dialog,
  #support-dialog,
  #loyalty-center-dialog,
  #more-dialog
) > .sheet__close::before { transform: translate(-50%, -50%) rotate(45deg); }

body[data-workspace-mode="customer"] :is(
  #product-dialog,
  #cart-dialog,
  #checkout-dialog,
  #orders-dialog,
  #profile-dialog,
  #support-dialog,
  #loyalty-center-dialog,
  #more-dialog
) > .sheet__close::after { transform: translate(-50%, -50%) rotate(-45deg); }

/* Light mode uses a symmetric solid mark; dark mode keeps its original artwork. */
html[data-customer-theme="light"] body[data-workspace-mode="customer"]
  :is(#cart-dialog, #checkout-dialog) > .sheet__close::before,
html[data-customer-theme="light"] body[data-workspace-mode="customer"]
  :is(#cart-dialog, #checkout-dialog) > .sheet__close::after {
  top: 50%;
  left: 50%;
  width: 16px;
  height: 2.5px;
  background: #b96d00;
  box-shadow: none;
  transform-origin: center;
}

html[data-customer-theme="light"] body[data-workspace-mode="customer"]
  :is(#cart-dialog, #checkout-dialog) > .sheet__close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

html[data-customer-theme="light"] body[data-workspace-mode="customer"]
  :is(#cart-dialog, #checkout-dialog) > .sheet__close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* v132: lightning and clock keep their soft shadow without a lower depth slab. */
.dimensional-icon--lightning,
.dimensional-icon--clock {
  filter:
    drop-shadow(0 1px 0 rgba(255, 245, 194, .18))
    drop-shadow(0 2px 1px rgba(55, 24, 0, .4));
}

/* v133-v134: restore compact menu geometry and center header controls on the full logo block. */
body[data-workspace-mode="customer"] #more-dialog .navigation-menu {
  gap: 9px;
}

body[data-workspace-mode="customer"] #more-dialog .navigation-menu__item {
  min-height: 82px;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 9px;
  padding: 11px;
  border-radius: 18px;
}

body[data-workspace-mode="customer"] #more-dialog .navigation-menu__icon {
  width: 40px;
  height: 40px;
  border-radius: 13px;
}

body[data-workspace-mode="customer"] #more-dialog .navigation-menu__icon .dimensional-icon,
body[data-workspace-mode="customer"] #more-dialog .navigation-menu__icon .bonus-token {
  width: 26px;
  height: 26px;
}

body[data-workspace-mode="customer"] #more-dialog .navigation-menu__item > strong {
  min-width: 0;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  font-size: clamp(14px, 3.8vw, 16px);
  line-height: 1.24;
  text-wrap: pretty;
}

body[data-workspace-mode="customer"] #profile-dialog .profile-field {
  align-items: stretch;
}

body[data-workspace-mode="customer"] #profile-dialog .profile-field__icon {
  align-self: stretch;
  place-items: center;
}

body[data-workspace-mode="customer"] #profile-dialog .profile-field__body {
  align-content: center;
}

body[data-workspace-mode="customer"] #customer-workspace-root .categories {
  align-items: center;
  align-content: center;
  padding-top: 12px;
  padding-bottom: 12px;
  row-gap: 9px;
}

body[data-workspace-mode="customer"] #customer-workspace-root .category-pill {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding-top: 9px;
  padding-bottom: 9px;
  line-height: 1.2;
  text-align: center;
}

@media (max-width: 767px) {
  body[data-workspace-mode="customer"] #more-dialog .navigation-menu__item > strong {
    width: 100%;
    justify-self: stretch;
    text-align: center;
    text-wrap: balance;
  }

  #customer-workspace-root .icon-button.hero__menu-button,
  #customer-workspace-root .icon-button.hero__profile-button,
  #customer-workspace-root .customer-theme-toggle {
    box-sizing: border-box;
    width: 46px;
    min-width: 46px;
    max-width: 46px;
    height: 46px;
    min-height: 46px;
    flex: 0 0 46px;
  }

  #customer-workspace-root .icon-button.hero__menu-button {
    position: relative;
    inset: auto;
    grid-row: 1;
    grid-column: 1;
    margin: 22px 0 0;
  }

  #customer-workspace-root .hero__actions {
    position: relative;
    inset: auto;
    grid-row: 1;
    grid-column: 3;
    margin: 22px 0 0;
  }

  #customer-workspace-root .hero__actions {
    align-items: center;
  }

  #customer-workspace-root .hero__primary-actions {
    position: relative;
    inset: auto;
    grid-row: 1;
    grid-column: 1 / 3;
    width: max-content;
    margin: 22px 0 0;
  }

  #customer-workspace-root .hero__primary-actions :is(.hero__menu-button, .hero__orders-button) {
    position: static;
    box-sizing: border-box;
    width: 46px;
    min-width: 46px;
    max-width: 46px;
    height: 46px;
    min-height: 46px;
    margin: 0;
    flex: 0 0 46px;
  }
}

@media (min-width: 768px) {
  #customer-workspace-root .icon-button.hero__menu-button {
    position: absolute;
    top: calc(45px + env(safe-area-inset-top));
    right: auto;
    bottom: auto;
    left: clamp(32px, 4vw, 52px);
    margin: 0;
  }

  #customer-workspace-root .hero__actions {
    position: absolute;
    top: calc(45px + env(safe-area-inset-top));
    right: clamp(32px, 4vw, 52px);
    bottom: auto;
    left: auto;
  }

  #customer-workspace-root .icon-button.hero__menu-button,
  #customer-workspace-root .icon-button.hero__profile-button,
  #customer-workspace-root .customer-theme-toggle {
    min-width: 54px;
    height: 54px;
  }

  #customer-workspace-root .icon-button.hero__menu-button,
  #customer-workspace-root .icon-button.hero__profile-button {
    width: 54px;
  }

  #customer-workspace-root .hero__actions {
    align-items: center;
  }

  #customer-workspace-root .hero__primary-actions {
    position: absolute;
    top: calc(45px + env(safe-area-inset-top));
    left: clamp(32px, 4vw, 52px);
  }

  #customer-workspace-root .hero__primary-actions :is(.hero__menu-button, .hero__orders-button) {
    position: static;
    inset: auto;
    width: 54px;
    min-width: 54px;
    height: 54px;
    margin: 0;
  }
}

/* v138: compact messenger-style customer support thread at every viewport size. */
html[data-customer-theme] {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html[data-customer-theme]::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

body[data-workspace-mode="customer"] #support-dialog .customer-support-chat {
  gap: 5px;
  padding: 12px 10px 18px;
  scroll-padding-top: 50px;
  border: 1px solid var(--customer-theme-line);
  border-radius: 20px;
  background:
    linear-gradient(color-mix(in srgb, var(--customer-theme-bg) 95%, transparent), color-mix(in srgb, var(--customer-theme-bg) 95%, transparent)),
    radial-gradient(circle at 10px 10px, color-mix(in srgb, var(--customer-theme-accent) 8%, transparent) 1px, transparent 1px);
  background-size: auto, 20px 20px;
}

body[data-workspace-mode="customer"] #support-dialog .customer-support-chat__day {
  align-self: center;
  margin: 6px 0 5px;
  padding: 4px 9px;
  border: 1px solid var(--customer-theme-line);
  border-radius: 999px;
  color: var(--customer-theme-muted);
  background: color-mix(in srgb, var(--customer-theme-surface-raised) 88%, transparent);
  box-shadow: 0 3px 10px rgba(0, 0, 0, .08);
  font-size: 9px;
  font-weight: 750;
  line-height: 1;
}

body[data-workspace-mode="customer"] #support-dialog .customer-support-message {
  display: grid;
  width: fit-content;
  max-width: min(78%, 560px);
  gap: 3px;
  margin: 1px 0;
  padding: 8px 10px 6px;
  border: 1px solid var(--customer-theme-line);
  border-radius: 18px 18px 18px 6px;
  color: var(--customer-theme-text);
  background: var(--customer-theme-surface-raised);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
}

body[data-workspace-mode="customer"] #support-dialog .customer-support-message--customer {
  max-width: min(82%, 620px);
  border-color: color-mix(in srgb, var(--customer-theme-accent-dark) 70%, transparent);
  border-radius: 18px 18px 6px 18px;
  color: var(--customer-theme-on-accent);
  background: linear-gradient(145deg, var(--customer-theme-accent), var(--customer-theme-accent-dark));
}

body[data-workspace-mode="customer"] #support-dialog .customer-support-message--system {
  align-self: center;
  max-width: min(86%, 520px);
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--customer-theme-muted);
  background: var(--customer-theme-surface);
  box-shadow: none;
  text-align: center;
}

body[data-workspace-mode="customer"] #support-dialog .customer-support-message__author {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 5px;
  line-height: 1.1;
}

body[data-workspace-mode="customer"] #support-dialog .customer-support-message__author strong {
  overflow: hidden;
  font-size: 11px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-workspace-mode="customer"] #support-dialog .customer-support-message__author small {
  flex: 0 0 auto;
  padding: 2px 5px;
  border-radius: 999px;
  background: color-mix(in srgb, currentColor 9%, transparent);
  font-size: 7px;
  font-weight: 700;
  line-height: 1;
  opacity: .58;
}

body[data-workspace-mode="customer"] #support-dialog .customer-support-message__body {
  margin: 0;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  font-size: 13px;
  line-height: 1.38;
}

body[data-workspace-mode="customer"] #support-dialog .customer-support-message__time {
  justify-self: end;
  margin-top: 1px;
  font-size: 8px;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  opacity: .55;
}

body[data-workspace-mode="customer"] #support-dialog .customer-support-message.has-attachments {
  padding: 5px;
}

body[data-workspace-mode="customer"] #support-dialog .customer-support-message.has-attachments > :is(
  .customer-support-message__author,
  .customer-support-message__body
) {
  margin-inline: 5px;
}

body[data-workspace-mode="customer"] #support-dialog .customer-support-message.has-attachments > .customer-support-message__time {
  margin-right: 5px;
  margin-bottom: 1px;
}

body[data-workspace-mode="customer"] #support-dialog .support-attachments {
  width: min(340px, 72vw);
  gap: 4px;
}

body[data-workspace-mode="customer"] #support-dialog .support-attachments--2 {
  width: min(440px, 74vw);
}

body[data-workspace-mode="customer"] #support-dialog .support-attachment {
  border-radius: 13px;
  background: color-mix(in srgb, var(--customer-theme-text) 7%, transparent);
}

@media (max-width: 479px) {
  body[data-workspace-mode="customer"] #support-dialog .customer-support-chat {
    padding-right: 7px;
    padding-left: 7px;
  }

  body[data-workspace-mode="customer"] #support-dialog .customer-support-message {
    max-width: 84%;
  }

  body[data-workspace-mode="customer"] #support-dialog .customer-support-message--customer {
    max-width: 88%;
  }

  body[data-workspace-mode="customer"] #support-dialog .support-attachments,
  body[data-workspace-mode="customer"] #support-dialog .support-attachments--2 {
    width: min(310px, 76vw);
  }
}

/* v141: authoritative chat cascade and balanced mobile contact spacing. */
html[data-customer-theme] body[data-workspace-mode="customer"] #support-dialog .customer-support-chat {
  gap: 7px;
  padding: 12px 12px 18px;
  border: 0;
  border-radius: 0;
  background:
    radial-gradient(circle at 10px 10px, color-mix(in srgb, var(--customer-theme-accent) 6%, transparent) 1px, transparent 1px),
    transparent;
  background-size: 20px 20px, auto;
}

html[data-customer-theme] body[data-workspace-mode="customer"] #support-dialog :is(
  .customer-support-message,
  .customer-support-message--customer,
  .customer-support-message--system
) {
  width: fit-content;
  max-width: min(74%, 520px);
  gap: 3px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: var(--customer-theme-text);
  background: transparent;
  box-shadow: none;
}

html[data-customer-theme] body[data-workspace-mode="customer"] #support-dialog .customer-support-message--customer {
  max-width: min(80%, 560px);
  color: var(--customer-theme-on-accent);
}

html[data-customer-theme] body[data-workspace-mode="customer"] #support-dialog .customer-support-message--system {
  max-width: min(86%, 520px);
  color: var(--customer-theme-muted);
}

html[data-customer-theme] body[data-workspace-mode="customer"] #support-dialog .customer-support-message__author {
  margin: 0;
  padding: 0 8px;
  color: var(--customer-theme-muted);
}

html[data-customer-theme] body[data-workspace-mode="customer"] #support-dialog .customer-support-message.has-attachments {
  max-width: min(78%, 286px);
  padding: 0;
}

html[data-customer-theme] body[data-workspace-mode="customer"] #support-dialog
  .customer-support-message.has-attachments:not(.has-body) .customer-support-message__bubble {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: 0 5px 16px rgba(0, 0, 0, .18);
}

html[data-customer-theme] body[data-workspace-mode="customer"] #support-dialog
  .customer-support-message.has-attachments .support-attachments,
html[data-customer-theme] body[data-workspace-mode="customer"] #support-dialog
  .customer-support-message.has-attachments .support-attachments--2 {
  width: min(280px, 68vw);
  max-width: 100%;
  gap: 3px;
}

html[data-customer-theme] body[data-workspace-mode="customer"] #support-dialog
  .customer-support-message.has-attachments .support-attachment {
  border: 1px solid color-mix(in srgb, var(--customer-theme-text) 10%, transparent);
  border-radius: 15px;
}

#customer-workspace-root .hero__contact-icon--phone,
#customer-workspace-root .hero__contact-icon--phone .dimensional-icon,
#customer-workspace-root .hero__contact-icon--phone .dimensional-icon svg {
  width: 21px;
  height: 21px;
}

@media (max-width: 767px) {
  #customer-workspace-root .hero__contacts {
    margin-top: 33px;
  }

  html[data-customer-theme] body[data-workspace-mode="customer"] #support-dialog .customer-support-message {
    max-width: 78%;
  }

  html[data-customer-theme] body[data-workspace-mode="customer"] #support-dialog .customer-support-message--customer {
    max-width: 84%;
  }

  html[data-customer-theme] body[data-workspace-mode="customer"] #support-dialog .customer-support-message.has-attachments {
    max-width: min(82%, 276px);
  }

  html[data-customer-theme] body[data-workspace-mode="customer"] #support-dialog
    .customer-support-message.has-attachments .support-attachments,
  html[data-customer-theme] body[data-workspace-mode="customer"] #support-dialog
    .customer-support-message.has-attachments .support-attachments--2 {
    width: min(270px, 72vw);
  }
}

/* v142: authoritative fullscreen composer geometry and dimensional contacts. */
body[data-workspace-mode="customer"] #support-dialog .customer-support-chat-form {
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 7px;
  padding: 6px;
}

body[data-workspace-mode="customer"] #support-dialog :is(.customer-support-attach, .customer-support-send) {
  box-sizing: border-box;
  width: 44px;
  min-width: 44px;
  max-width: 44px;
  height: 44px;
  min-height: 44px;
  align-self: center;
  padding: 0;
  border: 0;
  border-radius: 14px;
  place-items: center;
  line-height: 0;
}

#customer-workspace-root .hero__contact-icon {
  display: grid;
  box-sizing: border-box;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  place-items: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

#customer-workspace-root .hero__contact-icon .dimensional-icon,
#customer-workspace-root .hero__contact-icon .dimensional-icon svg,
#customer-workspace-root .hero__contact-icon--phone,
#customer-workspace-root .hero__contact-icon--phone .dimensional-icon,
#customer-workspace-root .hero__contact-icon--phone .dimensional-icon svg {
  width: 22px;
  height: 22px;
}

#customer-workspace-root .hero__contact-icon .dimensional-icon {
  filter:
    drop-shadow(0 1px 0 rgba(255, 245, 194, .12))
    drop-shadow(0 1.5px .5px rgba(25, 10, 0, .28));
}

@media (max-width: 767px) {
  body[data-workspace-mode="customer"] #support-dialog .customer-support-chat-form {
    grid-template-columns: 42px minmax(0, 1fr) 42px;
  }

  body[data-workspace-mode="customer"] #support-dialog :is(.customer-support-attach, .customer-support-send) {
    width: 42px;
    min-width: 42px;
    max-width: 42px;
    height: 42px;
    min-height: 42px;
    border-radius: 13px;
  }
}

/* v156: slightly denser proportional catalog cards on wide desktop screens. */
@media (min-width: 1280px) {
  #customer-workspace-root .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(190px, 210px));
    gap: 14px;
  }

  #customer-workspace-root .product-card__body {
    min-height: 136px;
    padding: 13px 12px 11px;
  }

  #customer-workspace-root .product-card__body h3 {
    min-height: 2.2em;
    margin-bottom: 7px;
    font-size: 16px;
  }

  #customer-workspace-root .product-card__description {
    min-height: 3.7em;
    margin-bottom: 12px;
    font-size: 10.5px;
  }

  #customer-workspace-root .product-card__bottom { min-height: 35px; }
  #customer-workspace-root .price { font-size: 15px; }
  #customer-workspace-root .plus-button {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }
}

/* v157: persistent customer control for Telegram marketing consent. */
.showcase-admin__list { display: grid; gap: 12px; }
.showcase-group-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.showcase-group-card { display: grid; min-width: 0; gap: 16px; }
.showcase-group-card__copy { position: relative; min-width: 0; padding-left: 43px; }
.showcase-group-card__copy h3 { margin: 2px 0 7px; }
.showcase-group-card__copy p { margin: 0; color: #796a60; line-height: 1.45; }
.showcase-group-card__count { display: block; margin-top: 12px; color: #b33a27; }
.showcase-group-card__actions { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 12px; border-top: 1px solid rgba(74, 50, 34, 0.1); }
.showcase-group-card__actions .admin-button { width: auto; }
.showcase-admin-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 14px; }
.showcase-admin-card__copy { position: relative; min-width: 0; padding-left: 43px; }
.showcase-admin-card__position { position: absolute; top: 0; left: 0; display: grid; width: 30px; height: 30px; place-items: center; border-radius: 10px; color: #fff; background: #ec4930; font-weight: 900; }
.showcase-admin-card__type { color: #b33a27; font-size: 11px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.showcase-admin-card h3 { margin: 4px 0; }
.showcase-admin-card p { margin: 0; color: #796a60; }
.showcase-admin-card .showcase-admin-card__pause { margin-top: 8px; color: #bd3525; font-weight: 800; }
.showcase-admin-card__actions { display: flex; grid-column: 1 / -1; flex-wrap: wrap; gap: 8px; padding-top: 11px; border-top: 1px solid rgba(74,50,34,.1); }
.showcase-admin-card__actions .admin-button { width: auto; }
.showcase-editor__form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.showcase-editor__content { display: grid; grid-column: 1 / -1; gap: 12px; }
.showcase-editor__form > .primary-button { grid-column: 1 / -1; }
.showcase-product-picker { display: grid; max-height: 440px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; overflow: auto; padding: 10px; border: 1px solid rgba(74,50,34,.12); border-radius: 16px; }
.showcase-product-picker__item { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 3px 9px; align-items: center; padding: 11px; border-radius: 12px; background: #fff; }
.showcase-product-picker__item--ordered { grid-template-columns: 22px minmax(0, 1fr) auto; }
.showcase-product-picker__item--ordered > input { grid-row: 1 / 4; }
.showcase-product-picker__name { font-weight: 800; }
.showcase-product-picker__rank { color: #ed4930 !important; font-weight: 800; }
.showcase-product-picker__order-actions { display: grid; grid-row: 1 / 4; grid-column: 3; grid-template-columns: repeat(2, 38px); gap: 5px; }
.showcase-product-picker__order-actions button { min-width: 38px; min-height: 38px; padding: 6px; }
.showcase-benefit-products { display: grid; gap: 8px; }
.showcase-product-picker--benefit { max-height: 300px; }
.showcase-product-picker__controls { display: grid; width: 100%; min-width: 0; grid-template-columns: minmax(0, 1fr); gap: 8px; align-items: center; }
.showcase-product-picker__controls > input { min-width: 0; }
.showcase-product-picker__actions { display: grid; min-width: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.showcase-product-picker__bulk { min-width: 0; min-height: 42px; padding: 9px 10px; white-space: normal; }
.showcase-product-picker__summary { color: #88766a; font-weight: 750; }

body.promotion-dialog-open { overflow: hidden; }
#promotion-dialog { position: relative; width: min(94vw, 920px); max-width: 920px; overscroll-behavior-y: contain; color: #f4f0e8; border-color: rgba(240,177,43,.22); background: #191918; -webkit-overflow-scrolling: touch; }
#promotion-dialog::backdrop { background: rgba(0,0,0,.76); backdrop-filter: blur(8px); }
#promotion-dialog > .sheet__close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  float: none;
  place-items: center;
  padding: 0 0 2px;
  color: #f4f0e8;
  border-color: rgba(255,255,255,.12);
  background: #2b2b29;
  line-height: 1;
}
#promotion-content { clear: both; width: 100%; min-width: 0; }
.promotion-detail { display: grid; gap: 18px; }
.promotion-detail__hero { overflow: hidden; border: 1px solid rgba(240,177,43,.24); border-radius: 24px; background-color: #23221f; background-position: center; background-size: cover; }
.promotion-detail__hero--image-only { width: 100%; aspect-ratio: 2 / 1; background-size: contain; background-repeat: no-repeat; }
.promotion-detail__summary { display: grid; gap: 8px; padding: 0 4px; }
.promotion-detail__summary h2 { margin: 0; color: #fff; font-size: clamp(22px, 4vw, 32px); line-height: 1.06; }
.promotion-detail__summary p { margin: 0; color: rgba(255,255,255,.75); line-height: 1.45; }
.promotion-detail__badge { width: fit-content; color: #f0a615; font-size: 12px; font-weight: 900; letter-spacing: .16em; }
.promotion-detail__dates { margin: 0; color: rgba(244,240,232,.62); }
.promotion-detail h3 { margin: 0 0 10px; color: #f4f0e8; }
.promotion-detail__conditions { padding: 18px 20px; border: 1px solid rgba(255,255,255,.09); border-radius: 18px; background: rgba(255,255,255,.035); }
.promotion-detail__conditions ul { display: grid; gap: 7px; margin: 0; padding-left: 20px; color: rgba(244,240,232,.76); }
.promotion-detail__information p { margin: 0; color: rgba(244,240,232,.82); line-height: 1.55; white-space: pre-line; }
.promotion-detail__code { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px 18px; align-items: center; padding: 18px; border: 1px solid rgba(240,177,43,.34); border-radius: 18px; background: rgba(240,177,43,.08); }
.promotion-detail__code > span { color: rgba(244,240,232,.6); }
.promotion-detail__code > strong { color: #f0b12b; font-size: 24px; letter-spacing: .08em; }
.promotion-detail__code-actions { display: flex; gap: 8px; }
.promotion-detail__code-actions button { min-height: 44px; padding: 0 16px; }
html:not([data-customer-theme="light"]) body[data-workspace-mode="customer"] .promotion-detail__code-actions .secondary-button {
  color: #fff7e8;
  border-color: rgba(240,177,43,.52);
  background: rgba(255,255,255,.1);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.035);
}
@media (hover: hover) and (pointer: fine) {
  html:not([data-customer-theme="light"]) body[data-workspace-mode="customer"] .promotion-detail__code-actions .secondary-button:hover {
    border-color: rgba(240,177,43,.78);
    background: rgba(240,177,43,.16);
  }
}
.promotion-detail__product-grid { display: grid; grid-auto-columns: minmax(180px, 220px); grid-auto-flow: column; gap: 12px; overflow-x: auto; padding: 2px 2px 10px; scroll-snap-type: x proximity; }
.promotion-detail__product-grid .product-card {
  height: 100%;
  border-color: rgba(255,255,255,.1);
  background: #242422;
  box-shadow: 0 12px 28px rgba(0,0,0,.24);
  scroll-snap-align: start;
}
.promotion-detail__product-grid .product-card__button { display: flex; height: 100%; flex-direction: column; color: #f4f0e8; }
.promotion-detail__product-grid .product-card__body { display: flex; min-height: 132px; flex: 1; flex-direction: column; background: #242422; }
.promotion-detail__product-grid .product-card__body h3 { color: #fff; }
.promotion-detail__product-grid .product-card__description,
.promotion-detail__product-grid .catalog-price__old,
.promotion-detail__product-grid .weight { color: rgba(244,240,232,.58); }
.promotion-detail__product-grid .product-card__bottom { margin-top: auto; }
.promotion-detail__product-grid .plus-button { color: #17120d; background: linear-gradient(145deg, #f0b12b, #d68a08); }
.promotion-detail__product-grid .plus-button svg { display: block; width: 15px; height: 15px; overflow: visible; }
.promotion-detail__product-grid .plus-button path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
}

html[data-customer-theme="light"] body[data-workspace-mode="customer"] #promotion-dialog {
  color: #241c16;
  border-color: rgba(117,75,24,.16);
  background: #fbf8f2;
}
html[data-customer-theme="light"] body[data-workspace-mode="customer"] #promotion-dialog > .sheet__close {
  color: #2a211a;
  border-color: rgba(75,48,27,.12);
  background: #fff;
}
html[data-customer-theme="light"] body[data-workspace-mode="customer"] .promotion-detail__dates { color: #776c62; }
html[data-customer-theme="light"] body[data-workspace-mode="customer"] .promotion-detail__summary h2 { color: #241c16; }
html[data-customer-theme="light"] body[data-workspace-mode="customer"] .promotion-detail__summary p { color: #675d54; }
html[data-customer-theme="light"] body[data-workspace-mode="customer"] .promotion-detail h3 { color: #241c16; }
html[data-customer-theme="light"] body[data-workspace-mode="customer"] .promotion-detail__conditions {
  border-color: rgba(75,48,27,.1);
  background: #fff;
}
html[data-customer-theme="light"] body[data-workspace-mode="customer"] .promotion-detail__conditions ul { color: #675d54; }
html[data-customer-theme="light"] body[data-workspace-mode="customer"] .promotion-detail__information p { color: #51483f; }
html[data-customer-theme="light"] body[data-workspace-mode="customer"] .promotion-detail__code {
  border-color: rgba(207,132,17,.28);
  background: rgba(240,177,43,.1);
}
html[data-customer-theme="light"] body[data-workspace-mode="customer"] .promotion-detail__code > span { color: #776c62; }
html[data-customer-theme="light"] body[data-workspace-mode="customer"] .promotion-detail__product-grid .product-card {
  border-color: rgba(75,48,27,.1);
  background: #fff;
  box-shadow: 0 10px 24px rgba(53,35,18,.09);
}
html[data-customer-theme="light"] body[data-workspace-mode="customer"] .promotion-detail__product-grid .product-card__button,
html[data-customer-theme="light"] body[data-workspace-mode="customer"] .promotion-detail__product-grid .product-card__body { color: #241c16; background: #fff; }
html[data-customer-theme="light"] body[data-workspace-mode="customer"] .promotion-detail__product-grid .product-card__body h3 { color: #241c16; }
html[data-customer-theme="light"] body[data-workspace-mode="customer"] .promotion-detail__product-grid :is(.product-card__description, .catalog-price__old, .weight) { color: #776c62; }
@media (max-width: 700px) {
  #promotion-dialog {
    box-sizing: border-box;
    width: calc(100% - 12px);
    max-width: none;
    max-height: calc(100dvh - 8px);
    margin: auto 6px 4px;
    padding: 8px 10px calc(14px + env(safe-area-inset-bottom));
    border-radius: 24px 24px 10px 10px;
  }
  #promotion-dialog > .sheet__handle { margin-bottom: 6px; }
  #promotion-dialog > .sheet__close { top: 12px; right: 12px; width: 36px; height: 36px; }
  .promotion-detail { gap: 14px; }
  .promotion-detail__hero { border-radius: 18px; background-position: center; }
  .promotion-detail__summary { gap: 6px; }
  .promotion-detail__summary h2 { font-size: clamp(20px, 6vw, 27px); }
  .promotion-detail__summary p { font-size: 13px; line-height: 1.3; }
  .promotion-detail__badge { font-size: 10px; letter-spacing: .13em; }
  .promotion-detail__dates { padding-inline: 4px; font-size: 12px; line-height: 1.35; }
  .promotion-detail h3 { margin-bottom: 8px; font-size: 18px; }
  .promotion-detail__conditions { padding: 14px 15px; border-radius: 16px; }
  .promotion-detail__conditions ul { gap: 6px; padding-left: 19px; font-size: 14px; line-height: 1.35; }
  .promotion-detail__code { grid-template-columns: 1fr; }
  .promotion-detail__code-actions { display: grid; }
  .promotion-detail__products { min-width: 0; }
  .promotion-detail__product-grid { grid-auto-columns: minmax(148px, 43vw); gap: 9px; margin-right: -10px; padding-right: 10px; }
  .promotion-detail__product-grid .product-card { border-radius: 16px; }
  .promotion-detail__product-grid .product-card__body { min-height: 116px; padding: 10px; }
  .promotion-detail__product-grid .product-card__body h3 { margin-bottom: 5px; font-size: 15px; line-height: 1.12; }
  .promotion-detail__product-grid .product-card__description { min-height: 30px; margin-bottom: 9px; font-size: 11px; }
  .promotion-detail__product-grid .plus-button { width: 32px; height: 32px; }
}
.showcase-product-picker__item input { grid-row: 1 / 3; width: 18px; height: 18px; accent-color: #ed4930; }
.showcase-product-picker__item small { color: #88766a; }
.showcase-slide-list { display: grid; gap: 12px; }
.showcase-slide-editor { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.showcase-slide-editor .admin-field:nth-of-type(2), .showcase-slide-editor .admin-field:nth-of-type(4) { grid-column: 1 / -1; }
.showcase-slide-editor > button { grid-column: 1 / -1; width: auto; justify-self: start; }

@media (max-width: 720px) {
  .showcase-group-list, .showcase-admin-card, .showcase-editor__form, .showcase-slide-editor, .showcase-product-picker { grid-template-columns: minmax(0, 1fr); }
  .showcase-admin-card > .admin-status { grid-column: 1; justify-self: start; }
  .showcase-editor__form > .admin-field, .showcase-slide-editor > .admin-field { grid-column: 1 / -1; }
}

/* v157 continued: persistent customer control for Telegram marketing consent. */
.profile-marketing-consent {
  align-items: center;
  margin-top: 2px;
  border-color: color-mix(in srgb, var(--customer-theme-accent) 28%, var(--customer-theme-line));
  background: color-mix(in srgb, var(--customer-theme-accent) 6%, var(--customer-theme-field));
}

.profile-marketing-consent-panel {
  display: grid;
  gap: 9px;
}

.profile-marketing-consent__save {
  width: 100%;
  min-height: 42px;
  border-radius: 12px;
  font-size: 11px;
}

.profile-marketing-consent__save:disabled {
  color: var(--customer-theme-muted);
  background: var(--customer-theme-field);
  box-shadow: none;
  opacity: .72;
}

.profile-marketing-consent__copy {
  display: grid;
  gap: 4px;
}

.profile-marketing-consent__copy strong {
  color: var(--customer-theme-text);
  font-size: 12px;
}

.profile-marketing-consent__copy small {
  color: var(--customer-theme-muted);
  font-size: 10px;
  line-height: 1.4;
}

/* v172: segment workspace — light, structured and touch-friendly at every width. */
.workspace-content.crm-admin-shell .crm-segments-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  padding: 17px;
  border: 1px solid rgba(104, 67, 39, .13);
  border-radius: 20px;
  color: #2b211a;
  background: linear-gradient(135deg, #fffaf3, #fff);
  box-shadow: 0 12px 30px rgba(67, 41, 22, .06);
}

.crm-segments-intro__copy { display: grid; gap: 5px; min-width: 0; }
.crm-segments-intro__copy strong { font-size: 18px; }
.crm-segments-intro__copy p { max-width: 620px; margin: 0; color: #786b61; font-size: 12px; line-height: 1.5; }
.crm-segments-toolbar { width: auto; min-width: 300px; margin: 0; }
.crm-segments-toolbar button { min-height: 48px; border-radius: 14px; }

.workspace-content.crm-admin-shell .crm-segments-empty {
  min-height: 240px;
  padding: 32px 22px;
  border-style: dashed;
  border-color: #e4cfc2;
  color: #786b61;
  background: #fffdf9;
  box-shadow: none;
}

.crm-segments-empty > strong { color: #2b211a; font-size: 18px; }
.crm-segments-empty__visual {
  position: relative;
  width: 72px;
  height: 54px;
  margin-bottom: 3px;
}
.crm-segments-empty__visual::before,
.crm-segments-empty__visual::after {
  content: "";
  position: absolute;
  top: 5px;
  width: 30px;
  height: 30px;
  border: 3px solid #f1a12a;
  border-radius: 50%;
  background: #fff6df;
  box-shadow: 0 19px 0 -7px #f1a12a;
}
.crm-segments-empty__visual::before { left: 7px; }
.crm-segments-empty__visual::after { right: 7px; border-color: #e64a2f; background: #fff0eb; box-shadow: 0 19px 0 -7px #e64a2f; }

.crm-segment-list { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; }
.workspace-content.crm-admin-shell .crm-segment-card {
  align-content: start;
  gap: 12px;
  padding: 17px;
  border: 1px solid rgba(104, 67, 39, .13);
  border-radius: 19px;
  background: #fffdf9;
  box-shadow: 0 10px 26px rgba(67, 41, 22, .055);
}
.crm-segment-card__audience {
  display: flex;
  align-items: baseline;
  gap: 7px;
  padding: 12px 13px;
  border-radius: 14px;
  color: #76412d;
  background: linear-gradient(135deg, #fff0e8, #fff8ec);
}
.crm-segment-card__audience strong { font-size: 24px; line-height: 1; }
.crm-segment-card__audience span { font-size: 11px; font-weight: 750; }

.workspace-content.crm-admin-shell .crm-segment-builder {
  gap: 12px;
  color: #2b211a;
}
.crm-segment-builder__nav {
  position: static;
  display: flex;
  gap: 7px;
  padding: 9px;
  overflow-x: auto;
  border: 1px solid #eadbd0;
  border-radius: 16px;
  background: rgba(255, 253, 249, .96);
  box-shadow: 0 8px 22px rgba(53, 33, 20, .08);
  scrollbar-width: none;
}
.crm-segment-builder__nav::-webkit-scrollbar { display: none; }
.crm-segment-builder__nav-button {
  min-width: max-content;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 11px;
  color: #694b3c;
  background: #f7f1eb;
  font: inherit;
  font-size: 11px;
  font-weight: 850;
  cursor: pointer;
}
.crm-segment-builder__nav-button:hover,
.crm-segment-builder__nav-button:focus-visible { border-color: #efb4a5; color: #a83220; background: #fff0eb; }

.workspace-content.crm-admin-shell .crm-segment-builder > .crm-form-section {
  scroll-margin-top: 72px;
  gap: 13px;
  padding: 18px;
  border: 1px solid #e8d9cf;
  border-radius: 20px;
  color: #2b211a;
  background: #fffdf9;
  box-shadow: 0 9px 25px rgba(65, 39, 23, .045);
}
.crm-segment-builder .crm-form-section__heading { gap: 11px; }
.crm-segment-builder .crm-form-section__heading h3 { color: #2b211a; font-size: 18px; }
.crm-segment-builder .crm-step { color: #612512; background: linear-gradient(145deg, #ffd268, #f0a016); box-shadow: 0 4px 10px rgba(219, 135, 7, .18); }
.crm-segment-builder .crm-form-section__description { color: #81746a; }

.workspace-content.crm-admin-shell .crm-segment-builder .crm-field > input,
.workspace-content.crm-admin-shell .crm-segment-builder .crm-field > select,
.workspace-content.crm-admin-shell .crm-segment-builder .crm-field > textarea,
.workspace-content.crm-admin-shell .crm-segment-builder .crm-json-editor,
.workspace-content.crm-admin-shell .crm-segment-comparison-form :is(input, select) {
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid #ded1c7;
  border-radius: 13px;
  color: #2b211a;
  background: #fff;
  box-shadow: none;
}
.workspace-content.crm-admin-shell .crm-segment-builder .crm-field > :is(input, select, textarea):focus {
  border-color: #e64a2f;
  outline: 3px solid rgba(230, 74, 47, .1);
}
.crm-segment-builder .admin-field__label { color: #695b51; font-size: 11px; }
.crm-segment-builder .crm-field__hint { color: #92867c; }
.workspace-content.crm-admin-shell .crm-segment-builder .crm-check {
  padding: 13px;
  border: 1px solid #eaded5;
  border-radius: 14px;
  background: #faf6f1;
}

.workspace-content.crm-admin-shell .crm-segment-builder .crm-condition-list { gap: 12px; }
.workspace-content.crm-admin-shell .crm-segment-builder .crm-condition {
  gap: 13px;
  padding: 14px;
  border: 1px solid #e8ddd4;
  border-radius: 16px;
  color: #2b211a;
  background: #faf7f3;
}
.crm-condition__title { display: flex; min-width: 0; align-items: center; gap: 9px; }
.crm-condition__title strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crm-condition__number {
  display: inline-grid;
  width: 27px;
  height: 27px;
  flex: 0 0 27px;
  place-items: center;
  border-radius: 9px;
  color: #8d351f;
  background: #ffe3d9;
  font-size: 11px;
  font-weight: 900;
}
.workspace-content.crm-admin-shell .crm-segment-builder .crm-condition-group {
  border: 1px solid #efc6b9;
  border-left: 4px solid #e64a2f;
  color: #2b211a;
  background: #fff8f4;
}
.crm-segment-builder .crm-icon-button { min-height: 38px; color: #a53b29; background: transparent; }
.crm-segment-builder .crm-condition-group__actions button { min-height: 44px; border-radius: 13px; }
.crm-segment-builder .crm-debug { padding: 0 12px; border: 1px solid #e8ddd4; border-radius: 13px; background: #faf7f3; }
.crm-segment-builder .crm-debug summary { padding: 12px 0; color: #77685e; font-size: 11px; font-weight: 800; cursor: pointer; }

.workspace-content.crm-admin-shell .crm-segment-builder .crm-segment-preview {
  gap: 5px;
  padding: 16px;
  border: 1px solid #efd6ad;
  border-radius: 17px;
  color: #2b211a;
  background: linear-gradient(135deg, #fff8e8, #fffdf9);
}
.crm-segment-preview > strong { color: #6e361f; font-size: 22px; }
.crm-segment-preview > p { margin: 0; }
.crm-segment-preview__customers { gap: 7px; }
.workspace-content.crm-admin-shell .crm-segment-preview__customer,
.workspace-content.crm-admin-shell .crm-segment-preview__customer:is(button) {
  width: auto;
  min-height: 38px;
  padding: 8px 11px;
  border: 1px solid #ead8ce;
  border-radius: 12px;
  color: #3b2d25;
  background: #fff;
  text-align: left;
}
.workspace-content.crm-admin-shell .crm-segment-explanation {
  color: #2b211a;
  background: #fff8f4;
}
.workspace-content.crm-admin-shell .crm-segment-explanation__row { color: #2b211a; background: #fff; }

.crm-segment-builder .crm-multi-picker { gap: 8px; }
.crm-segment-builder .crm-multi-picker > input { min-height: 48px; padding: 11px 13px; border: 1px solid #ded1c7; border-radius: 13px; color: #2b211a; background: #fff; }
.crm-multi-picker__options {
  display: grid;
  max-height: 290px;
  gap: 6px;
  padding: 7px;
  overflow-y: auto;
  border: 1px solid #e8ddd4;
  border-radius: 14px;
  background: #faf7f3;
  overscroll-behavior: contain;
}
.crm-multi-picker__option {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  min-height: 46px;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: 11px;
  color: #3b2d25;
  background: #fff;
  font-size: 12px;
  line-height: 1.35;
  cursor: pointer;
}
.crm-multi-picker__option[hidden] { display: none; }
.crm-multi-picker__option input { width: 19px; height: 19px; accent-color: #e64a2f; }
.crm-multi-picker__option--selected { border-color: #efb8a9; color: #8f321f; background: #fff0eb; }
.crm-segment-builder .crm-multi-picker__summary { order: -1; color: #8f321f; font-weight: 850; }

.crm-segment-builder .crm-form-actions {
  position: static;
  margin-top: 4px;
  padding: 9px;
  border: 1px solid #eadbd0;
  border-radius: 16px;
  background: rgba(255, 253, 249, .96);
  box-shadow: 0 10px 28px rgba(53, 33, 20, .13);
}
.crm-segment-builder .crm-form-actions .primary-button { order: -1; }

.crm-segment-archive {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid #e5d8ce;
  border-radius: 18px;
  background: #f5efe9;
}
.crm-segment-archive > summary {
  padding: 3px 2px;
  color: #57483e;
  font-size: 14px;
  font-weight: 850;
  cursor: pointer;
}
.crm-segment-archive[open] > summary { margin-bottom: 10px; }
.workspace-content.crm-admin-shell .crm-segment-archive .crm-segment-card {
  opacity: .86;
  background: #fffaf5;
}
.workspace-content.crm-admin-shell .crm-segments-empty--compact {
  min-height: 132px;
  padding-block: 24px;
}

.workspace-content.crm-admin-shell .crm-segment-comparison-form {
  padding: 18px;
  border: 1px solid #e8d9cf;
  border-radius: 20px;
  color: #2b211a;
  background: #fffdf9;
  box-shadow: 0 9px 25px rgba(65, 39, 23, .045);
}
.workspace-content.crm-admin-shell .crm-segment-comparison__snapshot { color: #2b211a; background: #fffdf9; }

@media (max-width: 679px) {
  .workspace-content.crm-admin-shell .crm-segments-intro {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding: 14px;
  }
  .crm-segments-toolbar { width: 100%; min-width: 0; }
  .crm-segment-list { grid-template-columns: minmax(0, 1fr); }
  .workspace-content.crm-admin-shell .crm-segment-builder > .crm-form-section { padding: 14px; border-radius: 17px; }
  .crm-segment-builder__nav { margin-inline: -2px; }
  .crm-condition__header { align-items: center; }
  .crm-condition__title strong { max-width: 180px; }
  .crm-segment-builder .crm-condition__fields > .crm-field { min-width: 0; }
  .crm-segment-builder .crm-condition__fields select { text-overflow: ellipsis; }
  .workspace-content.crm-admin-shell .crm-segment-preview__customer,
  .workspace-content.crm-admin-shell .crm-segment-preview__customer:is(button) { width: 100%; }
  .crm-segment-builder .crm-form-actions { grid-template-columns: minmax(0, 1fr); }
  .crm-segment-archive { padding: 10px; border-radius: 16px; }
}

/* v182: interactive personal-offer workspace with a light, compact step flow. */
.crm-offer-analytics {
  padding: 16px;
  border-color: #eadbd0;
  background: #fffdf9;
  box-shadow: 0 8px 24px rgba(65, 39, 23, .045);
}
.crm-offer-analytics .workspace-overview__header { display: grid; gap: 5px; }
.crm-offer-analytics .workspace-overview__header :is(h3, p) { margin: 0; }
.crm-offer-analytics .workspace-overview__header p { color: #81746a; font-size: 11px; line-height: 1.45; }
.crm-offer-analytics__presets {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-top: 12px;
}
.crm-offer-analytics__preset {
  min-height: 38px;
  border: 1px solid #e5d8ce;
  border-radius: 11px;
  color: #69584c;
  background: #faf6f1;
  font-size: 11px;
  font-weight: 850;
}
.crm-offer-analytics__preset.is-active {
  border-color: #efb7a9;
  color: #983722;
  background: #fff0e9;
}
.crm-offer-analytics .workspace-overview__period {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
  gap: 8px;
  margin-top: 10px;
}
.crm-offer-analytics .workspace-overview__period button { grid-column: 1 / -1; min-height: 42px; }
.crm-offer-analytics .workspace-overview__hint { margin-top: 7px; font-size: 10px; }
.crm-offer-analytics .workspace-overview__body { margin-top: 12px; }
.crm-offer-analytics .workspace-overview__metrics {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}
.crm-offer-analytics .workspace-overview__metric {
  min-height: 74px;
  align-content: space-between;
  gap: 5px;
  padding: 11px;
  border-color: #eee3db;
  background: #faf7f3;
}
.crm-offer-analytics .workspace-overview__metric span { font-size: 10px; line-height: 1.3; }
.crm-offer-analytics .workspace-overview__metric strong { font-size: 18px; }

.workspace-content.crm-admin-shell .crm-personal-offer-wizard {
  position: relative;
  gap: 10px;
  color: #2b211a;
  color-scheme: light;
}
.crm-wizard-progress {
  position: sticky;
  z-index: 8;
  top: -1px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 5px;
  padding: 9px;
  border: 1px solid #eadbd0;
  border-radius: 16px;
  background: rgba(255, 253, 249, .96);
  box-shadow: 0 8px 22px rgba(65, 39, 23, .08);
  backdrop-filter: blur(12px);
}
.crm-wizard-progress__step {
  position: relative;
  display: grid;
  min-height: 38px;
  place-items: center;
  border: 1px solid #e7dad0;
  border-radius: 11px;
  color: #897a70;
  background: #f7f2ed;
  font-size: 12px;
  font-weight: 900;
}
.crm-wizard-progress__step.is-active { border-color: #e64a2f; color: #fff; background: #e64a2f; }
.crm-wizard-progress__step.is-complete { border-color: #b9dfc8; color: #23683e; background: #eaf7ef; }
.crm-wizard-progress__step.is-complete::after { margin-left: 3px; content: "✓"; }

.workspace-content.crm-admin-shell .crm-personal-offer-wizard .crm-wizard-step {
  gap: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid #e7d9cf;
  border-radius: 18px;
  color: #2b211a;
  background: #fffdf9;
  box-shadow: 0 6px 18px rgba(65, 39, 23, .035);
}
.workspace-content.crm-admin-shell .crm-personal-offer-wizard .crm-wizard-step.is-active {
  border-color: #edb5a6;
  box-shadow: 0 0 0 3px rgba(230, 74, 47, .07), 0 10px 24px rgba(65, 39, 23, .06);
}
.crm-wizard-step__toggle {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  min-height: 64px;
  gap: 10px;
  padding: 12px 14px;
  cursor: pointer;
}
.crm-wizard-step__toggle::after {
  width: 8px;
  height: 8px;
  border-right: 2px solid #a39387;
  border-bottom: 2px solid #a39387;
  content: "";
  transform: rotate(45deg);
  transition: transform 160ms ease;
}
.crm-wizard-step.is-active .crm-wizard-step__toggle::after { transform: rotate(225deg); }
.crm-wizard-step__toggle:focus-visible { outline: 3px solid rgba(230, 74, 47, .14); outline-offset: -3px; }
.crm-wizard-step__toggle h3 { color: #30231c; font-size: 15px; }
.crm-wizard-step__toggle .crm-step { width: 30px; height: 30px; color: #fff; background: #e64a2f; }
.crm-wizard-step.is-complete .crm-step { background: #2f8751; }
.crm-form-section__summary {
  grid-column: 2;
  overflow: hidden;
  color: #8a7b70;
  font-size: 10px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.crm-wizard-step__body {
  display: grid;
  gap: 12px;
  padding: 2px 14px 14px;
  border-top: 1px solid #f0e5dd;
}
.crm-wizard-step__body[hidden] { display: none; }
.crm-wizard-step__body > .crm-form-section__description { margin: 10px 0 -2px; color: #7d6f65; }
.workspace-content.crm-admin-shell .crm-personal-offer-wizard .crm-field { color: #2b211a; }
.workspace-content.crm-admin-shell .crm-personal-offer-wizard .crm-field > :is(input, select, textarea),
.workspace-content.crm-admin-shell .crm-personal-offer-wizard .crm-product-picker__panel,
.workspace-content.crm-admin-shell .crm-personal-offer-wizard .crm-multi-picker__select {
  border-color: #ded1c7;
  color: #2b211a;
  background: #fff;
}
.workspace-content.crm-admin-shell .crm-personal-offer-wizard .crm-field > :is(input, select, textarea):focus {
  border-color: #e64a2f;
  outline: 0;
  box-shadow: 0 0 0 3px rgba(230, 74, 47, .1);
}
.workspace-content.crm-admin-shell .crm-personal-offer-wizard .crm-choice-row {
  min-height: 60px;
  border-color: #e3d7cd;
  color: #2b211a;
  background: #faf7f3;
}
.workspace-content.crm-admin-shell .crm-personal-offer-wizard .crm-choice-row:has(input:checked) {
  border-color: #e64a2f;
  background: #fff0e9;
  box-shadow: inset 3px 0 0 #e64a2f;
}
.workspace-content.crm-admin-shell .crm-personal-offer-wizard .crm-choice-row__copy small,
.workspace-content.crm-admin-shell .crm-personal-offer-wizard .crm-field__hint { color: #81746a; }
.workspace-content.crm-admin-shell .crm-personal-offer-wizard .crm-campaign-execution-note {
  color: #58483e;
  background: #f5efe9;
}
.crm-wizard-step__navigation {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding-top: 3px;
}
.crm-wizard-step__navigation > :only-child { grid-column: 1 / -1; }
.crm-personal-offer-wizard .crm-form-actions { display: none; }
.crm-personal-offer-wizard[data-active-step="5"] .crm-form-actions {
  display: grid;
  position: sticky;
  z-index: 7;
  bottom: 0;
  grid-template-columns: minmax(0, .55fr) minmax(0, 1fr);
  gap: 8px;
  padding: 10px;
  border: 1px solid #eadbd0;
  border-radius: 16px;
  background: rgba(255, 253, 249, .97);
  box-shadow: 0 -8px 22px rgba(65, 39, 23, .08);
  backdrop-filter: blur(12px);
}

@media (max-width: 479px) {
  .crm-offer-analytics { padding: 14px; border-radius: 17px; }
  .crm-offer-analytics .workspace-overview__period input { min-height: 44px; padding-inline: 8px; font-size: 12px; }
  .crm-offer-analytics .workspace-overview__metric { min-height: 68px; padding: 10px; }
  .crm-wizard-step__toggle { grid-template-columns: 30px minmax(0, 1fr) 14px; padding: 11px 12px; }
  .crm-wizard-step__body { padding-inline: 12px; }
  .crm-personal-offer-wizard[data-active-step="5"] .crm-form-actions { grid-template-columns: minmax(0, 1fr); }
  .crm-personal-offer-wizard[data-active-step="5"] .crm-form-actions .primary-button { order: -1; }
}

/* v183: illustrated and interactive marketing workspace. */
.workspace-section-card--artwork {
  overflow: hidden;
  gap: 7px;
  padding: 0 0 17px;
  border-radius: 20px;
  background: #fffdf9;
  box-shadow: 0 8px 24px rgba(65, 39, 23, .055);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}
.workspace-section-card--artwork:hover {
  transform: translateY(-2px);
  border-color: rgba(230, 74, 47, .28);
  box-shadow: 0 14px 32px rgba(65, 39, 23, .1);
}
.workspace-section-card__artwork {
  display: grid;
  width: 100%;
  aspect-ratio: 2.35 / 1;
  overflow: hidden;
  place-items: center;
  border-bottom: 1px solid #f0e3da;
  background: radial-gradient(circle at 50% 45%, #fff4e8, #f6dfcf 72%, #ead0bd);
}
.workspace-section-card__artwork img { width: 100%; height: 100%; object-fit: cover; }
.workspace-section-card--artwork[data-tool="campaigns"] .workspace-section-card__artwork img {
  width: 88%;
  height: 88%;
  object-fit: contain;
  filter: drop-shadow(0 12px 14px rgba(82, 43, 20, .16));
}
.workspace-section-card--artwork > :is(strong, small, .workspace-section-card__arrow) { margin-inline: 18px; }
.workspace-section-card--artwork > strong { margin-top: 7px; font-size: 19px; }
.workspace-section-card__arrow {
  margin-top: 5px;
  color: #a23c28;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .02em;
}
.navigation-menu__art {
  display: grid;
  width: 34px;
  height: 34px;
  overflow: hidden;
  place-items: center;
  border-radius: 10px;
  background: #f8e9df;
}
.navigation-menu__art img { width: 100%; height: 100%; object-fit: cover; }
#admin-campaigns .navigation-menu__art img { width: 94%; height: 94%; object-fit: contain; }

.promotion-list-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin: 2px 0 14px;
}
.promotion-list-summary__metric {
  display: grid;
  min-height: 66px;
  align-content: space-between;
  gap: 5px;
  padding: 11px;
  border: 1px solid #eadfd7;
  border-radius: 14px;
  background: #fffdf9;
}
.promotion-list-summary__metric small { color: #81746a; font-size: 10px; line-height: 1.25; }
.promotion-list-summary__metric strong { color: #30231c; font-size: 20px; }
.promotion-card-visual {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  min-height: 52px;
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
  overflow: hidden;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(120deg, #e64a2f, #b52f25);
}
.promotion-card-visual--promo { background: linear-gradient(120deg, #332b27, #5a4036); }
.promotion-card-visual span { font-size: 9px; font-weight: 900; letter-spacing: .14em; opacity: .72; }
.promotion-card-visual strong { overflow: hidden; font-size: 13px; text-align: right; text-overflow: ellipsis; white-space: nowrap; }
.promotion-campaign-card,
.promotion-code-card {
  border-color: #e8dcd3;
  border-radius: 19px;
  background: #fffdf9;
  box-shadow: 0 7px 22px rgba(65, 39, 23, .04);
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.promotion-campaign-card:hover,
.promotion-code-card:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(65, 39, 23, .09); }
.promotion-campaign-card__metric,
.promotion-code-card__metric { border: 1px solid #eee4dd; background: #faf7f3; }

.promotion-editor {
  --promotion-accent: #e64a2f;
  position: relative;
  gap: 10px;
  color: #2b211a;
  color-scheme: light;
}
.promotion-editor__preview {
  position: relative;
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  min-height: 116px;
  align-items: center;
  gap: 12px;
  overflow: hidden;
  padding: 12px;
  border: 1px solid #ead9ce;
  border-radius: 18px;
  background: linear-gradient(135deg, #fff8f1, #f4dfd0);
}
.promotion-editor__preview--promo { background: linear-gradient(135deg, #fff7ef, #f7ddca); }
.promotion-editor__preview-image { width: 108px; height: 90px; object-fit: cover; border-radius: 13px; }
.promotion-editor__preview--campaign .promotion-editor__preview-image { object-fit: contain; filter: drop-shadow(0 9px 10px rgba(82, 43, 20, .17)); }
.promotion-editor__preview-copy { display: grid; min-width: 0; gap: 6px; }
.promotion-editor__preview-copy small { color: #a64731; font-size: 9px; font-weight: 900; letter-spacing: .14em; }
.promotion-editor__preview-copy strong { overflow-wrap: anywhere; color: #2d211b; font-size: 17px; line-height: 1.2; }
.promotion-editor__preview-copy span { overflow-wrap: anywhere; color: #9c3826; font-size: 12px; font-weight: 850; }
.promotion-editor__step {
  display: grid;
  gap: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid #e7d9cf;
  border-radius: 18px;
  color: #2b211a;
  background: #fffdf9;
  box-shadow: 0 6px 18px rgba(65, 39, 23, .035);
}
.promotion-editor__step.is-active { border-color: #edb5a6; box-shadow: 0 0 0 3px rgba(230, 74, 47, .07); }
.promotion-editor__toggle {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto 12px;
  min-height: 64px;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 0;
  color: inherit;
  background: transparent;
  text-align: left;
}
.promotion-editor__toggle::after {
  width: 8px;
  height: 8px;
  border-right: 2px solid #a39387;
  border-bottom: 2px solid #a39387;
  content: "";
  transform: rotate(45deg);
}
.promotion-editor__step.is-active .promotion-editor__toggle::after { transform: rotate(225deg); }
.promotion-editor__number { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 999px; color: #fff; background: var(--promotion-accent); font-size: 12px; font-weight: 900; }
.promotion-editor__step.is-complete .promotion-editor__number { background: #8a796d; }
.promotion-editor__heading { color: #30231c; font-size: 15px; font-weight: 900; }
.promotion-editor__summary { max-width: 150px; overflow: hidden; color: #8a7b70; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.promotion-editor__body { display: grid; gap: 12px; padding: 4px 14px 14px; border-top: 1px solid #f0e5dd; }
.promotion-editor__body[hidden] { display: none; }
.promotion-editor__description { margin: 8px 0 0; color: #7d6f65; font-size: 11px; line-height: 1.45; }
.promotion-editor :is(.admin-field, .admin-check) { color: #2b211a; }
.promotion-editor .admin-field > :is(input, select, textarea) { border-color: #ded1c7; color: #2b211a; background: #fff; }
.promotion-editor .admin-field > :is(input, select, textarea):focus { border-color: var(--promotion-accent); outline: 0; box-shadow: 0 0 0 3px rgba(230, 74, 47, .1); }
.promotion-editor .admin-rule-collection { padding: 0; border: 0; background: transparent; }
.promotion-editor .admin-rule-collection__heading { align-items: center; }
.promotion-editor .admin-rule { border-color: #e5d9d0; border-radius: 15px; background: #faf7f3; }
.promotion-editor .admin-rule__header { align-items: end; }
.promotion-editor__navigation { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding-top: 2px; }
.promotion-editor__navigation > :only-child { grid-column: 1 / -1; }
.quantity-promotion__presets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.quantity-promotion__presets .admin-button { min-height: 44px; color: #a43b27; border-color: #edc7bb; background: #fff8f3; }
.quantity-promotion__presets .admin-button.is-selected { color: #fff; border-color: #e94a2f; background: #e94a2f; box-shadow: 0 8px 18px rgba(218, 62, 38, .2); }
.quantity-promotion__presets .admin-button.is-selected::before { content: "✓"; margin-right: 6px; font-weight: 950; }
.quantity-promotion__formula { margin: -1px 0 0; padding: 10px 12px; border-radius: 12px; color: #8f3525; background: #fff0e8; font-size: 12px; font-weight: 850; text-align: center; }
.quantity-promotion__target { display: grid; }
.quantity-promotion__preview { background: linear-gradient(135deg, #fff5ec, #f8dac8); }
.promotion-editor .promotion-editor__actions { display: none; }
.promotion-editor--promo[data-active-step="3"] .promotion-editor__actions,
.promotion-editor.admin-form--campaign[data-active-step="4"] .promotion-editor__actions {
  position: sticky;
  z-index: 7;
  bottom: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  padding: 10px;
  border: 1px solid #eadbd0;
  border-radius: 16px;
  background: rgba(255, 253, 249, .97);
  box-shadow: 0 -8px 22px rgba(65, 39, 23, .08);
  backdrop-filter: blur(12px);
}
.promotion-detail-hero {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 13px;
  overflow: hidden;
  border: 1px solid #ead9ce;
  border-radius: 19px;
  background: linear-gradient(135deg, #fff8f1, #f2dccb);
}
.promotion-detail-hero__image { width: 120px; height: 92px; object-fit: contain; filter: drop-shadow(0 9px 10px rgba(82, 43, 20, .16)); }
.promotion-detail-hero__copy { display: grid; justify-items: start; gap: 7px; }
.promotion-detail-hero__copy strong { color: #9f3926; font-size: 16px; line-height: 1.25; }
.promotion-detail-hero__copy small { color: #75665a; font-size: 10px; }
.promotion-definition-grid .admin-definition { border-color: #e7dbd2; border-radius: 18px; background: #fffdf9; }
.promotion-definition-grid .admin-definition__item { gap: 10px; border-color: #eee4dd; }
.promotion-definition__facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin: 0; }
.promotion-definition__fact { display: grid; gap: 3px; padding: 9px; border-radius: 11px; background: #faf6f1; }
.promotion-definition__fact dt { color: #81746a; font-size: 9px; }
.promotion-definition__fact dd { margin: 0; overflow-wrap: anywhere; color: #30231c; font-size: 12px; font-weight: 850; }

.promotion-list-summary + .admin-filter { margin-top: 0; margin-bottom: 22px; }
.promotion-list-summary + .admin-notice { margin: 0 0 20px; }
.promotion-detail-actions { margin-top: 2px; }
.promotion-catalog-picker { display: grid; gap: 8px; }
.promotion-catalog-picker > input[type="search"] {
  min-height: 46px;
  padding-left: 40px;
  background-image: radial-gradient(circle, transparent 45%, #9a897d 47%, #9a897d 58%, transparent 60%), linear-gradient(45deg, transparent 44%, #9a897d 46%, #9a897d 57%, transparent 59%);
  background-position: 15px 16px, 25px 27px;
  background-size: 13px 13px, 8px 8px;
  background-repeat: no-repeat;
}
.promotion-catalog-picker__summary { color: #7c6e64; font-size: 11px; }
.promotion-catalog-picker__options {
  display: grid;
  max-height: 236px;
  gap: 6px;
  overflow-y: auto;
  padding: 4px;
  border: 1px solid #e7dbd2;
  border-radius: 14px;
  background: #fff;
}
.promotion-catalog-picker__option {
  display: grid;
  width: 100%;
  min-height: 46px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 9px 11px;
  border: 1px solid transparent;
  border-radius: 11px;
  color: #30231c;
  background: #faf7f3;
  font: inherit;
  font-size: 12px;
  text-align: left;
  cursor: pointer;
}
.promotion-catalog-picker__option input { width: 18px; min-width: 18px; height: 18px; min-height: 18px; margin: 0; accent-color: var(--promotion-accent); }
.promotion-catalog-picker__option small { color: #8b7c71; font-size: 10px; font-weight: 800; }
.promotion-catalog-picker__option.is-selected { border-color: #efaa99; background: #fff0ea; }
.promotion-catalog-picker__empty { margin: 0; padding: 10px; color: #81746a; font-size: 11px; text-align: center; }
.promotion-catalog-picker__empty[hidden],
.promotion-catalog-picker__option[hidden] { display: none; }

@media (max-width: 479px) {
  .workspace-section-card--artwork { border-radius: 19px; }
  .workspace-section-card__artwork { aspect-ratio: 2.15 / 1; }
  .promotion-list-summary__metric { min-height: 62px; padding: 9px; }
  .promotion-list-summary__metric strong { font-size: 18px; }
  .promotion-card-visual { min-height: 48px; padding: 10px 11px; }
  .promotion-editor__preview { grid-template-columns: 92px minmax(0, 1fr); min-height: 104px; }
  .promotion-editor__preview-image { width: 92px; height: 78px; }
  .promotion-editor__toggle { grid-template-columns: 30px minmax(0, 1fr) 12px; padding: 11px 12px; }
  .promotion-editor__summary { grid-column: 2; max-width: none; }
  .promotion-editor__toggle::after { grid-column: 3; grid-row: 1 / span 2; }
  .promotion-editor__body { padding-inline: 12px; }
  .quantity-promotion__presets { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .promotion-editor--promo[data-active-step="3"] .promotion-editor__actions,
  .promotion-editor.admin-form--campaign[data-active-step="4"] .promotion-editor__actions { grid-template-columns: minmax(0, 1fr); }
  .admin-page-heading--list-actions:has(.admin-list-toolbar) { margin-bottom: 22px; }
  .promotion-list-summary { margin-bottom: 14px; }
  .promotion-list-summary + .admin-notice { margin-bottom: 22px; }
  .promotion-detail-hero { grid-template-columns: 98px minmax(0, 1fr); }
  .promotion-detail-hero__image { width: 98px; height: 82px; }
}

/* v173: the segment builder is an intentionally light admin workspace, even when
   Telegram reports a dark system theme. Keep these overrides narrowly scoped. */
.workspace-content.crm-admin-shell .crm-segment-builder {
  color-scheme: light;
}
.workspace-content.crm-admin-shell .crm-segment-builder > .crm-form-section {
  color: #2b211a !important;
  background-color: #fffdf9 !important;
  background-image: none !important;
}
.workspace-content.crm-admin-shell .crm-segment-builder :is(
  .crm-condition,
  .crm-debug,
  .crm-multi-picker__options
) {
  color: #2b211a !important;
  background-color: #faf7f3 !important;
  background-image: none !important;
}
.workspace-content.crm-admin-shell .crm-segment-builder .crm-condition-group,
.workspace-content.crm-admin-shell .crm-segment-builder .crm-segment-explanation {
  color: #2b211a !important;
  background-color: #fff8f4 !important;
  background-image: none !important;
}
.workspace-content.crm-admin-shell .crm-segment-builder :is(
  .crm-field > input,
  .crm-field > select,
  .crm-field > textarea,
  .crm-json-editor,
  .crm-multi-picker > input,
  .crm-multi-picker__option,
  .crm-segment-preview__customer,
  .crm-segment-explanation__row
) {
  color: #2b211a !important;
  background-color: #fff !important;
  background-image: none !important;
}
.workspace-content.crm-admin-shell .crm-segment-builder .crm-segment-preview {
  color: #2b211a !important;
  background-color: #fff8e8 !important;
  background-image: linear-gradient(135deg, #fff8e8, #fffdf9) !important;
}
.workspace-content.crm-admin-shell .crm-segment-builder .crm-check__copy strong {
  color: #2b211a !important;
}
.workspace-content.crm-admin-shell .crm-segment-builder .crm-check__copy small {
  color: #786b61 !important;
}

/* v178: loyalty administration — grouped navigation and interactive entity cards. */
.loyalty-admin-workspace {
  display: grid;
  width: min(100%, 980px);
  gap: 14px;
  margin-inline: auto;
  color: #2b211a;
  color-scheme: light;
}

.loyalty-admin-workspace > .admin-page-heading {
  margin: 0;
  padding: 17px 18px;
  border: 1px solid #eaded5;
  border-radius: 20px;
  background: linear-gradient(135deg, #fffdf9, #fff6ef);
  box-shadow: 0 10px 28px rgba(65, 39, 23, .055);
}

.loyalty-admin-workspace > .admin-page-heading h2 {
  color: #2b211a;
  font-size: clamp(22px, 4vw, 30px);
  line-height: 1.08;
  text-wrap: balance;
}
.loyalty-admin-heading__copy {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}
.loyalty-admin-heading__copy > .loyalty-menu-item__icon {
  width: 52px;
  height: 52px;
  border-radius: 17px;
}
.loyalty-admin-heading__copy .dimensional-icon { width: 35px; height: 35px; }
.loyalty-admin-heading__text { display: grid; min-width: 0; gap: 2px; }

.loyalty-menu__intro {
  margin: -3px 2px 2px;
  color: #786b61;
  font-size: 12px;
  line-height: 1.5;
}

.loyalty-menu { display: grid; gap: 11px; }
.loyalty-menu-section {
  overflow: hidden;
  border: 1px solid #e8d9cf;
  border-radius: 19px;
  background: #fffdf9;
  box-shadow: 0 8px 24px rgba(65, 39, 23, .045);
}
.loyalty-menu-section__summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 24px;
  align-items: center;
  gap: 9px;
  min-height: 68px;
  padding: 13px 15px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.loyalty-menu-section__summary::-webkit-details-marker { display: none; }
.loyalty-menu-section__summary:focus-visible { outline: 3px solid rgba(230, 74, 47, .16); outline-offset: -3px; }
.loyalty-menu-section__copy { display: grid; gap: 3px; min-width: 0; }
.loyalty-menu-section__copy strong { color: #34251d; font-size: 15px; }
.loyalty-menu-section__copy small { color: #8a7b70; font-size: 10px; line-height: 1.35; }
.loyalty-menu-section__count {
  display: grid;
  min-width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 999px;
  color: #8b321f;
  background: #ffe9df;
  font-size: 10px;
  font-weight: 900;
}
.loyalty-menu-section__chevron {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  transform-origin: 50% 50%;
  transition: transform 180ms ease;
}
.loyalty-menu-section__chevron::before {
  width: 8px;
  height: 8px;
  border-right: 2px solid #8d7e73;
  border-bottom: 2px solid #8d7e73;
  content: "";
  transform: rotate(45deg);
}
.loyalty-menu-section[open] .loyalty-menu-section__chevron { transform: rotate(180deg); }
.loyalty-menu-section__items { display: grid; border-top: 1px solid #eee3db; }
.loyalty-menu-item {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 26px;
  align-items: center;
  gap: 12px;
  min-width: 0;
  min-height: 76px;
  padding: 11px 14px;
  border: 0;
  border-bottom: 1px solid #f0e7e0;
  color: #2b211a;
  background: transparent;
  text-align: left;
  transition: background 160ms ease, transform 160ms ease;
}
.loyalty-menu-item:last-child { border-bottom: 0; }
.loyalty-menu-item:hover { background: #fff7f1; }
.loyalty-menu-item:active { transform: scale(.99); background: #ffefe6; }
.loyalty-menu-item:focus-visible { position: relative; z-index: 1; outline: 3px solid rgba(230, 74, 47, .16); outline-offset: -3px; }
.loyalty-menu-item__icon {
  position: relative;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  padding: 0;
  border: 1px solid #f0ded1;
  border-radius: 15px;
  color: #8b321f;
  background: linear-gradient(145deg, #fff8ee, #ffe8da);
  box-shadow: inset 0 1px 0 #fff, 0 5px 12px rgba(126, 65, 33, .08);
  font-size: 22px;
  font-weight: 900;
  line-height: 0;
}
.loyalty-menu-item__icon > .dimensional-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 31px;
  height: 31px;
  margin: 0;
  place-items: center;
  transform: translate(-50%, -50%);
}
.loyalty-menu-item__icon > .dimensional-icon > svg {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
}
.loyalty-menu-item__copy { display: grid; gap: 4px; min-width: 0; }
.loyalty-menu-item__copy strong { font-size: 14px; line-height: 1.25; }
.loyalty-menu-item__copy small { color: #84766b; font-size: 10px; line-height: 1.4; }
.loyalty-menu-item__arrow {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
}
.loyalty-menu-item__arrow::before {
  width: 8px;
  height: 8px;
  border-top: 2px solid #b5a79d;
  border-right: 2px solid #b5a79d;
  content: "";
  transform: rotate(45deg);
}

.loyalty-admin-workspace > .admin-form,
.loyalty-admin-workspace > .loyalty-reconciliation {
  padding: 17px;
  border: 1px solid #e8d9cf;
  border-radius: 20px;
  color: #2b211a;
  background: #fffdf9;
  box-shadow: 0 10px 28px rgba(65, 39, 23, .05);
}
.loyalty-admin-workspace .admin-form > h3 {
  grid-column: 1 / -1;
  margin: 8px 0 0;
  padding-top: 16px;
  border-top: 1px solid #eee2d9;
  color: #3a291f;
  font-size: 15px;
}
.loyalty-admin-workspace .admin-form > h3:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.loyalty-admin-workspace .admin-field > :is(input, select, textarea) {
  min-height: 48px;
  border-color: #ded1c7;
  border-radius: 13px;
  color: #2b211a;
  background: #fff;
  transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}
.loyalty-admin-workspace .admin-field > :is(input, select, textarea):hover { border-color: #cfb9aa; }
.loyalty-admin-workspace .admin-field > :is(input, select, textarea):focus {
  border-color: #e64a2f;
  outline: 0;
  box-shadow: 0 0 0 3px rgba(230, 74, 47, .1);
}
.loyalty-admin-workspace .admin-field--toggle {
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid #e6d9cf;
  border-radius: 15px;
  background: #faf6f1;
  cursor: pointer;
}
.loyalty-admin-workspace .admin-field--toggle > input[type="checkbox"] {
  position: relative;
  width: 46px;
  min-height: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  appearance: none;
  background: #cfc6bf;
  box-shadow: inset 0 1px 3px rgba(54, 37, 26, .18);
}
.loyalty-admin-workspace .admin-field--toggle > input[type="checkbox"]::before {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(54, 37, 26, .24);
  content: "";
  transition: transform 170ms ease;
}
.loyalty-admin-workspace .admin-field--toggle > input[type="checkbox"]:checked { background: #e64a2f; }
.loyalty-admin-workspace .admin-field--toggle > input[type="checkbox"]:checked::before { transform: translateX(20px); }
.loyalty-admin-workspace .admin-field--toggle:has(input:checked) { border-color: #efb7a9; background: #fff3ed; }

.loyalty-admin-workspace > .admin-card-list {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: start;
  gap: 12px;
}
.loyalty-admin-workspace .loyalty-admin-card {
  overflow: visible;
  border-color: #e5d8ce;
  border-radius: 20px;
  background: #fffdf9;
  box-shadow: 0 9px 25px rgba(65, 39, 23, .055);
  transition: border-color 170ms ease, box-shadow 170ms ease, transform 170ms ease;
}
.loyalty-admin-workspace .loyalty-admin-card__title {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  column-gap: 10px !important;
}
.loyalty-admin-workspace .loyalty-admin-card__title > :not(.loyalty-admin-card__icon) { grid-column: 2; }
.loyalty-admin-workspace .loyalty-admin-card__icon {
  grid-column: 1;
  grid-row: 1 / span 2;
  width: 42px;
  height: 42px;
  border-radius: 14px;
}
.loyalty-admin-workspace .loyalty-admin-card__icon .dimensional-icon { width: 29px; height: 29px; }
.loyalty-reward-value {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #a13b22;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.2;
}
.loyalty-reward-value__token {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}
.loyalty-reward-value__fallback {
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 50%;
  color: #713707;
  background: linear-gradient(145deg, #ffe988, #eaa115);
  font-size: 9px;
  font-weight: 950;
}
.loyalty-admin-workspace .loyalty-admin-card__metric .loyalty-reward-value { color: #2b211a; }
.loyalty-admin-list-add::before { margin-right: 6px; content: "+"; font-size: 18px; line-height: 0; }
.loyalty-admin-workspace .loyalty-admin-card:hover {
  border-color: #eab8a9;
  box-shadow: 0 14px 32px rgba(94, 51, 29, .095);
  transform: translateY(-2px);
}
.loyalty-admin-workspace .loyalty-admin-card:focus-within { border-color: #e64a2f; box-shadow: 0 0 0 3px rgba(230, 74, 47, .1); }
.loyalty-admin-workspace .loyalty-admin-card__metric {
  min-height: 58px;
  border: 1px solid #eee3db;
  background: #faf6f1;
}
.loyalty-admin-workspace .loyalty-admin-card__open { border-radius: 13px; }
.loyalty-admin-workspace .loyalty-admin-menu__toggle:hover { border-color: #cdb9ab; background: #fff8f3; }
.loyalty-admin-workspace .loyalty-admin-menu__action:hover { background: #fff3ec; }

/* v185: cohesive interactive settings workspace. */
.settings-workspace-hero {
  display: grid;
  grid-template-columns: minmax(130px, 42%) minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  padding: 12px;
  overflow: hidden;
  border: 1px solid #ead9ce;
  border-radius: 20px;
  background: linear-gradient(135deg, #fff8f1, #f4dfd0);
}
.settings-workspace-hero img { width: 100%; min-height: 94px; max-height: 132px; object-fit: cover; border-radius: 14px; }
.settings-workspace-hero__copy { display: grid; gap: 6px; }
.settings-workspace-hero__copy strong { color: #30231c; font-size: 18px; line-height: 1.15; }
.settings-workspace-hero__copy small { color: #78695e; font-size: 11px; line-height: 1.4; }
.workspace-content.settings-admin-menu .workspace-section-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.workspace-content.settings-admin-menu .workspace-section-card {
  min-height: 148px;
  align-content: start;
  gap: 7px;
  padding: 14px;
  border-radius: 18px;
  background: #fffdf9;
  box-shadow: 0 7px 22px rgba(65, 39, 23, .045);
}
.workspace-content.settings-admin-menu .workspace-section-card__icon {
  display: grid;
  width: 52px;
  height: 52px;
  margin-bottom: 3px;
  place-items: center;
  border: 1px solid #f0d9ca;
  border-radius: 15px;
  background: linear-gradient(145deg, #fff8f1, #f7e2d4);
  box-shadow: inset 0 1px rgba(255,255,255,.8), 0 5px 12px rgba(92,49,25,.08);
}
.workspace-content.settings-admin-menu .workspace-section-card__icon .dimensional-icon { width: 35px; height: 35px; }
.workspace-content.settings-admin-menu .workspace-section-card > strong { font-size: 15px; line-height: 1.2; }
.workspace-content.settings-admin-menu .workspace-section-card > small { font-size: 10px; line-height: 1.35; }

.workspace-content:has(> .settings-page-heading) { color-scheme: light; }
.settings-page-heading {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin: 2px 0 18px;
  padding: 14px;
  border: 1px solid #ead9ce;
  border-radius: 20px;
  background: linear-gradient(135deg, #fff8f1, #f5e3d7);
}
.settings-page-heading__icon {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 1px solid rgba(229,104,68,.18);
  border-radius: 16px;
  background: rgba(255,255,255,.62);
  box-shadow: 0 7px 16px rgba(79,43,24,.08);
}
.settings-page-heading__icon .dimensional-icon { width: 38px; height: 38px; }
.settings-page-heading__copy { display: grid; min-width: 0; gap: 4px; }
.settings-page-heading__copy :is(p, h2) { margin: 0; }
.settings-page-heading__copy h2 { color: #30231c; font-size: clamp(20px, 5vw, 28px); line-height: 1.08; }
.settings-page-heading__copy > p:last-child { color: #75665b; font-size: 11px; line-height: 1.4; }
.settings-page-heading__copy .eyebrow { color: #b44631; font-size: 9px; letter-spacing: .13em; }
.settings-form {
  display: grid;
  gap: 12px;
  padding: 0;
  border: 0;
  background: transparent;
}
.settings-form > :is(.admin-field, .admin-check, .admin-notice, .admin-actions),
.settings-form-section,
.settings-form .company-form-section,
.settings-template {
  border-color: #e7dad1;
  color: #30231c;
  background: #fffdf9;
  box-shadow: 0 6px 18px rgba(65,39,23,.035);
}
.settings-form-section {
  display: grid;
  min-width: 0;
  gap: 10px;
  margin: 0;
  padding: 15px;
  border: 1px solid #e7dad1;
  border-radius: 18px;
}
.settings-form-section__title { padding: 0 5px; color: #30231c; font-size: 16px; font-weight: 900; }
.settings-form-section__description { margin: 0; color: #7b6d63; font-size: 11px; line-height: 1.45; }
.settings-form-section__fields { display: grid; gap: 10px; }
.settings-form .admin-field {
  gap: 7px;
  min-width: 0;
  padding: 0;
  border: 0;
  color: #30231c;
  background: transparent;
  box-shadow: none;
}
.settings-form .admin-field__label {
  padding-inline: 2px;
  color: #62564e;
  font-size: 11px;
  font-weight: 850;
  line-height: 1.35;
}
.settings-form .admin-field > :is(input, select, textarea) {
  width: 100%;
  min-height: 54px;
  padding: 12px 14px;
  border: 1px solid #ded3cb;
  border-radius: 15px;
  color: #30231c;
  background: #fffdf9;
  box-shadow: inset 0 1px 2px rgba(70,43,27,.035);
}
.settings-form .admin-field > :is(input, select, textarea):focus {
  border-color: #e87860;
  outline: 0;
  box-shadow: 0 0 0 3px rgba(230,74,47,.1);
}
.settings-form .admin-field > textarea { min-height: 104px; resize: vertical; }
.settings-form .admin-field > small {
  padding-inline: 2px;
  color: #807269;
  font-size: 10px;
  line-height: 1.4;
}
.settings-toggle {
  display: grid;
  min-height: 70px;
  grid-template-columns: minmax(0, 1fr) 48px;
  align-items: center;
  gap: 12px;
  padding: 12px 13px;
  border: 1px solid #e8dcd3;
  border-radius: 15px;
  background: #faf7f3;
  cursor: pointer;
}
.settings-toggle > input { position: absolute; width: 1px !important; height: 1px; min-height: 0 !important; opacity: 0; }
.settings-toggle__copy { display: grid; gap: 4px; }
.settings-toggle__copy strong { color: #30231c; font-size: 14px; }
.settings-toggle__copy small { color: #7d6f65; font-size: 10px; line-height: 1.35; }
.settings-toggle__switch {
  position: relative;
  width: 46px;
  height: 27px;
  border-radius: 999px;
  background: #d8cec7;
  transition: background .18s ease;
}
.settings-toggle__switch::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(45,31,23,.2);
  content: "";
  transition: transform .18s ease;
}
.settings-toggle:has(input:checked) { border-color: #efb4a5; background: #fff2ec; }
.settings-toggle:has(input:checked) .settings-toggle__switch { background: #e64a2f; }
.settings-toggle:has(input:checked) .settings-toggle__switch::after { transform: translateX(19px); }
.settings-toggle:focus-within { box-shadow: 0 0 0 3px rgba(230,74,47,.1); }
.settings-taxi-option {
  display: grid;
  min-height: 76px;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid #eadfcf;
  border-radius: 15px;
  background: linear-gradient(135deg, #fffaf0, #fff4df);
}
.settings-taxi-option.is-disabled { filter: grayscale(.45); opacity: .68; }
.settings-taxi-option .settings-card__icon { width: 44px; height: 44px; background: #fff8e8; }
.settings-taxi-option__copy { display: grid; min-width: 0; gap: 4px; }
.settings-taxi-option__copy strong { color: #30231c; font-size: 14px; }
.settings-taxi-option__copy small { color: #776a60; font-size: 10px; line-height: 1.38; }
.settings-form .admin-actions { grid-template-columns: minmax(0, 1fr); margin-top: 2px; }
.settings-form .admin-actions:has(> :not([hidden]) + :not([hidden])) { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.settings-template { overflow: hidden; border: 1px solid #e7dad1; border-radius: 16px; }
.settings-template > summary { position: relative; display: grid; min-height: 64px; align-items: center; padding: 12px 42px 12px 14px; cursor: pointer; list-style: none; }
.settings-template > summary::-webkit-details-marker { display: none; }
.settings-template > summary::after { position: absolute; right: 18px; width: 8px; height: 8px; border-right: 2px solid #9a897e; border-bottom: 2px solid #9a897e; content: ""; transform: rotate(45deg); }
.settings-template[open] > summary::after { transform: rotate(225deg); }
.settings-template__summary { display: grid; min-width: 0; gap: 4px; }
.settings-template__summary strong { font-size: 14px; }
.settings-template__summary small { overflow: hidden; color: #81736a; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.settings-template > .notification-template-field { padding: 12px 14px 14px; border-top: 1px solid #eee3dc; }
.settings-tabs { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; margin-bottom: 12px; }
.settings-tabs__tab.is-active { border-color: #e64a2f; color: #fff; background: #e64a2f; }
.settings-tab-panel[hidden] { display: none; }
.settings-tab-panels { display: grid; }
.settings-list-toolbar { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 10px; margin-bottom: 14px; }
.settings-list-toolbar p { margin: 0; color: #75685f; font-size: 12px; }
.settings-card-list { gap: 10px; }
.settings-card { display: grid; gap: 12px; border-radius: 18px; background: #fffdf9; }
.settings-card__header { display: grid; grid-template-columns: 46px minmax(0,1fr) auto; align-items: center; gap: 10px; }
.settings-card__icon { display: grid; width: 46px; height: 46px; place-items: center; border: 1px solid #efddd1; border-radius: 13px; background: #fff2e9; }
.settings-card__icon .dimensional-icon { width: 31px; height: 31px; }
.settings-card__copy { display: grid; min-width: 0; gap: 3px; }
.settings-card__copy strong { overflow-wrap: anywhere; color: #30231c; font-size: 14px; }
.settings-card__copy small { overflow: hidden; color: #7e7066; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 479px) {
  .settings-workspace-hero { grid-template-columns: 116px minmax(0,1fr); padding: 10px; border-radius: 18px; }
  .settings-workspace-hero img { min-height: 88px; }
  .workspace-content.settings-admin-menu .workspace-section-card { min-height: 143px; padding: 12px; }
  .settings-page-heading { grid-template-columns: 48px minmax(0,1fr) auto; gap: 9px; padding: 11px; border-radius: 18px; }
  .settings-page-heading__icon { width: 48px; height: 48px; border-radius: 14px; }
  .settings-page-heading__icon .dimensional-icon { width: 34px; height: 34px; }
  .settings-page-heading__copy > p:last-child { grid-column: 1 / -1; }
  .settings-page-heading .admin-back-button { min-width: 68px; padding-inline: 11px; }
  .settings-card__header { grid-template-columns: 42px minmax(0,1fr); }
  .settings-card__header .admin-status { grid-column: 2; justify-self: start; }
  .settings-card__icon { grid-row: 1 / span 2; width: 42px; height: 42px; }
  .settings-taxi-option { grid-template-columns: 42px minmax(0,1fr); }
  .settings-taxi-option .admin-status { grid-column: 2; justify-self: start; }
}
.loyalty-admin-workspace .admin-status { letter-spacing: .04em; }
.loyalty-admin-workspace .loyalty-admin-loading {
  min-height: 180px;
  border: 1px dashed #e1d3c9;
  border-radius: 20px;
  background: linear-gradient(110deg, #faf6f1 25%, #fffdf9 42%, #faf6f1 58%);
  background-size: 220% 100%;
  animation: loyalty-admin-loading 1.4s linear infinite;
}
@keyframes loyalty-admin-loading { to { background-position-x: -220%; } }

@media (max-width: 679px) {
  .loyalty-admin-workspace { gap: 11px; }
  .loyalty-admin-workspace > .admin-page-heading { padding: 14px; border-radius: 18px; }
  .loyalty-admin-workspace > .admin-page-heading h2 { font-size: 22px; }
  .loyalty-admin-heading__copy { grid-template-columns: 44px minmax(0, 1fr); gap: 10px; }
  .loyalty-admin-heading__copy > .loyalty-menu-item__icon { width: 44px; height: 44px; border-radius: 14px; }
  .loyalty-admin-heading__copy .dimensional-icon { width: 30px; height: 30px; }
  .loyalty-menu-section { border-radius: 17px; }
  .loyalty-menu-section__summary { min-height: 62px; padding: 11px 13px; }
  .loyalty-menu-item { grid-template-columns: 42px minmax(0, 1fr) 22px; min-height: 72px; gap: 10px; padding: 10px 12px; }
  .loyalty-menu-item__icon { width: 42px; height: 42px; border-radius: 14px; }
  .loyalty-menu-item__icon .dimensional-icon { width: 28px; height: 28px; }
  .loyalty-admin-workspace > .admin-form,
  .loyalty-admin-workspace > .loyalty-reconciliation { grid-template-columns: minmax(0, 1fr); padding: 14px; border-radius: 17px; }
  .loyalty-admin-workspace .admin-field { grid-column: 1 / -1; }
  .loyalty-admin-workspace > .admin-card-list { grid-template-columns: minmax(0, 1fr); }
  .loyalty-admin-workspace .loyalty-admin-card { padding: 15px; border-radius: 18px; }
  .loyalty-admin-workspace .loyalty-admin-card:hover { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .loyalty-admin-workspace *,
  .loyalty-admin-workspace *::before { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

/* CRM customer cards v194: warm coral identity with light, readable content. */
.workspace-content.crm-admin-shell .crm-customer-card {
  border-color: rgba(220, 67, 42, .28);
  color: #2d1d17;
  background:
    radial-gradient(circle at 0 0, rgba(235, 71, 44, .12), transparent 46%),
    linear-gradient(145deg, #fff7f1, #ffe9df);
  box-shadow: 0 9px 24px rgba(128, 54, 35, .09);
}
.workspace-content.crm-admin-shell .crm-customer-card:hover,
.workspace-content.crm-admin-shell .crm-customer-card:focus-within {
  border-color: rgba(211, 52, 31, .58);
  background:
    radial-gradient(circle at 0 0, rgba(235, 71, 44, .17), transparent 48%),
    linear-gradient(145deg, #fff3eb, #ffdfd2);
  box-shadow: 0 14px 30px rgba(128, 54, 35, .15);
}
.workspace-content.crm-admin-shell .crm-customer-card :is(.crm-card__title, .crm-customer-card__contact) { color: #2d1d17; }
.workspace-content.crm-admin-shell .crm-customer-card .muted { color: #765e53; }
.workspace-content.crm-admin-shell .crm-customer-card .crm-customer-card__open {
  border-color: rgba(211, 52, 31, .26);
  color: #a52f1f;
  background: rgba(255, 253, 250, .9);
  box-shadow: 0 5px 13px rgba(128, 54, 35, .07);
}
.workspace-content.crm-admin-shell .crm-customer-card .crm-customer-card__open:hover,
.workspace-content.crm-admin-shell .crm-customer-card .crm-customer-card__open:focus-visible {
  border-color: #d8422c;
  color: #fff;
  background: #d8422c;
}

/* Admin wide desktop v196: a deliberate 10% comfort scale without browser zoom. */
@media (min-width: 1440px) {
  body[data-workspace-mode="admin"] #staff-workspace-root {
    font-size: 17px;
  }

  body[data-workspace-mode="admin"] #staff-workspace-root .workspace-shell__header {
    gap: 24px;
    padding: 22px clamp(28px, 3vw, 48px);
  }

  body[data-workspace-mode="admin"] #staff-workspace-root .workspace-shell__header h1 {
    font-size: 28px;
  }

  body[data-workspace-mode="admin"] #staff-workspace-root .workspace-shell__layout {
    grid-template-columns: minmax(220px, 286px) minmax(0, 1fr);
  }

  body[data-workspace-mode="admin"] #staff-workspace-root .workspace-navigation {
    gap: 10px;
    padding: 21px 16px;
  }

  body[data-workspace-mode="admin"] #staff-workspace-root .workspace-navigation__item {
    min-height: 50px;
    border-radius: 14px;
    padding: 13px 16px;
    font-size: 16px;
  }

  body[data-workspace-mode="admin"] #staff-workspace-root .workspace-content {
    padding: clamp(36px, 3vw, 52px);
  }

  body[data-workspace-mode="admin"] #staff-workspace-root :is(.workspace-home-heading, .admin-page-heading) h2 {
    font-size: clamp(29px, 2vw, 36px);
    line-height: 1.12;
  }

  body[data-workspace-mode="admin"] #staff-workspace-root .workspace-home-heading p,
  body[data-workspace-mode="admin"] #staff-workspace-root .admin-page-description {
    font-size: 16px;
  }

  body[data-workspace-mode="admin"] #staff-workspace-root .workspace-overview {
    border-radius: 20px;
    padding: 26px;
  }

  body[data-workspace-mode="admin"] #staff-workspace-root .workspace-section-cards {
    gap: 17px;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 264px), 1fr));
  }

  body[data-workspace-mode="admin"] #staff-workspace-root .workspace-section-card {
    min-height: 132px;
    border-radius: 20px;
    padding: 19px;
  }

  body[data-workspace-mode="admin"] #staff-workspace-root :is(.admin-filter, .admin-field) :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea) {
    min-height: 48px;
    border-radius: 13px;
    padding: 11px 14px;
    font-size: 15px;
  }

  body[data-workspace-mode="admin"] #staff-workspace-root .admin-field__label {
    font-size: 13px;
  }

  body[data-workspace-mode="admin"] #staff-workspace-root .admin-card-list {
    gap: 15px;
  }
}

/* Admin home alignment v197: shared text baselines and a protected action column. */
.workspace-home-card__copy strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.workspace-home-card > .workspace-section-card__icon .dimensional-icon--catalog {
  transform: translateY(-4px);
}

/* Compact controls keep their component geometry in the wide desktop mode. */
@media (min-width: 1440px) {
  body[data-workspace-mode="admin"] #staff-workspace-root .catalog-category-card {
    padding: 0;
  }

  body[data-workspace-mode="admin"] #staff-workspace-root .catalog-category-card > .catalog-action-menu {
    top: 50%;
    transform: translateY(-50%);
  }
}

@media (min-width: 480px) {
  .workspace-home-cards {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  }

  .workspace-home-card {
    align-items: stretch;
    align-content: stretch;
    min-height: 154px;
  }

  .workspace-home-card__copy {
    align-self: stretch;
    align-content: start;
    grid-template-rows: 12px auto auto;
    min-height: 102px;
    row-gap: 5px;
  }

  .workspace-home-card > .workspace-section-card__icon,
  .workspace-home-card > .workspace-home-card__arrow {
    align-self: center;
  }

  .workspace-home-card__eyebrow {
    align-self: start;
    line-height: 12px;
  }

  .workspace-home-card__copy strong {
    align-self: start;
    line-height: 1.15;
  }

  .workspace-home-card__copy small {
    align-self: start;
  }
}

/* v198: edge-to-edge illustrated surfaces across admin workspace heroes and tools. */
.communications-workspace-hero,
.settings-workspace-hero {
  gap: 0;
  padding: 0;
}

.communications-workspace-hero img,
.settings-workspace-hero img {
  align-self: stretch;
  height: 100%;
  max-height: none;
  border-radius: 21px 0 0 21px;
  mix-blend-mode: multiply;
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 84%, transparent 100%);
  mask-image: linear-gradient(90deg, #000 0%, #000 84%, transparent 100%);
}

.communications-workspace-hero__copy,
.settings-workspace-hero__copy {
  padding: 18px 22px 18px 12px;
}

.workspace-section-card--artwork .workspace-section-card__artwork {
  aspect-ratio: 2 / 1;
}

.workspace-section-card--artwork .workspace-section-card__artwork img,
.workspace-section-card--artwork[data-tool="campaigns"] .workspace-section-card__artwork img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: none;
  mix-blend-mode: multiply;
}

@media (min-width: 480px) {
  .communications-workspace-hero,
  .settings-workspace-hero {
    height: clamp(210px, 17vw, 250px);
    min-height: 0;
  }

  .communications-workspace-hero img,
  .settings-workspace-hero img {
    min-height: 0;
  }

  .workspace-content.settings-admin-menu .workspace-section-card__icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
  }

  .workspace-content.settings-admin-menu .workspace-section-card__icon .dimensional-icon {
    width: 46px;
    height: 46px;
  }
}

@media (max-width: 390px) {
  .communications-workspace-hero img,
  .settings-workspace-hero img {
    border-radius: 17px 17px 0 0;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .communications-workspace-hero__copy,
  .settings-workspace-hero__copy {
    padding: 14px;
  }
}

/* Keep the image-button surface edge-to-edge after earlier marketing defaults. */
.workspace-section-card--artwork { padding: 0; }

/* v202: compact desktop-only editor previews and complete mobile marketing artwork. */
@media (min-width: 720px) {
  .promotion-editor {
    grid-template-columns: minmax(280px, .72fr) minmax(0, 1.28fr);
    grid-auto-flow: row dense;
    align-items: start;
  }

  .promotion-editor__preview {
    grid-column: 1;
    grid-row: auto;
    width: min(100%, 430px);
    min-height: 128px;
    align-self: start;
    justify-self: start;
    grid-template-columns: 94px minmax(0, 1fr);
    padding: 14px;
  }

  .promotion-editor__preview-image {
    width: 94px;
    height: 78px;
  }

  .promotion-editor > .promotion-editor__step:not(.is-active) {
    grid-column: 1;
  }

  .promotion-editor > .promotion-editor__step.is-active {
    grid-column: 2;
    grid-row: 1 / span 6;
  }
}

@media (max-width: 479px) {
  .workspace-section-card--artwork {
    aspect-ratio: 1.5 / 1;
    padding: 0;
  }

  .workspace-section-card--artwork .workspace-section-card__artwork {
    inset: 0;
    height: 100%;
    aspect-ratio: auto;
  }

  .workspace-section-card--artwork .workspace-section-card__artwork img,
  .workspace-section-card--artwork[data-tool="campaigns"] .workspace-section-card__artwork img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
}

/* v219 final cascade: customer dialog metadata stays crisp after legacy component rules. */
@media (min-width: 1100px) {
  body[data-workspace-mode="customer"] :is(
    #profile-dialog,
    #loyalty-center-dialog,
    #support-dialog,
    #cart-dialog,
    #checkout-dialog
  ) :is(
    .profile-section-heading p,
    .profile-field__label,
    .profile-address-card__meta span,
    .loyalty-history__caption,
    .loyalty-history__date,
    .loyalty-widget__subtitle,
    .loyalty-widget__label,
    .loyalty-widget__progress-caption,
    .loyalty-center__metric span,
    .checkout-delivery-method__copy small,
    .checkout-zone-trigger__copy small,
    .checkout-time-option__copy small,
    .cart-item__copy small,
    .cart-summary__meta
  ) {
    color: color-mix(in srgb, var(--customer-theme-text) 72%, var(--customer-theme-muted));
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    opacity: 1;
  }

  body[data-workspace-mode="customer"] #support-dialog .customer-support-chat__day {
    color: color-mix(in srgb, var(--customer-theme-text) 72%, var(--customer-theme-muted));
    font-size: 11px;
    font-weight: 650;
  }

  body[data-workspace-mode="customer"] #support-dialog .customer-support-message__author strong {
    font-size: 13px;
    font-weight: 700;
  }

  body[data-workspace-mode="customer"] #support-dialog .customer-support-message__author small,
  body[data-workspace-mode="customer"] #support-dialog .customer-support-message__time {
    font-size: 11px;
    font-weight: 600;
    opacity: .74;
  }
}

/* v219 admin cascade: compact labels stay sharp without leaking into customer styles. */
@media (min-width: 1440px) {
  body[data-workspace-mode="admin"] #staff-workspace-root :is(
    .workspace-home-card__eyebrow,
    .admin-status,
    .catalog-product-card__position,
    .crm-profile-state,
    .crm-quality,
    .crm-filter-count,
    .crm-section-count,
    .analytics-kpi__label
  ) {
    font-size: 11px;
    font-weight: 700;
    text-rendering: geometricPrecision;
  }

  body[data-workspace-mode="admin"] #staff-workspace-root :is(
    .workspace-home-card__copy small,
    .workspace-section-card__copy small,
    .settings-card__copy small,
    .settings-template__summary small,
    .analytics-kpi__hint,
    .analytics-quality,
    .analytics-formula,
    .analytics-trend-toolbar p,
    .analytics-diagrams__heading p,
    .analytics-visual-card__heading p,
    .analytics-donut__description,
    .crm-customer-result small,
    .crm-inline-empty p
  ) {
    color: #6f6259;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.45;
    opacity: 1;
  }

  body[data-workspace-mode="admin"] #staff-workspace-root :is(
    .analytics-chart__item strong,
    .analytics-chart__item small,
    .analytics-series-legend,
    .analytics-donut__legend-item,
    .analytics-donut__legend-item strong,
    .analytics-order span,
    .analytics-order small
  ) {
    font-size: 12px;
    font-weight: 650;
    line-height: 1.35;
    text-rendering: geometricPrecision;
  }

  body[data-workspace-mode="admin"] #staff-workspace-root .analytics-donut__percentage {
    font-size: 10px;
    font-weight: 700;
    stroke-width: .8px;
  }

  body[data-workspace-mode="admin"] #staff-workspace-root .analytics-donut__total {
    font-size: 13px;
    font-weight: 700;
  }

  body[data-workspace-mode="admin"] #staff-workspace-root :is(
    .admin-field__label,
    .admin-field__hint,
    .crm-customer-section-nav__button,
    .settings-list-toolbar p
  ) {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
  }
}
