/* Кабинет RHMap — один файл стилей, без сборки и внешних шрифтов.
   Спокойный рабочий интерфейс: системный шрифт, один акцентный цвет, крупные области
   нажатия (44 px) для телефона. Разделение — отступами и весом текста, не точками;
   цифры в колонках — tabular-nums основным шрифтом. */

:root {
  --bg: #f4f5f7;
  --surface: #ffffff;
  --surface-2: #f8f9fb;
  --ink: #1c2024;
  --ink-2: #3d4550;
  --muted: #5d6672;
  --line: #e2e5e9;
  --line-2: #c9cfd6;
  --accent: #2457c5;
  --accent-hover: #1c47a3;
  --accent-soft: #eaf0fc;
  --ok: #17703f;
  --ok-soft: #e7f4ec;
  --warn: #7f5300;
  --warn-soft: #fff4d9;
  --warn-line: #f0d595;
  --danger: #b42318;
  --danger-soft: #fdeceb;
  --radius: 8px;
  --radius-lg: 12px;
  --tap: 44px;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

a {
  color: var(--accent);
  text-underline-offset: 2px;
}
a:hover {
  color: var(--accent-hover);
}

:focus-visible {
  outline: 3px solid rgba(36, 87, 197, 0.4);
  outline-offset: 2px;
}

p {
  margin: 0 0 10px;
}

/* Скрытое атрибутом hidden остаётся скрытым и у элементов со своим display (.btn). */
[hidden] {
  display: none !important;
}

.muted {
  color: var(--muted);
}
.small {
  font-size: 13px;
}
.break {
  overflow-wrap: anywhere;
}

.h1 {
  margin: 0 0 4px;
  font-size: 24px;
  line-height: 1.25;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.h2 {
  margin: 0 0 12px;
  font-size: 17px;
  line-height: 1.3;
  font-weight: 650;
  display: flex;
  align-items: center;
  gap: 8px;
}
.h3 {
  margin: 16px 0 8px;
  font-size: 15px;
  font-weight: 600;
}

/* --- Шапка и меню ------------------------------------------------------------------- */

.top {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.top__in {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 24px 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 52px;
}
.brand {
  color: var(--ink);
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
}
.brand:hover {
  color: var(--ink);
}
.me {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.me__name {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.me__role {
  color: var(--muted);
  font-size: 13px;
}
.top__nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 12px;
}
.nav {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav::-webkit-scrollbar {
  display: none;
}
.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: var(--tap);
  padding: 0 12px;
  color: var(--ink-2);
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.nav__link:hover {
  color: var(--ink);
  background: var(--surface-2);
}
.nav__link.is-active {
  color: var(--ink);
  font-weight: 650;
  border-bottom-color: var(--accent);
}
.nav__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 24px 64px;
}

.crumbs {
  margin: 0 0 8px;
  font-size: 14px;
}
.crumbs a::before {
  content: "← ";
}

.page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 16px;
  margin-bottom: 16px;
}
.page-head > div {
  min-width: 0;
  max-width: 760px;
}
.page-head p {
  margin: 4px 0 0;
}

/* --- Плашки и сообщения ------------------------------------------------------------- */

.flash {
  margin: 0 0 16px;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid;
  font-weight: 500;
}
.flash--ok {
  background: var(--ok-soft);
  border-color: #bfe1cc;
  color: #0f5130;
}
.flash--error {
  background: var(--danger-soft);
  border-color: #f4c3be;
  color: #8a1c13;
}
.flash--warn {
  background: var(--warn-soft);
  border-color: var(--warn-line);
  color: var(--warn);
}

.notice {
  margin: 0 0 16px;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid;
}
.notice--warn {
  background: var(--warn-soft);
  border-color: var(--warn-line);
  color: #5c3c00;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
}
.notice__text {
  flex: 1 1 260px;
  white-space: pre-line;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  margin: 6px 0 0;
}
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  vertical-align: middle;
}
.chip--ok {
  background: var(--ok-soft);
  color: var(--ok);
}
.chip--warn {
  background: var(--warn-soft);
  color: var(--warn);
}
.chip--danger {
  background: var(--danger-soft);
  color: var(--danger);
}
.chip--muted {
  background: #eef0f3;
  color: var(--ink-2);
}
.chip--accent {
  background: var(--accent-soft);
  color: #1d4aa8;
}

/* --- Панели и раскладка ------------------------------------------------------------- */

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin: 0 0 16px;
  box-shadow: var(--shadow);
}
.panel--narrow {
  max-width: 520px;
  margin: 32px auto;
}
.section {
  margin: 28px 0 0;
}
.stack > * + * {
  margin-top: 12px;
}
.stack > .panel {
  margin-bottom: 0;
}

.card-layout {
  display: grid;
  gap: 20px;
  align-items: start;
}
@media (min-width: 1000px) {
  .card-layout {
    grid-template-columns: minmax(0, 1fr) 340px;
  }
}
.side .panel {
  padding: 18px;
}
.grid-2 {
  display: grid;
  gap: 0 16px;
}
@media (min-width: 640px) {
  .grid-2 {
    grid-template-columns: 1fr 1fr;
  }
}

/* --- Поля форм ----------------------------------------------------------------------- */

.field {
  margin: 0 0 14px;
  min-width: 0;
}
.field__label {
  display: block;
  margin: 0 0 6px;
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
}
.field__opt {
  font-weight: 400;
  color: var(--muted);
  font-size: 13px;
}
.field__hint {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--muted);
}
.field__error {
  margin: 6px 0 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--danger);
}
.field__static {
  margin: 0;
  min-height: var(--tap);
  display: flex;
  align-items: center;
}
.input {
  display: block;
  width: 100%;
  min-height: var(--tap);
  padding: 9px 12px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}
.input:hover {
  border-color: #aeb6c0;
}
.input:focus-visible {
  outline: 3px solid rgba(36, 87, 197, 0.3);
  outline-offset: 0;
  border-color: var(--accent);
}
.input--area {
  min-height: 72px;
  resize: vertical;
  line-height: 1.4;
}
select.input {
  padding-right: 32px;
}
.field--error .input {
  border-color: var(--danger);
}
.fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 16px;
  min-width: 0;
}
.fieldset > .field__label {
  padding: 0;
}

.checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.checks--grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
}
.check {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: var(--tap);
  padding: 8px 12px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
  user-select: none;
}
.check:hover {
  border-color: #aeb6c0;
}
.check:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.check input {
  width: 18px;
  height: 18px;
  margin: 0;
  flex: none;
  accent-color: var(--accent);
}
.check__text {
  font-weight: 500;
}
.check__note {
  display: block;
  font-weight: 400;
  font-size: 13px;
  color: var(--muted);
}
.check--disabled {
  opacity: 0.55;
  cursor: default;
}

/* --- Кнопки -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--tap);
  padding: 0 16px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover {
  background: var(--surface-2);
  color: var(--ink);
  border-color: #aeb6c0;
}
.btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.btn--primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #fff;
}
.btn--danger {
  color: var(--danger);
  border-color: #eab0aa;
}
.btn--danger:hover {
  background: var(--danger-soft);
  color: var(--danger);
  border-color: var(--danger);
}
.btn--quiet {
  border-color: transparent;
  background: transparent;
  color: var(--muted);
  padding: 0 10px;
  font-weight: 500;
}
.btn--quiet:hover {
  background: var(--surface-2);
  border-color: transparent;
  color: var(--ink);
}
.btn--wide {
  width: 100%;
}
.btn[aria-disabled="true"],
.btn:disabled {
  opacity: 0.45;
  cursor: default;
  pointer-events: none;
}
.inline-form {
  display: inline;
  margin: 0;
}
.btn-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 12px;
}
.btn-col .btn,
.btn-col .inline-form,
.btn-col .inline-form .btn {
  width: 100%;
}
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 0;
}
/* Длинная форма: «Сохранить» всегда под рукой у нижнего края экрана. Поле, в которое
   перешли клавишей Tab или стрелкой «далее» на клавиатуре телефона, браузер прокручивает
   так, чтобы оно не осталось под этой панелью (высота панели ~68 px). */
html:has(.place-form > .form-actions) {
  scroll-padding-bottom: 88px;
}
.place-form > .form-actions {
  position: sticky;
  bottom: 0;
  z-index: 2;
  padding: 12px 0;
  background: linear-gradient(to bottom, rgba(244, 245, 247, 0), var(--bg) 35%);
}

/* --- Фильтры -------------------------------------------------------------------------- */

.filters {
  display: grid;
  gap: 0 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
  padding: 14px 14px 2px;
}
.filters__q {
  grid-column: 1 / -1;
}
.filters .field {
  margin-bottom: 12px;
}
@media (min-width: 720px) {
  .filters {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 16px 16px 4px;
  }
}
@media (min-width: 1100px) {
  .filters {
    grid-template-columns: minmax(200px, 2fr) repeat(3, minmax(170px, 1fr)) auto auto;
  }
  .filters__q {
    grid-column: auto;
  }
}
.filters--compact {
  display: flex;
  flex-wrap: wrap;
  gap: 0 12px;
}
.filters--compact .field {
  flex: 0 1 260px;
}
.filters__check,
.filters__actions {
  margin: 0 0 12px;
  display: flex;
  gap: 8px;
}
.filters__check .check {
  width: 100%;
}
@media (max-width: 719px) {
  .filters .field__label {
    font-size: 13px;
    margin-bottom: 4px;
  }
  .filters select.input {
    padding-left: 10px;
    padding-right: 28px;
  }
  .filters__actions {
    grid-column: 1 / -1;
  }
  .filters__actions .btn--primary {
    flex: 1 1 auto;
  }
}
.result-count {
  margin: 16px 0 8px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* Телефон: поиск на виду, остальные фильтры — по кнопке «Фильтры» (cabinet.js). Без
   скрипта кнопки нет и фильтры раскрыты. */
.filters__more {
  display: contents;
}
@media (max-width: 640px) {
  .filters.is-folded .filters__more {
    display: none;
  }
  .filters__actions .filters__fold {
    flex: 0 0 auto;
  }
}
@media (min-width: 641px) {
  .filters__fold {
    display: none !important;
  }
}
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* Счётчик и переключатель «Список / Карта» над результатами. */
.results-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  margin: 16px 0 10px;
}
.results-bar .result-count {
  margin: 0;
}
.views {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border-radius: 10px;
  background: #e6e9ee;
}
.views__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 8px;
  color: var(--ink-2);
  font-weight: 600;
  text-decoration: none;
}
.views__item:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.6);
}
.views__item.is-active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.14);
}

/* --- Карта мест ------------------------------------------------------------------------ */

.map {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.map__legend {
  list-style: none;
  margin: 0;
  padding: 10px 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink-2);
}
.map__legend li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.map__frame {
  position: relative;
  height: clamp(420px, calc(100vh - 300px), 860px);
}
.map__canvas {
  position: absolute;
  inset: 0;
}
.map__state {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 24px;
  text-align: center;
  background: var(--surface-2);
}
.map__msg {
  margin: 0;
  max-width: 440px;
  color: var(--ink-2);
  font-weight: 500;
}
/* Сверху по центру: внизу — логотип и условия Яндекса, их закрывать нельзя. */
.map__unlock {
  position: absolute;
  left: 50%;
  top: 10px;
  z-index: 3;
  transform: translateX(-50%);
  box-shadow: 0 2px 10px rgba(16, 24, 40, 0.22);
}
.map[data-free] .map__unlock {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
@media (max-width: 640px) {
  .map__legend {
    padding: 10px 12px;
    gap: 6px 14px;
    font-size: 13px;
  }
  /* Карта — две трети экрана: выше и ниже остаётся место, за которое листается страница. */
  .map__frame {
    height: 66vh;
    height: 66svh;
    min-height: 340px;
    max-height: 560px;
  }
}

/* Метки: форма — статус (круг — на карте, квадрат — скрыто), «!» — требует проверки.
   Цвет только дублирует форму и знак. */
.pin {
  position: relative;
  display: inline-block;
  flex: none;
  width: 20px;
  height: 20px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 1px rgba(16, 24, 40, 0.28), 0 1px 3px rgba(16, 24, 40, 0.3);
}
.pin--hidden,
.pin--hidden-review {
  border-radius: 4px;
  background: #7b8490;
}
.pin--review,
.pin--published-review,
.pin--hidden-review {
  background: #f2b01e;
}
.pin--review::after,
.pin--published-review::after,
.pin--hidden-review::after {
  content: "!";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #3b2600;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
}
.map__canvas .pin {
  position: absolute;
  top: -11px;
  left: -11px;
  width: 22px;
  height: 22px;
  cursor: pointer;
}
.map-cluster {
  position: absolute;
  top: -20px;
  left: -20px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font: 700 14px/1 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 0 0 1px rgba(16, 24, 40, 0.2), 0 2px 6px rgba(16, 24, 40, 0.3);
  cursor: pointer;
}

/* Краткая карточка места в балуне карты. */
.mb {
  max-width: 300px;
  color: var(--ink);
  font: 14px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
.mb p {
  margin: 0 0 6px;
}
.mb__name {
  font-size: 15px;
  font-weight: 650;
  overflow-wrap: anywhere;
}
.mb__where {
  color: var(--muted);
  overflow-wrap: anywhere;
}
.mb .mb__chips {
  margin: 8px 0;
}
.mb__prod {
  color: var(--ink-2);
}
.mb .mb__open {
  margin: 10px 0 2px;
}

/* --- Таблицы -------------------------------------------------------------------------- */

/* Опорный блок для всего внутри таблицы: что-то абсолютное в ней не уйдёт за её рамку
   (элементы таблицы Safari опорными не считает). */
.table-wrap {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.table {
  width: 100%;
  border-collapse: collapse;
}
.table th {
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  padding: 10px 14px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  overflow-wrap: anywhere;
}
.table tbody tr:last-child td {
  border-bottom: 0;
}
.table tbody tr:hover {
  background: var(--surface-2);
}
.table td > .muted {
  display: block;
}
/* Строка со ссылкой .row-link нажимается целиком — обработчик в cabinet.js, класс is-linked
   ставит он же: без скрипта строка не нажимается, ссылка в ней работает как обычно.
   Растянутую на строку ссылку (::after с position: absolute) не делать: Safari не считает
   <tr> опорным блоком, и такой слой накрывал верх страницы (context/history.md, 2026-11-30). */
.table tbody tr.is-linked {
  cursor: pointer;
}
.row-link {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}
.row-link:hover {
  color: var(--accent);
  text-decoration: underline;
}
.t-id {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.t-id > * {
  display: block;
}
.t-kind,
.t-status {
  white-space: nowrap;
}
.t-kind .chip + .chip {
  margin-left: 6px;
}
.t-status > .muted {
  white-space: normal;
  margin-top: 4px;
}
.t-contact > * {
  display: block;
}
/* Кнопка админа в строке («Не заявка», «Вернуть в работу»): строка таблицы — не ссылка. */
.t-act {
  white-space: nowrap;
}
.t-prod {
  color: var(--ink-2);
}
.t-where {
  display: none;
}
.table--points .t-name {
  width: 26%;
}
.table--points .t-addr {
  width: 24%;
}

@media (max-width: 760px) {
  .table-wrap {
    border-radius: var(--radius-lg);
  }
  .table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
  .table,
  .table tbody {
    display: block;
  }
  .table tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
  }
  .table tbody tr:last-child {
    border-bottom: 0;
  }
  .table td {
    display: block;
    padding: 0;
    border: 0;
    grid-column: 1 / -1;
  }
  .table td:first-child {
    grid-column: 1;
    grid-row: 1;
  }
  .table td.t-status {
    grid-column: 2;
    grid-row: 1;
    text-align: right;
    white-space: normal;
  }
  .table td.t-status > .muted {
    display: none;
  }
  .t-city,
  .t-addr {
    display: none !important;
  }
  .t-where {
    display: block !important;
    color: var(--muted);
  }
  .t-id > * {
    display: inline;
    margin-right: 8px;
  }
  .t-prod {
    font-size: 14px;
  }
  .table--points .t-name,
  .table--points .t-addr {
    width: auto;
  }
}

.empty {
  padding: 40px 20px;
  text-align: center;
  background: var(--surface);
  border: 1px dashed var(--line-2);
  border-radius: var(--radius-lg);
}
.empty__title {
  margin: 0 0 6px;
  font-weight: 650;
  font-size: 16px;
}
.empty__text {
  margin: 0 auto 14px;
  max-width: 440px;
  color: var(--muted);
}

.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 16px 0;
}
.pager__info {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* --- Карточка -------------------------------------------------------------------------- */

.place-form .panel:last-of-type {
  margin-bottom: 16px;
}
.geo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin: 12px 0 16px;
}
.geo__result {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
}
.geo__result--ok {
  color: var(--ok);
}
.geo__result--warn {
  color: var(--warn);
}
.geo__result--error {
  color: var(--danger);
}
.meta {
  display: grid;
  grid-template-columns: minmax(96px, max-content) minmax(0, 1fr);
  gap: 8px 14px;
  margin: 0;
  font-variant-numeric: tabular-nums;
}
.meta dt {
  color: var(--muted);
}
.meta dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.meta--wide {
  grid-template-columns: minmax(120px, max-content) minmax(0, 1fr);
}
.plain-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.plain-list li + li {
  margin-top: 8px;
}
.links a {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
}
.pending {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.pending .h3 {
  margin-top: 0;
}
.pending .small {
  display: block;
}
.quote {
  margin: 0;
  padding-left: 10px;
  border-left: 3px solid var(--line-2);
  color: var(--ink-2);
  white-space: pre-line;
}

/* --- Строки-формы: продукты и пользователи ------------------------------------------- */

.row-form__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin: 0 0 12px;
}
.row-form__head .small {
  flex-basis: 100%;
  font-variant-numeric: tabular-nums;
}
.row-form__title {
  font-weight: 650;
  font-size: 16px;
}
.row-form__fields {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0 12px;
}
.row-form__fields > .field {
  flex: 1 1 200px;
}
.row-form__check,
.row-form__save {
  margin: 0 0 14px;
  flex: 0 0 auto;
}
.row-form--off {
  background: var(--surface-2);
}

.details > summary {
  cursor: pointer;
  list-style: none;
  min-height: var(--tap);
  margin: 0;
}
.details > summary::-webkit-details-marker {
  display: none;
}
.details > summary::before {
  content: "▸";
  color: var(--muted);
  font-size: 13px;
}
.details[open] > summary::before {
  content: "▾";
}

/* --- Вход ------------------------------------------------------------------------------ */

.login .h1 {
  margin-bottom: 12px;
}
.steps {
  margin: 12px 0 0;
  padding-left: 22px;
}
.steps li + li {
  margin-top: 8px;
}
.login form {
  margin: 16px 0 12px;
}

/* --- Телефон --------------------------------------------------------------------------- */

@media (max-width: 640px) {
  .top__in {
    padding: 8px 16px 2px;
  }
  .me__role {
    display: none;
  }
  .top__nav {
    padding: 0 4px;
  }
  .main {
    padding: 16px 16px 48px;
  }
  .h1 {
    font-size: 21px;
  }
  .panel {
    padding: 16px;
  }
  .panel--narrow {
    margin: 16px auto;
  }
  .page-head > .btn {
    width: 100%;
  }
  .form-actions .btn {
    flex: 1 1 auto;
  }
  .row-form__save,
  .row-form__save .btn {
    width: 100%;
  }
}
