/* Админка Alow: шрифты и основа страницы, затем вид из макета «Админка Alow» как есть, в конце
   то, чего в макете нет (вход, всплывающие сообщения, окна поверх страницы, пустые места). */

@font-face { font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 100 900; src: url("/assets/fonts/inter-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 100 900; src: url("/assets/fonts/inter-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-display: swap; font-weight: 400; src: url("/assets/fonts/plex-mono-latin-400.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-display: swap; font-weight: 400; src: url("/assets/fonts/plex-mono-cyrillic-400.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-display: swap; font-weight: 500; src: url("/assets/fonts/plex-mono-latin-500.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-display: swap; font-weight: 500; src: url("/assets/fonts/plex-mono-cyrillic-500.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

html, body { margin: 0; min-height: 100%; background: #141414; color-scheme: dark; }
body { min-height: 100vh; }
#app { min-height: 100vh; }

/* ── из макета ─────────────────────────────────────────────────────────────── */

/*
  Админка Alow: общий вид всех страниц макета. Значения сняты с токенов тёмной темы приложения
  (packages/design-tokens/tokens.css): графит без оттенка, рамки 1px внутренней тенью, светлый
  нейтральный акцент, радиусы 7 / 11 / 14, пиксель как подпись.

  Сетка: сайдбар 248, рабочая область с полями 32 и 12 колонками по 72 с промежутком 24 при
  ширине 1440 (колонки растягиваются на широком экране). Вертикальный шаг 8: текст строкой 20 или 24,
  заголовок страницы 32, крупная цифра 40, строки таблиц 40, контролы 32.

  Цвет только по смыслу: мятный «здорово», глина «ожидание и обходной путь» (очередь, запасной
  поставщик, близко к лимиту), винный «сбой и блокировка», васильковый «сведения», сиреневый только
  «Ультра». Всё остальное графит: глаз идёт к цвету, потому что его мало.
*/

.adm {
  --bg: #141414;
  --chrome: #171717;
  --s1: #1c1c1c;
  --s2: #1f1f1f;
  --s3: #252525;
  --sel: #222222;
  --line-subtle: #232323;
  --line: #303030;
  --line-strong: #444444;
  --field-line: #858585;
  --fg: #efefef;
  --fg2: #a6a6a6;
  --muted: #8c8c8c;
  --disabled: #5c5c5c;
  --accent: #d4d4d4;
  --ok: #86d1b0;
  --ok-soft: #162622;
  --ok-line: #1e8f6f;
  --wait: #cbb099;
  --wait-soft: #33291f;
  --wait-line: #8a7460;
  --bad: #d67a92;
  --bad-soft: #351922;
  --bad-line: #7a2540;
  --bad-action: #b9506a;
  --info: #a3c8ec;
  --info-line: #5988b7;
  --ultra: #b4a2f6;
  --cream: #f6f1e7;
  --card: linear-gradient(117deg, #1c1c1c, #1a1a1a);
  --shadow-pop: 0 18px 48px rgb(0 0 0 / 0.53), 0 2px 6px rgb(0 0 0 / 0.3),
    inset 0 1px 0 rgb(255 255 255 / 0.04);
  --shadow-dialog: 0 28px 80px rgb(0 0 0 / 0.53), 0 2px 8px rgb(0 0 0 / 0.3),
    inset 0 1px 0 rgb(255 255 255 / 0.04);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ui: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  container-type: inline-size;
  min-height: 100%;
  background: var(--bg);
  color: var(--fg);
  font: 400 13px/20px var(--ui);
  -webkit-font-smoothing: antialiased;
}
.adm *,
.adm *::before,
.adm *::after {
  box-sizing: border-box;
}
.adm a {
  color: inherit;
}
.adm :focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.adm .ic {
  width: 16px;
  height: 16px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.adm .ic.sm {
  width: 14px;
  height: 14px;
}
.adm .num {
  font-variant-numeric: tabular-nums;
}
.adm .mono {
  font-family: var(--mono);
  font-size: 12px;
}
/* Моноширинный кегль 12 внутри строки 13–14 по базовой линии раздувал строку на доли пикселя. */
.adm span.mono {
  vertical-align: top;
}
.adm .fg2 {
  color: var(--fg2);
}
.adm .muted {
  color: var(--muted);
}
.adm .t-ok {
  color: var(--ok);
}
.adm .t-wait {
  color: var(--wait);
}
.adm .t-bad {
  color: var(--bad);
}
.adm .t-info {
  color: var(--info);
}
.adm .t-ultra {
  color: var(--ultra);
}

/* шапка */
.adm .atop {
  height: 56px;
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  align-items: center;
  background: var(--chrome);
  box-shadow: inset 0 -1px 0 var(--line);
}
.adm .brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 24px;
  color: var(--cream);
  text-decoration: none;
}
.adm .brand svg {
  display: block;
  height: 21px;
  width: auto;
}
.adm .brand span {
  color: var(--fg2);
  font-size: 13px;
  padding-left: 12px;
  box-shadow: inset 1px 0 0 var(--line);
}
.adm .atop-r {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 32px;
  min-width: 0;
}
.adm .search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 360px;
  max-width: 100%;
  height: 32px;
  padding: 0 10px;
  border-radius: 7px;
  background: var(--bg);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--muted);
}
.adm .search input {
  flex: 1;
  min-width: 0;
  height: 30px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--fg);
  font: 400 13px var(--ui);
}
.adm .search input::placeholder {
  color: var(--muted);
}
.adm .live {
  display: inline-grid;
  grid-template-columns: repeat(2, 3px);
  gap: 1px;
  flex: none;
}
.adm .live i {
  width: 3px;
  height: 3px;
  background: var(--ok);
}
.adm .live i:nth-child(2),
.adm .live i:nth-child(3) {
  opacity: 0.45;
}
.adm .onair {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  color: var(--fg2);
  font-size: 12px;
  white-space: nowrap;
}
.adm .ava {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  background: var(--bg);
  box-shadow: inset 0 0 0 1px var(--line);
  display: grid;
  place-items: center;
  flex: none;
}
.adm .ava svg {
  width: 24px;
  height: 21px;
}

/* каркас */
.adm .abody {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  align-items: stretch;
}
.adm .aside {
  background: var(--chrome);
  box-shadow: inset -1px 0 0 var(--line);
  padding: 24px 16px 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}
.adm .group {
  display: flex;
  flex-direction: column;
}
.adm .group-cap {
  height: 24px;
  padding: 0 12px;
  font-size: 12px;
  line-height: 16px;
  color: var(--muted);
}
.adm .nav a {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 32px;
  padding: 0 12px;
  border-radius: 7px;
  color: var(--fg2);
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.12s var(--ease), color 0.12s var(--ease);
}
.adm .nav a:hover {
  background: var(--s1);
  color: var(--fg);
}
.adm .nav a[aria-current="page"] {
  background: var(--sel);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--fg);
  font-weight: 570;
}
.adm .nav a .cnt {
  margin-left: auto;
  font: 12px/16px var(--mono);
  color: var(--muted);
}
.adm .nav a .cnt.t-wait {
  color: var(--wait);
}
.adm .nav .rip {
  position: absolute;
  left: 0;
  top: 0;
  width: 224px;
  height: 32px;
  z-index: -1;
  fill: #b8b8b8;
  fill-opacity: 0.19;
}
.adm .envbox {
  margin-top: auto;
  padding: 12px;
  border-radius: 11px;
  box-shadow: inset 0 0 0 1px var(--line);
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  line-height: 20px;
  color: var(--fg2);
}
.adm .envbox .row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.adm .amain {
  min-width: 0;
  padding: 32px 32px 96px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* сетка рабочей области */
.adm .g12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}
.adm .c3 {
  grid-column: span 3;
  min-width: 0;
}
.adm .c4 {
  grid-column: span 4;
  min-width: 0;
}
.adm .c5 {
  grid-column: span 5;
  min-width: 0;
}
.adm .c6 {
  grid-column: span 6;
  min-width: 0;
}
.adm .c7 {
  grid-column: span 7;
  min-width: 0;
}
.adm .c8 {
  grid-column: span 8;
  min-width: 0;
}
.adm .c9 {
  grid-column: span 9;
  min-width: 0;
}
.adm .c12 {
  grid-column: span 12;
  min-width: 0;
}
.adm .stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.adm .stack > :last-child {
  flex: 1;
}

/* заголовок страницы */
.adm .head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.adm .crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 24px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
}
.adm .crumbs a {
  text-decoration: none;
}
.adm .crumbs a:hover {
  color: var(--fg);
}
.adm .head h1 {
  margin: 0;
  font-size: 24px;
  line-height: 32px;
  font-weight: 650;
  letter-spacing: -0.038em;
}
.adm .head p {
  margin: 4px 0 0;
  color: var(--fg2);
  font-size: 14px;
  line-height: 20px;
}
.adm .head .tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* карточки */
.adm .card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--line);
  border-radius: 14px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}
.adm .card.flush {
  padding: 24px 0 8px;
}
.adm .card.flush > .card-head,
.adm .card.flush > .pad {
  padding: 0 24px;
}
.adm .card h2 {
  margin: 0;
  font-size: 16px;
  line-height: 24px;
  font-weight: 650;
  letter-spacing: -0.018em;
}
.adm .card .sub {
  margin: 0;
  color: var(--fg2);
  font-size: 13px;
  line-height: 24px;
}
.adm .card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.adm .card-head > div:first-child {
  flex: 1 1 200px;
  min-width: 0;
}
.adm .kpi {
  gap: 8px;
}
.adm .kpi .label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--fg2);
}
.adm .kpi .val {
  font-size: 32px;
  line-height: 40px;
  font-weight: 680;
  letter-spacing: -0.055em;
  font-variant-numeric: tabular-nums;
}
.adm .kpi .val small {
  font-size: 16px;
  line-height: 16px;
  letter-spacing: -0.018em;
  font-weight: 600;
  color: var(--fg2);
  margin-left: 4px;
}
.adm .kpi .meta {
  font-size: 12px;
  line-height: 20px;
  color: var(--muted);
}
.adm .kpi.warn {
  box-shadow: inset 0 0 0 1px var(--wait-line);
}

/* контролы */
.adm .btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 32px;
  padding: 0 12px;
  border-radius: 7px;
  border: 0;
  font: 500 13px/1 var(--ui);
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s var(--ease), box-shadow 0.15s var(--ease),
    color 0.15s var(--ease);
}
.adm .btn.sm {
  height: 24px;
  padding: 0 8px;
  font-size: 12px;
  gap: 6px;
}
.adm .btn.primary {
  background: var(--accent);
  color: var(--bg);
}
.adm .btn.primary:hover {
  background: #bcbcbc;
}
.adm .btn.secondary {
  background: var(--s1);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--fg);
}
.adm .btn.secondary:hover {
  background: var(--s3);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.adm .btn.ghost {
  background: transparent;
  color: var(--fg2);
}
.adm .btn.ghost:hover {
  background: var(--s3);
  color: var(--fg);
}
.adm .btn.danger {
  background: var(--s1);
  box-shadow: inset 0 0 0 1px var(--bad-line);
  color: var(--bad-action);
}
.adm .btn.danger:hover {
  background: #2b1d22;
}
.adm .btn.icon {
  width: 32px;
  padding: 0;
}
.adm .btn[disabled] {
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--disabled);
  cursor: default;
}
.adm .seg {
  display: inline-flex;
  gap: 2px;
  padding: 2px;
  height: 32px;
  background: var(--s1);
  box-shadow: inset 0 0 0 1px var(--line);
  border-radius: 9px;
}
.adm .seg button {
  height: 28px;
  padding: 0 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--fg2);
  font: 500 12px var(--ui);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.adm .seg button .mono {
  color: var(--muted);
}
.adm .seg button[aria-pressed="true"] {
  background: var(--s3);
  color: var(--fg);
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.28), inset 0 1px 0 rgb(255 255 255 / 0.03);
}
.adm .select {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 10px 0 12px;
  border: 0;
  border-radius: 7px;
  background: var(--s1);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--fg);
  font: 400 13px var(--ui);
  cursor: pointer;
  white-space: nowrap;
}
.adm .select .k {
  color: var(--muted);
}
.adm .select .ic {
  color: var(--muted);
}
.adm .input {
  height: 32px;
  width: 100%;
  min-width: 0;
  padding: 0 10px;
  border-radius: 7px;
  border: 0;
  box-shadow: inset 0 0 0 1px var(--field-line);
  background: var(--bg);
  color: var(--fg);
  font: 400 13px var(--ui);
}
.adm .input:focus {
  outline: none;
  box-shadow: inset 0 0 0 1px var(--accent), 0 0 0 3px rgb(212 212 212 / 0.14);
}
.adm .input::placeholder {
  color: var(--muted);
}
.adm .input.num {
  text-align: right;
  font-family: var(--mono);
  font-size: 12px;
}
.adm .field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.adm .field label {
  font-size: 12px;
  line-height: 20px;
  color: var(--fg2);
}
.adm .switch {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  width: 32px;
  height: 18px;
  margin: 0;
  flex: none;
  border-radius: 9px;
  background: var(--s3);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  cursor: pointer;
}
.adm .switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 12px;
  height: 12px;
  border-radius: 6px;
  background: var(--muted);
  transition: translate 0.15s var(--ease);
}
.adm .switch:checked {
  background: var(--accent);
  box-shadow: none;
}
.adm .switch:checked::after {
  translate: 14px 0;
  background: var(--bg);
}

/* метки */
.adm .badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 20px;
  padding: 0 6px;
  border-radius: 4px;
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--fg2);
  font: 500 11px/1 var(--ui);
  white-space: nowrap;
}
.adm .badge.ok {
  color: var(--ok);
  background: var(--ok-soft);
  box-shadow: inset 0 0 0 1px var(--ok-line);
}
.adm .badge.wait {
  color: var(--wait);
  background: var(--wait-soft);
  box-shadow: inset 0 0 0 1px var(--wait-line);
}
.adm .badge.bad {
  color: var(--bad);
  background: var(--bad-soft);
  box-shadow: inset 0 0 0 1px var(--bad-line);
}
.adm .badge.admin {
  color: var(--fg);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.adm .badge.prov {
  font-family: var(--mono);
  min-width: 20px;
  justify-content: center;
}
.adm .dot {
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: currentColor;
  flex: none;
}
.adm .state {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

/* таблицы */
.adm .tbox {
  overflow-x: auto;
  min-width: 0;
  scrollbar-width: none;
}
.adm .tbox::-webkit-scrollbar {
  display: none;
}
.adm table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
}
.adm th {
  height: 32px;
  text-align: left;
  vertical-align: top;
  font-weight: 400;
  font-size: 12px;
  line-height: 16px;
  color: var(--muted);
  padding: 0 16px 0 0;
  white-space: nowrap;
}
.adm td {
  height: 40px;
  padding: 0 16px 0 0;
  line-height: 20px;
  box-shadow: inset 0 1px 0 var(--line-subtle);
  white-space: nowrap;
  vertical-align: middle;
}
.adm th:first-child,
.adm td:first-child {
  padding-left: 24px;
}
.adm th:last-child,
.adm td:last-child {
  padding-right: 24px;
}
.adm th.r,
.adm td.r {
  text-align: right;
}
.adm tr.sel td {
  background: var(--sel);
}
.adm td .who {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.adm td .who b {
  font-weight: 500;
}
.adm .mini {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.adm .mini .bar {
  width: 72px;
  height: 4px;
  background: var(--s3);
}
.adm .mini .bar i {
  display: block;
  height: 100%;
  background: var(--fg2);
}
.adm .mini .bar.wait i {
  background: var(--wait);
}
.adm .mini .bar.bad i {
  background: var(--bad);
}
.adm .moth-tile {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  background: var(--bg);
  box-shadow: inset 0 0 0 1px var(--line);
  display: grid;
  place-items: center;
  flex: none;
}
.adm .moth-tile svg {
  width: 16px;
  height: 14px;
}
.adm .pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 40px;
  padding: 8px 24px 0;
  box-shadow: inset 0 1px 0 var(--line-subtle);
  color: var(--muted);
  font-size: 12px;
}

/* пиксельные графики и полосы */
.adm .cells {
  display: flex;
  gap: 2px;
  height: 24px;
  min-width: 0;
  flex: 1;
}
.adm .cells i {
  flex: 1;
  min-width: 2px;
  border-radius: 1px;
  background: #3a3a3a;
}
.adm .cells i.w {
  background: var(--wait);
}
.adm .cells i.b {
  background: var(--bad);
}
.adm .chart {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 160px;
  padding-left: 40px;
}
.adm .chart .gl {
  position: absolute;
  left: 40px;
  right: 0;
  height: 1px;
  background: var(--line-subtle);
}
.adm .chart .gl span {
  position: absolute;
  right: calc(100% + 8px);
  top: -8px;
  font: 11px/16px var(--mono);
  color: var(--muted);
  white-space: nowrap;
}
.adm .chart .col {
  position: relative;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column-reverse;
  gap: 2px;
}
.adm .chart .col i {
  height: 4px;
  background: #8c8c8c;
}
.adm .chart .col i.top {
  background: #d4d4d4;
}
.adm .chart .col i.b {
  background: var(--wait);
}
.adm .chart .col i.cap {
  background: var(--bad);
}
.adm .chart .col.now i {
  background: #efefef;
}
.adm .chart .col.now i.b {
  background: var(--wait);
}
.adm .axis {
  display: flex;
  justify-content: space-between;
  padding-left: 40px;
  font: 11px/16px var(--mono);
  color: var(--muted);
}
.adm .legend {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  line-height: 24px;
  color: var(--fg2);
}
.adm .legend .sw {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 1px;
  margin-right: 8px;
  vertical-align: 0;
}
.adm .hbars {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.adm .hbars .it {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) 72px;
  align-items: center;
  gap: 16px;
  height: 24px;
}
.adm .hbars.wide .it {
  grid-template-columns: 176px minmax(0, 1fr) 72px;
}
.adm .hbars .track {
  height: 8px;
  background: var(--s3);
}
.adm .hbars .track i {
  display: block;
  height: 100%;
  background: #8c8c8c;
}
.adm .hbars .it.wait .track i {
  background: var(--wait);
}
.adm .hbars .it.lead .track i {
  background: var(--accent);
}
.adm .meter {
  display: flex;
  gap: 2px;
}
.adm .meter i {
  flex: 1;
  height: 8px;
  background: var(--s3);
}
.adm .meter i.on {
  background: var(--accent);
}
.adm .meter i.w {
  background: var(--wait);
}

/* строки состояния сервисов: название, состояние, доступность, клетки по 15 минут */
.adm .srow {
  display: grid;
  grid-template-columns: 232px 136px 72px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  height: 40px;
  box-shadow: inset 0 1px 0 var(--line-subtle);
}
.adm .srow:first-child {
  box-shadow: none;
}
.adm .srow .name {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.adm .srow .name span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.adm .srow .name .mono {
  color: var(--muted);
}
.adm .saxis {
  display: grid;
  grid-template-columns: 232px 136px 72px minmax(0, 1fr);
  gap: 16px;
  font: 11px/16px var(--mono);
  color: var(--muted);
}
.adm .saxis .ticks {
  grid-column: 4;
  display: flex;
  justify-content: space-between;
}
@container (max-width: 720px) {
  .adm .srow {
    grid-template-columns: minmax(0, 1fr) auto;
    height: auto;
    padding: 12px 0;
    gap: 12px 16px;
  }
  .adm .srow .up {
    display: none;
  }
  /* 96 клеток по 2 px с промежутком 2 не влезали в 326: промежуток 1. */
  .adm .srow .cells {
    grid-column: 1 / -1;
    gap: 1px;
  }
  .adm .saxis {
    grid-template-columns: minmax(0, 1fr);
  }
  .adm .saxis .ticks {
    grid-column: 1;
  }
}

/* строки «ключ — значение» */
.adm .kv {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 40px;
  box-shadow: inset 0 1px 0 var(--line-subtle);
}
.adm .kv:first-child {
  box-shadow: none;
}
.adm .kv > span:first-child {
  color: var(--fg2);
}
.adm .kv .v {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

/* схема маршрута */
.adm .route {
  display: grid;
  grid-template-columns: 232px minmax(48px, 1fr) 232px minmax(72px, 1fr) 280px;
  align-items: center;
  min-height: 216px;
}
.adm .node {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  border-radius: 11px;
  background: var(--s1);
  box-shadow: inset 0 0 0 1px var(--line);
  min-height: 96px;
}
.adm .node b {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 14px;
  line-height: 20px;
}
.adm .node span {
  font-size: 12px;
  line-height: 20px;
  color: var(--fg2);
}
.adm .node.hub {
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.adm .link {
  position: relative;
  height: 216px;
}
.adm .link .h {
  position: absolute;
  left: 0;
  right: 0;
  top: 108px;
  height: 1px;
  background: var(--line-strong);
}
.adm .link .lbl {
  position: absolute;
  left: 0;
  right: 0;
  top: 80px;
  text-align: center;
  font: 12px/20px var(--mono);
  color: var(--fg2);
}
.adm .fork {
  position: relative;
  height: 216px;
}
.adm .fork i {
  position: absolute;
  display: block;
  background: var(--line-strong);
}
.adm .fork .lbl {
  position: absolute;
  right: 0;
  width: 50%;
  text-align: center;
  font: 12px/20px var(--mono);
}
.adm .providers {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* фильтры над журналом */
.adm .filters {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.adm .filters .search {
  width: 280px;
  background: var(--s1);
}
.adm .filters .select.on {
  box-shadow: inset 0 0 0 1px var(--line-strong);
  background: var(--s3);
}
.adm .filters .spacer {
  flex: 1;
}

/* путь хода по поставщикам */
.adm .path {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
}
.adm .path .ic {
  width: 12px;
  height: 12px;
}

/* подпись раздела внутри карточки */
.adm .cap {
  height: 24px;
  font-size: 12px;
  line-height: 24px;
  color: var(--muted);
}
.adm .sect {
  display: flex;
  flex-direction: column;
}

/* шаги хода по времени */
.adm .steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
}
.adm .steps li {
  display: grid;
  grid-template-columns: 64px 8px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  padding: 8px 0;
  line-height: 24px;
  box-shadow: inset 0 1px 0 var(--line-subtle);
}
.adm .steps li:first-child {
  box-shadow: none;
}
.adm .steps .t {
  font: 12px/24px var(--mono);
  color: var(--muted);
  text-align: right;
}
.adm .steps .mk {
  width: 8px;
  height: 8px;
  margin-top: 8px;
  border-radius: 1px;
  background: var(--line-strong);
}
.adm .steps li.wait .mk {
  background: var(--wait);
}
.adm .steps li.ok .mk {
  background: var(--ok);
}
.adm .steps li.bad .mk {
  background: var(--bad);
}
.adm .steps li span:last-child {
  min-width: 0;
}

/* карточка человека */
.adm .pid {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}
.adm .pid .tile {
  width: 56px;
  height: 56px;
  border-radius: 11px;
  background: var(--bg);
  box-shadow: inset 0 0 0 1px var(--line);
  display: grid;
  place-items: center;
  flex: none;
}
.adm .pid .tile svg {
  width: 32px;
  height: 28px;
}
.adm .notice {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 16px 24px;
  border-radius: 14px;
  background: var(--bad-soft);
  box-shadow: inset 0 0 0 1px var(--bad-line);
}
.adm .notice > .ic {
  color: var(--bad);
}
.adm .notice .txt {
  flex: 1 1 420px;
  min-width: 0;
  line-height: 20px;
}
.adm .notice .txt b {
  font-weight: 600;
}
.adm .notice .txt span {
  color: var(--fg2);
}
.adm .big {
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
}
.adm .big .val {
  font-size: 32px;
  line-height: 40px;
  font-weight: 680;
  letter-spacing: -0.055em;
  font-variant-numeric: tabular-nums;
}
.adm .big .meta {
  color: var(--fg2);
}
.adm .meter i.b {
  background: var(--bad);
}
.adm .chart .col.fut::before {
  content: "";
  display: block;
  height: 4px;
  background: var(--s3);
}

/* правка весов */
.adm .input.dirty {
  box-shadow: inset 0 0 0 1px var(--accent);
  background: var(--s3);
}
.adm .fgrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.adm .fgrid .wide {
  grid-column: 1 / -1;
}
.adm .result {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  border-radius: 11px;
  background: var(--s1);
  box-shadow: inset 0 0 0 1px var(--line);
}
.adm .formula {
  font: 12px/20px var(--mono);
  color: var(--muted);
}
.adm .hbars .track.mk {
  position: relative;
}
.adm .hbars .track.mk b {
  position: absolute;
  top: -8px;
  bottom: -8px;
  width: 1px;
  background: var(--fg2);
}
.adm .hbars .it.bad .track i {
  background: var(--bad);
}

/* выбор в окне: переключатель с пояснением */
/* С пояснением в одну строку выходило 68: добираем до шага. */
.adm .opt {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 72px;
  padding: 12px 16px;
  border-radius: 11px;
  box-shadow: inset 0 0 0 1px var(--line);
  cursor: pointer;
}
.adm .opt .switch {
  margin-top: 3px;
}
.adm .opt b {
  display: block;
  font-weight: 500;
  line-height: 24px;
}
.adm .opt span {
  display: block;
  color: var(--fg2);
  font-size: 12px;
  line-height: 20px;
}
.adm .conseq li.info .ic {
  color: var(--info);
}

/* метрики: разница к прошлому периоду */
.adm .delta {
  font-size: 12px;
  line-height: 20px;
  font-variant-numeric: tabular-nums;
}
.adm .delta.up {
  color: var(--ok);
}
.adm .delta.down {
  color: var(--bad);
}
.adm .sect-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
}
.adm .sect-title h2 {
  margin: 0;
  font-size: 18px;
  line-height: 24px;
  font-weight: 650;
  letter-spacing: -0.024em;
}
.adm .sect-title p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 20px;
}

/* водопад выручки */
.adm .wf {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 16px;
}
.adm .wf .col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.adm .wf .area {
  position: relative;
  height: 160px;
  box-shadow: inset 0 -1px 0 var(--line);
}
.adm .wf .area i {
  position: absolute;
  left: 0;
  right: 0;
  border-radius: 2px;
}
.adm .wf .col span {
  font-size: 12px;
  line-height: 20px;
  color: var(--fg2);
}
.adm .wf .col .mono {
  color: var(--muted);
}

/* воронка */
.adm .funnel .st {
  display: grid;
  grid-template-columns: 208px minmax(0, 1fr) 48px 136px;
  align-items: center;
  gap: 16px;
  height: 40px;
  box-shadow: inset 0 1px 0 var(--line-subtle);
}
.adm .funnel .st:first-child {
  box-shadow: none;
}
.adm .funnel .fb {
  height: 16px;
  background: var(--s3);
}
.adm .funnel .fb i {
  display: block;
  height: 100%;
  background: #8c8c8c;
}
.adm .funnel .st.first .fb i {
  background: var(--accent);
}
.adm .funnel .conv {
  font-size: 12px;
  color: var(--fg2);
  white-space: nowrap;
}

/* когорты: клетка тем светлее, чем больше людей вернулось */
.adm table.coh td.v {
  padding: 0 2px;
  text-align: center;
}
.adm table.coh th.v {
  text-align: center;
  padding: 0 2px;
}
.adm table.coh .cc {
  display: grid;
  place-items: center;
  height: 32px;
  min-width: 48px;
  border-radius: 4px;
  font: 12px/20px var(--mono);
}

/* лента выводов */
.adm .feed .it .ic.t-ultra {
  color: var(--ultra);
}

/* пикер моделей: строка модели в админке */
.adm .shelf {
  display: flex;
  align-items: baseline;
  gap: 8px;
  height: 32px;
  padding: 8px 24px 0;
  font-size: 12px;
  line-height: 24px;
  color: var(--muted);
  box-shadow: inset 0 1px 0 var(--line-subtle);
}
.adm .shelf b {
  font-weight: 500;
  color: var(--fg2);
}
.adm .mrow {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr) 88px 136px 32px 32px;
  align-items: center;
  gap: 12px;
  height: 56px;
  padding: 0 24px;
  box-shadow: inset 0 1px 0 var(--line-subtle);
}
.adm .mrow.sel {
  background: var(--sel);
}
.adm .mrow.off .name,
.adm .mrow.off .hint {
  opacity: 0.45;
}
.adm .mrow .grip {
  width: 16px;
  height: 16px;
  color: var(--disabled);
  cursor: grab;
}
.adm .mrow .name {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  white-space: nowrap;
}
.adm .mrow .name .eng {
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
}
.adm .mrow .hint {
  font-size: 12px;
  line-height: 20px;
  color: var(--fg2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.adm .chipc {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 6px;
  border-radius: 4px;
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--fg2);
  font: 500 11px/1 var(--ui);
  white-space: nowrap;
}
.adm .chipc.draft {
  box-shadow: inset 0 0 0 1px var(--accent);
  color: var(--fg);
}
.adm .badge.draft {
  color: var(--fg);
  box-shadow: inset 0 0 0 1px var(--accent);
}
.adm .empty {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 56px;
  padding: 0 24px;
  color: var(--muted);
  box-shadow: inset 0 1px 0 var(--line-subtle);
}

/* пикер глазами человека: тот же вид, что меню в приложении */
.adm .pk {
  display: flex;
  flex-direction: column;
  padding: 4px;
  border-radius: 11px;
  background: var(--s2);
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow-pop);
}
.adm .pk .g {
  height: 24px;
  padding: 4px 8px 0;
  font-size: 12px;
  line-height: 20px;
  color: var(--muted);
}
.adm .pk .o {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr) auto;
  align-items: start;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 7px;
}
.adm .pk .o.on {
  background: var(--s3);
}
.adm .pk .o .ic {
  margin-top: 2px;
}
.adm .pk .o b {
  display: block;
  font-weight: 500;
  line-height: 20px;
}
.adm .pk .o .h {
  display: block;
  font-size: 12px;
  line-height: 16px;
  color: var(--muted);
}
.adm .pk .o .tags {
  display: flex;
  gap: 4px;
  margin-top: 2px;
}

/* раскатка выпуска по ступеням */
.adm .roll {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
}
.adm .roll > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.adm .roll i {
  display: block;
  height: 8px;
  background: var(--s3);
}
.adm .roll .done i {
  background: var(--accent);
}
.adm .roll .now i {
  background: var(--wait);
}
.adm .roll b {
  font-weight: 500;
  line-height: 20px;
}
.adm .roll span {
  font-size: 12px;
  line-height: 20px;
  color: var(--muted);
}
.adm .roll .now span {
  color: var(--wait);
}
.adm .trio {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.adm .trio > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 16px;
  border-radius: 11px;
  background: var(--s1);
  box-shadow: inset 0 0 0 1px var(--line);
}
.adm .trio b {
  font-size: 20px;
  line-height: 24px;
  font-weight: 650;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.adm .trio span {
  font-size: 12px;
  line-height: 20px;
  color: var(--fg2);
}
.adm .notes {
  margin: 0;
  padding: 0 0 0 16px;
  display: flex;
  flex-direction: column;
  gap: 0;
  line-height: 24px;
  color: var(--fg2);
}

/* журнал действий: строка в две линии */
.adm tr.two td {
  height: 56px;
}
.adm .act b {
  display: block;
  font-weight: 500;
  line-height: 20px;
}
.adm .act span {
  display: block;
  font-size: 12px;
  line-height: 20px;
  color: var(--muted);
}
.adm .diff {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 12px/20px var(--mono);
}
.adm .diff s {
  color: var(--muted);
  text-decoration: none;
}
.adm .diff .ic {
  width: 12px;
  height: 12px;
  color: var(--muted);
}

/* лента внимания */
.adm .feed {
  display: flex;
  flex-direction: column;
}
.adm .feed .it {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 4px 12px;
  padding: 12px 0;
  box-shadow: inset 0 1px 0 var(--line-subtle);
}
.adm .feed .it:first-child {
  box-shadow: none;
  padding-top: 0;
}
.adm .feed .it:last-child {
  padding-bottom: 0;
}
.adm .feed .it .ic {
  margin-top: 2px;
}
.adm .feed .it b {
  font-weight: 500;
}
.adm .feed .it .when {
  grid-column: 2;
  font-size: 12px;
  line-height: 20px;
  color: var(--muted);
}

/* разделы 23.11: платежи, доступ, обращения, объявления, функции, защита, команда */
.adm .notice.wait {
  background: var(--wait-soft);
  box-shadow: inset 0 0 0 1px var(--wait-line);
}
.adm .notice.wait > .ic {
  color: var(--wait);
}

/* правила раскатки функции: сверху вниз, решает первое совпавшее */
.adm .rules {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
}
.adm .rules li {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  height: 40px;
  box-shadow: inset 0 1px 0 var(--line-subtle);
}
.adm .rules li:first-child {
  box-shadow: none;
}
.adm .rules .n {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 4px;
  box-shadow: inset 0 0 0 1px var(--line);
  font: 500 11px/1 var(--mono);
  color: var(--muted);
}
.adm .rules .if {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.adm .rules .then {
  color: var(--fg2);
  white-space: nowrap;
}

/* очередь обращений: две строки и время со статусом справа */
.adm .tk {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px 12px;
  height: 64px;
  padding: 0 24px;
  box-shadow: inset 0 1px 0 var(--line-subtle);
  text-decoration: none;
}
.adm .tk.sel {
  background: var(--sel);
}
.adm .tk .moth-tile {
  grid-row: span 2;
}
.adm .tk b {
  font-weight: 500;
  line-height: 20px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.adm .tk .meta {
  grid-column: 2;
  font-size: 12px;
  line-height: 20px;
  color: var(--muted);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.adm .tk .when {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
  font-size: 12px;
  line-height: 20px;
  color: var(--muted);
}
.adm .tk .st {
  grid-column: 3;
  grid-row: 2;
  justify-self: end;
}

/* переписка: строка текста 24, чтобы письмо любой длины вставало на шаг 8 */
.adm .thread {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.adm .msg {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 16px;
  border-radius: 11px;
  box-shadow: inset 0 0 0 1px var(--line);
}
.adm .msg.mine {
  background: var(--s1);
}
.adm .msg .by {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  line-height: 20px;
  color: var(--muted);
}
.adm .msg .by b {
  color: var(--fg);
  font-weight: 500;
}
.adm .msg p {
  margin: 0;
  line-height: 24px;
}
.adm .area {
  display: block;
  width: 100%;
  height: 112px;
  padding: 8px 10px;
  border: 0;
  border-radius: 7px;
  resize: none;
  background: var(--bg);
  box-shadow: inset 0 0 0 1px var(--field-line);
  color: var(--fg);
  font: 400 13px/24px var(--ui);
}
.adm .chips {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* предпросмотр окна приложения с полосой объявления */
.adm .appwin {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0 0 16px;
  border-radius: 11px;
  overflow: hidden;
  background: var(--bg);
  box-shadow: inset 0 0 0 1px var(--line);
}
.adm .appwin .bar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 12px;
  background: var(--chrome);
  box-shadow: inset 0 -1px 0 var(--line);
  color: var(--muted);
  font-size: 12px;
}
.adm .appwin .bar i {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--s3);
}
.adm .strip {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 40px;
  margin: 0 16px;
  padding: 0 12px;
  border-radius: 7px;
  background: var(--wait-soft);
  box-shadow: inset 0 0 0 1px var(--wait-line);
  font-size: 12px;
  line-height: 20px;
}
.adm .strip .ic {
  color: var(--wait);
}
.adm .strip span {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.adm .strip a {
  color: var(--fg);
  font-weight: 500;
  text-decoration: none;
}
.adm .sk {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 16px;
}
.adm .sk i {
  display: block;
  height: 8px;
  border-radius: 2px;
  background: var(--s2);
}

/* матрица прав: роли колонками, значения по центру */
.adm th.c,
.adm td.c {
  text-align: center;
}
.adm td .can {
  color: var(--fg);
}
.adm td .see {
  color: var(--fg2);
}
.adm td .no {
  color: var(--disabled);
}

/* ожидает второго админа */
.adm .ask {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px;
  border-radius: 11px;
  background: var(--wait-soft);
  box-shadow: inset 0 0 0 1px var(--wait-line);
}
.adm .ask .q {
  line-height: 24px;
}
.adm .ask .q span {
  color: var(--fg2);
}
.adm .ask .acts {
  display: flex;
  gap: 8px;
}

/* полоса новости: без тревожного цвета */
.adm .strip.news {
  background: var(--s1);
  box-shadow: inset 0 0 0 1px var(--line);
}
.adm .strip.news .ic {
  color: var(--fg2);
}

/* окна */
.adm-stage {
  position: relative;
  width: 1440px;
  height: 900px;
  overflow: hidden;
  background: #141414;
}
.adm .scrim {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgb(0 0 0 / 0.6);
}
.adm .dlg {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 480px;
  max-width: 100%;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--chrome);
  border-radius: 14px;
  box-shadow: inset 0 0 0 1px var(--line), var(--shadow-dialog);
}
.adm .dlg h2 {
  margin: 0;
  font-size: 16px;
  line-height: 24px;
  font-weight: 650;
  letter-spacing: -0.018em;
}
.adm .dlg p {
  margin: 0;
  color: var(--fg2);
  font-size: 13px;
  line-height: 24px;
}
.adm .dlg .acts {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.adm .dlg .corner {
  position: absolute;
  right: 0;
  top: 0;
  width: 480px;
  height: 200px;
  z-index: -1;
}
.adm .conseq {
  margin: 0;
  padding: 12px 16px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-radius: 11px;
  background: var(--s1);
  box-shadow: inset 0 0 0 1px var(--line);
}
.adm .conseq li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  line-height: 24px;
}
.adm .conseq li .ic {
  margin-top: 4px;
  color: var(--muted);
}
.adm .conseq li.keep .ic {
  color: var(--ok);
}

/* средний экран: сайдбар узкой полосой не нужен, рабочая область на всю ширину */
@container (max-width: 1080px) {
  .adm .abody,
  .adm .atop {
    grid-template-columns: minmax(0, 1fr);
  }
  .adm .brand {
    display: none;
  }
  .adm .aside {
    box-shadow: inset 0 -1px 0 var(--line);
    padding: 12px 16px;
    flex-direction: row;
    overflow-x: auto;
    scrollbar-width: none;
    gap: 8px;
  }
  .adm .aside::-webkit-scrollbar {
    display: none;
  }
  .adm .group {
    flex-direction: row;
    gap: 4px;
  }
  .adm .group-cap,
  .adm .envbox {
    display: none;
  }
  .adm .nav a {
    flex: none;
  }
  .adm .c3,
  .adm .c4,
  .adm .c5 {
    grid-column: span 6;
  }
  .adm .c7,
  .adm .c8,
  .adm .c9 {
    grid-column: span 12;
  }
}

/* телефон: всё в одну колонку, контролы под палец */
@container (max-width: 720px) {
  .adm .atop-r {
    padding: 0 16px;
  }
  .adm .search {
    display: none;
  }
  .adm .amain {
    padding: 16px 16px 48px;
    gap: 16px;
  }
  .adm .g12 {
    gap: 16px;
  }
  .adm .g12 > * {
    grid-column: 1 / -1;
  }
  .adm .stack {
    gap: 16px;
  }
  .adm .card {
    padding: 16px;
  }
  .adm .card.flush {
    padding: 16px 0 8px;
  }
  .adm .card.flush > .card-head,
  .adm .card.flush > .pad {
    padding: 0 16px;
  }
  .adm th:first-child,
  .adm td:first-child {
    padding-left: 16px;
  }
  .adm th:last-child,
  .adm td:last-child {
    padding-right: 16px;
  }
  .adm .btn,
  .adm .select,
  .adm .seg {
    height: 40px;
  }
  .adm .seg button {
    height: 36px;
  }
  .adm .nav a {
    height: 40px;
  }
}

/* ── сверх макета ──────────────────────────────────────────────────────────── */

/* окна поверх страницы, а не поверх кадра макета */
.adm .scrim.over {
  position: fixed;
  z-index: 40;
  animation: adm-fade 0.16s var(--ease);
}
.adm .scrim.over .dlg {
  animation: adm-rise 0.2s var(--ease);
  max-height: calc(100vh - 32px);
  overflow-y: auto;
}
.adm .amain > * {
  animation: adm-fade 0.18s var(--ease);
}
@keyframes adm-fade {
  from { opacity: 0; }
}
@keyframes adm-rise {
  from { opacity: 0; transform: translateY(6px) scale(0.99); }
}
@media (prefers-reduced-motion: reduce) {
  .adm .scrim.over .dlg { animation-name: adm-fade; }
}

button.ava {
  border: 0;
  padding: 0;
  color: inherit;
  cursor: pointer;
}
button.ava:hover {
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.adm .search {
  margin: 0;
}

/* вход: окно посередине пустого экрана */
.adm .gate {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 400px);
  justify-content: center;
  align-content: center;
  padding: 16px;
}
.adm .gate .dlg {
  width: auto;
}
.adm .gate .brand {
  display: flex;
  align-self: flex-start;
  padding: 0;
}
.adm .gate form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.adm .gate .btn.primary {
  justify-content: center;
}

.adm .err {
  margin: 0;
  color: var(--bad);
  font-size: 13px;
  line-height: 20px;
}
.adm .err:empty {
  display: none;
}

/* код заведения passkey: показывается один раз */
.adm .codebox {
  padding: 16px;
  border-radius: 11px;
  background: var(--bg);
  box-shadow: inset 0 0 0 1px var(--line);
  font: 500 18px/24px var(--mono);
  letter-spacing: 0.04em;
  text-align: center;
  user-select: all;
}

/* пустая таблица и раздел, которому ещё нужны данные */
.adm td.empty {
  padding: 24px 16px;
  color: var(--muted);
  text-align: center;
}
.adm .later {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 720px;
}
.adm .later .conseq li {
  color: var(--fg2);
}

.adm .toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 50;
  transform: translateX(-50%);
  max-width: calc(100vw - 32px);
  padding: 8px 16px;
  border-radius: 11px;
  background: var(--s2);
  box-shadow: var(--shadow-pop), inset 0 0 0 1px var(--line);
  color: var(--fg);
  font-size: 13px;
  line-height: 24px;
  animation: adm-rise 0.2s var(--ease);
}
.adm .toast.bad {
  color: var(--bad);
}
