﻿@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap");

/* B2C-1.2A: выключенная capability обязана ИСЧЕЗАТЬ, а не «почти исчезать».
   У .view, .bonus-card, кнопок фильтра и .primary-button есть собственный
   display, а он бьёт UA-правило [hidden]{display:none} — ровно эта грабля уже
   ловила нас на `.btn{display:inline-flex}`, которая перебивала hidden. Одно
   явное правило на весь механизм, чтобы вырезанная поверхность не осталась
   видимой из-за чужого display. */
[data-capability][hidden] { display: none !important; }

:root {
  color-scheme: light;
  --color-primary: #087b93;
  --color-primary-dark: #055f72;
  --color-primary-soft: #e6f5f8;
  --color-text: #12323b;
  --color-text-muted: #617780;
  --color-text-soft: #8aa0a7;
  --color-bg: #f8faf7;
  --color-bg-warm: #fff8ed;
  --color-surface: #ffffff;
  --color-surface-soft: #f1f7f8;
  --color-border: #d7e6ea;
  --color-sun: #f6a623;
  --color-sun-soft: #fff3d8;
  --color-coral: #ff6b4a;
  --color-coral-soft: #ffeae5;
  --color-success: #16895a;
  --color-success-soft: #e7f7ef;
  --color-warning: #b86d08;
  --color-warning-soft: #fff4da;
  --color-danger: #b83a2d;
  --color-danger-soft: #ffe9e6;
  --font-main: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-size-xs: 12px;
  --font-size-sm: 13px;
  --font-size-md: 15px;
  --font-size-base: 16px;
  --font-size-lg: 18px;
  --font-size-xl: 22px;
  --font-size-2xl: 28px;
  --font-size-hero: 38px;
  --line-height-tight: 1.12;
  --line-height-title: 1.2;
  --line-height-body: 1.45;
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extrabold: 800;
  --bg: var(--color-bg);
  --surface: var(--color-surface);
  --surface-2: var(--color-surface-soft);
  --text: var(--color-text);
  --ink: var(--color-text);
  --muted: var(--color-text-muted);
  --border: var(--color-border);
  --brand-blue: var(--color-primary);
  --brand-blue-dark: var(--color-primary-dark);
  --brand-orange: var(--color-sun);
  --accent: var(--color-primary);
  --accent-2: #0d9bb3;
  --coral: var(--color-coral);
  --soft-blue: var(--color-primary-soft);
  --shadow: 0 18px 45px rgba(5, 95, 114, 0.11);
}

* {
  box-sizing: border-box;
}

html {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  max-width: 100%;
  overflow-x: hidden;
  background:
    radial-gradient(circle at top left, rgba(255, 243, 216, 0.86), rgba(255, 255, 255, 0) 320px),
    linear-gradient(180deg, rgba(8, 123, 147, 0.07), rgba(255, 255, 255, 0) 420px),
    var(--bg);
  color: var(--text);
  font-family: var(--font-main);
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-body);
}

button,
input,
select {
  font: inherit;
}

.app-shell {
  width: min(100%, 430px);
  max-width: 100%;
  min-height: 100vh;
  margin: 0 auto;
  padding: 24px 18px 126px;
  overflow-x: hidden;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.system-banner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid rgba(0, 101, 128, 0.16);
  border-radius: 8px;
  background: rgba(232, 245, 249, 0.96);
  box-shadow: 0 10px 24px rgba(3, 84, 106, 0.08);
}

.system-banner.hidden {
  display: none;
}

.system-banner div {
  display: grid;
  gap: 3px;
}

.system-banner strong {
  color: var(--brand-blue);
  font-size: 13px;
  line-height: 1.2;
}

.system-banner span {
  color: var(--muted);
  font-size: 12px;
  font-weight: var(--font-weight-semibold);
  line-height: 1.35;
}

.offline-banner {
  border-color: rgba(255, 133, 13, 0.28);
  background: rgba(255, 247, 238, 0.96);
}

.offline-banner strong {
  color: var(--brand-orange);
}

.install-banner {
  grid-template-columns: 1fr auto;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.language-toggle {
  width: 78px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--brand-blue);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  overflow: hidden;
  padding: 0;
  font-size: 12px;
  font-weight: var(--font-weight-extrabold);
  box-shadow: 0 8px 20px rgba(18, 50, 58, 0.06);
}

.language-toggle span {
  height: 100%;
  display: grid;
  place-items: center;
}

.language-toggle span.active {
  background: var(--brand-blue);
  color: #fff;
}

.brand-lockup {
  display: grid;
  gap: 8px;
}

.brand-lockup img {
  width: 145px;
  height: auto;
  display: block;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: 29px;
  line-height: 1.08;
}

.icon-button {
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--brand-blue);
  font-size: 22px;
  box-shadow: 0 8px 20px rgba(18, 50, 58, 0.06);
}

.active-alert {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
  padding: 12px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 133, 13, 0.18), transparent 34%),
    var(--brand-blue-dark);
  color: #fff;
}

.active-alert > div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: var(--brand-orange);
  box-shadow: 0 0 0 4px rgba(255, 133, 13, 0.18);
}

.status-text {
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
  font-weight: 700;
}

.active-alert strong {
  font-size: 16px;
  line-height: 1.3;
}

.global-alert {
  display: none;
}

.home-travel-hero {
  display: grid;
  gap: 10px;
  padding: 2px 2px 2px;
}

.home-eyebrow,
.home-section-kicker {
  color: var(--brand-orange);
  font-size: 12px;
  font-weight: var(--font-weight-extrabold);
  text-transform: uppercase;
}

.home-travel-hero h2 {
  color: var(--brand-blue);
  font-size: 32px;
  line-height: 1;
}

.home-travel-hero p {
  max-width: 33ch;
  color: var(--muted);
  font-size: 14px;
  font-weight: var(--font-weight-semibold);
  line-height: 1.38;
}

.home-search-card,
.home-radar-card,
.home-latest-card {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
  padding: 13px;
  border: 1px solid rgba(207, 225, 229, 0.72);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 42px rgba(16, 54, 64, 0.08);
}

.home-search-card {
  background: linear-gradient(180deg, #ffffff, #f5fbfc);
}

.home-travel-intro {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 0 0 14px;
  overflow: visible;
  padding: 2px 0 4px;
}

.home-intro-card {
  display: grid;
  gap: 8px;
  min-height: 142px;
  padding: 16px;
  border: 1px solid rgba(215, 230, 234, 0.82);
  border-radius: 22px;
  background: linear-gradient(145deg, #ffffff, var(--color-surface-soft));
  box-shadow: 0 18px 34px rgba(18, 50, 58, 0.07);
}

.home-intro-card h3 {
  color: var(--color-text);
  font-size: 17px;
  line-height: 1.18;
}

.home-intro-card p {
  color: var(--color-text-muted);
  font-size: 13px;
  font-weight: var(--font-weight-medium);
  line-height: 1.38;
}

.home-intro-icon {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 16px;
  background: var(--color-primary-soft);
  color: var(--color-primary);
}

.home-intro-radar .home-intro-icon {
  background: var(--color-sun-soft);
  color: var(--color-warning);
}

.home-intro-manager .home-intro-icon {
  background: var(--color-coral-soft);
  color: var(--color-coral);
}

.home-intro-icon::before,
.home-intro-icon::after {
  content: "";
  position: absolute;
}

.home-intro-radar .home-intro-icon::before {
  inset: 9px;
  border: 3px solid currentColor;
  border-radius: 50%;
}

.home-intro-radar .home-intro-icon::after {
  inset: 19px;
  border-radius: 50%;
  background: currentColor;
}

.home-intro-trips .home-intro-icon::before {
  left: 10px;
  top: 11px;
  width: 22px;
  height: 20px;
  border: 3px solid currentColor;
  border-radius: 6px;
}

.home-intro-trips .home-intro-icon::after {
  left: 14px;
  top: 8px;
  width: 14px;
  height: 6px;
  border: 3px solid currentColor;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
}

.home-intro-manager .home-intro-icon::before {
  left: 12px;
  top: 9px;
  width: 18px;
  height: 18px;
  border: 3px solid currentColor;
  border-radius: 50%;
}

.home-intro-manager .home-intro-icon::after {
  left: 9px;
  bottom: 8px;
  width: 24px;
  height: 12px;
  border: 3px solid currentColor;
  border-top: 0;
  border-radius: 0 0 16px 16px;
}

.home-search-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 9px;
}

.home-search-field {
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: var(--font-weight-bold);
}

.home-search-field input,
.home-search-field select {
  min-height: 48px;
  border-color: rgba(198, 219, 224, 0.86);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  font-size: 14px;
}

.home-search-actions {
  display: grid;
  gap: 8px;
}

.home-search-submit {
  min-height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand-orange), #ff8b2a);
  box-shadow: 0 16px 30px rgba(255, 112, 0, 0.26);
}

.home-alert-link {
  min-height: 40px;
}

.home-radar-card {
  border-color: rgba(0, 101, 128, 0.18);
  background: linear-gradient(135deg, rgba(0, 101, 128, 0.08), rgba(255, 255, 255, 0.96));
}

.home-radar-card h3,
.home-latest-card h3 {
  margin-top: 4px;
  color: var(--brand-blue);
  font-size: 20px;
  line-height: 1.15;
}

.home-radar-card p,
.home-latest-card p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: var(--font-weight-semibold);
  line-height: 1.35;
}

.home-radar-card small {
  display: block;
  margin-top: 6px;
  color: var(--accent);
  font-size: 12px;
  font-weight: var(--font-weight-extrabold);
}

.favorite-watch-intro {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(255, 107, 74, 0.18);
  border-radius: 20px;
  background: linear-gradient(145deg, #fff, var(--color-coral-soft));
  box-shadow: 0 16px 34px rgba(18, 50, 58, 0.06);
}

.favorite-watch-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 17px;
  background: #fff;
  color: var(--color-coral);
  font-size: 24px;
  font-weight: var(--font-weight-extrabold);
}

.favorite-watch-intro h3 {
  color: var(--color-text);
  font-size: 18px;
  line-height: 1.18;
}

.favorite-watch-intro p {
  margin-top: 4px;
  color: var(--color-text-muted);
  font-size: 13px;
  font-weight: var(--font-weight-medium);
  line-height: 1.38;
}

.favorite-watch-intro small {
  display: block;
  margin-top: 6px;
  color: var(--color-coral);
  font-size: 12px;
  font-weight: var(--font-weight-extrabold);
}

.favorite-watch-intro .secondary-button {
  grid-column: 1 / -1;
}

.radar-modes-intro {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(8, 123, 147, 0.16);
  border-radius: 20px;
  background: linear-gradient(145deg, #fff, var(--color-primary-soft));
}

.radar-modes-intro h3 {
  color: var(--color-text);
  font-size: 18px;
  line-height: 1.18;
}

.radar-modes-grid {
  display: grid;
  gap: 8px;
}

.radar-mode-item {
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
}

.radar-mode-item p {
  color: var(--color-text-muted);
  font-size: 13px;
  font-weight: var(--font-weight-semibold);
  line-height: 1.35;
}

.radar-mode-icon {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 13px;
  background: var(--color-sun-soft);
  color: var(--color-warning);
}

.radar-mode-liked .radar-mode-icon {
  background: var(--color-coral-soft);
  color: var(--color-coral);
}

.radar-mode-params .radar-mode-icon {
  background: var(--color-primary-soft);
  color: var(--brand-blue);
}

.radar-mode-icon::before,
.radar-mode-icon::after {
  content: "";
  position: absolute;
}

.radar-mode-params .radar-mode-icon::before {
  inset: 8px;
  border: 3px solid currentColor;
  border-radius: 50%;
}

.radar-mode-params .radar-mode-icon::after {
  inset: 15px;
  border-radius: 50%;
  background: currentColor;
}

.radar-mode-liked .radar-mode-icon::before {
  left: 9px;
  top: 10px;
  width: 16px;
  height: 14px;
  background: currentColor;
  border-radius: 14px 14px 4px 4px;
  transform: rotate(45deg);
}

.radar-mode-liked .radar-mode-icon::after {
  left: 6px;
  top: 10px;
  width: 16px;
  height: 14px;
  background: currentColor;
  border-radius: 14px 14px 4px 4px;
  transform: rotate(-45deg);
}

.onboarding-overlay {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(247, 250, 249, 0.96);
  backdrop-filter: blur(10px);
}

.onboarding-card {
  position: relative;
  display: grid;
  gap: 16px;
  width: min(100%, 430px);
  min-height: min(760px, calc(100vh - 36px));
  padding: 22px;
  border: 1px solid rgba(215, 230, 234, 0.88);
  border-radius: 28px;
  background: linear-gradient(180deg, #ffffff, #f4fbfc);
  box-shadow: 0 24px 70px rgba(18, 50, 58, 0.18);
}

.onboarding-skip {
  justify-self: end;
  min-height: 38px;
  border: 0;
  background: transparent;
  color: var(--color-text-muted);
  font-size: 13px;
  font-weight: var(--font-weight-bold);
}

.onboarding-visual {
  display: grid;
  place-items: center;
  min-height: 250px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 25% 24%, rgba(246, 166, 35, 0.22), transparent 30%),
    radial-gradient(circle at 72% 36%, rgba(8, 123, 147, 0.2), transparent 34%),
    linear-gradient(145deg, #e8f7fa, #fff8ed);
}

.onboarding-icon {
  position: relative;
  width: 118px;
  height: 118px;
  border-radius: 36px;
  background: #fff;
  color: var(--color-primary);
  box-shadow: 0 18px 42px rgba(18, 50, 58, 0.16);
}

.onboarding-card[data-slide="radar"] .onboarding-icon {
  color: var(--color-warning);
}

.onboarding-card[data-slide="manager"] .onboarding-icon {
  color: var(--color-coral);
}

.onboarding-icon::before,
.onboarding-icon::after {
  content: "";
  position: absolute;
}

.onboarding-card[data-slide="radar"] .onboarding-icon::before {
  inset: 27px;
  border: 8px solid currentColor;
  border-radius: 50%;
}

.onboarding-card[data-slide="radar"] .onboarding-icon::after {
  inset: 53px;
  border-radius: 50%;
  background: currentColor;
}

.onboarding-card[data-slide="trips"] .onboarding-icon::before {
  left: 28px;
  top: 34px;
  width: 62px;
  height: 54px;
  border: 8px solid currentColor;
  border-radius: 16px;
}

.onboarding-card[data-slide="trips"] .onboarding-icon::after {
  left: 40px;
  top: 22px;
  width: 38px;
  height: 18px;
  border: 8px solid currentColor;
  border-bottom: 0;
  border-radius: 18px 18px 0 0;
}

.onboarding-card[data-slide="manager"] .onboarding-icon::before {
  left: 35px;
  top: 24px;
  width: 48px;
  height: 48px;
  border: 8px solid currentColor;
  border-radius: 50%;
}

.onboarding-card[data-slide="manager"] .onboarding-icon::after {
  left: 28px;
  bottom: 24px;
  width: 62px;
  height: 30px;
  border: 8px solid currentColor;
  border-top: 0;
  border-radius: 0 0 32px 32px;
}

.onboarding-card h2 {
  color: var(--color-text);
  font-size: 30px;
  font-weight: var(--font-weight-extrabold);
  line-height: 1.08;
  text-align: center;
}

.onboarding-card p {
  max-width: 31ch;
  justify-self: center;
  color: var(--color-text-muted);
  font-size: 16px;
  font-weight: var(--font-weight-medium);
  line-height: 1.45;
  text-align: center;
}

.onboarding-dots {
  display: flex;
  justify-content: center;
  gap: 7px;
}

.onboarding-dots span {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: rgba(8, 123, 147, 0.2);
}

.onboarding-dots span.active {
  width: 24px;
  background: var(--color-primary);
}

.onboarding-action {
  align-self: end;
  min-height: 58px;
  border-radius: 18px;
}

.home-destinations,
.home-hot,
.home-hotel-inspiration {
  margin-bottom: 20px;
}

.home-destinations h2,
.home-hotel-inspiration h2 {
  color: #122852;
  font-size: 22px;
  line-height: 1.15;
}

.home-destination-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 2px 6px;
  scrollbar-width: none;
}

.home-destination-chips::-webkit-scrollbar {
  display: none;
}

.home-destination-chips button {
  flex: 0 0 auto;
  min-height: 42px;
  border: 1px solid rgba(198, 219, 224, 0.9);
  border-radius: 999px;
  background: #fff;
  color: var(--brand-blue);
  padding: 0 15px;
  font-size: 14px;
  font-weight: var(--font-weight-extrabold);
}

.home-latest-card {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.home-latest-card[hidden] {
  display: none !important;
}

.home-action-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  gap: 9px;
  margin: 0 0 16px;
  overflow: visible;
  padding: 0;
}

.home-action-tiles::-webkit-scrollbar {
  display: none;
}

.home-action-tiles button {
  display: grid;
  grid-template-rows: 36px auto;
  align-items: start;
  gap: 8px;
  flex: 0 0 112px;
  min-height: 92px;
  border: 1px solid rgba(215, 230, 234, 0.86);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--color-primary-dark);
  padding: 10px;
  text-align: center;
  box-shadow: 0 12px 26px rgba(18, 50, 58, 0.06);
}

.home-action-tiles strong {
  min-width: 0;
  font-size: 12px;
  font-weight: var(--font-weight-bold);
  line-height: 1.2;
}

.tile-icon {
  position: relative;
  width: 36px;
  height: 36px;
  justify-self: center;
  border-radius: 13px;
  background: var(--color-primary-soft);
  color: var(--color-primary);
}

.tile-icon::before,
.tile-icon::after {
  content: "";
  position: absolute;
}

.tile-search::before {
  inset: 9px 13px 14px 9px;
  border: 3px solid currentColor;
  border-radius: 50%;
}

.tile-search::after {
  right: 8px;
  bottom: 9px;
  width: 11px;
  height: 3px;
  border-radius: 99px;
  background: currentColor;
  transform: rotate(45deg);
}

.tile-radar,
.tile-hot {
  background: var(--color-sun-soft);
  color: var(--color-warning);
}

.tile-radar::before {
  inset: 8px;
  border: 3px solid currentColor;
  border-radius: 50%;
}

.tile-radar::after {
  inset: 17px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 -13px 0 -3px currentColor, 13px 0 0 -3px currentColor, 0 13px 0 -3px currentColor, -13px 0 0 -3px currentColor;
}

.tile-hot::before {
  left: 14px;
  top: 8px;
  width: 12px;
  height: 20px;
  border-radius: 12px 12px 14px 14px;
  background: currentColor;
  transform: rotate(12deg);
}

.tile-hot::after {
  left: 10px;
  bottom: 9px;
  width: 18px;
  height: 11px;
  border-radius: 50% 50% 45% 45%;
  background: currentColor;
}

.tile-charter::before {
  left: 5px;
  top: 11px;
  width: 19px;
  height: 4px;
  border-radius: 99px;
  background: currentColor;
  transform: rotate(-28deg);
}

.tile-charter::after {
  left: 8px;
  bottom: 8px;
  width: 20px;
  height: 11px;
  border: 2px solid currentColor;
  border-radius: 4px 4px 6px 6px;
  background:
    radial-gradient(circle at 5px 9px, currentColor 0 2px, transparent 2.5px),
    radial-gradient(circle at 15px 9px, currentColor 0 2px, transparent 2.5px),
    linear-gradient(currentColor, currentColor) 4px 4px / 12px 2px no-repeat;
}

.tile-manager::before {
  left: 11px;
  top: 8px;
  width: 14px;
  height: 14px;
  border: 3px solid currentColor;
  border-radius: 50%;
}

.tile-manager::after {
  left: 8px;
  bottom: 8px;
  width: 20px;
  height: 11px;
  border: 3px solid currentColor;
  border-radius: 14px 14px 6px 6px;
}

@media (max-width: 360px) {
  .home-action-tiles {
    margin-right: -12px;
    margin-left: -12px;
    padding-right: 12px;
    padding-left: 12px;
  }
}

.home-manager-help {
  border-radius: 18px;
}

.home-hotel-inspiration {
  display: grid;
  gap: 12px;
  margin-bottom: 22px;
}

.home-hotel-inspiration[hidden] {
  display: none;
}

.home-hotel-list {
  display: grid;
  gap: 12px;
}

.home-popular-hotel-card {
  display: grid;
  gap: 12px;
  padding: 15px;
  border: 1px solid rgba(215, 230, 234, 0.86);
  border-radius: 18px;
  background:
    radial-gradient(circle at top right, rgba(255, 243, 216, 0.9), transparent 42%),
    var(--surface);
  box-shadow: 0 16px 34px rgba(18, 50, 58, 0.08);
}

.home-popular-hotel-media {
  overflow: hidden;
  min-height: 150px;
  border-radius: 15px;
  background: var(--color-surface-soft);
}

.home-popular-hotel-media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 150px;
  object-fit: cover;
}

.home-popular-hotel-top {
  display: grid;
  gap: 5px;
}

.home-popular-hotel-top span {
  width: fit-content;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--color-sun-soft);
  color: var(--color-warning);
  font-size: 11px;
  font-weight: var(--font-weight-extrabold);
}

.home-popular-hotel-top h3 {
  color: var(--brand-blue);
  font-size: 18px;
  line-height: 1.18;
}

.home-popular-hotel-top p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: var(--font-weight-semibold);
  line-height: 1.35;
}

.home-popular-hotel-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.home-popular-hotel-tags small {
  width: fit-content;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(230, 245, 248, 0.85);
  color: var(--brand-blue);
  font-size: 11px;
  font-weight: var(--font-weight-bold);
}

.home-popular-hotel-card > strong {
  width: fit-content;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(230, 245, 248, 0.82);
  color: var(--brand-blue);
  font-size: 13px;
  line-height: 1.25;
}

.home-popular-hotel-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.home-popular-hotel-actions .primary-button,
.home-popular-hotel-actions .secondary-button {
  min-height: 44px;
  border-radius: 12px;
}

.home-manager-help .primary-button {
  width: 100%;
}

.view[data-view="create"].active ~ .global-alert {
  display: grid;
}

.home-alert {
  position: relative;
  min-height: 96px;
  align-content: center;
  padding: 18px 20px 18px 82px;
  overflow: hidden;
  box-shadow: 0 18px 42px rgba(3, 84, 106, 0.24);
}

.home-alert::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 50%;
  width: 46px;
  height: 46px;
  transform: translateY(-50%);
  border-radius: 50%;
  background:
    radial-gradient(circle at 65% 28%, var(--brand-orange) 0 5px, transparent 6px),
    rgba(255, 255, 255, 0.12);
}

.home-alert::after {
  content: "";
  position: absolute;
  right: -22px;
  top: 18px;
  width: 145px;
  height: 52px;
  border-radius: 50%;
  border-top: 12px solid rgba(255, 255, 255, 0.06);
  transform: rotate(-18deg);
}

.home-alert small {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 700;
}

.create-alert-button {
  width: 100%;
  min-height: 58px;
  margin: 0 0 18px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, #ff7900, var(--brand-orange));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  box-shadow: 0 16px 36px rgba(255, 133, 13, 0.25);
}

.create-alert-button span {
  width: 34px;
  height: 34px;
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: 99px;
  display: grid;
  place-items: center;
  font-size: 24px;
  line-height: 1;
}

.create-alert-button strong {
  font-size: 21px;
}

.quick-access,
.home-hot {
  margin-bottom: 22px;
}

.quick-access h2,
.home-hot h2 {
  margin-bottom: 12px;
  font-size: 24px;
  color: #122852;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.quick-grid button {
  min-height: 76px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 12px 8px;
  box-shadow: 0 14px 34px rgba(3, 84, 106, 0.1);
}

.quick-icon,
.bottom-nav button > span {
  width: 28px;
  height: 28px;
  display: block;
  background: var(--brand-blue);
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: contain;
}

.quick-icon.hot-icon {
  background: var(--brand-orange);
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M13.7 2.2c.3 2.7-.9 4-2.1 5.2-1.1 1.1-2.2 2.2-1.7 4.2.9-.8 1.4-1.7 1.8-2.8 2.6 1.6 4.3 3.8 4.3 6.5 0 3.7-2.7 6.7-6.4 6.7S3.4 19.2 3.4 15.6c0-2.6 1.4-4.7 3.2-6.7 1.9-2.2 4.1-4.2 4.2-7.8 1.1.1 2 .5 2.9 1.1Zm-2.5 17.6c1.6-.5 2.6-1.8 2.6-3.4 0-1.4-.8-2.6-2.1-3.5-.3 1.1-.9 2-1.9 2.8-.3-1.2-.1-2.1.4-3.1-1.7 1.2-2.8 2.5-2.8 4 0 2.1 1.8 3.6 3.8 3.2Z'/%3E%3C/svg%3E");
}

.quick-icon.plane-icon,
.nav-home {
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M2 16.7 22 4l-5.4 17-5-7.2-6.5 4.1L2 16.7Zm6.5-.8 3.6-2.3 3.3 4.8 2.8-8.9-9.7 6.4Z'/%3E%3C/svg%3E");
}

.quick-icon.search-icon,
.nav-search {
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M10.5 4a6.5 6.5 0 0 1 5.2 10.4l4 4-1.4 1.4-4-4A6.5 6.5 0 1 1 10.5 4Zm0 2a4.5 4.5 0 1 0 0 9 4.5 4.5 0 0 0 0-9Z'/%3E%3C/svg%3E");
}

.quick-icon.profile-icon,
.nav-user {
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M12 12a5 5 0 1 1 0-10 5 5 0 0 1 0 10Zm0-2a3 3 0 1 0 0-6 3 3 0 0 0 0 6Zm9 11H3v-2a7 7 0 0 1 14 0v2h-2v-2a5 5 0 0 0-10 0h16v2Z'/%3E%3C/svg%3E");
}

.nav-bell {
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M12 22a2.8 2.8 0 0 0 2.6-1.8H9.4A2.8 2.8 0 0 0 12 22Zm8-5-2-2V9a6 6 0 0 0-5-5.9V1h-2v2.1A6 6 0 0 0 6 9v6l-2 2v1h16v-1ZM8 16V9a4 4 0 1 1 8 0v7H8Z'/%3E%3C/svg%3E");
}

.nav-heart {
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='m12 21-1.4-1.2C5.4 15.2 2 12.2 2 8.5A5.4 5.4 0 0 1 7.5 3c1.8 0 3.5.8 4.5 2.1A5.7 5.7 0 0 1 16.5 3 5.4 5.4 0 0 1 22 8.5c0 3.7-3.4 6.7-8.6 11.3L12 21Zm0-2.7.1-.1C17 13.9 20 11.2 20 8.5A3.4 3.4 0 0 0 16.5 5c-1.4 0-2.8.9-3.3 2.2h-2.4A3.6 3.6 0 0 0 7.5 5 3.4 3.4 0 0 0 4 8.5c0 2.7 3 5.4 7.9 9.7l.1.1Z'/%3E%3C/svg%3E");
}

.nav-requests {
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M5 3h14v18H5V3Zm2 2v14h10V5H7Zm2 3h6v2H9V8Zm0 4h6v2H9v-2Zm0 4h4v2H9v-2Z'/%3E%3C/svg%3E");
}

.nav-manager {
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='M4 4h16v4H4V4Zm0 6h7v10H4V10Zm9 0h7v10h-7V10ZM6 6v1h12V6H6Zm0 6v6h3v-6H6Zm9 0v2h3v-2h-3Zm0 4v2h3v-2h-3Z'/%3E%3C/svg%3E");
}

.quick-grid strong {
  font-size: 15px;
  color: #122852;
}

.section-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.section-row .text-button {
  min-height: 38px;
  border-radius: 999px;
  padding: 0 12px;
}

.section-subtitle {
  margin: -4px 0 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: var(--font-weight-semibold);
  line-height: 1.35;
}

.hot-preview-list,
.hot-offer-list {
  display: grid;
  gap: 12px;
}

.hot-filter-chips {
  display: flex;
  gap: 8px;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2px 2px 14px;
  margin: -2px 0 8px;
  scrollbar-width: none;
  overscroll-behavior-inline: contain;
}

.hot-filter-chips::-webkit-scrollbar {
  display: none;
}

.hot-filter-chips button {
  flex: 0 0 auto;
  min-height: 38px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--brand-blue);
  padding: 0 14px;
  font-size: 13px;
  font-weight: var(--font-weight-bold);
}

.hot-filter-chips button.active {
  border-color: var(--brand-blue);
  background: var(--brand-blue);
  color: #fff;
}

.hot-offer-card {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 14px 34px rgba(3, 84, 106, 0.1);
}

.tour-result-card {
  gap: 13px;
  padding: 12px;
  border-color: rgba(215, 230, 234, 0.86);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 249, 0.96)),
    var(--surface);
  box-shadow: 0 18px 40px rgba(18, 50, 58, 0.09);
}

.hot-offer-card.compact {
  padding: 13px;
}

.hot-offer-media {
  position: relative;
  overflow: hidden;
  margin: -2px -2px 2px;
  border-radius: 12px;
  aspect-ratio: 16 / 9;
  background: var(--color-surface-soft);
}

.hot-offer-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.hot-offer-media-placeholder {
  display: grid;
  align-content: end;
  gap: 4px;
  width: 100%;
  height: 100%;
  padding: 14px;
  background:
    linear-gradient(180deg, rgba(8, 123, 147, 0.08), rgba(5, 95, 114, 0.76)),
    radial-gradient(circle at 22% 18%, rgba(255, 255, 255, 0.82), transparent 26%),
    linear-gradient(135deg, rgba(230, 245, 248, 0.95), rgba(255, 248, 237, 0.94));
  color: #fff;
}

.hot-offer-media-placeholder strong {
  max-width: 24ch;
  font-size: 18px;
  font-weight: var(--font-weight-extrabold);
  line-height: 1.15;
}

.hot-offer-media-placeholder span {
  width: fit-content;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  font-size: 12px;
  font-weight: var(--font-weight-bold);
}

.hot-offer-card.offer-unavailable {
  border-color: rgba(217, 74, 58, 0.24);
  background: linear-gradient(180deg, #ffffff 0%, var(--color-danger-soft) 100%);
  opacity: 0.92;
}

.offer-unavailable-note {
  border: 1px solid rgba(217, 74, 58, 0.24);
  border-radius: 12px;
  background: rgba(255, 233, 230, 0.82);
  color: var(--color-danger);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  line-height: 1.35;
  padding: 10px 11px;
}

.hot-offer-card.offer-unavailable .primary-button:disabled {
  background: var(--color-danger-soft);
  color: var(--color-danger);
  opacity: 1;
}

.tour-search-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  margin: 0;
  border-radius: 16px;
  background:
    radial-gradient(circle at 18% 18%, rgba(246, 166, 35, 0.28), transparent 28%),
    linear-gradient(135deg, var(--color-primary-soft), var(--color-sun-soft));
}

.tour-search-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tour-search-image.is-empty {
  display: grid;
  place-items: center;
  min-height: 154px;
  color: var(--brand-blue);
  font-size: 18px;
  font-weight: var(--font-weight-extrabold);
  text-align: center;
}

.tour-card-favorite {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 42px;
  min-width: 42px;
  height: 42px;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--color-coral);
  font-size: 21px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(18, 50, 58, 0.16);
  backdrop-filter: blur(8px);
  z-index: 2;
}

.tour-card-favorite.active {
  border-color: rgba(255, 107, 74, 0.22);
  background: var(--color-coral);
  color: #ffffff;
}

.hot-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.hot-badges span {
  width: fit-content;
  border-radius: 999px;
  background: var(--color-sun-soft);
  color: #8b5200;
  padding: 5px 8px;
  font-size: 11px;
  font-weight: var(--font-weight-extrabold);
}

.hot-badges .hot-variants-badge {
  background: var(--color-primary-soft);
  color: var(--color-primary-dark);
}

.alliance-offer-badge,
.hot-badges .alliance-offer-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  min-height: 28px;
  border: 1px solid rgba(8, 123, 147, 0.2);
  border-radius: 999px;
  background: linear-gradient(135deg, #fff 0%, var(--color-primary-soft) 100%);
  color: var(--color-primary-dark);
  padding: 4px 10px 4px 6px;
  box-shadow: 0 8px 18px rgba(8, 123, 147, 0.1);
}

.alliance-offer-badge img {
  width: 19px;
  height: 19px;
  object-fit: contain;
  display: block;
}

.alliance-offer-badge b {
  color: var(--color-primary-dark);
  font-size: 11px;
  font-weight: var(--font-weight-extrabold);
  line-height: 1;
  white-space: nowrap;
}

.tour-result-badges {
  margin-top: -2px;
}

.tour-result-badges span {
  border: 1px solid rgba(8, 123, 147, 0.12);
  background: rgba(230, 245, 248, 0.9);
  color: var(--brand-blue);
}

.tour-result-badges span:first-child {
  border-color: rgba(246, 166, 35, 0.22);
  background: var(--color-sun-soft);
  color: #8b5200;
}

.tour-result-badges .alliance-offer-badge:first-child {
  border-color: rgba(8, 123, 147, 0.2);
  background: linear-gradient(135deg, #fff 0%, var(--color-primary-soft) 100%);
  color: var(--color-primary-dark);
}

.hot-offer-title {
  display: grid;
  gap: 3px;
}

.hot-offer-title span,
.hot-offer-title small {
  color: var(--muted);
  font-size: 12px;
  font-weight: var(--font-weight-bold);
}

.hot-offer-title h3 {
  color: var(--brand-blue);
  font-size: 18px;
  line-height: 1.15;
}

.tour-result-card .hot-offer-title {
  gap: 5px;
}

.tour-result-card .hot-offer-title h3 {
  font-size: 19px;
  line-height: 1.16;
}

.tour-result-card .hot-offer-title span {
  color: var(--color-primary-dark);
  font-size: 13px;
}

.tour-result-card .hot-offer-title small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.hot-offer-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.tour-result-card .hot-offer-details {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}

.hot-offer-details span {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 9px 10px;
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--ink);
  font-size: 12px;
  font-weight: var(--font-weight-extrabold);
  line-height: 1.25;
}

.tour-result-card .hot-offer-details span {
  padding: 8px 7px;
  border: 1px solid rgba(215, 230, 234, 0.64);
  background: rgba(241, 247, 248, 0.68);
}

.hot-offer-details b {
  color: var(--muted);
  font-size: 10px;
  font-weight: var(--font-weight-extrabold);
  text-transform: uppercase;
}

.tour-result-card .hot-offer-details b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-transform: none;
}

.tour-result-card .hot-offer-details strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text);
  font-size: 12px;
}

.hot-offer-bottom {
  display: grid;
  gap: 10px;
}

.hot-offer-bottom > strong {
  color: var(--brand-orange);
  font-size: 22px;
  line-height: 1.05;
}

.hot-price-wrap {
  display: grid;
  gap: 4px;
}

.hot-price-wrap strong {
  color: var(--brand-orange);
  font-size: 22px;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}

.hot-price-wrap small {
  color: var(--muted);
  font-size: 12px;
  font-weight: var(--font-weight-bold);
  line-height: 1.3;
}

.tour-search-price {
  display: grid;
  gap: 3px;
}

.tour-result-card .hot-offer-bottom {
  align-items: end;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.3fr);
  gap: 12px;
  padding-top: 2px;
}

.tour-search-price strong {
  color: var(--brand-orange);
  font-size: 22px;
  line-height: 1.05;
}

.tour-result-card .tour-search-price strong {
  color: var(--color-coral);
  font-size: 24px;
}

.tour-search-price small,
.tour-search-rating {
  color: var(--muted);
  font-size: 12px;
  font-weight: var(--font-weight-bold);
}

.hot-offer-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.tour-search-card .hot-offer-actions {
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}

.tour-search-card .hot-offer-actions .primary-button {
  grid-column: 1 / -1;
}

.hot-offer-actions button {
  min-height: 44px;
}

.hot-offer-card.compact .hot-offer-actions button {
  min-height: 46px;
}

.tour-search-results {
  display: grid;
  gap: 12px;
}

.compact-select {
  max-width: 152px;
  min-height: 38px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--brand-blue);
  font-size: 12px;
  font-weight: var(--font-weight-bold);
  padding: 0 8px;
}

.favorite-action {
  width: 100%;
  min-width: 46px;
  padding: 0;
  color: var(--brand-orange);
  font-size: 20px;
  box-shadow: none;
}

.lead-status[data-tone="error"] {
  color: #9d3e2c;
}

@media (max-width: 380px) {
  .tour-search-card .hot-offer-actions {
    grid-template-columns: 1fr;
  }

  .tour-result-card .hot-offer-bottom,
  .tour-result-card .hot-offer-details {
    grid-template-columns: 1fr;
  }

  .favorite-action {
    width: 100%;
  }

  .tour-card-favorite {
    width: 42px;
  }
}

.hot-skeleton span,
.hot-skeleton strong,
.hot-skeleton p {
  display: block;
  min-height: 16px;
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(232, 245, 249, 0.8), rgba(255, 255, 255, 0.9), rgba(232, 245, 249, 0.8));
}

.hot-skeleton strong {
  min-height: 28px;
}

.hot-error-state {
  display: grid;
  gap: 10px;
}

.hot-placeholder {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid rgba(246, 166, 35, 0.24);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 248, 237, 0.96), rgba(230, 245, 248, 0.82)),
    var(--color-surface);
  color: var(--color-text);
  box-shadow: 0 14px 36px rgba(18, 50, 58, 0.08);
}

.hot-placeholder-icon {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 14px;
  background: var(--color-sun-soft);
  font-size: 22px;
}

.hot-placeholder strong {
  color: var(--color-primary-dark);
  font-size: 18px;
  line-height: 1.22;
}

.hot-placeholder p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 14px;
  line-height: 1.4;
}

.hot-placeholder-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 2px;
}

.hot-placeholder-actions button {
  min-height: 44px;
}

.travel-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(300px, 86%);
  gap: 18px;
  overflow-x: auto;
  padding: 2px 2px 22px;
  scroll-snap-type: x mandatory;
}

.travel-rail .tour-card {
  grid-template-columns: 1fr;
  min-height: 232px;
  scroll-snap-align: start;
  position: relative;
  border: 0;
  box-shadow: 0 16px 38px rgba(3, 84, 106, 0.16);
}

.travel-rail .tour-card::before {
  content: "Гаряча ціна";
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--brand-orange);
  color: #fff;
  font-size: 12px;
  font-weight: var(--font-weight-extrabold);
}

.favorite-toggle {
  position: absolute;
  right: 14px;
  top: 14px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 22px rgba(3, 84, 106, 0.14);
}

.favorite-toggle::before {
  content: "";
  display: block;
  width: 21px;
  height: 21px;
  margin: auto;
  background: rgba(255, 255, 255, 0.94);
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='m12 21-1.4-1.2C5.4 15.2 2 12.2 2 8.5A5.4 5.4 0 0 1 7.5 3c1.8 0 3.5.8 4.5 2.1A5.7 5.7 0 0 1 16.5 3 5.4 5.4 0 0 1 22 8.5c0 3.7-3.4 6.7-8.6 11.3L12 21Zm0-2.7.1-.1C17 13.9 20 11.2 20 8.5A3.4 3.4 0 0 0 16.5 5c-1.4 0-2.8.9-3.3 2.2h-2.4A3.6 3.6 0 0 0 7.5 5 3.4 3.4 0 0 0 4 8.5c0 2.7 3 5.4 7.9 9.7l.1.1Z'/%3E%3C/svg%3E");
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: contain;
}

.favorite-toggle::before {
  background: var(--brand-blue);
}

.favorite-toggle.active {
  border-color: rgba(255, 111, 0, 0.32);
  background: var(--brand-orange);
}

.favorite-toggle.active::before {
  background: #fff;
  mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='black' d='m12 21-1.4-1.2C5.4 15.2 2 12.2 2 8.5A5.4 5.4 0 0 1 7.5 3c1.8 0 3.5.8 4.5 2.1A5.7 5.7 0 0 1 16.5 3 5.4 5.4 0 0 1 22 8.5c0 3.7-3.4 6.7-8.6 11.3L12 21Z'/%3E%3C/svg%3E");
}

.travel-rail .tour-media {
  min-height: 104px;
}

.travel-rail .tour-content {
  gap: 8px;
}

.travel-rail .tour-bottom strong {
  font-size: 22px;
}

.travel-rail .tour-bottom::before {
  content: "від";
  color: #122852;
  font-size: 12px;
  font-weight: var(--font-weight-extrabold);
  margin-right: -6px;
}

.travel-rail .tour-bottom button {
  min-height: 38px;
  background: var(--brand-orange);
  color: #fff;
  border: 0;
  padding: 0 16px;
}

.travel-rail .tour-bottom::before {
  content: none;
  display: none;
}

.compact-search {
  display: grid;
  grid-template-columns: 54px 1fr;
  align-items: center;
  gap: 14px;
}

.compact-search-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--brand-blue);
  font-size: 28px;
}

.compact-search h2 {
  font-size: 18px;
}

.compact-search p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.manager-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(0, 101, 128, 0.12);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(232, 245, 249, 0.96), rgba(255, 255, 255, 0.92));
  box-shadow: 0 12px 28px rgba(3, 84, 106, 0.08);
}

.manager-card span {
  color: var(--brand-orange);
  font-size: 12px;
  font-weight: var(--font-weight-extrabold);
}

.manager-card h2 {
  margin-top: 3px;
  color: var(--brand-blue);
  font-size: 20px;
  line-height: 1.15;
}

.manager-card p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.manager-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.manager-actions a,
.manager-channel-chip {
  min-height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(0, 101, 128, 0.16);
  border-radius: 8px;
  background: var(--surface);
  color: var(--brand-blue);
  font-size: 12px;
  font-weight: var(--font-weight-extrabold);
  text-decoration: none;
}

.manager-channel-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.manager-channel-chip {
  min-width: 0;
  cursor: pointer;
}

.manager-channel-chip.active {
  border-color: var(--brand-orange);
  background: var(--brand-orange);
  color: #fff;
}

.manager-workspace[hidden] {
  display: none;
}

.manager-dashboard {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.manager-dashboard article {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid rgba(0, 101, 128, 0.12);
  border-radius: 8px;
  background: rgba(232, 245, 249, 0.72);
}

.manager-dashboard strong {
  color: var(--brand-orange);
  font-size: 28px;
  line-height: 1;
}

.manager-dashboard span {
  color: var(--muted);
  font-size: 12px;
  font-weight: var(--font-weight-bold);
  line-height: 1.25;
}

.manager-health-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 12px;
}

.manager-health-grid article {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-2);
}

.manager-health-grid strong {
  color: var(--brand-blue);
  font-size: 20px;
  line-height: 1;
}

.manager-health-grid span {
  color: var(--muted);
  font-size: 11px;
  font-weight: var(--font-weight-bold);
  line-height: 1.2;
}

@media (max-width: 360px) {
  .manager-dashboard,
  .manager-health-grid {
    grid-template-columns: 1fr;
  }
}

.manager-metrics-panel {
  display: grid;
  gap: 12px;
}

.manager-metrics-panel h3 {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.manager-metrics-range {
  display: flex;
  gap: 6px;
}

.manager-metrics-range .is-active {
  border-color: var(--brand-blue);
  color: var(--brand-blue);
  font-weight: var(--font-weight-bold);
}

.manager-metrics-context {
  color: var(--muted);
  font-size: 12px;
}

.manager-metrics-funnel,
.manager-metrics-sources {
  display: grid;
  gap: 8px;
}

.manager-metrics-stage {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-width: 0;
}

.manager-metrics-stage-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: var(--font-weight-bold);
  line-height: 1.2;
}

.manager-metrics-stage-track {
  height: 14px;
  border-radius: 7px;
  background: var(--surface-2);
  overflow: hidden;
}

.manager-metrics-stage-bar {
  height: 100%;
  border-radius: 7px;
  background: var(--brand-blue);
}

.manager-metrics-stage.is-lost .manager-metrics-stage-bar {
  background: var(--brand-orange);
}

.manager-metrics-stage strong {
  color: var(--brand-blue);
  font-size: 13px;
  white-space: nowrap;
}

.manager-metrics-daily {
  display: flex;
  gap: 2px;
  align-items: flex-end;
  height: 72px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-2);
}

.manager-metrics-day {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  height: 100%;
  display: flex;
  align-items: flex-end;
}

.manager-metrics-day-leads {
  width: 100%;
  border-radius: 2px 2px 0 0;
  background: var(--brand-blue);
  opacity: 0.3;
}

.manager-metrics-day-orders {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  border-radius: 2px 2px 0 0;
  background: var(--brand-blue);
}

.manager-alliance-panel {
  display: grid;
  gap: 12px;
}

.manager-hot-offers-panel {
  display: grid;
  gap: 12px;
}

.manager-hotel-content-panel {
  display: grid;
  gap: 12px;
}

.manager-alliance-panel[hidden] {
  display: none;
}

.manager-hot-offers-panel[hidden] {
  display: none;
}

.manager-hotel-content-panel[hidden] {
  display: none;
}

.manager-alliance-copy {
  margin: 0;
  color: var(--color-text-muted, var(--muted));
  font-size: 13px;
  line-height: 1.45;
}

.manager-alliance-controls {
  display: grid;
  gap: 10px;
}

.manager-alliance-result {
  display: grid;
  gap: 10px;
}

/* Payment Ledger console: dense and readable, with no decoration that could
   be mistaken for a status the ledger does not actually carry. */
.lead-status[data-tone="ok"] {
  color: var(--color-success);
}

.manager-payments-panel {
  display: grid;
  gap: 12px;
}

.manager-payments-lookup {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 10px;
}

.manager-payments-lookup label {
  display: grid;
  gap: 4px;
  flex: 1 1 260px;
}

.manager-payments-board {
  display: grid;
  gap: 6px;
}

.manager-payments-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--color-border, var(--border));
  border-radius: 12px;
  background: var(--color-surface-soft, var(--surface-2));
  padding: 8px 10px;
  color: var(--color-text-muted, var(--muted));
  font-size: 12px;
}

.manager-payments-row-id {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: var(--color-text);
  overflow-wrap: anywhere;
}

.manager-payments-row button {
  margin-left: auto;
}

.manager-payments-empty {
  color: var(--color-text-muted, var(--muted));
  font-size: 12px;
}

.manager-payments-details {
  display: grid;
  gap: 12px;
  border-top: 1px solid var(--color-border, var(--border));
  padding-top: 12px;
}

.manager-payments-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.manager-payments-summary h3 {
  flex: 1 1 100%;
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.manager-payments-figure {
  display: grid;
  gap: 2px;
  min-width: 120px;
}

.manager-payments-figure-label {
  color: var(--color-text-muted, var(--muted));
  font-size: 11px;
}

.manager-payments-badge {
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: var(--font-weight-semibold);
}

.manager-payments-badge[data-tone="ok"] {
  background: var(--color-success-soft);
  color: var(--color-success);
}

.manager-payments-badge[data-tone="warn"] {
  background: var(--color-warning-soft);
  color: var(--color-warning);
}

.manager-payments-history {
  display: grid;
  gap: 8px;
}

.manager-payments-event {
  display: grid;
  gap: 4px;
  border: 1px solid var(--color-border, var(--border));
  border-left-width: 3px;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 12px;
}

.manager-payments-event[data-event-type="PAYMENT_CONFIRMED"] {
  border-left-color: var(--color-success);
}

.manager-payments-event[data-event-type="PAYMENT_REPORTED"] {
  border-left-color: var(--color-warning);
}

.manager-payments-event[data-event-type="PAYMENT_REVERSED"],
.manager-payments-event[data-event-type="REFUND_RECORDED"] {
  border-left-color: var(--color-coral);
}

.manager-payments-event-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
}

.manager-payments-event-meta,
.manager-payments-event-audit,
.manager-payments-event-evidence {
  color: var(--color-text-muted, var(--muted));
  font-size: 11px;
  overflow-wrap: anywhere;
}

.manager-payments-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  align-items: end;
  gap: 10px;
}

.manager-payments-form label {
  display: grid;
  gap: 4px;
}

.manager-payments-form .manager-payments-evidence {
  grid-column: 1 / -1;
}

.manager-alliance-status,
.manager-alliance-tech,
.manager-alliance-duplicates {
  border: 1px solid var(--color-border, var(--border));
  border-radius: 12px;
  background: var(--color-surface-soft, var(--surface-2));
  padding: 10px;
  color: var(--color-text-muted, var(--muted));
  font-size: 12px;
  font-weight: var(--font-weight-semibold);
  line-height: 1.35;
}

.manager-alliance-tech {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  overflow-wrap: anywhere;
}

.manager-alliance-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.manager-alliance-grid article {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--color-border, var(--border));
  border-radius: 12px;
  background: var(--color-surface, var(--surface));
}

.manager-alliance-grid strong {
  color: var(--color-primary-dark, var(--brand-blue));
  font-size: 21px;
  line-height: 1;
}

.manager-alliance-grid span,
.manager-alliance-duplicates span {
  color: var(--color-text-muted, var(--muted));
  font-size: 11px;
  font-weight: var(--font-weight-bold);
  line-height: 1.25;
}

.manager-content-summary-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.manager-content-list {
  display: grid;
  gap: 8px;
  border: 1px solid var(--color-border, var(--border));
  border-radius: 12px;
  background: var(--color-surface-soft, var(--surface-2));
  padding: 10px;
}

.manager-content-list > strong {
  color: var(--color-text, var(--ink));
  font-size: 13px;
}

.manager-content-items {
  display: grid;
  gap: 8px;
}

.manager-content-row {
  display: grid;
  gap: 5px;
  min-width: 0;
  border-radius: 10px;
  background: var(--color-surface, #fff);
  padding: 9px;
}

.manager-content-row-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.manager-content-row b {
  min-width: 0;
  color: var(--color-text, var(--ink));
  font-size: 13px;
  line-height: 1.25;
}

.manager-content-row span:not(.lead-status-pill) {
  color: var(--color-text-muted, var(--muted));
  font-size: 11px;
  line-height: 1.35;
}

.manager-content-row .lead-status-pill {
  white-space: nowrap;
}

.manager-content-edit {
  justify-self: start;
  min-height: 34px;
}

.manager-content-editor {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  border: 1px solid var(--color-border, var(--border));
  border-radius: 14px;
  background: var(--color-surface, #fff);
  padding: 12px;
}

.manager-content-editor[hidden] {
  display: none;
}

.manager-content-editor-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.manager-content-editor-head div,
.manager-content-editor label {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.manager-content-editor-head span,
.manager-content-editor label > span {
  color: var(--color-text-muted, var(--muted));
  font-size: 11px;
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
}

.manager-content-editor-head strong {
  color: var(--color-text, var(--ink));
  font-size: 16px;
  line-height: 1.25;
}

.manager-content-editor select,
.manager-content-editor textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--color-border, var(--border));
  border-radius: 10px;
  background: var(--color-surface-soft, #fff);
  color: var(--color-text, var(--ink));
  font: inherit;
  line-height: 1.35;
  padding: 9px 10px;
}

.manager-content-editor textarea {
  resize: vertical;
}

.manager-content-editor-grid {
  display: grid;
  gap: 9px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 520px) {
  .manager-content-editor-grid {
    grid-template-columns: 1fr;
  }
}

.manager-content-chipline {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.manager-content-empty {
  color: var(--color-text-muted, var(--muted));
  font-size: 12px;
}

.manager-alliance-duplicates {
  display: grid;
  gap: 6px;
  background: var(--color-warning-soft, #fff7e8);
}

.manager-alliance-duplicates strong {
  color: var(--color-text, var(--ink));
  font-size: 13px;
}

.manager-crosswalk-review {
  display: grid;
  gap: 10px;
  padding-top: 4px;
}

.panel-heading.compact {
  margin-bottom: 0;
}

.panel-heading.compact h3 {
  margin: 0;
  color: var(--color-text, var(--ink));
  font-size: 17px;
  line-height: 1.2;
}

.manager-crosswalk-review label {
  display: grid;
  gap: 6px;
}

.manager-crosswalk-review label span {
  color: var(--color-text-muted, var(--muted));
  font-size: 12px;
  font-weight: var(--font-weight-bold);
}

.manager-crosswalk-list {
  display: grid;
  gap: 8px;
}

.manager-crosswalk-item {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--color-border, var(--border));
  border-radius: 12px;
  background: var(--color-surface, var(--surface));
}

.manager-crosswalk-top,
.manager-crosswalk-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.manager-crosswalk-top strong {
  color: var(--color-text, var(--ink));
  font-size: 14px;
}

.manager-crosswalk-top span {
  color: var(--color-text-muted, var(--muted));
  font-size: 12px;
  font-weight: var(--font-weight-semibold);
}

.manager-crosswalk-pair {
  display: grid;
  gap: 6px;
}

.manager-crosswalk-pair span {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--color-text, var(--ink));
  font-size: 13px;
  font-weight: var(--font-weight-semibold);
  line-height: 1.35;
}

.ghost-small.danger {
  border-color: rgba(217, 74, 58, 0.32);
  color: var(--color-danger, #d94a3a);
}

@media (max-width: 380px) {
  .manager-alliance-grid {
    grid-template-columns: 1fr;
  }

  .manager-crosswalk-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}

.manager-notification-list {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.manager-notification {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--border);
  border-left: 4px solid var(--brand-orange);
  border-radius: 8px;
  background: var(--surface);
}

.manager-notification strong {
  color: var(--ink);
  font-size: 14px;
}

.manager-notification span,
.manager-notification p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.toggle-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
}

.toggle-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--brand-blue);
}

.panel {
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.module-hero {
  display: grid;
  gap: 12px;
}

.module-hero h2 {
  font-size: 24px;
  line-height: 1.1;
}

.module-hero p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.notification-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.notification-panel div {
  display: grid;
  gap: 4px;
}

.notification-panel strong {
  color: var(--brand-blue);
  font-size: 14px;
  line-height: 1.2;
}

.notification-panel span {
  color: var(--muted);
  font-size: 12px;
  font-weight: var(--font-weight-semibold);
}

.notification-panel .secondary-button {
  min-width: 104px;
}

.profile-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.profile-stats article {
  display: grid;
  gap: 6px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 24px rgba(3, 84, 106, 0.07);
}

.profile-stats strong {
  color: var(--brand-orange);
  font-size: 32px;
  line-height: 1;
}

.profile-stats span {
  color: var(--muted);
  font-size: 13px;
  font-weight: var(--font-weight-extrabold);
  line-height: 1.25;
}

.auth-panel {
  display: grid;
  gap: 12px;
}

.auth-panel .panel-heading span {
  color: #fff;
  background: var(--brand-blue);
}

.auth-user-name {
  margin: 0;
  color: var(--ink);
  font-weight: var(--font-weight-bold);
}

.auth-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.auth-actions .ghost-small {
  min-height: 38px;
}

.phone-login-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(215, 230, 234, 0.9);
  border-radius: 14px;
  background: rgba(240, 247, 248, 0.78);
}

.phone-login-form label {
  min-width: 0;
}

.phone-login-form button,
.phone-login-form small,
.phone-login-form .form-state {
  grid-column: 1 / -1;
}

/* B3: подсказка к полю пожеланий видна всегда — в отличие от placeholder,
   который на телефоне исчезает после первого символа. */
.lead-comment-field small {
  display: block;
  margin: 2px 0 6px;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: var(--font-weight-regular, 400);
  line-height: 1.45;
}

.phone-login-form small,
.form-state {
  color: var(--muted);
  font-size: 12px;
  font-weight: var(--font-weight-semibold);
  line-height: 1.35;
}

@media (max-width: 420px) {
  .phone-login-form {
    grid-template-columns: 1fr;
  }
}

.auth-divider {
  margin: 12px 0 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: var(--font-weight-semibold);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.email-auth-form label {
  grid-column: 1 / -1;
}

/* A signed-in user doesn't need the sign-in forms (any role but guest). */
body[data-role]:not([data-role="guest"]) .phone-login-form,
body[data-role]:not([data-role="guest"]) .auth-divider,
body[data-role]:not([data-role="guest"]) .email-auth-form {
  display: none;
}

.bonus-card {
  display: grid;
  gap: 8px;
  padding: 16px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(0, 101, 128, 0.96), rgba(0, 70, 95, 0.94)),
    var(--brand-blue);
  color: #fff;
  box-shadow: 0 16px 36px rgba(3, 84, 106, 0.18);
}

.bonus-card span,
.bonus-card p,
.bonus-card small {
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: var(--font-weight-extrabold);
}

.bonus-card h2 {
  margin-top: 3px;
  font-size: 22px;
  line-height: 1.1;
}

.bonus-card > strong {
  color: var(--brand-orange);
  font-size: 42px;
  line-height: 1;
}

.bonus-progress {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.bonus-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--brand-orange);
}

.profile-contact-form {
  display: grid;
  gap: 12px;
}

.profile-contact-form textarea {
  min-height: 86px;
  resize: vertical;
}

.lead-list {
  display: grid;
  gap: 10px;
}

.manager-lead-toolbar {
  display: grid;
  grid-template-columns: 0.9fr 1.3fr;
  gap: 10px;
  margin-bottom: 12px;
}

.manager-lead-toolbar label {
  display: grid;
  gap: 5px;
}

.manager-lead-toolbar span {
  color: var(--muted);
  font-size: 11px;
  font-weight: var(--font-weight-extrabold);
}

.manager-lead-toolbar select,
.manager-lead-toolbar input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  padding: 0 12px;
  font: inherit;
  font-size: 13px;
  font-weight: var(--font-weight-extrabold);
}

@media (max-width: 430px) {
  .manager-lead-toolbar {
    grid-template-columns: 1fr;
  }
}

.order-list {
  display: grid;
  gap: 10px;
}

.request-filter-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 2px 8px;
  margin-top: -2px;
  scrollbar-width: none;
}

.request-filter-bar::-webkit-scrollbar {
  display: none;
}

.request-filter-bar button {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(8, 123, 147, 0.15);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--color-primary-dark);
  font: inherit;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
  white-space: nowrap;
}

.request-filter-bar button.active {
  border-color: transparent;
  background: var(--brand-blue);
  color: #ffffff;
}

.request-summary-card {
  display: grid;
  gap: 16px;
  padding: 16px;
  border: 1px solid rgba(8, 123, 147, 0.12);
  border-radius: 20px;
  background:
    radial-gradient(circle at top right, rgba(255, 243, 216, 0.86), transparent 42%),
    linear-gradient(135deg, rgba(230, 245, 248, 0.72), rgba(255, 255, 255, 0.94));
  box-shadow: 0 18px 42px rgba(18, 50, 58, 0.08);
}

.request-summary-card > div:first-child {
  display: grid;
  gap: 6px;
}

.request-summary-card span {
  color: var(--color-primary-dark);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-extrabold);
}

.request-summary-card strong {
  color: var(--color-text);
  font-size: 20px;
  font-weight: var(--font-weight-extrabold);
  line-height: 1.18;
}

.request-summary-card p {
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
  line-height: 1.42;
}

.request-summary-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.request-summary-stats article {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(8, 123, 147, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
}

.request-summary-stats article strong {
  color: var(--color-primary);
  font-size: 22px;
}

.request-summary-stats article span {
  color: var(--color-text-muted);
  font-size: 11px;
}

@media (max-width: 430px) {
  .request-filter-bar { padding-right: 10px; }
}

.lead-item {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}

.lead-item.closed {
  opacity: 0.74;
}

.view[data-view="profile"] section:has(#profileLeadListLegacy),
.view[data-view="profile"] section:has(#profileOrderListLegacy) {
  display: none;
}

.lead-item-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
}

.lead-item strong {
  color: var(--brand-blue);
  font-size: 14px;
  line-height: 1.3;
}

.lead-status-pill {
  flex: 0 0 auto;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--soft-blue);
  color: var(--brand-blue);
  font-size: 11px;
  font-weight: var(--font-weight-extrabold);
}

.lead-sla {
  flex: 0 0 auto;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 176, 32, 0.16);
  color: #8a5a00;
  font-size: 11px;
  font-weight: var(--font-weight-extrabold);
  white-space: nowrap;
}

.lead-sla.overdue {
  background: rgba(214, 48, 49, 0.14);
  color: #b3261e;
}

.manager-persona {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--color-primary-soft);
  margin-bottom: 10px;
}

.manager-persona-avatar {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-weight: var(--font-weight-extrabold);
  font-size: 14px;
}

.manager-persona-text {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.manager-persona-text strong {
  font-size: 14px;
  color: var(--color-primary-dark);
}

.manager-persona-text small {
  color: var(--color-text-muted);
}

.telegram-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}

.telegram-actions .secondary-button:only-child,
.telegram-actions .primary-button:only-child {
  grid-column: 1 / -1;
}

.lead-status-pill.in_work {
  background: rgba(255, 91, 0, 0.1);
  color: var(--brand-orange);
}

.lead-status-pill.assigned,
.lead-status-pill.contacted,
.lead-status-pill.waiting_client,
.lead-status-pill.checking_availability,
.lead-status-pill.offer_sent {
  background: rgba(0, 101, 128, 0.1);
  color: var(--brand-blue);
}

.lead-status-pill.converted_to_order {
  background: rgba(0, 128, 96, 0.1);
  color: #08715f;
}

.lead-status-pill.lost {
  background: rgba(255, 91, 0, 0.08);
  color: var(--brand-orange);
}

.lead-status-pill.closed {
  background: rgba(12, 24, 49, 0.08);
  color: var(--muted);
}

.lead-source {
  width: max-content;
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(232, 245, 249, 0.75);
  color: var(--brand-blue);
  font-size: 11px;
  font-weight: var(--font-weight-extrabold);
}

.lead-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.lead-detail.warning {
  grid-column: 1 / -1;
  border-color: rgba(204, 55, 41, 0.22);
  background: rgba(255, 91, 80, 0.08);
}

.lead-detail.warning span,
.lead-detail.warning strong {
  color: #a8352a;
}

.manager-lead-item {
  border-radius: 18px;
  border-color: rgba(8, 123, 147, 0.14);
  background:
    radial-gradient(circle at top right, rgba(230, 245, 248, 0.82), transparent 38%),
    var(--surface);
  box-shadow: 0 14px 34px rgba(18, 50, 58, 0.08);
}

.manager-lead-item .lead-source {
  width: fit-content;
  padding: 5px 9px;
  border: 1px solid rgba(8, 123, 147, 0.14);
  border-radius: 999px;
  background: var(--color-primary-soft);
  color: var(--color-primary-dark);
  font-size: 12px;
  font-weight: var(--font-weight-extrabold);
}

.manager-lead-next-step {
  display: grid;
  gap: 4px;
  padding: 11px 12px;
  border: 1px solid rgba(246, 166, 35, 0.22);
  border-radius: 14px;
  background: var(--color-sun-soft);
}

.manager-lead-next-step.detail {
  margin-bottom: 10px;
}

.manager-lead-next-step span {
  color: var(--color-warning);
  font-size: 11px;
  font-weight: var(--font-weight-extrabold);
}

.manager-lead-next-step strong {
  color: var(--text);
  font-size: 14px;
  line-height: 1.35;
}

.manager-lead-item .lead-actions {
  padding-top: 2px;
  align-items: stretch;
  gap: 8px;
}

.manager-lead-item .lead-actions .ghost-small {
  flex: 1 1 calc(50% - 8px);
  justify-content: center;
  min-height: 38px;
}

.manager-lead-item .lead-actions .ghost-small.danger {
  border-color: rgba(204, 55, 41, 0.24);
  color: #a8352a;
  background: rgba(255, 91, 80, 0.06);
}

.client-lead-item {
  border-radius: 18px;
  border-color: rgba(8, 123, 147, 0.12);
  background:
    radial-gradient(circle at top right, rgba(255, 248, 237, 0.92), transparent 44%),
    var(--surface);
  box-shadow: 0 14px 34px rgba(18, 50, 58, 0.07);
}

.client-lead-item .lead-item-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.client-lead-item .lead-item-top strong {
  font-size: 18px;
  line-height: 1.18;
}

.client-lead-item .lead-status-pill {
  width: fit-content;
}

.client-lead-item .lead-source {
  width: fit-content;
  padding: 5px 9px;
  border: 1px solid rgba(8, 123, 147, 0.13);
  border-radius: 999px;
  background: var(--color-primary-soft);
  color: var(--color-primary-dark);
  font-size: 12px;
}

.client-lead-details {
  grid-template-columns: 1fr;
}

.client-lead-details .lead-detail {
  padding: 0;
  border-radius: 0;
  background: transparent;
}

.client-lead-details .lead-detail span {
  color: var(--color-text-soft);
  font-size: 11px;
}

.client-lead-details .lead-detail strong {
  font-size: 14px;
  line-height: 1.35;
}

.lead-detail {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 10px;
  border-radius: 8px;
  background: rgba(232, 245, 249, 0.55);
}

.lead-detail span {
  color: var(--muted);
  font-size: 10px;
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
}

.lead-detail strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.25;
  text-overflow: ellipsis;
}

.status-timeline {
  display: grid;
  grid-column: 1 / -1;
  gap: 5px;
  padding: 10px;
  border: 1px solid rgba(0, 101, 128, 0.1);
  border-radius: 8px;
  background: rgba(232, 245, 249, 0.62);
}

.status-timeline > span {
  color: var(--brand-blue);
  font-size: 10px;
  font-weight: var(--font-weight-extrabold);
  text-transform: uppercase;
}

.status-timeline small {
  color: var(--muted);
  font-size: 12px;
  font-weight: var(--font-weight-semibold);
  line-height: 1.35;
}

.client-next-step {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid rgba(246, 166, 35, 0.22);
  border-left: 4px solid var(--color-sun);
  border-radius: 14px;
  background: var(--color-sun-soft);
}

.client-next-step span {
  color: var(--color-primary-dark);
  font-size: 11px;
  font-weight: var(--font-weight-extrabold);
  text-transform: uppercase;
}

.client-next-step strong {
  color: var(--color-text);
  font-size: 13px;
  line-height: 1.3;
}

.client-validation-card {
  display: grid;
  gap: 4px;
  margin-top: 8px;
  padding: 10px;
  border: 1px solid rgba(32, 163, 107, 0.18);
  border-radius: 12px;
  background: var(--color-success-soft);
}

.client-validation-card[data-tone="changed"] {
  border-color: rgba(233, 154, 22, 0.26);
  background: var(--color-warning-soft);
}

.client-validation-card[data-tone="unavailable"],
.client-validation-card[data-tone="error"] {
  border-color: rgba(217, 74, 58, 0.22);
  background: var(--color-danger-soft);
}

.client-lead-details-sheet {
  gap: 14px;
  background:
    radial-gradient(circle at top right, rgba(255, 243, 216, 0.78), transparent 34%),
    linear-gradient(180deg, #ffffff, #fbfdfc);
}

.client-lead-details-sheet .lead-sheet-header {
  align-items: start;
}

.client-lead-details-sheet .lead-sheet-header span {
  color: var(--color-primary-dark);
}

.client-lead-details-sheet .lead-offer-summary {
  max-width: 31rem;
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
  line-height: 1.45;
}

.client-lead-details-sheet #leadDetailsStatus {
  width: fit-content;
}

.client-lead-details-sheet #leadDetailsNextStep {
  display: grid;
  gap: 8px;
}

.lead-detail-overview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.lead-detail-overview .lead-detail {
  border: 1px solid rgba(8, 123, 147, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
}

.lead-contact-grid {
  grid-template-columns: 1fr;
}

.client-lead-details-sheet .status-timeline {
  border-radius: 14px;
  background: rgba(241, 247, 248, 0.78);
}

.client-lead-details-sheet .order-detail-actions .ghost-small {
  justify-content: center;
  min-height: 46px;
  width: 100%;
}

.trip-details-sheet {
  gap: 14px;
  background:
    radial-gradient(circle at top right, rgba(230, 245, 248, 0.92), transparent 36%),
    linear-gradient(180deg, #ffffff, #fbfdfc);
}

.trip-details-sheet .lead-sheet-header span {
  color: var(--color-primary-dark);
}

.trip-details-sheet .lead-offer-summary {
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
  line-height: 1.45;
}

.trip-details-sheet #orderDetailsStatus {
  width: fit-content;
}

.trip-details-sheet #orderDetailsNextStep {
  display: grid;
}

.trip-detail-overview .lead-detail {
  border: 1px solid rgba(8, 123, 147, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
}

.trip-details-sheet .order-detail-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.trip-details-sheet .order-detail-blocks {
  gap: 8px;
}

.trip-details-sheet .order-detail-block {
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
}

.trip-details-sheet .order-detail-block.ready {
  border-color: rgba(32, 163, 107, 0.22);
  background: var(--color-success-soft);
}

.trip-details-sheet .order-document-empty {
  border-radius: 14px;
  background: var(--color-surface-soft);
}

@media (max-width: 390px) {
  .lead-detail-overview {
    grid-template-columns: 1fr;
  }
}

.order-next-step {
  border-left-color: var(--accent);
  background: rgba(0, 122, 143, 0.09);
}

.lead-item p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.lead-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.lead-status-control {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.lead-status-control > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: var(--font-weight-extrabold);
}

.manager-comments {
  display: grid;
  grid-column: 1 / -1;
  gap: 5px;
  padding: 10px;
  border: 1px solid rgba(0, 101, 128, 0.1);
  border-radius: 8px;
  background: rgba(232, 245, 249, 0.52);
}

.manager-comments > span {
  color: var(--brand-blue);
  font-size: 10px;
  font-weight: var(--font-weight-extrabold);
  text-transform: uppercase;
}

.manager-comments small {
  color: var(--muted);
  font-size: 12px;
  font-weight: var(--font-weight-semibold);
  line-height: 1.35;
}

.manager-diagnostics {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid rgba(0, 101, 128, 0.12);
  border-radius: 8px;
  background: rgba(232, 245, 249, 0.62);
}

.manager-diagnostics span {
  color: var(--brand-blue);
  font-size: 10px;
  font-weight: var(--font-weight-extrabold);
  text-transform: uppercase;
}

.manager-diagnostics strong {
  color: var(--ink);
  font-size: 12px;
  line-height: 1.35;
}

.manager-diagnostics[data-tone="available"] {
  border-color: rgba(32, 163, 107, 0.24);
  background: var(--color-success-soft);
}

.manager-diagnostics[data-tone="changed"] {
  border-color: rgba(255, 107, 74, 0.24);
  background: var(--color-coral-soft);
}

.manager-diagnostics[data-tone="price_sanity_warning"] {
  border-color: rgba(204, 55, 41, 0.24);
  background: rgba(255, 241, 238, 0.96);
}

.manager-diagnostics[data-tone="price_sanity_warning"] span,
.manager-diagnostics[data-tone="price_sanity_warning"] strong {
  color: #a8352a;
}

.manager-diagnostics[data-tone="unavailable"],
.manager-diagnostics[data-tone="error"] {
  border-color: rgba(217, 74, 58, 0.24);
  background: var(--color-danger-soft);
}

.manager-lead-detail-form {
  display: grid;
  gap: 12px;
}

.manager-lead-detail-form label {
  display: grid;
  gap: 7px;
}

.manager-lead-detail-form label > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: var(--font-weight-extrabold);
}

.manager-lead-detail-form select,
.manager-lead-detail-form textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(0, 101, 128, 0.18);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  padding: 10px 12px;
  font: inherit;
  font-size: 13px;
  font-weight: var(--font-weight-extrabold);
}

.manager-lead-detail-form textarea {
  min-height: 86px;
  resize: vertical;
}

.manager-order-control {
  display: grid;
  flex: 1 0 100%;
  gap: 8px;
}

.manager-order-control > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: var(--font-weight-extrabold);
}

.manager-order-control input {
  min-height: 42px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: var(--font-weight-semibold);
}

.manager-order-control .primary-ghost {
  width: 100%;
}

.manager-comment-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  width: 100%;
}

.manager-comment-form input {
  min-height: 34px;
  border: 1px solid rgba(0, 101, 128, 0.18);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  padding: 0 10px;
  font: inherit;
  font-size: 12px;
  font-weight: var(--font-weight-extrabold);
}

@media (max-width: 430px) {
  .manager-comment-form {
    grid-template-columns: 1fr;
  }
}

.ghost-small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(0, 101, 128, 0.2);
  border-radius: 8px;
  background: rgba(232, 245, 249, 0.75);
  color: var(--brand-blue);
  font-size: 12px;
  font-weight: var(--font-weight-extrabold);
  text-decoration: none;
}

.ghost-small:disabled {
  opacity: 0.65;
}

.ghost-small.danger {
  border-color: rgba(255, 91, 0, 0.24);
  background: rgba(255, 91, 0, 0.08);
  color: var(--brand-orange);
}

.lead-item small {
  color: var(--muted);
  font-size: 11px;
  font-weight: var(--font-weight-extrabold);
}

@media (max-width: 430px) {
  .lead-details {
    grid-template-columns: 1fr;
  }
}

.order-item {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}

.trip-item {
  gap: 13px;
  padding: 16px;
  border-radius: 20px;
  border-color: rgba(8, 123, 147, 0.12);
  background:
    radial-gradient(circle at top right, rgba(255, 243, 216, 0.72), transparent 40%),
    var(--surface);
  box-shadow: 0 16px 38px rgba(18, 50, 58, 0.08);
}

.trip-item .order-next-step {
  border-left-color: var(--color-primary);
  background: var(--color-primary-soft);
}

.order-item-top {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: start;
}

.order-item-top div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.order-item-top div > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: var(--font-weight-extrabold);
}

.order-item-top strong {
  overflow: hidden;
  color: var(--brand-blue);
  font-size: 14px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.order-status-pill {
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(0, 101, 128, 0.1);
  color: var(--brand-blue);
  font-size: 11px;
  font-weight: var(--font-weight-extrabold);
  white-space: nowrap;
}

.order-status-pill.waiting_for_payment,
.order-status-pill.documents_pending {
  background: rgba(255, 91, 0, 0.1);
  color: var(--brand-orange);
}

.order-status-pill.paid,
.order-status-pill.documents_ready,
.order-status-pill.completed {
  background: rgba(0, 128, 96, 0.1);
  color: #08715f;
}

.order-status-pill.cancelled {
  background: rgba(12, 24, 49, 0.08);
  color: var(--muted);
}

.order-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.trip-readiness {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(8, 123, 147, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
}

.trip-readiness > span {
  color: var(--color-primary-dark);
  font-size: 12px;
  font-weight: var(--font-weight-extrabold);
}

.trip-readiness > div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.trip-readiness small {
  padding: 6px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: var(--font-weight-bold);
}

.trip-readiness small.ready {
  background: var(--color-success-soft);
  color: var(--color-success);
}

.trip-readiness small.pending {
  background: var(--color-surface-soft);
  color: var(--color-text-muted);
}

.order-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.manager-order-actions {
  align-items: center;
}

.manager-order-actions > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: var(--font-weight-extrabold);
}

.manager-status-select {
  min-height: 36px;
  border: 1px solid rgba(0, 101, 128, 0.2);
  border-radius: 8px;
  background: var(--surface);
  color: var(--brand-blue);
  padding: 0 10px;
  font: inherit;
  font-size: 12px;
  font-weight: var(--font-weight-bold);
}

.primary-ghost {
  border-color: rgba(0, 101, 128, 0.28);
  background: rgba(0, 101, 128, 0.08);
  color: var(--brand-blue);
}

@media (max-width: 430px) {
  .order-details,
  .order-item-top {
    grid-template-columns: 1fr;
  }
}

.saved-search-list {
  display: grid;
  gap: 10px;
}

.saved-search-item {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}

.saved-search-top {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 10px;
}

.saved-search-title {
  display: grid;
  gap: 4px;
}

.saved-search-title > strong {
  font-size: 15px;
  line-height: 1.25;
}

.saved-search-title span {
  color: var(--muted);
  font-size: 12px;
  font-weight: var(--font-weight-extrabold);
}

.saved-search-status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(0, 101, 128, 0.1);
  color: var(--brand-blue);
  font-size: 11px;
  font-weight: var(--font-weight-extrabold);
  white-space: nowrap;
}

.saved-search-status.paused {
  background: rgba(255, 91, 0, 0.1);
  color: var(--brand-orange);
}

.saved-search-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.saved-search-detail {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 10px;
  border-radius: 8px;
  background: rgba(232, 245, 249, 0.65);
}

button.saved-search-detail {
  width: 100%;
  border: 0;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

button.saved-search-detail:focus-visible {
  outline: 2px solid rgba(0, 101, 128, 0.45);
  outline-offset: 2px;
}

.saved-search-detail span {
  color: var(--muted);
  font-size: 10px;
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
}

.saved-search-detail strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  font-weight: var(--font-weight-extrabold);
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.saved-search-detail.found {
  background: rgba(255, 91, 0, 0.08);
}

.saved-search-detail.found strong {
  color: var(--brand-orange);
}

.saved-search-detail.found.has-results {
  border: 1px solid rgba(255, 91, 0, 0.22);
  background: rgba(255, 91, 0, 0.12);
}

.saved-search-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.saved-search-actions .ghost-small {
  width: 100%;
  padding: 0 8px;
}

.monitor-filter-banner {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  padding: 10px;
  border-radius: 8px;
  background: rgba(232, 245, 249, 0.75);
}

.monitor-filter-banner div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.monitor-filter-banner span {
  color: var(--muted);
  font-size: 11px;
  font-weight: var(--font-weight-bold);
}

.monitor-filter-banner strong {
  overflow: hidden;
  color: var(--brand-blue);
  font-size: 13px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.panel-heading h2 {
  font-size: 17px;
  line-height: 1.2;
}

.panel-heading span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-align: right;
}

.search-form {
  display: grid;
  gap: 8px;
}

.search-hero {
  display: grid;
  gap: 5px;
  padding: 4px 2px 0;
}

.search-hero h2 {
  color: var(--brand-blue);
  font-size: 28px;
  line-height: 1.05;
}

.search-hero p {
  max-width: 34ch;
  color: var(--muted);
  font-size: 14px;
  font-weight: var(--font-weight-medium);
  line-height: 1.45;
}

.search-panel-premium {
  border-color: rgba(207, 225, 229, 0.72);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(255, 248, 237, 0.62)),
    var(--color-surface);
  box-shadow: 0 18px 42px rgba(16, 54, 64, 0.07);
}

.tour-search-form {
  gap: 13px;
}

.search-primary-fields,
.search-pair {
  display: grid;
  gap: 9px;
}

.search-pair {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.search-field {
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: var(--font-weight-semibold);
}

.search-field span {
  padding-left: 2px;
}

.search-field input,
.search-field select {
  min-height: 52px;
  border-color: rgba(215, 230, 234, 0.9);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  font-size: 15px;
}

.search-field-destination select {
  font-weight: var(--font-weight-bold);
}

.advanced-search {
  max-width: 100%;
  overflow: hidden;
  border: 1px solid rgba(215, 230, 234, 0.68);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.58);
}

.advanced-search summary {
  position: relative;
  display: grid;
  gap: 3px;
  min-height: 54px;
  padding: 13px 42px 13px 14px;
  cursor: pointer;
  color: var(--brand-blue);
  font-size: 14px;
  font-weight: var(--font-weight-bold);
  list-style: none;
}

.advanced-search summary::-webkit-details-marker {
  display: none;
}

.advanced-search summary::after {
  content: "+";
  position: absolute;
  top: 17px;
  right: 16px;
  color: var(--accent);
  font-size: 20px;
  line-height: 1;
}

.advanced-search[open] summary::after {
  content: "-";
}

.advanced-search summary small {
  max-width: 100%;
  color: var(--muted);
  font-size: 12px;
  font-weight: var(--font-weight-medium);
  line-height: 1.25;
}

.advanced-search-body {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 0 10px 12px;
}

.child-ages-field[hidden] {
  display: none;
}

.tour-child-age-selects {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.tour-child-age-select {
  display: grid;
  gap: 5px;
}

.tour-child-age-select span {
  color: var(--color-text-muted, var(--muted));
  font-size: 11px;
  font-weight: var(--font-weight-bold);
}

.tour-child-age-select select {
  width: 100%;
  min-height: 48px;
}

@media (max-width: 380px) {
  .tour-child-age-selects {
    grid-template-columns: 1fr;
  }
}

.compact-currency-field {
  max-width: 150px;
}

.search-quick-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin: 1px -13px 0;
  padding: 2px 13px 5px;
  scrollbar-width: none;
}

.search-quick-chips::-webkit-scrollbar {
  display: none;
}

.search-quick-chips button {
  flex: 0 0 auto;
  min-height: 38px;
  border: 1px solid rgba(198, 219, 224, 0.9);
  border-radius: 999px;
  background: #fff;
  color: var(--brand-blue);
  padding: 0 13px;
  font-size: 13px;
  font-weight: var(--font-weight-bold);
}

.search-quick-chips button.active {
  border-color: var(--brand-orange);
  background: rgba(255, 112, 0, 0.1);
  color: var(--brand-orange);
}

.search-cta {
  display: grid;
  gap: 8px;
}

.search-submit-button {
  min-height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--brand-orange), #ff8b2a);
  font-size: 16px;
  box-shadow: 0 16px 30px rgba(255, 112, 0, 0.26);
}

.link-button {
  min-height: 42px;
  border: 0;
  background: transparent;
  color: var(--brand-blue);
  padding: 0 8px;
  font-size: 14px;
  font-weight: var(--font-weight-bold);
}

/* P1B ref-driven hotel handoff banner in the radar wizard (canary fix). */
.p1b-entry-note {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--surface-muted, rgba(11, 127, 134, 0.08));
  border: 1px solid var(--border);
  display: grid;
  gap: 4px;
  font-size: 14px;
  line-height: 1.4;
}
.p1b-entry-note strong { color: var(--color-primary-dark, var(--brand-blue)); }
.p1b-entry-note .p1b-entry-hotel { font-weight: var(--font-weight-bold); }
.p1b-entry-note .link-button { justify-self: start; padding-left: 0; }
.p1b-entry-error {
  background: rgba(200, 60, 60, 0.08);
  border-color: rgba(200, 60, 60, 0.35);
}
.p1b-entry-error strong { color: #b23a3a; }

.search-helper {
  color: var(--muted);
  font-size: 13px;
  font-weight: var(--font-weight-medium);
  line-height: 1.4;
}

.compact-select.is-hidden,
.hot-filter-chips.is-hidden,
.compact-select[hidden],
.hot-filter-chips[hidden] {
  display: none;
}

.tour-search-empty-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(215, 230, 234, 0.74);
  border-radius: 20px;
  background:
    radial-gradient(circle at top right, rgba(255, 243, 216, 0.95), transparent 46%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(241, 247, 248, 0.72));
  box-shadow: 0 16px 34px rgba(18, 50, 58, 0.07);
}

.tour-search-empty-card.after-search {
  border-color: rgba(246, 166, 35, 0.28);
  background:
    radial-gradient(circle at top right, rgba(255, 243, 216, 0.86), transparent 44%),
    #fff;
}

.tour-empty-icon {
  position: relative;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--color-primary-soft);
  color: var(--brand-blue);
  font-size: 28px;
  font-weight: var(--font-weight-extrabold);
  line-height: 1;
}

.tour-search-empty-card.initial .tour-empty-icon::before {
  content: "";
  width: 18px;
  height: 18px;
  border: 3px solid currentColor;
  border-radius: 50%;
}

.tour-search-empty-card.initial .tour-empty-icon::after {
  content: "";
  position: absolute;
  width: 13px;
  height: 3px;
  border-radius: 999px;
  background: currentColor;
  transform: translate(12px, 12px) rotate(45deg);
}

.tour-search-empty-card.after-search .tour-empty-icon {
  background: var(--color-sun-soft);
  color: var(--color-warning);
}

.tour-search-empty-card[data-reason="timeout"] {
  border-color: rgba(8, 123, 147, 0.18);
  background:
    radial-gradient(circle at top right, rgba(230, 245, 248, 0.96), transparent 46%),
    linear-gradient(180deg, #fff, rgba(255, 248, 237, 0.58));
}

.tour-search-empty-card[data-reason="timeout"] .tour-empty-icon {
  background: var(--color-primary-soft);
  color: var(--brand-blue);
}

.tour-search-empty-card[data-reason="error"] {
  border-color: rgba(217, 74, 58, 0.2);
}

.tour-search-empty-card[data-reason="error"] .tour-empty-icon {
  background: var(--color-danger-soft);
  color: var(--color-danger);
}

.tour-empty-copy {
  display: grid;
  gap: 6px;
}

.tour-empty-copy h3 {
  max-width: 12em;
  color: var(--text);
  font-size: 21px;
  font-weight: var(--font-weight-extrabold);
  line-height: 1.16;
}

.tour-empty-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: var(--font-weight-medium);
  line-height: 1.45;
}

.tour-empty-actions {
  display: grid;
  gap: 9px;
}

.tour-empty-actions .primary-button,
.tour-empty-actions .secondary-button {
  min-height: 48px;
  border-radius: 14px;
}

.tour-empty-hints {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin: 0 -6px -2px;
  padding: 0 6px 2px;
  scrollbar-width: none;
}

.tour-empty-hints::-webkit-scrollbar {
  display: none;
}

.tour-empty-hints span {
  flex: 0 0 auto;
  min-height: 32px;
  display: inline-grid;
  place-items: center;
  padding: 0 11px;
  border: 1px solid rgba(8, 123, 147, 0.14);
  border-radius: 999px;
  background: rgba(230, 245, 248, 0.78);
  color: var(--brand-blue);
  font-size: 12px;
  font-weight: var(--font-weight-bold);
}

@media (max-width: 360px) {
  .search-pair {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 430px) {
  .advanced-search .search-pair {
    grid-template-columns: 1fr;
  }

  .advanced-search .search-field,
  .advanced-search input,
  .advanced-search select,
  .compact-currency-field {
    max-width: 100%;
    min-width: 0;
  }
}

.wizard-progress {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 0 0 14px;
}

.wizard-progress span {
  height: 5px;
  border-radius: 999px;
  background: #dcebed;
}

.wizard-progress span.active {
  background: var(--brand-orange);
}

.wizard-step {
  display: none;
  gap: 12px;
}

.wizard-step.active {
  display: grid;
}

.wizard-step h3 {
  font-size: 22px;
  line-height: 1.12;
}

.wizard-summary {
  display: grid;
  gap: 4px;
  padding: 12px;
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--text);
}

.wizard-summary span {
  color: var(--muted);
  font-size: 12px;
  font-weight: var(--font-weight-extrabold);
}

.wizard-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.wizard-actions .hidden {
  display: none;
}

.secondary-button {
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--brand-blue);
  font-size: 15px;
  font-weight: var(--font-weight-bold);
}

label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: var(--font-weight-extrabold);
}

.field-combobox {
  position: relative;
  display: grid;
  gap: 5px;
}

.field-combobox > label {
  display: block;
}

input,
select {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  padding: 0 12px;
  outline: none;
}

.age-group {
  display: grid;
  gap: 8px;
}

.age-group > span,
.age-field span,
.age-empty {
  color: var(--muted);
  font-size: 12px;
  font-weight: var(--font-weight-extrabold);
}

.age-fields {
  display: grid;
  gap: 8px;
}

.age-field {
  display: grid;
  grid-template-columns: minmax(88px, 0.9fr) 1fr;
  align-items: center;
  gap: 8px;
}

.age-empty {
  min-height: 38px;
  display: grid;
  align-items: center;
  padding: 0 12px;
  border: 1px dashed var(--border);
  border-radius: 8px;
  background: var(--surface-2);
}

.suggestions {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 20;
  display: none;
  max-height: 280px;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 30px rgba(18, 50, 58, 0.14);
}

.suggestions.open {
  display: block;
}

.search-field .tour-hotel-suggestions {
  top: calc(100% + 6px);
  border-radius: 14px;
}

.suggestion-group {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 7px 12px 5px;
  background: var(--surface-2);
  color: var(--brand-blue);
  font-size: 11px;
  font-weight: var(--font-weight-extrabold);
  text-transform: uppercase;
}

.suggestion-item {
  width: 100%;
  min-height: 42px;
  border: 0;
  border-bottom: 1px solid #edf4f5;
  background: #fff;
  color: var(--text);
  padding: 8px 12px;
  text-align: left;
}

.suggestion-item:last-child {
  border-bottom: 0;
}

.suggestion-item strong {
  display: block;
  font-size: 13px;
  line-height: 1.25;
}

.suggestion-item span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: var(--font-weight-semibold);
}

.suggestion-item:hover,
.suggestion-item:focus {
  background: var(--surface-2);
}

input:focus,
select:focus {
  border-color: var(--accent-2);
  box-shadow: 0 0 0 3px rgba(16, 183, 197, 0.16);
}

.grid-two,
.grid-three {
  display: grid;
  gap: 8px;
}

.grid-two {
  grid-template-columns: 1fr 1fr;
}

.grid-three {
  grid-template-columns: 1fr 1fr 1fr;
}

.primary-button {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--brand-blue), var(--accent-2));
  color: #fff;
  font-size: 15px;
  font-weight: var(--font-weight-bold);
  box-shadow: 0 12px 28px rgba(7, 111, 134, 0.24);
}

.text-button {
  border: 0;
  background: transparent;
  color: var(--accent);
  font-size: 13px;
  font-weight: var(--font-weight-extrabold);
}

.results-list {
  display: grid;
  gap: 10px;
}

.tour-card {
  position: relative;
  display: grid;
  grid-template-columns: 88px 1fr;
  min-height: 112px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
}

.tour-media {
  background:
    linear-gradient(150deg, rgba(7, 111, 134, 0.14), rgba(255, 133, 13, 0.18)),
    url("https://images.unsplash.com/photo-1507525428034-b723cf961d3e?auto=format&fit=crop&w=300&q=70");
  background-position: center;
  background-size: cover;
}

.travel-rail .tour-card:nth-child(1) .tour-media {
  background:
    linear-gradient(180deg, rgba(2, 48, 61, 0.06), rgba(2, 48, 61, 0.28)),
    url("/assets/resort-hot-1.png");
  background-position: center;
  background-size: cover;
}

.travel-rail .tour-card:nth-child(2) .tour-media {
  background:
    linear-gradient(180deg, rgba(2, 48, 61, 0.04), rgba(2, 48, 61, 0.26)),
    url("/assets/resort-hot-2.png");
  background-position: center;
  background-size: cover;
}

.travel-rail .tour-card:nth-child(3) .tour-media {
  background:
    linear-gradient(180deg, rgba(2, 48, 61, 0.04), rgba(2, 48, 61, 0.26)),
    url("https://images.unsplash.com/photo-1571896349842-33c89424de2d?auto=format&fit=crop&w=700&q=75");
  background-position: center;
  background-size: cover;
}

.tour-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  padding: 10px;
}

.tour-content h3 {
  font-size: 15px;
  line-height: 1.2;
}

.tour-content p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.tour-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.tour-bottom strong {
  color: var(--coral);
  font-size: 16px;
  line-height: 1.15;
}

.tour-bottom button {
  min-height: 34px;
  border: 1px solid rgba(7, 111, 134, 0.18);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--accent);
  padding: 0 11px;
  font-size: 12px;
  font-weight: var(--font-weight-bold);
}

.lead-modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  align-items: end;
  justify-items: center;
  padding: 16px;
  height: 100dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  background: rgba(18, 50, 58, 0.38);
}

body.modal-open {
  position: fixed;
  width: 100%;
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}

.lead-modal.hidden {
  display: none;
}

.lead-sheet {
  width: min(100%, 430px);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 18px 18px 8px 8px;
  background: var(--surface);
  box-shadow: 0 -18px 46px rgba(18, 50, 58, 0.18);
}

.lead-recovery-actions {
  display: grid;
  gap: 10px;
}

.recovery-sheet-card {
  max-height: min(86vh, 760px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.recovery-sheet-content {
  display: grid;
  gap: 14px;
}

.recovery-sheet-content h2,
.recovery-sheet-content p {
  margin: 0;
}

.price-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.price-compare span,
.recovery-alternative-card {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  padding: 12px;
}

.recovery-alternatives {
  display: grid;
  gap: 12px;
}

.recovery-alternative-card {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 12px;
}

.recovery-alternative-card > img {
  width: 92px;
  height: 100%;
  min-height: 118px;
  object-fit: cover;
  border-radius: 14px;
}

.recovery-alternative-card h4 {
  margin: 6px 0 4px;
  font-size: var(--font-size-lg);
}

.recovery-alternative-card p {
  font-size: var(--font-size-sm);
}

.recovery-badges,
.recovery-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.recovery-badges span {
  border-radius: 999px;
  background: var(--color-sun-soft);
  color: var(--color-warning);
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-xs);
  padding: 5px 9px;
}

.recovery-price {
  display: block;
  margin-top: 8px;
  color: var(--color-coral);
  font-size: var(--font-size-lg);
}

.recovery-card-actions {
  margin-top: 10px;
}

.price-status-note {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: var(--font-weight-medium);
  line-height: 1.3;
}

.lead-sheet-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.lead-sheet-header span,
.lead-status {
  color: var(--muted);
  font-size: 12px;
  font-weight: var(--font-weight-extrabold);
}

.lead-sheet-header h2 {
  margin-top: 3px;
  color: var(--brand-blue);
  font-size: 22px;
  line-height: 1.15;
}

.lead-offer-summary {
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--soft-blue);
  color: var(--brand-blue);
  font-size: 13px;
  font-weight: var(--font-weight-extrabold);
  line-height: 1.35;
}

.lead-progress {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 6px;
  border: 1px solid rgba(8, 123, 147, 0.12);
  border-radius: 14px;
  background: rgba(241, 247, 248, 0.78);
}

.lead-progress span {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 6px;
  border-radius: 10px;
  color: var(--color-text-muted);
  font-size: 12px;
  font-weight: var(--font-weight-bold);
  line-height: 1.15;
  text-align: center;
}

.lead-progress span.active {
  background: var(--color-primary);
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(8, 123, 147, 0.18);
}

.lead-progress[data-state="created"] span.active {
  background: var(--color-success);
}

.lead-progress[data-state="changed"] span.active,
.lead-progress[data-state="checking"] span.active {
  background: var(--color-sun);
  color: var(--color-text);
}

.lead-progress[data-state="unavailable"] span.active,
.lead-progress[data-state="error"] span.active {
  background: var(--color-danger);
  color: #ffffff;
}

.lead-validation-card {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid rgba(8, 123, 147, 0.16);
  border-radius: 14px;
  background: var(--color-primary-soft);
  color: var(--color-primary-dark);
}

.lead-validation-card[hidden] {
  display: none;
}

.lead-validation-card span {
  font-size: 12px;
  font-weight: var(--font-weight-extrabold);
}

.lead-validation-card strong {
  color: var(--text);
  font-size: 14px;
  line-height: 1.35;
}

.lead-validation-card[data-tone="checking"] {
  border-color: rgba(246, 166, 35, 0.28);
  background: var(--color-sun-soft);
}

.lead-validation-card[data-tone="available"] {
  border-color: rgba(32, 163, 107, 0.24);
  background: var(--color-success-soft);
}

.lead-validation-card[data-tone="changed"] {
  border-color: rgba(255, 107, 74, 0.24);
  background: var(--color-coral-soft);
}

.lead-validation-card[data-tone="unavailable"],
.lead-validation-card[data-tone="error"] {
  border-color: rgba(217, 74, 58, 0.24);
  background: var(--color-danger-soft);
}

.lead-safe-note {
  margin: -2px 0 0;
  color: var(--color-text-muted);
  font-size: 12px;
  font-weight: var(--font-weight-semibold);
  line-height: 1.35;
}

.lead-sheet textarea {
  resize: vertical;
  min-height: 78px;
}

.tour-details-sheet {
  gap: 14px;
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  padding-bottom: 24px;
  overscroll-behavior: contain;
}

/* GO#13 (iPhone UAT): keep the modal header — and its ✕ close button — pinned
   while the long tour/hotel card scrolls, so the user can close it from any
   scroll position without scrolling back to the top. The sheet is the scroll
   container; the header bleeds over its 18px side padding to a full-width bar
   and content scrolls under its opaque background. */
.tour-details-sheet,
.hotel-details-sheet {
  padding-top: 0;
}
.tour-details-sheet .lead-sheet-header,
.hotel-details-sheet .lead-sheet-header {
  position: sticky;
  top: 0;
  z-index: 3;
  background: var(--surface);
  margin: 0 -18px;
  padding: 18px 18px 12px;
  border-radius: 18px 18px 0 0;
  box-shadow: 0 6px 12px -8px rgba(18, 50, 58, 0.18);
}

.hotel-details-sheet {
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  padding-bottom: 24px;
  overscroll-behavior: contain;
}

.hotel-details-photos {
  position: relative;
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 8px;
  overflow: hidden;
  border-radius: 18px;
}

.hotel-details-photos[hidden] {
  display: none;
}

.hotel-details-photos img {
  width: 100%;
  height: 118px;
  object-fit: cover;
  border-radius: 14px;
  background: var(--surface-2);
}

.hotel-details-photos img:first-child {
  grid-row: span 2;
  height: 244px;
}

.hotel-photo-placeholder {
  grid-column: 1 / -1;
  min-height: 220px;
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 24px;
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(0, 129, 146, 0.14), rgba(255, 248, 231, 0.9)),
    var(--surface-2);
  color: var(--brand-blue);
  text-align: center;
}

.hotel-photo-placeholder span {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: var(--surface);
  color: var(--color-warning);
  font-size: 30px;
  box-shadow: 0 12px 28px rgba(18, 50, 58, 0.1);
}

.hotel-photo-placeholder strong {
  font-size: 19px;
  line-height: 1.15;
}

.hotel-photo-placeholder small {
  color: var(--muted);
  font-weight: var(--font-weight-bold);
}

.hotel-details-photos img.is-zoomable {
  cursor: zoom-in;
}

.photo-more-button {
  grid-column: 1 / -1;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 9px 14px;
  background: var(--surface-2);
  color: var(--brand-blue);
  font-size: 13px;
  font-weight: var(--font-weight-bold);
  cursor: pointer;
}

.hotel-details-photos.carousel-mode {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  overflow: visible;
}

.photo-carousel {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  border-radius: 14px;
  scrollbar-width: none;
}

.photo-carousel::-webkit-scrollbar { display: none; }

.photo-carousel-slide {
  flex: 0 0 84%;
  scroll-snap-align: center;
}

.carousel-mode .photo-carousel-slide img,
.carousel-mode .photo-carousel-slide img:first-child {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 14px;
  background: var(--surface-2);
  grid-row: auto;
}

.photo-carousel-counter {
  justify-self: center;
  padding: 3px 12px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 12px;
  font-weight: var(--font-weight-bold);
}

.photo-carousel-collapse {
  justify-self: center;
  border: 0;
  background: none;
  color: var(--brand-blue);
  font-size: 13px;
  font-weight: var(--font-weight-bold);
  cursor: pointer;
  padding: 4px 10px;
}

.tour-variants-card {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-2);
}

.tour-variants-card h3 {
  margin: 0;
  color: var(--brand-blue);
  font-size: 15px;
}

.tour-variants-list {
  display: grid;
  gap: 6px;
}

.tour-variant-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  font: inherit;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
  text-align: left;
}

.tour-variant-row strong {
  color: var(--brand-blue);
  font-size: 13px;
  white-space: nowrap;
}

.tour-variant-row.is-active {
  border-color: var(--brand-blue);
  background: var(--color-primary-soft);
  cursor: default;
}

.tour-variants-hint {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.photo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(6, 36, 44, 0.94);
}

.photo-lightbox figure {
  margin: 0;
  max-width: 92vw;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.photo-lightbox img {
  max-width: 100%;
  max-height: 78vh;
  border-radius: 12px;
  object-fit: contain;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
}

.photo-lightbox figcaption {
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.04em;
}

.photo-lightbox-close,
.photo-lightbox-nav {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  cursor: pointer;
}

.photo-lightbox-close {
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  font-size: 18px;
}

.photo-lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  font-size: 28px;
  line-height: 1;
  padding-bottom: 4px;
}

.photo-lightbox-prev { left: 10px; }
.photo-lightbox-next { right: 10px; }

.hotel-track-button {
  justify-self: start;
  min-height: 42px;
  border: 1px solid rgba(255, 107, 74, 0.22);
  border-radius: 999px;
  background: var(--color-coral-soft);
  color: var(--color-coral);
  padding: 0 14px;
  font-size: 13px;
  font-weight: var(--font-weight-extrabold);
}

.hotel-track-button[hidden] {
  display: none;
}

.detail-hint {
  grid-column: 1 / -1;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(8, 123, 147, 0.14);
  border-radius: 14px;
  background: var(--color-primary-soft);
  color: var(--brand-blue);
  font: inherit;
  font-size: 12px;
  font-weight: var(--font-weight-bold);
  line-height: 1.35;
  text-align: left;
}

.hotel-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hotel-trust-row[hidden] {
  display: none;
}

.hotel-trust-row span {
  padding: 8px 11px;
  border-radius: 999px;
  background: var(--color-sun-soft);
  color: var(--color-warning);
  font-size: 12px;
  font-weight: var(--font-weight-extrabold);
}

.hotel-details-rating,
.hotel-details-description,
.hotel-price-graph,
.hotel-details-amenities {
  padding: 12px;
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--text);
}

.hotel-details-rating[hidden],
.hotel-details-description[hidden],
.hotel-price-graph[hidden],
.hotel-details-amenities[hidden] {
  display: none;
}

.hotel-details-rating {
  color: var(--brand-blue);
  font-size: 13px;
  font-weight: var(--font-weight-extrabold);
}

.hotel-details-description {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.hotel-details-amenities {
  display: grid;
  gap: 8px;
}

.hotel-details-amenities strong {
  flex-basis: 100%;
  color: var(--brand-blue);
  font-size: 13px;
}

.hotel-details-amenities span {
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
  font-weight: var(--font-weight-bold);
}

.hotel-profile-section {
  display: grid;
  gap: 6px;
  padding: 12px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.hotel-profile-section strong {
  color: var(--brand-blue);
  font-size: 14px;
}

.hotel-profile-section p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.hotel-price-graph {
  border: 1px solid rgba(246, 166, 35, 0.28);
  background: var(--color-sun-soft);
}

.hotel-price-graph[data-state="insufficient"] {
  border-color: var(--border);
  background: var(--surface-2);
}

.hotel-price-graph h3 {
  color: var(--brand-blue);
  font-size: 17px;
  line-height: 1.2;
}

.hotel-price-graph p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: var(--font-weight-semibold);
}

.hotel-price-graph-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.hotel-price-graph[data-state="insufficient"] .hotel-price-graph-list {
  margin-top: 10px;
}

.hotel-price-graph-list:empty {
  display: none;
}

.hotel-price-graph-list div {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
}

.hotel-price-graph-list span,
.hotel-price-graph-list small {
  color: var(--muted);
  font-size: 12px;
  font-weight: var(--font-weight-bold);
}

.hotel-price-graph-list strong {
  color: var(--brand-blue);
  font-size: 13px;
  line-height: 1.25;
}

.hotel-related-card,
.tour-included-card,
.detail-status-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(215, 230, 234, 0.72);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.86);
}

.hotel-related-card[hidden],
.tour-included-card[hidden],
.detail-status-card[hidden] {
  display: none;
}

.hotel-related-card h3,
.tour-included-card h3 {
  color: var(--brand-blue);
  font-size: 17px;
  line-height: 1.2;
}

.hotel-related-list {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 2px;
  scroll-snap-type: x proximity;
}

.hotel-related-item {
  flex: 0 0 150px;
  display: grid;
  gap: 6px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  color: var(--text);
  text-align: left;
  scroll-snap-align: start;
}

.hotel-related-item span {
  display: block;
  overflow: hidden;
  height: 82px;
  border-radius: 12px;
  background: var(--surface-2);
}

.hotel-related-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hotel-related-item strong {
  color: var(--brand-blue);
  font-size: 13px;
  line-height: 1.2;
}

.hotel-related-item small {
  color: var(--muted);
  font-size: 11px;
  font-weight: var(--font-weight-semibold);
  line-height: 1.25;
}

.tour-included-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.tour-included-list article {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 11px;
  border-radius: 14px;
  background: var(--surface-2);
}

.tour-included-list article[data-tone="muted"] {
  background: rgba(241, 247, 248, 0.54);
}

.tour-included-list strong {
  color: var(--brand-blue);
  font-size: 12px;
  line-height: 1.2;
}

.tour-included-list span {
  color: var(--muted);
  font-size: 12px;
  font-weight: var(--font-weight-semibold);
  line-height: 1.3;
}

.detail-status-card[data-tone="unavailable"] {
  border-color: rgba(217, 74, 58, 0.24);
  background: var(--color-danger-soft);
}

.detail-status-card strong {
  color: var(--color-danger);
  font-size: 17px;
}

.detail-status-card p {
  margin: 0;
  color: var(--text);
  font-size: 13px;
  line-height: 1.4;
}

.detail-status-actions {
  display: grid;
  gap: 8px;
}

.tour-details-media {
  position: relative;
  overflow: hidden;
  display: grid;
  align-items: end;
  min-height: 160px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 18% 18%, rgba(246, 166, 35, 0.24), transparent 30%),
    linear-gradient(135deg, var(--color-primary-soft), var(--color-sun-soft));
  background-position: center;
  background-size: cover;
}

.tour-details-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tour-details-media > span {
  place-self: center;
  color: var(--brand-blue);
  font-size: 20px;
  font-weight: var(--font-weight-extrabold);
  text-align: center;
}

.tour-details-media-overlay {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 3px;
  padding: 54px 14px 14px;
  color: #fff;
  background: linear-gradient(180deg, transparent, rgba(3, 84, 106, 0.82));
}

.tour-details-media.is-zoomable {
  cursor: zoom-in;
}

.tour-media-count {
  position: absolute;
  top: -40px;
  right: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(3, 84, 106, 0.72);
  color: #fff;
  font-size: 12px;
  font-weight: var(--font-weight-bold);
}

.tour-details-media-overlay strong {
  font-size: 18px;
  line-height: 1.15;
}

.tour-details-media-overlay span {
  font-size: 13px;
  font-weight: var(--font-weight-bold);
  opacity: 0.92;
}

.tour-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.tour-detail-grid article {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 11px;
  border: 1px solid rgba(215, 230, 234, 0.72);
  border-radius: 14px;
  background: rgba(241, 247, 248, 0.72);
}

.tour-detail-grid span {
  color: var(--muted);
  font-size: 11px;
  font-weight: var(--font-weight-extrabold);
}

.tour-detail-grid strong {
  color: var(--brand-blue);
  font-size: 14px;
  line-height: 1.25;
}

.tour-detail-price-card {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, var(--color-coral-soft), #fff) !important;
  border-color: rgba(255, 107, 74, 0.22) !important;
}

.tour-detail-price-card strong {
  color: var(--color-coral);
  font-size: 22px;
  line-height: 1.08;
}

.tour-detail-price-card small {
  color: var(--muted);
  font-size: 12px;
  font-weight: var(--font-weight-semibold);
  line-height: 1.3;
}

.tour-detail-context {
  display: grid;
  gap: 8px;
}

.tour-detail-context[hidden] {
  display: none;
}

.tour-detail-context div {
  display: grid;
  gap: 4px;
  padding: 11px 12px;
  border: 1px solid rgba(215, 230, 234, 0.64);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
}

.tour-detail-context strong {
  color: var(--brand-blue);
  font-size: 12px;
}

.tour-detail-context span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.tour-detail-context .tour-detail-badge-row {
  align-items: start;
}

.tour-detail-context .tour-detail-badge-row .alliance-offer-badge {
  justify-self: start;
}

.tour-detail-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.detail-sticky-actions {
  position: static;
  margin: 12px 0 0;
  padding: 12px 0 4px;
  background: #fff;
  border-top: 1px solid rgba(215, 230, 234, 0.7);
}

.tour-detail-actions .primary-button {
  grid-column: 1 / -1;
  min-height: 50px;
}

.tour-detail-actions .secondary-button {
  min-height: 46px;
}

.order-details-sheet {
  max-height: calc(100vh - 28px);
  overflow-y: auto;
}

.order-detail-grid,
.order-detail-blocks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.order-detail-grid article,
.order-detail-block {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-2);
}

.order-detail-blocks {
  grid-template-columns: 1fr;
}

.order-detail-grid span,
.order-detail-block span {
  color: var(--muted);
  font-size: 12px;
  font-weight: var(--font-weight-extrabold);
  line-height: 1.35;
}

.order-detail-grid strong,
.order-detail-block strong {
  color: var(--brand-blue);
  font-size: 14px;
  line-height: 1.25;
}

.order-detail-block.ready {
  border-color: rgba(0, 128, 96, 0.2);
  background: rgba(0, 128, 96, 0.08);
}

.order-document-list {
  display: grid;
  gap: 8px;
}

.order-document-item,
.order-document-empty {
  display: block;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--brand-blue);
  font-size: 13px;
  font-weight: var(--font-weight-bold);
  line-height: 1.3;
  text-decoration: none;
}

.order-document-empty {
  color: var(--muted);
  font-weight: var(--font-weight-semibold);
}

.order-document-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.order-document-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.order-document-name {
  overflow-wrap: anywhere;
}

.order-document-size {
  color: var(--muted);
  font-size: 12px;
  font-weight: var(--font-weight-semibold);
}

.order-document-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.order-document-group {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Manager: upload block inside the order card */
.manager-docs {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-2);
}

.manager-docs summary {
  cursor: pointer;
  color: var(--brand-blue);
  font-size: 13px;
  font-weight: var(--font-weight-bold);
}

.manager-docs-body {
  display: grid;
  gap: 8px;
  padding-top: 8px;
}

.manager-docs-hint {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.manager-docs-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.manager-docs-status {
  min-height: 14px;
  color: var(--muted);
  font-size: 12px;
}

.order-payment-history {
  display: grid;
  gap: 6px;
}

/* CRM stage A: «Сьогодні» panel + next-action control */
.manager-today {
  display: grid;
  gap: 12px;
}

.manager-today-section {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-2);
}

.manager-today-section.overdue {
  border-color: rgba(196, 32, 50, 0.35);
  background: rgba(196, 32, 50, 0.06);
}

.manager-today-section.forgotten {
  border-color: rgba(255, 138, 13, 0.4);
  background: rgba(255, 138, 13, 0.07);
}

.manager-today-section > strong {
  color: var(--brand-blue);
  font-size: 14px;
}

.manager-today-hint {
  color: var(--muted);
  font-size: 12px;
}

.manager-today-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
}

.manager-today-item > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.manager-today-item span { font-weight: var(--font-weight-bold); font-size: 13px; overflow-wrap: anywhere; }

.manager-today-item small { color: var(--muted); font-size: 12px; }

.manager-today-clear {
  margin: 0;
  color: var(--muted);
  font-weight: var(--font-weight-semibold);
}

.next-action-control {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px dashed var(--border);
  border-radius: 10px;
}

.next-action-label {
  font-size: 12px;
  font-weight: var(--font-weight-bold);
  color: var(--brand-blue);
}

.next-action-current {
  font-size: 12px;
  color: var(--muted);
  flex-basis: 100%;
}

.next-action-current.empty { color: #c47a0d; font-weight: var(--font-weight-bold); }

.next-action-control input[type="datetime-local"],
.next-action-control input[type="text"] {
  flex: 1;
  min-width: 130px;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
}

/* Client base panel */
.manager-clients-search {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.manager-clients-search input {
  flex: 1;
  min-width: 0;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 13px;
}

.manager-clients-results {
  display: grid;
  gap: 6px;
  margin-bottom: 10px;
}

.client-search-row {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--brand-blue);
  font-size: 13px;
  font-weight: var(--font-weight-bold);
  text-align: left;
  cursor: pointer;
}

.client-search-row:hover { background: var(--surface); }

.client-search-row strong { display: block; color: var(--brand-blue); }

.client-search-row small { display: block; margin-top: 2px; color: var(--muted); font-weight: var(--font-weight-semibold); }

.client-search-empty { color: var(--muted); font-size: 12px; }

.client-dossier-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-2);
}

.client-dossier-card > strong { color: var(--brand-blue); font-size: 14px; }

.client-dossier-form { display: grid; gap: 8px; }

.client-dossier-field { display: grid; gap: 4px; }

.client-dossier-field span { font-size: 12px; font-weight: var(--font-weight-bold); color: var(--muted); }

.client-dossier-field input,
.client-dossier-field textarea {
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  font-family: inherit;
}

.client-dossier-note { margin: 0; color: var(--muted); font-size: 13px; }

.client-dossier-history { display: grid; gap: 4px; }

.client-dossier-history strong { font-size: 13px; color: var(--brand-blue); }

.client-dossier-history small { color: var(--muted); font-size: 12px; }

.repeat-client-badge {
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 138, 13, 0.15);
  border: 1px solid rgba(255, 138, 13, 0.5);
  color: #b35f00;
  font-size: 11px;
  font-weight: var(--font-weight-bold);
  white-space: nowrap;
}

.payment-history-item {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 12px;
  font-weight: var(--font-weight-semibold);
}

.mono-installments {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #181818;
  color: #fff;
}

.mono-badge-mini {
  display: inline-flex;
  align-items: baseline;
  background: #000;
  border: 1px solid #3d3d3d;
  border-radius: 10px;
  padding: 7px 12px;
  font-weight: var(--font-weight-bold);
  font-size: 14px;
  letter-spacing: 0.3px;
  color: #fff;
  white-space: nowrap;
}

.mono-badge-mini b { font-weight: 400; opacity: 0.85; }

.mono-installments-text strong {
  display: block;
  font-size: 13px;
  margin-bottom: 4px;
}

.mono-installments-text p {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: #b3b3b3;
}

.order-detail-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.order-detail-actions .ghost-small {
  grid-column: 1 / -1;
  justify-content: center;
  min-height: 42px;
  text-decoration: none;
}

@media (max-width: 430px) {
  .order-detail-grid,
  .order-detail-actions {
    grid-template-columns: 1fr;
  }
}

.bottom-nav {
  position: fixed;
  right: 50%;
  bottom: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  width: min(100%, 430px);
  transform: translateX(50%);
  border: 1px solid rgba(215, 229, 232, 0.85);
  border-radius: 22px 22px 0 0;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 18px 40px rgba(18, 50, 58, 0.15);
  backdrop-filter: blur(14px);
}

.bottom-nav button {
  min-width: 0;
  min-height: 76px;
  overflow: hidden;
  border: 0;
  background: transparent;
  color: var(--muted);
  display: grid;
  place-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: var(--font-weight-extrabold);
}

.bottom-nav button[hidden] {
  display: none;
}

.bottom-nav button > span {
  width: 25px;
  height: 25px;
  background: #6d8290;
}

.bottom-nav button strong {
  display: block;
  justify-self: stretch;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  font-size: 11px;
  line-height: 1.1;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bottom-nav button.active {
  color: var(--brand-blue);
}

.bottom-nav button.active > span {
  background: var(--brand-blue);
}

.empty-state,
.error-state {
  padding: 14px;
  border: 1px dashed var(--border);
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.error-state {
  border-color: rgba(243, 111, 86, 0.45);
  color: #9d3e2c;
  background: rgba(243, 111, 86, 0.08);
}

.hero-title {
  font-size: var(--font-size-hero);
  font-weight: var(--font-weight-extrabold);
  line-height: var(--line-height-tight);
  letter-spacing: 0;
}

.page-title {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-extrabold);
  line-height: var(--line-height-title);
  letter-spacing: 0;
}

.section-title {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-bold);
  line-height: 1.25;
}

.card-title {
  font-size: 17px;
  font-weight: var(--font-weight-bold);
  line-height: 1.25;
}

.body-text {
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-body);
}

.meta-text,
.price-caption {
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  line-height: 1.35;
}

.field-label,
label,
.search-field,
.home-search-field,
.manager-lead-toolbar span,
.manager-order-actions > span,
.order-item-top div > span {
  color: var(--color-text-muted);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  line-height: 1.25;
  letter-spacing: 0;
}

.field-value,
input,
select {
  color: var(--color-text);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
}

.price-main,
.tour-search-price strong,
.hot-offer-bottom > strong,
.hot-price-wrap strong {
  color: var(--color-coral);
  font-size: 24px;
  font-weight: var(--font-weight-extrabold);
  line-height: 1.08;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}

.badge,
.hot-badges span,
.lead-status-pill,
.order-status-pill,
.saved-search-status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 26px;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  line-height: 1.1;
  letter-spacing: 0;
}

.btn,
button,
.primary-button,
.secondary-button,
.search-submit-button,
.home-search-submit {
  font-family: var(--font-main);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-bold);
  letter-spacing: 0;
  text-transform: none;
}

.primary-button,
.search-submit-button,
.home-search-submit,
.request-filter-bar button.active,
.bottom-nav button.active > span,
.language-toggle span.active {
  background: linear-gradient(135deg, var(--color-primary), var(--accent-2));
  color: #ffffff;
}

.primary-button,
.search-submit-button,
.home-search-submit {
  min-height: 54px;
  border-radius: 14px;
  box-shadow: 0 16px 30px rgba(8, 123, 147, 0.23);
}

.secondary-button,
.link-button,
.text-button {
  color: var(--color-primary);
}

.home-travel-hero h2 {
  color: var(--color-primary-dark);
  font-size: var(--font-size-hero);
  font-weight: var(--font-weight-extrabold);
  line-height: var(--line-height-tight);
  letter-spacing: 0;
}

.home-travel-hero p,
.search-hero p {
  color: var(--color-text-muted);
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height-body);
}

.home-eyebrow,
.home-section-kicker {
  color: var(--color-warning);
  font-weight: var(--font-weight-bold);
  text-transform: none;
}

.home-search-card,
.search-panel-premium {
  border-color: rgba(215, 230, 234, 0.72);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 248, 237, 0.58)),
    var(--color-surface);
  box-shadow: 0 18px 42px rgba(18, 50, 58, 0.08);
}

.home-radar-card {
  border-color: rgba(8, 123, 147, 0.16);
  background:
    linear-gradient(135deg, rgba(230, 245, 248, 0.9), rgba(255, 248, 237, 0.72)),
    var(--color-surface);
}

#homeLatestCard[hidden],
.home-latest-card[hidden] {
  display: none !important;
}

.home-radar-card h3,
.home-latest-card h3,
.search-hero h2,
.home-destinations h2,
.home-hot h2,
.home-hotel-inspiration h2,
.manager-card h2,
.lead-sheet-header h2 {
  color: var(--color-primary-dark);
  font-weight: var(--font-weight-extrabold);
  letter-spacing: 0;
}

.home-destination-chips button,
.search-quick-chips button,
.hot-filter-chips button {
  border-color: rgba(215, 230, 234, 0.9);
  background: rgba(255, 255, 255, 0.92);
  color: var(--color-primary);
  font-weight: var(--font-weight-semibold);
  box-shadow: 0 8px 20px rgba(18, 50, 58, 0.04);
}

.home-destination-chips button:hover,
.search-quick-chips button:hover,
.hot-filter-chips button:hover,
.search-quick-chips button.active,
.hot-filter-chips button.active {
  border-color: rgba(246, 166, 35, 0.48);
  background: var(--color-sun-soft);
  color: var(--color-warning);
}

.hot-filter-chips button.active {
  box-shadow: inset 0 0 0 1px rgba(246, 166, 35, 0.22);
}

.search-field input,
.search-field select,
.home-search-field input,
.home-search-field select,
input,
select {
  border-color: rgba(215, 230, 234, 0.92);
  background: rgba(255, 255, 255, 0.96);
}

input:focus,
select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(8, 123, 147, 0.14);
}

.advanced-search {
  border-color: rgba(215, 230, 234, 0.76);
  background: rgba(255, 255, 255, 0.72);
}

.advanced-search summary {
  color: var(--color-primary);
  font-weight: var(--font-weight-bold);
}

.search-helper,
.advanced-search summary small,
.tour-search-price small,
.hot-price-wrap small,
.tour-search-rating,
.hot-offer-title span,
.hot-offer-title small,
.hot-offer-details b {
  color: var(--color-text-muted);
  font-weight: var(--font-weight-medium);
}

.hot-offer-card,
.lead-item,
.order-item,
.saved-search-item,
.manager-card,
.order-detail-grid article,
.order-detail-block {
  border-color: rgba(215, 230, 234, 0.86);
  border-radius: 14px;
  box-shadow: 0 14px 34px rgba(18, 50, 58, 0.07);
}

.hot-offer-title h3 {
  color: var(--color-primary-dark);
  font-size: 17px;
  font-weight: var(--font-weight-bold);
  line-height: 1.25;
}

.hot-offer-details span,
.saved-search-detail,
.lead-detail,
.order-detail-grid article,
.order-detail-block,
.lead-offer-summary {
  background: var(--color-surface-soft);
  color: var(--color-text);
}

.hot-badges span {
  background: var(--color-sun-soft);
  color: var(--color-warning);
}

.hot-badges span:nth-child(2n) {
  background: var(--color-coral-soft);
  color: var(--color-danger);
}

.hot-badges .alliance-offer-badge,
.hot-badges .alliance-offer-badge:nth-child(2n),
.tour-result-badges .alliance-offer-badge:first-child {
  border-color: rgba(8, 123, 147, 0.2);
  background: linear-gradient(135deg, #fff 0%, var(--color-primary-soft) 100%);
  color: var(--color-primary-dark);
}

.manager-card span,
.saved-search-detail.found strong {
  color: var(--color-warning);
}

.saved-search-detail.found,
.saved-search-detail.found.has-results {
  border-color: rgba(246, 166, 35, 0.34);
  background: var(--color-sun-soft);
}

.lead-status-pill {
  background: var(--color-primary-soft);
  color: var(--color-primary-dark);
}

.lead-status-pill.in_work,
.lead-status-pill.assigned,
.lead-status-pill.contacted,
.lead-status-pill.checking_availability,
.lead-status-pill.offer_sent {
  background: var(--color-primary-soft);
  color: var(--color-primary-dark);
}

.lead-status-pill.waiting_client,
.order-status-pill.waiting_for_payment,
.order-status-pill.documents_pending,
.saved-search-status.paused {
  background: var(--color-warning-soft);
  color: var(--color-warning);
}

.lead-status-pill.converted_to_order,
.order-status-pill.paid,
.order-status-pill.documents_ready,
.order-status-pill.completed,
.order-detail-block.ready {
  background: var(--color-success-soft);
  color: var(--color-success);
}

.lead-status-pill.lost,
.order-status-pill.cancelled {
  background: var(--color-danger-soft);
  color: var(--color-danger);
}

.lead-status-pill.closed {
  background: rgba(138, 160, 167, 0.16);
  color: var(--color-text-muted);
}

.order-status-pill,
.saved-search-status {
  background: var(--color-primary-soft);
  color: var(--color-primary-dark);
}

.error-state,
.lead-status[data-tone="error"] {
  border-color: rgba(217, 74, 58, 0.26);
  background: var(--color-danger-soft);
  color: var(--color-danger);
}

.empty-state {
  display: grid;
  gap: 12px;
}

.empty-state p {
  margin: 0;
}

.empty-actions {
  display: grid;
  gap: 8px;
}

.empty-actions .primary-button,
.empty-actions .secondary-button {
  width: 100%;
}

.bottom-nav {
  border-color: rgba(215, 230, 234, 0.9);
  background: rgba(255, 255, 255, 0.96);
}

.bottom-nav button {
  color: var(--color-text-muted);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
}

.bottom-nav button.active {
  color: var(--color-primary);
}

@media (min-width: 800px) {
  body {
    background:
      radial-gradient(circle at 18% 12%, rgba(255, 243, 216, 0.9), rgba(255, 255, 255, 0) 420px),
      radial-gradient(circle at 84% 30%, rgba(8, 123, 147, 0.1), rgba(255, 255, 255, 0) 460px),
      linear-gradient(180deg, #eef6f5 0%, #f4f8f4 55%, #f0f5f2 100%);
  }

  .app-shell {
    padding-top: 30px;
    background: var(--bg);
    box-shadow: 0 24px 80px rgba(8, 60, 72, 0.14);
    border-left: 1px solid rgba(215, 230, 234, 0.7);
    border-right: 1px solid rgba(215, 230, 234, 0.7);
  }
}

/* Travel product polish: keep the first screens light and consumer-first. */
.home-travel-hero {
  gap: 8px;
  padding-top: 0;
}

.home-travel-hero h2 {
  font-size: 34px;
}

.home-travel-hero p,
.search-hero p {
  max-width: 34ch;
  font-size: 14px;
}

.home-hero-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-top: 4px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
}

.home-hero-actions button {
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--color-primary-dark);
  font-size: 15px;
  font-weight: var(--font-weight-extrabold);
}

.home-hero-actions button.active {
  background: var(--color-primary);
  color: #fff;
}

.home-search-card {
  padding: 13px;
  border-radius: 22px;
}

.hot-preview-list {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 88%);
  gap: 12px;
  overflow-x: auto;
  margin-right: -18px;
  padding: 2px 18px 14px 2px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.hot-preview-list::-webkit-scrollbar {
  display: none;
}

.hot-preview-list .hot-offer-card {
  scroll-snap-align: start;
}

.hot-marketplace-panel {
  display: grid;
  gap: 10px;
  max-width: 100%;
  overflow-x: clip;
}

.panel-heading > span[data-i18n="moduleReady"] {
  display: none;
}

.hot-marketplace-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.2fr);
  gap: 10px;
  align-items: stretch;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.hot-filter-toggle {
  min-height: 46px;
  padding: 0 12px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  white-space: nowrap;
}

.hot-filter-toggle b {
  min-width: 22px;
  min-height: 22px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: var(--color-primary);
  color: #fff;
  font-size: 12px;
  line-height: 1;
}

.hot-filter-toggle.active {
  border-color: rgba(6, 132, 145, 0.42);
  background: rgba(11, 127, 134, 0.08);
}

.hot-sort-compact {
  min-width: 0;
  min-height: 46px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 6px 8px 6px 12px;
  border: 1px solid rgba(215, 230, 234, 0.9);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
}

.hot-sort-compact span {
  color: var(--color-text-muted);
  font-size: 10px;
  font-weight: var(--font-weight-extrabold);
  text-transform: uppercase;
  line-height: 1.1;
}

.hot-sort-compact select {
  width: 100%;
  min-width: 0;
  min-height: 34px;
  border: 0;
  border-radius: 10px;
  background: rgba(238, 247, 248, 0.9);
  color: var(--color-text);
  font-size: 13px;
  font-weight: var(--font-weight-bold);
  padding: 0 8px;
}

.hot-marketplace-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(215, 230, 234, 0.78);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(241, 247, 248, 0.72));
  overflow: hidden;
}

.hot-marketplace-controls[hidden] {
  display: none;
}

.hot-marketplace-controls label {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.hot-marketplace-controls span {
  color: var(--color-text-muted);
  font-size: 11px;
  font-weight: var(--font-weight-extrabold);
  text-transform: uppercase;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.2;
}

.hot-marketplace-controls select,
.hot-marketplace-controls input {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 42px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: var(--color-surface);
  color: var(--color-text);
  font-size: 13px;
  font-weight: var(--font-weight-semibold);
  padding: 0 10px;
}

.hot-sort-control {
  grid-column: 1 / -1;
}

.hot-filter-actions {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 10px;
}

.hot-filter-actions button {
  min-height: 44px;
  width: 100%;
}

@media (max-width: 640px) {
  .hot-marketplace-panel .panel-heading {
    margin-bottom: 0;
  }

  .hot-marketplace-toolbar {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.15fr);
    gap: 8px;
  }

  .hot-sort-compact {
    grid-template-columns: 1fr;
    gap: 2px;
    padding: 5px 8px;
  }

  .hot-marketplace-controls {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    overflow: hidden;
    padding: 10px;
  }

  .hot-marketplace-controls label {
    min-width: 0;
  }

  .hot-marketplace-controls .hot-sort-control {
    grid-column: 1 / -1;
  }
}

@media (max-width: 390px) {
  .hot-marketplace-toolbar {
    grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  }

  .hot-filter-toggle,
  .hot-sort-compact {
    min-height: 44px;
  }

  .hot-filter-toggle {
    padding-inline: 9px;
  }

  .hot-filter-toggle span,
  .hot-sort-compact span {
    font-size: 10px;
  }

  .hot-marketplace-controls {
    grid-template-columns: minmax(0, 1fr);
  }

  .hot-filter-actions {
    grid-template-columns: minmax(0, 1fr);
  }
}

.hot-offer-list {
  display: grid;
  gap: 12px;
}

.hot-offer-card.marketplace {
  gap: 13px;
  border-radius: 18px;
  box-shadow: 0 16px 36px rgba(18, 50, 58, 0.08);
}

.hot-offer-card.marketplace .hot-offer-media {
  aspect-ratio: 16 / 10;
  cursor: pointer;
}

.home-search-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 9px;
}

.search-primary-fields {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.home-search-field {
  gap: 6px;
}

.home-search-field input,
.home-search-field select {
  min-height: 48px;
  border-radius: 14px;
  font-size: 14px;
}

.home-action-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  gap: 9px;
  margin: 0 0 16px;
  overflow: visible;
  padding: 0;
}

.home-action-tiles::-webkit-scrollbar {
  display: none;
}

.home-action-tiles button {
  grid-template-columns: none;
  grid-template-rows: 36px auto;
  min-width: 0;
  min-height: 86px;
  padding: 9px 7px;
  text-align: center;
}

.home-action-tiles .tile-icon {
  justify-self: center;
  width: 36px;
  height: 36px;
}

.home-action-tiles strong {
  font-size: 11px;
}

.home-destination-chips {
  flex-wrap: wrap;
  overflow: visible;
  padding-bottom: 2px;
}

.home-destination-chips button {
  flex: 0 0 auto;
}

.search-quick-chips {
  margin: 1px 0 0;
  padding: 2px 0 5px;
}

.search-panel-premium {
  padding: 16px;
  border-radius: 22px;
  box-shadow: 0 18px 42px rgba(18, 50, 58, 0.07);
}

.tour-search-form {
  gap: 13px;
}

.search-field {
  gap: 6px;
  font-weight: var(--font-weight-semibold);
}

.search-field input,
.search-field select {
  min-height: 52px;
  border-radius: 14px;
}

.advanced-search {
  border-color: rgba(215, 230, 234, 0.68);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.58);
}

.advanced-search summary {
  min-height: 54px;
  padding: 13px 42px 13px 14px;
  font-weight: var(--font-weight-bold);
}

.advanced-search summary::after {
  top: 17px;
  right: 16px;
}

.advanced-search summary small {
  max-width: 100%;
  font-weight: var(--font-weight-medium);
}

.search-quick-chips {
  margin: 1px 0 0;
  padding: 2px 0 5px;
}

.search-submit-button {
  min-height: 56px;
  border-radius: 16px;
}

.search-alert-button {
  color: var(--color-text-muted);
  font-size: 13px;
}

.radar-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 12px;
  padding: 6px;
  border: 1px solid rgba(215, 230, 234, 0.9);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 12px 34px rgba(18, 50, 58, 0.06);
}

.radar-tabs button {
  min-height: 44px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--color-text-muted);
  font: inherit;
  font-weight: var(--font-weight-bold);
}

.radar-tabs button.active {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 10px 24px rgba(8, 123, 147, 0.2);
}

.radar-tab-panel[hidden] {
  display: none;
}

.tracked-offer-list {
  display: grid;
  gap: 12px;
}

.tracked-offer-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  padding: 10px;
  border: 1px solid rgba(215, 230, 234, 0.9);
  border-radius: 18px;
  background: var(--color-surface);
  box-shadow: 0 14px 32px rgba(18, 50, 58, 0.06);
}

.tracked-offer-card.is-unavailable {
  background: linear-gradient(135deg, #fff, var(--color-danger-soft));
  border-color: rgba(217, 74, 58, 0.28);
}

.tracked-offer-media {
  width: 96px;
  height: 118px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 14px;
  background: var(--color-primary-soft);
  color: var(--color-primary-dark);
  font-weight: var(--font-weight-bold);
}

.tracked-offer-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tracked-offer-media.is-empty {
  display: grid;
  place-items: center;
  padding: 8px;
  text-align: center;
}

.tracked-offer-body {
  display: grid;
  min-width: 0;
  gap: 7px;
}

.tracked-offer-header {
  display: grid;
  gap: 6px;
}

.tracked-offer-header h3 {
  margin: 0;
  color: var(--color-text);
  font-size: 16px;
  line-height: 1.22;
}

.tracked-offer-body p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 13px;
}

.tracked-offer-price {
  color: var(--color-coral);
  font-size: 21px;
  line-height: 1.15;
  font-weight: var(--font-weight-extrabold);
}

.tracked-offer-price:empty {
  display: none;
}

.tracked-offer-note {
  color: var(--color-text-muted);
  font-size: 12px;
  line-height: 1.35;
}

.tracked-offer-checked,
.tracked-offer-history small {
  color: var(--color-text-muted);
  font-size: 12px;
}

.tracked-offer-history {
  display: grid;
  gap: 3px;
}

.tracked-offer-actions,
.tracked-offer-recovery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.tracked-offer-actions button,
.tracked-offer-recovery button {
  min-height: 40px;
  padding-inline: 12px;
  border-radius: 12px;
  font-size: 13px;
}

.tracked-offer-actions .primary-button {
  grid-column: 1 / -1;
}

.status-chip {
  justify-self: start;
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--color-success-soft);
  color: var(--color-success);
  font-size: 10.5px;
  line-height: 1.1;
  font-weight: var(--font-weight-bold);
}

.status-chip.status-local,
.status-chip.status-unknown,
.status-chip.status-needs-validation {
  background: var(--color-warning-soft);
  color: var(--color-warning);
}

.status-chip.status-active {
  background: var(--color-success-soft);
  color: var(--color-success);
}

.status-chip.status-paused {
  background: var(--color-warning-soft);
  color: var(--color-warning);
}

.status-chip.status-unavailable {
  background: var(--color-danger-soft);
  color: var(--color-danger);
}

.tracked-change-badge {
  justify-self: start;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--color-primary-soft);
  color: var(--color-primary-dark);
  font-size: 11px;
  font-weight: var(--font-weight-bold);
}

.notification-prefs-form {
  display: grid;
  gap: 12px;
}

.notification-prefs-form label {
  display: grid;
  gap: 6px;
  color: var(--color-text);
  font-weight: var(--font-weight-bold);
}

.notification-prefs-form label:has(input[type="checkbox"]) {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  padding: 10px 12px;
  border: 1px solid rgba(215, 230, 234, 0.9);
  border-radius: 14px;
  background: var(--color-surface-muted);
  font-size: 14px;
}

.notification-prefs-form input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--color-primary);
}

.notification-prefs-form select {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(186, 214, 220, 0.95);
  border-radius: 14px;
  background: var(--color-surface);
  color: var(--color-text);
  font: inherit;
  font-weight: var(--font-weight-semibold);
  padding: 0 12px;
}

.notification-prefs-note {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 13px;
  line-height: 1.4;
}

.radar-notification-queue {
  display: grid;
  gap: 10px;
}

.radar-notification-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
}

.radar-notification-toolbar label {
  display: grid;
  gap: 5px;
  color: var(--color-text-muted);
  font-size: 12px;
  font-weight: var(--font-weight-bold);
}

.radar-notification-toolbar select {
  width: 100%;
  min-height: 38px;
  border: 1px solid rgba(186, 214, 220, 0.95);
  border-radius: 12px;
  background: var(--color-surface);
  color: var(--color-text);
  font: inherit;
  font-size: 13px;
  font-weight: var(--font-weight-semibold);
  padding: 0 10px;
}

.radar-notification-list {
  display: grid;
  gap: 8px;
}

.radar-notification-item {
  display: grid;
  gap: 4px;
  padding: 11px 12px;
  border: 1px solid rgba(215, 230, 234, 0.9);
  border-radius: 14px;
  background: var(--color-surface-muted);
}

.radar-notification-item strong {
  color: var(--color-text);
  font-size: 14px;
}

.radar-notification-item span {
  color: var(--color-text-muted);
  font-size: 12px;
}

.radar-notification-item[data-status="seen"] {
  background: var(--color-surface);
  opacity: 0.86;
}

.radar-notification-item[data-status="dismissed"] {
  background: #f7f9fa;
  opacity: 0.7;
}

.radar-notification-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.radar-notification-actions .ghost-small {
  min-height: 36px;
  white-space: normal;
}

.radar-check-panel {
  align-items: center;
}

.radar-settings-panel {
  display: grid;
  gap: 10px;
}

.manager-radar-panel .metric-grid {
  margin-top: 10px;
}

@media (max-width: 360px) {
  .home-search-grid,
  .search-pair {
    grid-template-columns: 1fr;
  }

  .home-action-tiles {
    grid-template-columns: repeat(auto-fit, minmax(124px, 1fr));
  }

  .tracked-offer-card {
    grid-template-columns: 86px minmax(0, 1fr);
  }

  .tracked-offer-media {
    width: 86px;
  }

  .radar-notification-toolbar {
    grid-template-columns: 1fr;
  }
}



/* P1A: identity bridge + value-moment push cards (flag-gated) */
.p1-bridge-card, .p1-push-card {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 84px;
  z-index: 60;
  background: var(--surface, #fff);
  border: 1px solid rgba(8, 123, 147, 0.35);
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
  max-width: 520px;
  margin: 0 auto;
}

.p1-bridge-card p, .p1-push-card p { margin: 6px 0 10px; font-size: 14px; }

.p1-card-actions { display: flex; gap: 10px; align-items: center; }

.p1-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.p1-modal {
  background: var(--surface, #fff);
  border-radius: 16px;
  padding: 18px;
  width: 100%;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.p1-modal label { display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.p1-modal input { padding: 10px 12px; border-radius: 10px; border: 1px solid #c8d6dc; font-size: 16px; }
.p1-hint { font-size: 13px; opacity: 0.8; margin: 0; }
.p1-state { font-size: 13px; min-height: 16px; margin: 0; color: #9a3b3b; }

/* P2B: «Про готель» link on tour surfaces */
.hotel-page-link { display: inline-block; margin: 2px 0; color: var(--accent, #0e7490); font-weight: 600; font-size: 13px; text-decoration: none; }
.hotel-page-link:hover { text-decoration: underline; }
/* P2C-1.1: clickable hotel name in PWA cards (same verified target) */
.hotel-name-link { color: inherit; text-decoration: none; }
.hotel-name-link:hover { text-decoration: underline; }
/* P2C-PWA: hotel sheet «Опис | Номери» tabs + room cards + last seen price */
.hotel-section-tabs { display: flex; gap: 8px; margin: 14px 0 10px; }
.hotel-tab-button { flex: 1; padding: 9px 14px; border: 1px solid var(--border, #d5dbe3); border-radius: 12px; background: transparent; font-weight: 600; font-size: 14px; color: var(--text-muted, #64748b); cursor: pointer; }
.hotel-tab-button.active { background: var(--accent, #0e7490); border-color: var(--accent, #0e7490); color: #fff; }
.hotel-room-card { padding: 10px 12px; margin: 8px 0; border: 1px solid var(--border, #e2e8f0); border-radius: 12px; }
.hotel-room-card strong { font-size: 15px; }
.hotel-room-size { font-size: 13px; color: var(--text-muted, #64748b); }
.hotel-room-card p { margin: 6px 0 0; font-size: 14px; color: var(--text-muted, #475569); }
.hotel-last-seen-price { margin: 4px 0 6px; font-weight: 600; color: var(--accent, #0e7490); }
.hotel-rooms-intro { margin: 4px 0 8px; font-size: 14px; color: var(--text-muted, #475569); }
/* P2C-4: modal title opens the hotel sheet */
.hotel-title-clickable { cursor: pointer; text-decoration: underline; text-decoration-color: rgba(14, 116, 144, .4); text-underline-offset: 3px; }
/* P2C polish: source line breaks survive in the app sheet */
.hotel-profile-section p, .hotel-room-card p, .hotel-details-rooms > p { white-space: pre-line; }
a#detailsHotelPageLink { text-align: center; text-decoration: none; }

/* P2D: local radar -> account sync prompt (shown only post-login, flag-gated) */
.p2d-sync-prompt { position: fixed; left: 16px; right: 16px; bottom: 18px; z-index: 60; max-width: 440px; margin: 0 auto; padding: 14px 16px; background: var(--card-bg, #fff); border: 1px solid var(--border, #d5dbe3); border-radius: 14px; box-shadow: 0 10px 30px rgba(15, 23, 42, .18); }
.p2d-sync-prompt strong { font-size: 15px; display: block; margin-bottom: 4px; }
.p2d-sync-prompt p { margin: 0 0 10px; font-size: 14px; color: var(--text-muted, #475569); }
.p2d-sync-actions { display: flex; gap: 10px; }
.p2d-sync-actions .primary-button { flex: 1; }

/* P2E: live tour recheck states in the details modal */
.tour-recheck { margin: 8px 0; padding: 9px 12px; border-radius: 10px; font-size: 14px; border: 1px solid var(--border, #d5dbe3); }
.tour-recheck[data-state="checking"] { color: var(--text-muted, #64748b); }
.tour-recheck[data-state="confirmed"] { border-color: #86efac; background: #f0fdf4; color: #166534; }
.tour-recheck[data-state="price_changed"] { border-color: #fcd34d; background: #fffbeb; color: #92400e; }
.tour-recheck[data-state="unavailable"] { border-color: #fca5a5; background: #fef2f2; color: #991b1b; }
.tour-recheck[data-state="failed"] { color: var(--text-muted, #64748b); font-style: italic; }

/* Technology attribution at the foot of the profile view. Quiet by default,
   brand cyan only on interaction. Hover colour is the darkened cyan: the raw
   #00E5FF fails contrast on the light app background. */
.brand-credit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 22px 0 8px;
  color: var(--color-text-soft, #8aa0a7);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.brand-credit a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: inherit;
  text-decoration: none;
  transition: color 0.16s ease;
}

.brand-credit a:hover,
.brand-credit a:focus-visible { color: #00a5bd; }

.brand-credit svg { flex: none; }

.brand-credit b { font-weight: 700; letter-spacing: 0.16em; }

/* --- Manager Financial Safety console ----------------------------------- */
.manager-fs-note {
  margin: 0;
  color: var(--color-text-muted, var(--muted));
  font-size: var(--font-size-sm, 13px);
}

.manager-fs-numbers {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
  margin: 12px 0;
}

.manager-fs-number {
  display: grid;
  gap: 2px;
  border: 1px solid var(--color-border, var(--border));
  border-radius: 12px;
  background: var(--color-surface-soft, var(--surface-2));
  padding: 10px;
}

.manager-fs-number strong { font-size: 20px; }

.manager-fs-number span {
  color: var(--color-text-muted, var(--muted));
  font-size: var(--font-size-xs, 12px);
}

.manager-fs-number[data-tone="alert"] {
  border-color: var(--color-danger, #b83a2d);
  background: var(--color-danger-soft, #ffe9e6);
}

.manager-fs-queue {
  display: grid;
  gap: 12px;
}

.manager-fs-row {
  display: grid;
  gap: 8px;
  border: 1px solid var(--color-border, var(--border));
  border-left: 4px solid var(--color-border, var(--border));
  border-radius: 14px;
  background: var(--color-surface, #fff);
  padding: 12px;
}

.manager-fs-row[data-bucket="AUTO_CANCEL"] { border-left-color: var(--color-danger, #b83a2d); }
.manager-fs-row[data-bucket="MANUAL"] { border-left-color: var(--color-warning, #b86d08); }
.manager-fs-row[data-bucket="HELD"] { border-left-color: var(--color-primary, #087b93); }
.manager-fs-row[data-bucket="RISK"] { border-left-color: var(--color-coral, #ff6b4a); }
.manager-fs-row[data-bucket="PAID"] { border-left-color: var(--color-success, #16895a); }

.manager-fs-row-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
}

.manager-fs-detail,
.manager-fs-hint,
.manager-fs-ident,
.manager-fs-watch {
  color: var(--color-text-muted, var(--muted));
  font-size: var(--font-size-xs, 12px);
}

.manager-fs-money,
.manager-fs-deadlines {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  font-size: var(--font-size-sm, 13px);
}

.manager-fs-deadline {
  display: grid;
  gap: 2px;
}

.manager-fs-deadline span {
  color: var(--color-text-muted, var(--muted));
  font-size: var(--font-size-xs, 12px);
}

.manager-fs-hold {
  border-radius: 10px;
  background: var(--color-primary-soft, #e6f5f8);
  padding: 6px 8px;
  font-size: var(--font-size-sm, 13px);
}

.manager-fs-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.manager-fs-actions .manager-fs-risk {
  border-color: var(--color-coral, #ff6b4a);
  color: var(--color-coral, #ff6b4a);
}

.manager-fs-actions button[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

.manager-fs-form {
  display: grid;
  gap: 8px;
  border: 1px solid var(--color-border, var(--border));
  border-radius: 12px;
  background: var(--color-surface-soft, var(--surface-2));
  padding: 10px;
}

.manager-fs-form label {
  display: grid;
  gap: 4px;
  font-size: var(--font-size-sm, 13px);
}

.manager-fs-form-buttons {
  display: flex;
  gap: 8px;
}

.manager-fs-form-status[data-tone="error"] {
  color: var(--color-danger, #b83a2d);
  font-size: var(--font-size-sm, 13px);
}

.manager-fs-log {
  display: grid;
  gap: 4px;
  margin-top: 8px;
}

.manager-fs-log-line,
.manager-fs-empty {
  color: var(--color-text-muted, var(--muted));
  font-size: var(--font-size-xs, 12px);
}
