/* =====================================================================
   Экраны навигатора в дизайне «Орбиты»: Инструкция, Стандарты, Системы, Лента,
   Кому передаю, Поиск, Врачи и карточка записи, Квиз, Главная, KPI, Редактор.
   Цвета и шрифты — только из переменных app.css.
   ===================================================================== */

/* ---------- Сетка секций на странице-«витрине» ---------- */
.page-row { display: grid; gap: 16px; align-items: start; }
.page-row.half { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.page-row.main-aside { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
.card-head .chip { flex-shrink: 0; }
.lead-note { font-size: 14px; line-height: 1.5; color: var(--muted); margin-top: -6px; }

/* ---------- Карточки шагов ---------- */
.step-cards { display: grid; gap: 10px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.step-cards.n5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.step-cards.n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.step-card { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 18px; }
.step-card .num { width: 32px; height: 32px; font-size: 12.5px; }
.step-card b { font-size: 15px; line-height: 1.3; font-weight: 600; color: var(--ink); }
.step-card span { font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.quote-big { font: 300 25px/1.35 var(--font-head); letter-spacing: .01em; color: var(--ink); }

/* ---------- Список с иконками ---------- */
.icon-rows { display: flex; flex-direction: column; }
.icon-row { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--line); }
.icon-row:first-child { border-top: 0; }
.icon-row .ic { flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--rose-bg); border: 1px solid var(--rose-line); color: var(--rose); }
.icon-row .ic.blue { background: var(--info-bg); border-color: var(--info-line); color: var(--info); }
.icon-row .ic.green { background: var(--green-bg); border-color: var(--green-line); color: var(--green); }
.icon-row .ic.amber { background: var(--amber-bg); border-color: var(--amber-line); color: var(--amber); }
.icon-row .t { display: flex; flex-direction: column; gap: 2px; }
.icon-row .t b { font-size: 14.5px; font-weight: 600; color: var(--ink); }
.icon-row .t span { font-size: 13.5px; line-height: 1.45; color: var(--muted); }

/* ---------- Красные флаги ---------- */
.banner { position: relative; overflow: hidden; display: flex; gap: 20px; align-items: center; padding: 22px 26px; border-radius: var(--r-card);
  background: var(--rose-bg); border: 1px solid var(--rose-line); color: var(--rose-ink); }
.banner .big-ic { position: relative; flex-shrink: 0; width: 60px; height: 60px; border-radius: 50%; background: var(--rose); color: #fff;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 6px rgba(163, 18, 42, .12); }
.banner .big-ic svg { width: 30px; height: 30px; stroke-width: 1.8; }
.banner .copy { position: relative; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.banner h2 { color: var(--rose-ink); font-size: 18px; letter-spacing: .12em; }
.banner p { font-size: 14.5px; line-height: 1.5; color: var(--rose-ink); }
.banner .chip.on-dark { background: rgba(255, 255, 255, .7); border-color: var(--rose-line); color: var(--rose-ink); }

/* ---------- Шпаргалка маршрутизации ---------- */
.routes { border-radius: 18px; overflow: hidden; }
.route-row { display: grid; grid-template-columns: minmax(0, 1.2fr) 28px minmax(0, 1fr); gap: 12px; align-items: center; padding: 12px 16px; }
.route-row + .route-row { border-top: 1px solid var(--line); }
.route-row > span:first-child { font-size: 14.5px; line-height: 1.45; color: var(--ink); }
.route-row > .arr { color: var(--acc); display: flex; }
.route-row > b { font-size: 14.5px; font-weight: 600; line-height: 1.45; color: var(--ink); }
.route-row > b.rose { color: var(--rose); }
.route-row > b.green { color: var(--green); }

/* ---------- Плитки-ссылки ---------- */
/* Плитки подстраиваются под ширину колонки: в узкой колонке — одна под другой, на всю ширину — до трёх в ряд */
.link-tiles { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.link-tile { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: var(--r-card); text-decoration: none; color: var(--ink);
  transition: border-color .18s, transform .18s; }
a.link-tile:hover { color: var(--ink); border-color: rgba(28, 30, 39, .3); transform: translateY(-1px); }
.link-tile .tile { width: 40px; height: 40px; }
.link-tile .t { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.link-tile .t b { font-size: 15px; line-height: 1.3; font-weight: 600; }
.link-tile .t span { font-size: 13.5px; line-height: 1.45; color: var(--muted); }

/* ---------- Этапы воронки ---------- */
.stages { display: flex; align-items: stretch; gap: 8px; }
.stage { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; padding: 14px; border-radius: 18px; color: var(--ink); }
.stage.first { background: var(--irid); border: 1px solid rgba(28, 30, 39, .14); box-shadow: 0 10px 22px -14px rgba(140, 130, 200, .95); }
.stage small { font: 400 10.5px/14px var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.stage.first small { color: var(--text); }
.stage b { font-size: 14.5px; line-height: 1.3; font-weight: 600; }
.stage span { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 500; color: var(--muted); }
.stage.first span { color: var(--text); }
.stage-arrow { flex-shrink: 0; color: var(--acc); display: flex; align-items: center; }
.rule-line { display: flex; gap: 12px; align-items: center; padding: 12px 16px; border-radius: 18px; background: rgba(247, 247, 250, .75);
  border: 1px solid var(--line-2); color: var(--ink); }
.rule-line > svg.i { flex-shrink: 0; }
.rule-line p { color: var(--text); font-size: 14.5px; line-height: 1.5; }

/* ---------- Вкладки: текущая — перламутр, как пункт меню ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 4px; padding: 5px; border-radius: 18px; align-self: flex-start; }
.tabs a, .tabs button { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 13px; border: 1px solid transparent;
  font-size: 14px; font-weight: 500; background: transparent; color: var(--ink); text-decoration: none; transition: background-color .18s, border-color .18s; }
.tabs a:hover, .tabs button:hover { background: rgba(255, 255, 255, .72); border-color: var(--line); color: var(--ink); }
.tabs [aria-selected="true"], .tabs [aria-selected="true"]:hover { background: var(--irid); border-color: rgba(28, 30, 39, .14); box-shadow: 0 8px 20px -12px rgba(140, 130, 200, .95); }
.tabs .cnt { min-width: 22px; padding: 1px 7px; border-radius: 8px; font: 400 11px/18px var(--font-mono); text-align: center; background: rgba(255, 255, 255, .7);
  border: 1px solid var(--line); color: var(--ink); }
.row-head { display: flex; align-items: center; gap: 14px; }
.row-head h2 { display: flex; align-items: center; gap: 10px; flex: 1; font-size: 13px; line-height: 18px; letter-spacing: .16em; }
.row-head h2::before { content: ""; flex: none; width: 5px; height: 5px; border-radius: 50%; background: var(--ink); }
.row-head h2::after { content: ""; flex: 1; height: 1px; background: var(--line-2); }
.row-head span { font: 400 11px/1.4 var(--font-mono); letter-spacing: .08em; color: var(--muted); }

/* ---------- Карточки инструкций с миниатюрой экрана ---------- */
.instr-grid { display: grid; gap: 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.instr-card { display: flex; flex-direction: column; gap: 12px; padding: 12px 12px 16px; border-radius: var(--r-card); text-decoration: none; color: var(--ink);
  transition: border-color .18s, transform .18s; }
.instr-card:hover { color: var(--ink); border-color: rgba(28, 30, 39, .3); transform: translateY(-1px); }
.instr-card > b { padding: 0 6px; font-size: 15.5px; line-height: 1.3; font-weight: 600; }
.instr-card > span { padding: 0 6px; font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.instr-card .chips-row { padding: 0 6px; display: flex; flex-wrap: wrap; gap: 6px; }
.thumb { position: relative; height: 124px; border-radius: 14px; overflow: hidden; display: flex; background: var(--paper); border: 1px solid var(--line); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb .rail { width: 32px; background: var(--ink); display: flex; flex-direction: column; align-items: center; gap: 8px; padding-top: 12px; }
.thumb .rail i { width: 12px; height: 12px; border-radius: 50%; background: rgba(255, 255, 255, .22); }
.thumb .bars { flex-grow: 1; display: flex; flex-direction: column; gap: 9px; padding: 16px; }
.thumb .bar { height: 8px; border-radius: 4px; background: rgba(28, 30, 39, .1); }
.thumb .bar:nth-child(1) { width: 80%; } .thumb .bar:nth-child(2) { width: 62%; } .thumb .bar:nth-child(3) { width: 72%; } .thumb .bar:nth-child(4) { width: 54%; }
.thumb .pin { position: absolute; right: 12px; bottom: 12px; width: 26px; height: 26px; border-radius: 50%; color: #fff; border: 2px solid #fff;
  display: flex; align-items: center; justify-content: center; font: 500 11px var(--font-mono); box-shadow: 0 0 0 1px var(--line-2); }
/* Акцент миниатюры — по порядку карточки: оранжевый и глубокие оттенки перламутра */
.acc-0 { --acc-t: var(--acc-ink); } .acc-1 { --acc-t: #4F6F95; } .acc-2 { --acc-t: #6A5A9A; } .acc-3 { --acc-t: #8A4F72; } .acc-4 { --acc-t: #3F5E7A; }
.acc-5 { --acc-t: var(--acc-ink); } .acc-6 { --acc-t: #3F6A56; } .acc-7 { --acc-t: #8A3A4A; } .acc-8 { --acc-t: #6E5A3A; }
.thumb .rail i.on, .thumb .bar.on, .thumb .pin { background: var(--acc-t, var(--acc-ink)); }

/* ---------- Инструкция по экрану ---------- */
.instr-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 16px; align-items: start; }
/* Строка «Это справочник» в начале справочных разделов «О клинике и врачи» и пометка «другая клиника»
   на материалах раздела «Люди Флебология» */
.ref-note { display: flex; align-items: center; gap: 10px; margin: 0; padding: 10px 14px; border-radius: var(--r-ctl); border: 1px solid var(--info-line);
  background: var(--info-bg); color: var(--info); font-size: 14px; line-height: 1.45; }
.ref-note .i { flex-shrink: 0; }
.ref-note b { font-weight: 600; }
.ref-note.other { border-color: var(--rose-line); background: var(--rose-bg); color: var(--rose-ink); }
.ref-find { padding: 0; border: 0; background: none; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.ref-find:hover { text-decoration-thickness: 2px; }
.card-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip.other-clinic { white-space: normal; }
.s-res .t .other-clinic, .dc-ref .t .other-clinic { margin: 2px 0; font-size: 12px; line-height: 1.3; color: var(--rose-ink); overflow-wrap: normal; }
/* Справа пусто (скриншотов, видео и PDF пока нет): шаги на всю ширину, строки не длиннее удобного для чтения */
.instr-layout.solo { grid-template-columns: minmax(0, 1fr); }
.instr-layout.solo .num-steps { max-width: 760px; }
.num-steps { display: flex; flex-direction: column; gap: 14px; margin: 0; padding: 0; list-style: none; }
.num-steps li { display: flex; gap: 14px; align-items: flex-start; font-size: 15px; line-height: 1.55; color: var(--text); }
.num-steps li .num { width: 30px; height: 30px; font-size: 12px; margin-top: -2px; }
.media-card { padding: 14px; border-radius: var(--r-card); display: flex; flex-direction: column; gap: 10px; margin: 0; }
.media-card img { width: 100%; border-radius: 12px; display: block; border: 1px solid var(--line); }
.media-card figcaption { font-size: 13px; line-height: 1.45; color: var(--muted); }
.media-row { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.video-card { position: relative; overflow: hidden; min-height: 150px; padding: 16px 18px; border-radius: var(--r-card); background: var(--ink); color: #F2F3F6;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; text-decoration: none; border: 0; text-align: left; transition: transform .18s; }
.video-card::before { content: ""; position: absolute; right: -60px; top: -80px; width: 220px; height: 220px; border-radius: 50%; background: var(--irid-ring); opacity: .35;
  -webkit-mask-image: radial-gradient(closest-side, #000 0, transparent 100%); mask-image: radial-gradient(closest-side, #000 0, transparent 100%); }
.video-card:hover { color: #fff; transform: translateY(-1px); }
.video-card .play { position: absolute; left: 50%; top: 40%; transform: translate(-50%, -50%); width: 52px; height: 52px; border-radius: 50%;
  background: var(--paper); color: var(--ink); display: flex; align-items: center; justify-content: center; }
.video-card b { position: relative; font-size: 15px; font-weight: 600; }
.video-card small { position: relative; font: 400 11px var(--font-mono); letter-spacing: .08em; color: #C9CBD6; }
/* Открытое видео-инструкция (запись экрана) — под инструкцией на всю ширину */
.video-full { margin: 16px 0 0; padding: 12px; scroll-margin-top: 16px; }
.video-full figcaption { padding: 2px 6px 10px; font: 500 12px/1.4 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.video-full video { display: block; width: 100%; height: auto; max-height: 82vh; border-radius: 14px; background: #000; }
.pdf-card { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: var(--r-card); text-decoration: none; color: var(--ink); transition: border-color .18s, transform .18s; }
.pdf-card:hover { color: var(--ink); border-color: rgba(28, 30, 39, .3); transform: translateY(-1px); }
.pdf-card b { font-size: 14.5px; line-height: 1.3; font-weight: 600; }
.pdf-card small { display: inline-flex; align-items: center; gap: 6px; font: 400 11px var(--font-mono); letter-spacing: .08em; color: var(--muted); }
/* PDF в материале: название, имя файла, примечание и кнопка «Открыть» */
.file-row { display: flex; align-items: center; gap: 14px; margin: 8px 0; padding: 12px 12px 12px 12px; border-radius: 18px; color: var(--ink); text-decoration: none;
  transition: background-color .18s, border-color .18s; }
.file-row:hover { color: var(--ink); background: rgba(255, 255, 255, .85); border-color: rgba(28, 30, 39, .24); }
.file-row .tile { flex-shrink: 0; }
.file-row .t { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.file-row .t b { font-size: 14.5px; line-height: 1.35; font-weight: 600; }
.file-row .t small { font: 400 11.5px/1.45 var(--font-mono); color: var(--muted); overflow-wrap: anywhere; }
.file-row .t .fnote { font: 400 13px/1.45 var(--font-body); color: var(--text); }
.file-row .t .chip { margin-bottom: 2px; }
.file-row .go { flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 12px; border-radius: var(--r-chip);
  border: 1px solid rgba(28, 30, 39, .2); background: rgba(247, 247, 250, .7); color: var(--ink); font-size: 13px; font-weight: 500; transition: background-color .18s, color .18s; }
.file-row .go svg.i { width: 13px; height: 13px; stroke-width: 2; transition: transform .18s; }
.file-row:hover .go { background: var(--ink); border-color: var(--ink); color: #F2F3F6; }
.file-row:hover .go svg.i { transform: translate(2px, -2px); }
@media (max-width: 560px) { .file-row .go { display: none; } }
.video-full video { width: 100%; border-radius: 14px; display: block; }

/* ---------- Кому передаю: схема ---------- */
.flow { display: flex; flex-direction: column; gap: 8px; }
.flow-line { display: flex; align-items: center; gap: 10px; }
.flow-node { flex-shrink: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; width: 150px; padding: 14px 10px; border-radius: var(--r-card); text-align: center; }
.flow-node.me { background: var(--irid); border: 1px solid rgba(28, 30, 39, .2); box-shadow: 0 12px 28px -14px rgba(140, 130, 200, .95); }
.flow-node .tile { width: 44px; height: 44px; }
.flow-node b { font-size: 13.5px; line-height: 1.3; font-weight: 600; color: var(--ink); }
.flow-link { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.flow-link span { font-size: 12.5px; line-height: 1.35; color: var(--muted); text-align: center; }
.flow-link i { width: 100%; height: 1px; background: rgba(28, 30, 39, .45); }
.flow-link em { color: var(--acc); display: flex; margin-top: -14px; align-self: flex-end; }
.flow-note { flex: 1; font-size: 13px; line-height: 1.45; color: var(--muted); padding: 0 12px; }
.grid-table { border-radius: 18px; overflow: hidden; }
.gt-row { display: grid; grid-template-columns: 1.1fr .8fr 1.6fr .8fr 1fr; gap: 14px; align-items: start; padding: 14px 18px;
  font-size: 14px; line-height: 1.45; color: var(--text); }
.gt-row.c2 { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); } .gt-row.c3 { grid-template-columns: 1fr 1fr 1fr; } .gt-row.c4 { grid-template-columns: 1.2fr 1fr 1.4fr 1fr; }
.gt-row + .gt-row { border-top: 1px solid var(--line); }
.gt-row > span:first-child { font-weight: 600; color: var(--ink); }
.gt-head { padding: 12px 18px; background: rgba(28, 30, 39, .04); font: 400 10.5px/1.4 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; }
.gt-head > span, .gt-head > span:first-child { color: var(--muted); font-weight: 400; }
.gt-row .accent { font-weight: 600; color: var(--acc-text); }
.gt-row .dim { color: var(--muted); }

/* ---------- Лента ---------- */
.feed-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.feed-head h1 { font-size: 30px; letter-spacing: .06em; }
.feed-head p { font-size: 14.5px; color: var(--muted); margin-top: 6px; }
.feed-head .bot { width: 52px; height: 72px; margin: -14px 0 -18px; filter: drop-shadow(0 8px 10px rgba(28, 30, 39, .14)); }
.feed-head .right { display: flex; align-items: center; gap: 10px; }
.filters { display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: var(--r-ctl); font-size: 13.5px; font-weight: 500;
  border: 1px solid var(--line-2); background: rgba(247, 247, 250, .75); color: var(--ink); transition: border-color .18s, background-color .18s; }
.pill:hover { border-color: rgba(28, 30, 39, .5); background: var(--paper); }
.pill[aria-pressed="true"], .pill[aria-pressed="true"]:hover { border-color: var(--ink); background: var(--ink); color: #F2F3F6; }
.pill .cnt { min-width: 22px; padding: 0 6px; border-radius: 7px; font: 400 11px/18px var(--font-mono); text-align: center; background: rgba(28, 30, 39, .07); color: var(--ink); }
.pill[aria-pressed="true"] .cnt { background: rgba(255, 255, 255, .16); color: #F2F3F6; }
.dates { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.date-field { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border-radius: var(--r-ctl); font: 400 11px var(--font-mono);
  letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.date-field input { min-height: 40px; border: 0; background: transparent; font: 400 13.5px var(--font-mono); color: var(--ink); }
.feed-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; align-items: start; }
.feed-list { display: flex; flex-direction: column; gap: 22px; }
.feed-day { display: flex; flex-direction: column; gap: 10px; }
.feed-day > .date { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: var(--r-chip);
  font: 400 11px/1.4 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }
.feed-item { position: relative; display: flex; gap: 16px; padding: 18px 20px; border-radius: var(--r-card); scroll-margin-top: 90px; }
.feed-item.unread { background: rgba(255, 255, 255, .82); border: 1px solid rgba(28, 30, 39, .2); box-shadow: var(--glass-shadow), 0 16px 36px -22px rgba(28, 30, 39, .4); }
.feed-item.unread::before { content: ""; position: absolute; left: -4px; top: 30px; width: 8px; height: 8px; border-radius: 50%; background: var(--acc);
  box-shadow: 0 0 0 3px rgba(var(--acc-rgb), .2); }
.feed-item.is-focus { border-color: var(--ink); box-shadow: var(--glass-shadow), var(--focus); }
.feed-item .tile { width: 44px; height: 44px; }
.feed-item .body { flex-grow: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.feed-item .meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.feed-item .meta .author { margin-left: auto; font-size: 12.5px; color: var(--muted); }
.unread-dot { display: inline-flex; align-items: center; gap: 6px; font: 400 10.5px/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--acc-text); }
.unread-dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--acc); }
.feed-item h3 { font-size: 17px; line-height: 1.35; }
.feed-item p { font-size: 14.5px; line-height: 1.55; color: var(--text); white-space: pre-line; }
.feed-item .acts { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.read-ok { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 500; color: var(--green); }
.legend { padding: 18px 20px; }
.legend h2 { font-size: 13.5px; letter-spacing: .16em; }
.legend-row { display: flex; gap: 12px; align-items: center; }
.legend-row .tile { width: 34px; height: 34px; }
.legend-row .t { display: flex; flex-direction: column; }
.legend-row .t b { font-size: 14px; font-weight: 600; }
.legend-row .t span { font-size: 12.5px; color: var(--muted); }
.legend-note { padding-top: 8px; border-top: 1px solid var(--line); font-size: 13px; line-height: 1.5; color: var(--muted); }

/* ---------- Поиск (окно) ---------- */
.search-overlay { position: fixed; inset: 0; z-index: 60; background: rgba(28, 30, 39, .28); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  display: flex; justify-content: center; align-items: flex-start; padding: 70px 16px 16px; }
.search-box { position: relative; width: min(780px, 100%); max-height: calc(100vh - 100px); overflow-y: auto; display: flex; flex-direction: column; gap: 12px; padding: 14px;
  border-radius: var(--r-card); background: var(--glass-t); border: 1px solid var(--glass-border); box-shadow: var(--glass-shadow), 0 40px 80px -30px rgba(28, 30, 39, .5);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); animation: dlgIn .2s var(--ease) both; scrollbar-width: thin; }
.search-box label.q { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 0 12px 0 18px; border-radius: 16px; background: #fff;
  border: 1px solid var(--ink); box-shadow: var(--focus); color: var(--ink); }
.search-box label.q svg { width: 20px; height: 20px; stroke-width: 1.6; }
.search-box label.q input { flex-grow: 1; min-width: 0; min-height: 44px; border: 0; outline: 0; background: transparent; font-size: 18px; font-weight: 400; color: var(--ink); }
.search-box label.q input::placeholder { color: var(--muted); opacity: 1; }
.search-box label.q input:focus-visible { outline: none; box-shadow: none; }
.s-filters { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 2px; }
.s-filters:empty { display: none; }
.s-filters button { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line-2);
  font-size: 13px; font-weight: 500; background: rgba(247, 247, 250, .8); color: var(--ink); transition: border-color .18s; }
.s-filters button:hover { border-color: rgba(28, 30, 39, .5); }
.s-filters button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #F2F3F6; }
.s-results { display: flex; flex-direction: column; gap: 14px; padding: 2px 2px 6px; }
.s-group { display: flex; flex-direction: column; gap: 4px; }
.s-group > span { display: flex; align-items: center; gap: 10px; padding: 0 8px 2px; font: 400 10.5px/14px var(--font-mono); letter-spacing: .16em;
  text-transform: uppercase; color: var(--muted); }
.s-group > span::after { content: ""; flex: 1; height: 1px; background: var(--line-2); }
.s-res { position: relative; display: flex; gap: 14px; align-items: center; min-height: 56px; padding: 10px 12px; border-radius: 16px; text-decoration: none;
  color: var(--ink); border: 1px solid transparent; transition: background-color .15s, border-color .15s; }
.s-res:hover { background: rgba(255, 255, 255, .8); border-color: var(--line); color: var(--ink); }
.s-res.on, .s-res.on:hover { background: #fff; border-color: rgba(28, 30, 39, .3); box-shadow: 0 10px 24px -18px rgba(28, 30, 39, .5); }
.s-res.on::before { content: ""; position: absolute; left: -4px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--acc); }
.s-res .tile { width: 36px; height: 36px; }
.s-res .t { flex-grow: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.s-res .t b { font-size: 14.5px; font-weight: 600; line-height: 1.35; }
.s-res .t span { font-size: 13px; line-height: 1.4; color: var(--muted); }
.s-res mark { background: rgba(var(--acc-rgb), .2); color: inherit; border-radius: 4px; padding: 0 2px; box-shadow: inset 0 -1px 0 rgba(var(--acc-rgb), .7); }
.s-res .kbd { display: none; }
.s-res.on .kbd { display: inline-grid; }
.s-empty { padding: 20px; text-align: center; color: var(--muted); font-size: 14px; line-height: 1.5; }
.s-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 8px 2px; border-top: 1px solid var(--line);
  font-size: 12.5px; color: var(--muted); }
.s-foot img { width: 26px; height: 36px; object-fit: contain; margin: -8px 0; }
.s-foot span { display: inline-flex; align-items: center; gap: 8px; }
.s-foot > span:first-child { font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; }

@media (max-width: 1100px) {
  .page-row.half, .page-row.main-aside, .instr-layout, .feed-layout { grid-template-columns: minmax(0, 1fr); }
  .step-cards, .step-cards.n5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .instr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stages { flex-wrap: wrap; } .stage { flex: 1 1 140px; } .stage-arrow { display: none; }
  .flow-line { flex-wrap: wrap; } .flow-link { flex: 1 1 100%; } .flow-note { flex: 1 1 100%; padding: 0; }
}
@media (max-width: 900px) {
  .step-cards, .step-cards.n5, .step-cards.n3, .instr-grid, .media-row { grid-template-columns: minmax(0, 1fr); }
  .banner { flex-direction: column; align-items: flex-start; padding: 18px; gap: 14px; }
  .banner .copy { align-self: stretch; }
  .banner .chip { white-space: normal; }
  .route-row { grid-template-columns: minmax(0, 1fr); gap: 4px; } .route-row > .arr { display: none; }
  .gt-row, .gt-row.c2, .gt-row.c3, .gt-row.c4 { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .gt-head { display: none; }
  .feed-item { padding: 16px; gap: 12px; } .feed-head h1 { font-size: 24px; }
  .feed-head { align-items: flex-start; flex-wrap: wrap; gap: 12px; }
  .feed-head > div:first-child { flex: 1 1 100%; }
  .feed-head .bot { display: none; }
  .flow-node { width: 100%; flex-direction: row; text-align: left; }
  .search-overlay { padding: 12px; }
  .search-box { max-height: calc(100vh - 24px); }
  .search-box label.q input { font-size: 16px; }
  .s-foot > span:first-child { display: none; }
}

/* =====================================================================
   Врачи клиники
   ===================================================================== */
.page-head { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.page-head .kicker { margin-bottom: 10px; }
.page-head h1 { font-size: 40px; line-height: 1.1; }
.page-head .tabs a, .page-head .tabs button { font-size: 13.5px; padding: 0 14px; }
.doc-layout { display: grid; grid-template-columns: 400px minmax(0, 1fr); gap: 16px; align-items: start; }
.doc-list { display: flex; flex-direction: column; gap: 10px; }
.doc-item { display: flex; gap: 14px; align-items: center; padding: 12px; border-radius: var(--r-card); text-decoration: none; color: var(--ink);
  text-align: left; width: 100%; font: inherit; transition: border-color .18s, transform .18s, background-color .18s; }
.doc-item:hover { color: var(--ink); border-color: rgba(28, 30, 39, .3); transform: translateY(-1px); }
.doc-item[aria-current="true"] { background: var(--irid); border-color: rgba(28, 30, 39, .2); }
.doc-photo { flex-shrink: 0; width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line-2); background: var(--irid-ring);
  color: var(--ink); display: flex; align-items: center; justify-content: center; font: 400 20px var(--font-head); letter-spacing: .04em; }
.doc-item .t { flex-grow: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.doc-item .t b { font-size: 15px; line-height: 1.3; font-weight: 600; }
.doc-item .t > span { font-size: 13px; line-height: 1.4; color: var(--muted); }
.doc-item .row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 2px; }
.doc-item .price { font: 400 12.5px var(--font-mono); color: var(--ink); }
.for-kc { display: flex; gap: 14px; padding: 16px 18px; border-radius: var(--r-card); background: var(--warm-bg); border: 1px solid var(--warm-line); }
.for-kc img { flex-shrink: 0; width: 60px; height: 60px; object-fit: contain; margin: -6px 0; }
.for-kc b { font: 400 12.5px/1.4 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--acc-text); }
.for-kc p { font-size: 15px; line-height: 1.5; color: var(--ink); white-space: pre-line; }
.doc-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.doc-cols h3 { font-size: 15px; margin-bottom: 6px; }
.price-row { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; }
.price-row + .price-row { border-top: 1px solid var(--line); }
.price-row span { font-size: 14.5px; color: var(--ink); }
.price-row b { font: 400 13.5px var(--font-mono); color: var(--ink); white-space: nowrap; }
.dot-list { display: flex; flex-direction: column; gap: 8px; }
.dot-list span { display: flex; gap: 10px; font-size: 14.5px; line-height: 1.5; color: var(--text); }
.dot-list span::before { content: ""; flex-shrink: 0; margin-top: 8px; width: 6px; height: 6px; border-radius: 50%; border: 1px solid var(--ink); }
.doc-desc { font-size: 14.5px; color: var(--text); }
@media (max-width: 1100px) { .doc-layout { grid-template-columns: minmax(0, 1fr); } }

/* =====================================================================
   Проверить себя: квиз и аттестации
   ===================================================================== */
.week-card { position: relative; z-index: 1; flex-shrink: 0; display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; border-radius: 18px;
  background: rgba(247, 247, 250, .7); border: 1px solid var(--line-2); }
.week-card > span { font: 400 10.5px/14px var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.week { display: flex; gap: 8px; }
.week-day { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.week-day i { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font: 400 15px var(--font-mono); font-style: normal;
  border: 1px solid var(--line-3); background: var(--paper); color: var(--ink); }
.week-day small { font: 400 11px var(--font-mono); color: var(--muted); }
.week-day.done i { background: var(--ink); border-color: var(--ink); color: #fff; box-shadow: 0 0 0 3px rgba(230, 201, 221, .9); }
.week-day.miss i { background: var(--rose-bg); border-color: var(--rose-line); color: var(--rose); }
.week-day.today i { background: #fff; border: 1.5px dashed var(--ink); color: var(--ink); }
.week-day.off i { background: transparent; border-style: dotted; color: var(--muted); }
.quiz-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.quiz-card { display: flex; flex-direction: column; gap: 16px; padding: 22px 24px; border-radius: var(--r-card); }
.quiz-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.quiz-head h2 { font-size: 15px; letter-spacing: .16em; }
.quiz-head span { display: block; margin-top: 4px; font-size: 13px; color: var(--muted); }
.quiz-bars { display: flex; gap: 6px; }
.quiz-bars i { width: 32px; height: 2px; border-radius: 2px; background: rgba(28, 30, 39, .18); }
.quiz-bars i.on { background: var(--ink); }
.quiz-bars i.on:last-of-type { background: var(--acc); }
.quiz-q { font-size: 20px; line-height: 1.4; font-weight: 600; color: var(--ink); }
.quiz-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.quiz-opt { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 10px 16px 10px 12px; border-radius: 18px; text-align: left;
  font-size: 14.5px; font-weight: 500; line-height: 1.35; background: rgba(247, 247, 250, .8); border: 1px solid var(--line-2); color: var(--ink);
  transition: border-color .18s, background-color .18s, transform .18s; }
.quiz-opt:hover:not(:disabled) { border-color: var(--ink); background: #fff; transform: translateY(-1px); }
.quiz-opt:disabled { cursor: default; }
.quiz-opt .let { flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font: 400 13px var(--font-mono); border: 1px solid var(--line-3); background: #fff; color: var(--ink); }
.quiz-opt.right { background: var(--green-bg); border-color: var(--green); color: var(--green); }
.quiz-opt.right .let { background: var(--green); border-color: var(--green); color: #fff; }
.quiz-opt.wrong { background: var(--rose-bg); border-color: var(--rose); color: var(--rose-ink); }
.quiz-opt.wrong .let { background: var(--rose); border-color: var(--rose); color: #fff; }
.quiz-fb { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 18px; border: 1px solid var(--green-line); background: var(--green-bg); }
.quiz-fb.no { border-color: var(--warm-line); background: var(--warm-bg); }
.quiz-fb img { flex-shrink: 0; width: 56px; height: 60px; object-fit: contain; margin: -10px 0; }
.quiz-fb b { font-size: 15px; font-weight: 600; color: var(--green); }
.quiz-fb.no b { color: var(--acc-text); }
.quiz-fb p { font-size: 14.5px; line-height: 1.5; color: var(--text); }
.quiz-hint { font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.quiz-done { display: flex; gap: 16px; align-items: center; }
.quiz-done img { width: 104px; height: 101px; object-fit: contain; }
.att-row { display: flex; gap: 14px; align-items: center; padding: 14px; border-radius: 18px; }
.att-row.todo { background: rgba(255, 255, 255, .82); border: 1px solid rgba(28, 30, 39, .2); }
.att-row .tile { width: 42px; height: 42px; }
.att-row .t { flex-grow: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.att-row .t b { font-size: 15px; font-weight: 600; }
.att-row .t span { font-size: 12.5px; line-height: 1.4; color: var(--muted); }
.mistake { display: flex; flex-direction: column; gap: 6px; padding: 12px 0; }
.mistake + .mistake { border-top: 1px solid var(--line); }
.mistake b { font-size: 14.5px; font-weight: 600; line-height: 1.4; }
.mistake span { display: flex; gap: 8px; font-size: 13.5px; line-height: 1.45; color: var(--green); }
.mistake span svg { margin-top: 2px; }
@media (max-width: 1100px) { .quiz-layout { grid-template-columns: minmax(0, 1fr); } }

/* =====================================================================
   Главная: напутствие дня, показатели отдела, лидеры месяца
   ===================================================================== */
.motd { display: flex; gap: 22px; align-items: center; padding: 20px 24px; border-radius: var(--r-card); }
.motd img { flex-shrink: 0; width: 104px; height: 104px; object-fit: contain; }
/* Котик дня — фото в круглой рамке-«иллюминаторе» (контент дня, остаётся как есть) */
.motd img.cat { object-fit: cover; border-radius: 50%; padding: 4px; background: var(--irid-ring); box-shadow: 0 0 0 1px var(--line-2), 0 14px 30px -12px rgba(28, 30, 39, .35); }
.motd .kicker { display: flex; align-items: center; gap: 10px; }
.motd p { font: 300 22px/1.4 var(--font-head); letter-spacing: .01em; color: var(--ink); margin-top: 10px; }
.card-head .emp-select { min-height: 44px; padding: 0 12px; border-radius: 12px; border: 1px solid rgba(28, 30, 39, .2); background: var(--paper);
  font-size: 14px; max-width: 280px; color: var(--ink); }
.kpi-tiles { display: grid; gap: 10px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kpi-tile { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; border-radius: 18px; container-type: inline-size; }
.kpi-tile .v { font: 300 clamp(22px, 22cqi, 34px)/1.1 var(--font-head); color: var(--ink); white-space: nowrap; }
/* Длинные суммы (выручка) уменьшаются по ширине плитки, чтобы не переносить «₽» */
.kpi-tile .v.long { font-size: clamp(17px, 15cqi, 34px); }
.kpi-tile .l { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; color: var(--ink); }
.kpi-tile .st { flex-basis: 100%; font-size: 12.5px; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.kpi-tile .st.good { color: var(--green); } .kpi-tile .st.bad { color: var(--rose); } .kpi-tile .st.mid { color: var(--amber); }
.kpi-tile .s { font-size: 12.5px; line-height: 1.4; color: var(--muted); }
.leaders { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.leader { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 22px 16px 18px; border-radius: 18px; text-align: center; container-type: inline-size; }
.leader .n { position: absolute; left: 12px; top: 12px; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line-3); background: var(--paper);
  color: var(--ink); display: flex; align-items: center; justify-content: center; font: 400 12px var(--font-mono); }
.leader:first-child .n { background: var(--ink); border-color: var(--ink); color: #fff; box-shadow: 0 0 0 3px rgba(var(--acc-rgb), .25); }
.leader .v { font: 300 30px/1.1 var(--font-head); color: var(--ink); white-space: nowrap; margin-top: 16px; height: 36px; display: flex; align-items: center; }
.leader .v.long { font-size: clamp(18px, 15cqi, 30px); }
.leader b { font-size: 14px; font-weight: 600; }
.leader span { font-size: 13px; color: var(--muted); }
.data-note { font-size: 12.5px; line-height: 1.5; color: var(--muted); }

/* =====================================================================
   Мои KPI
   ===================================================================== */
.period-tabs { position: relative; z-index: 1; flex-shrink: 0; display: flex; gap: 4px; padding: 4px; border-radius: 16px; background: rgba(247, 247, 250, .7);
  border: 1px solid var(--line-2); }
.period-tabs button { min-height: 44px; padding: 0 14px; border-radius: 12px; border: 0; font-size: 13.5px; font-weight: 500; background: transparent; color: var(--ink); }
.period-tabs button:hover { background: rgba(255, 255, 255, .8); }
.period-tabs button[aria-selected="true"] { background: var(--ink); color: #F2F3F6; }
.kpi-grid { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.kpi-card { display: flex; flex-direction: column; gap: 14px; padding: 20px 22px; border-radius: var(--r-card); }
.kpi-card .top { display: flex; align-items: center; gap: 12px; }
.kpi-card .top .tile { width: 40px; height: 40px; }
.kpi-card .top small { display: block; font: 400 10.5px/14px var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--acc-text); }
.kpi-card .top b { font-size: 16px; line-height: 1.3; font-weight: 600; color: var(--ink); }
.kpi-card .mid { display: flex; align-items: flex-end; gap: 20px; }
.ring2 { position: relative; flex-shrink: 0; width: 108px; height: 108px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: conic-gradient(var(--acc) var(--deg, 0deg), rgba(28, 30, 39, .12) 0); }
.ring2::before { content: ""; position: absolute; inset: -7px; border-radius: 50%; background: var(--irid-ring); z-index: -1; opacity: .9;
  -webkit-mask-image: radial-gradient(closest-side, transparent 82%, #000 90%, transparent 100%); mask-image: radial-gradient(closest-side, transparent 82%, #000 90%, transparent 100%); }
.ring2 > div { width: 100px; height: 100px; border-radius: 50%; background: var(--glass-t); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring2 b { font: 300 26px/1 var(--font-head); color: var(--ink); }
.ring2 small { font: 400 10.5px var(--font-mono); letter-spacing: .06em; color: var(--muted); margin-top: 3px; }
.kbars { flex-grow: 1; display: flex; align-items: flex-end; gap: 6px; height: 80px; border-bottom: 1px solid var(--line-2); }
.kbars span { flex: 1; height: var(--h, 10%); border-radius: 6px 6px 0 0; background: var(--muted); min-height: 4px; }
.kbars span:last-child { background: var(--acc); }
.kbars.empty span, .kbars.empty span:last-child { background: transparent; border: 1px dashed var(--line-3); border-bottom: 0; }
.kbars-legend { display: flex; justify-content: space-between; font: 400 11px var(--font-mono); color: var(--muted); margin-top: -8px; }
.kpi-card .pf { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; color: var(--muted); }
.kpi-card .pf b { color: var(--ink); font-family: var(--font-mono); font-weight: 400; }
.kpi-card .how { font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.tip-card { display: flex; flex-direction: row; gap: 18px; align-items: center; }
.tip-card img { flex-shrink: 0; width: 64px; height: 88px; object-fit: contain; margin: -10px 0; }
.tip-card h2 { font-size: 15px; letter-spacing: .14em; margin-bottom: 6px; }
.tip-card .go { margin-left: auto; flex-shrink: 0; }
@media (max-width: 1300px) { .kpi-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1100px) { .kpi-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .motd { flex-direction: column; align-items: flex-start; padding: 16px; } .motd p { font-size: 19px; } .motd img { width: 80px; height: 80px; }
  .kpi-grid { grid-template-columns: minmax(0, 1fr); }
  .card-head:has(.emp-select) { flex-wrap: wrap; } .card-head .emp-select { flex: 1 1 100%; min-width: 0; max-width: 100%; }
  .tip-card { flex-direction: column; align-items: flex-start; } .tip-card .go { margin-left: 0; }
  .hero:has(.period-tabs) .hero-top { flex-wrap: wrap; } .hero:has(.period-tabs) .copy { flex: 1 1 100%; }
  .period-tabs { flex: 1 1 100%; } .period-tabs button { flex: 1; }
  .kpi-card .mid { gap: 14px; }
  .ring2 { width: 92px; height: 92px; } .ring2 > div { width: 84px; height: 84px; } .ring2 b { font-size: 22px; }
}
@media (max-width: 900px) {
  .quiz-opts { grid-template-columns: minmax(0, 1fr); }
  .quiz-q { font-size: 18px; }
  .week-card { width: 100%; } .week { justify-content: space-between; } .week-day i { width: 34px; height: 34px; }
  .quiz-done { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 900px) {
  .page-head h1 { font-size: 26px; }
  .doc-cols { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Редактор материалов ---------- */
.ed { display: flex; flex-direction: column; gap: 16px; }
.ed-top { display: flex; flex-direction: column; gap: 12px; padding: 20px 22px; border-radius: var(--r-card); }
.ed-top-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.ed-title { flex: 1 1 360px; display: flex; flex-direction: column; gap: 6px; }
.ed-title span { font: 400 10.5px/14px var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.ed-title input { height: 52px; padding: 0 16px; border-radius: var(--r-ctl); border: 1px solid rgba(28, 30, 39, .2); background: #fff;
  font: 400 22px var(--font-head); letter-spacing: .02em; color: var(--ink); min-width: 0; }
.ed-top-side { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.ed-top-btns { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.ed-notify { font-size: 14px; color: var(--text); min-height: 44px; }
.ed-notify input, .ed-role input, .ed-opt input[type="radio"] { flex-shrink: 0; width: 18px; height: 18px; accent-color: var(--ink); }
.ed-flash { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: var(--r-chip); font-size: 13px; font-weight: 500;
  color: var(--green); background: var(--green-bg); border: 1px solid var(--green-line); }
.ed-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.ed-col, .ed-blocks { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.ed-block { position: relative; display: flex; gap: 12px; padding: 14px; border-radius: var(--r-card); transition: border-color .18s, box-shadow .18s; }
.ed-block.on { background: rgba(255, 255, 255, .88); border-color: var(--ink); box-shadow: var(--glass-shadow), 0 0 0 4px rgba(207, 198, 230, .75); }
.ed-block.dragging { opacity: .45; }
.ed-block.drop-before::before, .ed-block.drop-after::after { content: ""; position: absolute; left: 16px; right: 16px; height: 2px; border-radius: 2px; background: var(--acc); }
.ed-block.drop-before::before { top: -7px; }
.ed-block.drop-after::after { bottom: -7px; }
.ed-block > .tile { width: 36px; height: 36px; }
.ed-grip { flex-shrink: 0; align-self: flex-start; display: grid; place-items: center; width: 32px; height: 44px; margin-top: -4px; padding: 0; border: 0; border-radius: 10px;
  background: none; color: var(--muted); cursor: grab; }
.ed-grip:hover { background: rgba(28, 30, 39, .06); color: var(--ink); }
.ed-grip:active { cursor: grabbing; }
.ed-main { flex-grow: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.ed-head { display: flex; align-items: center; gap: 10px; min-height: 36px; }
.ed-type { flex-shrink: 0; font: 400 10.5px/14px var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--acc-text); }
.ed-n { flex-shrink: 0; font: 400 13px var(--font-mono); color: var(--ink); }
.ed-n:empty { display: none; }
.ed-heading { flex: 1; min-width: 0; min-height: 36px; padding: 4px 8px; margin-left: -8px; border: 1px solid transparent; border-radius: 10px; background: transparent;
  font: inherit; font-size: 15px; font-weight: 600; color: var(--ink); }
.ed-heading::placeholder { color: var(--muted); font-weight: 400; opacity: 1; }
.ed-heading:hover { background: rgba(255, 255, 255, .6); }
.ed-heading:focus { background: #fff; border-color: rgba(28, 30, 39, .3); outline: none; }
.ed-heading:focus-visible { box-shadow: var(--focus); }
.ed-input { width: 100%; padding: 11px 14px; border-radius: 12px; border: 1px solid rgba(28, 30, 39, .18); background: rgba(255, 255, 255, .85);
  font: inherit; font-size: 14px; line-height: 1.5; color: var(--text); resize: vertical; }
.ed-input::placeholder { color: var(--muted); opacity: 1; }
input.ed-input { min-height: 44px; padding: 10px 14px; }
.ed-input:focus, .ed-cell:focus, .ed-title input:focus, .ed-lbl select:focus, .ed-filters select:focus { border-color: var(--ink); outline: none; box-shadow: var(--focus); }
.ed-drop { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 110px; padding: 14px 18px; border-radius: 16px;
  border: 1px dashed var(--line-3); background: rgba(247, 247, 250, .6); font-size: 13.5px; line-height: 1.45; color: var(--muted); text-align: center; cursor: pointer; }
.ed-drop:hover, .ed-drop.drop-file { border-color: var(--ink); border-style: solid; background: rgba(var(--acc-rgb), .06); color: var(--ink); }
.ed-drop:focus-within { outline: 2px solid var(--ink); outline-offset: 2px; box-shadow: var(--focus); }
.ed-drop .i { flex-shrink: 0; }
.ed-media { margin: 0; }
.ed-media img, .ed-media video { display: block; max-width: 100%; max-height: 260px; border-radius: 12px; border: 1px solid var(--line); }
.ed-file { align-self: flex-start; }
.ed-acts { flex-shrink: 0; display: flex; flex-direction: column; gap: 0; opacity: .7; transition: opacity .15s; }
.ed-block:hover .ed-acts, .ed-block.on .ed-acts, .ed-acts:focus-within { opacity: 1; }
.ed-acts button, .ed-x button, .ed-q button, .ed-tag button, .ed-rel button { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  flex-shrink: 0; border: 0; border-radius: 50%; background: transparent; color: var(--muted); }
.ed-acts button:hover, .ed-x button:hover, .ed-q button:hover, .ed-rel button:hover { background: rgba(28, 30, 39, .07); color: var(--ink); }
.ed-acts button[data-act="del"]:hover { background: var(--rose-bg); color: var(--rose); }
.ed-x button:disabled { opacity: .3; cursor: default; }
.ed-table { overflow-x: auto; overflow-y: hidden; margin: 0 -4px; }
.ed-table table { width: 100%; border-collapse: separate; border-spacing: 4px; }
.ed-cell { width: 100%; min-width: 90px; min-height: 40px; padding: 8px 10px; border-radius: 10px; border: 1px solid rgba(28, 30, 39, .16); background: rgba(255, 255, 255, .9);
  font: inherit; font-size: 14px; color: var(--text); }
.ed-cell.head { font-weight: 600; color: var(--ink); background: rgba(28, 30, 39, .04); }
.ed-x { width: 48px; }
.ed-table-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ed-hint { font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.ed-hint a { font-weight: 500; }
.ed-leaves { display: flex; flex-direction: column; gap: 8px; }
.ed-leaves label { display: flex; flex-direction: column; gap: 4px; font: 400 10.5px/14px var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.ed-leaves label .ed-input { font: 400 14px/1.5 var(--font-body); letter-spacing: 0; text-transform: none; }
.ed-palette { display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: var(--r-card); background: var(--glass-t);
  border: 1px solid var(--glass-border); box-shadow: var(--glass-shadow), 0 20px 44px -26px rgba(28, 30, 39, .45); }
.ed-palette > span { font: 400 10.5px/14px var(--font-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.ed-pal-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.ed-pal-grid button { display: flex; flex-direction: column; align-items: center; gap: 8px; min-height: 44px; padding: 12px 8px; border-radius: 16px;
  border: 1px solid var(--line-2); background: rgba(247, 247, 250, .8); font: inherit; font-size: 13.5px; font-weight: 500; color: var(--ink); transition: border-color .18s, transform .18s; }
.ed-pal-grid button:hover { border-color: var(--ink); background: #fff; transform: translateY(-1px); }
.ed-pal-grid .tile { width: 34px; height: 34px; }
.ed-side { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.ed-card { padding: 18px 20px; }
.ed-card h2 { font-size: 13.5px; letter-spacing: .16em; }
.ed-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ed-roles { display: flex; flex-direction: column; gap: 2px; }
.ed-role { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px; border-radius: var(--r-ctl); border: 1px solid transparent; font-size: 14px; color: var(--ink); cursor: pointer; }
.ed-role:hover { background: rgba(255, 255, 255, .7); }
.ed-role input { width: 20px; height: 20px; }
.ed-role.on { background: var(--irid); border-color: rgba(28, 30, 39, .12); }
.ed-lbl { display: flex; flex-direction: column; gap: 6px; font: 400 10.5px/14px var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.ed-lbl select, .ed-filters select { min-height: 44px; padding: 0 12px; border-radius: 12px; border: 1px solid rgba(28, 30, 39, .2); background: var(--paper);
  font: 400 14.5px var(--font-body); letter-spacing: 0; text-transform: none; color: var(--ink); min-width: 0; max-width: 100%; }
.ed-lbl .ed-input { font: 400 14px/1.5 var(--font-body); letter-spacing: 0; text-transform: none; }
.ed-lbl > span { display: inline; }
.ed-tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ed-tag { padding-right: 2px; }
.ed-tag button { width: 32px; height: 32px; }
.ed-tag-add { min-height: 36px; background: transparent; color: var(--ink); border: 1px dashed var(--line-3); cursor: pointer; font-family: inherit; }
.ed-tag-add:hover { border-style: solid; border-color: var(--ink); }
.ed-tag-input { width: 180px; padding: 6px 12px; border-radius: var(--r-chip); font-size: 13px; }
.ed-rel { display: flex; align-items: center; gap: 4px; }
.ed-rel .pill-link { flex: 1; min-width: 0; justify-content: space-between; white-space: normal; line-height: 1.35; padding-top: 10px; padding-bottom: 10px; }
.ed-rel .pill-link::before { inset: 3px 0; }
.ed-qs { display: flex; flex-direction: column; gap: 6px; }
.ed-qs:empty { display: none; }
.ed-q { display: flex; align-items: center; gap: 2px; padding: 2px 2px 2px 12px; border-radius: 12px; background: rgba(255, 255, 255, .7); border: 1px solid var(--line);
  font-size: 13.5px; line-height: 1.4; color: var(--text); }
.ed-q span { flex: 1; min-width: 0; }
.ed-card .btn:disabled { opacity: .5; }
.ed-hist { padding: 18px; gap: 10px; }
.ed-hist h2 { font-size: 13px; }
.ed-hist-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.ed-hist-list b { color: var(--ink); font: 400 12.5px var(--font-mono); }
.ed-danger { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.ed-danger:empty { display: none; }
.ed-del { color: var(--rose); }
.ed-del:hover { border-color: var(--rose); color: var(--rose); background: var(--rose-bg); }
.ed-opts { border: 0; margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ed-opts legend { margin-bottom: 8px; font-size: 13.5px; font-weight: 500; color: var(--ink); }
.ed-opt { display: flex; align-items: center; gap: 10px; }
.ed-opt input[type="radio"] { width: 20px; height: 20px; }
.ed-preview .ed-preview-box { width: min(980px, 100%); max-height: 92vh; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; padding: 18px;
  border-radius: var(--r-card); background: rgba(228, 229, 235, .97); border: 1px solid var(--glass-border); box-shadow: 0 30px 80px -30px rgba(28, 30, 39, .5); }
.ed-preview-box > * { flex-shrink: 0; }
.ed-preview-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
/* Список материалов */
.ed-filters { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px; }
.ed-search { flex: 1 1 260px; display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: var(--r-ctl);
  background: var(--field); border: 1px solid rgba(28, 30, 39, .16); color: var(--muted); }
.ed-search:focus-within { border-color: var(--ink); box-shadow: var(--focus); }
.ed-search input { flex: 1; min-width: 0; min-height: 42px; border: 0; background: transparent; font: inherit; font-size: 14.5px; color: var(--ink); outline: none; }
.ed-search input::placeholder { color: var(--muted); opacity: 1; }
.ed-search input:focus-visible { box-shadow: none; outline: none; }
.ed-rows { display: flex; flex-direction: column; gap: 6px; }
.ed-row { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 10px 14px; border-radius: 16px; text-decoration: none; color: var(--ink);
  transition: border-color .18s, background-color .18s; }
.ed-row:hover { color: var(--ink); border-color: rgba(28, 30, 39, .3); background: rgba(255, 255, 255, .8); }
.ed-row .t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ed-row .t b { font-size: 14.5px; font-weight: 600; }
.ed-row .t span { font-size: 12.5px; color: var(--muted); }
.ed-row > .i { flex-shrink: 0; color: var(--muted); transition: transform .18s, color .18s; }
.ed-row:hover > .i { color: var(--ink); transform: translateX(3px); }
/* «Редактировать» на страницах материалов */
.edit-link { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line-2);
  background: rgba(247, 247, 250, .75); font-size: 13px; font-weight: 500; color: var(--ink); text-decoration: none; }
.crumbs .edit-link { min-height: 44px; }
.edit-link:hover { color: var(--ink); border-color: var(--ink); background: #fff; }
.edit-row { display: flex; justify-content: flex-end; margin: -6px 0; }
/* Журнал изменений */
.audit-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.audit-list li { display: grid; grid-template-columns: 100px minmax(0, 1fr) 180px; gap: 12px; align-items: baseline; padding: 12px 4px;
  border-bottom: 1px solid var(--line); font-size: 14px; color: var(--text); }
.audit-list li:last-child { border-bottom: 0; }
.audit-list .when { font: 400 12px var(--font-mono); color: var(--muted); font-variant-numeric: tabular-nums; }
.audit-list .what small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--muted); }
.audit-list .what a { color: var(--ink); font-weight: 500; }
.audit-list .who { text-align: right; color: var(--muted); }
@media (max-width: 1100px) { .ed-layout { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 700px) {
  .ed-top { padding: 16px; }
  .ed-title input { font-size: 18px; height: 48px; }
  .ed-top-side { width: 100%; align-items: stretch; }
  .ed-top-btns { justify-content: stretch; }
  .ed-top-btns .btn { flex: 1 1 auto; }
  .ed-pal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ed-block { padding: 12px 8px 12px 10px; gap: 6px; }
  .ed-block > .tile { display: none; }
  .ed-head { flex-wrap: wrap; }
  .audit-list li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .audit-list .who { text-align: left; }
}

/* Лента: удаление записи (руководитель и помощник) */
.feed-item .feed-del { margin-left: auto; color: var(--rose); }
.feed-item .feed-del:hover { color: var(--rose); border-color: var(--rose); background: var(--rose-bg); }

/* «Люди Флебология»: врачи на витрине раздела */
.ph-docs { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.ph-doc { display: flex; gap: 14px; padding: 16px; border-radius: 20px; }
.ph-doc .doc-photo { flex-shrink: 0; width: 56px; height: 56px; font-size: 17px; }
.ph-doc .t { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.ph-doc .t b { font-size: 15px; color: var(--ink); }
.ph-doc .role { font-size: 13.5px; color: var(--muted); line-height: 1.4; }
.ph-doc .dirs { font-size: 13px; color: var(--text); line-height: 1.45; }
.ph-doc .warn-note { display: flex; gap: 6px; align-items: flex-start; font-size: 13px; line-height: 1.4; color: var(--amber); }
.ph-doc .site { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; font-size: 13.5px; font-weight: 500; color: var(--ink); text-decoration: none; }
.ph-doc .site:hover { text-decoration: underline; }

/* =====================================================================
   Путь клиента, шаг 1 — «Хочу к врачу X»: поиск врачей, список, карточка записи, её редактор
   ===================================================================== */
/* Поиск: строка врача */
.s-res .doc-photo.s-ph { width: 44px; height: 44px; font-size: 14px; }
.s-res .t .s-why { font-size: 12.5px; color: var(--acc-text); }
.s-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.s-badges .chip { min-height: 22px; padding: 1px 8px; font-size: 11.5px; }
.s-route .t span { overflow-wrap: anywhere; }

/* Список врачей: поиск по тексту и плитки-ссылки на карточку */
.doc-filter { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 16px; border-radius: 16px; color: var(--muted); max-width: 720px;
  background: var(--field); border: 1px solid rgba(28, 30, 39, .16); transition: border-color .18s, box-shadow .18s; }
.doc-filter:hover { border-color: rgba(28, 30, 39, .4); }
.doc-filter:focus-within { border-color: var(--ink); box-shadow: var(--focus); }
.doc-filter input { flex: 1; min-width: 0; min-height: 44px; border: 0; outline: 0; background: transparent; font-size: 15px; color: var(--ink); }
.doc-filter input::placeholder { color: var(--muted); opacity: 1; }
.doc-filter input:focus-visible { outline: none; box-shadow: none; }
.doc-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); }
.doc-grid .doc-item .t .why { font-size: 12.5px; color: var(--acc-text); line-height: 1.35; }
.doc-grid .doc-item > .go { flex-shrink: 0; color: var(--muted); transition: transform .18s, color .18s; }
.doc-grid .doc-item:hover > .go { color: var(--ink); transform: translateX(3px); }

/* Карточка записи: шапка — стекло, круглое фото, имя крупно в верхнем регистре */
.dc-hero { position: relative; overflow: hidden; display: flex; gap: 26px; align-items: center; padding: 24px 26px; border-radius: var(--r-card);
  background: var(--glass); border: 1px solid var(--glass-border); box-shadow: var(--glass-shadow); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); }
.dc-hero::before { content: ""; position: absolute; right: 0; top: 0; width: 480px; height: 480px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 480 480'%3E%3Cg fill='none' stroke='%23CA663E'%3E%3Ccircle cx='480' cy='0' r='150' stroke-opacity='.42'/%3E%3Ccircle cx='480' cy='0' r='210' stroke-opacity='.7' stroke-dasharray='1.5 5'/%3E%3Ccircle cx='480' cy='0' r='290' stroke-opacity='.31'/%3E%3C/g%3E%3Cg fill='%23CA663E'%3E%3Ccircle cx='298' cy='105' r='2.6' fill-opacity='.85'/%3E%3Ccircle cx='417' cy='136' r='2.2' fill-opacity='.77'/%3E%3Ccircle cx='207' cy='99' r='2.2' fill-opacity='.59'/%3E%3C/g%3E%3C/svg%3E") right top / 480px 480px no-repeat; }
.dc-hero::after { content: ""; position: absolute; right: -120px; top: -160px; width: 420px; height: 420px; border-radius: 50%; pointer-events: none; opacity: .6;
  background: var(--irid-ring); -webkit-mask-image: radial-gradient(closest-side, #000 0, rgba(0, 0, 0, .5) 45%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 0, rgba(0, 0, 0, .5) 45%, transparent 100%); }
.dc-hero .doc-photo { position: relative; z-index: 1; width: 132px; height: 132px; font-size: 38px; border: 1px solid var(--line-2);
  box-shadow: 0 0 0 5px rgba(247, 247, 250, .9), 0 0 0 6px rgba(28, 30, 39, .12), 0 18px 36px -18px rgba(28, 30, 39, .45); }
.dc-hero .copy { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.dc-hero .spec { display: flex; align-items: center; gap: 10px; font: 400 10.5px/14px var(--font-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.dc-hero .spec::before { content: ""; flex: none; width: 18px; height: 1px; background: var(--ink); }
.dc-hero h1 { font: 300 36px/1.1 var(--font-head); letter-spacing: .04em; overflow-wrap: break-word; }
.dc-hero .role { font-size: 15px; color: var(--muted); }
.dc-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.dc-chips .chip { white-space: normal; }
.dc-chips .chip.white { color: var(--ink); }
.dc-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.dc-acts .dc-ghost { background: rgba(247, 247, 250, .75); }
.dc-acts .dc-ghost:hover { background: #fff; color: var(--ink); }
.dc-upd { font: 400 11px var(--font-mono); letter-spacing: .06em; color: var(--muted); }
.dc-forkc { padding: 16px 18px; }
.dc-forkc > div { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.dc-forkc .dc-alert { font-size: 15px; font-weight: 600; line-height: 1.5; color: var(--rose-ink); white-space: pre-line; }
.dc-forkc .dot-list span { font-size: 14px; color: var(--ink); }

/* Карточка записи: разделы */
.dc-layout .side { top: 20px; }
.dc-group { display: flex; align-items: center; gap: 10px; margin: 8px 0 -4px; font: 400 10.5px/14px var(--font-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.dc-group::before { content: ""; flex: none; width: 5px; height: 5px; border-radius: 50%; background: var(--ink); }
.dc-group::after { content: ""; flex: 1; height: 1px; background: var(--line-2); }
.dc-group:first-child { margin-top: 0; }
.dc-sec .sec-head { flex-wrap: wrap; }
.dc-sec .sec-head h2 { flex: 1 1 200px; min-width: 0; }
.dc-stage { flex-shrink: 0; padding: 3px 9px; border-radius: var(--r-chip); font: 400 11px/1.4 var(--font-mono); letter-spacing: .06em; color: var(--muted);
  background: var(--paper); border: 1px solid var(--line-2); white-space: nowrap; cursor: help; }
.dc-empty { font-size: 13.5px; color: var(--muted); }
.dc-empty a { font-weight: 600; color: var(--acc-text); }
.dc-sub { display: flex; flex-direction: column; gap: 10px; }
.dc-sub h3 { font: 400 10.5px/14px var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.dc-text { display: flex; flex-direction: column; gap: 8px; }
.sec .dc-text p { font-size: 15px; line-height: 1.6; color: var(--text); }
.sec .dc-fact { font-size: 14.5px; line-height: 1.5; color: var(--text); }
.dc-fact b { color: var(--ink); font-weight: 600; }
.dc-price { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 18px; border-radius: 18px; background: var(--irid);
  border: 1px solid rgba(28, 30, 39, .14); }
.dc-price span { font-size: 14.5px; font-weight: 500; color: var(--ink); }
.dc-price b { font: 300 26px var(--font-head); color: var(--ink); white-space: nowrap; }
.dc-callout { display: flex; gap: 12px; padding: 14px 16px; border-radius: 18px; background: var(--warm-bg); border: 1px solid var(--warm-line); color: var(--acc-ink); }
.dc-callout > svg.i { margin-top: 1px; }
.dc-callout > div { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.dc-callout b { color: var(--acc-text); }
.sec .dc-callout p { font-size: 14.5px; line-height: 1.55; color: var(--ink); }
.rule-line.dc-info { background: var(--info-bg); border-color: var(--info-line); color: var(--info); }
.sec .rule-line.dc-info p { color: var(--ink); font-size: 14.5px; }
.dc-links { display: flex; flex-wrap: wrap; gap: 4px 8px; padding-top: 2px; }
.dc-links .pill-link { white-space: normal; line-height: 1.3; padding-top: 10px; padding-bottom: 10px; }
.dc-links .pill-link::before { inset: 4px 0; }
.dc-ref { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 16px; text-decoration: none; color: var(--ink); transition: background-color .18s, border-color .18s; }
.dc-ref:hover { color: var(--ink); background: rgba(255, 255, 255, .85); border-color: rgba(28, 30, 39, .24); }
.dc-ref .t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.dc-ref .t b { font-size: 14.5px; line-height: 1.35; font-weight: 600; }
.dc-ref .t span { font-size: 13px; line-height: 1.45; color: var(--muted); overflow-wrap: anywhere; }
.dc-ref .t i { font-style: normal; font-weight: 600; color: var(--text); }
.dc-ref > .i { flex-shrink: 0; color: var(--muted); transition: transform .18s, color .18s; }
.dc-ref:hover > .i { color: var(--ink); transform: translateX(3px); }
.dc-toc .dc-toc-g { margin: 8px 8px 2px; font: 400 10px/14px var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.dc-toc .dc-toc-g:first-of-type { margin-top: 0; }
.dc-note p { font-size: 13px; line-height: 1.5; color: var(--muted); }

/* Редактор карточки */
.dce-who { flex: 1 1 360px; display: flex; gap: 16px; align-items: center; min-width: 0; }
.dce-who .doc-photo { width: 64px; height: 64px; font-size: 20px; }
.dce-who h1 { font-size: 24px; line-height: 1.15; overflow-wrap: break-word; margin: 2px 0; }
.dce-sec { gap: 12px; }
.dce-sec .sec-head { flex-wrap: wrap; }
.dce-sec .sec-head h2 { flex: 1 1 200px; font-size: 14.5px; }
.dce-f { padding: 10px; margin: -4px -10px; border-radius: 16px; }
.dce-f.on { background: var(--irid); }
.dce-f select { min-height: 44px; padding: 0 12px; border-radius: 12px; border: 1px solid rgba(28, 30, 39, .2); background: var(--paper);
  font: 400 14.5px var(--font-body); letter-spacing: 0; text-transform: none; color: var(--ink); max-width: 100%; }
.dce-new { font: 400 10px/1.4 var(--font-mono); letter-spacing: .08em; padding: 2px 7px; margin-left: 6px; border-radius: 6px;
  background: var(--green-bg); border: 1px solid var(--green-line); color: var(--green); white-space: nowrap; text-transform: none; }
.dce-side { position: sticky; top: 20px; }
.dce-side .btn { align-self: flex-start; }
.dc-prices { display: flex; flex-direction: column; }
.dc-prices .price-row { padding: 9px 0; }
.s-doc { align-items: flex-start; }
.s-doc .doc-photo { margin-top: 2px; }
.s-doc .kbd { align-self: center; }

@media (max-width: 1100px) {
  .dc-toc, .dc-note { display: none; }
  .dce-side { position: static; }
}
@media (max-width: 900px) {
  .dc-hero { flex-direction: column; align-items: flex-start; gap: 16px; padding: 18px; border-radius: 20px; }
  .dc-hero .doc-photo { width: 96px; height: 96px; font-size: 28px; }
  .dc-hero h1 { font-size: 24px; }
  .dc-price { flex-direction: column; gap: 4px; }
  .doc-filter { min-height: 48px; }
  .dce-who .doc-photo { width: 52px; height: 52px; }
  .dce-who h1 { font-size: 20px; }
  .dc-forkc { padding: 14px; }
  .dc-forkc img { display: none; }
  .s-res.on .kbd { display: none; }
}

/* =====================================================================
   Путь клиента, шаг 2: карта 8 этапов (#/journey), страница этапа (#/journey/<код>),
   метка этапа у пунктов «Моего рабочего дня», ссылка-метка в карточке врача, этапы в редакторе.
   Места узлов на орбите приходят из app.js переменными --x / --y (встроенные style="" запрещены CSP).
   ===================================================================== */
/* ---------- Карта: орбита и панель выбранного этапа (компьютер ≥ 1101 px; уже — только список этапов) ---------- */
.jr-map { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: center; gap: 20px 32px; padding: 24px 26px 16px; }
.jr-orbit { position: relative; flex: 1 1 380px; min-width: 0; max-width: 540px; aspect-ratio: 1 / 1; }
.jr-ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.jr-ring circle { fill: none; stroke: var(--ink); stroke-width: 1; }
.jr-ring-main { stroke-opacity: .34; }
.jr-ring-in { stroke-opacity: .16; stroke-dasharray: 2 6; }
.jr-chev { fill: none; stroke: var(--muted); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.jr-chev.loop { stroke: var(--acc); stroke-width: 2; }
/* Центр орбиты: стеклянный круг с Луной (настоящая картинка) и «8 этапов», вокруг — перламутровое кольцо */
.jr-core { position: absolute; left: 50%; top: 50%; width: 34%; aspect-ratio: 1 / 1; transform: translate(-50%, -50%); border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-align: center; pointer-events: none;
  background: var(--glass); border: 1px solid var(--glass-border); box-shadow: var(--glass-shadow), 0 16px 40px -18px rgba(28, 30, 39, .3);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); }
.jr-core::before { content: ""; position: absolute; inset: -9%; z-index: -1; border-radius: 50%; background: var(--irid-ring); opacity: .85;
  -webkit-mask-image: radial-gradient(closest-side, transparent 80%, #000 87%, #000 92%, transparent 100%);
  mask-image: radial-gradient(closest-side, transparent 80%, #000 87%, #000 92%, transparent 100%); animation: jr-spin 40s linear infinite; }
@keyframes jr-spin { to { transform: rotate(360deg); } }
.jr-core .bot { width: 36%; height: auto; aspect-ratio: 122 / 168; margin-top: -4%; filter: drop-shadow(0 10px 12px rgba(28, 30, 39, .16)); }
.jr-core b { font: 300 20px/1.1 var(--font-head); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
.jr-core small { font: 400 10px/1.3 var(--font-mono); letter-spacing: .06em; color: var(--muted); }
/* Узел этапа: кружок с кодом на кольце, под ним название; выбранный — графитовый, этапы выбранной роли — оранжевая рамка и точка */
.jr-node { position: absolute; z-index: 2; left: var(--x, 50%); top: var(--y, 50%); transform: translate(-50%, -26px); width: 112px;
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 0; border: 0; background: none; color: var(--ink);
  text-align: center; font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.jr-dot { position: relative; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line-3); background: var(--paper);
  font: 400 14px/1 var(--font-mono); color: var(--ink); box-shadow: 0 10px 22px -16px rgba(28, 30, 39, .55);
  transition: border-color .18s, box-shadow .2s, background-color .2s, color .2s, transform .15s; }
.jr-lbl { padding: 1px 6px; border-radius: 6px; background: rgba(236, 237, 241, .88); font-size: 12.5px; line-height: 1.25; font-weight: 500; color: var(--ink); }
.jr-node:hover .jr-dot { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(207, 198, 230, .75); }
.jr-node:active .jr-dot { transform: scale(.95); }
.jr-node.mine .jr-dot { border: 1.5px solid var(--acc); }
.jr-node.mine .jr-dot::after { content: ""; position: absolute; right: -1px; top: -1px; width: 11px; height: 11px; border-radius: 50%; background: var(--acc);
  box-shadow: 0 0 0 3px rgba(var(--acc-rgb), .2); }
.jr-node[aria-pressed="true"] .jr-dot { background: var(--ink); border-color: var(--ink); color: #F2F3F6;
  box-shadow: 0 0 0 4px rgba(230, 201, 221, .9), 0 0 18px 4px rgba(190, 207, 227, .95); }
.jr-node[aria-pressed="true"] .jr-lbl { font-weight: 600; background: rgba(255, 255, 255, .92); }
.jr-node:focus-visible { outline: none; box-shadow: none; }
.jr-node:focus-visible .jr-dot { outline: 2px solid var(--ink); outline-offset: 3px; box-shadow: var(--focus); }
/* Панель выбранного этапа */
.jr-panel { flex: 1 1 280px; min-width: 0; max-width: 420px; display: flex; flex-direction: column; gap: 12px; padding: 20px 22px; border-radius: var(--r-card); }
.jr-p-title { font: 300 30px/1.1 var(--font-head); letter-spacing: .05em; text-transform: uppercase; overflow-wrap: break-word; }
.jr-p-goal { font-size: 15px; line-height: 1.5; color: var(--text); }
.jr-facts { margin: 0; display: flex; flex-direction: column; }
.jr-facts > div { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 10px; align-items: baseline; padding: 9px 0; border-top: 1px solid var(--line); }
.jr-facts dt { font: 400 10.5px/1.5 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.jr-facts dd { margin: 0; min-width: 0; font-size: 14px; line-height: 1.45; color: var(--text); }
.jr-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.jr-facts .chip, .jr-who .chip { white-space: normal; }
.chip.jr-me { border-color: rgba(var(--acc-rgb), .75); background: #fff; color: var(--acc-text); }
.chip.jr-weak { background: transparent; border-style: dashed; border-color: var(--line-3); color: var(--muted); }
.jr-legend { flex: 1 1 100%; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 24px; padding-top: 12px; border-top: 1px solid var(--line);
  font: 400 11px/1.4 var(--font-mono); letter-spacing: .04em; color: var(--muted); }
.jr-legend > span { display: inline-flex; align-items: center; gap: 8px; }
.jr-legend i { flex: none; display: inline-block; }
.jr-legend .lg-mine { width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid var(--acc); background: var(--paper); }
.jr-legend .lg-loop { width: 16px; height: 2px; border-radius: 2px; background: var(--acc); }
/* Список этапов: под орбитой на компьютере, единственный вид на планшете и телефоне */
.jr-list { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); }
.jr-card { gap: 10px; }
.jr-card .jr-head { display: flex; align-items: center; gap: 12px; min-width: 0; }
.jr-card h3 { min-width: 0; overflow-wrap: break-word; }
.jr-code { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-3); background: var(--paper);
  font: 400 13px/1 var(--font-mono); color: var(--ink); }
.jr-card.mine .jr-code { border: 1.5px solid var(--acc); box-shadow: 0 0 0 3px rgba(var(--acc-rgb), .14); }
.jr-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: auto; font: 400 11px/1.4 var(--font-mono); color: var(--muted); }
.hero.jr-maphero .hero-say { font-size: 12.5px; line-height: 1.45; }
/* Одна Луна на экране: на компьютере она в центре орбиты, в шапке — только на планшете и телефоне */
@media (min-width: 1101px) { .hero.jr-maphero .hero-top > .bot { display: none; } }
@media (max-width: 1100px) { .jr-map { display: none; } }

/* ---------- Страница этапа ---------- */
.jr-norms .chip { white-space: normal; }
/* «Кому передать» на узком экране: ситуация и адресат — друг под другом (длинный адресат не сжимает текст в столбик) */
@media (max-width: 560px) {
  .handoff-row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .handoff-row b { white-space: normal; }
}.jr-layout > .side { position: static; }
@media (min-width: 1101px) and (min-height: 960px) { .jr-layout > .side { position: sticky; } }
/* Полоса этапов 01…08: текущий — графитовый кружок с оранжевой точкой; на узкой полосе остаются только номера */
.jr-stepper { display: flex; flex-direction: column; gap: 4px; padding: 12px 16px 8px; border-radius: var(--r-card); container-type: inline-size; }
.jr-steps { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); }
.jr-steps::before { content: ""; position: absolute; left: 6.25%; right: 6.25%; top: 22px; height: 1px; background: var(--line-3); }
.jr-steps li { display: flex; min-width: 0; }
.jr-step { position: relative; flex: 1; min-width: 0; min-height: 44px; display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 5px 2px 4px;
  border-radius: 12px; color: var(--ink); text-decoration: none; text-align: center; }
.jr-step .n { position: relative; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-3); background: var(--paper);
  font: 400 12px/1 var(--font-mono); transition: border-color .18s, box-shadow .2s; }
.jr-step .t { font-size: 11.5px; line-height: 1.25; color: var(--muted); }
.jr-step:hover { color: var(--ink); }
.jr-step:hover .n { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(207, 198, 230, .75); }
.jr-step:hover .t { color: var(--ink); }
.jr-step[aria-current="step"] .n { background: var(--ink); border-color: var(--ink); color: #F2F3F6; box-shadow: 0 0 0 3px rgba(230, 201, 221, .9); }
.jr-step[aria-current="step"] .n::after { content: ""; position: absolute; right: -2px; top: -2px; width: 8px; height: 8px; border-radius: 50%; background: var(--acc);
  box-shadow: 0 0 0 2px var(--paper); }
.jr-step[aria-current="step"] .t { color: var(--ink); font-weight: 600; }
.jr-step:focus-visible { outline: none; box-shadow: none; }
.jr-step:focus-visible .n { outline: 2px solid var(--ink); outline-offset: 2px; box-shadow: var(--focus); }
@container (max-width: 680px) {
  .jr-step .t { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
}
@container (max-width: 360px) {
  .jr-steps::before { top: 20px; }
  .jr-step .n { width: 30px; height: 30px; font-size: 11px; }
}
.jr-pn { display: flex; flex-wrap: wrap; align-items: stretch; gap: 4px 12px; padding-top: 4px; border-top: 1px solid var(--line); }
.jr-pn:empty { display: none; }
.jr-pn-a { display: flex; flex-direction: column; justify-content: center; gap: 2px; min-width: 0; min-height: 48px; padding: 4px 8px; border-radius: 12px;
  color: var(--ink); text-decoration: none; transition: background-color .18s; }
.jr-pn-a small { font: 400 10.5px/14px var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.jr-pn-a b { font-size: 14px; line-height: 1.3; font-weight: 600; }
.jr-pn-a:hover { background: rgba(255, 255, 255, .72); color: var(--ink); }
.jr-pn-a.next { margin-left: auto; align-items: flex-end; text-align: right; }
/* Этап ещё без статьи */
.jr-empty { gap: 10px; }
.jr-empty h2 { font-size: 15px; letter-spacing: .14em; }
.jr-empty > p:not(.ed-hint) { font-size: 14.5px; line-height: 1.55; color: var(--text); }
.jr-empty code, .note code { font: 400 12.5px var(--font-mono); padding: 1px 6px; border-radius: 6px; background: rgba(28, 30, 39, .06); }
/* «Кто что делает в маршруте дня» и «Материалы этапа» */
.jr-sec { display: flex; flex-direction: column; gap: 12px; min-width: 0; scroll-margin-top: 24px; }
/* На телефоне шапка с поиском прилипает сверху — секция по оглавлению не уезжает под неё */
@media (max-width: 900px) { .jr-sec, .jr-layout .sec { scroll-margin-top: 84px; } }
.jr-sec > .section-title:focus-visible, .sec h2:focus-visible { outline-offset: 4px; border-radius: 6px; }
.jr-cnt { flex: none; min-width: 22px; padding: 1px 7px; border-radius: 8px; border: 1px solid var(--line); background: rgba(255, 255, 255, .7);
  font: 400 11px/18px var(--font-mono); letter-spacing: 0; text-align: center; color: var(--ink); }
.jr-roles { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); }
.jr-role { gap: 10px; }
.jr-role.mine { border-color: rgba(var(--acc-rgb), .5); box-shadow: var(--glass-shadow), 0 0 0 3px rgba(var(--acc-rgb), .12); }
.jr-role h3 { font: 400 14px/1.3 var(--font-head); letter-spacing: .12em; text-transform: uppercase; }
.jr-wd { margin-top: -6px; font-size: 13px; line-height: 1.4; color: var(--muted); }
.jr-ritems { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.jr-ritems li { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 10px 0; border-top: 1px solid var(--line); }
.jr-ritems li:first-child { padding-top: 2px; border-top: 0; }
.jr-ritems .per { font: 400 10.5px/14px var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--acc-text); }
.jr-ritems b { font-size: 14.5px; line-height: 1.4; font-weight: 500; color: var(--ink); }
.jr-ritems .hint { font-size: 13px; line-height: 1.45; color: var(--muted); }
.jr-ritems .pill-link { margin: -4px 0 -10px; white-space: normal; }
.jr-role > .il { align-self: flex-start; margin: -6px 0 -10px; }
.jr-mgroup { display: flex; flex-direction: column; gap: 10px; }
.jr-mg-h { display: flex; align-items: center; gap: 8px; font: 400 10.5px/14px var(--font-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.card-where { margin-top: auto; font: 400 11px/1.4 var(--font-mono); letter-spacing: .02em; color: var(--muted); }
/* Правая колонка страницы этапа */
.jr-who p, .jr-gaps p:not(.ed-hint) { font-size: 13.5px; line-height: 1.5; color: var(--text); }
.jr-who b { font-weight: 600; color: var(--ink); }
.jr-find p { font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.jr-gaps ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; line-height: 1.45; color: var(--text); }
.jr-gaps li::marker { color: var(--acc); }
.jr-cov-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

/* ---------- Метка этапа у пункта «Моего рабочего дня»: «01 · Заявка» рядом с названием пункта ---------- */
.route-item .txt .ri-top { display: flex; flex-wrap: wrap; align-items: center; column-gap: 8px; row-gap: 2px; font-size: inherit; line-height: inherit; color: inherit; }
.jr-chip { display: inline-flex; align-items: center; min-height: 24px; padding: 0 8px; border-radius: var(--r-chip); border: 1px solid var(--line-2);
  background: rgba(247, 247, 250, .7); font: 400 11px/1 var(--font-mono); letter-spacing: .02em; color: var(--muted); text-decoration: none; white-space: nowrap;
  transition: border-color .18s, color .18s, background-color .18s; }
.jr-chip:hover { border-color: var(--ink); background: var(--paper); color: var(--ink); }
/* Карточка врача: метка «этап 03» — ссылка на страницу этапа */
a.dc-stage { display: inline-flex; align-items: center; min-height: 24px; cursor: pointer; color: var(--ink); text-decoration: none; transition: border-color .18s, background-color .18s; }
a.dc-stage:hover { border-color: var(--ink); background: #fff; color: var(--ink); }
/* Редактор: этапы пути клиента (до трёх) */
.ed-code { flex: none; min-width: 18px; font: 400 12px/1 var(--font-mono); color: var(--muted); }
.ed-role:has(input:disabled) { cursor: default; color: var(--muted); }

/* ===== «Насыщеннее» · мягко (09.10, по критике «всё бледненькое»): глубина карточек, темнее серый, плотнее выделение
   и подписи. Стоит в конце screens.css — перекрывает app.css при равной специфичности. ===== */
:root {
  /* Глубина: кромка карточки 1,26 → 1,37 : 1 и мягкая тень снизу — стекло отрывается от фона */
  --glass-border: rgba(28, 30, 39, .16);
  --glass-shadow: inset 0 1px 0 rgba(255, 255, 255, .85), 0 1px 2px rgba(28, 30, 39, .05), 0 14px 32px -20px rgba(28, 30, 39, .3);
  /* Поиск, «ИИ-помощник», колокольчик, профиль: были ТЕМНЕЕ карточек; к фону 1,05 → 1,16 : 1 */
  --field: #F4F5F8;
  /* Серый текст и подписи: 6,15 → 7,31 : 1 на карточке, 5,36 → 6,36 : 1 на самом тёмном фоне */
  --muted: #4A4C5D;
  --soft: #4A4C5D;
  /* «Выбрано / я здесь» (пункт меню, вкладка, роль, документ): к меню 1,31 → 1,6–1,7 : 1;
     графит на нём 7,4–9,2 : 1, серый --muted ≥ 4,54 : 1. Свечения (--irid-ring) не трогаем */
  --irid: linear-gradient(100deg, #DDB6D0 0%, #A9C1DF 50%, #C2B8E5 100%);
  /* Рамка полей и списков: 1,5 → 3,4–3,7 : 1 (норма для элементов управления 3 : 1) */
  --ctl-line: rgba(28, 30, 39, .55);
}

/* Меню — светлое, как карточки: к фону 1,09 → 1,19 : 1 */
.sidebar { background: rgba(243, 244, 247, .94); }
@media (max-width: 900px) {
  .sidebar { background: #F3F4F7; }
  .topbar { background: rgba(243, 244, 247, .94); }
}
/* На светлом меню белое наведение не видно — наведение затемнением (текущий пункт не трогаем) */
.nav-link:not([aria-current="page"]):hover { background: rgba(28, 30, 39, .05); }
.role-switch > button { background: transparent; border-color: var(--line-3); }
.role-switch > button:hover { background: rgba(28, 30, 39, .04); }
.role-switch .cap { letter-spacing: .08em; white-space: nowrap; }   /* «СМОТРЮ РОЛЬ · СМЕНИТЬ» в одну строку */

/* Меню: иконки графитовые (середина штриха 2,4 → ≈12 : 1), текущий пункт — плотнее и не переливается */
.nav-link svg.i { color: var(--text); stroke-width: 1.6; }
.nav-link[aria-current="page"] { border-color: rgba(28, 30, 39, .22); background-size: 100% 100%; animation: none; }
.doc-item[aria-current="true"] .t > span, .doc-item[aria-current="true"] .t .why { color: var(--text); }

/* Подписи-kicker (дополняет правку №4): цвет кнопки-текста + масса, чтобы цвет узнавался */
.kicker { color: var(--acc-text); font-weight: 500; font-size: 11.5px; line-height: 16px; letter-spacing: .14em; }
.kicker > i { width: 22px; height: 1.5px; background: var(--acc); }
.dc-hero .spec { color: var(--acc-text); font-weight: 500; font-size: 11.5px; line-height: 16px; letter-spacing: .14em; }
.dc-hero .spec::before { width: 22px; height: 1.5px; background: var(--acc); }

/* Мелкие моно-подписи (МОЙ РАЗДЕЛ, ДЛЯ ВСЕХ, заголовки таблиц): 400 → 500, цвет серый */
.cap, .nav-group, .aside-note, .toc .ttl, .side .ttl, .sec th, .users-table th, .gt-head > span, .gt-head > span:first-child,
.s-group > span, .say-head > span, .stage small, .week-card > span, .progress-card > span, .boot { font-weight: 500; }
.nav-group::after { background: var(--line-2); }

/* Текст: подзаголовок шапки — графит; цитата дня и цифры — Jost 400 (300 в Windows сереет). Заголовок H1 остаётся 300 */
.hero p { color: var(--text); }
.motd p, .quote-big { font-weight: 400; }
.kpi-tile .v, .leader .v, .ring b, .ring2 b { font-weight: 400; }
.card-head h2 { font-weight: 500; }

/* Поля и выпадающие списки: рамка ≥ 3 : 1, при наведении — графит */
.field input, .field select, .field textarea, .card-head .emp-select, .ed-lbl select, .ed-filters select, .dce-f select, .ed-input { border-color: var(--ctl-line); }
.field input:hover, .field select:hover, .field textarea:hover, .card-head .emp-select:hover, .ed-lbl select:hover, .ed-filters select:hover, .dce-f select:hover { border-color: var(--ink); }

/* Акцент-знак: спутник логотипа — терракотовый (CSS перекрывает fill="#1C1E27" в logoSvg()) */
.brand .logo circle:last-child { fill: var(--acc); }


/* ===== Объёмные цветные значки (09.10, просьба Любови: «выпуклые и цветные, не плоские»).
   Цвет — по смыслу значка (data-ic из icon()): зелёный — переписка и «готово», синий — телефон и время,
   фиолетовый — люди, янтарный — документы, бирюзовый — системы и передача, розовый — здоровье, красный — опасно,
   терракота — главное и маршрут. Объём: свет сверху слева, тень снизу, мягкая цветная тень под значком.
   Тон «rose» (опасно) и «green» (сдано) у плиток — главнее цвета значка. Белый знак на цвете ≥ 3 : 1. ===== */
/* Прозрачность значков (просьба 09.10 «чуть прозрачнее»): 78 %; предупреждающие (опасно, ⚠, «!») — плотные */
:where(.tile, .ic, .qx > svg.i) { --chip-a: 78%; --chip-s: .7; }
.tile.rose, .ic.rose, :is(.tile, .ic):has(> svg.i:is([data-ic="alert"], [data-ic="warn"])) { --chip-a: 100%; --chip-s: 1; }
/* Серый по умолчанию — нулевая специфичность (:where), чтобы цвет по смыслу всегда перекрывал его */
:where(.tile, .ic, .nav-link > svg.i, .qx > svg.i) { --ha: #A3A9BB; --hb: #5E6478; --hr: 94, 100, 120; }
/* terra */
svg.i:is([data-ic="home"],[data-ic="route"],[data-ic="target"],[data-ic="star"],[data-ic="award"],[data-ic="spark"]), :is(.tile, .ic):has(> svg.i:is([data-ic="home"],[data-ic="route"],[data-ic="target"],[data-ic="star"],[data-ic="award"],[data-ic="spark"])) { --ha: #E58A62; --hb: #B4532A; --hr: 180,83,42; }
/* green */
svg.i:is([data-ic="chat"],[data-ic="speech"],[data-ic="tick"],[data-ic="okcircle"],[data-ic="check"],[data-ic="cardcheck"],[data-ic="checklist"],[data-ic="leaf"],[data-ic="tasks"]), :is(.tile, .ic):has(> svg.i:is([data-ic="chat"],[data-ic="speech"],[data-ic="tick"],[data-ic="okcircle"],[data-ic="check"],[data-ic="cardcheck"],[data-ic="checklist"],[data-ic="leaf"],[data-ic="tasks"])) { --ha: #4CC48D; --hb: #1E8A55; --hr: 30,138,85; }
/* blue */
svg.i:is([data-ic="phone"],[data-ic="headset"],[data-ic="day"],[data-ic="sunrise"],[data-ic="cal"],[data-ic="calplus"],[data-ic="mis"],[data-ic="info"],[data-ic="bell"],[data-ic="shield"]), :is(.tile, .ic):has(> svg.i:is([data-ic="phone"],[data-ic="headset"],[data-ic="day"],[data-ic="sunrise"],[data-ic="cal"],[data-ic="calplus"],[data-ic="mis"],[data-ic="info"],[data-ic="bell"],[data-ic="shield"])) { --ha: #5DA7EE; --hb: #2766B4; --hr: 39,102,180; }
/* violet */
svg.i:is([data-ic="user"],[data-ic="users"],[data-ic="kpi"],[data-ic="bars"],[data-ic="scenarios"],[data-ic="quote"]), :is(.tile, .ic):has(> svg.i:is([data-ic="user"],[data-ic="users"],[data-ic="kpi"],[data-ic="bars"],[data-ic="scenarios"],[data-ic="quote"])) { --ha: #A58BEA; --hb: #6B47C2; --hr: 107,71,194; }
/* amber */
svg.i:is([data-ic="doc"],[data-ic="news"],[data-ic="feed"],[data-ic="book"],[data-ic="standards"],[data-ic="list"],[data-ic="lines"],[data-ic="table"],[data-ic="image"],[data-ic="video"],[data-ic="upload"],[data-ic="inbox"],[data-ic="rub"]), :is(.tile, .ic):has(> svg.i:is([data-ic="doc"],[data-ic="news"],[data-ic="feed"],[data-ic="book"],[data-ic="standards"],[data-ic="list"],[data-ic="lines"],[data-ic="table"],[data-ic="image"],[data-ic="video"],[data-ic="upload"],[data-ic="inbox"],[data-ic="rub"])) { --ha: #F0AE4A; --hb: #B8701A; --hr: 184,112,26; }
/* teal */
svg.i:is([data-ic="amo"],[data-ic="board"],[data-ic="handoff"],[data-ic="swap"],[data-ic="refresh"],[data-ic="building"],[data-ic="clinic"]), :is(.tile, .ic):has(> svg.i:is([data-ic="amo"],[data-ic="board"],[data-ic="handoff"],[data-ic="swap"],[data-ic="refresh"],[data-ic="building"],[data-ic="clinic"])) { --ha: #47C6BA; --hb: #178279; --hr: 23,130,121; }
/* pink */
svg.i:is([data-ic="heart"],[data-ic="drop"],[data-ic="flask"]), :is(.tile, .ic):has(> svg.i:is([data-ic="heart"],[data-ic="drop"],[data-ic="flask"])) { --ha: #F08AAB; --hb: #C34671; --hr: 195,70,113; }
/* red */
svg.i:is([data-ic="alert"],[data-ic="warn"]), :is(.tile, .ic):has(> svg.i:is([data-ic="alert"],[data-ic="warn"])) { --ha: #F0646E; --hb: #B01F2E; --hr: 176,31,46; }
/* Тон плитки «опасно» и «сдано» главнее цвета значка (:not(#_) поднимает специфичность над правилами :has) */
.tile.rose:not(#_), .ic.rose:not(#_) { --ha: #F0646E; --hb: #B01F2E; --hr: 176, 31, 46; }
.tile.green:not(#_) { --ha: #4CC48D; --hb: #1E8A55; --hr: 30, 138, 85; }

.tile, .tile.blue, .tile.teal, .tile.indigo, .tile.pink, .tile.green, .tile.amber, .tile.rose,
.quick .tile, .quick .tile.blue, .quick .tile.teal, .quick .tile.indigo, .quick .tile.pink, .quick .tile.green, .quick .tile.amber,
.icon-row .ic, .icon-row .ic.blue, .icon-row .ic.green, .icon-row .ic.amber, .hint-list .ic {
  border: 0; color: #fff;
  background: radial-gradient(120% 95% at 30% 12%, rgba(255, 255, 255, .55) 0, rgba(255, 255, 255, .14) 40%, rgba(255, 255, 255, 0) 62%),
    linear-gradient(160deg, color-mix(in srgb, var(--ha) var(--chip-a), transparent), color-mix(in srgb, var(--hb) var(--chip-a), transparent));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), inset 0 -2px 4px rgba(0, 0, 0, .14),
    0 6px 14px -6px rgba(var(--hr), calc(.75 * var(--chip-s))), 0 1px 2px rgba(28, 30, 39, .16); }
.tile svg.i, .ic svg.i { stroke-width: 1.9; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .25)); }
.quick:hover .tile { transform: translateY(-1px); }
.quick .tile { transition: transform .18s; }

/* Меню слева: значок-контур, как раньше, но цветной по смыслу и без объёма (просьба 09.10) */
.nav-link > svg.i:not(.ext-ic), .nav-link[aria-current="page"] > svg.i:not(.ext-ic), .nav-link:hover > svg.i:not(.ext-ic) {
  width: 20px; height: 20px; color: var(--hb); stroke-width: 1.8; }
/* Быстрые ссылки (amoCRM, МИС, Телефония): маленькая плитка */
.qx > svg.i:first-child { width: 32px; height: 32px; padding: 6px; border-radius: 10px; color: #fff; stroke-width: 1.8;
  background: radial-gradient(120% 95% at 30% 12%, rgba(255, 255, 255, .5) 0, rgba(255, 255, 255, .12) 40%, rgba(255, 255, 255, 0) 62%),
    linear-gradient(160deg, color-mix(in srgb, var(--ha) var(--chip-a), transparent), color-mix(in srgb, var(--hb) var(--chip-a), transparent));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), inset 0 -2px 3px rgba(0, 0, 0, .14), 0 5px 12px -6px rgba(var(--hr), calc(.8 * var(--chip-s))), 0 1px 2px rgba(28, 30, 39, .16); }

/* Подписи акцентным цветом: части маршрута дня (УТРО, ДЕНЬ, ВЕЧЕР) и поля карточки этапа пути клиента (РОЛИ КЦ, КРОМЕ КЦ…) */
.route-when b { color: var(--acc-text); }
.jr-facts dt { color: var(--acc-text); font-weight: 500; }
/* «Подсказки на весь день» — совет, а не опасность: янтарный значок вместо красного */
.hint-list .ic:not(#_) { --ha: #F0AE4A; --hb: #B8701A; --hr: 184, 112, 26; }

/* ===== Карточки «Показатели отдела» (09.10): значок и название сверху, крупное число, полоска выполнения
   (тонкая черта — 100 % плана, у пропущенных — норма 5 %), ярлык статуса и процент; слева цветная кромка по статусу ===== */
.kpi-tile { position: relative; overflow: hidden; gap: 8px; padding: 15px 16px 14px 18px; }
.kpi-tile::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 0 3px 3px 0; background: transparent; }
.kpi-tile.is-good::before { background: rgba(46, 154, 100, .85); }
.kpi-tile.is-mid::before { background: rgba(208, 138, 34, .85); }
.kpi-tile.is-bad::before { background: rgba(200, 50, 60, .8); }
.kpi-tile .kt-h { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 13.5px; line-height: 1.25; font-weight: 500; color: var(--text); }
.kpi-tile .kt-h svg.i { flex: none; width: 18px; height: 18px; color: var(--hb, var(--muted)); stroke-width: 1.8; }
.kpi-tile .v { margin-top: 2px; }
.kt-row { display: flex; align-items: center; gap: 10px; margin: 2px 0 1px; }
.kt-bar { position: relative; display: block; flex: 1 1 auto; min-width: 0; height: 6px; border-radius: 99px; background: rgba(28, 30, 39, .09); }
.kt-bar i { position: absolute; left: 0; top: 0; bottom: 0; width: var(--fill, 0%); border-radius: inherit; background: linear-gradient(90deg, #A3A9BB, #5E6478); }
.kt-bar.good i { background: linear-gradient(90deg, #6DD3A1, #24885A); }
.kt-bar.mid i { background: linear-gradient(90deg, #F5C46E, #C27E1F); }
.kt-bar.bad i { background: linear-gradient(90deg, #F3858C, #B91C2C); }
.kt-bar b { position: absolute; top: -3px; bottom: -3px; left: var(--mark, 100%); width: 2px; margin-left: -1px; border-radius: 1px; background: var(--ink); opacity: .5; }
.kt-foot { display: flex; align-items: center; justify-content: space-between; gap: 6px 8px; flex-wrap: wrap; }
.kpi-tile .kt-foot .st { flex-basis: auto; padding: 2px 9px; border-radius: 99px; border: 1px solid transparent; font-size: 11.5px; font-weight: 600; line-height: 1.5; }
.kpi-tile .kt-foot .st.good { color: var(--green); background: var(--green-bg); border-color: var(--green-line); }
.kpi-tile .kt-foot .st.mid { color: var(--amber); background: var(--amber-bg); border-color: var(--amber-line); }
.kpi-tile .kt-foot .st.bad { color: var(--rose); background: var(--rose-bg); border-color: var(--rose-line); }
.kt-pct { flex: none; font: 500 12.5px/1 var(--font-mono); color: var(--text); }
.kpi-tile .s { font-size: 12px; }

/* ===== Подзаголовки внутри карточек — акцентным цветом, как подписи над заголовками (просьба 09.10:
   «везде, где такие заголовки, во всех карточках»): разделы карточки врача и её оглавление, оглавления материалов,
   «Что говорим», шапки таблиц, группы поиска, этапы пути клиента. Мелкие служебные подписи (меню, даты, поля
   редактора, подписи под кольцом) остаются серыми. Цвет --acc-text: 6–7 : 1 на стекле. ===== */
.dc-sub h3, .dc-group, .dc-toc .dc-toc-g, .toc .ttl, .side .ttl, .say-head > span, .stage small, .jr-mg-h,
.s-group > span, .gt-head, .sec th, .users-table th, .week-card > span { color: var(--acc-text); font-weight: 500; }
.dc-group::before { background: var(--acc); }
/* Цена с пояснением («1 000 ₽ (повторным пациентам)») на узком экране переносится, а не вылезает за край */
.price-row span { flex: 1 1 auto; min-width: 0; }
/* цена — своей шириной (короткая не ломается), но не шире 60 % строки: длинная переносится по словам */
.price-row b { flex: none; max-width: 60%; white-space: normal; text-align: right; }

/* ===== «Отчёт КЦ» (#/report, 09.10): связь с отчётом, ключ и шаги подключения скрипта Google.
   Ключ и код скрипта не раздвигают страницу: поле ключа прокручивается внутри себя, код — в своей рамке.
   Тёмной темы у навигатора нет — цвета только из переменных, чтобы она подхватилась, когда появится. ===== */
.rl-last { font-size: 15px; line-height: 1.55; color: var(--text); overflow-wrap: anywhere; }
.rl-last b { font-weight: 600; color: var(--ink); }
.rl-ago { color: var(--muted); }
.rl-note { display: flex; gap: 10px; align-items: flex-start; margin: 0; line-height: 1.5; overflow-wrap: anywhere; }
.rl-note > svg.i { flex: none; margin-top: 1px; }
.rl-note b { font-weight: 600; }
.rl-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.rl-acts .btn { max-width: 100%; white-space: normal; text-align: left; }
.btn.copied, .btn.primary.copied { border-color: var(--green-line); background: var(--green-bg); color: var(--green); box-shadow: none; }

/* Шаги: номер в кружке слева, текст и кнопки справа */
.rl-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.rl-step { display: grid; grid-template-columns: 34px minmax(0, 1fr); column-gap: 14px; padding: 16px 0; border-top: 1px solid var(--line); }
.rl-step:first-child { padding-top: 2px; border-top: 0; }
.rl-step:last-child { padding-bottom: 4px; }
.rl-step-b { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.rl-step-b h3 { padding-top: 6px; font-size: 15.5px; line-height: 1.3; }
.rl-step-b p { font-size: 14.5px; line-height: 1.55; color: var(--text); }
.rl-step-b p.rl-hint { font-size: 13.5px; color: var(--muted); }
.rl-mono { padding: 1px 6px; border-radius: 6px; border: 1px solid var(--line); background: var(--paper); color: var(--ink);
  font: 500 13px/1.4 var(--font-mono); white-space: nowrap; }

/* Ключ: поле только для чтения + «Скопировать»; длинный ключ прокручивается внутри поля */
.rl-keybox { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.rl-key { display: flex; flex-direction: column; gap: 8px; }
.rl-lbl { font-size: 13.5px; font-weight: 500; color: var(--ink); }
.rl-key-row { display: flex; gap: 8px; align-items: stretch; }
.rl-key-input { flex: 1 1 auto; min-width: 0; min-height: 44px; padding: 10px 14px; border-radius: var(--r-ctl); border: 1px solid var(--green-line);
  background: var(--paper); color: var(--green); font: 500 14px/1.3 var(--font-mono); letter-spacing: .02em; text-overflow: clip; }
.rl-key-input:focus-visible { outline-offset: 1px; }
.rl-key-row .btn { flex: none; }

/* Код скрипта: свёрнут под «Показать код», прокручивается в своей рамке */
.rl-details summary { display: inline-flex; list-style: none; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; font-size: 14px; font-weight: 500; color: var(--ink);
  text-decoration: underline; text-decoration-color: rgba(28, 30, 39, .35); text-underline-offset: 3px; }
.rl-details summary:hover { text-decoration-color: var(--ink); }
.rl-details summary::-webkit-details-marker { display: none; }
.rl-details summary svg.i { transition: transform .18s; }
.rl-details[open] summary svg.i { transform: rotate(180deg); }
.rl-code { max-height: 360px; margin: 6px 0 0; padding: 14px 16px; overflow: auto; border-radius: 14px; border: 1px solid var(--line-2); background: var(--paper);
  font: 400 12.5px/1.55 var(--font-mono); color: var(--text); white-space: pre; tab-size: 2; scrollbar-width: thin; }

/* «Остановить передачу» и пометка «давно не обновлялся» на Главной */
.rl-stop { display: flex; gap: 8px; align-items: flex-start; padding-top: 12px; border-top: 1px solid var(--line); }
.rl-stop > svg.i { flex: none; margin-top: 2px; }
.stale-note { display: inline; padding: 1px 8px; border-radius: var(--r-chip); border: 1px solid var(--amber-line); background: var(--amber-bg); color: var(--amber);
  font-weight: 600; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.stale-note a { color: inherit; }

@media (max-width: 560px) {
  .rl-step { grid-template-columns: 30px minmax(0, 1fr); column-gap: 10px; }
  .rl-step .num { width: 30px; height: 30px; font-size: 12px; }
  .rl-step-b h3 { padding-top: 4px; }
  .rl-key-row { flex-direction: column; }
  .rl-key-row .btn { width: 100%; justify-content: center; }
  .rl-code { max-height: 300px; padding: 12px; font-size: 12px; }
}

/* ===== Коллеги «Люди Флебология» (15.10): водяной знак, запрет выделения и печати; у руководителя — блокировки и журнал.
   Режим включает app.js меткой data-partner на <html>. Полностью защитить то, что видно на экране, нельзя:
   водяной знак оставляет след на снимке экрана, запреты мешают выкачать материалы целиком. ===== */
/* Водяной знак: слой поверх всего (и окон), щелчки проходят насквозь. Плитку SVG «логин · дата · Навигатор КЦ» ставит app.js в --wm */
.wm { position: fixed; inset: 0; z-index: 2147483000; overflow: hidden; pointer-events: none; }
.wm::before { content: ""; position: absolute; inset: -60%; background-image: var(--wm); background-repeat: repeat; transform: rotate(-24deg); }
/* Выделять текст и перетаскивать картинки нельзя; в полях ввода (поиск, пароль) можно */
html[data-partner] body { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
html[data-partner] :is(input, textarea, select) { -webkit-user-select: text; user-select: text; -webkit-touch-callout: default; }
html[data-partner] :is(img, video, svg) { -webkit-user-drag: none; }
html[data-partner] :is(.copy-btn, [data-copy], [data-cheat]) { display: none !important; }
/* Метка этапа без ссылки (у коллег нет «Пути клиента») не реагирует на наведение */
span.jr-chip:hover { border-color: var(--line-2); background: rgba(247, 247, 250, .7); color: var(--muted); }
@media print {
  html[data-partner] body > * { display: none !important; }
  html[data-partner] body::before { content: "Печать недоступна"; display: block; padding: 48px 24px; font: 400 22px/1.4 Arial, sans-serif; color: #1C1E27; text-align: center; }
}

/* «Команда и доступы»: пометка «заблокирован: причина» в строке и плашка над таблицей */
.u-blocked { display: flex; align-items: flex-start; gap: 6px; min-width: min(220px, 100%); margin-top: 6px; font-size: 12.5px; line-height: 1.4; font-weight: 600; color: var(--rose-ink); }
.u-blocked > svg.i { flex: none; margin-top: 1px; }
.partner-alert { display: flex; gap: 12px; align-items: flex-start; margin: 0; }
.partner-alert > svg.i { flex: none; margin-top: 2px; }
.partner-alert > div { display: flex; flex-direction: column; gap: 6px; min-width: 0; overflow-wrap: anywhere; }
.partner-alert b { font-weight: 600; }
.partner-alert p { font-size: 14px; line-height: 1.5; }
.partner-alert .il { align-self: flex-start; min-height: 32px; color: inherit; white-space: normal; }

/* Журнал коллег (#/partner-log): что открыто — метка вида (Врач, Материал, Поиск…) и название */
.pl-kind { display: inline-flex; align-items: center; gap: 4px; margin-right: 4px; padding: 1px 8px; border-radius: var(--r-chip); border: 1px solid var(--line-2);
  background: rgba(247, 247, 250, .7); font: 400 11px/1.6 var(--font-mono); color: var(--muted); vertical-align: 1px; white-space: nowrap; }
.pl-kind svg.i { width: 13px; height: 13px; }
.pl-views .what { overflow-wrap: anywhere; }
.pl-views .who small, .pl-blocked .who small { display: block; font-size: 12px; color: var(--muted); }
.pl-sum small { margin-left: 6px; }
.pl-sum td b { font-weight: 600; }
.pl-sum .pl-kinds { display: block; margin: 2px 0 0; }
.pl-sum td .chip { margin-left: 6px; }
.pl-blocked .what b { font-weight: 600; color: var(--ink); }

/* =====================================================================
   Аттестации (27.10): «Мои аттестации», прохождение и разбор (#/att/<id>), экран руководителя (#/attestations).
   Ширины полос и угол кольца ставит app.js через element.style (--fill, --w, --deg): CSP запрещает style="".
   ===================================================================== */
/* «Мои аттестации» в «Проверить себя»: метка итога и кнопка справа */
.att-go { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
/* Перед стартом: цифры набора и правила */
.att-facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.att-facts li { display: flex; flex-direction: column; gap: 2px; min-width: 110px; padding: 12px 16px; border-radius: 18px; background: rgba(247, 247, 250, .75); border: 1px solid var(--line-2); }
.att-facts b { font: 400 26px/1.1 var(--font-head); color: var(--ink); }
.att-facts span { font: 500 10.5px/14px var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.att-rules { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.att-rules li { display: flex; gap: 10px; font-size: 14.5px; line-height: 1.5; color: var(--text); }
.att-rules li::before { content: ""; flex-shrink: 0; margin-top: 8px; width: 6px; height: 6px; border-radius: 50%; border: 1px solid var(--ink); }

/* Прохождение: шапка с таймером, «Вопрос 3 из 20», полоса отвеченных, варианты как в квизе, кнопки, номера вопросов */
.att-run { gap: 14px; }
.att-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; }
.att-ttl { display: flex; flex-direction: column; gap: 8px; min-width: 0; flex: 1 1 260px; }
.att-ttl h1 { font: 300 26px/1.15 var(--font-head); letter-spacing: .05em; text-transform: uppercase; overflow-wrap: break-word; }
.att-timer { min-height: 36px; padding: 4px 12px; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.att-prog { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13.5px; color: var(--muted); }
.att-prog b { font-size: 14.5px; font-weight: 600; color: var(--ink); }
.att-bar { height: 4px; border-radius: 4px; background: rgba(28, 30, 39, .12); overflow: hidden; }
.att-bar i { display: block; height: 100%; width: var(--fill, 0%); border-radius: 4px; background: var(--acc); transition: width .25s var(--ease); }
.att-body { display: flex; flex-direction: column; gap: 14px; }
.att-body .quiz-q:focus { outline: none; box-shadow: none; }   /* фокус ставится сюда при переходе к вопросу, чтобы его прочитал диктор */
/* Выбранный ответ: графитовая рамка и закрашенная буква, без подсказки, верен ли он */
.quiz-opt.picked, .quiz-opt.picked:hover:not(:disabled) { background: #fff; border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.quiz-opt.picked .let { background: var(--ink); border-color: var(--ink); color: #fff; }
.att-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.att-acts .att-fin { margin-left: auto; }
svg.i.att-back { transform: scaleX(-1); }
.att-dots { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 12px; border-top: 1px solid var(--line); }
.att-dot { min-width: 36px; height: 36px; padding: 0 4px; border-radius: 10px; border: 1px solid var(--line-2); background: rgba(247, 247, 250, .7);
  font: 400 12.5px/1 var(--font-mono); color: var(--muted); }
.att-dot:hover { border-color: var(--ink); color: var(--ink); }
.att-dot.on { background: var(--pearl-2); border-color: rgba(28, 30, 39, .2); color: var(--ink); }
.att-dot[aria-current="step"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); color: var(--ink); font-weight: 500; }

/* Результат: кольцо балла (зелёное — пройдена, красное — нет) и разбор */
.ring.is-pass { background: conic-gradient(var(--green) var(--deg, 0deg), rgba(28, 30, 39, .12) 0); }
.ring.is-fail { background: conic-gradient(var(--rose) var(--deg, 0deg), rgba(28, 30, 39, .12) 0); }
.att-score .ring b { font-size: 38px; }
.att-review .card-head { flex-wrap: wrap; }
.att-all { min-height: 44px; font-size: 14px; }
.att-items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.att-item { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 12px; padding: 14px 0; }
.att-item + .att-item { border-top: 1px solid var(--line); }
.att-n { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font: 400 12.5px var(--font-mono);
  border: 1px solid var(--line-3); background: var(--paper); color: var(--ink); }
.att-item.bad .att-n { border-color: var(--rose-line); background: var(--rose-bg); color: var(--rose-ink); }
.att-item.ok .att-n { border-color: var(--green-line); background: var(--green-bg); color: var(--green); }
.att-b { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.att-q { font-size: 15px; line-height: 1.45; font-weight: 600; color: var(--ink); }
.att-a { display: flex; flex-direction: column; gap: 2px; padding: 8px 12px; border-radius: 12px; border: 1px solid transparent; font-size: 14.5px; line-height: 1.45; }
.att-a > span { font: 500 10.5px/14px var(--font-mono); letter-spacing: .12em; text-transform: uppercase; }
.att-a.bad { background: var(--rose-bg); border-color: var(--rose-line); color: var(--rose-ink); }
.att-a.ok, .att-a.right { background: var(--green-bg); border-color: var(--green-line); color: var(--green); }
.att-ex { font-size: 14px; line-height: 1.5; color: var(--text); }
.att-art { align-self: flex-start; white-space: normal; line-height: 1.35; }

/* Руководитель: карточки наборов */
.hero .att-new { position: relative; z-index: 1; flex-shrink: 0; }
.as-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.as-card { display: flex; flex-direction: column; gap: 12px; padding: 18px 20px; border-radius: var(--r-card); }
.as-card.off { opacity: .78; }
.as-top { display: flex; align-items: flex-start; gap: 12px; }
.as-top .tile { width: 40px; height: 40px; }
.as-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.as-t h3 { font-size: 16px; line-height: 1.35; }
.as-t span { font-size: 12.5px; color: var(--muted); }
.as-desc { font-size: 14px; line-height: 1.5; color: var(--text); }
.as-card .chips-row { display: flex; flex-wrap: wrap; gap: 6px; }
.as-src { font-size: 13px; line-height: 1.45; color: var(--muted); }
.as-short { margin: 0; font-size: 13.5px; }
.as-counts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.as-cnt { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 12px; border-radius: 12px; text-align: left;
  border: 1px solid var(--line); background: rgba(247, 247, 250, .6); color: var(--ink); }
.as-cnt:hover { border-color: var(--ink); background: #fff; }
.as-cnt b { min-width: 18px; font: 400 20px/1.1 var(--font-head); }
.as-cnt span { font-size: 13px; line-height: 1.3; color: var(--muted); }
.as-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }

/* Таблица результатов: строка открывает разбор */
.att-table { width: 100%; border-collapse: collapse; }
.att-table th, .att-table td { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; font-size: 14px; }
.att-table th { font: 500 10.5px/1.4 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.att-table tr:last-child td { border-bottom: 0; }
.att-table tbody tr { cursor: pointer; }
.att-table tbody tr:hover td { background: rgba(255, 255, 255, .55); }
.att-table small { display: block; font-size: 12.5px; line-height: 1.4; color: var(--muted); }
.att-table td:nth-child(4) small, .att-table td:nth-child(5) small { white-space: nowrap; }
.att-who { font-weight: 600; text-decoration: none; }
.att-who:hover { text-decoration: underline; }
.att-pct { font: 400 18px/1.1 var(--font-head); }
.att-pct.ok { color: var(--green); }
.att-pct.bad { color: var(--rose); }
.att-results .card-head .emp-select { max-width: 340px; }

/* Окна: набор, назначение, частые ошибки */
.as-form .as-lead { margin: -6px 0 12px; font-size: 13.5px; }
.as-nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.as-nums .field { margin-bottom: 4px; }
.as-nums input { width: 100%; min-width: 0; }
.as-nums-hint { margin-bottom: 14px; }
.as-topics { border: 0; margin: 0 0 8px; padding: 0; min-width: 0; }
.as-topics legend { margin-bottom: 8px; padding: 0; font-size: 13.5px; font-weight: 500; color: var(--ink); }
.as-topic-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; max-height: 260px; overflow-y: auto; padding: 4px 8px;
  border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, .5); }
.as-topic-list .check { min-height: 40px; font-size: 14px; line-height: 1.3; }
.as-topic-list .check > span:first-of-type { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.as-topic-list .cnt { flex-shrink: 0; min-width: 24px; padding: 0 6px; border-radius: 7px; font: 400 11px/18px var(--font-mono); text-align: center; background: rgba(28, 30, 39, .07); }
.as-topics:disabled .check { color: var(--muted); }
/* Набор из файла: название, роль и число вопросов закрыты, это должно быть видно */
.as-form .field input:disabled, .as-form .field select:disabled { background: rgba(28, 30, 39, .05); border-style: dashed; color: var(--muted); cursor: not-allowed; }
.as-fit { margin-bottom: 4px; font-size: 13.5px; line-height: 1.45; color: var(--green); font-weight: 500; }
.as-fit.warn { color: var(--amber); }
.as-form .row-actions .as-arch { margin-right: auto; }
.as-filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 6px; }
.as-filters select { min-height: 44px; min-width: 0; padding: 0 12px; border-radius: 12px; border: 1px solid var(--ctl-line, rgba(28, 30, 39, .4)); background: var(--paper); font-size: 14px; color: var(--ink); }
.as-filters select:hover { border-color: var(--ink); }
.as-all { font-weight: 500; }
.as-users { display: flex; flex-direction: column; max-height: 300px; overflow-y: auto; margin-bottom: 14px; padding: 2px 10px; border-radius: 12px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .5); }
.as-user { padding: 6px 0; }
.as-user + .as-user { border-top: 1px solid var(--line); }
.as-user.is-busy { color: var(--muted); }
.as-u { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.as-u b { font-weight: 600; font-size: 14.5px; }
.as-u small { font-size: 12.5px; color: var(--muted); }
.as-skipped { margin: 8px 0 0; padding-left: 18px; font-size: 14px; }
.as-form .note p { margin-top: 6px; }
.as-stat-list { margin: 0 0 8px; padding: 0; list-style: none; display: flex; flex-direction: column; }
.as-stat-list li { display: flex; flex-direction: column; gap: 6px; padding: 12px 0; }
.as-stat-list li + li { border-top: 1px solid var(--line); }
.as-stat-list p { font-size: 14.5px; line-height: 1.45; font-weight: 500; color: var(--ink); }
.as-stat-list small { font-size: 12.5px; color: var(--muted); }
.as-bar { display: block; height: 6px; border-radius: 6px; background: rgba(28, 30, 39, .1); overflow: hidden; }
.as-bar i { display: block; height: 100%; width: var(--w, 0%); border-radius: 6px; background: var(--amber); }
.as-bar.hi i { background: var(--rose); }

@media (max-width: 900px) {
  .hero:has(.att-new) .bot { display: none; }
  .hero:has(.att-new) .hero-top { flex-wrap: wrap; }
  .att-ttl h1 { font-size: 21px; }
  .att-score .ring b { font-size: 26px; }   /* кольцо здесь 88 px (app.css): «100%» должно влезть */
  .as-grid { grid-template-columns: minmax(0, 1fr); }
}
/* Телефон: кнопки в «Моих аттестациях» под названием, результаты карточками (без прокрутки вбок) */
@media (max-width: 700px) {
  .att-row { flex-wrap: wrap; }
  .att-row .t { flex-basis: calc(100% - 56px); }
  .att-go { flex-basis: 100%; justify-content: flex-end; }
  .att-facts li { flex: 1 1 calc(50% - 5px); min-width: 0; }
  .att-acts .btn { flex: 1 1 auto; }
  .att-acts .att-fin { margin-left: 0; flex-basis: 100%; }
  .att-dot { min-width: 40px; height: 40px; }
  .att-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .att-table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; row-gap: 4px; align-items: start; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .att-table tr:last-child { border-bottom: 0; }
  .att-table td { display: block; padding: 0; border: 0; min-width: 0; }
  .att-table td:nth-child(1) { grid-area: 1 / 1; }
  .att-table td:nth-child(2) { grid-area: 2 / 1; font-size: 13.5px; }
  .att-table td:nth-child(3) { grid-area: 1 / 2; justify-self: end; }
  .att-table td:nth-child(4) { grid-area: 2 / 2; justify-self: end; text-align: right; }
  .att-table td:nth-child(5) { grid-area: 3 / 1; }
  .att-table td:nth-child(6) { grid-area: 3 / 2; justify-self: end; align-self: end; }
  .att-table td:empty { display: none; }
  .att-table td:nth-child(5) small { display: inline; }
  .att-table td:nth-child(5) small:not(:last-child)::after { content: " ·"; }   /* точка в конце строки: перенос не начинает строку с точки */
  .as-topic-list { grid-template-columns: minmax(0, 1fr); }
  .as-nums { gap: 8px; }
}
