/*
 * SDA guest mini app foundation (stage 1, 2026-11-13).
 * Loaded last. One accent (the admin theme colour), one neutral ramp, Manrope,
 * a small type and radius scale, and no decorative gradients, glows or blur.
 * The orange "Открыть QR" card is the deliberate main accent and is left as it is.
 */

.sda-tenant-light {
  --f-accent: var(--sda-accent, #ff5a16);
  --f-accent-ink: color-mix(in srgb, var(--f-accent) 78%, #000);
  --f-accent-soft: color-mix(in srgb, var(--f-accent) 10%, #fff);
  --f-page: #f6f6f3;
  --f-surface: #ffffff;
  --f-surface-2: #f2f2ef;
  --f-line: rgba(24, 24, 27, 0.08);
  --f-line-strong: rgba(24, 24, 27, 0.14);
  --f-text: #18181b;
  --f-text-2: #52525b;
  --f-text-3: #71717a;
  --f-radius-control: 12px;
  --f-radius-card: 20px;
  --f-radius-panel: 24px;
  --f-shadow: 0 1px 2px rgba(24, 24, 27, 0.05);
  --f-ease: cubic-bezier(0.2, 0, 0, 1);
  font-family: Manrope, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--f-text);
}

/* Type: one family everywhere, at most three weights, no tracked capitals. */
.sda-tenant-light :is(body, button, input, select, textarea) { font-family: Manrope, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; }
.sda-tenant-light :is(h1, h2, h3, h4, strong, b, .notif-title, .menu-title, .offers-title-row h3, .glass-action-title, .loyalty-level-title, .stat-card h4, .stat-card strong, .history-tabs button, .menu-tabs button) { font-weight: 700; }
.sda-tenant-light #client :is(.loyalty-level-title, .loyalty-caption, .loyalty-group-caption, .index-stock-caption, .wallet-inline-card span) { text-transform: none !important; letter-spacing: 0 !important; }
.sda-tenant-light :is(.notif-title, .menu-title) { background: none !important; -webkit-background-clip: border-box !important; background-clip: border-box !important; -webkit-text-fill-color: currentColor !important; color: var(--f-text) !important; }

/* Surfaces: flat white cards on the warm page, hairline borders, a whisper of shadow. */
.sda-tenant-light #client :is(.loyalty-summary-card, .loyalty-summary-top, .stat-card, .stat-card.interactive),
.sda-tenant-light :is(.settings-section-card:not(.history-panel), #settingsProfileBlock, .history-empty, #historyEmpty) {
  background: var(--f-surface) !important;
  background-image: none !important;
  border: 1px solid var(--f-line) !important;
  box-shadow: var(--f-shadow) !important;
}
.sda-tenant-light #client .loyalty-summary-top { border: 0 !important; box-shadow: none !important; }
.sda-tenant-light #client :is(.stat-card, .stat-card.interactive)::before,
.sda-tenant-light #client :is(.stat-card, .stat-card.interactive)::after { content: none !important; display: none !important; }
.sda-tenant-light #client .stat-card { border-radius: var(--f-radius-card) !important; }

/* Quick actions inside the loyalty card: no glass, no blur. */
.sda-tenant-light #client .loyalty-quick-actions { background: var(--f-surface-2) !important; background-image: none !important; box-shadow: none !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; border-radius: var(--f-radius-control) !important; }
.sda-tenant-light #client .glass-action-btn { background: transparent !important; background-image: none !important; box-shadow: none !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; transition: background-color 0.15s var(--f-ease) !important; }
.sda-tenant-light #client .glass-action-btn:active { background: rgba(24, 24, 27, 0.04) !important; }
.sda-tenant-light #client .glass-action-btn + .glass-action-btn { border-left: 1px solid var(--f-line) !important; }

/* Referral arrow: a plain round control. */
.sda-tenant-light #client #homeReferralBtn { background: var(--f-surface-2) !important; background-image: none !important; border: 1px solid var(--f-line) !important; box-shadow: none !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
.sda-tenant-light #client #homeReferralBtn::before, .sda-tenant-light #client #homeReferralBtn::after { display: none !important; }

/* History filters are a plain chip row (owner 2026-12-01): no track or band behind the chips. */
.sda-tenant-light .history-tabs { background: none !important; border: 0 !important; box-shadow: none !important; }

/* Bottom navigation: solid white bar, hairline, no frosted glass. */
.sda-tenant-light .bottom-nav,
.sda-tenant-light .bottom-nav.has-active {
  background: var(--f-surface) !important;
  background-image: none !important;
  border: 1px solid var(--f-line) !important;
  box-shadow: 0 4px 16px rgba(24, 24, 27, 0.06) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* SDA SHOP banner: soft accent tint instead of a gradient. */
.sda-tenant-light .sda-shop-market-banner { background: var(--f-accent-soft) !important; background-image: none !important; box-shadow: none !important; border: 0 !important; }
.sda-tenant-light .sda-shop-market-banner span { color: var(--f-accent-ink) !important; }

/* Buttons: one primary (accent, flat) and one secondary (white, hairline); no glow. */
.sda-tenant-light #profileSaveBtn { background: var(--f-accent) !important; background-image: none !important; box-shadow: none !important; color: #fff !important; border-radius: var(--f-radius-control) !important; }
.sda-tenant-light .settings-back-btn,
.sda-tenant-light .full.settings-back-btn { background: var(--f-surface) !important; background-image: none !important; border: 1px solid var(--f-line-strong) !important; box-shadow: none !important; color: var(--f-text) !important; border-radius: var(--f-radius-control) !important; }

/* Secondary text roles. */
.sda-tenant-light #client :is(.stat-foot:not(.stat-link-text), .offers-subtitle, .loyalty-summary-card small) { color: var(--f-text-3); }
.sda-tenant-light #client .stat-link-text { color: var(--f-accent-ink) !important; }

/* Focus: visible ring in the accent for keyboard users. */
.sda-tenant-light :is(button, a, [role="button"], input, select, textarea):focus-visible { outline: 2px solid var(--f-accent); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  .sda-tenant-light *, .sda-tenant-light *::before, .sda-tenant-light *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* Decorative shines and colour washes drawn in pseudo-elements. */
.sda-tenant-light #client :is(#loyaltySummaryCard, #loyaltySummaryTop, .loyalty-summary-card, .loyalty-summary-top)::after,
.sda-tenant-light #client .glass-action-btn::before,
.sda-tenant-light #client .glass-action-btn::after,
.sda-tenant-light .bottom-nav::before,
.sda-tenant-light :is(.settings-section-card, #settingsProfileBlock)::before,
.sda-tenant-light :is(.settings-section-card, #settingsProfileBlock)::after { content: none !important; display: none !important; background: none !important; }

/* Loyalty card type scale: nothing below 12px, weights 500/600/700 only. */
.sda-tenant-light #brandTitle, .sda-tenant-light #brandTitle span { font-weight: 700 !important; }
.sda-tenant-light #client #loyaltySummaryCard :is(.loyalty-caption, .loyalty-group-caption, .wallet-inline-card span) { font-size: 12px !important; line-height: 16px !important; font-weight: 600 !important; color: var(--f-text-2) !important; }
.sda-tenant-light #client #loyaltySummaryCard :is(small, .loyalty-group-rate, .loyalty-group-rate span) { font-size: 12px !important; line-height: 16px !important; font-weight: 500 !important; }
.sda-tenant-light #client #loyaltySummaryCard .loyalty-rate-value { font-size: 12px !important; font-weight: 700 !important; color: var(--f-accent-ink) !important; }
.sda-tenant-light #client #loyaltySummaryCard .loyalty-level-title { font-size: 15px !important; line-height: 20px !important; font-weight: 700 !important; }

/* Quick actions and "Мои покупки" (2026-11-13, owner request).
   Three identical buttons with even 12px insets inside the loyalty card;
   "Мои покупки" is a full-width centred secondary button. */
.sda-tenant-light #client #loyaltySummaryCard .loyalty-quick-actions {
  display: grid !important;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 8px !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 4px 12px 12px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
}
.sda-tenant-light #client #loyaltySummaryCard .loyalty-quick-actions .glass-action-btn {
  height: 64px !important;
  min-height: 64px !important;
  margin: 0 !important;
  padding: 8px 4px !important;
  border: 1px solid var(--f-line) !important;
  border-radius: var(--f-radius-control) !important;
  background: var(--f-surface-2) !important;
  color: var(--f-text) !important;
}
.sda-tenant-light #client #loyaltySummaryCard .loyalty-quick-actions .glass-action-btn + .glass-action-btn { border-left: 1px solid var(--f-line) !important; }
.sda-tenant-light #client #loyaltySummaryCard .loyalty-quick-actions .glass-action-btn:active { background: #e9e9e5 !important; }
.sda-tenant-light #client #loyaltySummaryCard .loyalty-quick-actions .glass-action-title { color: var(--f-text) !important; font-size: 13px !important; line-height: 16px !important; font-weight: 600 !important; }
.sda-tenant-light #client #loyaltySummaryCard .loyalty-quick-actions .glass-action-icon { color: var(--f-text-2) !important; }

.sda-tenant-light #client .sda-shop-market-actions {
  display: grid !important;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 8px !important;
  margin: 0 0 12px !important;
}
.sda-tenant-light #client .sda-shop-market-actions button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 100% !important;
  min-height: 44px !important;
  margin: 0 !important;
  padding: 0 16px !important;
  border: 1px solid var(--f-line-strong) !important;
  border-radius: var(--f-radius-control) !important;
  background: var(--f-surface) !important;
  box-shadow: none !important;
  color: var(--f-text) !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  text-align: center;
}
.sda-tenant-light #client .sda-shop-market-actions button:active { background: var(--f-surface-2) !important; }

.sda-tenant-light #client #loyaltySummaryCard .loyalty-quick-actions.hidden,
.sda-tenant-light #client .sda-shop-market-actions.hidden,
.sda-tenant-light #client .sda-shop-market-actions button.hidden { display: none !important; }
/* The loyalty card top is part of the card, not a card of its own (removes the seam above the buttons). */
.sda-tenant-light #client #loyaltySummaryCard #loyaltySummaryTop { border: 0 !important; box-shadow: none !important; background: transparent !important; border-radius: 0 !important; }
.sda-tenant-light #client #loyaltySummaryCard .loyalty-quick-actions .glass-action-btn { white-space: normal !important; text-align: center; }
@media (max-width: 360px) {
  .sda-tenant-light #client #loyaltySummaryCard .loyalty-quick-actions { gap: 6px !important; padding: 4px 10px 10px !important; }
  .sda-tenant-light #client #loyaltySummaryCard .loyalty-quick-actions .glass-action-btn { padding: 8px 2px !important; }
  .sda-tenant-light #client #loyaltySummaryCard .loyalty-quick-actions .glass-action-title { font-size: 12px !important; line-height: 15px !important; }
}
@media (max-width: 340px) {
  .sda-tenant-light #client #loyaltySummaryCard .loyalty-quick-actions .glass-action-title { font-size: 11px !important; line-height: 14px !important; }
}
/* Icons on one line across all three buttons; labels share a two-line box under them. */
.sda-tenant-light #client #loyaltySummaryCard .loyalty-quick-actions .glass-action-btn {
  display: grid !important;
  grid-template-rows: 18px 32px;
  align-content: center;
  justify-items: center;
  gap: 4px !important;
  height: 72px !important;
  min-height: 72px !important;
}
.sda-tenant-light #client #loyaltySummaryCard .loyalty-quick-actions .glass-action-btn.hidden { display: none !important; }
.sda-tenant-light #client #loyaltySummaryCard .loyalty-quick-actions .glass-action-title { display: flex; align-items: center; justify-content: center; height: 32px; }

/* Quick actions as matte iOS tiles (owner choice, 2026-11-13): system grey fill, no border,
   16px corners, a hairline top highlight, accent icons, tile darkens and scales slightly on press. */
.sda-tenant-light #client #loyaltySummaryCard .loyalty-quick-actions { gap: 10px !important; padding: 4px 12px 12px !important; }
.sda-tenant-light #client #loyaltySummaryCard .loyalty-quick-actions .glass-action-btn {
  grid-template-rows: 24px 32px;
  height: 80px !important;
  min-height: 80px !important;
  border: 0 !important;
  border-radius: 16px !important;
  background: #f2f2f7 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 1px 1px rgba(0, 0, 0, 0.04) !important;
  transition: transform 0.12s var(--f-ease), background-color 0.12s var(--f-ease) !important;
}
.sda-tenant-light #client #loyaltySummaryCard .loyalty-quick-actions .glass-action-btn + .glass-action-btn { border-left: 0 !important; }
.sda-tenant-light #client #loyaltySummaryCard .loyalty-quick-actions .glass-action-btn:active { background: #e5e5ea !important; transform: scale(0.97); }
.sda-tenant-light #client #loyaltySummaryCard .loyalty-quick-actions .glass-action-icon { width: 22px !important; height: 22px !important; color: var(--f-accent) !important; }
.sda-tenant-light #client #loyaltySummaryCard .loyalty-quick-actions .glass-action-title { color: #1c1c1e !important; }
@media (max-width: 360px) {
  .sda-tenant-light #client #loyaltySummaryCard .loyalty-quick-actions { gap: 8px !important; padding: 4px 10px 10px !important; }
}

/* glass:start — loyalty card as compact matte glass (owner choice, 2026-11-13).
   The warm card tint and the blur are deliberate and limited to this block. */
.sda-tenant-light #client #loyaltySummaryCard { background: linear-gradient(180deg, #ffffff 0%, #fff3ea 100%) !important; }
.sda-tenant-light #client #loyaltySummaryCard .loyalty-quick-actions { gap: 8px !important; padding: 0 12px 12px !important; }
.sda-tenant-light #client #loyaltySummaryCard .loyalty-quick-actions .glass-action-btn {
  grid-template-rows: 20px 30px; gap: 2px !important; height: 64px !important; min-height: 64px !important; padding: 6px 4px !important;
  border: 1px solid rgba(255,255,255,0.85) !important; border-radius: 16px !important;
  background: rgba(255,255,255,0.55) !important;
  -webkit-backdrop-filter: blur(18px) saturate(180%) !important; backdrop-filter: blur(18px) saturate(180%) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.95), 0 4px 12px rgba(24,24,27,0.07) !important;
}
.sda-tenant-light #client #loyaltySummaryCard .loyalty-quick-actions .glass-action-icon { width: 20px !important; height: 20px !important; color: var(--f-accent) !important; }
.sda-tenant-light #client #loyaltySummaryCard .loyalty-quick-actions .glass-action-title { height: 30px !important; line-height: 15px !important; color: #1c1c1e !important; }
/* The group block stays in its own right-hand column (owner choice, 2026-11-14). */
/* Menu tile: same shape, filled with the accent so it reads as the place to tap (owner choice, 2026-11-14). */
.sda-tenant-light #client #loyaltySummaryCard .loyalty-quick-actions #homeFullMenuBtn {
  border-color: transparent !important; background: var(--f-accent) !important;
  -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
  box-shadow: 0 6px 16px color-mix(in srgb, var(--f-accent) 32%, transparent) !important;
}
.sda-tenant-light #client #loyaltySummaryCard .loyalty-quick-actions #homeFullMenuBtn .glass-action-icon,
.sda-tenant-light #client #loyaltySummaryCard .loyalty-quick-actions #homeFullMenuBtn .glass-action-title { color: #ffffff !important; }
.sda-tenant-light #client #loyaltySummaryCard .loyalty-quick-actions #homeFullMenuBtn:active { filter: brightness(0.94); }
/* glass:end */

/* Shop («Магазин»): promo carousel and category row (2026-11-25).
 * The categories are a borderless, edge-to-edge row of pills on the page colour, not a boxed
 * track: the row runs to the screen edges and scrolls under them; the active pill is solid. */
.sda-tenant-light #menuView .store-menu-promo { margin: 4px 0 18px; }
.sda-tenant-light #menuView .store-menu-promo .tonight-promo { margin: 0; }
.sda-tenant-light #menuView #menuTabs {
  gap: 8px;
  margin: 0 -14px 2px;
  padding: 4px 14px 10px;
  border: 0 !important;
  border-radius: 0;
  background: var(--f-page) !important;
  background-image: none !important;
  box-shadow: none !important;
  scroll-padding-inline: 14px;
  scrollbar-width: none;
}
.sda-tenant-light #menuView #menuTabs::-webkit-scrollbar { display: none; }
.sda-tenant-light #menuView #menuTabs .menu-chip {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--f-line-strong);
  border-radius: 999px;
  background: var(--f-surface);
  box-shadow: none;
  color: var(--f-text-2);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
  transition: background-color 160ms var(--f-ease), border-color 160ms var(--f-ease), color 160ms var(--f-ease);
}
.sda-tenant-light #menuView #menuTabs .menu-chip.active {
  border-color: var(--f-accent);
  background: var(--f-accent);
  color: #fff;
}
.sda-tenant-light #menuView #menuTabs .menu-chip:focus-visible {
  outline: 2px solid var(--f-accent);
  outline-offset: 2px;
}

/* One look for every guest and operator screen (2026-12-01, owner: «сделай везде одинаковые»).
   - Primary action: solid accent with white text (the same as the home «Меню» tile and the INDEX
     «Забронировать»), no gradient, no glow, 48px tall.
   - Secondary action: white surface, hairline border, dark text.
   - Selected form choice (date, time, toggle, language, delivery method): soft accent fill, accent
     border, dark-accent text, like the shop checkout's «Самовывоз / Доставка». Filter chips keep
     their solid active pill (owner choice 2026-11-25).
   - Every control a finger presses is at least 44px; the app's own labels are in sentence case. */

/* Primary actions. */
.sda-tenant-light :is(
  #cartView .cart-order-btn,
  #menuView .menu-add,
  #menuFloatingCart,
  #menuModalAddBtn,
  #reservationOverlay .reservation-confirm-btn,
  #settingsView #profileSaveBtn,
  #notifModalActionBtn,
  .notif-modal-actions .btn:not(.btn-ghost),
  #shopOrderSubmit,
  .popup-primary-btn,
  #orderOverlay .order-submit-btn,
  #indexStockConfirmBtn,
  #operatorRegularScanBtn,
  #opActions > .full,
  .guest-empty-action,
  .digital-menu-detail-add
) {
  border: 0;
  background: var(--f-accent);
  background-image: none;
  box-shadow: none;
  color: #fff;
  -webkit-text-fill-color: #fff;
  text-transform: none;
  letter-spacing: 0;
  transition: background-color 0.15s ease, transform 0.1s ease;
}

.sda-tenant-light :is(
  #cartView .cart-order-btn,
  #reservationOverlay .reservation-confirm-btn,
  #settingsView #profileSaveBtn,
  #shopOrderSubmit,
  #indexStockConfirmBtn,
  #operatorRegularScanBtn,
  .guest-empty-action
) {
  min-height: 48px;
  border-radius: var(--f-radius-control);
  font-weight: 700;
}

.sda-tenant-light :is(#cartView .cart-order-btn, #menuView .menu-add, #reservationOverlay .reservation-confirm-btn,
  #settingsView #profileSaveBtn, #shopOrderSubmit, .popup-primary-btn, #indexStockConfirmBtn, #operatorRegularScanBtn,
  .guest-empty-action, .digital-menu-detail-add, #menuModalAddBtn):active {
  transform: scale(0.98);
}

.sda-tenant-light :is(#cartView .cart-order-btn, #menuView .menu-add, #reservationOverlay .reservation-confirm-btn,
  #settingsView #profileSaveBtn, #shopOrderSubmit, .popup-primary-btn, #indexStockConfirmBtn, #operatorRegularScanBtn,
  .guest-empty-action, .digital-menu-detail-add, #menuModalAddBtn):disabled {
  background: #d9d4cd;
  color: #6f6a64;
  -webkit-text-fill-color: #6f6a64;
}

/* Secondary action: «Пополнить кошелёк» on the operator home (was a blue card). */
.sda-tenant-light #operatorWalletScanBtn.operator-wallet-entry {
  min-height: 56px;
  border: 1px solid var(--f-line-strong);
  border-radius: var(--f-radius-control);
  background: var(--f-surface);
  box-shadow: none;
  color: var(--f-text);
  -webkit-text-fill-color: var(--f-text);
}

.sda-tenant-light #operatorWalletScanBtn.operator-wallet-entry :is(strong, small) {
  color: inherit;
  -webkit-text-fill-color: inherit;
}

.sda-tenant-light #operatorWalletScanBtn.operator-wallet-entry small {
  color: var(--f-text-3);
  -webkit-text-fill-color: var(--f-text-3);
}

/* Selected choices. */
.sda-tenant-light :is(
  #reservationOverlay .reservation-date-option.active,
  #reservationOverlay .reservation-scroll-item.active,
  #reservationOverlay .reservation-pref-btn.active,
  #settingsView .profile-toggle button.active,
  #settingsView .agreement-lang-btn.active,
  #settingsView .default-lang-btn.active,
  #deliveryOverlay .delivery-method.is-selected
) {
  border: 1.5px solid var(--sda-accent);
  background: var(--f-accent-soft);
  background-image: none;
  box-shadow: none;
  color: var(--f-accent-ink);
  -webkit-text-fill-color: var(--f-accent-ink);
}

/* Touch targets: at least 44px. */
.sda-tenant-light :is(
  .tonight-promo-arrow,
  #cartView .cart-control-btn,
  #fullMenuBackBtn,
  #reservationOverlay .reservation-date-option,
  #reservationOverlay .reservation-month-btn,
  #settingsView #profileEditToggleBtn,
  .full-menu-close-icon
) {
  min-width: 44px;
  min-height: 44px;
}

.sda-tenant-light :is(#menuView .menu-chip, #settingsView .profile-toggle button, #settingsView select.field,
  #settingsView #profileBirthDay, #settingsView #profileBirthMonth, #settingsView #profileBirthYear) {
  min-height: 44px;
}

/* Sentence case for the app's own labels (Admin names keep their letters). */
.sda-tenant-light :is(.menu-category-title, .tonight-promo-eyebrow, .index-stock-confirm, .shop-booking-title) {
  text-transform: none;
  letter-spacing: 0;
}

/* The booking dialog's close button sits inside the card's top-right corner, like every other dialog. */
.sda-tenant-light #reservationOverlay .qr-close {
  top: 12px;
  right: 12px;
  left: auto;
  transform: none;
}

/* Shop and history filter chips: 44px tall like every other control. */
body.sda-tenant-light :is(#menuView .menu-chip, #historyView .history-tab) {
  height: auto;
  min-height: 44px;
}

/* The history filter row bleeds to the card edges; it must not widen the page. */
body.sda-tenant-light #historyView {
  overflow-x: clip;
}

/* Line icons (lucide shapes): one size, one stroke, the colour of their text role; they replace the
   emoji the profile, ticket and voucher controls used to show. */
.sda-tenant-light .ui-icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
.sda-tenant-light .ui-icon-inline { width: 14px; height: 14px; vertical-align: -2px; }
.sda-tenant-light #settingsView .profile-icon { display: inline-grid; place-items: center; color: var(--f-text-2); font-size: 0; }
.sda-tenant-light :is(#operatorVoucherScanBtn, .ticket-checkin-icon) .ui-icon { width: 22px; height: 22px; }

/* Booking steps: the active / done dot is solid accent with white figures (no gradient); the row starts
   at the left edge and stays clear of the close button in the right corner. */
.sda-tenant-light #reservationOverlay .reservation-stepper-line { justify-content: flex-start; padding-right: 64px; }
.sda-tenant-light #reservationOverlay .reservation-stepper-line span:is(.active, .done) {
  background: var(--f-accent);
  background-image: none;
  box-shadow: none;
  color: #fff;
  -webkit-text-fill-color: #fff;
}

/* Operator «Заказы» with nothing new: a clear title and what happens next, not a faint line. */
.sda-tenant-light #ordersEmpty.operator-orders-empty { padding: 32px 20px; border: 1px solid var(--f-line) !important; border-radius: var(--f-radius-card); background: var(--f-surface) !important; background-image: none !important; box-shadow: none !important; }
.sda-tenant-light #ordersEmpty .operator-orders-empty-title { color: var(--f-text); font-size: 17px; line-height: 24px; font-weight: 700; }

/* Loyalty group while it loads: a still grey bar in the value's place instead of «— %» that later
   changes width (no shimmer; it is replaced as soon as the value arrives). */
.sda-tenant-light #client :is(#cashbackLevelTitle, #cashbackRateValue).is-loading {
  display: inline-block;
  min-width: 56px;
  border-radius: 6px;
  background: var(--f-surface-2);
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
}
.sda-tenant-light #client #cashbackRateValue.is-loading { min-width: 32px; }

/* Referral arrow: the round control keeps its small look, the finger gets a 44px area (a transparent
   8px ring that adds to the tap target, pulled back by a negative margin so nothing moves). */
.sda-tenant-light #client #homeReferralBtn {
  box-sizing: content-box;
  border: 8px solid transparent !important;
  background-clip: padding-box !important;
  box-shadow: inset 0 0 0 1px var(--f-line) !important;
  margin: -8px;
}

/* Bonus visit dots shrink together on narrow phones instead of running past the card. */
.sda-tenant-light #client .bonus-progress-dots span {
  flex: 0 1 var(--dot-size, 24px);
  min-width: 0;
  width: auto;
  aspect-ratio: 1;
}
@media (max-width: 380px) {
  .sda-tenant-light #client .bonus-progress-dots { --dot-gap: 4px; }
}

/* Primary labels are bold everywhere (the shop card's «Добавить в корзину» was regular weight). */
.sda-tenant-light :is(#menuModalAddBtn, .digital-menu-detail-add, #menuView .menu-add, .popup-primary-btn, #notifModalActionBtn) { font-weight: 700; }

/* «Ещё»: the venue row is a list row like its neighbours, not a second page title. */
.sda-tenant-light #settingsView .settings-about-title { font-size: 17px !important; line-height: 22px !important; font-weight: 700 !important; letter-spacing: 0 !important; }

/* Dialog pass 2 (owner phone screenshots, 2026-12-01). */
/* Review «Как вам заказ?»: inline SVG stars, close in the corner, a calmer title. */
.sda-tenant-light .feedback-review-card { background: var(--f-surface) !important; background-image: none !important; }
.sda-tenant-light .feedback-review-close { position: absolute !important; top: 12px !important; right: 12px !important; left: auto !important; transform: none !important; width: 44px !important; height: 44px !important; box-shadow: none !important; }
.sda-tenant-light .feedback-review-title { font-size: 26px !important; line-height: 32px !important; font-weight: 700 !important; margin-top: 8px !important; }
.sda-tenant-light .feedback-star-btn { display: grid; place-items: center; min-width: 48px; min-height: 48px; }
.sda-tenant-light .feedback-star { width: 32px; height: 32px; fill: none; stroke: var(--f-text-3); stroke-width: 1.5; stroke-linejoin: round; transition: fill 0.15s var(--f-ease), stroke 0.15s var(--f-ease); }
.sda-tenant-light .feedback-star.is-filled { fill: var(--f-accent); stroke: var(--f-accent); }

/* Bonus visit: gifts without glow; the button reads like every primary action. */
.sda-tenant-light .bonus-detail-progress-dots span { box-shadow: none !important; }
.sda-tenant-light .bonus-detail-progress-dots span.done img { filter: brightness(0) saturate(100%) invert(68%) sepia(79%) saturate(1072%) hue-rotate(329deg) brightness(103%) contrast(101%) !important; }
.sda-tenant-light .bonus-detail-inline-ok { min-height: 48px; border: 0 !important; border-radius: var(--f-radius-control) !important; background: var(--f-accent) !important; background-image: none !important; box-shadow: none !important; color: #fff !important; -webkit-text-fill-color: #fff !important; font-weight: 700 !important; text-transform: none !important; }

/* Referral programme: the link status in the app font, level rows aligned with the card text. */
.sda-tenant-light #referralModalLink { font-family: inherit !important; font-size: 14px !important; letter-spacing: 0 !important; color: var(--f-text-3) !important; }
.sda-tenant-light #referralModal .referral-level-item { padding-left: 0 !important; padding-right: 0 !important; margin-left: 0 !important; margin-right: 0 !important; }

/* QR pass: plain white card (no orange wash in the corner). */
.sda-tenant-light #qrOverlay .qr-pass { background: var(--f-surface) !important; background-image: none !important; }

/* INDEX: the mono «Забронировать» is a solid primary like TONIGHT's; no empty strip above it; the sheet's
   «Добавить ещё» and price-scale labels in sentence case; the item's remove × is a 44px target. */
.sda-tenant-light .index-stock-take-btn { min-height: 48px; border: 0 !important; background: var(--f-accent) !important; background-image: none !important; box-shadow: none !important; color: #fff !important; -webkit-text-fill-color: #fff !important; font-weight: 700 !important; }
.sda-tenant-light .index-booking-strip:empty, .sda-tenant-light .index-booking-strip.hidden { display: none !important; }
.sda-tenant-light :is(#indexStockAddMore, .index-stock-scale-labels, .index-stock-scale-labels *) { text-transform: none !important; letter-spacing: 0 !important; }
.sda-tenant-light .index-stock-cart-remove { min-width: 44px !important; min-height: 44px !important; }

/* Menu header: the close button matches the back button (square, hairline, no shadow). */
.sda-tenant-light #fullMenuOverlay .full-menu-close-icon { border: 1px solid var(--f-line-strong) !important; border-radius: var(--f-radius-control) !important; background: var(--f-surface-2) !important; box-shadow: none !important; }
.sda-tenant-light .feedback-review-submit { min-height: 48px; border: 0 !important; border-radius: var(--f-radius-control) !important; background: var(--f-accent) !important; background-image: none !important; box-shadow: none !important; color: #fff !important; -webkit-text-fill-color: #fff !important; font-weight: 700 !important; }
.sda-tenant-light .feedback-review-later { min-height: 44px; }

/* Referral dialog on short phones: blocks keep their full height (grid rows used to squeeze the
   overflow-hidden text blocks and cut «Друзья приглашённых»), so the middle area scrolls instead. */
.sda-tenant-light #referralModal .referral-dialog-scroll { grid-auto-rows: max-content !important; overflow-y: auto !important; touch-action: pan-y; }
.sda-tenant-light #referralModal .referral-dialog-scroll > * { min-height: min-content !important; flex-shrink: 0; }
