/* =========================================================
   Редакторский слой STOLIK.ONLINE.

   Приёмы разворота из макетов: крупное имя раздела с оранжевой точкой,
   подпись на поле набранная вразрядку, номер раздела справа, кадры
   срезанные по диагонали, боковая колонка фильтров.

   Палитра целиком берётся из app.css — здесь только раскладка и формы.
   ========================================================= */

/* ==================== ШАПКА РАЗВОРОТА ==================== */

.edhead {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: start;
  padding: 34px 0 30px;
}

/* Подпись на поле — вертикальная колонка мелких прописных вразрядку.
   На узком экране поля нет, и она прячется: читать её сбоку негде. */
.edhead__note {
  position: relative;
  z-index: 1;
  grid-column: 1;
  max-width: 15ch;
  margin-bottom: 18px;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.7;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.edhead__note::after {
  content: '';
  display: block;
  width: 34px;
  height: 2px;
  margin-top: 12px;
  background: var(--accent);
}

.edhead__text { position: relative; z-index: 1; grid-column: 1; max-width: 34ch; }

.edhead__title {
  margin: 0;
  font-size: clamp(38px, 6.4vw, 76px);
  font-weight: 800;
  line-height: .96;
  letter-spacing: -.035em;
  color: var(--text);
}

.edhead__dot { color: var(--accent); }

.edhead__lead {
  margin-top: 16px;
  max-width: 52ch;
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.6;
}

/* Номер раздела и подпись под ним — правое поле разворота. */
.edhead__mark {
  grid-column: 2;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  text-align: right;
}

.edhead__number {
  font-size: 30px;
  font-weight: 300;
  letter-spacing: .06em;
  color: var(--text);
}

.edhead__rule { width: 28px; height: 1px; background: var(--border-strong); }

.edhead__side {
  max-width: 13ch;
  /* Длинное слово вроде «Администрирование» иначе вылезает за край
     разворота и обрезается. */
  overflow-wrap: anywhere;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.7;
  letter-spacing: .18em;
  text-transform: uppercase;
}

/* Кадры срезаны по диагонали — приём макета. Лежат за текстом и не
   перехватывают нажатия. */
.edhead__media {
  position: absolute;
  top: 0;
  /* Правое поле оставлено под номер раздела — в макете кадры до края
     не доходят, иначе номер читать негде. */
  right: 118px;
  width: 52%;
  height: 100%;
  min-height: 210px;
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 8px;
  pointer-events: none;
  z-index: 0;
}

.edhead__shot {
  background-size: cover;
  background-position: center;
  border-radius: 4px;
}

.edhead__shot--wide { clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%); }
.edhead__shot--tall { clip-path: polygon(10% 0, 100% 0, 100% 82%, 0 100%); }

@media (max-width: 1000px) {
  .edhead__media { display: none; }
  .edhead { grid-template-columns: minmax(0, 1fr) auto; padding-top: 24px; }
  .edhead__note { display: none; }
}

/* ==================== ПОИСК НАД КАТАЛОГОМ ==================== */

.catalog-search {
  display: flex;
  gap: 10px;
  margin: 6px 0 26px;
}

.catalog-search .suggest-wrap { flex: 1; position: relative; }

.catalog-search input[type="text"] {
  width: 100%;
  height: 52px;
  padding: 0 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
}

.catalog-search input[type="text"]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.catalog-search .btn { height: 52px; padding: 0 28px; border-radius: 999px; }

/* ==================== РАСКЛАДКА КАТАЛОГА ==================== */

.catalog-layout {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  gap: 34px;
  align-items: start;
  padding-bottom: 56px;
}

@media (max-width: 900px) {
  .catalog-layout { grid-template-columns: minmax(0, 1fr); gap: 22px; }
}

/* ==================== БОКОВЫЕ ФИЛЬТРЫ ==================== */

.filters { position: sticky; top: calc(var(--header-h) + 14px); display: grid; gap: 22px; }

@media (max-width: 900px) { .filters { position: static; } }

.filters__group { display: grid; gap: 10px; }

.filters__title {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--text);
}

.filters select {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
}

.filters__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }

/* Фильтр — ссылка, но выглядит переключателем: так он работает без
   скриптов и остаётся понятным на вид. */
.filters__option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px 6px 0;
  border-radius: 8px;
  color: var(--text-dim);
  font-size: 14px;
  text-decoration: none;
}

.filters__option:hover { color: var(--text); }

.filters__box {
  flex: none;
  width: 17px;
  height: 17px;
  border: 1.5px solid var(--border-strong);
  border-radius: 5px;
  background: var(--surface);
}

.filters__option.is-active { color: var(--text); font-weight: 600; }

.filters__option.is-active .filters__box {
  border-color: var(--accent);
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8.5l3.2 3.2L13 5'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.filters__hint { color: var(--text-muted); font-size: 12px; line-height: 1.5; }

.btn--reset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: transparent;
  color: var(--accent-ink);
  font-weight: 600;
  text-decoration: none;
}

.btn--reset:hover { background: var(--accent-soft); }

/* ==================== ПОЛОСА НАД ВЫДАЧЕЙ ==================== */

.catalog-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.catalog-bar__count { margin-right: auto; color: var(--text-dim); font-size: 14px; }
.catalog-bar__count b { color: var(--text); font-weight: 700; }

.catalog-bar__sort { display: flex; align-items: center; gap: 8px; }

.catalog-bar__sort label { color: var(--text-muted); font-size: 13px; }

.catalog-bar__sort select {
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
}

.btn--outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

.btn--outline:hover { border-color: var(--text); }

/* ==================== КАРТОЧКА ЗАВЕДЕНИЯ ==================== */

.pcard {
  display: flex;
  flex-direction: column;
  background: transparent;
  border: 0;
  box-shadow: none;
  text-decoration: none;
  color: inherit;
}

.pcard__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 12px;
  background: var(--surface-2);
}

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

.pcard:hover .pcard__media img { transform: scale(1.03); }
.pcard__media img { transition: transform .5s cubic-bezier(.22, 1, .36, 1); }

/* Оценка лежит на снимке — приём макета. Подложка непрозрачная: на светлом
   кадре полупрозрачная белая плашка сливалась бы со скатертью. */
.pcard__score {
  position: absolute;
  left: 10px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: calc(100% - 20px);
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}

.pcard__star { color: var(--accent); }

.pcard__score small {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pcard__score--new { font-weight: 600; font-size: 12px; color: var(--text-muted); }

.pcard__flag {
  position: absolute;
  left: 10px;
  top: 10px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 11px;
  font-weight: 700;
}

.pcard__body { padding: 14px 2px 0; display: grid; gap: 4px; }

.pcard__title {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: .01em;
  text-transform: uppercase;
  color: var(--text);
}

.pcard__meta, .pcard__addr { margin: 0; color: var(--text-muted); font-size: 13px; }
.pcard__addr { color: var(--text-dim); }

.pcard__foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-top: 6px;
}

.pcard__check { color: var(--text-muted); font-size: 12px; }

/* Оранжевая черта под ссылкой — та же деталь, что и в макете. */
.pcard__more {
  flex: none;
  padding-bottom: 4px;
  border-bottom: 2px solid var(--accent);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.pcard:hover .pcard__more { color: var(--accent-ink); }

.grid--places { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 26px 22px; }

/* ==================== СТРАНИЦА ЗАВЕДЕНИЯ ==================== */

.crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 22px 0 18px;
  color: var(--text-muted);
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.crumbs a { color: var(--text-muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent-ink); }
.crumbs b { color: var(--text); font-weight: 700; }

/* Имя, кадр и описание в левой колонке, панель брони — в правой и липкая.
   Панель не должна уезжать: гость читает описание и бронирует, не листая
   обратно наверх. */
.venue {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  grid-template-areas:
    "head    booking"
    "media   booking"
    "about   booking";
  gap: 0 40px;
  padding-bottom: 40px;
}

.venue__head { grid-area: head; }
.venue__media { grid-area: media; margin-top: 24px; }
.venue__about { grid-area: about; margin-top: 30px; }
.venue__booking { grid-area: booking; }

@media (max-width: 940px) {
  .venue {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "head" "media" "booking" "about";
    gap: 0;
  }
  .venue__booking { margin-top: 26px; }
}

.venue__name {
  margin: 0;
  font-size: clamp(40px, 6.6vw, 82px);
  font-weight: 800;
  line-height: .92;
  letter-spacing: -.04em;
  text-transform: uppercase;
  color: var(--text);
}

.venue__kind {
  margin: 12px 0 0;
  color: var(--text-dim);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.venue__where { margin: 8px 0 0; color: var(--text-muted); font-size: 14px; }

.venue__flags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 600;
}

.chip--accent { border-color: transparent; background: var(--accent-soft); color: var(--accent-ink); }
.chip__star { color: var(--accent); }

.venue__shot {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 14px;
  background: var(--surface-2);
}

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

.venue__section {
  margin: 0 0 12px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--text);
}

.venue__text { margin: 0; max-width: 62ch; color: var(--text-dim); font-size: 15px; line-height: 1.65; white-space: pre-line; }

.venue__facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 18px 26px;
  margin: 24px 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}

.venue__facts dt {
  margin-bottom: 4px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.venue__facts dd { margin: 0; color: var(--text); font-size: 15px; }

/* ==================== ПАНЕЛЬ БРОНИ ==================== */

.bookpanel {
  position: sticky;
  top: calc(var(--header-h) + 16px);
  padding: 26px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

@media (max-width: 940px) { .bookpanel { position: static; } }

.bookpanel__title { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -.02em; color: var(--text); }
.bookpanel__note { margin: 4px 0 20px; color: var(--text-muted); font-size: 13px; }
.bookpanel__hint { margin: 0 0 14px; color: var(--text-dim); font-size: 14px; line-height: 1.5; }
.bookpanel__legal { margin: 10px 0 0; color: var(--text-muted); font-size: 11px; line-height: 1.5; text-align: center; }

/* Слоты времени — пилюли, выбранная заливается акцентом. */
.bookpanel .slots { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }

.bookpanel .slot {
  padding: 9px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text-dim);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.bookpanel .slot:hover { border-color: var(--border-strong); color: var(--text); }

.bookpanel .slot.is-on {
  border-color: transparent;
  background: var(--accent-strong);
  color: #fff;
}

/* ==================== КАБИНЕТЫ: ОБЩАЯ РАСКЛАДКА ==================== */

.layout {
  display: grid;
  grid-template-columns: 216px minmax(0, 1fr);
  gap: 34px;
  align-items: start;
  padding-bottom: 56px;
}

@media (max-width: 900px) { .layout { grid-template-columns: minmax(0, 1fr); gap: 20px; } }

/* Шапка разворота внутри кабинета уже, чем на публичных страницах:
   слева боковое меню, и кадры до края разворота не доходят. */
.layout .edhead { padding-top: 26px; }
.layout .edhead__media { right: 104px; width: 46%; }
.layout .edhead__title { font-size: clamp(34px, 4.6vw, 60px); }

/* ==================== БОКОВОЕ МЕНЮ ==================== */

.side {
  position: sticky;
  top: calc(var(--header-h) + 14px);
  display: grid;
  gap: 2px;
  align-self: start;
}

@media (max-width: 900px) { .side { position: static; } }

.side__title {
  margin: 14px 0 6px;
  padding: 0 12px;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.side__title:first-child { margin-top: 0; }

.side__link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 12px;
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.side__icon { flex: none; width: 19px; height: 19px; color: var(--text-muted); }

.side__link:hover { background: var(--surface-2); color: var(--text); }
.side__link:hover .side__icon { color: var(--text-dim); }

/* Выбранный пункт — мягкая персиковая плашка с оранжевым текстом. */
.side__link.is-active { background: var(--accent-soft); color: var(--accent-ink); }
.side__link.is-active .side__icon { color: var(--accent); }

.dot-badge {
  margin-left: auto;
  min-width: 22px;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--accent-strong);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}

/* ==================== ПОЛОСА ДЕЙСТВИЙ ==================== */

.dash-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin: 4px 0 24px;
}

.dash-bar__count { margin-right: auto; color: var(--text-muted); font-size: 14px; }
.dash-bar__count b { color: var(--text); }

/* ==================== ПЛИТКИ СВОДКИ ==================== */

.grid--4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; }

.stat {
  display: grid;
  gap: 2px;
  padding: 20px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.stat__value { font-size: 34px; font-weight: 800; letter-spacing: -.03em; line-height: 1.05; color: var(--text); }

.stat__label { color: var(--text-muted); font-size: 13px; }

/* Цветом отмечаем только то, что требует внимания. Если подкрасить всё,
   не выделяется ничего. */
.stat--warn .stat__value { color: var(--accent-ink); }
.stat--ok .stat__value { color: var(--ok); }
.stat--accent { background: var(--accent-soft); border-color: transparent; }
.stat--accent .stat__value { color: var(--accent-ink); }

/* ==================== ПАНЕЛИ И ТАБЛИЦЫ ==================== */

.panel {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.panel--flush { padding: 0; overflow: hidden; }

.data { width: 100%; border-collapse: collapse; font-size: 14px; }

.data th {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-align: left;
  white-space: nowrap;
}

.data td { padding: 15px 18px; border-bottom: 1px solid var(--border); color: var(--text-dim); vertical-align: middle; }
.data tbody tr:last-child td { border-bottom: 0; }
.data tbody tr:hover { background: var(--row-hover); }
.data td a { color: var(--text); font-weight: 600; text-decoration: none; }
.data td a:hover { color: var(--accent-ink); }

/* ==================== СТАТУСЫ ==================== */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.badge--new { background: var(--warn-soft); color: var(--warn); }
.badge--confirmed { background: var(--ok-soft); color: var(--ok); }
.badge--rejected, .badge--cancelled { background: var(--danger-soft); color: var(--danger); }
.badge--partner { background: var(--accent-soft); color: var(--accent-ink); }
.badge--pending { background: var(--warn-soft); color: var(--warn); }
.badge--approved { background: var(--ok-soft); color: var(--ok); }

/* ==================== КАРТОЧКА БРОНИ ==================== */

.blist { display: grid; gap: 12px; }

.bcard {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 20px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

@media (max-width: 700px) { .bcard { grid-template-columns: minmax(0, 1fr); } }

/* Ждущая ответа бронь выделена персиковой полосой слева — как в макете
   кабинета заведения. */
.bcard--new { border-left: 3px solid var(--accent); }

.bcard__head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }

.bcard__title { font-size: 18px; font-weight: 800; color: var(--text); text-decoration: none; }
.bcard__title:hover { color: var(--accent-ink); }

.bcard__facts { display: flex; flex-wrap: wrap; gap: 16px; color: var(--text-dim); font-size: 14px; }
.bcard__fact b { color: var(--text); }

.bcard__actions { display: grid; gap: 8px; min-width: 132px; }

/* ==================== ЗАМЕТКИ ==================== */

.notice {
  padding: 14px 18px;
  border-left: 3px solid var(--accent);
  border-radius: 0 12px 12px 0;
  background: var(--accent-soft);
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.55;
}

.notice--warn { border-left-color: var(--warn); background: var(--warn-soft); }

/* ==================== ВХОДЯЩИЕ ЗАЯВКИ В КАБИНЕТЕ ==================== */

/* Одна строка: звук и настройки слева, статус посередине, лента справа.
   Раньше лента уезжала на вторую строку и полоса занимала вдвое больше места. */
.business-alerts {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px 16px;
  margin: 16px auto 0;
  padding: 10px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.business-alerts__controls { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

.business-alerts label { display: inline-flex; align-items: center; gap: 8px; color: var(--text-muted); font-size: 13px; }

/* Настройки раскрываются поверх страницы, а не раздвигают полосу. */
.business-alerts .notification-settings { position: relative; }

.business-alerts .notification-settings > div {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 8;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  width: max-content;
  max-width: min(360px, calc(100vw - 48px));
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.business-alerts .notification-feed { grid-column: 3; justify-self: end; }
.business-alerts .notification-feed[open] { grid-column: 1 / -1; justify-self: stretch; }

#bookingNotice { grid-column: 2; margin: 0; color: var(--text-dim); font-size: 13px; }
#bookingNotice:empty { display: none; }

@media (max-width: 640px) {
  .business-alerts { grid-template-columns: minmax(0, 1fr); }
  #bookingNotice,
  .business-alerts .notification-feed { grid-column: 1; justify-self: start; }
  /* На телефоне всплывающему окну некуда деться справа — раскрываем в полосе. */
  .business-alerts .notification-settings > div {
    position: static;
    width: auto;
    max-width: none;
    margin-top: 10px;
    box-shadow: none;
  }
}

/* Список заявок ограничен по высоте и прокручивается: в час пик их
   набирается два десятка, и без ограничения полоса занимала весь экран,
   отодвигая саму сводку за пределы первого экрана. */
#incomingBookings {
  display: grid;
  gap: 8px;
  max-height: 232px;
  overflow-y: auto;
  margin-top: 10px;
}

#incomingBookings:empty { margin-top: 0; }

.incoming-booking {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-left: 3px solid var(--accent);
  border-radius: 0 10px 10px 0;
  background: var(--accent-soft);
}

.incoming-booking a { flex: 1; color: var(--text); font-size: 14px; font-weight: 600; text-decoration: none; }
.incoming-booking a:hover { color: var(--accent-ink); }

/* ==================== РЕШЕНИЯ МОДЕРАЦИИ В КАБИНЕТЕ ==================== */

.owner-notices { display: grid; gap: 8px; margin: 16px auto 0; }

.owner-notice {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--ok);
  border-radius: var(--radius);
  background: var(--surface);
}

.owner-notice--bad { border-left-color: var(--danger); }
.owner-notice__text { flex: 1; min-width: 0; color: var(--text); font-size: 14px; line-height: 1.5; }
.owner-notice__text span { display: block; color: var(--text-dim); font-size: 13px; overflow-wrap: anywhere; }
.owner-notice form { margin: 0; }
.owner-notices__more { display: flex; align-items: center; gap: 12px; color: var(--text-muted); font-size: 13px; }

@media (max-width: 640px) {
  .owner-notice { flex-wrap: wrap; }
  .owner-notice__text { flex-basis: 100%; }
}

/* Фото в шапке дашборда заходит вверх, на пустое по дизайну место. Когда над
   шапкой висят сообщения, место занято: фото перекрывало второе из них. */
.service-site .main > .owner-notices-wrap { position: relative; z-index: 3; margin-bottom: 16px; }
/* Полоса заявок сразу под сообщениями: отступ уже есть, второй не нужен. */
.service-site .main > .owner-notices-wrap + .container > .business-alerts { margin-top: 0; }

.service-site.reference-layout.business-page .main:has(.owner-notices) .business-masthead__image {
  top: 0;
}

/* ==================== МОДЕРАЦИЯ ==================== */

.moderation__title { margin: 26px 0 12px; font-size: 18px; font-weight: 800; color: var(--text); }
.moderation__photo { display: block; width: 180px; max-width: 100%; margin-top: 8px; border-radius: 10px; }
.moderation__diff { margin-top: 10px; }
.moderation__diff td { vertical-align: top; }
.moderation__text { white-space: pre-line; overflow-wrap: anywhere; }

.moderation__text ins,
.moderation__legend ins,
.moderation__text del,
.moderation__legend del {
  padding: 0 2px;
  border-radius: 3px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.moderation__text ins,
.moderation__legend ins { background: var(--ok-soft); color: var(--ok); font-weight: 700; text-decoration: none; }

.moderation__text del,
.moderation__legend del { background: var(--danger-soft); color: var(--danger); }

.moderation__legend { margin-top: 6px; }

/* ==================== КАРТА: МЕТКА ГОРОДА ==================== */

.map-marker--city { background: none; border: 0; }

.map-city-count {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--accent-strong);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .3);
}

/* Соседние заведения, склеенные в одну метку: цвет булавки заведения. */
.map-marker--cluster { background: none; border: 0; }

.map-marker--cluster .map-city-count {
  width: 36px;
  height: 36px;
  border-width: 2px;
  background: #e74c3c;
  font-size: 12px;
}

/* Склеенные достопримечательности: цвет их булавки, меньше меток заведений. */
.map-marker--sights { background: none; border: 0; }

.map-marker--sights .map-city-count {
  width: 32px;
  height: 32px;
  border-width: 2px;
  background: #3498db;
  font-size: 11px;
}

.map-city-zoom {
  display: block;
  margin: 6px 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}

.map-venue-list { min-width: 180px; }

.map-venue-list ul {
  max-height: 220px;
  margin: 6px 0 0;
  padding-left: 18px;
  overflow-y: auto;
}

/* ==================== ПОЛИТИКА И КОНТАКТЫ ==================== */

.legal { padding-top: 44px; padding-bottom: 48px; }

.legal__section { margin-bottom: 20px; }

.legal h2 { margin-bottom: 12px; font-size: 20px; }

.legal p + p,
.legal p + ul,
.legal ul + p,
.legal .table-wrap + p { margin-top: 10px; }

.legal ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 20px;
  list-style: disc;
}

.legal .table-wrap { margin-top: 12px; }

.legal .data td { vertical-align: top; }

/* Отступ между карточками, идущими подряд, в сетке сдвигал правую вниз. */
.legal .grid > * { margin-top: 0; }

/* ==================== ВТОРОЙ ШАГ ВХОДА ==================== */

.two-factor__steps {
  display: grid;
  gap: 12px;
  margin: 0 0 20px;
  padding-left: 20px;
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.55;
}

.two-factor__secret,
.recovery-codes code {
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 15px;
  letter-spacing: .06em;
  overflow-wrap: anywhere;
}

.two-factor__secret { display: block; width: fit-content; max-width: 100%; margin: 8px 0 6px; }

.recovery-codes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
  margin: 16px 0 22px;
  padding-left: 24px;
}
.moderation__reject { display: grid; gap: 6px; }

.moderation__reject input[name="note"] {
  width: 100%;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 13px;
}

/* Подпись нужна читалкам экрана; на экране её заменяет подсказка в поле. */
.moderation__reject label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.pcard__flag--bad { background: var(--danger-soft); color: var(--danger); }
