/* Shared catalog layout and component structure. Fluent theme: /fluent.css. */
:root {
  --ground: #f2f5f3;          /* рамка: низкохроматичный шаг фирменного зелёного */
  --surface: #ffffff;         /* лист и панели */
  --raised: #f5f7f6;          /* заливка внутренних колодцев и наведения */
  --active: #e7eeea;          /* выбранная строка */
  --border: #e4e9e6;          /* края панелей ≈1.2:1 */
  --sheet-edge: #e6eae8;
  --rule: #eef1ef;            /* линии строк */
  --control: #cdd5d0;         /* поля и контурные кнопки */
  --text: #121614;
  --muted: #545c58;           /* ≥4.5:1 на белом и на рамке */
  --faint: #5f6763;
  --accent: #00825a;          /* фирменный зелёный нашей Компании, затемнён до 4.8:1 на белом */
  --accent-ink: #00573c;
  --brand: #00b473;           /* только в знаке */
  --primary: #17201c;
  --primary-ink: #ffffff;
  --positive: var(--accent);
  --brand-red: #e75a5e;       /* красный нашей Компании: знак и фирменная полоса */
  --red: #c4373d;             /* второй фирменный акцент для текста и меток, 5.0:1 на белом */
  --red-soft: #fcefef;
  --red-line: #f1c6c8;
  --negative: var(--red);     /* «снижается» в аналитике */
  --error: #8a5300;           /* ошибки: отдельный янтарный тон с иконкой */
  --error-soft: #fff4e0;
  --pill-neutral-bg: #eef1ef; --pill-neutral-ink: #2f3632;
  --chart-old: #b8c2bd;       /* прошлый год — нейтральный */
  --map-land: #e7ece9;
  --map-selected: #17201c;
  --font: "IBM Plex Sans", Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace; /* taste-skill-ignore: только номера SPE */
  --fs-title: 22px; --fs-section: 16px; --fs-kpi: 24px; --fs-lead: 32px; --fs-body: 14px; --fs-small: 12px;
  --sidebar-width: 256px;
  --topbar: 56px;
  --pad: 24px; --gap: 16px; --card-pad: 20px;
  --radius-sheet: 16px; --radius-card: 10px; --radius-control: 6px;
  --control-height: 32px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --t-press: 120ms; --t-hover: 150ms; --t-ui: 200ms;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--text); font: var(--fs-body)/20px var(--font); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, p, figure, ul, ol, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.num, table, .kpi-value { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--mono); font-size: 12px; } /* taste-skill-ignore: идентификаторы SPE */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 50; padding: 8px 12px; background: var(--primary); color: #fff; border-radius: var(--radius-control); }
.skip:focus { top: 8px; }
.muted { color: var(--muted); }
.small { font-size: var(--fs-small); }
.dash { color: var(--faint); }
mark { background: #d7f0e4; color: inherit; border-radius: 2px; padding: 0 1px; }
svg path, svg circle { vector-effect: non-scaling-stroke; }
.btn svg, .icon-btn svg, .like svg, .search svg, .cond svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- оболочка: рамка (сайдбар + верхняя панель) и белый лист ---------- */
.app { display: grid; grid-template-columns: var(--sidebar-width) minmax(0, 1fr); min-height: 100svh; }
.sidebar { position: sticky; top: 0; height: 100svh; display: flex; flex-direction: column; min-height: 0; padding: 12px 12px 12px 16px; }
.brand { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 4px; margin-bottom: 12px; }
.brand-mark { width: 30px; height: 30px; flex: none; }
.brand-text { display: grid; min-width: 0; line-height: 21px; }
.brand-text b, .brand-text h1 { margin: 0; font-weight: 700; font-size: 18px; letter-spacing: 0; text-wrap: balance; }
.brand-text span { color: var(--muted); font-size: var(--fs-small); }
.sidebar-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 4px 8px; }
.sidebar-head h2 { font-size: var(--fs-section); font-weight: 600; }
.sidebar-scroll { flex: 1; min-height: 0; overflow: auto; padding: 0 4px 12px; margin-right: -6px; padding-right: 10px; scrollbar-width: thin; }
.filter-group { margin-top: 18px; }
.filter-group-body { display: grid; gap: 12px; margin-top: 12px; }
.filter-group > summary { font-size: 13px; font-weight: 600; color: var(--text); }
.filter-group > summary, .picker-section > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 7px 0; cursor: pointer; list-style: none; }
.filter-group > summary::-webkit-details-marker, .picker-section > summary::-webkit-details-marker { display: none; }
.filter-group > summary::after, .picker-section > summary::after { content: ''; flex: none; width: 6px; height: 6px; margin-right: 3px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); }
.filter-group[open] > summary::after, .picker-section[open] > summary::after { transform: rotate(45deg); }
.filter-group > summary:focus-visible, .picker-section > summary:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 3px; }
.field { display: grid; gap: 6px; }
.field > span, .field > label { font-size: var(--fs-small); color: var(--muted); }
.field em { font-style: normal; color: var(--accent-ink); font-weight: 600; }
.input { height: var(--control-height); width: 100%; min-width: 0; padding: 0 28px 0 10px; border: 1px solid var(--control); border-radius: var(--radius-control); background: var(--surface); }
select.input { appearance: none; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5 6 7.5l3-3' fill='none' stroke='%23545c58' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") right 9px center / 12px no-repeat; text-overflow: ellipsis; }
select.input:hover { border-color: #b5bfb9; }
option.zero { color: #8a928e; }
.input.small { height: 30px; width: auto; }
.sidebar-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 4px 0; }
.link-btn { border: 0; background: none; padding: 2px 0; color: var(--accent-ink); font-weight: 500; text-underline-offset: 3px; }
.link-btn:hover { text-decoration: underline; }
.phone-only { display: none !important; }

.frame-main { min-width: 0; display: flex; flex-direction: column; padding-right: 8px; padding-bottom: 8px; }
.topbar { position: sticky; top: 0; z-index: 10; height: var(--topbar); display: flex; align-items: center; gap: 12px; background: var(--ground); }
.search { position: relative; flex: 1; max-width: 640px; display: flex; align-items: center; }
.search svg { position: absolute; left: 12px; color: var(--muted); pointer-events: none; }
.search input { width: 100%; height: 36px; padding: 0 40px 0 38px; border: 1px solid var(--control); border-radius: 8px; background: var(--surface); }
.search input::placeholder { color: var(--faint); }
.top-actions { margin-left: auto; display: flex; gap: 8px; }
.topbar .filters-toggle { display: none; }

.sheet { flex: 1; min-width: 0; background: var(--surface); border: 1px solid var(--sheet-edge); border-radius: var(--radius-sheet); padding: 20px var(--pad) var(--pad); outline: none; }

/* ---------- заголовок, вкладки, условия ---------- */
.title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.title-row h1 { font-size: var(--fs-title); line-height: 28px; font-weight: 600; letter-spacing: -0.01em; }
.title-row .sub { margin-top: 4px; color: var(--muted); font-size: 15px; line-height: 22px; max-width: 90ch; }
.title-actions { flex: none; }
.tabs { display: flex; gap: 24px; border-bottom: 1px solid var(--border); margin-top: 14px; overflow-x: auto; scrollbar-width: none; }
.tabs a { position: relative; padding: 10px 0; color: var(--muted); font-weight: 500; white-space: nowrap; transition: color var(--t-hover) ease; }
.tabs a:hover { color: var(--text); }
.tabs a[aria-current="page"] { color: var(--text); }
.tabs a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--red); }
.tab-count { color: var(--faint); font-weight: 400; margin-left: 2px; }
.conditions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; min-height: 48px; padding: 8px 0; }
.cond-label { color: var(--muted); font-size: 13px; margin-right: 4px; }
.cond-hint { color: var(--faint); font-size: 13px; }
.cond { display: inline-flex; align-items: center; gap: 6px; height: 28px; max-width: 480px; padding: 0 8px 0 10px; border: 1px solid #b9d9c9; border-radius: 999px; background: #eef7f2; color: var(--accent-ink); font-size: 13px; font-weight: 500; transition: background-color var(--t-hover) ease; }
.cond span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cond svg { width: 12px; height: 12px; }
.cond:hover { background: #def0e7; }

/* ---------- ключевые цифры: одна разделённая полоса ---------- */
.kpis { display: grid; grid-template-columns: 1.25fr repeat(5, minmax(0, 1fr)); border: 1px solid var(--border); border-radius: var(--radius-card); margin-bottom: var(--gap); }
.kpi { padding: 14px var(--card-pad); min-width: 0; }
.kpi + .kpi { border-left: 1px solid var(--border); }
.kpi-label { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi-value { margin-top: 4px; font-size: var(--fs-kpi); line-height: 30px; font-weight: 400; letter-spacing: -0.01em; }
.kpi-value small { font-size: 16px; color: var(--muted); }
.kpi.lead .kpi-value { font-size: var(--fs-lead); line-height: 36px; font-weight: 500; margin-top: 0; }
.kpi-sub { margin-top: 2px; color: var(--faint); font-size: var(--fs-small); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- закреплённый блок: условия + показатели ---------- */
:root { --pin-h: 84px; }
html { scroll-padding-top: calc(var(--topbar) + var(--pin-h) + 8px); }
[data-row], .list-panel, [id] { scroll-margin-top: calc(var(--topbar) + var(--pin-h) + 8px); }
.pin-sentinel { height: 0; }
.pinbar { position: sticky; top: var(--topbar); z-index: 8; margin: 0 calc(-1 * var(--pad)); padding: 0 var(--pad); background: var(--surface); border-bottom: 1px solid transparent; }
.pin-sum { display: none; }
.pinned .pinbar { padding-bottom: 8px; margin-bottom: var(--gap); border-bottom-color: var(--border); }
.pinned .conditions { flex-wrap: nowrap; min-height: 0; padding: 6px 0; overflow-x: auto; scrollbar-width: none; }
.pinned .conditions > * { flex: none; }
.pinned .conditions.scrolls { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent); padding-right: 24px; }
.pinned .cond-hint { display: none; }
.pinned .kpis { display: flex; margin-bottom: 0; }
.pinned .kpi { flex: 1 1 auto; display: flex; align-items: baseline; gap: 6px; padding: 6px 12px; border-top: 0 !important; white-space: nowrap; }
.pinned .kpi + .kpi { border-left: 1px solid var(--border) !important; }
.pinned .kpi-label { order: 2; font-size: 12px; overflow: visible; }
.pinned .kpi-value, .pinned .kpi.lead .kpi-value { order: 1; margin: 0; font-size: 16px; line-height: 22px; font-weight: 600; }
.pinned .kpi-value small { font-size: 13px; }
.pinned .kpi-sub { display: none; }
body[data-view="paper"] .pinbar { margin-top: -20px; padding-top: 4px; }
@media (max-width: 900px) { .pinned .kpi { padding: 6px 8px; gap: 4px; } .pinned .kpi-label { font-size: 11px; } }

/* ---------- кнопки и элементы ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: var(--control-height); padding: 0 12px; border-radius: var(--radius-control); border: 1px solid var(--control); background: var(--surface); font-weight: 500; white-space: nowrap; transition: background-color var(--t-hover) ease, transform var(--t-press) var(--ease-out); }
.btn:hover { background: var(--raised); }
.btn:active { transform: translateY(1px); }
.btn:disabled { color: #7d8580; cursor: not-allowed; background: var(--raised); }
.btn.primary { background: var(--primary); color: var(--primary-ink); border-color: transparent; }
.btn.primary:hover { background: #2b3631; }
.btn.small { height: 30px; padding: 0 10px; font-size: 13px; }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: var(--raised); }
.btn[aria-pressed="true"] { border-color: var(--accent); color: var(--accent-ink); background: #eef7f2; }
.icon-btn { display: inline-grid; place-items: center; width: 30px; height: 30px; flex: none; border: 1px solid transparent; border-radius: var(--radius-control); background: transparent; color: var(--muted); transition: background-color var(--t-hover) ease, color var(--t-hover) ease; }
.icon-btn:hover { background: var(--raised); color: var(--text); }
.icon-btn:disabled { opacity: .45; cursor: not-allowed; }
.save[aria-pressed="true"] { color: var(--accent); }
.save[aria-pressed="true"] svg { fill: currentColor; }
.like { display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 8px; border: 1px solid var(--control); border-radius: 999px; background: var(--surface); color: var(--muted); font-size: 13px; transition: background-color var(--t-hover) ease, color var(--t-hover) ease; }
.like:hover { background: var(--raised); color: var(--text); }
.like[aria-pressed="true"] { color: var(--red); border-color: var(--red-line); background: var(--red-soft); }
.like[aria-pressed="true"] svg { fill: currentColor; }
.like:disabled { opacity: .6; cursor: progress; }
.segmented { display: inline-flex; width: max-content; max-width: 100%; padding: 2px; border-radius: 8px; background: #e6ebe8; }
.segmented button { height: 28px; padding: 0 10px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); font-weight: 500; white-space: nowrap; }
.segmented button small { color: inherit; font-weight: 400; font-size: 12px; }
.segmented button[aria-pressed="true"] { background: var(--surface); color: var(--text); }
.segmented.full { display: flex; width: 100%; }
.segmented.full button { flex: 1; padding: 0 6px; }
.sidebar-scroll .segmented { display: flex; width: 100%; }
.sidebar-scroll .segmented button { flex: 1 1 auto; min-width: 0; padding: 0 5px; font-size: 13px; }
.sidebar-scroll .segmented button small { margin-left: 1px; }
.panel .segmented { background: var(--raised); }
.chip { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; min-height: 24px; padding: 2px 8px; border: 0; border-radius: 4px; background: var(--pill-neutral-bg); color: var(--pill-neutral-ink); font-size: 12px; line-height: 16px; text-align: left; transition: background-color var(--t-hover) ease; }
.chip:hover { background: #e2e8e4; }
.chip[aria-pressed="true"], .chip.shared { background: #dcefe5; color: var(--accent-ink); }
.chip.node b { font-weight: 600; color: var(--red); }
.chip.static { cursor: default; margin: 0 2px 4px 0; }
.empty { display: grid; place-items: center; gap: 8px; min-height: 96px; padding: 16px; border: 1px dashed var(--control); border-radius: var(--radius-control); color: var(--muted); text-align: center; grid-column: 1 / -1; }
.empty .link-btn { display: inline; }

/* ---------- каталог: список и быстрый просмотр ---------- */
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); padding: var(--card-pad); min-width: 0; }
.list-panel { padding: 0; }
.list-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px var(--card-pad); border-bottom: 1px solid var(--border); }
.list-head h2, .panel-head h2 { font-size: var(--fs-section); font-weight: 600; line-height: 22px; }
.meta { color: var(--faint); font-size: var(--fs-small); line-height: 18px; }
.list-tools { display: flex; align-items: center; gap: 8px; }
.papers { display: grid; }
.papers > .empty { margin: var(--card-pad); }
.paper { display: grid; gap: 6px; padding: 16px var(--card-pad); border-bottom: 1px solid var(--rule); transition: background-color var(--t-hover) ease; }
.paper:last-child { border-bottom: 0; }
.paper[aria-current="true"] { background: var(--active); }
.paper-head { display: flex; align-items: flex-start; gap: 8px; }
.rank { flex: none; width: 28px; padding-top: 1px; color: var(--muted); font-size: 15px; }
.paper-title { flex: 1; min-width: 0; padding: 0; border: 0; background: none; text-align: left; font-size: 16px; line-height: 22px; font-weight: 600; color: var(--text); text-underline-offset: 3px; text-decoration-thickness: 1px; }
.paper-title:hover { text-decoration: underline; }
.paper-title.small { font-size: 14px; line-height: 20px; }
.paper-head .icon-btn { margin: -4px -6px 0 0; }
.paper-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; color: var(--muted); font-size: 13px; line-height: 18px; }
.paper-meta .year { color: var(--text); font-weight: 600; }
.paper-meta .avail { color: var(--faint); }
.paper-meta .trk { flex-basis: 100%; }
.paper-authors { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; color: var(--text); font-size: 13px; line-height: 18px; }
.countries { display: inline-flex; flex-wrap: wrap; gap: 4px 10px; color: var(--muted); font-size: 13px; }
.country { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.flag { width: 16px; height: 12px; border-radius: 2px; object-fit: cover; outline: 1px solid rgba(0, 0, 0, .08); }
.paper-snippet { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: #2c332f; line-height: 20px; max-width: 92ch; }
.paper-tags, .paper-nodes { display: flex; flex-wrap: wrap; gap: 4px; }
.more { align-self: center; color: var(--faint); font-size: 12px; padding: 0 4px; }
.paper-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 4px; }
.spacer { flex: 1; }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px var(--card-pad); border-top: 1px solid var(--border); color: var(--muted); font-size: 13px; }


/* ---------- фирменная полоса: зелёный + красный сегмент ---------- */
body::before, body::after { content: ""; position: fixed; top: 0; z-index: 50; height: 3px; pointer-events: none; }
body::before { left: 0; right: 0; background: var(--brand); }
body::after { right: 0; width: 30%; background: var(--brand-red); }
.cv-node b { color: var(--red); }
.top-btn[aria-pressed="true"] { color: var(--red); border-color: var(--red-line); background: var(--red-soft); }
.top-btn[aria-pressed="true"] svg { fill: currentColor; }

/* ---------- карточка: перечень фактов ---------- */
.facts { display: grid; grid-template-columns: 1fr; gap: 2px; }
.facts dt { margin-top: 8px; color: var(--muted); font-size: 12px; line-height: 16px; }
.facts dt:first-child { margin-top: 0; }
.facts dd { line-height: 20px; }
.reference-search { color: var(--red); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.reference-search:hover { color: var(--text); }

/* ---------- лента: панель выбора варианта просмотра ---------- */

/* ---------- вариант «В ленте» ---------- */

/* ---------- вариант «Читалка» ---------- */
.related h3 { margin-top: 0; font-size: 15px; font-weight: 600; }
.mini-list { display: grid; margin-top: 8px; }
.mini { display: grid; gap: 4px; padding: 10px 0; border-top: 1px solid var(--rule); }
.mini:first-child { border-top: 0; }
.mini .paper-meta { font-size: 12px; }
.related .link-btn { margin-top: 8px; }

/* ---------- вариант «Отдельная страница» ---------- */
body[data-view="paper"] .title-row { display: none; }
.paper-page { display: grid; gap: 20px; }
.pp-bar { position: sticky; top: calc(var(--topbar) + var(--pin-h)); z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 8px 0; background: var(--surface); border-bottom: 1px solid var(--border); }
.pp-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; }
.pp-main h1 { font-size: 28px; line-height: 36px; font-weight: 600; letter-spacing: -0.015em; outline: none; }
.pp-side { display: grid; gap: 16px; }
.pp-side section { padding: 16px; border: 1px solid var(--border); border-radius: var(--radius-card); }
.pp-side h2 { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.pp-related { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }

/* ---------- фильтры: «Дополнительно» ---------- */
.filter-more { margin-top: 18px; border-top: 1px solid var(--border); padding-top: 10px; }
.filter-more summary { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; min-height: 32px; cursor: pointer; font-size: 13px; font-weight: 600; list-style: none; }
.filter-more summary::-webkit-details-marker { display: none; }
.filter-more summary::before { content: ""; width: 7px; height: 7px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(-45deg); transition: transform var(--t-ui) var(--ease-out); }
.filter-more[open] summary::before { transform: rotate(45deg); }
.filter-more summary .meta { flex-basis: 100%; padding-left: 15px; font-weight: 400; }
.filter-more summary em { font-style: normal; color: var(--accent-ink); font-weight: 600; }
.filter-more > .meta { margin: 2px 0 4px 15px; }

/* ---------- текст страницы статьи ---------- */
.reading { font-size: 17px; line-height: 28px; }
.reading > * { max-width: 70ch; }
.reading > * + * { margin-top: 12px; }
.reading h2, .reading h3 { margin-top: 28px; font-size: 15px; line-height: 22px; font-weight: 600; }
.reading h4 { margin-top: 16px; font-size: 14px; font-weight: 600; color: var(--muted); }
.reading p, .reading .abstract p { font-size: 15px; line-height: 24px; max-width: 70ch; }
.reading .abstract { gap: 14px; }
.reading .paper-meta { font-size: 13px; }
.reading .paper-authors { font-size: 14px; line-height: 20px; }
.reading .trk-line { font-size: 14px; }
.reading .facts dd { font-size: 15px; line-height: 23px; }
.reading .facts dt { font-size: 13px; }
.reading .tax-dir.full { font-size: 15px; line-height: 22px; }
.reading .chip.tax-chip { font-size: 13px; line-height: 18px; }

/* ---------- классификатор технологий: направление → группа → тематика ---------- */
.dir-dot { flex: none; display: inline-block; width: 8px; height: 8px; border-radius: 2px; background: var(--dc, var(--faint)); }
.paper-tax { display: grid; gap: 1px; font-size: 12px; line-height: 17px; color: var(--muted); }
.tax-item { min-width: 0; }
.tax-sep { margin: 0 5px 0 4px; }
.tax-dir, .tax-g { padding: 0; border: 0; background: none; color: var(--muted); text-align: left; font: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.tax-dir { display: inline; font-weight: 500; color: #4d5650; }
.tax-dir .dir-dot { display: inline-block; margin-right: 6px; transform: translateY(-1px); }
.tax-dir:hover, .tax-g:hover { text-decoration: underline; color: var(--text); }
.tax-dir[aria-pressed="true"], .tax-g[aria-pressed="true"] { color: var(--accent-ink); text-decoration: underline; }
.tax-sep, .tax-comma { color: var(--faint); }
.tax-g + .tax-g::before { content: none; }
.tax-g:not(:last-child)::after { content: ","; color: var(--faint); }
.paper-tax.block { font-size: 13px; line-height: 19px; gap: 3px; }
/* технологии и методы — главный элемент классификации */
.paper-tags.topics { gap: 5px; }
.paper-tags.topics .chip { min-height: 26px; padding: 2px 9px; border: 1px solid var(--control); font-size: 13px; line-height: 18px; font-weight: 500; color: var(--text); background: var(--surface); }
.paper-tags.topics .chip:hover { background: var(--raised); }
.paper-tags.topics .chip[aria-pressed="true"] { border-color: #9fcdb7; background: #e3f2ea; color: var(--accent-ink); }
.h-note { font-size: 12px; font-weight: 400; color: var(--faint); margin-left: 4px; }
.tax-tree { display: grid; gap: 8px; }
.tt-dir-h { font-size: 12px; line-height: 17px; margin-bottom: 4px; }
.tt-groups { display: grid; gap: 7px; padding-left: 14px; }
.tt-group { display: grid; gap: 4px; }
.tt-g { display: flex; align-items: baseline; gap: 6px; font-size: 12px; line-height: 16px; }
.tt-g .dir-dot { transform: translateY(-1px); }
.tt-g .tax-g { color: var(--muted); }
.chip.tax-chip { background: #fff; border: 1px solid var(--control); padding: 1px 7px; }
.chip.tax-chip:hover { background: var(--raised); }
.chip.tax-chip[aria-pressed="true"] { background: #dcefe5; border-color: #b9d9c9; }
.pp-sub { margin: 14px 0 4px; font-size: 13px; font-weight: 600; color: var(--muted); }
.field-scope { margin-left: 4px; color: var(--faint); font-size: 12px; font-weight: 400; }
.cmp-tax { display: flex; align-items: baseline; gap: 6px; line-height: 19px; }
.cmp-tax + .cmp-tax { margin-top: 4px; }
.cmp-tax b { font-weight: 600; }
.cmp-tax .dir-dot { transform: translateY(-1px); }

.yl-line { display: grid; grid-template-columns: 28px minmax(0, 1fr); align-items: center; gap: 4px; }
.yl-line .yl-row { margin-left: 0; }
.ylist.tree > li + li { border-top: 1px solid var(--rule); }
.ylist.tree li + li .yl-row { border-top: 0; }
.yl-toggle { display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 6px; background: none; color: var(--muted); }
.yl-toggle svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform var(--t-ui) var(--ease-out); }
.yl-toggle[aria-expanded="true"] svg { transform: rotate(90deg); }
.yl-toggle:hover { background: var(--raised); color: var(--text); }
.yl-name { display: inline-flex; align-items: baseline; gap: 8px; }
.yl-name .dir-dot { transform: translateY(-1px); }
.ylist.sub { margin: 0 0 8px 32px; padding-left: 10px; border-left: 2px solid var(--rule); }
.yl-row.sub { padding-top: 5px; padding-bottom: 5px; margin-left: 0; }
.yl-row.sub .yl-name { font-weight: 400; font-size: 13px; color: #2f3632; }
.yl-row.sub .bar { height: 6px; }
.ylist.sub li + li .yl-row { border-top: 0; }
.tr-name { display: grid; gap: 2px; }
.tr-dir { display: inline-flex; align-items: center; gap: 6px; color: var(--faint); font-size: 12px; line-height: 16px; }

.st-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.st-card { position: relative; display: grid; align-content: start; gap: 6px; padding: 14px 14px 10px; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.st-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--dc); }
.st-card.none { opacity: .6; }
.st-dir { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 12px; width: 100%; padding: 4px 6px; margin: -4px -6px 2px; border: 0; border-radius: 6px; background: none; text-align: left; color: var(--text); }
.st-dir:hover { background: var(--raised); }
.st-dir[aria-pressed="true"] { background: var(--active); }
.st-name { display: inline-flex; align-items: baseline; gap: 8px; font-weight: 600; line-height: 19px; }
.st-name .dir-dot { transform: translateY(-1px); }
.st-v { display: grid; justify-items: end; line-height: 18px; }
.st-v b { font-size: 16px; font-weight: 600; }
.st-v small { color: var(--muted); font-size: 12px; }
.st-groups { display: grid; }
.st-row { display: grid; grid-template-columns: minmax(0, 1fr) 40px 40px; align-items: center; gap: 3px 8px; width: 100%; padding: 5px 6px; margin: 0 -6px; border: 0; border-radius: 6px; background: none; text-align: left; color: var(--text); }
.st-groups li + li { border-top: 1px solid var(--rule); }
.st-groups li + li .st-row { border-radius: 0; }
.st-tags { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 4px; padding: 0 0 5px 0; font-size: 12px; line-height: 16px; color: var(--muted); }
.st-tag { padding: 0; border: 0; background: none; font: inherit; color: var(--muted); text-align: left; text-underline-offset: 3px; }
.st-tag .num { color: var(--faint); }
.st-tag:hover { color: var(--text); text-decoration: underline; }
.st-tag[aria-pressed="true"] { color: var(--accent-ink); text-decoration: underline; }
.st-dot { color: var(--faint); }
.st-row:hover { background: var(--raised); }
.st-row[aria-pressed="true"] { background: var(--active); }
.st-row.zero { color: var(--muted); }
.st-gname { font-size: 13px; line-height: 17px; }
.st-gv { text-align: right; font-size: 13px; font-weight: 600; }
.st-gs { text-align: right; font-size: 12px; color: var(--muted); }
.bar.st { grid-column: 1 / -1; height: 4px; border-radius: 2px; }

.panel-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.drill .input { min-width: 220px; }
.drill-note { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: -4px 0 10px; font-size: 13px; color: var(--text); }
.drill-note.muted { color: var(--muted); }
.cv-drill { display: inline-flex; flex-direction: column; align-items: center; gap: 4px; width: 100%; padding: 4px 2px; border: 0; border-radius: 4px; background: none; color: var(--muted); font-size: 12px; line-height: 15px; text-align: center; }
.cv-drill:hover { background: var(--raised); color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.coverage th.cv-g.grp { min-width: 96px; color: var(--text); }
@media (max-width: 1100px) {
  .pp-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .pp-related { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .reading p, .reading .abstract p { font-size: 15px; line-height: 23px; }
  .pp-main h1 { font-size: 22px; line-height: 29px; }
  .pp-bar { top: var(--pin-h); }
  html { scroll-padding-top: calc(var(--pin-h) + 8px); }
  [data-row], .list-panel, [id] { scroll-margin-top: calc(var(--pin-h) + 8px); }
}

/* ---------- аналитика ---------- */
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); align-items: start; }
.span-12 { grid-column: span 12; } .span-7 { grid-column: span 7; } .span-6 { grid-column: span 6; } .span-5 { grid-column: span 5; }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.panel-head .meta { margin-top: 2px; font-size: 13px; color: var(--muted); }
.sub-h { margin: 14px 0 4px; font-size: 13px; font-weight: 600; }
.sub-h:first-of-type { margin-top: 0; }
.legend { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; margin: -6px 0 8px; font-size: 12px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.sw { width: 12px; height: 8px; border-radius: 2px; }
.sw.new { background: var(--accent); } .sw.old { background: var(--chart-old); }
.bar { display: block; height: 8px; width: var(--w); min-width: 0; border-radius: 0 3px 3px 0; background: var(--accent); }
.bar.old { background: var(--chart-old); }
.bar.thin { height: 3px; background: #9aa6a0; border-radius: 2px; }
li:first-child > * > .bar.thin, tr:first-child .bar.thin { background: var(--text); }

.ylist { display: grid; }
.yl-row { width: 100%; display: grid; grid-template-columns: minmax(150px, 1.1fr) minmax(0, 2fr) 88px; align-items: center; gap: 4px 14px; padding: 8px 8px; margin: 0 -8px; border: 0; border-radius: 6px; background: none; text-align: left; transition: background-color var(--t-hover) ease; }
.ylist li + li .yl-row { border-top: 1px solid var(--rule); border-radius: 0; }
.yl-row:hover, .tr-row:hover, .gl-row:hover, .bl-row:hover, .pair-row:hover { background: var(--raised); }
.yl-row[aria-pressed="true"], .tr-row[aria-pressed="true"], .gl-row[aria-pressed="true"], .bl-row[aria-pressed="true"] { background: var(--active); }
.yl-name { font-weight: 500; line-height: 18px; }
.yl-bars { display: grid; grid-template-columns: minmax(0, 1fr) 40px; align-items: center; gap: 3px 8px; }
.yl-bars .v { font-size: 13px; text-align: right; line-height: 16px; }
.yl-delta { display: grid; justify-items: end; line-height: 18px; }
.yl-delta b { font-weight: 600; }
.yl-delta small { color: var(--muted); font-size: 12px; }

.trend { display: grid; }
.tr-row { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto 52px; align-items: center; gap: 12px; min-height: 40px; padding: 6px 8px; margin: 0 -8px; border: 0; border-radius: 6px; background: none; text-align: left; transition: background-color var(--t-hover) ease; }
.trend li + li .tr-row { border-top: 1px solid var(--rule); border-radius: 0; }
.tr-name { line-height: 18px; }
.tr-path { color: var(--muted); font-size: 13px; }
.tr-d { text-align: right; font-weight: 600; }
.tr-d.down, .yl-delta b.down, .cv-d.down, .gl-d.down, .rank-table .down, .ins .down { color: var(--red); }
.tr-d.up { color: var(--accent-ink); }

.geo { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(300px, 1fr); gap: 24px; align-items: start; }
.map svg { width: 100%; height: auto; }
.map .land { stroke: #fff; stroke-width: .6; }
.map .land.hit { cursor: pointer; }
.map .land.hit:hover { filter: brightness(.94); }
.map .dot { cursor: pointer; outline: none; }
.map .dot circle:last-child { fill: var(--accent-ink); fill-opacity: .8; stroke: #fff; stroke-width: 1.2; transition: fill-opacity var(--t-hover) ease; }
.map .dot:hover circle:last-child, .map .dot:focus-visible circle:last-child { fill-opacity: 1; stroke: var(--text); }
.map .dot circle.sel { fill: var(--text) !important; fill-opacity: 1 !important; }
.map figcaption { margin-top: 8px; color: var(--muted); font-size: 12px; }
.gl-head, .gl-row { display: grid; grid-template-columns: minmax(0, 1fr) 52px 52px 52px; gap: 8px; align-items: center; }
.gl-head { padding: 0 8px 6px; color: var(--muted); font-size: 12px; border-bottom: 1px solid var(--border); }
.gl-head span:not(:first-child) { text-align: right; }
.gl-row { width: 100%; min-height: 36px; padding: 4px 8px; border: 0; border-radius: 0; background: none; text-align: left; border-bottom: 1px solid var(--rule); }
.geo-list li:last-child .gl-row { border-bottom: 0; }
.gl-name { display: inline-flex; align-items: center; gap: 8px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gl-v, .gl-s, .gl-d { text-align: right; }
.gl-s, .gl-d { color: var(--muted); font-size: 13px; }

.table-wrap { overflow-x: auto; scrollbar-width: thin; }
table { width: 100%; border-collapse: collapse; }
th { font-weight: 400; font-size: var(--fs-small); color: var(--muted); text-align: left; }
th.n, td.n { text-align: right; }
.coverage thead th { height: 34px; padding: 0 6px 6px; vertical-align: bottom; border-bottom: 1px solid var(--border); line-height: 15px; }
.coverage th.cv-g { width: 9%; min-width: 74px; text-align: center; white-space: normal; }
.coverage td, .coverage tbody th { padding: 2px 6px; border-bottom: 1px solid var(--rule); vertical-align: middle; }
.coverage tbody tr:last-child td, .coverage tbody tr:last-child th { border-bottom: 0; }
.cv-name { min-width: 240px; }
.cv-group th { padding: 14px 6px 6px !important; color: var(--text); font-weight: 600; font-size: 13px; }
.cv-node { display: inline-flex; align-items: baseline; gap: 8px; max-width: 100%; padding: 4px 6px; margin: 0 -6px; border: 0; border-radius: 4px; background: none; text-align: left; color: var(--text); font-size: 13px; line-height: 17px; transition: background-color var(--t-hover) ease; }
.cv-node b { flex: none; width: 22px; color: var(--accent-ink); font-weight: 600; }
.cv-node small { color: var(--faint); font-size: 12px; white-space: nowrap; }
.cv-node:hover { background: var(--raised); }
.cv-node[aria-pressed="true"] { background: var(--active); }
.cv-node.plain { padding: 2px 4px; margin: 0; }
.cv-total { width: 150px; min-width: 140px; white-space: nowrap; }
.cv-total .bar { display: inline-block; vertical-align: middle; width: calc(var(--w) * 0.9); max-width: 90px; margin-right: 8px; height: 6px; }
.cv-total .num { display: inline-block; min-width: 34px; text-align: right; }
.cv-d { width: 64px; min-width: 60px; padding-left: 10px !important; color: var(--muted); font-size: 13px; }
.cv-cell { padding: 2px !important; text-align: center; }
.heat { width: 100%; min-width: 40px; height: 28px; border: 0; border-radius: 4px; background: color-mix(in srgb, var(--accent) var(--h), #fff); color: var(--text); font-size: 12px; transition: outline-color var(--t-hover) ease; outline: 2px solid transparent; outline-offset: -2px; }
.heat[data-dark="true"] { color: #fff; }
.heat:hover { outline-color: var(--text); }
tr.gap .cv-node span { color: var(--muted); }
.note { margin-top: 12px; padding: 10px 12px; border-radius: var(--radius-control); background: var(--raised); color: var(--muted); font-size: 13px; line-height: 19px; }
.heatmap .cv-name { min-width: 280px; }
.heatmap .cv-node { display: flex; flex-wrap: wrap; gap: 0 8px; }

.rank-table th { height: 34px; padding: 0 8px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.rank-table td { height: 40px; padding: 4px 8px; border-bottom: 1px solid var(--rule); vertical-align: middle; }
.rank-table tbody tr:last-child td { border-bottom: 0; }
.rank-table td.n { width: 64px; }
.rank-table td:first-child { width: 36px; }
.rt-name .bar { margin-top: 4px; }
.rt-btn { display: block; max-width: 100%; padding: 0; border: 0; background: none; text-align: left; color: var(--text); line-height: 18px; text-underline-offset: 3px; }
.rt-btn:hover { text-decoration: underline; }
.rt-btn[aria-pressed="true"] { color: var(--accent-ink); font-weight: 600; }

.cooc th, .cooc td { border-bottom: 1px solid var(--rule); }
.cooc thead th { height: 28px; text-align: center; padding: 0 2px 4px; border-bottom: 1px solid var(--border); }
.cooc tbody tr:last-child th, .cooc tbody tr:last-child td { border-bottom: 0; }
.cc-name { min-width: 220px; padding: 2px 8px 2px 0; font-size: 13px; color: var(--text); white-space: nowrap; }
.cc-name .cv-node { white-space: normal; }
.cooc .heat { min-width: 34px; height: 26px; }
.pairs { display: grid; }
.pair-row { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) 40px; gap: 4px 12px; align-items: center; padding: 8px; margin: 0 -8px; border: 0; border-radius: 6px; background: none; text-align: left; transition: background-color var(--t-hover) ease; }
.pairs li + li .pair-row { border-top: 1px solid var(--rule); border-radius: 0; }
.pr-name { line-height: 18px; font-size: 13px; }
.pr-v { text-align: right; font-weight: 600; }
.pair-row .bar { grid-column: 1 / -1; }

.blist { display: grid; }
.bl-row { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; padding: 8px; margin: 0 -8px; border: 0; border-radius: 6px; background: none; text-align: left; transition: background-color var(--t-hover) ease; }
.blist li + li .bl-row { border-top: 1px solid var(--rule); border-radius: 0; }
.bl-name { line-height: 18px; }
.bl-v { text-align: right; font-weight: 600; }
.bl-v small { color: var(--muted); font-weight: 400; font-size: 12px; margin-left: 4px; }
.bl-row .bar { grid-column: 1 / -1; height: 6px; }
.bl-sub { grid-column: 1 / -1; color: var(--muted); font-size: 12px; line-height: 16px; }

.foot { margin-top: 20px; color: var(--muted); font-size: 12px; line-height: 18px; }

/* ---------- окна ---------- */
.dialog { padding: 0; border: 0; border-radius: 14px; background: var(--surface); color: var(--text); box-shadow: 0 24px 60px rgba(10, 20, 15, .22); max-height: calc(100svh - 48px); } /* taste-skill-ignore: оверлей */
.dialog::backdrop { background: rgba(18, 22, 20, .42); }
.dialog.wide { width: min(1120px, calc(100vw - 48px)); }
.dialog.small { width: min(480px, calc(100vw - 32px)); }
.dialog > div { display: flex; flex-direction: column; max-height: calc(100svh - 48px); }
.dlg-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 20px; border-bottom: 1px solid var(--border); }
.dlg-head h2 { font-size: 18px; font-weight: 600; line-height: 24px; }
.dlg-nav, .dlg-actions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.dlg-body { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; padding: 20px 24px 28px; overflow: auto; }
.dlg-body.single { display: block; }
.dlg-main { display: grid; gap: 10px; align-content: start; }
.dlg-main h2 { font-size: 22px; line-height: 28px; font-weight: 600; letter-spacing: -0.01em; }
.dlg-main h3, .dlg-side h3 { margin-top: 14px; font-size: 14px; font-weight: 600; }
.dlg-main h4 { margin-top: 8px; font-size: 13px; font-weight: 600; color: var(--muted); }
.dlg-main p, .abstract p { font-size: 15px; line-height: 24px; max-width: 75ch; }
.abstract { display: grid; gap: 10px; }
.trk-line { color: var(--muted); font-size: 14px !important; line-height: 20px !important; }
.dlg-side { display: grid; gap: 8px; align-content: start; padding-left: 24px; border-left: 1px solid var(--border); }
.cmp-table { table-layout: fixed; min-width: calc(160px + var(--cols) * 220px); }
.cmp-table th, .cmp-table td { padding: 10px 12px; border-bottom: 1px solid var(--rule); vertical-align: top; text-align: left; line-height: 20px; }
.cmp-table thead th { vertical-align: bottom; border-bottom: 1px solid var(--border); }
.cmp-table thead th .link-btn { display: block; margin-top: 6px; font-size: 12px; }
.cmp-table tbody th { width: 160px; color: var(--muted); }
.cmp-table thead th:first-child { width: 160px; }
/* ошибка — янтарный тон с иконкой, не путается с фирменным красным */
.toast[data-kind="error"] { background: var(--error-soft); color: var(--error); border: 1px solid #f0d29c; padding-left: 40px; }
.toast[data-kind="error"]::before { content: "!"; position: absolute; left: 14px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--error); color: #fff; font-weight: 700; font-size: 12px; line-height: 1; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 60; transform: translateX(-50%); max-width: calc(100vw - 32px); padding: 10px 16px; border-radius: 8px; background: var(--primary); color: #fff; box-shadow: 0 8px 24px rgba(10, 20, 15, .2); } /* taste-skill-ignore: оверлей */

/* ---------- планшет: рамка складывается, фильтры — во всплывающую панель ---------- */
@media (max-width: 1340px) {
  .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kpi:nth-child(n + 4) { border-top: 1px solid var(--border); }
  .kpi:nth-child(4) { border-left: 0; }
}
@media (max-width: 1100px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: fixed; inset: 0 auto 0 0; z-index: 40; width: min(380px, 100%); height: 100%; background: var(--surface); transform: translateX(-102%); transition: transform var(--t-ui) var(--ease-out); } /* taste-skill-ignore: оверлей */
  .filters-open .sidebar { transform: none; box-shadow: 0 0 40px rgba(10, 20, 15, .18); } /* taste-skill-ignore: оверлей */
  #filter-backdrop { position: fixed; inset: 0; z-index: 30; background: rgba(18, 22, 20, .4); }
  .phone-only { display: inline-grid !important; }
  .sidebar-apply.phone-only { display: block !important; padding-top: 12px; }
  .sidebar-apply .btn { width: 100%; height: 44px; }
  .frame-main { padding: 0 8px 8px; }
  .topbar { padding-left: 4px; }
  .topbar .filters-toggle { display: inline-flex; }
  .span-7, .span-5, .span-6 { grid-column: span 12; }
  .geo { grid-template-columns: minmax(0, 1fr); }
  .st-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dlg-body { grid-template-columns: minmax(0, 1fr); }
  .dlg-side { padding-left: 0; border-left: 0; border-top: 1px solid var(--border); padding-top: 8px; }
}
@media (max-width: 900px) {
  .top-actions .btn > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .top-actions .btn { width: 36px; padding: 0; }
  .top-actions #compare-open { width: auto; padding: 0 10px; }
  .top-actions #compare-open > span { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
}
@media (max-width: 720px) {
  :root { --pad: 16px; --card-pad: 16px; --fs-title: 20px; }
  .frame-main { padding: 0; }
  .topbar { position: static; flex-wrap: wrap; height: auto; padding: 8px 12px; gap: 8px; }
  .topbar .search { order: 3; flex: 1 1 100%; max-width: none; }
  .rank-table th:nth-child(4), .rank-table td:nth-child(4), .rank-table th:nth-child(5), .rank-table td:nth-child(5) { display: none; }
  .rank-table td, .rank-table th { padding-left: 6px; padding-right: 6px; }
  .sheet { border-radius: 0; border-left: 0; border-right: 0; padding-top: 16px; }
  .top-actions .btn { width: 40px; padding: 0; height: 40px; }
  .search input { height: 40px; }
    .filters-toggle { height: 40px; padding: 0 10px; }
  .title-row { flex-direction: column; gap: 10px; }
  .title-row .sub { font-size: 14px; line-height: 20px; }
  .title-actions .btn { height: 40px; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi { padding: 12px 14px; }
  .kpi + .kpi { border-left: 0; }
  .kpi:nth-child(n + 3) { border-top: 1px solid var(--border); }
  .kpi:nth-child(2n) { border-left: 1px solid var(--border); }
  .kpi.lead .kpi-value { font-size: 28px; line-height: 32px; }
  .kpi-value { font-size: 22px; }
  .conditions { min-height: 0; }
  .cond-hint { display: none; }
  .pinbar { top: 0; }
  .pinned .pinbar { display: flex; flex-wrap: wrap; align-items: center; gap: 0 10px; padding-top: 6px; padding-bottom: 6px; }
  .pinned .pin-sum { display: inline-flex; align-items: center; gap: 4px; flex: none; height: 36px; padding: 0 8px 0 10px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--text); font-size: 13px; }
  .pinned .pin-sum b { font-weight: 600; }
  .pin-sum svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; transition: transform var(--t-ui) ease; }
  .pin-open .pin-sum svg { transform: rotate(180deg); }
  .pinned .conditions { flex: 1 1 0; min-width: 0; padding: 0; }
  .pinned .cond-label { display: none; }
  .pinned .cond { height: 32px; }
  .pinned .kpis { display: none; }
  .pin-open .kpis { display: grid; flex: 1 1 100%; margin-top: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pin-open .kpi { padding: 6px 10px; }
  .pin-open .kpi + .kpi { border-left: 0 !important; }
  .pin-open .kpi:nth-child(2n) { border-left: 1px solid var(--border) !important; }
  .pin-open .kpi:nth-child(n + 3) { border-top: 1px solid var(--border) !important; }
  body[data-view="paper"] .pinbar { margin-top: -16px; }
  .cond { height: 32px; }
  .list-head { flex-wrap: wrap; }
  .list-tools { width: 100%; }
  .list-tools .input { flex: 1; height: 36px; }
  .list-tools .btn { height: 36px; }
  .paper-title { font-size: 15px; }
  .paper-actions .btn, .paper-actions .like { height: 36px; }
  .paper-head .icon-btn { width: 40px; height: 40px; margin: -8px -10px 0 0; }
  .yl-row { grid-template-columns: minmax(0, 1fr) 80px; }
  .yl-bars { grid-column: 1 / -1; grid-row: 2; }
  .gl-head, .gl-row { grid-template-columns: minmax(0, 1fr) 44px 52px 44px; min-height: 44px; }
  .dialog.wide, .dialog.small { width: 100vw; max-width: 100vw; max-height: 100svh; height: 100svh; border-radius: 0; margin: 0; }
  .dialog > div { max-height: 100svh; height: 100%; }
  .dlg-head { padding: 8px 12px; }
  .dlg-head .icon-btn { width: 40px; height: 40px; }
  .dlg-body { padding: 16px; }
  .dlg-main h2 { font-size: 19px; line-height: 25px; }
  .dlg-main p, .abstract p { font-size: 15px; line-height: 23px; }
  .cv-name { min-width: 200px; }
  .panel-head { flex-direction: column; gap: 10px; }
  .heatmap .cv-name { min-width: 220px; }
  .segmented button { height: 36px; }
  .input { height: 40px; }
  .st-grid { grid-template-columns: minmax(0, 1fr); }
  .panel-tools { justify-content: flex-start; width: 100%; }
  .drill, .drill .input { width: 100%; min-width: 0; }
  .yl-toggle { width: 36px; height: 36px; }
  .yl-line { grid-template-columns: 36px minmax(0, 1fr); }
  .ylist.sub { margin-left: 18px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: 0.01ms !important; animation: none !important; } }

/* матрицы с 9 направлениями помещаются в ширину листа */
.coverage th.cv-g { width: auto; min-width: 60px; }
.coverage .cv-name { min-width: 210px; }
.coverage .cv-total { width: 124px; min-width: 116px; }
.heatmap .cv-name { min-width: 230px; }
.ylist.tree .yl-row { grid-template-columns: minmax(200px, 1.3fr) minmax(0, 1.7fr) 84px; }
.panel-head .panel-tools { flex-wrap: nowrap; }
@media (max-width: 720px) {
  .ylist.tree .yl-row { grid-template-columns: minmax(0, 1fr) 80px; }
  .panel-head .panel-tools { flex-wrap: wrap; }
  .heatmap .cv-name { min-width: 200px; }
}

/* «Группы и технологии» в боковой панели */
.pk-chosen { display: flex; flex-wrap: wrap; gap: 6px; }
.pk-field { min-width: 0; }
.pk-chosen { min-width: 0; }
.pk-chosen .cond { height: auto; min-height: 28px; max-width: 100%; padding: 4px 8px 4px 10px; line-height: 17px; text-align: left; }
.pk-chosen .cond > span { min-width: 0; white-space: normal; overflow-wrap: anywhere; }
.pk-chosen .cond b { font-weight: 600; }
.pk-open { justify-content: center; width: 100%; }
.filter-hint { font-size: 12px; line-height: 17px; color: var(--muted); }

/* окно «Выбор групп и технологий» */
.dialog.picker { width: min(1320px, calc(100vw - 48px)); height: calc(100svh - 48px); }
.dialog.picker > div { height: 100%; }
.dialog.picker > .pk { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
/* Шапка: заголовок, пояснение и поиск без рамок-блоков */
.pk-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 420px) auto; align-items: start; gap: 12px 24px; padding: 22px 24px 18px 32px; }
.pk-title h2 { font-size: 20px; line-height: 26px; font-weight: 600; }
.pk-title .meta { max-width: 720px; margin-top: 4px; font-size: 13px; line-height: 19px; color: var(--muted); }
.pk-search .input { height: 40px; padding-right: 10px; font-size: 14px; }
.pk-body { display: grid; grid-template-columns: 272px minmax(0, 1fr); min-height: 0; }
/* Левый список направлений: только текст, активный пункт — цвет и лёгкая подложка */
.pk-nav { overflow: auto; padding: 4px 12px 16px 20px; scrollbar-width: thin; }
.pk-dirs { display: grid; gap: 1px; }
.pk-dir { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto; align-items: baseline; gap: 10px; width: 100%; padding: 8px 10px 8px 12px; border: 0; border-radius: 6px; background: none; text-align: left; font-size: 14px; line-height: 19px; color: var(--text); }
.pk-dir:not([style]) { grid-template-columns: minmax(0, 1fr) auto; font-weight: 600; }
.pk-dir .dir-dot { width: 8px; height: 8px; transform: translateY(-1px); }
.pk-dir .num { font-size: 13px; color: var(--faint); }
.pk-dir:hover { background: var(--raised); }
.pk-dir[aria-pressed="true"] { background: #edf6f1; color: var(--accent-ink); font-weight: 600; }
.pk-dir[aria-pressed="true"] .num { color: var(--accent-ink); }
.pk-dir.zero { color: var(--faint); }
.pk-dir.zero .dir-dot { opacity: 0.45; }
.pk-dir.zero[aria-pressed="true"] { color: var(--accent-ink); }
.pk-scope { margin: 0 0 22px; font-size: 13px; line-height: 19px; color: var(--muted); }
.pk-scope .link-btn { font-size: 13px; }
.pk-focus { padding-bottom: 4px; }
.pk-focus .pk-sec-h h3 { font-size: 13px; line-height: 18px; color: var(--muted); font-weight: 600; }
.pk-focus .pk-sec-h .meta { display: none; }
.pk-zero-groups { margin-top: 26px; }
.pk-zero-groups .pk-gname { color: var(--muted); }
.pk-more-g { margin-top: 18px; }
.pk-minis { columns: 3 230px; column-gap: 28px; }
.pk-minis li { break-inside: avoid; }
.pk-mini-full { column-span: all; margin: 4px 0 14px; }
.pk-mini { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; align-items: baseline; gap: 10px; width: 100%; min-height: 30px; padding: 5px 8px; margin-left: -8px; border: 0; border-radius: 6px; background: none; font-size: 14px; line-height: 19px; text-align: left; color: var(--text); }
.pk-mini .pk-box { transform: translateY(2px); }
.pk-mini .num { font-size: 12px; color: var(--faint); }
.pk-mini:hover { background: var(--raised); }
.pk-mini[aria-pressed="true"] { background: #edf6f1; color: var(--accent-ink); font-weight: 600; }
@media (max-width: 720px) { .pk-minis { columns: 1; } .pk-mini { min-height: 36px; padding: 8px; } }
.pk-miss-h { margin: 22px 0 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.pk-results.pk-zero .pk-res b, .pk-results.pk-zero .pk-rn small { color: var(--faint); font-weight: 500; }
/* Правая часть — как оглавление: направление, группы-заголовки, технологии строками */
.pk-main { overflow: auto; padding: 4px 32px 40px 24px; scrollbar-width: thin; }
.pk-main:focus { outline: none; }
.pk-sec + .pk-sec { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--rule); }
.pk-sec-h { margin-bottom: 18px; }
.pk-sec-h h3 { display: flex; align-items: center; gap: 8px; font-size: 17px; line-height: 23px; font-weight: 600; }
.pk-sec-h h3 .dir-dot, .pk-odir .dir-dot { width: 8px; height: 8px; }
.pk-sec-h .meta { margin-top: 3px; font-size: 13px; line-height: 19px; color: var(--muted); max-width: 760px; }
.pk-odir { display: flex; align-items: center; gap: 8px; margin: 28px 0 14px; font-size: 15px; line-height: 21px; font-weight: 600; color: var(--muted); }
.pk-groups { display: grid; gap: 26px; }
.pk-group { display: grid; gap: 8px; }
.pk-gline { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; }
.pk-gname { font-size: 15px; line-height: 21px; font-weight: 600; color: var(--text); }
.pk-gc { margin-left: 4px; font-size: 13px; font-weight: 500; color: var(--faint); }
.pk-group.none .pk-gname { color: var(--muted); }
.pk-whole { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 0 8px; margin-left: -8px; border: 0; border-radius: 6px; background: none; font-size: 13px; color: var(--muted); }
.pk-whole:hover { color: var(--text); background: var(--raised); }
.pk-whole[aria-pressed="true"] { color: var(--accent-ink); font-weight: 600; background: #edf6f1; }
.pk-box { display: inline-grid; place-items: center; flex: none; width: 14px; height: 14px; border: 1.5px solid var(--control); border-radius: 3px; background: var(--surface); }
[aria-pressed="true"] > .pk-box { border-color: var(--accent); background: var(--accent); }
[aria-pressed="true"] > .pk-box::after { content: ""; width: 7px; height: 3px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: translateY(-1px) rotate(-45deg); }
.pk-tags { columns: 3 230px; column-gap: 28px; }
.pk-tags li { break-inside: avoid; }
.pk-tag { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; width: 100%; min-height: 30px; padding: 5px 8px; margin-left: -8px; border: 0; border-radius: 6px; background: none; font-size: 14px; line-height: 19px; text-align: left; color: var(--text); }
.pk-tag .num { flex: none; font-size: 12px; color: var(--faint); }
.pk-tag:hover { background: var(--raised); }
.pk-tag[aria-pressed="true"] { background: #edf6f1; color: var(--accent-ink); font-weight: 600; }
.pk-tag[aria-pressed="true"] .num { color: var(--accent-ink); }
.pk-tag.zero { color: var(--faint); }
.pk-more { justify-self: start; font-size: 13px; }
.pk-none { font-size: 13px; color: var(--faint); }
/* Результаты поиска — те же строки, путь мелким шрифтом */
.pk-results { columns: 2 380px; column-gap: 32px; }
.pk-results li { break-inside: avoid; }
.pk-res { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; align-items: start; gap: 10px; width: 100%; padding: 8px 8px; margin-left: -8px; border: 0; border-radius: 6px; background: none; text-align: left; color: var(--text); }
.pk-res .pk-box { margin-top: 3px; }
.pk-res:hover { background: var(--raised); }
.pk-res[aria-pressed="true"] { background: #edf6f1; }
.pk-res[aria-pressed="true"] b { color: var(--accent-ink); }
.pk-res.zero b { color: var(--muted); font-weight: 500; }
.pk-rn { display: grid; gap: 1px; min-width: 0; }
.pk-rn b { font-size: 14px; line-height: 19px; font-weight: 600; }
.pk-rn small { font-size: 12px; line-height: 16px; color: var(--muted); }
.pk-path { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 6px; }
.pk-path .dir-dot { transform: translateY(-1px); }
.pk-res .num { font-size: 12px; color: var(--faint); }
/* Нижняя строка: выбранное текстом, «Сбросить» ссылкой, одна кнопка */
.pk-foot { display: flex; align-items: center; gap: 12px 24px; padding: 12px 24px 14px 32px; border-top: 1px solid var(--rule); background: var(--surface); }
.pk-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 14px; flex: 1; min-width: 0; max-height: 64px; overflow: auto; }
.pk-chips .cond { height: auto; min-height: 26px; max-width: 100%; padding: 2px 0; border: 0; border-radius: 0; background: none; color: var(--accent-ink); font-size: 13px; font-weight: 500; }
.pk-chips .cond:hover > span { text-decoration: underline; text-underline-offset: 3px; }
.pk-chips .cond > span { white-space: normal; text-align: left; }
.pk-chips .cond svg { width: 12px; height: 12px; color: var(--faint); }
.pk-chips .meta { font-size: 13px; color: var(--muted); }
.pk-acts { display: flex; align-items: center; gap: 12px; flex: none; }
.pk-acts .btn { height: 38px; padding: 0 16px; }
.pk-acts .btn.ghost { padding: 0 6px; color: var(--muted); }
.pk-back { display: none; }
@media (max-width: 720px) {
  .dialog.picker { width: 100vw; max-width: 100vw; height: 100svh; max-height: 100svh; margin: 0; border-radius: 0; }
  .pk-head { grid-template-columns: minmax(0, 1fr) auto; padding: 14px 12px 10px 16px; gap: 10px; }
  .pk-title { grid-column: 1; }
  .pk-title .meta { display: none; }
  .pk-head .icon-btn { grid-column: 2; grid-row: 1; }
  .pk-search { grid-column: 1 / -1; }
  .pk-body { grid-template-columns: 1fr; }
  .pk.step-1 .pk-main, .pk.step-2 .pk-nav { display: none; }
  .pk-nav { padding: 4px 8px 12px; }
  .pk-dir { padding: 12px 10px 12px 12px; font-size: 15px; }
  .pk-main { padding: 0 16px 24px; }
  .pk-back { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 -16px 14px; padding: 6px 16px 6px 8px; background: var(--surface); }
  .pk-back .meta { font-size: 13px; color: var(--muted); text-align: right; }
  .pk-tags, .pk-results { columns: 1; }
  .pk-groups { gap: 22px; }
  .pk-tag { min-height: 36px; padding: 8px; }
  .pk-foot { flex-direction: column; align-items: stretch; gap: 8px; padding: 10px 16px 12px; }
  .pk-chips { display: none; }
  .pk-sum { font-size: 13px; line-height: 18px; color: var(--muted); }
  .pk-sum b { color: var(--text); font-weight: 600; }
  .pk-acts .btn.primary { flex: 1; justify-content: center; }
}
.pk-chosen .cond { border-radius: 14px; }
.pk-chosen .cond svg, .pk-chips .cond svg { flex: none; }

/* ---------- v7: красный нашей Компании как второй фирменный цвет ----------
   Зелёный — данные и графики; красный — выбор, главное действие, ключевая цифра, маркеры разделов.
   Снижения в аналитике — отдельный тёмно-красный со знаком «−», не путается с акцентом. */
:root { --red-ink: #a3282e; --red-soft: #fdecec; --red-line: #f1c0c2; --negative: #8e2026; }
body::after { width: 40%; }
.tabs a[aria-current="page"] { color: var(--red-ink); }
.tabs a[aria-current="page"] .tab-count { color: var(--red-ink); }
.btn.primary { background: var(--red); color: #fff; }
.btn.primary:hover { background: #a92f35; }
.btn.primary:disabled { background: #d9a3a6; color: #fff; }
.kpi.lead .kpi-value { color: var(--red); }
.kpi.lead .kpi-label { color: var(--red-ink); }
.list-head h2::before, .panel-head h2::before { content: ""; display: inline-block; width: 3px; height: 14px; margin-right: 8px; border-radius: 2px; background: var(--brand-red); vertical-align: -1px; }
#reset, .link-btn[data-reset] { color: var(--red-ink); }
.segmented button[aria-pressed="true"] { position: relative; color: var(--red-ink); font-weight: 600; }
.segmented button[aria-pressed="true"]::after { content: ""; position: absolute; left: 6px; right: 6px; bottom: 0; height: 2px; border-radius: 1px; background: var(--brand-red); }
.tr-d.down, .yl-delta b.down, .cv-d.down, .gl-d.down, .rank-table .down, .ins .down { color: var(--negative); }
/* выбранное в окне выбора */
.pk-dir[aria-pressed="true"] { position: relative; background: var(--red-soft); color: var(--red-ink); }
.pk-dir[aria-pressed="true"]::before { content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 3px; border-radius: 2px; background: var(--red); }
.pk-dir[aria-pressed="true"] .num, .pk-dir.zero[aria-pressed="true"] { color: var(--red-ink); }
.pk-mini[aria-pressed="true"], .pk-whole[aria-pressed="true"], .pk-tag[aria-pressed="true"], .pk-res[aria-pressed="true"] { background: var(--red-soft); color: var(--red-ink); }
.pk-tag[aria-pressed="true"] .num, .pk-res[aria-pressed="true"] b, .pk-mini[aria-pressed="true"] .num { color: var(--red-ink); }
[aria-pressed="true"] > .pk-box { border-color: var(--red); background: var(--red); }

/* ---------- v7: чипы условий — у каждого типа свой цвет и префикс ---------- */
.cond { --cb: #eef7f2; --cl: #b9d9c9; --ci: #00573c; gap: 4px; border-color: var(--cl); background: var(--cb); color: var(--ci); }
.cond:hover { background: color-mix(in srgb, var(--cb), var(--ci) 9%); }
.cond .cond-k { font-weight: 400; }
.cond > .cond-t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cond > svg { color: inherit; }
.cond-t > svg { display: inline-block; width: 13px; height: 13px; margin-right: 3px; vertical-align: -2px; }
.cond-t .flag { display: inline-block; width: 16px; height: 12px; margin-right: 5px; vertical-align: -1px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); }
.cond-t .dir-dot { display: inline-block; margin-right: 5px; vertical-align: 1px; }
.cond-node { font-weight: 700; }
.cond[data-k="year"], .cond[data-k="availability"] { --cb: #eef0f1; --cl: #c5cbcf; --ci: #2c3236; }
.cond[data-k="nodes"] { --cb: var(--red-soft); --cl: var(--red-line); --ci: #962a2f; }
.cond[data-k="dir"] { --cb: #eef7f2; --cl: #b9d9c9; --ci: #00573c; }
.cond[data-k="groups"] { --cb: #dcefe5; --cl: #95c9b0; --ci: #004a33; }
.cond[data-k="tags"] { --cb: #ffffff; --cl: #6fbcae; --ci: #0b5a52; }
.cond[data-k="countries"] { --cb: #ebf1f8; --cl: #c0d1e5; --ci: #26456a; }
.cond[data-k="q"] { --cb: #f1eff8; --cl: #d1cae6; --ci: #45396d; }
.cond[data-k="org"] { --cb: #f7f2e8; --cl: #ddcfaf; --ci: #57441a; }
.cond[data-k="track"] { --cb: #f5eef4; --cl: #dcc8d8; --ci: #5a3752; }
.cond[data-k="session"] { --cb: #f0f3e6; --cl: #cfd7ae; --ci: #47501f; }
.cond[data-k="topic"] { --cb: #eaf4f7; --cl: #bad9e2; --ci: #1c5162; }
.cond[data-k="kind"] { --cb: #f3f1ee; --cl: #d4cec4; --ci: #49433a; }
/* те же чипы в боковой панели и внизу окна выбора */
.pk-chosen .cond > .cond-t { white-space: normal; overflow-wrap: anywhere; text-align: left; flex: 1; }
.pk-chips { gap: 6px; }
.pk-chips .cond { min-height: 26px; padding: 2px 8px 2px 10px; border: 1px solid var(--cl); border-radius: 14px; background: var(--cb); color: var(--ci); }
.pk-chips .cond:hover > span { text-decoration: none; }
.pk-chips .cond svg { color: inherit; }
.pk-chips .cond > .cond-t { white-space: normal; text-align: left; }
.chip.node[aria-pressed="true"] { background: var(--red-soft); color: #962a2f; }
.chip.node[aria-pressed="true"] b { color: #962a2f; }
[data-pkreset]:not(:disabled) { color: var(--red-ink); }
/* телефон, закреплённая строка: «Сбросить всё» — в панели фильтров, строка остаётся в полях страницы */
@media (max-width: 720px) { .pinned .conditions [data-reset] { display: none; } }

/* ---------- v8: облегчённая карточка в списке ----------
   Заголовок — ссылка на страницу статьи; вся карточка открывает её же. Теги, БН/ББ/ФН и кнопки — только на странице. */
.paper[data-row] { gap: 5px; padding: 16px var(--card-pad) 18px; cursor: pointer; }
.paper[data-row]:hover { background: var(--raised); }
.paper[data-row][aria-current="true"] { background: var(--active); }
.paper-h { flex: 1; min-width: 0; margin: 0; font: inherit; }
.paper-h .paper-title { display: inline; color: var(--text); }
.paper-h .paper-title:hover { text-decoration: underline; }
.paper-tools { display: flex; align-items: center; gap: 4px; flex: none; margin: -4px -6px 0 0; }
.paper-tools .like { height: 28px; min-width: 0; padding: 0 8px; font-size: 12px; cursor: pointer; }
.paper-tools .icon-btn { margin: 0; }
.paper[data-row] .paper-snippet { -webkit-line-clamp: 6; line-clamp: 6; max-width: 118ch; margin-top: 2px; }
@media (max-width: 720px) { .paper[data-row] .paper-snippet { -webkit-line-clamp: 5; line-clamp: 5; } }
@media (max-width: 720px) { .paper-tools .like { display: none; } .paper-tools { margin-right: -10px; } }

/* ---------- v9: окно выбора — дерево флажков, «ИЛИ» внутри окна ---------- */
.cond-or { font-size: 12px; font-weight: 600; color: var(--muted); margin: 0 -2px 0 2px; white-space: nowrap; }
.pk-gname { margin: 0; }
.pk-gchk { display: inline-grid; grid-template-columns: 14px auto auto; align-items: baseline; gap: 10px; max-width: 100%; min-height: 32px; padding: 5px 10px 5px 8px; margin-left: -8px; border: 0; border-radius: 6px; background: none; text-align: left; font-size: 15px; line-height: 21px; font-weight: 600; color: var(--text); }
.pk-gchk .pk-box { transform: translateY(2px); }
.pk-gchk .pk-gc { margin-left: 0; }
.pk-gchk:hover, .pk-tag:hover, .pk-mini:hover, .pk-res:hover { background: var(--raised); }
.pk-tag { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; align-items: baseline; justify-content: stretch; gap: 10px; text-align: left; }
.pk-tag .pk-box { transform: translateY(2px); }
[role="checkbox"] > .pk-box { position: relative; }
[aria-checked="true"] > .pk-box, [aria-checked="mixed"] > .pk-box { border-color: var(--red); background: var(--red); }
[aria-checked="true"] > .pk-box::after { content: ""; width: 7px; height: 3px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: translateY(-1px) rotate(-45deg); }
[aria-checked="mixed"] > .pk-box::after { content: ""; width: 8px; height: 2px; border-radius: 1px; background: #fff; }
.pk-gchk[aria-checked="true"], .pk-mini[aria-checked="true"], .pk-tag[aria-checked="true"]:not(.inh), .pk-res[aria-checked="true"]:not(.inh) { background: var(--red-soft); color: var(--red-ink); }
.pk-gchk[aria-checked="mixed"], .pk-mini[aria-checked="mixed"] { color: var(--red-ink); }
.pk-tag[aria-checked="true"]:not(.inh) { font-weight: 600; }
.pk-tag[aria-checked="true"]:not(.inh) .num, .pk-gchk[aria-checked="true"] .num, .pk-mini[aria-checked="true"] .num, .pk-res[aria-checked="true"]:not(.inh) b { color: var(--red-ink); }
/* технологии, входящие в отмеченную группу: отмечены, но приглушены */
.pk-tag.inh, .pk-res.inh { color: var(--muted); }
.pk-tag.inh > .pk-box, .pk-res.inh > .pk-box { border-color: #d98a8d; background: #d98a8d; }
.pk-group.on .pk-tags { border-left: 2px solid var(--red-line); padding-left: 12px; margin-left: -2px; }
.pk-orow { break-inside: avoid; }
.pk-oline { display: grid; grid-template-columns: minmax(0, 1fr) 30px; align-items: start; gap: 2px; }
.pk-mini { grid-template-columns: 14px minmax(0, 1fr) auto; margin-left: -8px; text-align: left; }
.pk-exp { display: inline-grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: 6px; background: none; color: var(--muted); }
.pk-exp:hover { background: var(--raised); color: var(--text); }
.pk-exp svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform var(--t-hover) ease; }
.pk-exp[aria-expanded="true"] svg { transform: rotate(180deg); }
.pk-osub { display: grid; gap: 6px; margin: 4px 0 12px 14px; padding-left: 12px; border-left: 2px solid var(--rule); }
.pk-osub .pk-tags { columns: 1; }
.pk-formula { flex: 1; min-width: 0; max-height: 60px; overflow: auto; margin: 0; font-size: 13px; line-height: 19px; color: var(--muted); }
.pk-formula b { color: var(--text); font-weight: 600; }
.pk-formula .num { color: var(--red-ink); font-weight: 600; }
@media (max-width: 720px) {
  .pk-gchk { min-height: 40px; padding: 9px 10px 9px 8px; }
  .pk-tag { min-height: 40px; }
  .pk-mini { min-height: 40px; }
  .pk-oline { grid-template-columns: minmax(0, 1fr) 40px; }
  .pk-exp { width: 40px; height: 40px; }
  .pk-formula { max-height: 76px; }
}
.pk-gchk { align-items: center; }
.pk-gchk .pk-box { transform: none; }
@media (hover: none) { .pk-gchk:hover, .pk-tag:hover, .pk-mini:hover, .pk-res:hover, .pk-exp:hover { background: none; } }
.pk-tag .pk-box, .pk-mini .pk-box { align-self: start; margin-top: calc((1lh - 14px) / 2); transform: none; }

/* ---------- v9: закреплённая шапка, PDF на странице статьи, поиск по сетке ---------- */
.pinned .pinbar { background: #fbf4f4; border-bottom-color: var(--red-line); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06); }
.pinned .kpis { background: var(--surface); }
.pdf-cta.btn { border-color: #c4373d; background: #c4373d; color: #fff; font-weight: 600; }
.pdf-cta.btn:hover { border-color: #a3282e; background: #a3282e; color: #fff; }
.pdf-cta svg { stroke: currentColor; }
.tr-cta.btn { border-color: #c4373d; color: #c4373d; font-weight: 600; }
.tr-cta.btn:hover { background: #fbf4f4; border-color: #a3282e; color: #a3282e; }
.pdf-badge { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 4px; background: #c4373d; color: #fff !important; font-size: 12px; font-weight: 700; letter-spacing: 0.02em; text-decoration: none; }
.pdf-badge:hover { background: #a3282e; }
.pdf-badge svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
/* поиск — на всю ширину строки до кнопок справа: левый край по листу каталога */
.topbar .search { max-width: none; }
@media (max-width: 720px) { .topbar { padding-left: 16px; padding-right: 16px; } }

/* ===== adipec-classes: три оси фильтра ===== */
/* Чипы условий по осям: «Применимость в нашей Компании» — красный бренд, «Технология» — зелёный (класс заливкой, тематика — белый),
   «Объект и условия» — сдержанный оливковый (из styles.css ветки, #6d6a3a). */
.cond[data-ax="where"] { --cb: var(--red-soft); --cl: var(--red-line); --ci: #962a2f; }
.cond[data-ax="technology"][data-k="groups"] { --cb: #dcefe5; --cl: #95c9b0; --ci: #004a33; }
.cond[data-ax="technology"][data-k="tags"] { --cb: #ffffff; --cl: #6fbcae; --ci: #0b5a52; }
.cond[data-ax="object"][data-k="groups"] { --cb: #eeede0; --cl: #c9c59a; --ci: #4f4c22; }
.cond[data-ax="object"][data-k="tags"] { --cb: #ffffff; --cl: #c9c59a; --ci: #4f4c22; }
.node-chosen { margin-top: 8px; }
.ax-hint { margin-top: -2px; }
.ax-hint b { display: block; margin-top: 4px; font-weight: 600; color: var(--text); }

/* «Объект и условия»: компактный список флажков в боковой панели */
.obj-field > span { display: flex; align-items: baseline; gap: 6px; }
.obj-clear { margin-left: auto; font-size: 12px; }
.obj-tree { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.obj-tags { margin: 0 0 4px 22px; padding: 0 0 0 8px; list-style: none; border-left: 1px solid var(--rule); }
.obj-chk { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; align-items: baseline; gap: 8px; width: 100%; min-height: 30px; padding: 5px 6px; border: 0; border-radius: 6px; background: none; color: var(--text); font-size: 13px; line-height: 18px; text-align: left; }
.obj-chk .pk-box { align-self: start; margin-top: 2px; }
.obj-chk .num { font-size: 12px; color: var(--faint); }
.obj-class { font-weight: 600; }
.obj-chk:hover { background: var(--raised); }
.obj-chk.zero { color: var(--faint); }
.obj-chk[aria-checked="true"]:not(.inh), .obj-chk[aria-checked="mixed"] { background: var(--red-soft); color: var(--red-ink); }
.obj-chk[aria-checked="true"]:not(.inh) .num, .obj-chk[aria-checked="mixed"] .num { color: var(--red-ink); }
.obj-chk.inh { color: var(--muted); }
.obj-chk.inh > .pk-box { border-color: #d98a8d; background: #d98a8d; }
@media (max-width: 720px) { .obj-chk { min-height: 40px; padding: 10px 6px; font-size: 14px; } }
@media (hover: none) { .obj-chk:hover { background: none; } }

/* аналитика: строки без раскрытия и подзаголовок оси */
.yl-toggle-sp { display: block; width: 28px; height: 28px; }
@media (max-width: 720px) { .yl-toggle-sp { width: 36px; height: 36px; } }
.sub-h.ax-h { margin-top: 22px; }
.pk-dir.has .pk-dn { font-weight: 600; }
.pk-groups.one { gap: 0; }
.obj-n { min-width: 0; overflow-wrap: anywhere; hyphens: auto; }
.tt-g .dir-dot { margin-right: 6px; }
/* 13 классов технологий в матрицах помещаются в ширину листа */
.coverage th.cv-g { min-width: 50px; padding: 0 2px 6px; font-size: 11.5px; line-height: 14px; hyphens: auto; overflow-wrap: break-word; }
.coverage th.cv-g.grp { min-width: 50px; }
.coverage .cv-drill { padding: 4px 0; font-size: 11.5px; line-height: 14px; }
.coverage .cv-cell .heat { min-width: 34px; }
.coverage .cv-name { min-width: 200px; }
.coverage .cv-total { width: 100px; min-width: 96px; }
.coverage .cv-total .bar { max-width: 50px; margin-right: 6px; }
.coverage .cv-d { width: 52px; min-width: 50px; padding-left: 6px !important; }
.heatmap .cv-name { min-width: 210px; }
.cond { max-width: min(480px, 100%); min-width: 0; }
@media (max-width: 720px) {
  .cond { height: auto; min-height: 32px; padding-top: 4px; padding-bottom: 4px; line-height: 18px; }
  .cond span { white-space: normal; overflow-wrap: anywhere; text-align: left; }
}
/* Список статей: каждая статья — отдельная карточка на сером поле, чёткая иерархия текста. */
.list-panel .papers { gap: 10px; padding: 12px; background: var(--raised); border-top: 1px solid var(--border); border-radius: 0 0 var(--radius-card) var(--radius-card); }
.papers > .paper[data-row] { position: relative; background: var(--surface); border: 1px solid #dfe5e2; border-radius: 10px; padding: 16px 18px 16px 20px; box-shadow: 0 1px 2px rgba(18, 22, 20, .04); transition: border-color var(--t-hover) ease, box-shadow var(--t-hover) ease; }
.papers > .paper[data-row]:last-child { border-bottom: 1px solid #dfe5e2; }
.papers > .paper[data-row]::before { content: ""; position: absolute; left: -1px; top: 12px; bottom: 12px; width: 3px; border-radius: 0 3px 3px 0; background: transparent; transition: background-color var(--t-hover) ease; }
.papers > .paper[data-row]:hover { background: var(--surface); border-color: #c9d2cd; box-shadow: 0 2px 8px rgba(18, 22, 20, .07); }
.papers > .paper[data-row]:hover::before, .papers > .paper[data-row][aria-current="true"]::before { background: var(--red); }
.papers > .paper[data-row][aria-current="true"] { background: #fffafa; border-color: #f1c0c2; }
.papers .paper-h .paper-title { font-size: 17px; line-height: 24px; font-weight: 650; color: #0d1210; }
.papers .paper-snippet { color: #4a524e; font-size: 13px; line-height: 19px; margin-top: 2px; }
.papers .paper-meta .year { color: var(--red-ink, #a3282e); }
@media (max-width: 640px) {
  .list-panel .papers { padding: 8px; gap: 8px; }
  .papers > .paper[data-row] { padding: 14px 14px 14px 16px; }
  .papers .paper-h .paper-title { font-size: 16px; line-height: 22px; }
}

/* Заметная кнопка «Назад к выборке» на странице статьи */
.back-cta.btn { height: 42px; padding: 0 18px 0 12px; gap: 8px; border: 0; border-radius: 10px; background: #1f2a25; color: #fff; font-size: 15px; font-weight: 600; box-shadow: 0 2px 6px rgba(18, 22, 20, .18); }
.back-cta.btn:hover { background: #33413a; color: #fff; }
.back-cta.btn:focus-visible { outline: 3px solid #f1c0c2; outline-offset: 2px; }
.back-cta svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2.2; }
@media (max-width: 640px) { .back-cta.btn { height: 44px; font-size: 15px; } }
/* Логика «И»: пункт, с которым выборка станет пустой, приглушён, но остаётся на месте */
.pk-tag.dim .pk-tn, .pk-tag.dim .num { color: var(--faint); }
.pk-plus { color: var(--red); font-weight: 700; margin: 0 2px; }

/* Год в фильтре: год сверху, число статей — отдельной строкой ниже */
.sidebar-scroll .segmented button { height: auto; min-height: 44px; padding: 5px 4px 6px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; line-height: 1.15; font-size: 14px; }
.sidebar-scroll .segmented button small { margin: 0; font-size: 11px; font-weight: 400; color: #7A847F; letter-spacing: .01em; }
.sidebar-scroll .segmented button[aria-pressed="true"] small { color: #9A4A4A; }
.foot[hidden] { display: none !important; }

/* ---------- встроенный просмотр PDF ---------- */
html.pdfv-on { overflow: hidden; }
.pdfv { position: fixed; inset: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #2B302D; color: #fff; display: none; }
.pdfv[open] { display: flex; flex-direction: column; }
.pdfv::backdrop { background: rgba(18, 22, 20, .6); }
.pdfv-top { flex: none; display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 8px 14px 8px 18px; background: #1F2A25; border-bottom: 1px solid rgba(255,255,255,.08); }
.pdfv-title { display: flex; align-items: baseline; gap: 10px; min-width: 0; flex: 1 1 auto; }
.pdfv-id { flex: none; font-size: 12px; color: #F2A7A9; letter-spacing: .02em; }
.pdfv-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; font-weight: 600; color: #F4F6F5; }
.pdfv-tools { display: flex; align-items: center; gap: 6px; flex: none; }
.pdfv-tools[hidden] { display: none; }
.pdfv-page { min-width: 96px; text-align: center; font-size: 13px; color: #D5DBD8; }
.pdfv-zoom { min-width: 48px; text-align: center; font-size: 13px; color: #D5DBD8; }
.pdfv-sep { width: 1px; height: 22px; margin: 0 4px; background: rgba(255,255,255,.16); }
.pdfv .icon-btn { width: 34px; height: 34px; color: #E3E8E5; }
.pdfv .icon-btn:hover { background: rgba(255,255,255,.1); color: #fff; }
.pdfv .icon-btn svg, .pdfv .btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.pdfv .btn.small { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border: 1px solid rgba(255,255,255,.18); border-radius: 8px; background: transparent; color: #F4F6F5; font-size: 13px; font-weight: 500; }
.pdfv .btn.small:hover { background: rgba(255,255,255,.1); }
.pdfv .btn.pdfv-close { background: #fff; color: #1F2A25; border-color: #fff; font-weight: 600; }
.pdfv .btn.pdfv-close:hover { background: #E9EEEB; }
.pdfv-progress { height: 3px; background: rgba(255,255,255,.08); flex: none; }
.pdfv-progress i { display: block; height: 100%; width: 4%; background: var(--brand-red); transition: width .2s ease; }
.pdfv-progress.done { visibility: hidden; }
.pdfv-disc { flex: none; display: flex; align-items: center; gap: 10px; padding: 9px 18px; background: #FFF6E0; border-bottom: 1px solid #E8D9AE; color: #4A3D17; font-size: 11.5px; line-height: 1.4; }
.pdfv-disc[hidden] { display: none; }
.pdfv-disc svg { flex: none; width: 16px; height: 16px; fill: none; stroke: #9A6B00; stroke-width: 1.6; stroke-linecap: round; }
.pdfv-disc p { margin: 0; flex: 1 1 auto; }
.pdfv .pdfv-disc .btn.small { flex: none; height: 30px; background: #fff; border-color: #D9C894; color: #4A3D17; }
.pdfv .pdfv-disc .btn.small:hover { background: #FFFBF0; }
@media (max-width: 720px) { .pdfv-disc { padding: 7px 10px; font-size: 11px; } .pdfv .pdfv-disc .btn.small { display: none; } }
.pdfv-body { flex: 1 1 auto; overflow: auto; outline: none; overscroll-behavior: contain; }
.pdfv-pages { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 20px 24px 40px; }
.pdfv-pages.wide { align-items: flex-start; width: max-content; }
.pdfv-pg { flex: none; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.35); }
.pdfv-pg canvas { display: block; }
.pdfv-state { display: grid; place-items: center; align-content: center; gap: 14px; min-height: 60vh; padding: 24px; text-align: center; font-size: 15px; color: #D5DBD8; }
.pdfv-state p { margin: 0; }
.pdfv-state .pdf-cta { color: #fff; }
@media (max-width: 760px) {
  .pdfv-top { flex-wrap: wrap; gap: 8px; padding: 8px 10px; }
  .pdfv-title { order: 1; flex-basis: calc(100% - 120px); }
  .pdfv-close { order: 2; margin-left: auto; }
  .pdfv-tools { order: 3; width: 100%; justify-content: space-between; }
  .pdfv-fit span, .pdfv-sep { display: none; }
  .pdfv-page { min-width: 0; }
  .pdfv-pages { gap: 8px; padding: 8px 8px 24px; }
}

/* ---------- вход по кодовому слову ---------- */
.gate { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 20px; background: #EEF2EF; transition: opacity .25s ease; }
.gate.out { opacity: 0; }
.gate-card { width: min(400px, 100%); padding: 32px 30px 28px; border-radius: 14px; background: #fff; box-shadow: 0 20px 50px rgba(10, 20, 15, .12); border-top: 4px solid var(--brand-red); }
.gate-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; font-size: 18px; font-weight: 700; letter-spacing: .04em; color: #121614; }
.gate-brand svg { width: 30px; height: 30px; }
.gate-card h1 { margin: 0 0 6px; font-size: 21px; line-height: 1.25; font-weight: 650; color: #121614; }
.gate-sub { margin: 0 0 22px; font-size: 14px; color: #545c58; }
.gate-field { display: grid; gap: 6px; font-size: 13px; color: #545c58; }
.gate-field input { height: 44px; padding: 0 12px; border: 1px solid #c9d1cc; border-radius: 8px; font: inherit; font-size: 16px; color: #121614; background: #fff; }
.gate-field input:focus { outline: 2px solid #1F2A25; outline-offset: 1px; border-color: #1F2A25; }
.gate-err { margin: 10px 0 0; font-size: 13px; color: #b42f35; }
.gate-go { width: 100%; height: 44px; margin-top: 18px; border: 0; border-radius: 8px; background: #1F2A25; color: #fff; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.gate-go:hover { background: #2E3D36; }
.gate-go:disabled { opacity: .7; cursor: progress; }
.gate-go[hidden], .gate-field[hidden] { display: none; }
/* ход загрузки каталога */
.gate-load { margin-top: 20px; }
.gate-bar { position: relative; height: 6px; overflow: hidden; border-radius: 3px; background: #E3E9E5; }
.gate-bar i { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 3px; background: #00b473; transition: width .2s ease; }
.gate-load.indet .gate-bar i { width: 30%; animation: gate-indet 1.2s ease-in-out infinite; }
.gate-load.done .gate-bar i { background: #1F2A25; }
@keyframes gate-indet { from { transform: translateX(-100%); } to { transform: translateX(340%); } }
.gate-pct { margin: 8px 0 0; font-size: 13px; color: #545c58; font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) { .gate-bar i { transition: none; } .gate-load.indet .gate-bar i { animation: none; width: 100%; opacity: .35; } }

/* вкладки «Оригинал / Перевод» и текст перевода */
.pdfv-tabs { display: inline-flex; flex: none; padding: 3px; border-radius: 9px; background: rgba(255,255,255,.08); }
.pdfv-tabs[hidden] { display: none; }
.pdfv-tabs button { height: 30px; padding: 0 14px; border: 0; border-radius: 7px; background: transparent; color: #D5DBD8; font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; }
.pdfv-tabs button:hover { color: #fff; }
.pdfv-tabs button[aria-selected="true"] { background: #fff; color: #1F2A25; font-weight: 600; }
.pdfv.tr-mode .pdfv-tools > :not(#pdfv-down):not([href]) { display: none; }
.pdfv-tr { flex: 1 1 auto; overflow: auto; outline: none; overscroll-behavior: contain; background: #2B302D; }
.pdfv-tr[hidden], .pdfv-body[hidden] { display: none; }
.tr-doc { max-width: 780px; margin: 20px auto 48px; padding: 40px 56px 48px; background: #fff; color: #1B201D; box-shadow: 0 2px 10px rgba(0,0,0,.35); font-size: 16px; line-height: 1.65; }
.tr-note { margin: 0 0 22px; padding: 10px 14px; border-left: 3px solid var(--brand-red); background: #FBF4F4; font-size: 13px; line-height: 1.5; color: #4A524E; }
.tr-doc h1 { margin: 0 0 8px; font-size: 24px; line-height: 1.3; font-weight: 650; }
.tr-meta { margin: 0 0 24px; font-size: 13px; color: #545c58; }
.tr-doc h2 { margin: 28px 0 10px; font-size: 18px; line-height: 1.35; font-weight: 650; color: #121614; }
.tr-flow p { margin: 0 0 12px; text-indent: 0; }
.tr-flow p.tr-cap { padding: 8px 12px; border-radius: 6px; background: #F2F5F3; font-size: 14px; line-height: 1.5; color: #3B433F; }
.tr-flow p.tr-ref { margin-bottom: 6px; font-size: 13px; line-height: 1.5; color: #545c58; }
.tr-status:empty { display: none; }
.tr-status { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 0 0 20px; padding: 12px 14px; border-radius: 8px; background: #F2F5F3; font-size: 14px; line-height: 1.5; color: #3B433F; }
.tr-status.warn { background: #FBF1E6; color: #5A3B12; }
.tr-status .btn.small { height: 32px; }
.tr-status:not(.warn) .btn.small:not(.pdf-cta) { color: #1F2A25; }
.tr-bar { display: inline-block; width: 160px; height: 4px; border-radius: 2px; background: #DCE3DF; overflow: hidden; }
.tr-bar i { display: block; height: 100%; background: var(--brand-red); }
@media (max-width: 760px) {
  .pdfv-tabs { order: 3; }
  .pdfv-tools { order: 4; }
  .pdfv.tr-mode .pdfv-tools { width: auto; margin-left: auto; }
  .tr-doc { margin: 8px; padding: 20px 18px 28px; font-size: 15px; }
  .tr-doc h1 { font-size: 20px; }
}
.pdfv .tr-status .btn.small { border-color: #c4ccc8; background: #fff; color: #1F2A25; }
.pdfv .tr-status .btn.small.pdf-cta { border-color: #c4373d; background: #c4373d; color: #fff; }

/* ---------- просмотр PDF: «Рядом» ---------- */
.pdfv-side { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto minmax(0, 1fr); }
.pdfv-side[hidden] { display: none; }
.pdfv-side-h { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding: 6px 16px; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 12px; font-weight: 600; letter-spacing: .02em; color: #B9C2BE; }
.pdfv-side-h .r { text-align: right; }
.pdfv-sync { display: inline-flex; align-items: center; gap: 8px; height: 26px; padding: 0 10px; border: 1px solid rgba(255,255,255,.16); border-radius: 13px; background: transparent; color: #D5DBD8; font: inherit; font-size: 12px; font-weight: 500; cursor: pointer; }
.pdfv-sync:hover { color: #fff; border-color: rgba(255,255,255,.3); }
.pdfv-sync i { position: relative; width: 24px; height: 14px; border-radius: 7px; background: rgba(255,255,255,.22); transition: background .15s; }
.pdfv-sync i::after { content: ''; position: absolute; top: 2px; left: 2px; width: 10px; height: 10px; border-radius: 50%; background: #fff; transition: transform .15s; }
.pdfv-sync[aria-pressed="true"] i { background: #1FA36B; }
.pdfv-sync[aria-pressed="true"] i::after { transform: translateX(10px); }
.pdfv-pbody { position: relative; min-height: 0; overflow: auto; outline: none; overscroll-behavior: contain; }
.pdfv-pbody + .pdfv-pbody { border-left: 1px solid rgba(255,255,255,.12); }
.pdfv-pbody .pdfv-pages { gap: 12px; padding: 14px 14px 40px; }
.side-mode .pdfv-disc .btn { display: none; }
@media (max-width: 959px) { #pdfv-t-side { display: none; } }

/* ---------- текстовый слой PDF (по образцу pdf_viewer.css из PDF.js 4.10) ---------- */
.pdfv-pg { position: relative; }
.pdfv .textLayer { position: absolute; inset: 0; overflow: clip; opacity: 1; line-height: 1; text-align: initial; -webkit-text-size-adjust: none; text-size-adjust: none; forced-color-adjust: none; transform-origin: 0 0; caret-color: CanvasText; z-index: 0; }
.pdfv .textLayer :is(span, br) { color: transparent; position: absolute; white-space: pre; cursor: text; transform-origin: 0% 0%; }
.pdfv .textLayer > :not(.markedContent), .pdfv .textLayer .markedContent span:not(.markedContent) { z-index: 1; }
.pdfv .textLayer span.markedContent { top: 0; height: 0; }
.pdfv .textLayer span[role="img"] { user-select: none; cursor: default; }
.pdfv .textLayer ::selection { background: rgba(0, 100, 255, .28); }
.pdfv .textLayer br::selection { background: transparent; }
.pdfv .textLayer .endOfContent { display: block; position: absolute; inset: 100% 0 0; z-index: 0; cursor: default; user-select: none; }
.pdfv .textLayer.selecting .endOfContent { top: 0; }

/* ---------- вызовы нашей Компании ---------- */
.fg-note{margin:.35rem 0 0;font-size:.75rem;line-height:1.4;color:var(--muted)}
.cond[data-ax="ch"] { --cb: #e9edf7; --cl: #a9b6da; --ci: #2f3f72; }
.ch-count{display:inline-flex;gap:.25rem;align-items:baseline;padding:0 .45rem;border-radius:999px;background:color-mix(in srgb,#4a5f9c 12%,transparent);color:#2f3f72;font-size:.75rem}
.ch-s{display:inline-block;padding:.05rem .45rem;margin-right:.4rem;border-radius:999px;font-size:.7rem;font-weight:600;letter-spacing:.01em;white-space:nowrap;vertical-align:.08em}
.ch-s.s2{background:var(--accent-ink);color:#fff}
.ch-s.s1{background:var(--active);color:var(--accent-ink)}
.ch-why{list-style:none;margin:.5rem 0 0;padding:.5rem .7rem;border-left:3px solid #4a5f9c;background:color-mix(in srgb,#4a5f9c 6%,transparent);border-radius:0 6px 6px 0;font-size:.85rem;line-height:1.45}
.ch-why li+li{margin-top:.35rem}
.ch-cards{display:grid;gap:.75rem;margin:0 0 1rem}
.ch-card{padding:1rem 1.1rem;border:1px solid color-mix(in srgb,#4a5f9c 35%,transparent);border-radius:10px;background:color-mix(in srgb,#4a5f9c 5%,var(--surface))}
.ch-card h2{margin:.25rem 0 .35rem;font-size:1.1rem;line-height:1.3}
.ch-desc{margin:0 0 .5rem;color:var(--muted);font-size:.9rem;line-height:1.45}
.ch-stat{display:flex;flex-wrap:wrap;gap:.4rem 1.1rem;align-items:baseline;margin:0;font-size:.85rem}
.ch-stat .link-btn{margin-left:auto}
.ch-kicker{display:flex;flex-wrap:wrap;gap:.35rem .7rem;align-items:center;margin:0;font-size:.75rem;color:var(--muted);text-transform:none}
.ch-type{font-weight:700;color:#2f3f72;text-transform:uppercase;letter-spacing:.04em;font-size:.7rem}
.ch-card[data-type="tech"] .ch-type,.ch-list .ch-type{color:#2f3f72}
.ch-list{list-style:none;margin:.5rem 0 0;padding:0;display:grid;gap:.6rem}
.ch-list li{padding:.7rem .85rem;border:1px solid var(--border);border-left:3px solid #4a5f9c;border-radius:0 8px 8px 0}
.ch-list p{margin:.3rem 0 0;font-size:.9rem;line-height:1.45}
.ch-list .ch-kicker{margin:0}
.ch-name{all:unset;cursor:pointer;display:block;margin-top:.3rem;font-weight:650;line-height:1.35;color:var(--text)}
.ch-name:hover{text-decoration:underline;text-decoration-color:#4a5f9c;text-underline-offset:3px}
.ch-name:focus-visible{outline:2px solid #4a5f9c;outline-offset:2px;border-radius:2px}
.ch-t{display:inline-block;min-width:1.2em;text-align:center;font-size:.7rem;padding:0 .2rem;border-radius:3px;background:color-mix(in srgb,#4a5f9c 16%,transparent);color:#2f3f72}
.ch-grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:1.5rem}
@media (max-width:900px){.ch-grid{grid-template-columns:1fr}}
.ch-table .ch-cov{min-width:9rem;white-space:nowrap}
.ch-track{display:inline-block;width:6rem;height:6px;margin-right:.5rem;vertical-align:middle;background:var(--rule);border-radius:3px;overflow:hidden}
.ch-track .bar{height:6px}
.ch-table .rt-name{min-width:13rem}
.ch-table .rt-name small{display:block;margin-top:.1rem;font-weight:400}
.ch-gap{border-top:1px solid var(--border);padding:.4rem 0;font-size:.85rem}
.ch-gap summary{cursor:pointer}
.ch-gap ul{margin:.4rem 0 .2rem;padding-left:1rem;display:grid;gap:.2rem;color:var(--muted)}
.sub-h.first{margin-top:0}
/* блок вызовов на странице статьи — выделен фоном направления «вызовы» */
.ch-sec{margin:1.75rem 0 .5rem;padding:1rem 1.1rem 1.1rem;border-radius:var(--radius-card);background:#eef1f9;border:1px solid #c9d2ea}
.ch-sec h2{margin:0 0 .75rem;display:flex;align-items:center;gap:.5rem;color:#24325e}
.ch-sec h2::before{content:"";width:4px;align-self:stretch;border-radius:2px;background:#4a5f9c}
.ch-sec-n{display:inline-grid;place-items:center;min-width:1.6em;height:1.6em;padding:0 .35em;border-radius:999px;background:#4a5f9c;color:#fff;font-size:.75rem;font-weight:700}
.ch-sec .ch-list{margin:0}
.ch-sec .ch-list li{background:var(--surface);border-color:#d5dcef;border-left-color:#4a5f9c}
.ch-sec.empty-ch{background:var(--raised);border-color:var(--border)}
.ch-sec.empty-ch h2{color:var(--text)}
.ch-sec.empty-ch h2::before{background:var(--control)}
.ch-sec.empty-ch p{margin:0}
.ch-kicker .ch-type{padding:.05rem .35rem;border-radius:4px;background:#e2e7f4}
.ch-sub{color:var(--muted)}
/* окно «Наша Компания: направления и вызовы» — на основе окна «Технология» */
/* окна «Наша Компания»: применимость (cp-nodes) и вызовы (cp-chs) */
.cp .pk-nav { padding: 8px 16px 20px 20px; border-right: 1px solid var(--rule); }
.cp .pk-dirs > li + li { margin-top: 2px; }
.cp .pk-dir.cp-dir { grid-template-columns: minmax(0, 1fr) auto; font-weight: 400; padding: 9px 10px 9px 12px; }
.cp .pk-dir.cp-all { font-weight: 600; margin-bottom: 6px; }
.cp .pk-dir[aria-pressed="true"] { font-weight: 600; }
.cp .pk-dir.has .pk-dn::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 6px; border-radius: 50%; background: var(--red); transform: translateY(-2px); }
.cp-nav-g { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--rule); }
.cp-nav-h { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; padding: 0 12px; font-size: 13px; line-height: 18px; font-weight: 700; color: var(--text); }
.cp-nav-g > ul { margin-left: 14px; padding-left: 8px; border-left: 2px solid var(--rule); }
.cp-gtag { display: inline-grid; place-items: center; min-width: 28px; height: 20px; padding: 0 6px; border-radius: 4px; background: #e9ecf2; color: #39445a; font-size: 11px; font-weight: 700; letter-spacing: .02em; }
.cp-group + .cp-group { margin-top: 28px; }
.cp-gh { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; padding-bottom: 10px; border-bottom: 1px solid var(--rule); font-size: 16px; line-height: 22px; font-weight: 600; }
.cp-gh .num, .cp-h .num { font-weight: 500; color: var(--faint); font-size: 13px; }
.cp-list { list-style: none; margin: 0; padding: 0; }
.cp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 8px 16px; }
.cp-grid .pk-res { margin-left: 0; height: 100%; padding: 12px 14px; border: 1px solid var(--rule); border-radius: 8px; }
.cp-grid .pk-res[aria-checked="true"] { border-color: #e3a5a8; }
.cp-block { margin-top: 20px; padding: 6px 18px 10px; border: 1px solid var(--rule); border-radius: 10px; background: var(--surface, #fff); }
.cp-h { display: flex; align-items: center; gap: 8px; margin: 10px 0 6px; font-size: 14px; line-height: 20px; font-weight: 600; color: var(--text); }
.cp-h .ch-type { padding: .05rem .45rem; border-radius: 4px; background: #e2e7f4; color: #2f3f72; font-size: 12px; }
.cp-block .cp-list > li + li { border-top: 1px solid var(--rule); }
.cp-block .pk-res { margin-left: 0; padding: 12px 8px; border-radius: 6px; }
.cp-row .pk-rn { display: grid; gap: 3px; }
.cp-row .pk-rn b { font-weight: 500; line-height: 20px; }
.cp-row .pk-rn small { font-size: 12px; color: var(--muted); }
.cp-sec .pk-sec-h { margin-bottom: 4px; }
.cp .pk-back .meta { display: none; }
.cp .pk-formula { max-height: 80px; }
@media (max-width: 720px) {
  .cp .pk-nav { border-right: 0; }
  .cp-grid { grid-template-columns: 1fr; }
  .cp-block { padding: 4px 12px 8px; }
}
/* окна «Наша Компания»: компактнее и спокойнее */
.cp .pk-title h2 { font-size: 17px; line-height: 23px; }
.cp .pk-title .meta { font-size: 12px; line-height: 17px; }
.cp .pk-search .input { font-size: 13px; }
.cp .pk-dir.cp-dir { padding: 6px 10px 6px 12px; font-size: 13px; line-height: 18px; }
.cp .pk-dir .num { font-size: 12px; }
.cp .pk-dir.has .pk-dn::after { width: 5px; height: 5px; }
.cp-nav-g { margin-top: 10px; padding-top: 10px; }
.cp-nav-h { gap: 7px; margin-bottom: 4px; font-size: 12px; line-height: 16px; font-weight: 600; color: var(--muted); }
.cp-nav-g > ul { margin-left: 12px; padding-left: 6px; border-left: 1px solid var(--rule); }
.cp-gtag { min-width: 24px; height: 17px; padding: 0 5px; border-radius: 3px; font-size: 10px; background: #eef0f4; color: #4b5568; }
.cp .pk-sec-h h3 { font-size: 15px; line-height: 21px; }
.cp .pk-sec-h .meta { font-size: 12px; }
.cp-gh { gap: 8px; margin-bottom: 8px; padding-bottom: 6px; font-size: 13px; line-height: 18px; color: var(--text); }
.cp-gh .num, .cp-h .num { font-size: 12px; }
.cp-group + .cp-group { margin-top: 20px; }
.cp-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 2px 20px; }
.cp-grid .pk-res { height: auto; padding: 7px 8px; border: 0; border-radius: 6px; }
.cp-block { margin-top: 14px; padding: 0; border: 0; background: none; }
.cp-h { margin: 0 0 4px; font-size: 12px; line-height: 16px; font-weight: 600; color: var(--muted); }
.cp-h .ch-type { padding: 0 .35rem; font-size: 10px; line-height: 16px; border-radius: 3px; }
.cp-block .cp-list > li + li { border-top-color: #eef0f2; }
.cp-block .pk-res { padding: 7px 8px; }
.cp-row .pk-box { margin-top: 2px; }
.cp-row .pk-rn { gap: 1px; }
.cp-row .pk-rn b { font-size: 13px; line-height: 18px; font-weight: 400; }
.cp-row[aria-checked="true"] .pk-rn b { font-weight: 500; }
.cp-row .pk-rn small { font-size: 11px; line-height: 15px; color: var(--faint); }
.cp-row .num { font-size: 11px; }
.cp .pk-formula { font-size: 12px; line-height: 17px; }
@media (max-width: 720px) {
  .cp .pk-dir.cp-dir { padding: 9px 10px 9px 12px; font-size: 14px; }
  .cp-grid { grid-template-columns: 1fr; }
}
/* Три окна выбора («Технология», «Применимость», «Вызовы») — единый компактный вид */
@media (min-width: 721px) {
  .dialog.picker { width: min(1120px, calc(100vw - 48px)); height: min(740px, calc(100svh - 48px)); }
}
.dialog.picker .pk-head { grid-template-columns: minmax(0, 1fr) minmax(240px, 340px) auto; gap: 8px 20px; padding: 16px 18px 12px 24px; border-bottom: 1px solid var(--rule); }
.dialog.picker .pk-title h2 { font-size: 16px; line-height: 22px; }
.dialog.picker .pk-title .meta { margin-top: 2px; font-size: 12px; line-height: 16px; }
.dialog.picker .pk-search .input { height: 34px; font-size: 13px; }
.dialog.picker .pk-body { grid-template-columns: 236px minmax(0, 1fr); }
.dialog.picker .pk-nav { padding: 10px 10px 14px 14px; border-right: 1px solid var(--rule); }
.dialog.picker .pk-dir { gap: 8px; padding: 6px 8px 6px 10px; font-size: 13px; line-height: 17px; }
.dialog.picker .pk-dir .num { font-size: 11px; }
.dialog.picker .pk-dir .dir-dot { width: 7px; height: 7px; }
.dialog.picker .pk-main { padding: 12px 22px 24px 20px; }
.dialog.picker .pk-sec + .pk-sec { margin-top: 18px; padding-top: 14px; }
.dialog.picker .pk-sec-h { margin-bottom: 8px; }
.dialog.picker .pk-sec-h h3 { gap: 7px; font-size: 14px; line-height: 19px; }
.dialog.picker .pk-sec-h .meta { margin-top: 1px; font-size: 12px; line-height: 16px; }
.dialog.picker .pk-odir { margin: 16px 0 8px; font-size: 13px; line-height: 18px; }
.dialog.picker .pk-groups { gap: 14px; }
.dialog.picker .pk-group { gap: 4px; }
.dialog.picker .pk-gname { font-size: 13px; line-height: 18px; }
.dialog.picker .pk-gc { font-size: 11px; }
.dialog.picker .pk-whole { min-height: 24px; font-size: 12px; }
.dialog.picker .pk-tags, .dialog.picker .pk-minis { column-gap: 20px; }
.dialog.picker .pk-tag, .dialog.picker .pk-mini { min-height: 26px; padding: 4px 8px; font-size: 13px; line-height: 17px; }
.dialog.picker .pk-tag .num, .dialog.picker .pk-mini .num, .dialog.picker .pk-res .num { font-size: 11px; }
.dialog.picker .pk-res { gap: 8px; padding: 5px 8px; }
.dialog.picker .pk-res .pk-box { margin-top: 2px; }
.dialog.picker .pk-rn b { font-size: 13px; line-height: 17px; }
.dialog.picker .pk-rn small { font-size: 11px; line-height: 15px; }
.dialog.picker .pk-results { column-gap: 20px; }
.dialog.picker .pk-scope, .dialog.picker .pk-miss-h { font-size: 12px; }
.dialog.picker .pk-foot { gap: 10px 20px; padding: 10px 18px 10px 24px; }
.dialog.picker .pk-formula { font-size: 12px; line-height: 16px; max-height: 50px; }
.dialog.picker .pk-acts .btn { height: 34px; font-size: 13px; }
/* «Применимость» и «Вызовы» в той же сетке */
.cp-gtag { min-width: 22px; height: 16px; font-size: 10px; }
.cp .pk-dir.cp-dir { padding: 6px 8px 6px 10px; font-size: 13px; line-height: 17px; }
.cp .pk-dir.cp-all { margin-bottom: 2px; }
.cp-nav-g { margin-top: 6px; padding-top: 6px; }
.cp-nav-h { margin-bottom: 2px; padding: 0 10px; font-size: 11px; line-height: 15px; }
.cp-nav-g > ul { margin-left: 10px; padding-left: 4px; }
.cp-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0 16px; }
.cp-grid .pk-res { padding: 5px 8px; }
.cp-block { margin-top: 10px; }
.cp-h { margin-bottom: 2px; font-size: 11px; line-height: 15px; }
.cp-block .pk-res { padding: 5px 8px; }
.cp-row .pk-rn b { font-size: 13px; line-height: 17px; }
.cp-row .pk-rn small { font-size: 11px; line-height: 14px; }
.cp .pk-formula { max-height: 50px; }
@media (max-width: 720px) {
  .dialog.picker .pk-head { grid-template-columns: minmax(0, 1fr) auto; padding: 12px 12px 10px 16px; }
  .dialog.picker .pk-body { grid-template-columns: 1fr; }
  .dialog.picker .pk-nav { border-right: 0; padding: 6px 8px 12px; }
  .dialog.picker .pk-dir, .cp .pk-dir.cp-dir { padding: 10px 10px 10px 12px; font-size: 14px; line-height: 19px; }
  .dialog.picker .pk-main { padding: 0 16px 20px; }
  .dialog.picker .pk-res, .cp-grid .pk-res, .cp-block .pk-res { padding: 8px; }
  .dialog.picker .pk-tag, .dialog.picker .pk-mini { min-height: 36px; padding: 8px; }
  .dialog.picker .pk-foot { padding: 10px 16px 12px; }
  .dialog.picker .pk-formula { max-height: 66px; }
  .cp-grid { grid-template-columns: 1fr; }
}
.dialog.picker .pk-gchk { gap: 8px; min-height: 26px; padding: 4px 8px; font-size: 13px; line-height: 17px; }
.dialog.picker .pk-focus .pk-sec-h h3 { font-size: 12px; line-height: 16px; }
@media (max-width: 720px) { .dialog.picker .pk-gchk { min-height: 36px; padding: 8px; font-size: 14px; } }
/* Серверная версия: прежняя оболочка и типографика, состояния API и дерево произвольной глубины. */
.view[aria-busy="true"] { opacity: .65; pointer-events: none; }
.empty { padding: 36px 24px; display: grid; gap: 12px; justify-items: start; }
.material-note { margin-top: 20px; padding: 12px 16px; border: 1px solid var(--control); border-radius: var(--radius-control); color: var(--muted); }
#picker .pk-head { grid-template-columns: minmax(0, 1fr) auto; }
#picker .pk-head > div { min-width: 0; }
#picker .pk-head > .icon-btn { grid-column: 2; grid-row: 1; justify-self: end; }
.picker-search { padding: 12px 20px; }
.picker-search .input { width: 100%; }
.picker-scroll { overflow: auto; max-height: min(60svh, 640px); padding: 8px 20px 16px; }
.picker-section { margin: 12px 0 20px; }
.picker-section > summary { font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.pk-choice { display: flex; align-items: start; gap: 10px; padding: 9px 8px 9px calc(8px + var(--depth, 0) * 12px); border-bottom: 1px solid var(--rule); cursor: pointer; }
.pk-choice input { flex: none; margin-top: 3px; accent-color: var(--accent); }
.pk-choice > span { flex: 1; }
.pk-choice .num { flex: none; color: var(--muted); }
.tax-tree summary { padding: 8px; font-weight: 600; cursor: pointer; }
.tax-tree .tax-tree { margin-left: 12px; }
.pk-foot, .dlg-foot { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-top: 1px solid var(--border); gap: 12px; }
.field .check, .check { display: flex; align-items: center; gap: 8px; }
.article-tax { margin: 12px 0; padding-left: 12px; border-left: 2px solid var(--rule); }
.article-tax h3 { font-size: 13px; font-weight: 600; }
.article-tax .article-tax { margin-top: 8px; }
.chart-rank { display: grid; gap: 2px; margin-top: 12px; }
.chart-rank-row { position: relative; display: grid; grid-template-columns: minmax(0,1fr) auto auto; align-items: start; gap: 10px; width: 100%; padding: 10px 0 14px; border: 0; border-bottom: 1px solid var(--rule); background: none; text-align: left; font-size: 13px; }
.chart-rank-row:hover { color: var(--accent-ink); }
.chart-rank-row > span:first-child { display: flex; align-items: center; gap: 6px; }
.chart-rank-row small { color: var(--muted); white-space: nowrap; }
.chart-bar { position: absolute; bottom: 3px; left: 0; display: block; width: var(--bar); height: 3px; background: var(--accent); border-radius: 2px; }
.chart-bar.old { background: var(--chart-old); }
.trend-tree { margin-left: 12px; }
.trend-tree > summary { cursor: pointer; }
.year-columns { display: grid; grid-template-columns: minmax(150px,1fr) repeat(auto-fit,minmax(42px,auto)); grid-auto-flow: column; align-items: baseline; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--rule); font-size: 12px; }
.year-columns .num { text-align: right; }
.trend-name { border: 0; background: none; text-align: left; font-size: 13px; padding: 0; }
.trend-name:hover { color: var(--accent-ink); text-decoration: underline; }
.st-card > h3 { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; }
.coverage-summary { display: grid; grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); gap: 12px; margin: 16px 0; }
.coverage-summary section { border: 1px solid var(--border); border-radius: 6px; padding: 12px; }
.coverage-summary h3 { font-size: 13px; margin-bottom: 6px; }
.matrix-selector { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.matrix-scroll, .compare-scroll { overflow: auto; max-width: 100%; }
.data-matrix { border-collapse: collapse; width: 100%; font-size: 12px; }
.data-matrix th, .data-matrix td { border: 1px solid var(--border); padding: 4px; }
.data-matrix th { text-align: left; min-width: 100px; max-width: 160px; font-weight: 500; }
.matrix-cell { width: 100%; min-width: 44px; min-height: 32px; border: 0; background: color-mix(in srgb,var(--accent) calc(var(--heat) * 65%), white); font-variant-numeric: tabular-nums; }
.matrix-cell:hover:not(:disabled) { outline: 2px solid var(--accent); outline-offset: -2px; }
.matrix-cell:disabled { color: var(--faint); background: var(--raised); }
.compare-table { border-collapse: collapse; min-width: 720px; width: 100%; table-layout: fixed; }
.compare-table th, .compare-table td { vertical-align: top; text-align: left; border: 1px solid var(--border); padding: 16px; overflow-wrap: anywhere; }
.compare-table th:first-child { width: 140px; }
#account-dialog { max-width: 460px; width: calc(100% - 32px); }
.account-form { display: grid; gap: 16px; padding: 24px; }
.account-form h2 { font-size: 22px; }
.account-form .input { width: 100%; }
.form-error { color: var(--error); min-height: 20px; }
@media (max-width: 760px) { .chart-rank-row { gap: 8px; } .coverage-summary { grid-template-columns: 1fr; } .matrix-selector { flex-wrap: wrap; } .year-columns { gap: 8px; } }
.year-columns { grid-template-columns: minmax(100px,1fr) repeat(var(--year-count,2),50px); grid-auto-flow: initial; }
.year-trends { overflow-x: auto; }
.pdf-content { position: relative; display: flex; flex-direction: column; flex: 1; min-height: 0; }
.pdf-content .pdfv-side { flex: 1; }
.pdfv-pg { position: relative; }
.pdfv-pg .textLayer { position: absolute; inset: 0; }
.pdfv-pg .textLayer ::selection { background: #6baaf1a0; }
.pdfv-body { position: relative; }
.pdfv-loading { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 24px; background: #2B302D; color: #F4F6F5; text-align: center; pointer-events: none; }
.pdfv-loading p { margin: 0; font-size: 15px; }
.pdfv-loading-percent { min-height: 18px; color: #B9C2BE; font-size: 13px; }
.pdfv-spinner { display: inline-block; flex: none; width: 34px; height: 34px; border: 3px solid rgba(255,255,255,.18); border-top-color: #F2A7A9; border-radius: 50%; animation: pdfv-spin .85s linear infinite; }
.pdfv-page-loading, .pdfv-page-error { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 12px; padding: 24px; text-align: center; color: #58635D; font-size: 13px; }
.pdfv-page-loading .pdfv-spinner { width: 26px; height: 26px; border-color: #DCE2DE; border-top-color: #A52F36; }
.pdfv-pg:not(.visible) .pdfv-spinner { animation-play-state: paused; }
.pdfv .pdfv-page-error .btn.small { color: #1F2A25; border-color: #B9C2BE; }
.pdfv-progress { overflow: hidden; }
.pdfv-progress.indeterminate i { animation: pdfv-progress 1.3s ease-in-out infinite; transition: none; }
@keyframes pdfv-spin { to { transform: rotate(360deg); } }
@keyframes pdfv-progress { from { transform: translateX(-100%); } to { transform: translateX(420%); } }
@media (prefers-reduced-motion: reduce) { .pdfv-spinner, .pdfv-progress.indeterminate i { animation: none; } }
@media (max-width: 1000px) { .pdfv-top { flex-wrap: wrap; gap: 8px; } .pdfv-title { min-width: 70%; } .pdfv-tools { order: 3; width: 100%; justify-content: center; } .pdfv-tabs { order: 2; } }
.country { display: inline-flex; align-items: center; gap: 5px; border: 0; padding: 0; background: none; font: inherit; font-size: 12px; color: var(--muted); }
.country:hover { color: var(--accent-ink); text-decoration: underline; }
.paper-row-actions { display: flex; justify-content: flex-end; align-items: center; gap: 8px; margin-top: 10px; }

.semantic-content{padding:24px;max-height:85vh;overflow:auto}.semantic-content textarea{display:block;width:100%;margin:8px 0 12px;resize:vertical}.semantic-content .dialog-head{display:flex;justify-content:space-between;align-items:center}.semantic-content .mini-list li{padding:12px 0;border-bottom:1px solid var(--line,#d8dfda)}
