/* ================= Kon24 — дизайн-система (из Sam CRM 4.0) ================= */
:root {
  --accent: #005ff9;
  --accent-hover: #0050d4;
  --accent-soft: #e6efff;
  --bg: #ffffff;
  --bg-side: #f6f7f8;
  --bg-hover: #f2f3f5;
  --bg-selected: #e8f0ff;
  --bg-input: #f2f3f5;
  --text: #2c2d2e;
  --text-2: #6d7075;
  --text-3: #9a9da3;
  --line: #e7e8ea;
  --danger: #e5484d;
  --ok: #2fa86b;
  --warn: #f2a516;
  --shadow: 0 8px 28px rgba(16, 24, 40, .14), 0 2px 6px rgba(16, 24, 40, .06);
  --radius: 12px;
  --row-h: 48px;
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --ok-bg: #e3f6e8; --ok-fg: #1f7a3a;
  --bad-bg: #fde8e8; --bad-fg: #c62828;
  --mail-bg: #e1ecff; --mail-fg: #1d4ed8;
  --wait-bg: #fff4d6; --wait-fg: #9a6700;
  --banner-bg: #fff6d6; --banner-fg: #5c4400;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --accent: #4d8dff; --accent-hover: #6a9fff; --accent-soft: #1d2b45;
    --bg: #19191b; --bg-side: #202023; --bg-hover: #26272a; --bg-selected: #1f2c45; --bg-input: #2a2b2e;
    --text: #e8e9eb; --text-2: #a4a7ad; --text-3: #7c7f86; --line: #2f3034;
    --shadow: 0 8px 28px rgba(0, 0, 0, .5);
    --ok-bg: #183b26; --ok-fg: #7ad69a; --bad-bg: #451c1c; --bad-fg: #ff9b9b;
    --mail-bg: #1b2c4f; --mail-fg: #9cbcff; --wait-bg: #3d3216; --wait-fg: #f2cf73;
    --banner-bg: #3a3218; --banner-fg: #f3dc9b;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --accent: #4d8dff; --accent-hover: #6a9fff; --accent-soft: #1d2b45;
  --bg: #19191b; --bg-side: #202023; --bg-hover: #26272a; --bg-selected: #1f2c45; --bg-input: #2a2b2e;
  --text: #e8e9eb; --text-2: #a4a7ad; --text-3: #7c7f86; --line: #2f3034;
  --shadow: 0 8px 28px rgba(0, 0, 0, .5);
  --ok-bg: #183b26; --ok-fg: #7ad69a; --bad-bg: #451c1c; --bad-fg: #ff9b9b;
  --mail-bg: #1b2c4f; --mail-fg: #9cbcff; --wait-bg: #3d3216; --wait-fg: #f2cf73;
  --banner-bg: #3a3218; --banner-fg: #f3dc9b;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font: 14px/1.45 var(--font); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
body.shell { overflow: hidden; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
svg.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
svg.i.s { width: 16px; height: 16px; }
svg.i.l { width: 28px; height: 28px; }
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.25; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.muted { color: var(--text-2); }
.nowrap { white-space: nowrap; }
.mono { font-variant-numeric: tabular-nums; }

/* ---------- верхняя панель ---------- */
.topbar { height: 60px; display: flex; align-items: center; gap: 16px; padding: 0 16px 0 12px; border-bottom: 1px solid var(--line); background: var(--bg); position: relative; z-index: 45; }
.logo { display: flex; align-items: center; gap: 10px; width: 228px; flex: none; font-size: 20px; font-weight: 700; color: var(--accent); user-select: none; text-decoration: none; }
.logo .mark { width: 34px; height: 34px; border-radius: 10px; background: var(--accent); color: #fff; display: grid; place-items: center; flex: none; }
.logo .mark svg { width: 20px; height: 20px; }
.search { flex: 1; max-width: 640px; display: flex; align-items: center; gap: 6px; height: 40px; padding: 0 6px 0 14px; border-radius: 10px; background: var(--bg-input); border: 1px solid transparent; transition: border-color .15s, background .15s; color: var(--text-2); }
.search:focus-within { background: var(--bg); border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.search input { flex: 1; border: 0; outline: 0; background: transparent; min-width: 0; height: 100%; color: var(--text); }
.topnav { display: flex; gap: 4px; }
.topnav a { height: 36px; display: inline-flex; align-items: center; gap: 8px; padding: 0 12px; border-radius: 9px; color: var(--text-2); text-decoration: none; font-weight: 500; white-space: nowrap; }
.topnav a:hover { background: var(--bg-hover); color: var(--text); }
.topnav a.on { color: var(--accent); background: var(--accent-soft); }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.icon-btn { width: 36px; height: 36px; border-radius: 9px; border: 0; background: transparent; color: var(--text-2); display: inline-grid; place-items: center; flex: none; position: relative; text-decoration: none; }
.icon-btn:hover { background: var(--bg-hover); color: var(--text); }
.icon-btn.on { color: var(--accent); background: var(--accent-soft); }
.icon-btn:disabled { opacity: .4; cursor: default; background: transparent; }
.icon-btn .badge { position: absolute; top: 3px; right: 3px; min-width: 16px; height: 16px; border-radius: 8px; background: var(--accent); color: #fff; font-size: 10.5px; font-weight: 700; display: grid; place-items: center; padding: 0 4px; }
.user-btn { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 8px 0 4px; border: 0; background: transparent; border-radius: 10px; }
.user-btn:hover { background: var(--bg-hover); }
.user-btn .nm { max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.avatar { width: 32px; height: 32px; border-radius: 50%; color: #fff; background: var(--accent); display: grid; place-items: center; font-weight: 600; font-size: 13.5px; flex: none; user-select: none; text-transform: uppercase; }

/* ---------- раскладка «как в программе» ---------- */
.layout { display: flex; height: calc(100vh - 60px); height: calc(100dvh - 60px); }
.sidebar { width: 252px; flex: none; background: var(--bg-side); border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; position: relative; }
.scroll { flex: 1; overflow-y: auto; min-height: 0; }
.compose-btn { margin: 14px 14px 10px; height: 44px; border: 0; border-radius: 10px; background: var(--accent); color: #fff; font-weight: 600; font-size: 15px; display: flex; align-items: center; justify-content: center; gap: 8px; box-shadow: 0 2px 8px rgba(0, 95, 249, .25); text-decoration: none; flex: none; }
.compose-btn:hover { background: var(--accent-hover); }
.side-scroll { flex: 1; overflow-y: auto; min-height: 0; padding-bottom: 8px; }
.side-label { padding: 14px 20px 6px; font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--text-3); }
.folders { padding: 2px 8px; display: grid; gap: 1px; }
.folder { display: flex; align-items: center; gap: 12px; height: 36px; padding: 0 10px 0 12px; border-radius: 8px; color: var(--text); cursor: pointer; user-select: none; text-decoration: none; border: 0; background: transparent; width: 100%; text-align: left; }
.folder:hover { background: var(--bg-hover); }
.folder.active { background: var(--bg-selected); color: var(--accent); font-weight: 600; }
.folder .name { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.folder .count { font-size: 12.5px; color: var(--text-2); font-weight: 600; }
.folder .count.blue { color: var(--accent); }
.folder .count.red { color: var(--danger); }
.folder .i { color: var(--text-2); }
.folder.active .i { color: var(--accent); }
.side-foot { border-top: 1px solid var(--line); padding: 10px 14px 12px; display: grid; gap: 8px; flex: none; }
.plan-line { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--text-2); }
.plan-line b { color: var(--text); font-weight: 600; }
.meter { height: 6px; border-radius: 3px; background: var(--bg-input); overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--accent); border-radius: 3px; }
.meter.full i { background: var(--warn); }

/* ---------- панель инструментов над списком ---------- */
.toolbar { min-height: 56px; display: flex; align-items: center; gap: 6px; padding: 8px 16px 8px 14px; border-bottom: 1px solid var(--line); flex: none; flex-wrap: wrap; }
.toolbar .title { font-size: 18px; font-weight: 700; line-height: 1.3; margin: 0 8px 0 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 46vw; }
.toolbar .sub { color: var(--text-2); font-size: 13px; white-space: nowrap; }
.toolbar .spacer { flex: 1; }
.chips { display: flex; gap: 4px; flex-wrap: wrap; }
.chip { height: 30px; border: 1px solid var(--line); background: var(--bg); border-radius: 16px; padding: 0 12px; font-size: 13px; color: var(--text-2); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; text-decoration: none; }
.chip:hover { background: var(--bg-hover); }
.chip.on { background: var(--accent-soft); border-color: transparent; color: var(--accent); font-weight: 600; }
.chip.lock { opacity: .55; }
.tbtn { height: 34px; border: 0; background: transparent; border-radius: 8px; padding: 0 10px; color: var(--text); display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; text-decoration: none; }
.tbtn:hover { background: var(--bg-hover); }
.tbtn:disabled { opacity: .4; cursor: default; background: transparent; }
.tbtn.danger:hover { color: var(--danger); }
.tsep { width: 1px; height: 22px; background: var(--line); margin: 0 4px; flex: none; }
.banner { display: flex; align-items: center; gap: 12px; padding: 9px 16px; background: var(--banner-bg); color: var(--banner-fg); border-bottom: 1px solid var(--line); flex: none; }
.banner .t { flex: 1; }
.notice { display: flex; align-items: center; gap: 12px; padding: 10px 16px; background: var(--accent-soft); color: var(--text); border-bottom: 1px solid var(--line); flex: none; }
.notice .t { flex: 1; min-width: 0; }

/* ---------- таблица ---------- */
.table-wrap { overflow: auto; }
table.grid { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 13.5px; }
.grid th { position: sticky; top: 0; z-index: 2; background: var(--bg-side); color: var(--text-2); font-weight: 600; text-align: left; height: 40px; padding: 0 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.grid th a { color: inherit; text-decoration: none; }
.grid th a:hover { color: var(--text); }
.grid th.sorted, .grid th.sorted a { color: var(--accent); }
.grid td { height: var(--row-h); padding: 6px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; max-width: 360px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.grid tbody tr[data-href] { cursor: pointer; }
.grid tbody tr:hover td { background: var(--bg-hover); }
.grid tbody tr.sel td { background: var(--bg-selected); }
.grid td.c-name { font-weight: 600; }
.grid td.num, .grid th.num { text-align: right; font-variant-numeric: tabular-nums; }
.grid td .sub { display: block; color: var(--text-3); font-size: 12px; font-weight: 400; overflow: hidden; text-overflow: ellipsis; }
.grid .thumb { width: 36px; height: 36px; border-radius: 6px; border: 1px solid var(--line); background: #fff; padding: 2px; display: block; }
.grid .thumb svg { width: 100%; height: 100%; display: block; }
.grid tr.dim td { color: var(--text-3); }
.link-cell { color: var(--text-2); }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 12px; font-size: 12.5px; font-weight: 600; background: var(--bg-input); color: var(--text-2); white-space: nowrap; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .8; }
.pill.ok { background: var(--ok-bg); color: var(--ok-fg); }
.pill.bad { background: var(--bad-bg); color: var(--bad-fg); }
.pill.mail { background: var(--mail-bg); color: var(--mail-fg); }
.pill.wait { background: var(--wait-bg); color: var(--wait-fg); }
.pill.plain::before { display: none; }
.tag { display: inline-block; font-size: 11px; font-weight: 700; border-radius: 5px; padding: 1px 6px; vertical-align: 1px; background: var(--accent); color: #fff; }
.tag.gray { background: var(--bg-input); color: var(--text-2); }
.tag.green { background: #1f7a3a; color: #fff; }
.fold-chip { font-size: 11.5px; border-radius: 6px; padding: 1px 7px; background: var(--accent-soft); color: var(--accent); white-space: nowrap; }
.spark { display: inline-flex; align-items: flex-end; gap: 2px; height: 22px; vertical-align: middle; }
.spark i { width: 4px; background: var(--accent); border-radius: 1px; opacity: .75; min-height: 2px; }

/* ---------- список «как почта» (входящие) ---------- */
.list { display: block; }
.row { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 6px 16px 6px 14px; border-bottom: 1px solid var(--line); cursor: pointer; position: relative; text-decoration: none; color: var(--text); }
.row:hover { background: var(--bg-hover); }
.row.selected { background: var(--bg-selected); box-shadow: inset 3px 0 0 var(--accent); }
.row .unread-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: transparent; }
.row.unread .unread-dot { background: var(--accent); }
.row .from { width: 200px; flex: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .content { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text-2); }
.row .subject { color: var(--text); }
.row.unread .from, .row.unread .subject { font-weight: 700; }
.row .meta { display: flex; align-items: center; gap: 10px; flex: none; color: var(--text-2); font-size: 13px; }
.row .date { width: 92px; text-align: right; }
.row.unread .date { color: var(--text); font-weight: 600; }

/* ---------- пусто ---------- */
.empty { padding: 72px 24px; text-align: center; color: var(--text-2); }
.empty .big { font-size: 18px; color: var(--text); font-weight: 600; margin: 14px 0 6px; }
.empty > svg.i { width: 64px; height: 64px; stroke-width: 1.2; color: var(--text-3); } /* только большая картинка, не значки в кнопках */
.empty .btn { margin-top: 16px; }

/* ---------- кнопки и поля ---------- */
.btn { height: 38px; border-radius: 9px; border: 1px solid var(--line); background: var(--bg); padding: 0 16px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 500; white-space: nowrap; text-decoration: none; color: var(--text); }
.btn:hover { background: var(--bg-hover); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-hover); }
.btn.danger { color: var(--danger); }
.btn.danger.fill { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: default; pointer-events: none; }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: var(--bg-hover); }
.btn.big { height: 46px; font-size: 15px; font-weight: 600; padding: 0 22px; }
.btn.block { width: 100%; }
.btn.sm { height: 32px; padding: 0 12px; font-size: 13px; }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field > span, .label { font-size: 13px; color: var(--text-2); }
.field > span b { color: var(--text); font-weight: 600; }
.input { height: 40px; border-radius: 9px; border: 1px solid var(--line); background: var(--bg); padding: 0 12px; outline: 0; width: 100%; min-width: 0; }
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
textarea.input { height: auto; min-height: 84px; padding: 10px 12px; resize: vertical; line-height: 1.45; }
select.input { padding-right: 8px; }
.input[readonly] { background: var(--bg-input); color: var(--text-2); }
.input-group { display: flex; gap: 8px; }
.input-group .input { flex: 1; }
.prefix-input { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; background: var(--bg); }
.prefix-input:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.prefix-input span { padding: 0 4px 0 12px; color: var(--text-3); white-space: nowrap; font-size: 13px; }
.prefix-input input { border: 0; outline: 0; height: 38px; flex: 1; min-width: 0; background: transparent; padding: 0 12px 0 0; }
.hint { font-size: 12.5px; color: var(--text-2); }
.err-text { color: var(--danger); font-size: 13px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.switch { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; cursor: pointer; }
.switch input { width: 18px; height: 18px; accent-color: var(--accent); margin: 1px 0 0; flex: none; }
.radio-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; }
.radio-card { position: relative; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px 10px 38px; cursor: pointer; display: grid; gap: 2px; }
.radio-card:hover { background: var(--bg-hover); }
.radio-card input { position: absolute; left: 12px; top: 12px; width: 17px; height: 17px; accent-color: var(--accent); margin: 0; }
.radio-card b { font-weight: 600; }
.radio-card span { color: var(--text-2); font-size: 12.5px; }
.radio-card:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.radio-card.lock { opacity: .55; cursor: default; }
.color-row { display: flex; align-items: center; gap: 10px; }
.color-row input[type=color] { width: 42px; height: 38px; padding: 2px; border-radius: 9px; border: 1px solid var(--line); background: var(--bg); cursor: pointer; flex: none; }
.color-row .input { width: 110px; font-family: ui-monospace, Consolas, monospace; font-size: 13px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; padding: 3px; gap: 2px; background: var(--bg-side); flex-wrap: wrap; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 7px; color: var(--text-2); cursor: pointer; font-size: 13px; white-space: nowrap; }
.seg span:hover { color: var(--text); }
.seg input:checked + span { background: var(--bg); color: var(--accent); font-weight: 600; box-shadow: 0 1px 3px rgba(16, 24, 40, .12); }
.seg input:focus-visible + span { outline: 2px solid var(--accent); }
.range-row { display: flex; align-items: center; gap: 10px; }
.range-row input[type=range] { flex: 1; accent-color: var(--accent); }
.range-row output { width: 44px; text-align: right; font-variant-numeric: tabular-nums; color: var(--text-2); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- вкладки ---------- */
.tabs { display: flex; gap: 4px; padding: 0 16px; border-bottom: 1px solid var(--line); flex: none; overflow-x: auto; }
.tab { border: 0; background: transparent; padding: 12px 12px 10px; border-bottom: 2px solid transparent; color: var(--text-2); font-weight: 600; text-decoration: none; white-space: nowrap; display: inline-flex; gap: 6px; align-items: center; }
.tab:hover { color: var(--text); }
.tab.on { color: var(--accent); border-bottom-color: var(--accent); }
.tab .count-chip { font-size: 11.5px; }
.count-chip { font-size: 12px; font-weight: 700; border-radius: 10px; padding: 1px 8px; background: var(--bg-input); color: var(--text-2); }
.count-chip.new { background: var(--accent); color: #fff; }

/* ---------- карточки и секции ---------- */
.page-inner { max-width: 1180px; padding: 22px 24px 48px; }
.card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.card + .card { margin-top: 14px; }
.card h2 { font-size: 16px; margin: 0 0 12px; }
.card h3 { font-size: 14.5px; margin: 0 0 8px; }
.section-title { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); margin: 22px 0 10px; display: flex; align-items: center; gap: 8px; }
.section-title:first-child { margin-top: 0; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.tile { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: var(--bg); text-decoration: none; color: var(--text); display: block; }
a.tile:hover { background: var(--bg-hover); }
.tile .k { font-size: 12.5px; color: var(--text-2); }
.tile .v { font-size: 26px; font-weight: 700; margin-top: 2px; font-variant-numeric: tabular-nums; }
.tile .d { font-size: 12.5px; color: var(--text-3); }
/* 21.11.2026: главная плитка — полоской слева, а не красной цифрой: красное число читалось как «плохо» */
.tile.accent { box-shadow: inset 3px 0 0 var(--accent); }
.tile.accent .v { color: var(--text); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.sticky { position: sticky; top: 16px; }
.kv { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 8px 16px; font-size: 13.5px; }
.kv dt { color: var(--text-2); }
.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.copy-line { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 9px; padding: 4px 4px 4px 12px; background: var(--bg-side); }
.copy-line code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: ui-monospace, Consolas, monospace; font-size: 13px; }
.copy-line + .copy-line { margin-top: 8px; }
.copy-line .lbl { font-size: 11.5px; color: var(--text-3); white-space: nowrap; }
/* 21.11.2026: обычная подсказка — спокойная серая. Раньше была в цвете акцента, а при красном акценте любая
   подсказка выглядела как ошибка. Зелёная .ok — «готово, получилось», жёлтая .warn — «обратите внимание», красная .bad — беда. */
.callout { display: flex; gap: 12px; padding: 12px 14px; border-radius: 10px; background: var(--bg-side); border: 1px solid var(--line); color: var(--text); align-items: flex-start; }
.callout .i { color: var(--text-2); margin-top: 1px; flex: none; }
.callout.ok { background: var(--ok-bg); border-color: transparent; }
.callout.ok .i { color: var(--ok-fg); }
.callout.warn { background: var(--wait-bg); border-color: transparent; }
.callout.warn .i { color: var(--wait-fg); }
.callout.bad { background: var(--bad-bg); border-color: transparent; }
.callout.bad .i { color: var(--bad-fg); }
.callout p { margin: 0; }
.tips { display: grid; gap: 8px; }

/* ---------- график ---------- */
.chart { display: flex; align-items: flex-end; gap: 3px; height: 160px; padding: 8px 0 0; border-bottom: 1px solid var(--line); }
.chart .bar { flex: 1; min-width: 3px; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; position: relative; }
.chart .bar i { display: block; background: var(--accent); border-radius: 3px 3px 0 0; min-height: 2px; opacity: .85; }
.chart .bar i.zero { background: var(--line); opacity: 1; }
.chart .bar:hover i { opacity: 1; }
.chart .bar .tip { position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); background: #2c2d2e; color: #fff; font-size: 12px; padding: 4px 8px; border-radius: 6px; white-space: nowrap; display: none; z-index: 3; }
.chart .bar:hover .tip { display: block; }
.chart-axis { display: flex; justify-content: space-between; color: var(--text-3); font-size: 11.5px; margin-top: 6px; }
.bars { display: grid; gap: 8px; }
.hbar { display: grid; grid-template-columns: 150px 1fr 64px; gap: 10px; align-items: center; font-size: 13px; }
.hbar .track { height: 8px; border-radius: 4px; background: var(--bg-input); overflow: hidden; }
.hbar .track i { display: block; height: 100%; background: var(--accent); border-radius: 4px; }
.hbar .n { text-align: right; color: var(--text-2); font-variant-numeric: tabular-nums; }

/* ---------- проверка читаемости ---------- */
.checks { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; font-size: 13px; }
.checks li { display: flex; gap: 9px; align-items: flex-start; color: var(--text-2); }
.checks li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; flex: none; background: var(--ok); }
.checks li.warn::before { background: var(--warn); }
.checks li.bad::before { background: var(--danger); }
.checks li.info::before { background: var(--accent); }
.checks li.bad { color: var(--bad-fg); }
.score { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.score .ring { --p: 100; width: 40px; height: 40px; border-radius: 50%; background: conic-gradient(var(--sc, var(--ok)) calc(var(--p) * 1%), var(--bg-input) 0); display: grid; place-items: center; flex: none; }
.score .ring b { width: 30px; height: 30px; border-radius: 50%; background: var(--bg); display: grid; place-items: center; font-size: 11.5px; font-variant-numeric: tabular-nums; }

/* ---------- предпросмотр QR ---------- */
.qr-stage { background: repeating-conic-gradient(var(--bg-side) 0% 25%, var(--bg) 0% 50%) 50% / 18px 18px; border: 1px solid var(--line); border-radius: 14px; padding: 22px; display: grid; place-items: center; min-height: 300px; position: relative; }
.qr-stage .qr { width: 100%; max-width: 280px; transition: opacity .15s; }
.qr-stage .qr svg { width: 100%; height: auto; display: block; border-radius: 6px; }
.qr-stage.busy .qr { opacity: .35; }
.qr-stage.busy:not(.empty)::after { content: "Обновляем QR…"; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  padding: 7px 12px; border-radius: 999px; background: rgba(15, 22, 38, .82); color: #fff; font-size: 13px; font-weight: 600; white-space: nowrap; }
.target-line { display: flex; align-items: baseline; gap: 6px; margin: 10px 2px 0; font-size: 13px; color: var(--text-2); min-width: 0; }
.target-line .t-k { flex: none; }
.target-line .t-v { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); font-weight: 500; }
.target-line a { flex: none; margin-left: auto; padding-left: 8px; }
.qr-stage .placeholder { color: var(--text-3); text-align: center; max-width: 220px; }
.qr-stage .placeholder svg.i { width: 56px; height: 56px; stroke-width: 1.2; margin-bottom: 8px; }
.dl-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 12px; }
.dl-row .btn.primary { width: 100%; }
@media (max-width: 400px) { .dl-row { grid-template-columns: minmax(0, 1fr); } .dl-row .btn { width: 100%; } }  /* 21.11.2026: на 320 px вторая кнопка вылезала за карточку */
.dl-more { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }

/* ---------- меню, окна, уведомления ---------- */
.menu { position: absolute; z-index: 80; background: var(--bg); border-radius: 10px; box-shadow: var(--shadow); border: 1px solid var(--line); padding: 6px; min-width: 230px; animation: up .12s ease-out; right: 0; top: calc(100% + 6px); }
.menu a, .menu button { width: 100%; display: flex; align-items: center; gap: 10px; border: 0; background: transparent; padding: 8px 10px; border-radius: 7px; text-align: left; text-decoration: none; color: var(--text); }
.menu a:hover, .menu button:hover { background: var(--bg-hover); }
.menu hr { border: 0; border-top: 1px solid var(--line); margin: 6px 0; }
.menu .head { padding: 6px 10px 8px; }
.menu .head .em { color: var(--text-2); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; }
.menu-wrap { position: relative; }
.overlay { position: fixed; inset: 0; background: rgba(10, 14, 22, .42); z-index: 60; display: grid; place-items: center; padding: 20px; animation: fade .15s; }
@keyframes fade { from { opacity: 0; } }
.modal { background: var(--bg); border-radius: 16px; box-shadow: var(--shadow); width: min(460px, 100%); max-height: calc(100vh - 40px); display: flex; flex-direction: column; animation: up .18s ease-out; }
.modal-head { display: flex; align-items: center; gap: 10px; padding: 16px 16px 8px 24px; }
.modal-head h2 { margin: 0; font-size: 18px; flex: 1; }
.modal-body { padding: 4px 24px 18px; overflow-y: auto; color: var(--text-2); }
.modal-foot { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 14px 24px; border-top: 1px solid var(--line); }
.toasts { position: fixed; left: 20px; bottom: 20px; display: grid; gap: 8px; z-index: 90; }
.toast { min-width: 280px; max-width: 520px; background: #2c2d2e; color: #fff; border-radius: 10px; padding: 12px 14px 12px 16px; display: flex; align-items: center; gap: 14px; box-shadow: var(--shadow); animation: up .2s ease-out; font-size: 13.5px; }
.toast.error { background: #b42318; }
.toast button { border: 0; background: transparent; color: #bbb; padding: 0 2px; margin-left: auto; }
@keyframes up { from { transform: translateY(10px); opacity: 0; } }
.drawer { position: fixed; top: 60px; right: 0; bottom: 0; width: min(560px, 100vw); background: var(--bg); border-left: 1px solid var(--line); box-shadow: var(--shadow); z-index: 40; display: flex; flex-direction: column; animation: slide .18s ease-out; }
@keyframes slide { from { transform: translateX(30px); opacity: 0; } }
.drawer-head { display: flex; align-items: flex-start; gap: 10px; padding: 16px 14px 12px 22px; border-bottom: 1px solid var(--line); }
.drawer-head .t { flex: 1; min-width: 0; }
.drawer-head h2 { margin: 0; font-size: 18px; line-height: 1.3; word-break: break-word; }
.drawer-head .sub { color: var(--text-3); font-size: 12.5px; margin-top: 4px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 16px 22px; }
.drawer-foot { display: flex; gap: 8px; padding: 12px 22px; border-top: 1px solid var(--line); flex-wrap: wrap; align-items: center; }
.status-picker { display: flex; flex-wrap: wrap; gap: 6px; }
.status-picker button { height: 32px; border-radius: 16px; border: 1px solid var(--line); background: var(--bg); padding: 0 14px; font-size: 13px; color: var(--text-2); }
.status-picker button:hover { background: var(--bg-hover); }
.status-picker button.on { border-color: transparent; background: var(--accent); color: #fff; font-weight: 600; }
.plain-text { white-space: pre-wrap; word-break: break-word; font-size: 15px; line-height: 1.55; }

/* ---------- история ---------- */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); align-items: start; font-size: 13.5px; }
.timeline .when { color: var(--text-3); font-size: 12.5px; }
.timeline .what b { font-weight: 600; }
.timeline .was { color: var(--text-3); text-decoration: line-through; overflow-wrap: anywhere; }
.timeline .now { overflow-wrap: anywhere; }

/* ---------- публичные страницы ---------- */
body.page { background: var(--bg-side); }
.page .topbar { position: sticky; top: 0; }
.site-wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.hero { padding: 40px 0 24px; text-align: center; }
.hero h1 { font-size: clamp(28px, 4.4vw, 42px); margin: 0 0 10px; letter-spacing: -.01em; }
.hero p { margin: 0 auto; max-width: 620px; color: var(--text-2); font-size: 16px; }
.hero .chips { justify-content: center; margin-top: 16px; }
.center-card { max-width: 440px; margin: 48px auto; background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: 28px; box-shadow: 0 1px 2px rgba(16, 24, 40, .04); }
.center-card h1 { font-size: 22px; margin: 0 0 6px; }
.center-card .lead { color: var(--text-2); margin: 0 0 20px; }
.site-foot { border-top: 1px solid var(--line); padding: 24px 0 40px; color: var(--text-3); font-size: 13px; background: var(--bg); }
.site-foot .site-wrap { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.site-foot a { color: var(--text-2); text-decoration: none; }
.site-foot a:hover { color: var(--accent); }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 18px 0; }
.feature { background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; }
.feature .ic { width: 40px; height: 40px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 10px; }
.feature h3 { margin: 0 0 6px; font-size: 15.5px; }
.feature p { margin: 0; color: var(--text-2); }
.faq details { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 0 18px; }
.faq details + details { margin-top: 8px; }
.faq summary { cursor: pointer; padding: 14px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: "+"; color: var(--text-3); font-weight: 400; font-size: 18px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 14px; color: var(--text-2); }
.prices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; max-width: 820px; margin: 0 auto; }
.price { background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: 22px 24px; display: flex; flex-direction: column; gap: 12px; }
.price.best { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.price .amount { font-size: 32px; font-weight: 700; }
.price .amount small { font-size: 14px; color: var(--text-2); font-weight: 500; }
.price ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; flex: 1; }
.price li { display: flex; gap: 8px; color: var(--text-2); }
.price li svg { color: var(--ok); margin-top: 1px; }
.price li.no svg { color: var(--text-3); }
.prose { max-width: 760px; margin: 28px auto; background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: 28px 32px; }
.prose h1 { font-size: 24px; margin-top: 0; }
.prose h2 { font-size: 17px; margin-top: 22px; }
.prose p, .prose li { color: var(--text-2); line-height: 1.6; }

/* ---------- генератор на главной ---------- */
.gen-shell { display: flex; background: var(--bg); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 12px 32px rgba(16, 24, 40, .06); }
.gen-shell .sidebar { border-radius: 0; }
.gen-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.gen-body { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 22px; padding: 18px 22px 22px; }
.gen-types-mobile { display: none; }
.style-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 18px 0 14px; overflow-x: auto; }
.style-tabs .tab { padding: 10px 10px 8px; }
.style-pane { display: grid; gap: 14px; }
.logo-drop { border: 2px dashed var(--line); border-radius: 12px; padding: 18px; text-align: center; color: var(--text-2); cursor: pointer; display: grid; gap: 4px; place-items: center; transition: border-color .15s, background .15s; }
.logo-drop:hover, .logo-drop.over { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.logo-drop img { max-width: 64px; max-height: 64px; border-radius: 8px; }
.upsell { margin-top: 14px; border-radius: 12px; padding: 14px 16px; background: var(--accent-soft); display: grid; gap: 6px; }
.upsell b { font-size: 14.5px; }
.upsell .hint { color: var(--text-2); }
.upsell .btn { justify-self: start; margin-top: 4px; }

/* ---------- публичная страница отзывов (телефон) ---------- */
.biz { max-width: 520px; margin: 0 auto; padding: 28px 18px 40px; display: grid; gap: 14px; }
.biz .head { text-align: center; }
.biz .head .logo-mark { width: 56px; height: 56px; border-radius: 16px; background: var(--accent); color: #fff; display: grid; place-items: center; margin: 0 auto 12px; font-size: 22px; font-weight: 700; }
.biz h1 { font-size: 24px; margin: 0 0 6px; }
.biz .about { color: var(--text-2); margin: 0; white-space: pre-line; }
.review-btns { display: grid; gap: 10px; }
.review-btns .btn { height: 52px; font-size: 16px; font-weight: 600; }
.brandline { text-align: center; color: var(--text-3); font-size: 12.5px; }

/* ---------- печать ---------- */
.print-sheet { width: 148mm; min-height: 210mm; margin: 24px auto; background: #fff; color: #111; border: 1px solid var(--line); border-radius: 8px; padding: 14mm 12mm; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6mm; }
.print-sheet h1 { font-size: 26pt; margin: 0; line-height: 1.15; color: #111; }
.print-sheet p { font-size: 13pt; margin: 0; color: #444; }
.print-sheet .qr { width: 95mm; }
.print-sheet .qr svg { width: 100%; height: auto; display: block; }
.print-sheet .url { font-size: 10pt; color: #666; font-family: ui-monospace, Consolas, monospace; margin-top: auto; }
.print-bar { max-width: 148mm; margin: 16px auto 0; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
/* на экране телефона лист A5 уменьшаем целиком, чтобы не было прокрутки вбок; на печать не влияет */
@media screen and (max-width: 640px) { .print-bar { padding: 0 16px; } .print-sheet { zoom: .62; } }
@media screen and (max-width: 380px) { .print-sheet { zoom: .5; } }
@media print {
  body { background: #fff !important; }
  .no-print, .topbar, .toasts, .g-deco, .cookie-note { display: none !important; }
  .print-sheet { margin: 0 auto; border: 0; border-radius: 0; }
  @page { size: A5; margin: 0; }
}

/* ---------- адаптивность ---------- */
@media (max-width: 1100px) {
  .split { grid-template-columns: minmax(0, 1fr) 300px; }
  .gen-body { grid-template-columns: minmax(0, 1fr) 280px; }
  .row .from { width: 150px; }
}
@media (max-width: 900px) {
  .logo { width: auto; }
  .split { grid-template-columns: minmax(0, 1fr); }
  .sticky { position: static; }
  .features { grid-template-columns: 1fr; }
  .gen-shell { display: block; border-radius: 14px; }
  .gen-shell > .sidebar { display: none; }
  .gen-types-mobile { display: flex; gap: 6px; overflow-x: auto; padding: 12px 14px 4px; scrollbar-width: none; }
  .gen-types-mobile::-webkit-scrollbar { display: none; }
  .gen-body { grid-template-columns: minmax(0, 1fr); padding: 14px; }
  .gen-preview { order: -1; }
  .prices { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .shell .sidebar { position: fixed; left: 0; top: 60px; bottom: 0; z-index: 50; transform: translateX(-100%); transition: transform .2s; box-shadow: var(--shadow); }
  .shell .sidebar.open { transform: none; }
  .logo span { display: none; }
  .topnav a .lbl { display: none; }
  .tbtn .lbl { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }  /* значок; подпись — для экранного диктора */
  .page-inner { padding: 16px 14px 40px; }
  .grid .hide-m, .drawer-foot .hide-m { display: none; }
  .grid td.c-name { white-space: normal; max-width: none; }
  .grid td, .grid th { padding-left: 10px; padding-right: 10px; }
  .toolbar .sub { white-space: normal; }
  .toolbar .chips { order: 5; width: 100%; }
  .row .from { width: 110px; }
  .row .meta .pill { display: none; }
  .kv { grid-template-columns: 1fr; gap: 2px 0; }
  .kv dd { margin-bottom: 8px; }
  .row2, .row3 { grid-template-columns: 1fr; }
  .timeline li { grid-template-columns: 1fr; gap: 4px; }
  .toolbar .title { max-width: 60vw; }
  .search { display: none; }
  .search.always { display: flex; }
}
@media (min-width: 861px) { .menu-toggle { display: none; } }
@media (max-width: 520px) {
  .topbar { gap: 8px; padding: 0 10px; }
  .user-btn .nm { display: none; }
  .toasts { left: 10px; right: 10px; bottom: 10px; }
  .toast { min-width: 0; }
  .hbar { grid-template-columns: 90px 1fr 54px; }
  .center-card { margin: 20px 12px; padding: 22px 18px; }
  .prose { margin: 12px; padding: 20px 18px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: 10px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--text-3); }

/* ---------- палитра в оформлении кода ---------- */
.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.swatch { width: 32px; height: 32px; border-radius: 50%; background: var(--c); border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); padding: 0; }
.swatch.on, .swatch:hover { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- электронные визитки ---------- */
.avatar { width: 34px; height: 34px; border-radius: 50%; display: inline-grid; place-items: center; overflow: hidden; flex: none;
  background: var(--vc, var(--accent)); color: #fff; font-weight: 700; font-size: 14px; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar.xl { width: 88px; height: 88px; font-size: 34px; }
.photo-pick { display: flex; gap: 16px; align-items: center; margin-bottom: 16px; }
.photo-pick .btn { cursor: pointer; }
.link-row { margin-bottom: 10px; }
.swatch-pick { position: relative; cursor: pointer; display: inline-block; }
.swatch-pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.swatch-pick span { display: block; width: 34px; height: 34px; border-radius: 50%; background: var(--c); border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); }
.swatch-pick input:checked + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.swatch-pick input:focus-visible + span { outline: 2px dashed var(--accent); outline-offset: 3px; }
@media (max-width: 760px) { .link-row { grid-template-columns: 1fr; gap: 6px; } }

/* ---------- редактор визитки ---------- */
.grid2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; align-items: start; }
.card-editor { grid-template-columns: minmax(0, 1fr) 400px; }
.theme-picks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
.theme-pick { position: relative; cursor: pointer; display: grid; gap: 2px; text-align: center; padding: 8px 6px 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.theme-pick input { position: absolute; opacity: 0; }
.theme-pick:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft, rgba(0, 95, 249, .15)); }
.theme-pick:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.theme-pick b { font-size: 13px; }
.theme-pick small { font-size: 11.5px; color: var(--text-2); line-height: 1.3; }
.tp-art { position: relative; display: block; height: 92px; border-radius: 10px; overflow: hidden; background: #f3f5fa; margin-bottom: 6px; border: 1px solid var(--line); }
.tp-art i { position: absolute; display: block; }
.tp-art .l1, .tp-art .l2 { height: 6px; border-radius: 3px; background: #c9cfdc; }
.tp-art .btn-l { height: 10px; border-radius: 5px; background: var(--c); left: 18%; right: 18%; bottom: 10px; }
.tp-classic .a { left: 0; right: 0; top: 0; height: 30px; background: var(--c); }
.tp-classic .b { width: 30px; height: 30px; border-radius: 50%; left: calc(50% - 15px); top: 15px; background: #8a93a8; border: 2px solid #fff; }
.tp-classic .l1 { left: 25%; right: 25%; top: 52px; } .tp-classic .l2 { left: 33%; right: 33%; top: 62px; }
.tp-cover .a { left: 0; right: 0; top: 0; height: 56px; background: linear-gradient(160deg, #8a93a8, #4b5468); }
.tp-cover .b { display: none; }
.tp-cover .l1 { left: 10%; width: 46%; top: 38px; background: #fff; } .tp-cover .l2 { left: 10%; width: 30%; top: 64px; }
.tp-minimal { border-top: 3px solid var(--c); }
.tp-minimal .a { display: none; }
.tp-minimal .b { width: 26px; height: 26px; border-radius: 8px; left: 12%; top: 14px; background: #8a93a8; }
.tp-minimal .l1 { left: 44%; right: 12%; top: 18px; } .tp-minimal .l2 { left: 44%; right: 28%; top: 30px; }
.tp-minimal .btn-l { left: 12%; right: 30%; }
.tp-gradient { background: linear-gradient(165deg, color-mix(in srgb, var(--c) 80%, #fff), var(--c) 45%, color-mix(in srgb, var(--c) 60%, #000)); }
.tp-gradient .a { display: none; }
.tp-gradient .b { width: 28px; height: 28px; border-radius: 50%; left: calc(50% - 14px); top: 12px; background: rgba(255, 255, 255, .35); border: 2px solid rgba(255, 255, 255, .8); }
.tp-gradient .l1 { left: 25%; right: 25%; top: 50px; background: rgba(255, 255, 255, .8); } .tp-gradient .l2 { left: 33%; right: 33%; top: 60px; background: rgba(255, 255, 255, .55); }
.tp-gradient .btn-l { background: #fff; }
.color-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.swatch-pick.custom span { display: grid; place-items: center; color: #555; background: conic-gradient(#e54848, #f5b400, #2fa86b, #1a8cff, #8a4bd6, #e54848); }
.swatch-pick.custom span .i { background: #fff; border-radius: 50%; padding: 2px; width: 18px; height: 18px; }
.color-row input[type=color] { width: 44px; height: 34px; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: none; cursor: pointer; }
.color-row input[type=color]:disabled { opacity: .35; cursor: default; }
.img-picks { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 4px; }
.logo-box { width: 88px; height: 88px; border-radius: 14px; border: 1px dashed var(--line); display: grid; place-items: center; overflow: hidden; flex: none;
  background: repeating-conic-gradient(#f1f3f7 0 25%, #fff 0 50%) 0 0 / 12px 12px; color: var(--text-2); font-size: 12px; }
.logo-box img { max-width: 80px; max-height: 80px; object-fit: contain; }
.check-row { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; margin-bottom: 18px; }
.check-row input { margin-top: 3px; width: 18px; height: 18px; flex: none; accent-color: var(--accent); }
.check-row small { display: block; color: var(--text-2); font-size: 12.5px; margin-top: 2px; line-height: 1.45; }
.form-foot { display: flex; gap: 10px; flex-wrap: wrap; }
.preview-open { display: none; }
.phone-col { position: sticky; top: 0; align-self: start; }
.phone-head { display: none; }
.phone { width: 400px; height: 760px; margin: 0 auto; border-radius: 44px; padding: 12px; background: #11141c; box-shadow: 0 24px 60px rgba(10, 20, 50, .28), inset 0 0 0 2px #2b3040; }
.phone iframe { width: 100%; height: 100%; border: 0; border-radius: 34px; background: #f4f6fb; display: block; }
.sig-box { border: 1px solid var(--line); border-radius: 10px; padding: 14px; background: #fff; overflow-x: auto; }
.bg-preview { width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 10px; border: 1px solid var(--line); display: block; background: var(--bg-input); }
@media (max-width: 1180px) {
  .card-editor { grid-template-columns: 1fr; }
  .preview-open { display: inline-flex; }
  .phone-col { display: none; position: fixed; inset: 0; z-index: 60; background: rgba(8, 12, 24, .72); padding: 16px; overflow: auto; }
  .phone-col.open { display: block; }
  .phone-head { display: flex; justify-content: space-between; align-items: center; max-width: 400px; margin: 0 auto 10px; color: #fff; font-weight: 600; }
  .phone-head .icon-btn { color: #fff; }
  .phone-col .hint { color: #cdd3e0; }
  .phone { width: 100%; max-width: 400px; height: min(760px, calc(100vh - 110px)); }
}
@media (max-width: 760px) {
  .grid2 { grid-template-columns: minmax(0, 1fr); }  /* 21.11.2026: было 1fr — на 320 px колонку распирало до 400 px */
  .theme-picks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .img-picks { grid-template-columns: 1fr; }
  .phone { padding: 8px; border-radius: 36px; }
  .phone iframe { border-radius: 30px; }
  .phone-col { padding: 10px 8px; }
}

/* ---------- мини-сайты: редактор ---------- */
.kind-picks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
.kind-pick { position: relative; cursor: pointer; display: grid; gap: 4px; align-content: start; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.kind-pick input { position: absolute; opacity: 0; }
.kind-pick .ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft, rgba(0, 95, 249, .1)); color: var(--accent); margin-bottom: 4px; }
.kind-pick b { font-size: 13.5px; }
.kind-pick small { font-size: 12px; color: var(--text-2); line-height: 1.35; }
.kind-pick:hover { background: var(--bg-hover); }
.kind-pick:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft, rgba(0, 95, 249, .15)); }
.kind-pick:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.item-rows { display: grid; gap: 8px; margin: 10px 0; }
.item-row { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.item-row.off { background: var(--bg-side); }
.item-ph { position: relative; width: 64px; height: 64px; border-radius: 12px; border: 1px dashed var(--line); background: var(--bg-input); color: var(--text-3); display: grid; place-items: center;
  overflow: hidden; cursor: pointer; padding: 0; }
.item-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.item-ph:hover { border-color: var(--accent); color: var(--accent); }
.item-ph small { position: absolute; left: 0; right: 0; bottom: 4px; font-size: 10.5px; text-align: center; }
.item-main { display: grid; gap: 6px; min-width: 0; }
.item-line { display: grid; grid-template-columns: minmax(0, 1fr) 120px; gap: 6px; }
.item-extra { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; align-items: center; }
.item-main .input { height: 36px; }
.mini-check { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-2); cursor: pointer; white-space: nowrap; }
.mini-check input { width: 16px; height: 16px; accent-color: var(--accent); margin: 0; }
.item-tools { display: grid; gap: 4px; }
.item-tools .icon-btn { width: 30px; height: 30px; }
.item-tools .icon-btn:disabled { opacity: .3; cursor: default; }
.item-add-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.paste-box { margin: -6px 0 18px; padding: 14px; border: 1px dashed var(--line); border-radius: 12px; background: var(--bg-side); }
.paste-box .item-add-row { margin-bottom: 0; }
.paste-box textarea { font-size: 14px; line-height: 1.5; }
.ch-rows { display: grid; gap: 4px; margin: 6px 0 14px; }
.ch-row { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.ch-row:last-child { border-bottom: 0; }
.ch-name { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.ch-name .i { color: var(--accent); }
.ch-row .input { height: 36px; }
.ch-primary { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-2); cursor: pointer; white-space: nowrap; }
.ch-primary input { accent-color: var(--accent); margin: 0; }
.ch-row:has(.ch-primary input:checked) .ch-name { color: var(--accent); }
.ch-row .hint { grid-column: 2 / -1; margin: -2px 0 0; font-size: 12px; }
.ch-row .hint.warn { color: var(--warn-text, #9a6700); }
.stock-list { display: grid; }
.stock-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 4px; border-bottom: 1px solid var(--line); cursor: pointer; }
.stock-row:last-child { border-bottom: 0; }
.stock-row b { display: block; font-weight: 600; }
.stock-row small { display: block; color: var(--text-2); font-size: 12.5px; }
.stock-row.off b { color: var(--text-3); text-decoration: line-through; }
.toggle { position: relative; display: inline-flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-2); white-space: nowrap; }
.toggle input { appearance: none; -webkit-appearance: none; width: 44px; height: 26px; border-radius: 13px; background: var(--line); position: relative; cursor: pointer; margin: 0; transition: background .15s; flex: none; }
.toggle input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .15s; }
.toggle input:checked { background: var(--ok, #2fa86b); }
.toggle input:checked::after { transform: translateX(18px); }
.toggle input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.site-start { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.site-start a.kind-pick { text-decoration: none; color: var(--text); padding: 18px; }
.site-start a.kind-pick b { font-size: 16px; }
.site-start a.kind-pick small { font-size: 13px; }
.start-more { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 16px; font-size: 13.5px; }
@media (max-width: 1180px) { .kind-picks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .site-start { grid-template-columns: 1fr; }
  .ch-row { grid-template-columns: minmax(0, 1fr) auto; }
  .ch-row .input { grid-column: 1 / -1; grid-row: 2; }
  .ch-row .hint { grid-column: 1 / -1; }
  .item-row { grid-template-columns: 56px minmax(0, 1fr); }
  .item-ph { width: 56px; height: 56px; }
  .item-tools { grid-column: 1 / -1; grid-auto-flow: column; justify-content: end; }
  .item-line { grid-template-columns: minmax(0, 1fr) 96px; }
  .item-extra { grid-template-columns: 1fr; }
}

/* ---------- настройки: пароль с кнопкой «показать», уведомления ---------- */
.pw-wrap { position: relative; }
.pw-wrap .input { padding-right: 44px; }
.pw-wrap .icon-btn { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); }
.hint.warn { color: var(--warn-text, #9a6700); }
.notify-foot { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin-top: 12px; }
.check-row + .notify-foot { margin-top: -6px; }
/* предупреждение администратора в кабинете */
.offer-banner { display: flex; gap: 12px; align-items: center; padding: 10px 16px; background: var(--accent-soft); border-bottom: 1px solid var(--line); flex: none; font-size: 14.5px; }
.offer-banner > .i { color: var(--accent); flex: none; }
.offer-banner .t { flex: 1; min-width: 0; }
@media (max-width: 600px) { .offer-banner { flex-wrap: wrap; } .offer-banner form { margin-left: 34px; } }
.warn-banner { display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px; background: color-mix(in srgb, #f5b400 16%, var(--bg)); border-bottom: 1px solid color-mix(in srgb, #f5b400 40%, var(--line)); flex: none; }
.warn-banner > .i { color: #b07800; flex: none; margin-top: 2px; }
.warn-banner .t { flex: 1; min-width: 0; }
.warn-banner .t b { display: block; }
.warn-banner .t p { margin: 2px 0 0; white-space: pre-line; overflow-wrap: anywhere; }
.warn-banner .t small { color: var(--text-2); }

:root[data-theme="dark"] .hint.warn, :root[data-theme="dark"] .ch-row .hint.warn { color: #e3b341; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hint.warn { color: #e3b341; } }
:root[data-theme="dark"] .warn-banner > .i { color: #e3b341; }

/* ---------- супер-админка ---------- */
.toolbar.wrap { gap: 10px; }
.admin-alerts { display: grid; gap: 8px; margin-top: 12px; }
.admin-alert { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 10px; color: var(--text); text-decoration: none; background: var(--wait-bg); }
.admin-alert > span { flex: 1; }
.admin-alert .i { flex: none; }
.admin-alert.warn .i:first-child { color: var(--wait-fg); }
.admin-alert.bad { background: var(--bad-bg); }
.admin-alert.bad .i:first-child { color: var(--bad-fg); }
.admin-alert.ok { background: var(--ok-bg); }
.admin-alert.ok .i:first-child { color: var(--ok-fg); }
.admin-alert:hover { filter: brightness(.97); }
.feed { list-style: none; margin: 0; padding: 0; }
.feed-row { display: flex; gap: 12px; align-items: flex-start; padding: 9px 0; border-top: 1px solid var(--line); }
.feed-row:first-child { border-top: 0; }
.feed-ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--bg-input); color: var(--text-2); flex: none; }
.k-register .feed-ic, .k-signup .feed-ic { background: var(--ok-bg); color: var(--ok-fg); }
.k-report .feed-ic { background: var(--bad-bg); color: var(--bad-fg); }
.k-lead .feed-ic, .k-billing .feed-ic { background: var(--mail-bg); color: var(--mail-fg); }
.feed-main { flex: 1; min-width: 0; overflow-wrap: anywhere; line-height: 1.45; }
.feed-detail { color: var(--text-2); }
.feed-who { display: block; font-size: 12.5px; color: var(--text-3); }
.feed-who a { color: inherit; }
.feed-ts { flex: none; font-size: 12.5px; color: var(--text-3); white-space: nowrap; padding-top: 2px; }
.quick-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 10px; }
.quick-row form { margin: 0; }
.warn-list, .plain-list { list-style: none; margin: 0; padding: 0; }
.warn-list li { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--line); }
.warn-list li > div { flex: 1; min-width: 0; }
.warn-list p { margin: 0 0 4px; white-space: pre-line; overflow-wrap: anywhere; }
.warn-list small { color: var(--text-2); }
.plain-list li { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.plain-list li:first-child { border-top: 0; }
.plain-list form { margin: 0 0 0 auto; }
.admin-user .card + .card, .admin-user form.card + .card, .admin-user .card + form.card { margin-top: 12px; }
@media (max-width: 600px) { .feed-row { flex-wrap: wrap; } .feed-ts { width: 100%; padding-left: 42px; } }

.plans-table td:first-child { white-space: normal; color: var(--text); }
.plans-table td { white-space: normal; }
.plans-table td:last-child { font-weight: 600; }

/* ---------- «Что создаём?» ---------- */
.compose-btn.on { box-shadow: 0 0 0 3px var(--accent-soft), 0 2px 8px rgba(0, 95, 249, .25); }
.create { max-width: 1040px; display: grid; gap: 28px; }
.create-hero { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 20px 22px;
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line)); border-radius: 16px;
  background: linear-gradient(135deg, var(--accent-soft), var(--bg) 72%); }
.ch-ic { width: 52px; height: 52px; border-radius: 15px; background: var(--accent); color: #fff; display: grid; place-items: center; align-self: start; }
.ch-ic .i { width: 26px; height: 26px; }
.ch-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ch-top h2 { margin: 0; font-size: 19px; }
.ch-main p { margin: 6px 0 0; color: var(--text-2); max-width: 560px; }
.ch-targets { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 12px; }
.ch-targets .hint { margin-right: 2px; }
.ch-targets .chip { background: var(--bg); }
.ch-targets .chip .i { color: var(--accent); }
.ch-side { display: grid; gap: 6px; justify-items: center; text-align: center; }
.create-sec h2 { margin: 0; font-size: 17px; }
.create-sec > .hint { margin: 4px 0 14px; max-width: 680px; }
.cs-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.cs-link { font-size: 13.5px; text-decoration: none; }
.cs-link:hover { text-decoration: underline; }
.create-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.create-tile { display: grid; gap: 4px; align-content: start; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg);
  color: var(--text); text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s; }
.create-tile:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); box-shadow: 0 6px 18px rgba(16, 24, 40, .08); transform: translateY(-1px); }
.create-tile .ic, .type-tile .ic { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 6px; flex: none; }
.create-tile b { font-size: 15px; }
.create-tile small { color: var(--text-2); font-size: 13px; line-height: 1.4; }
.create-tile .meta { margin-top: 6px; font-size: 12.5px; color: var(--text-3); }
.type-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.type-tile { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg);
  color: var(--text); text-decoration: none; transition: border-color .15s, background .15s; }
.type-tile .ic { width: 36px; height: 36px; border-radius: 10px; margin: 0; }
.type-tile .tt { display: grid; min-width: 0; }
.type-tile b { font-size: 14px; }
.type-tile small { color: var(--text-2); font-size: 12.5px; line-height: 1.35; }
.type-tile:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); background: color-mix(in srgb, var(--accent-soft) 45%, var(--bg)); }
@media (max-width: 1000px) { .create-grid { grid-template-columns: 1fr; } .create-tile { grid-template-columns: auto minmax(0, 1fr); column-gap: 12px; }
  .create-tile .ic { grid-row: span 3; margin: 0; } }
@media (max-width: 760px) {
  .create { gap: 22px; }
  .create-hero { grid-template-columns: auto minmax(0, 1fr); padding: 16px; gap: 12px 14px; }
  .ch-ic { width: 44px; height: 44px; border-radius: 13px; }
  .ch-side { grid-column: 1 / -1; justify-items: stretch; }
  .ch-side .btn { width: 100%; }
  .type-grid { gap: 8px; }
  .type-tile { flex-direction: column; gap: 6px; padding: 12px 6px 10px; text-align: center; }
  .type-tile .tt { justify-items: center; }
  .type-tile b { font-size: 13px; line-height: 1.25; }
  .type-tile small { display: none; }
}

/* ---------- генератор в кабинете ---------- */
.type-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.type-tab { height: 36px; padding: 0 13px; border: 1px solid var(--line); border-radius: 18px; background: var(--bg); color: var(--text-2);
  display: inline-flex; align-items: center; gap: 7px; font-weight: 500; white-space: nowrap; }
.type-tab:hover { background: var(--bg-hover); color: var(--text); }
.type-tab.on { background: var(--accent-soft); border-color: transparent; color: var(--accent); font-weight: 600; }
.gen-cab { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px 20px; align-items: start;
  grid-template-areas: "types types" "fields preview" "design preview" "save preview"; }
.gen-cab .type-tabs { grid-area: types; }
.gc-fields { grid-area: fields; }
.gc-preview { grid-area: preview; position: sticky; top: 16px; align-self: start; }
.gc-design { grid-area: design; }
.gc-save { grid-area: save; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.gen-cab .card + .card { margin-top: 0; }
.gc-design .style-tabs { margin-top: 0; }
.gc-note { flex-basis: 100%; margin: 2px 0 0; }
.gen-fields .field-err { color: var(--danger); font-size: 13px; margin: -8px 0 14px; line-height: 1.45; }
.gen-fields .gen-note { margin: 0 0 12px; line-height: 1.45; }
.gen-fields .gen-tip { display: flex; gap: 8px; align-items: flex-start; margin: 2px 0 6px; line-height: 1.45; }
.gen-fields .gen-tip .i { flex: none; margin-top: 2px; color: var(--accent); }
.gen-callout { margin: 2px 0 4px; }
.gen-callout p { line-height: 1.5; }
.gen-callout .btn { margin-top: 8px; display: flex; width: fit-content; }
.link-btn { border: 0; background: none; padding: 0; font: inherit; color: var(--accent); cursor: pointer; text-decoration: underline; }
.type-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--text-2); background: var(--bg-input);
  border-radius: 7px; padding: 2px 8px; white-space: nowrap; }
.type-chip .i { width: 14px; height: 14px; }
.grid td .sub.show-m { display: none; }
.empty-types, .empty-acts { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 18px; }
.empty-acts .btn { margin-top: 0; }
@media (max-width: 1100px) { .gen-cab { grid-template-columns: minmax(0, 1fr) 300px; } }
@media (max-width: 900px) {
  .gen-cab { grid-template-columns: minmax(0, 1fr); grid-template-areas: "types" "fields" "preview" "design" "save"; }
  .gc-preview { position: static; }
  .type-tabs { flex-wrap: nowrap; overflow-x: auto; margin: 0 -14px; padding: 2px 14px 4px; scrollbar-width: none; }
  .type-tabs::-webkit-scrollbar { display: none; }
}
@media (max-width: 860px) { .grid td .sub.show-m { display: block; } }
@media (max-width: 520px) { .gc-save .btn.big { width: 100%; } }

/* ---------- кнопка «Создать» на телефоне ---------- */
.fab { display: none; }
@media (max-width: 860px) {
  .fab { display: grid; place-items: center; position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 35;
    width: 56px; height: 56px; border-radius: 18px; background: var(--accent); color: #fff; box-shadow: 0 8px 22px rgba(0, 95, 249, .35); }
  .fab .i { width: 26px; height: 26px; stroke-width: 2.2; }
  .has-fab .scroll { padding-bottom: 84px; }
}
@media (max-width: 860px) {
  .toolbar .tsep, .toolbar .tb-new { display: none; }  /* на телефоне «Создать» — круглая кнопка внизу */
  .toolbar > .chips.row-m { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px 0 -14px; padding: 0 16px 0 14px; width: calc(100% + 30px); }
  .toolbar > .chips.row-m::-webkit-scrollbar { display: none; }
}

/* ---------- оформление: готовый стиль; генератор: поля контакта и чата ---------- */
.presets { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0 0 14px; }
.presets-k { font-size: 13px; font-weight: 600; color: var(--text-2); margin-right: 4px; }
.chip.preset { display: inline-flex; align-items: center; gap: 7px; }
/* кружок, а не квадрат: квадратик читался как галочка «включить/выключить» */
.chip.preset i { width: 16px; height: 16px; border-radius: 50%; background: linear-gradient(135deg, var(--a) 0 55%, var(--b) 55%); flex: none;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); }
/* подпись под кодом */
.label-block { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin: 0 0 14px; }
.lb-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.lb-k { font-size: 14px; font-weight: 600; }
.lb-body { margin-top: 12px; }
.lb-body .field { margin-bottom: 10px; }
.lb-input { position: relative; display: block; }
.lb-input .input { width: 100%; padding-right: 56px; }
.lb-count { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: 12px; color: var(--text-3, var(--text-2)); pointer-events: none; font-variant-numeric: tabular-nums; }
.lb-count.warn { color: var(--danger, #c0392b); }
.lb-chips { margin: 0 0 12px; gap: 6px; }
.lb-color { margin-bottom: 0 !important; }
.presets-reset { margin-left: auto; font-size: 13px; }
.more-fields { margin: -2px 0 12px; }
.more-fields > summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-weight: 600; font-size: 14px; padding: 4px 0; }
.more-fields > summary::-webkit-details-marker { display: none; }
.more-fields[open] > summary { margin-bottom: 10px; }
.more-fields[open] > summary .i { transform: rotate(45deg); }
.chat-how, .chat-notext { margin: -8px 0 14px; line-height: 1.45; font-size: 13px; }
.chat-notext { padding: 10px 12px; border-radius: 10px; background: var(--bg-input); color: var(--text-2); margin-top: 0; }
@media (max-width: 520px) { .presets-reset { margin-left: 0; } }

/* ---------- тариф: выбор Про / Бизнес ---------- */
.plan-pick h2 { margin-top: 0; }
.pp-plans { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pp-plan { position: relative; cursor: pointer; }
.pp-plan input { position: absolute; opacity: 0; pointer-events: none; }
.pp-body { display: grid; gap: 4px; height: 100%; border: 1.5px solid var(--line); border-radius: 12px; padding: 14px 16px; transition: border-color .15s, background .15s; }
.pp-plan:hover .pp-body { background: var(--bg-hover); }
.pp-plan input:checked + .pp-body { border-color: var(--accent); background: var(--accent-soft); }
.pp-plan input:focus-visible + .pp-body { outline: 2px solid var(--accent); outline-offset: 2px; }
.pp-head { display: flex; align-items: center; gap: 8px; font-size: 16px; }
.pp-price { font-size: 26px; font-weight: 700; letter-spacing: -.01em; }
.pp-price small { font-size: 14px; font-weight: 500; color: var(--text-2); }
.pp-year { font-size: 13px; color: var(--accent); font-weight: 600; }
.pp-lim { font-size: 13px; color: var(--text-2); }
.plans-table td:not(:first-child), .plans-table th:not(:first-child) { white-space: normal; min-width: 110px; }
@media (max-width: 600px) { .pp-plans { grid-template-columns: 1fr; } }
/* пароль и срок у кода */
.protect h2 { display: flex; align-items: center; gap: 8px; }
.protect h2 .pill .i { width: 13px; height: 13px; }
.protect-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.protect-tags .pill { text-decoration: none; }
.protect-tags .pill .i { width: 13px; height: 13px; }
.code-pass { max-width: 360px; margin: 18px auto 0; text-align: left; }
.code-pass .field-err { color: var(--danger); margin: -6px 0 12px; font-size: 14px; }
/* отчёт за месяц */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.report-month { margin-left: auto; }
.report-month .input { height: 36px; padding: 0 30px 0 12px; min-width: 180px; }
.tile .d b.up { color: var(--ok, #1a7f37); }
.tile .d b.down { color: var(--danger); }
a.hbar { text-decoration: none; color: inherit; }
a.hbar:hover span:first-child { color: var(--accent); }
@media (max-width: 600px) { .report-month .input { min-width: 0; width: 150px; } }
.admin-alert-row { display: flex; align-items: center; gap: 8px; }
.admin-alert-row .admin-alert { flex: 1; min-width: 0; }
.admin-alert-row form { flex: none; }
@media (max-width: 600px) { .admin-alert-row { flex-wrap: wrap; } .admin-alert-row form { margin-left: auto; } }

/* === Крупнее текст в кабинете (сгенерировано tools/bigger.py, 15.11.2026): мелкий текст +1,5 px === */
body.shell { font-size: 15.5px; }
.shell .icon-btn .badge { font-size: 12px; }
.shell .avatar { font-size: 15px; }
.shell .compose-btn { font-size: 16px; }
.shell .side-label { font-size: 13px; }
.shell .folder .count { font-size: 14px; }
.shell .plan-line { font-size: 14px; }
.shell .toolbar .sub { font-size: 14.5px; }
.shell .chip { font-size: 14.5px; }
.shell table.grid { font-size: 15px; }
.shell .grid td .sub { font-size: 13.5px; }
.shell .pill { font-size: 14px; }
.shell .tag { font-size: 12.5px; }
.shell .fold-chip { font-size: 13px; }
.shell .row .meta { font-size: 14.5px; }
.shell .btn.big { font-size: 16px; }
.shell .btn.sm { font-size: 14.5px; }
.shell .field > span, .shell .label { font-size: 14.5px; }
.shell .prefix-input span { font-size: 14.5px; }
.shell .hint { font-size: 14px; }
.shell .err-text { font-size: 14.5px; }
.shell .radio-card span { font-size: 14px; }
.shell .color-row .input { font-size: 14.5px; }
.shell .seg span { font-size: 14.5px; }
.shell .tab .count-chip { font-size: 13px; }
.shell .count-chip { font-size: 13.5px; }
.shell .card h3 { font-size: 16px; }
.shell .section-title { font-size: 13.5px; }
.shell .tile .k { font-size: 14px; }
.shell .tile .d { font-size: 14px; }
.shell .kv { font-size: 15px; }
.shell .copy-line code { font-size: 14.5px; }
.shell .copy-line .lbl { font-size: 13px; }
.shell .chart .bar .tip { font-size: 13.5px; }
.shell .chart-axis { font-size: 13px; }
.shell .hbar { font-size: 14.5px; }
.shell .checks { font-size: 14.5px; }
.shell .score .ring b { font-size: 13px; }
.shell .qr-stage.busy:not(.empty)::after { font-size: 14.5px; }
.shell .target-line { font-size: 14.5px; }
.shell .menu .head .em { font-size: 14px; }
.shell .toast { font-size: 15px; }
.shell .drawer-head .sub { font-size: 14px; }
.shell .status-picker button { font-size: 14.5px; }
.shell .plain-text { font-size: 16px; }
.shell .timeline li { font-size: 15px; }
.shell .timeline .when { font-size: 14px; }
.shell .site-foot { font-size: 14.5px; }
.shell .feature h3 { font-size: 16.5px; }
.shell .price .amount small { font-size: 15.5px; }
.shell .upsell b { font-size: 16px; }
.shell .brandline { font-size: 14px; }
.shell .avatar { font-size: 15.5px; }
.shell .theme-pick b { font-size: 14.5px; }
.shell .theme-pick small { font-size: 13px; }
.shell .logo-box { font-size: 13.5px; }
.shell .check-row small { font-size: 14px; }
.shell .kind-pick b { font-size: 15px; }
.shell .kind-pick small { font-size: 13.5px; }
.shell .item-ph small { font-size: 12px; }
.shell .mini-check { font-size: 14.5px; }
.shell .paste-box textarea { font-size: 15.5px; }
.shell .ch-primary { font-size: 14px; }
.shell .ch-row .hint { font-size: 13.5px; }
.shell .stock-row small { font-size: 14px; }
.shell .toggle { font-size: 14.5px; }
.shell .site-start a.kind-pick small { font-size: 14.5px; }
.shell .start-more { font-size: 15px; }
.shell .feed-who { font-size: 14px; }
.shell .feed-ts { font-size: 14px; }
.shell .cs-link { font-size: 15px; }
.shell .create-tile b { font-size: 16px; }
.shell .create-tile small { font-size: 14.5px; }
.shell .create-tile .meta { font-size: 14px; }
.shell .type-tile b { font-size: 15.5px; }
.shell .type-tile small { font-size: 14px; }
.shell .gen-fields .field-err { font-size: 14.5px; }
.shell .type-chip { font-size: 14px; }
.shell .presets-k { font-size: 14.5px; }
.shell .lb-k { font-size: 15.5px; }
.shell .lb-count { font-size: 13.5px; }
.shell .presets-reset { font-size: 14.5px; }
.shell .more-fields > summary { font-size: 15.5px; }
.shell .chat-how, .shell .chat-notext { font-size: 14.5px; }
.shell .pp-price small { font-size: 15.5px; }
.shell .pp-year { font-size: 14.5px; }
.shell .pp-lim { font-size: 14.5px; }
.shell .code-pass .field-err { font-size: 15.5px; }
@media (max-width: 760px) {
  .shell .type-tile b { font-size: 14.5px; }
}
/* ручные поправки к крупному тексту */
.shell table.grid { font-size: 14.5px; }
.shell .grid td .sub { font-size: 13.5px; }
.shell .admin-tabs .tab { padding-left: 10px; padding-right: 10px; }
@media (max-width: 1500px) { .shell .hide-l { display: none; } }
.shell .grid td.link-cell { max-width: 280px; }
@media (max-width: 1500px) {
  /* крупный текст не должен раздвигать таблицы: длинное обрезаем многоточием (полный текст — в подсказке title) */
  .shell .grid td { max-width: 240px; }
  .shell .grid td.link-cell { max-width: 200px; }
  .shell .grid td.c-name { max-width: 220px; }
  .shell .grid td, .shell .grid th { padding-left: 10px; padding-right: 10px; }
  .shell .admin-tabs .tab { padding-left: 8px; padding-right: 8px; font-size: 14.5px; }
}

/* === Подробная статистика (16.11.2026): география, время, устройства, журнал переходов === */
.sd { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin-top: 14px; }
.sd > *, .sd-row > * { min-width: 0; }
.sd-row { margin: 0; }
.sd-strip { display: flex; flex-wrap: wrap; gap: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); overflow: hidden; }
.sd-strip > div { flex: 1 1 150px; padding: 12px 16px; border-right: 1px solid var(--line); display: grid; gap: 2px; min-width: 0; }
.sd-strip > div:last-child { border-right: 0; }
.sd-strip > div.wide { flex: 2 1 260px; }
.sd-strip .k { color: var(--text-2); font-size: 14px; }
.sd-strip b { font-size: 20px; font-weight: 650; font-variant-numeric: tabular-nums; }
.sd-strip .wide b { font-size: 17px; }
.sd-empty { display: flex; gap: 12px; align-items: flex-start; color: var(--text-2); }
.sd-empty .i { flex: none; width: 22px; height: 22px; color: var(--accent); }
.sd-empty p { margin: 0; }
.sd h2 small { font-size: 14px; font-weight: 400; margin-left: 6px; }
.sd-sub { font-size: 15px; font-weight: 600; margin: 18px 0 4px; }
.sd-gap { height: 12px; }
.sd-note { margin: 12px 0 0; font-size: 14px; }
.sd .hbar { grid-template-columns: minmax(0, 170px) 1fr auto; }
.sd .hbar > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sd .hbar.city > span:first-child small { color: var(--text-3); margin-left: 6px; font-size: 13px; }
.sd .hbar.rest .track i { background: var(--text-3); opacity: .5; }
.sd .hbar .n { min-width: 64px; }
.flag { margin-right: 6px; font-size: 1.1em; line-height: 1; }
.sd-lock { display: grid; gap: 10px; justify-items: start; padding: 14px; border-radius: 10px; background: var(--bg-input); }
.sd-lock .i { width: 20px; height: 20px; color: var(--text-2); }
.sd-lock p { margin: 0; color: var(--text-2); }
.heat { display: grid; gap: 3px; margin-top: 8px; }
.heat-row { display: grid; grid-template-columns: 28px repeat(24, minmax(0, 1fr)) 52px; gap: 3px; align-items: center; }
.heat-row .wd { color: var(--text-2); font-size: 13.5px; }
.heat-row .sum { text-align: right; color: var(--text-2); font-size: 13.5px; font-variant-numeric: tabular-nums; }
.heat-head span { color: var(--text-3); font-size: 12px; text-align: left; white-space: nowrap; overflow: visible; }
.cell { display: block; aspect-ratio: 1; max-height: 26px; border-radius: 4px; background: var(--bg-input); }
.cell.l1 { background: color-mix(in srgb, var(--accent) 18%, var(--bg-input)); }
.cell.l2 { background: color-mix(in srgb, var(--accent) 36%, var(--bg-input)); }
.cell.l3 { background: color-mix(in srgb, var(--accent) 56%, var(--bg-input)); }
.cell.l4 { background: color-mix(in srgb, var(--accent) 78%, var(--bg-input)); }
.cell.l5 { background: var(--accent); }
.heat-legend { display: flex; align-items: center; gap: 4px; justify-content: flex-end; margin-top: 8px; color: var(--text-3); font-size: 13px; }
.heat-legend .cell { width: 14px; height: 14px; }
.heat-legend span { margin: 0 4px; }
.chart.hours { height: 110px; }
.sd-log-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.sd-log-head h2 { margin: 0; }
.sd-table { overflow-x: auto; margin: 0 -20px; }
.sd-table .grid { min-width: 560px; }
.sd-table .grid td, .sd-table .grid th { font-size: 14.5px; padding-left: 10px; padding-right: 10px; }
.sd-table .grid td:first-child, .sd-table .grid th:first-child { padding-left: 20px; }
.sd-table .nw { white-space: nowrap; font-variant-numeric: tabular-nums; }
.sd-table .place span { display: inline-block; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
.pager { display: flex; gap: 12px; align-items: center; justify-content: center; margin-top: 12px; }
.sd-foot { margin: 0; }
@media (max-width: 1100px) { .row3.sd-row { grid-template-columns: 1fr 1fr; } .row3.sd-row > :last-child { grid-column: 1 / -1; } }
@media (max-width: 760px) {
  .row2.sd-row, .row3.sd-row { grid-template-columns: 1fr; }
  .sd-strip > div { flex-basis: 45%; border-bottom: 1px solid var(--line); }
  .sd .hbar { grid-template-columns: minmax(0, 120px) 1fr auto; }
  .heat-row { grid-template-columns: 22px repeat(24, minmax(0, 1fr)) 34px; gap: 2px; }
  .heat-head span { font-size: 10.5px; }
  .cell { border-radius: 2px; }
  .sd-table .place span { max-width: 160px; }
}
.sd .hbar.city { grid-template-columns: minmax(0, 1.3fr) minmax(60px, 1fr) auto; }
.sd .hbar.city > span:first-child { display: grid; line-height: 1.25; white-space: normal; }
.sd .hbar.city > span:first-child > * { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sd .hbar.city > span:first-child small { margin-left: 0; }
.row3.sd-row .hbar { grid-template-columns: minmax(0, 1fr) auto; row-gap: 4px; }
.row3.sd-row .hbar .track { grid-row: 2; grid-column: 1 / -1; height: 6px; }
.row3.sd-row .hbar .n { min-width: 0; }
@media (max-width: 760px) {
  .sd-table { overflow: visible; }
  .sd-table .grid, .sd-table .grid tbody { display: block; min-width: 0; width: 100%; }
  .sd-table .grid thead { display: none; }
  .sd-table .grid tr { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; column-gap: 10px; row-gap: 2px; align-items: center; padding: 10px 20px; border-bottom: 1px solid var(--line); }
  .sd-table .grid td, .sd-table .grid td:first-child { height: auto; padding: 0; border: 0; max-width: none; }
  .sd-table .grid td:nth-child(2) { grid-column: 2 / -1; }
  .sd-table .grid td:nth-child(3) { grid-row: 2; grid-column: 1 / 3; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; }
  .sd-table .grid td:last-child { grid-row: 2; grid-column: 3; }
  .sd-table .place span { max-width: 100%; }
}

/* === Папки: создать, переименовать, удалить (16.11.2026) === */
.side-label-act { display: flex; align-items: center; justify-content: space-between; padding-right: 12px; }
.side-add { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; color: var(--text-3); }
.side-add:hover { background: var(--bg-hover, var(--bg-input)); color: var(--accent); }
.folder.folder-new { color: var(--text-2); }
.folder.folder-new .i { color: var(--accent); }
.fm-list { display: grid; gap: 8px; }
.fm-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; }
.fm-row .i { color: var(--text-2); }
.fm-row .nm { color: var(--text); text-decoration: none; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fm-row .nm small { display: block; font-weight: 400; color: var(--text-2); font-size: 14px; }
.fm-acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.fm-rename { display: none; grid-column: 1 / -1; gap: 8px; }
.fm-row:target .fm-rename, .fm-row.open .fm-rename { display: flex; }
.fm-pick { display: grid; gap: 4px; max-height: 420px; overflow: auto; border: 1px solid var(--line); border-radius: 10px; padding: 6px; }
.fm-pick label { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 8px; cursor: pointer; }
.fm-pick label:hover { background: var(--bg-input); }
.fm-pick .t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fm-pick .t small { color: var(--text-2); margin-left: 6px; }
.fm-pick .f { color: var(--text-3); font-size: 14px; white-space: nowrap; }
.fm-steps { margin: 0 0 14px; padding-left: 20px; color: var(--text-2); }
.fm-steps li { margin: 4px 0; }
@media (max-width: 600px) { .fm-row { grid-template-columns: auto minmax(0, 1fr); } .fm-acts { grid-column: 1 / -1; justify-content: flex-start; } }
.fm-row .nm:hover { color: var(--accent); }

/* === Мини-сайты: справочные форматы и шаблоны (16.11.2026) === */
body.shell .kind-group { grid-column: 1 / -1; margin: 4px 0 -2px; font-size: 13.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); }
body.shell .kind-group:first-child { margin-top: 0; }
.item-link { margin-top: 6px; }
.item-row.no-price .item-line { grid-template-columns: 1fr; }
.item-row.no-price [data-f=price] { display: none; }
.item-row.wide-val .item-line { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 600px) { .item-row.wide-val .item-line { grid-template-columns: 1fr; } }

/* === Галерея шаблонов: /shablony и «Новый мини-сайт» (16.11.2026) === */
.tpl-cats { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 18px; }
.tpl-cats a { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--bg); color: var(--text); text-decoration: none; font-size: 14.5px; font-weight: 600; }
.tpl-cats a span { color: var(--text-3); font-weight: 500; }
.tpl-cats a:hover { border-color: var(--accent); }
.tpl-cats a[aria-current] { background: var(--accent); border-color: var(--accent); color: #fff; }
.tpl-cats a[aria-current] span { color: #fff; }  /* число на красном — читаемое (контраст был 3,6) */
.tpl-cats a[aria-current] span { color: rgba(255, 255, 255, .8); }
.tpl-sec { margin: 0 0 26px; }
.tpl-sec h2 { font-size: 21px; margin: 0 0 2px; }
.tpl-sub { margin: 0 0 12px; color: var(--text-2); font-size: 14.5px; }
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(214px, 1fr)); gap: 16px; }
.tpl-card { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; align-content: start; padding: 10px; border: 1px solid var(--line); border-radius: 18px; background: var(--bg); }
.tpl-thumb { display: block; position: relative; height: 380px; overflow: hidden; border-radius: 12px; background: #eef1f7; }
.tpl-thumb iframe { position: absolute; left: 50%; top: 0; width: 375px; height: 700px; margin-left: -187.5px; border: 0;
  transform: scale(.53); transform-origin: 50% 0; pointer-events: none; background: #f4f6fb; }
.tpl-thumb::after { content: ""; position: absolute; inset: auto 0 0; height: 48px; background: linear-gradient(transparent, rgba(0, 0, 0, .06)); }
.tpl-thumb:hover { outline: 2px solid var(--accent); outline-offset: 2px; }
.tpl-meta b { display: block; font-size: 15px; line-height: 1.3; }
.tpl-meta small { color: var(--text-3); font-size: 13.5px; }
.tpl-btns { display: grid; gap: 6px; }
.tpl-btns .btn { justify-content: center; width: 100%; }
.tpl-hero { margin: 8px 0 22px; }
.tpl-hero h1 { font-size: clamp(30px, 4.4vw, 48px); letter-spacing: -.03em; margin: 0 0 10px; }
.tpl-in-app .tpl-sec h2 { font-size: 18px; }
@media (max-width: 520px) {
  .tpl-cats { flex-wrap: nowrap; overflow-x: auto; margin-right: -16px; padding-right: 16px; scrollbar-width: none; }
  .tpl-cats::-webkit-scrollbar { display: none; }
  .tpl-cats a { flex: none; }
  .tpl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tpl-card { padding: 6px; border-radius: 14px; }
  .tpl-thumb { height: 270px; }
  .tpl-thumb iframe { transform: scale(.42); }
  .tpl-meta b { font-size: 14px; }
}
@media (min-width: 1200px) { body.shell .site-start { grid-template-columns: repeat(3, minmax(0, 1fr)); } body.shell .site-start a.kind-pick { padding: 14px 16px; } }

/* Логотип Kon24 (16.11.2026): знак — картинка logo.png */
.logo .mark-img { width: 36px; height: 36px; flex: none; display: block; object-fit: contain; }

/* ---------- Кабинет после разбора замечаний (16.11.2026): содержание и главное действие — первыми ---------- */
/* боковое меню: «Мои коды», папки, страницы, заявки; тариф и настройки — без заголовка, под чертой */
.side-acc { margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--line); }
a.side-foot { text-decoration: none; color: inherit; }
a.side-foot:hover { background: var(--bg-hover); }
.side-foot .hint { font-size: 13px; margin: 0; }
.top-search { display: none; }
/* список кодов */
.name-link { color: inherit; text-decoration: none; }
tr:hover .name-link, .name-link:focus-visible { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.grid td.row-act { text-align: right; padding-top: 4px; padding-bottom: 4px; }
.sort-btn { border: 1px solid var(--line); font-size: 14.5px; color: var(--text-2); }
.sort-btn .i:last-child { width: 14px; height: 14px; }
.menu a[aria-current] { font-weight: 600; color: var(--accent); }
.menu a:not([aria-current]) > .i:first-child { visibility: hidden; }
.menu#userMenu a > .i:first-child, .menu#codeMenu a > .i:first-child { visibility: visible; }
.menu form { margin: 0; }
.menu button.danger { color: var(--danger); }
.show-s { display: none; }
.list-foot { margin: 0; padding: 16px 16px 4px; font-size: 14.5px; }
.list-foot a { display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); }
/* карточка кода: цифры за выбранный период, итог за всё время — приглушённой плиткой */
.tile.quiet { background: var(--bg-side); }
.tile.quiet .v { color: var(--text-2); }
.qq-acts { display: grid; gap: 8px; margin-top: 12px; }
.qq-acts .dl-row { margin-top: 0; }
.qq-acts > .btn { width: 100%; justify-content: center; }
/* редакторы визитки и мини-сайта */
.kind-fold { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-bottom: 14px; }
.kind-fold > summary { display: flex; align-items: center; gap: 10px; cursor: pointer; list-style: none; font-size: 15.5px; }
.kind-fold > summary::-webkit-details-marker { display: none; }
.kind-fold .kf-ic { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex: none; }
.kind-fold .kf-t { flex: 1; min-width: 0; }
.kind-fold .kf-btn { color: var(--accent); font-weight: 600; font-size: 14.5px; white-space: nowrap; }
.kind-fold[open] .kf-btn { font-size: 0; }
.kind-fold[open] .kf-btn::after { content: "Свернуть"; font-size: 14.5px; }
.kind-fold .kind-picks { margin-bottom: 4px; }
.sec-nav { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 18px; }
.sec-nav a { height: 32px; border: 1px solid var(--line); background: var(--bg); border-radius: 16px; padding: 0 13px; font-size: 14px; color: var(--text-2); display: inline-flex; align-items: center; white-space: nowrap; text-decoration: none; }
.sec-nav a:hover { background: var(--bg-hover); color: var(--text); }
.sec-nav a[hidden] { display: none; }
[id^="sec-"] { scroll-margin-top: 14px; }
.card-editor form.card > h2 { margin-top: 0; }
.card-editor .form-foot { position: sticky; bottom: 0; z-index: 6; align-items: center; background: var(--bg); margin: 20px -20px 0; padding: 12px 20px; border-top: 1px solid var(--line); box-shadow: 0 -8px 18px -14px rgba(10, 20, 50, .35); }
.card-editor .form-foot:last-child { margin-bottom: -18px; border-radius: 0 0 var(--radius) var(--radius); }
.save-state { display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); font-size: 14px; margin-left: 4px; }
.save-state::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok-fg); flex: none; }
.save-state.dirty { color: var(--wait-fg); font-weight: 600; }
.save-state.dirty::before { background: var(--wait-fg); }
/* новый код: папка и свой адрес — по желанию */
.more-opts { margin: 0 0 18px; border-top: 1px solid var(--line); padding-top: 12px; }
.more-opts > summary { cursor: pointer; font-weight: 600; color: var(--accent); }
.more-opts > summary .hint { font-weight: 400; }
/* входящие */
.list-sep { padding: 14px 16px 6px 20px; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--text-2); border-bottom: 1px solid var(--line); display: flex; gap: 8px; align-items: baseline; }
.list-sep span { font-weight: 600; color: var(--text-3); }
.lead-acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
@media (max-width: 900px) {
  /* код и «Скачать» — первыми: раньше на телефоне до них было восемь экранов статистики */
  .code-split > .code-side { display: contents; }
  .code-split > .code-side > .qr-quick { order: -1; display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); }
  .code-split > .code-side > .card { margin-top: 0; }
  .qr-quick .qr-stage { padding: 8px; border-radius: 10px; }
  .qr-quick .qq-acts { margin-top: 0; min-width: 0; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .qr-quick .dl-row { display: contents; }
  .qr-quick .dl-row .btn.primary, .qr-quick .qq-edit { grid-column: 1 / -1; }
  .qr-quick .btn { padding-left: 8px; padding-right: 8px; min-width: 0; justify-content: center; }
}
@media (max-width: 400px) {
  .code-split > .code-side > .qr-quick { grid-template-columns: 104px minmax(0, 1fr); padding: 10px; gap: 10px; }
  .qr-quick .qq-acts { grid-template-columns: minmax(0, 1fr); }
  .qr-quick .qq-edit { display: none; }  /* вкладка «Куда ведёт» — строкой выше */
}
.only-s { display: none; }
@media (max-width: 860px) {
  .top-search { display: inline-grid; }
  .hide-s { display: none !important; }
  .show-s { display: block; }
  .only-s { display: inline; }
  .fab { width: auto; height: 52px; padding: 0 20px 0 16px; display: flex; align-items: center; gap: 8px; border-radius: 16px; font-weight: 600; font-size: 16px; text-decoration: none; }
  .toolbar .menu-wrap { margin-left: auto; }
  .has-fab .list-foot { padding-right: 160px; }
  .card-editor .form-foot { padding: 10px 20px calc(10px + env(safe-area-inset-bottom, 0px)); gap: 8px; }
  .card-editor .form-foot .btn.big { flex: 1 1 0; min-width: 0; justify-content: center; padding-left: 10px; padding-right: 10px; }
  .card-editor .form-foot .save-state { order: -1; width: 100%; margin: 0; font-size: 13.5px; }
}

/* ---------- Чат поддержки (16.11.2026) ---------- */
.chat { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.chat-log { flex: 1; min-height: 0; overflow-y: auto; background: var(--bg-side); }
.chat-inner { max-width: 860px; margin: 0 auto; padding: 20px 20px 8px; display: flex; flex-direction: column; gap: 10px; }
.chat-hello { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); margin-bottom: 8px; }
.chat-hello .ch-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex: none; }
.chat-hello b { font-size: 16px; }
.chat-hello p { margin: 6px 0 0; color: var(--text-2); font-size: 14.5px; line-height: 1.5; }
.msg { display: flex; }
.msg-b { max-width: min(620px, 82%); padding: 10px 14px 8px; border-radius: 16px; background: var(--bg); border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(10, 20, 50, .04); }
.msg-t { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15px; line-height: 1.5; }
.msg-m { margin-top: 4px; font-size: 12.5px; color: var(--text-3); }
.msg-about { display: inline-flex; align-items: center; margin: 0 0 6px; padding: 2px 9px; border-radius: 10px; font-size: 12.5px; font-weight: 600; background: var(--accent-soft); color: var(--accent); text-decoration: none; }
a.msg-about:hover { text-decoration: underline; }
/* у пользователя свои — справа синим; у админа справа — его ответы */
[data-side="user"] .msg.user, [data-side="admin"] .msg.admin { justify-content: flex-end; }
[data-side="user"] .msg.user .msg-b, [data-side="admin"] .msg.admin .msg-b { background: var(--accent); border-color: transparent; color: #fff; border-bottom-right-radius: 6px; }
[data-side="user"] .msg.user .msg-m, [data-side="admin"] .msg.admin .msg-m { color: rgba(255, 255, 255, .78); }
[data-side="user"] .msg.user .msg-about, [data-side="admin"] .msg.admin .msg-about { background: rgba(255, 255, 255, .18); color: #fff; }
[data-side="user"] .msg.admin .msg-b, [data-side="admin"] .msg.user .msg-b { border-bottom-left-radius: 6px; }
.msg.system { justify-content: center; }
.msg.system .msg-b { max-width: min(680px, 94%); background: var(--wait-bg); border-color: color-mix(in srgb, var(--wait-fg) 30%, transparent); }
.msg-sys { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--wait-fg); margin-bottom: 4px; }
.chat-form { flex: none; border-top: 1px solid var(--line); background: var(--bg); padding: 10px 16px calc(12px + env(safe-area-inset-bottom, 0px)); }
.chat-form > * { max-width: 860px; margin-left: auto; margin-right: auto; }
.chat-about { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.chat-about label { color: var(--text-2); font-size: 14px; flex: none; }
.chat-about .input { height: 34px; max-width: 420px; }
.chat-row { display: flex; gap: 8px; align-items: flex-end; }
.chat-row textarea { flex: 1; min-height: 46px; max-height: 40vh; resize: vertical; font-size: 15px; }
.chat-row .btn { height: 46px; flex: none; }
.chat-quick { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.chat-quick .chip { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 600px) { .chat-quick { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -10px 8px; padding: 0 10px; } .chat-quick::-webkit-scrollbar { display: none; } .chat-quick .chip { flex: none; max-width: 230px; white-space: normal; text-align: left; line-height: 1.3; height: auto; min-height: 34px; padding-block: 6px; } }  /* 21.11.2026: быстрый ответ виден целиком, в две строки, а не обрезан «…» */
.chat-wrap { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 320px; }
.chat-wrap > .chat { border-right: 1px solid var(--line); }
.chat-side { overflow-y: auto; padding: 14px; display: grid; gap: 12px; align-content: start; background: var(--bg); }
.chat-side .card { padding: 14px 16px; }
.chat-side .kv { grid-template-columns: 110px minmax(0, 1fr); font-size: 14px; }
.bad-t { color: var(--danger); font-weight: 600; }
.support-list .row .content .tag { margin-right: 4px; }
.menu-toggle .dot { position: absolute; top: 6px; right: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); border: 2px solid var(--bg); }
@media (max-width: 1100px) { .chat-wrap { grid-template-columns: minmax(0, 1fr); } .chat-side { display: none; } }
@media (max-width: 600px) {
  .chat-inner { padding: 12px 10px 6px; }
  .msg-b { max-width: 90%; }
  .chat-form { padding: 8px 10px calc(10px + env(safe-area-inset-bottom, 0px)); }
  .chat-about label { display: none; }
  .chat-about .input { max-width: none; }
  .chat-row .btn { width: 46px; padding: 0; justify-content: center; }
}
/* вид для админа: жалоба и меры */
.mod-grid { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 16px; align-items: start; }
.mod-grid .card + .card { margin-top: 12px; }
.mod-obj { display: flex; gap: 14px; align-items: flex-start; }
.mod-obj .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex: none; }
.mod-obj h2 { margin: 0 0 4px; }
.mod-act { border-left: 4px solid var(--line); }
.mod-act.pause { border-left-color: var(--wait-fg); }
.mod-act.del { border-left-color: var(--danger); }
.mod-act.ok { border-left-color: var(--ok-fg); }
.mod-act h2 { display: flex; align-items: center; gap: 8px; }
.mod-act textarea { min-height: 84px; }
.mod-reasons { display: flex; gap: 6px; flex-wrap: wrap; margin: -4px 0 12px; }
.mod-preview { white-space: pre-wrap; background: var(--bg-side); border: 1px dashed var(--line); border-radius: 10px; padding: 10px 12px; font-size: 14px; color: var(--text-2); margin: 0 0 12px; }
.report-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.report-list li { padding: 10px 12px; border-radius: 10px; background: var(--bg-side); }
.report-list li.cur { outline: 2px solid var(--accent); }
.report-list small { display: block; color: var(--text-3); margin-top: 2px; }
@media (max-width: 1100px) { .mod-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) { .banner { flex-wrap: wrap; } .banner > .btn { margin-left: 28px; } }
/* логотип кабинета: целиком на компьютере, только «К» на телефоне */
.logo .logo-full { display: block; height: 34px; width: auto; flex: none; }
.logo .logo-full.dk { display: none; }
:root[data-theme="dark"] .logo .logo-full.lt { display: none; }
:root[data-theme="dark"] .logo .logo-full.dk { display: block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .logo .logo-full.lt { display: none; } :root:not([data-theme="light"]) .logo .logo-full.dk { display: block; } }
.logo .mark-img { display: none; width: 32px; height: 32px; }
@media (max-width: 860px) { .logo .logo-full.lt, .logo .logo-full.dk, :root[data-theme="dark"] .logo .logo-full.dk { display: none !important; } .logo .mark-img { display: block; } }

/* --- история версий мини-сайта (16.11.2026) --- */
.ver-list { list-style: none; margin: 8px 0 0; padding: 0; position: relative; }
.ver-list::before { content: ""; position: absolute; left: 7px; top: 18px; bottom: 18px; width: 2px; background: var(--line); }
.ver-row { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 0 12px 28px; border-bottom: 1px solid var(--line); }
.ver-row:last-child { border-bottom: 0; }
.ver-dot { position: absolute; left: 1px; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%; background: var(--bg); border: 2px solid var(--text-3); }
.ver-row.now .ver-dot { border-color: var(--accent); background: var(--accent); }
.ver-t { flex: 1; min-width: 0; }
.ver-t b { display: block; font-weight: 600; }
.ver-t small { display: block; color: var(--text-2); margin-top: 2px; overflow-wrap: anywhere; }
.ver-act { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.ver-act form { margin: 0; }
@media (max-width: 600px) {
  .ver-row { flex-wrap: wrap; }
  .ver-act { width: 100%; justify-content: flex-start; }
}

/* --- печать и макеты, создание списком (16.11.2026) --- */
.print-hub { display: grid; gap: 28px; }
.ph-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.ph-tile { display: grid; gap: 4px; align-content: start; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg);
  color: var(--text); text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s; }
.ph-tile:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); box-shadow: 0 6px 18px rgba(16, 24, 40, .08); transform: translateY(-1px); }
.ph-tile b { font-size: 15px; margin-top: 6px; }
.ph-tile small { color: var(--text-2); font-size: 13px; line-height: 1.4; }
.ph-tile .meta { margin-top: 4px; font-size: 12.5px; color: var(--text-3); }
/* мини-макеты из CSS: полоса заголовка (a), код (q), строка текста (l) */
.ph-art { position: relative; display: block; height: 128px; border-radius: 10px; background: var(--bg-side); overflow: hidden; }
.ph-art::before { content: ""; position: absolute; left: 50%; top: 50%; background: #fff; box-shadow: 0 4px 14px rgba(0, 0, 0, .12); border-radius: 3px; }
.ph-art i { position: absolute; left: 50%; display: block; }
.ph-art .q { background: repeating-conic-gradient(#222 0 25%, #fff 0 50%) 0 0 / 8px 8px; border: 3px solid #fff; outline: 2px solid #222; outline-offset: -5px; }
.ph-art .l { height: 4px; border-radius: 2px; background: #b9bec7; }
.ph-table::before { width: 92px; height: 92px; margin: -46px 0 0 -46px; }
.ph-table .a { top: 18px; width: 92px; height: 20px; margin-left: -46px; background: var(--accent); border-radius: 3px 3px 0 0; }
.ph-table .q { top: 45px; width: 46px; height: 46px; margin-left: -23px; }
.ph-table .l { top: 97px; width: 50px; margin-left: -25px; }
.ph-wifi::before { width: 76px; height: 108px; margin: -54px 0 0 -38px; }
.ph-wifi .a { top: 10px; width: 76px; height: 24px; margin-left: -38px; background: #0f7b5f; border-radius: 3px 3px 0 0; }
.ph-wifi .q { top: 42px; width: 48px; height: 48px; margin-left: -24px; }
.ph-wifi .l { top: 98px; width: 54px; margin-left: -27px; height: 6px; background: #444; }
.ph-window::before { width: 104px; height: 104px; margin: -52px 0 0 -52px; background: #c2410c; }
.ph-window .a { top: 22px; width: 64px; height: 6px; margin-left: -32px; background: #fff; border-radius: 3px; }
.ph-window .q { top: 36px; width: 56px; height: 56px; margin-left: -28px; }
.ph-window .l { top: 100px; width: 44px; margin-left: -22px; background: rgba(255, 255, 255, .7); }
.ph-card::before { width: 126px; height: 70px; margin: -35px 0 0 -63px; background: linear-gradient(90deg, #7c3aed 0 5px, #fff 0); }
.ph-card .a { top: 42px; width: 52px; height: 7px; margin-left: -50px; background: #222; border-radius: 3px; }
.ph-card .q { top: 41px; width: 40px; height: 40px; margin-left: 14px; }
.ph-card .l { top: 58px; width: 40px; margin-left: -50px; box-shadow: 0 8px 0 #b9bec7, 0 16px 0 #b9bec7; }
.ph-sheet { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.ph-sheet .field { margin: 0; min-width: 260px; flex: 0 1 360px; }
@media (max-width: 1100px) { .ph-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .ph-grid { grid-template-columns: 1fr; } .ph-sheet .field { min-width: 0; flex: 1 1 100%; } }

.bulk { display: grid; gap: 16px; max-width: 980px; }
.bulk-modes { margin-bottom: 16px; }
.bulk-form .bm { margin-bottom: 4px; }
.bulk-form:has(input[name=mode][value=list]:checked) .bm:not(.bm-list),
.bulk-form:has(input[name=mode][value=file]:checked) .bm:not(.bm-file),
.bulk-form:has(input[name=mode][value=series]:checked) .bm:not(.bm-series) { display: none; }
.bulk textarea.mono { font-family: ui-monospace, Consolas, monospace; font-size: 13px; line-height: 1.5; height: auto; tab-size: 4; }
.drop { display: grid; justify-items: center; gap: 4px; padding: 26px 16px; border: 2px dashed var(--line); border-radius: 12px; text-align: center; cursor: pointer;
  color: var(--text-2); margin-bottom: 12px; }
.drop:hover, .drop:focus-within { border-color: var(--accent); background: var(--accent-soft); }
.drop .i { width: 30px; height: 30px; color: var(--accent); }
.drop b { color: var(--text); }
.drop input { font: inherit; font-size: 13px; max-width: 100%; }
.bulk-sample { max-width: 460px; margin-bottom: 14px; }
.bulk-sample table.grid td, .bulk-sample table.grid th { padding: 6px 10px; }
.bulk-table { max-height: 460px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 14px; }
.bulk-table td.url { max-width: 360px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-2); }
.bulk-table td.num { color: var(--text-3); width: 40px; }
.bulk-table tr.bad-row td { background: color-mix(in srgb, var(--bad-bg) 45%, transparent); }
.bulk-table .pill { white-space: normal; height: auto; min-height: 24px; }
.bulk-go { margin-top: 6px; }
.steps-list { margin: 6px 0 12px; padding-left: 20px; line-height: 1.7; }
.create-more { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: -8px; }
.create-more a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px dashed var(--line); border-radius: 12px; color: var(--text); text-decoration: none; }
.create-more a:hover { border-color: var(--accent); background: var(--accent-soft); }
.create-more .i { color: var(--accent); flex: none; }
.create-more b { display: block; font-size: 14px; }
.create-more small { display: block; color: var(--text-2); font-size: 12.5px; }
@media (max-width: 700px) { .create-more { grid-template-columns: 1fr; margin-top: 0; } }
.dl-tpls { margin: 10px 2px 0; font-size: 13px; color: var(--text-2); line-height: 1.6; }

/* --- партнёрская программа (16.11.2026) --- */
.partner { display: grid; gap: 16px; }
.partner .card { margin: 0; }
.pt-hero { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.pt-hero h2 { font-size: 22px; margin: 0 0 8px; letter-spacing: -.01em; }
.pt-hero p { color: var(--text-2); margin: 0 0 16px; line-height: 1.5; }
.pt-points { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.pt-points li { padding: 12px; border-radius: 12px; background: var(--accent-soft); display: grid; gap: 2px; }
.pt-points b { font-size: 20px; color: var(--accent); }
.pt-points span { font-size: 12.5px; color: var(--text-2); line-height: 1.35; }
.pt-join { padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-side); }
.pt-how { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.pt-how h3 { margin: 8px 0 4px; font-size: 15px; }
.pt-how .hint { margin: 0; }
.pt-n { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; }
.pt-top { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 16px; }
.pt-link .copy-line { margin-bottom: 8px; }
.pt-link .hint code { overflow-wrap: anywhere; }
.pt-qr { display: grid; justify-items: center; gap: 10px; align-content: center; }
.pt-qr .qr { width: 160px; background: #fff; padding: 8px; border-radius: 10px; }
.pt-qr .qr svg { width: 100%; height: auto; display: block; }
.pt-edit summary, .pt-leave summary { cursor: pointer; color: var(--accent); font-size: 13.5px; font-weight: 600; }
.pt-inline { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.pt-inline .input { max-width: 260px; }
.pt-payout { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.pt-list { list-style: none; margin: 0; padding: 0; }
.pt-list li { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.pt-list li span:first-child { color: var(--text-2); min-width: 90px; }
.pt-pitch { padding: 12px 14px; border-radius: 10px; background: var(--bg-side); font-size: 14px; line-height: 1.5; margin-bottom: 10px; overflow-wrap: anywhere; }
.pt-leave { color: var(--text-2); }
@media (max-width: 900px) {
  .pt-hero, .pt-top, .pt-how { grid-template-columns: 1fr; }
  .pt-points { grid-template-columns: 1fr; }
}

/* --- свой домен --- */
.dm-add { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.dm-add .field { margin: 0; flex: 1 1 260px; }
.dm-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; font-size: 16px; }
.dm-head .spacer { flex: 1; }
.dm-head form { margin: 0; }
.dm-steps { padding-left: 20px; line-height: 1.6; margin: 0 0 12px; }
.dm-steps li { margin-bottom: 6px; }
.dm-dns { margin: 8px 0; max-width: 520px; }
.dm-card code { overflow-wrap: anywhere; }

/* --- отметить несколько и сделать сразу (16.11.2026): галочки в списках кодов и заявок, панель действий --- */
.grid th.pick-cell, .grid td.pick-cell { width: 44px; padding: 0; }
.pick { display: flex; align-items: center; justify-content: center; width: 44px; min-height: 44px; cursor: pointer; }
.pick input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); cursor: pointer; }
.grid tr.picked td { background: var(--bg-selected); }
.bulk-bar { position: sticky; bottom: 0; z-index: 30; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 10px 16px;
  background: var(--bg); border-top: 1px solid var(--line); box-shadow: 0 -8px 22px rgba(16, 24, 40, .1); }
.bulk-bar[data-ready]:not(.on) { display: none; }
.bb-sel { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 15px; }
.bb-link { border: 0; background: none; color: var(--accent); font: inherit; font-size: 14px; cursor: pointer; padding: 4px 2px; }
.bb-link:hover { text-decoration: underline; }
.bb-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-left: auto; }
.bb-acts .btn:disabled { opacity: .4; cursor: default; }
.bb-acts [data-n]:empty { display: none; }
.bb-acts [data-n] { color: var(--text-2); font-weight: 400; }
.menu.bb-menu { top: auto; bottom: calc(100% + 8px); right: 0; min-width: 320px; padding: 10px; }
.menu.bb-menu:not([hidden]) { display: grid; gap: 8px; }
.bb-menu .head { padding: 0 2px; }
.bb-menu .head small { display: block; margin-top: 3px; line-height: 1.4; }
.bb-menu .input { height: 36px; }
.bb-new { display: flex; gap: 6px; }
.bb-new .input { flex: 1; min-width: 0; }
body.has-bulk .fab { display: none !important; }
.row-pick { display: flex; align-items: stretch; border-bottom: 1px solid var(--line); }
.row-pick .row { flex: 1; min-width: 0; border-bottom: 0; }
.row-pick .pick { width: 40px; flex: none; }
.row-pick.picked, .row-pick.picked .row { background: var(--bg-selected); }
.bb-acts .bs { display: none; }
/* на телефоне — нижняя панель: значок и короткая подпись в одну строку кнопок */
@media (max-width: 760px) {
  .bulk-bar { padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0px)); gap: 4px; }
  .bb-sel { width: 100%; padding: 0 6px; font-size: 14px; gap: 10px; }
  .bb-acts { margin-left: 0; width: 100%; flex-wrap: nowrap; gap: 2px; }
  .bb-acts > .btn, .bb-acts > .menu-wrap { flex: 1 1 0; min-width: 0; }
  .bulk-bar .bb-acts > .btn, .bulk-bar .bb-acts > .menu-wrap > .btn { width: 100%; height: auto; min-height: 50px; padding: 4px 1px; flex-direction: column;
    justify-content: center; gap: 4px; border: 0; background: transparent; font-size: 11px; font-weight: 600; line-height: 1.1; }
  .bb-acts > .btn .bl, .bb-acts > .menu-wrap > .btn .bl { display: none; }
  .bb-acts > .btn .bs, .bb-acts > .menu-wrap > .btn .bs { display: block; }
  .bb-acts > .btn:not(:has(.bs)) .bl, .bb-acts > .menu-wrap > .btn:not(:has(.bs)) .bl { display: block; }
  .bb-acts .btn .bl, .bb-acts .btn .bs { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .bb-acts [data-n] { display: none; }
  .menu.bb-menu { position: fixed; left: 8px; right: 8px; bottom: calc(118px + env(safe-area-inset-bottom, 0px)); top: auto; min-width: 0; max-height: 60vh; overflow: auto; }
}
.list-pickall { display: flex; align-items: center; gap: 4px; padding-left: 0; cursor: default; }
.list-pickall .pick { width: 40px; min-height: 36px; }
.list-sep.list-pickall { text-transform: none; letter-spacing: 0; font-size: 14px; font-weight: 600; padding: 2px 16px 2px 0; align-items: center; }
.bb-new .btn { width: auto; flex: none; justify-content: center; }
@media (max-width: 360px) {
  .bulk-bar .bb-acts .bl, .bulk-bar .bb-acts .bs { display: none !important; }
  .bulk-bar .bb-acts > .btn, .bulk-bar .bb-acts > .menu-wrap > .btn { min-height: 44px; }
  .bulk-bar .bb-acts .i.s { width: 20px; height: 20px; }
}

/* --- проверка перед печатью (16.11.2026) --- */
.pc-check { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; max-width: 920px; }
.ck-sum { display: flex; align-items: flex-start; gap: 16px; padding: 18px 20px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg); }
.ck-sum h2 { margin: 2px 0 6px; font-size: 20px; }
.ck-sum p { margin: 0 0 6px; }
.ck-sum > div { flex: 1; min-width: 0; }
.ck-ic { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; }
.ck-ic .i { width: 26px; height: 26px; stroke-width: 2.4; }
.ck-sum.ck-ok { background: var(--ok-bg); border-color: color-mix(in srgb, var(--ok-fg) 30%, transparent); }
.ck-sum.ck-ok .ck-ic { background: var(--ok-fg); color: #fff; }
.ck-sum.ck-warn { background: var(--wait-bg); border-color: color-mix(in srgb, var(--wait-fg) 30%, transparent); }
.ck-sum.ck-warn .ck-ic { background: var(--wait-fg); color: #fff; }
.ck-sum.ck-bad { background: var(--bad-bg); border-color: color-mix(in srgb, var(--bad-fg) 30%, transparent); }
.ck-sum.ck-bad .ck-ic { background: var(--bad-fg); color: #fff; }
.ck-code { margin: 0; padding: 0; }
.ck-code summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 12px 16px; cursor: pointer; }
.ck-code summary::-webkit-details-marker { display: none; }
.ck-code .thumb { width: 40px; height: 40px; flex: none; }
.ck-code .thumb img { width: 100%; height: 100%; display: block; }
.ck-t { flex: 1; min-width: 0; display: grid; }
.ck-t b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ck-t small { color: var(--text-3); }
.ck-list { list-style: none; margin: 0; padding: 0 16px 6px; border-top: 1px solid var(--line); }
.ck-list li { display: flex; align-items: flex-start; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); line-height: 1.45; }
.ck-list li:last-child { border-bottom: 0; }
.ck-list li > span { flex: 1; min-width: 0; }
.ck-list li > .i { flex: none; margin-top: 3px; }
.ck-list li .btn { flex: none; margin: -3px 0; }
.ck-ok > .i { color: var(--ok-fg); }
.ck-info > .i { color: var(--text-3); }
.ck-info > span { color: var(--text-2); }
.ck-warn > .i { color: var(--wait-fg); }
.ck-bad > .i { color: var(--bad-fg); }
.ck-bad > span { font-weight: 600; }
.ck-acts { display: flex; gap: 8px; flex-wrap: wrap; padding: 4px 16px 14px; }
@media (max-width: 600px) {
  .ck-sum { flex-wrap: wrap; padding: 14px; }
  .ck-sum .btn { width: 100%; justify-content: center; }
  .ck-list li { flex-wrap: wrap; }
  .ck-list li .btn { margin: 0 0 0 26px; }
}

/* карточки шаблонов (18.11.2026): страница внутри уменьшена через zoom (app.js, data-fit), а не transform — текст чёткий */
.tpl-thumb iframe[data-fit] { left: 0; top: 0; width: 100%; height: 100%; margin-left: 0; transform: none; }
@media (max-width: 520px) { .tpl-thumb iframe[data-fit] { transform: none; } }

/* 20.11.2026, обход сайта: контраст (WCAG AA) в местах, где его не хватало */
.tpl-meta .check-row small { color: var(--text-2); }
.tile .d b.up { color: #1a7f4b; }
:root[data-theme="dark"] .tile .d b.up { color: #5fd396; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tile .d b.up { color: #5fd396; } }
/* свои сообщения в чате поддержки: фон — тёмный вариант фирменного цвета, текст и время — белые (было 2,4–3,5:1) */
[data-side="user"] .msg.user .msg-b, [data-side="admin"] .msg.admin .msg-b { background: var(--ac-btn, var(--accent)); }
[data-side="user"] .msg.user .msg-m, [data-side="admin"] .msg.admin .msg-m { color: #fff; }
.price ul { align-content: start; }

/* 21.11.2026: четыре плитки статистики кода — в один ряд или два по два, без одинокой плитки внизу.
   Ширину берём у колонки, а не у окна: справа от неё карточка с QR-кодом, и её ширина бывает разной. */
.code-split > :first-child { container: codemain / inline-size; }
@container codemain (min-width: 540px) { .code-split .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@container codemain (max-width: 539.98px) { .code-split .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* 21.11.2026: оглавление настроек. Широкий экран — колонка справа, она не уезжает при прокрутке;
   узкий — строка разделов сверху, листается вбок. Текущий раздел подсвечивается (app.js, data-set-nav). */
.set-page { max-width: 640px; }
.set-nav { display: flex; gap: 4px; position: sticky; top: 0; z-index: 5; overflow-x: auto; scrollbar-width: none;
  margin: -22px -24px 14px; padding: 10px 24px; background: var(--bg); border-bottom: 1px solid var(--line); }
.set-nav::-webkit-scrollbar { display: none; }
.set-nav a { flex: none; display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: 16px; border: 1px solid var(--line);
  color: var(--text-2); font-size: 13px; text-decoration: none; white-space: nowrap; background: var(--bg); }
.set-nav a:hover { background: var(--bg-hover); color: var(--text); }
.set-nav a.on { background: var(--accent-soft); border-color: transparent; color: var(--accent); font-weight: 600; }
.set-nav a.set-nav-del:not(.on) { color: var(--text-3); }
.set-body > .card { scroll-margin-top: 66px; }
@media (max-width: 860px) { .set-nav { margin: -16px -14px 12px; padding: 10px 14px; } }
@media (min-width: 1180px) {
  .set-page { max-width: 880px; display: grid; grid-template-columns: minmax(0, 640px) 200px; gap: 0 32px; align-items: start; }
  .set-page > .set-nav { grid-column: 2; grid-row: 1; top: 22px; flex-direction: column; gap: 2px; overflow: visible; margin: 0; padding: 0; border: 0; background: none; }
  .set-page > .set-body { grid-column: 1; grid-row: 1; min-width: 0; }
  .set-nav a { height: auto; padding: 8px 12px; border: 0; border-radius: 8px; font-size: 13.5px; }
  .set-nav a.set-nav-del { margin-top: 8px; }
  .set-body > .card { scroll-margin-top: 18px; }
}
.data-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.empty-steps { list-style: none; counter-reset: es; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; max-width: 620px; margin: 18px auto 0; padding: 0; text-align: left; }
.empty-steps li { counter-increment: es; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--bg); display: grid; gap: 2px; }
.empty-steps li::before { content: counter(es); width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-input); color: var(--text); font-weight: 700; font-size: 12.5px; margin-bottom: 6px; }
.empty-steps b { color: var(--text); font-size: 14px; line-height: 1.3; }
.empty-steps span { color: var(--text-3); font-size: 12.5px; line-height: 1.35; }
@media (max-width: 600px) { .empty-steps { grid-template-columns: 1fr; } .empty-steps li { grid-template-columns: auto minmax(0, 1fr); column-gap: 10px; } .empty-steps li::before { grid-row: span 2; margin: 0; } }

/* 21.11.2026: QR-код на весь экран (app.js, data-show-qr) */
/* кнопка — в правом нижнем углу: там у QR-кода нет «глазка», а у кода в рамке — полоса с подписью */
.qr-full-btn { position: absolute; bottom: 8px; right: 8px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg);
  color: var(--text-2); display: grid; place-items: center; cursor: pointer; box-shadow: 0 2px 6px rgba(16, 24, 40, .14); padding: 0; }
.qr-stage:has(.qr-full-btn) .qr { cursor: zoom-in; }
.qr-quick .qr-full-btn { bottom: -8px; right: -8px; width: 30px; height: 30px; }
.qr-full-btn:hover { color: var(--text); background: var(--bg-hover); }
.qr-full-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
dialog.qr-full { border: 0; padding: 24px; margin: 0; width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; box-sizing: border-box;
  background: #fff; color: #111; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; cursor: zoom-out; }
dialog.qr-full:not([open]) { display: none; }
dialog.qr-full::backdrop { background: #fff; }
.qf-code { width: min(86vw, 68vh); }
.qf-code svg { width: 100%; height: auto; display: block; }
.qf-title { font-size: 22px; font-weight: 700; text-align: center; max-width: 86vw; overflow-wrap: anywhere; }
.qf-hint { font-size: 15px; color: #4a4f57; text-align: center; }
.qf-close { margin-top: 6px; height: 40px; padding: 0 20px; border-radius: 10px; border: 1px solid #d6d8dc; background: #fff; color: #111; font: inherit; font-weight: 600; cursor: pointer; }
.qf-close:focus-visible { outline: 2px solid #111; outline-offset: 2px; }

/* 21.11.2026: узкий телефон — длинные причины в модерации переносятся, а не вылезают; итог проверки перед печатью — кнопка под текстом */
.mod-reasons .chip { white-space: normal; height: auto; min-height: 30px; padding-block: 5px; line-height: 1.3; text-align: left; max-width: 100%; }
@media (max-width: 520px) {
  .ck-sum { flex-wrap: wrap; padding: 14px; gap: 12px; }
  .ck-sum > div { flex-basis: calc(100% - 58px); }
  .ck-sum > .btn { margin-left: 58px; }
}
/* 22.11.2026: «Страница готова» — следующие шаги кнопками */
.ready-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
