/*
 * Биллинг — основное оформление (тема «Светлая»).
 * Белое поле, светлое вертикальное меню, один синий акцент. Активный пункт меню «вырастает» в белое поле
 * страницы, как вкладка папки, — видно, где вы находитесь. Статусы — бледные цветные таблетки,
 * подсказки — светло-голубые плашки, крупные числа набраны Inter Display.
 *
 * Всё оформление — на переменных ниже. Своя тема: папка public/themes/<код>/ с theme.css (переопределяет
 * переменные и любые правила) и theme.json; выбирается в «Настройки → Оформление». Подробно — docs/THEMES.md.
 */

@font-face { font-family: "Inter"; src: url("fonts/Inter-Regular.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/Inter-Medium.woff") format("woff"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/Inter-SemiBold.woff") format("woff"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/Inter-Bold.woff") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter Display"; src: url("fonts/InterDisplay-Medium.woff") format("woff"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter Display"; src: url("fonts/InterDisplay-SemiBold.woff") format("woff"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --font-ui: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Inter Display", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --display-tracking: -.022em;

  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f5f7fa;
  --row-hover: #f8fafd;
  --input-bg: #ffffff;
  --line: #e5e9f0;
  --line-strong: #d3dae4;
  --text: #151c27;
  --text-2: #535f70;
  --text-3: #8690a0;

  --brand: #1f66f2;
  --brand-hover: #1554d6;
  --brand-ink: #1652d6;
  --brand-soft: #ecf2ff;
  --focus: #1f66f2;
  --focus-ring: rgba(31, 102, 242, .2);

  --led-on: #1f9d55;
  --led-wait: #e09b12;
  --led-off: #df3b2c;
  --led-idle: #a3acb9;

  --ok-bg: #e7f6ed;   --ok-ink: #16774a;   --ok-line: #c3e6d0;
  --warn-bg: #fff4dc; --warn-ink: #8c5800; --warn-line: #f3dcab;
  --danger-bg: #fdeeec; --danger-ink: #b3261a; --danger-line: #f5c9c3;
  --info-bg: #edf3ff; --info-ink: #1a4fbf; --info-line: #cfdcfb;
  --muted-bg: #f0f2f6; --muted-ink: #586375;
  --accent-bg: #ecf2ff; --accent-ink: #1652d6;
  --danger: #d23b2d;
  --hint-bg: #eef4ff; --hint-ink: #22324d; --hint-icon: #1f66f2;

  /* Боковое меню. */
  --side-bg: #f4f6fa;
  --side-line: #e5e9f0;
  --side-text: #4a5566;
  --side-text-strong: #151c27;
  --side-hover: #e9edf4;
  --side-active: #ffffff;
  --side-icon-active: #1f66f2;
  --side-section: #8a94a4;

  --radius-s: 8px;
  --radius-m: 12px;
  --radius-l: 16px;
  --shadow-pop: 0 18px 40px -18px rgba(20, 32, 56, .35), 0 2px 8px rgba(20, 32, 56, .08);
  --sidebar-w: 256px;
  --topbar-h: 60px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1319; --surface: #151a22; --surface-2: #1a2029; --row-hover: #1b222c; --input-bg: #11161d;
    --line: #262e3a; --line-strong: #344050; --text: #e7ebf2; --text-2: #a9b3c2; --text-3: #7d8899;
    --brand: #4d8bff; --brand-hover: #6a9dff; --brand-ink: #86adff; --brand-soft: #1a2a47; --focus: #6a9dff; --focus-ring: rgba(106, 157, 255, .28);
    --led-on: #3cc47b; --led-wait: #f1b03a; --led-off: #f2675a; --led-idle: #667283;
    --ok-bg: #12301f; --ok-ink: #84d9a8; --ok-line: #1f4d33;
    --warn-bg: #33270e; --warn-ink: #f2c46d; --warn-line: #5a4416;
    --danger-bg: #3a1714; --danger-ink: #ff9d90; --danger-line: #60261f;
    --info-bg: #172743; --info-ink: #9fc0ff; --info-line: #26406c;
    --muted-bg: #1f2630; --muted-ink: #a8b2c1; --accent-bg: #1a2a47; --accent-ink: #9fc0ff; --danger: #f2675a;
    --hint-bg: #172338; --hint-ink: #d5def0; --hint-icon: #6a9dff;
    --side-bg: #12171e; --side-line: #222a35; --side-text: #a3adbc; --side-text-strong: #eef1f6; --side-hover: #1b222c;
    --side-active: #0f1319; --side-icon-active: #6a9dff; --side-section: #6f7a8b;
    --shadow-pop: 0 18px 40px -16px rgba(0, 0, 0, .7), 0 2px 8px rgba(0, 0, 0, .35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1319; --surface: #151a22; --surface-2: #1a2029; --row-hover: #1b222c; --input-bg: #11161d;
  --line: #262e3a; --line-strong: #344050; --text: #e7ebf2; --text-2: #a9b3c2; --text-3: #7d8899;
  --brand: #4d8bff; --brand-hover: #6a9dff; --brand-ink: #86adff; --brand-soft: #1a2a47; --focus: #6a9dff; --focus-ring: rgba(106, 157, 255, .28);
  --led-on: #3cc47b; --led-wait: #f1b03a; --led-off: #f2675a; --led-idle: #667283;
  --ok-bg: #12301f; --ok-ink: #84d9a8; --ok-line: #1f4d33;
  --warn-bg: #33270e; --warn-ink: #f2c46d; --warn-line: #5a4416;
  --danger-bg: #3a1714; --danger-ink: #ff9d90; --danger-line: #60261f;
  --info-bg: #172743; --info-ink: #9fc0ff; --info-line: #26406c;
  --muted-bg: #1f2630; --muted-ink: #a8b2c1; --accent-bg: #1a2a47; --accent-ink: #9fc0ff; --danger: #f2675a;
  --hint-bg: #172338; --hint-ink: #d5def0; --hint-icon: #6a9dff;
  --side-bg: #12171e; --side-line: #222a35; --side-text: #a3adbc; --side-text-strong: #eef1f6; --side-hover: #1b222c;
  --side-active: #0f1319; --side-icon-active: #6a9dff; --side-section: #6f7a8b;
  --shadow-pop: 0 18px 40px -16px rgba(0, 0, 0, .7), 0 2px 8px rgba(0, 0, 0, .35);
  color-scheme: dark;
}

/* ------------------------------------------------------------------ основа */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 15px/1.5 var(--font-ui);
  font-feature-settings: "cv05" 1, "cv08" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: var(--brand-ink); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
img, svg { vertical-align: middle; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; color: var(--text); }
h2 { font-size: 18px; font-weight: 600; letter-spacing: -.008em; }
h3 { font-size: 16px; font-weight: 600; }
p { margin: 0 0 12px; }
small, .small { font-size: 13px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }
code, .code { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: .9em; background: var(--muted-bg); padding: 1px 6px; border-radius: 6px; }
pre.code { display: block; padding: 12px 14px; overflow-x: auto; white-space: pre-wrap; word-break: break-word; line-height: 1.45; font-size: 13px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
::selection { background: var(--brand-soft); }
.icon { width: 18px; height: 18px; flex: none; }
.muted { color: var(--text-3); }
.text-2 { color: var(--text-2); }
.num, .money { font-variant-numeric: tabular-nums; white-space: nowrap; }
.money-neg { color: var(--danger-ink); }
.money-pos { color: var(--ok-ink); }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-0 { margin-bottom: 0 !important; }
.mb-2 { margin-bottom: 16px; }
.gap { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.stack > * + * { margin-top: 20px; }
.grow { flex: 1 1 auto; min-width: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
.display { font-family: var(--font-display); font-feature-settings: "tnum" 1, "lnum" 1; letter-spacing: var(--display-tracking); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ------------------------------------------------------------------ каркас */

.app { display: grid; grid-template-columns: var(--sidebar-w) minmax(0, 1fr); min-height: 100vh; }
.sidebar {
  position: sticky; top: 0; height: 100vh; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin;
  background: var(--side-bg);
  /* Граница — тенью: активный пункт меню закрывает её и «сливается» с полем страницы. */
  box-shadow: inset -1px 0 0 var(--side-line);
  padding: 14px 0 20px 12px; display: flex; flex-direction: column; gap: 2px;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px 16px; font-weight: 600; font-size: 15.5px; color: var(--text); letter-spacing: -.01em; min-height: 46px; }
.sidebar .brand { margin-right: 12px; color: var(--side-text-strong); }
.brand:hover { text-decoration: none; }
.brand > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brand-mark { width: 28px; height: 28px; flex: none; color: var(--brand); }
.brand-logo { max-height: 64px; max-width: 100%; width: auto; height: auto; display: block; }
/* В меню логотип занимает всю ширину колонки (до 64 px в высоту): широкий логотип со словом не превращается в полоску. */
.sidebar .brand:has(.brand-logo) { padding: 6px 10px 18px; }
.sidebar .brand-logo { width: 100%; max-width: 210px; object-fit: contain; object-position: left center; }
.nav { display: flex; flex-direction: column; gap: 1px; }
.nav a {
  position: relative; display: flex; align-items: center; gap: 11px; padding: 7px 12px 7px 10px; margin-right: 12px;
  border-radius: var(--radius-s); color: var(--side-text); font-weight: 500; font-size: 14.5px; line-height: 1.3; min-height: 36px;
}
.nav a:hover { background: var(--side-hover); color: var(--side-text-strong); text-decoration: none; }
.nav a .icon { width: 18px; height: 18px; opacity: .8; }
.nav a.is-active {
  margin-right: 0; border-radius: var(--radius-s) 0 0 var(--radius-s);
  background: var(--side-active); color: var(--side-text-strong); font-weight: 600;
  box-shadow: inset 0 1px 0 var(--side-line), inset 0 -1px 0 var(--side-line), inset 1px 0 0 var(--side-line);
}
.nav a.is-active .icon { color: var(--side-icon-active); opacity: 1; }
.nav .count { margin-left: auto; min-width: 20px; text-align: center; font-size: 12px; font-weight: 600; background: var(--brand); color: #fff; padding: 0 6px; border-radius: 999px; line-height: 20px; }
.nav a.is-active .count { margin-right: 12px; }
.nav-section {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin: 12px 12px 2px 0; padding: 4px 10px; font-size: 12.5px; color: var(--side-section); font-weight: 500;
  list-style: none; cursor: pointer; border-radius: 6px; user-select: none;
}
.nav-section::-webkit-details-marker { display: none; }
.nav-section:hover { color: var(--side-text); }
.nav-section .icon { width: 14px; height: 14px; transition: transform .15s ease; opacity: .7; }
.nav-group:not([open]) > .nav-section .icon { transform: rotate(-90deg); }
.nav-group:not([open]) > .nav-section .nav-group-count { display: inline-block; }
.nav-group-count { display: none; margin-left: auto; margin-right: 6px; font-size: 11.5px; font-weight: 600; background: var(--brand); color: #fff; padding: 0 6px; border-radius: 999px; line-height: 18px; }
.sidebar-foot { margin-top: auto; padding: 16px 22px 0 10px; font-size: 13px; color: var(--text-3); }
.sidebar-foot a { color: var(--text-2); }

.main { min-width: 0; display: flex; flex-direction: column; grid-column: 2; background: var(--bg); }
.nav-backdrop { display: none; }
.topbar {
  position: sticky; top: 0; z-index: 30; height: var(--topbar-h); display: flex; align-items: center; gap: 14px;
  padding: 0 32px; background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line);
}
.topbar .menu-toggle { display: none; }
.topbar-balance { display: inline-flex; align-items: baseline; gap: 8px; color: inherit; padding: 6px 10px; border-radius: var(--radius-s); }
.topbar-balance:hover { background: var(--surface-2); text-decoration: none; }
.topbar-balance strong { font-family: var(--font-display); font-size: 16.5px; font-weight: 600; letter-spacing: -.01em; }
.content { padding: 28px 32px 64px; width: 100%; max-width: 1520px; margin: 0 auto; }
.content-narrow { max-width: 900px; }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.page-head h1 { font-family: var(--font-display); font-weight: 600; font-size: 28px; line-height: 1.15; letter-spacing: var(--display-tracking); }
.page-head .sub { color: var(--text-2); margin-top: 6px; display: flex; align-items: center; gap: 4px 10px; flex-wrap: wrap; }
.page-head .actions { display: flex; gap: 10px; flex-wrap: wrap; }
.crumbs { font-size: 13.5px; color: var(--text-3); margin-bottom: 8px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.crumbs a { color: var(--text-2); }
.crumbs .sep { opacity: .6; }

.impersonation {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 32px;
  background: var(--warn-bg); color: var(--warn-ink); border-bottom: 1px solid var(--warn-line); font-size: 14px;
}

/* ------------------------------------------------------------------ админка */

/* Админка — по ширине экрана: на больших мониторах таблицы и карточки растягиваются, а не жмутся влево. */
.app-admin .content { max-width: 1880px; }
.app-admin .nav a { font-size: 14px; min-height: 34px; padding-top: 6px; padding-bottom: 6px; }

.search-box { position: relative; flex: 1 1 auto; max-width: 520px; }
.search-box .icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-3); width: 17px; height: 17px; }
.search-box input { padding-left: 38px; height: 38px; background: var(--surface-2); border-color: transparent; }
.search-box input:hover { border-color: var(--line-strong); }
.search-box input:focus { background: var(--input-bg); }
.cron-pill { display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 11px 0 9px; border-radius: 999px; font-size: 12.5px; font-weight: 500; background: var(--ok-bg); color: var(--ok-ink); white-space: nowrap; }
.cron-pill.is-off { background: var(--danger-bg); color: var(--danger-ink); }
.cron-pill:hover { text-decoration: none; }
.cron-pill .led { width: 7px; height: 7px; }

/* ------------------------------------------------------------------ меню пользователя */

.menu { position: relative; }
.menu > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 5px 8px; border-radius: var(--radius-s); color: var(--text); font-weight: 500; font-size: 14.5px; }
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary:hover { background: var(--surface-2); }
.menu > summary .icon { width: 16px; height: 16px; color: var(--text-3); }
.menu-pop {
  position: absolute; right: 0; top: calc(100% + 6px); min-width: 240px; z-index: 50;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); box-shadow: var(--shadow-pop);
  padding: 6px;
}
.menu-pop a, .menu-pop button { display: flex; width: 100%; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 7px; color: var(--text); font: 400 14.5px var(--font-ui); background: none; border: 0; cursor: pointer; text-align: left; }
.menu-pop a:hover, .menu-pop button:hover { background: var(--surface-2); text-decoration: none; }
.menu-pop .icon { color: var(--text-3); }
.menu-pop .sep { height: 1px; background: var(--line); margin: 6px 4px; }
.menu-pop .meta { padding: 8px 10px 6px; font-size: 13px; color: var(--text-3); }
.avatar { width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--brand-soft); color: var(--brand-ink); font-weight: 600; font-size: 12.5px; flex: none; }

/* ------------------------------------------------------------------ статусы: точка и таблетка */

.led { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; background: var(--led-idle); }
.led-on { background: var(--led-on); }
.led-wait { background: var(--led-wait); }
.led-off { background: var(--led-off); }
.led-blink { animation: led-blink 1.4s ease-in-out infinite; }
@keyframes led-blink { 50% { opacity: .35; } }
.status {
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; font-size: 13px; font-weight: 500;
  padding: 2px 10px 2px 9px; border-radius: 999px; line-height: 20px; background: var(--muted-bg); color: var(--muted-ink);
}
.status .led { width: 7px; height: 7px; }
.status:has(.led-on) { background: var(--ok-bg); color: var(--ok-ink); }
.status:has(.led-wait) { background: var(--warn-bg); color: var(--warn-ink); }
.status:has(.led-off) { background: var(--danger-bg); color: var(--danger-ink); }

/* ------------------------------------------------------------------ бейджи */

.badge { display: inline-flex; align-items: center; gap: 6px; padding: 1px 9px; border-radius: 999px; font-size: 12.5px; font-weight: 500; line-height: 21px; white-space: nowrap; background: var(--muted-bg); color: var(--muted-ink); }
.badge-success { background: var(--ok-bg); color: var(--ok-ink); }
.badge-warning { background: var(--warn-bg); color: var(--warn-ink); }
.badge-danger { background: var(--danger-bg); color: var(--danger-ink); }
.badge-info { background: var(--info-bg); color: var(--info-ink); }
.badge-muted { background: var(--muted-bg); color: var(--muted-ink); }
.badge-accent { background: var(--accent-bg); color: var(--accent-ink); }
.tag { display: inline-block; font-size: 12px; padding: 0 7px; border: 1px solid var(--line-strong); border-radius: 6px; color: var(--text-2); line-height: 19px; }

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

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 16px;
  border-radius: var(--radius-s); border: 1px solid transparent; background: none; color: var(--text);
  font: 500 14.5px/1 var(--font-ui); cursor: pointer; white-space: nowrap; text-decoration: none;
  transition: background-color .12s ease, border-color .12s ease, color .12s ease, box-shadow .12s ease;
}
.btn:hover { text-decoration: none; }
.btn .icon { width: 17px; height: 17px; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 1px 2px rgba(20, 60, 160, .18); }
.btn-primary:hover { background: var(--brand-hover); }
.btn-secondary { background: var(--surface); border-color: var(--line-strong); color: var(--text); }
.btn-secondary:hover { background: var(--surface-2); border-color: var(--text-3); }
.btn-ghost { color: var(--text-2); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }
.btn-danger { background: var(--surface); border-color: var(--danger-line); color: var(--danger-ink); }
.btn-danger:hover { background: var(--danger-bg); }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13.5px; gap: 6px; }
.btn-sm .icon { width: 15px; height: 15px; }
.btn-lg { height: 46px; padding: 0 22px; font-size: 16px; border-radius: 10px; }
.btn-block { width: 100%; }
.btn-icon { width: 36px; padding: 0; }
.btn-sm.btn-icon { width: 32px; }
.btn-xs { height: 24px; padding: 0 8px; font-size: 12.5px; gap: 4px; border-radius: 6px; }
.btn-xs .icon { width: 14px; height: 14px; }
.btn-xs.btn-icon { width: 24px; padding: 0; }
.btn[disabled], .btn.is-disabled { opacity: .5; cursor: not-allowed; pointer-events: none; }
.btn-link { background: none; border: 0; padding: 0; color: var(--brand-ink); font: inherit; cursor: pointer; }
.btn-link:hover { text-decoration: underline; }
form.inline { display: inline; }

/* ------------------------------------------------------------------ формы */

.field { margin-bottom: 16px; }
.field > label, .label { display: block; font-weight: 500; font-size: 14px; margin-bottom: 6px; color: var(--text); }
.field .optional { font-weight: 400; color: var(--text-3); }
.input, .select, .textarea {
  width: 100%; height: 40px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-s);
  background: var(--input-bg); color: var(--text); font: 400 15px var(--font-ui);
  transition: border-color .12s ease, box-shadow .12s ease, background-color .12s ease;
}
.input:hover, .select:hover, .textarea:hover { border-color: #b9c2cf; }
.textarea { height: auto; min-height: 120px; padding: 10px 12px; line-height: 1.5; resize: vertical; }
.select { appearance: none; padding-right: 34px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238690a0' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px var(--focus-ring); }
.input::placeholder, .textarea::placeholder { color: var(--text-3); }
.input[readonly] { background: var(--surface-2); }
.input-sm { height: 34px; font-size: 14px; }
.field.has-error .input, .field.has-error .select, .field.has-error .textarea { border-color: var(--danger); }
.field .error { color: var(--danger-ink); font-size: 13px; margin-top: 6px; }
.field .help { color: var(--text-3); font-size: 13px; margin-top: 6px; }
.check, .field > label.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; font-weight: 400; cursor: pointer; }
.check input { width: 17px; height: 17px; margin: 2px 0 0; accent-color: var(--brand); flex: none; }
.radio-cards { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.radio-card { position: relative; display: block; border: 1px solid var(--line-strong); border-radius: var(--radius-m); padding: 12px 14px 12px 40px; cursor: pointer; background: var(--surface); transition: border-color .12s ease, background-color .12s ease; }
.radio-card:hover { border-color: var(--text-3); }
.radio-card input { position: absolute; left: 14px; top: 15px; accent-color: var(--brand); width: 16px; height: 16px; }
.radio-card:has(input:checked) { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); background: var(--brand-soft); }
.radio-card .title { font-weight: 600; }
.radio-card .meta { color: var(--text-2); font-size: 13.5px; margin-top: 2px; }
.radio-card > span.title, .radio-card > span.meta { display: block; } /* заголовок и пояснения — отдельными строками */
.input-group { display: flex; align-items: stretch; }
.input-group .input { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.input-group .addon { display: flex; align-items: center; padding: 0 12px; border: 1px solid var(--line-strong); border-left: 0; border-radius: 0 var(--radius-s) var(--radius-s) 0; background: var(--surface-2); color: var(--text-2); font-size: 14px; }
.input-group .btn { border-top-left-radius: 0; border-bottom-left-radius: 0; height: auto; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
.form-grid .span-2 { grid-column: 1 / -1; }
.form-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 18px; }
.form-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
fieldset { border: 0; padding: 0; margin: 0 0 8px; }
legend { font-weight: 600; font-size: 15px; margin-bottom: 12px; padding: 0; }
.secret { display: flex; gap: 6px; align-items: center; }
.secret .input { font-family: ui-monospace, Menlo, Consolas, monospace; }

/* ------------------------------------------------------------------ сообщения и подсказки */

.alert { display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px; border-radius: var(--radius-m); border: 1px solid transparent; background: var(--hint-bg); color: var(--hint-ink); margin-bottom: 16px; font-size: 14.5px; }
.alert .icon { margin-top: 1px; }
.alert-success { background: var(--ok-bg); color: var(--ok-ink); }
.alert-error, .alert-danger { background: var(--danger-bg); color: var(--danger-ink); }
.alert-warning { background: var(--warn-bg); color: var(--warn-ink); }
.alert-info { background: var(--hint-bg); color: var(--hint-ink); }
.alert-info > .icon { color: var(--hint-icon); }
.alert a { color: inherit; text-decoration: underline; }
.alert-info a { color: var(--brand-ink); }
.alert p:last-child { margin-bottom: 0; }
.hint { display: flex; gap: 10px; align-items: flex-start; padding: 10px 14px; border-radius: var(--radius-s); background: var(--hint-bg); color: var(--hint-ink); font-size: 13.5px; }
.hint > .icon { width: 16px; height: 16px; margin-top: 2px; color: var(--hint-icon); }
.hint p:last-child { margin-bottom: 0; }

/* ------------------------------------------------------------------ панели и списки */

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); min-width: 0; }
.panel + .panel, .panel + .grid-2, .grid-2 + .panel { margin-top: 20px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--line); flex-wrap: wrap; min-height: 54px; }
/* Над обычным содержимым заголовок без черты — блок легче; над таблицей и списком черта остаётся. */
.panel-head:has(+ .panel-body) { border-bottom-color: transparent; padding-bottom: 4px; min-height: 0; }
.panel-head:has(+ .panel-body) + .panel-body { padding-top: 12px; }
.panel-head h2 { font-size: 16px; font-weight: 600; }
.panel-head .sub { color: var(--text-3); font-size: 13.5px; }
.panel-body { padding: 18px 20px 20px; }
.panel-body > :last-child { margin-bottom: 0; }
.panel-foot { padding: 12px 20px; border-top: 1px solid var(--line); background: var(--surface-2); border-radius: 0 0 var(--radius-m) var(--radius-m); }
.panel-flush .table td:first-child, .panel-flush .table th:first-child { padding-left: 20px; }
.panel-flush .table td:last-child, .panel-flush .table th:last-child { padding-right: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.grid-2 > .panel + .panel, .grid-3 > .panel + .panel, .layout-aside > .panel + .panel { margin-top: 0; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: start; }
.layout-aside { display: grid; grid-template-columns: minmax(0, 1fr) clamp(320px, 24vw, 420px); gap: 20px; align-items: start; }

.kv { display: grid; grid-template-columns: minmax(130px, 210px) minmax(0, 1fr); gap: 10px 18px; margin: 0; font-size: 14.5px; }
.kv dt { color: var(--text-3); }
.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }

.list { list-style: none; margin: 0; padding: 0; }
.list > li { display: flex; align-items: center; gap: 12px; padding: 12px 20px; border-bottom: 1px solid var(--line); }
.list > li:last-child { border-bottom: 0; }

/* Раскрывающаяся ссылка: <details><summary class="btn-link">Сменить пароль</summary>…</details> */
summary.btn-link { list-style: none; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
summary.btn-link::-webkit-details-marker { display: none; }
summary.btn-link::before { content: ""; width: 7px; height: 7px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(-45deg); transition: transform .15s ease; flex: none; }
details[open] > summary.btn-link::before { transform: rotate(45deg); }
summary.btn-link:hover { text-decoration: none; }

/* Переключатель из 2–4 вариантов: <div class="segmented"><label><input type="radio"><span>…</span></label>…</div> */
.segmented { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; border-radius: 10px; background: var(--muted-bg); max-width: 100%; width: fit-content; }
.segmented label { position: relative; cursor: pointer; margin: 0; font-weight: 400; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 8px; font-size: 13.5px; font-weight: 500; color: var(--text-2); }
.segmented label:hover span { color: var(--text); }
.segmented input:checked + span { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgba(20, 32, 56, .1), 0 0 0 1px var(--line); }
.segmented input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 1px; }
.module-options { margin-top: 14px; }
.module-options > summary { cursor: pointer; list-style: none; display: inline-flex; gap: 6px; align-items: center; }
.module-options > summary::-webkit-details-marker { display: none; }
.module-options > summary::before { content: ""; width: 7px; height: 7px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(-45deg); transition: transform .15s ease; }
.module-options[open] > summary::before { transform: rotate(45deg); }

/* Сворачиваемый блок: <details class="panel fold"><summary class="panel-head">…</summary>…</details> */
details.fold > summary { cursor: pointer; list-style: none; border-bottom-color: transparent; }
details.fold > summary::-webkit-details-marker { display: none; }
details.fold > summary::after {
  content: ""; width: 9px; height: 9px; margin-left: auto; flex: none; border: solid var(--text-3); border-width: 0 2px 2px 0;
  transform: rotate(45deg) translate(-2px, -2px); transition: transform .15s ease;
}
details.fold[open] > summary { border-bottom-color: var(--line); }
details.fold[open] > summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
details.fold > summary:hover h2 { color: var(--brand-ink); }
details.fold > summary .sub { margin-left: auto; }
details.fold > summary .sub + ::after { margin-left: 0; }
details.fold[open] > summary:has(+ .panel-body) { border-bottom-color: transparent; }

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

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th {
  text-align: left; font-weight: 500; color: var(--text-3); font-size: 12.5px; padding: 10px 14px;
  border-bottom: 1px solid var(--line); background: var(--surface-2); white-space: nowrap;
}
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: var(--row-hover); }
.table .num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table .actions { text-align: right; white-space: nowrap; }
.table .primary { font-weight: 500; color: var(--text); }
.table a.primary { color: var(--brand-ink); }
.table a.primary:hover { color: var(--brand-hover); }
.table .secondary { color: var(--text-3); font-size: 13px; margin-top: 2px; }
.table tfoot td { font-weight: 600; background: var(--surface-2); border-top: 1px solid var(--line); }
.panel > .table-wrap:first-child .table th:first-child { border-top-left-radius: var(--radius-m); }
.panel > .table-wrap:first-child .table th:last-child { border-top-right-radius: var(--radius-m); }
.panel > .table-wrap:last-child .table tbody tr:last-child td:first-child { border-bottom-left-radius: var(--radius-m); }
.panel > .table-wrap:last-child .table tbody tr:last-child td:last-child { border-bottom-right-radius: var(--radius-m); }

.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; padding: 12px 20px; border-bottom: 1px solid var(--line); }
.filters .input, .filters .select { height: 36px; width: auto; min-width: 170px; font-size: 14px; }
.filters .input[type="search"] { min-width: 260px; }

.pagination { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 12px 20px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--text-3); }
.pagination .pages { display: flex; gap: 4px; }
.pagination .pages a, .pagination .pages span { min-width: 32px; height: 32px; padding: 0 8px; display: inline-flex; align-items: center; justify-content: center; border-radius: 7px; color: var(--text-2); }
.pagination .pages a:hover { background: var(--surface-2); text-decoration: none; }
.pagination .pages .is-current { background: var(--brand-soft); color: var(--brand-ink); font-weight: 600; }

.empty { text-align: center; padding: 48px 20px; color: var(--text-2); }
.empty h3 { font-size: 17px; margin-bottom: 6px; }
.empty p { margin: 0 auto 16px; max-width: 46ch; }
.empty .icon { width: 44px; height: 44px; padding: 11px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); margin-bottom: 12px; }

/* ------------------------------------------------------------------ вкладки */

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 22px; overflow-x: auto; scrollbar-width: none; }
.tabs a { padding: 10px 4px; margin-right: 18px; color: var(--text-2); font-weight: 500; font-size: 14.5px; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; display: inline-flex; gap: 8px; align-items: center; }
.tabs a:hover { color: var(--text); text-decoration: none; }
.tabs a.is-active { color: var(--text); border-bottom-color: var(--brand); }
.tabs .count { font-size: 12px; color: var(--text-3); font-weight: 500; background: var(--muted-bg); padding: 0 7px; border-radius: 999px; line-height: 19px; }
.tabs a.is-active .count { background: var(--brand-soft); color: var(--brand-ink); }
/* Группы тарифов вкладками: одна группа на странице вместо полотна из сотен строк. */
.group-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: -6px 0 18px; }
.group-tabs a { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 8px; font-size: 13.5px; font-weight: 500; color: var(--text-2); background: var(--muted-bg); border: 1px solid transparent; }
.group-tabs a:hover { color: var(--text); text-decoration: none; border-color: var(--line); }
.group-tabs a.is-active { background: var(--surface); color: var(--text); border-color: var(--brand); box-shadow: 0 1px 2px rgba(20, 32, 56, .08); }
.group-tabs a.is-empty { color: var(--text-3); }
.group-tabs .count { font-size: 12px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.group-tabs a.is-active .count { color: var(--brand-ink); }
.group-tabs .dot-off { width: 6px; height: 6px; border-radius: 50%; background: var(--text-3); opacity: .6; }
.group-tabs a.group-tabs-all { background: transparent; border-color: var(--line); }
.group-tabs a.group-tabs-all.is-active { border-color: var(--brand); background: var(--surface); }

/* ------------------------------------------------------------------ показатели: одна светлая рамка */

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); overflow: hidden; }
.stat { position: relative; padding: 18px 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0 -1px -1px 0; min-width: 0; }
.stat:has(> .stat-icon) { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 10px; align-content: start; }
.stat:has(> .stat-icon) > .label { grid-column: 2; align-self: center; }
.stat:has(> .stat-icon) > .value, .stat:has(> .stat-icon) > .hint { grid-column: 1 / -1; }
.stat:has(> .stat-icon) > .value { margin-top: 10px; }
.stat-icon { grid-row: 1; width: 32px; height: 32px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; background: var(--brand-soft); color: var(--brand); }
.stat-icon .icon { width: 17px; height: 17px; }
.stat-icon.is-ok { background: var(--ok-bg); color: var(--ok-ink); }
.stat-icon.is-warn { background: var(--warn-bg); color: var(--warn-ink); }
.stat-icon.is-danger { background: var(--danger-bg); color: var(--danger-ink); }
.stat .label { color: var(--text-3); font-size: 13px; }
.stat .value { font-family: var(--font-display); font-feature-settings: "tnum" 1, "lnum" 1; font-size: 25px; font-weight: 600; margin-top: 2px; letter-spacing: var(--display-tracking); line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat .hint { display: block; padding: 0; background: none; color: var(--text-3); font-size: 12.5px; margin-top: 3px; }
.stat a.value { display: block; color: var(--text); }
.stat a.value:hover { color: var(--brand-ink); text-decoration: none; }

.attention { list-style: none; margin: 0; padding: 0; }
.attention li { display: flex; align-items: center; gap: 12px; padding: 12px 20px; border-bottom: 1px solid var(--line); }
.attention li:last-child { border-bottom: 0; }
.attention .what { flex: 1 1 auto; min-width: 0; }
.attention .what .secondary { color: var(--text-3); font-size: 13px; }

.bars { display: flex; align-items: flex-end; gap: 6px; height: 160px; padding: 10px 0 0; }
.bars .bar { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; height: 100%; justify-content: flex-end; }
.bars .bar span.fill { width: 100%; max-width: 34px; background: color-mix(in srgb, var(--brand) 22%, var(--surface)); border-radius: 6px 6px 2px 2px; min-height: 2px; }
.bars .bar:hover span.fill { background: color-mix(in srgb, var(--brand) 40%, var(--surface)); }
.bars .bar.is-current span.fill { background: var(--brand); }
.bars .bar small { font-size: 11.5px; color: var(--text-3); white-space: nowrap; }

/* ------------------------------------------------------------------ кабинет: баланс и горизонт оплаты */

.wallet {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px 24px; align-items: center;
  padding: 24px 26px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l);
}
.wallet .amount { font-family: var(--font-display); font-feature-settings: "tnum" 1, "lnum" 1; font-size: 42px; font-weight: 600; line-height: 1.05; letter-spacing: -.03em; margin-top: 2px; }
.wallet .caption { color: var(--text-2); margin-top: 8px; }
.wallet .caption strong { color: var(--text); font-weight: 600; }
.wallet .actions { display: flex; gap: 10px; flex-wrap: wrap; }
.runway { grid-column: 1 / -1; }
.runway-track { position: relative; height: 8px; border-radius: 999px; background: repeating-linear-gradient(-45deg, var(--danger-bg), var(--danger-bg) 6px, transparent 6px, transparent 11px); overflow: hidden; }
.runway-fill { position: absolute; inset: 0 auto 0 0; background: var(--brand); border-radius: 999px; }
.runway-marks { position: relative; height: 54px; margin-top: 6px; }
.runway-mark { position: absolute; top: 0; transform: translateX(-50%); font-size: 12.5px; color: var(--text-2); white-space: nowrap; text-align: center; }
.runway-mark::before { content: ""; display: block; width: 1px; height: 8px; background: var(--line-strong); margin: 0 auto 4px; }
.runway-mark.is-uncovered { color: var(--danger-ink); }
.runway-mark.is-uncovered::before { background: var(--danger); }
.runway-mark .when { font-weight: 600; color: var(--text); display: block; font-variant-numeric: tabular-nums; }
.runway-mark.is-uncovered .when { color: var(--danger-ink); }
.runway-scale { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-3); margin-top: 2px; }

.svc-list { list-style: none; margin: 0; padding: 0; }
/* Группа услуг одного типа в разделе «Услуги»: заголовок-полоса над строками. */
.svc-group { display: flex; align-items: center; gap: 10px; padding: 18px 20px 8px; border-bottom: 1px solid var(--line); }
.svc-group + .svc-list, .svc-list + .svc-group { margin-top: 0; }
.svc-list + .svc-group { border-top: 1px solid var(--line); padding-top: 22px; }
.svc-group h2 { font-size: 15px; font-weight: 600; margin: 0; color: var(--text); }
.svc-group .icon { width: 18px; height: 18px; color: var(--text-3); }
.svc-group .count { font-size: 12px; color: var(--text-3); font-weight: 500; background: var(--muted-bg); padding: 0 7px; border-radius: 999px; line-height: 19px; }
/* Значок типа услуги со статусом в углу. */
.svc-kind { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 10px; background: var(--muted-bg); color: var(--text-2); flex: none; }
.svc-kind .icon { width: 19px; height: 19px; }
.svc-kind .led { position: absolute; right: -2px; bottom: -2px; width: 11px; height: 11px; border: 2px solid var(--surface); box-sizing: content-box; }
.svc .svc-type { color: var(--text-2); font-weight: 500; }
.svc-type-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; color: var(--text-2); background: var(--muted-bg); padding: 2px 9px 2px 7px; border-radius: 999px; }
.svc-type-chip .icon { width: 15px; height: 15px; }
.svc { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 6px 16px; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.svc:last-child { border-bottom: 0; }
.svc:hover { background: var(--row-hover); }
.svc .name { font-weight: 600; color: var(--text); overflow-wrap: anywhere; }
.svc .name:hover { color: var(--brand-ink); }
.svc .meta { color: var(--text-3); font-size: 13.5px; display: flex; flex-wrap: wrap; align-items: center; row-gap: 2px; }
/* Части подписи строки: «·» — в конце части, при переносе точка не начинает строку. */
.svc .meta .m { display: inline-flex; align-items: center; white-space: nowrap; }
.svc .meta .m-wrap { white-space: normal; }
.svc .meta .m:not(:last-child)::after { content: "·"; margin: 0 7px; color: var(--text-3); }
.svc .meta .m-note { color: var(--text-2); }

/* Вкладки типов услуг над длинным списком: «Все · Виртуальные серверы · Выделенные серверы…» */
.kind-bar { padding: 14px 20px 0; }
.kind-bar + .list-top .filters, .kind-bar + .svc-group, .kind-bar + .svc-list, .kind-bar + .table-wrap { margin-top: 2px; }
.kind-bar:has(+ .svc-group), .kind-bar:has(+ .svc-list), .kind-bar:has(+ .table-wrap) { padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.kind-tabs { display: flex; gap: 2px; padding: 3px; border-radius: 10px; background: var(--muted-bg); width: fit-content; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.kind-tabs::-webkit-scrollbar { display: none; }
.kind-tabs a { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 8px; font-size: 13.5px; font-weight: 500; color: var(--text-2); white-space: nowrap; }
.kind-tabs a:hover { color: var(--text); text-decoration: none; }
.kind-tabs a:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.kind-tabs a.is-active { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgba(20, 32, 56, .1), 0 0 0 1px var(--line); }
.kind-tabs .icon { width: 15px; height: 15px; color: var(--text-3); flex: none; }
.kind-tabs a.is-active .icon { color: var(--brand); }
.kind-tabs .count { font-size: 12px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.kind-tabs .kind-alert { width: 7px; height: 7px; border-radius: 50%; background: var(--warn-ink); margin-left: -2px; flex: none; }
.svc .due { text-align: right; font-size: 14px; white-space: nowrap; }
.svc .due .rel { display: block; color: var(--text-3); font-size: 12.5px; }
.svc .due .rel.is-soon { color: var(--warn-ink); }
.svc .due .rel.is-late { color: var(--danger-ink); }
.svc .price { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; min-width: 110px; }
.svc .price .per { display: block; color: var(--text-3); font-size: 12.5px; }
/* Список услуг на главной: у строки — действие («Оплатить» или «Управление»), у серверов — IP с копированием.
   Колонка действия — только если списку хватает ширины; иначе кнопка уходит под название. */
.svc-list.has-actions { container-type: inline-size; }
.svc-list.has-actions .svc { grid-template-columns: auto minmax(0, 1fr) auto auto 128px; }
@container (max-width: 700px) {
  .svc-list.has-actions .svc { grid-template-columns: auto minmax(0, 1fr) auto auto; }
  .svc-list.has-actions .svc-act { grid-column: 2 / -1; justify-content: flex-start; }
  .svc-list.has-actions .svc-act .btn { width: auto; }
}
.svc-act { display: flex; justify-content: flex-end; }
.svc-act .btn { width: 100%; justify-content: center; white-space: nowrap; }
.svc .meta .m-ip { gap: 2px; }
.svc .meta .m-ip code { background: none; padding: 0; font-size: 13px; color: var(--text-2); }
.svc .meta .m-ip .btn { color: var(--text-3); }
.svc .meta .m-ip .btn:hover { color: var(--brand-ink); }

/* Простой список без маркеров (устройства в профиле). */
.plain-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }

/* Группа услуг одного типа в таблице админки. */
.table tr.table-group th { background: var(--surface-2, var(--muted-bg)); color: var(--text); font-size: 13.5px; font-weight: 600; text-transform: none; letter-spacing: 0; padding-top: 10px; padding-bottom: 10px; }
.table tr.table-group .icon { width: 16px; height: 16px; color: var(--text-3); }
.table tr.table-group .count { font-size: 12px; color: var(--text-3); font-weight: 500; background: var(--surface); padding: 0 7px; border-radius: 999px; line-height: 19px; }

/* Услуга в таблице админки: флаг страны перед названием. */
.svc-cell { display: flex; gap: 12px; align-items: flex-start; min-width: 0; }
.svc-cell-text { min-width: 0; }
.svc-flag { flex: none; display: inline-flex; width: 24px; height: 18px; margin-top: 1px; }
.svc-flag .flag { width: 24px; height: 18px; border-radius: 3px; }
.svc-flag.is-none { color: var(--text-3); opacity: .55; justify-content: center; }
.svc-flag.is-none .icon { width: 17px; height: 17px; }

/* ------------------------------------------------------------------ витрина */

/* Заказ: первый шаг — выбор раздела */
.sections { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: 14px; }
.section-card { display: flex; align-items: flex-start; gap: 16px; padding: 20px 20px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); color: var(--text); transition: border-color .15s ease, box-shadow .15s ease; }
.section-card:hover { text-decoration: none; border-color: var(--brand); box-shadow: 0 1px 3px rgba(20, 32, 56, .08); }
.section-card:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.section-icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--radius-m); background: var(--brand-soft); color: var(--brand-ink); }
.section-icon .icon { width: 22px; height: 22px; }
.section-body { flex: 1; min-width: 0; display: grid; gap: 4px; }
.section-name { font-size: 17px; font-weight: 600; letter-spacing: -.01em; line-height: 1.3; }
.section-desc { color: var(--text-2); font-size: 14px; line-height: 1.45; }
.section-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 8px; color: var(--text-3); font-size: 13.5px; }
.section-price { color: var(--text); font-weight: 600; font-feature-settings: "tnum" 1; }
.section-flags { display: inline-flex; align-items: center; gap: 4px; }
.section-flags .flag { border-radius: 2px; box-shadow: 0 0 0 1px var(--line); }
.section-flags .more { font-size: 12px; }
.section-go { flex: none; align-self: center; color: var(--text-3); }
.section-card:hover .section-go { color: var(--brand); }
.catalog { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.plan { display: flex; flex-direction: column; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); transition: border-color .15s ease; }
.plan:hover { border-color: var(--line-strong); }
.plan h3 { font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.plan .desc { color: var(--text-2); font-size: 14px; margin-top: 6px; }
.plan .price { font-family: var(--font-display); font-feature-settings: "tnum" 1, "lnum" 1; font-size: 30px; font-weight: 600; margin: 16px 0 2px; letter-spacing: var(--display-tracking); }
.plan .per { color: var(--text-3); font-size: 13.5px; }
.plan ul { list-style: none; padding: 0; margin: 16px 0 18px; display: grid; gap: 7px; font-size: 14px; color: var(--text-2); }
.plan ul li { display: flex; gap: 8px; }
.plan ul li .icon { width: 16px; height: 16px; color: var(--brand); margin-top: 2px; }
.plan .btn { margin-top: auto; }
.group-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.group-tabs a { padding: 7px 15px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--text-2); font-weight: 500; font-size: 14px; background: var(--surface); }
.group-tabs a.is-active { background: var(--brand-soft); border-color: var(--brand); color: var(--brand-ink); }
.group-tabs a:hover { text-decoration: none; border-color: var(--text-3); color: var(--text); }
.group-tabs a.is-active:hover { border-color: var(--brand); color: var(--brand-ink); }

.summary { position: sticky; top: calc(var(--topbar-h) + 24px); }
.summary .line { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: 14.5px; }
.summary .line .muted { font-size: 13.5px; }
.summary .total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 12px; margin-top: 8px; border-top: 1px solid var(--line); }
.summary .total .value { font-family: var(--font-display); font-feature-settings: "tnum" 1, "lnum" 1; font-size: 28px; font-weight: 600; letter-spacing: var(--display-tracking); }

/* ------------------------------------------------------------------ тикеты */

.thread { display: flex; flex-direction: column; gap: 14px; }
.msg { border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--surface); }
.msg-head { display: flex; justify-content: space-between; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--line); font-size: 13.5px; color: var(--text-3); }
.msg-head .who { color: var(--text); font-weight: 600; display: flex; gap: 8px; align-items: center; }
.msg-body { padding: 14px 16px; font-size: 15px; line-height: 1.6; overflow-wrap: anywhere; }
.msg-staff { background: color-mix(in srgb, var(--brand-soft) 45%, var(--surface)); border-color: color-mix(in srgb, var(--brand) 18%, var(--line)); }
.msg-staff .msg-head { border-bottom-color: color-mix(in srgb, var(--brand) 14%, var(--line)); }
.msg-internal { background: var(--warn-bg); border-color: var(--warn-line); }
.msg-files { display: flex; gap: 8px; flex-wrap: wrap; padding: 0 16px 14px; }
.msg-files a { display: inline-flex; gap: 6px; align-items: center; font-size: 13.5px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 7px; color: var(--text-2); background: var(--surface); }

/* ------------------------------------------------------------------ окна (dialog) */

.dialog {
  width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 0; border: 1px solid var(--line);
  border-radius: var(--radius-l); background: var(--surface); color: var(--text); box-shadow: var(--shadow-pop);
}
.dialog-wide { width: min(760px, calc(100vw - 32px)); }
.dialog::backdrop { background: rgba(16, 24, 40, .38); backdrop-filter: blur(2px); }
.dialog[open] { animation: dialog-in .16s ease-out; }
@keyframes dialog-in { from { opacity: 0; transform: translateY(8px) scale(.985); } to { opacity: 1; transform: none; } }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px 6px; }
.dialog-head h2 { font-size: 18px; }
.dialog-body { padding: 10px 22px 22px; }
.dialog-body > :last-child { margin-bottom: 0; }
.dialog-close { margin: -6px -8px -6px 0; }

/* Список действий: строка = значок, название, пояснение; открывает окно или ведёт на страницу. */
.action-list { list-style: none; margin: 0; padding: 6px; }
.action-list li + li { margin-top: 2px; }
.action-list button, .action-list a {
  display: flex; align-items: flex-start; gap: 12px; width: 100%; padding: 10px 12px; border: 0; border-radius: var(--radius-s);
  background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer;
}
.action-list button:hover, .action-list a:hover { background: var(--surface-2); text-decoration: none; }
.action-list .icon { width: 18px; height: 18px; margin-top: 1px; color: var(--brand); }
.action-list .is-danger .icon, .action-list .is-danger .t { color: var(--danger-ink); }
.action-list .t { display: block; font-weight: 500; font-size: 14.5px; }
.action-list .d { display: block; color: var(--text-3); font-size: 13px; margin-top: 1px; }

/* ------------------------------------------------------------------ страницы входа */

.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: var(--surface); }
.auth-main { display: flex; flex-direction: column; justify-content: center; padding: 48px clamp(24px, 6vw, 96px); background: var(--surface); }
.auth-main .brand { padding: 0 0 36px; }
.auth-main h1 { font-family: var(--font-display); font-size: 32px; font-weight: 600; letter-spacing: var(--display-tracking); margin-bottom: 8px; }
.auth-main .lead { color: var(--text-2); margin-bottom: 26px; }
.auth-form { width: 100%; max-width: 400px; }
.auth-foot { margin-top: 22px; color: var(--text-2); font-size: 14.5px; }
.auth-side {
  position: relative; margin: 16px 16px 16px 0; border-radius: 24px; overflow: hidden;
  background: linear-gradient(160deg, var(--brand-soft), color-mix(in srgb, var(--brand-soft) 50%, var(--surface)));
  color: var(--text); display: flex; flex-direction: column; justify-content: center; padding: 48px clamp(24px, 5vw, 80px);
}
.auth-side .rack { width: 100%; max-width: 420px; display: grid; gap: 10px; }
.rack-unit { display: flex; align-items: center; gap: 12px; height: 48px; padding: 0 16px; border-radius: 12px; background: var(--surface); border: 1px solid color-mix(in srgb, var(--brand) 12%, var(--line)); font-size: 14px; font-weight: 500; color: var(--text); box-shadow: 0 8px 20px -14px rgba(20, 60, 160, .35); }
.rack-unit .slots { margin-left: auto; display: flex; gap: 4px; }
.rack-unit .slots i { display: block; width: 16px; height: 5px; border-radius: 3px; background: var(--muted-bg); }
.rack-unit .slots i:first-child { background: color-mix(in srgb, var(--brand) 35%, var(--surface)); }
.auth-side .tagline { font-family: var(--font-display); font-size: 28px; line-height: 1.25; color: var(--text); max-width: 20ch; margin: 36px 0 10px; font-weight: 600; letter-spacing: var(--display-tracking); }
.auth-side .note { color: var(--text-2); max-width: 46ch; font-size: 14.5px; }
.rack .rack-unit { opacity: 0; animation: unit-on .45s ease-out forwards; }
.rack .rack-unit:nth-child(2) { animation-delay: .07s; } .rack .rack-unit:nth-child(3) { animation-delay: .14s; }
.rack .rack-unit:nth-child(4) { animation-delay: .21s; } .rack .rack-unit:nth-child(5) { animation-delay: .28s; }
.rack .rack-unit:nth-child(6) { animation-delay: .35s; }
@keyframes unit-on { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .rack .rack-unit { opacity: 1; } }

/* ------------------------------------------------------------------ установка, ошибки */

.center-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 32px 16px; background: var(--surface-2); }
.center-card { width: 100%; max-width: 640px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 32px; }
.center-card h1 { font-family: var(--font-display); font-size: 30px; font-weight: 600; margin-bottom: 10px; letter-spacing: var(--display-tracking); }
.error-code { font-family: var(--font-display); font-size: 64px; font-weight: 600; color: var(--brand); line-height: 1; margin-bottom: 12px; letter-spacing: -.03em; }

/* ------------------------------------------------------------------ адаптив */

@media (max-width: 1100px) {
  .layout-aside { grid-template-columns: minmax(0, 1fr); }
  .summary { position: static; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .main { grid-column: 1; }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: 280px; z-index: 60; transform: translateX(-102%); transition: transform .18s ease; box-shadow: var(--shadow-pop); padding-left: 12px; }
  .nav a.is-active { margin-right: 12px; border-radius: var(--radius-s); }
  .nav a.is-active .count { margin-right: 0; }
  .app.nav-open .sidebar { transform: none; }
  .nav-backdrop { display: none; }
  .app.nav-open .nav-backdrop { display: block; position: fixed; inset: 0; background: rgba(16, 24, 40, .38); z-index: 55; }
  .topbar { padding: 0 16px; gap: 10px; }
  .topbar .menu-toggle { display: inline-flex; }
  .content { padding: 20px 16px 48px; }
  .impersonation { padding: 8px 16px; }
  .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .auth { grid-template-columns: minmax(0, 1fr); }
  .auth-side { display: none; }
  .auth-main { padding: 32px 16px; }
  .search-box { max-width: none; }
  .cron-pill span { display: none; }
  .cron-pill { padding: 0 9px; }
}
@media (max-width: 640px) {
  .form-grid, .form-grid-3 { grid-template-columns: minmax(0, 1fr); }
  .page-head { margin-bottom: 20px; }
  .page-head h1 { font-size: 24px; }
  .wallet { grid-template-columns: minmax(0, 1fr); padding: 18px; }
  .wallet .amount { font-size: 34px; }
  .runway-marks { display: none; }
  .svc { grid-template-columns: auto minmax(0, 1fr); padding: 14px 16px; }
  .svc .due, .svc .price { grid-column: 2; text-align: left; }
  .svc .due .rel, .svc .price .per { display: inline; margin-left: 6px; }
  .svc-list.has-actions .svc { grid-template-columns: auto minmax(0, 1fr); }
  .svc-act { grid-column: 2; justify-content: flex-start; margin-top: 4px; }
  .svc-act .btn { width: auto; }
  .kv { grid-template-columns: minmax(0, 1fr); gap: 2px 0; }
  .kv dd { margin-bottom: 10px; }
  .filters { padding: 12px 16px; }
  .kind-bar { padding: 12px 16px 0; }
  .kind-tabs { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow-x: visible; }
  .kind-tabs a { justify-content: center; min-width: 0; padding: 6px 8px; }
  .kind-tabs a .icon { display: none; }
  .kind-tabs .t { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .kind-tabs a > .count, .kind-tabs a > .kind-alert { flex: none; }
  .filters .input, .filters .select, .filters .input[type="search"] { min-width: 0; width: 100%; }
  .table { font-size: 13.5px; }
  .hide-sm { display: none !important; }
  .page-head .actions { width: 100%; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { padding: 14px 16px; }
  .stat .value { font-size: 21px; }
  .panel-head { padding: 12px 16px; min-height: 0; }
  .panel-body { padding: 14px 16px 16px; }
  .list > li, .attention li { padding: 12px 16px; }

  /* Таблицы на телефоне — карточками: подписи берутся из шапки (app.js ставит data-label). */
  .table-stack thead { display: none; }
  .table-stack, .table-stack tbody, .table-stack tr, .table-stack td { display: block; width: 100%; }
  .table-stack tr { padding: 10px 16px; border-bottom: 1px solid var(--line); }
  .table-stack tbody tr:last-child { border-bottom: 0; }
  .table-stack td { border: 0 !important; padding: 3px 0 !important; text-align: left !important; display: flex; gap: 12px; justify-content: space-between; align-items: baseline; background: none !important; }
  .table-stack td[data-label]::before { content: attr(data-label); color: var(--text-3); font-size: 12.5px; flex: none; max-width: 45%; }
  .table-stack td:first-child { display: block; padding-bottom: 4px !important; }
  .table-stack td:first-child::before { content: none; }
  .table-stack td > .cv { min-width: 0; text-align: right; }
  .table-stack td:not([data-label]) > .cv { text-align: left; }
  .table-stack td.actions, .table-stack td.cell-check { justify-content: flex-start; }
  .table-stack td:empty { display: none; }
  .table-stack tfoot { display: block; }
}

@media print {
  .sidebar, .topbar, .impersonation, .page-head .actions, .no-print { display: none !important; }
  .app { display: block; }
  body { background: #fff; }
  .panel { border: 0; }
}

/* ------------------------------------------------------------------ тикет как чат */

/* Окно чата помещается в экран: лента прокручивается внутри, поле ответа всегда видно. */
.chat {
  display: flex; flex-direction: column; min-width: 0; height: calc(100vh - 230px); min-height: 520px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); overflow: hidden;
}
.chat-log {
  flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; gap: 4px; padding: 18px 20px 20px;
  overflow-y: auto; overscroll-behavior: contain; background: var(--surface-2); scroll-behavior: smooth;
}
.chat-log > :first-child { margin-top: auto; }
.chat-empty { margin: auto; color: var(--text-3); }
.chat-day { display: flex; justify-content: center; margin: 12px 0 8px; }
.chat-day span { padding: 2px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--text-3); font-size: 12.5px; font-weight: 500; }
.chat-row { display: flex; align-items: flex-end; gap: 10px; max-width: min(78%, 760px); margin-top: 10px; }
.chat-row.is-cont { margin-top: 2px; }
.chat-row.is-mine { align-self: flex-end; flex-direction: row-reverse; }
.chat-row.is-theirs { align-self: flex-start; }
.chat-avatar { flex: none; width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--surface); border: 1px solid var(--line); color: var(--text-2); font-size: 12px; font-weight: 600; }
.chat-row.is-cont .chat-avatar { visibility: hidden; }
.chat-bubble { min-width: 0; padding: 9px 14px 6px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 1px 1px rgba(20, 32, 56, .04); }
.chat-row.is-theirs .chat-bubble { border-bottom-left-radius: 6px; }
.chat-row.is-mine .chat-bubble { background: var(--brand-soft); border-color: color-mix(in srgb, var(--brand) 18%, var(--line)); border-bottom-right-radius: 6px; }
.chat-row.is-cont.is-theirs .chat-bubble { border-top-left-radius: 6px; }
.chat-row.is-cont.is-mine .chat-bubble { border-top-right-radius: 6px; }
.chat-row.is-internal .chat-bubble { background: var(--warn-bg); border-color: var(--warn-line); border-style: dashed; }
.chat-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 2px; font-size: 13px; }
.chat-name { font-weight: 600; color: var(--text); }
.chat-tag { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 500; color: var(--text-3); background: var(--muted-bg); padding: 0 7px; border-radius: 999px; line-height: 18px; }
.chat-tag .icon { width: 11px; height: 11px; }
.chat-tag.is-note { background: var(--surface); color: var(--warn-ink); border: 1px solid var(--warn-line); }
.chat-tag.is-support { background: var(--brand-soft); color: var(--brand-ink); }
.chat-text { font-size: 15px; line-height: 1.55; overflow-wrap: anywhere; color: var(--text); }
.chat-files { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chat-files a { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 5px 10px; border-radius: 9px; background: color-mix(in srgb, var(--surface) 70%, transparent); border: 1px solid var(--line); color: var(--text); font-size: 13px; }
.chat-files a:hover { border-color: var(--brand); text-decoration: none; }
.chat-files a span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 260px; }
.chat-files .icon { width: 14px; height: 14px; color: var(--text-3); }
.chat-files small { color: var(--text-3); font-size: 12px; }
.chat-time { margin-top: 2px; text-align: right; color: var(--text-3); font-size: 11.5px; font-variant-numeric: tabular-nums; }

.chat-compose { padding: 14px 16px 14px; border-top: 1px solid var(--line); background: var(--surface); }
.chat-compose:has(input[name="internal"][value="1"]:checked) { background: color-mix(in srgb, var(--warn-bg) 55%, var(--surface)); }
.chat-compose-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.chat-compose-top .segmented .icon { width: 14px; height: 14px; }
.chat-input { min-height: 76px; max-height: 360px; resize: none; border-radius: 12px; font-size: 15px; }
.chat-compose-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.chat-attach { position: relative; overflow: hidden; cursor: pointer; }
.chat-attach input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; font-size: 0; }
.chat-attach:focus-within { outline: 2px solid var(--focus); outline-offset: 2px; }
.chat-status { display: flex; align-items: center; gap: 8px; }
.chat-status label { color: var(--text-3); font-size: 13px; white-space: nowrap; }
.chat-status .select { width: auto; min-width: 200px; }
.chat-files-picked { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chat-files-picked span { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: var(--muted-bg); color: var(--text-2); font-size: 12.5px; }
.chat-files-picked .icon { width: 13px; height: 13px; }

@media (max-width: 900px) {
  .chat { height: auto; min-height: 0; }
  .chat-log { padding: 14px 12px; }
  .chat-row { max-width: 92%; }
  .chat-status .select { min-width: 0; }
}

/* ------------------------------------------------------------------ скидки */

.discount-size { display: inline-block; padding: 0 8px; border-radius: 999px; background: var(--ok-bg); color: var(--ok-ink); font-weight: 600; font-size: 12.5px; line-height: 21px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.promo-code { display: inline-block; padding: 1px 8px; border: 1px dashed var(--line-strong); border-radius: 6px; font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 13px; font-weight: 600; letter-spacing: .03em; color: var(--text); background: var(--surface-2); }
.discount-value { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.discount-input { max-width: 200px; }
.discount-input .input { font-size: 17px; font-weight: 600; }

/* Верх длинного списка: поиск слева, переключатель страниц справа (он же внизу списка). */
.list-top { display: flex; align-items: center; justify-content: space-between; gap: 0 12px; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.list-top > .filters { border-bottom: 0; flex: 1 1 auto; }
.pagination-top { border-top: 0; border-bottom: 1px solid var(--line); padding: 8px 20px; }
.list-top > .pagination-top { border-bottom: 0; justify-content: flex-end; }
@media (max-width: 720px) { .list-top > .pagination-top { width: 100%; justify-content: space-between; padding-top: 0; } }

/* Моноширинные поля (ключи, адреса) и форма в одну строку (пароль + кнопка) */
.mono, .input.mono, textarea.mono { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; }
textarea.mono { font-size: 13px; }
.form-inline { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.form-inline .field { margin-bottom: 0; min-width: 220px; }
pre.code { display: block; padding: 10px 12px; overflow-x: auto; white-space: pre; line-height: 1.5; }

/* Карточка SSL-сертификата (client/services/_ssl) */
.ssl-card h3 { font-size: 1rem; margin: 1.25rem 0 .5rem; }
.ssl-card code.break { word-break: break-all; white-space: normal; }
.ssl-card .panel-head h2 { display: flex; align-items: center; gap: .5rem; }
