/* =====================================================================
   Rest&Go · Snow Minimal — компоненты (SPEC-UI-01 §3.7)
   Только переменные из tokens.css. Новые цвета не вводятся.
   Порядок: базовые элементы → формы → данные → навигация → оверлеи →
   состояния → веб-раскладки → админ-раскладки → оболочки.
   ===================================================================== */

/* ---------------------------------------------------------------------
   0. Иконки
   --------------------------------------------------------------------- */
.ic { display: inline-block; flex: none; vertical-align: middle; }
i[data-icon] { display: inline-block; flex: none; font-style: normal; line-height: 0; }

/* ---------------------------------------------------------------------
   1. Кнопки (§3.7.1)
   --------------------------------------------------------------------- */
.btn {
  --btn-h: var(--h-btn-m);
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  height: var(--btn-h); min-width: var(--btn-h);
  padding: 0 var(--space-5);
  border: 0; border-radius: var(--radius-full);
  font-family: var(--font); font-size: 16px; line-height: 20px; font-weight: 600;
  white-space: nowrap; text-decoration: none; cursor: pointer;
  background: var(--bg-subtle); color: var(--text-primary);
  transition: filter var(--motion-fast), background-color var(--motion-base), color var(--motion-base);
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.btn:active:not(:disabled):not(.is-disabled) { filter: var(--press); }
.btn--l { --btn-h: var(--h-btn-l); }
.btn--m { --btn-h: var(--h-btn-m); }
.btn--s { --btn-h: var(--h-btn-s); padding: 0 var(--space-4); font-size: 13px; line-height: 16px; }
.btn--block { display: flex; width: 100%; }
.btn--primary   { background: var(--action-primary); color: var(--text-on-primary); }
.btn--primary:active:not(:disabled) { filter: none; background: var(--action-primary-pressed); }
.btn--secondary { background: var(--bg-subtle); color: var(--text-primary); }
.btn--ghost     { background: transparent; color: var(--text-link); padding: 0 var(--space-2); }
.btn--danger    { background: var(--status-danger-solid); color: var(--text-on-solid); }
.btn--danger-ghost { background: transparent; color: var(--status-danger-fg); padding: 0 var(--space-2); }
.btn--ghost:active, .btn--danger-ghost:active { background: var(--bg-muted); filter: none; }
.btn:disabled, .btn.is-disabled {
  background: var(--action-disabled-bg); color: var(--text-disabled); cursor: default;
}
.btn--ghost:disabled, .btn--danger-ghost:disabled { background: transparent; }
.btn .ic { width: 20px; height: 20px; }
.btn--s .ic { width: 16px; height: 16px; }
/* loading: текст скрыт, ширина не меняется, клики не принимаются */
.btn.is-loading { pointer-events: none; color: transparent !important; }
.btn.is-loading > * { visibility: hidden; }
.btn.is-loading::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 20px; height: 20px; margin: -10px 0 0 -10px;
  border-radius: 50%; border: 2px solid var(--spinner-color, currentColor);
  border-right-color: transparent;
  animation: rg-spin .8s linear infinite;
}
.btn--primary.is-loading   { --spinner-color: var(--text-on-primary); }
.btn--secondary.is-loading { --spinner-color: var(--text-primary); }
.btn--ghost.is-loading     { --spinner-color: var(--text-link); }
.btn--danger.is-loading    { --spinner-color: var(--text-on-solid); }
.btn--danger-ghost.is-loading { --spinner-color: var(--status-danger-fg); }

/* Иконка-кнопка (зона 44) */
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: var(--tap-min); height: var(--tap-min); padding: 0;
  border: 0; border-radius: var(--radius-full); background: transparent; color: var(--text-primary);
  cursor: pointer; position: relative; transition: background-color var(--motion-fast);
  -webkit-tap-highlight-color: transparent;
}
.icon-btn:active { background: var(--bg-muted); }
.icon-btn--float { background: var(--bg-screen); box-shadow: var(--shadow-1); border: 1px solid var(--border-default); }
.icon-btn--40 { width: 40px; height: 40px; }
.icon-btn__dot {
  position: absolute; top: 9px; right: 9px; width: 8px; height: 8px; border-radius: 50%;
  background: var(--status-danger-solid); box-shadow: 0 0 0 2px var(--bg-screen);
}

/* Спиннер */
.spinner {
  display: inline-block; width: 20px; height: 20px; flex: none;
  border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent;
  animation: rg-spin .8s linear infinite;
}
.spinner--l { width: 32px; height: 32px; border-width: 3px; }
@keyframes rg-spin { to { transform: rotate(360deg); } }

/* ---------------------------------------------------------------------
   2. Поля ввода (§3.7.2)
   --------------------------------------------------------------------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field__label { font-size: 13px; line-height: 18px; color: var(--text-secondary); }
.field__control {
  display: flex; align-items: center; gap: var(--space-2);
  min-height: var(--h-input); padding: 0 var(--space-4);
  background: var(--bg-subtle); border-radius: var(--radius-m);
  border: 1.5px solid transparent;
  transition: border-color var(--motion-fast);
}
.field__control:focus-within, .field.is-focus .field__control { border-color: var(--border-focus); }
.field__input {
  flex: 1 1 auto; min-width: 0; height: calc(var(--h-input) - 3px);
  border: 0; outline: 0; background: transparent; padding: 0;
  font-size: 16px; line-height: 22px; color: var(--text-primary);
}
.field__input::placeholder { color: var(--text-secondary); opacity: 1; }
textarea.field__input { height: auto; min-height: 96px; padding: 14px 0; resize: vertical; }
.field__hint { font-size: 13px; line-height: 18px; color: var(--text-secondary); }
.field__error { display: none; align-items: center; gap: var(--space-1); font-size: 13px; line-height: 18px; color: var(--status-danger-fg); }
.field.is-error .field__control { border-color: var(--status-danger-fg); }
.field.is-error .field__error { display: flex; }
.field.is-error .field__hint { display: none; }
.field.is-disabled .field__control, .field__control:has(.field__input:disabled) { color: var(--text-disabled); }
.field.is-disabled .field__input, .field__input:disabled { color: var(--text-disabled); }
.field__suffix { color: var(--text-secondary); display: inline-flex; align-items: center; gap: var(--space-2); }
/* Маска телефона: селектор страны + разделитель */
.field__prefix {
  display: inline-flex; align-items: center; gap: var(--space-1);
  padding-right: var(--space-3); margin-right: var(--space-1);
  border-right: 1px solid var(--border-default); height: 28px;
  background: transparent; border-top: 0; border-bottom: 0; border-left: 0; cursor: pointer;
  font-size: 16px; color: var(--text-primary);
}
/* Маска карты: логотип платёжной системы */
.card-brand {
  display: inline-flex; align-items: center; justify-content: center;
  height: 24px; padding: 0 var(--space-2); border-radius: var(--radius-s);
  background: var(--bg-screen); border: 1px solid var(--border-default);
  font-size: 12px; line-height: 16px; font-weight: 700; color: var(--text-primary); letter-spacing: .02em;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }

/* Переключатель (switch) */
.switch {
  position: relative; flex: none; width: 51px; height: 31px; padding: 0; border: 0;
  border-radius: var(--radius-full); background: var(--border-strong); cursor: pointer;
  transition: background-color var(--motion-fast);
}
.switch::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%;
  background: var(--bg-screen); box-shadow: var(--shadow-1); transition: transform var(--motion-fast);
}
.switch[aria-checked="true"], .switch.is-on { background: var(--action-primary); }
.switch[aria-checked="true"]::after, .switch.is-on::after { transform: translateX(20px); }
[data-theme="dark"] .switch::after { background: var(--text-primary); }
.switch[aria-checked="true"]::after { background: var(--bg-screen); }
.switch:disabled { opacity: .5; cursor: default; }

/* ---------------------------------------------------------------------
   3. Ячейки кода (§3.7.3)
   --------------------------------------------------------------------- */
.otp { display: flex; justify-content: center; align-items: center; gap: var(--space-2); position: relative; }
.otp__cell {
  position: relative; width: 48px; height: 56px; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-subtle); border-radius: var(--radius-m); border: 1.5px solid transparent;
  font-size: 22px; line-height: 28px; font-weight: 600; font-variant-numeric: tabular-nums;
  color: var(--text-primary); transition: border-color var(--motion-fast);
}
.otp__cell.is-focus { border-color: var(--border-focus); }
.otp__cell.is-focus:empty::after {
  content: ""; width: 2px; height: 24px; background: var(--text-primary);
  animation: rg-caret 1s steps(1) infinite;
}
@keyframes rg-caret { 50% { opacity: 0; } }
.otp.is-error .otp__cell { border-color: var(--status-danger-fg); }
.otp.is-error { animation: rg-shake 250ms var(--ease); }
@keyframes rg-shake { 0%,100% { transform: translateX(0); } 16% { transform: translateX(-4px); } 33% { transform: translateX(4px); } 50% { transform: translateX(-4px); } 66% { transform: translateX(4px); } 83% { transform: translateX(-4px); } }
.otp.is-disabled .otp__cell { color: var(--text-disabled); }
.otp__spinner { position: absolute; right: -32px; color: var(--text-secondary); }
.otp__input { position: absolute; inset: 0; opacity: 0; width: 100%; border: 0; font-size: 16px; }
.otp-error { text-align: center; font-size: 13px; line-height: 18px; color: var(--status-danger-fg); }

/* ---------------------------------------------------------------------
   4. Чипы (§3.7.4)
   --------------------------------------------------------------------- */
.chips { display: flex; gap: var(--space-2); overflow-x: auto; padding: 0 var(--space-4); scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips--wrap { flex-wrap: wrap; overflow: visible; padding: 0; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  height: var(--h-chip); padding: 0 14px; border-radius: var(--radius-full);
  border: 1.5px solid transparent; background: var(--bg-subtle); color: var(--text-primary);
  font-size: 13px; line-height: 16px; font-weight: 600; cursor: pointer; white-space: nowrap;
  transition: background-color var(--motion-fast), border-color var(--motion-fast);
  -webkit-tap-highlight-color: transparent;
}
.chip .ic { width: 16px; height: 16px; }
.chip:active { background: var(--bg-muted); }
.chip.is-selected, .chip[aria-pressed="true"] { background: var(--accent-tint); border-color: var(--accent-soft); }
.chip:disabled, .chip.is-disabled { color: var(--text-disabled); cursor: default; }
.chip--tag { height: 28px; padding: 0 10px; font-size: 13px; line-height: 18px; font-weight: 400; cursor: default; }

/* ---------------------------------------------------------------------
   5. Сегментный переключатель (§3.7.5)
   --------------------------------------------------------------------- */
.segment {
  --n: 2; --i: 0;
  position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  height: 40px; padding: 4px; border-radius: var(--radius-full); background: var(--bg-subtle);
}
.segment::before {
  content: ""; position: absolute; top: 4px; bottom: 4px; left: 4px;
  width: calc((100% - 8px) / var(--n));
  transform: translateX(calc(100% * var(--i)));
  border-radius: var(--radius-full); background: var(--bg-screen); box-shadow: var(--shadow-1);
  transition: transform var(--motion-base);
}
[data-theme="dark"] .segment::before { background: var(--bg-muted); }
.segment__item {
  position: relative; z-index: 1; border: 0; background: transparent; cursor: pointer;
  border-radius: var(--radius-full); padding: 0 var(--space-3);
  font-size: 13px; line-height: 16px; font-weight: 600; color: var(--text-secondary);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.segment__item.is-active, .segment__item[aria-selected="true"] { color: var(--text-primary); }

/* ---------------------------------------------------------------------
   6. Слайдер диапазона (§3.7.6)
   --------------------------------------------------------------------- */
.range { --from: 0%; --to: 100%; position: relative; height: 44px; }
.range__values { font-size: 16px; line-height: 22px; font-weight: 600; margin-bottom: var(--space-2); font-variant-numeric: tabular-nums; }
.range__track { position: absolute; left: 12px; right: 12px; top: 20px; height: 4px; border-radius: 2px; background: var(--border-default); }
.range__fill { position: absolute; top: 0; bottom: 0; left: var(--from); right: calc(100% - var(--to)); background: var(--action-primary); border-radius: 2px; }
.range input[type="range"] {
  position: absolute; left: 0; right: 0; top: 0; width: 100%; height: 44px; margin: 0;
  background: transparent; pointer-events: none; -webkit-appearance: none; appearance: none;
}
.range input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; pointer-events: auto; width: 24px; height: 24px; border-radius: 50%;
  background: var(--bg-screen); border: 1px solid var(--border-strong); box-shadow: var(--shadow-1); cursor: grab;
}
.range input[type="range"]::-moz-range-thumb {
  pointer-events: auto; width: 24px; height: 24px; border-radius: 50%; box-sizing: border-box;
  background: var(--bg-screen); border: 1px solid var(--border-strong); box-shadow: var(--shadow-1); cursor: grab;
}
.range input[type="range"]::-webkit-slider-runnable-track { background: transparent; }
.range input[type="range"]::-moz-range-track { background: transparent; }

/* ---------------------------------------------------------------------
   7. Дата и время (§3.7.7)
   --------------------------------------------------------------------- */
.date-strip { display: flex; gap: var(--space-2); overflow-x: auto; scrollbar-width: none; padding: 2px 0; }
.date-strip::-webkit-scrollbar { display: none; }
.date-cell {
  flex: none; width: 56px; height: 64px; border-radius: var(--radius-m); border: 0; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  background: var(--bg-subtle); color: var(--text-primary);
}
.date-cell__dow { font-size: 12px; line-height: 16px; font-weight: 500; color: var(--text-secondary); }
.date-cell__day { font-size: 18px; line-height: 24px; font-weight: 600; font-variant-numeric: tabular-nums; }
.date-cell.is-selected { background: var(--action-primary); color: var(--text-on-primary); }
.date-cell.is-selected .date-cell__dow { color: var(--text-on-primary); }
.date-cell:disabled, .date-cell.is-disabled { color: var(--text-disabled); cursor: default; }
.date-cell:disabled .date-cell__dow { color: var(--text-disabled); }
.time-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-2); }
.time-cell {
  height: 44px; border: 0; border-radius: var(--radius-m); background: var(--bg-subtle); cursor: pointer;
  font-size: 15px; line-height: 20px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--text-primary);
}
.time-cell.is-selected { background: var(--action-primary); color: var(--text-on-primary); }
.time-cell:disabled { color: var(--text-disabled); cursor: default; }

/* ---------------------------------------------------------------------
   8. Плитка тарифа (§3.7.8)
   --------------------------------------------------------------------- */
.tariffs { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-2); }
.tariff {
  position: relative; min-height: 76px; padding: var(--space-3); text-align: left; cursor: pointer;
  display: flex; flex-direction: column; justify-content: center; gap: 2px;
  border-radius: var(--radius-l); background: var(--bg-screen); border: 1px solid var(--border-strong);
  color: var(--text-primary); transition: background-color var(--motion-fast), border-color var(--motion-fast);
}
.tariff__dur { font-size: 16px; line-height: 22px; font-weight: 600; }
.tariff__price { font-size: 15px; line-height: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }
.tariff__note { font-size: 13px; line-height: 18px; color: var(--text-secondary); }
.tariff__tag { font-size: 12px; line-height: 16px; font-weight: 500; min-height: 16px; }
.tariff__tag--warning { color: var(--status-warning-fg); }
.tariff__tag--success { color: var(--status-success-fg); }
.tariff__check { position: absolute; top: 8px; right: 8px; display: none; }
.tariff.is-selected { background: var(--action-primary); border-color: var(--action-primary); color: var(--text-on-primary); }
.tariff.is-selected .tariff__note, .tariff.is-selected .tariff__tag { color: var(--text-on-primary); }
.tariff.is-selected .tariff__check { display: block; }
.tariff.is-unavailable, .tariff:disabled { background: var(--bg-subtle); border-color: var(--bg-subtle); color: var(--text-disabled); cursor: default; }
.tariff.is-unavailable .tariff__note { color: var(--text-disabled); }
.tariff.is-conflict { border: 1.5px solid var(--status-danger-fg); }
.tariffs-error { display: flex; gap: var(--space-1); align-items: flex-start; margin-top: var(--space-2); font-size: 13px; line-height: 18px; color: var(--status-danger-fg); }

/* ---------------------------------------------------------------------
   9. Статус-бейджи (§3.7.9)
   --------------------------------------------------------------------- */
.badge {
  display: inline-flex; align-items: center; gap: var(--space-1); flex: none;
  height: 24px; padding: 0 var(--space-2); border-radius: var(--radius-full);
  font-size: 13px; line-height: 16px; font-weight: 600; white-space: nowrap;
  background: var(--status-neutral-bg); color: var(--status-neutral-fg);
}
.badge .ic { width: 16px; height: 16px; }
.badge--success { background: var(--status-success-bg); color: var(--status-success-fg); }
.badge--warning { background: var(--status-warning-bg); color: var(--status-warning-fg); }
.badge--booked  { background: var(--status-booked-bg);  color: var(--status-booked-fg); }
.badge--danger  { background: var(--status-danger-bg);  color: var(--status-danger-fg); }
.badge--info    { background: var(--status-info-bg);    color: var(--status-info-fg); }
.badge--neutral { background: var(--status-neutral-bg); color: var(--status-neutral-fg); }
.badge--solid-success { background: var(--status-success-solid); color: var(--text-on-solid); }
.badge--solid-danger  { background: var(--status-danger-solid);  color: var(--text-on-solid); }
/* Бейдж-число (tab bar, иконки) */
.count-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 16px; height: 16px; padding: 0 4px; border-radius: var(--radius-full);
  background: var(--status-danger-solid); color: var(--text-on-solid);
  font-size: 12px; line-height: 16px; font-weight: 500; font-variant-numeric: tabular-nums;
}
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--status-danger-solid); flex: none; }
/* Полоса статуса (solid) — для админки и таймлайнов */
.status-bar { height: 4px; border-radius: 2px; background: var(--status-neutral-solid); }
.status-bar--success { background: var(--status-success-solid); }
.status-bar--warning { background: var(--status-warning-solid); }
.status-bar--booked  { background: var(--status-booked-solid); }
.status-bar--danger  { background: var(--status-danger-solid); }
.status-bar--info    { background: var(--status-info-solid); }

/* ---------------------------------------------------------------------
   10. Рейтинг (§3.7.10)
   --------------------------------------------------------------------- */
.rating { display: inline-flex; align-items: center; gap: var(--space-1); }
.rating__star { color: var(--rating-star); fill: var(--rating-star); }
.rating__star svg { fill: var(--rating-star); stroke: var(--rating-star); }
.rating__value { font-size: 16px; line-height: 22px; font-weight: 600; font-variant-numeric: tabular-nums; }
.rating__count { font-size: 13px; line-height: 18px; color: var(--text-secondary); margin-left: 4px; }
.stars { display: inline-flex; gap: 2px; color: var(--border-strong); }
.stars .is-on svg, .stars .is-on { color: var(--rating-star); fill: var(--rating-star); }
.stars .is-on svg { fill: var(--rating-star); }
.stars-input { display: flex; justify-content: center; gap: var(--space-2); }
.stars-input__btn {
  width: var(--tap-min); height: var(--tap-min); padding: 0; border: 0; background: transparent; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; color: var(--border-strong);
}
.stars-input__btn svg { width: 40px; height: 40px; }
.stars-input__btn.is-on { color: var(--rating-star); }
.stars-input__btn.is-on svg { fill: var(--rating-star); }
.stars-input__label { text-align: center; font-size: 13px; line-height: 18px; color: var(--text-secondary); min-height: 18px; }
.rating-cat { display: grid; grid-template-columns: 110px 1fr 36px; align-items: center; gap: var(--space-3); }
.rating-cat__name { font-size: 15px; line-height: 20px; }
.rating-cat__value { font-size: 16px; line-height: 22px; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.bar { height: 4px; border-radius: 2px; background: var(--border-default); overflow: hidden; }
.bar > i, .bar__fill { display: block; height: 100%; background: var(--action-primary); border-radius: inherit; }
.bar--8 { height: 8px; border-radius: var(--radius-full); }
.bar--6 { height: 6px; border-radius: var(--radius-full); }
.dist-row { display: grid; grid-template-columns: 32px 1fr 40px; align-items: center; gap: var(--space-2); font-size: 13px; line-height: 18px; }
.dist-row__n { color: var(--text-secondary); text-align: right; font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------------
   11. Фото-плейсхолдер, галерея (§3.5, §3.7.19)
   --------------------------------------------------------------------- */
.photo {
  position: relative; overflow: hidden; flex: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  background: var(--bg-muted); color: var(--text-secondary); border-radius: var(--radius-l);
  font-size: 13px; line-height: 18px; text-align: center;
}
.photo--16x10 { aspect-ratio: 16 / 10; width: 100%; }
.photo--square { aspect-ratio: 1 / 1; }
.photo--flat { border-radius: 0; }
.photo--error { background: var(--bg-subtle); }
.photo__pattern { position: absolute; inset: 0; opacity: .5; }
.photo__label { position: relative; }
.gallery { position: relative; border-radius: var(--radius-l); overflow: hidden; }
.gallery--flat { border-radius: 0; }
.gallery__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__slide { flex: 0 0 100%; scroll-snap-align: start; }
.gallery__slide .photo { border-radius: 0; }
.gallery__counter, .media-chip {
  position: absolute; right: 12px; bottom: 12px; height: 24px; padding: 0 10px;
  display: inline-flex; align-items: center; border-radius: var(--radius-full);
  background: var(--bg-media-overlay); color: var(--text-on-media);
  font-size: 12px; line-height: 16px; font-weight: 500; font-variant-numeric: tabular-nums;
}
.dots { display: flex; gap: var(--space-2); justify-content: center; }
.dots > i { width: 8px; height: 8px; border-radius: 4px; background: var(--border-strong); transition: width var(--motion-base); }
.dots > i.is-active { width: 24px; background: var(--accent-soft); }
.viewer { position: absolute; inset: 0; background: var(--bg-viewer); z-index: 60; display: flex; align-items: center; justify-content: center; }
.viewer .icon-btn { position: absolute; top: 12px; right: 12px; color: var(--text-on-media); }

/* ---------------------------------------------------------------------
   12. Карточка отеля (§3.7.11)
   --------------------------------------------------------------------- */
.hotel-card {
  display: flex; gap: var(--space-3); padding: var(--space-3); min-height: 112px;
  background: var(--bg-screen); border-radius: var(--radius-xl); border: 1px solid var(--border-default);
  color: var(--text-primary); text-decoration: none; cursor: pointer; position: relative;
  transition: background-color var(--motion-fast);
}
.hotel-card:active { background: var(--bg-subtle); }
.hotel-card.is-highlighted { border-color: var(--accent-soft); }
.hotel-card__photo { width: 88px; height: 88px; border-radius: var(--radius-l); flex: none; }
.hotel-card__body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.hotel-card__title { font-size: 16px; line-height: 22px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hotel-card__meta { font-size: 13px; line-height: 18px; color: var(--text-secondary); }
.hotel-card__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-1) var(--space-2); margin-top: 2px; }
.hotel-card__price { font-size: 15px; line-height: 20px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hotel-card__price small { font-size: 13px; font-weight: 400; color: var(--text-secondary); }
.hotel-card__amen { display: flex; align-items: center; gap: var(--space-2); color: var(--text-secondary); font-size: 13px; line-height: 18px; margin-top: 2px; }
.hotel-card--preview { flex-wrap: wrap; box-shadow: var(--shadow-1); }
.hotel-card--preview .hotel-card__actions { flex: 0 0 100%; display: flex; justify-content: flex-end; }
.hotel-card__actions { display: none; }

/* ---------------------------------------------------------------------
   13. Карточка капсулы (§3.7.12)
   --------------------------------------------------------------------- */
.capsule-card { display: flex; flex-direction: column; gap: var(--space-1); color: var(--text-primary); }
.capsule-card__photo { margin-bottom: var(--space-2); }
.capsule-card__head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); }
.capsule-card__title { font-size: 16px; line-height: 22px; font-weight: 600; }
.capsule-card__meta { font-size: 13px; line-height: 18px; color: var(--text-secondary); }
.capsule-card__row { display: flex; align-items: center; justify-content: space-between; margin: var(--space-1) 0 var(--space-2); }
.capsule-card__clean { display: inline-flex; align-items: center; gap: var(--space-1); font-size: 15px; line-height: 20px; }
.capsule-card__price { font-size: 15px; line-height: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------------
   14. Карта: подложка, пин, кластер, «я» (§3.7.13)
   --------------------------------------------------------------------- */
.map {
  position: relative; overflow: hidden; background: var(--map-land);
  background-image:
    linear-gradient(var(--map-road) 2px, transparent 2px),
    linear-gradient(90deg, var(--map-road) 2px, transparent 2px);
  background-size: 64px 64px;
  touch-action: none; user-select: none;
}
.map__water { position: absolute; background: var(--map-water); border-radius: 40%; }
.map__park { position: absolute; background: var(--map-park); border-radius: var(--radius-xl); }
.map__road { position: absolute; background: var(--map-road-major); border: 1px solid var(--map-road); }
.map__layer { position: absolute; inset: 0; }
.pin {
  position: absolute; transform: translate(-50%, calc(-100% - 6px));
  display: inline-flex; align-items: center; height: 32px; padding: 0 12px;
  border-radius: var(--radius-full); background: var(--pin-bg); color: var(--pin-fg);
  box-shadow: var(--shadow-1); border: 2px solid var(--pin-bg);
  font-size: 13px; line-height: 16px; font-weight: 600; font-variant-numeric: tabular-nums;
  white-space: nowrap; cursor: pointer; z-index: 1;
  transition: transform var(--motion-fast);
}
.pin::after {
  content: ""; position: absolute; left: 50%; bottom: -8px; transform: translateX(-50%);
  border: 4px solid transparent; border-top: 6px solid var(--pin-bg); border-bottom: 0;
}
.pin--selected { background: var(--pin-selected-bg); color: var(--pin-selected-fg); border-color: var(--pin-bg); z-index: 5; }
.pin--static { position: relative; transform: none; }
.cluster {
  position: absolute; transform: translate(-50%, -50%);
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--pin-bg); color: var(--pin-fg); border: 3px solid var(--pin-fg);
  box-shadow: var(--shadow-1); font-size: 13px; line-height: 16px; font-weight: 600; cursor: pointer; z-index: 4; /* выше .me-dot: число в кластере не перекрывается точкой «я» */
}
.cluster--static { position: relative; transform: none; }
.me-dot { position: absolute; width: 14px; height: 14px; transform: translate(-50%, -50%); z-index: 3; }
.me-dot::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 40px; height: 40px; margin: -20px 0 0 -20px;
  border-radius: 50%; background: var(--accent-soft-24); animation: rg-pulse 2s var(--ease) infinite;
}
.me-dot::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: var(--accent-soft); border: 3px solid var(--pin-fg); box-sizing: content-box; margin: -3px;
}
.me-dot--static { position: relative; transform: none; display: inline-block; }
@keyframes rg-pulse { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(1.2); opacity: 0; } }
.progress-line { position: relative; height: 2px; overflow: hidden; background: transparent; }
.progress-line::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 40%; background: var(--accent-soft);
  animation: rg-progress 1s var(--ease) infinite;
}
@keyframes rg-progress { from { left: -40%; } to { left: 100%; } }
.search-pill {
  display: flex; align-items: center; gap: var(--space-2); height: 48px; padding: 0 4px 0 var(--space-4);
  background: var(--bg-screen); border-radius: var(--radius-full); box-shadow: var(--shadow-1);
  border: 1px solid var(--border-default); color: var(--text-secondary);
}
.search-pill input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 16px; color: var(--text-primary); }
.search-pill input::placeholder { color: var(--text-secondary); }

/* ---------------------------------------------------------------------
   15. Bottom sheet (§3.7.14)
   --------------------------------------------------------------------- */
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 40;
  display: flex; flex-direction: column; max-height: 90%;
  background: var(--bg-screen); border-radius: var(--radius-sheet) var(--radius-sheet) 0 0;
  box-shadow: var(--shadow-2); border-top: 1px solid var(--border-default);
  transform: translateY(100%); transition: transform var(--motion-slow);
  pointer-events: auto;
}
.sheet.is-open { transform: translateY(0); }
.sheet.is-dragging { transition: none; }
.sheet--static { position: relative; transform: none; max-height: none; }
.sheet__handle { flex: none; display: flex; justify-content: center; padding-top: var(--space-2); height: 20px; cursor: grab; touch-action: none; }
.sheet__handle::before { content: ""; width: 36px; height: 4px; border-radius: 2px; background: var(--border-strong); }
.sheet__header { flex: none; display: flex; align-items: center; gap: var(--space-2); min-height: 52px; padding: 0 var(--space-2) 0 var(--space-4); touch-action: none; }
.sheet__title { flex: 1; font-size: 17px; line-height: 22px; font-weight: 600; margin: 0; }
.sheet__title--section { font-size: 18px; line-height: 24px; }
.sheet__body { flex: 1 1 auto; overflow-y: auto; padding: 0 var(--space-4) var(--space-4); overscroll-behavior: contain; }
.sheet__footer { flex: none; padding: var(--space-3) var(--space-4) var(--space-4); border-top: 1px solid var(--border-default); }
.scrim {
  position: absolute; inset: 0; background: var(--bg-scrim); z-index: 30;
  opacity: 0; transition: opacity var(--motion-slow); pointer-events: auto;
}
.scrim.is-open { opacity: 1; }

/* ---------------------------------------------------------------------
   16. Таймер (§3.7.15)
   --------------------------------------------------------------------- */
.timer { display: flex; flex-direction: column; align-items: center; gap: var(--space-1); text-align: center; --timer-color: var(--text-primary); }
.timer__label, .timer__sub { font-size: 15px; line-height: 20px; }
.timer__label { color: var(--text-secondary); }
.timer__value {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-size: 44px; line-height: 52px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--timer-color);
}
.timer__value .ic { display: none; }
.timer__bar { align-self: stretch; height: 4px; border-radius: 2px; background: var(--border-default); overflow: hidden; margin-top: var(--space-2); }
.timer__fill { height: 100%; background: var(--timer-color); border-radius: inherit; transition: width var(--motion-base); }
.timer--warning { --timer-color: var(--status-warning-fg); }
.timer--warning .timer__value .ic { display: inline-block; }
.timer--danger { --timer-color: var(--status-danger-fg); }
.timer-inline { font-variant-numeric: tabular-nums; }
.timer-inline.timer--warning { color: var(--status-warning-fg); }
.timer-inline.timer--danger { color: var(--status-danger-fg); }

/* ---------------------------------------------------------------------
   18. Чек-лист (§3.7.17)
   --------------------------------------------------------------------- */
.checklist { display: flex; flex-direction: column; }
.checklist__count { font-size: 13px; line-height: 18px; color: var(--text-secondary); margin-bottom: var(--space-1); }
.check-row {
  display: flex; align-items: center; gap: var(--space-3); min-height: var(--h-row);
  border: 0; background: transparent; width: 100%; padding: 0; text-align: left; cursor: pointer;
  font-size: 16px; line-height: 22px; color: var(--text-primary);
}
.check-row + .check-row { border-top: 1px solid var(--border-default); }
.checkbox {
  width: 24px; height: 24px; flex: none; border-radius: var(--radius-checkbox);
  border: 1.5px solid var(--border-strong); background: transparent;
  display: inline-flex; align-items: center; justify-content: center; color: transparent;
  transition: background-color var(--motion-fast), border-color var(--motion-fast);
}
.checkbox .ic { width: 16px; height: 16px; }
.is-checked > .checkbox, .checkbox.is-checked { background: var(--action-primary); border-color: var(--action-primary); color: var(--text-on-primary); }
.check-row__icon { color: var(--text-secondary); }

/* ---------------------------------------------------------------------
   19. Крупная кнопка «Открыть» (§3.7.18)
   --------------------------------------------------------------------- */
.open-btn-wrap { position: relative; width: 200px; height: 200px; display: flex; align-items: center; justify-content: center; margin: 0 auto; }
.open-btn {
  position: relative; z-index: 1; width: 168px; height: 168px; border-radius: 50%; border: 0; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-2);
  background: var(--action-primary); color: var(--text-on-primary);
  font-size: 16px; line-height: 20px; font-weight: 600;
  transition: background-color var(--motion-base), transform var(--motion-fast);
}
.open-btn:active { transform: scale(.97); }
.open-btn .ic { width: 40px; height: 40px; }
.open-btn__halo {
  position: absolute; left: 0; top: 0; width: 200px; height: 200px; border-radius: 50%;
  background: var(--accent-soft-24); opacity: 0; pointer-events: none;
}
.open-btn--waiting .open-btn__halo { animation: rg-halo 2s var(--ease) infinite; }
@keyframes rg-halo { 0% { transform: scale(.84); opacity: .9; } 70% { transform: scale(1); opacity: 0; } 100% { opacity: 0; } }
.open-btn__ring {
  position: absolute; left: 12px; top: 12px; width: 176px; height: 176px; border-radius: 50%;
  border: 4px solid var(--accent-soft); border-right-color: transparent; border-bottom-color: transparent;
  display: none; animation: rg-spin 1s linear infinite;
}
.open-btn--opening .open-btn__ring { display: block; }
.open-btn--opening .open-btn { pointer-events: none; }
.open-btn--opened .open-btn { background: var(--status-success-solid); color: var(--text-on-solid); }
.open-btn--error .open-btn { background: var(--status-danger-solid); color: var(--text-on-solid); }
.backup-code { display: flex; align-items: center; gap: var(--space-3); min-height: var(--h-plate); padding: 0 var(--space-2) 0 var(--space-4); background: var(--bg-subtle); border-radius: var(--radius-m); font-size: 15px; line-height: 20px; }
.backup-code__value { flex: 1; font-weight: 600; letter-spacing: .2em; font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------------
   20. Загрузчик фото (§3.7.20)
   --------------------------------------------------------------------- */
.uploader { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.uploader__add, .uploader__thumb { position: relative; width: 72px; height: 72px; border-radius: var(--radius-m); flex: none; }
.uploader__add {
  border: 0; background: var(--bg-subtle); color: var(--text-primary); cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  font-size: 12px; line-height: 16px; font-weight: 500;
}
.uploader__thumb .photo { width: 100%; height: 100%; border-radius: var(--radius-m); }
.uploader__remove {
  position: absolute; top: -10px; right: -10px; width: var(--tap-min); height: var(--tap-min);
  border: 0; background: transparent; padding: 0; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.uploader__remove > span {
  width: 20px; height: 20px; border-radius: 50%; background: var(--bg-media-overlay); color: var(--text-on-media);
  display: inline-flex; align-items: center; justify-content: center;
}
.uploader__hint { font-size: 13px; line-height: 18px; color: var(--text-secondary); margin-top: var(--space-2); }

/* ---------------------------------------------------------------------
   21. Тост (§3.7.21)
   --------------------------------------------------------------------- */
.toast-stack {
  position: absolute; left: var(--space-4); right: var(--space-4); bottom: var(--toast-bottom, 80px); z-index: 80;
  display: flex; flex-direction: column; align-items: center; gap: var(--space-2); pointer-events: none;
}
.toast {
  display: inline-flex; align-items: center; gap: var(--space-2); max-width: 100%; min-height: 48px;
  padding: 0 var(--space-2) 0 var(--space-4); border-radius: var(--radius-xl);
  background: var(--action-primary); color: var(--text-on-primary); box-shadow: var(--shadow-3);
  font-size: 15px; line-height: 20px; pointer-events: auto;
  opacity: 0; transform: translateY(8px); transition: opacity var(--motion-base), transform var(--motion-base);
}
.toast > span { padding: 14px var(--space-2) 14px 0; }
.toast.is-open { opacity: 1; transform: translateY(0); }
.toast__icon--success { color: var(--text-on-primary); }
.toast__icon--error { color: var(--toast-error-icon); }
.toast .btn--ghost { color: var(--text-on-primary); text-decoration: underline; height: 36px; }
.toast--static { opacity: 1; transform: none; }

/* ---------------------------------------------------------------------
   22. Диалог (§3.7.22)
   --------------------------------------------------------------------- */
.dialog-layer { position: absolute; inset: 0; z-index: 70; display: flex; align-items: center; justify-content: center; padding: var(--space-6); pointer-events: auto; }
.dialog {
  position: relative; z-index: 1; width: 100%; max-width: 420px;
  background: var(--bg-screen); border-radius: var(--radius-xl); box-shadow: var(--shadow-3);
  border: 1px solid var(--border-default); padding: var(--space-6);
  display: flex; flex-direction: column; gap: var(--space-2);
  opacity: 0; transform: scale(.96); transition: opacity var(--motion-slow), transform var(--motion-slow);
}
.dialog.is-open { opacity: 1; transform: scale(1); }
.dialog--static { opacity: 1; transform: none; }
.dialog__icon { color: var(--text-secondary); margin-bottom: var(--space-2); }
.dialog__title { margin: 0; font-size: 18px; line-height: 24px; font-weight: 600; }
.dialog__text { margin: 0; font-size: 16px; line-height: 22px; color: var(--text-secondary); }
.dialog__actions { display: flex; flex-direction: column; gap: var(--space-1); margin-top: var(--space-4); }

/* ---------------------------------------------------------------------
   23. Пустое состояние / ошибка сети (§3.7.23, §3.7.25)
   --------------------------------------------------------------------- */
.empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: var(--space-8) var(--space-4); min-height: 100%;
}
.empty__ill {
  width: 160px; height: 120px; display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary); margin-bottom: var(--space-5);
}
.empty__ill svg .accent { stroke: var(--accent-soft); }
.empty__title { margin: 0; font-size: 18px; line-height: 24px; font-weight: 600; }
.empty__text { margin: var(--space-2) 0 0; font-size: 16px; line-height: 22px; color: var(--text-secondary); max-width: 320px; }
.empty__action { margin-top: var(--space-6); }
.offline-banner {
  display: flex; align-items: center; gap: var(--space-2); min-height: 40px; padding: 0 var(--space-4);
  background: var(--status-warning-bg); color: var(--status-warning-fg); font-size: 13px; line-height: 18px; font-weight: 600;
}
.offline-banner .btn--ghost { margin-left: auto; height: 32px; }

/* ---------------------------------------------------------------------
   24. Скелетон-шимер (§3.7.24)
   --------------------------------------------------------------------- */
.skel {
  position: relative; overflow: hidden; display: block;
  background: var(--skel-bg); border-radius: var(--radius-s); color: transparent !important;
}
.skel::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent 0%, var(--skel-highlight) 50%, transparent 100%);
  animation: rg-shimmer var(--shimmer-duration) ease-in-out infinite;
}
@keyframes rg-shimmer { to { transform: translateX(100%); } }
.skel--text  { height: 14px; border-radius: 6px; }
.skel--title { height: 22px; border-radius: 6px; }
.skel--circle { border-radius: 50%; }
.skel--pill { border-radius: var(--radius-full); }
.skel--m { border-radius: var(--radius-m); }
.skel--l { border-radius: var(--radius-l); }
.skel--xl { border-radius: var(--radius-xl); }
.skel-stack { display: flex; flex-direction: column; gap: var(--space-2); }
.skel-group { pointer-events: none; }
[aria-busy="true"] { cursor: progress; }

/* ---------------------------------------------------------------------
   25. App bar и tab bar (§3.7.26)
   --------------------------------------------------------------------- */
.appbar {
  flex: none; display: flex; align-items: center; gap: var(--space-1);
  height: var(--h-appbar); padding: 0 6px; background: var(--bg-screen);
  border-bottom: 1px solid transparent; transition: border-color var(--motion-fast);
  position: relative; z-index: 5;
}
.appbar.is-scrolled { border-bottom-color: var(--border-default); }
.appbar__title {
  position: absolute; left: 56px; right: 56px; text-align: center; margin: 0; pointer-events: none;
  font-size: 17px; line-height: 22px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.appbar__title--left { position: static; text-align: left; padding-left: 10px; flex: 1; }
.appbar__spacer { flex: 1; }
.appbar--transparent { background: transparent; position: absolute; top: 0; left: 0; right: 0; }
.tabbar {
  flex: none; display: grid; grid-template-columns: repeat(4, 1fr);
  height: var(--h-tabbar); background: var(--bg-screen); border-top: 1px solid var(--border-default);
  position: relative; z-index: 6;
}
.tabbar__item {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  border: 0; background: transparent; cursor: pointer; padding: 0; min-width: 0;
  color: var(--text-secondary); font-size: 12px; line-height: 16px; font-weight: 500; text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.tabbar__item > span:last-child { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tabbar__item.is-active { color: var(--action-primary); font-weight: 600; }
.tabbar__icon { position: relative; }
.tabbar__icon .count-badge { position: absolute; top: -4px; right: -10px; }
.tabbar__icon .dot { position: absolute; top: -1px; right: -3px; }

/* ---------------------------------------------------------------------
   26. Строки-плашки и меню (§3.7.27)
   --------------------------------------------------------------------- */
.plate {
  display: flex; align-items: center; gap: var(--space-3); min-height: var(--h-plate);
  padding: var(--space-3) var(--space-4); border-radius: var(--radius-m); background: var(--bg-subtle);
  color: var(--text-primary); font-size: 15px; line-height: 20px; text-decoration: none; border: 0; width: 100%; text-align: left;
}
button.plate, a.plate { cursor: pointer; }
button.plate:active, a.plate:active { background: var(--bg-muted); }
.plate--action { padding-right: var(--space-2); }
.plate__text { flex: 1 1 auto; min-width: 0; }
.plate__value { font-size: 13px; line-height: 18px; color: var(--text-secondary); white-space: nowrap; }
.plate .btn--ghost { height: 32px; }
.plate--warning { background: var(--status-warning-bg); color: var(--status-warning-fg); }
.plate--info { background: var(--status-info-bg); color: var(--status-info-fg); }
.plate--danger { background: var(--status-danger-bg); color: var(--status-danger-fg); }
.menu-group { background: var(--bg-screen); border-radius: var(--radius-xl); overflow: hidden; }
.menu-group__title { font-size: 13px; line-height: 18px; color: var(--text-secondary); padding: 0 var(--space-4) var(--space-2); }
.menu-item {
  position: relative; display: flex; align-items: center; gap: var(--space-4); min-height: var(--h-row);
  padding: 0 var(--space-4); width: 100%; border: 0; background: transparent; text-align: left; cursor: pointer;
  font-size: 15px; line-height: 20px; color: var(--text-primary); text-decoration: none;
}
.menu-item:active { background: var(--bg-muted); }
.menu-item + .menu-item::before { content: ""; position: absolute; top: 0; left: 52px; right: 0; height: 1px; background: var(--border-default); }
.menu-item__text { flex: 1 1 auto; min-width: 0; }
.menu-item__value { font-size: 13px; line-height: 18px; color: var(--text-secondary); white-space: nowrap; }
.menu-item__chev { color: var(--text-secondary); }
.menu-item--danger { color: var(--status-danger-fg); }
.list-row { display: flex; align-items: center; gap: var(--space-3); min-height: var(--h-row); }
.list-row + .list-row { border-top: 1px solid var(--border-default); }
.kv { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-3); min-height: 36px; font-size: 15px; line-height: 20px; }
.kv__value { font-size: 16px; line-height: 22px; font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.kv--total { border-top: 1px solid var(--border-default); padding-top: var(--space-3); margin-top: var(--space-2); }
.kv--total .kv__value { font-size: 22px; line-height: 28px; font-weight: 700; }
.divider { height: 1px; background: var(--border-default); border: 0; margin: 0; }
.section { display: flex; flex-direction: column; gap: var(--space-4); }
.section__title { margin: 0; font-size: 18px; line-height: 24px; font-weight: 600; }
.section__head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
.amenity { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 13px; line-height: 18px; text-align: center; min-width: 0; flex: 1; }
.amenities { display: flex; gap: var(--space-2); }

/* ---------------------------------------------------------------------
   27. Карточка лояльности (§3.7.28)
   --------------------------------------------------------------------- */
.loyalty-card {
  display: grid; grid-template-columns: auto 1fr auto; gap: var(--space-2) var(--space-3); align-items: center;
  padding: var(--space-4); border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--bg-subtle), var(--accent-tint));
  color: var(--text-primary);
}
.loyalty-card__icon { grid-row: span 2; }
.loyalty-card__level { font-size: 18px; line-height: 24px; font-weight: 600; }
.loyalty-card__bonus { font-size: 16px; line-height: 22px; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.loyalty-card__progress { grid-column: 2 / 4; display: flex; flex-direction: column; gap: 6px; }
.loyalty-card__hint { font-size: 13px; line-height: 18px; color: var(--text-secondary); }
.loyalty--bronze { color: var(--loyalty-bronze); }
.loyalty--silver { color: var(--loyalty-silver); }
.loyalty--gold   { color: var(--loyalty-gold); }

/* ---------------------------------------------------------------------
   28. Чат поддержки
   --------------------------------------------------------------------- */
.chat { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-4); }
.chat__day { align-self: center; font-size: 12px; line-height: 16px; font-weight: 500; color: var(--text-secondary); padding: var(--space-2) 0; }
.msg { max-width: 80%; padding: 10px 14px; border-radius: var(--radius-xl); font-size: 15px; line-height: 20px; display: flex; flex-direction: column; gap: 2px; }
.msg__time { font-size: 12px; line-height: 16px; font-weight: 500; opacity: .7; align-self: flex-end; font-variant-numeric: tabular-nums; }
.msg--agent { align-self: flex-start; background: var(--bg-subtle); color: var(--text-primary); border-bottom-left-radius: var(--radius-s); }
.msg--guest { align-self: flex-end; background: var(--action-primary); color: var(--text-on-primary); border-bottom-right-radius: var(--radius-s); }
.msg--system { align-self: center; background: transparent; color: var(--text-secondary); font-size: 13px; line-height: 18px; text-align: center; }
.msg__author { font-size: 12px; line-height: 16px; font-weight: 600; color: var(--text-secondary); }
.msg.is-pending { opacity: .6; }
.msg.is-failed { box-shadow: inset 0 0 0 1.5px var(--status-danger-fg); }
.typing { align-self: flex-start; display: inline-flex; gap: 4px; padding: 14px; background: var(--bg-subtle); border-radius: var(--radius-xl); }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--text-secondary); animation: rg-typing 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; } .typing i:nth-child(3) { animation-delay: .4s; }
@keyframes rg-typing { 0%, 60%, 100% { opacity: .3; } 30% { opacity: 1; } }
.chat-input { display: flex; align-items: flex-end; gap: var(--space-2); padding: var(--space-2) var(--space-2) var(--space-2) var(--space-4); border-top: 1px solid var(--border-default); background: var(--bg-screen); }
.chat-input textarea { flex: 1; min-height: 44px; max-height: 120px; resize: none; border: 0; outline: 0; border-radius: 22px; background: var(--bg-subtle); padding: 12px var(--space-4); font-size: 16px; line-height: 20px; color: var(--text-primary); }

/* ---------------------------------------------------------------------
   29. Карточка отзыва (SPEC-UI-06 §3.2), карточка брони, уведомление
   --------------------------------------------------------------------- */
.review-card { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-4) 0; }
.review-card + .review-card { border-top: 1px solid var(--border-default); }
.review-card__head { display: flex; align-items: center; gap: var(--space-3); }
.avatar {
  width: 32px; height: 32px; border-radius: 50%; flex: none; display: inline-flex; align-items: center; justify-content: center;
  background: var(--bg-muted); color: var(--text-primary); font-size: 13px; line-height: 16px; font-weight: 600;
}
.avatar--l { width: 64px; height: 64px; font-size: 22px; }
.review-card__text { font-size: 16px; line-height: 22px; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.review-card__text.is-expanded { -webkit-line-clamp: unset; display: block; }
.review-card__photos { display: flex; gap: var(--space-2); }
.review-card__photos .photo { width: 64px; height: 64px; border-radius: var(--radius-s); }
.admin-reply { background: var(--bg-subtle); border-radius: var(--radius-m); padding: var(--space-3); border-left: 3px solid var(--border-strong); display: flex; flex-direction: column; gap: var(--space-1); }
.admin-reply__head { display: flex; justify-content: space-between; font-size: 13px; line-height: 16px; font-weight: 600; }
.admin-reply__text { font-size: 15px; line-height: 20px; }
.booking-card { display: flex; gap: var(--space-3); padding: var(--space-3); border-radius: var(--radius-xl); border: 1px solid var(--border-default); background: var(--bg-screen); cursor: pointer; color: var(--text-primary); }
.booking-card:active { background: var(--bg-subtle); }
.booking-card__photo { width: 72px; height: 72px; border-radius: var(--radius-l); }
.booking-card__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.booking-card__side { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; }
.notif { display: flex; gap: var(--space-3); padding: var(--space-3) var(--space-4); position: relative; }
.notif + .notif { border-top: 1px solid var(--border-default); }
.notif__icon { width: 40px; height: 40px; border-radius: 50%; background: var(--bg-subtle); display: flex; align-items: center; justify-content: center; flex: none; }
.notif.is-unread .notif__title::after { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--status-danger-solid); margin-left: var(--space-2); vertical-align: middle; }
.stepper { display: inline-flex; align-items: center; gap: var(--space-2); }
.stepper__value { min-width: 24px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.stepper .icon-btn { background: var(--bg-subtle); width: 36px; height: 36px; }

/* ---------------------------------------------------------------------
   30. Экран мобильного приложения (оболочка)
   --------------------------------------------------------------------- */
.screen { position: absolute; inset: 0; display: flex; flex-direction: column; background: var(--bg-screen); overflow: hidden; }
.screen--canvas { background: var(--bg-canvas); }
.screen--canvas .appbar { background: var(--bg-canvas); }
.screen__body { flex: 1 1 auto; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; }
.screen__content { padding: var(--space-4); display: flex; flex-direction: column; gap: var(--space-6); }
.screen__cta { flex: none; padding: var(--space-3) var(--space-4); background: var(--bg-screen); box-shadow: var(--shadow-2); border-top: 1px solid var(--border-default); display: flex; flex-direction: column; gap: var(--space-2); }
.screen__cta-row { display: flex; align-items: center; gap: var(--space-3); }
/* Переходы роутера */
.screen.is-enter-push { animation: rg-push-in var(--motion-slow) both; }
.screen.is-leave-push { animation: rg-push-out var(--motion-slow) both; }
.screen.is-enter-pop  { animation: rg-pop-in var(--motion-slow) both; }
.screen.is-leave-pop  { animation: rg-pop-out var(--motion-slow) both; z-index: 2; }
.screen.is-enter-modal { animation: rg-modal-in var(--motion-slow) both; z-index: 3; }
.screen.is-leave-modal { animation: rg-modal-out var(--motion-slow) both; z-index: 3; }
.screen.is-enter-fade { animation: rg-fade-in var(--motion-base) both; }
.screen.is-leave-fade { animation: rg-fade-out var(--motion-base) both; }
@keyframes rg-push-in  { from { transform: translateX(100%); } to { transform: none; } }
@keyframes rg-push-out { from { transform: none; } to { transform: translateX(-30%); opacity: .6; } }
@keyframes rg-pop-in   { from { transform: translateX(-30%); opacity: .6; } to { transform: none; opacity: 1; } }
@keyframes rg-pop-out  { from { transform: none; } to { transform: translateX(100%); } }
@keyframes rg-modal-in { from { transform: translateY(100%); } to { transform: none; } }
@keyframes rg-modal-out { from { transform: none; } to { transform: translateY(100%); } }
@keyframes rg-fade-in  { from { opacity: 0; } to { opacity: 1; } }
@keyframes rg-fade-out { from { opacity: 1; } to { opacity: 0; } }

/* Слой оверлеев (шторки, диалоги, тосты) */
.overlay-root { position: fixed; inset: 0; pointer-events: none; z-index: 1000; }
.overlay-root > * { pointer-events: auto; }
.overlay-root > .toast-stack { pointer-events: none; }

/* ---------------------------------------------------------------------
   31. Веб-раскладки (ТЗ §6)
   --------------------------------------------------------------------- */
.container { width: 100%; max-width: var(--web-container); margin: 0 auto; padding: 0 40px; }
.site-header { position: sticky; top: 0; z-index: 50; background: var(--bg-screen); border-bottom: 1px solid var(--border-default); }
.site-header__inner { display: flex; align-items: center; gap: var(--space-6); height: var(--web-header-h); }
.site-logo { display: inline-flex; align-items: center; gap: var(--space-2); font-size: 20px; line-height: 24px; font-weight: 700; color: var(--text-primary); }
.site-logo__mark { width: 32px; height: 32px; border-radius: var(--radius-m); background: var(--action-primary); color: var(--text-on-primary); display: inline-flex; align-items: center; justify-content: center; }
.site-search { flex: 1; max-width: 480px; }
.site-nav { display: flex; align-items: center; gap: var(--space-1); margin-left: auto; }
.site-nav__link { display: inline-flex; align-items: center; gap: var(--space-2); height: 40px; padding: 0 var(--space-3); border-radius: var(--radius-full); color: var(--text-primary); font-size: 15px; line-height: 20px; font-weight: 500; }
.site-nav__link:hover { background: var(--bg-subtle); }
.site-nav__link.is-active { background: var(--bg-subtle); font-weight: 600; }
.site-main { min-height: calc(100vh - var(--web-header-h)); }
.site-footer { background: var(--bg-canvas); border-top: 1px solid var(--border-default); padding: 48px 0 32px; color: var(--text-secondary); font-size: 15px; line-height: 20px; }
.site-footer__grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: var(--space-8); }
.site-footer__title { font-size: 13px; line-height: 16px; font-weight: 600; color: var(--text-primary); margin: 0 0 var(--space-3); }
.site-footer a { color: var(--text-secondary); display: block; padding: 4px 0; }
.site-footer a:hover { color: var(--text-primary); }
.site-footer__bottom { margin-top: var(--space-8); padding-top: var(--space-4); border-top: 1px solid var(--border-default); display: flex; justify-content: space-between; font-size: 13px; line-height: 18px; }
.web-split { display: grid; grid-template-columns: 40% 60%; height: calc(100vh - var(--web-header-h)); }
.web-split__list { overflow-y: auto; padding: var(--space-6); border-right: 1px solid var(--border-default); display: flex; flex-direction: column; gap: var(--space-3); }
.web-two-col { display: grid; grid-template-columns: 1fr 400px; gap: 48px; align-items: start; }
.web-sticky { position: sticky; top: calc(var(--web-header-h) + var(--space-6)); }
.web-card { background: var(--bg-screen); border: 1px solid var(--border-default); border-radius: var(--radius-xl); padding: var(--space-6); box-shadow: var(--shadow-1); }
.web-hero { padding: 96px 0 72px; background: linear-gradient(135deg, var(--bg-subtle), var(--accent-tint)); }
.web-title { font-size: 48px; line-height: 56px; font-weight: 700; margin: 0; letter-spacing: -.01em; }
.app-banner { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3) var(--space-4); border-radius: var(--radius-m); background: var(--accent-tint); font-size: 15px; line-height: 20px; }
@media (max-width: 900px) {
  .container { padding: 0 var(--space-4); }
  .web-split, .web-two-col { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .site-nav .site-nav__link span { display: none; }
  .web-title { font-size: 32px; line-height: 40px; }
}

/* ---------------------------------------------------------------------
   32. Админ-раскладки (ТЗ §7)
   --------------------------------------------------------------------- */
.admin { display: grid; grid-template-columns: var(--admin-sidebar-w) 1fr; min-height: 100vh; background: var(--bg-canvas); }
.admin.is-collapsed { grid-template-columns: var(--admin-sidebar-w-collapsed) 1fr; }
.admin-sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; background: var(--bg-screen); border-right: 1px solid var(--border-default); overflow-y: auto; }
.admin-sidebar__logo { display: flex; align-items: center; gap: var(--space-2); height: var(--admin-topbar-h); padding: 0 var(--space-5); font-weight: 700; font-size: 17px; border-bottom: 1px solid var(--border-default); }
.admin-nav { display: flex; flex-direction: column; gap: 2px; padding: var(--space-3); }
.admin-nav__item { display: flex; align-items: center; gap: var(--space-3); height: 40px; padding: 0 var(--space-3); border-radius: var(--radius-m); color: var(--text-secondary); font-size: 15px; line-height: 20px; font-weight: 500; white-space: nowrap; cursor: pointer; }
.admin-nav__item:hover { background: var(--bg-subtle); color: var(--text-primary); }
.admin-nav__item.is-active { background: var(--bg-muted); color: var(--text-primary); font-weight: 600; }
.admin-nav__item.is-disabled { color: var(--text-disabled); cursor: default; }
.admin-nav__item.is-disabled:hover { background: transparent; }
.admin-nav__sep { height: 1px; background: var(--border-default); margin: var(--space-2) var(--space-3); }
.admin.is-collapsed .admin-nav__item span, .admin.is-collapsed .admin-sidebar__logo span { display: none; }
.admin-topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: var(--space-4); height: var(--admin-topbar-h); padding: 0 var(--space-6); background: var(--bg-screen); border-bottom: 1px solid var(--border-default); }
.admin-topbar__search { flex: 1; max-width: 520px; }
.admin-topbar__search .field__control { min-height: 40px; border-radius: var(--radius-full); }
.admin-topbar__search .field__input { height: 37px; font-size: 15px; }
.admin-user { display: flex; align-items: center; gap: var(--space-2); font-size: 15px; line-height: 20px; }
.admin-main { min-width: 0; }
.admin-page { padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-6); }
.admin-page__head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); }
.admin-page__title { margin: 0; font-size: 26px; line-height: 32px; font-weight: 600; }
.breadcrumbs { display: flex; align-items: center; gap: var(--space-1); font-size: 13px; line-height: 18px; color: var(--text-secondary); }
.breadcrumbs a { color: var(--text-secondary); } .breadcrumbs a:hover { color: var(--text-primary); }
.admin-card { background: var(--bg-screen); border: 1px solid var(--border-default); border-radius: var(--radius-xl); padding: var(--space-5); }
.admin-card__title { margin: 0 0 var(--space-4); font-size: 18px; line-height: 24px; font-weight: 600; }
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--space-4); }
.kpi { background: var(--bg-screen); border: 1px solid var(--border-default); border-radius: var(--radius-xl); padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-2); }
.kpi__label { font-size: 13px; line-height: 18px; color: var(--text-secondary); display: flex; align-items: center; gap: var(--space-2); }
.kpi__value { font-size: 26px; line-height: 32px; font-weight: 600; font-variant-numeric: tabular-nums; }
.kpi__delta { font-size: 13px; line-height: 18px; font-weight: 600; }
.kpi__delta--up { color: var(--status-success-fg); } .kpi__delta--down { color: var(--status-danger-fg); }
.filter-bar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); padding: var(--space-3); background: var(--bg-screen); border: 1px solid var(--border-default); border-radius: var(--radius-xl); }
.filter-bar .field__control { min-height: 36px; border-radius: var(--radius-full); }
.filter-bar .field__input { height: 33px; font-size: 13px; }
.select { height: 36px; padding: 0 32px 0 14px; border-radius: var(--radius-full); border: 1.5px solid transparent; background: var(--bg-subtle); color: var(--text-primary); font-size: 13px; font-weight: 600; appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 16px) 16px, calc(100% - 11px) 16px; background-size: 5px 5px; background-repeat: no-repeat; }
.select:focus { border-color: var(--border-focus); outline: 0; }
.table-wrap { background: var(--bg-screen); border: 1px solid var(--border-default); border-radius: var(--radius-xl); overflow: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 20px; }
.table th { position: sticky; top: 0; background: var(--bg-screen); text-align: left; font-size: 13px; line-height: 16px; font-weight: 600; color: var(--text-secondary); padding: 12px 16px; border-bottom: 1px solid var(--border-default); white-space: nowrap; }
.table th.is-sortable { cursor: pointer; } .table th.is-sorted { color: var(--text-primary); }
.table td { padding: 12px 16px; border-bottom: 1px solid var(--border-default); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { cursor: pointer; transition: background-color var(--motion-fast); }
.table tbody tr:hover { background: var(--bg-subtle); }
.table tbody tr.is-selected { background: var(--accent-tint); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.pagination { display: flex; align-items: center; justify-content: space-between; padding: var(--space-3) var(--space-4); font-size: 13px; line-height: 18px; color: var(--text-secondary); border-top: 1px solid var(--border-default); }
.drawer-layer { position: fixed; inset: 0; z-index: 65; pointer-events: auto; } /* ниже .dialog-layer (70): диалог открывается поверх drawer */
.drawer-layer .scrim { position: absolute; }
.drawer {
  position: absolute; top: 0; right: 0; bottom: 0; width: var(--admin-drawer-w); max-width: 100%; z-index: 31;
  display: flex; flex-direction: column; background: var(--bg-screen); border-left: 1px solid var(--border-default); box-shadow: var(--shadow-3);
  transform: translateX(100%); transition: transform var(--motion-slow);
}
.drawer.is-open { transform: none; }
.drawer--static { position: relative; transform: none; height: 420px; width: 100%; }
.drawer__header { display: flex; align-items: center; gap: var(--space-3); height: var(--admin-topbar-h); padding: 0 var(--space-3) 0 var(--space-6); border-bottom: 1px solid var(--border-default); }
.drawer__title { flex: 1; margin: 0; font-size: 18px; line-height: 24px; font-weight: 600; }
.drawer__body { flex: 1; overflow-y: auto; padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-5); }
.drawer__footer { padding: var(--space-4) var(--space-6); border-top: 1px solid var(--border-default); display: flex; gap: var(--space-2); justify-content: flex-end; }
.tabs { display: flex; gap: var(--space-4); border-bottom: 1px solid var(--border-default); }
.tabs__item { height: 44px; border: 0; background: transparent; padding: 0; cursor: pointer; font-size: 15px; line-height: 20px; font-weight: 500; color: var(--text-secondary); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs__item.is-active { color: var(--text-primary); font-weight: 600; border-bottom-color: var(--action-primary); }
.timeline { display: flex; flex-direction: column; }
.timeline__item { display: grid; grid-template-columns: 16px 1fr; gap: var(--space-3); padding-bottom: var(--space-4); position: relative; }
.timeline__item::before { content: ""; position: absolute; left: 7px; top: 14px; bottom: 0; width: 2px; background: var(--border-default); }
.timeline__item:last-child::before { display: none; }
.timeline__dot { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--action-primary); background: var(--bg-screen); margin-top: 2px; }
/* Шахматка */
.chess { display: grid; grid-template-columns: 160px 1fr; font-size: 13px; line-height: 16px; }
.chess__cap { height: 40px; display: flex; align-items: center; padding: 0 var(--space-3); border-bottom: 1px solid var(--border-default); }
.chess__lane { position: relative; height: 40px; border-bottom: 1px solid var(--border-default); background-image: linear-gradient(90deg, var(--border-default) 1px, transparent 1px); background-size: calc(100% / 24) 100%; }
.chess__bar { position: absolute; top: 6px; bottom: 6px; border-radius: var(--radius-s); padding: 0 8px; display: flex; align-items: center; color: var(--text-on-solid); font-weight: 600; overflow: hidden; white-space: nowrap; cursor: pointer; background: var(--status-neutral-solid); }
.chess__bar--booked { background: var(--status-booked-solid); }
.chess__bar--occupied { background: var(--status-danger-solid); }
.chess__bar--cleaning { background: var(--status-info-solid); }
.chess__bar--unavailable { background: var(--status-neutral-solid); }
.chess__bar--free { background: var(--status-success-solid); }
.chess__now { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--status-danger-solid); z-index: 2; }

/* ---------------------------------------------------------------------
   33. Рамка телефона (app/mobile.html) и панель разработчика
   --------------------------------------------------------------------- */
.stage { min-height: 100vh; display: flex; align-items: flex-start; justify-content: center; gap: 32px; padding: 32px; background: var(--bg-canvas); }
.phone {
  position: relative; flex: none; width: 390px; height: 844px; border-radius: 44px; overflow: hidden;
  background: var(--bg-screen); border: 1px solid var(--border-strong); box-shadow: var(--shadow-3);
  display: flex; flex-direction: column; transform: translateZ(0);
}
.phone .overlay-root { position: absolute; }
.phone__content { position: relative; flex: 1 1 auto; overflow: hidden; }
.phone__home { flex: none; height: 20px; display: flex; align-items: center; justify-content: center; background: var(--bg-screen); }
.phone__home::before { content: ""; width: 134px; height: 5px; border-radius: 3px; background: var(--text-primary); opacity: .9; }
.phone--no-chrome .tabbar { display: none; }
.devpanel { width: 340px; flex: none; position: sticky; top: 32px; max-height: calc(100vh - 64px); overflow-y: auto; overflow-x: hidden; background: var(--bg-screen); border: 1px solid var(--border-default); border-radius: var(--radius-xl); padding: var(--space-4); display: flex; flex-direction: column; gap: var(--space-4); }
.devpanel__title { margin: 0; font-size: 15px; line-height: 20px; font-weight: 600; display: flex; align-items: center; gap: var(--space-2); }
.devpanel__group { display: flex; flex-direction: column; gap: var(--space-2); }
.devpanel__label { font-size: 12px; line-height: 16px; font-weight: 500; color: var(--text-secondary); text-transform: none; }
.devpanel__routes { display: flex; flex-direction: column; gap: 2px; }
.devpanel__route { display: flex; gap: var(--space-2); align-items: baseline; padding: 6px var(--space-2); border-radius: var(--radius-s); font-size: 13px; line-height: 18px; color: var(--text-primary); cursor: pointer; border: 0; background: transparent; text-align: left; }
.devpanel__route:hover { background: var(--bg-subtle); }
.devpanel__route.is-active { background: var(--bg-muted); font-weight: 600; }
.devpanel__route code { font-size: 11px; color: var(--text-secondary); margin-left: auto; font-family: ui-monospace, Menlo, monospace; }
.devpanel .segment { height: 36px; }
@media (max-width: 760px) { .stage { flex-direction: column; align-items: center; padding: 16px; } .devpanel { position: static; width: 390px; max-width: 100%; } }

/* ---------------------------------------------------------------------
   34. Уменьшение движения (§3.6)
   --------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .skel::after { animation: none; display: none; }
  .open-btn--waiting .open-btn__halo, .me-dot::before { animation: none; }
  .screen[class*="is-enter-"], .screen[class*="is-leave-"] { animation-name: rg-fade-in; animation-duration: 150ms; }
  .screen[class*="is-leave-"] { animation-name: rg-fade-out; }
  .sheet, .dialog, .toast, .drawer, .segment::before { transition-duration: 150ms; }
  .otp.is-error { animation: none; }
}

/* ---------------------------------------------------------------------
   35. Push-баннер (имитация системного уведомления в рамке телефона)
   --------------------------------------------------------------------- */
.push-banner {
  position: absolute; left: var(--space-2); right: var(--space-2); top: var(--space-2); z-index: 90;
  display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3);
  border: 1px solid var(--border-default); border-radius: var(--radius-xl);
  background: var(--bg-screen); box-shadow: var(--shadow-3); color: var(--text-primary);
  text-align: left; cursor: pointer; font: inherit;
  transform: translateY(calc(-100% - 16px)); transition: transform var(--motion-slow);
}
.push-banner.is-open { transform: none; }
.push-banner__icon { width: 40px; height: 40px; border-radius: var(--radius-m); background: var(--action-primary); color: var(--text-on-primary); display: flex; align-items: center; justify-content: center; flex: none; }
.push-banner__body { display: flex; flex-direction: column; min-width: 0; font-size: 13px; line-height: 18px; }
.push-banner__body b { font-size: 15px; line-height: 20px; font-weight: 600; }
.push-banner__body span { color: var(--text-secondary); overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.empty--compact { min-height: 0; padding: var(--space-6) var(--space-4); }
/* Админка без каркаса (экран входа A-01) */
.admin--bare { grid-template-columns: 1fr; }
.admin--bare .admin-sidebar, .admin--bare .admin-topbar { display: none; }
.admin-login { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: var(--space-6); background: var(--bg-canvas); }
.admin-login__card { width: 100%; max-width: 400px; background: var(--bg-screen); border: 1px solid var(--border-default); border-radius: var(--radius-xl); padding: var(--space-8); display: flex; flex-direction: column; gap: var(--space-4); box-shadow: var(--shadow-1); }
/* Веб и админка: экран — обычный блок в потоке страницы (прокрутка окна) */
.page-outlet > .screen { position: relative; inset: auto; display: block; overflow: visible; background: transparent; }
.page-outlet > .screen .screen__body { overflow: visible; }

/* Диалог выше своего scrim (.scrim z 30) внутри .dialog-layer — норма ядра */
.dialog-layer > .dialog { z-index: 31; position: relative; }
