/* camkit — админка. Продуктовый дашборд: боковое меню (телефон — верхняя полоса и нижняя панель), карточки, KPI, графики inline SVG.
   Системный шрифт (Inter, если установлен), без внешних файлов; CSP default-src 'self' — ни style=, ни data: — динамика через классы и атрибуты SVG.
   Тема: светлая по умолчанию, тёмная — prefers-color-scheme или [data-theme=dark] (переключатель пишет cookie, сервер ставит data-theme).
   Цвета серий графиков (s1…s3) — проверенная палитра dataviz (синий, оранжевый, бирюзовый); статусы — отдельные цвета, всегда со словом. */

:root {
	--bg: #f7f7f8; --side: #f2f2f4; --panel: #fff; --panel2: #fafafa; --chip: #f1f1f3; --hover: #f4f4f6; --input: #fff;
	--line: #e7e7ea; --line2: #d6d6db; --grid: #ececef; --axis: #c9c9cf;
	--tx: #18181b; --tx2: #3f3f46; --mut: #6a6a73;
	--acc: #4f46e5; --acc-hi: #4338ca; --acc-bg: #eef2ff; --acc-line: #c7d2fe; --ring: rgba(79, 70, 229, .28);
	--btn: #4f46e5; --btn-hi: #4338ca; --on-btn: #fff; --mark: #4f46e5;
	--ok: #15803d; --ok-bg: #ecfdf3; --warn: #b45309; --warn-bg: #fffbeb; --bad: #c81e1e; --bad-bg: #fef2f2;
	--g-dot: #0ca30c; --w-dot: #f2a60c; --b-dot: #d03b3b;
	--chg: #8a5a00; --chg-bg: #fff8e6; --chg-line: #f0c45a;
	--s1: #2a78d6; --s2: #eb6834; --s3: #1baf7a; --sn: #9b9ba4;
	--tip-bg: #18181b; --tip-tx: #fafafa; --tip-mut: #a1a1aa; --tip-line: #27272a;
	--sh-1: 0 1px 2px rgba(16, 16, 24, .04), 0 1px 1px rgba(16, 16, 24, .02);
	--sh-2: 0 4px 14px rgba(16, 16, 24, .07), 0 1px 3px rgba(16, 16, 24, .05);
	--pop: 0 16px 40px rgba(16, 16, 24, .16), 0 2px 8px rgba(16, 16, 24, .08);
	--glow1: rgba(99, 102, 241, .16); --glow2: rgba(236, 72, 153, .10); --glow3: rgba(14, 165, 233, .10); --gridc: rgba(24, 24, 27, .045);
	--r: 8px; --r-lg: 12px;
	--font: "Inter var", Inter, InterVariable, system-ui, -apple-system, "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--mono: ui-monospace, SFMono-Regular, "Cascadia Mono", "JetBrains Mono", Menlo, Consolas, "Liberation Mono", monospace;
	color-scheme: light;
}
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--bg: #09090b; --side: #0c0c0e; --panel: #111113; --panel2: #151518; --chip: #1c1c20; --hover: #18181b; --input: #0d0d10;
		--line: #232327; --line2: #303036; --grid: #1f1f23; --axis: #3a3a41;
		--tx: #f4f4f5; --tx2: #d4d4d8; --mut: #a1a1aa;
		--acc: #8b8ffb; --acc-hi: #a5a8ff; --acc-bg: rgba(99, 102, 241, .14); --acc-line: rgba(129, 140, 248, .45); --ring: rgba(129, 140, 248, .35);
		--btn: #5753e0; --btn-hi: #6460ef; --on-btn: #fff; --mark: #5b57e8;
		--ok: #4ade80; --ok-bg: rgba(34, 197, 94, .12); --warn: #fbbf24; --warn-bg: rgba(245, 158, 11, .12); --bad: #f87171; --bad-bg: rgba(239, 68, 68, .13);
		--g-dot: #22c55e; --w-dot: #f5b31a; --b-dot: #ef4444;
		--chg: #f1c95f; --chg-bg: rgba(234, 179, 8, .10); --chg-line: #8c6f22;
		--s1: #3987e5; --s2: #d95926; --s3: #199e70; --sn: #71717a;
		--tip-bg: #fafafa; --tip-tx: #18181b; --tip-mut: #52525b; --tip-line: #e4e4e7;
		--sh-1: 0 1px 0 rgba(255, 255, 255, .025) inset, 0 1px 2px rgba(0, 0, 0, .4);
		--sh-2: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 6px 18px rgba(0, 0, 0, .45);
		--pop: 0 18px 44px rgba(0, 0, 0, .6), 0 2px 8px rgba(0, 0, 0, .4);
		--glow1: rgba(99, 102, 241, .20); --glow2: rgba(236, 72, 153, .10); --glow3: rgba(14, 165, 233, .08); --gridc: rgba(255, 255, 255, .035);
		color-scheme: dark;
	}
}
:root[data-theme="dark"] {
	--bg: #09090b; --side: #0c0c0e; --panel: #111113; --panel2: #151518; --chip: #1c1c20; --hover: #18181b; --input: #0d0d10;
	--line: #232327; --line2: #303036; --grid: #1f1f23; --axis: #3a3a41;
	--tx: #f4f4f5; --tx2: #d4d4d8; --mut: #a1a1aa;
	--acc: #8b8ffb; --acc-hi: #a5a8ff; --acc-bg: rgba(99, 102, 241, .14); --acc-line: rgba(129, 140, 248, .45); --ring: rgba(129, 140, 248, .35);
	--btn: #5753e0; --btn-hi: #6460ef; --on-btn: #fff; --mark: #5b57e8;
	--ok: #4ade80; --ok-bg: rgba(34, 197, 94, .12); --warn: #fbbf24; --warn-bg: rgba(245, 158, 11, .12); --bad: #f87171; --bad-bg: rgba(239, 68, 68, .13);
	--g-dot: #22c55e; --w-dot: #f5b31a; --b-dot: #ef4444;
	--chg: #f1c95f; --chg-bg: rgba(234, 179, 8, .10); --chg-line: #8c6f22;
	--s1: #3987e5; --s2: #d95926; --s3: #199e70; --sn: #71717a;
	--tip-bg: #fafafa; --tip-tx: #18181b; --tip-mut: #52525b; --tip-line: #e4e4e7;
	--sh-1: 0 1px 0 rgba(255, 255, 255, .025) inset, 0 1px 2px rgba(0, 0, 0, .4);
	--sh-2: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 6px 18px rgba(0, 0, 0, .45);
	--pop: 0 18px 44px rgba(0, 0, 0, .6), 0 2px 8px rgba(0, 0, 0, .4);
	--glow1: rgba(99, 102, 241, .20); --glow2: rgba(236, 72, 153, .10); --glow3: rgba(14, 165, 233, .08); --gridc: rgba(255, 255, 255, .035);
	color-scheme: dark;
}
/* Цвет серии: класс s1…s3 (sn — нейтральный) задаёт --c, его берут линии, заливки, полосы и ключи */
.s1 { --c: var(--s1); }
.s2 { --c: var(--s2); }
.s3 { --c: var(--s3); }
.sn { --c: var(--sn); }

/* ---------- основа ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 76px; }
body { margin: 0; background: var(--bg); color: var(--tx); font: 14px/1.5 var(--font); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
	font-feature-settings: "cv11", "ss01", "ss03"; }
a { color: var(--acc); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }
code, .mono, pre, kbd { font-family: var(--mono); font-size: 12.5px; }
code { overflow-wrap: anywhere; background: var(--chip); border-radius: 5px; padding: 1px 5px; }
pre code, .dv code { background: none; padding: 0; }
h1 { font-size: 24px; line-height: 1.2; margin: 0; font-weight: 680; letter-spacing: -.022em; overflow-wrap: anywhere; }
h2 { font-size: 15px; line-height: 1.3; margin: 0 0 14px; font-weight: 650; letter-spacing: -.01em; }
h3 { font-size: 13px; margin: 0 0 8px; font-weight: 650; }
p { margin: 0 0 8px; }
b, strong { font-weight: 650; }
.mut { color: var(--mut); }
.small { font-size: 12px; }
.ok { color: var(--ok); }
.nowrap { white-space: nowrap; }
.grow { flex: 1 1 auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ic { flex: none; display: block; stroke-width: 1.85; }
ul.plain { margin: 0; padding-left: 16px; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
a:focus-visible, button:focus-visible, summary:focus-visible, [tabindex]:focus-visible { border-radius: 6px; }
.skip { position: absolute; left: -9999px; top: 8px; }
.skip:focus { left: 8px; z-index: 100; background: var(--panel); padding: 6px 10px; border-radius: 6px; box-shadow: var(--pop); }
::selection { background: var(--acc-bg); }

/* ---------- каркас ---------- */
.shell { display: flex; min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; width: 240px; flex: none; display: flex; flex-direction: column; gap: 4px; padding: 16px 12px 14px;
	background: var(--side); border-right: 1px solid var(--line); overflow-y: auto; }
.side-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 2px 6px 16px; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--tx); font-weight: 720; font-size: 16.5px; letter-spacing: -.03em; }
.brand:hover { text-decoration: none; }
.ck-mark { display: block; flex: none; }
.ck-mark-bg { fill: var(--mark); }
.ck-mark-ring { fill: none; stroke: #fff; stroke-width: 2.3; }
.ck-mark-lens { fill: #fff; }
.ck-mark-rec { fill: #ff4d5e; }
.srv { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px 0 8px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel);
	font-size: 11.5px; font-weight: 600; color: var(--tx2); white-space: nowrap; }
.srv i { width: 6px; height: 6px; border-radius: 50%; background: var(--w-dot); }
.srv-prod i { background: var(--g-dot); }
.side-nav { display: grid; gap: 2px; }
.side-nav a { display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 10px; border-radius: 8px; color: var(--tx2); font-weight: 550; font-size: 13.5px; }
.side-nav a .ic { width: 17px; height: 17px; color: var(--mut); }
.side-nav a:hover { background: var(--hover); color: var(--tx); text-decoration: none; }
.side-nav a[aria-current] { background: var(--panel); color: var(--tx); box-shadow: var(--sh-1), inset 0 0 0 1px var(--line); }
.side-nav a[aria-current] .ic { color: var(--acc); }
.nav-badge { margin-left: auto; min-width: 19px; height: 19px; padding: 0 6px; border-radius: 10px; background: var(--b-dot); color: #fff; font-size: 11px; font-weight: 700;
	display: inline-grid; place-items: center; font-variant-numeric: tabular-nums; }
.side-foot { margin-top: auto; display: grid; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.me { display: flex; align-items: center; gap: 10px; padding: 6px; border-radius: 9px; color: var(--tx); min-width: 0; }
.me:hover, .me.is-on { background: var(--hover); text-decoration: none; }
.me-t { min-width: 0; line-height: 1.25; }
.me-t b { display: block; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-t small { color: var(--mut); font-size: 11.5px; }
.avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex: none; color: #fff; font-weight: 700; font-size: 13px;
	background: linear-gradient(135deg, #6366f1, #a855f7); }
.avatar-lg { width: 52px; height: 52px; font-size: 21px; }
.side-acts { display: flex; gap: 6px; padding: 0 2px; }
.logout-form { margin: 0; display: contents; }
.main-col { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.mtop { display: none; }
.wrap { width: 100%; max-width: 1360px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }
main.wrap { padding-top: 28px; padding-bottom: 40px; flex: 1 0 auto; }
.foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; color: var(--mut); font-size: 12px; padding-top: 4px; padding-bottom: 24px; }
.tabbar { display: none; }

.icon-btn { display: inline-grid; place-items: center; width: 32px; height: 32px; flex: none; padding: 0; border: 1px solid var(--line); border-radius: 8px;
	background: var(--panel); color: var(--tx2); cursor: pointer; box-shadow: var(--sh-1); }
.icon-btn:hover { background: var(--hover); color: var(--tx); }
.icon-btn[aria-pressed="true"] { background: var(--acc-bg); color: var(--acc); }
.icon-btn .ic { width: 16px; height: 16px; }
.theme-btn .ic { display: none; }
.theme-btn .ic-auto { display: block; }
.ic-auto .fill { fill: currentColor; }
:root[data-theme="dark"] .theme-btn .ic-auto, :root[data-theme="light"] .theme-btn .ic-auto { display: none; }
:root[data-theme="dark"] .theme-btn .ic-moon, :root[data-theme="light"] .theme-btn .ic-sun { display: block; }

.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: var(--mut); margin: -6px 0 14px; }
.crumbs a { color: var(--mut); }
.crumbs a:hover { color: var(--acc); }
.crumbs .sep { color: var(--line2); }
.crumbs [aria-current] { color: var(--tx2); font-weight: 550; }

/* ---------- сообщения ---------- */
.flashes { display: grid; gap: 8px; margin-bottom: 18px; }
.flash { display: flex; align-items: flex-start; gap: 10px; padding: 11px 12px 11px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel);
	font-size: 13.5px; box-shadow: var(--sh-2); }
.flash > span { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; padding-top: 1px; }
.flash > .ic { margin-top: 2px; width: 17px; height: 17px; }
.flash-ok > .ic { color: var(--ok); }
.flash-ok { border-color: color-mix(in srgb, var(--g-dot) 35%, var(--line)); }
.flash-err > .ic { color: var(--bad); }
.flash-err { border-color: color-mix(in srgb, var(--b-dot) 40%, var(--line)); background: var(--bad-bg); }
.flash-info > .ic { color: var(--acc); }
.flash-x { border: 0; background: none; color: var(--mut); cursor: pointer; padding: 2px; border-radius: 6px; }
.flash-x:hover { color: var(--tx); background: var(--hover); }
.alert { border-radius: 10px; padding: 10px 12px; margin: 12px 0; font-size: 13px; border: 1px solid var(--line); background: var(--panel2); }
.alert ul { margin: 6px 0 0; padding-left: 18px; }
.alert > .ic { width: 16px; height: 16px; margin-top: 1px; }
.alert-err { background: var(--bad-bg); border-color: color-mix(in srgb, var(--b-dot) 35%, transparent); }
.alert-err b, .alert-err > .ic { color: var(--bad); }
.alert-warn, .alert-info, .alert-err:has(> .ic) { display: flex; gap: 9px; align-items: flex-start; }
.alert-warn { background: var(--warn-bg); border-color: color-mix(in srgb, var(--w-dot) 40%, transparent); }
.alert-warn > .ic { color: var(--warn); }
.alert-info { background: var(--acc-bg); border-color: var(--acc-line); }
.alert-info > .ic { color: var(--acc); }
.note { font-size: 12.5px; color: var(--mut); margin: 12px 0 0; }
.lead { margin: 0 0 16px; font-size: 13px; max-width: 900px; }

/* ---------- заголовки, вкладки ---------- */
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px 16px; flex-wrap: wrap; margin: 0 0 22px; }
.page-head > div:first-child { min-width: 0; }
.sub { margin: 6px 0 0; color: var(--mut); font-size: 13.5px; display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
.sub b { color: var(--tx2); }
.h1-sub { font-weight: 450; color: var(--mut); font-size: 17px; letter-spacing: -.01em; }
.head-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.sec-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 28px 0 12px; }
.sec-h h2 { margin: 0; font-size: 16px; display: flex; align-items: center; gap: 8px; }
.count-chip { display: inline-grid; place-items: center; min-width: 22px; height: 20px; padding: 0 7px; border-radius: 10px; background: var(--chip); color: var(--tx2);
	font-size: 11.5px; font-weight: 650; font-variant-numeric: tabular-nums; }
.count-chip.tone-bad { background: var(--bad-bg); color: var(--bad); }
.count-chip.tone-warn { background: var(--warn-bg); color: var(--warn); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { display: inline-flex; align-items: center; gap: 7px; padding: 9px 12px; color: var(--mut); border-bottom: 2px solid transparent; margin-bottom: -1px; font-weight: 550; white-space: nowrap; }
.tabs a .ic { width: 15px; height: 15px; }
.tabs a:hover { text-decoration: none; color: var(--tx); }
.tabs a[aria-current] { color: var(--tx); border-bottom-color: var(--acc); }
.tabs a[aria-current] .ic { color: var(--acc); }
.site-head-in { display: flex; align-items: center; gap: 14px; min-width: 0; }
.site-head-in .glyph { border-radius: 12px; box-shadow: var(--sh-2); }
.niche-inline { font-size: 12.5px; }

/* ---------- карточки, сетки ---------- */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; box-shadow: var(--sh-1); margin-bottom: 16px; min-width: 0; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 6px 12px; flex-wrap: wrap; margin-bottom: 14px; }
.card-h h2 { margin: 0; display: flex; align-items: center; gap: 8px; }
.card-h h2 .ic { width: 17px; height: 17px; color: var(--acc); }
.more-link { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 550; }
.more-link .ic { width: 14px; height: 14px; transition: transform .15s; }
.more-link:hover { text-decoration: none; }
.more-link:hover .ic { transform: translateX(2px); }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; margin-bottom: 16px; }
.cards > .card, .grid-2 > .card, .grid-3 > .card { margin: 0; }
.card-wide { grid-column: 1 / -1; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; align-items: start; }
.dash-row { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); align-items: stretch; }
.mini-h { font-size: 12px; font-weight: 600; color: var(--mut); margin: 16px 0 8px; }

/* KPI */
.kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpis-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.kpi { position: relative; display: flex; flex-direction: column; gap: 3px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg);
	padding: 14px 16px 12px; box-shadow: var(--sh-1); color: var(--tx); min-width: 0; overflow: hidden; }
a.kpi { transition: border-color .15s, box-shadow .15s; }
a.kpi:hover { text-decoration: none; border-color: var(--line2); box-shadow: var(--sh-2); }
.kpi-l { display: flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 550; color: var(--tx2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi-l .ic { width: 15px; height: 15px; color: var(--mut); }
.kpi-v { font-size: 28px; font-weight: 680; letter-spacing: -.028em; line-height: 1.15; white-space: nowrap; }
.kpi-v small { font-size: 15px; color: var(--mut); font-weight: 500; letter-spacing: 0; }
.kpi-s { font-size: 12px; color: var(--mut); display: flex; flex-wrap: wrap; gap: 3px 8px; align-items: center; min-height: 20px; }
.kpi .spark { margin-top: 6px; }
.kpi-tab.is-on { border-color: var(--acc-line); box-shadow: 0 0 0 3px var(--ring), var(--sh-1); }
.kpi.tone-bad .kpi-v { color: var(--bad); }
.kpi.tone-warn .kpi-v { color: var(--warn); }
.kpi.tone-bad { border-color: color-mix(in srgb, var(--b-dot) 35%, var(--line)); }
.key { display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--c, var(--s1)); flex: none; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 16px; }
.tiles-3 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.tile { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px 16px; box-shadow: var(--sh-1); min-width: 0; }
.tile-l { font-size: 12.5px; color: var(--tx2); font-weight: 550; }
.tile-v { font-size: 24px; font-weight: 680; letter-spacing: -.025em; line-height: 1.3; display: flex; align-items: center; flex-wrap: wrap; gap: 0 6px; }
.tile-v small { font-size: 13px; color: var(--mut); font-weight: 450; letter-spacing: 0; }
.tile-v-sm { font-size: 16px; letter-spacing: -.01em; }
.tile-s { font-size: 12px; color: var(--mut); overflow-wrap: anywhere; }
.tile-bad { border-color: color-mix(in srgb, var(--b-dot) 40%, var(--line)); }
.tile-bad .tile-v { color: var(--bad); }
.tile-warn .tile-v { color: var(--warn); }

/* «сейчас на сайтах» */
.live-pill { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel);
	color: var(--tx2); font-size: 13px; box-shadow: var(--sh-1); white-space: nowrap; }
a.live-pill:hover { text-decoration: none; border-color: var(--line2); }
.live-pill b { color: var(--tx); font-variant-numeric: tabular-nums; }
.live-pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--line2); }
.live-pill.is-live i, .now-dot { background: var(--g-dot); }
.now-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 5px; vertical-align: 1px; }
@media (prefers-reduced-motion: no-preference) {
	.live-pill.is-live i { animation: ck-live 2s ease-out infinite; }
	.st-bad .sdot { animation: ck-alarm 2s ease-out infinite; }
}
@keyframes ck-live { 0% { box-shadow: 0 0 0 0 rgba(12, 163, 12, .45); } 70%, 100% { box-shadow: 0 0 0 8px rgba(12, 163, 12, 0); } }
@keyframes ck-alarm { 0% { box-shadow: 0 0 0 0 rgba(208, 59, 59, .5); } 70%, 100% { box-shadow: 0 0 0 7px rgba(208, 59, 59, 0); } }

/* ---------- значки, статусы, изменения ---------- */
.badge { display: inline-flex; align-items: center; gap: 3px; padding: 0 7px; border-radius: 6px; font-size: 11.5px; font-weight: 600; line-height: 19px;
	background: var(--chip); color: var(--tx2); border: 1px solid transparent; white-space: nowrap; vertical-align: 1px; }
.badge .ic { width: 12px; height: 12px; }
.badge.ok { background: var(--ok-bg); color: var(--ok); }
.badge.bad { background: var(--bad-bg); color: var(--bad); }
.badge.warn { background: var(--warn-bg); color: var(--warn); }
.badge.acc { background: var(--acc-bg); color: var(--acc); }
.badge.chg { background: var(--chg-bg); color: var(--chg); border-color: var(--chg-line); }
.badge.mut { color: var(--mut); background: transparent; border-color: var(--line); }
a.badge:hover { text-decoration: none; border-color: currentColor; }
.ext { display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; }
.ext .ic { width: 12px; height: 12px; opacity: .7; }
.ext.prod { color: var(--tx2); }
.st { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; color: var(--tx2); white-space: nowrap; }
.sdot { width: 8px; height: 8px; border-radius: 50%; background: var(--mut); flex: none; }
.st-ok .sdot { background: var(--g-dot); box-shadow: 0 0 0 3px color-mix(in srgb, var(--g-dot) 18%, transparent); }
.st-warn .sdot { background: var(--w-dot); box-shadow: 0 0 0 3px color-mix(in srgb, var(--w-dot) 22%, transparent); }
.st-bad .sdot { background: var(--b-dot); }
.st-off .sdot { background: transparent; box-shadow: inset 0 0 0 1.5px var(--mut); }
.st-warn { color: var(--warn); }
.st-bad { color: var(--bad); }
.st-off { color: var(--mut); }
.delta { display: inline-flex; align-items: center; gap: 2px; font-size: 12px; font-weight: 650; border-radius: 6px; padding: 1px 6px 1px 4px; line-height: 18px;
	font-variant-numeric: tabular-nums; white-space: nowrap; }
.delta .ic { width: 12px; height: 12px; stroke-width: 2.6; }
.delta.good { color: var(--ok); background: var(--ok-bg); }
.delta.bad { color: var(--bad); background: var(--bad-bg); }
.delta.flat, .delta.new { color: var(--mut); background: var(--chip); padding: 1px 6px; }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 6px; background: var(--mut); vertical-align: 1px; flex: none; }
.fr-ok .dot { background: var(--g-dot); }
.fr-warn .dot { background: var(--w-dot); }
.fr-bad .dot { background: var(--b-dot); }
.fr-none .dot { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line2); }
.fr-bad { color: var(--bad); }
.fr-warn { color: var(--warn); }
.fr-none { color: var(--mut); }
.legend { margin-top: 12px; line-height: 1.7; }
.legend span { margin-right: 10px; white-space: nowrap; }
.lg { display: inline-block; width: 8px; height: 14px; border-radius: 2px; margin: 0 5px 0 6px; vertical-align: -2px; }
.lg-up { background: var(--g-dot); opacity: .75; }
.lg-warn { background: var(--w-dot); }
.lg-down { background: var(--b-dot); }
.lg-none { background: var(--line2); }

/* ---------- панель фильтров ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; margin-bottom: 12px; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 18px; }
.search { display: inline-flex; align-items: center; gap: 7px; background: var(--input); border: 1px solid var(--line2); border-radius: 9px; padding: 0 10px;
	height: 34px; min-width: 200px; flex: 0 1 300px; color: var(--mut); box-shadow: var(--sh-1); }
.search .ic { width: 15px; height: 15px; }
.search:focus-within { border-color: var(--acc); box-shadow: 0 0 0 3px var(--ring); }
.search input { border: 0 !important; background: transparent !important; outline: 0; box-shadow: none !important; color: var(--tx); height: 32px; min-height: 0 !important;
	flex: 1 1 auto; min-width: 0; font: inherit; font-size: 13.5px; padding: 0 !important; }
.seg { display: inline-flex; flex-wrap: nowrap; gap: 2px; padding: 3px; background: var(--chip); border-radius: 10px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg > button, .seg label > span { display: flex; align-items: center; gap: 6px; border: 0; background: transparent; border-radius: 7px; padding: 0 11px; height: 28px;
	font: inherit; font-size: 13px; font-weight: 550; color: var(--mut); cursor: pointer; white-space: nowrap; }
.seg > button:hover, .seg label > span:hover { color: var(--tx); }
.seg > button.on, .seg input:checked + span { background: var(--panel); color: var(--tx); box-shadow: var(--sh-1), 0 0 0 1px var(--line); }
.seg label { position: relative; margin: 0; display: block; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.seg input:focus-visible + span { outline: 2px solid var(--acc); outline-offset: -1px; }
.seg-sm > button { height: 26px; font-size: 12.5px; }
.count { font-size: 12.5px; }
.linkish { border: 0; background: none; color: var(--acc); font: inherit; cursor: pointer; padding: 0; }
.linkish:hover { text-decoration: underline; }

/* ---------- таблицы ---------- */
.tbl-wrap { overflow-x: auto; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1); }
.card .tbl-wrap, .kv .tbl-wrap, .tbl-flat { box-shadow: none; }
.card .tbl-wrap { border-radius: var(--r); }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th, .tbl td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.tbl thead th { font-size: 11.5px; font-weight: 600; color: var(--mut); background: var(--panel2); white-space: nowrap; letter-spacing: .01em; }
.tbl tbody th { font-weight: 600; }
.tbl tbody tr { transition: background-color .1s; }
.tbl tbody tr:hover { background: var(--hover); }
.tbl tbody tr:last-child > * { border-bottom: 0; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl b { font-weight: 650; }
th[data-sort] { cursor: pointer; user-select: none; }
th[data-sort]::after { content: "↕"; opacity: .35; margin-left: 4px; font-size: 11px; }
th[data-sort]:hover { color: var(--tx); }
th[aria-sort="ascending"]::after { content: "↑"; opacity: 1; }
th[aria-sort="descending"]::after { content: "↓"; opacity: 1; }
.tbl-mini { font-size: 12.5px; }
.tbl-mini th, .tbl-mini td { padding: 6px 10px; }
.tbl tr.zero td { color: var(--mut); }
.tbl tr.is-open { background: color-mix(in srgb, var(--bad-bg) 60%, transparent); }

/* сводка: сайты */
.tbl-sites td { padding-top: 12px; padding-bottom: 12px; }
.c-site { min-width: 270px; }
.site-cell { display: flex; gap: 12px; align-items: flex-start; }
.site-glyph { flex: none; display: block; line-height: 0; border-radius: 10px; }
.site-glyph .glyph { border-radius: 10px; box-shadow: var(--sh-1); }
.glyph { display: block; flex: none; }
.site-main { min-width: 0; }
.site-line { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 8px; }
.site-link { font-weight: 650; font-size: 14px; color: var(--tx); }
.site-brand { color: var(--mut); font-size: 12.5px; }
.site-sub { font-size: 12px; margin-top: 3px; display: flex; flex-wrap: wrap; gap: 2px 12px; align-items: center; }
.site-acts { font-size: 12px; display: flex; gap: 12px; margin-top: 6px; }
.site-acts a { display: inline-flex; align-items: center; gap: 4px; color: var(--mut); }
.site-acts a .ic { width: 13px; height: 13px; }
.site-acts a:hover { color: var(--acc); text-decoration: none; }
.niche { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; max-width: 260px; font-size: 12px; color: var(--mut); }
.big { font-size: 15px; font-weight: 650; }
.provs { display: flex; flex-wrap: wrap; gap: 2px 8px; justify-content: flex-end; font-size: 11.5px; color: var(--tx2); margin-top: 2px; font-variant-numeric: tabular-nums; }
.kpi .provs, .kpi-s .prov { justify-content: flex-start; }
.prov { white-space: nowrap; }
.prov i { font-style: normal; color: var(--mut); margin-right: 3px; font-size: 10.5px; font-weight: 650; }
.prov.off { color: var(--mut); opacity: .6; }
.caches { display: grid; grid-template-columns: repeat(2, max-content); gap: 3px 12px; font-size: 12px; white-space: nowrap; }
.cache { display: inline-flex; align-items: center; }
.c-state { min-width: 140px; }
.c-live { min-width: 150px; }
.c-live .provs { display: grid; grid-template-columns: repeat(2, max-content); justify-content: end; gap: 1px 10px; }
.c-live .mut.small { white-space: nowrap; margin-top: 2px; }
.cron-at { display: flex; align-items: center; gap: 5px; margin-top: 5px; }
.cron-at .ic { width: 12px; height: 12px; }
.c-spark { width: 128px; }
.c-spark .spark { width: 112px; height: 30px; }
.errs { white-space: normal; margin-top: 4px; }
.errs summary { cursor: pointer; list-style: none; display: inline-block; font-size: 12px; color: var(--warn); font-weight: 550; }
.errs summary::-webkit-details-marker { display: none; }
.errs summary::after { content: " ▾"; font-size: 10px; }
.errs ul { margin: 6px 0 0; padding-left: 16px; font-size: 12px; color: var(--tx2); max-width: 360px; overflow-wrap: anywhere; }
.site-mini { display: inline-flex; align-items: center; gap: 8px; color: var(--tx); font-weight: 600; }
.site-mini .glyph { border-radius: 6px; }

/* журнал */
.c-det { min-width: 220px; }
.dv { display: inline-block; background: var(--chip); border-radius: 5px; padding: 0 6px; margin: 1px 3px 1px 0; font-size: 12px; font-family: var(--mono); overflow-wrap: anywhere; }
.dv i { font-style: normal; color: var(--mut); }

/* ---------- графики ---------- */
.tc { position: relative; }
.tc-tabs { margin-bottom: 14px; }
.tc-pane { position: relative; border-radius: 8px; outline: none; }
.tc-pane:focus-visible { box-shadow: 0 0 0 2px var(--ring); }
.tc-plot { display: block; width: 100%; height: 260px; overflow: visible; touch-action: pan-y; cursor: crosshair; }
.card-chart .tc-plot { height: 230px; }
.tc-plot .grid, .cols .grid { stroke: var(--grid); stroke-width: 1; shape-rendering: crispEdges; }
.tc-plot .base, .cols .base, .cols .axis { stroke: var(--axis); stroke-width: 1; shape-rendering: crispEdges; }
.tc-in { overflow: visible; }
.tc-area { fill: var(--c); opacity: .1; }
.tc-line { fill: none; stroke: var(--c); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.tc-end, .tc-dot { fill: var(--c); stroke: var(--panel); stroke-width: 2; }
.tc-x { stroke: var(--axis); stroke-width: 1; shape-rendering: crispEdges; }
.ytick { font-size: 11px; fill: var(--mut); paint-order: stroke; stroke: var(--panel); stroke-width: 3px; stroke-linejoin: round; font-variant-numeric: tabular-nums; }
.tc-xaxis { display: block; width: 100%; height: 18px; overflow: visible; margin-top: 8px; }
.tc-xaxis text { font-size: 11px; fill: var(--mut); font-variant-numeric: tabular-nums; }
.tc-tip, .ck-tip { position: absolute; z-index: 50; pointer-events: none; min-width: 150px; max-width: 280px; background: var(--tip-bg); color: var(--tip-tx);
	border: 1px solid var(--tip-line); border-radius: 10px; box-shadow: var(--pop); padding: 8px 11px; font-size: 12.5px; line-height: 1.45; }
.ck-tip { position: fixed; min-width: 0; }
.tt-d { color: var(--tip-mut); font-size: 11.5px; margin-bottom: 5px; }
.tt-r { display: flex; align-items: center; gap: 8px; }
.tt-r + .tt-r { margin-top: 2px; }
.tt-k { width: 12px; height: 3px; border-radius: 2px; background: var(--c); flex: none; }
.tt-l { color: var(--tip-mut); flex: 1 1 auto; }
.tt-v { font-weight: 700; font-variant-numeric: tabular-nums; }
.tt-r.is-act .tt-l { color: var(--tip-tx); }
.tc-table { margin-top: 12px; }
.tc-table > summary, .hl-more > summary, .acct-more > summary, .json > summary, .login-help > summary {
	cursor: pointer; font-size: 12.5px; color: var(--mut); font-weight: 550; list-style: none; display: inline-flex; align-items: center; gap: 5px; }
.tc-table > summary::-webkit-details-marker, .hl-more > summary::-webkit-details-marker, .acct-more > summary::-webkit-details-marker,
.json > summary::-webkit-details-marker, .login-help > summary::-webkit-details-marker { display: none; }
.tc-table > summary::before, .hl-more > summary::before, .acct-more > summary::before, .json > summary::before, .login-help > summary::before {
	content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); transition: transform .15s; margin-right: 2px; }
details[open] > summary::before { transform: rotate(45deg) !important; }
.tc-table > summary:hover, .hl-more > summary:hover, .acct-more > summary:hover, .json > summary:hover, .login-help > summary:hover { color: var(--tx); }
.tc-table .tbl-wrap { margin-top: 8px; max-height: 320px; overflow: auto; }

.spark { display: block; width: 100%; height: 34px; overflow: visible; }
.spark svg { overflow: visible; }
.sp-l { fill: none; stroke: var(--c, var(--s1)); stroke-width: 1.75; stroke-linejoin: round; stroke-linecap: round; }
.sp-a { fill: var(--c, var(--s1)); opacity: .1; }
.sp-d { fill: var(--c, var(--s1)); stroke: var(--panel); stroke-width: 2; }

/* столбики (статистика) */
.chart-h { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 10px; margin-bottom: 12px; }
.chart-h h2 { margin: 0; }
.chart { height: 220px; }
.cols { display: block; width: 100%; height: 220px; overflow: visible; }
.cols .v { fill: var(--c, var(--s1)); }
.cols .hit { fill: transparent; }
.cols .col:hover .hit { fill: var(--hover); }
.cols .col:hover .v { opacity: .8; }
.cols .ytick { stroke: var(--panel); }
.chart-x { display: flex; justify-content: space-between; gap: 8px; margin-top: 8px; font-variant-numeric: tabular-nums; }

/* списки-полосы */
.hl { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; }
.hl-row { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto 44px; gap: 10px; align-items: center; min-height: 32px; padding: 0 10px; font-size: 13px; }
.hl-bar { position: absolute; left: 0; top: 0; width: 100%; height: 100%; z-index: 0; overflow: visible; }
.hl-bar rect { fill: var(--c, var(--s1)); opacity: .12; }
.hl-row:hover .hl-bar rect { opacity: .2; }
.hl-row > span { position: relative; z-index: 1; }
.hl-l { display: flex; align-items: center; gap: 8px; min-width: 0; }
.hl-l > span, .hl-path { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.hl-l .ic { width: 15px; height: 15px; color: var(--mut); }
.hl-path { font-family: var(--mono); font-size: 12px; }
.hl-n { font-weight: 650; font-variant-numeric: tabular-nums; text-align: right; }
.hl-p { color: var(--mut); font-size: 12px; text-align: right; font-variant-numeric: tabular-nums; }
.hl-tag { font-style: normal; font-size: 10.5px; color: var(--mut); border: 1px solid var(--line2); border-radius: 5px; padding: 0 5px; line-height: 16px; flex: none; }
.cc { font-family: var(--mono); font-size: 11px; font-weight: 650; color: var(--tx2); background: var(--chip); border-radius: 4px; padding: 0 5px; line-height: 18px; flex: none; }
.hl-more { margin-top: 8px; }
.hl-more > .hl { margin-top: 6px; }
.hl-empty { color: var(--mut); font-size: 13px; padding: 18px 0; margin: 0; text-align: center; }
.hbar { display: block; width: 100%; height: 6px; min-width: 60px; overflow: visible; }
.hbar-bg { fill: var(--chip); }
.hbar-fg { fill: var(--c, var(--acc)); }
.hbar.ok .hbar-fg { fill: var(--g-dot); }
.hbar.warn .hbar-fg { fill: var(--w-dot); }
.hbar.bad .hbar-fg { fill: var(--b-dot); }
.c-bar { width: 30%; vertical-align: middle !important; }
.meter { display: grid; gap: 7px; margin-top: 8px; }
.meter .hbar { height: 8px; }
.meter-tx { font-size: 13px; font-variant-numeric: tabular-nums; }

/* мониторинг на сводке */
.mon-card { display: flex; flex-direction: column; }
.mon-sum { display: flex; align-items: center; gap: 12px; }
.mon-sum b { display: block; font-size: 15px; }
.mon-sum small { display: block; color: var(--mut); font-size: 12px; margin-top: 1px; }
.mon-ic { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.mon-ic .ic { width: 19px; height: 19px; }
.tone-ok .mon-ic, .tone-ok .banner-ic { background: var(--ok-bg); color: var(--ok); }
.tone-warn .mon-ic, .tone-warn .banner-ic { background: var(--warn-bg); color: var(--warn); }
.tone-bad .mon-ic, .tone-bad .banner-ic { background: var(--bad-bg); color: var(--bad); }
.stackbar { display: block; width: 100%; height: 8px; margin: 16px 0 2px; overflow: visible; }
.sb-ok { fill: var(--g-dot); }
.sb-warn { fill: var(--w-dot); }
.sb-bad { fill: var(--b-dot); }
.kind-sum { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 2px; }
.kind-sum li { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto 104px; gap: 10px; align-items: center; padding: 5px 0; font-size: 13px; }
.kind-sum .mt-ic { width: 26px; height: 26px; border-radius: 7px; }
.kind-sum .ks-n { font-weight: 550; }
.kind-sum .ks-c { color: var(--mut); font-size: 12px; font-variant-numeric: tabular-nums; }
.inc-mini { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.inc-mini li { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-top: 1px solid var(--line); font-size: 13px; min-width: 0; }
.inc-mini li:first-child { border-top: 0; }
.inc-n { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* мониторинг: страница */
.banner { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 16px 18px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--panel);
	box-shadow: var(--sh-1); margin-bottom: 8px; }
.banner.tone-bad { border-color: color-mix(in srgb, var(--b-dot) 45%, var(--line)); background: linear-gradient(90deg, var(--bad-bg), var(--panel) 70%); }
.banner.tone-warn { border-color: color-mix(in srgb, var(--w-dot) 45%, var(--line)); background: linear-gradient(90deg, var(--warn-bg), var(--panel) 70%); }
.banner-ic { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.banner-ic .ic { width: 20px; height: 20px; }
.banner-t { flex: 1 1 260px; min-width: 0; }
.banner-t b { display: block; font-size: 16px; letter-spacing: -.01em; }
.banner-t span { font-size: 13px; color: var(--mut); }
.banner-tg { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--tx2); }
.banner-tg .ic { width: 15px; height: 15px; color: var(--mut); }
.mtiles { list-style: none; margin: 0 0 12px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 12px; }
.mt { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px 16px 12px; box-shadow: var(--sh-1);
	display: flex; flex-direction: column; gap: 8px; min-width: 0; overflow: hidden; }
.mt::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: transparent; }
.mt-bad { border-color: color-mix(in srgb, var(--b-dot) 40%, var(--line)); }
.mt-bad::before { background: var(--b-dot); }
.mt-warn::before { background: var(--w-dot); }
.mt-h { display: flex; align-items: center; gap: 9px; min-width: 0; }
.mt-ic { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--chip); color: var(--tx2); flex: none; }
.mt-ic .ic { width: 15px; height: 15px; }
.mt-n { font-weight: 650; font-size: 13.5px; flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mt-m { margin: 0; font-size: 12.5px; color: var(--tx2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.mt-big .mt-m { -webkit-line-clamp: 5; }
.mt-p { margin: 0; display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--warn); }
.mt-p .ic { width: 13px; height: 13px; }
.mt-strip { display: grid; gap: 4px; }
.strip { display: block; width: 100%; height: 22px; }
.strip rect { transition: opacity .1s; }
.strip rect:hover { opacity: .6; }
.d-up { fill: var(--g-dot); opacity: .72; }
.d-warn { fill: var(--w-dot); }
.d-down { fill: var(--b-dot); }
.d-none { fill: var(--line); }
.mt-sl { display: flex; justify-content: space-between; font-size: 11px; color: var(--mut); font-variant-numeric: tabular-nums; }
.mt-f { display: flex; flex-wrap: wrap; gap: 3px 12px; font-size: 11.5px; color: var(--mut); margin-top: auto; padding-top: 2px; }
.mt-f .ext { color: var(--acc); }
.tbl-inc .c-site { min-width: 180px; }
.tg-card .card-h { margin-bottom: 16px; }
.tg-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
.tg-kv { margin-bottom: 12px; }
.tg-form { display: grid; gap: 14px; }
.tg-acts { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.tg-acts form { margin: 0; }
.steps { margin: 14px 0 0; padding: 0; list-style: none; counter-reset: st; display: grid; gap: 8px; font-size: 13px; color: var(--tx2); }
.steps li { counter-increment: st; display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; }
.steps li::before { content: counter(st); width: 22px; height: 22px; border-radius: 50%; background: var(--chip); color: var(--tx2); font-size: 11.5px; font-weight: 700;
	display: grid; place-items: center; }

/* ---------- формы ---------- */
.fgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; align-items: start; }
.fgrid-1 { grid-template-columns: minmax(0, 1fr); }
.fgrid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fgrid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.span2 { grid-column: 1 / -1; }
.field { min-width: 0; }
.field-stack { display: grid; gap: 10px; align-content: start; }
.lbl { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12.5px; font-weight: 600; color: var(--tx2); margin-bottom: 6px; }
:where(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), select, textarea) {
	width: 100%; font: inherit; font-size: 13.5px; color: var(--tx); background: var(--input); border: 1px solid var(--line2); border-radius: 8px;
	padding: 7px 10px; min-height: 36px; box-shadow: var(--sh-1); transition: border-color .12s, box-shadow .12s; }
select { padding-right: 8px; cursor: pointer; }
textarea { resize: vertical; line-height: 1.5; min-height: 64px; max-height: 480px; field-sizing: content; }
input[type="number"] { font-variant-numeric: tabular-nums; }
input:hover:not(:focus):not([readonly]), select:hover:not(:focus), textarea:hover:not(:focus):not([readonly]) { border-color: color-mix(in srgb, var(--line2) 60%, var(--mut)); }
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--acc); box-shadow: 0 0 0 3px var(--ring); }
input[readonly], textarea[readonly] { background: var(--panel2); color: var(--tx2); }
input::placeholder, textarea::placeholder { color: var(--mut); opacity: .75; }
.hint { font-size: 12px; color: var(--mut); margin-top: 5px; }
.err { font-size: 12.5px; color: var(--bad); margin-top: 5px; font-weight: 550; overflow-wrap: anywhere; }
.has-err input:not([type="checkbox"]), .has-err select, .has-err textarea { border-color: var(--bad); }
.req { color: var(--bad); }
.field.chg { background: var(--chg-bg); box-shadow: inset 3px 0 0 var(--chg-line); border-radius: 8px; padding: 8px 10px 9px 13px; margin: -8px -10px -9px -13px; }
.was { font-size: 12px; color: var(--chg); margin-top: 4px; overflow-wrap: anywhere; }
.was span { font-family: var(--mono); font-size: 11.5px; }
.check { display: inline-flex; align-items: flex-start; gap: 8px; cursor: pointer; font-size: 13.5px; line-height: 1.4; }
.check input { margin: 1px 0 0; width: 16px; height: 16px; accent-color: var(--btn); flex: none; cursor: pointer; }
.checks { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-check { border: 1px solid var(--line2); border-radius: 8px; padding: 6px 10px; background: var(--input); align-items: center; box-shadow: var(--sh-1); }
.chip-check input { margin: 0; }
.chip-check:has(input:checked) { background: var(--acc-bg); border-color: var(--acc-line); }
.inline { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.inline select, .inline input { width: auto; }
.form-acts { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 14px; }
.pw { display: flex; gap: 6px; align-items: center; }
.pw input { flex: 1 1 auto; min-width: 0; }
.pw .icon-btn { height: 36px; width: 36px; }

.prov-rows { display: grid; gap: 10px; }
.prov-row { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; background: var(--panel2); }
.prov-h { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.prov-h:last-child { margin-bottom: 0; }
.prov-h .field { flex: 1 1 auto; }
.prov-h .check span { font-weight: 650; }
.prov-h .field.chg { margin-right: 0; }
.sub-l { font-size: 12px; color: var(--mut); margin: 12px 0 6px; font-weight: 600; }

.savebar { position: sticky; bottom: 12px; z-index: 10; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 10px 12px; margin: 0 0 16px;
	background: color-mix(in srgb, var(--panel) 90%, transparent); backdrop-filter: blur(10px) saturate(1.4); border: 1px solid var(--line2); border-radius: 12px; box-shadow: var(--pop); }
.savebar-note { font-size: 12px; flex: 1 1 280px; }
.json summary { margin: 6px 0; }
.json pre, .json .kv-wrap { background: var(--panel2); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; overflow: auto; max-height: 380px; margin: 8px 0; }
.json pre { white-space: pre; font-size: 12px; }
.reset-form { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }

/* ---------- кнопки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: 9px; border: 1px solid var(--line2);
	background: var(--panel); color: var(--tx); font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; white-space: nowrap; text-decoration: none;
	box-shadow: var(--sh-1); transition: background-color .12s, border-color .12s, box-shadow .12s; }
.btn:hover { background: var(--hover); text-decoration: none; }
.btn:active { transform: translateY(.5px); }
.btn .ic { width: 15px; height: 15px; }
.btn-primary { background: var(--btn); border-color: transparent; color: var(--on-btn); box-shadow: 0 1px 0 rgba(255, 255, 255, .14) inset, 0 1px 2px rgba(16, 16, 40, .25); }
.btn-primary:hover { background: var(--btn-hi); }
.btn-danger { color: var(--bad); border-color: color-mix(in srgb, var(--b-dot) 45%, var(--line2)); }
.btn-danger:hover { background: var(--bad-bg); }
.btn-ghost-danger { background: transparent; border-color: transparent; box-shadow: none; color: var(--bad); }
.btn-ghost-danger:hover { background: var(--bad-bg); }
.btn-sm { height: 30px; padding: 0 11px; font-size: 13px; border-radius: 8px; }
.btn-xs { height: 24px; padding: 0 8px; font-size: 12px; gap: 4px; border-radius: 6px; }
.btn-xs .ic { width: 13px; height: 13px; }
.btn-lg { height: 42px; font-size: 14.5px; border-radius: 10px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn:disabled:hover { background: var(--panel); }
.btn-primary:disabled:hover { background: var(--btn); }
form.busy [type="submit"] { opacity: .7; cursor: progress; }

/* ---------- сайт: состояние ---------- */
.status-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)); gap: 16px 24px; }
.sg { min-width: 0; }
.sg-l { font-size: 12px; color: var(--mut); margin-bottom: 3px; font-weight: 550; }
.sg-v { font-size: 22px; font-weight: 680; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.3; }
.sg-t { font-size: 14px; display: flex; align-items: center; min-height: 28px; }
.status-card .provs { justify-content: flex-start; font-size: 12px; }
.status-card .caches { grid-template-columns: repeat(2, max-content); margin-top: 4px; }
.status-card .alert { margin-bottom: 0; }

/* ---------- ключи ---------- */
.keys-cards { grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); }
.key-card.is-set { box-shadow: inset 3px 0 0 var(--g-dot), var(--sh-1); }
.key-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-bottom: 10px; }
.key-head h2 { margin: 0 4px 0 0; }
.key-test { margin-left: auto; }
.key-card .hint { margin: 0 0 12px; }
.copy-top { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: flex-end; margin-bottom: 12px; }
.copy-top .field { min-width: 220px; flex: 0 1 260px; }
.site-checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 2px 10px; max-height: 340px; overflow: auto; padding: 8px;
	border: 1px solid var(--line); border-radius: 10px; background: var(--panel2); }
.site-check { display: flex; align-items: center; padding: 5px 7px; border-radius: 6px; font-size: 13px; min-width: 0; }
.site-check span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.site-check:hover { background: var(--panel); }
.site-check .has { font-style: normal; margin-left: auto; padding-left: 6px; color: var(--ok); font-size: 12px; font-weight: 700; }
.site-check[data-on="1"] .has::after { content: "✓"; }
.site-check:has(input:checked) { background: var(--acc-bg); }

/* ---------- тексты ---------- */
.langs { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 14px; }
.lang { display: inline-flex; align-items: center; gap: 5px; padding: 3px 11px; min-height: 30px; border: 1px solid var(--line2); border-radius: 8px; background: var(--panel); color: var(--tx2); font-size: 13px; }
.lang b { font-weight: 650; text-transform: uppercase; font-size: 12px; letter-spacing: .03em; }
.lang.off { border-style: dashed; color: var(--mut); }
.lang:hover { text-decoration: none; border-color: var(--acc); color: var(--tx); }
.lang[aria-current] { background: var(--btn); border-color: var(--btn); color: var(--on-btn); border-style: solid; }
.lang-n { font-size: 10.5px; background: var(--chg-bg); color: var(--chg); border-radius: 8px; padding: 0 5px; font-weight: 700; line-height: 16px; }
.seo-group { padding-bottom: 6px; }
.seo-group-h { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 10px; margin-bottom: 4px; }
.seo-group-h h2 { margin: 0; }
.seo-group-h h2 code { font-size: 11.5px; font-weight: 400; }
.seo-row { padding: 14px 0; border-top: 1px solid var(--line); }
.seo-group-h + .seo-row { border-top: 0; }
.seo-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 10px; align-items: baseline; margin-bottom: 6px; }
.seo-key { cursor: pointer; }
.seo-key code { font-size: 12.5px; font-weight: 600; color: var(--tx); background: none; padding: 0; }
.seo-key .mut { font-size: 12.5px; }
.seo-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.lim { font-size: 11.5px; color: var(--mut); border: 1px solid var(--line); border-radius: 5px; padding: 0 5px; white-space: nowrap; }
.ph { font-family: var(--mono); font-size: 11.5px; color: var(--acc); background: var(--acc-bg); border-radius: 5px; padding: 0 5px; }
.seo-base { display: flex; gap: 8px; align-items: flex-start; background: var(--panel2); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; margin-bottom: 6px;
	font-size: 13px; color: var(--tx2); }
.seo-base-l { font-size: 10.5px; font-weight: 700; text-transform: uppercase; color: var(--mut); letter-spacing: .05em; padding-top: 2px; flex: none; }
.seo-base-tx { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.seo-row.chg input, .seo-row.chg textarea { border-color: var(--chg-line); background: var(--chg-bg); }
.seo-row.has-err input, .seo-row.has-err textarea { border-color: var(--bad); }
.seo-foot { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; margin-top: 5px; min-height: 17px; }
.counter { color: var(--mut); font-variant-numeric: tabular-nums; }
.counter.warn { color: var(--warn); font-weight: 600; }
.counter.bad { color: var(--bad); font-weight: 650; }
.counter.is-base { opacity: .8; }
.ph-warn { color: var(--warn); }

/* ---------- статистика ---------- */
.stats-form { padding: 14px 18px; }
.sf-row { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: flex-end; }
.sf { min-width: 0; }
.sf-dates input { width: auto; min-width: 140px; }
.sf-go { margin-left: auto; }
.dd { position: relative; }
.dd > summary { list-style: none; }
.dd > summary::-webkit-details-marker { display: none; }
.dd > summary::after { content: "▾"; margin-left: 2px; color: var(--mut); font-size: 11px; }
.dd-body { position: absolute; z-index: 25; top: calc(100% + 6px); left: 0; width: 300px; max-width: calc(100vw - 32px); background: var(--panel); border: 1px solid var(--line2);
	border-radius: 12px; box-shadow: var(--pop); padding: 10px; }
.dd-tools { display: flex; gap: 6px; align-items: center; margin-bottom: 8px; }
.dd-tools .search { min-width: 0; flex: 1 1 auto; }
.dd-list { max-height: 300px; overflow: auto; display: grid; gap: 1px; }
.dd-list .check { display: flex; align-items: center; padding: 5px 7px; border-radius: 6px; font-size: 13px; }
.dd-list .check .glyph { border-radius: 5px; }
.dd-list .check:hover { background: var(--hover); }
.stats-form .seg label > span { height: 30px; }

/* ---------- сервер ---------- */
pre.log { margin: 0; max-height: 440px; overflow: auto; background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; font-size: 12px;
	line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--tx2); }
.l-err { color: var(--bad); }
.l-warn { color: var(--warn); }
.kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 7px 16px; margin: 0; font-size: 13px; }
.kv dt { color: var(--mut); }
.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.kv .kv { font-size: 12.5px; }
.kv-wrap { overflow-x: auto; }
.api-row { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; margin-bottom: 10px; }
.api-row .cache { white-space: nowrap; }
p.ok { display: flex; align-items: center; gap: 6px; margin: 10px 0; }

/* ---------- аккаунт ---------- */
.acct-grid { align-items: start; }
.acct-who { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.acct-name { font-size: 18px; font-weight: 680; letter-spacing: -.015em; }
.acct-kv { margin-bottom: 16px; }
.acct-logout { margin: 0 0 14px; }
.acct-form { display: grid; gap: 14px; }
.acct-form .form-acts { margin-top: 0; }
.acct-form .note { margin: 0; }
.rules { list-style: none; padding: 0; margin: 0; display: grid; gap: 5px; font-size: 12.5px; color: var(--mut); }
.rules li { display: flex; align-items: center; gap: 8px; }
.rules li::before { content: ""; width: 15px; height: 15px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--line2); flex: none; display: grid; place-items: center;
	font-size: 10px; font-weight: 800; line-height: 1; }
.rules li.ok { color: var(--ok); }
.rules li.ok::before { content: "✓"; color: #fff; background: var(--g-dot); box-shadow: none; }
.rules li.bad { color: var(--bad); }
.rules li.bad::before { content: "✕"; color: #fff; background: var(--b-dot); box-shadow: none; }

/* ---------- пустые состояния, ошибки, подсказка ---------- */
.empty { text-align: center; padding: 36px 20px; color: var(--tx2); }
.empty-sm { padding: 20px 8px; }
.empty-ic { width: 44px; height: 44px; margin: 0 auto 12px; border-radius: 12px; display: grid; place-items: center; background: var(--chip); color: var(--mut); }
.empty-ic .ic { width: 22px; height: 22px; }
.empty-t { font-size: 15.5px; font-weight: 650; color: var(--tx); margin: 0 0 6px; }
.empty p { margin: 4px auto; max-width: 620px; }
.err-page { max-width: 640px; margin: 32px auto; }
.err-code { font-size: 52px; font-weight: 780; letter-spacing: -.04em; color: var(--line2); margin: 0 0 6px !important; line-height: 1; font-variant-numeric: tabular-nums; }
.err-page .btn { margin-top: 12px; }

/* ---------- вход ---------- */
.login-page { min-height: 100vh; min-height: 100dvh; display: flex; }
.login-bg { position: fixed; inset: 0; z-index: 0; pointer-events: none;
	background: radial-gradient(900px 520px at 12% -12%, var(--glow1), transparent 62%), radial-gradient(760px 520px at 105% 0%, var(--glow2), transparent 58%),
		radial-gradient(900px 600px at 50% 118%, var(--glow3), transparent 60%); }
.login-bg::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--gridc) 1px, transparent 1px), linear-gradient(90deg, var(--gridc) 1px, transparent 1px);
	background-size: 44px 44px; -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 38%, #000 25%, transparent 75%); mask-image: radial-gradient(ellipse 70% 60% at 50% 38%, #000 25%, transparent 75%); }
.login-wrap { position: relative; z-index: 1; margin: auto; width: 100%; max-width: 420px; padding: 40px 20px; }
.login-logo { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 24px; }
.login-logo .ck-mark { filter: drop-shadow(0 6px 16px rgba(79, 70, 229, .35)); }
.login-brand span { display: block; font-size: 24px; font-weight: 760; letter-spacing: -.035em; line-height: 1.1; }
.login-brand small { display: block; color: var(--mut); font-size: 12.5px; margin-top: 2px; }
.login-card { background: color-mix(in srgb, var(--panel) 92%, transparent); backdrop-filter: blur(10px) saturate(1.3); border: 1px solid var(--line); border-radius: 16px;
	box-shadow: var(--pop); padding: 28px; }
.login-card h1 { font-size: 22px; }
.login-sub { color: var(--mut); margin: 6px 0 20px; font-size: 13.5px; }
.login-form { display: grid; gap: 16px; }
.login-form .field { margin: 0; }
.in-ic { position: relative; }
.in-ic > .ic { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--mut); pointer-events: none; width: 16px; height: 16px; z-index: 1; }
.in-ic input { padding-left: 38px; min-height: 42px; border-radius: 10px; }
.in-ic.pw .icon-btn { height: 42px; width: 42px; border-radius: 10px; }
.login-submit { width: 100%; margin-top: 4px; }
.login-submit .ic { width: 16px; height: 16px; }
.login-help { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--mut); }
.login-help p { margin: 8px 0 6px; }
.cmd { display: block; padding: 8px 10px; border-radius: 8px; background: var(--chip); font-size: 12px; overflow-x: auto; white-space: nowrap; }
.login-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 16px 2px 0; color: var(--mut); font-size: 12px; }
.login-foot span { display: inline-flex; align-items: center; gap: 6px; }
.login-foot span .ic { width: 13px; height: 13px; }
.login-error, .login-notice { margin: 0 0 16px; }

/* ---------- узкие окна ---------- */
@media (max-width: 1280px) {
	/* 5 плиток — 3 + 2 без пустого места; 6 — 3 + 3 */
	.kpis, .kpis-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
	.kpis > .kpi { grid-column: span 2; }
	.kpis:not(.kpis-6) > .kpi:nth-child(n+4) { grid-column: span 3; }
	.dash-row { grid-template-columns: minmax(0, 1fr); }
	.grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.c-spark { display: none; }
}
@media (max-width: 1100px) {
	.cards { grid-template-columns: minmax(0, 1fr); }
	.tg-grid { grid-template-columns: minmax(0, 1fr); }
	.fgrid-3 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
	.side { display: none; }
	.mtop { display: flex; align-items: center; gap: 10px; position: sticky; top: 0; z-index: 30; height: 56px; padding: 0 16px;
		background: var(--bg); background: color-mix(in srgb, var(--bg) 84%, transparent); backdrop-filter: saturate(1.6) blur(12px); border-bottom: 1px solid var(--line); }
	.mtop .brand { font-size: 16px; }
	.wrap { padding-left: 16px; padding-right: 16px; }
	main.wrap { padding-top: 18px; padding-bottom: 24px; }
	.foot { padding-bottom: calc(90px + env(safe-area-inset-bottom)); }
	.tabbar { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
		padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); background: var(--panel); background: color-mix(in srgb, var(--panel) 88%, transparent);
		backdrop-filter: blur(14px) saturate(1.6); border-top: 1px solid var(--line); }
	.tabbar > a, .tabbar summary { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; height: 50px; padding: 0 2px;
		border-radius: 10px; color: var(--mut); font-size: 11px; font-weight: 600; list-style: none; cursor: pointer; text-decoration: none; }
	.tabbar summary::-webkit-details-marker { display: none; }
	.tabbar .ic { width: 22px; height: 22px; }
	.tabbar > a[aria-current], .more[data-on] > summary, .more[open] > summary { color: var(--acc); }
	.tabbar > a:active, .tabbar summary:active { background: var(--hover); }
	.tabbar .nav-badge { position: absolute; top: 3px; left: calc(50% + 5px); min-width: 17px; height: 17px; font-size: 10px; }
	.more { position: relative; }
	.more-sheet { position: absolute; right: 0; bottom: calc(100% + 12px); width: min(270px, calc(100vw - 20px)); background: var(--panel); border: 1px solid var(--line2);
		border-radius: 14px; box-shadow: var(--pop); padding: 6px; display: grid; gap: 2px; }
	.more-sheet a, .more-btn { display: flex; align-items: center; gap: 11px; padding: 11px 12px; border-radius: 9px; color: var(--tx); font: inherit; font-size: 14px;
		background: none; border: 0; width: 100%; text-align: left; cursor: pointer; text-decoration: none; }
	.more-sheet a:hover, .more-btn:hover { background: var(--hover); }
	.more-sheet a[aria-current] { color: var(--acc); background: var(--acc-bg); }
	.more-sheet .ic { width: 18px; height: 18px; color: var(--mut); }
	.more-btn { color: var(--bad); }
	.more-btn .ic { color: var(--bad); }
	.page-head { margin-bottom: 16px; }
	h1 { font-size: 21px; }
	.card { padding: 16px 14px; }
	.kpis, .kpis-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.kpis > .kpi, .kpis:not(.kpis-6) > .kpi:nth-child(n+4) { grid-column: auto; }
	.kpis > .kpi:last-child:nth-child(odd) { grid-column: 1 / -1; }
	.kpi { padding: 12px 13px 10px; }
	.kpi-v { font-size: 23px; }
	.grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); }
	.search { flex: 1 1 100%; }
	.toolbar .seg, .filters .seg { width: 100%; }
	.filters > .btn-primary { flex: 1 1 auto; }
	.tc-plot { height: 210px; }
	.card-chart .tc-plot { height: 200px; }
	.tc-xaxis .xo { display: none; }
	/* таблицы-карточки */
	.tbl-cards thead { display: none; }
	.tbl-cards, .tbl-cards tbody { display: block; }
	.tbl-cards tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px 14px; padding: 14px; border-bottom: 1px solid var(--line); }
	.tbl-cards tbody tr:last-child { border-bottom: 0; }
	.tbl-cards td { display: block; padding: 0; border: 0 !important; text-align: left; min-width: 0; }
	.tbl-cards td[data-label]::before { content: attr(data-label); display: block; font-size: 11px; color: var(--mut); margin-bottom: 2px; font-weight: 600; }
	.tbl-cards .num { text-align: left; }
	.tbl-cards .provs { justify-content: flex-start; }
	.tbl-cards .c-site, .tbl-cards .c-det, .tbl-cards .c-cache { grid-column: 1 / -1; }
	.tbl-cards .c-site::before { display: none !important; }
	.tbl-cards .niche { max-width: none; }
	.tbl-cards .c-spark { display: none; }
	.c-site { min-width: 0; }
	.savebar { bottom: calc(76px + env(safe-area-inset-bottom)); }
	.savebar-note { display: none; }
	.sf-go { margin-left: 0; }
	.c-bar { width: 26%; }
	.banner-tg { width: 100%; padding-left: 54px; }
}
@media (max-width: 560px) {
	.fgrid { grid-template-columns: minmax(0, 1fr); }
	.fgrid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.span2 { grid-column: auto; }
	.kv { grid-template-columns: minmax(0, 1fr); gap: 0; }
	.kv dt { margin-top: 8px; }
	.kv dt:first-child { margin-top: 0; }
	.tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tiles-3 { grid-template-columns: minmax(0, 1fr); }
	.key-test { margin-left: 0; }
	.copy-top .field { flex: 1 1 100%; }
	.sf, .sf-sites, .sf-go { flex: 1 1 100%; }
	.sf-dates { flex: 1 1 100%; }
	.sf-dates input { min-width: 0; flex: 1 1 0; }
	.filters .dd, .filters .dd > summary { width: 100%; }
	.dd > summary { justify-content: space-between; }
	.dd-body { width: 100%; }
	.page-head { align-items: flex-start; }
	.status-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
	.status-grid .sg:last-child { grid-column: 1 / -1; }
	.kpi-v { font-size: 21px; }
	.kpi-l { font-size: 12px; }
	.login-card { padding: 22px 18px; }
	.site-head-in .glyph { width: 38px; height: 38px; }
	.c-bar { display: none; }
}

/* тексты на широком экране: git слева, переопределение справа */
@media (min-width: 1100px) {
	.seo-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 16px;
		grid-template-areas: "meta meta" "base input" "base foot" "base err"; grid-template-rows: auto auto auto 1fr; }
	.seo-meta { grid-area: meta; }
	.seo-base { grid-area: base; margin-bottom: 0; align-self: stretch; }
	.seo-row > input, .seo-row > textarea { grid-area: input; }
	.seo-foot { grid-area: foot; }
	.seo-row > .err { grid-area: err; }
}
.c-det .dv { white-space: normal; }

@media (forced-colors: active) {
	.sdot, .dot, .key, .tt-k { forced-color-adjust: none; }
	.tc-line, .sp-l { stroke: CanvasText; }
}
@media print {
	.side, .mtop, .tabbar, .savebar, .flash-x, .theme-btn { display: none !important; }
	body { background: #fff; }
}

/* ==========================================================================================================================
   Общая админка (2026-10-01): строка состояния серверов, выбор сервера, «Сайты» (выбор строк, массовые действия, мастер, заявки),
   «Партнёрки» (аккаунты, матрица назначений, предпросмотр, история). Те же токены и приёмы, что выше; без style= (CSP).
   ========================================================================================================================== */
.t-ok { color: var(--ok); }
.t-warn { color: var(--warn); }
.t-bad { color: var(--bad); }
.t-none { color: var(--mut); }
.sdot.sd-ok { background: var(--g-dot); }
.sdot.sd-warn { background: var(--w-dot); }
.sdot.sd-bad { background: var(--b-dot); }
.sdot.sd-off { background: transparent; box-shadow: inset 0 0 0 1.5px var(--mut); }

/* ---------- строка состояния серверов ---------- */
.topbar { border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--panel) 55%, var(--bg)); }
.topbar-in { display: flex; align-items: center; gap: 10px; min-height: 40px; padding-top: 4px; padding-bottom: 4px; }
.topbar-l { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; color: var(--mut); text-transform: uppercase; letter-spacing: .05em; flex: none; }
.topbar-l .ic { width: 13px; height: 13px; }
.srvbar { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.sb { position: relative; display: inline-flex; align-items: center; gap: 10px; height: 28px; padding: 0 10px 0 9px; border: 1px solid var(--line); border-radius: 8px;
	background: var(--panel); box-shadow: var(--sh-1); font-size: 12px; color: var(--tx2); cursor: default; white-space: nowrap; outline: none; }
.sb:hover, .sb:focus-visible { border-color: var(--line2); }
.sb:focus-visible { box-shadow: 0 0 0 3px var(--ring); }
.sb-bad { border-color: color-mix(in srgb, var(--b-dot) 45%, var(--line)); }
.sb-warn { border-color: color-mix(in srgb, var(--w-dot) 50%, var(--line)); }
.sb-n { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--tx); text-transform: uppercase; letter-spacing: .02em; font-size: 11.5px; }
.sb-v { font-variant-numeric: tabular-nums; }
.sb-v b { font-weight: 550; color: var(--mut); margin-right: 4px; font-size: 11px; }
.sb-v.t-ok { color: var(--tx2); }
.sb-time { font-weight: 600; color: var(--tx); }
.sb-wait { color: var(--mut); }
.sb-pop { display: none; position: absolute; z-index: 60; top: calc(100% + 8px); left: 0; width: 330px; max-width: calc(100vw - 24px); background: var(--panel);
	border: 1px solid var(--line2); border-radius: 12px; box-shadow: var(--pop); padding: 12px 14px; white-space: normal; font-size: 12.5px; cursor: auto; }
.sb:hover .sb-pop, .sb:focus .sb-pop, .sb:focus-within .sb-pop { display: block; }
.sb-pop-h { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; font-size: 13px; }
.sb-pop .kv { font-size: 12.5px; gap: 5px 12px; }
.sb-pop .err { margin: 0; }

/* выбор сервера: ссылки в .seg */
.seg > a { display: flex; align-items: center; gap: 6px; border-radius: 7px; padding: 0 11px; height: 28px; font-size: 13px; font-weight: 550; color: var(--mut); white-space: nowrap; }
.seg > a:hover { color: var(--tx); text-decoration: none; }
.seg > a.on { background: var(--panel); color: var(--tx); box-shadow: var(--sh-1), 0 0 0 1px var(--line); }
.seg > a .ic { width: 14px; height: 14px; }
.seg > a small { font-size: 10.5px; color: var(--mut); font-weight: 600; }
.seg-n { display: inline-grid; place-items: center; min-width: 17px; height: 17px; padding: 0 5px; border-radius: 9px; background: var(--chip); color: var(--tx2); font-size: 10.5px; font-weight: 700; }
.srv-seg .sdot { width: 7px; height: 7px; }
.seg-links > a { height: 28px; }
.srv-chip { display: inline-flex; align-items: center; gap: 5px; padding: 0 7px; height: 20px; border-radius: 6px; border: 1px solid var(--line); background: var(--panel2);
	font-size: 11.5px; font-weight: 650; color: var(--tx2); text-transform: uppercase; letter-spacing: .02em; white-space: nowrap; vertical-align: 1px; }
.srv-chip .ic { width: 12px; height: 12px; color: var(--mut); }
.srv-chip.is-self { border-color: var(--acc-line); color: var(--acc); }

/* ---------- фильтры в несколько условий, выбор строк ---------- */
.toolbar-mf { margin-bottom: 10px; }
.mf-selects { display: flex; flex-wrap: wrap; gap: 8px; }
.mf-selects select { width: auto; min-width: 0; min-height: 34px; height: 34px; padding: 4px 8px; font-size: 13px; max-width: 260px; text-overflow: ellipsis; }
select { max-width: 100%; }
.selbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; padding: 8px 10px 8px 12px; margin-bottom: 10px;
	background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1); position: sticky; top: 8px; z-index: 12; }
.selbar.has-sel { border-color: var(--acc-line); background: color-mix(in srgb, var(--acc-bg) 55%, var(--panel)); }
.selbar-flat { position: static; box-shadow: none; }
.selbar-l { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.selbar-l .check { font-size: 13px; align-items: center; }
.sel-n { font-size: 13px; font-variant-numeric: tabular-nums; }
.selbar-acts { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.btn-acc { color: var(--acc); border-color: var(--acc-line); }
.btn-acc:hover { background: var(--acc-bg); }
a.btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }
.tbl-sel .c-chk { width: 34px; padding-right: 0; vertical-align: middle; }
.tbl-sel .c-chk input { width: 16px; height: 16px; margin: 0; accent-color: var(--btn); cursor: pointer; display: block; }
.tbl-sel tbody tr:has(input[data-sel]:checked) { background: color-mix(in srgb, var(--acc-bg) 70%, transparent); }
.tbl-sel label.site-glyph { cursor: pointer; }
.keychips { display: flex; gap: 3px; flex-wrap: wrap; }
.kc { display: inline-grid; place-items: center; min-width: 30px; height: 20px; padding: 0 5px; border-radius: 5px; font-size: 10.5px; font-weight: 700; color: var(--mut);
	border: 1px dashed var(--line2); font-variant-numeric: tabular-nums; }
.kc.on { color: var(--ok); background: var(--ok-bg); border: 1px solid color-mix(in srgb, var(--g-dot) 30%, transparent); }
.c-act { width: 44px; text-align: right; }
.rowmenu { position: relative; display: inline-block; }
.rowmenu > summary { list-style: none; width: 30px; height: 30px; }
.rowmenu > summary::-webkit-details-marker { display: none; }
.rowmenu-pop { position: absolute; right: 0; top: calc(100% + 4px); z-index: 30; width: 250px; padding: 6px; display: grid; gap: 1px; text-align: left;
	background: var(--panel); border: 1px solid var(--line2); border-radius: 12px; box-shadow: var(--pop); }
.tbl-sel tbody tr:nth-last-child(-n+3):not(:nth-child(-n+3)) .rowmenu-pop { top: auto; bottom: calc(100% + 4px); }
.rowmenu-pop form { margin: 0; }
.rowmenu-pop a, .rowmenu-pop button { display: flex; align-items: center; gap: 9px; width: 100%; padding: 8px 10px; border: 0; border-radius: 8px; background: none;
	color: var(--tx); font: inherit; font-size: 13px; text-align: left; cursor: pointer; text-decoration: none; }
.rowmenu-pop a:hover, .rowmenu-pop button:hover { background: var(--hover); text-decoration: none; }
.rowmenu-pop .ic { width: 15px; height: 15px; color: var(--mut); }
.rowmenu-pop .danger, .rowmenu-pop .danger .ic { color: var(--bad); }
.tbl-queue .q-msg { max-width: 360px; overflow-wrap: anywhere; margin-top: 2px; }
.mount-more { margin-top: 14px; }
.mount-form { margin-top: 8px; }
.mount-form input[type="text"] { width: 220px; }

/* ---------- мастер «Добавить сайт» ---------- */
.wizard { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.wz-main { min-width: 0; }
.wz-side { position: sticky; top: 16px; }
.wz-step h2 { display: flex; align-items: center; gap: 10px; }
.wz-n { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--acc-bg); color: var(--acc); font-size: 12.5px; font-weight: 750; flex: none; }
.wz-step .field + .field, .wz-step .field + .fgrid, .wz-type { margin-top: 16px; }
.wz-more > summary { list-style: none; cursor: pointer; }
.wz-more > summary::-webkit-details-marker { display: none; }
.wz-more > summary h2 { margin: 0; }
.wz-more[open] > summary { margin-bottom: 14px; }
.wz-sum .kv { margin-bottom: 12px; }
.wz-sum .form-acts .btn { width: 100%; }
.opt-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.opt-cards-srv { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.opt-card { position: relative; display: grid; gap: 2px; padding: 10px 12px; border: 1px solid var(--line2); border-radius: 10px; background: var(--input); cursor: pointer;
	box-shadow: var(--sh-1); color: var(--tx); transition: border-color .12s, background-color .12s; min-width: 0; }
a.opt-card:hover { text-decoration: none; }
.opt-card:hover { border-color: color-mix(in srgb, var(--line2) 50%, var(--mut)); }
.opt-card input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.opt-card:has(input:checked) { border-color: var(--acc); background: var(--acc-bg); box-shadow: 0 0 0 1px var(--acc); }
.opt-card:has(input:focus-visible) { box-shadow: 0 0 0 3px var(--ring); }
.opt-card.is-off { opacity: .65; }
.opt-t { display: flex; align-items: center; gap: 7px; font-weight: 650; font-size: 13.5px; }
.opt-d { font-size: 12px; color: var(--mut); overflow-wrap: anywhere; }
.has-err.opt-cards .opt-card, .has-err .opt-card { border-color: var(--bad); }
.req-grid { align-items: stretch; }
.req-grid > .card { margin: 0; }
.dns-box { margin-bottom: 12px; }
.dns-box .tbl-mini td, .dns-box .tbl-mini th { padding: 6px 8px; }
ul.notes { display: grid; gap: 6px; font-size: 13px; }

/* ---------- партнёрки ---------- */
.badge.prog-revshare, .acc-chip.prog-revshare { background: var(--acc-bg); color: var(--acc); }
.badge.prog-pps, .acc-chip.prog-pps { background: color-mix(in srgb, var(--s2) 14%, transparent); color: color-mix(in srgb, var(--s2) 75%, var(--tx)); }
.badge.prog-other, .acc-chip.prog-other { background: var(--chip); color: var(--tx2); }
.dd-right .dd-body { left: auto; right: 0; }
.dd-menu { width: 220px; padding: 6px; display: grid; gap: 1px; }
.dd-menu a { padding: 8px 10px; border-radius: 8px; color: var(--tx); font-size: 13.5px; }
.dd-menu a:hover { background: var(--hover); text-decoration: none; }
.head-actions .dd > summary.btn::after { color: inherit; opacity: .8; }
.mig-note { display: flex; align-items: center; gap: 6px; margin: -8px 0 8px; }
.mig-note .ic { width: 14px; height: 14px; flex: none; }
.plat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; align-items: start; }
.plat-grid > .card { margin: 0; }
.plat-card .acc-grid { grid-template-columns: minmax(0, 1fr); }
.plat-card .card-h h2 { flex-wrap: wrap; }
.plat-acts { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.def-form { gap: 6px; margin: 0; }
.def-form select { width: auto; max-width: 240px; min-height: 30px; height: 30px; padding: 2px 6px; font-size: 12.5px; }
.acc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 12px; }
.acc-card { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 14px 14px 12px 17px; border: 1px solid var(--line); border-radius: 12px;
	background: var(--panel2); min-width: 0; overflow: hidden; }
.acc-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--sn); }
.acc-card.prog-revshare::before { background: var(--acc); }
.acc-card.prog-pps::before { background: var(--s2); }
.acc-card.is-incomplete { border-style: dashed; }
.acc-card:target { box-shadow: 0 0 0 3px var(--ring); }
.acc-h { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.acc-n { font-size: 14.5px; letter-spacing: -.01em; margin-right: 2px; overflow-wrap: anywhere; }
.acc-meta { display: grid; gap: 3px; font-size: 12.5px; }
.acc-meta > span { display: flex; align-items: flex-start; gap: 6px; overflow-wrap: anywhere; }
.acc-meta .ic { width: 13px; height: 13px; margin-top: 3px; }
.acc-stats { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.acc-sites { border: 1px solid var(--line2); background: var(--panel); border-radius: 8px; padding: 3px 9px; font: inherit; font-size: 12.5px; color: var(--tx2); cursor: pointer; }
.acc-sites b { color: var(--tx); font-variant-numeric: tabular-nums; }
.acc-sites:hover { border-color: var(--acc); color: var(--acc); }
.acc-stats a { display: inline-flex; align-items: center; gap: 4px; }
.acc-stats a .ic { width: 13px; height: 13px; }
.acc-warn { display: flex; gap: 6px; align-items: flex-start; margin: 0; font-size: 12px; color: var(--warn); }
.acc-warn .ic { width: 13px; height: 13px; margin-top: 2px; }
.acc-note { margin: 0; font-size: 12.5px; color: var(--tx2); white-space: pre-line; overflow-wrap: anywhere; }
.acc-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 4px; }
.acc-acts form { margin: 0; }
.acc-upd { margin-top: -2px; }
.acc-chip { display: inline-block; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: middle; padding: 1px 8px; border-radius: 6px;
	font-size: 12px; font-weight: 600; line-height: 19px; }
.acc-chip.own { background: transparent; color: var(--tx2); border: 1px dashed var(--line2); font-weight: 500; }
.stale { display: inline-flex; vertical-align: middle; margin-left: 4px; color: var(--warn); }
.stale .ic { width: 14px; height: 14px; }
.tbl-matrix td { vertical-align: middle; padding-top: 7px; padding-bottom: 7px; }
.tbl-matrix .c-site { min-width: 190px; }
.tbl-matrix .dom { margin-top: 1px; padding-left: 30px; overflow-wrap: anywhere; }
.assign-card { overflow: visible; }
.assignbar { position: sticky; bottom: 12px; z-index: 15; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 14px; margin: 14px -6px 0; padding: 12px 14px;
	background: color-mix(in srgb, var(--panel) 92%, transparent); backdrop-filter: blur(10px) saturate(1.4); border: 1px solid var(--line2); border-radius: 14px; box-shadow: var(--pop); }
.assignbar.has-sel { border-color: var(--acc-line); }
.ab-n { display: grid; text-align: center; min-width: 64px; line-height: 1.15; }
.ab-n b { font-size: 22px; font-weight: 720; font-variant-numeric: tabular-nums; }
.ab-f { display: grid; min-width: 0; }
.ab-f .lbl { margin-bottom: 4px; }
.ab-f select { min-width: 150px; }
.ab-acc select { min-width: 240px; }
.ab-sum { flex: 1 1 220px; align-self: center; min-width: 0; }
.ab-sum b { color: var(--tx); }
.preview-card { border-color: var(--acc-line); box-shadow: 0 0 0 3px var(--ring), var(--sh-2); }
.preview-card .card-h h2 { flex-wrap: wrap; }
.pv-tiles { margin: 12px 0 8px; }
.pv-tiles .tile { background: var(--panel2); box-shadow: none; }
.pv-trans { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.tbl-pv td { vertical-align: middle; }
.pv-arrow { width: 24px; color: var(--mut); }
.pv-arrow .ic { width: 14px; height: 14px; }
.tbl-pv tr.pv-same td { color: var(--mut); }
.pv-acts { margin-top: 16px; }
.tbl-hist td { vertical-align: middle; }
.tbl-hist tr.is-rolled td { color: var(--mut); }
.c-act-r { text-align: right; white-space: nowrap; }
.c-act-r form { margin: 0; display: inline-block; }
.no-rb { display: inline-block; max-width: 220px; white-space: normal; text-align: right; }
.h-det summary { color: var(--acc); }
.acc-edit { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
.acc-form { margin: 0; }
.form-sub { display: flex; align-items: center; gap: 7px; margin: 22px 0 6px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13.5px; }
.form-sub .ic { width: 15px; height: 15px; color: var(--acc); }
.acc-form > .field { margin-top: 16px; }
.clear-chk { margin-top: 6px; color: var(--mut); }
.acc-side > .card { margin-bottom: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 5px; }
.chip { display: inline-flex; align-items: center; height: 24px; padding: 0 8px; border-radius: 7px; background: var(--chip); color: var(--tx2); font-size: 12px; font-weight: 550; }
.chip:hover { text-decoration: none; color: var(--acc); }
.chip-warn { background: var(--warn-bg); color: var(--warn); }

/* ---------- мониторинг и сервер: все серверы ---------- */
.srv-cards { list-style: none; margin: 0 0 8px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 10px; }
.srv-card { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--panel); color: var(--tx); box-shadow: var(--sh-1); }
.srv-card:hover { text-decoration: none; border-color: var(--line2); box-shadow: var(--sh-2); }
.srv-card > .ic { width: 15px; height: 15px; color: var(--mut); margin-left: auto; }
.srv-card.tone-bad { border-color: color-mix(in srgb, var(--b-dot) 40%, var(--line)); }
.srv-card-t { min-width: 0; }
.srv-card-t b { display: block; text-transform: uppercase; letter-spacing: .02em; font-size: 13.5px; }
.srv-card-t small { display: block; color: var(--mut); font-size: 12px; }
.mon-srv { margin-top: 0; margin-bottom: 8px; }
.mon-srv a.ks-n { color: var(--tx); text-transform: uppercase; font-size: 12.5px; }
.srv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 16px; margin-bottom: 8px; }
.srv-grid > .card { margin: 0; }
.srv-box .card-h h2 { text-transform: uppercase; letter-spacing: .02em; }
.srv-box-bad { border-color: color-mix(in srgb, var(--b-dot) 40%, var(--line)); }
.srv-box-m { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 18px; }
.srv-box-f { margin: 12px 0 0; }

@media (max-width: 1100px) {
	.plat-grid { grid-template-columns: minmax(0, 1fr); }
	.plat-card .acc-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
	.wizard { grid-template-columns: minmax(0, 1fr); }
	.wz-side { position: static; }
	.acc-edit { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
	.topbar { position: sticky; top: 56px; z-index: 29; background: var(--bg); }
	.topbar-in { min-height: 38px; }
	.topbar-l { display: none; }
	.srvbar { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px; }
	.srvbar::-webkit-scrollbar { display: none; }
	.sb { gap: 8px; }
	.sb-x { display: none; }
	.sb-pop { position: fixed; top: 102px; left: 12px; right: 12px; width: auto; max-width: none; }
	.selbar { top: 100px; }
	.mf-selects { width: 100%; }
	.mf-selects select { flex: 1 1 140px; width: 0; max-width: none; }
	.mf-selects .mf-niche { flex-basis: 100%; }
	/* «Новым сайтам:» — своей строкой под названием платформы, выбор растягивается (иначе сжимался до стрелки) */
	.plat-acts { flex: 1 1 100%; }
	.def-form { flex: 1 1 200px; display: flex; align-items: center; }
	.def-form select { flex: 1 1 0; width: 0; min-width: 120px; max-width: none; }
	.tbl-sel.tbl-cards tr { grid-template-columns: 26px minmax(0, 1fr) minmax(0, 1fr); padding-left: 10px; }
	.tbl-sel.tbl-cards .c-chk { grid-row: 1 / span 3; padding-top: 2px; }
	.tbl-sel.tbl-cards .c-site { grid-column: 2 / -1; }
	.tbl-sel.tbl-cards .c-act { position: absolute; right: 10px; top: 10px; width: auto; }
	.tbl-sel.tbl-cards tbody tr { position: relative; }
	.tbl-sel.tbl-cards .c-site .site-main { padding-right: 34px; }
	.tbl-matrix.tbl-cards tr { grid-template-columns: 26px repeat(2, minmax(0, 1fr)); }
	.tbl-matrix.tbl-cards .c-chk { grid-row: 1 / span 4; }
	.tbl-matrix .dom { padding-left: 0; }
	.assignbar { bottom: calc(72px + env(safe-area-inset-bottom)); margin: 12px -4px 0; padding: 10px; gap: 8px; }
	.ab-n { min-width: 48px; }
	.ab-n b { font-size: 18px; }
	.ab-f, .ab-acc { flex: 1 1 140px; }
	.ab-f select, .ab-acc select { min-width: 0; }
	.ab-sum { flex-basis: 100%; order: 5; }
	.assignbar > .btn { flex: 1 1 auto; }
	.head-actions { width: 100%; }
	.head-actions .srv-seg { max-width: 100%; }
	.srv-box-m { grid-template-columns: minmax(0, 1fr); }
	.no-rb { text-align: left; }
	.c-act-r { text-align: left; }
}
@media (max-width: 560px) {
	.sb-pop .kv { grid-template-columns: max-content minmax(0, 1fr); gap: 5px 12px; }
	.sb-pop .kv dt { margin-top: 0; }
	.opt-cards, .opt-cards-srv { grid-template-columns: minmax(0, 1fr); }
	.selbar-acts { width: 100%; }
	.selbar-acts .btn { flex: 1 1 auto; }
	.pv-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.dd-right .dd-body { right: auto; left: 0; }
}
@media print {
	.topbar, .selbar, .assignbar { display: none !important; }
}
