/* «Атлас сцен» (atlas*.js, docs/studio-features/14-atlas.md §3–§3.2).
   Свой файл, тот же слой responsive, что у vault.css и tree*.css.
   Три раскладки:
   • уже 600 px — аккордеон по городам (.at-phone): строка артиста — имя,
     пометки, годы словами и мини-полоса в процентах периода сцены. Ничего
     шире экрана, прокрутки вбок нет;
   • 600–1023 px — общая шкала лет (.at-wide): линейка и полоса строк — те же
     .tc-rulerwrap / .tc-strip, что у «Карьер» (tree_careers.css): линейка
     прилипает под шапкой с тем же отступом (--tc-stick), длинная шкала
     листается пальцем внутри полосы; имя артиста — в ячейке, прилипающей
     слева (.at-cell). Своей прокрутки вбок у атласа нет;
   • от 1024 px — полный вид: «Связи» — в три колонки.
   Пометки — текстовые значки с рамкой (.at-mk), а не только вид линии:
   «вне родины сцены» — штриховая рамка, связь вне годов сцены или без лет
   (.weak) — тоже штриховая. Зоны нажатия — не меньше 44 px; на общей шкале
   нажимается вся строка артиста. Столбики альбомов по годам — цветом текста
   (контраст с фоном не ниже 3:1), пиковый год — акцентом. Карточка артиста —
   обычное окно <dialog>: место задаёт общее правило окон (style.css), здесь
   только вид; её шапка с крестиком прилипает к верху окна. Фокус виден; при
   reduced-motion — без переходов и мерцания. */
@layer responsive {
.at-page { min-width: 0; --at-c: var(--accent-strong); }
.at-page *, .at-card * { min-width: 0; }
.at-page .actions { display: flex; flex-wrap: wrap; gap: 8px; }
.at-page .empty-state .actions { justify-content: center; margin-top: 16px; }
.at-dim { color: var(--text-dim); font-size: 12px; }
.at-h { margin: 22px 0 8px; font-size: 17px; color: var(--text-strong); }
.at-h4 { margin: 0 0 8px; font-size: 14px; color: var(--text-strong); }
.at-nm { color: var(--text-strong); font-weight: 600; overflow-wrap: anywhere; }
.at-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden;
    clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* Пометка — текст в рамке; подсказка говорит, чем подтверждено. */
.at-mk { display: inline-block; padding: 0 5px; border: 1px solid var(--border-strong); border-radius: 4px;
    background: var(--bg-card); color: var(--text-mid); font-family: var(--font-mono); font-size: 10px;
    font-weight: 500; line-height: 15px; white-space: nowrap; vertical-align: middle; }
.at-mk-out { border-style: dashed; border-color: var(--warning); color: var(--warning); font-family: inherit; }
.at-mk-weak { border-style: dashed; font-family: inherit; }
.at-mk-plain { font-family: inherit; }

/* ── Раздел: запрос и галерея ── */
.at-ask { margin: 0 0 8px; }
.at-ask-label { display: block; margin: 0 0 6px; color: var(--text-mid); font-size: 13px; font-weight: 600; }
.at-ask-row { display: flex; flex-wrap: wrap; gap: 8px; }
.at-ask-input { flex: 1 1 220px; min-height: 44px; padding: 0 14px; border: 1px solid var(--border-strong);
    border-radius: var(--radius); background: var(--bg-input); color: var(--text); font: inherit; font-size: 16px; }
.at-ask-input::placeholder { color: var(--text-dim); }
.at-ask-btn { min-height: 44px; }
.at-examples { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }
.at-gal-note { margin: 0 0 10px; }
.at-limits { margin: 0 0 10px; }
.at-limits:empty, .at-answer:empty { display: none; }
.at-answer { margin: 0 0 14px; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius);
    background: var(--bg-card); font-size: 14px; overflow-wrap: anywhere; }
.at-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.at-chip { display: inline-flex; align-items: center; min-height: 44px; padding: 4px 14px; border: 1px solid var(--border-strong);
    border-radius: var(--radius-pill); background: var(--bg-card); color: var(--text); font: inherit; font-size: 13px;
    text-align: left; cursor: pointer; overflow-wrap: anywhere; }
.at-chip:hover { border-color: var(--accent); }
/* Фаза 4. Чип с пояснением (тёзки: «Bristol — England…», лейбл — с числом изданий), число
   артистов у чипа места, сосед без ключа сцены — не кнопка (штриховая рамка). */
.at-chip-2 { flex-direction: column; align-items: flex-start; justify-content: center; gap: 1px; border-radius: var(--radius); }
.at-chip-nm { color: var(--text-strong); font-weight: 600; }
.at-chip-sub { color: var(--text-dim); font-size: 12px; line-height: 1.35; }
.at-chip-n { margin-left: 8px; padding: 0 6px; border-radius: var(--radius-pill); background: var(--bg-elev); color: var(--text-mid);
    font-family: var(--font-mono); font-size: 11px; line-height: 18px; }
.at-chip-off { border-style: dashed; color: var(--text-dim); cursor: default; }
/* Чип нажат, запрос в пути. */
.at-chip[aria-busy="true"] { opacity: 0.55; cursor: progress; }
.at-chip-off:hover { border-color: var(--border-strong); }
.at-answer > p { margin: 0 0 6px; }
.at-answer-acts { margin: 8px 0 6px; }
/* До запуска: суточный счёт и что сейчас будет пропущено — строками. */
.at-before { display: block; }
.at-before + .at-before { margin-top: 2px; }
.at-building { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 14px; padding: 10px 14px;
    border: 1px solid var(--accent-line); border-radius: var(--radius); background: var(--accent-wash); font-size: 14px; }
.at-building[hidden] { display: none; }
/* Своя несобранная сборка (её оборвал рестарт, пока человека не было) — та же плашка, тоном предупреждения. */
.at-lost { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 14px; padding: 10px 14px;
    border: 1px solid var(--border-strong); border-radius: var(--radius); background: var(--bg-card); font-size: 14px; }
.at-lost[hidden] { display: none; }
.at-gal-shared { margin: 0 0 10px; }
.at-gal-shared .at-linkbtn { display: flex; }      /* ссылка в «Помощь» — своей строкой: зона 44 px не раздвигает текст */
.at-purse { color: var(--text-mid); }
.at-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.at-gallery > li { display: flex; }
.at-cardbtn { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; width: 100%; min-height: 44px; padding: 14px 16px;
    border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--bg-card); color: var(--text);
    font: inherit; text-align: left; cursor: pointer; overflow-wrap: anywhere; }
.at-cardbtn:hover { border-color: var(--border-strong); background: var(--bg-card-hover); }
.at-c-top { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.at-c-title { color: var(--text-strong); font-size: 16px; font-weight: 700; }
.at-c-years { color: var(--accent-text); font-family: var(--font-mono); font-size: 13px; }
.at-c-nums, .at-c-home { color: var(--text-dim); font-size: 12px; }
/* Обложки ключевых альбомов (до четырёх) — рисунок: слова о них — в числах карточки. */
.at-c-covers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; width: 100%; margin-bottom: 6px; }
.at-c-covers > img, .at-c-nocov { display: block; width: 100%; aspect-ratio: 1; border-radius: 4px; background: var(--bg-elev); object-fit: cover; }
.at-c-names { color: var(--text-mid); font-size: 13px; }

/* ── Страница атласа: шапка, состояние, доверие ── */
.at-hero { margin: 0 0 12px; }
.at-kicker { color: var(--text-dim); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; }
.at-partial { color: var(--warning); }
.at-title { margin: 4px 0 6px; color: var(--text-strong); font-size: 26px; font-weight: 800; letter-spacing: -0.02em;
    line-height: 1.2; overflow-wrap: anywhere; }
.at-title:focus { outline: none; }
.at-years { margin-left: 6px; color: var(--accent-text); font-family: var(--font-mono); font-size: 0.7em; font-weight: 500;
    letter-spacing: 0; white-space: nowrap; }
.at-understood, .at-home { margin: 0 0 4px; color: var(--text-mid); font-size: 13px; overflow-wrap: anywhere; }
/* Фаза 4: что осталось за ключом сцены; чипы «уточнить место»; соседние сцены (на телефоне свёрнуты). */
.at-asknote { margin: 0 0 4px; overflow-wrap: anywhere; }
.at-narrow { margin: 8px 0 0; }
.at-narrow > p, .at-neigh-cap { margin: 0; overflow-wrap: anywhere; }
.at-narrow > .at-narrow-cap { margin-top: 6px; }
.at-narrow > .at-chips { margin-top: 6px; }
.at-neigh { margin: 6px 0 0; }
.at-neigh > summary { display: flex; align-items: center; min-height: 44px; color: var(--text-mid); font-size: 13px;
    font-weight: 600; cursor: pointer; list-style: none; }
.at-neigh-list { align-items: center; margin: 0 0 8px; }
/* Подпись вида связи и её чипы — одна группа: на узком экране подпись не остаётся в конце строки без чипа. */
.at-neigh-grp { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; max-width: 100%; }
.at-neigh-rel { font-size: 12px; }
.at-actions { margin-top: 10px; }
.at-statusline { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px 12px; }
/* Ответ на запрос или чип подводится в видимую зону: под шапку приложения и над нижней панелью вкладок. */
.at-answer, .at-status { scroll-margin: calc(var(--topbar-h, 64px) + 12px) 0 calc(var(--tabbar-h, 0px) + var(--safe-bottom, 0px) + 16px); }
.at-status { color: var(--text-mid); font-size: 14px; overflow-wrap: anywhere; }
.at-status:empty, .at-status-acts:empty { display: none; }
.at-status > p { margin: 0 0 6px; }
/* Каркас уже на экране: состояние сборки и «Атлас готов» — строкой одной высоты. */
.at-status > .at-prog-line { min-height: 20px; color: var(--text-mid); }
.at-stages { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0 0 8px; padding: 0; list-style: none; }
.at-stages li { color: var(--text-dim); }
.at-stages .at-st-done { color: var(--success); }
.at-stages .at-st-run { color: var(--text-strong); font-weight: 600; }
.at-skel { display: flex; flex-direction: column; gap: 10px; min-height: 320px; margin-top: 16px; }
.at-skel-row { display: block; height: 34px; border-radius: var(--radius-sm); background: var(--bg-card);
    animation: at-pulse 1.4s ease-in-out infinite; }
@keyframes at-pulse { 50% { opacity: 0.45; } }
.at-trust { margin: 6px 0 2px; color: var(--text); font-size: 14px; overflow-wrap: anywhere; }
.at-scope { margin: 0 0 8px; }
.at-legend { margin: 8px 0 0; padding: 0 12px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-card); }
.at-legend > summary { display: flex; align-items: center; min-height: 44px; color: var(--text-mid); font-size: 13px;
    font-weight: 600; cursor: pointer; list-style: none; }
.at-legend > summary::-webkit-details-marker, .at-acc > summary::-webkit-details-marker,
.at-lineup > summary::-webkit-details-marker, .at-more > summary::-webkit-details-marker,
.at-neigh > summary::-webkit-details-marker { display: none; }
.at-legend > summary::before, .at-acc > summary::before, .at-lineup > summary::before, .at-more > summary::before,
.at-neigh > summary::before { content: '▸'; margin-right: 8px; color: var(--text-dim); }
.at-legend[open] > summary::before, .at-acc[open] > summary::before, .at-lineup[open] > summary::before,
.at-more[open] > summary::before, .at-neigh[open] > summary::before { content: '▾'; }
.at-legend p { margin: 0 0 10px; color: var(--text-mid); font-size: 13px; overflow-wrap: anywhere; }
.at-legend-list { display: flex; flex-direction: column; gap: 8px; margin: 0 0 10px; padding: 0; list-style: none; font-size: 13px; }
.at-legend-list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; color: var(--text-mid); }
.at-lg-sign { flex: 0 0 auto; }
.at-lg-h { color: var(--text-strong); font-weight: 600; }
.at-lg-bar { display: inline-flex; align-items: center; gap: 0; color: var(--at-c); font-size: 12px; }
.at-lg-lead { display: inline-block; width: 14px; height: 2px; background: var(--at-c); opacity: 0.55; }
.at-lg-fill { display: inline-block; width: 26px; height: 10px; margin-right: 3px; border-radius: 5px; background: var(--at-c); }
.at-prov { margin: 18px 0 0; }

/* ── Лента: общая шкала (от 600 px) ── */
.at-hist-cap { margin: 0 0 8px; }
.at-hist-cap:empty { display: none; }
.at-more.at-hist-list { margin-top: 2px; border-top: 0; }
.at-more.at-hist-list > summary { color: var(--text-dim); font-size: 12px; }
.at-hist-list > p { margin: 0 0 6px; font-family: var(--font-mono); font-size: 12px; line-height: 1.7; overflow-wrap: anywhere; }
/* Полоса выбора прилипает к низу окна (над вкладками и плеером), пока лента на экране. */
.at-selbar { position: sticky; bottom: calc(var(--bottom-stack, 0px) + 10px); z-index: 4; display: flex; flex-wrap: wrap;
    align-items: center; gap: 6px 10px; margin: 8px 0 0; padding: 8px 12px; border: 1px solid var(--accent-dim);
    border-radius: var(--radius); background: var(--bg-card); box-shadow: var(--shadow-card); font-size: 13px; }
.at-selbar[hidden] { display: none; }
.at-seltext { flex: 1 1 auto; color: var(--text); overflow-wrap: anywhere; }
.at-wide { border: 1px solid var(--border-soft); border-radius: var(--radius); }
.at-wide .tc-rulerwrap { border-radius: var(--radius) var(--radius) 0 0; }
.at-rrow, .at-row, .at-group { display: flex; align-items: stretch; }
.at-rrow { align-items: flex-end; }
/* Ячейка имени прилипает слева: полоса листается под ней. Непрозрачная. */
.at-cell { position: sticky; left: 0; z-index: 2; flex: 0 0 var(--at-namew); width: var(--at-namew); display: flex; flex-wrap: wrap;
    align-items: center; gap: 2px 6px; padding: 2px 6px 2px 8px; background: var(--bg); border-right: 1px solid var(--border-soft); }
.at-cell-h { align-self: stretch; align-items: flex-end; padding-bottom: 6px; color: var(--text-dim); font-size: 11px; }
.at-gcell { flex: 0 0 auto; width: auto; max-width: 100%; padding: 8px 10px 4px; border-right: 0; color: var(--accent-text);
    font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.at-scale, .at-track { position: relative; flex: 1 1 auto; }
.at-hist { position: relative; }
/* Столбик — значимая графика: цвет текста (6:1 к фону), а не цвет рамки (1,6:1). */
.at-hbar { position: absolute; bottom: 0; border-radius: 2px 2px 0 0; background: var(--text-dim); }
.at-hbar-peak { background: var(--at-c); }
/* Точка над столбиком — в этом году есть ключевой альбом атласа (и у года без столбика). */
.at-hbar-key::after { content: ''; position: absolute; left: 50%; top: -7px; width: 5px; height: 5px; margin-left: -2.5px;
    border-radius: 50%; background: var(--at-c); }
.at-rows, .at-grows { margin: 0; padding: 0; list-style: none; }
.at-row { min-height: 44px; border-top: 1px solid var(--border-soft); cursor: pointer; }
.at-row:hover .at-track { background-color: var(--bg-card); }
.at-row:hover .at-nm { text-decoration: underline; text-underline-offset: 2px; }
.at-art { flex: 1 1 96px; min-width: min-content; display: flex; flex-direction: column; justify-content: center; min-height: 44px; padding: 2px 4px;
    border: 0; border-radius: 6px; background: transparent; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.at-art:hover .at-nm, .at-part:hover .at-nm { text-decoration: underline; text-underline-offset: 2px; }
.at-art .at-nm { font-size: 13px; line-height: 1.25; }
.at-sub { color: var(--text-dim); font-family: var(--font-mono); font-size: 11px; }
.at-art .at-sub { white-space: nowrap; }
.at-marks { display: inline-flex; flex-wrap: wrap; gap: 4px; }
/* «Ваш артист»: альбомы атласа этого артиста есть в библиотеке зрителя. Точка — строка
   ленты от неё не растёт; словами — в подписи кнопки артиста и в легенде. */
.at-own { display: inline-block; color: var(--success); font-size: 11px; line-height: 15px; vertical-align: middle; }
.at-own[hidden] { display: none; }
.at-why { flex: 1 1 100%; align-self: flex-start; padding: 1px 6px; border: 1px solid var(--accent-line); border-radius: 6px;
    color: var(--accent-text); font-size: 11px; line-height: 1.35; overflow-wrap: anywhere; }
.at-why:empty { display: none; }
/* Годы — сеткой под полосами: начало года на той же линии, что засечка оси. */
.at-track { background: repeating-linear-gradient(90deg, var(--border-soft) 0 1px, transparent 1px var(--tc-yw, 48px));
    background-position: var(--at-padl, 12px) 0; }
.at-bar { position: absolute; top: 50%; height: 14px; margin-top: -7px; border-radius: 7px; background: var(--at-c); }
.at-lead { position: absolute; top: 50%; height: 2px; margin-top: -1px; background: var(--at-c); opacity: 0.55; }
.at-clip, .at-cont { position: absolute; top: 50%; color: var(--at-c); font-size: 13px; line-height: 1; transform: translateY(-50%); }
.at-clip { margin-left: -9px; opacity: 0.8; }
.at-cont { margin-left: 4px; }
/* Выбранный, связанные, остальные: не только цветом — рамка, слова «чем связан». */
.at-row.sel .at-cell, .at-prow.sel { box-shadow: inset 3px 0 0 var(--accent); }
.at-row.sel .at-bar { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent); }
.at-row.lit .at-cell, .at-prow.lit { background: linear-gradient(var(--accent-wash), var(--accent-wash)), var(--bg); }
.at-row.dim .at-art, .at-row.dim .at-marks, .at-prow.dim .at-part { opacity: 0.55; }
.at-row.dim .at-track { opacity: 0.35; }
.at-row.weak .at-why, .at-prow.weak .at-why, .at-card-links .weak .at-why { border-style: dashed; color: var(--text-mid); }

/* ── Лента: телефон ── */
.at-phist { margin: 0 0 10px; }
.at-phone .at-hist { height: 40px; border-bottom: 1px solid var(--border-strong); }
.at-phist-ends { display: flex; justify-content: space-between; color: var(--text-dim); font-family: var(--font-mono); font-size: 11px; }
.at-acc-list, .at-prows { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.at-acc-list { gap: 8px; }
.at-acc, .at-pg > .at-prows { border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-card); overflow: hidden; }
.at-acc > summary { display: flex; align-items: center; min-height: 44px; padding: 6px 12px; color: var(--accent-text);
    font-size: 14px; font-weight: 600; cursor: pointer; list-style: none; overflow-wrap: anywhere; }
.at-prow { border-top: 1px solid var(--border-soft); }
.at-part { display: flex; flex-direction: column; gap: 4px; width: 100%; min-height: 44px; padding: 8px 12px; border: 0;
    background: transparent; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.at-pl1 { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.at-part .at-nm { font-size: 15px; }
.at-psub { color: var(--text-dim); font-size: 12px; overflow-wrap: anywhere; }
.at-psub .at-sub { font-size: 12px; }
.at-part .at-why, .at-card-links .at-why { flex: 0 1 auto; }
.at-card-links .at-why { align-self: center; }
.at-mini { position: relative; display: block; height: 8px; border-radius: 4px; background: var(--bg-elev); overflow: hidden; }
.at-mini-bar { position: absolute; top: 0; bottom: 0; border-radius: 4px; background: var(--at-c); }
.at-mini-lead { position: absolute; top: 3px; height: 2px; background: var(--at-c); opacity: 0.55; }

/* ── Связи ── */
.at-links-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.at-conns, .at-stints, .at-members, .at-labels-list, .at-card-links { margin: 0; padding: 0; list-style: none; }
.at-conns { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; margin-top: 8px; }
.at-conn { padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-card); }
.at-conn-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin-bottom: 4px; }
.at-stints, .at-members, .at-labels-list, .at-card-links { display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.at-stints li, .at-members li, .at-labels-list li, .at-card-links li { display: flex; flex-wrap: wrap; align-items: center;
    gap: 2px 8px; min-height: 28px; overflow-wrap: anywhere; }
.at-stints .at-chip, .at-members .at-chip, .at-card-links .at-chip, .at-conn-head .at-chip { padding: 2px 12px; border-radius: var(--radius); }
.at-lanes { position: relative; margin-top: 8px; border-radius: 4px; background: var(--bg-elev); }
.at-seg { position: absolute; height: 8px; border-radius: 4px; background: hsl(var(--at-h, 205) 60% 62%); }
.at-dot { flex: 0 0 auto; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: hsl(var(--at-h, 205) 60% 62%); }
.at-seg-0 { --at-h: 205; } .at-seg-1 { --at-h: 42; } .at-seg-2 { --at-h: 150; }
.at-seg-3 { --at-h: 280; } .at-seg-4 { --at-h: 15; } .at-seg-5 { --at-h: 330; }
.at-lineup, .at-more { border-top: 1px solid var(--border-soft); }
.at-lineup > summary, .at-more > summary { display: flex; align-items: center; min-height: 44px; color: var(--text);
    font-size: 13px; cursor: pointer; list-style: none; overflow-wrap: anywhere; }
.at-lineup > .at-members, .at-more > ul { padding: 0 0 8px 20px; }

/* ── Карточка артиста: окно по центру (общее правило dialog) ── */
.at-card { width: 92vw; max-width: 560px; padding: 16px; border: 0; border-radius: var(--radius-lg);
    background: var(--bg-card); color: var(--text); box-shadow: var(--shadow-elev); overflow-wrap: anywhere; }
.at-card::backdrop { background: rgba(0, 0, 0, 0.6); }
/* Шапка прилипает к верху окна (окно листается само): внизу длинной карточки
   крестик на месте. Отрицательные поля и top — на отступ окна: шапка встаёт
   вплотную к его краю, текст над ней не просвечивает; фон непрозрачный. */
.at-card-head { position: sticky; top: -16px; z-index: 3; display: flex; align-items: flex-start; gap: 12px;
    margin: -16px -16px 0; padding: 16px 16px 8px; background: var(--bg-card);
    border-bottom: 1px solid var(--border-soft); }
.at-card-meta { flex: 1 1 auto; }
.at-card-meta h3 { margin: 0 0 4px; color: var(--text-strong); font-size: 19px; }
.at-card-meta h3:focus { outline: none; }
.at-card-sub { color: var(--text-mid); font-size: 13px; }
.at-card-x { flex: 0 0 auto; min-width: 44px; min-height: 44px; }
/* Действия — сразу под шапкой, каталог первым: строка кнопок каталога, под ней —
   пояснения (чем доказана страница; что «Найти» — поиск по имени), ниже — радио и
   «похожие» своей строкой. */
.at-card-acts { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.at-cat-row, .at-cat-more { display: flex; flex-wrap: wrap; gap: 8px; }
.at-card-acts .btn { min-height: 44px; }
.at-cat-note { margin: 0; }
.at-facts { display: flex; flex-direction: column; gap: 8px; margin: 12px 0 0; }
.at-fact dt { color: var(--text-dim); font-size: 12px; }
.at-fact dd { margin: 0; font-size: 14px; }
.at-fact-note { display: block; }
.at-card-sec { margin-top: 16px; }
.at-card-foot { margin-top: 16px; }
.at-mb { display: inline-flex; align-items: center; min-height: 44px; color: var(--accent-text); text-decoration: underline;
    text-underline-offset: 2px; }

.at-page button:focus-visible, .at-page summary:focus-visible, .at-page input:focus-visible,
.at-card button:focus-visible, .at-card summary:focus-visible, .at-card a:focus-visible {
    outline: 2px solid var(--accent-strong); outline-offset: 2px; }

/* Полный вид: связующие люди — сеткой во всю ширину, под ними составы и лейблы рядом. */
@media (min-width: 1024px) {
    .at-links-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 32px; }
    .at-people { grid-column: 1 / -1; }
    .at-title { font-size: 30px; }
}
/* Палец: кнопки шапки и состояния — не ниже 44 px (у .btn по умолчанию 37). */
@media (pointer: coarse) {
    .at-page .btn { min-height: 44px; }
}
/* Мышь и трекпад: имена-кнопки в плотных списках ниже (на сенсорном экране — 44 px). */
@media (pointer: fine) {
    .at-stints .at-chip, .at-members .at-chip, .at-card-links .at-chip, .at-conn-head .at-chip { min-height: 28px; }
}
@media (max-width: 599px) {
    .at-title { font-size: 22px; }
    .at-seltext { flex-basis: 100%; }
    .at-selbar .btn { flex: 1 1 0; }
    .at-ask-btn { flex: 1 1 100%; }
    .at-stages { flex-direction: column; }
    .at-cat-row .btn { flex: 1 1 calc(50% - 4px); }
    .at-cat-more .btn { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) {
    .at-skel-row { animation: none; }
    .at-cardbtn, .at-chip, .at-art, .at-part { transition: none; }
}
} /* ── end @layer responsive ── */
/* Чип «Атлас сцен» в шапке Vault.AI: на телефоне и планшете это единственный вход в раздел.
   Вне слоя — общее правило сенсорных целей (vault.css: 40 px) само стоит вне слоёв и слоёные
   стили перебивает; зоны нажатия атласа — не меньше 44 px (14-atlas.md §3.2). Вкладки ряда —
   одной высоты, чтобы ряд не стал ступенькой. */
@media (pointer: coarse) {
    .vai-tabs .vai-tab { min-height: 44px; }
    #stat-atlas .btn { min-height: 44px; }      /* плитка «Атлас сцен» админки: рубильник и ждущие сцены */
}
