/* Кабинет астролога. Оформление повторяет astromag.ru: тёплый белый фон, бордово-сливовый акцент,
   светлые заголовки. Внешних шрифтов и CDN нет — политика безопасности кабинета разрешает только
   свои файлы, поэтому Onest с сайта заменён системным набором; при желании шрифт кладётся в static/. */
:root {
  --bg: #f7f3f0;
  --surface: #ffffff;
  --surface-2: #faf7f5;
  --ink: #121212;
  --muted: #6f6560;
  --line: #e4e0dd;
  --line-strong: #cdc5c0;
  --accent: #550d33;
  --accent-ink: #ffffff;
  --accent-soft: #f4e9ef;
  --danger: #b3261e;
  --danger-soft: #fbeceb;
  --warn: #8a5a00;
  --warn-soft: #fdf3dc;
  --ok: #1f6e43;
  --ok-soft: #e6f4ec;
  --radius: 10px;
  --radius-sm: 6px;
  --ring: 0 0 0 3px rgba(85, 13, 51, .20);
  --shadow: 0 1px 2px rgba(18, 18, 18, .05), 0 4px 16px rgba(18, 18, 18, .04);
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --glyph-font: 'Segoe UI Symbol', 'Noto Sans Symbols 2', 'DejaVu Sans', sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 15px/1.5 var(--font);
  min-height: 100vh; display: flex; flex-direction: column;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
/* как на сайте: крупный заголовок светлого начертания, подзаголовки мелкие и плотные */
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; font-weight: 600; }
h1 { font-size: 1.7rem; font-weight: 300; letter-spacing: -.01em; }
h2 { font-size: 1.12rem; font-weight: 500; }
h3 { font-size: 1rem; font-weight: 500; }
p { margin: 0 0 .8em; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.glyph { font-family: var(--glyph-font); font-size: 1.12em; line-height: 1; }
.nowrap { white-space: nowrap; }

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 20px; }
main.wrap { flex: 1; padding-top: 24px; padding-bottom: 40px; }

/* шапка */
.topbar { background: var(--surface); border-bottom: 1px solid var(--line); }
.topbar-in { display: flex; align-items: center; gap: 16px; min-height: 58px; flex-wrap: wrap; }
.brand { font-weight: 600; color: var(--ink); display: inline-flex; align-items: center; gap: 8px; font-size: 1.02rem; }
.brand:hover { text-decoration: none; }
.brand-mark { font-family: var(--glyph-font); color: var(--accent); font-size: 1.3rem; }
.topnav { display: flex; align-items: center; gap: 6px; margin-left: auto; flex-wrap: wrap; }
.topnav a, .topnav .linkbtn {
  color: var(--ink); padding: 6px 10px; border-radius: 8px; font-size: .95rem;
}
.topnav a:hover, .topnav .linkbtn:hover { background: var(--surface-2); text-decoration: none; }
.topnav a.active { background: var(--accent-soft); color: var(--accent); }
.who { color: var(--muted); font-size: .9rem; padding: 0 6px; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
form.inline { display: inline; margin: 0; }

/* подвал */
.footer { border-top: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: .85rem; }
.footer .wrap { padding-top: 14px; padding-bottom: 16px; }
.footer a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.footer a:hover { color: var(--accent); }

/* карточки и блоки */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.card + .card { margin-top: 16px; }
.card h2 { margin-bottom: 12px; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; margin-bottom: 18px; }
.page-head h1 { margin: 0; }
.stack > * + * { margin-top: 16px; }

.notice { border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: 16px; border: 1px solid transparent; }
.notice-error { background: var(--danger-soft); color: var(--danger); border-color: #f1c9c6; }
.notice-warning { background: var(--warn-soft); color: var(--warn); border-color: #f0dca9; }
.notice-success { background: var(--ok-soft); color: var(--ok); border-color: #c3e2cf; }
.notice-info { background: var(--accent-soft); color: var(--accent); border-color: #e3cfdb; }
.notice strong { display: block; margin-bottom: 2px; }

.preparing {
  text-align: center; padding: 40px 20px; border: 1px dashed var(--line-strong);
  border-radius: var(--radius); background: var(--surface-2);
}
.preparing .glyph { font-size: 2.2rem; color: var(--accent); display: block; margin-bottom: 10px; }
.preparing h2 { margin-bottom: 6px; }

/* кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font: inherit; font-weight: 500; line-height: 1.2;
  padding: 10px 16px; border-radius: var(--radius-sm); border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--ink); cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s, box-shadow .15s;
}
.btn:hover { background: var(--surface-2); text-decoration: none; }
.btn:focus-visible { outline: none; box-shadow: var(--ring); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #3e0a26; }
.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-danger:hover { background: #99201a; }
.btn-ghost { border-color: transparent; background: transparent; }
.btn-sm { padding: 6px 10px; font-size: .88rem; }
.btn-block { width: 100%; }
.linkbtn { font: inherit; background: none; border: 0; cursor: pointer; color: var(--accent); padding: 0; }
.linkbtn:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 6px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* поля форм — всегда оформленные, без «голых» контролов браузера */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .label { font-size: .88rem; font-weight: 500; color: #3d3733; }
.field .hint { font-size: .82rem; color: var(--muted); }
.field .error { font-size: .84rem; color: var(--danger); }
.input, .select, .textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--surface);
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  padding: 10px 12px; min-height: 42px;
  transition: border-color .15s, box-shadow .15s, background .15s;
  -webkit-appearance: none; appearance: none;
}
.input::placeholder, .textarea::placeholder { color: #a79e99; }
.input:hover, .select:hover, .textarea:hover { border-color: #b9b4a6; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--accent); box-shadow: var(--ring); }
.has-error .input, .has-error .select, .has-error .textarea { border-color: var(--danger); }
.textarea { min-height: 110px; resize: vertical; line-height: 1.45; }
.select {
  padding-right: 38px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%236f6560' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.select::-ms-expand { display: none; }

.check { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; user-select: none; font-size: .94rem; }
.check input[type=checkbox], .check input[type=radio] {
  -webkit-appearance: none; appearance: none; margin: 0; flex: none;
  width: 18px; height: 18px; border: 1.5px solid var(--line-strong); background: var(--surface);
  border-radius: 5px; display: grid; place-content: center; cursor: pointer;
  transition: background .15s, border-color .15s, box-shadow .15s;
}
.check input[type=radio] { border-radius: 50%; }
.check input:hover { border-color: var(--accent); }
.check input:focus-visible { outline: none; box-shadow: var(--ring); }
.check input[type=checkbox]:checked {
  background: var(--accent); border-color: var(--accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='10' viewBox='0 0 12 10'%3E%3Cpath d='M1.5 5.2l3 3 6-6.4' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
}
.check input[type=radio]:checked { border-color: var(--accent); box-shadow: inset 0 0 0 4px var(--surface); background: var(--accent); }

/* сегментный переключатель */
.segmented { display: inline-flex; flex-wrap: wrap; background: var(--surface-2); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 3px; gap: 3px; }
.segmented label { position: relative; cursor: pointer; }
.segmented input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.segmented span { display: block; padding: 7px 12px; border-radius: 7px; font-size: .92rem; color: #3d3733; transition: background .15s, color .15s; }
.segmented input:checked + span { background: var(--surface); color: var(--accent); box-shadow: 0 1px 3px rgba(18, 18, 18, .12); font-weight: 500; }
.segmented input:focus-visible + span { box-shadow: var(--ring); }

.form-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.col-12 { grid-column: span 12; } .col-8 { grid-column: span 8; } .col-6 { grid-column: span 6; }
.col-4 { grid-column: span 4; } .col-3 { grid-column: span 3; }
.fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.fieldset legend { padding: 0; margin-bottom: 8px; font-size: .88rem; font-weight: 500; color: #3d3733; }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px 16px; }
.form-section-title { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 6px 0 -4px; grid-column: span 12; }

/* автоподсказка городов */
.place-wrap { position: relative; }
.suggest {
  position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 20; list-style: none; margin: 0; padding: 4px;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  box-shadow: 0 10px 30px rgba(18, 18, 18, .12); max-height: 300px; overflow-y: auto;
}
.suggest li { padding: 8px 10px; border-radius: 7px; cursor: pointer; display: flex; justify-content: space-between; gap: 10px; }
.suggest li small { color: var(--muted); white-space: nowrap; }
.suggest li[aria-selected=true], .suggest li:hover { background: var(--accent-soft); }

/* таблицы */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
/* снятая таблица поясов атласа: подпись должна бросаться в глаза, иначе смена расчёта пройдёт незаметно */
.warn { color: var(--danger); font-weight: 500; }
table.data { width: 100%; border-collapse: collapse; font-size: .92rem; }
table.data th, table.data td { padding: 7px 10px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.data th { font-weight: 500; color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; background: var(--surface-2); }
table.data tbody tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover td { background: #faf7f5; }
table.data td.num, table.data th.num { text-align: right; font-variant-numeric: tabular-nums; }
table.data td.pos { font-variant-numeric: tabular-nums; white-space: nowrap; }
table.data td.g { width: 1%; white-space: nowrap; text-align: center; font-family: var(--glyph-font); font-size: 1.1rem; }
.retro { color: var(--danger); font-weight: 600; }
.tag { display: inline-block; font-size: .78rem; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.tag-apply { background: var(--accent-soft); border-color: #e3cfdb; color: var(--accent); }
.tag-admin { background: var(--warn-soft); border-color: #f0dca9; color: var(--warn); }
.tag-off { background: var(--danger-soft); border-color: #f1c9c6; color: var(--danger); }
.tag-exact { background: var(--warn-soft); border-color: #f0dca9; color: var(--warn); }
tr.exact td { font-weight: 600; }
button.sort { font: inherit; font-weight: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
button.sort:hover { color: var(--accent); }
button.sort:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 4px; }
button.sort[data-state="asc"]::after { content: " ↑"; }
button.sort[data-state="desc"]::after { content: " ↓"; }
.show-narrow { display: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.copy-btn { float: right; font-weight: 500; margin-top: -3px; }
.view-toggle { float: right; display: inline-flex; margin: -3px 8px 0 0; }
.view-toggle .btn { border-radius: 0; font-weight: 500; }
.view-toggle .btn:first-child { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.view-toggle .btn:last-child { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; margin-left: -1px; }
.view-toggle .btn[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent); border-color: #e3cfdb; }
table.aspect-grid { border-collapse: collapse; font-size: .85rem; }
table.aspect-grid th, table.aspect-grid td { border: 1px solid var(--line); width: 2.9em; height: 2.6em; padding: 1px; text-align: center; vertical-align: middle; }
table.aspect-grid th { background: var(--surface-2); font-weight: 400; }
table.aspect-grid td.off { background: var(--surface-2); border-color: transparent; }
table.aspect-grid td .g { display: block; font-size: 1.05rem; line-height: 1.1; }
table.aspect-grid td small { display: block; font-size: .66rem; color: var(--muted); white-space: nowrap; }
table.aspect-grid td.exact { font-weight: 700; }
table.aspect-grid td.asp-opposition .g, table.aspect-grid td.asp-square .g { color: var(--danger); }
table.aspect-grid td.asp-trine .g, table.aspect-grid td.asp-sextile .g { color: var(--accent); }
@media print { .view-toggle { display: none; } }
.phase-mark { color: var(--muted); font-size: .8rem; font-weight: 400; }

/* страница карты */
.chart-head { margin-bottom: 14px; }
.chart-head h1 { margin-bottom: 4px; word-break: break-word; }
.chart-meta { display: flex; flex-wrap: wrap; gap: 4px 18px; color: var(--muted); font-size: .92rem; }
.chart-meta b { color: var(--ink); font-weight: 500; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 16px 0 20px; overflow-x: auto; scrollbar-width: thin; }
.tabs a { padding: 10px 14px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; font-weight: 500; }
.tabs a:hover { color: var(--ink); text-decoration: none; }
.tabs a.active { color: var(--accent); border-bottom-color: var(--accent); }
.tabs .spacer { flex: 1; }

.chart-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.wheel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; box-shadow: var(--shadow); position: sticky; top: 16px; }
.wheel { position: relative; }
.wheel svg { display: block; width: 100%; height: auto; max-width: 100%; }
.wheel-zoom { position: absolute; right: 12px; top: 12px; opacity: .25; transition: opacity .15s; }
.wheel:hover .wheel-zoom, .wheel-zoom:focus-visible { opacity: 1; }
dialog.wheel-full { border: 0; border-radius: var(--radius); padding: 10px; width: min(96vw, 96vh); max-width: 96vw; background: var(--surface); }
dialog.wheel-full::backdrop { background: rgba(18, 18, 18, .6); }
dialog.wheel-full svg { display: block; width: 100%; height: auto; }
dialog.wheel-full .close { position: absolute; right: 14px; top: 10px; }
.side > .card { padding: 14px 16px; }
.side .card h2 { font-size: 1rem; margin-bottom: 8px; }
.side .card h3 { font-size: .9rem; margin: 14px 0 6px; color: var(--muted, #6f6560); font-weight: 600; }
.facts { list-style: none; margin: 0; padding: 0; }
.facts li { padding: 4px 0; border-bottom: 1px solid var(--line, #e4e0dd); line-height: 1.45; }
.facts li:last-child { border-bottom: 0; }

.target-form { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; margin-bottom: 18px; }
.target-form .field { width: 170px; }
.target-form .field.wide { width: 320px; max-width: 100%; }
.settings-bar { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin: -8px 0 16px; }
.select-sm { width: auto; padding-top: 6px; padding-bottom: 6px; font-size: .9rem; }
@media print { .settings-bar { display: none; } }
.date-steps { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: -6px 0 18px; }
.date-steps-sep { width: 10px; }
.pager { display: flex; gap: 10px; align-items: center; justify-content: center; margin-top: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 10px; }
.chip { font: inherit; font-size: .9rem; line-height: 1.1; padding: 4px 9px; border-radius: 999px; cursor: pointer;
        border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); }
.chip:hover { background: var(--surface-2); }
.chip:focus-visible { outline: none; box-shadow: var(--ring); }
.chip[aria-pressed="true"] { background: var(--accent-soft); border-color: #e3cfdb; color: var(--accent); font-weight: 500; }
@media print { .chips { display: none; } }
.inline-form { display: inline; margin: 0 6px; }
.tab-action { padding: 10px 14px; color: var(--muted); font-weight: 500; white-space: nowrap; }
.tab-action:hover { color: var(--ink); }

/* печать и PDF: только шапка карты, колесо и таблицы */
@page { size: A4; margin: 12mm; }
@media print {
  .topbar, .footer, .tabs, .target-form, .date-steps, .btn, .notice-warning,
  .pager, button.sort, .wheel-zoom { display: none !important; }
  table.data th button.sort { display: inline !important; }   /* заголовок колонки всё же нужен */
  body { background: #fff; font-size: 10.5pt; }
  .card, .wheel { box-shadow: none; border: 0; padding: 0; break-inside: avoid; }
  .card + .card { margin-top: 10px; }
  .wheel { position: static; max-width: 16cm; margin: 0 auto 10px; }
  .chart-layout { display: block; }
  .table-wrap { overflow: visible; }
  .hide-narrow { display: table-cell !important; }
  /* отбор по объекту прячет строки, а число в заголовке серверное: на бумаге они бы разошлись,
     да и фишки отбора не печатаются — поэтому на печать идут все аспекты */
  table.data tbody tr[hidden] { display: table-row !important; }
  a { color: inherit; text-decoration: none; }
}

/* список карт */
.search { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.search .input { flex: 1 1 240px; max-width: 420px; }
.chart-list { list-style: none; margin: 0; padding: 0; }
.chart-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 4px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.chart-list li:last-child { border-bottom: 0; }
.chart-list .title { font-weight: 600; font-size: 1.02rem; }
.chart-list .sub { color: var(--muted); font-size: .88rem; }
.empty { text-align: center; padding: 36px 16px; color: var(--muted); }

/* вход */
.auth-box { max-width: 420px; margin: 6vh auto 0; }
.auth-box h1 { text-align: center; margin-bottom: 4px; }
.auth-box .lead { text-align: center; color: var(--muted); margin-bottom: 20px; }
.auth-box form .field + .field { margin-top: 14px; }
.auth-box .btn-block { margin-top: 18px; }

.secret { font-family: Consolas, "Courier New", monospace; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; word-break: break-all; user-select: all; }

dl.about { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0 0 12px; }
dl.about dt { color: var(--muted); }
dl.about dd { margin: 0; }

@media (max-width: 960px) {
  .chart-layout { grid-template-columns: minmax(0, 1fr); }
  .wheel { position: static; max-width: 640px; margin: 0 auto; width: 100%; }
}
@media (max-width: 720px) {
  .col-8, .col-6, .col-4, .col-3 { grid-column: span 12; }
  .wrap { padding: 0 16px; }
  main.wrap { padding-top: 16px; }
  .card { padding: 16px; }
  h1 { font-size: 1.3rem; }
  .who { display: none; }
  .target-form .field, .target-form .field.wide { width: 100%; }
  .target-form .btn { width: 100%; }
  table.data th, table.data td { padding: 6px 7px; }
  dl.about { grid-template-columns: 1fr; gap: 0; }
  dl.about dd { margin-bottom: 8px; }
  .hide-narrow { display: none; }
  .show-narrow { display: inline; }
  /* статистика карты: четыре ячейки вида «Огонь 3» должны переноситься, а не требовать прокрутки вбок */
  table.stats, table.stats tbody, table.stats tr, table.stats th, table.stats td { display: block; }
  table.stats tr { display: flex; flex-wrap: wrap; gap: 2px 12px; align-items: baseline;
                   padding: 6px 0; border-bottom: 1px solid var(--line); }
  table.stats tr:last-child { border-bottom: 0; }
  table.stats th { width: 100%; padding: 0 0 2px; text-align: left; }
  table.stats td { padding: 0; }
}

/* вход: основной путь — ссылка на почту, пароль убран под раскрывающийся блок */
.alt-login { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 14px; }
.alt-login summary { cursor: pointer; color: var(--muted); font-size: .92rem; list-style: none; }
.alt-login summary::-webkit-details-marker { display: none; }
.alt-login summary { position: relative; padding-left: 18px; }
.alt-login summary::before {
  content: ""; position: absolute; left: 3px; top: .42em;
  border: 5px solid transparent; border-left-color: currentColor;
  transform-origin: 3px 50%; transition: transform .15s;
}
.alt-login[open] summary::before { transform: rotate(90deg); }
.alt-login summary:hover { color: var(--accent); }
.alt-login form { margin-top: 12px; }
.alt-login .field + .field { margin-top: 10px; }
.alt-login .btn { margin-top: 12px; }

/* журнал писем администратора */
pre.letter {
  margin: 0; white-space: pre-wrap; word-break: break-word;
  font: .9rem/1.55 var(--font); color: var(--ink);
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 12px 14px;
}
.tag-ok { background: var(--ok-soft); border-color: #c3e2cf; color: var(--ok); }

/* личный кабинет и управление */
.cabinet-grid {
  display: grid; gap: 16px; align-items: start;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}
.counters { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 24px; }
.counters li { display: flex; flex-direction: column; min-width: 76px; }
.counters b { font-size: 1.6rem; font-weight: 300; line-height: 1.1; }
.counters span { color: var(--muted); font-size: .84rem; }
.facts-dl { margin: 18px 0 0; border-top: 1px solid var(--line); padding-top: 12px; }
.facts-dl > div { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; font-size: .92rem; }
.facts-dl dt { color: var(--muted); margin: 0; }
.facts-dl dd { margin: 0; text-align: right; }
hr.sep { border: 0; border-top: 1px solid var(--line); margin: 18px 0; }

/* узкое числовое поле прямо в таблице (предел карт у пользователя) */
.input-mini { width: 76px; min-height: 34px; padding: 4px 8px; }
