/* Экран «ИИ-агенты» (префикс ag-): список агентов, страница «Кого нанимаем?» (ag-hire/ag-hh/ag-hc, r12) и общие кирпичики, которые
   берёт редактор (сам редактор — css/screens/agents-editor.css). Только токены; тёмная тема работает сама.

   r31 (круг 3, 16.11.2026). Кирилл: «максимально качественно переработай… меню отображения самих агентов… красиво, футуристично…
   в общем стиле программы обязательно довести это всё до идеала». Карточки агентов и специалистов — бледные панели ядра
   (.core.is-panel из css/core.css + css/core-pale.css: лавандовая дымка, сетка-«чертёж», свет за указателем от App.coreKit),
   без цветной полоски слева и без пунктира. Цвет — только у лица и мягкий свет его цвета в углу карточки (--ag-rgb по
   data-look). Числа — как в ядре: крупное число, маленькая единица, у доли — тонкая шкала. Значки умений убраны — ровные строки.
   core-pale.css и pale-app.css подключаются ПОСЛЕ этого файла — правила для них здесь со старшей специфичностью. */

/* цвет лица (App.agentLook().tone) — для света в углу карточки */
:is(.ag-card, .ag-hc, .hw-pv) { --ag-rgb: 139, 92, 246; }
:is(.ag-card, .ag-hc, .hw-pv)[data-look="mint"] { --ag-rgb: 20, 184, 166; }
:is(.ag-card, .ag-hc, .hw-pv)[data-look="amber"] { --ag-rgb: 245, 158, 11; }
:is(.ag-card, .ag-hc, .hw-pv)[data-look="sky"] { --ag-rgb: 56, 189, 248; }
:is(.ag-card, .ag-hc, .hw-pv)[data-look="pink"] { --ag-rgb: 217, 70, 239; }
:is(.ag-card, .ag-hc, .hw-pv)[data-look="indigo"] { --ag-rgb: 99, 102, 241; }
:is(.ag-card, .ag-hc, .hw-pv)[data-look="graphite"] { --ag-rgb: 100, 116, 139; }

/* ── Список агентов ─────────────────────────────────────────────────────────── */
.screen-agents { max-width: 1560px; }
/* r12: три кнопки в шапке («Знания», «Схема команды», «Новый агент») помещаются в строку с описанием и на 1100 px */
.screen-agents .ph-l { flex-basis: 340px; }
.ag-list { container: agl / inline-size; }
.ag-bar-f { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 16px; margin: 0 0 16px; }
.ag-demo { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--mut2); }
/* сетка: три в ряд на широком окне, две — на 1100, одна — на узком; «Нанять» — своей панелью под ней */
.ag-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@container agl (min-width: 700px) { .ag-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container agl (min-width: 1060px) { .ag-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ag-grid > .core + .core, .ag-hire-grid > .core + .core { margin-top: 0; }   /* core.css: «.core + .core» — зазор панелей подряд, в сетке не нужен */

/* карточка агента — панель ядра */
.ag-card.core { display: flex; flex-direction: column; gap: 14px; min-width: 0; padding: 20px 20px 16px; border-radius: 20px; color: var(--k-ink);
  container: agc / inline-size; transition: border-color .2s, box-shadow .3s, transform .24s cubic-bezier(.2, .8, .2, 1); }
.ag-list .core.is-panel.ag-card {
  background:
    radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgb(167 139 250 / calc(.13 * var(--lit, 0))), transparent 70%),
    radial-gradient(260px 200px at 46px 42px, rgba(var(--ag-rgb), .24), transparent 70%),
    radial-gradient(70% 120% at 0% 0%, rgba(124, 77, 255, .14), transparent 60%),
    linear-gradient(170deg, #1b1140 0%, #140c31 55%, #0f0a26 100%); }
[data-theme="light"] .ag-list .core.is-panel.ag-card {
  background:
    radial-gradient(260px 200px at 46px 42px, rgba(var(--ag-rgb), .12), transparent 70%),
    radial-gradient(70% 120% at 0% 0%, rgba(196, 181, 253, .12), transparent 60%),
    linear-gradient(170deg, #fdfcff 0%, #f8f6ff 100%);
  border-color: #e9e2fb; box-shadow: 0 1px 2px rgba(91, 47, 191, .04), 0 16px 36px -30px rgba(91, 47, 191, .4); }
/* pale-app.css красил ::before карточки «в работе» в лиловую полоску — у панели ядра его нет (r32 — и сетки тоже) */
[data-theme="light"] .ag-list .core.ag-card[data-st]::before { background: none; box-shadow: none; }
.ag-list .ag-card.core:hover { transform: translateY(-2px); border-color: rgba(var(--k-li), .42); box-shadow: 0 24px 48px -32px rgba(var(--ag-rgb), .75); }
[data-theme="light"] .ag-list .ag-card.core:hover { border-color: #d9cbfa; box-shadow: 0 1px 2px rgba(91, 47, 191, .05), 0 24px 46px -30px rgba(91, 47, 191, .45); }
/* вход и смена фильтра — карточки поднимаются по очереди */
.ag-grid.is-enter > .ag-card { animation: ag-tp-in .42s cubic-bezier(.2, .8, .2, 1) both; }
.ag-grid.is-enter > .ag-card:nth-child(2) { animation-delay: 50ms; }
.ag-grid.is-enter > .ag-card:nth-child(3) { animation-delay: 100ms; }
.ag-grid.is-enter > .ag-card:nth-child(4) { animation-delay: 150ms; }
.ag-grid.is-enter > .ag-card:nth-child(n+5) { animation-delay: 200ms; }

/* шапка: лицо — герой карточки (живое, пока агент работает), имя, должность; «⋯» */
.ag-card-h { display: flex; align-items: center; gap: 14px; min-width: 0; }
/* лицо в тонком кольце-«циферблате» (как в герое «Кого нанимаем?»): у работающего агента кольцо медленно идёт по кругу */
.ag-card-face { position: relative; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 72px; height: 72px; margin: -6px -4px -6px -6px; }
.ag-card-ring { position: absolute; inset: 0; border-radius: 50%; pointer-events: none; opacity: .62;
  background: repeating-conic-gradient(from 0deg, rgba(var(--ag-rgb), .9) 0 1.3deg, transparent 1.3deg 7.5deg);
  -webkit-mask-image: radial-gradient(circle, transparent 0 62%, #000 63% 69%, transparent 70%); mask-image: radial-gradient(circle, transparent 0 62%, #000 63% 69%, transparent 70%); }
.ag-card[data-st="on"] .ag-card-ring { animation: ag-hh-turn 90s linear infinite; }
.ag-card:not([data-st="on"]) .ag-card-ring { opacity: .3; filter: saturate(0); }
.ag-card[data-st="paused"] .ag-card-face .aim, .ag-card[data-st="draft"] .ag-card-face .aim, .ag-card[data-st="archived"] .ag-card-face .aim { filter: saturate(.5); opacity: .82; }
.ag-card-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 auto; }
.ag-card-t h3 { margin: 0; font-size: 18px; line-height: 24px; font-weight: 650; letter-spacing: -.02em; color: var(--k-hi); }
.ag-card-t span { font-size: 12.5px; line-height: 17px; color: var(--k-mut2); text-wrap: pretty; }
.ag-card-h > .ib { align-self: flex-start; margin: -6px -8px 0 0; background: none; border-color: transparent; color: var(--k-mut2); }
.ag-card-h > .ib:hover { background: rgba(var(--k-on), .08); color: var(--k-hi); }
/* что делает — одной фразой (K5-С5: режем по слову в agents.js — wordClip; CSS текст не обрезает) */
.ag-card-d { margin: 0; font-size: 13.5px; line-height: 20px; color: var(--k-mut); text-wrap: pretty; }
/* каналы — настоящими значками; у значков-«линий» (почта, SMS) — чернила на белом, без цветной плитки */
.ag-card-ch { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; min-height: 22px; }
.ag-card-ch .ch { --s: 22px !important; }
.ag-card-ch .ch-line { background: rgba(var(--k-on), .08); box-shadow: inset 0 0 0 1px var(--k-line); color: var(--ink-icon, var(--k-ink)); }
[data-theme="light"] .ag-card-ch .ch-line { background: #fff; box-shadow: inset 0 0 0 1px rgba(91, 47, 191, .14); }
.ag-card-ch .pill { height: 22px; padding: 0; gap: 6px; border: 0; background: none; color: var(--k-mut); font-size: 12.5px; font-weight: 520; }
.ag-card-ch .pill > svg { color: var(--ink-icon, var(--k-ink)); }
.ag-nochan { font-size: 12px; color: var(--k-mut2); }

/* три главных числа — в стеклянном лотке: крупное число, маленькая единица, подпись; у доли — тонкая шкала */
.ag-stats { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); align-items: start; align-content: start; min-height: 90px; box-sizing: border-box; margin-top: auto; padding: 13px 0 12px; border-radius: 14px;
  background: linear-gradient(160deg, rgba(var(--k-on), .07), rgba(var(--k-on), .025)); border: 1px solid var(--k-line); }
[data-theme="light"] .ag-list .ag-stats { background: linear-gradient(160deg, rgba(255, 255, 255, .94), rgba(255, 255, 255, .7)); border-color: rgba(91, 47, 191, .1); box-shadow: 0 1px 2px rgba(91, 47, 191, .04); }
.ag-st-c { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 0 14px; border-left: 1px solid var(--k-line); }
.ag-st-c:first-child { border-left: 0; }
.ag-st-c > b { display: block; font-size: 26px; line-height: 30px; font-weight: 650; letter-spacing: -.035em; white-space: nowrap; font-variant-numeric: tabular-nums;
  color: var(--k-hi); background: linear-gradient(180deg, #ffffff 35%, #d8cbff 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
[data-theme="light"] .ag-list .ag-st-c > b { background-image: linear-gradient(180deg, #2a1d63 35%, #6d3fd6 100%); }
.ag-st-c > b small { margin: 0 .32em 0 .16em; font-size: 14px; font-weight: 600; letter-spacing: 0; color: var(--k-mut); -webkit-text-fill-color: var(--k-mut); }
.ag-st-c > b small:last-child { margin-right: 0; }
.ag-st-c > span { font-size: 12px; line-height: 16px; color: var(--k-mut2); }
.ag-st-c span.ell { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ag-st-c > .core-meter { max-width: 112px; margin-top: 7px; }
.ag-card-none { margin: auto 0 0; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--k-line); background: rgba(var(--k-on), .03); font-size: 12.5px; line-height: 18px; color: var(--k-mut2); }

/* низ: переключатель «работает / на паузе», неопубликованные правки — точкой, тихие действия; главная одна — «Настроить» */
.ag-card-f { display: flex; align-items: center; gap: 8px; min-width: 0; min-height: 34px; }
.ag-sw { flex: 0 0 auto; gap: 9px; }
.ag-sw-l { font-size: 12.5px; font-weight: 560; white-space: nowrap; color: var(--k-ink); }
.ag-card-f > .sig { flex: 0 0 auto; }
.ag-card-u { display: inline-flex; align-items: center; flex: 1 1 auto; min-width: 0; font-size: 12px; color: var(--k-mut2); }
.ag-card-u > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ag-dirty { display: inline-block; flex: 0 0 auto; width: 7px; height: 7px; margin-right: 6px; border-radius: 999px; background: var(--k-violet); box-shadow: 0 0 0 3px rgba(var(--k-li), .18); }
.ag-card-f .btn { flex: 0 0 auto; height: 34px; }
.ag-card-test { gap: 7px; padding: 0 10px; color: var(--k-mut); }
.ag-list .core .ag-card-test.btn-ghost, [data-theme="light"] .ag-list .core .ag-card-test.btn-ghost { background: none; border-color: transparent; box-shadow: none; color: var(--k-mut); }
.ag-list .core .ag-card-test.btn-ghost:hover, [data-theme="light"] .ag-list .core .ag-card-test.btn-ghost:hover { background: rgba(var(--k-on), .07); color: var(--k-hi); }
.ag-card-test > svg { color: var(--ink-icon, var(--k-ink)); opacity: .82; }
.ag-card-open { padding: 0 16px; font-weight: 600; }
/* узкая карточка (три в ряд на 1440, две — на 1100): «Пробный чат» — значком с подсказкой, у правок — только точка */
@container agc (max-width: 440px) {
  .ag-card-test { width: 34px; padding: 0; justify-content: center; }
  .ag-card-test > span, .ag-card-u > span { display: none; }
  .ag-st-c { padding: 0 9px; }
  .ag-st-c:first-child { padding-left: 12px; }
  .ag-st-c > span { font-size: 11.5px; }
  .ag-st-c > b { font-size: 22px; line-height: 28px; }
  .ag-st-c > b small { font-size: 13px; }
}
@container agc (max-width: 330px) { .ag-sw-l { display: none; } }

/* «Новые переписки получает» — тихая стеклянная строка (r4 · H2) */
.ag-newto { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin: 0 0 16px; padding: 7px 10px 7px 16px; border-radius: 14px; background: var(--l1); border: 1px solid var(--line); min-width: 0; }
.ag-newto-l { flex: 0 0 auto; font-size: 13.5px; font-weight: 560; color: var(--ink); white-space: nowrap; }
.ag-newto .ag-pick { width: auto; max-width: 280px; height: 34px; padding: 0 9px 0 7px; gap: 8px; border-radius: 11px; font-size: 13.5px; font-weight: 600; justify-content: flex-start; }
.ag-newto .ag-pick > .aim, .ag-newto .ag-pick > .av { flex: 0 0 auto; }
.ag-newto .ag-pick > svg:first-child { margin-left: 2px; }
.ag-newto-h { flex: 1 1 200px; min-width: 0; font-size: 12.5px; color: var(--mut2); text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ag-newto > .sig { flex: 0 0 auto; }
@media (max-width: 1200px) { .ag-newto-h { text-align: left; } }

/* «Нанять специалиста» — спокойная стеклянная панель (r31: вместо пунктирной карточки и отдельной строки «Нанять сразу»).
   Последняя в сетке и занимает остаток последнего ряда (data-r3 / data-r2 — сколько карточек в последнем ряду): целый ряд —
   полосой (слева лица стопкой и «Кого нанимаем?», справа «Нанять сразу»), одно-два места — карточкой (вид — по её ширине) */
.ag-hire-in.core { container: agi / inline-size; display: flex; flex-direction: column; justify-content: center; min-width: 0; margin-top: 18px; padding: 14px 18px 14px 20px; border-radius: 20px; }
.ag-grid > .ag-hire-in.core { margin-top: 0; grid-column: 1 / -1; }
@container agl (min-width: 700px) { .ag-grid > .ag-hire-in[data-r2="1"] { grid-column: span 1; } }
@container agl (min-width: 1060px) {
  .ag-grid > .ag-hire-in[data-r3="0"] { grid-column: 1 / -1; }
  .ag-grid > .ag-hire-in[data-r3="1"] { grid-column: span 2; }
  .ag-grid > .ag-hire-in[data-r3="2"] { grid-column: span 1; }
}
.ag-hire-in-b { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 28px; min-width: 0; }
/* одно место в ряду — карточкой: лица и «Кого нанимаем?» сверху, «Нанять сразу» ниже, под тонкой линией */
@container agi (max-width: 560px) {
  .ag-hire-in-b { flex-direction: column; align-items: flex-start; flex-wrap: nowrap; gap: 18px; padding: 6px 0; }
  .ag-hire-in-b > .ag-quick { align-self: stretch; padding-top: 16px; border-top: 1px solid var(--k-line); }
  .ag-hire-in-b .ag-quick-l { flex: 0 0 100%; margin: 0 0 2px; font-size: 11px; line-height: 14px; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; }
  .ag-hire-in-b > .ag-add { flex-direction: column; align-items: flex-start; gap: 14px; }
  .ag-hire-in-b .ag-add-t b { font-size: 17px; line-height: 22px; }
}
.ag-add { display: inline-flex; align-items: center; gap: 16px; flex: 0 1 auto; min-width: 0; margin: -6px; padding: 6px 12px 6px 6px; border: 0; border-radius: 16px; background: none;
  color: inherit; font: inherit; text-align: left; cursor: pointer; transition: background-color .2s; }
.ag-add:hover { background: rgba(var(--k-on), .05); }
.ag-add:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(var(--k-li), .3); }
.ag-add-faces { display: inline-flex; flex: 0 0 auto; padding-left: 12px; }
.ag-add-faces .aim { margin-left: -12px; box-shadow: 0 0 0 2.5px var(--ag-ring, #140c31), 0 8px 16px -8px rgba(40, 20, 90, .55); transition: transform .3s cubic-bezier(.34, 1.56, .64, 1); }
[data-theme="light"] .ag-add-faces .aim { --ag-ring: #fbfaff; }
.ag-add:hover .ag-add-faces .aim { transform: translateY(-3px); }
.ag-add:hover .ag-add-faces .aim:nth-child(2) { transition-delay: 40ms; } .ag-add:hover .ag-add-faces .aim:nth-child(3) { transition-delay: 80ms; } .ag-add:hover .ag-add-faces .aim:nth-child(4) { transition-delay: 120ms; }
.ag-add-t { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-width: 0; }
.ag-add-t b { font-size: 15.5px; line-height: 21px; font-weight: 650; letter-spacing: -.012em; color: var(--k-hi); white-space: nowrap; }
.ag-add-go { display: inline-flex; align-items: center; gap: 3px; flex: 0 0 auto; font-size: 13px; font-weight: 600; color: var(--k-lilac); white-space: nowrap; }
.ag-add:hover .ag-add-go > svg { transform: translateX(2px); }
.ag-add-go > svg { transition: transform .2s cubic-bezier(.2, .8, .2, 1); }
.ag-quick { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; min-width: 0; }
.ag-quick-l { margin-right: 4px; font-size: 12.5px; line-height: 17px; font-weight: 560; color: var(--k-mut2); white-space: nowrap; }
.ag-quick-b { display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--k-line); background: rgba(var(--k-on), .05); color: var(--k-ink);
  font: inherit; font-size: 13px; font-weight: 560; white-space: nowrap; cursor: pointer; transition: border-color .15s, background-color .15s, box-shadow .2s, transform .2s cubic-bezier(.2, .8, .2, 1); }
.ag-quick-b:hover { border-color: rgba(var(--k-li), .45); background: rgba(var(--k-on), .09); transform: translateY(-1px); }
.ag-quick-b:active { transform: scale(.97); }
.ag-quick-b:focus-visible { outline: none; border-color: rgba(var(--k-li), .55); box-shadow: 0 0 0 3px rgba(var(--k-li), .22); }
[data-theme="light"] .ag-quick-b { background: rgba(255, 255, 255, .88); border-color: rgba(91, 47, 191, .13); box-shadow: 0 1px 2px rgba(91, 47, 191, .05); }
[data-theme="light"] .ag-quick-b:hover { background: #fff; border-color: #cdb9f8; box-shadow: 0 8px 18px -14px rgba(91, 47, 191, .55); }
.ag-grid.is-enter > .ag-hire-in { animation: ag-tp-in .42s cubic-bezier(.2, .8, .2, 1) both; animation-delay: 160ms; }
@media (max-width: 720px) { .ag-add-go { display: none; } }
.ag-none { display: flex; flex: 1 1 auto; align-items: center; justify-content: center; padding: 40px 24px; }
@media (prefers-reduced-motion: reduce) {
  .ag-card.core, .ag-grid.is-enter > .ag-card, .ag-card-ring, .ag-add, .ag-add-faces .aim, .ag-quick-b, .ag-grid.is-enter > .ag-hire-in { animation: none !important; transition-duration: .01s !important; }
  .ag-list .ag-card.core:hover, .ag-add:hover .ag-add-faces .aim, .ag-quick-b:hover { transform: none; }
}

@keyframes ag-tp-in { from { opacity: 0; transform: translateY(12px); } }
/* ── «Новый агент» = «Кого нанимаем?» (r12, 23.10): герой в бледном ядре и карточки-специалисты ───────────────────────────
   Кирилл: «универсальный, красивый… чтобы люди могли понять, что заменять не какими-то людьми, а реально хорошими,
   качественными специалистами»; «непонятные цвета» — убраны: цвет только у лица (App.aiMark) и его мягкий свет. r31: карточки —
   панели ядра, как карточки агентов; значков у умений нет; «Свой специалист» — без пунктира. */
.ag-hire { container-type: inline-size; container-name: agh; display: flex; flex-direction: column; gap: 18px; }

/* герой: живое лицо в кольце-«циферблате», «Кого нанимаем?» чернилами с градиентом, справа — как проходит найм */
.ag-hh { display: flex; align-items: center; gap: 28px; padding: 24px 28px; }
.ag-hh-stage { position: relative; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; width: 124px; height: 124px; }
.ag-hh-ring, .hw-pv-ring { position: absolute; inset: 0; border-radius: 50%; pointer-events: none; }
.ag-hh-ring:not(.is-2), .hw-pv-ring { background: repeating-conic-gradient(from 0deg, rgba(var(--k-li), .55) 0 1.4deg, transparent 1.4deg 6deg);
  -webkit-mask-image: radial-gradient(circle, transparent 0 59%, #000 60% 69%, transparent 70%); mask-image: radial-gradient(circle, transparent 0 59%, #000 60% 69%, transparent 70%);
  animation: ag-hh-turn 60s linear infinite; }
.ag-hh-ring.is-2 { inset: 15px; border: 1px solid rgba(var(--k-li), .22); box-shadow: 0 0 22px -4px rgba(var(--k-li), .35), inset 0 0 22px -8px rgba(var(--k-li), .3); }
@keyframes ag-hh-turn { to { transform: rotate(360deg); } }
.ag-hh-f { position: relative; display: inline-flex; }
.ag-hh-f.is-swap .aim { animation: ag-hh-pop .45s cubic-bezier(.34, 1.56, .64, 1) both; }
@keyframes ag-hh-pop { from { transform: scale(.8) rotate(-8deg); opacity: .25; } }
.ag-hh-t { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
/* «‹» — назад к списку: круглая кнопка в левом верхнем углу героя, как у окон */
.ag-hh-back { position: absolute; left: 12px; top: 12px; z-index: 2; width: 30px; height: 30px; border-radius: 50%; }
.ag-hh-kick { font-size: 11px; line-height: 14px; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; color: var(--k-mut2); }
.ag-hh h1 { margin: 0; font-size: 40px; line-height: 1.1; font-weight: 650; letter-spacing: -.035em; padding-bottom: 2px; color: var(--k-hi);
  background-image: linear-gradient(180deg, #ffffff 35%, #d8cbff 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
[data-theme="light"] .ag-hh h1 { background-image: linear-gradient(180deg, #2a1d63 35%, #6d3fd6 100%); }
.ag-hh-sub { margin: 0; text-wrap: balance; max-width: 48ch; font-size: 14px; line-height: 20px; color: var(--k-mut); }
/* как проходит найм — три строки с тихими номерами чернилами (без лиловых кружков) */
.ag-hh-how { flex: 0 0 auto; display: flex; flex-direction: column; gap: 10px; width: 300px; padding: 15px 18px 14px; }
.ag-hh-how ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.ag-hh-how li { display: flex; align-items: baseline; gap: 12px; padding: 7px 0; border-top: 1px solid var(--k-line); font-size: 13px; line-height: 18px; color: var(--k-ink); }
.ag-hh-how li:first-child { border-top: 0; padding-top: 2px; }
.ag-hh-how li:last-child { padding-bottom: 0; }
.ag-hh-how li i { flex: 0 0 auto; font-style: normal; font-size: 11.5px; font-weight: 650; letter-spacing: .04em; font-variant-numeric: tabular-nums; color: var(--k-mut2); }
@container agh (max-width: 880px) { .ag-hh-how { display: none; } }

/* строка над карточками */
.ag-hire-lead { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 3px 16px; margin: 4px 2px -6px; }
.ag-hire-k { font-size: 11px; line-height: 14px; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; color: var(--mut2); }
.ag-hire-hint { font-size: 12.5px; line-height: 17px; color: var(--mut2); }

/* карточки-специалисты — панели ядра */
.ag-hire-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@container agh (min-width: 640px) { .ag-hire-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ag-hc.is-blank { grid-column: 1 / -1; } }
@container agh (min-width: 1040px) { .ag-hire-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .ag-hc.is-blank { grid-column: span 2; } }
.ag-hc.core { display: flex; flex-direction: column; gap: 14px; min-width: 0; padding: 20px 20px 16px; border-radius: 20px; color: var(--k-ink); cursor: pointer;
  animation: ag-tp-in .45s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i, 0) * 60ms);
  transition: border-color .2s, box-shadow .3s, transform .24s cubic-bezier(.2, .8, .2, 1); }
.ag-hire .core.is-panel.ag-hc {
  background:
    radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgb(167 139 250 / calc(.13 * var(--lit, 0))), transparent 70%),
    radial-gradient(260px 200px at 46px 42px, rgba(var(--ag-rgb), .24), transparent 70%),
    radial-gradient(70% 120% at 0% 0%, rgba(124, 77, 255, .14), transparent 60%),
    linear-gradient(170deg, #1b1140 0%, #140c31 55%, #0f0a26 100%); }
[data-theme="light"] .ag-hire .core.is-panel.ag-hc {
  background:
    radial-gradient(260px 200px at 46px 42px, rgba(var(--ag-rgb), .12), transparent 70%),
    radial-gradient(70% 120% at 0% 0%, rgba(196, 181, 253, .12), transparent 60%),
    linear-gradient(170deg, #fdfcff 0%, #f8f6ff 100%);
  border-color: #e9e2fb; box-shadow: 0 1px 2px rgba(91, 47, 191, .04), 0 16px 36px -30px rgba(91, 47, 191, .4); }
.ag-hire .ag-hc.core:hover { transform: translateY(-3px); border-color: rgba(var(--k-li), .42); box-shadow: 0 24px 48px -30px rgba(var(--ag-rgb), .75); }
[data-theme="light"] .ag-hire .ag-hc.core:hover { border-color: #d9cbfa; box-shadow: 0 1px 2px rgba(91, 47, 191, .05), 0 24px 46px -28px rgba(91, 47, 191, .45); }
.ag-hc.core:focus-visible { outline: none; border-color: rgba(var(--k-li), .6); box-shadow: 0 0 0 3px rgba(var(--k-li), .22); }
.ag-hc-h { display: flex; align-items: center; gap: 14px; min-width: 0; }
.ag-hc-face { display: inline-flex; flex: 0 0 auto; padding: 2px 6px 6px 2px; }   /* место под значок роли, он выступает за угол лица */
.ag-hc-face .aim { transition: box-shadow .3s, transform .3s cubic-bezier(.34, 1.56, .64, 1); }
.ag-hc:hover .ag-hc-face .aim { transform: translateY(-1px) rotate(-3deg); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 -1px 0 rgba(20, 10, 60, .25), 0 12px 24px -8px rgba(var(--ag-rgb), .7); }
.ag-hc-t { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ag-hc-dept, .ag-hc-k { font-size: 11px; line-height: 14px; font-weight: 650; letter-spacing: .11em; text-transform: uppercase; color: var(--k-mut2); }
.ag-hc-t h3 { margin: 0; font-size: 17px; line-height: 22px; font-weight: 650; letter-spacing: -.016em; color: var(--k-hi); }
.ag-hc-trait { margin: 0; text-wrap: pretty; font-size: 13px; line-height: 19px; color: var(--k-mut); }
.ag-hc-trait b { font-weight: 640; color: var(--k-ink); }
.ag-hc-secs { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.ag-hc-sec { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ag-hc-can, .ag-hc-know { list-style: none; margin: 0; padding: 0; }
/* «Умеет» — ровные строки с тонкой линией между ними, без значков */
.ag-hc-can { display: flex; flex-direction: column; }
.ag-hc-can li { padding: 7px 0; border-top: 1px solid var(--k-line); font-size: 13.5px; line-height: 19px; color: var(--k-ink); }
.ag-hc-can li:first-child { border-top: 0; padding-top: 2px; }
/* «Знает» — тихие плашки словами */
.ag-hc-know { display: flex; flex-wrap: wrap; gap: 6px; }
.ag-hc-know li { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12.5px; color: var(--k-ink); background: rgba(var(--k-on), .05); border: 1px solid var(--k-line); white-space: nowrap; }
[data-theme="light"] .ag-hire .ag-hc-know li { background: rgba(255, 255, 255, .9); border-color: rgba(91, 47, 191, .12); }
.ag-hire .ag-hc-know li.is-more { color: var(--k-lilac); background: none; }
.ag-hire .ag-hc-know li.is-none { height: auto; padding: 0; border: 0; background: none; color: var(--k-mut2); white-space: normal; }
.ag-hc-f { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--k-line); }
.ag-hc-n { min-width: 0; font-size: 12px; line-height: 16px; color: var(--k-mut2); }
.ag-hc-f .ag-hc-n { flex: 0 1 auto; }
.ag-hc-f .btn { flex: 0 0 auto; }
.ag-hc .btn.is-busy { opacity: 1; gap: 8px; color: var(--k-lilac); border-color: rgba(var(--k-li), .5); }
.ag-tp-spin { display: inline-block; width: 13px; height: 13px; border-radius: 50%; border: 2px solid color-mix(in srgb, currentColor 25%, transparent); border-top-color: currentColor; animation: ag-tp-spin .7s linear infinite; }
@keyframes ag-tp-spin { to { transform: rotate(360deg); } }
/* «Подробнее ›» рядом с «Нанять» */
.ag-hc-more { display: inline-flex; align-items: center; gap: 2px; margin-left: auto; padding: 4px 4px 4px 8px; border: 0; border-radius: 8px; background: none; color: var(--k-mut); font: inherit; font-size: 12.5px; font-weight: 560; cursor: pointer; transition: color .15s; }
.ag-hc-more:hover { color: var(--k-hi); }
.ag-hc-more:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(var(--k-li), .25); }
/* «Свой специалист с нуля» — такая же спокойная панель (без пунктира): на широком окне занимает два места в ряду */
.ag-hc.is-blank .ag-hc-f { margin-top: 0; }
@container agh (min-width: 640px) {
  .ag-hc.is-blank { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "h can" "tr can" "f f"; align-content: center; column-gap: 36px; row-gap: 14px; }
  .ag-hc.is-blank .ag-hc-h { grid-area: h; align-self: end; }
  .ag-hc.is-blank .ag-hc-trait { grid-area: tr; align-self: start; }
  .ag-hc.is-blank .ag-hc-secs { grid-area: can; align-self: center; }
  .ag-hc.is-blank .ag-hc-f { grid-area: f; margin-top: 8px; }
}

/* низкое окно (1100×560): герой — одна тонкая строка, чтобы карточки с кнопкой «Нанять» были видны сразу */
@media (max-height: 720px) {
  .ag-hire { gap: 12px; }
  .ag-hh { gap: 18px; padding: 12px 20px; }
  .ag-hh-stage { width: 80px; height: 80px; }
  .ag-hh-ring.is-2 { inset: 11px; }
  .ag-hh-f .aim { --aim: 50px !important; }
  .ag-hh-t { gap: 2px; }
  .ag-hh h1 { font-size: 26px; }
  .ag-hh-how, .ag-hire-lead { display: none; }
  .ag-hh-sub { max-width: none; font-size: 13.5px; }
  .ag-hh-back { left: 8px; top: 8px; width: 26px; height: 26px; }
  .ag-hc.core { padding: 14px 18px 12px; gap: 10px; }
  .ag-hc:not(.is-blank) .ag-hc-f { position: absolute; top: 14px; right: 16px; margin: 0; padding: 0; border: 0; }
  .ag-hc:not(.is-blank) .ag-hc-n, .ag-hc:not(.is-blank) .ag-hc-more { display: none; }   /* «Подробнее» — щелчок по карточке */
  .ag-hc:not(.is-blank) .ag-hc-t { padding-right: 104px; }
}
@media (prefers-reduced-motion: reduce) {
  .ag-hc.core, .ag-hc-face .aim, .ag-hh-ring, .hw-pv-ring, .ag-hh-f.is-swap .aim, .ag-tp-spin { animation: none !important; transition-duration: .01s !important; }
  .ag-hire .ag-hc.core:hover, .ag-hc:hover .ag-hc-face .aim { transform: none; }
}

/* ── Общие кирпичики (редактор, шторка «Дополнительно», окна) ─────────────────── */
.ag-stack { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.ag-pick { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; height: 40px; padding: 0 12px; border-radius: 11px; border: 1px solid var(--line-2); background: var(--l1); color: var(--ink);
  font: inherit; font-size: 13.5px; text-align: left; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.ag-pick:hover { border-color: var(--acc-soft-brd); }
.ag-pick:focus-visible { border-color: var(--acc-soft-brd); box-shadow: 0 0 0 3px var(--acc-soft); outline: none; }
.ag-pick > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ag-pick > svg { flex: 0 0 auto; color: var(--mut2); }
/* состояние агента — слово чернилами и глиф, без цветной заливки (r4, вариант A) */
.ag-st { display: inline-flex; align-items: center; gap: 7px; flex: 0 0 auto; height: 28px; padding: 0 8px 0 10px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--l1); color: var(--ink); font-size: 12px; font-weight: 600; white-space: nowrap; cursor: pointer; transition: border-color .14s; }
.ag-st:hover { border-color: var(--line-3); }
.ag-st > svg { color: var(--mut2); }
.ag-st > i { width: 7px; height: 7px; border-radius: 999px; box-sizing: border-box; border: 1.5px solid var(--sig-idle); }
.ag-st[data-sig="ok"] > i { border-color: var(--sig-ok); }
.ag-st[data-sig="wait"] > i { width: 6px; height: 6px; border: 0; border-radius: 1.5px; transform: rotate(45deg); background: var(--sig-wait); }

/* люди: аватар или значок команды и имя */
.ag-who { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.ag-who b { font-size: 13px; font-weight: 560; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ag-who.is-none { color: var(--mut2); }
.ag-who-ic { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 22px; height: 22px; border-radius: 7px; background: var(--ts, var(--l2)); border: 1px solid var(--tb, var(--line)); color: var(--t, var(--mut)); }
.ag-who-ic-l { width: 32px; height: 32px; border-radius: 10px; }
.ag-whobtn { display: inline-flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; min-width: 0; height: 36px; padding: 0 8px 0 6px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--l1); color: var(--ink); cursor: pointer; transition: border-color .14s; }
.ag-whobtn:hover { border-color: var(--acc-soft-brd); }
.ag-whobtn > svg { flex: 0 0 auto; color: var(--mut2); }
.ag-whobtn-l { width: auto; min-width: 260px; height: 42px; }
.ag-whobtn:disabled { cursor: default; }
/* выбор человека: имя целиком, должность второй строкой */
.pop.choose.ag-people .mi { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; column-gap: 10px; row-gap: 0; padding: 6px 10px; min-height: 44px; }
.pop.choose.ag-people .mi > .av, .pop.choose.ag-people .mi > .mi-i { grid-row: 1 / 3; }
.pop.choose.ag-people .mi .mi-l { grid-column: 2; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0; line-height: 18px; }
.pop.choose.ag-people .mi .mi-h { grid-column: 2; max-width: none; line-height: 16px; }
.pop.choose.ag-people .mi .mi-c { grid-column: 3; grid-row: 1 / 3; }

/* строки настроек «что — суть — выбор» (навыки, шторка) */
.ag-rs { display: flex; flex-direction: column; }
.ag-r { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px 16px; padding: 11px 0; border-top: 1px solid var(--line); }
.ag-rs > .ag-r:first-child { border-top: 0; padding-top: 2px; }
.ag-rs > .ag-r:last-child { padding-bottom: 2px; }
.ag-r-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ag-r-t b { font-size: 13.5px; line-height: 19px; font-weight: 600; }
.ag-r-t em { font-style: normal; font-size: 12px; line-height: 17px; color: var(--mut2); }
.ag-r-c { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; min-width: 0; }
.ag-r-c .ag-pick { width: auto; min-width: 150px; max-width: 290px; height: 34px; font-size: 13px; }
.ag-r-c .ag-pick-s { min-width: 0; width: auto; }
.ag-r-c .ag-whobtn-r { width: auto; min-width: 180px; max-width: 260px; }
.ag-r-c .toggle { flex: 0 0 auto; }
.ag-r-c .link { white-space: nowrap; }

/* правила передачи «когда → кому» */
.ag-rules { display: flex; flex-direction: column; gap: 6px; }
.ag-rule { display: grid; grid-template-columns: 24px minmax(0, 1fr) 16px minmax(150px, 186px) 26px; align-items: center; gap: 6px 8px; padding: 6px 6px 6px 8px; border-radius: 12px; border: 1px solid var(--line); background: var(--l1); transition: border-color .14s; }
.ag-rule:hover { border-color: var(--line-3); }
.ag-rule-n { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 999px; background: var(--acc-soft); color: var(--acc); font-size: 11.5px; font-weight: 650; }
/* «когда» — поле в рост текста: длинное правило переносится, а не режется */
.ag-rule .ag-rule-when { min-width: 0; height: auto; min-height: 32px; padding: 6px 10px; line-height: 18px; resize: none; field-sizing: content; overflow: hidden; }
.ag-rule .ag-whobtn { height: 32px; }
.ag-rule-ar { display: inline-flex; color: var(--mut2); }
.ag-rule-a { display: flex; align-items: center; justify-content: flex-end; gap: 2px; }
.ag-rule.is-locked { background: var(--l2); }
.ag-rule.is-locked .ag-rule-n { background: var(--l1); color: var(--mut2); }
.ag-rule-lt { display: flex; flex-direction: column; min-width: 0; padding-left: 2px; }
.ag-rule-lt b { font-size: 13px; line-height: 18px; font-weight: 600; }
.ag-rule-lt em { font-style: normal; font-size: 11.5px; line-height: 15px; color: var(--mut2); }
.ag-rule-lw { display: flex; align-items: center; min-width: 0; height: 32px; padding: 0 6px; border: 1px dashed var(--line-2); border-radius: 10px; background: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer; transition: border-color .14s; }
.ag-rule-lw:hover { border-color: var(--acc-soft-brd); }
.ag-rule-lw .ag-who b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ag-rule-org { grid-column: 2 / -2; font-size: 12px; line-height: 17px; color: var(--mut); text-decoration: none; }
.ag-rule-org b { font-weight: 600; color: var(--ink); }
.ag-rule-org:hover b { color: var(--acc); }
.ag-sug { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

/* каналы в шторке «Дополнительно» */
.ag-chrs { display: flex; flex-direction: column; }
.ag-chr { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); cursor: pointer; }
.ag-chrs > .ag-chr:first-child { border-top: 0; padding-top: 2px; }
.ag-chr.is-off { opacity: .66; cursor: default; }
.ag-chr-t { display: flex; flex-direction: column; gap: 1px; flex: 1 1 auto; min-width: 0; }
.ag-chr-t b { font-size: 13.5px; line-height: 19px; font-weight: 600; }
.ag-chr-t em { font-style: normal; font-size: 12px; line-height: 16px; color: var(--mut2); }
.ag-worktime { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 10px 12px; border-radius: 10px; background: var(--l2); border: 1px solid var(--line); font-size: 13px; color: var(--mut); }
.ag-worktime b { color: var(--ink); font-weight: 600; }
.ag-worktime .link { margin-left: auto; }
.ag-oh { margin: 14px 0 0; }
.ag-oh .seg { flex-wrap: wrap; max-width: 100%; }

/* пузыри переписки и «печатает» */
.ag-bubble { display: block; max-width: 100%; padding: 9px 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--bubble-in); color: var(--ink);
  font-size: 13.5px; line-height: 20px; white-space: pre-wrap; overflow-wrap: anywhere; }
.ag-bubble-ai { background: var(--bubble-ai); border-color: var(--bubble-ai-brd); border-top-left-radius: 5px; }
.ag-bubble-me { background: var(--bubble-out); border-color: var(--bubble-out-brd); border-top-right-radius: 5px; }
.ag-typing { display: inline-flex; align-items: center; gap: 4px; padding: 14px 15px; white-space: normal; }
.ag-typing i { width: 6px; height: 6px; border-radius: 999px; background: var(--mut2); animation: ag-dot 1s ease-in-out infinite; }
.ag-typing i:nth-child(2) { animation-delay: .15s; }
.ag-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes ag-dot { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
.ag-note-prev { display: flex; align-items: flex-start; gap: 8px; padding: 9px 12px; border-radius: 11px; background: var(--l2); border: 1px dashed var(--line-2); font-size: 12.5px; line-height: 18px; color: var(--ink); }
.ag-note-prev > svg { flex: 0 0 auto; margin-top: 2px; color: var(--mut2); }
.ag-sees { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.ag-sees li { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; line-height: 20px; }
.ag-sees li svg { flex: 0 0 auto; margin-top: 3px; color: var(--acc); }
.kb-ok { font-size: 12.5px; color: var(--mut); }

/* статистика агента */
.ag-stats-top { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; }
.ag-ch { min-height: 230px; }
.ag-g2.grid { gap: 16px; }
.ag-gaps { display: flex; flex-direction: column; }
.ag-gap { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); }
.ag-gaps > .ag-gap:first-child { border-top: 0; padding-top: 2px; }
.ag-gap-t { display: flex; flex-direction: column; gap: 1px; flex: 1 1 auto; min-width: 0; }
.ag-gap-t b { font-size: 13.5px; line-height: 19px; font-weight: 620; }
.ag-gap-t em { font-style: normal; font-size: 12px; color: var(--mut2); }
.ag-why-lead { margin: 0 0 10px; font-size: 13px; line-height: 19px; color: var(--ink); }
.ag-why-n { font-size: 12.5px; line-height: 18px; color: var(--mut2); }

/* ══ Предпросмотр специалиста (r14, H, 23.10.2026; r31 — 16.11.2026) ═══════════════════════════════════════════════
   Окно по центру из «Кого нанимаем?». r31: Кирилл — «не вот это розовое оформление чата… иконки… сделать всё на чёрном…
   скорее даже убрать их… футуристичней». Без полосы-шапки со значком: слева — панель ядра с большим живым лицом в кольце-
   «циферблате» (как в герое «Кого нанимаем?»), отдел, должность, характер и «умеет» ровными строками; справа — «Что умеет» и
   «Что знает» тихими плашками словами, «Как пишет» — лентой App.chatThread (css/chat-thread.css) в тихом стекле, «Его воронка» —
   этапами. Главная кнопка одна — «Нанять». Префикс hw-. */
.sheet.ag-hw-sheet { width: min(1120px, 100%); }
.ag-hw-sheet .sb { padding: 0; gap: 0; }
.ag-hw-sheet .sf { align-items: center; gap: 10px; }
.hw-hint { margin: 0; font-size: 12.5px; line-height: 18px; color: var(--mut2); }

.hw-pv { display: grid; grid-template-columns: 300px minmax(0, 1fr); align-items: stretch; min-height: 100%; }
/* слева — панель ядра: лицо в кольце, отдел, должность, характер, «умеет» */
.hw-pv-l.core { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin: 12px 0 12px 12px; padding: 22px 22px 20px; border-radius: 18px; color: var(--k-ink); }
.ag-hw-pv .core.is-panel.hw-pv-l {
  background: radial-gradient(240px 220px at 72px 70px, rgba(var(--ag-rgb), .26), transparent 70%), radial-gradient(70% 120% at 0% 0%, rgba(124, 77, 255, .16), transparent 60%),
    linear-gradient(170deg, #1b1140 0%, #140c31 55%, #0f0a26 100%); }
[data-theme="light"] .ag-hw-pv .core.is-panel.hw-pv-l {
  background: radial-gradient(240px 220px at 72px 70px, rgba(var(--ag-rgb), .13), transparent 70%), radial-gradient(70% 120% at 0% 0%, rgba(196, 181, 253, .16), transparent 60%),
    linear-gradient(170deg, #fdfcff 0%, #f6f2ff 100%);
  border-color: #ebe4fb; box-shadow: inset 0 1px 0 #fff; }
.hw-pv-stage { position: relative; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 132px; height: 132px; margin: -6px 0 8px -10px; }
.hw-pv-stage::after { content: ''; position: absolute; inset: 16px; border-radius: 50%; pointer-events: none; border: 1px solid rgba(var(--k-li), .2);
  box-shadow: 0 0 22px -4px rgba(var(--ag-rgb), .35), inset 0 0 22px -8px rgba(var(--ag-rgb), .3); }
.hw-pv-f { position: relative; z-index: 1; display: inline-flex; }
.hw-pv-dept { font-size: 11px; line-height: 14px; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; color: var(--k-mut2); }
.hw-pv-l .hw-pv-name { margin: 0; font-size: 21px; line-height: 27px; font-weight: 650; letter-spacing: -.022em; color: var(--k-hi); }
.hw-pv-trait { margin: 2px 0 8px; font-size: 13px; line-height: 19px; color: var(--k-mut); text-wrap: pretty; }
.hw-pv-can { display: flex; flex-direction: column; align-self: stretch; margin: 8px 0 0; padding: 0; list-style: none; }
.hw-pv-can li { padding: 9px 0; border-top: 1px solid var(--k-line); font-size: 13.5px; line-height: 19px; color: var(--k-ink); }
.hw-pv-can li:last-child { border-bottom: 1px solid var(--k-line); }

/* справа — что умеет, что знает, как пишет, воронка; крестик — в углу */
.hw-pv-r { position: relative; display: flex; flex-direction: column; gap: 22px; min-width: 0; padding: 26px 28px 26px; }
.hw-pv-x { position: absolute; top: 14px; right: 14px; z-index: 2; }
.hw-pv-r > section:first-of-type h4 { padding-right: 44px; }
.hw-pv-r h4 { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin: 0 0 10px; font-size: 11px; line-height: 14px; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; color: var(--mut2); }
.hw-pv-r h4 em { font-style: normal; font-size: 12.5px; font-weight: 500; letter-spacing: 0; text-transform: none; }
/* что умеет и что знает — тихие плашки словами (только чтение, без значков) */
.hw-pick { display: flex; flex-wrap: wrap; gap: 7px; }
.hw-opt { display: inline-flex; align-items: center; max-width: 100%; min-height: 32px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--l1); color: var(--ink);
  font: inherit; font-size: 13px; font-weight: 520; line-height: 17px; text-align: left; }
.hw-opt > span { min-width: 0; overflow-wrap: anywhere; }
.hw-pick.is-ro .hw-opt { cursor: default; }
[data-theme="light"] .ag-hw-pv .hw-opt { background: #fff; border-color: #e7e0f8; box-shadow: 0 1px 2px rgba(91, 47, 191, .05); }
/* как пишет — лента переписки в тихом стекле */
.hw-sample { padding: 18px 20px 20px; border-radius: 16px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); }
[data-theme="light"] .ag-hw-pv .hw-sample { background: linear-gradient(170deg, #fbfaff, #f8f5ff); border-color: #eee8fa; }
.hw-sample .cth { --cth-gap: 16px; }
[data-theme="light"] .ag-hw-pv .hw-sample .cth { --cth-bub: rgba(62, 52, 104, .07); }
/* воронка — этапы спокойными плашками, между ними тонкая черта */
.hw-chain { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.hw-chain-ar { flex: 0 0 auto; width: 12px; height: 1px; background: var(--line-3); }
.hw-chain-i { display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 12px 0 10px; border-radius: 999px; font-size: 12.5px; color: var(--ink); background: none; border: 1px solid var(--line-2); }
.hw-chain-i > i { width: 7px; height: 7px; border-radius: 50%; box-sizing: border-box; background: var(--line-3); }
.hw-chain-i.is-won > i { background: var(--sig-ok); }
.hw-chain-i.is-lost > i { background: none; border: 1.5px solid var(--sig-idle); }
[data-theme="light"] .ag-hw-pv .hw-chain-i { background: rgba(255, 255, 255, .7); border-color: #e7e0f8; }
[data-theme="light"] .ag-hw-pv .hw-chain-ar { background: #d9cdf6; }

@media (max-width: 1180px) { .hw-pv { grid-template-columns: 264px minmax(0, 1fr); } .hw-pv-r { padding: 24px 22px 24px; } }
@media (max-width: 900px) { .hw-pv { grid-template-columns: minmax(0, 1fr); } .hw-pv-l.core { margin: 12px 12px 0; } }
/* низкое окно (1100×560): лицо меньше, «умеет» прячется — главное видно сразу */
@media (max-height: 720px) {
  .ag-hw-sheet .sf { padding: 10px 18px 12px 22px; }
  .hw-pv-l.core { padding: 16px 18px; }
  .hw-pv-stage { width: 96px; height: 96px; margin: -4px 0 4px -6px; }
  .hw-pv-stage::after { inset: 12px; }
  .hw-pv-f .aim { --aim: 60px !important; }
  .hw-pv-can { display: none; }
  .hw-pv-r { padding: 18px 20px 18px; gap: 16px; }
}

/* r30: в режиме сервера — блок «Агенты на сервере» над демо-карточками (без заливки, бледная кромка) */
.ag-srv { margin: 0 0 18px; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 14px; }
.ag-srv-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0 0 8px; }
.ag-srv-h b { font-weight: 600; color: var(--ink); }
.ag-srv-h span { color: var(--mut); font-size: 12.5px; }
.ag-srv-l { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 6px; }
.ag-srv-r { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; min-width: 0; font-size: 13px; }
.ag-srv-r > svg { flex: 0 0 auto; color: var(--mut2); }
.ag-srv-r > span { flex: 1 1 220px; min-width: 0; color: var(--mut); }
.ag-srv .hint { margin: 0; }