/* =====================================================================
   EVA · оформление кабинета оценки персонала (360°, Sociometrix и далее)
   Спокойная светлая тема: много воздуха, мягкие границы, без теней-«пузырей».
   Все цвета вынесены в переменные — позже заказчик сможет переопределить
   свой основной и акцентный цвет, не трогая остальной файл.
   ===================================================================== */

:root {
  --bg:            #F5F6F8;
  --surface:       #FFFFFF;
  --border:        #E6E8EC;
  --border-strong: #D3D7DE;

  --text:          #111827;
  --text-soft:     #4B5563;
  --text-faint:    #6B7280;   /* контраст на белом 4,8:1 (было #8A93A3 — 3,1:1) */

  --brand:         #3B5BA5;
  --brand-hover:   #324E90;
  --brand-soft:    #EEF2FB;
  --brand-text:    #3B5BA5;   /* тот же цвет, но гарантированно читаемый на белом */
  --on-brand:      #FFFFFF;   /* текст поверх основного цвета */

  --accent:        #3B5BA5;   /* второй цвет заказчика: полосы прогресса */
  --accent-soft:   #EEF2FB;
  --on-accent:     #FFFFFF;

  --ok:            #1E7B4F;
  --ok-soft:       #EAF6EF;
  --warn:          #9A6700;
  --warn-soft:     #FDF5E2;
  --err:           #B42318;
  --err-soft:      #FDEEEC;

  /* уровни оценок: проблемная зона → высокий уровень */
  --lv-1: #E4715A;  --lv-1s: #FBE6E1;
  --lv-2: #F2C14E;  --lv-2s: #FDF3D9;
  --lv-3: #9CCB6B;  --lv-3s: #EDF6E3;
  --lv-4: #4FA66B;  --lv-4s: #DDF0E3;
  --neutral:  #8FA8D8; --neutral-s: #E7EDF8;

  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .04), 0 1px 3px rgba(16, 24, 40, .05);
  --shadow-md: 0 4px 16px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .05);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;
}

@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/assets/fonts/inter-cyrillic-400-normal.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap;
  src: url(/assets/fonts/inter-cyrillic-500-normal.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap;
  src: url(/assets/fonts/inter-cyrillic-600-normal.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap;
  src: url(/assets/fonts/inter-cyrillic-700-normal.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/assets/fonts/inter-latin-400-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap;
  src: url(/assets/fonts/inter-latin-500-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap;
  src: url(/assets/fonts/inter-latin-600-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap;
  src: url(/assets/fonts/inter-latin-700-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

* { box-sizing: border-box; }

html, body { height: 100%; }

/*
 * Место под полосу прокрутки резервируем всегда. Иначе, когда содержимое
 * перестает помещаться в экран — раскрыли раздел, развернули таблицу —
 * полоса появляется, отъедает ширину, и вся страница дергается влево.
 * scrollbar-gutter умеют свежие браузеры; для остальных просто держим
 * полосу видимой всегда.
 */
html { overflow-y: scroll; }
@supports (scrollbar-gutter: stable) {
  html { overflow-y: auto; scrollbar-gutter: stable; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand-text); text-decoration: none; }
a:hover { text-decoration: underline; }

h1 { font-size: 24px; line-height: 1.25; margin: 0 0 6px; letter-spacing: -0.2px; }
h2 { font-size: 17px; margin: 0 0 12px; }
p  { margin: 0 0 12px; }

/* -------------------------------------------------- боковое меню */
.side {
  position: fixed; left: 0; top: 0; bottom: 0; width: 236px;
  background: var(--surface); border-right: 1px solid var(--border);
  display: flex; flex-direction: column; padding: 20px 14px 16px; z-index: 20;
}
.side__brand {
  display: flex; align-items: center; gap: 10px; color: var(--text);
  padding: 4px 10px 22px;
}
.side__brand:hover { text-decoration: none; }
.side__nav { display: flex; flex-direction: column; gap: 2px; }
.side__nav a {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 12px; border-radius: 10px;
  color: var(--text-soft); font-size: 14.5px; line-height: 1.2;
}
.side__nav a:hover { background: var(--bg); color: var(--text); text-decoration: none; }
.side__nav a.on { background: var(--brand-soft); color: var(--brand-text); font-weight: 500; }
.side__nav svg { width: 18px; height: 18px; flex: 0 0 auto; }
.side__foot {
  margin-top: auto; padding: 14px 12px 0; border-top: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 10px; align-items: flex-start;
}
.side__foot .who { text-align: left; }

/* ---------------------------------------------------------------- шапка */
.topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 10;
}
.topbar__in {
  max-width: 1080px; margin: 0 auto; padding: 0 24px;
  height: 60px; display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand__mark {
  width: 32px; height: 32px; border-radius: var(--r-sm);
  background: var(--brand); color: var(--on-brand);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; letter-spacing: -0.3px;
}
.brand__name { font-weight: 600; font-size: 15px; }

.topbar__right { display: flex; align-items: center; gap: 16px; }
.who { display: flex; flex-direction: column; text-align: right; line-height: 1.3; }
.who__name { font-size: 14px; font-weight: 500; }
.who__sub  { font-size: 12px; color: var(--text-faint); }

.nav { display: flex; gap: 4px; margin-left: 28px; flex: 1; }
.nav a {
  padding: 7px 12px; border-radius: var(--r-sm);
  color: var(--text-soft); font-size: 14px; font-weight: 500;
}
.nav a:hover { background: var(--bg); text-decoration: none; color: var(--text); }
.nav a.on { background: var(--brand-soft); color: var(--brand-text); }

/* ---------------------------------------------------------------- каркас */
.page   { max-width: 1080px; margin: 0 auto; padding: 32px 24px 64px; }
body.app > .topbar { display: none; }
body.app > main.page { margin-left: 236px; max-width: none; padding-left: 34px; padding-right: 34px; }
body.app > main.page > * { max-width: 1080px; }
.center {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 32px 20px;
}

.head { margin-bottom: 24px; }
.head p { color: var(--text-soft); margin: 0; }

/* ---------------------------------------------------------------- карточки */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
}
.card + .card { margin-top: 16px; }

.auth {
  width: 100%; max-width: 400px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px;
}
.auth__logo {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--brand); color: var(--on-brand);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px; margin-bottom: 20px;
}
.auth__sub { color: var(--text-soft); margin-bottom: 24px; }

/* ---------------------------------------------------------------- формы */
.field { margin-bottom: 16px; }
.field label {
  display: block; font-size: 13px; font-weight: 500;
  color: var(--text-soft); margin-bottom: 6px;
}
.input {
  width: 100%; padding: 10px 12px;
  border: 1px solid var(--border-strong); border-radius: var(--r-sm);
  background: #fff; color: var(--text);
  font: inherit; transition: border-color .12s, box-shadow .12s;
}
.input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}
.hint { font-size: 12px; color: var(--text-faint); margin-top: 6px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 18px; border: 1px solid transparent; border-radius: var(--r-sm);
  font: inherit; font-weight: 500; cursor: pointer;
  transition: background .12s, border-color .12s;
}
.btn--primary { background: var(--brand); color: var(--on-brand); }
.btn--primary:hover { background: var(--brand-hover); text-decoration: none; }
.btn--ghost {
  background: transparent; color: var(--text-soft);
  border-color: var(--border-strong);
}
.btn--ghost:hover { background: var(--bg); text-decoration: none; }

/* Разрушающее действие должно выглядеть иначе, чем «Скопировать».
   Раньше «Удалить черновик», «Закрыть доступ» и «Скрыть» были
   неотличимы от безобидных кнопок — рука попадала не туда. */
.btn--danger {
  background: transparent; color: var(--err);
  border-color: #EBC4C4;
}
.btn--danger:hover { background: var(--err-soft); text-decoration: none; }
.btn--sm { padding: 6px 12px; font-size: 13px; }
.btn--wide { width: 100%; }
.btn:focus-visible, .nav a:focus-visible, .crumb a:focus-visible,
.table a:focus-visible, .brand:focus-visible {
  outline: 2px solid var(--brand); outline-offset: 2px; border-radius: var(--r-sm);
}

/* ---------------------------------------------------------------- плашки */
.notice {
  padding: 11px 14px; border-radius: var(--r-sm);
  font-size: 14px; margin-bottom: 18px;
  border: 1px solid transparent;
}
.notice--error { background: var(--err-soft);  color: var(--err);  border-color: #F3CFCF; }
.notice--ok    { background: var(--ok-soft);   color: var(--ok);   border-color: #C8E6D6; }
.notice--info  { background: var(--brand-soft);color: var(--brand-text);
                 border-color: var(--brand-soft); }
.notice--warn  { background: var(--warn-soft); color: var(--warn); border-color: #EFDCB4; }

/* ---------------------------------------------------------------- плитки */
.tiles {
  display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  margin-bottom: 24px;
}
.tile {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 16px 18px;
}
.tile__num {
  font-size: 26px; font-weight: 600; letter-spacing: -0.5px; line-height: 1.1;
}
.tile__cap { font-size: 13px; color: var(--text-soft); margin-top: 2px; }

/* ---------------------------------------------------------------- таблицы */
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th {
  text-align: left; font-weight: 600; font-size: 12px; line-height: 1.25;
  color: var(--text-faint); padding: 0 12px 10px; border-bottom: 1px solid var(--border);  /* общий вид заголовков таблиц: как в Sociometrix */
}
.table td { padding: 11px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.table tr:last-child td { border-bottom: none; }
.table .num { color: var(--text-faint); width: 44px; }

.tag {
  display: inline-block; padding: 2px 8px; border-radius: 20px;
  font-size: 12px; background: var(--bg); color: var(--text-soft);
  border: 1px solid var(--border);
}
.tag--brand { background: var(--brand-soft); color: var(--brand-text);
              border-color: var(--brand-soft); }

.muted { color: var(--text-soft); }
.small { font-size: 13px; }

.footnote {
  margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--border);
  font-size: 13px; color: var(--text-faint);
}

/* ---------------------------------------------------------------- шаги */
.steps {
  display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap;
}
.steps__i {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 16px 9px 10px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text-soft); font-size: 14px; font-weight: 500;
}
.steps__i:hover { text-decoration: none; border-color: var(--border-strong); }
.steps__n {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--bg); color: var(--text-faint);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600;
}
.steps__i.done { color: var(--text); }
.steps__i.done .steps__n { background: var(--ok-soft); color: var(--ok); }
.steps__i.on {
  background: var(--brand); border-color: var(--brand); color: var(--on-brand);
}
.steps__i.on .steps__n { background: rgba(255,255,255,.22); color: var(--on-brand); }
/* Шаг, до которого еще рано: виден, но не кликается. */
.steps__i--off { opacity: .5; cursor: default; }
.steps__i--off:hover { border-color: var(--border); }

/* Низ мастера: «Назад» и «Дальше» рядом с подсказкой, чего не хватает. */
.wizbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap;
  margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--border);
}
.wizbar .mini { color: var(--text-faint); }

/* -------------------------------------------------------------- опрос */
.survey { max-width: 720px; margin: 0 auto; padding: 28px 20px 72px; }

/* Полоса хода — вверху и приклеена: на телефоне внизу ее просто
   не видно, а человеку важно понимать, сколько еще осталось. */
.progress {
  position: sticky; top: 0; z-index: 5;
  background: var(--bg); padding: 12px 0 10px; margin-bottom: 14px;
}
.shead { margin-bottom: 20px; }
.shead__who { font-size: 13px; color: var(--text-faint); }
.shead h1 { font-size: 22px; margin: 4px 0 0; }

.privacy {
  display: flex; gap: 10px; align-items: flex-start;
  background: var(--brand-soft); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 12px 14px;
  font-size: 13px; color: var(--brand-text); margin-bottom: 20px;
}
.privacy strong { display: block; }
.privacy b { font-weight: 600; }

/* Оценка руководителя видна отдельной строкой — плашка про это должна
   отличаться от «ваш ответ анонимен», иначе ее прочитают по привычке
   и не заметят разницы. */
.privacy--open {
  background: var(--warn-soft); border-color: #EFDCB4; color: var(--warn);
}

.bar { height: 6px; background: var(--border); border-radius: 999px; overflow: hidden; }
.bar__fill { height: 100%; background: var(--accent); border-radius: 999px; transition: width .2s; }
.bar__cap { font-size: 12px; color: var(--text-faint); margin-top: 8px; }

.q { padding: 20px 0; border-bottom: 1px solid var(--border); }
.q:last-of-type { border-bottom: none; }
.q--miss {
  background: var(--err-soft);
  border-left: 3px solid var(--err);
  margin: 0 -14px; padding-left: 14px; padding-right: 14px;
  border-radius: var(--r-sm);
}
.q__miss {
  font-size: 12px; font-weight: 600; color: var(--err);
  margin: -8px 0 10px 0;
}
.q--miss .scale label { border-color: #E9B9B9; }
.q__text { font-size: 15px; margin-bottom: 14px; line-height: 1.45; }
.q__num { color: var(--text-faint); margin-right: 6px; }

.scale { display: flex; gap: 8px; flex-wrap: wrap; }
.scale label {
  flex: 1 1 0; min-width: 104px;
  border: 1px solid var(--border-strong); border-radius: var(--r-sm);
  padding: 9px 10px; cursor: pointer; text-align: center;
  font-size: 13px; line-height: 1.3; color: var(--text-soft);
  transition: border-color .12s, background .12s, color .12s;
}
.scale label:hover { border-color: var(--brand); }
.scale input {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  clip-path: inset(50%); overflow: hidden;
}
.scale label:has(input:focus-visible) {
  outline: 2px solid var(--brand); outline-offset: 2px;
}
.scale input:checked + span { color: var(--on-brand); }
.scale label:has(input:checked) {
  background: var(--brand); border-color: var(--brand); color: var(--on-brand);
}
.scale .na {
  flex: 1 1 100%; border-style: dashed; color: var(--text-faint);
  margin-top: 2px;
}
@media (max-width: 620px) {
  /* На телефоне пять вариантов в ряд не помещаются — ставим их
     столбиком по порядку шкалы, а не зигзагом в два столбца. */
  .scale { flex-direction: column; }
  .scale label { flex: 1 1 auto; text-align: left; }
}
.scale label.na:has(input:checked) { background: var(--text-faint); border-color: var(--text-faint); }

.compdef {
  background: var(--bg); border-radius: var(--r-md);
  padding: 14px 16px; margin-bottom: 4px;
  font-size: 14px; color: var(--text-soft);
}

.slist { list-style: none; padding: 0; margin: 0; }
.slist li {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 14px 0; border-bottom: 1px solid var(--border);
}
.slist li:last-child { border-bottom: none; }
.slist .name { font-weight: 500; }

/* ------------------------------------------------------------- отчет */
.hero { display: flex; gap: 32px; align-items: flex-start; flex-wrap: wrap; }
.hero__num { font-size: 46px; font-weight: 600; letter-spacing: -1px; line-height: 1; }
.hero__cap { font-size: 13px; color: var(--text-soft); margin-top: 6px; }
.hero__side { flex: 1 1 260px; }
.hero__lvl { font-size: 17px; font-weight: 600; color: var(--brand-text); }

.legend { display: flex; gap: 16px; flex-wrap: wrap; margin: 16px 0 22px; }
.legend__i { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--text-soft); }
.legend__k { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }

.cblock { padding: 16px 0; border-top: 1px solid var(--border); }
.cblock__h { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 12px; }
.cblock__score { font-size: 19px; font-weight: 600; }

.gbar { display: flex; align-items: center; gap: 10px; margin-bottom: 7px; }
.gbar__k { width: 8px; height: 8px; border-radius: 2px; flex: 0 0 auto; }
.gbar__l { flex: 0 0 118px; font-size: 13px; color: var(--text-soft); }
.gbar__t { flex: 1 1 auto; height: 10px; background: var(--bg);
           border-radius: 999px; overflow: hidden; }
.gbar__f { display: block; height: 100%; border-radius: 999px; }
.gbar__v { flex: 0 0 46px; text-align: right; font-size: 13px;
           font-variant-numeric: tabular-nums; }

.warn-text { color: var(--warn); }

.pick { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 16px; }
.pick__n { flex: 0 0 auto; font-size: 17px; font-weight: 600;
           font-variant-numeric: tabular-nums; min-width: 44px; }

.quote {
  border-left: 3px solid var(--border-strong); padding: 4px 0 4px 14px;
  margin-bottom: 12px; color: var(--text); font-size: 14px;
}

/* =====================================================================
   ПЕЧАТЬ И СОХРАНЕНИЕ В PDF
   Печатают у нас ровно одно — личный отчет. Он уходит человеку на руки
   и на встречу обратной связи, поэтому лист должен выглядеть документом,
   а не распечаткой сайта: без меню, без вкладок, с шапкой, кто это
   и по какому проекту.
   ===================================================================== */
@page {
  size: A4;
  margin: 16mm 14mm 16mm;
}

@media print {
  .no-print, .topbar, .footnote, .side, .tabs { display: none !important; }
  body { background: #fff; }
  body.app > main.page { margin-left: 0; padding: 0; max-width: none; }
  body.app > main.page > * { max-width: none; }
  .page { max-width: none; padding: 0; }

  /*
   * Карточку разрешаем разрывать: она бывает на полторы страницы,
   * и запрет разрыва просто выбрасывал ее на следующий лист, оставляя
   * половину страницы пустой. А вот внутренние блоки — компетенцию,
   * строку профиля, абзац комментария — рвать нельзя.
   */
  .card { border: none; padding: 0 0 14px; break-inside: auto; }
  .card + .card { margin-top: 0; }
  .cblock, .crow, .vh, .quote, .hero, .tile, .sched li,
  .pick, .heat-wrap { break-inside: avoid; }

  /* Подпись под таблицей — часть таблицы, а не отдельный абзац:
     в отрыве от нее она бессмысленна. */
  table + .hint, .heat-wrap + .hint { break-before: avoid; }
  table tr { break-inside: avoid; }

  /* Заголовок в конце листа без своего раздела — самая частая
     некрасивость при печати. */
  h1, h2, h3 { break-after: avoid; }

  /* Шапка документа — только на бумаге. */
  .doc-head { display: block !important; }
  .doc-head__logo { max-height: 42px; margin-bottom: 10px; }
  .doc-head h1 { font-size: 21px; margin: 0 0 2px; }
  .doc-head__sub { color: #444; font-size: 12.5px; line-height: 1.5; }
  .doc-head__rule { border: 0; border-top: 1px solid #CFD6E0; margin: 12px 0 16px; }

  /* Ссылки в отчете на бумаге — просто текст. */
  a { color: inherit; text-decoration: none; }

  /* Комментарии — самая длинная часть, ей лучше начаться с чистого листа. */
  .break-page { break-before: page; }

  /* Стрелка «раскрыть» на бумаге — обещание нажатия, которого нет. */
  .fold > summary::after, .cfold > summary::after,
  details.drill > summary::after { display: none !important; }
  .fold > summary, .cfold > summary { cursor: default; background: none; }
}

/* --------------------------------------------------------- прочие мелочи */
.row { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.row .field { margin-bottom: 0; flex: 1 1 200px; }
.grid2 { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.stack > * + * { margin-top: 16px; }
textarea.input { min-height: 180px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
                 font-size: 13px; line-height: 1.5; resize: vertical; }
.empty { text-align: center; padding: 36px 20px; color: var(--text-faint); }
.crumb { font-size: 13px; color: var(--text-soft); margin-bottom: 6px;
          overflow-wrap: anywhere; }
.crumb a { color: var(--text-soft); text-decoration: underline;
           text-decoration-color: var(--border-strong); text-underline-offset: 3px; }
.crumb a:hover { color: var(--brand-text); text-decoration-color: currentColor; }
.crumb b { font-weight: 500; color: var(--text); }
.bad  { background: var(--err-soft); }
.warnrow { background: var(--warn-soft); }
.mini { font-size: 12px; color: var(--text-faint); }
.right { text-align: right; }

/* ------------------------------------------------------------ телефон */
.nav--mobile { display: none; }

@media (max-width: 1199px) {
  /* На узком экране (планшет, небольшой ноутбук) боковое меню занимает слишком много места —
     возвращаем шапку сверху и строку разделов под ней. */
  .side { display: none; }
  body.app > .topbar { display: block; }
  body.app > main.page { margin-left: 0; padding-left: 20px; padding-right: 20px; }
}

@media (max-width: 760px) {
  .nav { display: none; }
  .nav--mobile {
    display: flex; gap: 6px; margin: 0; padding: 0 16px 10px;
    overflow-x: auto; -webkit-overflow-scrolling: touch;
  }
  .nav--mobile a { white-space: nowrap; padding: 9px 14px; }

  .topbar__in { padding-bottom: 4px; }
  .grid2 { grid-template-columns: 1fr; }
  .topbar__in, .page { padding-left: 16px; padding-right: 16px; }
  .who { display: none; }
  .auth { padding: 24px; }

  /* Широкие таблицы прокручиваются сами, а не тянут вбок всю страницу. */
  .table { display: block; overflow-x: auto; white-space: normal; }

  .head.between, .between { flex-wrap: wrap; }
  .row-btns { width: 100%; }
  .row-btns .btn { flex: 1 1 auto; text-align: center; }

  h1 { font-size: 21px; }
  .hero__num { font-size: 38px; }
  .tiles { grid-template-columns: 1fr 1fr; }

  /* Пальцем нужно попадать без прицеливания. */
  .btn { padding: 11px 16px; }
  .btn--sm { padding: 9px 13px; }
  .scale label { padding: 12px 10px; }
}

@media (max-width: 360px) {
  .tiles { grid-template-columns: 1fr; }
}

/* ------------------------------------------------- командный дашборд */
.row-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.filters  { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.filters label { font-size: 13px; color: var(--text-soft); }
.filters .input { width: auto; min-width: 220px; }
.h3 { font-size: 14px; margin: 0 0 10px; }

/* строка компетенции: среднее и разброс по команде */
.crow { display: flex; align-items: center; gap: 16px; padding: 12px 0;
        border-top: 1px solid var(--border); }
.crow:first-of-type { border-top: none; }
.crow__name { flex: 0 0 300px; font-size: 14px; }
.crow__track { position: relative; flex: 1 1 auto; height: 14px;
               background: var(--bg); border-radius: 999px; }
.crow__range { position: absolute; top: 0; bottom: 0; background: #D8E1F0;
               border-radius: 999px; }
.crow__fill  { position: absolute; left: 0; top: 0; bottom: 0;
               background: var(--accent); border-radius: 999px; }
.crow__self  { position: absolute; top: -4px; bottom: -4px; width: 2px;
               background: #E87BA4; border-radius: 2px; }
.crow__val   { flex: 0 0 46px; text-align: right; font-weight: 600;
               font-variant-numeric: tabular-nums; }

/* тепловая карта */
.heat-wrap { overflow-x: auto; }
.heat { font-size: 13px; }
.heat th, .heat td { border-bottom: 1px solid var(--border); }
.heat__who { min-width: 220px; }
.heat__c   { text-align: center; white-space: nowrap;
             font-variant-numeric: tabular-nums; }
.heat thead th.heat__c { text-align: center; }
.heat td.heat__c { padding: 8px 10px; }

/* уровни развития: 1 — начальный, 4 — мастерство */
.lv--1 { background: #FBE9E9; color: #A32020; }
.lv--2 { background: #FDF3E0; color: #8A6100; }
.lv--3 { background: #E8F4EC; color: #1F6B45; }
.lv--4 { background: #CDE9D8; color: #14532F; }
.lv--none { color: var(--text-faint); }
.legend__k.lv { border: 1px solid var(--border); }

@media print {
  .heat-wrap { overflow: visible; }
  .heat tr, .crow { break-inside: avoid; }
}

@media (max-width: 720px) {
  .crow { flex-wrap: wrap; }
  .crow__name { flex: 1 1 100%; }
  .crow__track { flex: 1 1 60%; }
}

/* Тег — это подпись, а не кнопка: убираем рамку, чтобы на него
   не пытались нажимать. */
.tag { border-color: transparent; }
.tag--brand { border-color: transparent; }

.chip-link {
  display: inline-block; font-size: 13px; padding: 6px 13px;
  border-radius: 999px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text-soft);
}
.chip-link:hover { text-decoration: none; border-color: var(--border-strong); }
.chip-link.on { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }

/* ------------------------------------ живой счетчик и автосохранение */
.livebar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 12px 16px; margin-bottom: 16px;
  font-size: 13px; color: var(--text-soft);
}
.livebar__n { font-size: 20px; font-weight: 600; color: var(--text);
              font-variant-numeric: tabular-nums; }
.livebar__state { font-size: 12px; color: var(--text-faint); min-width: 92px; }
.livebar__state.is-ok  { color: var(--ok); }
.livebar__state.is-bad { color: var(--err); }
.livebar .btn { margin-left: auto; }
.livebar .btn + .btn { margin-left: 0; }

.rowlabel { cursor: pointer; display: inline-block; }
.rowlabel:hover { text-decoration: underline; text-underline-offset: 3px; }

.linkbox { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.linkbox code { font-size: 12px; color: var(--text-faint); }
.btn.is-ok { color: var(--ok); border-color: #C8E6D6; }

/* ------------------------------------------- карточка человека */
.person { display: flex; align-items: center; gap: 18px; margin-bottom: 24px; }
.ava {
  flex: 0 0 auto; width: 58px; height: 58px; border-radius: 50%;
  background: var(--brand-soft); color: var(--brand-text);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 600; letter-spacing: .02em;
}

/* --------------------------------------------- «требует внимания» */
.todo { display: flex; flex-direction: column; gap: 10px; }
.todo__i {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  flex-wrap: wrap; padding: 14px 16px; border-radius: var(--r-md);
  border: 1px solid var(--border); background: var(--bg);
  border-left-width: 3px;
}
.todo__i--warn { border-left-color: var(--warn); background: var(--warn-soft); }
.todo__i--info { border-left-color: var(--brand); }
.todo__t { font-weight: 500; margin-bottom: 2px; }

.period { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
          padding-top: 6px; }

/* ------------------------------------ список перегруженных людей */
.loadlist { display: flex; flex-direction: column; gap: 8px; margin: 0 0 20px; }
.loadlist__i { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }

/* ------------------------------------- разделы внутри проекта */
.tabs {
  display: flex; gap: 4px; flex-wrap: wrap;
  border-bottom: 1px solid var(--border); margin: 0 0 22px;
}
.tabs__i {
  padding: 10px 16px; font-size: 14.5px; color: var(--text-soft);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tabs__i:hover { color: var(--text); text-decoration: none; }
.tabs__i.on { color: var(--brand-text); border-bottom-color: var(--brand); font-weight: 500; }
.tabs__i.is-off { color: var(--text-faint); cursor: default; }
.tabs__i:focus-visible { outline: 2px solid var(--brand); outline-offset: -4px; border-radius: 6px; }

/* ------------------------- полоса «сколько времени займет анкета» */
.gauge {
  position: relative; height: 8px; background: var(--bg);
  border: 1px solid var(--border); border-radius: 999px;
  margin: 0 0 12px; overflow: hidden;
}
.gauge__fill { height: 100%; border-radius: 999px; transition: width .2s, background .2s; }
.gauge[data-level="ok"]   .gauge__fill { background: var(--ok); }
.gauge[data-level="warn"] .gauge__fill { background: var(--warn); }
.gauge[data-level="bad"]  .gauge__fill { background: var(--err); }
.gauge__mark {
  position: absolute; top: -2px; bottom: -2px; width: 2px;
  background: var(--border-strong);
}
.gauge__mark--hard { background: var(--err); opacity: .55; }
.cfold__def { display: none; }

/* ------------------------------- компетенция с раскрытием вопросов */
.cfold > summary {
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
  cursor: pointer; list-style: none; padding: 4px 0;
}
.cfold > summary::-webkit-details-marker { display: none; }
.cfold > summary::before {
  content: ""; flex: 0 0 auto; width: 7px; height: 7px; margin-right: 2px;
  border-right: 2px solid var(--text-faint); border-bottom: 2px solid var(--text-faint);
  transform: rotate(-45deg); transition: transform .15s;
}
.cfold[open] > summary::before { transform: rotate(45deg) translate(-2px, -2px); }
.cfold > summary:hover .cfold__name { color: var(--brand-text); }
.cfold > summary:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.cfold__name { font-weight: 500; }
.cfold__n { margin-left: auto; font-size: 12px; color: var(--text-faint); white-space: nowrap; }
.cfold__body { padding: 10px 0 6px 17px; }
.ind { margin: 8px 0 0; padding-left: 20px; font-size: 14px; color: var(--text-soft); }
.ind li { margin-bottom: 7px; }
.bank__block { white-space: nowrap; vertical-align: top; }
.bank td { vertical-align: top; }

/* --------------------------------------- сворачиваемые разделы */
.fold { padding: 0; }
.fold > summary {
  display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
  padding: 18px 22px; cursor: pointer; list-style: none;
  border-radius: var(--r-lg);
}
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary::after {
  content: ""; margin-left: auto; width: 9px; height: 9px; flex: 0 0 auto;
  border-right: 2px solid var(--text-faint); border-bottom: 2px solid var(--text-faint);
  transform: rotate(45deg) translate(-2px, -2px); transition: transform .15s;
}
.fold[open] > summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.fold > summary:hover { background: var(--bg); }
.fold > summary:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
.fold__title { font-size: 17px; font-weight: 600; }
.fold__note  { font-size: 13px; color: var(--text-faint); }
.fold__body  { padding: 0 22px 22px; border-top: 1px solid var(--border); padding-top: 18px; }
.fold[open] > summary { border-radius: var(--r-lg) var(--r-lg) 0 0; }

/* --------------------------------------------- статусы и индикация */
.st {
  display: inline-block; vertical-align: middle;
  font-size: 12px; font-weight: 500; line-height: 1;
  padding: 5px 10px; border-radius: 999px; border: 1px solid transparent;
  white-space: nowrap;
}
.st--draft  { background: var(--bg);        color: var(--text-soft); border-color: var(--border); }
.st--run    { background: var(--ok-soft);   color: var(--ok);        border-color: #C8E6D6; }
.st--closed { background: var(--brand-soft);color: var(--brand-text);border-color: var(--border); }
.st--over   { background: var(--warn-soft); color: var(--warn);      border-color: #EEDDB6; }

/* Выделяем то, что требует внимания, а не то, где все хорошо. */
.pill { display:inline-block; font-size:12px; padding:4px 9px; border-radius:999px;
        border:1px solid var(--border); background:var(--bg); color:var(--text-soft);
        white-space:nowrap; }
.pill--ok   { background: var(--ok-soft);   color: var(--ok);   border-color: #C8E6D6; }
.pill--wait { background: var(--warn-soft); color: var(--warn); border-color: #EEDDB6; }
.pill--none { background: var(--err-soft);  color: var(--err);  border-color: #F3CFCF; }

/* ------------------------------------------------- логотип заказчика */
.brand__logo { max-height: 30px; max-width: 190px; display: block; }
.toplogo {
  background: var(--surface); border-bottom: 1px solid var(--border);
  padding: 14px 20px; text-align: center;
}
.toplogo img { max-height: 40px; max-width: 220px; display: inline-block; }

.swatch {
  display: inline-block; width: 22px; height: 22px; border-radius: 6px;
  border: 1px solid var(--border-strong); vertical-align: middle;
}
.logo-preview {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 14px; border: 1px solid var(--border); border-radius: var(--r-md);
  background: var(--bg); margin-bottom: 16px;
}
.logo-preview img { max-height: 56px; max-width: 260px; }
input[type=color].input { padding: 4px; height: 42px; min-width: 64px; width: 64px; }
.colorrow { display: flex; gap: 10px; align-items: center; }
.colorrow .input[type=text] { flex: 1 1 auto; }

/* ------------------------------- таблицы как карточки на телефоне */
@media (max-width: 620px) {
  /*
   * Таблица из шести колонок на экране в 390 точек нечитаема даже
   * с прокруткой: названия складываются в столбики по одному слову.
   * Поэтому каждая строка становится карточкой, а заголовки колонок
   * переезжают в подписи слева от значения.
   */
  .table--cards { display: block; overflow: visible; }
  .table--cards thead { display: none; }
  .table--cards tbody, .table--cards tr, .table--cards td { display: block; width: 100%; }
  .table--cards tr {
    border: 1px solid var(--border); border-radius: var(--r-md);
    padding: 14px 16px; margin-bottom: 10px; background: var(--surface);
  }
  .table--cards tr:last-child { margin-bottom: 0; }
  .table--cards td {
    border: none; padding: 5px 0;
    display: flex; gap: 14px; align-items: baseline; justify-content: space-between;
  }
  .table--cards td::before {
    content: attr(data-label); flex: 0 0 auto;
    color: var(--text-faint); font-size: 12px; line-height: 1.5;
  }
  .table--cards td:not([data-label]) { justify-content: flex-start; }
  .table--cards td:first-child {
    font-size: 16px; font-weight: 500; padding-bottom: 8px;
    border-bottom: 1px solid var(--border); margin-bottom: 6px;
  }
  .table--cards td:first-child::before { display: none; }
  .table--cards td.right { justify-content: flex-start; }
  .table--cards td.right .btn { width: 100%; text-align: center; }
  .table--cards td.num { display: none; }

  /*
   * Ячейка, в которой не одно значение, а объяснение в несколько строк.
   * В обычной карточной ячейке подпись и значение стоят в строку, и
   * длинному тексту достается полоска в тридцать пикселей у правого
   * края — по слову в строку, а последние буквы уезжают за борт.
   * Здесь подпись сверху, текст под ней во всю ширину.
   */
  .table--cards td.cell-wide {
    display: block; text-align: left;
  }
  .table--cards td.cell-wide::before { display: block; margin-bottom: 4px; }
}

/* ------------------------------------ редактор писем: правка и образец */
.cols2 {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 26px; align-items: start;
}
@media (max-width: 900px) { .cols2 { grid-template-columns: 1fr; gap: 20px; } }

/* Образец письма показываем на белом с рамкой — чтобы было видно,
   что это не часть страницы, а содержимое чужого почтового ящика. */
.preview {
  border: 1px solid var(--border); border-radius: var(--r-md);
  background: #fff; overflow: hidden;
}
.preview__head {
  padding: 12px 16px; border-bottom: 1px solid var(--border);
  background: var(--bg); font-size: 13px; color: var(--text-soft);
}
.preview__head b { color: var(--text); font-weight: 500; }
.preview__body { padding: 18px 16px; }
.preview__body p:first-child { margin-top: 0; }
.preview__body p:last-child { margin-bottom: 0; }

ul.plain { list-style: none; margin: 12px 0 0; padding: 0; }
ul.plain li {
  padding: 9px 0; border-top: 1px solid var(--border);
  display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap;
}

/* ------------------------------------ расписание напоминаний */
.sched { list-style: none; margin: 0; padding: 0; }
.sched li {
  display: flex; gap: 14px; align-items: baseline; flex-wrap: wrap;
  padding: 12px 0; border-top: 1px solid var(--border);
}
.sched li:first-child { border-top: none; padding-top: 0; }
.sched__when { flex: 0 0 128px; font-weight: 500; }
.sched__what { flex: 1 1 240px; }
.sched__what .mini { margin-top: 2px; }
@media (max-width: 620px) { .sched__when { flex-basis: 100%; } }

/* ------------------------------------ пошаговая инструкция и команды */
ol.howto { margin: 10px 0 14px; padding-left: 20px; }
ol.howto li { margin-bottom: 9px; line-height: 1.55; }
ol.howto li:last-child { margin-bottom: 0; }

/* Команду для хостинга набирают руками, поэтому ее нужно видеть
   посимвольно: моноширинный шрифт и перенос по любому месту. */
.code-line {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px; line-height: 1.5;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--r-sm); padding: 10px 12px; margin: 8px 0;
  overflow-wrap: anywhere; word-break: break-all;
}

/* ------------------------------------ вход: ссылка под формой */
.auth__foot {
  margin: 18px 0 0; text-align: center;
  font-size: 14px; color: var(--text-soft);
}
.auth__foot a { color: var(--text-soft); }
.auth__foot a:hover { color: var(--brand-text); }

.counter { text-align: right; }
.counter--low { color: var(--warn); }

/* ============================================ «Как вас видят» ========= */
.vh {
  font-size: 17px; font-weight: 600; margin: 28px 0 4px;
  padding-top: 22px; border-top: 1px solid var(--border);
}
.vh:first-of-type { margin-top: 0; padding-top: 0; border-top: none; }
.vh__sub { margin-bottom: 18px !important; }
.vlist { display: flex; flex-direction: column; gap: 22px; }
.vrow__top {
  display: flex; align-items: baseline; gap: 10px;
  flex-wrap: wrap; margin-bottom: 9px;
}
.vrow__name { font-weight: 500; }
.vd {
  font-size: 12.5px; font-weight: 500; padding: 2px 8px; border-radius: 5px;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.vd--down { color: var(--err); background: var(--err-soft); }
.vd--up   { color: var(--ok);  background: var(--ok-soft); }
.vd--wide { color: var(--warn); background: var(--warn-soft); }

/* Дорожка 1–5. Показываем не только разницу, но и где она находится
   на шкале: расхождение в полбалла у потолка и такое же в середине —
   это разные новости, и глазом это должно быть видно сразу. */
.trk { position: relative; height: 34px; }
.trk--slim { height: 16px; }
.trk__line {
  position: absolute; left: 0; right: 0; top: 16px; height: 2px;
  background: var(--border);
}
.trk--slim .trk__line { top: 7px; }
.trk__tick {
  position: absolute; top: 11px; width: 1px; height: 12px; background: var(--border);
}
.trk--slim .trk__tick { top: 4px; height: 8px; }
.trk__span { position: absolute; top: 16px; height: 2px; border-radius: 2px; }
.trk__span--down { background: var(--err); }
.trk__span--up   { background: var(--ok); }
.trk__dot {
  position: absolute; top: 10px; width: 14px; height: 14px; margin-left: -7px;
  border-radius: 50%; border: 2px solid var(--surface);
}
.trk__dot--self { background: var(--text-faint); }
.trk__dot--down { background: var(--err); }
.trk__dot--up   { background: var(--ok); }
.trk__lab {
  position: absolute; top: 26px; font-size: 11.5px; color: var(--text-faint);
  transform: translateX(-50%); white-space: nowrap; font-variant-numeric: tabular-nums;
}
.trk__band {
  position: absolute; top: 3px; height: 8px; border-radius: 4px;
  background: var(--warn-soft);
}
.trk__mid { position: absolute; top: 1px; width: 2px; height: 12px; background: var(--warn); }

.vempty {
  background: var(--ok-soft); border-radius: var(--r-md);
  padding: 15px 17px; margin: 0; color: var(--text-soft); font-size: 14.5px;
}
.vnote {
  margin: 16px 0 0; font-size: 14.5px; color: var(--text-soft);
  padding-left: 14px; border-left: 2px solid var(--border);
}

details.drill { margin-top: 10px; }
details.drill > summary {
  cursor: pointer; font-size: 13.5px; color: var(--brand-text);
  list-style: none; display: inline-block;
}
details.drill > summary::-webkit-details-marker { display: none; }
details.drill > summary::before { content: "▸ "; }
details.drill[open] > summary::before { content: "▾ "; }
.drill__t { margin-top: 10px; font-size: 14px; }
.drill__t th.num, .drill__t td.num {
  text-align: right; width: 1%; white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.vviews { display: flex; flex-direction: column; gap: 12px; }
.vview {
  display: grid; grid-template-columns: 140px 1fr 54px;
  gap: 14px; align-items: center;
}
.vview__who { font-size: 14.5px; }
.vview__who span { display: block; font-size: 12px; color: var(--text-faint); }
.vview__bar {
  height: 9px; background: var(--bg); border-radius: 5px; overflow: hidden;
}
.vview__fill { height: 100%; border-radius: 5px; background: var(--brand); display: block; }
.vview__fill--self { background: var(--text-faint); }
.vview__n {
  font-size: 14px; text-align: right; font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.vview__n--hidden { font-weight: 400; font-size: 12.5px; color: var(--text-faint); }

@media (max-width: 620px) {
  .vview { grid-template-columns: 104px 1fr 48px; gap: 10px; }
  .vview__who { font-size: 13.5px; }
}
@media print {
  details.drill { display: none; }
}

/* Легенда к дорожкам. Точки без подписи читаются как украшение:
   какая из них самооценка, а какая мнение окружения, на глаз
   не определить. */
.vkey {
  display: flex; gap: 18px; flex-wrap: wrap; align-items: center;
  font-size: 13px; color: var(--text-faint); margin-bottom: 18px;
}
.vkey span { display: inline-flex; align-items: center; gap: 7px; }
.vkey__d {
  width: 12px; height: 12px; border-radius: 50%; flex: 0 0 auto;
}
.vkey__d--self { background: var(--text-faint); }
.vkey__d--down { background: var(--err); }
.vkey__d--up   { background: var(--ok); }
.vkey__band {
  width: 26px; height: 8px; border-radius: 4px; flex: 0 0 auto;
  background: var(--warn-soft); border: 1px solid #E8D3A8;
}
.vkey__mid { width: 2px; height: 12px; background: var(--warn); flex: 0 0 auto; }
.vkey__scale { margin-left: auto; }
@media (max-width: 620px) {
  .vkey { gap: 12px; font-size: 12.5px; }
  .vkey__scale { margin-left: 0; }
}

/* Перебор по договору виден сразу при клике, а не при сохранении. */
.livebar--over { background: var(--err-soft); border-color: #EBC4C4; }
.livebar--over .livebar__n { color: var(--err); }
.livebar--over .livebar__state { color: var(--err); }

/* Объяснение, почему не сохранилось: рядом со счетчиком такому тексту
   не хватает места, а прочитать его нужно обязательно. */
.livebar__msg {
  margin: -8px 0 18px; padding: 10px 14px;
  background: var(--err-soft); border: 1px solid #EBC4C4;
  border-radius: var(--r-sm); color: var(--err); font-size: 13.5px;
}

/* Строка, выведенная из расчета: видно, но приглушенно. */
.table tr.is-off td { opacity: .55; }
.table tr.is-off td:last-child { opacity: 1; }

/* Шапка печатного отчета: на экране не нужна, но и не мешает —
   держим ее скрытой и показываем только в @media print. */
.doc-head { display: none; }


/* =====================================================================
   EVA · слой оформления поверх базового
   Спокойная светлая тема, Inter, мягкие тени, аккуратные состояния.
   ===================================================================== */
body { font-size: 14.5px; font-feature-settings: "cv11", "ss03"; letter-spacing: -0.005em; }
h1 { font-size: 26px; font-weight: 650; letter-spacing: -0.02em; }
h2 { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
h3 { font-size: 15px; font-weight: 600; }
.table, .tile__num, .num, .sm-num { font-variant-numeric: tabular-nums; }

.card { border-radius: var(--r-lg); border-color: var(--border); box-shadow: var(--shadow-sm); }
.btn { border-radius: 10px; font-weight: 500; transition: background .15s, border-color .15s, box-shadow .15s, color .15s; }
.btn--primary { box-shadow: 0 1px 2px rgba(59, 91, 165, .25); }
.btn--ghost { background: var(--surface); }
.btn--danger-solid { background: var(--err); color: #fff; border: 1px solid var(--err); }
.btn--danger-solid:hover { background: #962017; text-decoration: none; }
.input { border-radius: 10px; transition: border-color .15s, box-shadow .15s; }
.input:focus { box-shadow: 0 0 0 4px rgba(59, 91, 165, .12); }
.label { display: block; font-size: 13px; font-weight: 500; color: var(--text-soft); margin-bottom: 6px; }
.tag--warn { background: var(--warn-soft); color: var(--warn); }

/* боковое меню: группы продуктов */
.side { padding: 18px 12px 14px; }
.side__brand { padding: 4px 10px 18px; }
.brand__mark {
  width: 34px; height: 34px; border-radius: 10px; font-size: 13px; font-weight: 700;
  letter-spacing: -0.02em; text-transform: lowercase;
  background: linear-gradient(135deg, #4A6BBE, #2F4C8F); color: #fff;
}
.brand__name { font-weight: 700; font-size: 16px; letter-spacing: -0.01em; display: flex; flex-direction: column; line-height: 1.1; }
.brand__name small { font-size: 11.5px; font-weight: 500; color: var(--text-faint); letter-spacing: 0; margin-top: 2px; }
.side__group {
  font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--text-faint); padding: 16px 12px 6px;
}
.side__nav a { padding: 9px 12px; font-size: 14px; }
.side__nav a.on { background: var(--brand-soft); color: var(--brand-text); font-weight: 600; }
.side__foot .who { display: flex; flex-direction: row; gap: 10px; align-items: center; }
.side__foot .who > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.side__foot .who__name { font-weight: 600; font-size: 13.5px; }
.side__foot .who__sub { font-size: 12px; color: var(--text-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 150px; }
.side__foot .ava {
  width: 32px; height: 32px; border-radius: 50%; flex: 0 0 auto; display: flex; align-items: center; justify-content: center;
  background: var(--brand-soft); color: var(--brand-text); font-weight: 600; font-size: 13px;
}

/* владелец в кабинете компании */
.acting {
  position: sticky; top: 0; z-index: 15;
  display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
  background: #1F2A44; color: #E8ECF6; font-size: 13.5px;
  padding: 10px 24px; margin-left: 236px;
}
.acting b { color: #fff; }
.acting form { margin: 0 0 0 auto; }
.acting .btn { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.25); }
.acting .btn:hover { background: rgba(255,255,255,.18); }
.acting__dot { width: 8px; height: 8px; border-radius: 50%; background: #F2C14E; flex: 0 0 auto; box-shadow: 0 0 0 4px rgba(242,193,78,.2); }
@media (max-width: 760px) { .acting { margin-left: 0; padding: 10px 16px; } .acting form { margin-left: 0; } }

/* продукты компании */
.prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.prod {
  display: flex; gap: 14px; align-items: center; cursor: pointer;
  border: 1px solid var(--border); border-radius: var(--r-md); padding: 14px 16px; background: var(--surface);
  transition: border-color .15s, background .15s;
}
.prod:hover { border-color: var(--border-strong); }
.prod.is-on, .prod:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.prod input { position: absolute; opacity: 0; pointer-events: none; }
.prod__body { flex: 1 1 auto; display: flex; flex-direction: column; gap: 2px; }
.prod__name { font-weight: 600; }
.prod__tag { font-size: 12.5px; color: var(--text-soft); }
.switch { width: 38px; height: 22px; border-radius: 22px; background: var(--border-strong); position: relative; flex: 0 0 auto; transition: background .15s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .15s; }
.prod:has(input:checked) .switch { background: var(--brand); }
.prod:has(input:checked) .switch::after { transform: translateX(16px); }
.prod:has(input:focus-visible) { outline: 2px solid var(--brand); outline-offset: 2px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; border: 1px solid var(--border); border-radius: 999px; padding: 6px 12px; font-size: 13.5px; background: var(--surface); }
.chip:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-text); }
.chip input { accent-color: var(--brand); }

.fold--danger { border-color: #F2C7C2; }
.fold--danger .fold__title { color: var(--err); }

/* ============================================================ EVA · общие элементы */
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--brand-text); margin-bottom: 6px; }
.head h1 .st { vertical-align: middle; margin-left: 8px; font-size: 12px; }
.muted { color: var(--text-soft); }
.empty-state { text-align: center; padding: 48px 24px; }
.empty-state__icon { font-size: 34px; color: var(--brand); margin-bottom: 8px; }
.empty-state p { color: var(--text-soft); }
.meter { display: inline-block; width: 120px; height: 6px; border-radius: 6px; background: #E9ECF2; overflow: hidden; vertical-align: middle; }
.meter > span { display: block; height: 100%; background: var(--brand); border-radius: 6px; transition: width .4s ease; }
.meter--lg { width: 100%; height: 8px; margin-top: 10px; }
.btn--lg { padding: 12px 22px; font-size: 15px; border-radius: 12px; }
.copyrow { display: flex; gap: 8px; align-items: center; min-width: 0; }
.copyrow .code-line { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; flex: 1 1 auto; }

/* список проектов */
.plist { display: flex; flex-direction: column; }
.plist__i { display: flex; align-items: center; gap: 16px; padding: 14px 8px; border-bottom: 1px solid var(--border); color: var(--text); border-radius: 10px; transition: background .12s; }
.plist__i:last-child { border-bottom: 0; }
.plist__i:hover { background: var(--bg); text-decoration: none; }
.plist__main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.plist__name { font-weight: 600; }
.plist__sub { font-size: 13px; color: var(--text-soft); }
.plist__prog { display: flex; align-items: center; gap: 8px; }
@media (max-width: 620px) { .plist__i { flex-wrap: wrap; } .plist__prog { order: 3; width: 100%; } .plist__prog .meter { flex: 1 1 auto; } }

/* шаги */
.steps-line { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 16px; }
.sl__i { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-faint); padding: 6px 12px 6px 6px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); }
.sl__i b { width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--bg); font-size: 12px; }
.sl__i.is-done { color: var(--ok); } .sl__i.is-done b { background: var(--ok-soft); }
.sl__i.is-now { color: var(--brand-text); border-color: var(--brand); } .sl__i.is-now b { background: var(--brand); color: #fff; }

/* участники проекта */
.toolbar { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.input--search { max-width: 360px; padding-left: 36px; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%238A93A3' stroke-width='2' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 12px center; }
.pgroups { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.pgroup { border: 1px solid var(--border); border-radius: var(--r-md); padding: 10px 12px; background: var(--surface); }
.pgroup--nodept { background: var(--warn-soft); border-color: #EFDCB4; }
.pgroup__h { display: flex; align-items: center; gap: 10px; padding: 2px 0 8px; border-bottom: 1px solid var(--border); margin-bottom: 6px; }
.pgroup__name { font-weight: 600; flex: 1 1 auto; }
.pgroup__n { font-size: 12.5px; color: var(--text-faint); font-variant-numeric: tabular-nums; }
.pgroup__list { display: flex; flex-direction: column; }
.prow { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "c n t" "c s t"; column-gap: 10px; align-items: center; padding: 7px 4px; border-radius: 8px; cursor: pointer; }
.prow:hover { background: var(--bg); }
.prow.is-off { cursor: default; opacity: .7; }
.prow > .check { grid-area: c; } .prow__name { grid-area: n; font-size: 14px; } .prow__sub { grid-area: s; font-size: 12px; color: var(--text-faint); } .prow .tag { grid-area: t; }
.check { position: relative; display: inline-flex; width: 18px; height: 18px; flex: 0 0 auto; }
.check input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.check span { width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid var(--border-strong); background: #fff; transition: all .12s; }
.check input:checked + span { background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 8.5 2.5 2.5L12 5.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; border-color: var(--brand); }
.check input:indeterminate + span { background: var(--brand-soft); border-color: var(--brand); box-shadow: inset 0 0 0 4px #fff, inset 0 0 0 10px var(--brand); }
.check input:focus-visible + span { box-shadow: 0 0 0 3px rgba(59,91,165,.25); }
.check input:disabled + span { background: var(--bg); }
.sticky-actions { position: sticky; bottom: 0; display: flex; justify-content: flex-end; gap: 16px; align-items: center; padding: 12px 0 0; margin-top: 12px; background: linear-gradient(to top, var(--surface) 70%, rgba(255,255,255,0)); }

.checklist { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-direction: column; gap: 8px; }
.checklist li { padding-left: 28px; position: relative; }
.checklist li::before { position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; }
.checklist li.is-ok::before { content: "✓"; background: var(--ok-soft); color: var(--ok); }
.checklist li.is-bad::before { content: "!"; background: var(--err-soft); color: var(--err); }
.checklist li.is-warn::before { content: "!"; background: var(--warn-soft); color: var(--warn); }

/* ход опроса */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 16px 18px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.kpi__v { font-size: 28px; font-weight: 650; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.kpi__v small { font-size: 15px; color: var(--text-faint); font-weight: 500; }
.kpi__l { font-size: 13px; color: var(--text-soft); }
.ulist { display: flex; flex-direction: column; gap: 4px; margin-top: 12px; }
.ulist__i { display: grid; grid-template-columns: minmax(140px, 260px) 1fr 80px auto; gap: 14px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--border); }
.ulist__i:last-child { border-bottom: 0; }
.ulist__i .meter { width: 100%; }
.ulist__n { font-size: 13px; color: var(--text-soft); text-align: right; }
@media (max-width: 620px) { .ulist__i { grid-template-columns: 1fr auto; } .ulist__i .meter { grid-column: 1 / -1; order: 3; } }

/* ============================================================== анкета */
.sv__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.sv__proj { font-size: 13px; color: var(--text-soft); }
.sv__prog { display: flex; align-items: center; gap: 8px; }
.sv__card { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--shadow-md); padding: 32px; }
.sv__card h1 { font-size: 24px; margin-bottom: 8px; }
.sv__lead { color: var(--text-soft); font-size: 15.5px; margin-bottom: 20px; }
.sv__step { font-size: 12.5px; font-weight: 600; color: var(--brand-text); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 8px; }
.sv__unit { font-size: 26px; }
.sv__how { padding-left: 20px; margin: 0 0 18px; display: flex; flex-direction: column; gap: 8px; }
.sv__facts { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.sv__facts span { background: var(--bg); border-radius: 999px; padding: 6px 12px; font-size: 13.5px; }
.sv__nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border); }
.sv__nav .btn--primary { margin-left: auto; }
.sv--center { text-align: center; padding: 48px 16px; }
.sv__ok { width: 64px; height: 64px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); font-size: 30px; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.pickgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.sv .pick { position: relative; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1.5px solid var(--border); border-radius: 14px; cursor: pointer; transition: all .12s; background: var(--surface); }
.sv .pick:hover { border-color: var(--border-strong); }
.sv .pick input { position: absolute; opacity: 0; }
.sv .pick__box { width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--border-strong); flex: 0 0 auto; transition: all .12s; }
.sv .pick:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.sv .pick:has(input:checked) .pick__box { background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 8.5 2.5 2.5L12 5.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/15px no-repeat; border-color: var(--brand); }
.sv .pick:has(input:focus-visible) { outline: 2px solid var(--brand); outline-offset: 2px; }
.sv .pick:has(input:disabled) { opacity: .5; cursor: default; }
.sv .pick__t { font-weight: 500; }
.none-opt { display: flex; gap: 8px; align-items: center; margin-top: 16px; font-size: 14px; color: var(--text-soft); }
.qq { border: 0; padding: 0; margin: 0 0 26px; }
.qq legend { display: flex; gap: 12px; font-size: 15.5px; line-height: 1.45; margin-bottom: 12px; padding: 0; }
.qq__n { width: 26px; height: 26px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-text); font-weight: 600; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.qq__hint { display: block; font-size: 13px; color: var(--text-faint); margin-top: 2px; }
.qq.is-miss legend { color: var(--err); }
.scale5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.scale5__o { position: relative; cursor: pointer; }
.scale5__o input { position: absolute; opacity: 0; inset: 0; margin: 0; }
.scale5__b { display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; padding: 12px 8px; border: 1.5px solid var(--border); border-radius: 12px; text-align: center; transition: all .12s; background: var(--surface); }
.scale5__v { width: 28px; height: 28px; border-radius: 50%; background: var(--bg); font-weight: 600; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; }
.scale5__t { font-size: 12.5px; line-height: 1.3; color: var(--text-soft); }
.scale5__o:hover .scale5__b { border-color: var(--border-strong); }
.scale5__o input:checked + .scale5__b { border-color: var(--brand); background: var(--brand-soft); }
.scale5__o input:checked + .scale5__b .scale5__v { background: var(--brand); color: #fff; }
.scale5__o input:checked + .scale5__b .scale5__t { color: var(--text); }
.scale5__o input:focus-visible + .scale5__b { outline: 2px solid var(--brand); outline-offset: 2px; }
@media (max-width: 620px) {
  .sv__card { padding: 22px 18px; border-radius: 16px; }
  .sv__card h1, .sv__unit { font-size: 21px; }
  .scale5 { grid-template-columns: 1fr; gap: 6px; }
  .scale5__b { flex-direction: row; text-align: left; padding: 10px 12px; gap: 12px; }
  .scale5__t { font-size: 14px; }
  .sv__nav { position: sticky; bottom: 0; background: var(--surface); margin: 16px -18px -22px; padding: 12px 18px; border-radius: 0 0 16px 16px; box-shadow: 0 -4px 12px rgba(16,24,40,.06); }
  .sv__nav .btn--lg { padding: 12px 16px; }
}
.revlist { display: flex; flex-direction: column; gap: 8px; }
.revlist__i { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border: 1px solid var(--border); border-radius: 12px; color: var(--text); }
.revlist__i:hover { background: var(--bg); text-decoration: none; }
.revlist__i.is-miss { border-color: #F2C7C2; background: var(--err-soft); }

/* =============================================================== отчет */
.rtabs { display: inline-flex; gap: 4px; padding: 4px; background: #EBEEF3; border-radius: 12px; margin: 4px 0 18px; }
.rtabs__i { border: 0; background: transparent; padding: 8px 16px; border-radius: 9px; font: inherit; font-size: 14px; font-weight: 500; color: var(--text-soft); cursor: pointer; transition: all .15s; }
.rtabs__i:hover { color: var(--text); }
.rtabs__i.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.rtabs__i:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }
.smr { animation: fadein .25s ease; }
@keyframes fadein { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.rc__h { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.rc__h h2 { margin: 0; }
.mainlist { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.mainlist li { padding-left: 16px; position: relative; }
.mainlist li::before { content: ""; position: absolute; left: 0; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.limit { font-size: 12.5px; color: var(--text-faint); font-style: italic; margin: 14px 0 0; }
.ulink { color: var(--text); border-bottom: 1px dashed var(--border-strong); }
.ulink:hover { color: var(--brand-text); text-decoration: none; border-bottom-color: var(--brand); }

.lv1 { --c: var(--lv-1); --cs: var(--lv-1s); } .lv2 { --c: var(--lv-2); --cs: var(--lv-2s); }
.lv3 { --c: var(--lv-3); --cs: var(--lv-3s); } .lv4 { --c: var(--lv-4); --cs: var(--lv-4s); }
.lv0 { --c: #D3D7DE; --cs: #F1F3F6; }

.dist { display: flex; flex-direction: column; gap: 10px; }
.dist__row { display: grid; grid-template-columns: 130px 1fr 84px minmax(0, 1.4fr); gap: 14px; align-items: center; }
.dist__lab { font-weight: 600; background: var(--cs); color: #1F2937; border-left: 4px solid var(--c); border-radius: 8px; padding: 8px 12px; display: flex; flex-direction: column; line-height: 1.2; }
.dist__lab small { font-weight: 500; font-size: 11.5px; color: var(--text-soft); margin-top: 2px; }
.dist__bar { height: 14px; background: #EEF1F5; border-radius: 8px; overflow: hidden; }
.dist__f { display: block; height: 100%; background: var(--c); border-radius: 8px; transition: width .5s ease; }
.dist__v { font-size: 13.5px; color: var(--text-soft); font-variant-numeric: tabular-nums; }
.dist__v b { color: var(--text); font-size: 15px; }
.dist__names { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 13.5px; }
@media (max-width: 760px) { .dist__row { grid-template-columns: 110px 1fr 70px; } .dist__names { grid-column: 1 / -1; } }

.mx-wrap { overflow-x: auto; margin: 0 -4px; padding: 0 4px 4px; }
.mx { border-collapse: separate; border-spacing: 3px; font-size: 13px; }
.mx th, .mx td { padding: 0; }
.mx__corner { min-width: 170px; text-align: left; vertical-align: bottom; font-size: 11px; font-weight: 500; color: var(--text-faint); }
.mx__corner span { display: block; }
.mx__col { height: 120px; width: 52px; vertical-align: bottom; font-weight: 500; color: var(--text-soft); }
.mx__col span { display: inline-block; writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; max-height: 118px; overflow: hidden; text-overflow: ellipsis; padding: 4px 0; }
.mx__row { text-align: left; font-weight: 500; white-space: nowrap; padding: 0 12px 0 4px !important; position: sticky; left: 0; background: var(--surface); z-index: 1; max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.mx td { width: 52px; height: 38px; text-align: center; border-radius: 8px; font-weight: 600; font-variant-numeric: tabular-nums; }
.mx__v { background: var(--cs); color: #1F2937; box-shadow: inset 0 -3px 0 var(--c); cursor: pointer; transition: transform .1s; }
.mx__v:hover, .mx__v:focus { transform: scale(1.08); outline: 2px solid var(--c); z-index: 2; position: relative; }
.mx__self { background: repeating-linear-gradient(45deg, #E9ECF1, #E9ECF1 4px, #F4F5F8 4px, #F4F5F8 8px); }
.mx__none { background: #F7F8FA; }
.mx__nd { background: #F4F5F8; color: var(--text-faint); font-weight: 500; font-size: 11.5px; }
.mx .hl:not(.mx__v) { background-color: var(--brand-soft); color: var(--brand-text); }
.mx .mx__v.hl { box-shadow: inset 0 -3px 0 var(--c), 0 0 0 2px rgba(59,91,165,.25); }
.mx__all th, .mx__all td { border-top: 8px solid transparent; }
.mxtip { position: absolute; display: none; z-index: 50; background: #111827; color: #F3F4F6; padding: 10px 12px; border-radius: 10px; font-size: 12.5px; box-shadow: 0 8px 24px rgba(0,0,0,.2); max-width: 300px; pointer-events: none; }
.mxtip__h { margin-bottom: 6px; } .mxtip .mini { color: #C3C8D2; margin-top: 6px; }
.mxtip__g { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; }
.mxtip .sc { min-width: 36px; }
.legend5 { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 14px; font-size: 12.5px; }
.lg { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--cs); color: #1F2937; }
.lg::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--c); }
.lgself { background: #F1F3F6; } .lgself::before { background: repeating-linear-gradient(45deg, #D3D7DE, #D3D7DE 2px, #F4F5F8 2px, #F4F5F8 4px); }
.legend5--big .lg { font-size: 14px; padding: 8px 14px; }

.tscroll { overflow-x: auto; }
.rt th, .rt td { vertical-align: middle; }
.rt .c { text-align: center; }
.rt th.sortable { cursor: pointer; user-select: none; white-space: nowrap; }
.rt th.sortable:hover, .rt th.is-sorted { color: var(--brand-text); }
.rowlink { cursor: pointer; transition: background .1s; }
.rowlink:hover, .rowlink:focus { background: var(--bg); outline: none; }
.sc { display: inline-block; min-width: 42px; padding: 3px 8px; border-radius: 8px; background: var(--cs); box-shadow: inset 0 -2px 0 var(--c); font-weight: 600; font-variant-numeric: tabular-nums; text-align: center; color: #1F2937; }
.sc.b { font-weight: 700; }
.sc.neu { --c: var(--neutral); --cs: #F1F4FA; } .sc.neu.hi { --cs: var(--neutral-s); }
.sc.neu.bn { color: var(--err); --c: var(--err); }
.lvp { display: inline-block; font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--cs); color: #1F2937; white-space: nowrap; }
.lvp.neu { background: #F1F4FA; color: var(--text-soft); } .lvp.neu.hi { background: var(--neutral-s); color: var(--brand-text); }
.tyb { display: inline-block; padding: 4px 10px; border-radius: 8px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.tyb--lg { font-size: 14px; padding: 7px 14px; border-radius: 10px; }
.ty1 { --t: #2F7A4B; --ts: #DDF0E3; } .ty2 { --t: #B42318; --ts: #FBE6E1; } .ty3 { --t: #4D7C0F; --ts: #EDF6E3; }
.ty4 { --t: #8A5A00; --ts: #FDF3D9; } .ty5 { --t: #6B7280; --ts: #F1F3F6; }
.tyb { background: var(--ts); color: var(--t); }

.usel { display: flex; gap: 8px; align-items: center; margin-bottom: 16px; max-width: 520px; }
.usel .input { flex: 1 1 auto; font-weight: 500; }
.uhero { border-top: 4px solid var(--t); }
.uhero__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.uhero__name { font-size: 24px; margin: 0; letter-spacing: -0.02em; }
.facts { display: grid; grid-template-columns: 170px 1fr; gap: 10px 18px; margin: 0; }
.facts dt { font-size: 13px; font-weight: 600; color: var(--text-faint); }
.facts dd { margin: 0; }
.facts dd.is-bad { color: var(--err); font-weight: 600; }
@media (max-width: 620px) { .facts { grid-template-columns: 1fr; gap: 2px; } .facts dd { margin-bottom: 10px; } }
.inds { display: flex; flex-direction: column; }
.ind2 { display: grid; grid-template-columns: minmax(180px, 1.1fr) 56px 128px minmax(140px, 1.6fr); grid-template-areas: "n v l b" ". p p p"; gap: 4px 16px; align-items: center; padding: 12px 8px; border-bottom: 1px solid var(--border); }
.ind2:last-child { border-bottom: 0; }
.ind2--main { background: var(--brand-soft); border-radius: 12px; border-bottom-color: transparent; }
.ind2__name { grid-area: n; font-weight: 600; display: flex; flex-direction: column; }
.ind2__name small { font-weight: 400; font-size: 12px; color: var(--text-faint); }
.ind2--main .ind2__name { color: var(--brand-text); }
.ind2__v { grid-area: v; font-size: 20px; font-weight: 650; font-variant-numeric: tabular-nums; text-align: right; }
.ind2__lv { grid-area: l; } .ind2__bar { grid-area: b; } .ind2__ph { grid-area: p; font-size: 13.5px; color: var(--text-soft); }
@media (max-width: 760px) { .ind2 { grid-template-columns: 1fr auto auto; grid-template-areas: "n v l" "b b b" "p p p"; } .ind2__v { font-size: 18px; } }
.hbar { display: block; height: 10px; background: #EEF1F5; border-radius: 6px; overflow: hidden; }
.hbar__f { display: block; height: 100%; border-radius: 6px; background: var(--c, var(--brand)); transition: width .5s ease; }
.hbar__f.neu { background: var(--neutral); }
.scale-cap { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-faint); padding: 4px 8px 0; }
.concl { font-size: 15.5px; line-height: 1.6; }
.recs { padding-left: 20px; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.two h3 { margin: 0 0 8px; font-size: 14px; color: var(--text-soft); }
@media (max-width: 760px) { .two { grid-template-columns: 1fr; } }
.pl { display: grid; grid-template-columns: minmax(0, 1fr) 54px 110px; gap: 10px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.pl:last-child { border-bottom: 0; }
.pl__v { text-align: center; }

@media print {
  .side, .topbar, .acting, .rtabs, .usel, .tabs, .crumb, .no-print, .mxtip { display: none !important; }
  body.app > main.page { margin: 0 !important; padding: 0 !important; }
  .card { box-shadow: none; break-inside: avoid; }
  .mx__v:hover { transform: none; }
  body { background: #fff; }
}

.rt__sub { font-size: 12px; color: var(--text-faint); margin-top: 2px; max-width: 340px; }
.rt--units td:first-child { min-width: 220px; }

/* обзор кабинета компании: продукты */
.pcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; margin-top: 16px; }
.pcard { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); padding: 22px; display: flex; flex-direction: column; gap: 16px; }
.pcard__top { display: flex; gap: 14px; align-items: flex-start; }
.pcard__top h2 { margin: 0 0 4px; }
.pcard__top p { margin: 0; color: var(--text-soft); font-size: 13.5px; }
.pcard__mark { width: 44px; height: 44px; border-radius: 12px; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; color: #fff; background: linear-gradient(135deg, #4A6BBE, #2F4C8F); }
.pcard--sm .pcard__mark { background: linear-gradient(135deg, #2B9C8F, #1F6F7E); font-size: 20px; }
.pcard__stats { display: flex; gap: 20px; font-size: 13.5px; color: var(--text-soft); }
.pcard__stats b { font-size: 20px; color: var(--text); margin-right: 4px; font-variant-numeric: tabular-nums; }

@media (max-width: 620px) {
  .kpis { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .kpi { padding: 12px 14px; }
  .kpi__v { font-size: 22px; }
  .ulist__i .tag { justify-self: start; }
  .rtabs { display: flex; width: 100%; }
  .rtabs__i { flex: 1 1 0; padding: 8px 6px; font-size: 13px; }
}
.rt--units th, .rt--units td { padding: 10px 8px; }
.rt--units th.sortable { white-space: normal; font-size: 11px; line-height: 1.25; }
.rt--units td:first-child { min-width: 200px; }
.rt--units .tyb { white-space: normal; }
.rt--units th { white-space: normal !important; text-transform: none; letter-spacing: 0; font-size: 12px; }
.rt--units th.c { width: 88px; }
.rt--units .sc { min-width: 40px; padding: 3px 6px; }

.indg { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; padding: 14px 8px 8px; margin-top: 6px; border-bottom: 1px solid var(--border); }
.indg:first-child { margin-top: 0; padding-top: 0; }
.indg__t { font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--brand-text); }
.indg__s { font-size: 12.5px; color: var(--text-soft); }
.indg__sc { margin-left: auto; font-size: 11.5px; color: var(--text-faint); }

.lvlpick { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px; }
.lvlopt { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: 12px; cursor: pointer; }
.lvlopt:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.lvlopt input { margin-top: 3px; accent-color: var(--brand); }
.lvlopt span { display: flex; flex-direction: column; gap: 2px; }
.lvlopt small { color: var(--text-soft); font-size: 12.5px; }

.dirmx { border-collapse: separate; border-spacing: 4px; font-size: 13px; }
.dirmx th { font-weight: 500; color: var(--text-soft); text-align: left; padding: 4px 8px; white-space: nowrap; }
.dirmx thead th { vertical-align: bottom; height: 110px; }
.dirmx thead th span { writing-mode: vertical-rl; transform: rotate(180deg); display: inline-block; }
.dirmx td { width: 40px; height: 36px; text-align: center; background: #F7F8FA; border-radius: 8px; }
.dirmx td .check { vertical-align: middle; }
.dirmx__self { display: block; width: 100%; height: 100%; min-height: 36px; border-radius: 8px; background: repeating-linear-gradient(45deg, #E9ECF1, #E9ECF1 4px, #F4F5F8 4px, #F4F5F8 8px); }
.pickunit { margin-bottom: 16px; }
.pickunit__h { font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 8px; }
.sv .pick__t small { display: block; font-weight: 400; font-size: 12px; color: var(--text-faint); }
/* Информационная плашка не зависит от цвета заказчика: розовый или красный
   фирменный цвет превращал обычную подсказку в «ошибку». */
.notice--info { background: #EEF2F8; color: #334155; border-color: #DCE3EE; }

/* ======================================================= каркас проекта (все продукты) */
.nextstep { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; background: linear-gradient(135deg, #F4F7FD, #EEF2FB); border-color: #DCE5F7; }
.nextstep__i { width: 44px; height: 44px; border-radius: 12px; background: var(--brand); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 20px; flex: 0 0 auto; }
.nextstep__b { flex: 1 1 260px; }
.nextstep h2 { margin: 0 0 4px; }
.nextstep p { margin: 0; color: var(--text-soft); }
.flow { display: flex; align-items: stretch; }
.flow span { flex: 1; text-align: center; font-size: 12.5px; padding: 9px 6px; border-top: 3px solid var(--border); color: var(--text-faint); }
.flow span.done { border-color: var(--lv-4); color: var(--ok); }
.flow span.now { border-color: var(--brand); color: var(--brand-text); font-weight: 600; }
.rdylist { margin-top: 10px; }
.rdy { display: grid; grid-template-columns: minmax(180px, 1.2fr) minmax(120px, 1fr) minmax(160px, 1.4fr) 110px; gap: 14px; align-items: center; padding: 10px 4px; border-bottom: 1px solid var(--border); }
.rdy:last-child { border-bottom: 0; }
.rdy > span:first-child { display: flex; flex-direction: column; }
.rdy .meter { width: 100%; }
.lvlp { font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 999px; text-align: center; white-space: nowrap; }
.lvlp--ready { background: var(--lv-4s); color: var(--ok); }
.lvlp--wait { background: var(--lv-2s); color: #8A5A00; }
.lvlp--none { background: #F1F3F6; color: var(--text-faint); }
@media (max-width: 760px) { .rdy { grid-template-columns: 1fr auto; } .rdy .meter, .rdy > span:nth-child(3) { grid-column: 1 / -1; } }
.setup-steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.setup-steps li.is-ok a { color: var(--ok); } .setup-steps li.is-ok::marker { color: var(--ok); }
.setup-steps li.is-now a { font-weight: 600; }
.seg { display: inline-flex; background: #EBEEF3; border-radius: 10px; padding: 3px; gap: 3px; flex-wrap: wrap; }
.seg__i { border: 0; background: transparent; font: inherit; font-size: 13px; color: var(--text-soft); padding: 6px 12px; border-radius: 8px; cursor: pointer; text-decoration: none; }
.seg__i:hover { color: var(--text); text-decoration: none; }
.seg__i.on { background: #fff; color: var(--text); box-shadow: var(--shadow-sm); }
.rchip { display: inline-flex; align-items: center; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; white-space: nowrap; margin: 2px 4px 2px 0; }
.rchip--subj { background: var(--brand-soft); color: var(--brand-text); }
.rchip--resp { background: var(--ok-soft); color: var(--ok); }
.note-line { font-size: 12.5px; color: var(--text-soft); margin: 12px 0 6px; }
.roster__row { cursor: pointer; }
.roster__row:hover { background: var(--bg); }
.roster__row[aria-expanded="true"] { background: var(--brand-soft); }
.detail { background: #F8F9FB; border-radius: 12px; padding: 14px 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.detail h4 { margin: 0 0 8px; font-size: 12px; letter-spacing: .05em; text-transform: uppercase; color: var(--text-faint); }
.detail ul { margin: 0; padding-left: 18px; } .detail li { margin: 4px 0; }
@media (max-width: 760px) { .detail { grid-template-columns: 1fr; } }
.prodchips { display: flex; gap: 6px; flex-wrap: wrap; }
.pc { font-size: 12px; padding: 3px 9px; border-radius: 8px; background: #F1F3F6; color: var(--text-soft); white-space: nowrap; }
.pc b { color: var(--text); }
.lvlname { font-size: 12px; color: var(--text-soft); }


/* ====================================================== этап 3: подсказки, воздух, читаемость */
/* воздух между блоками, которые стоят подряд */
.card + .tiles, .card + .kpis, .tiles + .card, .kpis + .card, .card + .notice, .notice + .card,
.tabs + .card, .seg + .card, .card + .seg, .between + .card { margin-top: 16px; }
.tiles { margin-bottom: 16px; }

/* значок подсказки */
.qt { display: inline-flex; align-items: center; justify-content: center; width: 17px; height: 17px; margin-left: 4px;
  border-radius: 50%; border: 0; background: #E6E9EF; color: #4B5563; font: 600 11px/1 var(--font); cursor: help; vertical-align: 1px; }
.qt:hover, .qt:focus-visible { background: var(--brand); color: #fff; outline: none; }
[data-hint] { cursor: help; }
.qt[data-hint] { cursor: help; }
.hintbox { position: fixed; z-index: 90; max-width: 300px; background: #111827; color: #F3F4F6; font-size: 12.5px; line-height: 1.45;
  padding: 9px 11px; border-radius: 9px; box-shadow: 0 8px 24px rgba(0,0,0,.18); pointer-events: none; opacity: 0; transition: opacity .12s; }
.hintbox.on { opacity: 1; }

/* уровни 360: матовый «светофор» */
.lvpill { display: inline-block; vertical-align: middle; margin-left: 8px; font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 999px; letter-spacing: 0; }
.lvpill--1 { background: #F6E3DF; color: #9A3B2E; } .lvpill--2 { background: #F8EED6; color: #7A5A12; }
.lvpill--3 { background: #E4F0E1; color: #3F6E3A; } .lvpill--4 { background: #D6EADB; color: #24613A; }
.lvbg--1 { background: #D9826F; } .lvbg--2 { background: #E0B656; } .lvbg--3 { background: #8DBA7E; } .lvbg--4 { background: #4F9A6A; } .lvbg--0 { background: #9CA3AF; }
.tiles--team .tile__num { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.tiles--team .tile__num small { font-size: 14px; color: var(--text-faint); font-weight: 500; }

/* профиль команды */
.plegend { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; font-size: 12.5px; color: var(--text-soft); margin: 4px 0 12px; }
.plegend span { display: inline-flex; align-items: center; gap: 6px; }
.plegend__dot { width: 11px; height: 11px; border-radius: 50%; background: #4B5563; display: inline-block; }
.plegend__band { width: 26px; height: 8px; border-radius: 4px; background: #D8E1F2; display: inline-block; }
.plegend__self { width: 3px; height: 14px; border-radius: 2px; background: #C2508A; display: inline-block; }
.ptrack { position: relative; height: 34px; }
.ptrack::before { content: ""; position: absolute; left: 0; right: 0; top: 10px; height: 8px; border-radius: 4px; background: #F1F3F6; }
.ptrack__band { position: absolute; top: 10px; height: 8px; border-radius: 4px; background: #D8E1F2; }
.ptrack__dot { position: absolute; top: 7px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.ptrack__self { position: absolute; top: 5px; width: 3px; height: 18px; margin-left: -1px; border-radius: 2px; background: #C2508A; }
.ptrack__ticks { position: absolute; left: 0; right: 0; top: 21px; display: flex; justify-content: space-between; font-size: 10px; color: var(--text-faint); font-style: normal; }
.ptrack__ticks i { font-style: normal; }
.crow__val { display: flex; align-items: center; gap: 2px; white-space: nowrap; font-weight: 600; }

/* карта команды: названия компетенций вместо кодов */
.heat__cn { vertical-align: bottom; min-width: 86px; max-width: 120px; }
.heat__cn span { display: block; font-size: 11.5px; font-weight: 600; line-height: 1.25; text-transform: none; letter-spacing: 0; color: var(--text-soft); white-space: normal; }
.heat td[data-hint] { cursor: help; }

/* имена в таблицах: читаемо в любом фирменном цвете */
.table td > a:first-child, .table td b > a, .rdy a.rdy__name, .plist__name { color: var(--text); font-weight: 600; }
.table td > a:first-child:hover, .rdy a.rdy__name:hover { color: var(--brand-text); }

/* печать: цвета полос и плашек сохраняются в PDF */
@media print { * { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; } }

.chip-link.is-off { opacity: .5; cursor: default; }
.chip-link.is-off:hover { border-color: var(--border); }
.lvlp--link { text-decoration: none; }
.lvlp--link:hover { text-decoration: none; filter: brightness(.96); box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
@media (min-width: 761px) { .rdy { grid-template-columns: minmax(180px, 1.2fr) minmax(120px, 1fr) minmax(160px, 1.4fr) 170px; } }

/* список проектов: название — главное, статус — отдельной строкой, действие заметно */
a.plname { color: var(--text); font-weight: 600; font-size: 15px; }
a.plname:hover { color: var(--brand-text); }
.plstat { margin-top: 6px; }
.btn--soft { background: var(--brand-soft); color: var(--brand-text); border: 1px solid transparent; font-weight: 600; }
.btn--soft:hover { background: var(--brand); color: var(--on-brand); text-decoration: none; }
#work-table td { padding-top: 14px; padding-bottom: 14px; }

.gbar[data-hint] { cursor: help; }
.trk { position: relative; }
.trk__lbl { position: absolute; top: 14px; transform: translateX(-50%); font-size: 10.5px; font-weight: 600; color: var(--text-soft); }
.trk__scale { display: flex; justify-content: space-between; font-size: 10px; color: var(--text-faint); margin-top: 16px; }
.onb__list { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-direction: column; gap: 8px; }
.onb__i { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; }
.onb__i.is-next { border-color: var(--brand); background: var(--brand-soft); }
.onb__i.is-ok { opacity: .65; }
.onb__mark { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--border-strong); flex: 0 0 auto; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: #fff; }
.onb__i.is-ok .onb__mark { background: var(--ok); border-color: var(--ok); }
.onb__i.is-next .onb__mark { border-color: var(--brand); }
.onb__b { flex: 1 1 auto; display: flex; flex-direction: column; gap: 2px; }
.crow .ptrack { flex: 1 1 auto; min-width: 180px; }
.crow .crow__val { flex: 0 0 150px; justify-content: flex-end; }
@media (max-width: 760px) { .crow { flex-wrap: wrap; } .crow__name { flex: 1 1 100%; } }
@media print { .hintbox, .qt { display: none !important; } }

/* подсказки: светлая плашка, плавное появление и исчезновение */
.hintbox { background: #FFFFFF; color: #1F2937; border: 1px solid #E3E7EE; box-shadow: 0 2px 6px rgba(16,24,40,.08);
  border-radius: 10px; padding: 9px 12px; font-size: 12.5px; line-height: 1.45;
  transform: translateY(4px); transition: opacity .18s ease, transform .18s ease; }
.hintbox.on { transform: translateY(0); }
.hintbox b { display: block; font-weight: 600; margin-bottom: 2px; color: #111827; }

/* «Где мнения разошлись»: среднее над чертой, края полосы под ней */
.trk__mv { position: absolute; top: -17px; transform: translateX(-50%); font-size: 11px; font-weight: 700; color: var(--warn); }
.trk__lbl { top: 16px; color: var(--text-faint); font-weight: 500; }
.vrow .trk { margin-top: 20px; margin-bottom: 18px; }

/* карта команды: воздух между ячейками, скругления, мягкий подъем при наведении */
.heat { border-collapse: separate; border-spacing: 4px; }
.heat th, .heat td { border-bottom: 0; }
.heat td.heat__c { border-radius: 8px; transition: transform .16s ease, box-shadow .16s ease; }
.heat td.heat__c[data-hint]:hover { transform: translateY(-2px); box-shadow: 0 4px 10px rgba(16,24,40,.10); position: relative; z-index: 1; }
.heat .heat__who { border-bottom: 1px solid var(--border); }

/* ссылки на людей: единый спокойный синий, не зависит от фирменного цвета */
:root { --link: #2F5AA8; }
.table td > a:first-child:not(.rbtn):not(.rchip):not(.btn), .table td b > a, a.nlink, .rdy a.rdy__name { color: var(--link) !important; font-weight: 600;
  text-decoration: underline; text-decoration-color: rgba(47,90,168,.35); text-underline-offset: 3px; }
.table td > a:first-child:hover, a.nlink:hover { text-decoration-color: var(--link); }
a.plname { color: var(--text) !important; text-decoration: none; }
.table td > a.rchip, .table td > a.rbtn { text-decoration: none; }

/* кнопка отчета: одна во всем кабинете, зеленый — только для нее */
.rbtn { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; border: 1px solid #BFE3CC; background: #F2FAF5;
  color: #1E7B4F !important; font-weight: 600; font-size: 13px; padding: 6px 12px; border-radius: 9px; text-decoration: none !important;
  transition: background .15s, border-color .15s; }
.rbtn::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #2E9E62; }
.rbtn:hover { background: #E3F4EA; border-color: #9FD3B3; }

/* роли в проекте: зеленый не используем — он за отчетом */
.rchip--subj { background: #ECEBFA; color: #4B45A6; text-decoration: none; }
a.rchip--subj:hover { background: #E0DEF7; text-decoration: none; }
.rchip--rater { background: #F1F3F6; color: #4B5563; }
.meter--ok > span { background: #4FA66B; }
.okmark { color: #1E7B4F; font-weight: 700; }
.rbtn--lg { font-size: 14px; padding: 10px 16px; border-radius: 10px; }

.rbtn, .rbtn:hover { text-decoration: none !important; }

/* ================================================= Sociometrix · спокойные отчеты */
/* матовая палитра уровней для всех таблиц и матриц отчетов */
.lv1 { --c: #D9826F; --cs: #F6E3DF; --ct: #8F3526; }
.lv2 { --c: #E0B656; --cs: #F8EED6; --ct: #74540F; }
.lv3 { --c: #8DBA7E; --cs: #E6F1E2; --ct: #3F6E3A; }
.lv4 { --c: #4F9A6A; --cs: #D8EBDD; --ct: #24613A; }
.sc { box-shadow: none; color: var(--ct, #1F2937); font-weight: 600; }
.sc.neu { color: #3B4A6B; }

/* сводка */
.sumgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }
@media (max-width: 900px) { .sumgrid { grid-template-columns: 1fr; } }
.sumc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 16px 18px; box-shadow: var(--shadow-sm); border-top: 3px solid var(--acc); }
.sumc--risk { --acc: #D9826F; } .sumc--key { --acc: #4F9A6A; } .sumc--bn { --acc: #E0B656; }
.sumc__t { font-weight: 650; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.sumc__n { font-size: 12px; font-weight: 700; background: #F1F3F6; color: var(--text-soft); border-radius: 999px; padding: 1px 8px; }
.sumc p { font-size: 13px; color: var(--text-soft); margin: 6px 0 10px; }
.sumc__names, .probrow__v { display: flex; flex-wrap: wrap; gap: 6px 8px; }
.sumc__names .ulink, .probrow__v .ulink { background: #F4F6F9; border: 0; border-radius: 8px; padding: 3px 9px; font-size: 13px; font-weight: 500; color: var(--link, #2F5AA8); }
.sumc__names .ulink:hover, .probrow__v .ulink:hover { background: #E8EEF8; }
.sumrow { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.sumrow .card { margin: 0; }
@media (max-width: 900px) { .sumrow { grid-template-columns: 1fr; } }
.probrow { display: grid; grid-template-columns: 170px 1fr; gap: 12px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--border); }
.probrow:last-child { border-bottom: 0; }
.probrow__k { font-weight: 600; font-size: 13.5px; display: flex; flex-direction: column; }
.probrow__k small { font-weight: 400; font-size: 12px; color: var(--text-faint); }
.startlist { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; font-size: 13.5px; }
.startlist .mini { display: block; margin-top: 2px; }

/* матрица: воздух, горизонтальные подписи, спокойные «нормальные» ячейки */
.mxbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.mxbar .legend5 { margin: 0; }
.lgok { --c: #D6DAE1; --cs: #F4F6F8; }
.mx { border-spacing: 5px; }
.mx__corner { font-size: 11px; font-weight: 500; color: var(--text-faint); vertical-align: bottom; min-width: 170px; }
.mx__col { height: auto; width: 72px; vertical-align: bottom; padding: 0 0 6px !important; }
.mx__col span { writing-mode: horizontal-tb; transform: none; white-space: normal; display: block; max-height: none; font-size: 11.5px; line-height: 1.2; font-weight: 600; color: var(--text-soft); text-align: center; }
.mx td { width: 72px; height: 40px; border-radius: 9px; font-size: 13px; }
.mx__v { background: var(--cs); color: var(--ct); box-shadow: none; transition: transform .16s ease, box-shadow .16s ease; }
.mx__v:hover, .mx__v:focus { transform: translateY(-2px); outline: none; box-shadow: 0 4px 10px rgba(16,24,40,.10); }
.mx__ok { background: #F4F6F8; color: #8A93A3; font-weight: 500; }
.mx__nd { background: transparent; color: #C4CAD3; font-size: 16px; }
.mx__self { background: #F1F3F6; }
.mx .mx__v.is-sel { box-shadow: 0 0 0 2px var(--link, #2F5AA8); }
.mx .hl:not(.mx__v) { background-color: transparent; color: var(--text); }
.mx th.hl { color: var(--link, #2F5AA8) !important; }
.mx__all th, .mx__all td { border-top: 10px solid transparent; }
.mx__all th { font-weight: 600; }
.mxdet { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: #F8F9FB; min-height: 44px; display: flex; flex-direction: column; gap: 8px; }
.mxdet__h { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.mxdet__h .ulink { margin-left: auto; }
.mxdet__g { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; align-items: center; }
.mxdet__g span { display: inline-flex; align-items: center; gap: 6px; }

/* распределение: имена — как ссылки-плашки */
.dist__names .ulink { background: #F4F6F9; border: 0; border-radius: 8px; padding: 3px 9px; font-size: 13px; color: var(--link, #2F5AA8); }
.mxtip { background: #fff; color: #1F2937; border: 1px solid #E3E7EE; box-shadow: 0 2px 6px rgba(16,24,40,.08); }
.mxtip .mini { color: var(--text-faint); }

/* ============================================================ мобильная версия: общие правила */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (max-width: 760px) {
  .rdy { grid-template-columns: 1fr; gap: 8px; }
  .rdy .meter { width: 100%; }
  .rdy .rbtn { justify-self: start; }
  /* вкладки проекта — одной строкой с прокруткой, без переноса на вторую строку */
  .tabs { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs__i { flex: 0 0 auto; white-space: nowrap; }
  .head.between, .between { flex-wrap: wrap; }
  .row-btns { flex-wrap: wrap; }
  .nextstep { gap: 12px; }
  .nextstep .row-btns, .nextstep > a { width: 100%; }
  .kpi__v { font-size: 22px; }
  .sumc__names .ulink { font-size: 13px; }
  .probrow { grid-template-columns: 1fr; gap: 6px; }
  .mxbar { flex-direction: column; align-items: flex-start; }
}

/* матрицы: не сжимаются, а прокручиваются */
.mx { min-width: max-content; }
.mx td.mx__v, .mx td.mx__nd, .mx td.mx__self, .mx td.mx__none { min-width: 60px; }
@media (max-width: 760px) {
  .mx__row { max-width: 120px; white-space: normal !important; font-size: 12px; line-height: 1.2; min-width: 110px; }
  .mx__corner { min-width: 110px; }
  .mx__col { width: 64px; }
  .mx td { width: 60px; height: 38px; }
  /* верхнее меню: видно, что его можно прокрутить */
  .nav--mobile { -webkit-mask-image: linear-gradient(to right, #000 85%, transparent); mask-image: linear-gradient(to right, #000 85%, transparent); }
  /* участники 360: строка — карточка, подробности по нажатию */
  .table.roster { display: block; }
  .table.roster thead { display: none; }
  .table.roster tbody, .table.roster tr { display: block; }
  .table.roster tr.roster__row { padding: 12px 4px; border-bottom: 1px solid var(--border); }
  .table.roster tr.roster__row td { display: block; border: 0; padding: 2px 0; }
  .table.roster tr.roster__row td:nth-child(3), .table.roster tr.roster__row td:nth-child(4) { display: none; }
  .table.roster tr.roster__detail td { display: block; padding: 0 0 12px; }
  .table.roster tr.roster__row td:last-child { padding-top: 6px; }
}
.table.roster tr[hidden] { display: none !important; }

/* ======================================================= EVA · каркас 2: проекты и проект */
.coname { font-size: 24px; font-weight: 650; margin: 0 0 20px; letter-spacing: -.01em; }
.ptabs { display: flex; background: #fff; border: 1px solid #E7E9EE; border-radius: 12px; overflow: hidden; margin-bottom: 22px; }
.ptabs__i { flex: 1 1 0; display: flex; flex-direction: column; gap: 3px; padding: 13px 18px; border-right: 1px solid #E7E9EE; background: #FAFBFC; color: #6B7280; position: relative; text-decoration: none !important; min-width: 0; }
.ptabs__i:last-child { border-right: 0; }
.ptabs__i:hover { background: #F4F6F9; color: #111827; }
.ptabs__i.on { background: #fff; color: #111827; }
.ptabs__i.on::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: #3B5BA5; }
.ptabs__i.is-off { opacity: .5; cursor: default; }
.ptabs__l { font-size: 14px; font-weight: 600; }
.ptabs__s { font-size: 12.5px; color: #8A93A3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ptabs__s b { color: #4B5563; font-weight: 600; }
.ptabs--fixed .ptabs__i { flex: 0 0 260px; }
.ptabs--fixed::after { content: ""; flex: 1; background: #FAFBFC; }
@media (max-width: 760px) { .ptabs { overflow-x: auto; } .ptabs__i { flex: 0 0 auto; } .ptabs--fixed .ptabs__i { flex: 1 0 50%; } }

.pcrumb { font-size: 13px; color: #8A93A3; margin-bottom: 10px; }
.pcrumb a { color: #8A93A3; } .pcrumb span { color: #4B5563; }
.phead { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.phead__t { display: flex; align-items: center; gap: 14px; min-width: 0; }
.phead__n { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.phead__n h1 { margin: 0; font-size: 24px; font-weight: 650; letter-spacing: -.01em; }
.phead__a { display: flex; align-items: center; gap: 8px; }
.plogo { width: 48px; height: 48px; border-radius: 12px; background: linear-gradient(135deg, #4A6BBE, #2F4C8F); color: #fff; font-weight: 700; font-size: 15px; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.plogo--sm { background: linear-gradient(135deg, #2B9C8F, #1F6F7E); font-size: 20px; }
.pprod { font-size: 13px; color: #3B5BA5; font-weight: 600; margin-bottom: 2px; }
.kmenu { position: relative; }
.kmenu > summary { list-style: none; width: 36px; height: 36px; border: 1px solid #DDE1E7; border-radius: 9px; display: flex; align-items: center; justify-content: center; background: #fff; color: #6B7280; font-weight: 700; cursor: pointer; }
.kmenu > summary::-webkit-details-marker { display: none; }
.kmenu__b { position: absolute; right: 0; top: 42px; background: #fff; border: 1px solid #E3E7EE; border-radius: 10px; box-shadow: 0 8px 24px rgba(16,24,40,.10); padding: 6px; min-width: 210px; z-index: 30; }
.kmenu__b a, .kmenu__b button { display: block; width: 100%; text-align: left; padding: 8px 10px; border-radius: 7px; font: inherit; font-size: 13.5px; color: #1F2937; background: none; border: 0; cursor: pointer; text-decoration: none; }
.kmenu__b a:hover, .kmenu__b button:hover { background: #F4F6F9; }
.kmenu__b form { margin: 0; }
.st { font-weight: 600; }

/* плитки проектов */
.ptgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
@media (max-width: 1100px) { .ptgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .ptgrid { grid-template-columns: 1fr; } }
.ptile { background: #fff; border: 1px solid #E7E9EE; border-radius: 14px; padding: 20px 22px; display: flex; flex-direction: column; gap: 12px; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease; color: inherit; text-decoration: none !important; min-width: 0; }
.ptile:hover, .ptile:focus-visible { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(16,24,40,.07); outline: none; }
.ptile__top { display: flex; justify-content: space-between; align-items: center; height: 36px; }
.pmark { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; color: #4B5563; }
.pmark i { width: 28px; height: 28px; border-radius: 8px; background: linear-gradient(135deg, #4A6BBE, #2F4C8F); color: #fff; font-style: normal; font-size: 10.5px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.pmark i.sm { background: linear-gradient(135deg, #2B9C8F, #1F6F7E); font-size: 13px; }
.ptile__n { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.35; height: 2.7em; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; color: #111827; }
.ptile__st { height: 28px; display: flex; align-items: center; }
.ptile__pct { display: flex; justify-content: space-between; align-items: baseline; }
.ptile__pct b { font-size: 26px; font-weight: 600; letter-spacing: -.02em; }
.ptile__pct span { font-size: 12.5px; color: #8A93A3; }
.ptile .meter--lg { margin-top: -4px; height: 5px; }
.ptile__fx { display: flex; gap: 16px; font-size: 13px; color: #6B7280; white-space: nowrap; overflow: hidden; }
.pdot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }
.pdot--g { background: #4F9A6A; } .pdot--y { background: #E0B656; } .pdot--r { background: #D9826F; }
.ptile--new, .ptile--empty { border-style: dashed; background: transparent; justify-content: center; color: #6B7280; min-height: 200px; }
.ptile--new b { color: #1F3B7A; font-size: 14px; }
.ptile--empty { cursor: default; font-size: 13.5px; }
.ptile--empty:hover { transform: none; box-shadow: none; }
.ptile--arch .pmark i { background: #B8BFCB; }
.ptile--arch .ptile__n { color: #4B5563; }
.ptile--arch .meter > span { background: #B8BFCB; }
.ptile--pick { min-height: 170px; }
.rbtn--sm { font-size: 12.5px; padding: 0 10px; height: 26px; border-radius: 8px; }
.rbtn--pale { background: #F4FAF6 !important; border-color: #CFE8D8 !important; color: #3F7D57 !important; }

.st.st--closed { background: #EEF1F6; color: #4B5563; border-color: #E3E7EE; }

/* обзор проекта */
.ovgrid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-bottom: 20px; }
.ovgrid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-bottom: 20px; }
.ovgrid4 > .card, .ovgrid2 > .card { margin: 0; }
@media (max-width: 1000px) { .ovgrid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ovgrid2 { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .ovgrid4 { grid-template-columns: 1fr; } }
.ovt { padding: 18px 20px; display: flex; flex-direction: column; }
.ovk { font-size: 12.5px; color: #8A93A3; }
.ovbig { font-size: 28px; font-weight: 650; letter-spacing: -.02em; margin: 8px 0 6px; }
.ovbig small { font-size: 14px; color: #8A93A3; font-weight: 500; }
.ovbig--txt { font-size: 21px; margin: 10px 0 6px; }
.ovbig--bad { color: #9A3B2E; }
.ovsub { font-size: 12.5px; color: #6B7280; line-height: 1.5; margin-top: 6px; }
.ovh { font-size: 15.5px; font-weight: 600; margin: 0 0 14px; }
.ovhd { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.ovgrp { padding: 12px 0; border-top: 1px solid #F0F2F5; } .ovgrp:first-of-type { border-top: 0; padding-top: 0; }
.ovgrp__h { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 14px; }
.ovgrp__h b { font-weight: 600; }
.ovgrp__s { margin: 2px 0 0 15px; }
.ovok { font-size: 13.5px; color: #2F6B3E; }
.ovinfo { display: flex; gap: 8px; align-items: flex-start; padding: 10px 0; border-top: 1px solid #F0F2F5; font-size: 13.5px; }
.ovinfo:first-of-type { border-top: 0; } .ovinfo b { font-weight: 600; } .ovinfo .pdot { margin-top: 6px; }
.ovkv { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid #F0F2F5; font-size: 13.5px; }
.ovkv:first-of-type { border-top: 0; } .ovkv span:first-child { color: #8A93A3; }
.ovchart { width: 100%; height: auto; display: block; }
.ovlegend { display: flex; gap: 16px; font-size: 12.5px; color: #6B7280; margin-top: 6px; }
.ovlegend span { display: inline-flex; align-items: center; gap: 6px; } .ovlegend i { width: 14px; height: 3px; border-radius: 2px; display: inline-block; }
.ovfoot { margin-top: 12px; padding-top: 12px; border-top: 1px solid #F0F2F5; font-size: 12.5px; color: #6B7280; }
.ovdep { display: grid; grid-template-columns: minmax(150px, 1.2fr) minmax(120px, 2fr) 56px minmax(150px, 1fr); gap: 14px; align-items: center; padding: 10px 0; border-top: 1px solid #F0F2F5; font-size: 13.5px; }
.ovdep > span:first-child { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; } .ovdep b { font-weight: 600; }
.ovtag { font-size: 11.5px; font-weight: 600; padding: 1px 8px; border-radius: 999px; }
.ovtag--r { background: #F6E3DF; color: #8F3526; } .ovtag--y { background: #F8EED6; color: #74540F; } .ovtag--g { background: #E6F1E2; color: #2F6B3E; }
.ovtrack { height: 8px; border-radius: 5px; background: #EEF0F4; overflow: hidden; } .ovtrack i { display: block; height: 100%; border-radius: 5px; }
.ovtrack--r { background: #D9826F; } .ovtrack--y { background: #E0B656; } .ovtrack--g { background: #4F9A6A; }
.ovpct { font-weight: 600; } .ovhead { display: flex; align-items: center; gap: 8px; color: #4B5563; }
.avatar-s { width: 30px; height: 30px; border-radius: 50%; background: #EEF1F6; color: #4B5563; display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-size: 12px; flex: 0 0 auto; }
.ovchips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.ovchips button { font: inherit; font-size: 12.5px; padding: 5px 11px; border-radius: 999px; background: #F1F3F6; color: #4B5563; border: 0; cursor: pointer; }
.ovchips button.on { background: #1F3B7A; color: #fff; } .ovchips b { margin-left: 4px; }
.ovrow { display: grid; grid-template-columns: minmax(200px, 1.4fr) minmax(160px, 1.4fr) 170px; gap: 14px; align-items: center; padding: 11px 0; border-top: 1px solid #F0F2F5; font-size: 13.5px; }
.ovrow > span:last-child { text-align: right; }
.ovper { display: flex; gap: 10px; align-items: center; } .ovper > span:last-child { display: flex; flex-direction: column; }
.ovper .ovsub { margin-top: 0; }
.ovmore { font: inherit; font-size: 13px; font-weight: 600; color: #2F5AA8; background: none; border: 0; padding: 12px 0 0; cursor: pointer; }
.ovcmp { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; } .ovcmp .ovk { margin-bottom: 6px; }
.ovci { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid #F0F2F5; font-size: 13.5px; }
.ovstep { padding: 18px 20px; } .ovstep__h { display: flex; gap: 10px; align-items: center; }
.ovck { width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; flex: 0 0 auto; }
.ovck--ok { background: #E6F1E2; color: #2F6B3E; } .ovck--now { background: #3B5BA5; color: #fff; } .ovck--lock { background: #EEF1F6; }
.ovstep__t { font-size: 16px; font-weight: 600; margin: 10px 0 2px; }
.ovstep--now { border-color: #3B5BA5; box-shadow: 0 0 0 1px #3B5BA5; } .ovstep--lock { opacity: .55; }
.ovstep__b { margin-top: 12px; display: inline-flex; }
.ovquiet { display: inline-block; margin-top: 12px; font-size: 12.5px; color: #6B7280 !important; text-decoration: underline; text-decoration-color: #D5DAE2; text-underline-offset: 3px; }
.ovlaunch { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.btn.is-disabled { opacity: .45; pointer-events: none; }
@media (max-width: 760px) { .ovdep, .ovrow { grid-template-columns: 1fr; } .ovrow > span:last-child { text-align: left; } .ovcmp { grid-template-columns: 1fr; } }
/* вкладка «Отчеты» */
.rsw-wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.rsw { display: inline-grid; grid-template-columns: 1fr 1fr; background: #EEF1F6; border-radius: 12px; padding: 4px; gap: 4px; width: 420px; max-width: 100%; }
.rsw__i { padding: 10px 16px; border-radius: 9px; font-size: 14.5px; font-weight: 600; color: #4B5563; text-align: center; text-decoration: none !important; }
.rsw__i:hover { color: #111827; }
.rsw__i.on { background: #3B5BA5; color: #fff; box-shadow: 0 1px 3px rgba(16,24,40,.15); }
.rsw__i b { font-weight: 600; opacity: .75; margin-left: 4px; }
.rctl { display: flex; gap: 8px; flex-wrap: wrap; }
.rctl__s, .rctl__sel { border: 1px solid #DDE1E7; border-radius: 9px; padding: 8px 12px; font: inherit; font-size: 13px; color: #374151; background: #fff; }
.rctl__s { width: 200px; }
.rctl__sel { padding-right: 28px; }
.ovchips button i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; margin-right: 6px; }
.rrow { display: grid; grid-template-columns: minmax(200px, 1.6fr) minmax(110px, 1fr) minmax(90px, .9fr) 70px minmax(90px, .8fr) 160px; gap: 14px; align-items: center; padding: 11px 0; border-top: 1px solid #F0F2F5; font-size: 13.5px; }
.rrow--h { border-top: 0; padding-top: 4px; font-size: 12.5px; color: #8A93A3; }
.rrow > span:last-child { text-align: right; }
.rsort { cursor: pointer; } .rsort::after { content: " ↕"; color: #C4CAD3; } .rsort.on { color: #1F3B7A; } .rsort.on::after { content: " ↓"; color: #1F3B7A; }
@media (max-width: 900px) { .rrow { grid-template-columns: 1fr 1fr; } .rrow--h { display: none; } .rrow > span:last-child { text-align: left; } .rctl__s { width: 100%; } }
.ovt .meter > span, .ptile .meter > span, .ovgrp .meter > span { background: #3B5BA5; }
.ovt .meter--ok > span, .ptile .meter--ok > span { background: #4F9A6A; }
.pprod--sm { color: #1F6F7E; }
@media (max-width: 760px) { .ovhd { flex-wrap: wrap; } .rctl { width: 100%; } .rctl__s, .rctl__sel { flex: 1 1 100%; width: 100%; box-sizing: border-box; } .rsw { width: 100%; } }

/* ================================================== индивидуальный отчет 360 */
.rp-md { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 20px; align-items: start; }
.rp-list { background: #fff; border: 1px solid #E7E9EE; border-radius: 14px; padding: 10px; position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow: auto; }
.rp-li { display: flex; align-items: center; gap: 10px; padding: 9px 8px; border-radius: 10px; text-decoration: none !important; color: inherit; }
.rp-li:hover { background: #F6F7F9; }
.rp-li.on { background: #EEF2FB; }
.rp-li__n { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.rp-li__n b { font-size: 13.5px; font-weight: 600; color: #2F5AA8; text-decoration: underline; text-decoration-color: rgba(47,90,168,.35); text-underline-offset: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rp-li.on .rp-li__n b { text-decoration: none; color: #1F3B7A; }
.rp-li__n span { font-size: 12px; color: #8A93A3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rp-main { min-width: 0; }
.rp-main > .card, .rp-main > .notice { margin-bottom: 20px; }
.rp-nav { display: flex; justify-content: space-between; align-items: center; padding-bottom: 14px; border-bottom: 1px solid #F0F2F5; margin-bottom: 16px; font-size: 13.5px; }
.rp-pg { display: inline-flex; gap: 8px; align-items: center; color: #4B5563; }
.rp-pg a, .rp-pg > span { width: 30px; height: 30px; border: 1px solid #DDE1E7; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; background: #fff; text-decoration: none !important; color: #1F2937; }
.rp-pg > span { color: #C4CAD3; }
.rp-who { display: flex; align-items: center; gap: 14px; }
.rp-av { width: 52px; height: 52px; font-size: 18px; }
.rp-name { margin: 0 0 2px; font-size: 20px; font-weight: 650; }
.rp-act { margin-left: auto; }
.rp-f { display: grid; grid-template-columns: 1.3fr auto .8fr auto .8fr; gap: 16px; align-items: center; }
.rp-c { background: #F8F9FB; border-radius: 14px; padding: 14px 16px; }
.rp-c--warn { background: #FDF6E3; }
.rp-cn { font-size: 30px; font-weight: 650; margin: 4px 0 6px; display: flex; align-items: center; gap: 8px; }
.rp-g { display: flex; justify-content: space-between; align-items: center; font-size: 13px; padding: 5px 0; border-top: 1px solid #EEF0F4; }
.rp-op { font-size: 26px; color: #9CA3AF; font-weight: 300; }
.rp-mh { display: grid; grid-template-columns: 90px 1fr 1fr; gap: 8px; font-size: 11.5px; color: #8A93A3; text-align: center; margin-bottom: 6px; }
.rp-mw { display: flex; gap: 6px; }
.rp-myl { width: 84px; flex: 0 0 84px; font-size: 11.5px; color: #8A93A3; display: flex; flex-direction: column; justify-content: space-around; text-align: right; padding-right: 6px; }
.rp-mtx { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; gap: 8px; flex: 1; min-width: 0; }
.rp-q { border-radius: 12px; padding: 16px 18px; display: flex; flex-direction: column; min-height: 120px; }
.rp-q__t { font-weight: 600; font-size: 14px; }
.rp-q__d { font-size: 12.5px; opacity: .85; margin: 4px 0 14px; line-height: 1.45; }
.rp-nm { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.rp-nm span { display: inline-flex; align-items: center; gap: 7px; background: #fff; border-radius: 8px; padding: 4px 9px 4px 4px; font-size: 12.5px; font-weight: 500; color: #1F2937; box-shadow: 0 1px 2px rgba(16,24,40,.06); }
.rp-nm i, .rp-num { font-style: normal; width: 20px; height: 20px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: #fff; background: #6B7280; flex: 0 0 auto; }
.rp-nm em { font-style: normal; font-size: 12.5px; color: #8A93A3; }
.qa { background: #FBF4E4; color: #6B4D0E; } .qa i, i.rp-num.qa { background: #D9A93E; }
.qb { background: #E7F2E9; color: #1F5733; } .qb i, i.rp-num.qb { background: #4F9A6A; }
.qc { background: #FBEDEA; color: #7A2E22; } .qc i, i.rp-num.qc { background: #D9826F; }
.qe { background: #EAF0F8; color: #2B4476; } .qe i, i.rp-num.qe { background: #5B7DBF; }
.rp-gh { border-radius: 8px; padding: 8px 12px; font-size: 12.5px; font-weight: 600; margin: 24px 0 4px; }
.rp-row { display: grid; grid-template-columns: minmax(200px, 1.8fr) 1fr 1fr 60px; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid #F0F2F5; font-size: 13.5px; }
.rp-row > span:first-child { display: flex; align-items: center; gap: 10px; }
.rp-row b { font-weight: 600; } .rp-hot { color: #8F3526; font-weight: 600; }
.rp-hm { width: 100%; border-collapse: separate; border-spacing: 4px; font-size: 13px; }
.rp-hm th { font-size: 11.5px; color: #8A93A3; font-weight: 600; padding: 4px; text-align: center; } .rp-hm th.l { text-align: left; }
.rp-hm td { text-align: center; border-radius: 7px; height: 32px; font-weight: 600; min-width: 64px; }
.rp-hm td.l { text-align: left; font-weight: 500; background: none; min-width: 180px; }
.rp-hm .gapc { width: 12px; min-width: 12px; background: linear-gradient(#D5DAE2, #D5DAE2) center/2px 100% no-repeat; padding: 0; }
.rp-df { color: #4B5563; }
td.v1, .rp-lg em.v1 { background: #F6E3DF; color: #8F3526; } td.v2, .rp-lg em.v2 { background: #F8EED6; color: #74540F; }
td.v3, .rp-lg em.v3 { background: #E6F1E2; color: #3F6E3A; } td.v4, .rp-lg em.v4 { background: #D8EBDD; color: #24613A; } td.v0, .rp-lg em.v0 { background: #F1F3F6; color: #9CA3AF; }
.rp-lg { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12px; color: #6B7280; margin-top: 12px; }
.rp-lg span { display: inline-flex; align-items: center; gap: 6px; } .rp-lg em { width: 24px; height: 12px; border-radius: 4px; display: inline-block; }
@media (max-width: 1000px) { .rp-md { grid-template-columns: 1fr; } .rp-list { display: none; } }
@media (max-width: 760px) {
  .rp-f { grid-template-columns: 1fr; } .rp-op { display: none; }
  .rp-mh, .rp-myl { display: none; } .rp-mtx { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .rp-row { grid-template-columns: 1fr 1fr; } .rp-row > span:first-child { grid-column: 1 / -1; }
  .rp-who { flex-wrap: wrap; } .rp-act { margin-left: 0; width: 100%; } .rp-act .btn { width: 100%; }
}
@media print { .rp-md { display: block; } .rp-list, .rp-nav { display: none !important; } }

/* отчет по команде: саммари, 9-box, мобильный список */
.tm-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: 20px; margin-bottom: 20px; align-items: start; }
.tm-2 > .card { margin: 0; }
.tm-sum { font-size: 13.5px; line-height: 1.6; color: #374151; margin: 12px 0 0; }
.nb9 { display: grid; grid-template-columns: 26px repeat(3, minmax(0, 1fr)); grid-auto-rows: minmax(104px, auto); gap: 6px; }
.nb9__y { font-size: 11.5px; color: #8A93A3; margin: -6px 0 6px; }
.nb9 > .nb9__y { grid-auto-rows: auto; height: 16px; }
.nb9__yl { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 11.5px; color: #8A93A3; display: flex; align-items: center; justify-content: center; }
.nb9__xl { font-size: 11.5px; color: #8A93A3; text-align: center; align-self: start; }
.nb9__c { border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; }
.nb9__t { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; font-weight: 600; }
.nb9__t em { font-style: normal; font-size: 12px; white-space: nowrap; background: rgba(255,255,255,.75); border-radius: 999px; padding: 1px 8px; height: fit-content; color: #4B5563; }
.nb9__av { display: flex; flex-wrap: wrap; margin-top: auto; }
.nb9__av .avatar-s { width: 28px; height: 28px; font-size: 11px; border: 2px solid #fff; margin: 0 -6px 0 0; cursor: help; }
.nb9__more { background: #fff !important; }
.k1 { background: #FBEDEA; color: #7A2E22; } .k2 { background: #FBF4E4; color: #6B4D0E; } .k3 { background: #EEF1F6; color: #374151; }
.k4 { background: #E7F2E9; color: #1F5733; } .k5 { background: #EAF0F8; color: #2B4476; }
.tm-mlist { display: none; }
.tm-mrow { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid #F0F2F5; font-size: 13.5px; }
.heat th.heat__c:last-child, .heat td.heat__c:last-child { border-left: 2px solid #D5DAE2 !important; }
@media (max-width: 1000px) { .tm-2 { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .tm-mlist { display: block; }
  .heat-wrap, details.fold:has(.heat-wrap) { display: none; }
  .nb9 { grid-template-columns: 18px repeat(3, minmax(0, 1fr)); grid-auto-rows: minmax(90px, auto); gap: 4px; }
  .nb9__c { padding: 8px; } .nb9__t { flex-direction: column; font-size: 11.5px; } .nb9__t em { align-self: flex-start; }
}
.ovdep--s { grid-template-columns: minmax(130px, 1fr) minmax(100px, 1.6fr) 50px; }

/* ============================================================ мобильная версия: каркас 2 */
.ptabs-m { display: none; }
.burger { display: none; }
.rsw__i { white-space: nowrap; }
@media (max-width: 760px) {
  /* компактная шапка проекта; главное действие — в панели внизу экрана */
  .phead { margin-bottom: 12px; gap: 10px; }
  .plogo { width: 34px; height: 34px; border-radius: 9px; font-size: 12px; }
  .plogo--sm { font-size: 16px; }
  .pprod { display: none; }
  .phead__t { flex: 1 1 auto; min-width: 0; }
  .phead__n { flex-wrap: nowrap; min-width: 0; }
  .phead__n h1 { font-size: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
  .phead__n .st { flex: 0 0 auto; }
  .phead__a { position: absolute; right: 16px; }
  .phead { position: relative; padding-right: 44px; }
  .phead__main { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 40; display: block; }
  .phead__main > a, .phead__main > button, .phead__main form, .phead__main form button { width: 100%; justify-content: center; display: flex; box-sizing: border-box; min-height: 46px; }
  .phead__main > a, .phead__main button { box-shadow: 0 6px 18px rgba(16,24,40,.18); }
  body:has(.phead__main) .page { padding-bottom: 84px; }
  .pcrumb { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  /* вкладки проекта — выпадающим списком */
  .ptabs:not(.ptabs--fixed) { display: none; }
  .ptabs-m { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; background: #fff; border: 1px solid #E7E9EE; border-radius: 12px; padding: 8px 12px; }
  .ptabs-m span { font-size: 12.5px; color: #8A93A3; }
  .ptabs-m select { flex: 1; border: 0; background: transparent; font: inherit; font-size: 15px; font-weight: 600; color: #111827; padding: 4px 0; }
  /* плитки обзора — по две в ряд */
  .ovgrid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .ovt { padding: 14px; } .ovbig { font-size: 22px; } .ovbig--txt { font-size: 16px; } .ovbig small { font-size: 12px; }
  .ovt .ovsub { font-size: 12px; }
  /* отчеты по сотрудникам — карточки */
  .rrow { grid-template-columns: 1fr auto; grid-template-areas: "who score" "meta meta" "act act"; gap: 8px; padding: 14px 0; }
  .rrow > span:nth-child(1) { grid-area: who; } .rrow > span:nth-child(4) { grid-area: score; }
  .rrow > span:nth-child(2), .rrow > span:nth-child(3) { display: inline; font-size: 12.5px; color: #6B7280; }
  .rrow > span:nth-child(2) { grid-area: meta; } .rrow > span:nth-child(3) { display: none; } .rrow > span:nth-child(5) { display: none; }
  .rrow > span:nth-child(6) { grid-area: act; text-align: left; } .rrow > span:nth-child(6) .rbtn { width: 100%; justify-content: center; box-sizing: border-box; }
  /* сбор ответов: без ссылок, почты и приглашений */
  td[data-label="Почта"], td[data-label="Ссылка"], td[data-label="Приглашение"] { display: none !important; }
  /* справочник: без почты и руководителя */
  td[data-label="Руководитель"] { display: none !important; }
  /* кнопки выгрузки в шапках отчетов */
  .phead .row-btns .btn--ghost, .phead .row-btns button.btn--ghost { display: none; }
  .phead .row-btns { position: static; }
  /* бургер у владельца */
  .burger { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 34px; border: 1px solid #DDE1E7; border-radius: 9px; background: #fff; font-size: 18px; margin-left: auto; margin-right: 8px; cursor: pointer; }
  .nav--burger { display: none; flex-direction: column; gap: 2px; padding: 8px 12px 12px; }
  .nav--burger.is-open { display: flex; }
  .nav--burger a { padding: 10px 12px; border-radius: 9px; }
}
@media (max-width: 760px) { .phead__t > div { min-width: 0; flex: 1 1 auto; overflow: hidden; } .phead .row-btns { flex: 0 0 auto; } }
@media (max-width: 760px) { .phead__main:has(> .btn--ghost) { display: none; } body:has(.phead__main > .btn--ghost) .page { padding-bottom: 0; } }
.comarks { display: inline-flex; gap: 6px; } .comarks .pmark i { width: 26px; height: 26px; }
.co-warn { min-height: 18px; margin-top: 0; }
.cogrid .ptile { gap: 10px; }
/* справочник: панель правки справа */
.pp-row { cursor: pointer; } .pp-row:hover { background: #F8F9FB; }
.pp-panel { position: fixed; inset: 0; background: rgba(17,24,39,.18); z-index: 80; display: flex; justify-content: flex-end; }
.pp-panel__b { width: 420px; max-width: 100%; height: 100%; background: #fff; box-shadow: -8px 0 24px rgba(16,24,40,.10); padding: 22px 24px; box-sizing: border-box; overflow: auto; transform: translateX(24px); opacity: 0; transition: transform .18s ease, opacity .18s ease; }
.pp-panel.on .pp-panel__b { transform: none; opacity: 1; }
.pp-panel__h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.pp-panel__h h2 { margin: 0; font-size: 18px; }
.pp-x { border: 0; background: none; font-size: 24px; color: #6B7280; cursor: pointer; line-height: 1; }
.pp-panel .field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; font-size: 13px; color: #4B5563; }
.pp-panel .check { display: flex; gap: 8px; align-items: center; font-size: 13.5px; margin: 4px 0 16px; }
.pp-part { font-size: 13px; line-height: 1.6; padding: 12px 0; border-top: 1px solid #F0F2F5; margin-bottom: 8px; }
.pp-act { display: flex; gap: 8px; }
/* «нет данных» — единый маркер */
.ndc, td.ndc, .rp-lg em.ndc { background: repeating-linear-gradient(-45deg, #EEF0F4 0 4px, #E2E6EC 4px 6px) !important; color: #6B7280 !important; font-size: 11.5px !important; font-weight: 700 !important; font-style: normal; border: 1px solid #E2E6EC; }
.rp-lg em.ndc { width: auto; height: auto; padding: 1px 7px; border-radius: 5px; }
.rp-row--h { border-top: 0; font-size: 12.5px; color: #8A93A3; padding-bottom: 0; margin-top: 18px; }
.rp-row small { font-size: 11.5px; font-weight: 500; }
.rp-row { grid-template-columns: minmax(200px, 1.8fr) 90px 90px minmax(150px, 1fr); }
.rp-hrow { display: grid; grid-template-columns: minmax(200px, 1.6fr) 70px 110px 160px; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid #F0F2F5; font-size: 13.5px; }
.rp-hrow > span:first-child { display: flex; flex-direction: column; } .rp-hrow b { font-weight: 600; }
.rp-hist { margin-bottom: 20px; }
@media (max-width: 760px) { .rp-hrow { grid-template-columns: 1fr auto; } .rp-row--h { display: none; } }
.lv.lv--none.ndc, .heat td.lv--none { background: repeating-linear-gradient(-45deg, #EEF0F4 0 4px, #E2E6EC 4px 6px); color: #6B7280; font-size: 11.5px; font-weight: 700; }
.sc.ndc { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 26px; border-radius: 7px; box-sizing: border-box; }
.ndbar { display: block; height: 8px; border-radius: 5px; background: repeating-linear-gradient(-45deg, #F1F3F6 0 4px, #E6E9EE 4px 6px); }
.mx td.ndc { font-size: 11px !important; }
.pp-panel[hidden] { display: none !important; }
.pp-check { display: flex; align-items: center; gap: 8px; font-size: 13.5px; margin: 4px 0 16px; white-space: nowrap; }
.pp-check input { width: 16px; height: 16px; margin: 0; }
@media (max-width: 760px) { .rp-row { grid-template-columns: 1fr 1fr 1fr; } .rp-row > span:first-child { grid-column: 1 / -1; min-width: 0; } .rp-row > span:last-child { white-space: normal; } .rp-hist summary { flex-wrap: wrap; } }
.ind2__ph:empty { display: none; }
/* матрица «кто → кого»: подписи осей как в классической таблице */
.mxa { display: flex; flex-direction: column; }
.mxa__top { font-size: 12px; font-weight: 600; color: #4B5563; text-align: center; margin: 0 0 6px 150px; letter-spacing: .01em; }
.mxa__row { display: flex; align-items: stretch; }
.mxa__left { flex: 0 0 22px; display: flex; align-items: center; justify-content: center; }
.mxa__left span { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 12px; font-weight: 600; color: #4B5563; white-space: nowrap; }
.mxa .mx-wrap { flex: 1; min-width: 0; }
.mx__corner { min-width: 120px !important; }
@media (max-width: 760px) { .mxa__top { margin-left: 120px; } }
.mxhow { font-size: 12.5px; color: #4B5563; background: #F8F9FB; border-radius: 9px; padding: 8px 12px; margin: 0 0 14px; }
.mx .mx__sep td { height: 1px !important; padding: 0; background: #D5DAE2 !important; border-radius: 0; }
.mx__all th { color: #1F3B7A; }
.mx th.mx__row.hl, .mx th.mx__col.hl { background: #EEF2FB !important; border-radius: 6px; }
/* пояснение об ограничениях отчета: отдельной строкой с воздухом, а не впритык к карточкам */
.limit--note { margin: 14px 4px 22px !important; padding-left: 12px; border-left: 2px solid #E0E3E9; font-style: normal; color: #6B7280; font-size: 12.5px; line-height: 1.55; }
/* востребованность: всегда нейтральная плашка; признак «перегружены обращениями» — маленькой точкой, а не красным текстом */
.sc.neu.bn { color: #3B4A6B !important; --c: var(--neutral); display: inline-flex; align-items: center; gap: 5px; }
.sc.neu.bn::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #E0B656; flex: 0 0 auto; }

/* ================= матрица Sociometrix: строки — кого оценивают, столбцы — кто оценивает */
.mx2 { position: relative; }
.mx2 .mx-wrap { position: relative; z-index: 1; }
.mx2__g { position: absolute; left: 0; top: 0; z-index: 0; pointer-events: none; overflow: visible; }
.mx2__g path { fill: #F1F4FA; stroke: #8FA3CC; stroke-width: 1; stroke-linejoin: round; opacity: 0;
  transition: d .22s ease, opacity .22s ease; }
.mx2.is-on .mx2__g path { opacity: 1; }
.mx2t { border-collapse: separate; border-spacing: 5px; }
.mx2t .mx__col { width: 76px; min-width: 76px; font-size: 12px; font-weight: 500; color: #6B7280; transition: color .2s ease; }
.mx2t .mx__row { font-size: 15px; font-weight: 500; color: #111827; text-align: left; white-space: nowrap; padding: 0 14px 0 4px; transition: color .2s ease; }
.mx2t .mx__col.hl, .mx2t .mx__row.hl { color: #1F3B7A; font-weight: 600; background: none !important; }
.mx2t .mx__col.hl span { font-weight: 600; }
.mx2t td { width: 76px; height: 40px; transition: box-shadow .2s ease; }
.mx2t td.mx__v:hover, .mx2t td.mx__v:focus { outline: none; box-shadow: inset 0 0 0 1.5px currentColor; }
.mx2t td.mx__v::after, .mx2t td.mx__v:hover::after { display: none !important; }
.mx2t td.mx__nd { background: repeating-linear-gradient(-45deg, #F7F8FA 0 5px, #F0F2F5 5px 7px) !important; color: #B4BAC4 !important; font-weight: 400 !important; font-size: 11.5px !important; border: 0 !important; }
.mx2t td.mx__nd:hover { box-shadow: inset 0 0 0 1px #C9CED6; }
.mx2t td.mx__self { background: #F4F5F7; }
.mx2__grp { font-size: 12px; font-weight: 600; color: #6B7280; text-align: center; padding-bottom: 4px; border-bottom: 1px solid #D5DAE2; }
.mx2__v0 { width: 26px; }
.mx2__vax { width: 26px; padding: 0 6px 0 0; border-right: 1px solid #D5DAE2; vertical-align: middle; }
.mx2__vax span { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 12px; font-weight: 600; color: #6B7280; white-space: nowrap; display: inline-block; }
.mx2__gap, .mx2__gap0 { width: 10px; min-width: 10px; padding: 0; }
.mx2__gap { background: linear-gradient(#DDE1E7, #DDE1E7) center/2px 100% no-repeat; }
.mx2__tot { font-size: 12px; font-weight: 600; color: #1F3B7A; width: 80px; }
.mx2__t { font-weight: 700 !important; box-shadow: inset 0 0 0 1.5px rgba(31,59,122,.16); }
.mx2t .mx__corner { min-width: 0 !important; }
.mx2t tr:hover th.mx__row:not(.hl) { background: none; }
@media (prefers-reduced-motion: reduce) { .mx2__g path, .mx2t td { transition: none; } }
.mx2t { width: auto !important; }
.mx2t .mx__col span { font-weight: 500; }
.mx2t .mx__col.hl span { font-weight: 600; }
/* направления в проблемной зоне — кластеры по оцениваемому подразделению */
.pcl { border: 1px solid #EEF0F4; border-radius: 12px; margin-bottom: 12px; overflow: hidden; }
.pcl__h { display: flex; align-items: center; gap: 14px; padding: 12px 16px; background: #FBF6F4; border-left: 4px solid #D9826F; flex-wrap: wrap; }
.pcl__h .ulink { font-size: 15.5px; }
.pcl__m { font-size: 12.5px; color: #6B7280; }
.pcl__r { display: grid; grid-template-columns: minmax(150px, 1fr) 110px 110px minmax(200px, 2.4fr); gap: 12px; align-items: center; padding: 10px 16px 10px 20px; border-top: 1px solid #F0F2F5; font-size: 13.5px; }
.pcl__r--h { font-size: 11.5px; color: #8A93A3; font-weight: 600; border-top: 0; padding-top: 8px; padding-bottom: 0; }
.pcl__a { font-size: 12.5px; color: #4B5563; }
@media (max-width: 760px) { .pcl__r { grid-template-columns: 1fr auto auto; } .pcl__r--h { display: none; } .pcl__a { grid-column: 1 / -1; } }
/* наведение: бледнеет путь уголка, цвета подписей осей */
.mx2t td { transition: box-shadow .2s ease, opacity .22s ease; }
.mx2t td.mx2-dim { opacity: .35; }
.mx2t .mx__row.hl { color: #1F3B7A !important; font-weight: 600; }
.mx2t .mx__col.hl, .mx2t .mx__col.hl span { color: #374151 !important; font-weight: 600; }
/* кластеры направлений в проблемной зоне */
.pcl { border: 1px solid #EEF0F4; border-radius: 12px; margin-bottom: 12px; overflow: hidden; }
.pcl__h { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 16px; background: #FBF6F4; border-left: 4px solid #D9826F; font-size: 15px; }
.pcl__h .ulink { font-size: 15px; font-weight: 600; }
.pcl__r { display: grid; grid-template-columns: minmax(150px, 1fr) 110px 110px minmax(220px, 2.4fr); gap: 12px; align-items: center; padding: 10px 16px 10px 20px; border-top: 1px solid #F0F2F5; font-size: 13.5px; }
.pcl__r--h { font-size: 11.5px; color: #8A93A3; font-weight: 600; border-top: 0; padding-top: 8px; padding-bottom: 0; }
@media (max-width: 760px) { .pcl__r { grid-template-columns: 1fr auto auto; } .pcl__r > span:last-child { grid-column: 1 / -1; } .pcl__r--h { display: none; } }
/* без «дергания»: ширина подписи заранее рассчитана под полужирное начертание */
.mx2t .mx__col span, .mx2t .mx__row span { display: inline-flex; flex-direction: column; align-items: center; }
.mx2t .mx__row span { align-items: flex-start; }
.mx2t .mx__col span::after, .mx2t .mx__row span::after { content: attr(data-t); font-weight: 600; height: 0; visibility: hidden; overflow: hidden; pointer-events: none; user-select: none; }
.mx2t .mx__col { width: 84px; min-width: 84px; max-width: 84px; }
.mx2t td { min-width: 76px; }
/* итог — рядом, через узкую черту */
.mx2t .mx2__gap, .mx2t .mx2__gap0 { width: 8px !important; min-width: 8px !important; max-width: 8px !important; }
.mx2t .mx2__tot { width: 80px; min-width: 80px; }
/* вариант A: светло-серый контур; наведенная клетка всегда в полную силу */
.mx2__g path { stroke: #C4CAD3; fill: #F4F5F7; }
.mx2t td.mx__v:hover, .mx2t td.mx__v:focus { opacity: 1 !important; }
/* наведенная клетка ярче соседних: насыщенный цвет, плотный шрифт */
.mx2t td.mx__v:hover, .mx2t td.mx__v:focus { filter: saturate(1.35) brightness(.97); font-weight: 700; }
/* выбранная клетка: пока курсор на другой клетке — только легкая метка; когда курсор ушел — контур возвращается к ней */
.mx2t td.is-sel { box-shadow: inset 0 0 0 1.5px #C4CAD3 !important; position: relative; }
.mx2t td.is-sel::before { content: ""; position: absolute; top: 5px; right: 5px; width: 6px; height: 6px; border-radius: 50%; background: #6B7280; }
.mx2.is-on td.is-sel.mx2-cur, .mx2t td.is-sel:hover { box-shadow: inset 0 0 0 1.5px currentColor !important; filter: saturate(1.35) brightness(.97); font-weight: 700; }
/* выбранная клетка без отдельной метки: точки и серой рамки нет */
.mx2t td.is-sel { box-shadow: none !important; }
.mx2t td.is-sel::before { display: none !important; content: none !important; }
.mx2t td.is-sel:hover, .mx2.is-on td.mx2-cur { box-shadow: inset 0 0 0 1.5px currentColor !important; }
/* линия «Кто оценивает» — всегда над контуром и с запасом от него */
.mx2__grp { padding-bottom: 6px !important; position: relative; z-index: 2; }
.mx2t thead tr:first-child th { padding-bottom: 6px; }
/* контур — поверх клеток, только линия по промежуткам; без заливки */
.mx2__g { z-index: 3 !important; }
.mx2__g path { fill: none !important; stroke: #C4CAD3 !important; stroke-width: 1.5 !important; }
.mx2t .mx__row.hl { background: #F4F5F7 !important; border-radius: 8px; }
.mx2t .mx__col.hl { background: #F4F5F7 !important; border-radius: 8px; }
/* одна фигура: заливка под клетками и линия над ними — одинаковые отступы со всех сторон */
.mx2__f { position: absolute; left: 0; top: 0; z-index: 0; pointer-events: none; overflow: visible; }
.mx2__f path { fill: #F4F5F7; stroke: none; opacity: 0; transition: d .22s ease, opacity .22s ease; }
.mx2.is-on .mx2__f path { opacity: 1; }
.mx2t .mx__row.hl, .mx2t .mx__col.hl { background: none !important; }
/* бледные клетки на пути — непрозрачные, чтобы серый фон не просвечивал */
.mx2t td.mx2-dim { opacity: 1 !important; filter: saturate(.35) brightness(1.08) contrast(.85); color: #B4BAC4 !important; }
.mx2t td.mx2-dim { filter: saturate(.3) brightness(1.16) contrast(.7); color: #C4CAD3 !important; }
/* бледнение белой вуалью: клетка остается непрозрачной, цвет светлеет, а не сереет */
.mx2t td.mx2-dim { filter: none !important; box-shadow: inset 0 0 0 60px rgba(255,255,255,.62) !important; color: #C4CAD3 !important; }
/* возврат к версии 24: контур поверх, без заливки; плашки названий — по сетке клеток */
.mx2__f rect { fill: #EEF2FB; }
.mx2__f { opacity: 0; transition: opacity .22s ease; }
.mx2.is-on .mx2__f { opacity: 1; }
.mx2__f path { display: none; }
.mx2t .mx__row.hl, .mx2t .mx__col.hl { background: none !important; }
.mx2t td.mx2-dim { box-shadow: none !important; opacity: .35 !important; color: inherit !important; }
/* скрытое атрибутом hidden скрыто всегда: иначе display:grid/flex у строк перебивал его, и фильтры «не работали» */
[hidden] { display: none !important; }
/* воздух внизу любого экрана */
.page { padding-bottom: 48px; }
@media (max-width: 760px) { .page { padding-bottom: calc(40px + env(safe-area-inset-bottom, 0px)); } body:has(.phead__main > .btn--primary, .phead__main > .rbtn, .phead__main form) .page { padding-bottom: calc(110px + env(safe-area-inset-bottom, 0px)); } }

/* ===== 360 · индивидуальный отчет: доработки по макету */
.rp-zero { color: #9CA3AF; }
/* компетенции в квадратах — одинаковые плашки */
.rp-nm { display: grid !important; grid-template-columns: 1fr; gap: 8px; }
.rp-nm span { display: grid !important; grid-template-columns: 22px 1fr; align-items: center; gap: 10px; height: 40px; padding: 0 12px !important; box-sizing: border-box; border-radius: 9px; }
.rp-nm span i { width: 22px; height: 22px; }
/* заголовки столбцов — под цветной строкой каждой группы */
.rp-gh + .rp-row--h { margin-top: 4px; padding-top: 10px; }
.rp-row--h > span:not(:first-child), .rp-row > span:not(:first-child) { text-align: center; justify-content: center; }
/* компетенции по группам оценщиков */
.rg-title { margin-bottom: 32px !important; }
.rg-wrap { position: relative; }
.rg-ln { position: absolute; left: 0; top: 0; z-index: 2; pointer-events: none; overflow: visible; }
.rg-ln path { fill: none; stroke: #C9CFD8; stroke-width: 1.2; }
table.rg { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 13px; position: relative; z-index: 1; min-width: 640px; }
.rg col.rg-c0 { width: 38%; } .rg col.rg-cn { width: 92px; } .rg col.rg-cs { width: 36px; }
.rg th { font-size: 12px; color: #6B7280; font-weight: 500; padding: 0 6px 8px; text-align: center; white-space: nowrap; }
.rg th.rg-gl { text-align: left; padding-left: 12px; font-weight: 600; color: #4B5563; }
.rg th.rg-gc { font-weight: 600; color: #4B5563; }
.rg th.rg-b { color: #111827; font-weight: 600; }
.rg td { padding: 5px 6px; text-align: center; }
.rg td.rg-n { text-align: left; padding-left: 12px; }
.rg tbody tr:nth-child(even) td { background: var(--zebra); }
.rg tbody tr td:first-child { border-radius: 8px 0 0 8px; } .rg tbody tr td:last-child { border-radius: 0 8px 8px 0; }
.rg-v { display: flex; align-items: center; justify-content: center; height: 36px; border-radius: 8px; font-weight: 600; }
.rg-v.v1 { background: #F6E3DF; color: #8F3526; } .rg-v.v2 { background: #F8EED6; color: #74540F; } .rg-v.v3 { background: #E6F1E2; color: #3F6E3A; } .rg-v.v4 { background: #D8EBDD; color: #24613A; }
.rg-sq { width: 56px; margin: 0 auto; font-weight: 700; }
.rg-self { background: #fff !important; box-shadow: inset 0 0 0 2px var(--bd); }
.rg-self.v1 { --bd: #EFCFC6; } .rg-self.v2 { --bd: #F1E0B5; } .rg-self.v3 { --bd: #D2E6CA; } .rg-self.v4 { --bd: #BFDCC8; }
.rg-lg { margin-top: 28px !important; padding-top: 16px; border-top: 1px solid #F0F2F5; }
.rg-lg em { width: 14px !important; height: 14px !important; border-radius: 4px; box-shadow: inset 0 0 0 1px rgba(17,24,39,.08); }
@media (max-width: 760px) { .rg col.rg-c0 { width: 200px; } }
/* подсказки — легкая прозрачность */
.hint, .tip, [role="tooltip"], .eva-tip { background: rgba(255,255,255,.92) !important; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.hintbox { background: rgba(255,255,255,.9) !important; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border-color: rgba(227,231,238,.9) !important; }

/* ===================================================================
   Sociometrix · анкета «люди оценивают людей»: один вопрос на экран.
   Компьютер — подпись под каждым баллом; телефон — подписи краев шкалы
   и расшифровка выбранного балла в плашке.
   =================================================================== */
.sq__facts { color: var(--text-soft); font-size: 14px; margin: 0 0 8px; }
.sq__note { background: var(--brand-soft); color: #1F3A78; border-radius: 10px; padding: 12px 16px; font-size: 14px; margin: 0 0 24px; }
.sq__top { font-size: 13px; color: var(--text-faint); margin-bottom: 12px; }
.sq__beads { position: relative; display: flex; justify-content: space-between; margin: 0 0 24px; }
.sq__beads::before { content: ""; position: absolute; left: 4px; right: 4px; top: 50%; height: 1.5px; background: var(--border); transform: translateY(-50%); }
.sq__bead { position: relative; width: 10px; height: 10px; border-radius: 50%; background: var(--surface); border: 1.5px solid var(--border-strong); }
.sq__bead.is-done { background: #C5CBD6; border-color: #C5CBD6; }
.sq__bead.is-cur { background: #C5CBD6; border-color: #C5CBD6; box-shadow: 0 0 0 4px var(--brand-soft); }
.sq__who { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.sq__ava { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; background: #EEF1F5; color: var(--text-soft);
  display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; letter-spacing: .02em; }
.sq__who b { display: block; font-size: 15.5px; }
.sq__pos { display: block; font-size: 13px; color: var(--text-soft); }
.sq__f { border: 0; padding: 0; margin: 0; min-width: 0; }
.sq__f legend { padding: 0; margin-bottom: 16px; }
.sq__cap { display: block; font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 8px; }
.sq__q { display: block; font-size: 18px; font-weight: 600; line-height: 1.4; color: var(--text); }
.sq__scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.sq__o { position: relative; display: flex; flex-direction: column; align-items: stretch; gap: 8px; cursor: pointer; }
.sq__o input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sq__b { display: flex; align-items: center; justify-content: center; height: 48px; border: 1.5px solid var(--border); border-radius: 10px;
  background: var(--surface); font-size: 16px; font-weight: 600; color: var(--text-soft); transition: background .12s, border-color .12s, color .12s; }
.sq__o:hover .sq__b { border-color: var(--border-strong); }
.sq__o input:checked + .sq__b { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.sq__o input:focus-visible + .sq__b { outline: 2px solid var(--brand); outline-offset: 2px; }
.sq__t { font-size: 12px; line-height: 1.35; text-align: center; color: var(--text-faint); }
.sq__o input:checked ~ .sq__t { color: #1F3A78; font-weight: 600; }
.sq__ends { display: none; justify-content: space-between; gap: 12px; margin-top: 8px; font-size: 12px; color: var(--text-faint); }
.sq__plate { display: none; margin-top: 16px; padding: 12px 16px; border-radius: 10px; font-size: 14px; color: var(--text-faint); }
.sq__plate.is-set { background: var(--brand-soft); color: #1F3A78; }
.sq__back { background: none; border: 0; padding: 8px 0; font: inherit; font-size: 14px; color: var(--text-faint); cursor: pointer; text-decoration: none; }
.sq__back:hover { color: var(--text-soft); text-decoration: none; }
.sq .btn[disabled] { opacity: .45; cursor: default; pointer-events: none; }
.sv .pick--locked:has(input:disabled) { opacity: 1; cursor: default; }
.sv .pick--locked small { color: var(--brand-text); }
@media (max-width: 620px) {
  .sq__q { font-size: 17px; }
  .sq__t { display: none; }
  .sq__ends, .sq__plate { display: flex; }
  .sq__b { height: 44px; }
}

/* ===================================================================
   Sociometrix · «Участники» (люди оценивают людей): строка и раскрытие —
   единый блок, плашки коллег с крестиком, подтверждение рядом с плашкой.
   =================================================================== */
.smp__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.smp__r { display: grid; grid-template-columns: minmax(200px, 2fr) minmax(110px, 1.1fr) 96px 88px minmax(170px, 1.4fr) 92px; gap: 12px; align-items: center; padding: 10px 12px; font-size: 13.5px; }
.smp__r--h { font-size: 12px; color: var(--text-faint); padding-top: 0; padding-bottom: 8px; }
.smp__i { border-radius: 12px; border: 1px solid transparent; }
.smp__i:nth-of-type(even):not(.is-open) { background: #F8F9FB; }
.smp__i > .smp__r { cursor: pointer; }
.smp__i > .smp__r:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; border-radius: 12px; }
.smp__i.is-open { border-color: var(--border-strong); background: var(--surface); margin: 4px 0; }
.smp__who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.smp__who > span:last-child { min-width: 0; }
.smp__who b { display: block; font-weight: 600; color: var(--link, #2F5AA8); }
.smp__who small { display: block; font-size: 12px; color: var(--text-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.smp__ava { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; background: #EEF1F5; color: var(--text-soft); font-size: 11.5px; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center; }
.smp__tg { text-align: right; font-size: 12.5px; color: var(--text-faint); }
.smp__tg-c, .smp__i.is-open .smp__tg-o { display: none; } .smp__i.is-open .smp__tg-c { display: inline; }
.smp__x { display: none; padding: 4px 12px 16px 52px; }
.smp__i.is-open .smp__x { display: block; }
.smp__xh { font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.smp__chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.smchip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px 5px 10px; border-radius: 8px; background: #F1F3F6; font-size: 13px; color: var(--text); border: 1px solid transparent; }
.smchip small { font-size: 12px; color: var(--text-faint); }
.smchip--hr { background: var(--brand-soft); }
.smchip.is-armed { border-color: #C9776A; background: #fff; }
.smchip__x { border: 0; background: none; padding: 0 2px; font-size: 15px; line-height: 1; color: #9AA3B2; cursor: pointer; }
.smchip__x:hover, .smchip.is-armed .smchip__x { color: #B4483A; }
.smchip--add { background: var(--surface); border: 1px solid var(--border-strong); cursor: pointer; padding: 5px 10px; font: inherit; font-size: 13px; }
.smchip--add:hover { border-color: var(--brand); color: var(--brand-text); }
.smadd { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; flex-basis: 100%; }
.smadd .input { max-width: 320px; padding-top: 6px; padding-bottom: 6px; }
.smpop { position: absolute; z-index: 40; width: 280px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-md); padding: 12px 16px; font-size: 13px; }
.smpop::before { content: ""; position: absolute; top: -6px; left: var(--ax, 24px); width: 10px; height: 10px; background: var(--surface); border-left: 1px solid var(--border); border-top: 1px solid var(--border); transform: rotate(45deg); }
.smpop b { display: block; margin-bottom: 4px; }
.smpop p { color: var(--text-soft); margin: 0 0 12px; }
.smpop form { display: flex; gap: 8px; }
.smpop__ok { background: #B4483A; color: #fff; border: 1px solid #B4483A; }
.smpop__ok:hover { background: #993A2E; }
.rst { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.rst--g { background: var(--ok-soft); color: var(--ok); } .rst--y { background: var(--warn-soft); color: var(--warn); } .rst--n { background: #F1F3F6; color: var(--text-soft); }
@media (max-width: 900px) {
  .smp__r--h { display: none; }
  .smp__r { grid-template-columns: 1fr auto; row-gap: 6px; }
  .smp__r > span:nth-child(2), .smp__r > span:nth-child(3), .smp__r > span:nth-child(4) { font-size: 12.5px; color: var(--text-soft); }
  .smp__r > span:nth-child(3)::before, .smp__r > span:nth-child(4)::before { content: attr(data-l) ": "; }
  .smp__tg { display: none; }
  .smp__x { padding-left: 12px; }
}

/* ===================================================================
   Ноутбуки (1200–1599 px): компактнее каркас, шрифт и отступы, чтобы
   отчеты помещались без горизонтальной прокрутки. Шкала отступов
   8 · 12 · 16 · 24 сохраняется, внутреннее меньше внешнего.
   =================================================================== */
@media (min-width: 1001px) and (max-width: 1199px) { body { font-size: 14px; } h1 { font-size: 23px; } h2 { font-size: 16px; } .card { padding: 20px; } }
@media (min-width: 1200px) and (max-width: 1599px) {
  body { font-size: 14px; }
  h1 { font-size: 23px; }
  h2 { font-size: 16px; }
  .side { width: 208px; padding: 16px 8px 12px; }
  .side__brand { padding: 2px 8px 12px; }
  .side__group { padding: 12px 12px 4px; }
  .side__nav a { padding: 8px 12px; font-size: 13.5px; gap: 10px; }
  .side__nav svg { width: 16px; height: 16px; }
  body.app > main.page { margin-left: 208px; padding-left: 24px; padding-right: 24px; }
  .card { padding: 20px; }
  .card + .card { margin-top: 12px; }
  .rp-md { grid-template-columns: 228px minmax(0, 1fr); gap: 16px; }
  .rp-list { padding: 8px; }
  .rp-li { padding: 8px; gap: 8px; }
  .rp-li__n b { font-size: 13px; }
  .rp-main > .card, .rp-main > .notice { margin-bottom: 16px; }
}

/* 360 · «Компетенции по группам оценщиков»: таблица по ширине карточки, без прокрутки.
   Заголовки групп переносятся по словам, плашки сужаются вместе со столбцом. */
@media (min-width: 761px) {
  table.rg { min-width: 0; }
  .rg col.rg-c0 { width: 30%; } .rg col.rg-cn { width: 76px; } .rg col.rg-cs { width: 16px; }
  .rg th { white-space: normal; line-height: 1.25; padding: 0 4px 8px; vertical-align: bottom; }
  .rg td { padding: 4px; }
  .rg td.rg-n { line-height: 1.35; }
  .rg-v { height: 32px; }
  .rg-sq { width: auto; max-width: 56px; }
}
@media (min-width: 761px) and (max-width: 1599px) {
  .rg { font-size: 12.5px; }
  .rg th { font-size: 11.5px; }
}
/* длинное название группы (Руководитель, Подчиненные) при узком столбце переносится по слогам, а не наезжает на соседа */
@media (min-width: 761px) {
  .rg thead th { -webkit-hyphens: auto; hyphens: auto; }
  .rg col.rg-c0 { width: 26%; } .rg col.rg-cn { width: 80px; }
  .rg-wrap { container-type: inline-size; }
}
/* узкая карточка: подписи столбцов мельче, чтобы слова помещались целиком */
@container (max-width: 640px) { .rg thead tr + tr th { font-size: 10.5px; letter-spacing: -0.01em; } .rg td.rg-n { font-size: 12px; } }

/* Sociometrix · переключатель отчетов на три вкладки и «Как читать отчет» справа */
.rsw--3 { grid-template-columns: repeat(3, 1fr); width: 560px; }
.rsw button.rsw__i { border: 0; background: transparent; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.rsw button.rsw__i.on { background: #3B5BA5; color: #fff; }
.rhow { display: inline-flex; align-items: center; gap: 8px; border: 0; background: none; font: inherit; font-size: 13.5px; color: var(--brand-text); cursor: pointer; padding: 8px 0; }
.rhow i { width: 18px; height: 18px; border-radius: 50%; background: var(--brand-soft); font-style: normal; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.rhow:hover, .rhow.on { color: #1F3A78; }
/* «По сотрудникам»: таблица по макету 6 */
.smpl__ctl { margin-bottom: 16px; }
.smpl__r { display: grid; grid-template-columns: minmax(200px, 1.7fr) minmax(110px, 1fr) minmax(80px, .7fr) minmax(130px, 1fr) minmax(140px, 1.05fr) 150px; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 10px; font-size: 13.5px; }
.smpl__r:nth-child(odd):not(.smpl__r--h) { background: #F8F9FB; }
.smpl__r--h { font-size: 12px; color: var(--text-faint); padding-top: 0; padding-bottom: 8px; }
.smpl__who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.smpl__who > span:last-child { min-width: 0; }
.smpl__who small { display: block; font-size: 12px; color: var(--text-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.smpl__v { display: flex; align-items: center; gap: 8px; }
.smpl__v .sc { min-width: 44px; }
.smpl__w { font-size: 12.5px; color: var(--text-soft); }
.smpl__a { text-align: right; }
@media (max-width: 900px) {
  .rsw--3 { width: 100%; }
  .smpl__r--h { display: none; }
  .smpl__r { grid-template-columns: 1fr 1fr; row-gap: 8px; }
  .smpl__who { grid-column: 1 / -1; }
  .smpl__a { grid-column: 1 / -1; text-align: left; }
}

/* Ссылки участников: столбцы фиксированной ширины, ссылка сокращается многоточием,
   кнопка «Копировать» всегда внутри карточки */
.table--links { table-layout: fixed; width: 100%; }
.table--links col.tl-who { width: 26%; } .table--links col.tl-unit { width: 18%; }
.table--links td { overflow: hidden; }
.table--links .code-line { font-size: 12px; padding: 6px 10px; }
.table--links .copyrow .btn { flex: 0 0 auto; }
@media (max-width: 620px) { .table--links { table-layout: auto; } .table--links td { overflow: visible; } .table--links .copyrow { width: 100%; } }

/* Справочник · панель сотрудника: проекты — каждый на своей строке; новый руководитель */
.pp-part__h { color: var(--text-faint); margin-bottom: 8px; }
.pp-plist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.pp-plist li { line-height: 1.4; }
.pp-newmgr { border: 1px solid var(--border); border-radius: 12px; padding: 12px 16px 4px; margin: -4px 0 16px; background: #FAFBFC; }
.pp-newmgr__h { font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.pp-newmgr .mini { margin: 0 0 12px; }

/* ===================================================================
   Проверка ширины экрана (сборка 34): ничего не выходит за край.
   =================================================================== */
/* «Участники» и «По сотрудникам»: столбцы ужимаются до ширины ноутбука */
@media (min-width: 901px) {
  .smp__r { grid-template-columns: minmax(150px, 2fr) minmax(90px, 1fr) 84px 76px minmax(150px, 1.4fr) 84px; }
  .smpl__r { grid-template-columns: minmax(160px, 1.7fr) minmax(90px, 1fr) minmax(64px, .6fr) minmax(120px, 1fr) minmax(130px, 1.05fr) 140px; }
}
.smp__r > span, .smpl__r > span { min-width: 0; }
/* Переключатель отчетов на телефоне: три сегмента в ширину экрана, подписи переносятся */
@media (max-width: 620px) {
  .rsw--3 .rsw__i { padding: 8px 4px; font-size: 12.5px; line-height: 1.25; white-space: normal; }
}
/* Матрица Sociometrix: на ноутбуке ячейки компактнее; если подразделений больше,
   чем помещается, матрица прокручивается внутри своего блока, а не вся страница */
@media (max-width: 1599px) {
  .mx2t { border-spacing: 4px; }
  .mx2t td, .mx2t .mx__col { width: 64px; min-width: 64px; }
  .mx2t .mx__col { font-size: 11.5px; }
  .mx2t .mx__row { font-size: 14px; padding-right: 10px; }
  .mx2__tot { width: 70px; }
}
.mx2 { max-width: 100%; overflow-x: auto; overflow-y: hidden; }
/* «Подразделения» в отчете по компании: на ноутбуке плотнее, чтобы таблица помещалась целиком */
@media (max-width: 1599px) {
  .rt--units th, .rt--units td { padding-left: 6px; padding-right: 6px; }
  .rt--units th { font-size: 11.5px; }
}

/* ===================================================================
   Sociometrix · отчет по сотруднику (макеты 7–8)
   =================================================================== */
.pr-back { margin: 0 0 12px; }
.pr-head__t { display: flex; align-items: flex-start; gap: 16px; }
.pr-head__n { flex: 1 1 auto; min-width: 0; }
.pr-head__n h1 { font-size: 22px; margin: 0 0 4px; }
.pr-head__s { font-size: 13.5px; color: var(--text-soft); margin-bottom: 8px; }
.pr-ava { flex: 0 0 auto; width: 56px; height: 56px; border-radius: 50%; background: #EEF1F5; color: var(--text-soft); font-size: 18px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; }
.pr-type { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.pr-type--r { background: #FBE6E1; color: #8F3526; } .pr-type--g { background: #E6F1E2; color: #2F6B3A; }
.pr-type--b { background: #E7EDF8; color: #2B4476; } .pr-type--n { background: #F1F3F6; color: #4B5563; }
.pr-sum { margin: 16px 0 0; padding-top: 16px; border-top: 1px solid #F0F2F5; line-height: 1.55; }
.pr-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.pr-tiles .card { margin: 0; }
.pr-t { display: flex; flex-direction: column; gap: 8px; }
.pr-t__k { font-size: 12.5px; font-weight: 600; color: var(--text-soft); }
.pr-t__v { font-size: 22px; font-weight: 700; } .pr-t__v small { font-size: 12.5px; font-weight: 600; margin-left: 4px; }
.pr-w--lv1 { color: #B4483A; } .pr-w--lv2 { color: #8A6512; } .pr-w--lv3, .pr-w--lv4 { color: #2F6B3A; } .pr-w--neu { color: #2B4476; }
.pr-t--zone { background: #FDF8EA; border-color: #F1E3B8; }
.pr-t--zone .pr-t__k { color: #8A6512; }
.pr-t__z { font-size: 15px; font-weight: 700; } .pr-t__s { font-size: 12.5px; color: var(--text-soft); line-height: 1.45; }
.bat { display: inline-flex; gap: 4px; }
.bat i { width: 22px; height: 10px; border-radius: 3px; background: #fff; box-shadow: inset 0 0 0 1px #D9DDE3; overflow: hidden; display: block; }
.bat b { display: block; height: 100%; }
.bat.lv1 b { background: #E08A78; } .bat.lv2 b { background: #E9C46A; } .bat.lv3 b { background: #93C47D; } .bat.lv4 b { background: #4FA66B; } .bat.neu b { background: #5B7DBF; }
.pr-ring { display: flex; align-items: center; gap: 12px; }
.pr-ring svg { width: 48px; height: 48px; transform: rotate(-90deg); flex: 0 0 auto; }
.pr-ring__bg { fill: none; stroke: #EEF1F5; stroke-width: 4; } .pr-ring__fg { fill: none; stroke: #3B5BA5; stroke-width: 4; stroke-linecap: round; }
.pr-ring b { display: block; font-size: 17px; } .pr-ring span { display: block; font-size: 12px; color: var(--text-soft); line-height: 1.35; }
.pr-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; margin-top: 12px; }
.pr-two .card { margin: 0; }
.pr-ind { display: grid; grid-template-columns: minmax(130px, 1fr) auto minmax(110px, auto); gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid #F0F2F5; font-size: 13.5px; }
.pr-ind__n { font-weight: 600; } .pr-ind__v { white-space: nowrap; }
.pr-note { margin: 16px 0 0; padding: 12px 16px; background: #F7F8FA; border-radius: 10px; font-size: 13.5px; line-height: 1.5; }
.pr-map { display: grid; grid-template-columns: 20px 1fr; grid-template-rows: 1fr auto; gap: 8px; }
.pr-map__y { grid-row: 1; writing-mode: vertical-rl; transform: rotate(180deg); font-size: 11.5px; font-weight: 600; color: var(--text-faint); text-align: center; }
.pr-map__x { grid-column: 2; font-size: 11.5px; font-weight: 600; color: var(--text-faint); text-align: center; border-top: 1px solid #D5DAE2; padding-top: 8px; }
.pr-map__g { position: relative; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 6px; min-height: 200px; border-left: 1px solid #D5DAE2; padding-left: 8px; }
.pr-q { border-radius: 10px; padding: 8px 12px; font-size: 11.5px; font-weight: 600; opacity: .55; }
.pr-q.on { opacity: 1; }
.pr-q--r { background: #FBE6E1; color: #8F3526; } .pr-q--g { background: #E6F1E2; color: #2F6B3A; } .pr-q--n { background: #F1F3F6; color: #4B5563; } .pr-q--b { background: #E7EDF8; color: #2B4476; }
.pr-map__ava { position: absolute; transform: translate(-50%, -50%); width: 32px; height: 32px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(16,24,40,.18); font-size: 11px; font-weight: 700; color: var(--text-soft); display: inline-flex; align-items: center; justify-content: center; }
.pr-rt { margin-top: 12px; }
.pr-rt__h { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.rtog { display: inline-flex; background: #EEF1F6; border-radius: 10px; padding: 3px; gap: 3px; }
.rtog button { border: 0; background: none; font: inherit; font-size: 12.5px; color: var(--text-soft); padding: 6px 12px; border-radius: 8px; cursor: pointer; }
.rtog button.on { background: #fff; color: var(--text); font-weight: 600; box-shadow: var(--shadow-sm); }
.pr-r { display: grid; grid-template-columns: minmax(150px, 1.8fr) repeat(5, minmax(72px, 1fr)); gap: 8px; align-items: center; padding: 6px 8px; font-size: 13px; }
.pr-r > span:not(:first-child) { text-align: center; }
.pr-r > span:first-child { padding-left: 16px; min-width: 0; }
.pr-r .sc { min-width: 44px; }
.pr-r--g { padding-bottom: 0; } .pr-r--g .pr-r__grp { grid-column: 3 / 7; font-size: 11.5px; color: var(--text-faint); border-bottom: 1px solid #D5DAE2; padding-bottom: 4px; }
.pr-r--h { font-size: 11.5px; color: var(--text-faint); } .pr-r--h > span:first-child { padding-left: 8px; }
.pr-r--u { background: #F3F5F8; border-radius: 8px; margin-top: 8px; font-weight: 700; } .pr-r--u > span:first-child { padding-left: 8px; }
.pr-r:not(.pr-r--u):not(.pr-r--h):not(.pr-r--g) { border-bottom: 1px solid #F3F4F6; }
.pr-rt.is-hard .sc.lv3, .pr-rt.is-hard .sc.lv4 { background: #F3F4F6 !important; color: #A3AAB6 !important; }
.pr-foot { margin: 16px 0 0; padding: 12px 16px; background: #F7F8FA; border-radius: 10px; font-size: 13.5px; }
.pr-c { margin-top: 12px; } .pr-c h3 { font-size: 14px; margin: 16px 0 8px; } .pr-c ul { margin: 0; padding-left: 20px; } .pr-c li { margin-bottom: 4px; line-height: 1.5; }
.pr-disc { margin: 16px 0 0; padding-left: 12px; border-left: 2px solid #E3E6EB; font-size: 12.5px; color: var(--text-faint); }
@media (max-width: 1100px) { .pr-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pr-two { grid-template-columns: 1fr; } }
@media (max-width: 620px) {
  .pr-tiles { grid-template-columns: 1fr; }
  .pr-head__t { flex-wrap: wrap; } .pr-head__t .btn { width: 100%; }
  /* телефон: имя на своей строке, пять оценок — под ним; подписи столбцов мельче */
  .pr-r { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; padding: 6px 4px; }
  .pr-r > span:first-child { grid-column: 1 / -1; padding-left: 4px; }
  .pr-r--h > span:first-child { display: none; }
  .pr-r--h > span { font-size: 9.5px; -webkit-hyphens: auto; hyphens: auto; line-height: 1.2; }
  .pr-r .sc { min-width: 0; width: 100%; font-size: 12px; }
  .pr-r--g { display: none; }
  .pr-ind { grid-template-columns: 1fr auto; } .pr-ind .bat { grid-column: 1 / -1; order: 3; }
}
@media print { .pr-tiles { grid-template-columns: repeat(4, 1fr); } .pr-two { grid-template-columns: 1fr 1fr; } .card { break-inside: avoid; } }

/* ===================== Сотрудники (макет 9): справочник по подразделениям ===================== */
.em { padding: 16px 24px 24px; }
.em-flt { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 16px; }
.em-flt .input { width: auto; flex: 0 1 auto; height: 38px; padding-top: 0; padding-bottom: 0; }
.em-flt__q { flex: 1 1 260px !important; max-width: 340px; }
.em-flt__n { margin-left: auto; font-size: 13px; color: var(--text-faint); white-space: nowrap; }
.em-g { display: grid; grid-template-columns: 24px minmax(220px, 1.8fr) minmax(130px, 1fr) 132px minmax(300px, 1.7fr) 112px; column-gap: 12px; align-items: center; }
.em-th { padding: 8px 12px; font-size: 12px; color: var(--text-faint); }
.em-gh { padding: 16px 12px 8px; border-bottom: 1px solid var(--border); }
.em-gh__t { grid-column: 2 / 6; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--text-soft); }
.em-gh__f { grid-column: 6; justify-self: end; border: 0; background: none; padding: 0; font: inherit; font-size: 12.5px; color: var(--text-faint); cursor: pointer; white-space: nowrap; }
.em-gh__f:hover { color: var(--text); }
.em-grp.is-folded .em-gb { display: none; }
.em-grp[hidden], .em-it[hidden] { display: none !important; }
.em-gb { padding-top: 4px; }
.em-cb { display: flex; align-items: center; cursor: pointer; }
.em-cb input { width: 16px; height: 16px; margin: 0; accent-color: var(--brand); cursor: pointer; }
/* строки: тонкий разделитель; наведение — серым, выбранная — голубым с синей кромкой */
.em-it { border-bottom: 1px solid #E6E8EC; transition: background .15s, box-shadow .15s; }
.em-gb .em-it:last-child { border-bottom: 0; }
.em-it:not(.is-open):hover { background: #F3F4F6; }
.em-it.is-picked { background: #E8EEFA; box-shadow: inset 3px 0 0 var(--brand); }
.em-it.is-open { background: var(--surface); border-bottom-color: transparent; border-radius: var(--r-md); box-shadow: 0 0 0 1px var(--border-strong); margin: 8px 0; }
.em-it.is-open.is-picked { box-shadow: 0 0 0 1px var(--border-strong), inset 3px 0 0 var(--brand); }
.em-row { padding: 12px; min-height: 56px; cursor: pointer; border-radius: var(--r-md); }
.em-row:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }

.em-who { display: flex; align-items: flex-start; gap: 12px; min-width: 0; }
.em-av { width: 30px; height: 30px; flex: none; border-radius: 50%; background: #EEF0F4; color: var(--text-soft); font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.em-nm { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-width: 0; padding-top: 4px; }
.em-name { color: var(--brand-text); font-weight: 600; text-decoration: underline; text-decoration-color: #BCC9E6; text-underline-offset: 3px; }
.em-tags { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.em-tag { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 600; line-height: 1.5; padding: 1px 8px; border-radius: 6px; white-space: nowrap; border: 1px solid transparent; }
.em-tag--gray   { background: #EEF0F4; color: #4B5563; }
.em-tag--red    { background: #FDEEEC; color: #B42318; }
.em-tag--yellow { background: #FDF3D9; color: #8A6200; }
.em-tag--green  { background: #E5F3E8; color: #2F6B3E; }
.em-tag--blue   { background: #E7EDF8; color: #34508F; }
.em-tag--violet { background: #ECE9FB; color: #4A3FA8; }
.em-tadd { font: inherit; font-size: 11.5px; line-height: 1.5; padding: 1px 8px; border-radius: 6px; border: 1px solid var(--border-strong); background: #fff; color: var(--text-faint); cursor: pointer; white-space: nowrap; }
.em-tadd:hover { color: var(--text); border-color: var(--text-faint); }
.em-pos { font-size: 13.5px; color: var(--text); min-width: 0; }
.em-mute { color: var(--text-faint); }
.em-prj { display: flex; align-items: center; gap: 4px; flex-wrap: nowrap; }
.em-lg { width: 22px; height: 22px; flex: none; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 9px; font-weight: 700; letter-spacing: -.02em; }
.em-lg--360 { background: #3B5BA5; }
.em-lg--sm  { background: #21857D; font-size: 12px; }
.em-lg--off { background: #C9CED8; }
.em-more-n { font-size: 11.5px; font-weight: 600; color: var(--text-faint); padding: 1px 5px; border: 1px solid var(--border-strong); border-radius: 6px; }
.em-st { font-size: 13px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; }
.em-s { display: inline-block; font-size: 12.5px; font-weight: 600; line-height: 1.4; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.em-s--g { background: var(--ok-soft); color: var(--ok); }
.em-s--y { background: var(--warn-soft); color: var(--warn); }
.em-nomail { color: var(--err); white-space: nowrap; }
.em-nomail::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--err); margin: 0 6px 1px 8px; }
.em-act { justify-self: end; }
.em-act .btn { white-space: nowrap; }
/* раскрытие: плавно, без скачка высоты */
.em-more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .22s ease; }
.em-it.is-open .em-more { grid-template-rows: 1fr; }
.em-more__in { overflow: hidden; min-height: 0; padding: 0; }
.em-it.is-open .em-more__in { padding-bottom: 16px; }
.em-pp__h { font-size: 13px; font-weight: 700; margin: 4px 12px 4px 48px; }
.em-pp__none { font-size: 13px; color: var(--text-faint); padding: 8px 12px 8px 48px; }
.em-pr { position: relative; padding: 10px 12px; font-size: 13px; }
.em-pr::before { content: ""; position: absolute; top: 0; left: 48px; right: 12px; border-top: 1px solid var(--border); }
.em-pr__n { grid-column: 2 / 5; display: flex; align-items: flex-start; min-width: 0; }
.em-pr__n .em-lg { margin: 0 16px 0 4px; }
.em-pr__t { display: flex; flex-direction: column; min-width: 0; }
.em-pr__t b { font-weight: 600; font-size: 13.5px; line-height: 22px; }
.em-pr__t small { font-size: 12.5px; color: var(--text-faint); }
.em-pr--off .em-pr__t b { color: var(--text-faint); }
.em-pr__sb { grid-column: 5 / 7; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.em-pr__sb .st, .em-pr__sb .btn, .em-pr__sb .rbtn { white-space: nowrap; }
.em-sc { font-size: 12.5px; font-weight: 700; padding: 2px 9px; border-radius: 6px; }
.em-edit { display: inline-block; margin: 12px 12px 0 48px; font-size: 13px; color: var(--brand-text); text-decoration: underline; text-decoration-color: #BCC9E6; text-underline-offset: 3px; }
.em-empty { padding: 24px 12px; color: var(--text-faint); font-size: 14px; }
.em-bulk { position: sticky; bottom: 16px; z-index: 5; display: flex; align-items: center; gap: 16px; margin-top: 16px; padding: 12px 16px; border-radius: var(--r-md); background: var(--brand-soft); border: 1px solid #D5DEF2; box-shadow: var(--shadow-md); }
.em-bulk[hidden] { display: none; }
.em-link { border: 0; background: none; padding: 0; font: inherit; font-size: 13px; color: var(--brand-text); cursor: pointer; }
.em-upd { font-size: 13px; color: var(--text-faint); margin: 12px 0 0; }
/* окно «Добавить в проект» */
.em-modal { position: fixed; inset: 0; z-index: 90; background: rgba(17,24,39,.28); display: flex; align-items: center; justify-content: center; padding: 24px; }
.em-modal[hidden] { display: none; }
.em-modal__b { width: 620px; max-width: 100%; max-height: calc(100vh - 48px); overflow: auto; background: #fff; border-radius: var(--r-lg); padding: 24px; box-shadow: 0 8px 28px rgba(16,24,40,.14); }
.em-modal__b h3 { margin: 0 0 4px; font-size: 18px; }
.em-modal__sub { margin: 0 0 8px; font-size: 13px; color: var(--text-soft); }
.em-modal__none, .em-modal__note { font-size: 13px; color: var(--text-faint); margin: 12px 0 0; }
.em-modal__none { color: var(--text-soft); }
.em-opt { display: grid; grid-template-columns: 16px 1fr; column-gap: 12px; row-gap: 2px; align-items: center; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; margin-top: 8px; cursor: pointer; }
.em-opt:has(input:checked) { border-color: var(--brand); background: #FAFBFE; }
.em-opt input { margin: 0; width: 16px; height: 16px; accent-color: var(--brand); }
.em-opt__t { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.em-opt__d { grid-column: 2; font-size: 12.5px; color: var(--text-soft); }
.em-warn { margin-top: 12px; padding: 10px 14px; border-radius: 10px; background: var(--warn-soft); color: #6B4A00; font-size: 13px; }
.em-warn[hidden], .em-skip[hidden] { display: none; }
.em-skip { margin-top: 12px; font-size: 13px; color: var(--text-soft); }
.em-skip p { margin: 4px 0 0; }
.em-skip p::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--err); margin: 0 8px 1px 0; }
.em-modal__a .btn:disabled { opacity: .45; cursor: default; }
.em-modal__a { display: flex; justify-content: flex-end; gap: 12px; margin-top: 24px; }
/* окно «Теги сотрудника» */
.em-pop { position: absolute; z-index: 85; width: 330px; max-width: calc(100vw - 24px); background: #fff; border: 1px solid var(--border-strong); border-radius: var(--r-md); box-shadow: 0 8px 28px rgba(16,24,40,.12); padding: 16px; box-sizing: border-box; }
.em-pop[hidden] { display: none; }
.em-pop__h { font-size: 14px; font-weight: 700; margin-bottom: 12px; }
.em-pop__list { display: flex; flex-wrap: wrap; gap: 6px; }
.em-pop__list .em-tag { font: inherit; font-size: 12px; font-weight: 600; padding: 4px 10px; cursor: pointer; }
.em-pop__list .em-tag.is-off { background: #fff; border: 1px dashed var(--border-strong); color: var(--text-soft); }
.em-pop__list .em-tag.is-on::before { content: "✓"; font-size: 11px; }
.em-pop__hint { font-size: 12.5px; color: var(--text-faint); margin-top: 6px; }
.em-pop__lab { display: block; font-size: 12px; font-weight: 600; color: var(--text-faint); margin: 12px 0 6px; }
.em-pop .input { height: 36px; padding-top: 0; padding-bottom: 0; }
.em-sw { display: flex; gap: 8px; }
.em-sw__i { width: 24px; height: 24px; border-radius: 6px; border: 1px solid var(--border); cursor: pointer; padding: 0; }
.em-sw__i.is-on { outline: 2px solid var(--text); outline-offset: 1px; }
.em-pop__err { margin-top: 8px; font-size: 12.5px; color: var(--err); }
.em-pop__err[hidden] { display: none; }
.em-pop__a { display: flex; gap: 8px; margin-top: 16px; }
/* ноутбуки */
@media (min-width: 1200px) and (max-width: 1599px) {
  .em { padding: 16px 20px 20px; }
  .em-g { grid-template-columns: 24px minmax(190px, 1.6fr) minmax(110px, 1fr) 130px minmax(290px, 1.7fr) 108px; }
}
@media (max-width: 1199px) {
  .em-g { grid-template-columns: 24px minmax(170px, 2fr) minmax(100px, 1fr) 128px minmax(170px, 1.7fr) 108px; column-gap: 10px; }
  .em-s { white-space: normal; border-radius: 10px; }
}
/* телефон: карточки вместо таблицы */
@media (max-width: 760px) {
  .em { padding: 12px 12px 16px; }
  .em-flt .input, .em-flt__q { flex: 1 1 100% !important; max-width: none; width: 100%; }
  .em-flt__n { margin-left: 0; }
  .em-th { display: none; }
  .em-gh { grid-template-columns: 24px 1fr auto; }
  .em-gh__t { grid-column: 2; }
  .em-gh__f { grid-column: 3; }
  .em-row { grid-template-columns: 24px 1fr; grid-template-areas: "cb who" ". pos" ". prj" ". st" ". act"; row-gap: 8px; }
  .em-row > .em-cb { grid-area: cb; align-self: start; padding-top: 7px; }
  .em-row > .em-who { grid-area: who; } .em-row > .em-pos { grid-area: pos; padding-left: 42px; }
  .em-row > .em-prj { grid-area: prj; padding-left: 42px; } .em-row > .em-st { grid-area: st; padding-left: 42px; }
  .em-row > .em-act { grid-area: act; justify-self: start; padding-left: 42px; }
  .em-pr { display: flex; flex-direction: column; align-items: stretch; gap: 8px; }
  .em-pr::before { left: 12px; }
  .em-pp__h, .em-pp__none, .em-edit { margin-left: 12px; }
  .em-pp__none { padding-left: 0; }
  .em-bulk { bottom: 8px; flex-wrap: wrap; gap: 8px 16px; }
  .em-modal { padding: 12px; align-items: flex-end; }
  .em-modal__b { padding: 20px 16px; }
}
@media print { .em-flt, .em-act, .em-bulk, .em-cb, .em-tadd { display: none !important; } }
@media (prefers-reduced-motion: reduce) { .em-more { transition: none; } }

/* Моя компания · Теги */
.tgl__row { display: grid; grid-template-columns: minmax(160px, 1fr) 140px auto; gap: 12px; align-items: center; padding: 12px 4px; border-top: 1px solid var(--border); }
.tgl__n { font-size: 13px; color: var(--text-soft); }
.tgl__a { display: flex; justify-content: flex-end; gap: 16px; font-size: 13px; }
.tgl__a button { border: 0; background: none; padding: 0; font: inherit; color: var(--brand-text); cursor: pointer; }
.tgl__a .tgl__del { color: var(--err); }
.tgl__edit { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding: 12px 4px; border-top: 1px solid var(--border); background: #FAFBFC; }
.tgl__edit[hidden] { display: none; }
.tgl__edit .input { width: 240px; height: 36px; padding-top: 0; padding-bottom: 0; }
.tgl__sw { display: flex; gap: 6px; }
.tgl__sw label { cursor: pointer; } .tgl__sw input { position: absolute; opacity: 0; pointer-events: none; }
.tgl__sw span { display: block; width: 22px; height: 22px; border-radius: 6px; border: 1px solid var(--border); }
.tgl__sw input:checked + span { outline: 2px solid var(--text); outline-offset: 1px; }
.tgl__sw input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 1px; }
.tgl__note { font-size: 12.5px; color: var(--text-faint); margin: 12px 0 0; }
@media (max-width: 620px) { .tgl__row { grid-template-columns: 1fr auto; } .tgl__a { grid-column: 1 / -1; justify-content: flex-start; } }

/* ===================== Сотрудники · сборка 39: шапка, выравнивание, теги, телефон ===================== */
.em-head { flex-wrap: wrap; align-items: flex-end; gap: 16px 24px; }
.head__btns { flex-wrap: nowrap; gap: 12px; }
.head__btns .btn { white-space: nowrap; }
/* ячейки строки — по строке имени, а не по центру строки с тегами */
.em-row { align-items: start; }
.em-row > .em-cb { padding-top: 7px; }
.em-row > .em-pos { padding-top: 5px; }
.em-row > .em-prj { padding-top: 4px; }
.em-row > .em-st { padding-top: 3px; }
.em-row > .em-act { margin-top: -1px; }
.em-row:hover { background: transparent; }
/* «+ тег» — при наведении на строку и при фокусе; на сенсорных экранах всегда */
@media (hover: hover) and (pointer: fine) {
  .em-tadd--add { opacity: 0; transition: opacity .15s; }
  .em-it:hover .em-tadd--add, .em-it:focus-within .em-tadd--add, .em-tadd--add:focus-visible { opacity: 1; }
}
.em-th[hidden] { display: none; }
.em-empty .em-link { margin-left: 4px; }
/* фильтры: на компьютере одной строкой, на телефоне — поиск и кнопка «Фильтры» */
.em-flt__top, .em-flt__more { display: contents; }
.em-flt__tg { display: none; }
/* окно «Добавить в проект»: проект, где все уже участвуют */
.em-opt.is-off { cursor: default; background: #FAFBFC; }
.em-opt.is-off .em-opt__t { color: var(--text-faint); }
.em-opt.is-off .em-lg { background: #C9CED8; }
/* окно тегов: крестик в кружке на правом верхнем углу тега */
.em-pop__list { gap: 10px 12px; padding-top: 6px; }
.em-pchip { position: relative; display: inline-flex; }
.em-x { position: absolute; top: -7px; right: -7px; width: 16px; height: 16px; padding: 0; border-radius: 50%; border: 1px solid #C4CAD4; background: #fff; color: #6B7280; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 1px 2px rgba(16,24,40,.08); }
.em-x svg { width: 8px; height: 8px; display: block; }
.em-x path { stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; fill: none; }
.em-x:hover, .em-x:focus-visible, .em-x.is-hot { background: var(--err); border-color: var(--err); color: #fff; outline: none; }
.em-pop__del { margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: var(--err-soft); color: #7A271A; font-size: 12.5px; line-height: 1.5; }
.em-pop__del[hidden] { display: none; }
.em-pop__del b { display: block; font-weight: 600; }
.em-pop__dela { display: flex; gap: 8px; margin-top: 8px; }
.em-btn-del { background: var(--err); border-color: var(--err); color: #fff; }
.em-btn-del:hover { background: #912018; border-color: #912018; }
/* Моя компания · Теги: тот же крестик на углу тега */
.tgl__chip { position: relative; display: inline-flex; margin-top: 4px; }
.em-fab { display: none; }
@media (max-width: 760px) {
  .em-head .head__import, .em-head .head__main { display: none; }
  .em-head .head__btns:empty { display: none; }
  .em-fab { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); background: #fff; border-top: 1px solid var(--border); }
  .em-fab .btn { width: 100%; justify-content: center; }
  body.em-picking .em-fab { display: none; }
  .em-bulk { position: fixed; left: 8px; right: 8px; bottom: calc(8px + env(safe-area-inset-bottom, 0px)); margin: 0; flex-wrap: nowrap; gap: 12px; }
  .em-bulk { padding: 10px 12px; gap: 10px; }
  .em-bulk b, .em-bulk .btn { white-space: nowrap; }
  .em-bulk .em-link { margin-left: auto; white-space: nowrap; }
  .em-tadd--add { opacity: 1 !important; }
  .em { margin-bottom: 72px; }
  .em-flt__top { display: flex; gap: 8px; width: 100%; }
  .em-flt__top .em-flt__q { flex: 1 1 0 !important; min-width: 0; }
  .em-flt__tg { display: inline-flex; height: 38px; white-space: nowrap; }
  .em-flt__more { display: none; }
  .em-flt__more.is-open { display: grid; gap: 8px; width: 100%; }
  .em-gw { display: none; }
  .em-gh__t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .em-row > .em-pos, .em-row > .em-prj, .em-row > .em-st { padding-top: 0; }
  .em-row > .em-act { margin-top: 0; }
  .em-s { white-space: normal; border-radius: 10px; }
}

/* меню «⋯»: опасное действие отделено чертой и выделено красным */
.kmenu__hr { border: 0; border-top: 1px solid #EEF0F3; margin: 6px 4px; }
.kmenu__b .kmenu__danger { color: var(--err); font-weight: 600; }
.kmenu__b .kmenu__danger:hover { background: var(--err-soft); }
/* окно «Завершить проект» / «Вернуть из архива» */
.pc-modal { position: fixed; inset: 0; z-index: 95; background: rgba(17,24,39,.28); display: flex; align-items: center; justify-content: center; padding: 24px; }
.pc-modal[hidden], .pc-close[hidden], .pc-restore[hidden], .pc-modal__err[hidden] { display: none; }
.pc-modal__b { width: 540px; max-width: 100%; max-height: calc(100vh - 48px); overflow: auto; background: #fff; border-radius: var(--r-lg); padding: 24px; box-shadow: 0 8px 28px rgba(16,24,40,.14); }
.pc-modal__b h3 { margin: 0 0 4px; font-size: 18px; }
.pc-modal__sub { margin: 0 0 16px; font-size: 13px; color: var(--text-soft); }
.pc-facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0 0 16px; padding: 12px 14px; border-radius: 12px; background: #F8F9FB; font-size: 13.5px; }
.pc-facts dt { color: var(--text-faint); }
.pc-facts dd { margin: 0; font-weight: 600; }
.pc-warn { padding: 12px 14px; border-radius: 12px; background: var(--warn-soft); color: #6B4A00; font-size: 13.5px; line-height: 1.55; }
.pc-warn ul { margin: 6px 0 0; padding-left: 18px; }
.pc-opt { display: grid; grid-template-columns: 16px 1fr; gap: 2px 12px; align-items: start; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; margin-top: 8px; cursor: pointer; }
.pc-opt.is-on { border-color: var(--brand); background: #FAFBFE; }
.pc-opt input[type=radio] { margin: 3px 0 0; width: 16px; height: 16px; accent-color: var(--brand); }
.pc-opt__t { font-weight: 600; }
.pc-opt__d { grid-column: 2; font-size: 12.5px; color: var(--text-soft); }
.pc-opt__date { grid-column: 2; display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 13px; color: var(--text-soft); }
.pc-opt__date .input { width: 170px; height: 36px; padding-top: 0; padding-bottom: 0; }
.pc-opt__date .input:disabled { opacity: .5; }
.pc-modal__err { margin-top: 12px; font-size: 13px; color: var(--err); }
.pc-modal__a { display: flex; justify-content: flex-end; gap: 12px; margin-top: 24px; }
.pc-danger { background: var(--err); border-color: var(--err); color: #fff; }
.pc-danger:hover { background: #912018; border-color: #912018; }
@media (max-width: 760px) { .pc-modal { padding: 12px; align-items: flex-end; } .pc-modal__b { padding: 20px 16px; } }

/* Сотрудники: строка подразделения — светло-серая плашка, отделяет группы */
.em-gh { background: #EEF0F3; border-bottom: 0; border-radius: 10px; padding: 10px 12px; margin-top: 16px; }
.em-grp:first-of-type .em-gh { margin-top: 4px; }
.em-it:not(.is-open):hover { background: #F6F7F9; }

/* ===== Список проектов (сборка 41) ===== */
.ptile--new { background: #FAFBFC; }
.st--plan   { background: #EAF0FB; color: #2F4C8F; border-color: #D5E0F5; }
.st--paused { background: #EEF1F6; color: #6B7280; border-color: #E3E7EE; }
.plist-bar { display: flex; justify-content: flex-end; margin-bottom: 14px; }
.pnew { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border: 1px solid #CBD2DC; border-radius: 10px; background: #fff; color: #1F3B7A; font-weight: 600; font-size: 14px; text-decoration: none !important; }
.pnew:hover { background: #F4F6F9; }
.plist { display: flex; flex-direction: column; gap: 18px; }
.pblock { background: #fff; border: 1px solid #E7E9EE; border-radius: 12px; }
.pblock__h { list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 12px 18px; background: #F1F3F6; border-radius: 12px 12px 0 0; font-size: 14px; font-weight: 600; color: #111827; cursor: pointer; user-select: none; }
.pblock__h::-webkit-details-marker { display: none; }
.pblock:not([open]) > .pblock__h { border-radius: 12px; }
.pblock__t { font-size: 13px; font-weight: 400; color: #4B5563; }
.pblock__t::before { content: "Свернуть \25B4"; }
.pblock:not([open]) .pblock__t::before { content: "Развернуть \25BE"; }
.prow { display: grid; grid-template-columns: 44px minmax(0, 2.2fr) 150px minmax(200px, 1.4fr) 120px 36px; align-items: center; column-gap: 14px; padding: 14px 18px; border-top: 1px solid #EEF0F3; cursor: pointer; position: relative; }
.prow:hover, .prow:focus-visible { background: #FAFBFC; outline: none; }
.prow--head { cursor: default; border-top: 0; padding-top: 10px; padding-bottom: 8px; font-size: 12.5px; color: #8A93A3; }
.prow--head:hover { background: transparent; }
.plogo { width: 36px; height: 36px; border-radius: 9px; background: linear-gradient(135deg, #4A6BBE, #2F4C8F); color: #fff; font-size: 11.5px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.plogo--sm { background: linear-gradient(135deg, #2B9C8F, #1F6F7E); font-size: 15px; }
.plogo--off { background: #B8BFCB; }
.prow__nm { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.prow__k { font-size: 12.5px; color: #8A93A3; line-height: 1.2; }
.prow__n { font-size: 15px; font-weight: 600; line-height: 1.3; color: #111827; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.prow__st { display: flex; align-items: center; min-height: 28px; }
.prow__pt, .prow__tm { font-size: 13.5px; color: #374151; line-height: 1.35; min-width: 0; }
.prow__tm { white-space: nowrap; }
.prow__mn { justify-self: end; }
.pdot--off { background: #B8BFCB; }
@media (max-width: 760px) {
  .plist-bar { margin-bottom: 12px; }
  .pnew { width: 100%; justify-content: center; }
  .prow--head { display: none; }
  .prow { grid-template-columns: 40px minmax(0, 1fr) 36px; grid-template-areas: "lg nm mn" "lg st st" "lg pt pt" "lg tm tm"; row-gap: 6px; column-gap: 12px; padding: 14px 16px; align-items: start; }
  .prow > .plogo { grid-area: lg; }
  .prow__nm { grid-area: nm; }
  .prow__mn { grid-area: mn; }
  .prow__st { grid-area: st; }
  .prow__pt { grid-area: pt; }
  .prow__tm { grid-area: tm; }
}

/* ===== Мастер «Новый проект 360°» (сборка 42) ===== */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; }
.wz-tabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin: 0 0 20px; }
.wz-tab { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border: 1px solid #E3E7EE; border-radius: 14px; background: #fff; color: #111827; text-decoration: none !important; min-width: 0; }
.wz-tab__s { font-size: 12.5px; color: #8A93A3; }
.wz-tab__n { font-size: 15px; font-weight: 600; line-height: 1.3; }
a.wz-tab:hover { border-color: #BCC6DA; }
.wz-tab.is-on { border: 2px solid #3B5BA5; padding: 13px 15px; }
.wz-tab.is-done { background: #EEF7F1; border-color: #CFE8D8; }
.wz-tab.is-done .wz-tab__n { color: #4B5563; }
.wz-tab.is-off { background: #FAFBFC; color: #9AA3B2; cursor: default; }
.wz-tab.is-off .wz-tab__n, .wz-tab.is-off .wz-tab__s { color: #9AA3B2; }
.wz-tabs-m { display: none; }
.wz-card { margin-bottom: 24px; }
.wz-name { display: flex; align-items: flex-end; gap: 12px; }
.wz-name .field { flex: 1 1 auto; margin: 0; }
.wz-name .btn { height: 40px; }
.wz-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 16px; }
.wz-head > p { flex: 1 1 auto; margin: 0; min-width: 0; }
.wz-act { display: flex; gap: 10px; flex: 0 0 auto; align-items: center; }
.wz-foot { margin-top: 20px; }
.wz-sub-tabs { display: flex; gap: 10px; margin: 0 0 16px; }
.wz-st { display: inline-flex; align-items: center; gap: 6px; padding: 9px 18px; border-radius: 999px; background: #fff; border: 1px solid #E3E7EE; font-size: 14px; font-weight: 600; color: #374151; text-decoration: none !important; }
.wz-st.is-on { background: #3B5BA5; border-color: #3B5BA5; color: #fff; }
.wz-st.is-done b { color: #2E9E62; }
.wz-st.is-off { background: #F4F6F9; color: #A0A8B6; border-color: #EDEFF3; }
.wz-dep td { background: #EEF0F3; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #6B7280; padding: 9px 12px !important; border-bottom: 0 !important; }
.wz-oq { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--border); }
.wz-oq__t { font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.oq-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.oq-row .oq-in { flex: 1 1 auto; }
.btn--primary.is-pale { opacity: .45; cursor: default; }
.oq-del { width: 38px; height: 38px; border: 1px solid #F0C9C9; border-radius: 9px; background: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.oq-del:hover { background: #FDF1F1; }
.oq-del i { width: 16px; height: 16px; background: #C0392B; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h18M8 6V4h8v2M6 6l1 14h10l1-14M10 10v6M14 10v6'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h18M8 6V4h8v2M6 6l1 14h10l1-14M10 10v6M14 10v6'/%3E%3C/svg%3E") center/contain no-repeat; display: block; }
#oq-add { margin-top: 2px; }
.wz-sb { margin-bottom: 26px; }
.wz-sb__h { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; flex-wrap: wrap; }
.wz-sb__n b { color: #3B5BA5; font-size: 15px; }
.wz-sb__c { margin-left: auto; }
.wz-ar { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.wz-ar__p { flex: 2 1 260px; min-width: 0; }
.wz-ar__g { flex: 0 1 180px; }
.wz-ar .btn { flex: 0 0 auto; }
@media (max-width: 1100px) { .wz-tab__n { font-size: 14px; } .wz-tab { padding: 12px 14px; } .wz-tab.is-on { padding: 11px 13px; } }
@media (max-width: 760px) {
  .wz-tabs { display: none; }
  .wz-tabs-m { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; padding: 10px 14px; background: #fff; border: 1px solid #E7E9EE; border-radius: 12px; font-size: 13px; color: #6B7280; white-space: nowrap; }
  .wz-tabs-m select { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 15px; font-weight: 600; color: #111827; }
  .wz-name { flex-direction: column; align-items: stretch; }
  .wz-head { flex-direction: column; }
  .wz-act { width: 100%; flex-wrap: wrap; }
  .wz-act .btn { flex: 1 1 auto; justify-content: center; }
  .wz-top-act { display: none !important; }
  .wz-foot { position: sticky; bottom: 0; margin: 20px -16px 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); background: #fff; border-top: 1px solid #E7E9EE; z-index: 5; }
  .wz-foot .btn { width: 100%; justify-content: center; }
  .wz-ar { flex-wrap: wrap; }
  .wz-ar__p { flex: 1 1 100%; }
  .wz-ar__g { flex: 1 1 0; min-width: 0; }
  .oq-row { flex-wrap: wrap; } .oq-row .oq-in { flex: 1 1 100%; }
  .wz-sb__c { margin-left: 0; width: 100%; }
}
.wz-ret { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0 0 16px; padding: 12px 16px; border: 1px solid #D5E0F5; border-radius: 12px; background: #EAF0FB; color: #2F4C8F; font-size: 14px; }
.wz-ret a { font-weight: 600; white-space: nowrap; }

/* ===== Мастер: вкладки «Рассылка» и «Запуск» (сборка 43) ===== */
.wz-tab { position: relative; }
.wz-tab.has-dot::after { content: ""; position: absolute; top: 12px; right: 14px; width: 9px; height: 9px; border-radius: 50%; background: #E0A100; }
.wz-tab.has-dot { border-color: #EEDDB6; }
.wz-check { margin: 0 0 16px; padding: 12px 16px; border: 1px solid #EEDDB6; border-radius: 12px; background: #FFF8E6; color: #7A5A00; font-size: 14px; line-height: 1.5; }
.wz-check ul { margin: 6px 0 0; padding-left: 18px; }
.wz-check a { font-weight: 600; white-space: nowrap; }
.wz-check--block { border-color: #F3CFCF; background: #FDF1F1; color: #9B2C2C; }
.wz-range { display: flex; align-items: center; gap: 14px; max-width: 420px; }
.wz-range input[type=range] { flex: 1; accent-color: #3B5BA5; }
.wz-range__v { min-width: 24px; text-align: center; font-size: 18px; }
.wz-range__ticks { display: flex; justify-content: space-between; max-width: 420px; padding-right: 38px; margin-top: 2px; font-size: 12px; color: #8A93A3; }
.wz-switch { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.wz-switch input { margin-top: 4px; width: 18px; height: 18px; accent-color: #3B5BA5; flex: 0 0 auto; }
.wz-check-row { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-size: 14px; }
.wz-check-row input { margin-top: 3px; accent-color: #3B5BA5; flex: 0 0 auto; }
.wz-mail { border: 1px solid #E7E9EE; border-radius: 12px; padding: 0 16px; margin-bottom: 12px; background: #fff; }
.wz-mail > summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 14px 0; cursor: pointer; font-size: 15px; font-weight: 600; }
.wz-mail > summary::-webkit-details-marker { display: none; }
.wz-mail > summary::after { content: "\25BE"; margin-left: auto; color: #8A93A3; }
.wz-mail[open] > summary::after { content: "\25B4"; }
.wz-mail[open] { padding-bottom: 16px; }
.wz-sum { border: 1px solid #E7E9EE; border-radius: 12px; margin-bottom: 10px; background: #fff; }
.wz-sum.is-bad { border-color: #EEDDB6; }
.wz-sum > summary { list-style: none; display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 14px 16px; cursor: pointer; }
.wz-sum > summary::-webkit-details-marker { display: none; }
.wz-sum__t { font-size: 15px; font-weight: 600; }
.wz-sum__t .pill { display: block; margin-top: 4px; width: max-content; font-weight: 400; }
.wz-sum__l { font-size: 13.5px; color: #4B5563; line-height: 1.45; min-width: 0; }
.wz-sum__b { padding: 0 16px 14px 180px; display: flex; flex-direction: column; gap: 4px; }
@media (max-width: 760px) {
  .wz-sum > summary { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .wz-sum > summary .btn { justify-self: start; }
  .wz-sum__b { padding: 0 16px 14px; }
  .wz-mail { padding: 0 12px; }
}

/* Запуск проекта в мастере: недоступная кнопка выглядит недоступной */
.wz-card .row-btns .btn[disabled] { opacity: .45; cursor: default; pointer-events: none; }

/* ===== 360 · отчет по сотруднику, сборка 49 */
.rp-anchors { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.rp-anchors a { font-size: 12.5px; font-weight: 600; color: var(--brand-text); background: var(--brand-soft); padding: 5px 12px; border-radius: 99px; text-decoration: none; }
.rp-anchors a:hover { filter: brightness(.96); }
.rp-sum { display: flex; gap: 24px; align-items: center; background: #F8F9FB; border-radius: 14px; padding: 18px; }
.rp-sum__s { display: flex; gap: 14px; align-items: center; min-width: 220px; }
.rp-sum__big { font-size: 32px; font-weight: 700; border-radius: 14px; padding: 8px 16px; }
.rp-sum__t p { margin: 0 0 8px; line-height: 1.5; } .rp-sum__t p:last-child { margin-bottom: 0; }
.rp-tag { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 2px 9px; border-radius: 99px; margin-right: 6px; white-space: nowrap; }
.rp-tag--ok { background: #EAF6EF; color: #1E7B4F; } .rp-tag--warn { background: #FDF5E2; color: #9A6700; } .rp-tag--gap { background: #EEF2FB; color: #3B5BA5; }
.rp-legend { font-size: 12.5px; color: #4B5563; background: #fff; border: 1px dashed #D3D7DE; border-radius: 12px; padding: 10px 14px; margin: 0 0 16px; }
.rp-legend .rp-lg { margin-top: 6px; }
.rp-f--3 { grid-template-columns: 1.3fr .8fr .8fr; }
.rp-scale { position: relative; height: 150px; margin: 18px 28px 0; }
.rp-scale__b { position: absolute; left: 0; right: 0; top: 52px; height: 26px; border-radius: 7px; overflow: hidden; }
.rp-scale__b div { position: absolute; top: 0; bottom: 0; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 600; }
.rp-scale__m { position: absolute; transform: translateX(-50%); text-align: center; width: 150px; }
.rp-scale__m b { display: block; font-size: 15px; } .rp-scale__m em { display: block; font-style: normal; font-size: 11.5px; color: #4B5563; }
.rp-scale__m--env { top: 0; } .rp-scale__m--env i { position: absolute; left: 50%; top: 34px; width: 3px; height: 44px; margin-left: -1px; background: #111827; }
.rp-scale__m--self { top: 100px; } .rp-scale__m--self i { position: absolute; left: 50%; top: -22px; width: 3px; height: 22px; margin-left: -1px; background: #3B5BA5; } .rp-scale__m--self b { color: #3B5BA5; }
.rp-scale__b .v1 { background: #E7B3A8; } .rp-scale__b .v2 { background: #EBCB84; } .rp-scale__b .v3 { background: #A9CFA0; } .rp-scale__b .v4 { background: #7DB992; }
.rp-note { background: #F5F6F8; border-radius: 10px; padding: 10px 12px; color: #4B5563; font-size: 13px; margin: 14px 0 0; }
.rp-nm span { grid-template-columns: 1fr auto !important; } .rp-nm span b { font-weight: 600; color: #4B5563; white-space: nowrap; font-size: 12.5px; }
.rp-gapv { font-weight: 700; color: #6B7280; } .rp-gapv.is-hot { color: #9A6700; }
.rg col.rg-cn:last-child { width: 80px; }
.rp-at { border: 1px solid #E6E8EC; border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; }
.rp-at h3 { font-size: 14px; margin: 0 0 8px; display: flex; align-items: center; gap: 8px; } .rp-at h3 .lvpill { margin-left: 0; }
.rp-at__c { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.rp-at__c > div > b { font-size: 12.5px; color: #4B5563; display: block; margin-bottom: 2px; }
.rp-at__r { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; padding: 5px 0; border-top: 1px solid #F0F1F4; } .rp-at__r b { white-space: nowrap; }
@media (max-width: 760px) { .rp-sum { flex-direction: column; align-items: flex-start; } .rp-f--3 { grid-template-columns: 1fr; } .rp-at__c { grid-template-columns: 1fr; } .rp-scale { margin: 18px 12px 0; } }
@media print { .rp-anchors { display: none !important; } .rp-at, .rp-sum, .rp-q { break-inside: avoid; } }

/* ===== 360 · отчет по сотруднику: печать, сборка 50 */
@media print {
  .rp-q, .rp-at, .rp-sum, .rp-c, .rp-legend, .rp-scale, .rp-note, .vrow, .rp-row, .rg tr, .rp-g, .rp-mw { break-inside: avoid; }
  .rp-mw { page-break-inside: avoid; }
  .rg thead { display: table-header-group; }
  .rp-top { padding-bottom: 6px; }
  .rp-md { display: block; } .rp-main { max-width: none; }
  .rp-sum { background: #F8F9FB !important; }
  details.fold > summary { list-style: none; }
  details.fold > summary::-webkit-details-marker { display: none; }
  .card { margin: 0 0 6mm; }
  .rp-f--3 { grid-template-columns: 1.3fr .8fr .8fr; }
  .rp-mtx { grid-template-columns: 1fr 1fr; }
}
@media print {
  .rp-top { display: none !important; }
  .rp-mtx { grid-auto-rows: auto; } .rp-q { min-height: 0; padding: 10px 12px; }
  .rp-nm span { height: auto !important; min-height: 28px; padding: 3px 10px !important; }
  .rp-scale { height: 130px; margin-top: 8px; }
  .rp-f { gap: 10px; }
  .rg-title { margin-bottom: 12px !important; }
}

/* ===== Сборка 54: отчет по команде 360, кнопки равной высоты ===== */
.btn--eq { display: inline-flex; align-items: center; justify-content: center; height: 40px; padding-top: 0; padding-bottom: 0; white-space: nowrap; box-sizing: border-box; }
.tmx-acts { display: inline-flex; gap: 8px; flex-wrap: wrap; }
.tmx-main { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 14px; }
.tmx-mc { border: 1px solid #E3E7EE; border-radius: 12px; padding: 14px 16px; background: #fff; }
.tmx-mc h5 { margin: 0 0 10px; font-size: 12.5px; font-weight: 600; color: #6B7280; }
.tmx-mc.is-ok { background: #EAF4E3; border-color: #BFDDB4; } .tmx-mc.is-warn { background: #FBF1D6; border-color: #E8CF8A; }
.tmx-big { font-size: 28px; font-weight: 700; line-height: 1.1; margin-bottom: 4px; } .tmx-big small { font-size: 13px; font-weight: 600; margin-left: 8px; }
.tmx-pz { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin-bottom: 10px; }
.tmx-pz span { height: 10px; border-radius: 99px; background: #EEF0F3; overflow: hidden; display: block; } .tmx-pz i { display: block; height: 100%; }
.tmx-dg { display: flex; align-items: center; gap: 14px; }
.tmx-donut { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; position: relative; flex: none; }
.tmx-donut::before { content: ""; position: absolute; inset: 8px; background: #fff; border-radius: 50%; } .tmx-donut b { position: relative; font-size: 14px; }
.tmx-sum { margin: 0; font-size: 14px; line-height: 1.6; }
.tmx-pick { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; border-top: 1px solid #EEF0F3; } .tmx-pick:first-of-type { border-top: 0; }
.tmx-pick__n { font-size: 18px; font-weight: 700; min-width: 42px; }
.tmx-pr { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.6fr) 54px; gap: 14px; align-items: center; padding: 8px 0; border-top: 1px solid #EEF0F3; }
.tmx-pr__n { font-size: 13.5px; font-weight: 600; }
.tmx-pr__t { position: relative; height: 10px; border-radius: 99px; background: #EEF1F6; }
.tmx-pr__b { position: absolute; top: 3px; height: 4px; border-radius: 99px; background: #C9D1DE; }
.tmx-pr__d { position: absolute; top: -2px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px #9CA3AF; }
.tmx-pr__v { text-align: right; }
.tmx-sc { display: inline-block; min-width: 38px; text-align: center; padding: 3px 8px; border: 1px solid; border-radius: 8px; font-weight: 700; font-size: 13px; }
/* 9-box */
.tmx-y { font-size: 12px; color: #6B7280; margin: 0 0 6px 74px; }
.tmx-nb { display: grid; grid-template-columns: 70px repeat(3, 1fr); gap: 6px; }
.tmx-nb__yl, .tmx-nb__xl { font-size: 12px; color: #6B7280; display: flex; align-items: center; justify-content: center; text-align: center; }
.tmx-nb__c { border-radius: 12px; padding: 10px 12px; min-height: 104px; border: 1px solid transparent; }
.tmx-nb__c.k1 { background: #F8E1DB; } .tmx-nb__c.k2 { background: #FBF1D6; } .tmx-nb__c.k3 { background: #EEF1F6; } .tmx-nb__c.k4 { background: #D8EBDD; } .tmx-nb__c.k5 { background: #E6F1E2; }
.tmx-nb__t { display: flex; justify-content: space-between; gap: 6px; font-size: 12px; font-weight: 600; margin-bottom: 8px; } .tmx-nb__t em { font-style: normal; color: #6B7280; font-weight: 500; white-space: nowrap; }
.tmx-nb__av { display: flex; flex-wrap: wrap; gap: 6px; }
.tmx-av { position: relative; width: 32px; height: 32px; border-radius: 50%; background: #fff; border: 2px solid #4B5563; color: #111827; font-size: 11px; font-weight: 700; display: grid; place-items: center; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease; }
.tmx-av:hover, .tmx-av:focus { transform: scale(1.12); box-shadow: 0 2px 8px rgba(17,24,39,.25); z-index: 5; }
.tmx-tip { position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translate(-50%, 4px); background: #111827; color: #fff; border-radius: 8px; padding: 7px 10px; font-size: 12px; font-weight: 600; white-space: nowrap; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .18s ease, transform .18s ease, visibility .18s; }
.tmx-tip em { display: block; font-style: normal; font-weight: 400; color: #D1D5DB; font-size: 11.5px; }
.tmx-av:hover .tmx-tip, .tmx-av:focus .tmx-tip { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
/* карта */
.tmx-map { border: 1px solid #E3E7EE; border-radius: 12px; overflow: hidden; }
.tmx-map__top { padding: 8px 14px; font-size: 12px; font-weight: 600; color: #6B7280; background: #F7F8FB; border-bottom: 1px solid #E3E7EE; }
.tmx-wrap { max-height: 520px; overflow-y: auto; overflow-x: hidden; padding: 0 10px 10px; } .tmx-wrap.is-dense { overflow-x: auto; }
.tmx-g { display: grid; gap: 6px; align-items: stretch; }
.tmx-h { position: sticky; top: 0; z-index: 3; background: #fff; padding: 10px 2px 6px; font-size: 11px; font-weight: 600; color: #4B5563; text-align: center; line-height: 1.2; display: flex; align-items: flex-end; justify-content: center; min-width: 0; hyphens: manual; overflow: hidden; }
.tmx-h span { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.tmx-h--tot { color: #111827; }
.tmx-r { position: sticky; left: 0; z-index: 2; background: #fff; display: flex; align-items: center; font-size: 13px; padding-right: 6px; min-width: 0; }
.tmx-r span { min-width: 0; } .tmx-r small { display: block; color: #9CA3AF; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .tmx-r a { color: var(--link); font-weight: 600; text-decoration: none; }
.tmx-c { border-radius: 8px; min-height: 36px; display: grid; place-items: center; font-weight: 700; font-size: 13px; transition: filter .15s, box-shadow .15s; }
.tmx-c--nd { background: #F1F3F6; color: #9CA3AF; font-weight: 500; font-size: 11.5px; }
.tmx-c--t { border: 2px solid; font-size: 14px; }
.tmx-sep { width: 1px; height: 100%; margin: 0 auto; background: #D6DBE4; }
.tmx-sw { display: inline-flex; background: #EEF1F6; border-radius: 10px; padding: 3px; gap: 3px; }
.tmx-sw button { border: 0; background: transparent; padding: 6px 12px; border-radius: 8px; font: inherit; font-size: 12.5px; font-weight: 600; color: #4B5563; cursor: pointer; } .tmx-sw button.on { background: #fff; color: #111827; box-shadow: 0 1px 3px rgba(17,24,39,.12); }
.tmx-mob { display: none; }
.tmx-mrow { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid #EEF0F3; } .tmx-mrow small { display: block; color: #9CA3AF; font-size: 11.5px; }
.tmx-dcard { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; border-top: 1px solid #EEF0F3; }
.rp-lg em.v1 { background: #F8E1DB; } .rp-lg em.v2 { background: #FBF1D6; } .rp-lg em.v3 { background: #EAF4E3; } .rp-lg em.v4 { background: #E3F2E8; }
@media (max-width: 760px) {
  .tmx-main { grid-template-columns: 1fr; }
  .tmx-desk { display: none; } .tmx-mob { display: block; }
  .tmx-pr { grid-template-columns: 1fr 54px; } .tmx-pr__t { grid-column: 1 / -1; order: 3; }
  .tmx-y { margin-left: 0; } .tmx-nb { grid-template-columns: 1fr; } .tmx-nb__yl, .tmx-nb__xl { justify-content: flex-start; padding: 4px 0; }
  .tmx-nb > div:empty { display: none; }
}
@media print {
  .tmx-wrap { max-height: none !important; overflow: visible !important; } .tmx-h, .tmx-r { position: static; }
  .tmx-desk { display: block !important; } .tmx-mob { display: none !important; } .tmx-sw { display: none; }
  .tmx-mc, .tmx-nb__c, .tmx-pr, .tmx-pick { break-inside: avoid; }
  .tmx-c, .tmx-nb__c, .tmx-pz i, .tmx-donut, .tmx-sc { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .tmx-tip { display: none; }
  [data-tmx-pane][hidden] { display: none !important; }
}

/* ===== Сборка 55 ===== */
@media (max-width: 760px) { .rrow > span:nth-child(6) { grid-area: act; font-size: 12.5px; color: #6B7280; } .rrow > span:nth-child(6)::before { content: "Анкет получено: "; } }

/* Подсветка на пересечении — как в Sociometrix: контур-уголок, плашки названий, бледные клетки на пути */
.tmx-g { position: relative; }
.tmx-g__f { position: absolute; left: 0; top: 0; z-index: 6; pointer-events: none; overflow: visible; opacity: 0; transition: opacity .22s ease; }
.tmx-g__f path { fill: none; stroke: #C4CAD3; stroke-width: 1.5; stroke-linejoin: round; }
.tmx-g.is-on .tmx-g__f { opacity: 1; }
.tmx-c { transition: box-shadow .2s ease, opacity .22s ease; }
.tmx-c.is-dim { opacity: .35; }
.tmx-c.is-cur { box-shadow: inset 0 0 0 1.5px currentColor; filter: saturate(1.35) brightness(.97); font-weight: 700; }
.tmx-r, .tmx-h { transition: color .2s ease, background-color .2s ease; }
.tmx-r.is-hl, .tmx-h.is-hl { background: #EEF2FB; border-radius: 8px; }
.tmx-r.is-hl a { color: #1F3B7A; }
.tmx-h.is-hl { color: #374151; }
@media (prefers-reduced-motion: reduce) { .tmx-g__f, .tmx-c { transition: none; } }
@media print { .tmx-g__f { display: none; } }

/* ---------------------------------------------------- единый стиль таблиц */
/* Зебра: мягкий серый оттенок на каждой второй строке (как в «умных таблицах»). */
:root { --zebra: #F6F7F9; --sticky-top: 0px; }
@media (max-width: 1199px) { :root { --sticky-top: 61px; } }
@media (min-width: 621px) {
  .table tbody tr:nth-child(even):not(.bad):not(.warnrow) { background: var(--zebra); }
  .table.zf tbody tr:nth-child(even):not(.z):not(.bad):not(.warnrow) { background: none; }
  .table.zf tbody tr.z:not(.bad):not(.warnrow) { background: var(--zebra); }
}
/* Длинные таблицы: строка заголовков закрепляется при прокрутке. Короткие остаются как есть. */
.table.is-long thead th { position: sticky; top: var(--sticky-top); z-index: 4; background: var(--surface); box-shadow: inset 0 -1px 0 var(--border); border-bottom: none; padding-top: 10px; }
@media print { .table.is-long thead th { position: static; } }

/* Плитки в сетке — одной высоты и без лишнего верхнего отступа (общее правило «.card + .card» не должно сдвигать вторую и следующие). */
.ovgrid4 > .card, .ovgrid4 > .card + .card, .ovgrid2 > .card, .ovgrid2 > .card + .card,
.grid2 > .card + .card, .tiles > .card + .card, .kpis > .card + .card { margin-top: 0; }

/* ------------------------------------------------ отчет 360: шкала и таблица на телефоне */
/* Подписи у маркеров: плотная высота строки, чтобы линия не пересекала текст. */
.rp-scale__m b, .rp-scale__m em { line-height: 1.2; }
.rp-scale__lg { display: none; }
.rp-scale__lg .v1 { background: #E7B3A8; } .rp-scale__lg .v2 { background: #EBCB84; } .rp-scale__lg .v3 { background: #A9CFA0; } .rp-scale__lg .v4 { background: #7DB992; }
@media (max-width: 560px) {
  /* Уровни на узкой шкале не помещаются в сегменты: названия выносим в подпись под шкалой. */
  .rp-scale__b div span { display: none; }
  .rp-scale__lg { display: flex; flex-wrap: wrap; gap: 6px 14px; justify-content: center; margin-top: 10px; font-size: 12px; color: #4B5563; }
  .rp-scale__lg span { display: inline-flex; align-items: center; gap: 6px; }
  .rp-scale__lg i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
  .rp-scale__m { width: 120px; }
  /* Таблица по компетенциям: колонка с названиями закреплена, заголовки не налезают друг на друга, справа подсказка о прокрутке. */
  .rg col.rg-c0 { width: 106px; } .rg td.rg-n { font-size: 12px; padding-left: 6px; }
  .rg col:not(.rg-c0):not(.rg-cn):not(.rg-cs) { width: 78px; }
  .rg col.rg-cn { width: 78px; }
  .rg th { white-space: normal; line-height: 1.2; padding: 0 3px 8px; font-size: 10.5px; }
  .rg th.rg-gl, .rg td.rg-n { position: sticky; left: 0; z-index: 3; background: #fff; }
  .rg tbody tr:nth-child(even) td.rg-n { background: var(--zebra); }
  .tscroll { background: linear-gradient(to right, #fff 30%, rgba(255,255,255,0)) 0 0 / 24px 100% no-repeat local, linear-gradient(to left, rgba(17,24,39,.12), rgba(17,24,39,0)) 100% 0 / 12px 100% no-repeat scroll; }
}

/* --------------------------------------------- 9-клеточная карта: оси как в квадрантах Sociometrix */
@media (min-width: 761px) {
  .tmx-nb { grid-template-columns: 22px 62px repeat(3, minmax(0, 1fr)); }
  .tmx-nb__ay { grid-column: 1; grid-row: 1 / span 3; display: flex; align-items: center; justify-content: center; position: relative; color: #6B7280; font-size: 12px; padding-right: 8px; }
  .tmx-nb__ay span { writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; }
  .tmx-nb__ay::after { content: ""; position: absolute; right: -2px; top: 0; bottom: 0; border-right: 1px solid #CBD2DE; }
  .tmx-nb__ay::before { content: ""; position: absolute; right: -5px; top: -1px; border: 4px solid transparent; border-bottom: 6px solid #CBD2DE; border-top: 0; }
  .tmx-nb__ax { grid-column: 3 / -1; grid-row: 5; margin-top: 2px; border-top: 1px solid #CBD2DE; padding-top: 6px; text-align: center; color: #6B7280; font-size: 12px; position: relative; }
  .tmx-nb__ax::before { content: ""; position: absolute; right: -1px; top: -4px; border: 4px solid transparent; border-left: 6px solid #CBD2DE; border-right: 0; }
}
@media (max-width: 760px) {
  .tmx-nb__ax { display: none; }
  .tmx-nb__ay { display: block; font-size: 12px; color: #6B7280; padding: 0 0 4px; }
}

