/* Hallmark · macrostructure: Narrative Workflow · nav: sticky bar (был N5 floating pill, снят 03.09.2026 — текст просвечивал) · footer: Ft5 statement
 * theme: custom · vibe: "ночная мастерская, терминал, фосфорный сигнал" · paper: oklch(13% 0.012 200) · accent: oklch(85% 0.17 165)
 * display: Unbounded · body: Inter · mono: JetBrains Mono · axes: dark / display-heavy / chromatic-phosphor ~165°
 * genre: atmospheric · enrichment: none (typography) · studied: no · context: inferred
 * pre-emit critique: P5 H4 E4 S4 R4 V5 */

/* Q-Training — стиль школы вайбкодинга. Тёмная тема по умолчанию, светлая —
   переключателем. Шрифты локальные: Unbounded (заголовки), Inter (текст),
   JetBrains Mono (метки, промпты, код). Все цвета — только через токены. */

/* Шрифты шапки — block, а не swap: браузер ждёт свой шрифт и рисует меню сразу
   правильным. Со swap пункты сначала выводились запасным шрифтом, а потом
   подменялись — от этого меню дёргалось по ширине на каждом переходе.
   Файлы локальные и заявлены в preload, поэтому ожидание почти незаметно. */
@font-face { font-family:'Unbounded'; font-weight:500; font-style:normal; font-display:swap;
  src:url('fonts/Unbounded-500-cyrillic.woff2') format('woff2'); unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family:'Unbounded'; font-weight:500; font-style:normal; font-display:swap;
  src:url('fonts/Unbounded-500-latin.woff2') format('woff2'); }
@font-face { font-family:'Unbounded'; font-weight:700; font-style:normal; font-display:block;
  src:url('fonts/Unbounded-700-cyrillic.woff2') format('woff2'); unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family:'Unbounded'; font-weight:700; font-style:normal; font-display:block;
  src:url('fonts/Unbounded-700-latin.woff2') format('woff2'); }

@font-face { font-family:'JetBrains Mono'; font-weight:400; font-style:normal; font-display:swap;
  src:url('fonts/JetBrainsMono-400-cyrillic.woff2') format('woff2'); unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family:'JetBrains Mono'; font-weight:400; font-style:normal; font-display:swap;
  src:url('fonts/JetBrainsMono-400-latin.woff2') format('woff2'); }
@font-face { font-family:'JetBrains Mono'; font-weight:500; font-style:normal; font-display:swap;
  src:url('fonts/JetBrainsMono-500-cyrillic.woff2') format('woff2'); unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family:'JetBrains Mono'; font-weight:500; font-style:normal; font-display:swap;
  src:url('fonts/JetBrainsMono-500-latin.woff2') format('woff2'); }

@font-face { font-family:'Inter'; font-weight:400; font-style:normal; font-display:swap;
  src:url('fonts/inter-cyrillic-400.woff2') format('woff2'); unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family:'Inter'; font-weight:400; font-style:normal; font-display:swap;
  src:url('fonts/inter-latin-400.woff2') format('woff2'); }
@font-face { font-family:'Inter'; font-weight:600; font-style:normal; font-display:block;
  src:url('fonts/inter-cyrillic-600.woff2') format('woff2'); unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family:'Inter'; font-weight:600; font-style:normal; font-display:block;
  src:url('fonts/inter-latin-600.woff2') format('woff2'); }
@font-face { font-family:'Inter'; font-weight:700; font-style:normal; font-display:swap;
  src:url('fonts/inter-cyrillic-700.woff2') format('woff2'); unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family:'Inter'; font-weight:700; font-style:normal; font-display:swap;
  src:url('fonts/inter-latin-700.woff2') format('woff2'); }

/* ─── токены ────────────────────────────────────────────── */
:root{
  --font-display:'Unbounded','Inter',-apple-system,'Segoe UI',sans-serif;
  --font-body:'Inter',-apple-system,'Segoe UI',Roboto,sans-serif;
  --font-mono:'JetBrains Mono','Cascadia Mono','Consolas',monospace;

  --ease-out:cubic-bezier(.16,1,.3,1);
  --ease-in:cubic-bezier(.7,0,.84,0);
  --ease-in-out:cubic-bezier(.65,0,.35,1);
  --dur-micro:120ms; --dur-short:220ms; --dur-long:420ms;

  --radius-sm:8px; --radius:14px; --radius-lg:22px;
  --top-gap:88px;           /* высота шапки + зазор: для прилипающих блоков и якорей */
  --main-gap:40px;          /* отступ от шапки до содержимого */
  --mera:72ch;
  --wrap:1760px;      /* рабочее поле на всю ширину экрана: пустые поля слева и справа заказчик считает потерей места (09.11.2026) */

  /* Прежние имена — чтобы старые правила читали новые токены. */
  --ease:var(--ease-out); --ease-decel:var(--ease-out);
  --dur-1:var(--dur-micro); --dur-2:var(--dur-short); --dur-3:var(--dur-long);
}

/* Тёмная — основная. */
html, html[data-theme="dark"]{
  --paper:oklch(13% 0.012 200);
  --paper-2:oklch(17% 0.013 200);
  --paper-3:oklch(22% 0.014 200);
  --ink:oklch(95% 0.008 180);
  --ink-2:oklch(82% 0.010 190);
  /* 09.09.2026: было 64% — мелкие счётчики и подписи читались тяжело
     (5.2:1 на подложке при кегле 11 px). Стало 78% — около 10:1: автор
     сказал, что серое на чёрном всё ещё читается плохо. */
  --muted:oklch(78% 0.012 195);
  /* Линии: были 31/24% — на тёмной подложке строки таблицы почти сливались. */
  --rule:oklch(36% 0.012 200);
  --rule-2:oklch(29% 0.012 200);
  --accent:oklch(85% 0.17 165);
  --accent-fill:oklch(85% 0.17 165);
  --accent-ink:oklch(16% 0.03 165);
  --accent-soft:oklch(85% 0.17 165 / .14);
  --accent-line:oklch(85% 0.17 165 / .45);
  --focus:oklch(88% 0.19 165);
  --warn:oklch(82% 0.14 80); --warn-soft:oklch(82% 0.14 80 / .14);
  --err:oklch(74% 0.16 25);  --err-soft:oklch(74% 0.16 25 / .14);
  --ok:var(--accent); --ok-soft:var(--accent-soft);
  --grid-line:oklch(95% 0.01 180 / .045);
  --bloom-1:oklch(85% 0.17 165 / .13);
  --bloom-2:oklch(70% 0.12 220 / .12);
  --shadow:0 2px 6px -2px oklch(0% 0 0 / .5);
  --glass:oklch(18% 0.014 200 / .96); --glass-edge:oklch(95% 0.01 180 / .09); --glass-top:oklch(95% 0.01 180 / .12);
  --blob-1:oklch(80% 0.17 165 / .22); --blob-2:oklch(70% 0.14 200 / .18); --blob-3:oklch(85% 0.17 165 / .10); --ring:oklch(85% 0.17 165 / .10);
  --term-bg:oklch(10% 0.012 200); --term-text:oklch(92% 0.01 180); --term-dim:oklch(60% 0.012 195);
  color-scheme:dark;
}

html[data-theme="light"]{
  --paper:oklch(97.5% 0.007 190);
  --paper-2:oklch(94.5% 0.010 190);
  --paper-3:oklch(90% 0.012 190);
  --ink:oklch(20% 0.014 200);
  --ink-2:oklch(34% 0.012 200);
  /* Светлая тема: было 50% — на третьей подложке 4.45:1, ниже нормы. */
  --muted:oklch(40% 0.012 200);
  --rule:oklch(76% 0.014 195);
  --rule-2:oklch(84% 0.010 195);
  --accent:oklch(50% 0.13 165);
  --accent-fill:oklch(82% 0.17 165);
  --accent-ink:oklch(18% 0.03 165);
  --accent-soft:oklch(50% 0.13 165 / .12);
  --accent-line:oklch(50% 0.13 165 / .45);
  --focus:oklch(55% 0.19 165);
  /* Янтарный в светлой теме: было 58% — 4.1:1, ниже нормы для текста. */
  --warn:oklch(52% 0.14 70); --warn-soft:oklch(52% 0.14 70 / .13);
  --err:oklch(55% 0.18 25);  --err-soft:oklch(55% 0.18 25 / .11);
  --ok:var(--accent); --ok-soft:var(--accent-soft);
  --grid-line:oklch(20% 0.014 200 / .06);
  --bloom-1:oklch(82% 0.17 165 / .22);
  --bloom-2:oklch(75% 0.12 220 / .16);
  --shadow:0 2px 6px -3px oklch(20% 0.02 200 / .25);
  --glass:oklch(98% 0.006 190 / .97); --glass-edge:oklch(20% 0.02 200 / .10); --glass-top:oklch(100% 0 0 / .7);
  --blob-1:oklch(82% 0.17 165 / .30); --blob-2:oklch(78% 0.12 210 / .22); --blob-3:oklch(85% 0.17 165 / .16); --ring:oklch(60% 0.15 165 / .07);
  --term-bg:oklch(16% 0.012 200); --term-text:oklch(92% 0.01 180); --term-dim:oklch(62% 0.012 195);
  color-scheme:light;
}

/* Прежние имена цветов, которыми пользуются старые правила и скрипты. */
html{
  --bg:var(--paper); --bg-2:var(--paper);
  --surface:var(--paper-2); --surface-strong:var(--paper-2); --surface-flat:var(--paper-2);
  --border:var(--rule-2); --border-strong:var(--rule);
  --text:var(--ink); --text-muted:var(--muted);
  --accent-2:var(--accent); --accent-contrast:var(--accent-ink); --accent-glow:var(--accent-soft);
}

/* ─── база ──────────────────────────────────────────────── */
*{ box-sizing:border-box; min-width:0; }
/* Атрибут hidden должен прятать всегда: у .btn свой display,
   и без !important он перебивал скрытие («Новое слово» на Правке). */
[hidden]{ display:none !important; }
html, body{ overflow-x:clip; }

/* Р-49: плавный цвет только у крупных поверхностей; без «всех элементов» и без box-shadow */
html.theming, html.theming body, html.theming .sidenav, html.theming .sb-head, html.theming main,
html.theming .glass, html.theming .panel-x, html.theming .card, html.theming .callout, html.theming .fold{
  transition:background-color .42s var(--ease-in-out), border-color .42s var(--ease-in-out), color .42s var(--ease-in-out) !important;
}

body{
  margin:0; font-family:var(--font-body); font-size:16px; line-height:1.62;
  color:var(--ink); background:var(--paper);
  -webkit-font-smoothing:antialiased; min-height:100dvh;
  display:flex; flex-direction:column; position:relative;
}
/* Атмосфера: две мягкие подсветки за содержимым и техническая сетка сверху страницы. */
/* Фон: мягкие зелёные пятна и косой световой штрих (кольца были, автор снял 04.09.2026) —
   всё градиентами, без картинок и без тяжёлых фильтров. Неподвижен;
   при «уменьшить движение» проявления нет. */
/* Фон у html, а не только у body: между страницами браузер успевает показать
   свой белый лист, и в тёмной теме это читается как вспышка. */
html{ background:var(--paper); }
body::before{
  content:""; position:fixed; inset:-10%; z-index:-2; pointer-events:none;
  background:
    radial-gradient(760px 520px at 14% 6%, var(--blob-1), transparent 60%),
    radial-gradient(640px 720px at 88% 18%, var(--blob-2), transparent 62%),
    radial-gradient(900px 540px at 55% 105%, var(--blob-3), transparent 62%);
  animation:фон-проявление 1.4s var(--ease-out) 1;
}
@keyframes фон-проявление{ from{ opacity:0; } to{ opacity:1; } }   /* Р-49: фон неподвижен, одно проявление при загрузке */
body::after{
  content:""; position:absolute; left:0; right:0; top:0; height:1100px; z-index:-1; pointer-events:none;
  background-image:linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size:56px 56px;
  -webkit-mask-image:linear-gradient(to bottom, black 0, black 300px, transparent 100%);
  mask-image:linear-gradient(to bottom, black 0, black 300px, transparent 100%);
}
::-webkit-scrollbar{ width:10px; height:10px; }
::-webkit-scrollbar-track{ background:transparent; }
::-webkit-scrollbar-thumb{ background:var(--rule); border-radius:5px; }
::-webkit-scrollbar-thumb:hover{ background:var(--muted); }
::selection{ background:var(--accent-fill); color:var(--accent-ink); }

h1,h2,h3{ margin:0 0 12px; line-height:1.2; overflow-wrap:anywhere; font-style:normal; }
h1{ font-family:var(--font-display); font-weight:700; font-size:34px; letter-spacing:-.02em; }
h2{ font-family:var(--font-display); font-weight:500; font-size:22px; letter-spacing:-.01em; }
h3{ font-weight:700; font-size:18px; letter-spacing:-.01em; }
p{ margin:0 0 14px; }
a{ color:var(--accent); text-decoration:none; }
a:hover{ text-decoration:underline; text-underline-offset:3px; }
:focus-visible{ outline:2px solid var(--focus); outline-offset:3px; border-radius:6px; }
code{ padding:2px 6px; border-radius:5px; background:var(--accent-soft); color:var(--accent);
  font-family:var(--font-mono); font-size:.9em; }

.wrap{ width:100%; max-width:var(--wrap); margin:0 auto; padding:0 28px; }
.mera{ max-width:var(--mera); }
main{ flex:1 0 auto; padding:var(--main-gap) 0 40px; }

/* Метка моноширинным: разделы, мета, счётчики. */
.mono{ font-family:var(--font-mono); font-size:12.5px; letter-spacing:.04em; text-transform:uppercase; color:var(--muted); }

/* ─── шапка ─────────────────────────────────────────────── */
/* Сплошная полоса на всю ширину, прилипает к верху. Фон непрозрачный:
   текст при прокрутке уходит ЗА полосу, а не просвечивает под ней. */
/* Высота шапки задана явно: при подмене шрифта строка меняла высоту на пиксель,
   и шапка заметно «дышала» при каждом переходе. */
.nav-pill{ min-height:64px;
  position:sticky; top:0; z-index:40;
  display:flex; align-items:center; gap:4px;
  padding:12px max(28px, calc((100% - var(--wrap)) / 2 + 28px));
  background:var(--paper); border-bottom:1px solid var(--rule-2);
}
.wordmark{
  display:inline-flex; align-items:center; gap:10px; color:var(--ink);
  font-family:var(--font-display); font-weight:700; font-size:15px; letter-spacing:-.01em;
  padding-right:14px; margin-right:6px; border-right:1px solid var(--rule); white-space:nowrap;
}
.wordmark:hover{ text-decoration:none; }
/* шапка без пунктов меню (вход): разделитель после марки не нужен */
.nav-pill:not(:has(.lnks)) .wordmark{ border-right:none; margin-right:auto; }
.wordmark svg{ flex-shrink:0; }
.icon-btn{
  width:36px; height:36px; display:inline-flex; align-items:center; justify-content:center;
  border:1px solid transparent; border-radius:999px; margin-left:4px;
  background:transparent; color:var(--muted); cursor:pointer;
  transition:color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out); flex-shrink:0;
}
.icon-btn:hover{ color:var(--accent); border-color:var(--rule); }

/* Верхняя полоса осталась только у входа (login.html); у остальных страниц — боковое меню, assets/sidebar.css (Р-40). */
@media (max-width:1200px){
  .nav-pill{ flex-wrap:wrap; gap:2px 0; padding:8px 14px; }
  .wordmark{ border-right:none; margin-right:auto; padding-right:0; order:0; }
  .nav-pill .icon-btn{ order:1; }
}
@media (max-width:420px){
  .nav-pill{ padding-left:12px; padding-right:12px; }
  .nav-pill .icon-btn{ margin-left:0; }
}

/* ─── кнопки ────────────────────────────────────────────── */
.btn{
  display:inline-flex; align-items:center; justify-content:center; text-align:center;
  gap:8px; padding:10px 18px; min-height:42px; white-space:nowrap;
  border-radius:999px; border:1px solid var(--rule);
  background:transparent; color:var(--ink); font:inherit; font-size:14.5px; font-weight:600;
  cursor:pointer; transition:border-color var(--dur-micro) var(--ease-out), color var(--dur-micro) var(--ease-out),
    background-color var(--dur-micro) var(--ease-out), transform var(--dur-micro) var(--ease-out);
}
.btn:hover{ border-color:var(--ink); text-decoration:none; }
.btn:active{ transform:translateY(1px); }
.btn-main{ background:var(--accent-fill); border-color:var(--accent-fill); color:var(--accent-ink); }
.btn-main:hover{ border-color:var(--accent-fill); transform:translateY(-1px); color:var(--accent-ink); }
.btn-sm{ padding:7px 13px; min-height:34px; font-size:13.5px; }
.btn-done{ border-color:var(--accent); color:var(--accent); background:var(--accent-soft); }
.btn-danger{ border-color:var(--err); color:var(--err); }
.btn-danger:hover{ border-color:var(--err); color:var(--paper); background:var(--err); }
.btn[disabled]{ opacity:.45; cursor:default; transform:none; }

/* ─── поиск и фильтры ───────────────────────────────────── */
.search{ position:relative; }
.search svg{ position:absolute; left:16px; top:50%; transform:translateY(-50%);
  color:var(--muted); pointer-events:none; z-index:2; }
.search input{
  width:100%; padding:15px 18px 15px 48px; font:inherit; font-size:16.5px;
  color:var(--ink); background:var(--paper-2); border:1px solid var(--rule);
  border-radius:var(--radius); transition:border-color var(--dur-short) var(--ease-out), box-shadow var(--dur-short) var(--ease-out);
}
.search input::placeholder{ color:var(--muted); }
.search input:focus{ outline:none; border-color:var(--accent); box-shadow:0 0 0 4px var(--accent-soft); }

.filters{ display:flex; flex-wrap:wrap; gap:20px; margin:22px 0 6px; }
.bar-find{ display:flex; flex-wrap:wrap; align-items:center; gap:12px 22px; margin:0 0 8px; }
.bar-find .search{ flex:1 1 360px; }
.bar-find .filters{ margin:0; }
.bar-find .ed-count{ margin-left:auto; }
.fgroup{ display:flex; flex-wrap:wrap; gap:7px; align-items:center; }
.fgroup > b{ font-family:var(--font-mono); font-size:12px; font-weight:500; color:var(--muted);
  text-transform:uppercase; letter-spacing:.06em; margin-right:5px; }
.pill{
  padding:7px 14px; border-radius:999px; border:1px solid var(--rule);
  background:transparent; color:var(--ink-2); font:inherit; font-size:13.5px; font-weight:600;
  cursor:pointer; text-align:center; white-space:nowrap;
  transition:border-color var(--dur-micro) var(--ease-out), color var(--dur-micro) var(--ease-out), background-color var(--dur-micro) var(--ease-out);
}
.pill:hover{ border-color:var(--ink); color:var(--ink); }
.pill[aria-pressed="true"]{ background:var(--accent-soft); border-color:var(--accent-line); color:var(--accent); }

/* ─── стекло ────────────────────────────────────────────── */
/* Панели полупрозрачные: фон просвечивает размытым, сверху тонкая светлая кромка. */
/* Р-49: размытие только у крупных витринных панелей; у повторяющихся плашек — тот же полупрозрачный фон без размытия */
.glass, .panel-x, .term-pop, #форма{
  backdrop-filter:blur(18px) saturate(130%); -webkit-backdrop-filter:blur(18px) saturate(130%);
}
.glass, .panel-x, .callout, .prompt-card, .block-compare, .fold, .scheme, .tblwrap, .pr-box, .term-pop, .sources, #форма, .ed-item, .search input{
  background:var(--glass);
  border-color:var(--glass-edge); box-shadow:inset 0 1px 0 var(--glass-top), var(--shadow);
}
.callout-совет{ background:oklch(85% 0.17 165 / .10); }
.callout-грабли{ background:oklch(82% 0.14 80 / .10); }
.callout-внимание{ background:oklch(74% 0.16 25 / .10); }
html[data-theme="light"] .callout-совет{ background:oklch(50% 0.13 165 / .10); }
/* В светлой теме янтарная заливка отдаёт грязно-бежевым — оставляем нейтральный
   фон и янтарную кромку слева, цвет только у ярлыка. */
html[data-theme="light"] .callout-грабли, html[data-theme="light"] .term-warn, html[data-theme="light"] .prompt-warn{
  background:var(--paper-2); box-shadow:inset 3px 0 0 var(--warn), inset 0 1px 0 var(--glass-top); }
html[data-theme="light"] .callout-внимание{ background:oklch(55% 0.18 25 / .08); }
.search input{ box-shadow:inset 0 1px 0 var(--glass-top); }
.ed-item{ box-shadow:none; }
.nav-pill{ background:oklch(13% 0.012 200 / .84); backdrop-filter:blur(18px) saturate(130%); -webkit-backdrop-filter:blur(18px) saturate(130%); border-bottom-color:var(--glass-edge); }
html[data-theme="light"] .nav-pill{ background:oklch(97.5% 0.007 190 / .86); }

/* Свечение у крупных элементов: заглавие, номера ступеней, кнопка. */
.home-hero h1 em{ text-shadow:0 0 28px oklch(85% 0.17 165 / .45); }
.stage-n{ text-shadow:0 0 22px oklch(85% 0.17 165 / .25); }
.btn-main{ box-shadow:0 0 0 1px oklch(85% 0.17 165 / .35), 0 10px 30px -12px oklch(85% 0.17 165 / .55); }
html[data-theme="light"] .home-hero h1 em{ text-shadow:none; }
html[data-theme="light"] .stage-n{ text-shadow:none; }

/* ─── ярлыки ────────────────────────────────────────────── */
.tag{
  display:inline-flex; align-items:center; padding:4px 10px; border-radius:999px;
  font-family:var(--font-mono); font-size:11.5px; font-weight:500; letter-spacing:.05em; text-transform:uppercase;
  white-space:nowrap; border:1px solid var(--rule); color:var(--muted);
}
.tag-line{ display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
.tag-plain{ background:transparent; }
.tag-guidebook{ background:var(--accent-soft); color:var(--accent); border-color:var(--accent-line); }
.tag-edited{ background:var(--warn-soft); color:var(--warn); border-color:transparent; }

/* ─── секции ────────────────────────────────────────────── */
.sec{ margin:44px 0 0; }
.sec-hd{ display:flex; align-items:baseline; gap:14px; flex-wrap:wrap; margin-bottom:16px; }
.sec-hd h2{ margin:0; }
.sec-hd span{ color:var(--muted); font-size:15px; }

.hero{ padding:8px 0 4px; }
.hero h1{ margin-bottom:10px; }
.hero .lead{ color:var(--ink-2); font-size:18px; max-width:none; margin-bottom:24px; }      /* описание страницы — на всю ширину, без пустоты справа (заказчик, 09.11.2026) */

.empty{ padding:44px 24px; text-align:center; color:var(--muted);
  border:1px dashed var(--rule); border-radius:var(--radius-lg); }
.empty b{ display:block; color:var(--ink); font-size:17px; margin-bottom:6px; }

/* ─── главная: заглавие ─────────────────────────────────── */
.home-hero{ padding:28px 0 12px; display:grid; gap:22px; }
.home-hero h1{
  font-size:clamp(2.3rem, 5.4vw + .5rem, 5.6rem); line-height:1.02; letter-spacing:-.03em; margin:0;
}
.home-hero h1 em{ font-style:normal; color:var(--accent); }
.home-hero .lead{ font-size:clamp(1.05rem, .6vw + .85rem, 1.28rem); color:var(--ink-2);
  max-width:none; margin:0; line-height:1.55; }
.home-meta{ display:flex; flex-wrap:wrap; gap:8px 22px; }
.home-meta span{ display:inline-flex; align-items:center; gap:8px; }
.home-meta span::before{ content:""; width:6px; height:6px; border-radius:50%; background:var(--accent); }
.home-cta{ display:flex; flex-wrap:wrap; gap:10px; }

/* Статьи: по порядку, толстая линия между ними. */
.route{ margin-top:64px; scroll-margin-top:var(--top-gap); }  /* якорь #статьи не должен уезжать под липкую шапку */
.route-hd{ display:flex; align-items:baseline; justify-content:space-between; gap:12px 24px; flex-wrap:wrap;
  padding-bottom:16px; border-bottom:2px solid var(--ink); }
.route-hd h2{ margin:0; font-weight:700; font-size:clamp(1.35rem, 1.6vw + .6rem, 2rem); }
.route-hd span{ color:var(--muted); font-size:15px; }

/* Статьи — плитки на всю ширину (заказчик, 09.11.2026) */
.stages{ display:grid; gap:16px; grid-template-columns:repeat(auto-fill, minmax(min(100%, 400px), 1fr)); }
.stages > .adm-blk{ min-width:0; }
.stages > .adm-add, .stages > .empty{ grid-column:1 / -1; }
.stage{
  display:grid; grid-template-columns:minmax(0,1fr); gap:8px; align-items:start; align-content:start; height:100%;
  padding:22px 24px; background:var(--paper-2); border:1px solid var(--rule-2); border-radius:var(--radius-lg); color:var(--ink); position:relative;
  transition:border-color var(--dur-short) var(--ease-out);
}
.stage:hover{ text-decoration:none; border-color:var(--accent-line); }
.stage-n{ font-family:var(--font-display); font-weight:500; font-size:clamp(1.5rem, 2vw, 2rem);
  line-height:1; color:var(--muted); letter-spacing:-.02em; padding-top:2px; }
.stage-t{ font-family:var(--font-display); font-weight:500; font-size:clamp(1.15rem, 1.1vw + .6rem, 1.55rem);
  line-height:1.22; margin:0 0 10px; transition:color var(--dur-short) var(--ease-out); }
.stage:hover .stage-t{ color:var(--accent); }
.stage p{ margin:0; color:var(--ink-2); }
.stage-meta{ margin-top:14px; display:flex; flex-wrap:wrap; gap:6px 16px; }
.stage-go{ justify-self:start; font-family:var(--font-mono); font-size:13px; color:var(--muted); white-space:nowrap; margin-top:6px;
  padding:7px 14px; border:1px solid var(--rule); border-radius:999px;
  transition:transform var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out); }
.stage:hover .stage-go{ color:var(--accent); border-color:var(--accent-line); transform:translateX(3px); }
.stage-soon{ color:var(--muted); }
.stage-soon .stage-t{ color:var(--ink-2); }
.stage-soon .stage-go{ border-style:dashed; }
.stage-soon:hover .stage-t, .stage-soon:hover .stage-go{ color:var(--muted); border-color:var(--rule); transform:none; }

/* Одно оркестрованное появление при загрузке главной. */
.reveal{ opacity:0; transform:translateY(6px); animation:reveal var(--dur-short) var(--ease-out) forwards;
  animation-delay:calc(var(--i, 0) * 40ms); }
@keyframes reveal{ to{ opacity:1; transform:none; } }

.duo{ display:grid; gap:22px; grid-template-columns:repeat(auto-fit, minmax(min(360px,100%), 1fr)); margin-top:48px; }
.panel-x{ padding:26px 28px 24px; background:var(--paper-2); border:1px solid var(--rule-2); border-radius:var(--radius-lg);
  display:flex; flex-direction:column; gap:14px; }
.panel-x h2{ margin:0; font-size:1.25rem; }
.panel-x .more{ margin-top:auto; padding-top:6px; font-weight:600; font-size:14.5px; }
.chips{ display:flex; flex-wrap:wrap; gap:8px; }
.chips a{ padding:6px 13px; border:1px solid var(--rule); border-radius:999px; color:var(--ink-2); font-size:14px; font-weight:600;
  transition:border-color var(--dur-micro) var(--ease-out), color var(--dur-micro) var(--ease-out); }
.chips a:hover{ border-color:var(--accent-line); color:var(--accent); text-decoration:none; }

/* ─── страница руководства ──────────────────────────────── */
.card-hero{ padding-bottom:6px; }
.card-hero h1{ font-weight:500; font-size:clamp(1.6rem, 1.6vw + .9rem, 2.5rem); margin:14px 0 14px; max-width:none; line-height:1.15; }
.card-lead{ font-size:18.5px; color:var(--ink-2); max-width:none; text-align:left; hyphens:manual; }
.card-hero .prose{ max-width:none; text-align:left; hyphens:manual; }
.card-by{ display:flex; flex-wrap:wrap; gap:8px 18px; align-items:center;
  margin-top:18px; padding-top:16px; border-top:1px solid var(--rule); color:var(--muted); font-size:14px; }
.card-by b{ color:var(--ink); font-weight:600; }

.block{ margin:36px 0 0; }
.block > h2{ margin-bottom:14px; }
.prose{ max-width:var(--mera); }

/* ─── ровный правый край ────────────────────────────────── */
/* Автор просил, чтобы строки заканчивались на одном уровне: рваный край
   читается тяжелее. Выключка по формату без переносов рвёт слова пробелами,
   поэтому вместе с ней включены переносы по слогам (браузер знает русские
   правила по lang="ru"). Заголовки, подписи и служебные строки не трогаем —
   там строк мало и дыры видны сильнее пользы. */
.prose, .ck-text, .callout p, .term-warn p, .sources p,
.ck-list li, ul li, ol.steps li span, .prompt-why li span, .pr-why p{
  text-align:justify; text-justify:inter-word;
  hyphens:auto; -webkit-hyphens:auto; hyphenate-limit-chars:7 4 3;
}
/* Короткие строки выключка портит: последняя строка абзаца и узкие колонки. */
@media (max-width:520px){
  .prose, .ck-text, .callout p, .term-warn p, .sources p,
  .ck-list li, ul li, ol.steps li span, .prompt-why li span, .pr-why p{ text-align:left; }
}
/* Строка с метками сложности — вперемешку со значками, выключка рвёт её дырами. */
.lvl-note{ text-align:left; }
.prose p{ margin:0 0 14px; }

.panel{ padding:22px 24px; background:var(--paper-2); border:1px solid var(--rule-2); border-radius:var(--radius); }
.panel-quiet{ background:var(--accent-soft); border-color:transparent; }

/* Шаги: номер слева моноширинным, без карточек. */
.steps{ list-style:none; counter-reset:s; margin:0 0 18px; padding:0; display:flex; flex-direction:column; max-width:var(--mera); }
.steps li{ counter-increment:s; display:grid; grid-template-columns:44px minmax(0,1fr); gap:4px 14px; padding:16px 0; border-bottom:1px solid var(--rule-2); }
.steps li::before{ content:counter(s, decimal-leading-zero); font-family:var(--font-mono); font-size:14px; color:var(--accent); padding-top:3px; grid-row:1 / span 2; }
.steps b{ display:block; font-size:16.5px; }
.steps span{ color:var(--ink-2); font-size:15.5px; line-height:1.58; }

/* ─── руководство: оглавление и главы ───────────────────── */
.guide{ --mera:88ch; display:grid; gap:44px; grid-template-columns:250px minmax(0,1fr); align-items:start; margin-top:28px; }
.arch-guide{ --mera:none; margin-top:8px; }
.toc{ position:sticky; top:var(--top-gap); align-self:start; padding:4px 0 4px 0;
  max-height:calc(100dvh - var(--top-gap) - 24px); overflow-y:auto; border-left:1px solid var(--rule); }
.toc b{ display:block; font-family:var(--font-mono); font-size:12px; font-weight:500; text-transform:uppercase; letter-spacing:.06em;
  color:var(--muted); margin:0 0 8px 16px; }
.toc a{ display:block; padding:6px 16px; margin-left:-1px; border-left:2px solid transparent; color:var(--muted);
  font-size:14px; line-height:1.4; transition:color var(--dur-micro) var(--ease-out), border-color var(--dur-micro) var(--ease-out); }
.toc a:hover{ color:var(--ink); text-decoration:none; }
.toc a.now{ color:var(--accent); border-left-color:var(--accent); }

.chapter{ margin:0 0 44px; scroll-margin-top:var(--top-gap); }
.chapter h2{ margin-bottom:16px; font-size:1.35rem; }
.chapter > p{ max-width:var(--mera); }
.chapter ul{ max-width:var(--mera); margin:0 0 16px; padding-left:22px; }
.chapter li{ margin-bottom:8px; }

/* Врезки: квадратик цвета тона перед заголовком, без толстой боковой полосы. */
.callout{ margin:0 0 18px; padding:18px 22px; border-radius:var(--radius);
  border:1px solid var(--rule-2); background:var(--paper-2); max-width:var(--mera); }
.callout b{ display:flex; align-items:center; gap:10px; margin-bottom:6px; font-size:15px; }
.callout b::before{ content:""; width:9px; height:9px; border-radius:2px; background:var(--accent); flex-shrink:0; }
.callout p{ margin:0; }
.callout-грабли{ background:var(--warn-soft); } .callout-грабли b::before{ background:var(--warn); }
.callout-внимание{ background:var(--err-soft); } .callout-внимание b::before{ background:var(--err); }
.callout-совет{ background:var(--accent-soft); }

.tblwrap{ overflow-x:auto; margin:0 0 20px; border:1px solid var(--rule-2); border-radius:var(--radius); background:var(--paper-2); }
/* таблицы — assets/tables.css (общий блок для сайта и тренажёра) */

.readbar{ position:fixed; left:0; top:0; height:2px; z-index:45; pointer-events:none; background:var(--accent); width:100%; transform:scaleX(0); transform-origin:left; will-change:transform; }

/* Источники: название, пояснение, адрес на виду. */
.sources{ margin:0 0 22px; padding:18px 22px; max-width:var(--mera);
  border:1px solid var(--rule-2); border-radius:var(--radius); background:var(--paper-2); }
.sources > b{ display:block; font-family:var(--font-mono); font-size:12px; font-weight:500; text-transform:uppercase;
  letter-spacing:.06em; color:var(--muted); margin-bottom:8px; }
.sources > p{ margin:0 0 12px; font-size:15px; }
.sources ul{ margin:0; padding:0; list-style:none; display:flex; flex-direction:column; gap:12px; }
.sources li{ display:flex; flex-direction:column; gap:2px; }
.sources li a{ font-weight:600; font-size:16px; }
.sources li span{ color:var(--ink-2); font-size:15px; line-height:1.5; }
.sources li em{ font-style:normal; color:var(--muted); font-size:12.5px; font-family:var(--font-mono); word-break:break-all; }

/* Вставка — готовый кусок текста, а не продолжение абзаца: акцентная рамка
   и подложка отделяют его от рассказа. У того, что забирают себе, в углу
   зелёная кнопка, и место под неё отведено сверху. */
.lh-code{ position:relative; margin:16px 0 22px; }
.lh-body .lh-code pre{ margin:0; padding:16px; background:var(--accent-soft);
  border:1px solid var(--accent-line); border-left:3px solid var(--accent); }
.lh-body .lh-code--copy pre{ padding-top:50px; }
.lh-copy{ position:absolute; top:9px; right:9px; }

/* ─── табличный вид Пульта ──────────────────────────────── */
/* Широкая таблица прокручивается внутри своей рамки, а не тянет страницу;
   шапка липкая — при длинном списке видно, что за колонка. */

/* Таблица выходит за общую колонку текста на всю ширину окна: колонок
   много, а по бокам оставалось пустое поле, из-за которого переписка
   обрезалась. Читать текст в узкой колонке удобно, таблицу — нет. */

/* Переписка целиком в ячейке: ради неё в таблицу и ходят. Столбец широкий,
   сообщения разделены линией, длинная переписка прокручивается внутри
   ячейки — иначе одна задача растянет строку на весь экран. */

/* Кружок цвета колонки — как на доске: колонку узнают по цвету раньше,
   чем прочитают название. */

/* Развёрнутые подробности проекта прямо под строкой. */

/* Имена файлов и папок — как на диске: общий .mono делает текст
   заглавными, а Praktikum и PRAKTIKUM для сервера разные
   вещи. Та же беда в окнах: _метки-пульта.json превращалось в крик. */

/* Печать таблицы: на бумагу идут заголовок, показатели и сама таблица —
   всё, чем управляют на экране, лишнее. */
@media print{
  html[data-печать] .site-head, html[data-печать] .site-foot{ display:none !important; }
  
  
  
  
}

/* ─── блок «скачать файл» ───────────────────────────────── */
.dl{ margin:0 0 22px; padding:18px 22px; max-width:var(--mera);
  border:1px solid var(--rule-2); border-radius:var(--radius); background:var(--paper-2); }
.dl > b{ display:block; font-family:var(--font-mono); font-size:12px; font-weight:500; text-transform:uppercase;
  letter-spacing:.06em; color:var(--muted); margin-bottom:8px; }
.dl > p{ margin:0 0 14px; font-size:15px; }
.dl .dl-meta{ display:block; margin-top:10px; color:var(--muted);
  font-family:var(--font-mono); font-size:12.5px; }

/* ─── сравнение и промпты ───────────────────────────────── */
.pr{ display:grid; gap:16px; grid-template-columns:repeat(auto-fit, minmax(min(320px,100%), 1fr)); }
.pr-box{ display:flex; flex-direction:column; border-radius:var(--radius); border:1px solid var(--rule); overflow:hidden; background:var(--paper-2); }
.pr-box header{ display:flex; align-items:center; gap:9px; padding:10px 16px; border-bottom:1px solid var(--rule-2);
  font-family:var(--font-mono); font-size:12.5px; font-weight:500; letter-spacing:.05em; text-transform:uppercase; }
.pr-bad header{ color:var(--err); }
.pr-good header{ color:var(--accent); }
.pr-box pre{ margin:0; padding:16px; font-family:var(--font-mono); font-size:13.5px; line-height:1.62; white-space:pre-wrap; word-break:break-word; }
.pr-key{ background:var(--accent-soft); color:var(--accent); font-weight:500; border-radius:4px; padding:2px 5px; margin:0 -2px;
  box-shadow:0 0 0 1px var(--accent-line); }
.pr-why{ margin-top:16px; padding:18px 22px; border-radius:var(--radius); background:var(--accent-soft); }
.pr-why b{ display:block; margin-bottom:6px; color:var(--accent); font-family:var(--font-mono); font-size:12px; font-weight:500;
  text-transform:uppercase; letter-spacing:.06em; }
.pr-why p{ margin:0; max-width:var(--mera); }
.pr-foot{ margin-top:14px; display:flex; flex-wrap:wrap; gap:10px; align-items:center; }

.block-compare{ margin:0 0 26px; padding:20px 22px; border:1px solid var(--rule-2); border-radius:var(--radius-lg); background:var(--paper-2); }
.block-compare .pr-box{ background:var(--paper); }
.cmp-title{ margin:0 0 8px; font-size:17px; }
.block-compare .pr{ margin-top:14px; }

.prompt-card{ margin:0 0 22px; border:1px solid var(--rule); border-radius:var(--radius-lg); overflow:hidden; background:var(--paper-2); }
.prompt-card > header{ display:flex; flex-wrap:wrap; align-items:center; gap:12px; padding:13px 18px; border-bottom:1px solid var(--rule-2); }
.prompt-card > header b{ font-size:15.5px; }
.prompt-card > header .btn{ margin-left:auto; }
.prompt-when{ margin:0; padding:12px 18px 0; color:var(--ink-2); font-size:14.5px; max-width:var(--mera); }
.prompt-body{ margin:0; padding:18px; background:var(--term-bg); color:var(--term-text);
  font-family:var(--font-mono); font-size:13.5px; line-height:1.72; white-space:pre-wrap; word-break:break-word; }
.prompt-when + .prompt-body{ margin-top:12px; }
mark.pk{ display:inline; padding:2px 6px 2px 4px; border-radius:4px; background:oklch(85% 0.17 165 / .16); color:oklch(92% 0.10 165);
  box-shadow:inset 0 0 0 1px oklch(85% 0.17 165 / .5); }
.pk-n{ display:inline-flex; align-items:center; justify-content:center; width:17px; height:17px; margin-right:7px; vertical-align:1px;
  border-radius:50%; background:oklch(85% 0.17 165); color:oklch(16% 0.03 165); font-size:11px; font-weight:700; font-family:var(--font-body); }
.prompt-why{ padding:16px 18px; border-top:1px solid var(--rule-2); }
.prompt-why > b{ display:block; margin-bottom:10px; font-family:var(--font-mono); font-size:12px; font-weight:500;
  text-transform:uppercase; letter-spacing:.06em; color:var(--muted); }
.prompt-why ol{ margin:0; padding-left:22px; }
.prompt-why li{ margin-bottom:12px; }
.prompt-why li:last-child{ margin-bottom:0; }
.prompt-why i{ display:block; font-style:normal; font-weight:500; font-size:14px; font-family:var(--font-mono); color:var(--accent); margin-bottom:3px; }
.prompt-why span{ font-size:15px; line-height:1.55; }
.prompt-warn{ margin:0; padding:12px 18px; background:var(--warn-soft); color:var(--warn); font-size:14px; }

.pr-box header, .prompt-card > header{ font-variant-numeric:tabular-nums; }

.term-ref{ color:inherit; text-decoration:underline dotted var(--accent-line); text-underline-offset:3px; text-decoration-thickness:1.5px; cursor:help; }
.term-ref:hover{ color:var(--accent); text-decoration-style:solid; }
.term-pop{ position:absolute; z-index:70; width:min(360px, calc(100vw - 24px)); padding:14px 16px 12px;
  background:var(--paper-3); border:1px solid var(--rule); border-radius:var(--radius); box-shadow:var(--shadow); }
.term-pop b{ display:block; font-family:var(--font-display); font-weight:500; font-size:15px; margin-bottom:4px; }
.term-pop p{ margin:0 0 8px; font-size:14.5px; line-height:1.5; }
.term-pop a{ font-size:13.5px; font-weight:600; }
.lvl{ display:inline-block; margin-left:8px; padding:1px 8px; border-radius:999px; vertical-align:2px;
  font-family:var(--font-mono); font-size:10.5px; font-weight:500; letter-spacing:.04em; text-transform:uppercase; white-space:nowrap; }
.lvl-1{ background:var(--accent-soft); color:var(--accent); }
.lvl-2{ background:var(--warn-soft); color:var(--warn); }
.lvl-3{ background:var(--err-soft); color:var(--err); }
.toc a .lvl{ display:block; margin:3px 0 0; width:max-content; }
.lvl-h{ font-size:11px; vertical-align:middle; }
.lvl-note{ color:var(--ink-2); font-size:14.5px; }
.lvl-note .lvl{ margin:0 2px; }

/* ─── сворачиваемое ─────────────────────────────────────── */
.fold{ border:1px solid var(--rule-2); border-radius:var(--radius); background:var(--paper-2); overflow:hidden; }
.fold + .fold{ margin-top:14px; }
.fold-hd{ width:100%; display:flex; align-items:center; gap:12px; padding:16px 20px; background:transparent; border:none;
  color:var(--ink); font:inherit; font-size:17px; font-weight:600; cursor:pointer; text-align:left; }
.fold-hd:hover{ background:var(--accent-soft); }
.fold-hd small{ margin-left:auto; color:var(--muted); font-size:13.5px; text-align:right; }
.fold-hd .chev{ transition:transform var(--dur-short) var(--ease-out); color:var(--muted); flex-shrink:0; }
.fold[data-open="1"] .chev{ transform:rotate(90deg); }
.fold-body{ padding:2px 20px 20px; }
.fold-prompt + .fold-prompt{ margin-top:10px; }
.fold-prompt .fold-hd{ flex-wrap:wrap; gap:6px 12px; font-size:16px; }
.fold-prompt .fold-title{ font-family:var(--font-mono); font-weight:500; font-size:14.5px; }
.fold-prompt .fold-hd small{ flex-basis:100%; margin-left:26px; text-align:left; font-weight:400; font-size:13.5px; line-height:1.45; }
.fold-prompt .prompt-body{ border-radius:var(--radius-sm); max-height:70vh; overflow:auto; }
.fold[data-open="0"] .fold-body{ display:none; }

/* ─── словарь ───────────────────────────────────────────── */
.terms, .skills-list{ display:grid; gap:14px; grid-template-columns:repeat(auto-fill, minmax(min(100%, 440px), 1fr)); }   /* плитки на всю ширину (заказчик, 09.11.2026) */
.term{ display:flex; flex-direction:column; align-items:flex-start; gap:6px; padding:18px 22px 20px; min-width:0;
  background:var(--paper-2); border:1px solid var(--rule-2); border-radius:var(--radius-lg);
  scroll-margin-top:var(--top-gap); transition:background var(--dur-long) var(--ease-out), border-color var(--dur-short) var(--ease-out); }
.term:hover{ border-color:var(--accent-line); }
.term-flash{ background:var(--accent-soft); }
.term h3{ margin:0; font-family:var(--font-display); font-weight:500; font-size:17px; line-height:1.3; }
.term h3 .tag{ margin-left:8px; vertical-align:2px; }
.term-alt{ color:var(--muted); font-size:13.5px; line-height:1.45; }
.term-short{ margin:4px 0 0; font-weight:600; }
.term-long{ margin:0; color:var(--ink-2); font-size:15.5px; line-height:1.6; }
.term-warn{ margin:4px 0 0; padding:12px 16px; background:var(--warn-soft); border-radius:var(--radius-sm); align-self:stretch; }
.term-warn b{ display:block; font-family:var(--font-mono); font-size:11.5px; font-weight:500; text-transform:uppercase; letter-spacing:.05em;
  color:var(--warn); margin-bottom:4px; }
.term-warn p{ margin:0; font-size:15px; }
.term-links{ display:flex; flex-wrap:wrap; gap:8px; align-items:center; color:var(--muted); font-size:14px; margin-top:4px; }
.term-links a{ padding:3px 10px; border:1px solid var(--rule); border-radius:999px; font-size:13.5px; color:var(--ink-2); }
.term-links a:hover{ border-color:var(--accent-line); color:var(--accent); text-decoration:none; }

/* ─── плитка руководства (запас для списков) ────────────── */
.grid{ display:grid; gap:18px; grid-template-columns:repeat(auto-fill, minmax(min(320px,100%), 1fr)); }
.tile{ display:flex; flex-direction:column; gap:11px; padding:22px; background:var(--paper-2);
  border:1px solid var(--rule-2); border-radius:var(--radius-lg); color:var(--ink);
  transition:border-color var(--dur-short) var(--ease-out); }
.tile:hover{ border-color:var(--rule); text-decoration:none; }
.tile h3{ margin:0; font-size:19px; }
.tile p{ margin:0; color:var(--ink-2); font-size:15px; line-height:1.55; }
.tile-meta{ margin-top:auto; padding-top:6px; display:flex; flex-wrap:wrap; gap:10px; color:var(--muted); font-size:13px; }

/* ─── редактор ──────────────────────────────────────────── */
.editor{ display:grid; gap:26px; grid-template-columns:290px minmax(0,1fr); align-items:start; margin-top:24px; }
.ed-side{ position:sticky; top:var(--top-gap); display:flex; flex-direction:column; gap:12px;
  max-height:calc(100dvh - var(--top-gap) - 24px); }
.ed-search input{ padding:11px 14px 11px 44px; font-size:15px; }
.ed-search svg{ left:14px; }
#списокКарточек{ overflow-y:auto; display:flex; flex-direction:column; gap:6px; padding-right:4px; }
.ed-item{ display:block; width:100%; text-align:left; padding:11px 14px; border-radius:var(--radius-sm);
  border:1px solid var(--rule-2); background:var(--paper-2); color:var(--ink); font:inherit; cursor:pointer;
  transition:border-color var(--dur-micro) var(--ease-out); }
.ed-item:hover{ border-color:var(--accent-line); }
.ed-item.now{ border-color:var(--accent-line); background:var(--accent-soft); }
.ed-item.ed-sub{ margin-left:14px; width:calc(100% - 14px); }
.ed-item.ed-sub b{ font-weight:600; font-size:13.5px; }
.ed-group > b .блок-кнопки{ float:right; display:flex; gap:6px; font-weight:400; }
.ed-group > b .блок-кнопки .btn{ min-height:28px; padding:4px 10px; font-size:12.5px; }
.ed-item.удаляется{ border-color:var(--err); background:var(--err-soft); }
.ed-item.удаляется b{ text-decoration:line-through; color:var(--muted); }
.ed-item b{ display:block; font-size:14.5px; font-weight:600; line-height:1.35; margin-bottom:2px; }
.ed-item span{ color:var(--muted); font-size:12.5px; }

#форма{ padding:26px 28px; background:var(--paper-2); border:1px solid var(--rule-2); border-radius:var(--radius-lg); }
.ed-head{ display:flex; flex-wrap:wrap; align-items:baseline; gap:12px; margin-bottom:20px; padding-bottom:14px; border-bottom:1px solid var(--rule-2); }
.ed-head h2{ margin:0; }
.ed-id{ color:var(--muted); font-size:12.5px; font-family:var(--font-mono); }
.ed-count{ color:var(--muted); font-size:14px; align-self:center; }

.ed-field, .ed-row3 label{ display:block; margin-bottom:16px; }
.ed-field > span, .ed-row3 label > span{ display:block; font-size:14px; font-weight:600; margin-bottom:5px; }
.ed-field > small{ display:block; color:var(--muted); font-size:13.5px; line-height:1.45; margin-bottom:7px; }
.ed-field input, .ed-field textarea, .ed-row3 select, .ed-field select, select#видНового{
  width:100%; padding:11px 13px; font:inherit; font-size:15px; line-height:1.55;
  color:var(--ink); background:var(--paper); border:1px solid var(--rule); border-radius:var(--radius-sm);
  transition:border-color var(--dur-micro) var(--ease-out), box-shadow var(--dur-micro) var(--ease-out); }
select#видНового{ width:auto; padding:8px 12px; }
.ed-field textarea{ resize:vertical; min-height:44px; }
.ed-field input:focus, .ed-field textarea:focus, .ed-row3 select:focus, .ed-field select:focus{
  outline:none; border-color:var(--accent); box-shadow:0 0 0 3px var(--accent-soft); }
.ed-row3{ display:grid; gap:16px; grid-template-columns:repeat(auto-fit, minmax(min(190px,100%), 1fr)); }
.ed-group{ margin:22px 0; padding:18px 20px; border:1px dashed var(--rule); border-radius:var(--radius); }
.ed-group > b{ display:block; font-size:15px; margin-bottom:14px; }
.ed-step{ padding-bottom:6px; margin-bottom:10px; border-bottom:1px solid var(--rule-2); }
.ed-step:last-child{ border-bottom:none; }

@media (max-width:900px){
  .editor{ grid-template-columns:1fr; }
  .ed-side{ position:static; max-height:none; }
  #списокКарточек{ max-height:320px; }
}

/* ─── подвал: одна фраза и строка реквизитов ────────────── */
.foot-stmt{ margin-top:48px; padding:14px 0 22px; border-top:1px solid var(--rule); }      /* одна линия: вторая (у строки реквизитов) осталась от снятой фразы и дублировала эту (10.11.2026) */
.foot-stmt__line{ display:none; font-family:var(--font-display); font-weight:500; font-size:clamp(1.4rem, 2.6vw + .4rem, 2.5rem);
  line-height:1.12; letter-spacing:-.02em; max-width:26ch; margin:0 0 30px; }
.foot-stmt__meta{ display:flex; flex-wrap:wrap; gap:8px 26px; justify-content:space-between; align-items:baseline;
  font-size:13.5px; color:var(--muted); }
.foot-stmt__meta a{ color:var(--muted); }
.foot-stmt__meta a:hover{ color:var(--accent); }

/* ─── уведомление ───────────────────────────────────────── */
.toast{
  position:fixed; left:50%; bottom:30px; transform:translate(-50%, 14px);
  padding:12px 20px; border-radius:999px; z-index:90;
  background:var(--paper-3); border:1px solid var(--rule); box-shadow:var(--shadow); font-size:14.5px; font-weight:600;
  opacity:0; pointer-events:none; transition:opacity var(--dur-short) var(--ease-out), transform var(--dur-short) var(--ease-out);
}
.toast[data-on="1"]{ opacity:1; transform:translate(-50%, 0); }

/* ─── узкие экраны ──────────────────────────────────────── */
@media (max-width:820px){
  .wrap{ padding:0 18px; }
  h1{ font-size:27px; }
  .card-hero h1{ max-width:none; }
  .hero .lead, .card-lead{ font-size:17px; }
  .steps li{ grid-template-columns:36px minmax(0,1fr); }
}
@media (max-width:640px){
  .stage{ padding:18px 18px; }
  .foot-stmt{ margin-top:40px; }
}
@media (max-width:900px){
  .guide{ grid-template-columns:1fr; gap:20px; }
  .toc{ position:static; max-height:none; }
}

@media (prefers-reduced-motion:reduce){
  *, *::before, *::after{ animation-duration:150ms !important; animation-iteration-count:1 !important; transition-duration:150ms !important; }
  body::before{ animation:none; }
  .reveal{ animation:none; opacity:1; transform:none; }
}

/* ─── печать ────────────────────────────────────────────── */
@media print{
  html, html[data-theme="dark"], html[data-theme="light"]{
    --paper:#fff; --paper-2:#fff; --paper-3:#f2f2f2; --ink:#000; --ink-2:#222; --muted:#444;
    --rule:#999; --rule-2:#ccc; --accent:#000; --accent-soft:#f2f2f2; --accent-line:#999; --shadow:none; --mera:100%;
    --term-bg:#f4f4f4; --term-text:#000; --top-gap:0px; }
  body{ background:#fff !important; color:#000 !important; font-size:11.5pt; }
  body::before, body::after, .nav-pill, .readbar, .toast, .search, .filters,
  .pr-foot, .toc, .home-cta, .foot-stmt__line{ display:none !important; }
  main{ padding:0; }
  .wrap{ max-width:none; padding:0; }
  .panel, .steps li, .fold, .callout, .tblwrap, .pr-box, .term, .tip{ box-shadow:none !important; break-inside:avoid; }
  .fold[data-open="0"] .fold-body{ display:block !important; }
  .fold-hd .chev{ display:none; }
  .chapter h2, h1, h2, h3{ break-after:avoid; }
  a{ color:#000 !important; text-decoration:none; }
  .prose a[href^="http"]::after{ content:" (" attr(href) ")"; font-size:9pt; color:#555; }
  .card-hero h1{ font-size:20pt; }
  .print-only{ display:block !important; }
}
.print-only{ display:none; }

/* ─── карта системы внутри руководства (перенос из Sentinel) ── */
.scheme{ margin:0 0 26px; padding:0; border:1px solid var(--rule-2); border-radius:var(--radius-lg); background:var(--paper-2); overflow:hidden; }
.scheme-head{ display:flex; align-items:center; justify-content:space-between; gap:8px 16px; flex-wrap:wrap; padding:16px 18px 0; }
.scheme-head b{ font-size:16px; }
.scheme-sub{ margin:8px 18px 0; color:var(--ink-2); font-size:14.5px; max-width:none; }      /* Р-52: описание на всю ширину, без пустоты справа */
.scheme-controls{ display:inline-flex; gap:6px; flex-shrink:0; }
.scheme-controls .btn{ min-height:32px; padding:4px 12px; font-size:13px; }
.scheme-legend{ display:flex; flex-wrap:wrap; gap:6px 14px; padding:10px 18px 10px; }
.glegend-item{ display:inline-flex; align-items:center; gap:6px; font-family:var(--font-mono); font-size:11.5px; color:var(--muted); letter-spacing:.03em; }
.glegend-dot{ width:10px; height:10px; border-radius:50%; flex-shrink:0; }
.glegend-dot.lg-hub{ background:var(--accent-fill); box-shadow:0 0 0 2px var(--accent-soft); }
.glegend-dot.lg-agent{ background:var(--g-pipe); }
.glegend-dot.lg-aux{ background:var(--g-aux); }
.glegend-dot.lg-chk{ background:transparent; border:1.5px dashed var(--accent); }
.glegend-dot.lg-skill{ background:var(--g-skill); }
.glegend-dot.lg-reg{ background:var(--g-reg); }
.scheme-count{ margin:0; padding:10px 18px 14px; font-family:var(--font-mono); font-size:12px; color:var(--muted); }

html{ --g-pipe:oklch(72% 0.14 250); --g-aux:oklch(78% 0.12 200); --g-skill:oklch(82% 0.14 80); --g-reg:oklch(78% 0.15 145);
  --g-ink:oklch(14% 0.02 200); --g-bg:oklch(10% 0.012 200); }
html[data-theme="light"]{ --g-pipe:oklch(58% 0.15 250); --g-aux:oklch(62% 0.12 200); --g-skill:oklch(72% 0.15 80); --g-reg:oklch(62% 0.15 145);
  --g-ink:oklch(98% 0.01 200); --g-bg:oklch(92% 0.012 195); }

.graph-stage{ position:relative; height:clamp(440px, 60vh, 640px); background:var(--g-bg); overflow:hidden; touch-action:none;
  border-top:1px solid var(--rule-2); }
/* Карта на весь экран (кнопка «Экран», как в пульте Sentinel): карточка
   занимает весь монитор, сцена растягивается через flex, SVG подгоняется сам. */
.scheme:fullscreen, .scheme.is-fullscreen{
  width:100vw; height:100vh; margin:0; border-radius:0; padding:16px;
  background:var(--paper-2); display:flex; flex-direction:column;
}
.scheme:fullscreen .graph-stage, .scheme.is-fullscreen .graph-stage{ height:auto; flex:1; min-height:0; }
/* Там, где браузер не умеет разворачивать блок (iPhone), карта ложится поверх страницы. */
.scheme.is-fullscreen-fb{ position:fixed; inset:0; z-index:130; width:auto; height:auto; }
.graph-svg{ width:100%; height:100%; display:block; cursor:grab; }
.graph-svg.is-grabbing{ cursor:grabbing; }
.glink{ fill:none; stroke:var(--rule); stroke-width:1.4; transition:opacity var(--dur-short) var(--ease-out); }
.glink-flow{ stroke:var(--g-pipe); stroke-width:1.9; opacity:.7; }
.glink-spine{ stroke:var(--accent); stroke-width:1.8; opacity:.6; }
.glink-aux{ stroke:var(--g-aux); opacity:.45; }
.glink-uses{ stroke:var(--g-skill); stroke-dasharray:2 4; opacity:.5; }
.glink-reg{ stroke:var(--g-reg); stroke-dasharray:2 4; opacity:.5; }
.glink.is-hot{ opacity:1; stroke-width:2.4; }
.glink.is-dim{ opacity:.1; }
/* Связь с дополнительным владельцем скилла (also) — справка по наведению,
   не постоянная деталь схемы; текст «также используют» есть в подсказке. */
.glink.is-also{ opacity:0; }
.glink.is-also.is-hot{ opacity:1; }
.gimp{ fill:var(--accent); filter:url(#gGlow); }
.gnode{ cursor:pointer; transition:opacity var(--dur-short) var(--ease-out); }
.gnode:focus{ outline:none; }
.gnode:focus-visible .gnode-circle{ stroke:var(--ink); stroke-width:3; }
.gnode-halo{ fill:var(--accent-soft); transform-box:fill-box; transform-origin:center; animation:gHalo 3.4s ease-in-out infinite; }
.gnode-circle{ fill:var(--paper-3); stroke:var(--rule); stroke-width:1.5; }
.gnode-label{ font-family:var(--font-mono); font-weight:700; fill:var(--g-ink); font-size:15px; pointer-events:none; }
.gnode-cap{ fill:var(--muted); font-size:10.5px; font-weight:600; pointer-events:none; }
.gnode-hub .gnode-circle{ fill:var(--accent-fill); stroke:var(--accent); stroke-width:2; }
.gnode-hub .gnode-halo{ animation-duration:2.8s; }
.gnode-hub .gnode-label{ fill:var(--accent-ink); font-size:12px; letter-spacing:.03em; }
.gnode-agent.is-pipe .gnode-circle{ fill:var(--g-pipe); stroke:var(--g-pipe); }
.gnode-agent:not(.is-pipe) .gnode-circle{ fill:var(--g-aux); stroke:var(--g-aux); }
.gnode-checkpoint .gnode-circle{ fill:var(--accent-soft); stroke:var(--accent); stroke-width:1.6; stroke-dasharray:3 3; }
.gnode-checkpoint .gnode-label{ fill:var(--accent); }
.gnode-skill .gnode-circle{ fill:var(--g-skill); stroke:var(--g-skill); }
.gnode-reglament .gnode-circle{ fill:var(--g-reg); stroke:var(--g-reg); }
.gnode.is-hot .gnode-circle{ stroke:var(--ink); stroke-width:3; }
.gnode.is-hot .gnode-cap, .gnode.is-near .gnode-cap{ fill:var(--ink); }
.gnode.is-dim{ opacity:.26; }
@keyframes gHalo{ 0%,100%{ transform:scale(1); opacity:.75; } 50%{ transform:scale(1.16); opacity:.4; } }
.graph-tip{ position:absolute; z-index:6; max-width:300px; pointer-events:none; background:var(--paper-3);
  border:1px solid var(--rule); border-radius:var(--radius); box-shadow:var(--shadow); padding:12px 14px; }
.graph-tip-title{ font-weight:700; font-size:13.5px; margin-bottom:2px; }
.graph-tip-kind{ font-family:var(--font-mono); font-size:10.5px; text-transform:uppercase; letter-spacing:.05em; color:var(--accent); margin-bottom:7px; }
.graph-tip-line{ font-size:12.5px; color:var(--ink-2); line-height:1.5; margin-top:4px; }
@media (max-width:640px){ .graph-stage{ height:clamp(380px, 68vh, 520px); } }
@media (prefers-reduced-motion:reduce){ .gnode-halo{ animation:none; } }

/* ─── страница скиллов ──────────────────────────────────── */
.skill{ display:flex; flex-direction:column; align-items:flex-start; gap:6px; padding:18px 22px 20px; min-width:0;
  background:var(--paper-2); border:1px solid var(--rule-2); border-radius:var(--radius-lg);
  scroll-margin-top:var(--top-gap); transition:background var(--dur-long) var(--ease-out), border-color var(--dur-short) var(--ease-out); }
.skill:hover{ border-color:var(--accent-line); }
.skill h3{ margin:0; font-family:var(--font-mono); font-weight:500; font-size:15.5px; line-height:1.4; word-break:break-word;
  color:var(--accent); display:flex; align-items:baseline; gap:10px; }
.skill h3::before{ content:""; width:8px; height:8px; border-radius:2px; background:var(--accent-fill); flex-shrink:0; transform:translateY(-1px); }
.skill h3 .tag{ margin-left:8px; vertical-align:2px; }
.skill-who{ color:var(--muted); font-size:13.5px; line-height:1.45; }
.skill-short{ margin:4px 0 0; font-weight:500; }
.skill-when{ margin:0; color:var(--ink-2); font-size:15px; line-height:1.55; }
.skill-when b{ color:var(--accent); font-weight:600; font-family:var(--font-mono); font-size:12.5px; text-transform:uppercase; letter-spacing:.05em; }
.skill-file{ display:flex; flex-wrap:wrap; gap:8px 14px; align-items:center; font-size:13.5px; color:var(--muted); margin-top:auto; padding-top:6px; }
.skill-file .btn{ min-height:34px; padding:6px 14px; font-size:13.5px; background:var(--accent-fill); border-color:var(--accent-fill); color:var(--accent-ink); }
.skill-file .btn:hover{ transform:translateY(-1px); color:var(--accent-ink); }
.how{ margin:0 0 14px; }
.how > summary{ cursor:pointer; min-height:36px; display:inline-flex; align-items:center; font-weight:600; color:var(--accent); }
.how[open] > summary{ margin-bottom:10px; }
.ed-file{ display:flex; flex-wrap:wrap; gap:10px; align-items:center; margin-bottom:16px; }
.ed-file input[type=file]{ font:inherit; font-size:14px; color:var(--ink-2); max-width:100%; }
.ed-file .ed-file-now{ font-family:var(--font-mono); font-size:12.5px; color:var(--muted); }

/* ─── картинка в статье ─────────────────────────────────── */
.shot{ margin:0 0 22px; }
.shot img{ display:block; max-width:100%; height:auto; border-radius:var(--radius); border:1px solid var(--rule-2); background:var(--paper-2); }
.shot figcaption{ margin-top:8px; color:var(--muted); font-size:13.5px; line-height:1.45; }

/* ─── картинка крупно ───────────────────────────────────── */
/* В колонке статьи схема и кадр переписки сжаты, на телефоне — вдвое: подписи
   не прочесть. Нажатие открывает картинку на весь экран. На широком экране она
   вписывается целиком; на узком показывается в рабочем размере и двигается
   пальцем. Закрывает нажатие, крестик или Esc — терять здесь нечего. */
.chapter .shot img, .chapter .rich img{ cursor:zoom-in; }
.zoom{ position:fixed; inset:0; z-index:130; display:flex; cursor:zoom-out;
  background:oklch(8% 0.01 200 / .88); backdrop-filter:blur(8px); -webkit-backdrop-filter:blur(8px);
  opacity:0; transition:opacity var(--dur-short) var(--ease-out); }
.zoom.on{ opacity:1; }
.zoom-scroll{ flex:1; display:flex; overflow:auto; overscroll-behavior:contain; padding:64px 16px 24px; }
.zoom img{ display:block; flex:none; margin:auto; width:auto; height:auto; max-width:96vw; max-height:calc(100vh - 96px);
  border-radius:var(--radius); border:1px solid oklch(95% 0.01 180 / .14); background:oklch(10% 0.012 200);
  transform:scale(.97); transition:transform var(--dur-short) var(--ease-out); }
.zoom.on img{ transform:none; }
.zoom-x{ position:fixed; top:12px; right:12px; width:44px; height:44px; display:flex; align-items:center; justify-content:center;
  border-radius:999px; border:1px solid oklch(95% 0.01 180 / .2); background:oklch(16% 0.014 200 / .9); color:oklch(94% 0.01 180);
  cursor:pointer; transition:border-color var(--dur-micro) var(--ease-out), color var(--dur-micro) var(--ease-out); }
.zoom-x:hover{ color:oklch(88% 0.19 165); border-color:oklch(88% 0.19 165 / .6); }
.zoom-x:focus-visible{ outline:2px solid oklch(88% 0.19 165); outline-offset:3px; border-radius:999px; }
.zoom-x svg{ width:18px; height:18px; }
html.zoom-open{ overflow:hidden; }
@media (max-width:900px){
  .zoom-scroll{ padding:64px 12px 20px; }
  .zoom img{ max-width:none; max-height:none; width:min(860px, var(--zoom-w, 860px)); margin:0 auto auto; }
}
@media (prefers-reduced-motion: reduce){ .zoom, .zoom img{ transition:none; } .zoom img{ transform:none; } }
@media print{ .zoom{ display:none !important; } }

/* ─── режим правки ──────────────────────────────────────── */
/* Ключик в шапке почти невидим, пока режим выключен: он не для читателей. */
.adm-key{ opacity:.35; }
.adm-key:hover{ opacity:1; }
.adm-key.on{ opacity:1; color:var(--accent); border-color:var(--accent-line); }

.adm-b{
  display:inline-flex; align-items:center; justify-content:center; gap:4px; min-height:26px; padding:3px 9px;
  border:1px solid var(--rule); border-radius:999px; background:var(--paper-3); color:var(--ink-2);
  font:600 12px/1 var(--font-body); cursor:pointer; white-space:nowrap; text-decoration:none;
  transition:color var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out);
}
.adm-b:hover{ color:var(--accent); border-color:var(--accent-line); text-decoration:none; }
.adm-b.adm-main{ background:var(--accent-fill); border-color:var(--accent-fill); color:var(--accent-ink); }
.adm-b.adm-danger{ color:var(--err); }
.adm-b.adm-danger:hover{ background:var(--err); border-color:var(--err); color:var(--paper); }
.adm-b.btn{ font-size:14px; min-height:40px; padding:8px 16px; border-radius:999px; }
.adm-b.adm-x{ width:30px; padding:0; }

.adm-bar{ display:flex; flex-wrap:wrap; align-items:center; gap:5px; margin:0 0 8px; padding:6px 8px;
  border:1px dashed var(--accent-line); border-radius:var(--radius-sm); background:var(--accent-soft); }
.adm-kind{ font-family:var(--font-mono); font-size:11px; text-transform:uppercase; letter-spacing:.06em; color:var(--accent); margin-right:4px; }
.adm-blk{ position:relative; margin:0 0 6px; padding:6px 8px 0; border-radius:var(--radius-sm); border:1px solid transparent; }
.adm-blk:hover{ border-color:var(--rule-2); background:oklch(50% 0.02 200 / .06); }
.adm-blk > .adm-bar{ opacity:.55; transition:opacity var(--dur-short) var(--ease-out); }
.adm-blk:hover > .adm-bar, .adm-blk:focus-within > .adm-bar{ opacity:1; }
.adm-bar-ch, .adm-bar-art{ margin-top:14px; }
.adm-add{ margin:4px 0 22px; }
.adm-empty{ color:var(--muted); font-style:italic; }
.chapter.adm-ch{ scroll-margin-top:calc(var(--top-gap) + 8px); }

.adm-status{
  position:fixed; left:18px; bottom:18px; z-index:80; display:flex; flex-wrap:wrap; align-items:center; gap:8px 12px;
  max-width:min(92vw, 720px); padding:10px 14px; border:1px solid var(--accent-line); border-radius:var(--radius);
  font-size:13px; color:var(--ink-2);
}
.adm-status b{ color:var(--accent); font-size:13px; }
.adm-state{ color:var(--muted); }

.adm-drawer{
  position:fixed; top:0; right:0; bottom:0; z-index:85; width:min(100vw, 520px);
  display:flex; flex-direction:column; border-left:1px solid var(--glass-edge); box-shadow:var(--shadow);
  animation:выезд .22s var(--ease-out);
}
@keyframes выезд{ from{ transform:translateX(30px); opacity:0; } to{ transform:none; opacity:1; } }
.adm-drawer header{ display:flex; align-items:center; justify-content:space-between; gap:12px; padding:16px 20px; border-bottom:1px solid var(--rule-2); }
.adm-drawer header b{ font-size:15px; line-height:1.3; }
.adm-drawer .adm-form{ flex:1; overflow:auto; padding:18px 20px 8px; }
.adm-drawer .pr-foot{ padding:12px 20px 18px; border-top:1px solid var(--rule-2); margin:0; }
.adm-drawer .ed-field textarea{ font-size:14px; min-height:140px; }
.adm-drawer .ed-field textarea[data-блок-поле="текст"], .adm-drawer .ed-field textarea[data-блок-поле="хорошо"], .adm-drawer .ed-field textarea[data-поле="пост"]{ min-height:34vh; }
.adm-drawer .ed-step{ padding:10px 12px; border:1px dashed var(--rule-2); border-radius:var(--radius-sm); margin-bottom:10px; }
body.adm-drawer-open .adm-status{ display:none; }
@media (max-width:640px){ .adm-status{ left:8px; right:8px; bottom:8px; max-width:none; } }

.ed-pic-preview img{ display:block; max-width:100%; max-height:220px; margin:8px 0; border-radius:var(--radius-sm); border:1px solid var(--rule-2); }
.ed-pic input[type="file"]{ font-size:13px; color:var(--muted); max-width:100%; }

.pin-wrap{ position:fixed; inset:0; z-index:95; display:flex; align-items:center; justify-content:center; padding:20px;
  background:oklch(10% 0.01 200 / .55); backdrop-filter:blur(6px); }
.pin-modal{ width:min(100%, 380px); padding:26px 28px; border-radius:var(--radius-lg); border:1px solid var(--glass-edge); }
.pin-modal b{ display:block; font-family:var(--font-display); font-size:18px; margin-bottom:6px; }
.pin-modal p{ color:var(--muted); font-size:14px; margin:0 0 14px; }
.pin-modal input{ width:100%; padding:12px 14px; font-size:20px; letter-spacing:.3em; text-align:center; border:1px solid var(--rule);
  border-radius:var(--radius-sm); background:var(--paper-2); color:var(--ink); }
.pin-modal input:focus{ outline:none; border-color:var(--accent-line); box-shadow:0 0 0 3px var(--focus); }
.pin-modal .pr-foot{ margin:14px 0 0; }
.pin-modal.shake{ animation:тряска .35s var(--ease-out); }
@keyframes тряска{ 20%{ transform:translateX(-8px); } 40%{ transform:translateX(8px); } 60%{ transform:translateX(-5px); } 80%{ transform:translateX(5px); } }
@media print{ .adm-bar, .adm-add, .adm-status, .adm-drawer, .adm-key{ display:none !important; } }
@media (prefers-reduced-motion: reduce){ .adm-drawer{ animation:none; } .pin-modal.shake{ animation:none; } }

/* Две врезки рядом на широком экране, стопкой на узком. */
.duo-callouts{ display:grid; gap:14px; grid-template-columns:repeat(auto-fit, minmax(min(320px, 100%), 1fr)); margin-bottom:18px; }
.duo-callouts .callout{ margin:0; }

/* ─── переходы между страницами (стандарт core-web-motion) ── */
/* Чистое затухание содержимого, шапка стоит на месте. Делается скриптом
   (app.js), а не @view-transition: Яндекс.Браузер, которым пользуется отдел,
   CSS-переходы между документами не включает — страница менялась рывком.
   Уход: html.leaving гасит main и подвал; приход: html.arriving ставится
   до первой отрисовки (скрипт в <head>) и снимается, когда страница собрана. */
/* Уходящую страницу НЕ анимируем: пауза перед сменой раздела и есть то, что
   читается как рывок — клик, задержка, скачок. Уходим сразу, а новый раздел
   приезжает с той стороны, куда листаем, и на ходу проявляется. Соседние
   страницы к этому моменту уже отрисованы браузером (см. app.js). */
main{ transition:opacity 240ms var(--ease-out), transform 240ms var(--ease-out); }
html.arriving main{ opacity:0; transform:translate3d(var(--слайд, 28px), 0, 0); transition:none; }
@media (prefers-reduced-motion:reduce){ html.arriving main{ opacity:1; transform:none; } }

/* Мягкая подмена списка при поиске и фильтре — вместо голого моргания. */
.soft-in{ animation:softIn var(--dur-short) var(--ease-out) both; }
@keyframes softIn{ from{ opacity:0; transform:translateY(6px); } to{ opacity:1; transform:none; } }

/* ─── чек-лист ──────────────────────────────────────────── */
.ck-bar{ display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:14px 24px; margin:22px 0 8px;
  padding:16px 20px; border:1px solid var(--rule-2); border-radius:var(--radius); }
.ck-progress{ display:flex; align-items:center; gap:14px; flex:1 1 260px; }
.ck-count{ font-family:var(--font-display); font-size:15px; white-space:nowrap; color:var(--muted); }
.ck-count b{ color:var(--accent); font-size:22px; font-weight:700; }
.ck-track{ flex:1; height:6px; border-radius:999px; background:var(--paper-3); overflow:hidden; }
.ck-fill{ height:100%; width:0; border-radius:999px; background:var(--accent-fill); transition:width var(--dur-long) var(--ease-out); }
.ck-tools{ display:flex; flex-wrap:wrap; align-items:center; gap:10px; }
.ck-sec{ padding:26px 0 8px; border-top:1px solid var(--rule-2); }
.ck-sec:first-child{ border-top:none; }
.ck-hd{ display:flex; align-items:baseline; justify-content:space-between; gap:12px; margin-bottom:10px; }
.ck-hd h2, .ck-hd h3{ margin:0; font-size:clamp(1.05rem, 1vw + .6rem, 1.3rem); }
.ck-group{ display:flex; align-items:baseline; justify-content:space-between; gap:12px; margin:44px 0 4px; padding-bottom:10px; border-bottom:2px solid var(--accent-line); }
.ck-group:first-child{ margin-top:20px; }
.ck-group h2{ margin:0; font-size:clamp(1.3rem, 1.6vw + .7rem, 1.9rem); }
.ck-group span{ color:var(--accent); font-size:13px; }
.ck-group + .ck-sec{ border-top:none; }
.ck-hd span{ color:var(--muted); font-size:12.5px; }
.ck-list{ list-style:none; margin:0; padding:0; max-width:var(--mera); }
.ck-list li{ margin:0; padding:0; }
.ck-item{ display:grid; grid-template-columns:24px 1fr; gap:14px; align-items:start; padding:10px 12px; margin:0 -12px; border-radius:var(--radius-sm); cursor:pointer;
  transition:background var(--dur-short) var(--ease-out); }
.ck-item:hover{ background:var(--accent-soft); }
.ck-item input{ position:absolute; opacity:0; width:1px; height:1px; pointer-events:none; }
.ck-box{ width:24px; height:24px; border-radius:7px; border:1.5px solid var(--rule); background:var(--paper-2); position:relative; margin-top:1px;
  transition:background var(--dur-short) var(--ease-out), border-color var(--dur-short) var(--ease-out); }
.ck-box::after{ content:""; position:absolute; left:8px; top:3px; width:6px; height:12px; border:solid var(--accent-ink); border-width:0 2.5px 2.5px 0;
  transform:rotate(45deg) scale(0); transition:transform var(--dur-short) var(--ease-out); }
.ck-item.on .ck-box{ background:var(--accent-fill); border-color:var(--accent-fill); }
.ck-item.on .ck-box::after{ transform:rotate(45deg) scale(1); }
.ck-item input:focus-visible + .ck-box{ box-shadow:0 0 0 3px var(--focus); }
.ck-text{ font-size:16px; line-height:1.55; transition:color var(--dur-short) var(--ease-out); }
.ck-item.on .ck-text{ color:var(--muted); text-decoration:line-through; text-decoration-color:var(--rule); }
@media (max-width:640px){ .ck-bar{ padding:14px; } .ck-list{ margin:0; } .ck-item{ margin:0 -8px; padding:10px 8px; } }

/* ─── страница «Архитектура» ────────────────────────────── */
/* Схемы собраны вёрсткой, а не картинками: читаются на телефоне, ищутся
   поиском браузера и правятся словами в data/architecture.js. */
.arch-sub{ margin:-6px 0 18px; color:var(--muted); font-size:15px; }

.arch-chain{ display:flex; flex-direction:column; gap:0; margin:0 0 24px; }
.arch-node{ padding:14px 18px; border:1px solid var(--rule); border-radius:var(--radius);
  background:var(--glass); border-color:var(--glass-edge);
  box-shadow:inset 0 1px 0 var(--glass-top); }
.arch-node b{ display:block; font-family:var(--font-display); font-size:17px; margin:2px 0 4px; }
.arch-role{ font-family:var(--font-mono); font-size:11px; text-transform:uppercase; letter-spacing:.07em; color:var(--accent); }
.arch-what{ display:block; color:var(--muted); font-size:14.5px; line-height:1.5; }
.arch-link{ display:flex; align-items:center; justify-content:center; gap:10px; padding:6px 0; min-height:34px; }
.arch-link::before{ content:""; width:1.5px; height:16px; background:var(--accent-line); }
.arch-link span{ font-family:var(--font-mono); font-size:11.5px; color:var(--muted); }
.arch-link::after{ content:"▾"; color:var(--accent); font-size:11px; }
@media (min-width:1100px){      /* цепочка в строку: на широком экране вертикальный столбик оставлял пустоту справа */
  .arch-chain{ flex-direction:row; align-items:stretch; }
  .arch-chain > .arch-node{ flex:1 1 0; min-width:0; }
  .arch-link{ flex-direction:column; padding:0 8px; min-height:0; }
  .arch-link::before{ width:16px; height:1.5px; }
  .arch-link::after{ content:"▸"; }
  .arch-link span{ text-align:center; max-width:9ch; }
}

.arch-cards{ display:grid; gap:14px; grid-template-columns:repeat(auto-fit, minmax(min(260px,100%), 1fr)); margin:0 0 24px; }
.arch-card{ padding:18px 20px; border-radius:var(--radius); border:1px solid var(--glass-edge); }
.arch-card b{ display:block; font-family:var(--font-display); font-size:17px; }
.arch-who{ display:block; color:var(--muted); font-size:13.5px; margin:2px 0 12px; }
.arch-steps{ display:flex; flex-direction:column; align-items:center; gap:4px; padding:12px; margin-bottom:12px;
  border:1px dashed var(--rule); border-radius:var(--radius-sm); }
.arch-steps span{ font-size:13.5px; font-weight:600; text-align:center; }
.arch-steps i{ color:var(--accent); font-style:normal; font-size:12px; }
.arch-card p{ margin:0; color:var(--muted); font-size:14px; line-height:1.5; }

.arch-layers{ margin:0 0 24px; }
.arch-layer{ display:grid; grid-template-columns:110px minmax(0,1fr); gap:16px; align-items:center;
  padding:14px 18px; border:1px solid var(--glass-edge); border-radius:var(--radius); background:var(--glass);
  box-shadow:inset 0 1px 0 var(--glass-top); }
.arch-layer b{ font-family:var(--font-display); font-size:16px; }
.arch-layer .arch-what{ margin-top:3px; }
.arch-many{ display:flex; flex-wrap:wrap; gap:8px; }
.arch-many b{ flex:1 1 130px; padding:7px 11px; border:1px solid var(--rule); border-radius:var(--radius-sm);
  background:var(--paper-2); font-size:13.5px; text-align:center; }
.arch-link-v{ padding:4px 0; }

.arch-stack{ display:grid; gap:14px; grid-template-columns:repeat(auto-fit, minmax(min(300px,100%), 1fr)); margin:0 0 24px; }
.arch-group{ padding:18px 20px; border-radius:var(--radius); border:1px solid var(--glass-edge); }
.arch-group b{ display:block; font-family:var(--font-display); font-size:16.5px; color:var(--accent); margin-bottom:6px; }
.arch-group p{ margin:0 0 10px; font-size:14.5px; line-height:1.55; }
.arch-group ul{ margin:0; padding-left:18px; }
.arch-group li{ font-size:14px; line-height:1.5; color:var(--muted); margin-bottom:6px; }

.arch-rules{ margin:0 0 24px; display:grid; gap:2px; }
.arch-rules > div{ display:grid; grid-template-columns:minmax(0, 260px) minmax(0,1fr); gap:8px 22px;
  padding:13px 0; border-top:1px solid var(--rule-2); }
.arch-rules > div:last-child{ border-bottom:1px solid var(--rule-2); }
.arch-rules dt{ font-weight:600; font-size:15px; }
.arch-rules dd{ margin:0; color:var(--muted); font-size:14.5px; line-height:1.55; }
#оглавление{ display:flex; flex-direction:column; }
@media (max-width:900px){
  .arch-layer{ grid-template-columns:1fr; gap:6px; }
  .arch-rules > div{ grid-template-columns:1fr; gap:4px; padding:12px 0; }
}


/* Первый заход: ни папка, ни задачник не подключены — оба шага-приглашения
   встают рядом, как «duo» на главной (Скиллы/Словарь), а не друг под другом.
   Как только один из шагов подключился, его секция перестаёт быть .pult-invite
   и раскладка сама возвращается в один столбец. */

.pult-muted{ color:var(--muted); font-size:13.5px; }

/* Базовый ярлык-«таблетка»: счётчики колонок, стикеры задачи, состояния.
   Цветные модификаторы (chip-ok/chip-warn/overdue) переопределяют только
   фон, кромку и текст — форма и отступы общие. */
.chip{
  display:inline-flex; align-items:center; gap:4px; padding:3px 10px; border-radius:999px;
  border:1px solid var(--rule); background:var(--paper-2); color:var(--ink-2);
  font-size:11.5px; font-weight:600; line-height:1.5; white-space:nowrap;
}

.input{ width:100%; padding:9px 12px; border:1px solid var(--rule); border-radius:var(--radius-sm);
  background:var(--paper-2); color:var(--ink); font-size:14.5px; font-family:inherit; }
.input:focus{ outline:none; border-color:var(--accent); box-shadow:0 0 0 3px var(--accent-soft); }
.input-sm{ width:auto; padding:6px 10px; font-size:13.5px; }

/* Заголовок и вся панель в одной строке: справа от «Пульта» была пустая
   треть экрана, а инструменты жались во вторую строку. */

/* Строка на своём месте с постоянной высотой: текст хода появляется и
   исчезает, соседние кнопки в шапке списка не двигаются («без скачков»). */

/* Светлая тема: акцентный и янтарный текст на своей же бледной заливке
   не добирает 4.5:1 (замер в 04-design-notes.md) — здесь темнее сам текст,
   заливка чуть плотнее; форма и место — общие с .chip. Только для пометок
   Пульта, остальные вкладки сайта (.tag-edited и т.п.) не трогаем. */

/* Шапка задачника: заголовок, срез и кнопки — три отдельные вещи, между
   ними нужен воздух. Раньше h2 был inline, и «проект «…»» слипалось с
   «срез на …» без единого пробела. */

.pult-check{ display:flex; align-items:center; gap:6px; padding:6px 2px; font-size:13.5px; color:var(--ink-2); cursor:pointer; }

/* Архив — не полоска сбоку (правило семьи против этого), а квадратик тона
   перед заголовком колонки, как у остальных пометок сайта. */

/* Просрочено — таблетка, а не просто цветной текст: заметнее в потоке. */

/* Тот же приём, что у отметок чек-листа сайта (.ck-box) — квадрат со
   скруглением и галочкой на границе, только меньше и нередактируемый. */

/* ─── лайфхаки: лента и редактор ────────────────────────── */
.lh-bar{ display:flex; flex-wrap:wrap; gap:12px; align-items:center; margin:22px 0 6px; }
.lh-bar .search{ flex:1 1 320px; margin:0; }

/* Карточка-свёртка: в ленте видно, сколько хитростей и о чём каждая,
   а разворачивается та, которая нужна. Разметка та же, что у свёрток
   в руководствах (.fold), чтобы приём читался одинаково по всему сайту. */
.lh{ border:1px solid var(--rule-2); border-radius:var(--radius-lg); background:var(--paper-2);
  overflow:hidden; scroll-margin-top:var(--top-gap); }
.lh + .lh{ margin-top:14px; }
.lh[data-open="1"]{ border-color:var(--rule); }
.lh-hd{ width:100%; display:flex; align-items:flex-start; gap:14px; padding:18px 22px; text-align:left;
  background:transparent; border:none; font:inherit; color:inherit; cursor:pointer;
  transition:background var(--dur-short) var(--ease-out); }
.lh-hd:hover{ background:var(--accent-soft); }
.lh-hd .chev{ margin-top:5px; flex-shrink:0; color:var(--muted);
  transition:transform var(--dur-short) var(--ease-out); }
.lh[data-open="1"] .chev{ transform:rotate(90deg); color:var(--accent); }
.lh-hd__txt{ display:flex; flex-direction:column; gap:4px; min-width:0; flex:1; }
.lh-title{ font-family:var(--font-display); font-weight:700; line-height:1.25;
  font-size:clamp(1.1rem, .9vw + .72rem, 1.32rem); }
.lh-sub{ color:var(--muted); font-size:14px; line-height:1.5; }
.lh[data-open="1"] .lh-sub{ display:none; }
.lh-date{ color:var(--muted); font-size:12.5px; white-space:nowrap; margin-top:4px; }
.lh-inner{ padding:0 22px 22px; }
.lh-tags{ display:flex; flex-wrap:wrap; gap:6px; margin:0 0 16px; }
.lh-tags .tag{ cursor:pointer; border:1px solid var(--rule); background:transparent; font:inherit; font-size:12px; }
.lh-tags .tag:hover{ border-color:var(--accent-line); color:var(--accent); }
.lh-body{ max-width:var(--mera); }
.lh-body > *:first-child{ margin-top:0; }
.lh-body > *:last-child{ margin-bottom:0; }
/* Ступени внутри лайфхака — «Проблема», «Решение», «Забрать себе».
   Мелкая заглавная подпись с чертой сверху: видно, где кончается одно и
   начинается другое, и заголовок карточки с ними не путается. */
.lh-body h3{ margin:26px 0 10px; padding-top:16px; border-top:1px solid var(--rule-2);
  font-family:var(--font-mono); font-weight:500; font-size:12.5px; letter-spacing:.08em;
  text-transform:uppercase; color:var(--accent); }
.lh-body > h3:first-child{ margin-top:0; padding-top:0; border-top:none; }
.lh-body img{ display:block; max-width:100%; height:auto; margin:14px 0; border-radius:var(--radius);
  border:1px solid var(--rule-2); background:var(--paper-2); }
.lh-body blockquote{ margin:14px 0; padding:10px 16px; border-left:2px solid var(--accent-line);
  color:var(--ink-2); background:var(--accent-soft); border-radius:0 var(--radius-sm) var(--radius-sm) 0; }
.lh-body code{ font-family:var(--font-mono); font-size:.92em; padding:1px 5px; border-radius:5px; background:var(--paper-3); }
.lh-body pre{ overflow-x:auto; white-space:pre-wrap; word-break:break-word; padding:14px 16px; border-radius:var(--radius); background:var(--paper-2); border:1px solid var(--rule-2); }
.lh-body ul, .lh-body ol{ padding-left:22px; }
.lh-body li{ margin-bottom:6px; }

/* Редактор: панель кнопок и поле ввода. */
.lh-drawer{ width:min(100vw, 660px); }
.lh-tools{ display:flex; flex-wrap:wrap; gap:4px; padding:8px; margin-bottom:-1px;
  border:1px solid var(--rule); border-radius:var(--radius-sm) var(--radius-sm) 0 0; background:var(--paper-2); }
.lh-tool{ min-width:34px; height:32px; padding:0 8px; display:inline-flex; align-items:center; justify-content:center;
  border:1px solid transparent; border-radius:8px; background:transparent; color:var(--ink-2);
  font:600 14px/1 var(--font-body); cursor:pointer;
  transition:color var(--dur-short) var(--ease-out), background var(--dur-short) var(--ease-out); }
.lh-tool:hover{ background:var(--accent-soft); color:var(--accent); }
.lh-tool code{ font-size:12px; background:none; padding:0; }
.lh-editor{ min-height:38vh; max-height:52vh; overflow:auto; padding:14px 16px;
  border:1px solid var(--rule); border-radius:0 0 var(--radius-sm) var(--radius-sm);
  background:var(--paper-2); color:var(--ink); font-size:15px; line-height:1.6; }
.lh-editor:focus{ outline:none; border-color:var(--accent-line); box-shadow:0 0 0 3px var(--focus); }
.lh-editor:empty::before{ content:"Пишите здесь. Выделите текст и нажмите кнопку сверху."; color:var(--muted); }
.lh-editor img{ max-width:100%; height:auto; border-radius:var(--radius-sm); margin:8px 0; display:block; }
.lh-editor blockquote{ margin:10px 0; padding:8px 14px; border-left:2px solid var(--accent-line); color:var(--ink-2); }
.lh-editor code{ font-family:var(--font-mono); font-size:.92em; padding:1px 5px; border-radius:5px; background:var(--paper-3); }
@media (max-width:640px){ .lh-editor{ min-height:30vh; } .lh-bar .search{ flex-basis:100%; } }

/* ─── Пульт: список проектов, направления, удаление ─────── */

/* Отборы: каждая ось — своя строка с подписью слева, у каждой кнопки счёт. */

.pill-count{ font-family:var(--font-mono); font-size:11.5px; font-weight:500; padding:1px 6px; border-radius:999px;
  background:var(--paper-3); color:var(--muted); }
.pill[aria-pressed="true"] .pill-count{ background:var(--accent-fill); color:var(--accent-ink); }
.pill[disabled]{ opacity:.4; cursor:default; }

/* Группы: заголовок направления складывается, число рядом. */

/* Строка проекта: слева статус, потом название, справа размер. */

/* Окна: удаление папки и список направлений. */

/* Шапка Пульта: один заголовок и вкладки разделов. */

/* ─── вход, пользователь в шапке, роли (11.09.2026) ────────────── */
.login-wrap{ min-height:calc(100vh - 140px); display:flex; align-items:center; justify-content:center; padding:32px 20px; }
.login-card{ width:min(100%, 440px); padding:30px; border-radius:var(--radius-lg); border:1px solid var(--glass-edge); }
.login-card h1{ font-size:30px; margin:6px 0 8px; }
.login-card > p{ color:var(--muted); font-size:14.5px; line-height:1.5; margin:0 0 18px; }
.login-card .ed-field{ margin-bottom:14px; }
.login-card h1 + .ed-field{ margin-top:20px; }   /* заголовок → 20 → первое поле */
.login-card .pin-input, .pin-modal .pin-input{ letter-spacing:.3em; font-size:19px; }
/* Ритм формы входа (12.11.2026): поле → 14 → поле → 20 → кнопка → 16 → подсказка. Пустая ошибка места не держит. */
.login-err{ color:var(--err); font-size:14px; line-height:1.4; margin:0; }
.login-err:not(:empty){ margin:-6px 0; }   /* поле → 8 → ошибка → 14 → кнопка (поля схлопываются) */
.login-card .pr-foot{ margin-top:20px; }
.login-card.shake{ animation:тряска .35s var(--ease-out); }
.login-card > .login-help{ margin:16px 0 0; color:var(--muted); font-size:13.5px; line-height:1.45; }
/* пароль, выданный системой: крупно, моноширинно, без межбуквенных разрывов, выделяется целиком одним щелчком */
.pw-box{ margin:0 0 16px; padding:14px 16px; border-radius:var(--radius-sm); border:1px dashed var(--accent-line); background:var(--accent-soft); overflow-wrap:anywhere; }
.pw-code{ display:block; font-family:var(--font-mono, ui-monospace, Consolas, monospace); font-size:21px; line-height:1.35; letter-spacing:.04em; color:var(--ink); user-select:all; -webkit-user-select:all; }
.pin-modal .pw-login{ display:inline; font-size:inherit; font-family:inherit; margin:0; }
.pin-modal .pr-foot{ flex-wrap:wrap; gap:8px; }
/* переключатель групп на «Пользователях» */
.seg{ display:inline-flex; gap:4px; padding:4px; margin:0 0 14px; border-radius:var(--radius-sm); border:1px solid var(--rule-2); background:var(--paper-2); max-width:100%; flex-wrap:wrap; }
.seg button{ font:inherit; font-size:14.5px; font-weight:600; color:var(--muted); background:transparent; border:0; padding:9px 16px; min-height:44px; border-radius:8px; cursor:pointer; }
.seg button:hover{ color:var(--ink); }
.seg button[aria-selected="true"]{ background:var(--accent-soft); color:var(--ink); box-shadow:inset 0 0 0 1px var(--accent-line); }
.seg button:focus-visible{ outline:2px solid var(--accent); outline-offset:1px; }
.seg-n{ margin-left:6px; padding:1px 8px; border-radius:99px; background:var(--rule-2); font-size:12.5px; font-weight:600; color:var(--ink-2); }
.pin-modal .ed-field{ margin-bottom:12px; }
.pin-modal .ed-field input{ text-align:left; letter-spacing:normal; font-size:16px; }
.pin-modal .ed-field .pin-input{ letter-spacing:.3em; }

.foot-version{ color:var(--muted); font-family:var(--font-mono); font-size:12px; letter-spacing:.03em; }

/* подпись автора у материалов */
.byline{ color:var(--muted); font-size:13px; }
.byline b{ color:var(--ink-2); font-weight:600; }
.lh-by{ color:var(--muted); font-size:12.5px; margin-top:2px; }
.adm-note{ margin:0 0 10px; padding:8px 12px; border-radius:var(--radius-sm); border:1px dashed var(--rule); color:var(--muted); font-size:13px; }

/* оформленный текст в статьях и в панели правки */
.rich{ margin:0 0 18px; }
.rich table{ border-collapse:collapse; margin:10px 0 14px; font-size:14.5px; max-width:100%; }
.rich th, .rich td{ border:1px solid var(--rule-2); padding:6px 10px; text-align:left; vertical-align:top; }
.rich th{ background:var(--paper-3); }
.rich img{ max-width:100%; height:auto; border-radius:var(--radius-sm); display:block; margin:10px 0; }
.rich blockquote{ margin:10px 0; padding:8px 14px; border-left:2px solid var(--accent-line); color:var(--ink-2); }
.rich pre{ white-space:pre-wrap; word-break:break-word; }
.adm-drawer .rich-field .lh-editor{ min-height:32vh; max-height:56vh; }
.rich-field .lh-tools{ margin-top:6px; }

/* пользователи */
.users-form{ display:grid; grid-template-columns:repeat(auto-fit, minmax(min(200px,100%), 1fr)); gap:14px 16px; align-items:end; padding:22px 24px; }
.users-form .ed-field{ margin-bottom:0; }
.users-form .ed-field > small{ min-height:20px; }
table.data select, table.data .cell-input{ font:inherit; font-size:14px; padding:6px 9px; border-radius:8px; border:1px solid var(--rule);
  background:var(--paper); color:var(--ink); min-width:120px; max-width:100%; }
table.data .cell-input{ width:100%; min-width:150px; }
table.data select:focus, table.data .cell-input:focus{ outline:none; border-color:var(--accent-line); box-shadow:0 0 0 3px var(--focus); }
.row-off td{ opacity:.6; }
.actions{ display:flex; flex-wrap:wrap; gap:6px; }
.mono-cell{ font-family:var(--font-mono); font-size:12.5px; white-space:nowrap; }
td.empty{ padding:24px; }
@media (max-width:640px){ .user-menu{ right:-8px; } }

/* ─── Пульт: поля правки прямо в ячейках таблицы (11.09.2026) ──────────── */
/* Вид один — таблица, поэтому ячейки работают: направление, статус и
   заказчики меняются на месте, без раскрытия строки. */

/* Ширина под самое длинное значение: иначе «Сельское хозяйство» и «заморожен»
   обрезаются прямо в закрытом списке, а обрезать в семье Core нельзя. */

/* ─── Пользователи: вход по сертификату (14.09.2026) ─────────── */
.steps-list{ margin:0 0 12px 1.2em; padding:0; }
.steps-list li{ margin:4px 0; }
.warn-line{ color:var(--warn); font-size:14px; }
.warn-text{ color:var(--warn); font-weight:600; }
table.data tr.row-trusted td{ background:var(--accent-soft); }

/* ─── Всплывающие слои без прозрачности (14.09.2026, автор: «нечитаемо») ──────
   Меню пользователя, окна, панель правки, подсказки к словам и строка режима
   правки лежат ПОВЕРХ текста: стекло пропускало буквы снизу, и читать было
   нельзя. Здесь фон сплошной; стекло осталось только у блоков внутри страницы. */
html .user-menu, html .user-menu.glass,
html .pin-modal, html .pin-modal.glass,
html .adm-drawer, html .adm-drawer.glass,
html .adm-status, html .adm-status.glass,
html .term-pop{
  background:var(--paper-2);
  -webkit-backdrop-filter:none; backdrop-filter:none;
  border-color:var(--rule);
}
html .pin-wrap{ background:oklch(8% 0.01 200 / .72); }
html[data-theme="light"] .pin-wrap{ background:oklch(30% 0.02 200 / .45); }

/* ─── Задачник: колонки под стикеры доски (16.09.2026) ───────────────────
   Плашка красится цветом самого стикера из YouGile — на доске «Заказчик» и
   «Вид проекта» узнают по цвету, в таблице должно быть так же. Цвет приходит
   строкой в style, здесь только форма и поведение. */
.chip-st{ border-width:1px; border-style:solid; }

/* ─── Сводка для Telegram: полноэкранное окно (16.09.2026) ─────────────── */
html.tg-open{ overflow:hidden; }
.tg-wrap{ position:fixed; inset:0; z-index:120; display:flex; padding:24px;
  background:oklch(8% 0.01 200 / .78); }
html[data-theme="light"] .tg-wrap{ background:oklch(30% 0.02 200 / .45); }
.tg-modal{ margin:auto; width:min(1100px, 100%); height:100%; display:flex; flex-direction:column;
  background:var(--paper-2); border:1px solid var(--rule); border-radius:var(--radius-lg); overflow:hidden; }
.tg-head{ display:flex; justify-content:space-between; align-items:flex-start; gap:16px;
  padding:16px 20px; border-bottom:1px solid var(--rule-2); }
.tg-head b{ display:block; font-family:var(--font-display); font-size:18px; margin-bottom:4px; }
.tg-body{ flex:1; min-height:0; overflow:auto; padding:14px 20px; }
.tg-body .rich-field > small, .tg-body .lh-tool[data-действие="картинка"]{ display:none; }
.tg-body .lh-editor{ min-height:60vh; max-height:none; max-width:none; width:100%; font-size:15px; line-height:1.55; }
.tg-body .lh-editor blockquote{ margin:6px 0 10px; padding:8px 14px; border-left:3px solid var(--accent);
  background:var(--paper-3); border-radius:0 var(--radius-sm) var(--radius-sm) 0; }
.tg-foot{ border-top:1px solid var(--rule-2); padding:12px 20px 16px; display:flex; flex-direction:column; gap:10px; }
.tg-actions, .tg-send{ display:flex; flex-wrap:wrap; gap:10px; align-items:flex-end; }
.tg-actions .mono{ margin-left:auto; align-self:center; }

.tg-foot p{ margin:0; }
.tg-results{ margin:0; padding-left:18px; font-size:14px; }
.tg-results .is-ok b{ color:var(--accent); }
.tg-results .is-bad{ color:var(--warn); }
@media (max-width:640px){
  /* На телефоне прокручивается всё окно целиком: иначе кнопки внизу съедают
     половину экрана и текст сводки зажат в узкой полосе. */
  .tg-wrap{ padding:0; overflow:auto; }
  .tg-modal{ border-radius:0; height:auto; min-height:100%; overflow:visible; }
  .tg-body{ overflow:visible; flex:none; }
  .tg-body .lh-editor{ min-height:55vh; }
  .tg-head{ flex-wrap:wrap; }
  .tg-actions .mono{ margin-left:0; width:100%; }
}

/* ─── Ссылка на проект в таблице Задачника (16.09.2026) ───────────────── */

/* В окне сводки абзацы разделены так же, как в сообщении Телеграма: одна пустая строка. */
.tg-body .lh-editor p{ margin:0 0 1em; }
.tg-body .lh-editor blockquote{ margin:0 0 1em; }

/* Настройка состава сводки стоит первой в ряду действий окна. */
.tg-option{ margin-right:6px; align-self:center; }

/* ─── Настройки бота сводок (16.09.2026) ─────────────────────────────── */
.bot-h3{ font-family:var(--font-display); font-size:17px; margin:26px 0 8px; }
.bot-invite{ display:flex; flex-wrap:wrap; gap:10px; align-items:center; margin:6px 0 10px; }
.bot-invite code{ padding:8px 12px; border:1px solid var(--rule); border-radius:var(--radius-sm);
  background:var(--paper-2); overflow-wrap:anywhere; }
#настройкиБота .tblwrap{ margin:10px 0; }
.bot-closed{ margin-top:12px; }

/* ─── Таблица Задачника: шапка, разлиновка, статусы (16.09.2026) ────────
   Шапка прилипает к верху своей обёртки: обёртка прокручивается и по высоте,
   и вбок. Разлиновка — контрастный пунктир и по строкам, и между колонками. */

/* ─── Суть проекта: три строки и раскрытие под задачей (16.09.2026) ───── */

/* ─── Статус — одна плашка для всех (16.09.2026) ─────────────────────────
   Раньше часть статусов была плашкой, часть — точкой с текстом. Теперь форма
   одна; цвет — колонки доски, зелёные — «Передано заказчику» и «Завершено». */
/* Зелёные объявлены ещё раз после общей плашки — иначе её фон перекрыл бы их. */

/* Раскрытая суть не уезжает за правый край, когда таблица шире экрана:
   текст прилипает к левому краю видимой области и ограничен её шириной. */

/* ─── Верх Задачника: всего и раскладка по статусам (16.09.2026) ───────── */

/* ─── Плитки ровно и цвет у каждого статуса (16.09.2026) ───────────────
   Число всегда наверху плитки, подпись под ним: у кнопки-плитки браузер
   центровал содержимое, и числа стояли на разной высоте. */

/* Кнопка раскрытия сути — одной строкой у левого края ячейки. */

/* ─── Что отправить в Telegram (16.09.2026) ───────────────────────────── */
.tg-what{ display:flex; flex-wrap:wrap; gap:8px 18px; align-items:center; margin:0; padding:0; border:0; }
.tg-what legend{ float:left; margin-right:8px; font-size:13px; font-weight:600; color:var(--ink-2); }
.tg-results-h{ margin:6px 0 2px; font-weight:600; font-size:13.5px; }

/* ─── Статусы цветами YouGile, «Суть» и «Лог» одной ширины (16.09.2026) ─── */


/* ─── Страница «Система Core» (05.11.2026) ──────────────────────────────
   Кнопки не в классе .dl: читателю скачивание открыто, а .dl .btn для него скрыт. */
.core-page{ --mera:none; }      /* без узких колонок (заказчик, 09.11.2026) */
.core-page .steps li{ align-content:start; grid-auto-rows:min-content; }
.core-page .steps{ display:grid; grid-template-columns:repeat(auto-fit, minmax(min(100%, 560px), 1fr)); column-gap:40px; align-content:start; }
.team-h1{ margin:0 0 6px; font-size:clamp(1.5rem, 1.4vw + .9rem, 2.1rem); }
.sys-lead{ margin:0 0 4px; color:var(--ink-2); font-size:16px; }
.core-inside{ list-style:none; margin:0; padding:0; display:grid; gap:12px; grid-template-columns:repeat(3, minmax(0,1fr)); }
.core-inside li{ padding:16px 18px; border:1px solid var(--rule-2); border-radius:var(--radius); background:var(--paper-2); }
.core-inside b{ display:block; margin-bottom:4px; font-size:15.5px; }
.core-inside span{ display:block; color:var(--ink-2); font-size:14.5px; line-height:1.5; text-align:left; hyphens:manual; }
.core-list{ max-width:var(--mera); margin:0; padding-left:22px; }
.core-list li{ margin-bottom:8px; }
.core-page code{ font-family:var(--font-mono); font-size:.9em; padding:1px 6px; border-radius:6px; background:var(--paper-3); overflow-wrap:anywhere; }

.core-ver{ display:grid; gap:24px 36px; grid-template-columns:minmax(0,320px) minmax(0,1fr); align-items:start;
  padding:22px 24px; border:1px solid var(--rule-2); border-radius:var(--radius); background:var(--paper-2); }
.core-ver-state{ grid-column:1 / -1; margin:0; color:var(--muted); }
.core-ver-state.is-err{ color:var(--err); }
.core-ver-label{ display:block; font-family:var(--font-mono); font-size:12px; text-transform:uppercase; letter-spacing:.06em; color:var(--muted); }
.core-ver-num{ display:block; font-family:var(--font-display); font-weight:500; font-size:40px; line-height:1.15; letter-spacing:-.01em; }
.core-ver-meta{ margin:4px 0 16px; color:var(--ink-2); }
.core-ver-btn{ min-height:46px; white-space:normal; }
.core-ver-hash{ margin:12px 0 0; font-size:11.5px; color:var(--muted); line-height:1.5; }
.core-ver-hash code{ display:block; margin-top:2px; background:none; padding:0; font-size:11.5px; word-break:break-all; }
.core-ver-news h3{ margin:0 0 8px; font-size:15px; }
.core-ver-news ul{ margin:0; padding-left:20px; }
.core-ver-news li{ margin-bottom:6px; line-height:1.55; text-align:left; hyphens:manual; }

.core-schema{ border:1px solid var(--rule-2); border-radius:var(--radius); overflow:hidden; background:var(--paper-2); }
.core-schema iframe{ display:block; width:100%; height:420px; border:0; background:var(--paper-2); }
.core-schema iframe:fullscreen{ background:var(--paper); }
.core-schema-act{ margin:12px 0 0; }
.core-schema-hint{ display:none; margin:10px 0 0; color:var(--muted); font-size:13.5px; }
.core-steps{ margin-bottom:22px; }
.core-shot{ max-width:var(--mera); }
.core-shot img{ width:100%; height:auto; border-radius:12px; }
.core-steps li .core-shot{ grid-column:2; margin:12px 0 4px; }
.core-steps li .core-shot figcaption{ font-size:13.5px; color:var(--ink-3, var(--ink-2)); margin-top:6px; }
.core-shot-link{ display:block; cursor:zoom-in; }
@media (max-width:600px){ .core-steps li .core-shot{ grid-column:1 / -1; } }
@media (max-width:980px){ .core-inside{ grid-template-columns:repeat(2, minmax(0,1fr)); } }
@media (max-width:620px){ .core-inside{ grid-template-columns:minmax(0,1fr); } }
@media (max-width:760px){
  .core-ver{ grid-template-columns:minmax(0,1fr); padding:18px; }
  .core-ver-btn{ width:100%; }
  .core-schema-act .btn{ width:100%; }
  .core-schema-hint{ display:block; }
}

/* ─── «Пользователи» на телефоне: строка таблицы — компактная карточка (Р-40) ───────────────────── */
@media (max-width:640px){
  #таблицаГруппа{ border:0; background:transparent; overflow:visible; margin-bottom:12px; }
  #таблицаПользователей, #таблицаПользователей tbody{ display:block; }
  #таблицаПользователей thead{ display:none; }
  #таблицаПользователей tr{ display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:6px 12px; align-items:start;
    padding:10px 12px; margin:0 0 10px; border:1px solid var(--rule-2); border-radius:var(--radius); background:var(--paper-2); }
  #таблицаПользователей td{ display:block; padding:0; border:0; font-size:14px; }
  #таблицаПользователей td[data-label]::before{ content:attr(data-label); display:block; margin-bottom:2px;
    font:500 11px/1.2 var(--font-mono); letter-spacing:.06em; text-transform:uppercase; color:var(--muted); }
  #таблицаПользователей td[data-label="Логин"]{ order:1; }
  #таблицаПользователей td[data-label="ФИО"]{ order:3; grid-column:1 / -1; }
  #таблицаПользователей td[data-label="Должность"]{ order:3; grid-column:1 / -1; }
  #таблицаПользователей td[data-label="Почта"]{ order:4; grid-column:1 / -1; }
  #таблицаПользователей td[data-label="Роль"]{ order:5; }
  #таблицаПользователей td[data-label="Организация"]{ order:6; grid-column:1 / -1; }
  #таблицаПользователей td[data-label="Последний вход"]{ order:7; grid-column:1 / -1; }
  #таблицаПользователей td[data-label="Действия"]{ order:8; grid-column:1 / -1; }
  #таблицаПользователей td.empty{ grid-column:1 / -1; }
  #таблицаПользователей td .cell-input, #таблицаПользователей td select{ width:100%; min-width:0; min-height:40px; }
  #таблицаПользователей .actions{ gap:6px; }
  #таблицаПользователей .actions .btn{ flex:1 1 calc(50% - 6px); min-height:40px; padding:6px 8px; white-space:normal; line-height:1.2; }
  #таблицаПользователей .mono-cell{ white-space:normal; }
}

/* ─── Система Core: схема устройства (06.11.2026) ─── */
.cs{ margin:14px 0 0; display:grid; grid-template-columns:minmax(0,1fr) 170px; gap:16px; align-items:stretch; }
.cs-plugin{ position:relative; padding:30px 22px 22px; border:1.5px dashed var(--accent-line); border-radius:var(--radius); background:var(--paper-2); }
.cs-tag{ position:absolute; top:-12px; left:18px; margin:0; padding:2px 10px; border-radius:999px; background:var(--paper); border:1px solid var(--accent-line);
  font-family:var(--font-mono); font-size:12px; letter-spacing:.04em; color:var(--accent); }
.cs-node{ padding:12px 14px; border:1px solid var(--rule-2); border-radius:12px; background:var(--paper); }
.cs-node b{ display:block; font-family:var(--font-body); font-weight:600; font-size:14.5px; line-height:1.3; overflow-wrap:anywhere; hyphens:auto; }
.cs-node span{ display:block; margin-top:3px; color:var(--ink-2); font-size:13.5px; line-height:1.45; text-align:left; hyphens:manual; }
.cs-node i, .cs-chips i{ font-style:normal; font-family:var(--font-mono); font-size:11.5px; color:var(--muted); }
.cs-top{ display:grid; grid-template-columns:minmax(0,1fr) 34px minmax(0,1.6fr); align-items:center; }
.cs-link{ display:flex; justify-content:center; color:var(--accent); }
.cs-main{ border-color:var(--accent-line); background:var(--accent-soft); }
.cs-main b{ color:var(--accent); }
.cs-props{ list-style:none; margin:8px 0 0; padding:0; display:flex; flex-wrap:wrap; gap:6px; }
.cs-props li{ font-size:12.5px; padding:2px 9px; border-radius:999px; border:1px solid var(--rule-2); color:var(--ink-2); background:var(--paper); }
.cs-h{ margin:22px 0 10px; font-weight:600; font-size:14.5px; }
.cs-h span{ font-weight:400; color:var(--muted); font-size:13px; margin-left:8px; }
.cs-flow{ list-style:none; margin:0; padding:0; display:grid; grid-template-columns:1fr .8fr 1fr 1fr 1fr .8fr 1fr; gap:14px; }
.cs-flow > li{ position:relative; }
.cs-flow > li + li::before{ content:""; position:absolute; left:-12px; top:50%; border:5px solid transparent; border-left-color:var(--muted); border-right:0; transform:translateY(-50%); }
.cs-stop{ align-self:center; padding:9px 10px; border:1px dashed var(--warn); border-radius:12px; text-align:center; }
.cs-stop b{ display:block; font-size:12px; color:var(--warn); white-space:nowrap; }
.cs-stop span{ display:block; font-size:12.5px; color:var(--ink-2); line-height:1.35; }
.cs-chips{ list-style:none; margin:0; padding:0; display:flex; flex-wrap:wrap; gap:8px; }
.cs-chips li{ display:flex; align-items:center; gap:8px; min-height:40px; padding:6px 12px; border:1px solid var(--rule-2); border-radius:999px; background:var(--paper); font-size:14px; }
.cs-base{ list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(4, minmax(0,1fr)); gap:10px; }
.cs-base li{ padding:12px 14px; border-radius:12px; border:1px solid var(--rule-2); border-top:3px solid var(--accent-line); background:var(--paper); }
.cs-base b{ display:block; font-size:14.5px; }
.cs-base span{ display:block; margin-top:3px; color:var(--ink-2); font-size:13.5px; line-height:1.45; text-align:left; hyphens:manual; }
.cs-out{ display:flex; flex-direction:column; justify-content:center; gap:12px; position:relative; }
.cs-out-h{ margin:0; font-size:13px; color:var(--muted); }
.cs-out .cs-node{ border-style:solid; }
.cs figcaption{ grid-column:1 / -1; color:var(--muted); font-size:13.5px; line-height:1.5; max-width:var(--mera); }
@media (max-width:1100px){
  .cs{ grid-template-columns:minmax(0,1fr); }
  .cs-out{ flex-direction:row; }
  .cs-out .cs-node{ flex:1; }
  .cs-flow{ grid-template-columns:repeat(4, minmax(0,1fr)); }
  .cs-flow > li:nth-child(4n+1)::before{ display:none; }
  .cs-base{ grid-template-columns:repeat(2, minmax(0,1fr)); }
}
@media (max-width:620px){
  .cs-plugin{ padding:28px 14px 16px; }
  .cs-top{ grid-template-columns:minmax(0,1fr); }
  .cs-link{ padding:6px 0; }
  .cs-link svg{ transform:rotate(90deg); }
  .cs-flow{ grid-template-columns:minmax(0,1fr); gap:14px; }
  .cs-flow > li + li::before{ display:block; left:50%; top:-12px; border:5px solid transparent; border-top-color:var(--muted); border-bottom:0; transform:translateX(-50%); }
  .cs-flow > li:nth-child(4n+1)::before{ display:block; }
  .cs-flow > li:first-child::before{ display:none; }
  .cs-base{ grid-template-columns:minmax(0,1fr); }
  .cs-out{ flex-direction:column; }
  .cs-h span{ display:block; margin:2px 0 0; }
}
/* фраза для установки Core через Claude */
.core-say{ grid-column:2; margin:12px 0 4px; max-width:var(--mera); display:flex; gap:12px; align-items:center; flex-wrap:wrap;
  padding:14px 16px; border:1px solid var(--accent-line); border-radius:12px; background:var(--accent-soft); }
.core-say p{ margin:0; flex:1 1 320px; font-family:var(--font-mono); font-size:14px; line-height:1.55; }
.core-say .btn{ min-height:44px; }
@media (max-width:600px){ .core-say{ grid-column:1 / -1; } .core-say .btn{ width:100%; } }

/* ─── единая админка (админка.html, Р-52) ───────────────────────────── */
.adm-tabs{ display:flex; margin:0 0 8px; }
.adm-tabs button{ white-space:nowrap; }
.adm-panel{ margin:18px 0 0; }
.adm-panel > h2{ margin-bottom:10px; }
.adm-h2{ margin-top:34px; }
.adm-panel .tblwrap{ margin-top:18px; }
.adm-more{ margin:0 0 20px; align-items:center; }
.lim-rows{ display:grid; grid-template-columns:repeat(auto-fill, minmax(min(300px,100%), 1fr)); gap:10px; margin:0 0 14px; }      /* плитками в ряд, а не строками на всю ширину с дырой посередине */
.lim-row{ display:grid; grid-template-columns:minmax(72px,110px) minmax(0,1fr); gap:10px 12px; align-items:center; padding:14px 16px; border:1px solid var(--rule-2); border-radius:var(--radius); background:var(--paper-2); }
.lim-row > .lim-t{ grid-column:1 / -1; }      /* название плитки — во всю ширину, не столбиком по букве (заказчик, 09.11.2026) */
.lim-row > .actions{ display:flex; flex-wrap:nowrap; gap:8px; justify-content:flex-start; }
.lim-row > .actions .btn{ white-space:nowrap; }
.lim-t label{ display:block; font-weight:600; }
.lim-t small{ display:block; color:var(--muted); font-size:13px; margin-top:2px; overflow-wrap:anywhere; }
.lim-inp{ font:inherit; font-size:15px; min-height:44px; padding:8px 12px; border-radius:8px; border:1px solid var(--rule); background:var(--paper); color:var(--ink); width:100%; }
.lim-inp:focus{ outline:none; border-color:var(--accent-line); box-shadow:0 0 0 3px var(--focus); }
.lim-found{ display:flex; flex-wrap:wrap; gap:8px; margin:0 0 12px; }
.lim-found .btn small{ color:var(--muted); margin-left:6px; }
@media (max-width:640px){
  .lim-row{ grid-template-columns:minmax(64px,96px) minmax(0,1fr); }
  .lim-row .actions{ grid-column:1 / -1; }
}

/* ─── «Править» в шапке страницы (Р-52) ─────────────────────────────── */
.adm-pagebar{ display:flex; justify-content:flex-end; margin:0 auto 6px; padding-top:2px; }
.adm-edit{ gap:8px; }
.adm-edit svg{ flex:none; }
.adm-edit.on{ box-shadow:0 0 0 3px var(--focus); }
.adm-editor{ margin:0 auto 24px; }
.adm-editor .pr-foot{ margin:0 0 16px; flex-wrap:wrap; gap:8px; }

/* ─── страница «Команда» (Р-52) ──────────────────────────────────────── */
.team-grid{ list-style:none; margin:26px 0 0; padding:0; display:grid; grid-template-columns:repeat(auto-fill, minmax(min(340px,100%), 1fr)); gap:18px; }      /* шире 260: почта и телефон должны помещаться в строку */
.team-card{ display:flex; flex-direction:column; gap:6px; padding:22px 22px 20px; border:1px solid var(--rule-2); border-radius:var(--radius-lg); background:var(--paper-2); min-width:0; }
.team-card.adm-blk{ padding:22px 22px 20px; }
.team-card{ position:relative; text-align:left; hyphens:manual; -webkit-hyphens:manual; }
.team-card *{ text-align:left; hyphens:manual; -webkit-hyphens:manual; }      /* карточка — li: общая выключка по ширине для списков здесь рвёт короткие строки */
.team-card .team-bar{ position:absolute; top:10px; right:10px; margin:0; padding:0; border:0; background:none; flex-wrap:nowrap; gap:4px; }
.team-card .team-bar .adm-b{ width:32px; height:32px; min-height:32px; padding:0; border-radius:9px; }
.team-card .team-bar .adm-b[disabled]{ opacity:.35; cursor:default; }
.team-ini{ display:grid; place-items:center; width:64px; height:64px; margin-bottom:6px; border-radius:50%; background:var(--accent-soft);
  border:1px solid var(--accent-line); color:var(--accent); font:700 22px/1 var(--font-display); letter-spacing:.02em; }
.team-name{ margin:0; font-size:1.2rem; line-height:1.25; }
.team-role{ margin:0 0 6px; color:var(--ink-2); font-size:15px; }
.team-contacts{ list-style:none; margin:8px 0 0; padding:12px 0 0; border-top:1px solid var(--rule-2); display:grid; gap:8px; }
.team-contacts li{ display:grid; grid-template-columns:78px minmax(0,1fr); gap:8px; align-items:baseline; font-size:15px; }
.team-contacts li > span{ color:var(--muted); font-size:13px; }
.team-contacts a, .team-contacts b{ font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; min-width:0; }      /* адрес не рвём посередине; совсем длинный — многоточие, полный в подсказке */
.team-none{ margin:8px 0 0; color:var(--muted); font-size:14px; }
.team-ask{ margin:4px 0 0; }
.team-ask > span{ display:block; color:var(--muted); font-size:13px; margin-bottom:2px; }
.team-ask > p{ margin:0; font-size:15px; line-height:1.45; white-space:pre-line; overflow-wrap:anywhere; }
.adm-drawer .ed-field textarea[data-поле="вопросы"]{ min-height:80px; }
.team-add{ display:flex; align-items:center; justify-content:center; min-height:120px; border:1px dashed var(--rule); border-radius:var(--radius-lg); }
.team-wait{ color:var(--muted); padding:24px 0; }
/* ─── страница «Полезные ссылки» (карточки — те же, что у «Команды») ─── */
.links-sec{ margin:28px 0 0; }
.links-topic{ margin:0; font-size:1.25rem; line-height:1.3; }
.links-sec .team-grid{ margin-top:12px; }
.link-kind{ align-self:flex-start; padding:3px 9px; border-radius:999px; background:var(--accent-soft); border:1px solid var(--accent-line); color:var(--accent); font-size:12px; font-weight:600; line-height:1.3; }
.link-card .team-name{ overflow-wrap:anywhere; }
.link-card .team-name a{ color:inherit; text-decoration:none; }
.link-card .team-name a:hover{ color:var(--accent); text-decoration:underline; }
.link-about{ margin:0; color:var(--ink-2); font-size:15px; line-height:1.45; white-space:pre-line; overflow-wrap:anywhere; }
.link-host{ margin-top:auto; padding-top:10px; font-weight:600; font-size:14px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; min-width:0; }
.links-add{ margin-top:18px; min-height:88px; }
#таблицаПользователей td .cell-input{ min-width:0; }
#таблицаПользователей td select{ min-width:0; width:100%; }

/* Скрыт с экрана, но читается экранным диктором: заголовок раздела, который уже подсвечен в боковом меню */
.vh{ position:absolute !important; width:1px; height:1px; margin:-1px; padding:0; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0; }
/* Короткое пояснение в разделе админки — на всю ширину, без выключки */
.adm-hint{ margin:0 0 14px; color:var(--ink-2); font-size:15px; line-height:1.5; max-width:none; text-align:left; }

.lim-search{ max-width:none; margin:0 0 10px; }

/* Фото профиля (аватар): круг с картинкой или инициалами */
.av{ display:inline-grid; place-items:center; width:28px; height:28px; margin-right:10px; border-radius:50%; overflow:hidden; vertical-align:middle;
  background:var(--accent-soft); color:var(--accent); font:700 11px/1 var(--font-body); }
.av img{ width:100%; height:100%; object-fit:cover; display:block; }
.team-photo{ width:64px; height:64px; margin-bottom:6px; border-radius:50%; object-fit:cover; border:1px solid var(--accent-line); background:var(--accent-soft); }
.team-photo-ed{ display:flex; align-items:center; gap:12px; flex-wrap:wrap; margin-bottom:16px; }
.team-photo-ed .team-photo{ margin:0; }
.team-photo-ed .team-ini{ margin:0; }
#таблицаПользователей td[data-label="Логин"]{ white-space:nowrap; }

/* Р-55 · быстродействие (заказчик 09.11.2026: «лагает жутко»). У многих рабочих мест нет видеокарты
   (удалённый рабочий стол, сервер — в браузере «Microsoft Basic Render Driver»): размытие подложки,
   большие тени, маски и неподвижный слой фона браузер считает процессором на каждом кадре прокрутки и ввода.
   Поэтому «стекло» — плотной заливкой, без размытия; декоративная сетка фона убрана; пятна фона — не fixed. */
*, *::before, *::after{ -webkit-backdrop-filter:none !important; backdrop-filter:none !important; }
body::before{ position:absolute !important; inset:0 !important; animation:none !important; }      /* inset:0: при absolute прежние -10% удлиняли страницу пустотой под подвалом (10.11.2026) */
body::after{ display:none !important; }
.btn-main, .btn.primary, .btn-primary{ box-shadow:none !important; }

/* Поле пароля с «глазом» на экране входа */
.pw-wrap{ position:relative; display:block; }
.pw-wrap input{ width:100%; padding-right:46px; }
.pw-eye{ position:absolute; top:50%; right:6px; transform:translateY(-50%); width:36px; height:36px; display:grid; place-items:center;
  border:0; border-radius:8px; background:none; color:var(--muted); cursor:pointer; }
.pw-eye:hover, .pw-eye[aria-pressed="true"]{ color:var(--accent); }
.pw-eye:focus-visible{ outline:2px solid var(--accent); outline-offset:1px; }

/* «Улучшения» в админке (2.10.0): версия для людей, дата, что исправлено */
.impr{ display:grid; gap:10px; padding:20px 24px; margin-bottom:14px; }
.impr-hd{ display:flex; flex-wrap:wrap; align-items:baseline; gap:4px 14px; }
.impr-v{ font-family:var(--font-display); font-size:1.15rem; color:var(--accent); }
.impr-d{ color:var(--muted); font-size:.9rem; font-variant-numeric:tabular-nums; }
.impr-why{ margin:0; color:var(--ink-2); }
.impr-list{ margin:0; padding-left:20px; display:grid; gap:6px; line-height:1.5; }
