/* Mobile CRM — нативный вид, мобайл-фёрст, без фреймворков. */
:root {
  --bg: #eef1f4;
  --surface: #ffffff;
  --surface-2: #f6f8fa;
  --primary: #0e7c7b;
  --primary-d: #0a605f;
  --primary-soft: #e3f1f1;
  --text: #14181b;
  --muted: #6b7783;
  --border: #e4e8ec;
  --danger: #e0524b;
  --success: #1f9d62;
  --warn: #e09a1f;
  --in-bubble: #ffffff;
  --out-bubble: #d8f3f0;
  --shadow: 0 1px 3px rgba(16, 24, 32, .08), 0 1px 2px rgba(16, 24, 32, .04);
  --radius: 14px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bot: env(safe-area-inset-bottom, 0px);
  --tabbar-h: 50px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.4;
  overscroll-behavior-y: none;
}
#app { height: 100%; }
.hidden { display: none !important; }

/* ── Экраны ── */
.screen { position: fixed; inset: 0; display: flex; flex-direction: column; background: var(--bg); }
.screen__body { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; }

/* ── Topbar ── */
.topbar {
  display: flex; align-items: center; gap: 8px;
  padding: calc(var(--safe-top) + 6px) 14px 6px;
  background: var(--primary); color: #fff;
  box-shadow: var(--shadow); position: sticky; top: 0; z-index: 10;
}
.topbar__title { font-size: 17px; font-weight: 650; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar__sub { font-size: 12px; opacity: .85; font-weight: 400; }
.topbar__btn {
  width: 36px; height: 36px; border: 0; background: rgba(255,255,255,.15); color: #fff;
  border-radius: 10px; font-size: 18px; display: grid; place-items: center; cursor: pointer;
}
.topbar__btn:active { background: rgba(255,255,255,.28); }
.topbar__btn--text { width: auto; padding: 0 14px; font-size: 14px; font-weight: 600; }

/* Компактный хедер переписки: одна строка (имя · канал) + кнопки заявка/профиль */
.topbar--slim { padding: calc(var(--safe-top) + 3px) 10px 3px; gap: 6px; }
.topbar--slim .topbar__btn { width: 32px; height: 32px; font-size: 16px; border-radius: 9px; }
.topbar--slim .topbar__btn--text { width: auto; padding: 0 9px; font-size: 13px; }
.conv-title { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 4px; overflow: hidden; }
.conv-title__name { flex: 1; min-width: 0; font-size: 15.5px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conv-title__ch { font-size: 11.5px; opacity: .8; font-weight: 400; white-space: nowrap; flex-shrink: 0; }

/* «Прочитать» — плашка после последнего сообщения в треде */
.readbar { display: flex; justify-content: center; padding: 12px 0 4px; }
.btn--read { width: auto; padding: 7px 24px; font-size: 13.5px; }

/* ── Tabbar ── */
.tabbar {
  display: flex; background: var(--surface); border-top: 1px solid var(--border);
  padding-bottom: var(--safe-bot); height: calc(var(--tabbar-h) + var(--safe-bot));
}
.tabbar__item {
  flex: 1; border: 0; background: none; color: var(--muted); cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  font-size: 11px; font-weight: 500; position: relative;
}
.tabbar__item.is-active { color: var(--primary); }
.tabbar__icon { font-size: 20px; line-height: 1; }
.tabbar__badge {
  position: absolute; top: 3px; left: 54%; min-width: 16px; height: 16px; padding: 0 4px;
  background: var(--danger); color: #fff; border-radius: 8px; font-size: 10px; font-weight: 700;
  display: grid; place-items: center;
}

/* ── Списки ── */
.list { padding: 8px 0 16px; }
.row {
  display: flex; align-items: center; gap: 12px; padding: 11px 14px;
  background: var(--surface); cursor: pointer; border-bottom: 1px solid var(--border);
}
.row:active { background: var(--surface-2); }
.avatar {
  width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center;
  font-size: 20px; color: #fff; background: var(--primary); position: relative;
}
.avatar__channel {
  position: absolute; right: -3px; bottom: -3px; min-width: 19px; height: 18px; padding: 0 3px;
  border-radius: 9px; color: #fff; font-size: 8px; font-weight: 700; letter-spacing: -.02em;
  display: grid; place-items: center; border: 1.5px solid var(--surface); box-shadow: var(--shadow);
}
/* Канальный аватар (как в CC): буквы канала на бренд-цвете. */
.avatar--ch { display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 15px; font-weight: 700; line-height: 1; }
.avatar--ch small { font-size: 8px; font-weight: 600; opacity: .9; line-height: 1; margin-top: 1px; }
/* Цветная точка канала на чипе-фильтре. */
.ch-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: middle; flex-shrink: 0; }
.row__main { flex: 1; min-width: 0; }
.row__top { display: flex; align-items: baseline; gap: 8px; }
.row__name { font-weight: 600; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row__time { font-size: 12px; color: var(--muted); flex-shrink: 0; }
.row__sub { color: var(--muted); font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 2px; }
.row__badge {
  min-width: 20px; height: 20px; padding: 0 6px; background: var(--primary); color: #fff;
  border-radius: 10px; font-size: 11px; font-weight: 700; display: grid; place-items: center; flex-shrink: 0;
}
/* Бейдж канала: непрочитанные — красным, всего сообщений — чёрным. */
.row__badge--unread { background: var(--danger); }
.row__badge--total { background: #2b2f33; }

/* ── Чипы каналов / фильтры ── */
.chips { display: flex; gap: 8px; padding: 10px 14px; overflow-x: auto; background: var(--surface); border-bottom: 1px solid var(--border); }
.chip {
  flex-shrink: 0; border: 1px solid var(--border); background: var(--surface); color: var(--muted);
  padding: 6px 13px; border-radius: 999px; font-size: 13px; font-weight: 500; cursor: pointer; white-space: nowrap;
}
.chip.is-active { background: var(--primary); color: #fff; border-color: var(--primary); }
.chip--sm { padding: 5px 11px; font-size: 12px; }
#emSub { border-bottom: 1px solid var(--border); }

/* ── Диалог / переписка ── */
.thread { padding: 12px 12px 16px; display: flex; flex-direction: column; gap: 6px; }
.bubble {
  max-width: 80%; padding: 8px 12px; border-radius: 16px; box-shadow: var(--shadow); font-size: 14.5px;
  word-wrap: break-word; white-space: pre-wrap;
}
.bubble--in { align-self: flex-start; background: var(--in-bubble); border-bottom-left-radius: 5px; }
.bubble--out { align-self: flex-end; background: var(--out-bubble); border-bottom-right-radius: 5px; }
/* Email-HTML в iframe (картинки видны, как в вебе) — занимает всю ширину пузыря. */
.bubble--email { max-width: 100%; width: 100%; align-self: stretch; padding: 6px; background: #fff; }
.email-frame { width: 100%; min-height: 44px; border: 0; background: #fff; border-radius: 8px; display: block; }
/* Актуальное email_messages в треде: summary без тяжёлого S3-тела. */
.bubble--email-summary {
  max-width: 92%; padding: 10px 11px; display: flex; gap: 9px; white-space: normal;
}
.email-summary__icon { flex: 0 0 auto; font-size: 20px; line-height: 1.2; }
.email-summary__main { min-width: 0; flex: 1; }
.email-summary__subject { font-weight: 700; line-height: 1.3; word-break: break-word; }
.email-summary__snippet {
  margin-top: 4px; color: var(--muted); font-size: 13px; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.email-summary__attach { margin-top: 5px; color: var(--muted); font-size: 12px; }
.email-summary__open {
  margin-top: 8px; border: 0; border-radius: 9px; padding: 7px 11px;
  background: var(--primary); color: #fff; font: inherit; font-size: 13px; font-weight: 650; cursor: pointer;
}

/* Полноэкранный безопасный viewer письма и private-вложений. */
.email-view__body { background: #fff; padding-bottom: calc(14px + var(--safe-bot)); overflow-anchor: none; }
.email-view__head { padding: 15px 16px 12px; border-bottom: 1px solid var(--border); }
.email-view__subject { margin-bottom: 10px; font-size: 18px; font-weight: 700; line-height: 1.3; word-break: break-word; }
.email-view__row { margin-top: 4px; color: var(--muted); font-size: 13px; word-break: break-word; }
.email-view__row b { color: var(--text); }
.email-view__date { margin-top: 7px; color: var(--muted); font-size: 12px; }
.email-view__attachments { padding: 12px 14px 4px; }
.email-view__label { margin: 0 2px 7px; color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; }
.email-file {
  width: 100%; margin-bottom: 7px; padding: 10px 11px; display: flex; align-items: center; gap: 9px;
  border: 1px solid var(--border); border-radius: 11px; background: var(--surface-2); color: var(--text);
  font: inherit; text-align: left; cursor: pointer;
}
.email-file:active { background: var(--primary-soft); }
.email-file__icon { flex: 0 0 auto; font-size: 20px; }
.email-file__main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.email-file__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; font-weight: 600; }
.email-file__size { margin-top: 1px; color: var(--muted); font-size: 11.5px; }
.email-file__open { flex: 0 0 auto; color: var(--primary); font-size: 12px; font-weight: 700; }
.email-detail-frame {
  display: block; width: calc(100% - 20px); height: 68vh; min-height: 360px; margin: 10px;
  border: 1px solid var(--border); border-radius: 10px; background: #fff;
}
.email-file-view__body {
  min-height: 0; padding: 10px 10px calc(10px + var(--safe-bot)); display: flex; flex-direction: column;
  overflow: hidden; background: #fff;
}
.email-file-view__frame { width: 100%; min-height: 0; flex: 1; border: 1px solid var(--border); border-radius: 9px; background: #fff; }
.email-file-view__media { min-height: 0; flex: 1; display: grid; place-items: center; overflow: auto; }
.email-file-view__media img, .email-file-view__media video { max-width: 100%; max-height: 100%; object-fit: contain; }
.email-file-view__media audio { width: min(100%, 440px); }
.email-file-view__text {
  min-height: 0; flex: 1; margin: 0; padding: 12px; overflow: auto; white-space: pre-wrap; word-break: break-word;
  border: 1px solid var(--border); border-radius: 9px; background: var(--surface-2); font-size: 13px;
}
.email-file-view__fallback { min-height: 0; flex: 1; display: grid; place-content: center; gap: 8px; text-align: center; word-break: break-word; }
.email-file-view__fallback small { color: var(--muted); }
.email-file-view__bigicon { font-size: 58px; }
.email-file-view__download { flex: 0 0 auto; margin-top: 10px; text-align: center; text-decoration: none; }
/* Вложения мессенджеров (картинки/видео/аудио/файлы) в пузыре. */
.att-list { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.att--img { max-width: 220px; max-height: 280px; border-radius: 10px; cursor: zoom-in; display: block; object-fit: cover; background: var(--surface-2); }
.att--video { max-width: 240px; max-height: 300px; border-radius: 10px; display: block; background: #000; }
.att--audio { width: 230px; max-width: 100%; height: 40px; }
.att--file { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; background: var(--surface-2); border-radius: 10px; color: var(--primary); text-decoration: none; font-size: 13.5px; word-break: break-word; max-width: 100%; }
.bubble__meta { font-size: 10.5px; color: var(--muted); margin-top: 3px; text-align: right; }
.daysep { align-self: center; background: rgba(0,0,0,.06); color: var(--muted); font-size: 11px; padding: 3px 10px; border-radius: 999px; margin: 6px 0; }

.composer {
  display: flex; align-items: flex-end; gap: 8px; padding: 8px 10px calc(8px + var(--safe-bot));
  background: var(--surface); border-top: 1px solid var(--border);
}
.composer textarea {
  flex: 1; border: 1px solid var(--border); border-radius: 20px; padding: 9px 14px; font: inherit;
  font-size: 16px; resize: none; max-height: 120px; background: var(--surface-2);
}
.composer__send {
  width: 42px; height: 42px; border: 0; border-radius: 50%; background: var(--primary); color: #fff;
  font-size: 19px; cursor: pointer; flex-shrink: 0; display: grid; place-items: center;
}
.composer__send:disabled { opacity: .4; }
.composer__tool {
  width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--surface-2);
  font-size: 18px; cursor: pointer; flex-shrink: 0; display: grid; place-items: center;
}
.composer__locked { flex: 1; text-align: center; color: var(--muted); font-size: 13px; padding: 11px; }

/* ── Заявки ── */
.appcard {
  background: var(--surface); margin: 8px 12px; border-radius: var(--radius); box-shadow: var(--shadow);
  overflow: hidden; display: flex; cursor: pointer;
}
.appcard__stripe { width: 6px; flex-shrink: 0; background: var(--primary); }
.appcard__body { padding: 12px 14px; flex: 1; min-width: 0; }
.appcard__top { display: flex; align-items: center; gap: 8px; }
.appcard__num { font-weight: 700; }
.appcard__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.appcard__meta { display: flex; gap: 12px; margin-top: 6px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; color: #fff; }

/* ── Главная: свайп пропущенного звонка ── */
.missed-swipe { position: relative; overflow: hidden; }
.missed-swipe .appcard {
  position: relative; z-index: 2; transition: transform .18s ease; will-change: transform;
  touch-action: pan-y;
}
.missed-swipe.is-open .appcard { transform: translateX(-96px); }
.missed-swipe__hide {
  position: absolute; top: 8px; right: 12px; bottom: 8px; width: 84px; border: 0;
  border-radius: var(--radius); background: var(--danger); color: #fff; font: inherit;
  font-size: 13px; font-weight: 700; display: grid; place-items: center; cursor: pointer;
}
.missed-swipe__hide:active { filter: brightness(.95); }
.missed-swipe.is-busy .appcard { opacity: .55; pointer-events: none; }

/* ── Детали заявки ── */
.detail { padding: 14px; }
.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; margin-bottom: 12px; }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--border); }
.kv:last-child { border-bottom: 0; }
.kv__k { color: var(--muted); flex-shrink: 0; max-width: 58%; min-width: 0; overflow-wrap: anywhere; }
.kv__v { font-weight: 500; text-align: right; min-width: 0; overflow-wrap: anywhere; word-break: break-word; }
.section-title { font-size: 13px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; margin: 4px 4px 8px; }

/* ── Кнопки / формы ── */
.btn {
  display: block; width: 100%; border: 0; border-radius: 12px; padding: 13px; font: inherit;
  font-weight: 600; cursor: pointer; background: var(--primary); color: #fff;
}
.btn:active { background: var(--primary-d); }
.btn:disabled { opacity: .5; }
.btn--ghost { background: var(--surface); color: var(--primary); border: 1px solid var(--border); }
.btn--row { margin-bottom: 10px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; font: inherit;
  font-size: 16px; background: var(--surface);
}

/* ── Логин ── */
.login { display: flex; flex-direction: column; justify-content: center; min-height: 100%; padding: 28px 22px calc(28px + var(--safe-bot)); }
.login__brand { text-align: center; margin-bottom: 26px; }
.login__logo { width: 64px; height: 64px; border-radius: 18px; background: var(--primary); color: #fff; display: grid; place-items: center; font-size: 30px; margin: 0 auto 12px; box-shadow: var(--shadow); }
.login__title { font-size: 22px; font-weight: 700; }
.login__hint { color: var(--muted); font-size: 13.5px; margin-top: 4px; }

/* ── Веб-версия (ios.<домен>): «добавьте на экран „Домой“» и «включите уведомления» ── */
.webapp-hint { font-size: 14px; line-height: 1.45; border: 1px solid var(--primary-soft); }
.webapp-hint ol { margin: 8px 0 6px; padding-left: 20px; }
.webapp-hint li { margin: 3px 0; }
.webapp-hint small { color: var(--muted); }
.webapp-hint__ic { width: 16px; height: 16px; vertical-align: -3px; fill: none; stroke: var(--primary); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.webpush-bar { display: flex; align-items: center; gap: 10px; margin: 8px 12px 0; padding: 10px 12px; border-radius: 12px; background: var(--primary-soft); font-size: 13.5px; }
.webpush-bar__text { flex: 1; min-width: 0; }
.webpush-bar .btn { width: auto; padding: 8px 12px; font-size: 13.5px; flex-shrink: 0; }
.webpush-bar__close { border: 0; background: none; color: var(--muted); font-size: 18px; padding: 2px 4px; cursor: pointer; }

/* ── Состояния ── */
.empty, .loading { text-align: center; color: var(--muted); padding: 48px 24px; }
.spinner { width: 26px; height: 26px; border: 3px solid var(--border); border-top-color: var(--primary); border-radius: 50%; animation: spin .8s linear infinite; margin: 40px auto; }
@keyframes spin { to { transform: rotate(360deg); } }
/* Pull-to-refresh индикатор (overlay у верха скролл-контейнера). */
.ptr { position: absolute; left: 50%; transform: translate(-50%, -44px); opacity: 0; z-index: 6; pointer-events: none; transition: transform .25s ease, opacity .25s ease; will-change: transform, opacity; }
.ptr__spin { width: 28px; height: 28px; border: 3px solid var(--border); border-top-color: var(--primary); border-radius: 50%; background: var(--surface); box-shadow: var(--shadow); }
.ptr--spin .ptr__spin { animation: spin .8s linear infinite; }
.toast {
  position: fixed; left: 50%; bottom: calc(86px + var(--safe-bot)); transform: translateX(-50%);
  background: #14181b; color: #fff; padding: 11px 18px; border-radius: 12px; font-size: 13.5px;
  z-index: 100; box-shadow: 0 6px 24px rgba(0,0,0,.25); max-width: 86%; opacity: 0; transition: opacity .2s, transform .2s; pointer-events: none;
}
.toast.is-show { opacity: 1; transform: translateX(-50%) translateY(-4px); }
.toast--err { background: var(--danger); }

/* ── Модалка статуса ── */
.sheet-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 60; display: flex; align-items: flex-end; }
.sheet { background: var(--surface); width: 100%; border-radius: 18px 18px 0 0; max-height: 80%; overflow-y: auto; padding: 8px 0 calc(12px + var(--safe-bot)); animation: up .22s ease; }
@keyframes up { from { transform: translateY(100%); } }
.sheet__handle { width: 38px; height: 4px; background: var(--border); border-radius: 2px; margin: 8px auto 6px; }
.sheet__title { font-weight: 650; text-align: center; padding: 4px 16px 10px; }
.status-opt { display: flex; align-items: center; gap: 10px; padding: 12px 18px; cursor: pointer; }
.status-opt:active { background: var(--surface-2); }
.status-dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }

/* ── Поиск (16px → без зума при фокусе на iOS) ── */
.search-input {
  flex: 1; min-width: 0; width: 100%; border: 1px solid var(--border); border-radius: 999px;
  padding: 8px 14px; font: inherit; font-size: 16px; background: var(--surface-2);
}

/* ── Бейдж непрочитанных на чипе канала ── */
.chip { position: relative; }
.chip__badge {
  display: inline-grid; place-items: center; min-width: 17px; height: 17px; padding: 0 4px;
  margin-left: 6px; vertical-align: middle; background: var(--danger); color: #fff;
  border-radius: 9px; font-size: 10px; font-weight: 700;
}

/* ── Лид-бейдж: новая заявка из общего пула на «Главной» ── */
.lead-badge {
  flex-shrink: 0; background: var(--warn); color: #fff; font-size: 10px; font-weight: 700;
  padding: 2px 7px; border-radius: 999px; text-transform: uppercase; letter-spacing: .03em;
}

/* ── Главная: новые чаты по каналам (Мои / Все) ── */
.home-ch { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 2px 12px 10px; }
.home-ch__row { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 7px; }
.home-ch__ic { position: absolute; top: 7px; left: 7px; width: 26px; height: 26px; border-radius: 8px; color: #fff; font-size: 10px; font-weight: 700; line-height: 1; display: grid; place-items: center; }
.home-ch__ic small { font-size: 7px; }
.home-ch__lbl { grid-column: 1 / -1; min-width: 0; min-height: 26px; padding-left: 34px; display: flex; align-items: center; font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-ch__b { min-width: 0; border: 0; background: var(--surface-2); color: var(--muted); border-radius: 8px; padding: 5px 4px; font-size: 12px; cursor: pointer; white-space: nowrap; }
.home-ch__b b { color: var(--text); font-weight: 700; }
.home-ch__b--all { background: var(--primary-soft); }
.home-ch__b--all b { color: var(--primary-d); }
.home-ch__b:active { filter: brightness(.95); }

/* ── Турист в карточке брони ── */
.tourist { padding: 8px 0; border-bottom: 1px solid var(--border); }
.tourist:last-child { border-bottom: 0; }
.tourist__name { font-weight: 600; overflow-wrap: anywhere; word-break: break-word; }
.tourist__meta { color: var(--muted); font-size: 13px; margin-top: 2px; word-break: break-word; }

/* ── Чужая заявка в профиле клиента (read-only) ── */
.appcard--foreign { opacity: .72; }

/* ── Настройки уведомлений (тихие часы по дням) ── */
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.switch-row input[type="checkbox"] { width: 24px; height: 24px; flex-shrink: 0; }
.is-dim { opacity: .45; pointer-events: none; }
.day-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.day-row:last-child { border-bottom: 0; }
.day-row__on { display: flex; align-items: center; gap: 9px; flex: 1 1 100%; min-width: 0; cursor: pointer; font-weight: 500; }
.day-row__on input { width: 20px; height: 20px; flex-shrink: 0; }
.day-row__time { display: flex; align-items: center; gap: 8px; flex-shrink: 0; margin: 8px 0 2px 29px; }
.day-row__time input[type="time"] { font-size: 16px; border: 1px solid var(--border); border-radius: 8px; padding: 5px 7px; background: var(--surface-2); font: inherit; }
.day-row--off .day-row__time { opacity: .4; pointer-events: none; }

/* ── Быстрый вход: PIN-экран / экран блокировки ── */
.pinscreen__body { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: calc(var(--safe-top) + 24px) 24px calc(24px + var(--safe-bot)); }
.pinscreen__logo { width: 60px; height: 60px; border-radius: 18px; background: var(--primary); color: #fff; display: grid; place-items: center; font-size: 28px; box-shadow: var(--shadow); margin-bottom: 14px; }
.pinscreen__title { font-size: 20px; font-weight: 700; }
.pinscreen__sub { color: var(--muted); font-size: 14px; margin-top: 4px; text-align: center; }
.pindots { display: flex; gap: 16px; margin: 24px 0 28px; }
.pindot { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--primary); background: transparent; transition: background .12s, transform .12s; }
.pindot.is-on { background: var(--primary); transform: scale(1.05); }
.pindots.shake { animation: pinshake .4s; }
@keyframes pinshake { 0%,100% { transform: translateX(0); } 20%,60% { transform: translateX(-8px); } 40%,80% { transform: translateX(8px); } }
.pinpad { display: grid; grid-template-columns: repeat(3, 72px); gap: 16px; }
.pinkey { width: 72px; height: 72px; border-radius: 50%; border: 0; background: var(--surface); color: var(--text); font-size: 26px; font-weight: 500; box-shadow: var(--shadow); cursor: pointer; display: grid; place-items: center; }
.pinkey:active { background: var(--surface-2); transform: scale(.95); }
.pinkey--del, .pinkey--bio { background: transparent; box-shadow: none; color: var(--primary); }
.pinkey--bio { font-size: 30px; }
.pinkey--bio .bioicon { width: 38px; height: 38px; display: block; }
.pinkey.is-hidden { visibility: hidden; pointer-events: none; }
.pinscreen__alt { margin-top: 26px; background: none; border: 0; color: var(--primary); font-size: 14px; font-weight: 600; cursor: pointer; padding: 8px; }

/* ── Экран «Настройки» ── */
.setrow { cursor: pointer; }
.setrow:active { background: var(--surface-2); }
.set-switch { width: 24px; height: 24px; flex-shrink: 0; }
.set-switch:disabled { opacity: .4; }

/* ── Бейдж непрочитанного на кнопке в хедере (@ — Сообщения Алеан) ── */
.topbar__btn { position: relative; }
.topbar__badge {
  position: absolute; top: -4px; right: -4px; min-width: 16px; height: 16px; padding: 0 4px;
  background: var(--danger); color: #fff; border-radius: 8px; font-size: 10px; font-weight: 700;
  display: grid; place-items: center; box-shadow: 0 0 0 2px var(--primary);
}

/* ── Подсказка «чужая заявка, контакты под маской» ── */
.masked-hint {
  margin: 0 12px 12px; padding: 10px 12px; background: var(--surface-2);
  border-radius: 10px; color: var(--muted); font-size: 13px; line-height: 1.35;
}

/* ── Сообщения Алеан (список) ── */
.appcard.is-read { opacity: .6; }
.appcard__sub { font-size: 13.5px; color: var(--text); margin-top: 5px; line-height: 1.35; overflow-wrap: anywhere; }
.alean-text {
  margin-top: 7px; padding: 8px 10px; background: var(--surface-2); border-radius: 8px;
  font-size: 13px; color: var(--muted); white-space: pre-wrap; overflow-wrap: anywhere;
  max-height: 7.5em; overflow: hidden;
}
.alean-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--danger); flex-shrink: 0; }
.alean-acts { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.btn--mini { display: inline-block; width: auto; padding: 7px 14px; font-size: 13px; border-radius: 9px; }

/* ── Канал «Алеан» на экране заявки: лента событий ── */
/* Системная строка (смена статуса заказа, шапка) — по центру, не пузырь */
.alean-sys {
  align-self: center; text-align: center; max-width: 92%;
  font-size: 12.5px; color: var(--text);
  background: var(--card); border: 1px solid var(--border);
  border-radius: 12px; padding: 7px 12px; margin: 2px 0;
  overflow-wrap: anywhere;
}
.alean-sys__meta { font-size: 11px; color: var(--muted); margin-top: 3px; }
.alean-sys--muted { color: var(--muted); background: transparent; border-style: dashed; }
.alean-sys--warn { color: #b45309; border-color: #f59e0b; }

/* ── Видеоподборка: карточка в переписке, кнопка «Видео» в заявке, плеер (как в вебе) ── */
.vcard { display: flex; align-items: center; gap: 10px; width: 100%; max-width: 260px; margin: 0 0 6px; padding: 8px 12px 8px 8px; border: 0; border-radius: 10px; background: #0f0f0f; color: #fff; text-align: left; font: inherit; cursor: pointer; }
.vcard svg { flex: none; width: 46px; height: 32px; }
.vcard__cap { display: flex; flex-direction: column; min-width: 0; }
.vcard__label { font-size: 10.5px; color: rgba(255, 255, 255, .6); text-transform: uppercase; letter-spacing: .04em; }
.vcard__title { font-size: 13px; font-weight: 600; line-height: 1.3; white-space: normal; }
.vbtn { display: inline-flex; align-items: center; gap: 6px; margin: 6px 0 2px; padding: 6px 12px 6px 8px; border: 0; border-radius: 8px; background: #f00; color: #fff; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.vbtn svg { width: 22px; height: 16px; }
.vbtn svg rect { fill: #fff; }
.vbtn svg path { fill: #f00; }
.vbtn__dur { font-weight: 400; opacity: .85; }
.vp { position: fixed; inset: 0; z-index: 80; background: #000; display: flex; flex-direction: column; padding-top: var(--safe-top); padding-bottom: var(--safe-bot); }
.vp__bar { display: flex; align-items: center; gap: 10px; padding: 10px 12px; color: #fff; }
.vp__title { flex: 1; min-width: 0; font-weight: 600; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vp__close { border: 0; background: rgba(255, 255, 255, .15); color: #fff; width: 36px; height: 36px; border-radius: 50%; font-size: 17px; cursor: pointer; }
.vp__stage { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; min-height: 0; }
.vp__play { border: 0; background: none; padding: 0; cursor: pointer; }
.vp__play svg { width: 88px; height: 62px; }
.vp__hint, .vp__msg { color: rgba(255, 255, 255, .7); font-size: 13px; text-align: center; padding: 0 16px; }
.vp__video { width: 100%; max-height: 100%; background: #000; }

/* ── Окно 24 часа WhatsApp над полем ввода ── */
.wawin { padding: 6px 12px; font-size: 12.5px; text-align: center; border-top: 1px solid var(--border); }
.wawin--open { background: #e8f6ee; color: var(--success); }
.wawin--closed { background: #fff6e5; color: #9a6700; }

/* ── Выбранный шаблон, редактор письма по шаблону, счётчик SMS ── */
.tplbar { margin: 6px 8px 0; padding: 7px 10px; border-radius: 10px; background: var(--primary-soft); font-size: 13px; }
.tplbar__head { display: flex; align-items: center; gap: 8px; }
.tplbar__name { flex: 1; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tplbar__x { border: 0; background: none; color: var(--muted); font-size: 15px; padding: 2px 4px; cursor: pointer; }
.tplbar__doc { display: flex; align-items: center; gap: 6px; margin-top: 5px; }
.tplbar__doc input { width: 18px; height: 18px; flex-shrink: 0; }
.tplbar__note { margin-top: 4px; color: var(--muted); font-size: 12px; }
.composer__rich { display: block; flex: 1; min-width: 0; max-height: 40vh; overflow-y: auto; border: 1px solid var(--border); border-radius: 14px; padding: 9px 12px; font-size: 16px; background: var(--surface-2); outline: none; word-wrap: break-word; }
.composer__rich[hidden], .composer textarea[hidden] { display: none; }
.composer__rich img { max-width: 100%; height: auto; }
.composer__meter { padding: 4px 6px 0; font-size: 12px; color: var(--muted); text-align: right; }
.composer__meter.is-over { color: var(--danger); font-weight: 600; }

/* ── Вложение с телефона и голосовое ── */
.composer__row { display: flex; align-items: flex-end; gap: 8px; width: 100%; }
.composer__row[hidden] { display: none; }
.filebar { display: flex; align-items: center; gap: 8px; margin: 6px 8px 0; padding: 7px 10px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); font-size: 13px; }
.filebar__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.composer__rec { align-items: center; min-height: 42px; }
.rec__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--danger); flex-shrink: 0; animation: recpulse 1s ease-in-out infinite; }
@keyframes recpulse { 50% { opacity: .25; } }
.rec__time { font-variant-numeric: tabular-nums; font-weight: 600; min-width: 42px; }
.rec__hint { flex: 1; min-width: 0; color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .rec__dot { animation: none; } }

/* ── Карточка заявки: главное сверху, второстепенное — раскрывающимися блоками ── */
.appkey__client { font-size: 18px; font-weight: 650; margin-bottom: 4px; }
.appkey__line { font-size: 14px; color: var(--text); margin-bottom: 2px; overflow-wrap: anywhere; }
.appkey__obj { font-size: 15px; font-weight: 600; margin: 8px 0 2px; }
.appkey__dates { font-size: 14px; margin: 4px 0 8px; }
.paybar { margin: 8px 0 4px; }
.paybar__text { font-size: 13.5px; margin-bottom: 5px; }
.paybar__track { height: 8px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.paybar__fill { height: 100%; background: var(--success); border-radius: 4px; }
.acts { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 8px; margin: 0 0 12px; }
.act { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 10px 6px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--text); font: inherit; font-size: 12.5px; cursor: pointer; }
.act span { font-size: 19px; }
.act--primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.sec { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 10px; overflow: hidden; }
.sec__head { display: flex; align-items: center; gap: 8px; width: 100%; padding: 14px 16px; border: 0; background: none; font: inherit; font-size: 15px; font-weight: 600; color: var(--text); text-align: left; cursor: pointer; }
.sec__title { flex: 1; min-width: 0; }
.sec__badge { background: var(--surface-2); color: var(--muted); border-radius: 999px; padding: 2px 8px; font-size: 12px; font-weight: 600; }
.sec__chev { color: var(--muted); transition: transform .15s; }
.sec.is-open .sec__chev { transform: rotate(90deg); }
.sec__body { padding: 0 16px 14px; }
.sub-title { font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; margin: 14px 0 4px; }
.room { border-top: 1px solid var(--border); margin-top: 8px; padding-top: 6px; }
.room__name { font-weight: 600; margin: 4px 0; }
.totals { margin-top: 10px; background: var(--surface-2); border-radius: 12px; padding: 4px 12px; }
.totals .kv:last-child { border-bottom: 0; }
.totals__main .kv__k, .totals__main .kv__v { color: var(--text); font-weight: 700; font-size: 16px; }
.note { background: var(--surface-2); border-radius: 10px; padding: 8px 10px; font-size: 13.5px; white-space: pre-wrap; margin: 6px 0; }
.hint-muted { font-size: 12px; color: var(--muted); margin-top: 8px; }
.form-err { color: var(--danger); font-size: 13px; margin: 6px 0; }
.form-err:empty { display: none; }
.edit-btn { display: block; width: 100%; margin: 0 0 8px; padding: 9px; border: 1px dashed var(--primary); border-radius: 10px; background: var(--primary-soft); color: var(--primary); font: inherit; font-weight: 600; cursor: pointer; }
.edit-head { font-weight: 650; margin-bottom: 6px; }
.edit-btns { display: flex; gap: 8px; margin-top: 14px; position: sticky; bottom: 0; background: var(--surface); padding: 8px 0 calc(8px + var(--safe-bot)); }
.edit-btns .btn { flex: 1; margin: 0; }
.frow { display: flex; flex-direction: column; gap: 4px; margin: 8px 0; font-size: 13px; color: var(--muted); }
.frow--check { flex-direction: row; align-items: center; gap: 8px; color: var(--text); font-size: 15px; font-weight: 600; }
.frow--check input { width: 20px; height: 20px; }
.fld { width: 100%; min-width: 0; border: 1px solid var(--border); border-radius: 10px; padding: 9px 10px; font: inherit; font-size: 16px; background: var(--surface); color: var(--text); }
textarea.fld { resize: vertical; }
.fgrid { display: grid; grid-template-columns: 1fr 1fr auto; gap: 6px; margin: 6px 0; align-items: center; }
.fgrid--3 { grid-template-columns: 1fr 1fr 1fr; }
.fgrid .mini { margin: 0; }
.room--edit { background: var(--surface-2); border: 0; border-radius: 12px; padding: 8px; margin-top: 10px; }
.room__bar { display: flex; gap: 6px; align-items: center; }
.tourist--edit { background: var(--surface); border-radius: 10px; padding: 8px; margin: 8px 0; border: 1px solid var(--border); }
.tourist__foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 4px; }
.tourist__sum { font-size: 13.5px; }
.mini { border: 1px solid var(--border); background: var(--surface); color: var(--primary); border-radius: 8px; padding: 6px 10px; font: inherit; font-size: 13px; cursor: pointer; margin: 6px 0; white-space: nowrap; }
.mini--danger { color: var(--danger); }
.confirm__body { padding: 0 16px; max-height: 50vh; overflow-y: auto; font-size: 14px; }
.confirm__btns { display: flex; gap: 8px; padding: 12px 16px calc(8px + var(--safe-bot)); }
.confirm__btns .btn { flex: 1; margin: 0; }
.diff { margin: 0; padding-left: 18px; }
.diff li { margin: 4px 0; overflow-wrap: anywhere; }
.file-row { display: flex; align-items: center; gap: 8px; width: 100%; padding: 10px 0; border: 0; border-bottom: 1px solid var(--border); background: none; font: inherit; color: var(--text); text-align: left; cursor: pointer; }
.file-row span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-row small { color: var(--muted); }
.thread--inline { padding: 4px 0; }

/* ── Задачи календаря: блок на главной, экран «Задачи», листы действий ── */
.tasks-home { background: var(--surface); margin: 10px 12px; border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px; }
.tasks-home__head { display: flex; align-items: center; justify-content: space-between; font-weight: 650; margin-bottom: 10px; }
.linkbtn { border: 0; background: none; color: var(--primary); font: inherit; font-size: 14px; font-weight: 600; padding: 4px 0; cursor: pointer; }
.tasktiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.tasktile { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); font: inherit; color: var(--text); text-align: left; cursor: pointer; }
.tasktile b { font-size: 24px; line-height: 1.1; }
.tasktile span { font-size: 13px; color: var(--muted); }
.tasktile--late { background: #fdecea; border-color: #f5c6c2; }
.tasktile--late b { color: var(--danger); }
.tasktile.is-zero { background: var(--surface-2); border-color: var(--border); }
.tasktile.is-zero b { color: var(--muted); }
.tasks-home__list .task { margin: 0 0 8px; }
.tasks-home__list .task:last-child { margin-bottom: 0; }
.tasks-home__done { padding: 8px 2px 2px; color: var(--success); font-size: 14px; }
.tasks-hint { padding: 10px 16px 0; font-size: 12.5px; color: var(--muted); }
.tasks-list { padding: 10px 12px 20px; }
.chip__n { font-weight: 700; }

.task { display: flex; background: var(--surface); border-radius: 12px; box-shadow: var(--shadow); overflow: hidden; margin-bottom: 10px; cursor: pointer; }
.task__stripe { width: 5px; flex-shrink: 0; background: var(--primary); }
.task--p1 .task__stripe { background: var(--danger); }
.task--p3 .task__stripe { background: #b8c2cc; }
.task__body { flex: 1; min-width: 0; padding: 10px 12px; }
.task__top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.task__when { font-weight: 650; font-size: 14px; }
.task--late .task__when { color: var(--danger); }
.task__late { font-size: 12px; color: var(--danger); white-space: nowrap; }
.task__title { margin-top: 3px; font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.task__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 5px; font-size: 12.5px; color: var(--muted); }
.task__status { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 600; color: var(--text); }
.task__note { margin-top: 6px; padding: 6px 9px; background: var(--surface-2); border-radius: 8px; font-size: 13.5px; line-height: 1.35; overflow-wrap: anywhere; white-space: pre-line; }
.task__tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.tag { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11.5px; background: var(--primary-soft); color: var(--primary-d); }
.tag--hot { background: #fdecea; color: #b3322c; }
.tag--warn { background: #fdf2dc; color: #8a5a00; }
.tag--muted { background: var(--surface-2); color: var(--muted); }

.tasksheet { padding: 0 14px 4px; }
.tasksheet .task { box-shadow: none; border: 1px solid var(--border); cursor: default; }
.tasksheet__acts { padding: 6px 14px 4px; }
.btn--danger { color: var(--danger); }

.tform { padding: 0 16px 4px; }
.tform .fld { margin: 6px 0 10px; }
.tform__label { font-size: 13px; color: var(--muted); font-weight: 500; margin: 8px 0 6px; }
.tform__chips, .slotpick__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tform__toggle { display: flex; align-items: center; gap: 8px; margin: 4px 0; font-size: 14.5px; font-weight: 500; }
.tform__toggle input { width: 20px; height: 20px; }
.slotpick__input { margin-top: 8px !important; }
.seg { display: flex; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; margin-bottom: 10px; }
.seg__btn { flex: 1; border: 0; background: var(--surface); padding: 8px 4px; font: inherit; font-size: 13.5px; color: var(--text); cursor: pointer; }
.seg__btn + .seg__btn { border-left: 1px solid var(--border); }
.seg__btn.is-active { background: var(--primary); color: #fff; }
.seg__btn--p1.is-active { background: var(--danger); }

.nexttask { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; margin-top: 8px; padding: 9px 11px; border: 1px solid var(--border); border-radius: 10px; background: var(--primary-soft); font: inherit; color: var(--text); text-align: left; cursor: pointer; }
.nexttask__k { font-size: 13px; color: var(--muted); }
.nexttask__v { font-size: 14px; font-weight: 600; }
.nexttask--late { background: #fdecea; border-color: #f5c6c2; }
.nexttask--late .nexttask__v { color: var(--danger); }

/* ── Звонки клиента заявки: записи и расшифровки ── */
.callsrow { cursor: pointer; }
.avatar--calls { background: #5b6b7a; font-size: 18px; }
.calls { padding: 10px 12px 20px; }
.callrow { display: flex; gap: 10px; background: var(--surface); border-radius: 12px; box-shadow: var(--shadow); padding: 10px 12px; margin-bottom: 10px; }
.callrow__ic { width: 32px; height: 32px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: var(--primary-soft); color: var(--primary); }
.callrow--miss .callrow__ic { background: #fdecea; color: var(--danger); }
.callrow__main { flex: 1; min-width: 0; }
.callrow__top { display: flex; justify-content: space-between; gap: 8px; font-size: 14.5px; }
.callrow__top span { color: var(--muted); font-size: 13px; white-space: nowrap; }
.callrow__sub { margin-top: 2px; font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.callrow--miss .callrow__sub { color: var(--danger); }
.callrow__acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.callrow__player audio { width: 100%; margin-top: 8px; height: 36px; }
.callrow__tr { margin-top: 8px; display: flex; flex-direction: column; gap: 6px; }
.callrow__tr[hidden] { display: none; }
.trline { max-width: 88%; padding: 7px 10px; border-radius: 12px; font-size: 13.5px; line-height: 1.35; overflow-wrap: anywhere; }
.trline__who { display: block; font-size: 11px; font-weight: 600; color: var(--muted); margin-bottom: 2px; }
.trline--cli { align-self: flex-start; background: var(--surface-2); border: 1px solid var(--border); }
.trline--mgr { align-self: flex-end; background: var(--out-bubble); }

/* «Показать контакты» — своя заявка с неактивным клиентом */
.reveal-btn { margin-top: 6px; min-height: 36px; padding: 6px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); color: var(--primary); font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.reveal-btn:disabled { opacity: .5; }

/* ── Личный кабинет менеджера ── */
.topbar__btn--me { font-size: 14px; font-weight: 700; letter-spacing: .02em; border-radius: 50%; background: rgba(255,255,255,.22); }
.cab { padding: 12px 12px 28px; }
.cab-ic { width: 20px; height: 20px; flex-shrink: 0; }
.cab-skel { height: 120px; border-radius: var(--radius); background: linear-gradient(90deg, var(--surface) 0%, var(--surface-2) 50%, var(--surface) 100%); background-size: 200% 100%; animation: cabShimmer 1.2s ease-in-out infinite; margin-bottom: 12px; }
.cab-skel--short { height: 72px; }
@keyframes cabShimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
@media (prefers-reduced-motion: reduce) { .cab-skel { animation: none; } }

.cab-hero { display: flex; align-items: center; gap: 14px; padding: 16px; margin-bottom: 12px; border-radius: var(--radius); background: linear-gradient(135deg, var(--primary) 0%, var(--primary-d) 100%); color: #fff; box-shadow: var(--shadow); }
.cab-hero__av { width: 56px; height: 56px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.18); font-size: 20px; font-weight: 700; }
.cab-hero__main { min-width: 0; }
.cab-hero__name { font-size: 18px; font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }
.cab-hero__meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.cab-hero__place { margin-top: 6px; font-size: 13px; opacity: .9; }
.cab-chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; background: rgba(255,255,255,.16); font-size: 12.5px; font-weight: 600; }
.cab-chip .cab-ic { width: 14px; height: 14px; }

.cab-card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 16px; margin-bottom: 12px; }
.cab-card--accent { border: 1px solid var(--primary-soft); background: linear-gradient(180deg, var(--primary-soft) 0%, var(--surface) 70%); }
.cab-card__head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; color: var(--primary); }
.cab-card__head h3 { margin: 0; font-size: 15px; font-weight: 650; color: var(--text); flex: 1; min-width: 0; }
.cab-card__tag { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.cab-empty { color: var(--muted); text-align: center; }

.cab-big { display: flex; flex-direction: column; gap: 2px; margin-bottom: 12px; }
.cab-big__num { font-size: 34px; font-weight: 750; line-height: 1.05; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.cab-big__sub { font-size: 13.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.cab-foot { margin-top: 10px; font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.cab-lead { margin: 0 0 8px; font-size: 15px; font-weight: 600; line-height: 1.4; }
.cab-note { margin: 8px 0 0; font-size: 13.5px; line-height: 1.4; color: var(--text); }
.cab-note--bad { color: var(--danger); }
.cab-sub { margin: 14px 0 8px; font-size: 12.5px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.cab-bar { height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; }
.cab-bar span { display: block; height: 100%; background: var(--primary); border-radius: 3px; }

/* шкала плана 0–200% с отметками ступеней */
.cab-scale { position: relative; padding-bottom: 22px; }
.cab-scale__track { position: relative; height: 10px; border-radius: 5px; background: var(--surface-2); overflow: visible; }
.cab-scale__fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 5px; background: linear-gradient(90deg, var(--primary) 0%, #12a39f 100%); transition: width .4s ease-out; }
.cab-scale__today { position: absolute; top: -4px; width: 2px; height: 18px; background: var(--text); opacity: .35; border-radius: 1px; }
.cab-scale__marks { position: absolute; left: 0; right: 0; top: 0; height: 10px; }
.cab-scale__mark { position: absolute; top: 0; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; }
.cab-scale__mark i { width: 2px; height: 10px; background: var(--surface); }
.cab-scale__mark b { margin-top: 5px; font-size: 11.5px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.cab-scale__mark.is-done b { color: var(--success); }
.cab-scale__mark:last-child { transform: translateX(-100%); align-items: flex-end; }
@media (prefers-reduced-motion: reduce) { .cab-scale__fill { transition: none; } }

.cab-state { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.cab-state--ok { background: #e3f5ec; color: #146c43; }
.cab-state--warn { background: #fdf2dc; color: #8a5a00; }
.cab-state--bad { background: #fdecea; color: #b3322c; }

.cab-wins { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.cab-win { padding: 10px 8px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); text-align: center; min-width: 0; }
.cab-win__days { font-size: 12px; color: var(--muted); font-weight: 600; }
.cab-win__pct { font-size: 18px; font-weight: 700; margin-top: 2px; font-variant-numeric: tabular-nums; }
.cab-win__bar { font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.cab-win__st { margin-top: 4px; font-size: 11.5px; font-weight: 600; overflow-wrap: anywhere; }
.cab-win--ok { background: #f0faf5; border-color: #cdebdc; } .cab-win--ok .cab-win__st { color: #146c43; }
.cab-win--bad { background: #fdf3f2; border-color: #f5cfcb; } .cab-win--bad .cab-win__st { color: #b3322c; }
.cab-win--few .cab-win__st { color: var(--muted); }

.cab-quote { position: relative; padding-left: 44px; }
.cab-quote__ic { position: absolute; left: 14px; top: 14px; color: var(--primary); opacity: .6; }
.cab-quote p { margin: 0 0 6px; font-size: 14.5px; line-height: 1.45; }

.cab-streaks { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.cab-streak { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 6px; border-radius: 999px; background: var(--primary-soft); color: var(--primary-d); font-size: 12.5px; font-weight: 600; }
.cab-medals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.cab-medal { display: flex; flex-direction: column; align-items: center; gap: 4px; min-height: 44px; padding: 8px 4px; border: 0; border-radius: 12px; background: transparent; font: inherit; color: var(--text); cursor: pointer; text-align: center; }
.cab-medal:active { background: var(--surface-2); }
.cab-medal__art img { width: 64px; height: 64px; display: block; }
.cab-medal__stub { width: 64px; height: 64px; border-radius: 50%; border: 2px dashed var(--border); display: block; }
.cab-medal__stub--sm { width: 40px; height: 40px; }
.cab-medal__title { font-size: 12px; font-weight: 600; line-height: 1.25; overflow-wrap: anywhere; }
.cab-medal__lvl { font-size: 11px; color: var(--muted); }
.cab-medal__prog { width: 70%; height: 4px; border-radius: 2px; background: var(--surface-2); overflow: hidden; }
.cab-medal__prog i { display: block; height: 100%; background: var(--primary); }
.cab-medal.is-locked .cab-medal__art { filter: grayscale(1); opacity: .45; }
.cab-medal.is-locked .cab-medal__title { color: var(--muted); }

.cab-title { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--border); }
.cab-title:first-of-type { border-top: 0; }
.cab-title img { flex-shrink: 0; }
.cab-title__main { flex: 1; min-width: 0; }
.cab-title__name { font-size: 14px; font-weight: 600; }
.cab-title__hint { font-size: 12.5px; color: var(--muted); }
.cab-title__who { font-size: 12.5px; color: var(--muted); text-align: right; max-width: 38%; overflow-wrap: anywhere; }
.cab-title.is-mine .cab-title__name { color: var(--primary-d); }

.cab-chip--btn { border: 0; color: #fff; font: inherit; font-size: 12.5px; font-weight: 600; min-height: 28px; cursor: pointer; }
.cab-chip--btn:active { background: rgba(255,255,255,.3); }

/* ── Шапка: 44 px иконки, меню «⋯», поиск ── */
.topbar__btn--ic { width: 44px; height: 44px; background: transparent; border-radius: 12px; }
.topbar__btn--ic:active { background: rgba(255,255,255,.18); }
.bar-ic { width: 22px; height: 22px; display: block; }
.topbar__dot { position: absolute; top: 9px; right: 9px; width: 9px; height: 9px; border-radius: 50%; background: var(--danger); box-shadow: 0 0 0 2px var(--primary); }

.mmenu-backdrop { position: fixed; inset: 0; z-index: 70; background: rgba(0,0,0,.12); }
.mmenu { position: absolute; top: calc(var(--safe-top) + 54px); right: 10px; min-width: 230px; max-width: calc(100vw - 20px); padding: 6px; border-radius: 14px; background: var(--surface); box-shadow: 0 10px 30px rgba(16,24,32,.18), 0 2px 6px rgba(16,24,32,.08); transform-origin: top right; animation: mmenuIn .16s ease-out; }
@keyframes mmenuIn { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .mmenu { animation: none; } }
.mmenu__item { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 46px; padding: 0 12px; border: 0; border-radius: 10px; background: transparent; font: inherit; font-size: 15px; color: var(--text); text-align: left; cursor: pointer; }
.mmenu__item:active { background: var(--surface-2); }
.mmenu__item .bar-ic { color: var(--primary); }
.mmenu__label { flex: 1; min-width: 0; }
.mmenu__count { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--danger); color: #fff; font-size: 12px; font-weight: 700; display: inline-grid; place-items: center; }

.topbar--search { gap: 8px; }
.topbar__search { flex: 1; min-width: 0; height: 40px; border: 0; border-radius: 12px; padding: 0 14px; font: inherit; font-size: 16px; background: rgba(255,255,255,.95); color: var(--text); outline: none; }
.topbar__search:focus { box-shadow: 0 0 0 2px rgba(255,255,255,.6); }

/* ── Алеан: поиск мест (нижнее меню) ── */
.as-form .field { margin-bottom: 12px; }
.as-where { position: relative; }
.as-sub { font-size: 12px; color: var(--muted); margin-top: 4px; min-height: 16px; }
.as-sg { position: absolute; left: 0; right: 0; top: 70px; z-index: 20; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 8px 24px rgba(16, 24, 32, .14); max-height: 320px; overflow-y: auto; }
.as-sg__it { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 8px 12px; border: 0; border-bottom: 1px solid var(--border); background: none; font: inherit; color: var(--text); text-align: left; cursor: pointer; }
.as-sg__it:last-child { border-bottom: 0; }
.as-sg__it:active { background: var(--surface-2); }
.as-sg__type { flex-shrink: 0; font-size: 11px; font-weight: 600; padding: 3px 7px; border-radius: 6px; background: var(--primary-soft); color: var(--primary-d); }
.as-sg__type--hotel { background: #fff4e0; color: #9a5b00; }
.as-sg__main { display: flex; flex-direction: column; min-width: 0; }
.as-sg__name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.as-sg__meta { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.as-sg__empty { padding: 14px; color: var(--muted); font-size: 14px; }
.as-dates { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.as-dates .field { margin-bottom: 4px; }
.as-nights { font-size: 13px; color: var(--muted); margin: 0 0 12px; min-height: 18px; }
.as-guests, .as-kid { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid var(--border); }
.as-guests__lbl { font-weight: 500; }
.as-step { display: flex; align-items: center; gap: 6px; }
.as-step__b { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface-2); font-size: 22px; line-height: 1; color: var(--primary); cursor: pointer; }
.as-step__n { min-width: 28px; text-align: center; font-weight: 700; font-size: 17px; font-variant-numeric: tabular-nums; }
.as-kid__age { width: auto; flex: 1; max-width: 170px; }
.as-kid__del { width: 44px; height: 44px; border: 0; background: none; color: var(--muted); font-size: 16px; cursor: pointer; }
#asAddKid { margin: 8px 0 12px; }
.as-filters { background: var(--surface); border-bottom: 1px solid var(--border); padding: 6px 0 8px; }
.as-f__row { display: flex; gap: 6px; padding: 4px 14px; overflow-x: auto; scrollbar-width: none; }
.as-f__row::-webkit-scrollbar { display: none; }
.as-f__row .chip { flex-shrink: 0; min-height: 34px; }
.as-f__row--sel { gap: 8px; }
.as-f__sel { width: auto; flex: 1; min-width: 0; padding: 7px 8px; font-size: 14px; }
.as-note { font-size: 12.5px; color: var(--muted); padding: 10px 14px 0; }
.as-list { padding: 10px 12px; display: grid; gap: 10px; }
.as-card { display: flex; gap: 12px; width: 100%; padding: 10px; border: 0; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); font: inherit; color: var(--text); text-align: left; cursor: pointer; }
.as-card.is-dim { opacity: .55; }
.as-card__img { width: 92px; height: 92px; flex-shrink: 0; border-radius: 10px; object-fit: cover; background: var(--surface-2); }
.as-card__img--none { display: flex; align-items: center; justify-content: center; font-size: 28px; }
.as-card__body { display: flex; flex-direction: column; min-width: 0; flex: 1; gap: 2px; }
.as-card__name { font-weight: 650; line-height: 1.25; }
.as-card__stars { color: #c77700; font-size: 12px; font-weight: 700; white-space: nowrap; }
.as-card__meta { font-size: 12.5px; color: var(--muted); }
.as-card__side { margin-top: auto; padding-top: 4px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.as-card__price { font-weight: 750; font-size: 16px; color: var(--primary-d); font-variant-numeric: tabular-nums; }
.as-card__pn { font-size: 12px; color: var(--muted); }
.as-card__none, .as-card__wait { font-size: 13px; color: var(--muted); }
.as-badge { display: inline-block; font-size: 11.5px; font-weight: 600; padding: 2px 7px; border-radius: 6px; }
.as-badge--ok { background: #e6f6ee; color: #146c43; }
.as-badge--req { background: #fdf1de; color: #92560a; }
.as-gal { display: flex; gap: 6px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px 12px 0; scrollbar-width: none; }
.as-gal::-webkit-scrollbar { display: none; }
.as-gal img { width: 82%; max-width: 340px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; flex-shrink: 0; scroll-snap-align: start; background: var(--surface-2); }
.as-hhead { padding: 12px 16px 4px; }
.as-hhead__name { font-size: 18px; font-weight: 700; line-height: 1.25; }
.as-room { padding: 12px; }
.as-room__name { font-weight: 650; margin-bottom: 6px; }
.as-room__type { font-weight: 500; color: var(--muted); font-size: 13px; }
.as-offer { display: flex; gap: 10px; justify-content: space-between; width: 100%; min-height: 56px; padding: 10px 0; border: 0; border-top: 1px solid var(--border); background: none; font: inherit; color: var(--text); text-align: left; cursor: pointer; }
.as-offer__main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.as-offer__pk { font-weight: 600; font-size: 14px; line-height: 1.3; }
.as-offer__pl { font-size: 12.5px; color: var(--muted); }
.as-offer__free { font-size: 12px; color: var(--muted); }
.as-offer__price { flex-shrink: 0; text-align: right; font-weight: 750; color: var(--primary-d); font-variant-numeric: tabular-nums; white-space: nowrap; }
.as-offer__price small { display: block; font-weight: 500; font-size: 11.5px; color: var(--muted); }
.as-prose { font-size: 14px; line-height: 1.5; white-space: pre-line; }
.as-list-txt { font-size: 14px; line-height: 1.6; }
.kv--col { flex-direction: column; gap: 2px; }
.kv--col .kv__k, .kv--col .kv__v { max-width: none; text-align: left; }
.as-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 10px 12px; }
.as-photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; background: var(--surface-2); }
.as-sheet { padding: 0 14px; }
.as-sheet__sum { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0 12px; }

/* ── Главная: непрочитанные в мессенджерах и Алеан по моим заявкам ── */
.home-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 12px 12px 0; }
.home-head .section-title { margin: 0; }
.home-head .linkbtn { min-height: 44px; padding: 0 4px; }
.home-unread { margin: 0 12px; padding: 0; background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.home-alean { padding: 0 12px; }
.as-li { padding: 2px 0; }
.as-li__d { font-size: 12.5px; color: var(--muted); padding-left: 12px; }
.as-gal--room { padding: 8px 0 0; }
.as-gal--room img { width: 70%; }
/* Экран отеля одной страницей: секции с якорями */
.as-page { position: relative; }
.as-anchors { position: relative; z-index: 2; }
.as-anchors .chip { flex-shrink: 0; }
.as-sec { padding: 4px 12px 8px; }
.as-sec + .as-sec { border-top: 8px solid transparent; }
.as-sec__h { font-size: 18px; font-weight: 700; margin: 14px 4px 10px; }
.as-sec .as-note--in { padding: 4px 4px 0; }
.as-sec .as-photos { padding: 0; }

/* ── Карточка номера: фото, оснащение, тарифы, цена за путёвку и за 1 чел. ── */
.as-ic { width: 16px; height: 16px; flex-shrink: 0; vertical-align: -3px; }
.as-calc { font-size: 13px; color: var(--muted); margin: 0 4px 10px; line-height: 1.45; }
.as-skel { height: 260px; border-radius: var(--radius); background: linear-gradient(90deg, var(--surface) 25%, var(--surface-2) 50%, var(--surface) 75%); background-size: 200% 100%; animation: asShimmer 1.2s ease-in-out infinite; margin-bottom: 12px; }
@keyframes asShimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.as-rcard { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; margin-bottom: 14px; }
.as-rgal { position: relative; aspect-ratio: 4 / 3; background: var(--surface-2); }
.as-rgal__track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.as-rgal__track::-webkit-scrollbar { display: none; }
.as-rgal__track img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: start; }
.as-rgal__cnt { position: absolute; right: 10px; bottom: 10px; padding: 3px 9px; border-radius: 999px; background: rgba(15, 23, 42, .62); color: #fff; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.as-rgal--none { aspect-ratio: auto; height: 76px; display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--muted); font-size: 13px; }
.as-rcard__body { padding: 12px 14px 4px; }
.as-rcard__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.as-rcard__name { font-size: 17px; font-weight: 700; line-height: 1.3; margin: 0; }
.as-rcard__from { flex-shrink: 0; text-align: right; font-size: 12px; color: var(--muted); line-height: 1.3; }
.as-rcard__from b { display: block; font-size: 17px; color: var(--primary-d); font-variant-numeric: tabular-nums; }
.as-rcard__from span { display: block; font-variant-numeric: tabular-nums; }
.as-rcard__type { font-size: 13px; color: var(--muted); margin-top: 2px; }
.as-rfacts { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 8px; color: var(--text); font-size: 13.5px; }
.as-rfact { display: inline-flex; align-items: center; gap: 5px; }
.as-rfact .as-ic { color: var(--primary); }
.as-rcard__desc { font-size: 13.5px; color: var(--muted); margin: 8px 0 0; line-height: 1.45; }
.as-amen { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.as-pill { font-size: 12.5px; padding: 4px 9px; border-radius: 8px; background: var(--primary-soft); color: var(--primary-d); }
.as-more { margin-top: 8px; }
.as-more summary { min-height: 44px; display: flex; align-items: center; color: var(--primary); font-weight: 600; font-size: 14px; cursor: pointer; list-style: none; }
.as-more summary::-webkit-details-marker { display: none; }
.as-more summary::after { content: '›'; margin-left: 6px; transition: transform .2s ease; }
.as-more[open] summary::after { transform: rotate(90deg); }
.as-more__g { margin-bottom: 8px; }
.as-more__h { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-bottom: 3px; }
.as-more ul { margin: 0; padding-left: 18px; font-size: 13.5px; line-height: 1.55; }
.as-tars { border-top: 1px solid var(--border); padding: 4px 14px 6px; }
.as-tars__h { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 10px 0 2px; }
.as-tar { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 64px; padding: 12px 0; border: 0; border-bottom: 1px solid var(--border); background: none; font: inherit; color: var(--text); text-align: left; cursor: pointer; transition: background-color .15s ease; }
.as-tar:last-child { border-bottom: 0; }
.as-tar:active { background: var(--surface-2); }
.as-tar__main { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; }
.as-tar__name { font-weight: 600; font-size: 14px; line-height: 1.35; }
.as-tar__pl { font-size: 12.5px; color: var(--muted); line-height: 1.35; }
.as-tar__tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.as-tar__free { font-size: 12px; color: var(--muted); }
.as-tar__free.is-low { color: #b45309; font-weight: 600; }
.as-badge { display: inline-flex; align-items: center; gap: 3px; }
.as-badge .as-ic { width: 13px; height: 13px; }
.as-tar__price { flex-shrink: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 1px; font-variant-numeric: tabular-nums; }
.as-tar__price b { font-size: 16px; color: var(--primary-d); }
.as-tar__pp { font-size: 12.5px; font-weight: 600; color: var(--text); }
.as-tar__pn { font-size: 11.5px; color: var(--muted); }
.as-tar__chev { color: var(--muted); display: flex; }
.as-more--rest { background: var(--surface); border-radius: var(--radius); padding: 0 14px 8px; box-shadow: var(--shadow); }
.as-rest { padding: 8px 0; border-top: 1px solid var(--border); }
.as-rest__name { font-weight: 600; font-size: 14px; }
.as-offer__price small + small { margin-top: 2px; }
@media (prefers-reduced-motion: reduce) { .as-skel { animation: none; } .as-more summary::after { transition: none; } }

/* ── Компактная карточка номера (перекрывает стили выше) ── */
.as-rcard { margin-bottom: 10px; }
.as-rgal { aspect-ratio: auto; height: 172px; }
.as-rgal__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 36px; height: 44px; border: 0; border-radius: 10px; background: rgba(15, 23, 42, .38); color: #fff; font-size: 24px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.as-rgal__nav--prev { left: 6px; }
.as-rgal__nav--next { right: 6px; }
.as-rgal__cnt { right: 8px; bottom: 8px; font-size: 11.5px; padding: 2px 8px; }
.as-rcard__body { padding: 10px 12px 2px; }
.as-rcard__top { gap: 8px; }
.as-rcard__t { min-width: 0; }
.as-rcard__name { font-size: 15.5px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.as-rcard__line { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.as-rcard__from { font-size: 11.5px; }
.as-rcard__from b { font-size: 15.5px; }
.as-rcard__desc { margin: 2px 0 8px; font-size: 13px; }
.as-more { margin-top: 2px; }
.as-more summary { min-height: 40px; font-size: 13.5px; }
.as-more__g { margin-bottom: 8px; }
.as-amen { margin-top: 4px; gap: 5px; }
.as-pill { font-size: 12px; padding: 3px 8px; }
.as-tars { padding: 0 12px 2px; }
.as-tar { min-height: 52px; padding: 9px 0; gap: 10px; }
.as-tar__name { font-size: 13.5px; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.as-tar__meta { display: flex; align-items: center; gap: 3px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.as-tar__meta.is-ok .as-ic { color: #146c43; }
.as-tar__meta.is-req .as-ic { color: #92560a; }
.as-tar__meta .as-ic { width: 13px; height: 13px; }
.as-tar__meta .is-low { color: #b45309; font-weight: 600; }
.as-tar__price b { font-size: 15px; }
.as-tar__pp, .as-tar__pn { font-size: 11.5px; font-weight: 500; color: var(--muted); }
.as-more--tars { border-top: 1px solid var(--border); margin-top: 0; }
.as-more--tars .as-tar:first-of-type { border-top: 0; }
.as-calc { font-size: 12.5px; margin-bottom: 8px; }

/* Фото номера целиком (без обрезки), тарифы с лечением */
.as-rgal { height: auto; aspect-ratio: 4 / 3; background: #0f172a; }
.as-rgal__track img { object-fit: contain; }
.as-tar.is-heal { position: relative; padding-left: 10px; }
.as-tar.is-heal::before { content: ''; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 2px; background: #0e9f6e; }
.as-heal { display: inline-flex; align-items: center; gap: 4px; align-self: flex-start; font-size: 11.5px; font-weight: 700; color: #03543f; background: #def7ec; padding: 2px 7px; border-radius: 6px; }
.as-heal .as-ic { width: 12px; height: 12px; fill: currentColor; stroke: none; }
/* Рамка фото номера подстраивается под пропорции первого снимка (JS ставит aspect-ratio); до загрузки — 3:2 */
.as-rgal { aspect-ratio: 3 / 2; background: var(--surface-2); }
.as-rgal__track img { object-fit: cover; }
.as-tar__calc { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; line-height: 1.35; }
.as-tar__calc b { color: var(--text); font-weight: 650; white-space: nowrap; }

/* Поиск с заявки / только просмотр, бронирование */
/* Переключатель туроператора в форме поиска («Алеан | Дельфин») — те же чипы, без полосы-подложки. */
.as-op { display: flex; gap: 8px; margin: 0 0 12px; }
.as-ctx { background: var(--primary-soft); color: var(--primary-d); border-radius: 12px; padding: 10px 12px; margin-bottom: 12px; font-size: 13.5px; line-height: 1.45; }
.as-ctx--view { background: #fff7e6; color: #7a4a00; }
.as-ctx__warn { margin-top: 6px; color: #7a4a00; }
.as-bookbar { padding: 12px 0 4px; }
.as-bookbar .btn:disabled { opacity: .45; }
.as-bookbar__why { font-size: 12.5px; color: var(--muted); margin-top: 8px; line-height: 1.45; }
.as-booksum__hotel { font-weight: 700; font-size: 16px; }
.as-booksum__room { font-weight: 600; margin-top: 2px; }
.as-booksum__pk { font-size: 13px; color: var(--muted); margin-top: 4px; }
.as-booksum__row { display: flex; justify-content: space-between; gap: 10px; margin-top: 10px; font-size: 14px; }
.as-booksum__row b { color: var(--primary-d); font-size: 17px; font-variant-numeric: tabular-nums; }
.as-booksum__pp { text-align: right; font-size: 12.5px; color: var(--muted); }
.as-booksum__st { font-size: 12.5px; margin-top: 8px; color: var(--muted); }
.as-tourist__h { display: flex; justify-content: space-between; align-items: center; font-weight: 700; margin-bottom: 8px; }
.as-tourist__del { min-height: 36px; }
.as-bookok__h { font-size: 18px; font-weight: 700; margin-bottom: 8px; color: #146c43; }
/* Кнопка брони закреплена внизу листа тарифа — видна без прокрутки условий */
.as-sheet .as-bookbar { position: sticky; bottom: calc(-12px - var(--safe-bot)); background: var(--surface); border-top: 1px solid var(--border); margin: 8px -14px 0; padding: 10px 14px calc(12px + var(--safe-bot)); z-index: 2; }
.as-sheet .as-bookbar__why { margin-top: 6px; }

/* Поиск туров у обоих операторов: отметки операторов, комиссия, фильтр, последний поиск */
.as-opb { display: inline-flex; align-items: center; font-size: 10.5px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; padding: 1px 6px; border-radius: 5px; line-height: 1.5; white-space: nowrap; }
.as-opb--alean { background: #e3f1ee; color: #0b5951; }
.as-opb--delfin { background: #e6eefc; color: #1e4fae; }
.as-opb.is-off { opacity: .4; text-decoration: line-through; }
.as-sg__ops { display: flex; gap: 4px; margin-top: 3px; }
.as-ctx__sub { margin-top: 4px; font-size: 12.5px; color: var(--muted); }
.as-last { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; margin: 0 0 12px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--primary-d); font: inherit; font-weight: 600; text-align: left; cursor: pointer; }
.as-last:active { background: var(--surface-2); }
.as-card__side--ops { flex-direction: column; align-items: flex-start; gap: 4px; }
.as-card__op { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.as-card__op .as-card__price { font-size: 15px; }
.as-hhead__ops { display: flex; gap: 4px; margin-top: 6px; }
.as-tf { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 4px 10px; }
.as-opnote { display: flex; align-items: center; gap: 6px; margin: 0 4px 6px; font-size: 12.5px; color: var(--muted); }
.as-rcard__ops { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; flex-shrink: 0; }
/* Комиссия — в блоке цены: процент крупно и первым, сумма в рублях после */
.as-tar__comm { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; font-variant-numeric: tabular-nums; }
.as-comm { display: inline-flex; align-items: baseline; gap: 4px; padding: 1px 7px; border-radius: 999px; background: #e8f5ec; color: #146c43; white-space: nowrap; }
.as-comm b { font-size: 14px; font-weight: 800; color: inherit; }
.as-comm span { font-size: 11.5px; font-weight: 600; color: #1e4fa3; } /* сумма — другим цветом, чем процент */
.as-comm.is-wait, .as-comm.is-na { background: none; padding: 1px 0; color: var(--muted); font-size: 11.5px; font-weight: 500; }
.as-tar__comm .is-warn { font-size: 11px; font-weight: 600; color: #b45309; white-space: nowrap; }
.as-offer__price .as-tar__comm { display: flex; margin-top: 3px; font-weight: 500; }
