/* Нейрополис — «Пульт города», the admin panel (owner: admin). Calm control room in the EAI style: white panels,
   hairline grids, tabular numbers, Rubik for figures. Every colour is a token from eai.css.
   Chart series slots (validated categorical order, see dataviz): c1 blue · c2 orange · c3 teal · c4 yellow-d · c5 purple · c6 pink;
   k1–k3 neutral ramp for costs. Status (good / bad) only for margins and verdicts, always with a sign or icon. */
.adm {
  --adm-c1: var(--blue); --adm-c2: var(--orange); --adm-c3: var(--teal); --adm-c4: var(--yellow-d); --adm-c5: var(--purple); --adm-c6: var(--pink);
  --adm-k1: var(--ink2); --adm-k2: var(--ink3); --adm-k3: var(--line2);
  --adm-grid: #e8eef9; --adm-axis: var(--line2); --adm-row: #f8fbff;
  position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column;
  background: var(--panel2); color: var(--ink); font-family: var(--font); font-weight: 600;
}
.adm[hidden] { display: none; }
body.adm-on .scrim { z-index: 110; } /* dialogs opened from the panel sit above it, toasts (120) stay on top */
.adm button { -webkit-tap-highlight-color: transparent; }
.adm .muted { color: var(--ink2); } .adm .faint { color: var(--ink3); }
.adm .btn.flat { box-shadow: none; } /* eai.css: .btn.sm would add an edge to flat buttons */

/* ---------------------------------------------------------------- top bar */
.adm-top { display: flex; align-items: center; gap: 12px; padding: 10px 16px; padding-top: calc(10px + env(safe-area-inset-top, 0px)); background: var(--panel); border-bottom: 1px solid var(--line); min-height: 64px; flex: none; }
.adm-brand { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1; }
.adm-logo { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: var(--ink); color: #fff; font: 800 0.86rem/1 var(--display); letter-spacing: 0.04em; box-shadow: var(--sh-1); }
.adm-brand__t { display: flex; flex-direction: column; min-width: 0; }
.adm-brand__t b { font: 700 1.08rem/1.2 var(--display); }
.adm-top__src { font-size: 0.8rem; color: var(--ink2); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.adm-top__act { display: flex; align-items: center; gap: 10px; flex: none; }
.adm-x { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--panel2); color: var(--ink2); display: grid; place-items: center; flex: none; }
.adm-x:hover { background: var(--panel3); color: var(--ink); }
.adm-x .ico { width: 22px; height: 22px; }
.adm-refresh .ico { width: 1.05em; height: 1.05em; }
.adm-show-s { display: none; }

/* switch (demo data, campaign on/off) */
.adm-switch { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; font-weight: 800; font-size: 0.86rem; color: var(--ink2); user-select: none; }
.adm-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.adm-switch__ui { position: relative; flex: none; width: 42px; height: 24px; border-radius: 999px; background: var(--line2); transition: background 0.15s; }
.adm-switch__ui::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(27, 42, 74, 0.3); transition: transform 0.15s; }
.adm-switch input:checked + .adm-switch__ui { background: var(--yellow-d); }
.adm-switch input:checked + .adm-switch__ui::after { transform: translateX(18px); }
.adm-switch input:focus-visible + .adm-switch__ui { outline: 3px solid var(--yellow); outline-offset: 2px; }
.adm-switch.sm { min-height: 36px; }
.adm-camp .adm-switch input:checked + .adm-switch__ui { background: var(--green); }

/* demo banner */
.adm-demo { flex: none; padding: 7px 16px; text-align: center; font-size: 0.86rem; font-weight: 700; color: #6b4b00; background: repeating-linear-gradient(135deg, var(--yellow-l) 0 16px, #ffefb8 16px 32px); border-bottom: 1px solid #f1d98a; }
.adm-demo b { letter-spacing: 0.12em; font-family: var(--display); font-weight: 800; }
.adm-demo[hidden] { display: none; }

/* ---------------------------------------------------------------- layout */
.adm-body { flex: 1; display: flex; min-height: 0; }
.adm-nav { flex: none; width: 216px; padding: 14px 10px; display: flex; flex-direction: column; gap: 4px; background: var(--panel); border-right: 1px solid var(--line); overflow-y: auto; }
.adm-nav__b { display: flex; align-items: center; gap: 11px; min-height: 46px; padding: 8px 14px; border: 0; border-radius: 13px; background: transparent; color: var(--ink2); font: 700 0.98rem/1.1 var(--display); text-align: left; transition: background 0.12s, color 0.12s; }
.adm-nav__b .ico { width: 20px; height: 20px; }
.adm-nav__b:hover { background: var(--panel2); color: var(--ink); }
.adm-nav__b.on { background: var(--blue-l); color: var(--blue-d); }
.adm.is-locked .adm-nav, .adm.is-locked .adm-switch, .adm.is-locked .adm-refresh { display: none; }
.adm-main { flex: 1; min-width: 0; overflow: auto; padding: 22px 26px 48px; overscroll-behavior: contain; container: adm / inline-size; outline: none; }
.adm-page { max-width: 1360px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.adm-loading { display: flex; align-items: center; gap: 12px; padding: 28px 8px; color: var(--ink2); font-weight: 700; }

/* ---------------------------------------------------------------- cards and text */
.adm-card { position: relative; min-width: 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-m); padding: 18px 20px; box-shadow: var(--sh-1); }
.adm-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.adm-card__titles { min-width: 0; flex: 1 1 260px; }
.adm-h { font: 700 1.06rem/1.25 var(--display); }
.adm-card__sub { margin-top: 3px; font-size: 0.82rem; font-weight: 600; color: var(--ink2); }
.adm-foot { margin-top: 10px; font-size: 0.8rem; font-weight: 600; color: var(--ink3); }
.adm-sub { font-size: 0.76rem; font-weight: 600; color: var(--ink3); }
.adm-sub2 { font-size: 0.78rem; font-weight: 800; color: var(--ink2); margin-top: 6px; }
.adm-mono { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: 0.82rem; font-weight: 600; white-space: nowrap; color: var(--ink2); }
.adm-note { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 14px 18px; border-radius: var(--r-m); background: var(--yellow-l); border: 1px solid #f3dc92; color: #5c4300; font-weight: 700; }
.adm-note .grow { flex: 1 1 280px; display: flex; flex-direction: column; gap: 4px; }
.adm-note__i { font-size: 1.3rem; }
.adm-row2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 16px; }
.adm-row21 { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 16px; }
.adm-inrow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.adm-inrow.between { justify-content: space-between; }

/* hero: the one big number of the overview */
.adm-hero { display: flex; flex-direction: column; justify-content: center; }
.adm-hero__l { font-weight: 800; color: var(--ink2); font-size: 0.92rem; }
.adm-hero__v { font: 800 3.4rem/1.05 var(--display); margin: 6px 0 4px; color: var(--ink); }
.adm-hero__v small { font-size: 1.1rem; font-weight: 700; color: var(--ink2); }
.adm-hero__s { font-size: 0.82rem; color: var(--ink3); font-weight: 600; max-width: 380px; }

/* break-even comparison */
.adm-be__rows { display: flex; flex-direction: column; gap: 12px; }
.adm-be__r { display: grid; grid-template-columns: 160px minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.adm-be__l { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 0.88rem; color: var(--ink2); }
.adm-be__bar { position: relative; height: 14px; border-radius: 4px; background: var(--panel2); overflow: hidden; }
.adm-be__bar > i { position: absolute; inset: 0 auto 0 0; border-radius: 0 4px 4px 0; min-width: 2px; }
.adm-be__v { font: 700 1.05rem var(--display); min-width: 74px; text-align: right; font-variant-numeric: tabular-nums; }
.adm-verdict { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 10px 14px; border-radius: 12px; font-weight: 800; font-size: 0.92rem; }
.adm-verdict.is-ok { background: var(--green-l); color: var(--green-d); }
.adm-verdict.is-bad { background: var(--red-l); color: var(--red-d); }
.adm-verdict__i { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 0.85rem; }
.is-ok > .adm-verdict__i { background: var(--green-d); } .is-bad > .adm-verdict__i { background: var(--red-d); }

/* KPI tiles */
.adm-tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.adm-tiles4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.adm-tiles4 .adm-tile__value { font-size: 1.45rem; white-space: normal; overflow-wrap: anywhere; }
.adm-tile { min-width: 0; display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-m); padding: 14px 16px 10px; box-shadow: var(--sh-1); }
.adm-tile__label { font-size: 0.8rem; font-weight: 800; color: var(--ink2); line-height: 1.2; min-height: 1.2em; }
.adm-tile__value { font: 700 1.75rem/1.15 var(--display); margin-top: 6px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.adm-tile__sub { font-size: 0.74rem; font-weight: 600; color: var(--ink3); margin-top: 2px; line-height: 1.3; }
.adm-tile__spark { margin-top: auto; padding-top: 8px; height: 38px; }
.adm-tile.is-thin .adm-tile__value { color: var(--ink3); }
.adm-tile.is-bad .adm-tile__value { color: var(--red-d); }

/* ---------------------------------------------------------------- charts */
.adm-chart { position: relative; min-width: 0; }
.adm-chart:focus-visible { outline: 3px solid var(--yellow); outline-offset: 4px; border-radius: 8px; }
.adm-linechart { min-height: 236px; }
.adm-hstack { min-height: 140px; }
.adm-profit { min-height: 230px; }
.adm-svg { display: block; overflow: visible; font-family: var(--font); }
.adm-grid { stroke: var(--adm-grid); stroke-width: 1; }
.adm-axis { stroke: var(--adm-axis); stroke-width: 1; }
.adm-zero { stroke: var(--ink3); }
.adm-tick { fill: var(--ink3); font: 700 11px var(--display); font-variant-numeric: tabular-nums; }
.adm-area { opacity: 0.1; }
.adm-line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.adm-dot { stroke: var(--panel); stroke-width: 2; }
.adm-dot.is-be { fill: var(--panel); stroke: var(--ink); stroke-width: 2.5; }
.adm-dot.is-now { fill: var(--ink); }
.adm-endlab, .adm-marklab { fill: var(--ink); font: 700 12px var(--display); font-variant-numeric: tabular-nums; }
.adm-marklab { paint-order: stroke; stroke: var(--panel); stroke-width: 4px; stroke-linejoin: round; }
.adm-rowlab { fill: var(--ink2); font: 800 12px var(--font); }
.adm-seg { transition: opacity 0.12s; }
.adm-seg.is-hot { opacity: 0.82; }
.adm-seglab { font: 700 11px var(--display); pointer-events: none; }
.adm-cross { stroke: var(--ink3); stroke-width: 1; pointer-events: none; }
.adm-guide { stroke: var(--line2); stroke-width: 1; }
.adm-wash-ok { fill: var(--green-l); opacity: 0.7; }
.adm-wash-bad { fill: var(--red-l); opacity: 0.7; }
.adm-wlab { fill: var(--ink3); font: 800 11px var(--font); }
.adm-hit { cursor: crosshair; outline: none; }
.adm-hstack .adm-hit { cursor: default; }
.adm-tip { position: absolute; z-index: 3; pointer-events: none; min-width: 130px; padding: 8px 11px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); box-shadow: var(--sh-2); font-size: 0.8rem; }
.adm-tip[hidden] { display: none; }
.adm-tip__t { font-weight: 800; color: var(--ink2); margin-bottom: 4px; white-space: nowrap; }
.adm-tip__r { display: flex; align-items: center; gap: 7px; white-space: nowrap; line-height: 1.5; }
.adm-tip__r b { font: 700 0.92rem var(--display); color: var(--ink); font-variant-numeric: tabular-nums; }
.adm-tip__r span { color: var(--ink2); font-weight: 700; }
.adm-tip .adm-key { width: 12px; height: 3px; border-radius: 2px; }
.adm-key { display: inline-block; flex: none; width: 10px; height: 10px; border-radius: 3px; vertical-align: middle; }
.adm-key.line { width: 16px; height: 3px; border-radius: 2px; }
.adm-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 0.8rem; font-weight: 700; color: var(--ink2); }
.adm-legend__i { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.adm-legend-wrap { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.adm-spark { display: block; }
.adm-spark__area { fill: var(--adm-c1); opacity: 0.08; }
.adm-spark__line { fill: none; stroke: var(--ink3); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.adm-spark__dot { fill: var(--adm-c1); stroke: var(--panel); stroke-width: 2; }
.adm-spark__none { stroke: var(--line); stroke-width: 2; }
.adm-twin { margin-top: 10px; }
.adm-twin > summary { cursor: pointer; font-size: 0.82rem; font-weight: 800; color: var(--ink2); padding: 6px 0; width: max-content; }
.adm-twin[open] > summary { margin-bottom: 6px; }
.adm-twin .adm-tw { max-height: 280px; overflow: auto; }
.adm-how { display: flex; flex-direction: column; gap: 6px; font-size: 0.84rem; color: var(--ink2); font-weight: 600; }

/* ---------------------------------------------------------------- tables */
.adm-tw { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -6px; padding: 0 6px; }
.adm-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 0.88rem; }
.adm-table th { text-align: left; padding: 8px 10px; font-size: 0.74rem; font-weight: 800; color: var(--ink2); letter-spacing: 0.02em; white-space: nowrap; border-bottom: 1.5px solid var(--line); background: var(--panel); vertical-align: bottom; }
.adm-table td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.adm-table .n { text-align: right; white-space: nowrap; font-family: var(--display); font-weight: 500; font-variant-numeric: tabular-nums; }
.adm-table tbody tr:hover > td { background: var(--adm-row); }
.adm-table tfoot td { font-weight: 800; background: var(--panel2); border-bottom: 0; border-top: 1.5px solid var(--line2); }
.adm-table tfoot td.n { font-weight: 700; }
.adm-table tr.is-aux td { color: var(--ink2); }
.adm-table tr.is-off td { opacity: 0.55; }
.adm-table tr.is-off td:nth-child(5) { opacity: 1; }
.adm-table .adm-empty { text-align: center; color: var(--ink3); padding: 22px 10px; font-weight: 700; }
.adm-table th[scope='row'] { font-weight: 600; color: var(--ink); font-size: 0.88rem; vertical-align: middle; }
.adm-sticky { position: sticky; left: 0; z-index: 1; background: var(--panel); }
.adm-table tfoot .adm-sticky { background: var(--panel2); }
.adm-sort button { border: 0; background: none; padding: 0; font: inherit; color: inherit; cursor: pointer; white-space: nowrap; }
.adm-sort.on button { color: var(--blue-d); }
.adm-rank { width: 28px; color: var(--ink3); font-family: var(--display); font-weight: 700; }
.adm-wrap { min-width: 220px; max-width: 420px; white-space: normal; }
.adm-b { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.adm-b__e { flex: none; width: 28px; height: 28px; border-radius: 9px; background: var(--panel2); display: grid; place-items: center; font-size: 1rem; }
.adm-b__n { font-weight: 800; }
.adm-cellbar { display: inline-flex; align-items: center; justify-content: flex-end; gap: 8px; }
.adm-ibar { position: relative; display: inline-block; flex: none; width: 56px; height: 6px; border-radius: 3px; background: var(--panel3); overflow: hidden; vertical-align: middle; }
.adm-ibar > i { position: absolute; inset: 0 auto 0 0; border-radius: 0 3px 3px 0; }
.is-pos { color: var(--green-d); } .is-neg { color: var(--red-d); }
.adm-table td.is-pos, .adm-table td.is-neg { font-weight: 700; }
.adm-mbar { position: relative; display: inline-block; width: 46px; height: 6px; margin-right: 8px; border-radius: 3px; background: var(--panel3); overflow: hidden; vertical-align: middle; }
.adm-mbar > i { position: absolute; inset: 0 auto 0 0; border-radius: 0 3px 3px 0; }
.is-pos .adm-mbar > i { background: var(--green); } .is-neg .adm-mbar > i { background: var(--red); }

/* overview: buildings per resident */
.adm-bpu__v { font: 700 2.3rem/1.1 var(--display); margin-bottom: 12px; }
.adm-dist { display: flex; flex-direction: column; gap: 9px; }
.adm-dist__r { display: grid; grid-template-columns: 110px minmax(0, 1fr) 44px; align-items: center; gap: 10px; font-size: 0.84rem; }
.adm-dist__l { color: var(--ink2); font-weight: 700; white-space: nowrap; }
.adm-dist__r .adm-ibar { width: 100%; height: 10px; border-radius: 4px; }
.adm-dist__v { text-align: right; font-family: var(--display); font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- form controls */
.adm-in { width: 100%; min-height: 40px; padding: 7px 11px; border-radius: 11px; border: 1.5px solid var(--line2); background: var(--panel); color: var(--ink); font-weight: 700; font-size: 0.92rem; outline: none; transition: border-color 0.15s, box-shadow 0.15s; }
.adm-in:focus { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-l); }
.adm-in:disabled { background: var(--panel2); color: var(--ink3); }
.adm-in::placeholder { color: var(--ink3); font-weight: 600; }
.adm-ta { resize: vertical; line-height: 1.4; font-weight: 600; }
.adm-sel { padding-right: 28px; cursor: pointer; }
.adm-num { width: 96px; text-align: right; font-family: var(--display); font-weight: 600; font-variant-numeric: tabular-nums; }
.adm-field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.adm-field__l { font-size: 0.8rem; font-weight: 800; color: var(--ink2); }
.adm-field__h { font-size: 0.76rem; font-weight: 600; color: var(--ink3); }
.adm-grid2f { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.adm-emoji { width: 56px; flex: none; text-align: center; font-size: 1.25rem; padding: 4px; }
.adm-emojis, .adm-swatches { display: flex; flex-wrap: wrap; gap: 4px; }
.adm-em { width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line); background: var(--panel); font-size: 1.05rem; display: grid; place-items: center; padding: 0; }
.adm-em:hover { background: var(--panel2); }
.adm-color { width: 56px; height: 40px; padding: 2px; border-radius: 11px; border: 1.5px solid var(--line2); background: var(--panel); cursor: pointer; flex: none; }
.adm-sw { width: 26px; height: 26px; border-radius: 50%; border: 3px solid var(--panel); box-shadow: 0 0 0 1px var(--line2); padding: 0; }
.adm-chip { min-height: 32px; padding: 4px 11px; font-size: 0.82rem; }
.adm-capchips { display: flex; flex-wrap: wrap; gap: 5px; }

/* ---------------------------------------------------------------- constructor */
.adm-ctor__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.adm-ctor__grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 22px; align-items: start; margin-top: 16px; }
.adm-ctor__pv { position: sticky; top: 0; display: flex; flex-direction: column; gap: 8px; }
.adm-ctor__pvh { font-size: 0.78rem; font-weight: 800; color: var(--ink2); letter-spacing: 0.04em; }
.adm-form { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.adm-fs { margin: 0; padding: 14px 16px 16px; border: 1px solid var(--line); border-radius: 16px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.adm-fs > legend { padding: 0 6px; font: 700 0.95rem var(--display); color: var(--ink); }
.adm-act { display: flex; gap: 10px; padding: 10px; border-radius: 14px; background: var(--panel2); }
.adm-act__n { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--blue-l); color: var(--blue-d); font: 700 0.84rem var(--display); display: grid; place-items: center; margin-top: 7px; }
.adm-act__f { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.adm-act__line { display: grid; grid-template-columns: 56px minmax(0, 1fr) minmax(0, 1fr) 168px; gap: 8px; }
.adm-cats { display: flex; flex-direction: column; gap: 10px; max-height: 260px; overflow: auto; padding: 2px; }
.adm-cats__g { display: flex; flex-direction: column; gap: 5px; }
.adm-cats__h { font-size: 0.76rem; font-weight: 800; color: var(--ink2); }
.adm-cats__l { display: flex; flex-wrap: wrap; gap: 5px; }
.adm-form__go { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* preview card */
.adm-pv { --bc: var(--blue); background: var(--panel); border-radius: 24px; border: 3px solid color-mix(in srgb, var(--bc) 30%, #fff); box-shadow: var(--sh-2); overflow: hidden; }
.adm-pv__head { display: flex; align-items: center; gap: 12px; padding: 16px; background: linear-gradient(135deg, color-mix(in srgb, var(--bc) 20%, #fff), #fff 80%); }
.adm-pv__emoji { flex: none; width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; font-size: 1.9rem; background: var(--bc); box-shadow: var(--sh-1); }
.adm-pv__name { font: 800 1.2rem/1.15 var(--display); overflow-wrap: anywhere; }
.adm-pv__about { font-size: 0.84rem; color: var(--ink2); margin-top: 2px; overflow-wrap: anywhere; }
.adm-pv__char { display: flex; align-items: flex-start; gap: 10px; padding: 4px 16px 0; }
.adm-pv__char .ava { width: 46px; height: 46px; }
.adm-pv__ava { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--panel3); color: var(--ink2); font: 800 1.1rem var(--display); }
.adm-pv__bubble { min-width: 0; padding: 8px 12px; border-radius: 4px 16px 16px 16px; background: var(--panel2); font-size: 0.84rem; display: flex; flex-direction: column; gap: 2px; overflow-wrap: anywhere; }
.adm-pv__bubble b { font-family: var(--display); font-weight: 700; }
.adm-pv__acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 14px 16px; }
.adm-pv__act { display: flex; flex-direction: column; gap: 1px; min-width: 0; padding: 9px 10px; border-radius: 14px; border: 2px solid var(--line); background: var(--panel); }
.adm-pv__ico { font-size: 1.35rem; line-height: 1.2; margin-bottom: 2px; }
.adm-pv__act b { font: 700 0.86rem/1.2 var(--display); overflow-wrap: break-word; hyphens: auto; }
.adm-pv__act small { font-size: 0.74rem; line-height: 1.25; color: var(--ink2); overflow-wrap: break-word; }
.adm-pv__kind { font-size: 0.68rem; font-weight: 800; color: var(--ink3); margin-top: 3px; }
.adm-pv__foot { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 16px; }

/* custom buildings list */
.adm-clist { display: flex; flex-direction: column; gap: 8px; }
.adm-citem { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; }
.adm-citem.is-off { background: var(--panel2); }
.adm-citem.is-off .adm-citem__e { filter: grayscale(1); opacity: 0.6; }
.adm-citem .grow { flex: 1 1 200px; }
.adm-citem__e { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 1.3rem; }
.adm-citem__m { font-size: 0.78rem; color: var(--ink3); font-weight: 600; }
.adm-citem__a { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------------------------------------------------------------- models */
.adm-savebar { position: sticky; top: -22px; z-index: 4; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 16px; border-radius: var(--r-m); background: var(--panel); border: 1px solid var(--line); box-shadow: var(--sh-1); }
.adm-savebar .grow { flex: 1 1 260px; display: flex; flex-direction: column; }
.adm-savebar__s { font-size: 0.78rem; color: var(--ink2); font-weight: 600; }
.adm-savebar.is-dirty { border-color: var(--yellow-d); background: var(--yellow-l); }
.adm-caps th[scope='row'] b { font-family: var(--display); font-weight: 700; }
.adm-caps td { min-width: 160px; }
.adm-caps .adm-sel { width: 100%; max-width: 220px; }
.adm-models { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.adm-model { display: flex; flex-direction: column; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); min-width: 0; }
.adm-model__h { display: flex; align-items: flex-start; gap: 10px; }
.adm-model__h b { font: 700 1rem var(--display); }
.adm-model__g { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.adm-ledsum { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.adm-ledsum > div { display: flex; flex-direction: column; padding: 10px 12px; border-radius: 12px; background: var(--panel2); }
.adm-ledsum span { font-size: 0.74rem; font-weight: 800; color: var(--ink2); }
.adm-ledsum b { font: 700 1.15rem var(--display); font-variant-numeric: tabular-nums; }
.adm-bymodel { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }

/* ---------------------------------------------------------------- ads */
.adm-fmt { display: inline-flex; align-items: center; gap: 10px; }
.adm-fmt b { font-weight: 800; }
.adm-prices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 14px; align-items: end; }
.adm-prices .adm-in { max-width: 200px; }
.adm-prices__go { padding-bottom: 2px; }
.adm-camp td { white-space: nowrap; padding-top: 7px; padding-bottom: 7px; }
.adm-camp .adm-num { width: 74px; min-height: 36px; padding: 5px 8px; }
.adm-camp .adm-sel { width: 64px; min-height: 36px; padding: 5px 6px; }
.adm-partner__t { min-width: 0; }
.adm-camp .adm-sub { max-width: 300px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-partner { display: flex; align-items: center; gap: 10px; }
.adm-partner b { font-weight: 800; }
.adm-partner__e { flex: none; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; font-size: 1.05rem; }

/* ---------------------------------------------------------------- moderation */
.adm-reports { display: flex; flex-direction: column; gap: 10px; }
.adm-rep { display: flex; flex-direction: column; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 16px; }
.adm-rep__h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 0.86rem; }
.adm-rep__who { font-weight: 800; color: var(--ink2); }
.adm-rep__body { display: flex; gap: 12px; align-items: flex-start; }
.adm-rep__img { flex: none; width: 96px; height: 96px; object-fit: cover; border-radius: 12px; }
.adm-rep__t { font-weight: 600; white-space: pre-wrap; overflow-wrap: anywhere; }
.adm-rep__f { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.adm-rep__why { display: flex; flex-wrap: wrap; gap: 6px; }
.adm-rep__a { display: flex; gap: 8px; }
.adm-emptybig { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 30px 12px; text-align: center; }
.adm-emptybig > span { font-size: 2.2rem; }
.adm-emptybig b { font: 700 1.1rem var(--display); }

/* ---------------------------------------------------------------- economics */
.adm-model-note { padding: 10px 16px; border-radius: 12px; background: var(--purple-l); color: var(--purple-d); font-size: 0.88rem; font-weight: 700; }
.adm-model-note b { font-family: var(--display); }
.adm-econ { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 18px; align-items: start; }
.adm-econ__in { position: sticky; top: -22px; max-height: calc(100vh - 110px); overflow: auto; overscroll-behavior: contain; padding: 4px 2px 4px 0; }
.adm-econ__form { display: flex; flex-direction: column; gap: 10px; }
.adm-econ__out { container-type: inline-size; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.adm-econ__sum { display: none; }
.adm-econ__sum.is-ok { background: var(--green-l); color: var(--green-d); border: 2px solid var(--green); }
.adm-econ__sum.is-bad { background: var(--red-l); color: var(--red-d); border: 2px solid var(--red); }
.adm-econ__sum span, .adm-econ__sum b { white-space: nowrap; }
.adm-econ__sumv { margin-left: auto; }
.adm-grp { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-m); box-shadow: var(--sh-1); }
.adm-grp > summary { cursor: pointer; padding: 12px 16px; font: 700 0.98rem var(--display); list-style-position: inside; }
.adm-grp__b { display: flex; flex-direction: column; gap: 10px; padding: 0 16px 14px; }
.adm-sl { display: flex; flex-direction: column; gap: 2px; }
.adm-sl__h { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 0.82rem; font-weight: 800; color: var(--ink2); }
.adm-sl__v { display: inline-flex; align-items: center; gap: 4px; flex: none; }
.adm-sl__v .adm-num { width: 104px; min-height: 32px; padding: 3px 8px; }
.adm-sl__u { font-size: 0.78rem; font-weight: 800; color: var(--ink3); min-width: 16px; }
.adm-range { width: 100%; height: 24px; margin: 0; accent-color: var(--blue); cursor: pointer; }
.adm-costs { display: flex; flex-direction: column; gap: 6px; }
.adm-cost { display: grid; grid-template-columns: 10px minmax(0, 1fr) 104px 16px; align-items: center; gap: 8px; font-size: 0.86rem; font-weight: 700; }
.adm-cost .adm-num { width: 104px; min-height: 32px; padding: 3px 8px; }
.adm-keycmp.is-ok { border: 2px solid var(--green); background: linear-gradient(180deg, var(--green-l), var(--panel) 70%); }
.adm-keycmp.is-bad { border: 2px solid var(--red); background: linear-gradient(180deg, var(--red-l), var(--panel) 70%); }
.adm-keycmp__g { display: flex; align-items: center; gap: 18px; }
.adm-keycmp__c { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.adm-keycmp__c span { font-size: 0.86rem; font-weight: 800; color: var(--ink2); }
.adm-keycmp__c b { font: 800 2.3rem/1.15 var(--display); }
.adm-keycmp__vs { flex: none; font: 800 2rem var(--display); color: var(--ink3); }

/* ---------------------------------------------------------------- events */
.adm-evbar { margin-bottom: 10px; }
.adm-evbar .adm-in { flex: 1 1 260px; max-width: 420px; }
.adm-ev { font: 700 0.8rem ui-monospace, 'SF Mono', Menlo, Consolas, monospace; padding: 2px 7px; border-radius: 7px; background: var(--panel2); color: var(--ink); white-space: nowrap; }
.adm-evs td { vertical-align: top; }
.adm-evs tr.is-bad td { background: var(--red-l); }
.adm-props { font-size: 0.8rem; }
.adm-prop { display: inline-flex; gap: 3px; margin: 0 10px 2px 0; overflow-wrap: anywhere; }
.adm-prop i { font-style: normal; font-weight: 800; color: var(--ink3); }
.adm-prop2 { font: 600 0.76rem ui-monospace, 'SF Mono', Menlo, Consolas, monospace; margin-right: 6px; color: var(--ink2); }
.adm-grouprow th { padding-top: 16px; font-size: 0.82rem; color: var(--ink); background: var(--panel); }
.adm-cat td:nth-child(3) { min-width: 260px; }

/* ---------------------------------------------------------------- lock screen */
.adm-lock { max-width: 460px; margin: 10vh auto 0; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; background: var(--panel); border-radius: var(--r-l); padding: 34px 28px; box-shadow: var(--sh-2); }
.adm-lock__i { font-size: 3rem; }

/* ---------------------------------------------------------------- responsive (container = the panel's main area) */
@container adm (max-width: 1080px) {
  .adm-econ { grid-template-columns: 320px minmax(0, 1fr); }
  .adm-ctor__grid { grid-template-columns: minmax(0, 1fr) 300px; }
  .adm-act__line { grid-template-columns: 56px minmax(0, 1fr) 150px; }
  .adm-act__line > :nth-child(3) { grid-column: 2 / 4; grid-row: 2; }
  .adm-ledsum { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@container adm (max-width: 860px) {
  .adm-row2, .adm-row21, .adm-econ, .adm-ctor__grid { grid-template-columns: minmax(0, 1fr); }
  .adm-econ__in { position: static; max-height: none; overflow: visible; padding: 0; }
  .adm-econ__sum { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; position: sticky; top: -22px; z-index: 5; padding: 9px 14px; border-radius: 14px; font: 700 0.92rem var(--display); box-shadow: var(--sh-2); }
  .adm-ctor__pv { position: static; }
  .adm-prices { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@container adm (max-width: 760px) {
  .adm-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .adm-grid2f { grid-template-columns: minmax(0, 1fr); }
  .adm-be__r { grid-template-columns: minmax(0, 1fr) auto; }
  .adm-be__bar { grid-column: 1 / -1; grid-row: 2; }
  .adm-ledsum { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .adm-act__line { grid-template-columns: 56px minmax(0, 1fr); }
  .adm-act__line > :nth-child(3) { grid-column: 1 / 3; grid-row: auto; }
  .adm-act__line > :nth-child(4) { grid-column: 1 / 3; }
  .adm-model__g { grid-template-columns: minmax(0, 1fr); }
  .adm-models { grid-template-columns: minmax(0, 1fr); }
  .adm-hero__v { font-size: 2.8rem; }
  .adm-keycmp__c b { font-size: 1.8rem; }
  .adm-keycmp__g { gap: 10px; }
  .adm-prices { grid-template-columns: minmax(0, 1fr); }
  .adm-prices .adm-in { max-width: none; }
}
@container (max-width: 560px) {
  .adm-tiles4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .adm-top { padding: 8px 12px; padding-top: calc(8px + env(safe-area-inset-top, 0px)); gap: 8px; min-height: 58px; }
  .adm-logo { width: 36px; height: 36px; border-radius: 11px; font-size: 0.76rem; }
  .adm-brand { gap: 9px; }
  .adm-brand__t b { font-size: 1rem; }
  .adm-top__act { gap: 6px; }
  .adm-hide-s { display: none; }
  .adm-show-s { display: inline; }
  .adm-refresh { width: 40px; min-width: 40px; padding: 0; }
  .adm-body { flex-direction: column; }
  .adm-nav { width: auto; flex-direction: row; gap: 6px; padding: 8px 12px; border-right: 0; border-bottom: 1px solid var(--line); overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
  .adm-nav::-webkit-scrollbar { display: none; }
  .adm-nav__b { flex: none; min-height: 40px; padding: 6px 12px; border-radius: 999px; font-size: 0.92rem; gap: 7px; background: var(--panel2); }
  .adm-nav__b .ico { width: 18px; height: 18px; }
  .adm-main { padding: 14px 12px 40px; }
  .adm-card { padding: 14px 14px; }
  .adm-tile { padding: 12px 12px 8px; }
  .adm-tile__value { font-size: 1.45rem; }
  .adm-demo { font-size: 0.78rem; padding: 6px 12px; }
  .adm-savebar, .adm-econ__sum { top: -14px; }
}

/* ---------------------------------------------------------------- v6 premium: tokens of eai.css (light touch, same layout) */
.adm { --display: var(--font); --adm-grid: #ece6dc; --adm-axis: var(--line2); --adm-row: #faf8f4; background: var(--paper); font-weight: 500; }
.adm-top, .adm-nav { background: var(--panel); border-color: var(--line); }
.adm-logo { border-radius: 12px; background: var(--ink); font-family: var(--font); font-weight: 800; letter-spacing: 0.08em; box-shadow: none; }
.adm-brand__t b { font: 700 1.2rem/1.2 var(--serif, 'Playfair Display', Georgia, serif); }
.adm-nav__b { font-weight: 600; border-radius: 10px; }
.adm-nav__b.on { background: var(--ink); color: #fff; }
.adm-nav__b.on .ico { color: #e3c88e; }
.adm-demo { background: var(--gold-ll); color: var(--gold-t); border-bottom: 1px solid #ece0c4; }
.adm-switch input:checked + .adm-switch__ui { background: var(--primary); }
.adm-switch input:focus-visible + .adm-switch__ui { outline-color: var(--primary); }
.adm h2 { font-family: 'Playfair Display', Georgia, serif; }

/* ---------------------------------------------------------------- EAI AI Gateway (models tab) */
.adm-gw { list-style: none; margin: 4px 0 14px; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; counter-reset: gw; }
.adm-gw__step { position: relative; display: flex; flex-direction: column; gap: 3px; padding: 12px 12px 12px 14px; border-radius: 12px; background: var(--panel2); border: 1px solid var(--line); min-width: 0; }
.adm-gw__step:not(:last-child)::after { content: ""; position: absolute; right: -8px; top: 50%; width: 8px; height: 2px; background: var(--line2); }
.adm-gw__step b { font-size: 0.9rem; line-height: 1.2; }
.adm-gw__step small { font-size: 0.74rem; color: var(--ink2); line-height: 1.3; }
.adm-gw__n { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--panel); border: 1px solid var(--line2); font-size: 0.72rem; font-weight: 800; color: var(--ink2); margin-bottom: 4px; }
.adm-gw__step.is-key { background: var(--primary-l, #e3eeee); border-color: var(--primary, #14505c); }
.adm-gw__step.is-key .adm-gw__n { background: var(--primary, #14505c); border-color: var(--primary, #14505c); color: #fff; }
.adm-gw__rule { margin: 0 0 12px; font-size: 0.88rem; line-height: 1.5; color: var(--ink2); max-width: 980px; }
.adm-gw__rule b { color: var(--ink); }
.adm-gw__mix { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.adm-gw__bars { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.adm-gw__bar { display: grid; grid-template-columns: minmax(180px, 320px) 1fr 48px; align-items: center; gap: 10px; font-size: 0.82rem; }
.adm-gw__lbl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink2); font-weight: 600; }
.adm-gw__bar i { display: block; height: 8px; border-radius: 99px; background: var(--panel3, #ece6dc); overflow: hidden; }
.adm-gw__bar i b { display: block; height: 100%; border-radius: 99px; background: var(--primary, #14505c); }
.adm-gw__v { text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; }
.adm-stack { display: flex; flex-wrap: wrap; gap: 6px; }
.adm-stack__m { display: inline-flex; flex-direction: column; padding: 5px 10px; border-radius: 10px; background: var(--panel2); border: 1px solid var(--line); font-size: 0.8rem; font-weight: 700; line-height: 1.2; }
.adm-stack__m small { font-size: 0.68rem; font-weight: 700; color: var(--ink3); text-transform: uppercase; letter-spacing: 0.04em; }
.adm-stack__m.h-ru-self { border-color: #b9d3cf; background: #eef5f3; }
.adm-stack__m.h-ru-api { border-color: #d6cfbf; background: #f6f2e9; }
.adm-stack__m.h-foreign-api { border-color: #e6c9a0; background: #fbf1e2; }
@media (max-width: 1100px) { .adm-gw { grid-template-columns: repeat(3, minmax(0, 1fr)); } .adm-gw__step:nth-child(3)::after { display: none; } }
@media (max-width: 600px) { .adm-gw { grid-template-columns: 1fr 1fr; } .adm-gw__step::after { display: none; } .adm-gw__bar { grid-template-columns: 1fr 70px 36px; } }

/* ---------------------------------------------------------------- «Подключение шлюза» (the EAI AI Gateway server) */
.adm-gwc__now { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 14px; border-radius: 12px; background: var(--panel2); border: 1px solid var(--line); margin-bottom: 14px; }
.adm-gwc__nowt { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 260px; }
.adm-gwc__nowt b { font-size: 0.95rem; }
.adm-gwc__dot { flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--ink3); box-shadow: 0 0 0 4px var(--panel3); }
.adm-gwc__dot.is-ok { background: var(--success); box-shadow: 0 0 0 4px var(--success-l); }
.adm-gwc__dot.is-info { background: var(--primary); box-shadow: 0 0 0 4px var(--primary-l); }
.adm-gwc__dot.is-warn { background: var(--warn); box-shadow: 0 0 0 4px var(--warn-l); }
.adm-gwc__src { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.adm-gwc__src .adm-mono { overflow: hidden; text-overflow: ellipsis; max-width: 360px; }
.adm-gwc__form { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 12px 14px; }
.adm-gwc__btns { grid-column: 1 / -1; display: flex; gap: 8px; flex-wrap: wrap; }
.adm-gwc__res:empty { display: none; }
.adm-gwc__res .adm-verdict { margin-top: 12px; }
.adm-gwc__warn { margin: 8px 0 0; font-size: 0.84rem; font-weight: 700; color: var(--warn-t); }
.adm-gwc__tasks { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: 12px 0 4px; }
.adm-gwc__task { display: inline-flex; flex-direction: column; padding: 5px 10px; border-radius: 10px; background: var(--panel2); border: 1px solid var(--line); font-size: 0.8rem; font-weight: 700; line-height: 1.2; }
.adm-gwc__task small { font-size: 0.66rem; font-weight: 800; color: var(--ink3); text-transform: uppercase; letter-spacing: 0.04em; }
.adm-gwc__table { margin-top: 10px; }
.adm-gwc__host { display: inline-block; padding: 3px 8px; border-radius: 6px; font-size: 0.76rem; font-weight: 700; background: var(--panel3); color: var(--ink2); white-space: nowrap; }
.adm-gwc__host.h-ru-self { background: #eef5f3; color: #2a5f55; }
.adm-gwc__host.h-ru-api { background: #f6f2e9; color: #6b5a33; }
.adm-gwc__host.h-foreign-api { background: #fbf1e2; color: var(--warn-t); }
.adm-gwc__st { display: inline-flex; align-items: center; gap: 7px; font-weight: 800; font-size: 0.84rem; white-space: nowrap; }
.adm-gwc__st i { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--ink3); }
.adm-gwc__st.is-ok { color: var(--success); } .adm-gwc__st.is-ok i { background: var(--success); }
.adm-gwc__st.is-bad { color: var(--danger); } .adm-gwc__st.is-bad i { background: var(--danger); }
.adm-gwc__st.is-unk { color: var(--ink3); }
.adm-gwc__guide { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 10px; }
.adm-gwc__guide summary { cursor: pointer; font-weight: 800; font-size: 0.9rem; color: var(--ink); min-height: 36px; display: flex; align-items: center; gap: 8px; list-style: none; }
.adm-gwc__guide summary::-webkit-details-marker { display: none; }
.adm-gwc__guide summary::before { content: ''; width: 7px; height: 7px; border-right: 2px solid var(--ink2); border-bottom: 2px solid var(--ink2); transform: rotate(-45deg); transition: transform 0.15s; }
.adm-gwc__guide[open] summary::before { transform: rotate(45deg); }
.adm-gwc__guide summary:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; border-radius: 6px; }
.adm-gwc__guide ol { margin: 6px 0 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; font-size: 0.86rem; line-height: 1.5; color: var(--ink2); max-width: 980px; }
.adm-gwc code { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: 0.8rem; background: var(--panel2); border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; color: var(--ink); overflow-wrap: anywhere; }
@media (max-width: 760px) { .adm-gwc__form { grid-template-columns: 1fr; } .adm-gwc__src .adm-mono { max-width: 100%; } }

/* ---------------------------------------------------------------- v8.4: «Реклама детям до 14», services, rules, models */
.adm-kids .adm-prices { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
.adm-kids .adm-prices .adm-in { max-width: 420px; }
.adm-kids__rules { margin: 12px 0 4px; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; font-size: 0.86rem; color: var(--ink2); }
.adm-kids__g { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; margin: 6px 0 4px; }
.adm-kids__grp { display: flex; flex-direction: column; gap: 2px; padding: 9px 12px; border-radius: 12px; background: var(--panel2); border: 1px solid var(--line); }
.adm-kids__grp b { font-size: 0.88rem; }
.adm-kids__p { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 2px; }
.adm-off { margin-left: 6px; vertical-align: middle; }
.adm-svc th { min-width: 180px; }
details.adm-model { gap: 0; padding: 0; }
details.adm-model > summary { cursor: pointer; list-style: none; padding: 12px 14px; border-radius: 16px; }
details.adm-model > summary::-webkit-details-marker { display: none; }
details.adm-model > summary::after { content: '▾'; flex: none; color: var(--ink3); margin-left: 4px; transition: transform 0.15s ease; }
details.adm-model[open] > summary::after { transform: rotate(180deg); }
details.adm-model[open] > summary { border-bottom: 1px solid var(--line); border-radius: 16px 16px 0 0; }
details.adm-model > :not(summary) { margin: 10px 14px 0; }
details.adm-model[open] { padding-bottom: 14px; }
.adm-models { align-items: start; }
.adm-stack__m small { font-size: 0.72rem; }
@container adm (max-width: 760px) {
  .adm-kids .adm-prices { grid-template-columns: minmax(0, 1fr); }
  .adm-kids .adm-prices .adm-in { max-width: none; }
}
.adm-gw__mix .tag { white-space: normal; max-width: 100%; }
/* phones: text ≥ 12 px, taps ≥ 32 px (the sort headers, the sliders, «Таблицей») */
@media (max-width: 760px), (pointer: coarse) {
  .adm-tile__sub, .adm-table th, .adm-pv__act small, .adm-ledsum span, .adm-gw__step small, .adm-gw__n, .adm-stack__m small { font-size: 0.78rem; }
  .adm-sort button { min-height: 32px; min-width: 32px; padding: 6px 0; }
  .adm-range { height: 32px; }
  .adm-twin > summary { min-height: 32px; display: flex; align-items: center; }
}
/* v8.6 «Режим показа», «Безлимит для всех», one account's «Безлимит» */
.adm-demo.adm-unl { color: #7a1f17; background: repeating-linear-gradient(135deg, #fbe3df 0 16px, #f8d4ce 16px 32px); border-bottom-color: #efb8b0; }
.adm-card.adm-pres .adm-pres__sw { margin: 2px 0 4px; }
.adm-card.adm-pres.is-on { border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold-l); }
.adm-card.adm-pres .adm-card__sub { margin-top: 4px; }
.adm-accfind { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.adm-h4 { margin: 0; font-size: 1rem; font-weight: 800; }
.adm-accfind__form { display: flex; gap: 8px; max-width: 460px; }
.adm-accfind__form .input { min-height: 44px; }
.adm-accfind__form .btn { min-height: 44px; flex: none; }
.adm-accfind__row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; overflow-wrap: anywhere; }
/* v8.7 «Приглашения» — the closed test's invite codes (admin.js invitesCard) */
.adm-inv__state { display: flex; flex-direction: column; gap: 6px; }
.adm-inv__mode { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; color: var(--ink2); font-size: 0.9rem; line-height: 1.45; }
.adm-inv__nums { margin: 0; color: var(--ink3); font-size: 0.84rem; }
.adm-inv__nums b { color: var(--ink); font-size: 0.95rem; }
.adm-inv__form { display: grid; grid-template-columns: 120px 120px minmax(160px, 1fr) 130px auto; gap: 10px; align-items: end; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.adm-inv__form .adm-in { min-height: 44px; }
.adm-inv__go { min-height: 44px; }
.adm-inv__list { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.adm-inv__empty { padding: 14px 0; font-size: 0.9rem; }
.adm-inv__row { display: flex; flex-direction: column; gap: 4px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.adm-inv__row.is-new { background: linear-gradient(90deg, var(--success-l), transparent 70%); padding-left: 8px; border-radius: 8px; }
.adm-inv__row.is-off .adm-inv__code { color: var(--ink3); }
.adm-inv__main { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; }
.adm-inv__code { font-size: 1.12rem; font-weight: 800; letter-spacing: 0.08em; color: var(--ink); white-space: nowrap; }
.adm-inv__act { display: flex; flex-wrap: wrap; gap: 6px; }
.adm-inv__act .btn { min-height: 40px; }
.adm-inv__revoke { color: var(--danger); }
.adm-inv__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; font-size: 0.82rem; color: var(--ink3); }
.adm-inv__m + .adm-inv__m::before { content: '·'; margin-right: 6px; color: var(--ink3); }
.adm-inv__note { color: var(--ink2); font-weight: 700; overflow-wrap: anywhere; }
.adm-inv__share { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; padding: 10px 12px; border-radius: 10px; background: var(--panel2); }
.adm-inv__share[hidden] { display: none; }
.adm-inv__urlrow { display: flex; gap: 8px; align-items: center; }
.adm-inv__url { flex: 1 1 auto; min-width: 0; font-size: 0.84rem; }
.adm-inv__urlrow .btn { flex: none; min-height: 40px; }
.adm-inv__more { margin-top: 10px; }
@media (max-width: 760px) {
  .adm-inv__form { grid-template-columns: 1fr 1fr; }
  .adm-inv__form .adm-field:nth-child(3) { grid-column: 1 / -1; }
  .adm-inv__go { justify-content: center; }
  .adm-inv__urlrow { flex-direction: column; align-items: stretch; }
  .adm-inv__urlrow .btn { justify-content: center; }
}
