/* Aineurolib Core: дизайн-система страниц сущностей (спека docs/superpowers/specs/2026-09-12-page-blocks-design.md, issue #17).
   Токены и компоненты живут под .ai-entity, чтобы не трогать тему; тёмная тема — через [data-theme='dark'] темы. */
:root {
  --ink: #192524; --muted: #66746f; --line: #dfe6e3; --soft: #f6f8f7; --ground: #f3f6f5; --surface: #ffffff;
  --accent: #09665d; --accent-ink: #ffffff; --accent-soft: #e6f2ef; --band: rgba(9, 102, 93, .14);
  --warn: #fff4e5; --warn-ink: #7a4b00; --good: #1a7f37; --danger: #b42318; --danger-soft: #fdecea;
}
[data-theme='dark'] {
  --ink: #e8eeec; --muted: #9aa8a5; --line: #2f3d3a; --soft: #1f2b28; --ground: #0f1614; --surface: #182220;
  --accent: #5fc3b6; --accent-ink: #0f1a18; --accent-soft: #1f3431; --band: rgba(95, 195, 182, .18);
  --warn: #3d2f14; --warn-ink: #ffd28a; --good: #6bd08a; --danger: #ff8f80; --danger-soft: #3a1e1b;
}

/* ---------- база страницы сущности ---------- */
.ai-entity { color: var(--ink); font-family: "Golos Text", helvetica, system-ui, sans-serif; font-size: 16px; line-height: 1.55; max-width: 100%; }
.ai-entity h1, .ai-entity h2, .ai-entity h3, .ai-entity .ai-big, .ai-entity .num { font-variant-numeric: tabular-nums; }
.ai-entity h1, .ai-entity h2, .ai-entity h3 { font-family: "Manrope", "Golos Text", helvetica, sans-serif; color: var(--ink); text-wrap: balance; margin: 0; }
.ai-entity h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); line-height: 1.08; font-weight: 800; margin: 0 0 .5em; }
.ai-entity h2 { font-size: 1.35rem; font-weight: 700; margin: 0 0 .6em; border-bottom: 1px solid var(--line); padding-bottom: .3em; }
.ai-entity h3, .ai-entity .ai-h3 { font-size: 1.02rem; font-weight: 700; margin: 1.1em 0 .5em; }
.ai-entity p { text-indent: 0; margin: 0 0 .8em; }
.ai-entity a { color: var(--accent); }
.ai-entity a.btn { color: var(--accent-ink); }
.ai-entity a.btn.ghost { color: var(--accent); }
.ai-entity ul, .ai-entity ol { margin: 0 0 .8em; }
.ai-block { margin: 0 0 2.2rem; }
.ai-block#b22 { margin-bottom: .6rem; }
.ai-crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25em .5em; font-size: .9rem; color: var(--muted); }
.ai-crumbs li + li::before { content: '›'; margin-right: .5em; }
.ai-crumbs a { color: var(--muted); text-decoration: none; }
.ai-lead { font-size: 1.15rem; line-height: 1.6; max-width: 86ch; margin: 0 0 1.4rem; text-wrap: pretty; }
@media (min-width: 1200px) { .ai-lead { font-size: 1.2rem; } }
.ai-intro { font-size: 1.02rem; max-width: 72ch; }
.ai-warning { background: var(--warn); color: var(--warn-ink); border-left: 4px solid var(--warn-ink); padding: .8em 1em; border-radius: 0 10px 10px 0; margin: 0 0 1.2em; }
.ai-warning p { margin: 0 0 .4em; }
.muted { color: var(--muted); }
.ai-draft { font-size: .85em; }
.nowrap { white-space: nowrap; }
.ai-src { font-size: .84rem; color: var(--muted); margin: .5em 0 0; }
.ai-src a { color: var(--muted); }
.ai-empty { font-size: 1.05rem; }
.ai-entity :focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* ---------- плитки фактов ---------- */
.ai-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; list-style: none; padding: 0; margin: 0; }
.ai-facts li { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; min-height: 112px; }
.ai-facts .k { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.ai-facts .ai-big { font-family: "Manrope", sans-serif; font-weight: 800; font-size: 1.6rem; line-height: 1.12; }
.ai-facts .ai-big small { font-size: .92rem; font-weight: 600; color: var(--muted); margin-left: 6px; }
.ai-facts .sub { font-size: .86rem; color: var(--muted); }
.ai-facts .ai-bar { display: block; height: 4px; border-radius: 2px; background: var(--line); position: relative; margin-top: auto; }
.ai-facts .ai-bar::after { content: ''; position: absolute; inset: 0; width: var(--w, 0%); background: var(--accent); border-radius: 2px; }

/* ---------- чипы направлений и категорий ---------- */
.ai-chips { list-style: none; padding: 0; margin: 0 0 .6em; display: flex; flex-wrap: wrap; gap: 8px; }
.ai-chips li > a, .ai-chips li > .chip { display: inline-flex; align-items: baseline; gap: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: .93rem; text-decoration: none; color: var(--ink); }
.ai-chips li > a:hover { border-color: var(--accent); }
.ai-chips b { font-family: "Manrope", sans-serif; font-weight: 800; color: var(--accent); }
.ai-chips small { color: var(--muted); }
.ai-chips.square li > .chip, .ai-chips.square li > a { border-radius: 10px; }

/* ---------- место «N-е из M» ---------- */
.ai-rank { display: grid; grid-template-columns: auto auto; gap: 0 6px; align-items: baseline; min-width: 110px; justify-content: start; }
.ai-rank b { font-family: "Manrope", sans-serif; font-weight: 800; font-size: 1.05rem; color: var(--accent); white-space: nowrap; }
.ai-rank .of { color: var(--muted); font-size: .85rem; white-space: nowrap; }
.ai-rank .ai-bar { grid-column: 1 / 3; display: block; height: 4px; border-radius: 2px; background: var(--line); position: relative; margin-top: 4px; }
.ai-rank .ai-bar::after { content: ''; position: absolute; inset: 0; width: var(--w, 0%); background: var(--accent); border-radius: 2px; }
.ai-rank.best b::after { content: ' \25CF'; font-size: .7em; vertical-align: middle; }

/* ---------- таблицы: настольный вид и плитки на телефоне ---------- */
.table-wrap { overflow-x: auto; max-width: 100%; margin: .3em 0 .6em; -webkit-overflow-scrolling: touch; }
.ai-entity .table-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.data-table, .spec-table, .compare-table, .ai-table { border-collapse: collapse; width: 100%; font-size: .93rem; font-variant-numeric: tabular-nums; }
.data-table th, .data-table td, .spec-table th, .spec-table td, .compare-table th, .compare-table td, .ai-table th, .ai-table td { border-bottom: 1px solid var(--line); padding: .55em .75em; text-align: left; vertical-align: middle; }
.data-table thead th, .compare-table thead th, .ai-table thead th { background: var(--soft); font-weight: 600; white-space: nowrap; font-size: .85rem; color: var(--muted); }
.ai-table tbody tr:last-child td, .ai-table tbody tr:last-child th { border-bottom: 0; }
.ai-table th[scope='row'] { font-weight: 600; }
.ai-table th[scope='row'] a { text-decoration: none; font-weight: 700; }
.data-table td.num, .data-table th.num, .ai-table td.num, .ai-table th.num { text-align: right; white-space: nowrap; }
.ai-table td.date { white-space: nowrap; color: var(--muted); }
.ai-table td.mode { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: .85rem; }
.ai-table .ci { color: var(--muted); font-size: .85rem; }
.ai-table tr.hl th, .ai-table tr.hl td, .ai-table td.cur { background: var(--accent-soft); }
.ai-table thead th.cur { color: var(--accent); }
.spec-table th[scope='row'] { width: 34%; color: var(--muted); font-weight: 500; background: var(--soft); }
.compare-table tbody th, .compare-table td:first-child { color: var(--muted); }
@media (max-width: 700px) {
  .ai-entity .table-wrap.cards { overflow: visible; background: none; border: 0; border-radius: 0; }
  .ai-entity .table-wrap.cards table, .ai-entity .table-wrap.cards thead, .ai-entity .table-wrap.cards tbody, .ai-entity .table-wrap.cards tr, .ai-entity .table-wrap.cards th, .ai-entity .table-wrap.cards td { display: block; width: 100%; box-sizing: border-box; }
  .ai-entity .table-wrap.cards thead { position: absolute; left: -9999px; }
  .ai-entity .table-wrap.cards tbody tr { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 4px 14px 10px; margin-bottom: 10px; }
  .ai-entity .table-wrap.cards tbody tr.hl { border-color: var(--accent); }
  .ai-entity .table-wrap.cards th[scope='row'] { padding: 10px 0 8px; border-bottom: 2px solid var(--line); font-size: 1rem; font-weight: 700; }
  .ai-entity .table-wrap.cards td { padding: 8px 0 4px; border: 0; border-bottom: 1px solid var(--line); text-align: left !important; white-space: normal !important; background: none; }
  .ai-entity .table-wrap.cards tbody tr td:last-child { border-bottom: 0; }
  .ai-entity .table-wrap.cards td[data-label]::before { content: attr(data-label); display: block; font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
  .ai-entity .table-wrap.cards td.cur { border-left: 3px solid var(--accent); padding-left: 10px; }
  .ai-entity .table-wrap.cards td.mode { font-size: .95rem; }
  .ai-entity .table-wrap.cards.compact tbody tr { padding: 8px 14px 6px; margin-bottom: 8px; }
  .ai-entity .table-wrap.cards.compact th[scope='row'] { padding: 2px 0 4px; border-bottom: 0; }
  .ai-entity .table-wrap.cards.compact td { padding: 0 0 4px; border-bottom: 0; }
  .ai-entity .table-wrap.cards.compact td[data-label]::before { display: none; }
}

/* ---------- переключатель рядов и график ---------- */
.ai-seg { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.ai-seg button { font: inherit; font-size: .88rem; padding: 6px 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; cursor: pointer; }
.ai-seg button[aria-pressed='true'] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 600; }
.ai-chart { position: relative; max-width: 100%; margin: .2em 0 .4em; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 8px 4px; }
.ai-chart svg { width: 100%; height: auto; display: block; }
.ai-chart .line { fill: none; stroke: var(--accent); stroke-width: 2.2; }
.ai-chart .band { fill: var(--band); }
.ai-chart .dot { fill: var(--accent); }
.ai-chart .tk { font-size: 11px; fill: var(--muted); }
.ai-chart .grid { stroke: var(--line); stroke-width: 1; }
.ai-chart .lbl { font-size: 12px; font-weight: 700; fill: var(--ink); }
.ai-chart canvas { max-width: 100%; }
.ai-chart .ai-chart-note { color: var(--muted); font-size: .85rem; }

/* ---------- стоимость ---------- */
.ai-scen { list-style: none; padding: 0; margin: 0 0 12px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.ai-scen li { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.ai-scen b { font-family: "Manrope", sans-serif; font-size: 1.5rem; font-weight: 800; }
.ai-scen .t { font-weight: 600; }
.ai-scen .d { font-size: .86rem; color: var(--muted); }
.ai-calc { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: end; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; }
.ai-calc label { display: flex; flex-direction: column; gap: 4px; font-size: .86rem; color: var(--muted); }
.ai-calc input, .ai-calc select { font: inherit; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--soft); color: var(--ink); min-width: 150px; max-width: 100%; }
.ai-calc output { font-family: "Manrope", sans-serif; font-weight: 800; font-size: 1.35rem; color: var(--ink); }
.ai-price { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 14px 18px; max-width: 80ch; }
.ai-price p:last-child { margin: 0; }

/* ---------- карточки соседей, вывод, таймлайн, подвал данных, FAQ ---------- */
.ai-cards { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.ai-cards.three { grid-template-columns: repeat(3, 1fr); }
.ai-cards li { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.ai-cards .why { font-size: .76rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.ai-cards a { font-weight: 700; text-decoration: none; font-size: 1.02rem; }
.ai-cards .n { font-size: .88rem; color: var(--muted); }
.ai-cards .n b { color: var(--accent); }
.ai-cards .v { font-weight: 700; }
.ai-pick { background: var(--accent-soft); border-left: 4px solid var(--accent); border-radius: 0 10px 10px 0; padding: 14px 18px; max-width: 80ch; margin: 0 0 12px; }
.ai-pick p:last-child { margin: 0; }
.ai-timeline { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--line); }
.ai-timeline li { padding: 4px 0 12px 16px; position: relative; }
.ai-timeline li::before { content: ''; position: absolute; left: -7px; top: 12px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); border: 2px solid var(--surface); }
.ai-timeline time { color: var(--muted); font-variant-numeric: tabular-nums; margin-right: 8px; white-space: nowrap; }
.ai-timeline a { font-weight: 700; text-decoration: none; }
.ai-datafoot { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 14px 18px; font-size: .93rem; }
.ai-datafoot p:last-child { margin: 0; }
.ai-faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 16px; margin-bottom: 8px; }
.ai-faq summary { cursor: pointer; font-weight: 600; }
.ai-faq details p { margin: 8px 0 2px; max-width: 80ch; }
.ai-code { background: var(--soft); border: 1px solid var(--line); border-radius: 4px; padding: .8em 1em; overflow-x: auto; font-size: .85rem; line-height: 1.45; }
code.ai-json { font-size: .85em; word-break: break-all; }
.ai-fresh, .ai-top, .ai-alt, .ai-sources, .ai-groups { padding-left: 1.2em; margin: .3em 0 .8em; }
.ai-groups { display: flex; flex-wrap: wrap; gap: .3em .9em; list-style: none; padding: 0; }
.ai-groups li { background: var(--accent-soft); border-radius: 999px; padding: .15em .7em; font-size: .92rem; }

/* ---------- адаптив ---------- */
@media (max-width: 860px) {
  .ai-facts { grid-template-columns: repeat(2, 1fr); }
  .ai-scen { grid-template-columns: 1fr; }
  .ai-cards, .ai-cards.three { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .mobile-hide { display: none !important; }
  .spec-table th[scope='row'] { width: 42%; }
}
@media (max-width: 520px) {
  .ai-facts, .ai-cards, .ai-cards.three { grid-template-columns: 1fr; }
  .ai-chips li > a, .ai-chips li > .chip { font-size: .88rem; }
}
@media (prefers-reduced-motion: no-preference) { .ai-rank .ai-bar::after, .ai-facts .ai-bar::after { transition: width .4s ease; } }
@media (prefers-reduced-motion: reduce) { .ai-entity * { transition: none !important; } }

/* ---------- рейтинги, поиск, фильтры (T05, T20, T01 — без изменений) ---------- */
.tabs ul { list-style: none; margin: 0 0 .8em; padding: 0; display: flex; flex-wrap: wrap; gap: .3em; }
.tabs a { display: inline-block; padding: .25em .7em; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-size: .9rem; color: var(--ink); }
.tabs a.active, .ai-filters a.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.tabs a:focus-visible, .ai-filters a:focus-visible, .ai-search-form input:focus-visible, .ai-search-form button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.ai-date-switch { margin: 0 0 .8em; font-size: .92rem; }
.ai-date-switch select { font: inherit; padding: .3em .5em; border: 1px solid var(--line); border-radius: 4px; background: var(--soft); color: var(--ink); }
.ai-filters p { margin: .2em 0; font-size: .92rem; }
.ai-filters a { display: inline-block; padding: .15em .6em; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--ink); margin: .15em 0; }
.ai-search-form { display: flex; gap: .5em; flex-wrap: wrap; margin: 0 0 .8em; }
.ai-search-form input { flex: 1 1 240px; font: inherit; padding: .5em .7em; border: 1px solid var(--line); border-radius: 4px; background: var(--soft); color: var(--ink); min-width: 0; }
.ai-search-form button { font: inherit; padding: .5em 1em; border: 0; border-radius: 4px; background: var(--accent); color: #fff; cursor: pointer; }
.ai-search-inline { border: 1px solid var(--line); border-radius: 6px; padding: .6em 1em; margin: 0 0 1.2em; }
.ai-metric { display: grid; grid-template-columns: max-content 1fr; gap: .3em 1em; margin: 0 0 .8em; }
.ai-metric dt { color: var(--muted); }
.ai-metric dd { margin: 0; }
@media (max-width: 700px) { .ai-metric { grid-template-columns: 1fr; gap: 0 } .ai-metric dd { margin-bottom: .5em } }

/* ---- дополнения T07 ---- */
.ai-facts .ai-big .txt { font-size: 1.15rem; line-height: 1.25; }
.ai-facts .sub .ai-bar { margin-top: 6px; }
.ai-history .ai-chart-note { color: var(--muted); font-size: .85rem; margin: .3em 0 0; }
.ai-pop { margin: .6em 0 0; }
.ai-pop b { font-family: "Manrope", sans-serif; font-weight: 800; color: var(--accent); }
.ai-editorial { max-width: 72ch; }
.ai-t08 .ai-facts { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 520px) { .ai-t08 .ai-facts { grid-template-columns: 1fr; } }

/* ---------- единый стиль «Лаборатория» (issue #33): кнопки, бейджи, уведомления, пустое состояние, шапка секции, проза ---------- */
/* .btn, .btn.ghost, .btn.small — в теме (style.css), общие для реестра и каталога */
.ai-badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .8rem; font-weight: 600; background: var(--soft); color: var(--muted); border: 1px solid var(--line); white-space: nowrap; }
.ai-badge.is-good { background: var(--accent-soft); color: var(--good); border-color: transparent; }
.ai-badge.is-warn { background: var(--warn); color: var(--warn-ink); border-color: transparent; }
.ai-badge.is-accent { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.ai-badge.is-danger { background: var(--danger-soft); color: var(--danger); border-color: transparent; }
.ai-notice { display: grid; gap: 4px; padding: 12px 16px; border-radius: 10px; border: 1px solid var(--line); border-left-width: 4px; background: var(--surface); margin: 0 0 16px; }
.ai-notice.info { border-left-color: var(--accent); }
.ai-notice.warn { border-left-color: var(--warn-ink); background: var(--warn); color: var(--warn-ink); }
.ai-notice.good { border-left-color: var(--good); }
.ai-notice p { margin: 0; }
.ai-empty-state { text-align: center; padding: 32px 20px; border: 1px dashed var(--line); border-radius: 12px; color: var(--muted); }
.ai-empty-state h3 { color: var(--ink); margin: 0 0 6px; }
.ai-sec-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 8px 16px; margin: 0 0 12px; }
.ai-sec-head h2 { margin: 0; border: 0; padding: 0; }
.ai-sec-head .sub { color: var(--muted); font-size: .93rem; grid-column: 1; }
.ai-sec-head .act { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
@media (max-width: 600px) { .ai-sec-head { grid-template-columns: 1fr; } .ai-sec-head .act { grid-column: 1; grid-row: auto; } }
.prose { max-width: 72ch; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.3em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin: 0 0 .35em; }
.prose blockquote { margin: 0 0 1em; padding: 8px 16px; border-left: 4px solid var(--accent); background: var(--accent-soft); border-radius: 0 8px 8px 0; }
.prose table { border-collapse: collapse; width: 100%; font-size: .93rem; margin: 0 0 1em; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: .5em .7em; text-align: left; vertical-align: top; }
.prose th { background: var(--soft); font-weight: 600; color: var(--muted); font-size: .85rem; }
.prose code { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: .88em; background: var(--soft); padding: .1em .35em; border-radius: 4px; }
.prose img { border-radius: 10px; }
/* таблица борда на телефоне: закреплённая колонка модели, остальные прокручиваются (решение по #32) */
@media (max-width: 700px) {
  .ai-t05 .table-wrap:not(.cards) table { min-width: 560px; }
  .ai-t05 .table-wrap:not(.cards) th:nth-child(2), .ai-t05 .table-wrap:not(.cards) td:nth-child(2) { position: sticky; left: 0; background: var(--surface); box-shadow: 1px 0 0 var(--line); z-index: 1; max-width: 42vw; }
  .ai-t05 .table-wrap:not(.cards) thead th:nth-child(2) { background: var(--soft); }
}

/* T18: мера строки для длинных списков методики */
.ai-t18 .ai-block > p, .ai-t18 .ai-block li, .ai-t18 .ai-block dd { max-width: 78ch; }

/* Хаб типа T02: карточки старого каталога живут внутри .ai-entity и не должны перекрашиваться правилом .ai-entity a */
.ai-catalog a, .ai-catalog a:hover { color: inherit; }
.ai-catalog .cat-link { color: var(--ink); }
.ai-catalog .wrap { padding: 0; max-width: none; }
.ai-catalog .app-categories { margin-top: 0; }
.ai-entity .ai-filters { margin: 0 0 .4em; }
.ai-entity .ai-filters p { margin: 0 0 .5em; display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.ai-entity .ai-filters b { font-family: "Manrope", sans-serif; font-weight: 700; }
.ai-entity .ai-filters a { display: inline-flex; align-items: baseline; gap: 6px; border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; background: var(--surface); color: var(--ink); text-decoration: none; }
.ai-entity .ai-filters a:hover { border-color: var(--accent); }
.ai-entity .ai-filters a.active { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.ai-entity .ai-filters a small { color: var(--muted); }

/* Задачи рейтинга: слева задача, справа модель, которая в ней первая (issue #61). Две колонки на широком экране. */
.ai-taskleads { list-style: none; margin: .6rem 0 0; padding: 0; display: grid; gap: .1rem 2rem; }
@media (min-width: 900px) { .ai-taskleads { grid-template-columns: 1fr 1fr; } }
.ai-taskleads li { display: flex; gap: .75rem; align-items: baseline; justify-content: space-between; padding: .35rem 0; border-bottom: 1px solid var(--line); }
.ai-taskleads .ai-task-lead { color: var(--muted); font-weight: 600; text-align: right; }
