/* PWA chrome — loaded on all platform pages; active only in standalone */

html.is-pwa-standalone .header__menu,
html.is-pwa-standalone .burger,
html.is-pwa-standalone .header__btn,
html.is-pwa-standalone .user_profile,
html.is-pwa-standalone .site-chat-widget__fab,
html.is-pwa-standalone .holding-compare-bar,
html.is-pwa-standalone .credit-compare-bar,
html.is-pwa-standalone .cross-link--crypto,
html.is-pwa-standalone .exchange-offices-mobile-search,
html.is-pwa-standalone .city-bar {
  display: none !important;
}

/* Browser: hide PWA-only office search (crypto block stays) */
.pwa-office-search {
  display: none;
  margin: 0 0 14px;
}

html.is-pwa-standalone .pwa-office-search {
  display: block;
}

html.is-pwa-standalone .pwa-office-search .rates-table__office-search {
  display: flex;
  width: 100%;
  max-width: none;
  min-height: 52px;
  padding: 6px 8px 6px 14px;
  border-radius: 14px;
  border: 1px solid var(--border, #e6e6e6);
  background: var(--surface, #fff);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
}

html.is-pwa-standalone .pwa-office-search .rates-table__office-search-input {
  flex: 1 1 auto;
  width: 100%;
  max-width: none;
  min-height: 40px;
  font-size: 1.05rem;
  border: 0;
  background: transparent;
}

html.is-pwa-standalone .pwa-office-search .rates-table__office-search-btn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
}

/* PWA city page: hide title/lead, keep green “updated” line */
html.is-pwa-standalone .page-hero--exchange-city h1,
html.is-pwa-standalone .page-hero--exchange-city .page-hero__lead {
  display: none !important;
}

/* Strip magazine card under «Обновлено» — only the green status line remains */
html.is-pwa-standalone .page-hero--exchange-city {
  margin: 0 0 10px !important;
  padding: 0 !important;
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

/* Desktop / browser: green status like home, larger (no diode, left-aligned) */
.page-hero__updated {
  margin: 10px 0 0;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.35;
  color: #16a34a;
}

.page-hero__updated-diode {
  display: none;
}

/* PWA standalone: diode + green status grouped on the right (not stuck to left edge) */
html.is-pwa-standalone .page-hero--exchange-city .page-hero__updated {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  width: 100%;
  margin: 0;
  padding: 0 2px 0 0;
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.3;
  color: #16a34a;
  text-align: right;
}

html.is-pwa-standalone .page-hero--exchange-city .page-hero__updated-diode {
  display: block;
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  margin: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #4ade80 0%, #16a34a 40%, #14532d 100%);
  box-shadow:
    0 0 0 0 rgba(22, 101, 52, 0.55),
    0 0 8px rgba(21, 128, 61, 0.75);
  animation: page-hero-diode-pulse 1.6s ease-out infinite;
}

html.is-pwa-standalone .page-hero--exchange-city .page-hero__updated-text {
  margin: 0;
  text-align: right;
}

@keyframes page-hero-diode-pulse {
  0% {
    box-shadow:
      0 0 0 0 rgba(22, 101, 52, 0.65),
      0 0 6px rgba(21, 128, 61, 0.8);
    transform: scale(1);
  }
  60% {
    box-shadow:
      0 0 0 10px rgba(22, 101, 52, 0),
      0 0 10px rgba(21, 128, 61, 0.35);
    transform: scale(1.05);
  }
  100% {
    box-shadow:
      0 0 0 0 rgba(22, 101, 52, 0),
      0 0 6px rgba(21, 128, 61, 0.8);
    transform: scale(1);
  }
}

/* Larger back control in PWA navigation */
html.is-pwa-standalone .entity-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  margin: 0 0 16px;
  padding: 10px 14px 10px 10px;
  border-radius: 14px;
  background: #fff7ed;
  border: 1px solid #fdba74;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.25;
  color: #9a3412;
  text-decoration: none;
}

html.is-pwa-standalone .entity-back:hover {
  background: #ffedd5;
  color: #7c2d12;
}

html.is-pwa-standalone .entity-back__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
}

html.is-pwa-standalone .entity-back__icon svg {
  width: 22px;
  height: 22px;
}

/* Pinned translucent header (50% opaque) — self-contained flex so SW/offline
   still keeps logo + city + actions in one row even without style.min.css */
html.is-pwa-standalone .header {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1100;
  background: rgba(255, 255, 255, 0.5) !important;
  backdrop-filter: saturate(1.15) blur(12px);
  -webkit-backdrop-filter: saturate(1.15) blur(12px);
  padding-top: calc(8px + env(safe-area-inset-top, 0px)) !important;
  padding-bottom: 8px !important;
  border-bottom: 1px solid rgba(241, 228, 214, 0.7) !important;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
}

html.is-pwa-standalone .header > .container {
  width: 100%;
  max-width: none;
  padding-left: 12px;
  padding-right: 12px;
  box-sizing: border-box;
}

html.is-pwa-standalone .header__inner {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 0.5rem;
  min-width: 0;
  width: 100%;
}

html.is-pwa-standalone .header__logo {
  display: flex !important;
  align-items: center;
  flex: 0 0 auto;
  width: auto !important;
  height: auto !important;
  max-width: min(118px, 30vw);
  margin-right: 0 !important;
  overflow: visible;
}

html.is-pwa-standalone .header__logo .header__img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 30px;
  object-fit: contain;
  object-position: left center;
}

html.is-pwa-standalone .header__actions {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 6px;
  flex: 0 1 auto;
  min-width: 0;
  margin-left: auto;
}

/* Menu is hidden in PWA — keep RU/KZ switcher in the actions row */
html.is-pwa-standalone .header__actions .language-switcher {
  display: block !important;
  margin-left: 0 !important;
  flex: 0 0 auto;
}

html.is-pwa-standalone .header__actions .city-switcher {
  flex: 0 1 auto;
  min-width: 0;
}

/* PWA action buttons — 80% opacity */
html.is-pwa-standalone .btn,
html.is-pwa-standalone .city-switcher__btn,
html.is-pwa-standalone .language-switcher__wrap,
html.is-pwa-standalone .header__push-bell,
html.is-pwa-standalone .pwa-tabbar__item,
html.is-pwa-standalone .pwa-near-me,
html.is-pwa-standalone .pwa-currency-filter__chip {
  opacity: 0.8;
}

html.is-pwa-standalone .btn:active,
html.is-pwa-standalone .city-switcher__btn:active,
html.is-pwa-standalone .header__push-bell:active,
html.is-pwa-standalone .pwa-tabbar__item:active,
html.is-pwa-standalone .pwa-near-me:active,
html.is-pwa-standalone .pwa-currency-filter__chip:active {
  opacity: 1;
}

/* Header push bell (standalone only) */
.header__push-bell {
  display: none;
  appearance: none;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #f1e4d6;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.8);
  color: #9a3412;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

html.is-pwa-standalone .header__push-bell {
  display: inline-flex;
}

.header__push-bell.is-active {
  background: #fff7ed;
  border-color: #fdba74;
  color: #ea580c;
}

.header__push-bell.is-active .header__push-bell-icon {
  filter: none;
}

.header__push-bell.is-busy {
  opacity: 0.5;
}

.header__push-bell-icon {
  display: block;
}

.pwa-push-toast {
  position: fixed;
  left: 12px;
  right: 12px;
  top: calc(64px + env(safe-area-inset-top, 0px));
  z-index: 1400;
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff7ed;
  border: 1px solid #fdba74;
  box-shadow: 0 10px 28px rgba(154, 52, 18, 0.16);
  font-size: 1rem;
  font-weight: 700;
  color: #9a3412;
  text-align: center;
}

.pwa-alerts__push-hint-static {
  margin: 0 0 16px;
  font-size: 0.95rem;
  color: #6b7280;
}

/* style.min sets .wrapper { overflow: hidden } — locks scroll in iOS PWA */
html.is-pwa-standalone,
html.is-pwa-standalone body {
  height: auto !important;
  min-height: 100% !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
}

html.is-pwa-standalone .wrapper {
  /* Header ≈ 8+44+8 + safe-area; keep content clear of fixed chrome */
  padding-top: calc(72px + env(safe-area-inset-top, 0px));
  overflow: visible !important;
  min-height: 0 !important;
  height: auto !important;
}

/* Extra spacer so last CTAs clear the tabbar (footer is often hidden in PWA) */
html.is-pwa-standalone .main::after {
  content: '';
  display: block;
  height: var(--pwa-tabbar-clear, calc(140px + env(safe-area-inset-bottom, 0px)));
  pointer-events: none;
}

/* City switcher — large & readable in PWA */
html.is-pwa-standalone .city-switcher__btn {
  height: 44px;
  padding: 0 14px;
  gap: 8px;
  border-radius: 22px;
  font-size: 1.1rem !important;
  font-weight: 800 !important;
  line-height: 1.1 !important;
}

html.is-pwa-standalone .city-switcher__icon {
  width: 20px;
  height: 20px;
}

html.is-pwa-standalone .city-switcher__name {
  max-width: min(120px, 28vw) !important;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 1.05rem !important;
  font-weight: 800 !important;
}

html.is-pwa-standalone .city-switcher__chevron {
  width: 12px;
  height: 8px;
}

html.is-pwa-standalone .city-switcher__list {
  min-width: 220px;
  max-height: 360px;
  border-radius: 14px;
  padding: 8px;
}

html.is-pwa-standalone .city-switcher__option {
  padding: 12px 14px;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  border-radius: 10px;
}

@media (display-mode: standalone) {
  .city-switcher__btn {
    height: 44px;
    font-size: 1.1rem !important;
    font-weight: 800 !important;
  }

  .city-switcher__name {
    max-width: 160px !important;
    font-size: 1.1rem !important;
  }

  .city-switcher__option {
    padding: 12px 14px;
    font-size: 1.05rem !important;
  }
}

html.is-pwa-standalone .site-footer__grid > .site-footer__col:not(.site-footer__col--cities) {
  display: none;
}

html.is-pwa-standalone .site-footer__full-site {
  display: flex;
}

.site-footer__full-site {
  display: none;
  margin-top: 1rem;
}

.site-footer__full-site-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 22rem;
  padding: 0.7rem 1rem;
  border-radius: 10px;
  background: #ea580c;
  color: #fff !important;
  font-weight: 600;
  text-decoration: none;
}

.site-footer__full-site-link:hover {
  background: #c2410c;
  color: #fff !important;
}

.pwa-offline-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin: 0 0 1rem;
  padding: 0.65rem 0.9rem;
  border-radius: 10px;
  background: #fff7ed;
  border: 1px solid #fdba74;
  color: #9a3412;
  font-size: 0.92rem;
}

.pwa-offline-banner[hidden] {
  display: none !important;
}

.pwa-stale-hint {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin: 0 0 1rem;
  padding: 0.55rem 0.85rem;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #334155;
  font-size: 0.9rem;
}

.pwa-stale-hint[hidden] {
  display: none !important;
}

.pwa-stale-hint__btn {
  appearance: none;
  border: 0;
  border-radius: 8px;
  padding: 0.35rem 0.7rem;
  background: #ea580c;
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.pwa-stale-hint__btn:hover {
  background: #c2410c;
}

@media (display-mode: standalone) {
  .header__menu,
  .burger,
  .header__btn,
  .user_profile,
  .site-chat-widget__fab,
  .cross-link--crypto,
  .exchange-offices-mobile-search,
  .city-bar {
    display: none !important;
  }

  .site-footer__full-site {
    display: flex;
  }

  .pwa-office-search {
    display: block;
  }

  .page-hero--exchange-city h1,
  .page-hero--exchange-city .page-hero__lead {
    display: none !important;
  }

  .page-hero--exchange-city .page-hero__updated {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    width: 100%;
    margin: 0;
    padding: 0 2px 0 0;
    font-size: 1.2rem;
    font-weight: 800;
    color: #16a34a;
    text-align: right;
  }

  .page-hero--exchange-city .page-hero__updated-diode {
    display: block;
    flex: 0 0 auto;
    width: 10px;
    height: 10px;
    margin: 0;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #4ade80 0%, #16a34a 40%, #14532d 100%);
    box-shadow:
      0 0 0 0 rgba(22, 101, 52, 0.55),
      0 0 8px rgba(21, 128, 61, 0.75);
    animation: page-hero-diode-pulse 1.6s ease-out infinite;
  }

  .page-hero--exchange-city .page-hero__updated-text {
    margin: 0;
    text-align: right;
  }

  .entity-back {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 10px 14px 10px 10px;
    border-radius: 14px;
    background: #fff7ed;
    border: 1px solid #fdba74;
    font-size: 1.1rem;
    font-weight: 700;
    color: #9a3412;
  }

  .entity-back__icon svg {
    width: 22px;
    height: 22px;
  }
}

/* Larger single-row cards: [flag | code | Δ dir rate] — no wrap */
@media (max-width: 640px) {
  .home-ticker,
  .city-highlights .home-ticker {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    gap: 12px;
  }

  .home-ticker-card,
  .city-highlights .home-ticker-card {
    display: flex !important;
    flex: 1 1 auto !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 18px 16px !important;
    gap: 10px !important;
    border-radius: 18px !important;
    box-sizing: border-box;
    overflow: hidden;
  }

  .home-ticker-card__flag,
  .city-highlights .home-ticker-card__flag {
    width: 56px !important;
    height: 56px !important;
    flex: 0 0 56px !important;
  }

  .home-ticker-card__pair,
  .city-highlights .home-ticker-card__pair {
    font-size: 1rem !important;
    font-weight: 700 !important;
    flex: 0 0 auto !important;
    min-width: 0;
    margin-right: 4px !important;
    white-space: nowrap;
  }

  .home-ticker-card__pair-vs,
  .city-highlights .home-ticker-card__pair-vs {
    display: none !important;
  }

  .home-ticker-card__rates,
  .city-highlights .home-ticker-card__rates {
    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    align-items: flex-end !important;
    gap: 5px !important;
    margin-left: auto !important;
  }

  .home-ticker-card__row,
  .city-highlights .home-ticker-card__row {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-end !important;
    width: auto !important;
    max-width: 100% !important;
    gap: 6px !important;
  }

  .home-ticker-card__delta-slot,
  .city-highlights .home-ticker-card__delta-slot {
    display: inline-flex !important;
    align-items: center;
    justify-content: flex-end;
    min-width: 3.2em !important;
    max-width: none !important;
    overflow: visible !important;
    text-align: right;
    flex: 0 0 auto !important;
  }

  .home-ticker-card__delta,
  .city-highlights .home-ticker-card__delta {
    font-size: 0.875rem !important;
    font-weight: 700 !important;
    white-space: nowrap;
    letter-spacing: -0.02em;
    color: inherit;
  }

  .home-ticker-card__delta:not([hidden]),
  .city-highlights .home-ticker-card__delta:not([hidden]) {
    display: inline-block !important;
  }

  .home-ticker-card__delta[hidden],
  .city-highlights .home-ticker-card__delta[hidden] {
    display: none !important;
  }

  .home-ticker-card__delta.is-up,
  .city-highlights .home-ticker-card__delta.is-up {
    color: var(--accent, #60b258) !important;
  }

  .home-ticker-card__delta.is-down,
  .city-highlights .home-ticker-card__delta.is-down {
    color: #ef4444 !important;
  }

  .home-ticker-card__row strong,
  .city-highlights .home-ticker-card__row strong {
    font-size: 1.65rem !important;
    letter-spacing: -0.02em;
    flex: 0 0 auto !important;
  }

  .home-ticker-card__dir,
  .city-highlights .home-ticker-card__dir,
  .home-ticker-card .rate-flow,
  .city-highlights .home-ticker-card .rate-flow {
    font-size: 1rem !important;
    font-weight: 700 !important;
    flex: 0 0 auto !important;
  }
}

html.is-pwa-standalone .home-ticker,
html.is-pwa-standalone .city-highlights .home-ticker {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px;
}

html.is-pwa-standalone .home-ticker-card,
html.is-pwa-standalone .city-highlights .home-ticker-card {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  min-width: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  padding: 18px 16px !important;
  gap: 10px !important;
  border-radius: 18px !important;
  overflow: hidden;
  box-sizing: border-box;
  opacity: 0.8;
}

.city-highlights .home-ticker-card {
  opacity: 0.8;
}

html.is-pwa-standalone .home-ticker-card__flag,
html.is-pwa-standalone .city-highlights .home-ticker-card__flag {
  width: 56px !important;
  height: 56px !important;
  flex: 0 0 56px !important;
}

html.is-pwa-standalone .home-ticker-card__pair,
html.is-pwa-standalone .city-highlights .home-ticker-card__pair {
  font-size: 1rem !important;
  font-weight: 700 !important;
  flex: 0 0 auto !important;
  margin-right: 4px !important;
  white-space: nowrap;
}

html.is-pwa-standalone .home-ticker-card__pair-vs,
html.is-pwa-standalone .city-highlights .home-ticker-card__pair-vs {
  display: none !important;
}

html.is-pwa-standalone .home-ticker-card__rates,
html.is-pwa-standalone .city-highlights .home-ticker-card__rates {
  flex: 1 1 auto !important;
  width: auto !important;
  max-width: none !important;
  align-items: flex-end !important;
  gap: 5px !important;
  margin-left: auto !important;
}

html.is-pwa-standalone .home-ticker-card__row,
html.is-pwa-standalone .city-highlights .home-ticker-card__row {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  justify-content: flex-end !important;
  width: auto !important;
  max-width: 100% !important;
  gap: 6px !important;
}

html.is-pwa-standalone .home-ticker-card__delta-slot,
html.is-pwa-standalone .city-highlights .home-ticker-card__delta-slot {
  display: inline-flex !important;
  align-items: center;
  justify-content: flex-end;
  min-width: 3.2em !important;
  max-width: none !important;
  overflow: visible !important;
  text-align: right;
  flex: 0 0 auto !important;
}

html.is-pwa-standalone .home-ticker-card__delta,
html.is-pwa-standalone .city-highlights .home-ticker-card__delta {
  font-size: 0.875rem !important;
  font-weight: 700 !important;
  white-space: nowrap;
}

html.is-pwa-standalone .home-ticker-card__delta:not([hidden]),
html.is-pwa-standalone .city-highlights .home-ticker-card__delta:not([hidden]) {
  display: inline-block !important;
}

html.is-pwa-standalone .home-ticker-card__delta[hidden],
html.is-pwa-standalone .city-highlights .home-ticker-card__delta[hidden] {
  display: none !important;
}

html.is-pwa-standalone .home-ticker-card__delta.is-up,
html.is-pwa-standalone .city-highlights .home-ticker-card__delta.is-up {
  color: var(--accent, #60b258) !important;
}

html.is-pwa-standalone .home-ticker-card__delta.is-down,
html.is-pwa-standalone .city-highlights .home-ticker-card__delta.is-down {
  color: #ef4444 !important;
}

html.is-pwa-standalone .home-ticker-card__row strong,
html.is-pwa-standalone .city-highlights .home-ticker-card__row strong {
  font-size: 1.65rem !important;
}

html.is-pwa-standalone .home-ticker-card__dir,
html.is-pwa-standalone .city-highlights .home-ticker-card__dir,
html.is-pwa-standalone .home-ticker-card .rate-flow {
  font-size: 1rem !important;
  font-weight: 700 !important;
}

html.is-pwa-standalone .exchange-rate-tiles__value small.rate-flow {
  font-size: 0.9375rem !important;
  font-weight: 700 !important;
}

/* Install-to-home prompt — browser: low over content; standalone: above tabbar */
.pwa-install-banner {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 1210;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #fdba74;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.16);
  color: #1a1a1a;
}

html.is-pwa-standalone .pwa-install-banner {
  bottom: var(--pwa-tabbar-clear, calc(140px + env(safe-area-inset-bottom, 0px)));
}

.pwa-install-banner[hidden] {
  display: none !important;
}

.pwa-install-banner__icon {
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  object-fit: cover;
  background: #fff7ed;
}

.pwa-install-banner__body {
  flex: 1 1 auto;
  min-width: 0;
}

.pwa-install-banner__title {
  margin: 0 0 6px;
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.25;
}

.pwa-install-banner__text {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.4;
  color: #44403c;
}

.pwa-install-banner__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 0 0 auto;
  align-items: stretch;
}

.pwa-install-banner__cta {
  appearance: none;
  border: 0;
  border-radius: 12px;
  padding: 0.7rem 1rem;
  background: #ea580c;
  color: #fff;
  font: inherit;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.pwa-install-banner__cta:hover {
  background: #c2410c;
}

.pwa-install-banner__dismiss {
  appearance: none;
  border: 0;
  background: transparent;
  color: #78716c;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.3rem;
}

.pwa-install-banner__dismiss:hover {
  color: #1c1917;
}

@media (min-width: 769px) {
  .pwa-install-banner {
    display: none !important;
  }
}

html.is-pwa-standalone .pwa-install-banner {
  display: none !important;
}

/* Favorites (PWA) + search hit scroll */
.office-fav-btn {
  display: none;
  appearance: none;
  border: 0;
  outline: none;
  background: transparent;
  box-shadow: none;
  color: #a8a29e;
  width: 44px;
  height: 44px;
  border-radius: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  padding: 0;
  z-index: 2;
}

.office-fav-btn:focus,
.office-fav-btn:focus-visible {
  outline: none;
  box-shadow: none;
}

.office-fav-btn__icon {
  font-size: 1.45rem;
  line-height: 1;
}

.office-fav-btn.is-active {
  color: #ea580c;
  background: transparent;
}

.office-fav-btn--inline {
  width: 36px;
  height: 36px;
  box-shadow: none;
  background: transparent;
}

.product-list-card--exchange {
  position: relative;
}

.product-list-card--exchange .office-fav-btn {
  position: absolute;
  top: 10px;
  right: 10px;
}

.office-name__top {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.office-name__top > a {
  flex: 1 1 auto;
}

[data-office-id] {
  scroll-margin-top: 88px;
}

[data-office-id].is-search-hit {
  outline: 2px solid #ea580c;
  outline-offset: 3px;
  box-shadow: 0 0 0 6px rgba(234, 88, 12, 0.15);
  border-radius: 16px;
}

.pwa-favorites {
  display: none;
  margin: 0 0 16px;
  padding: 14px 14px 10px;
  border-radius: 16px;
  background: #fff7ed;
  border: 1px solid #fdba74;
}

.pwa-favorites[hidden] {
  display: none !important;
}

.pwa-favorites__title {
  margin: 0 0 10px;
  font-size: 1.05rem;
  font-weight: 800;
  color: #9a3412;
}

.pwa-favorites__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pwa-favorites__item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #fed7aa;
}

.pwa-favorites__link {
  flex: 1 1 auto;
  min-width: 0;
  font-weight: 700;
  font-size: 1rem;
  color: #1a1a1a;
  text-decoration: none;
}

.pwa-favorites__link:hover {
  color: #ea580c;
}

.pwa-favorites__remove {
  appearance: none;
  border: 0;
  background: transparent;
  color: #a8a29e;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
}

html.is-pwa-standalone .office-fav-btn,
html.is-pwa-favorites .office-fav-btn {
  display: inline-flex;
}

html.is-pwa-standalone .pwa-favorites:not([hidden]) {
  display: block;
}

@media (display-mode: standalone) {
  .office-fav-btn {
    display: inline-flex;
  }

  .pwa-favorites:not([hidden]) {
    display: block;
  }
}

/* PWA listing cards — moderate size (layout-safe) */
html.is-pwa-standalone .exchange-offices-mobile .product-list-card--exchange {
  padding: 20px 18px;
}

html.is-pwa-standalone .exchange-offices-mobile .product-list-card__org-title {
  font-size: 1.2rem !important;
  line-height: 1.35 !important;
  font-weight: 800;
}

html.is-pwa-standalone .exchange-offices-mobile .product-list-card__address {
  font-size: 0.95rem !important;
  line-height: 1.45 !important;
}

html.is-pwa-standalone .exchange-offices-mobile .exchange-rate-tiles__currency {
  grid-template-columns: 64px minmax(0, 1fr) !important;
  padding: 12px !important;
  min-width: 0;
  overflow: hidden;
}

html.is-pwa-standalone .exchange-offices-mobile .exchange-rate-tiles__code {
  font-size: 0.875rem !important;
}

html.is-pwa-standalone .exchange-offices-mobile .exchange-rate-tiles__value {
  min-width: 0;
  overflow: hidden;
}

html.is-pwa-standalone .exchange-offices-mobile .exchange-rate-tiles__value small,
html.is-pwa-standalone .exchange-offices-mobile .exchange-rate-tiles__value small.rate-flow {
  font-size: 0.875rem !important;
  font-weight: 700 !important;
}

html.is-pwa-standalone .exchange-offices-mobile .exchange-rate-tiles__value strong {
  font-size: 1.25rem !important;
  line-height: 1.1 !important;
  font-weight: 800;
}

/* PWA office detail page — larger content */
html.is-pwa-standalone .entity-profile--exchange .exchange-hero__title h1 {
  font-size: 1.75rem !important;
  line-height: 1.2 !important;
  font-weight: 800;
}

html.is-pwa-standalone .entity-profile--exchange .entity-hero__eyebrow {
  font-size: 0.95rem !important;
}

html.is-pwa-standalone .entity-profile--exchange .exchange-hero__badge {
  font-size: 0.85rem !important;
  padding: 6px 12px;
}

html.is-pwa-standalone .entity-profile--exchange .exchange-hero__spotlight {
  min-width: 0;
  width: 100%;
  padding: 16px 18px;
  gap: 12px;
}

html.is-pwa-standalone .entity-profile--exchange .exchange-hero__spotlight-code {
  font-size: 1rem !important;
}

html.is-pwa-standalone .entity-profile--exchange .exchange-hero__spotlight-label {
  font-size: 0.9rem !important;
}

html.is-pwa-standalone .entity-profile--exchange .exchange-hero__spotlight-rate {
  padding: 12px 14px;
  gap: 4px;
}

html.is-pwa-standalone .entity-profile--exchange .exchange-hero__spotlight-rate strong {
  font-size: 1.7rem !important;
  line-height: 1.1 !important;
}

html.is-pwa-standalone .entity-profile--exchange .exchange-spotlights {
  grid-template-columns: 1fr !important;
  gap: 14px;
}

html.is-pwa-standalone .entity-profile--exchange .exchange-spotlights--panel .exchange-hero__spotlight {
  padding: 18px 18px;
}

html.is-pwa-standalone .entity-profile--exchange .exchange-hero__chip {
  font-size: 1.1rem !important;
  line-height: 1.4;
  padding: 14px 16px;
  min-height: 52px;
}

html.is-pwa-standalone .entity-profile--exchange .exchange-hero__chip-route {
  font-size: 1rem !important;
}

html.is-pwa-standalone .entity-profile--exchange .exchange-hero__chip-icon svg {
  width: 20px;
  height: 20px;
}

html.is-pwa-standalone .entity-profile--exchange .entity-panel__title,
html.is-pwa-standalone .entity-profile--exchange .entity-panel-head__title {
  font-size: 1.35rem !important;
}

html.is-pwa-standalone .entity-profile--exchange .entity-facts dt {
  font-size: 1rem !important;
}

html.is-pwa-standalone .entity-profile--exchange .entity-facts dd {
  font-size: 1.15rem !important;
}

@media (display-mode: standalone) {
  .exchange-offices-mobile .product-list-card__org-title {
    font-size: 1.2rem !important;
  }

  .exchange-offices-mobile .exchange-rate-tiles__value small,
  .exchange-offices-mobile .exchange-rate-tiles__value small.rate-flow {
    font-size: 0.875rem !important;
    font-weight: 700 !important;
  }

  .exchange-offices-mobile .exchange-rate-tiles__value strong {
    font-size: 1.25rem !important;
  }

  .home-ticker-card__dir,
  .city-highlights .home-ticker-card__dir {
    font-size: 0.9375rem !important;
    font-weight: 700 !important;
  }

  .home-ticker-card__row strong,
  .city-highlights .home-ticker-card__row strong {
    font-size: 1.45rem !important;
  }

  .home-ticker-card__delta {
    font-size: 0.8125rem !important;
  }

  .home-ticker-card__delta-slot {
    display: inline-block !important;
    min-width: 2.8em !important;
  }

  .home-ticker-card__pair-vs {
    display: none !important;
  }

  .entity-profile--exchange .exchange-hero__title h1 {
    font-size: 1.75rem !important;
  }

  .entity-profile--exchange .exchange-hero__spotlight-rate strong {
    font-size: 1.7rem !important;
  }

  .entity-profile--exchange .exchange-hero__chip {
    font-size: 1.1rem !important;
  }

  .entity-profile--exchange .exchange-spotlights {
    grid-template-columns: 1fr !important;
  }
}

/* PWA: larger modal text (best offices + rates) */
html.is-pwa-standalone .best-offices-modal__dialog {
  max-width: 100%;
  max-height: 88vh;
  border-radius: 18px;
}

html.is-pwa-standalone .best-offices-modal__header {
  padding: 18px 20px;
}

html.is-pwa-standalone .best-offices-modal__title {
  font-size: 1.35rem !important;
  line-height: 1.25;
}

html.is-pwa-standalone .best-offices-modal__close {
  font-size: 2rem !important;
  padding: 6px 10px;
}

html.is-pwa-standalone .best-offices-modal__body {
  padding: 16px 18px 22px;
}

html.is-pwa-standalone .best-offices-modal__subtitle {
  font-size: 1.1rem !important;
  padding: 12px 14px;
  line-height: 1.4;
}

html.is-pwa-standalone .best-offices-modal__item {
  padding: 16px 18px;
  border-radius: 14px;
}

html.is-pwa-standalone .best-offices-modal__name {
  font-size: 1.2rem !important;
  font-weight: 800;
  line-height: 1.3;
}

html.is-pwa-standalone .best-offices-modal__best {
  font-size: 0.85rem !important;
  padding: 4px 10px;
}

html.is-pwa-standalone .best-offices-modal__rate {
  font-size: 1.2rem !important;
}

html.is-pwa-standalone .best-offices-modal__rate strong {
  font-size: 1.55rem !important;
}

html.is-pwa-standalone .best-offices-modal__calc {
  font-size: 1.1rem !important;
}

html.is-pwa-standalone .best-offices-modal__calc strong {
  font-size: 1.25rem !important;
}

html.is-pwa-standalone .best-offices-modal__addr {
  font-size: 1.05rem !important;
  line-height: 1.4;
  margin-top: 6px;
}

html.is-pwa-standalone .best-offices-modal__empty,
html.is-pwa-standalone .best-offices-modal__loading {
  font-size: 1.15rem !important;
}

/* Bottom tabbar — standalone only.
   Tabbar shell = 88px + safe-area; AI FAB overhangs ~30px above the bar.
   Content clear must leave room so bottom CTAs aren't covered. */
html.is-pwa-standalone {
  --pwa-tabbar-height: calc(88px + env(safe-area-inset-bottom, 0px));
  /* Tabbar 88 + AI overhang ~30 + breathing room (Rates is slimmer now) */
  --pwa-tabbar-clear: calc(140px + env(safe-area-inset-bottom, 0px));
}

.pwa-tabbar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1200;
  height: var(--pwa-tabbar-height, calc(88px + env(safe-area-inset-bottom, 0px)));
  padding: 10px 4px calc(10px + env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
  align-items: stretch;
  justify-content: space-around;
  gap: 2px;
  overflow: visible;
  background: rgba(255, 255, 255, 0.5);
  border-top: 1px solid rgba(241, 228, 214, 0.7);
  box-shadow: 0 -8px 28px rgba(15, 23, 42, 0.1);
  backdrop-filter: saturate(1.15) blur(12px);
  -webkit-backdrop-filter: saturate(1.15) blur(12px);
}

html.is-pwa-standalone .pwa-tabbar {
  display: flex;
}

html.is-pwa-standalone body.site-chat-open .pwa-tabbar {
  visibility: hidden;
  pointer-events: none;
}

.pwa-tabbar__item {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  min-height: 68px;
  padding: 8px 2px;
  border-radius: 16px;
  color: #6b7280;
  text-decoration: none;
  font-weight: 700;
  -webkit-tap-highlight-color: transparent;
}

.pwa-tabbar__item:hover,
.pwa-tabbar__item:focus-visible {
  color: #9a3412;
  background: #fff7ed;
  outline: none;
}

.pwa-tabbar__item.is-active {
  color: #ea580c;
}

.pwa-tabbar__ai {
  flex: 0 0 76px;
  width: 76px;
  height: 76px;
  margin: -30px 2px 0;
  padding: 0;
  border: 3px solid rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 237, 213, 0.55) 0%, rgba(255, 237, 213, 0) 42%),
    linear-gradient(155deg, #fdba74 0%, #f97316 42%, #ea580c 72%, #c2410c 100%);
  color: #fff;
  box-shadow:
    0 14px 28px rgba(194, 65, 12, 0.42),
    0 6px 12px rgba(234, 88, 12, 0.28),
    0 2px 0 rgba(255, 255, 255, 0.35) inset,
    0 -4px 10px rgba(124, 45, 18, 0.35) inset,
    0 0 0 1px rgba(154, 52, 18, 0.25);
  backdrop-filter: saturate(1.1) blur(8px);
  -webkit-backdrop-filter: saturate(1.1) blur(8px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  font: inherit;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  z-index: 1201;
  opacity: 0.9;
  text-shadow: 0 1px 2px rgba(124, 45, 18, 0.45);
}

html.is-pwa-standalone .pwa-tabbar__ai:active {
  opacity: 1;
}

.pwa-tabbar__ai:hover,
.pwa-tabbar__ai:focus-visible {
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 247, 237, 0.65) 0%, rgba(255, 237, 213, 0) 44%),
    linear-gradient(155deg, #fed7aa 0%, #fb923c 40%, #f97316 70%, #ea580c 100%);
  color: #fff;
  outline: none;
  transform: translateY(-2px);
  box-shadow:
    0 18px 32px rgba(194, 65, 12, 0.48),
    0 8px 14px rgba(234, 88, 12, 0.32),
    0 2px 0 rgba(255, 255, 255, 0.4) inset,
    0 -4px 10px rgba(124, 45, 18, 0.3) inset,
    0 0 0 1px rgba(154, 52, 18, 0.22);
}

.pwa-tabbar__ai:active {
  transform: translateY(2px) scale(0.97);
  box-shadow:
    0 6px 14px rgba(194, 65, 12, 0.35),
    0 2px 6px rgba(234, 88, 12, 0.25),
    0 1px 0 rgba(255, 255, 255, 0.2) inset,
    0 -2px 8px rgba(124, 45, 18, 0.4) inset;
}

.pwa-tabbar__ai-icon {
  display: block;
  font-size: 1.55rem;
  line-height: 1;
}

.pwa-tabbar__ai-label {
  margin-top: 3px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.pwa-tabbar__icon {
  display: block;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
}

.pwa-tabbar__label {
  font-size: 0.875rem;
  line-height: 1.1;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* Chat panel in PWA — panel ABOVE backdrop (was broken: backdrop 1240 > panel 1201) */
html.is-pwa-standalone .site-chat-widget {
  position: fixed;
  inset: 0;
  z-index: 1300;
  right: auto;
  bottom: auto;
  pointer-events: none;
}

html.is-pwa-standalone .site-chat-widget.is-open {
  pointer-events: auto;
}

html.is-pwa-standalone .site-chat-widget__backdrop {
  z-index: 1301;
}

html.is-pwa-standalone .site-chat-widget__panel {
  left: 0 !important;
  right: 0 !important;
  top: env(safe-area-inset-top, 0px) !important;
  bottom: 0 !important;
  width: 100% !important;
  height: calc(100dvh - env(safe-area-inset-top, 0px)) !important;
  max-height: none !important;
  border-radius: 0 !important;
  z-index: 1302 !important;
  pointer-events: auto;
  background: #fff !important;
}

html.is-pwa-standalone .site-chat-widget__header {
  padding: 18px 18px 16px;
  flex: 0 0 auto;
}

html.is-pwa-standalone .site-chat-widget__title {
  font-size: 1.65rem !important;
  font-weight: 800;
  line-height: 1.2;
}

html.is-pwa-standalone .site-chat-widget__close {
  width: 52px;
  height: 52px;
  font-size: 1.9rem;
}

html.is-pwa-standalone .site-chat-widget__body {
  flex: 1 1 auto;
  min-height: 0;
  padding: 14px 16px calc(16px + env(safe-area-inset-bottom, 0px));
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

html.is-pwa-standalone .home-chat--widget {
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  gap: 14px;
}

html.is-pwa-standalone .home-chat--widget .home-chat__city,
html.is-pwa-standalone .home-chat--widget .home-hero__city-select {
  min-height: 56px;
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  padding: 12px 16px;
  border-radius: 14px;
}

html.is-pwa-standalone .home-chat--widget .home-chat__messages {
  flex: 1 1 auto;
  min-height: 220px;
  max-height: none !important;
  gap: 14px;
  padding: 6px 2px;
}

html.is-pwa-standalone .home-chat--widget .home-chat__message {
  max-width: 96%;
  padding: 16px 18px;
  border-radius: 18px;
  font-size: 1.3rem !important;
  line-height: 1.5 !important;
}

html.is-pwa-standalone .home-chat--widget .home-chat__message p {
  font-size: inherit;
  line-height: inherit;
}

html.is-pwa-standalone .home-chat--widget .home-chat__prompts {
  gap: 10px;
}

html.is-pwa-standalone .home-chat--widget .home-chat__prompt {
  min-height: 48px;
  padding: 12px 16px;
  font-size: 1.125rem !important;
  font-weight: 700 !important;
  border-radius: 14px;
}

html.is-pwa-standalone .home-chat--widget .home-chat__form {
  gap: 10px;
  align-items: stretch;
}

html.is-pwa-standalone .home-chat--widget .home-chat__input {
  min-height: 60px;
  max-height: 180px;
  padding: 16px 18px;
  font-size: 1.25rem !important;
  line-height: 1.4;
  border-radius: 16px;
}

html.is-pwa-standalone .home-chat--widget .home-chat__send {
  min-height: 60px;
  min-width: 104px;
  padding: 0 20px;
  font-size: 1.2rem !important;
  font-weight: 800 !important;
  border-radius: 16px;
}

html.is-pwa-standalone .home-chat--widget .home-chat__disclaimer {
  font-size: 1rem !important;
  line-height: 1.4;
}

html.is-pwa-standalone body {
  /* clearance comes from .main::after — avoid double padding */
  padding-bottom: 0;
}

html.is-pwa-standalone .site-footer {
  padding-bottom: 8px;
}

@media (display-mode: standalone) {
  .header {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1100;
    background: rgba(255, 255, 255, 0.5) !important;
    backdrop-filter: saturate(1.15) blur(12px);
    -webkit-backdrop-filter: saturate(1.15) blur(12px);
    padding-top: calc(8px + env(safe-area-inset-top, 0px)) !important;
    padding-bottom: 8px !important;
    border-bottom: 1px solid rgba(241, 228, 214, 0.7) !important;
  }

  .header > .container {
    width: 100%;
    max-width: none;
    padding-left: 12px;
    padding-right: 12px;
    box-sizing: border-box;
  }

  .header__inner {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 0.5rem;
    min-width: 0;
    width: 100%;
  }

  .header__logo {
    display: flex !important;
    flex: 0 0 auto;
    width: auto !important;
    height: auto !important;
    max-width: min(118px, 30vw);
    margin-right: 0 !important;
  }

  .header__logo .header__img {
    display: block;
    max-width: 100%;
    max-height: 30px;
    object-fit: contain;
  }

  .header__actions {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 6px;
    margin-left: auto;
    min-width: 0;
  }

  .header__actions .language-switcher {
    display: block !important;
    margin-left: 0 !important;
  }

  .wrapper {
    padding-top: calc(72px + env(safe-area-inset-top, 0px));
    overflow: visible !important;
    min-height: 0 !important;
    height: auto !important;
  }

  html,
  body {
    height: auto !important;
    min-height: 100% !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  .page-hero--exchange-city {
    margin: 0 0 10px !important;
    padding: 0 !important;
    background: none !important;
    border: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
  }

  .pwa-tabbar {
    display: flex;
    background: rgba(255, 255, 255, 0.5);
  }

  body {
    padding-bottom: 0;
  }

  .main::after {
    content: '';
    display: block;
    height: var(--pwa-tabbar-clear, calc(140px + env(safe-area-inset-bottom, 0px)));
    pointer-events: none;
  }
}

/* PWA office accordion — hidden in browser, used on Map tab */
.pwa-office-list {
  display: none;
}

html.is-pwa-standalone .pwa-office-list {
  display: block;
  margin: 0;
  padding-bottom: 8px;
}

html.is-pwa-standalone .pwa-office-list__title {
  margin: 0 0 12px;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

html.is-pwa-standalone .pwa-office-list__items {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

html.is-pwa-standalone .pwa-office-list__item {
  border: 1px solid #f1e4d6;
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
}

html.is-pwa-standalone .pwa-office-list__item.is-best {
  border-color: #86efac;
  background: #f0fdf4;
}

html.is-pwa-standalone .pwa-office-list__summary {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 14px 16px;
  list-style: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

html.is-pwa-standalone .pwa-office-list__summary::-webkit-details-marker {
  display: none;
}

html.is-pwa-standalone .pwa-office-list__name {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 1.125rem;
  font-weight: 800;
  line-height: 1.25;
  color: #1a1a1a;
}

html.is-pwa-standalone .pwa-office-list__chevron {
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  border-right: 2.5px solid #9a3412;
  border-bottom: 2.5px solid #9a3412;
  transform: rotate(45deg);
  transition: transform 0.15s ease;
  margin-top: -4px;
}

html.is-pwa-standalone .pwa-office-list__item[open] .pwa-office-list__chevron {
  transform: rotate(225deg);
  margin-top: 4px;
}

html.is-pwa-standalone .pwa-office-list__body {
  padding: 0 16px 16px;
  border-top: 1px solid #f3e8db;
}

html.is-pwa-standalone .pwa-office-list__rates {
  width: 100%;
  margin: 12px 0 0;
  border-collapse: collapse;
  font-size: 1rem;
}

html.is-pwa-standalone .pwa-office-list__rates th,
html.is-pwa-standalone .pwa-office-list__rates td {
  padding: 6px 4px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

html.is-pwa-standalone .pwa-office-list__rates th:first-child,
html.is-pwa-standalone .pwa-office-list__rates td:first-child {
  text-align: left;
  font-weight: 800;
}

html.is-pwa-standalone .pwa-office-list__rates th {
  font-size: 0.75rem;
  font-weight: 700;
  color: #6b7280;
  text-transform: none;
}

html.is-pwa-standalone .pwa-office-list__addr,
html.is-pwa-standalone .pwa-office-list__phone {
  margin: 10px 0 0;
  font-size: 1.05rem;
  line-height: 1.4;
  color: #374151;
}

html.is-pwa-standalone .pwa-office-list__phone {
  font-weight: 700;
}

html.is-pwa-standalone .pwa-office-list__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

html.is-pwa-standalone .pwa-office-list__btn {
  min-height: 44px;
  padding-inline: 14px;
  font-size: 0.95rem;
}

/* Currency filter / map toolbar — PWA map tab only */
.pwa-currency-filter,
.pwa-map-toolbar {
  display: none;
}

html.is-pwa-standalone.is-pwa-map-tab .pwa-map-toolbar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 0 12px;
}

html.is-pwa-standalone.is-pwa-map-tab .pwa-currency-filter--map {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pwa-currency-filter__chip {
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid #f1e4d6;
  background: #fff;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  color: #4b5563;
  cursor: pointer;
}

.pwa-currency-filter__chip.is-active {
  background: #fff7ed;
  border-color: #fdba74;
  color: #c2410c;
}

.pwa-near-me {
  width: 100%;
  min-height: 48px;
  font-weight: 700 !important;
}

.pwa-near-me.is-active {
  border-color: #86efac;
  color: #166534;
  background: #f0fdf4;
}

html.is-pwa-standalone .pwa-office-list__distance {
  flex: 0 0 auto;
  margin-left: auto;
  font-size: 0.9rem;
  font-weight: 700;
  color: #ea580c;
  white-space: nowrap;
}

/* City quick actions — mirror app.css for browsers that only load pwa.css overrides */
.city-quick {
  display: none;
}

.city-answer {
  margin: 0 0 18px;
}

.city-answer__note {
  margin: 0 0 8px;
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.45;
}

@media (max-width: 640px) {
  .page-hero--exchange-city .page-hero__lead {
    display: none;
  }

  .city-quick {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0 0 14px;
    padding: 12px 14px;
    border: 1px solid #f1e4d6;
    border-radius: 14px;
    background: #fffaf5;
    position: sticky;
    top: 56px;
    z-index: 30;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
  }

  .city-quick__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
  }

  .city-quick__row--meta {
    justify-content: space-between;
    gap: 10px;
  }

  .city-quick__city {
    font-weight: 700;
    font-size: 0.95rem;
    color: #1f2937;
  }

  .city-quick__usd {
    font-size: 0.82rem;
    font-weight: 600;
    color: #0f172a;
    white-space: nowrap;
  }

  .city-quick__usd strong {
    color: #ea580c;
  }

  .city-quick__neighbor {
    font-size: 0.85rem;
    font-weight: 600;
    color: #ea580c;
    text-decoration: none;
    white-space: nowrap;
  }

  .city-quick__row--actions .btn {
    flex: 1 1 auto;
    min-height: 40px;
    justify-content: center;
  }

  .city-quick__open {
    flex: 1 1 100%;
  }
}

/* Browser mobile keeps city-quick; PWA Rates replaces it with .pwa-rates-cta */
html.is-pwa-standalone .city-quick {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 0 14px;
  padding: 12px 14px;
  border: 1px solid #f1e4d6;
  border-radius: 14px;
  background: #fffaf5;
  position: relative;
  top: auto;
  z-index: 1;
  box-shadow: none;
}

/* Slim Rates CTA — hidden outside standalone Rates */
.pwa-rates-cta {
  display: none;
}

html.is-pwa-standalone.is-pwa-rates-tab .pwa-rates-cta {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  margin: 4px 0 18px;
  padding: 0;
}

html.is-pwa-standalone.is-pwa-rates-tab .pwa-rates-cta__near {
  width: 100%;
  min-height: 52px;
  justify-content: center;
  border-radius: 14px;
  font-size: 1.15rem !important;
  font-weight: 800 !important;
  background: #ea580c !important;
  border-color: #ea580c !important;
  color: #fff !important;
  opacity: 0.95;
}

html.is-pwa-standalone.is-pwa-rates-tab .pwa-rates-cta__near:active {
  opacity: 1;
  background: #c2410c !important;
}

/* Neighbor city link removed from PWA Rates; keep hidden if stale HTML remains */
html.is-pwa-standalone .pwa-rates-cta__neighbor,
html.is-pwa-standalone .city-quick__neighbor {
  display: none !important;
}

html.is-pwa-standalone.is-pwa-rates-tab .pwa-rates-cta__neighbor {
  align-self: center;
  font-size: 1rem;
  font-weight: 700;
  color: #ea580c;
  text-decoration: none;
  padding: 4px 8px;
}

html.is-pwa-standalone.is-pwa-rates-tab .pwa-rates-cta__neighbor:active {
  color: #c2410c;
}

html.is-pwa-standalone.is-pwa-rates-tab .city-answer,
html.is-pwa-standalone.is-pwa-rates-tab .city-quick {
  display: none !important;
}

/* Rates tab: ticker hero + CTA + favorites (no map — map must NOT warm here) */
html.is-pwa-standalone.is-pwa-rates-tab .pwa-office-search,
html.is-pwa-standalone.is-pwa-rates-tab .toolbar,
html.is-pwa-standalone.is-pwa-rates-tab .map-section,
html.is-pwa-standalone.is-pwa-rates-tab .exchange-offices-mobile,
html.is-pwa-standalone.is-pwa-rates-tab .exchange-offices-desktop,
html.is-pwa-standalone.is-pwa-rates-tab .pagination,
html.is-pwa-standalone.is-pwa-rates-tab .pagination-summary,
html.is-pwa-standalone.is-pwa-rates-tab .site-footer {
  display: none !important;
}

html.is-pwa-standalone.is-pwa-rates-tab .city-highlights {
  margin: 0 0 12px;
}

html.is-pwa-standalone.is-pwa-rates-tab .city-highlights .home-ticker {
  gap: 10px;
}

html.is-pwa-standalone.is-pwa-rates-tab .city-highlights .home-ticker-card {
  padding: 16px 14px !important;
  border-radius: 16px !important;
  border: 1px solid #f1e4d6 !important;
  background: #fff !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06) !important;
  opacity: 1;
}

html.is-pwa-standalone.is-pwa-rates-tab .city-highlights .home-ticker-card__row strong {
  font-size: 1.75rem !important;
  font-weight: 800 !important;
  letter-spacing: -0.03em;
  color: #1a1a1a;
}

html.is-pwa-standalone.is-pwa-rates-tab .city-highlights .home-ticker-card__pair {
  font-size: 1.1rem !important;
  font-weight: 800 !important;
}

html.is-pwa-standalone.is-pwa-rates-tab .pwa-favorites:not([hidden]) {
  display: block !important;
  margin: 0 0 14px;
}

html.is-pwa-standalone.is-pwa-rates-tab .pwa-favorites[hidden] {
  display: none !important;
}

/* Map tab: Yandex map + office accordion */
html.is-pwa-standalone.is-pwa-map-tab .pwa-office-search,
html.is-pwa-standalone.is-pwa-map-tab .pwa-favorites,
html.is-pwa-standalone.is-pwa-map-tab .city-highlights,
html.is-pwa-standalone.is-pwa-map-tab .toolbar,
html.is-pwa-standalone.is-pwa-map-tab .map-section__title,
html.is-pwa-standalone.is-pwa-map-tab .exchange-offices-mobile,
html.is-pwa-standalone.is-pwa-map-tab .exchange-offices-desktop,
html.is-pwa-standalone.is-pwa-map-tab .pagination,
html.is-pwa-standalone.is-pwa-map-tab .site-footer {
  display: none !important;
}

html.is-pwa-standalone.is-pwa-map-tab .map-section {
  display: block !important;
  position: static !important;
  left: auto !important;
  top: auto !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  z-index: auto !important;
  overflow: visible !important;
}

html.is-pwa-standalone.is-pwa-map-tab .pwa-map-toolbar {
  display: flex !important;
  flex-direction: column;
  gap: 10px;
  margin: 0 0 12px;
}

html.is-pwa-standalone.is-pwa-map-tab .pwa-office-list {
  display: block !important;
}

html.is-pwa-standalone.is-pwa-map-tab .offices-map--yandex,
html.is-pwa-standalone.is-pwa-map-tab .offices-map--leaflet {
  display: block !important;
  position: relative !important;
  width: 100% !important;
  height: min(42vw, 240px) !important;
  min-height: 200px !important;
  max-height: 280px !important;
  margin: 0 0 14px !important;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #f1e4d6;
  opacity: 1 !important;
  pointer-events: auto !important;
  background:
    linear-gradient(180deg, #f3f6f9 0%, #e8eef4 100%);
  z-index: 0;
}

html.is-pwa-standalone.is-pwa-map-tab .offices-map--leaflet .leaflet-container {
  width: 100%;
  height: 100%;
  font: inherit;
}

.offices-map--leaflet .leaflet-container {
  width: 100%;
  height: 100%;
  z-index: 0;
}

.offices-map-marker--best {
  filter: hue-rotate(85deg) saturate(1.2);
}

html.is-pwa-standalone.is-pwa-map-tab .offices-map--yandex.is-loading::after,
html.is-pwa-standalone.is-pwa-map-tab .offices-map--yandex:not([data-map-ready="1"])::after,
html.is-pwa-standalone.is-pwa-map-tab .offices-map--leaflet.is-loading::after,
html.is-pwa-standalone.is-pwa-map-tab .offices-map--leaflet:not([data-map-ready="1"])::after {
  content: attr(data-loading);
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  font: 600 14px/1.3 Golos Text, system-ui, sans-serif;
  color: #5b6470;
  background:
    linear-gradient(110deg, #eef2f6 25%, #f8fafc 37%, #eef2f6 63%);
  background-size: 200% 100%;
  animation: pwa-map-shimmer 1.1s linear infinite;
  pointer-events: none;
}

@keyframes pwa-map-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

html.is-pwa-standalone.is-pwa-map-tab .page-hero--exchange-city,
html.is-pwa-standalone.is-pwa-map-tab .city-quick,
html.is-pwa-standalone.is-pwa-map-tab .pwa-rates-cta {
  display: none !important;
}

/*
 * Standalone without waiting for JS classes (tabbar already shows via media query).
 * Otherwise users still see cream city-quick while pwa-rates-cta stays display:none.
 */
@media (display-mode: standalone) {
  .city-quick {
    display: none !important;
  }

  .pwa-rates-cta {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin: 4px 0 18px;
    padding: 0;
  }

  .pwa-rates-cta__near {
    width: 100%;
    min-height: 52px;
    justify-content: center;
    border-radius: 14px;
    font-size: 1.15rem !important;
    font-weight: 800 !important;
    background: #ea580c !important;
    border-color: #ea580c !important;
    color: #fff !important;
  }

  .pwa-rates-cta__neighbor,
  .city-quick__neighbor {
    display: none !important;
  }

  .city-highlights .home-ticker-card {
    border: 1px solid #f1e4d6 !important;
    background: #fff !important;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06) !important;
    opacity: 1 !important;
  }

  /* Map tab via #offices-map — hide rates chrome even before JS syncPwaMode */
  body:has(#offices-map:target) .pwa-rates-cta,
  body:has(#offices-map:target) .city-highlights,
  body:has(#offices-map:target) .page-hero--exchange-city,
  body:has(#offices-map:target) .pwa-favorites {
    display: none !important;
  }
}

/* Calculator form layout (all clients; bundle may lag behind app.css) */
.calculator-form__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: end;
}

.calculator-form__actions {
  margin-top: 16px;
}

.result-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

@media (max-width: 640px) {
  .calculator-form__grid {
    grid-template-columns: 1fr;
  }
}

/* Calculator: full screen form + results */
html.is-pwa-standalone.is-pwa-calc-page .site-footer {
  display: none !important;
}

html.is-pwa-standalone.is-pwa-calc-page .city-bar {
  display: flex !important;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 0 16px;
  padding: 4px 2px 10px;
}

html.is-pwa-standalone.is-pwa-calc-page .city-chip {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 10px 14px;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  border-radius: 14px;
}

html.is-pwa-standalone.is-pwa-calc-page .page-hero {
  margin: 0 0 14px;
  padding: 0;
}

html.is-pwa-standalone.is-pwa-calc-page .page-hero h1 {
  font-size: 1.55rem !important;
  font-weight: 800;
  line-height: 1.25;
  margin: 0 0 8px;
}

html.is-pwa-standalone.is-pwa-calc-page .page-hero__lead {
  display: block !important;
  margin: 0;
  font-size: 1.1rem !important;
  line-height: 1.45;
  color: #4b5563;
}

html.is-pwa-standalone.is-pwa-calc-page .calculator-card {
  margin: 0 0 20px;
  padding: 18px 16px;
  border-radius: 18px;
  border: 1px solid #f1e4d6;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

html.is-pwa-standalone.is-pwa-calc-page .calculator-form__grid {
  grid-template-columns: 1fr;
  gap: 14px;
}

html.is-pwa-standalone.is-pwa-calc-page .form-field__label,
html.is-pwa-standalone.is-pwa-calc-page .field-label {
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  margin-bottom: 8px;
  color: #374151;
}

html.is-pwa-standalone.is-pwa-calc-page .form-field__control,
html.is-pwa-standalone.is-pwa-calc-page .field-input {
  min-height: 56px;
  padding: 14px 16px;
  font-size: 1.2rem !important;
  font-weight: 600 !important;
  border-radius: 14px;
}

html.is-pwa-standalone.is-pwa-calc-page .calculator-form__actions {
  margin-top: 18px;
}

html.is-pwa-standalone.is-pwa-calc-page .calculator-form__actions .btn {
  width: 100%;
  min-height: 56px;
  font-size: 1.2rem !important;
  font-weight: 800 !important;
  border-radius: 14px;
}

html.is-pwa-standalone.is-pwa-calc-page .section-title {
  margin: 8px 0 14px;
  font-size: 1.35rem !important;
  font-weight: 800;
}

html.is-pwa-standalone.is-pwa-calc-page .results-grid {
  grid-template-columns: 1fr;
  gap: 12px;
}

html.is-pwa-standalone.is-pwa-calc-page .result-card {
  padding: 16px;
  border-radius: 16px;
}

html.is-pwa-standalone.is-pwa-calc-page .result-card h3 {
  font-size: 1.25rem !important;
  font-weight: 800;
  line-height: 1.3;
}

html.is-pwa-standalone.is-pwa-calc-page .result-card__address {
  font-size: 1.05rem !important;
  line-height: 1.4;
}

html.is-pwa-standalone.is-pwa-calc-page .meta-list {
  font-size: 1.05rem !important;
}

html.is-pwa-standalone.is-pwa-calc-page .result-card__totals {
  gap: 16px;
  margin-top: 14px;
  padding-top: 14px;
}

html.is-pwa-standalone.is-pwa-calc-page .result-card__totals span {
  font-size: 0.95rem !important;
}

html.is-pwa-standalone.is-pwa-calc-page .result-card__totals strong {
  font-size: 1.35rem !important;
  font-weight: 800;
}

html.is-pwa-standalone.is-pwa-calc-page .result-card__actions .btn {
  min-height: 48px;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  padding-inline: 14px;
}

html.is-pwa-standalone.is-pwa-calc-page .empty-state {
  padding: 24px 18px;
  border-radius: 16px;
}

html.is-pwa-standalone.is-pwa-calc-page .empty-state h3 {
  font-size: 1.25rem !important;
}

html.is-pwa-standalone.is-pwa-calc-page .empty-state p {
  font-size: 1.1rem !important;
}

/* Crypto pages: larger type for ALL text, not only headings */
html.is-pwa-standalone.is-pwa-crypto-page .site-footer,
html.is-pwa-standalone.is-pwa-crypto-page .breadcrumbs {
  display: none !important;
}

html.is-pwa-standalone.is-pwa-crypto-page .main,
html.is-pwa-standalone.is-pwa-crypto-page .main .page,
html.is-pwa-standalone.is-pwa-crypto-page .main p,
html.is-pwa-standalone.is-pwa-crypto-page .main li,
html.is-pwa-standalone.is-pwa-crypto-page .main span,
html.is-pwa-standalone.is-pwa-crypto-page .main a,
html.is-pwa-standalone.is-pwa-crypto-page .main label,
html.is-pwa-standalone.is-pwa-crypto-page .main summary,
html.is-pwa-standalone.is-pwa-crypto-page .main button,
html.is-pwa-standalone.is-pwa-crypto-page .main input,
html.is-pwa-standalone.is-pwa-crypto-page .main select,
html.is-pwa-standalone.is-pwa-crypto-page .main textarea {
  font-size: 1.2rem !important;
  line-height: 1.5 !important;
}

html.is-pwa-standalone.is-pwa-crypto-page .city-bar {
  display: flex !important;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 0 16px;
  padding: 4px 2px 10px;
}

html.is-pwa-standalone.is-pwa-crypto-page .city-chip {
  flex: 0 0 auto;
  min-height: 48px;
  padding: 12px 16px;
  font-size: 1.15rem !important;
  font-weight: 700 !important;
}

html.is-pwa-standalone.is-pwa-crypto-page .page-hero h1,
html.is-pwa-standalone.is-pwa-crypto-page .main h1 {
  font-size: 1.7rem !important;
  font-weight: 800;
  line-height: 1.25 !important;
}

html.is-pwa-standalone.is-pwa-crypto-page .page-hero__lead,
html.is-pwa-standalone.is-pwa-crypto-page .section-subtitle,
html.is-pwa-standalone.is-pwa-crypto-page .cross-link,
html.is-pwa-standalone.is-pwa-crypto-page .cross-link span,
html.is-pwa-standalone.is-pwa-crypto-page .cross-link a {
  font-size: 1.25rem !important;
  line-height: 1.5 !important;
}

html.is-pwa-standalone.is-pwa-crypto-page .section-title,
html.is-pwa-standalone.is-pwa-crypto-page .crypto-hub__section-head .section-title,
html.is-pwa-standalone.is-pwa-crypto-page .main h2 {
  font-size: 1.5rem !important;
  font-weight: 800;
  line-height: 1.3 !important;
}

html.is-pwa-standalone.is-pwa-crypto-page .main h3,
html.is-pwa-standalone.is-pwa-crypto-page .crypto-hub__soon-title,
html.is-pwa-standalone.is-pwa-crypto-page .crypto-hub__notify-title {
  font-size: 1.35rem !important;
  font-weight: 800;
  line-height: 1.3 !important;
}

html.is-pwa-standalone.is-pwa-crypto-page .crypto-hub__soon-text,
html.is-pwa-standalone.is-pwa-crypto-page .crypto-hub__notify-text,
html.is-pwa-standalone.is-pwa-crypto-page .crypto-hub__notify-success,
html.is-pwa-standalone.is-pwa-crypto-page .crypto-hub__disclaimer,
html.is-pwa-standalone.is-pwa-crypto-page .section-link,
html.is-pwa-standalone.is-pwa-crypto-page .product-cards-empty {
  font-size: 1.25rem !important;
  line-height: 1.5 !important;
}

html.is-pwa-standalone.is-pwa-crypto-page .crypto-hub__faq-q,
html.is-pwa-standalone.is-pwa-crypto-page .crypto-hub__faq-item summary {
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
  padding: 14px 0;
}

html.is-pwa-standalone.is-pwa-crypto-page .crypto-hub__faq-a,
html.is-pwa-standalone.is-pwa-crypto-page .crypto-hub__faq-item p {
  font-size: 1.2rem !important;
  line-height: 1.55 !important;
}

html.is-pwa-standalone.is-pwa-crypto-page .crypto-hub__link,
html.is-pwa-standalone.is-pwa-crypto-page .crypto-hub__link span,
html.is-pwa-standalone.is-pwa-crypto-page .crypto-hub__links a {
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
}

html.is-pwa-standalone.is-pwa-crypto-page .product-list-card--crypto .product-list-card__org-title {
  font-size: 1.4rem !important;
  font-weight: 800;
  line-height: 1.3 !important;
}

html.is-pwa-standalone.is-pwa-crypto-page .product-list-card--crypto .product-list-card__address,
html.is-pwa-standalone.is-pwa-crypto-page .product-list-card--crypto .product-list-card__eyebrow,
html.is-pwa-standalone.is-pwa-crypto-page .product-list-card--crypto .product-list-card__empty-rates {
  font-size: 1.15rem !important;
  line-height: 1.45 !important;
}

html.is-pwa-standalone.is-pwa-crypto-page .product-list-card--crypto .exchange-rate-tiles__code {
  font-size: 1.15rem !important;
  font-weight: 800;
}

html.is-pwa-standalone.is-pwa-crypto-page .product-list-card--crypto .exchange-rate-tiles__value small {
  font-size: 1.05rem !important;
}

html.is-pwa-standalone.is-pwa-crypto-page .product-list-card--crypto .exchange-rate-tiles__value strong {
  font-size: 1.45rem !important;
  font-weight: 800;
}

html.is-pwa-standalone.is-pwa-crypto-page .product-list-card--crypto .product-list-card__cta {
  font-size: 1.2rem !important;
  font-weight: 700;
}

html.is-pwa-standalone.is-pwa-crypto-page .crypto-hub__form .form-field__label,
html.is-pwa-standalone.is-pwa-crypto-page .crypto-hub__form .btn,
html.is-pwa-standalone.is-pwa-crypto-page .form-field__label {
  font-size: 1.2rem !important;
  font-weight: 700 !important;
}

html.is-pwa-standalone.is-pwa-crypto-page .crypto-hub__form .form-field__control,
html.is-pwa-standalone.is-pwa-crypto-page .form-field__control {
  min-height: 56px;
  font-size: 1.2rem !important;
}

html.is-pwa-standalone.is-pwa-crypto-page .crypto-hub__form .btn,
html.is-pwa-standalone.is-pwa-crypto-page .btn {
  min-height: 52px;
  font-size: 1.2rem !important;
}

html.is-pwa-standalone.is-pwa-crypto-page .pagination,
html.is-pwa-standalone.is-pwa-crypto-page .pagination a,
html.is-pwa-standalone.is-pwa-crypto-page .pagination span {
  font-size: 1.15rem !important;
}

html.is-pwa-standalone .rates-modal__title {
  font-size: 1.35rem !important;
}

html.is-pwa-standalone .rates-modal__panel {
  font-size: 1.1rem;
}

@media (display-mode: standalone) {
  .best-offices-modal__title {
    font-size: 1.35rem !important;
  }

  .best-offices-modal__name {
    font-size: 1.2rem !important;
  }

  .best-offices-modal__rate strong {
    font-size: 1.55rem !important;
  }

  .best-offices-modal__addr {
    font-size: 1.05rem !important;
  }

  .best-offices-modal__subtitle {
    font-size: 1.1rem !important;
  }
}

/* More tab + local rate alerts */
html.is-pwa-standalone.is-pwa-more-page .site-footer {
  display: none !important;
}

html.is-pwa-standalone.is-pwa-more-page .page-hero--pwa-more {
  margin: 0 0 18px;
  padding: 0;
}

html.is-pwa-standalone.is-pwa-more-page .page-hero--pwa-more h1 {
  font-size: 1.85rem !important;
  font-weight: 800;
  margin: 0;
  line-height: 1.2;
}

html.is-pwa-standalone.is-pwa-more-page .page-hero__lead {
  display: none !important;
}

.pwa-more-menu {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0 0 24px;
}

.pwa-more-menu__item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 20px;
  border-radius: 18px;
  border: 1px solid #f1e4d6;
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.pwa-more-menu__item:hover,
.pwa-more-menu__item:focus-visible {
  border-color: #fdba74;
  background: #fff7ed;
}

.pwa-more-menu__title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #1a1a1a;
}

.pwa-more-menu__hint {
  font-size: 1.1rem;
  color: #6b7280;
  line-height: 1.35;
}

html.is-pwa-standalone.is-pwa-more-page .pwa-more-menu__title {
  font-size: 1.45rem !important;
}

html.is-pwa-standalone.is-pwa-more-page .pwa-more-menu__hint {
  font-size: 1.15rem !important;
}

html.is-pwa-standalone.is-pwa-more-page .pwa-more-menu__item {
  min-height: 72px;
  padding: 20px 22px;
}

.pwa-alerts {
  padding: 20px 18px 18px;
  border-radius: 18px;
  border: 1px solid #f1e4d6;
  background: #fff;
  margin: 0 0 24px;
}

.pwa-alerts__title {
  margin: 0 0 8px;
  font-size: 1.45rem;
  font-weight: 800;
}

.pwa-alerts__lead {
  margin: 0 0 10px;
  font-size: 1.1rem;
  color: #6b7280;
  line-height: 1.4;
}

html.is-pwa-standalone.is-pwa-more-page .pwa-alerts__title {
  font-size: 1.55rem !important;
}

html.is-pwa-standalone.is-pwa-more-page .pwa-alerts__lead,
html.is-pwa-standalone.is-pwa-more-page .pwa-alerts__push-hint-static {
  font-size: 1.15rem !important;
}

html.is-pwa-standalone.is-pwa-more-page .pwa-alerts .form-field__label {
  font-size: 1.1rem !important;
  font-weight: 700;
}

html.is-pwa-standalone.is-pwa-more-page .pwa-alerts .form-field__control {
  min-height: 52px;
  font-size: 1.15rem !important;
}

html.is-pwa-standalone.is-pwa-more-page .pwa-alerts .btn {
  min-height: 54px;
  font-size: 1.2rem !important;
}

.pwa-alerts__push {
  margin: 0 0 18px;
}

.pwa-alerts__push-btn {
  width: 100%;
  font-weight: 700 !important;
}

.pwa-alerts__push-btn.is-active {
  border-color: #86efac;
  color: #166534;
  background: #f0fdf4;
}

.pwa-alerts__push-hint {
  margin: 8px 0 0;
  font-size: 0.92rem;
  color: #9a3412;
}

.pwa-alerts__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 480px) {
  .pwa-alerts__grid {
    grid-template-columns: 1fr;
  }
}

.pwa-alerts__list {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pwa-alerts__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 12px;
  border-radius: 12px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
}

.pwa-alerts__item-text {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 1.1rem;
}

.pwa-alerts__empty {
  padding: 12px;
  color: #6b7280;
  font-size: 1.1rem;
}

html.is-pwa-standalone.is-pwa-more-page .pwa-alerts__item {
  min-height: 56px;
  padding: 14px 16px;
}

html.is-pwa-standalone.is-pwa-more-page .pwa-alerts__item-text {
  font-size: 1.2rem !important;
}

.pwa-alert-banner {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: var(--pwa-tabbar-clear, calc(140px + env(safe-area-inset-bottom, 0px)));
  z-index: 1200;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 14px 14px 16px;
  border-radius: 16px;
  background: #fff7ed;
  border: 1px solid #fdba74;
  box-shadow: 0 10px 30px rgba(154, 52, 18, 0.18);
  font-size: 1.05rem;
  font-weight: 700;
  color: #9a3412;
}

.pwa-alert-banner span {
  flex: 1 1 auto;
  min-width: 0;
  line-height: 1.35;
}

.pwa-alert-banner button {
  appearance: none;
  border: 0;
  background: transparent;
  color: #9a3412;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 2px;
}

/* Lenta tab — news + blog feed */
html.is-pwa-standalone.is-pwa-lenta-page .site-footer {
  display: none !important;
}

html.is-pwa-standalone.is-pwa-lenta-page .page-hero {
  margin-bottom: 12px;
  padding: 8px 0 4px;
}

html.is-pwa-standalone.is-pwa-lenta-page .page-hero h1 {
  margin: 0 0 4px;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

html.is-pwa-standalone.is-pwa-lenta-page .page-hero__lead {
  margin: 0;
  font-size: 1.05rem;
  color: #6b7280;
}

html.is-pwa-standalone.is-pwa-lenta-page .pwa-lenta-block {
  margin: 0 0 22px;
}

html.is-pwa-standalone.is-pwa-lenta-page .pwa-lenta-block .section-head {
  margin-bottom: 10px;
}

html.is-pwa-standalone.is-pwa-lenta-page .pwa-lenta-feed {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

html.is-pwa-standalone.is-pwa-lenta-page .pwa-lenta-feed .home-news-card,
html.is-pwa-standalone.is-pwa-lenta-page .pwa-lenta-feed .home-blog-card {
  border-radius: 16px;
}

html.is-pwa-standalone.is-pwa-lenta-page .pwa-lenta-feed .home-news-card__title,
html.is-pwa-standalone.is-pwa-lenta-page .pwa-lenta-feed .home-blog-card__title {
  font-size: 1.12rem !important;
  line-height: 1.3;
}

html.is-pwa-standalone.is-pwa-lenta-page .pwa-lenta-feed .empty-state {
  margin: 0;
  padding: 18px 14px;
  font-size: 1.05rem;
  border: 1px dashed #f1e4d6;
  border-radius: 16px;
  background: #fffaf5;
}
