/* PersonaLab — каркас по макету Figma (14.10.2026, секции 129:2 и 60:2).

   Десктоп: меню слева в стиле Threads, узкая колонка по центру, Афанасий
   справа — панель сворачивается в плавающую кнопку. Планшет и телефон:
   верхняя панель, меню-шторка слева, Афанасий — шторка снизу.

   Цвета — только ч/б (бриф Ильи 22.10, §4): фон белый, поверхность #F2F2F2,
   линии #D9D9D9, текст #000. Цветные — только Афанасий и его чат (mono.css). */

.pl {
  --bg: #ffffff;
  --side: #ffffff;
  --panel: #ffffff;
  --agent-bg: #f5f6f7;
  --ink: #000000;
  --ink-2: #262626;
  --muted: #595959;
  --faint: #767676;
  --line: #d9d9d9;
  --border: #d9d9d9;
  --line-2: #000000;
  --hover: #f2f2f2;
  --nav-on: #f2f2f2;
  --accent: #000000;
  --accent-ink: #ffffff;
  --accent-soft: #f2f2f2;
  --accent-tint: #f2f2f2;
  --doing: #000000;
  --doing-bg: #f2f2f2;
  --pro: #000000;
  --pro-hi: #000000;
  --pro-bg: #f2f2f2;
  --badge-bg: #ffffff;
  --badge-ink: #595959;
  --plan-bg: #ffffff;
  --plan-ink: #000000;
  --bad: #000000;
  --bad-bg: #ffffff;
  --bad-line: #000000;
  --bad-ink: #000000;
  --me: #000000;
  /* Бумага портрета и ошибки (ТЗ 21.10.2026, раздел 3). */
  --green: #000000;
  --paper-top: #fafafa;
  --paper-bottom: #f0f0f0;
  --paper-sheet-1: #e6e6e6;
  --paper-sheet-2: #d9d9d9;
  --paper-border: #d9d9d9;
  --paper-text: #595959;
  --danger: #000000;
  --card-shadow: none;
  --o-radius: 6px;
  --side-w: 232px;
  --agent-w: 360px;
  --col: 640px;
  --font: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: var(--font);
  --font-body: var(--font);
  /* Рамка карточки и подложка выбранного. */
  --mono-frame: #000000;
  --mono-sel: #f2f2f2;
  color-scheme: light;
}
:root[data-theme="dark"] .pl {
  --bg: #0d0d0d;
  --side: #0d0d0d;
  --panel: #141414;
  --agent-bg: #15181b;
  --ink: #f2f2f2;
  --ink-2: #d9d9d9;
  --muted: #a6a6a6;
  --faint: #8c8c8c;
  --line: #333333;
  --line-2: #f2f2f2;
  --hover: #1f1f1f;
  --nav-on: #1f1f1f;
  --accent: #f2f2f2;
  --accent-ink: #0d0d0d;
  --accent-soft: #1f1f1f;
  --accent-tint: #1f1f1f;
  --doing: #f2f2f2;
  --doing-bg: #1f1f1f;
  --pro: #f2f2f2;
  --pro-bg: #1f1f1f;
  --badge-bg: #141414;
  --badge-ink: #a6a6a6;
  --plan-bg: #141414;
  --plan-ink: #f2f2f2;
  --bad-bg: #141414;
  --bad-line: #f2f2f2;
  --bad-ink: #f2f2f2;
  --border: #333333;
  --green: #f2f2f2;
  --paper-top: #1c1c1c;
  --paper-bottom: #171717;
  --paper-sheet-1: #222222;
  --paper-sheet-2: #2a2a2a;
  --paper-border: #333333;
  --paper-text: #a6a6a6;
  --danger: #f2f2f2;
  --card-shadow: none;
  --pro-hi: #f2f2f2;
  --bad: #f2f2f2;
  --me: #f2f2f2;
  --mono-frame: #f2f2f2;
  --mono-sel: #1f1f1f;
  color-scheme: dark;
}

/* --- основа ------------------------------------------------------------- */

body.pl {
  display: block;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
}
.pl a { color: var(--accent); }
.pl h1 { font-size: 34px; line-height: 1.25; letter-spacing: -.01em; margin: 0 0 12px; font-weight: 700; }
.pl h2 { font-size: 20px; line-height: 1.35; margin: 0; font-weight: 600; }
.pl .lede { color: var(--muted); font-size: 17px; line-height: 1.45; margin: 0; }
.pl img { max-width: 100%; }

.pl-app {
  display: grid;
  grid-template-columns: var(--side-w) minmax(0, 1fr);
  min-height: 100vh;
}

/* --- меню слева (Threads) ------------------------------------------------ */

.pl-side {
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  display: flex; flex-direction: column; gap: 2px;
  padding: 22px 12px 20px; background: var(--side);
}
.pl-side-head { display: flex; align-items: center; justify-content: space-between; padding: 0 0 14px 12px; }
.pl-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink) !important; text-decoration: none; }
.pl-brand svg { width: 28px; height: 30px; flex-shrink: 0; }
.pl-brand b { font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
.pl-nav {
  display: flex; align-items: center; gap: 12px; min-height: 27px; padding: 3px 12px;
  border-radius: 10px; color: var(--ink) !important; text-decoration: none; font-size: 15px;
  position: relative;
}
.pl-nav svg { width: 18px; height: 18px; color: var(--ink-2); flex-shrink: 0; }
.pl-nav:hover { background: var(--hover); }
.pl-nav.on { background: var(--nav-on); font-weight: 600; }
.pl-nav.lead { background: var(--nav-on); font-weight: 600; }
.pl-nav .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--bad-ink); display: inline-block; }

.pl-spacer { flex: 1; min-height: 16px; }

.pl-side .pl-close { display: none; }
/* Меню по Figma 490:290: без подписей групп, просвет между проектом и сервисом. */
.pl-gap { height: 18px; flex-shrink: 0; }
.pl-me .pl-ava { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0;
  background: var(--accent-tint); color: var(--green); font: 600 11px/1 var(--font); }
.pl-badge-plan { margin-left: auto; padding: 1px 8px; border-radius: 999px; background: var(--badge-bg); color: var(--badge-ink);
  font: 500 11px/18px var(--font); }
/* Переключатель проекта (490:366): карточка сверху, список — всплывающей панелью. */
.pl-sw { position: relative; margin: 0 0 10px; }
.pl-sw > summary { display: flex; align-items: center; gap: 8px; padding: 10px 10px 10px 12px; border: 1px solid var(--line);
  border-radius: 12px; background: var(--panel); cursor: pointer; list-style: none; }
.pl-sw > summary::-webkit-details-marker { display: none; }
.pl-sw > summary > svg { color: var(--muted); flex-shrink: 0; }
.pl-sw > summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.pl-sw-now { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.pl-sw-now b { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-sw-now span { display: flex; align-items: center; gap: 6px; }
.pl-sw-now small { font-size: 11px; color: var(--muted); }
/* fixed, а не absolute: у меню своя прокрутка, она обрезала бы список. Высоту
   ставит скрипт по карточке проекта. */
.pl-sw-list { position: fixed; z-index: 70; top: 68px; left: calc(var(--side-w) - 12px); width: 300px; padding: 8px;
  border: 1px solid var(--line); border-radius: 14px; background: var(--panel); box-shadow: 0 12px 32px rgba(31, 35, 40, .12); }
.pl-sw-list p { margin: 4px 8px 6px; font-size: 12px; color: var(--muted); }
.pl-sw-list a { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 8px; color: var(--ink) !important;
  text-decoration: none; font-size: 14px; }
.pl-sw-list a b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.pl-sw-list a.on { background: var(--nav-on); }
.pl-sw-list a.on b { font-weight: 600; }
.pl-sw-list a.on svg { margin-left: auto; color: var(--green); flex-shrink: 0; }
.pl-sw-list a:hover { background: var(--hover); }
.pl-sw-list .pl-sw-new { margin-top: 4px; font-weight: 500; }

.pl-icon {
  display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px;
  border: 0; border-radius: 10px; background: transparent; color: var(--muted); cursor: pointer; padding: 0;
}
.pl-icon:hover { background: var(--hover); color: var(--ink); }

/* --- колонка ------------------------------------------------------------- */

.pl-main { min-width: 0; display: flex; flex-direction: column; padding: 48px 24px 32px; }
.pl-col { width: 100%; max-width: var(--col); margin: 0 auto; flex: 1; }
.pl-wide .pl-col { max-width: 1112px; }
.pl-foot {
  width: 100%; max-width: var(--col); margin: 48px auto 0; display: flex; flex-wrap: wrap; gap: 6px 16px;
  font-size: 13px; color: var(--faint);
}
.pl-wide .pl-foot { max-width: 1112px; }
.pl-foot a { color: var(--faint); text-decoration: none; }
.pl-foot a:hover { color: var(--muted); text-decoration: underline; }
/* На телефоне палец больше строки: зона нажатия выше, раскладка та же. */
@media (pointer: coarse) { .pl-foot a { display: inline-block; padding: 10px 0; margin: -10px 0; } }
.pl-foot-note { order: -1; flex-basis: 100%; display: flex; align-items: flex-start; gap: 8px; margin: 0 0 6px; padding: 10px 14px;
  border-radius: 12px; background: var(--panel); border: 1px solid var(--line); color: var(--muted); font-size: 14px; line-height: 1.45; }
.pl-foot-note svg { flex-shrink: 0; margin-top: 1px; color: var(--doing); }
.pl-top { display: none; }

/* Страницы задачи (owner.css): шапка задачи липнет к верху колонки, поле
   ответа — к низу. */
.pl-main > .o-bar { margin: -48px -24px 24px; }
.pl-main > .o-compose { margin: 24px -24px -32px; }
.pl-main > .o-compose + .pl-foot { display: none; }

/* --- кнопки, бейджи, карточки ------------------------------------------- */

.pl-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px; border-radius: 11px; border: 1px solid var(--accent);
  background: var(--accent); color: var(--accent-ink) !important; font-weight: 600; font-size: 15px;
  line-height: 1.4; text-decoration: none; cursor: pointer; font-family: inherit;
}
.pl-btn:hover { filter: brightness(1.06); }
.pl-btn.ghost { background: var(--panel); border-color: var(--line); color: var(--ink) !important; }
.pl-btn.ghost:hover { border-color: var(--line-2); filter: none; }
.pl-btn.dark { background: var(--ink); border-color: var(--ink); color: var(--panel) !important; }
.pl-btn.pro { background: var(--pro); border-color: var(--pro); }
.pl-btn.wide { width: 100%; }
.pl-btn.sm { min-height: 36px; padding: 6px 12px; font-size: 13px; border-radius: 10px; font-weight: 500; }
.pl-btn:disabled { opacity: .55; cursor: default; filter: none; }
.pl-link { background: none; border: 0; padding: 0; color: var(--accent); font-weight: 600; cursor: pointer;
  font: inherit; font-weight: 600; text-decoration: none; }
.pl-link:hover { text-decoration: underline; text-underline-offset: 3px; }

.pl-badge {
  display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 999px;
  background: var(--badge-bg); color: var(--badge-ink); font-size: 12px; font-weight: 500; line-height: 1.4;
  white-space: nowrap;
}
.pl-badge svg { width: 11px; height: 11px; }
.pl-badge.plan { background: var(--plan-bg); color: var(--plan-ink); font-weight: 600; }
.pl-badge.pro { background: var(--pro-bg); color: var(--pro); font-weight: 600; }
.pl-badge.new { background: var(--pro-bg); color: var(--pro); font-weight: 600; }

.pl-card { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 22px; }

/* --- главная ------------------------------------------------------------- */

.pl-hello { margin-bottom: 20px; }
.pl-hello h1 { font-size: 36px; margin-bottom: 14px; }
.pl-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
/* Главная без проекта: два пути (макет Ильи 22.10) */
.pl-hello h1:only-child { margin-bottom: 8px; }
/* Два пути без проекта. Компактнее, чем в макете 22.10: Илья — «слишком крупные плитки». */
.pl-paths { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 28px; }
.pl-pathcard { display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: 20px; background: var(--panel);
  border: 1px solid var(--line); color: var(--ink) !important; text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.pl-pathcard:hover { border-color: var(--line-2); box-shadow: 0 4px 18px rgba(31, 35, 40, .06); }
.pl-pathcard-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.pl-pathcard-top img { width: 56px; height: 56px; display: block; }
.pl-pathcard > b { font-size: 20px; line-height: 1.3; font-weight: 700; margin-top: 4px; }
.pl-pathcard .d { font-size: 15px; line-height: 1.5; color: var(--muted); }
.pl-pathcard small { font-size: 13px; font-weight: 600; color: var(--muted); margin-top: 2px; }
.pl-pathcard ul { list-style: none; margin: 0 0 6px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.pl-pathcard li { display: flex; gap: 10px; font-size: 15px; line-height: 1.45; }
.pl-pathcard li svg { color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.pl-pathcard .pl-btn { margin-top: auto; min-height: 46px; font-size: 15px; border-radius: 12px; }
.pl-tasks.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }

.pl-project-title { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; padding-left: 4px; }
.pl-project-title b { font-size: 18px; font-weight: 600; line-height: 1.4; }
.pl-project-title small { font-size: 13px; color: var(--muted); }

.pl-bar { height: 6px; border-radius: 3px; background: var(--nav-on); overflow: hidden; }
.pl-bar i { display: block; height: 100%; border-radius: 3px; background: var(--doing); transition: width .4s; }
.pl-bar.done i { background: var(--accent); }
.pl-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.pl .pl-h2 { margin: 28px 0 14px; }

.pl-tasks { display: flex; flex-direction: column; gap: 12px; }
.pl-task {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px 14px 14px; border-radius: 14px;
  background: var(--panel); border: 1px solid var(--line); color: var(--ink) !important; text-decoration: none;
}
.pl-task:hover { border-color: var(--line-2); }
.pl-task img { width: 52px; height: 52px; flex-shrink: 0; }
.pl-task-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pl-task-text b { font-size: 16px; font-weight: 600; line-height: 1.4; }
.pl-task-text span { font-size: 13px; color: var(--muted); line-height: 1.4; }
.pl-task > svg { flex-shrink: 0; color: var(--accent); }
.pl-task.locked { opacity: .55; }

.pl-recent { padding: 16px 22px; display: flex; flex-direction: column; }
.pl-recent a {
  display: flex; align-items: center; gap: 10px; padding: 12px 0; color: var(--ink) !important;
  text-decoration: none; font-weight: 500; font-size: 15px; border-top: 1px solid var(--line);
}
.pl-recent a:first-child { border-top: 0; padding-top: 4px; }
.pl-recent a:last-child { padding-bottom: 4px; }
.pl-recent a span { flex: 1; min-width: 0; }
.pl-recent a small { color: var(--muted); font-size: 13px; font-weight: 400; white-space: nowrap; }
.pl-recent svg { color: var(--ink-2); flex-shrink: 0; }

.pl-others { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--muted); }

/* --- «Начало работы» ----------------------------------------------------- */

.pl-start { background: var(--panel); min-height: 100vh; display: flex; flex-direction: column; }
.pl-start-top { position: relative; display: flex; align-items: center; justify-content: space-between;
  height: 75px; padding: 0 48px; border-bottom: 0; }
.pl-start-top::before { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: var(--done, 33%);
  background: var(--doing); transition: width .3s; }
.pl-start-top .count { font-family: "IBM Plex Mono", monospace; font-size: 14px; color: var(--muted); }
.pl-steps { background: var(--doing-bg); padding: 22px 140px 22px; }
.pl-steps ol { display: flex; align-items: center; gap: 12px; list-style: none; margin: 0 0 10px; padding: 0; flex-wrap: wrap; }
.pl-steps li { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px;
  background: var(--panel); border: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.pl-steps li i { width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center;
  justify-content: center; font-style: normal; font-size: 12px; font-weight: 600; background: var(--badge-bg); color: var(--muted); }
.pl-steps li.on { background: var(--doing); border-color: var(--doing); color: #fff; font-weight: 600; }
.pl-steps li.on i { background: #fff; color: var(--doing); }
.pl-steps li.done { color: var(--doing); }
.pl-steps li.arrow { background: none; border: 0; padding: 0; color: var(--muted); }
.pl-steps p { margin: 0; font-size: 15px; color: var(--ink); }
.pl-start-body { flex: 1; padding: 120px 220px 80px; }
.pl-start-body h1 { font-size: 52px; line-height: 1.2; margin-bottom: 28px; letter-spacing: -.02em; }
.pl-start-body h1 + .lede { margin: -16px 0 28px; }
.pl-audience { max-width: 900px; margin-top: 36px; display: flex; flex-direction: column; gap: 6px; }
.pl-audience label { font-size: 15px; font-weight: 600; color: var(--muted); }
.pl .pl-audience textarea { width: 100%; border: 0; border-bottom: 1px solid var(--line-2); background: transparent; resize: none;
  outline: none; font: 400 20px/1.4 var(--font); color: var(--ink); padding: 4px 0 8px; }
.pl .pl-audience textarea:focus { border-bottom-color: var(--accent); }
.pl .pl-audience textarea::placeholder { color: #b4b9c0; }
.pl textarea.pl-big {
  width: 100%; max-width: 900px; border: 0; border-bottom: 2px solid var(--accent); background: transparent;
  font: 400 32px/1.35 var(--font); color: var(--ink); padding: 6px 0 12px; resize: none; outline: none;
}
.pl textarea.pl-big::placeholder { color: #b4b9c0; }
.pl-go { display: flex; align-items: center; gap: 14px; margin-top: 36px; }
.pl-go .pl-btn { min-height: 48px; padding: 12px 24px; font-size: 17px; border-radius: 10px; }
.pl-key { font-size: 13px; color: var(--faint); display: inline-flex; gap: 8px; align-items: center; }
p.pl-key { display: block; line-height: 1.5; }
.pl-renew { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); cursor: pointer; margin: 4px 0 10px; }
.pl-renew input { width: 16px; height: 16px; margin: 0; accent-color: var(--pro); }
p.pl-key > svg, p.pl-key > .typing { vertical-align: middle; margin-right: 4px; }
.pl-key kbd { font-family: "IBM Plex Mono", monospace; font-size: 12px; color: var(--muted); padding: 2px 7px;
  border: 1px solid var(--line); border-radius: 5px; background: var(--panel); }
.pl-where { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 56px; align-items: start; }
.pl-where fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.pl-countries { display: flex; flex-direction: column; gap: 8px; }
.pl-country { position: relative; display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; font-size: 15px; }
.pl-country input { position: absolute; opacity: 0; pointer-events: none; }
.pl-country:has(input:checked) { border: 2px solid var(--accent); background: var(--accent-soft); font-weight: 600; padding: 9px 13px; }
.pl-country:has(input:checked)::after { content: "✓"; color: var(--accent); }
.pl-country:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.pl-langs h2 { font-size: 17px; margin: 0 0 14px; }
/* Где клиенты (Figma 417:851): город — поле внутри первой карточки. */
.pl-reach .pl-country { min-height: 54px; padding: 10px 14px 10px 20px; font-size: 17px; gap: 12px; }
.pl-reach .pl-country:has(input:checked) { padding: 9px 13px 9px 19px; }
.pl-reach .pl-country > span { flex: 1; }
.pl-reach .pl-country input.pl-city { position: static; opacity: 1; pointer-events: auto; width: 150px; padding: 7px 12px;
  border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: var(--ink); font: inherit;
  font-size: 15px; font-weight: 400; }
.pl-reach .pl-country:not(:has(input[value="city"]:checked)) .pl-city { display: none; }
.pl-reach-note { margin: 10px 0 0; font-size: 14px; line-height: 22px; color: var(--muted); }
.pl-langs h2 + .pl-select, .pl-langs .pl-other + h2, .pl-langs .pl-select + h2 { margin-top: 0; }
.pl-langs h2#lang-title { margin-top: 28px; }
.pl-select { position: relative; max-width: 350px; }
.pl-select select { width: 100%; appearance: none; padding: 10px 40px 10px 14px; border: 1px solid var(--line);
  border-radius: 8px; background: var(--panel); color: var(--ink); font: inherit; font-size: 15px; cursor: pointer; }
.pl-select svg { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--muted); }
.pl-select select:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.pl-chipset { display: flex; flex-wrap: wrap; gap: 8px; }
.pl-chipset label { position: relative; cursor: pointer; }
.pl-chipset input { position: absolute; opacity: 0; pointer-events: none; }
.pl-chipset span { display: inline-flex; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--panel); font-size: 14px; font-weight: 500; }
.pl-chipset input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--panel); }
.pl-chipset input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.pl-other { margin-top: 10px; width: 100%; max-width: 420px; padding: 10px 14px; border: 1px solid var(--line);
  border-radius: 8px; font: inherit; background: var(--panel); color: var(--ink); }
.pl-error { margin: 0 0 18px; padding: 12px 16px; border-radius: 12px; background: var(--bad-bg);
  border: 1px solid var(--bad-line); color: var(--bad-ink); font-size: 15px; }
/* «Афанасий ещё работает» — плашка после 15 с ожидания (owner.js, longWait) */
.pl-longwait { position: fixed; left: 50%; bottom: 92px; z-index: 70; display: flex; align-items: center; gap: 12px;
  max-width: min(520px, calc(100vw - 32px)); padding: 12px 18px 12px 12px; border-radius: 16px; background: var(--panel);
  border: 1px solid var(--line); box-shadow: 0 12px 32px rgba(17, 19, 21, .14); color: var(--ink);
  opacity: 0; transform: translate(-50%, 12px); pointer-events: none; transition: opacity .35s ease, transform .35s ease; }
.pl-longwait.on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.pl-longwait img { flex: none; animation: pl-bob 2.4s ease-in-out infinite; }
.pl-longwait span { display: flex; flex-direction: column; gap: 2px; font-size: 15px; line-height: 1.35; }
.pl-longwait small { font-size: 13px; color: var(--muted); }
.pl-longwait .dots { flex: none; display: inline-flex; gap: 4px; font-style: normal; }
.pl-longwait .dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--doing); animation: pl-type 1.2s infinite; }
.pl-longwait .dots i:nth-child(2) { animation-delay: .15s; }
.pl-longwait .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes pl-bob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-3px) rotate(-4deg); } }
@media (prefers-reduced-motion: reduce) { .pl-longwait img, .pl-longwait .dots i { animation: none; } }
@media (max-width: 760px) { .pl-longwait { bottom: 100px; } }

/* Несколько ответов видно только по галочке у выбранных (Figma 335:766, п. 4). */
/* «Не знаю» — такая же кнопка с рамкой, текст бледнее, без серой заливки. */
/* «Свой ответ» — маленькая ссылка в конце ряда; не влезла в ряд — скрыта. */
/* Ссылка превращается в поле прямо под ответами (Figma 335:432). */
.pl-skip { border: 0; background: none; padding: 0; font: 500 15px var(--font); color: var(--muted); cursor: pointer; }
.pl-skip:hover { color: var(--ink); }
/* «Назад» в «Начале работы»: ответы прежних шагов сохраняются. */
.pl-back { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; padding: 0;
  font: 500 15px var(--font); color: var(--muted); cursor: pointer; text-decoration: none; }
.pl-back:hover { color: var(--ink); }
html.js .pl-start [data-step="3"] { display: none; }
html.js .pl-start.step-3 [data-step="1"], html.js .pl-start.step-3 [data-step="2"] { display: none; }
html.js .pl-start.step-3 [data-step="3"] { display: block; }
.pl-stages { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; max-width: 640px; }
.pl-stages .pl-country { padding: 14px 16px; font-size: 17px; }
.pl-stages .pl-country:has(input:checked) { padding: 13px 15px; }
html.js .pl-start [data-step="2"] { display: none; }
html.js .pl-start.step-2 [data-step="1"] { display: none; }
html.js .pl-start.step-2 [data-step="2"] { display: block; }

/* --- портреты клиентов --------------------------------------------------- */

.pl-clients-head h1 { font-size: 34px; margin-bottom: 14px; }
.pl-context { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.pl-context .chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--panel); font-size: 14px; font-weight: 500; color: var(--ink); }
.pl-context .chip svg { color: var(--muted); }
.pl-context details { display: inline-block; }
.pl-context summary { list-style: none; cursor: pointer; color: var(--accent); font-weight: 600; font-size: 14px;
  display: inline-flex; gap: 6px; align-items: center; padding: 6px 4px; }
.pl-context summary::-webkit-details-marker { display: none; }
.pl-edit { margin: 12px 0 4px; padding: 18px; display: grid; gap: 12px; max-width: 640px; }
.pl-edit label { font-size: 14px; font-weight: 600; display: block; margin-bottom: 6px; }
.pl-edit textarea, .pl-edit select, .pl-edit input { width: 100%; padding: 10px 12px; border: 1px solid var(--line);
  border-radius: 10px; font: inherit; background: var(--panel); color: var(--ink); }
.pl-updated { display: flex; align-items: center; gap: 10px; padding: 12px 16px; margin-bottom: 18px;
  border-radius: 12px; background: var(--doing-bg); color: var(--doing); font-size: 14px; font-weight: 600; }
.pl-flow { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 12px 16px; margin: 0 0 20px; border-radius: 14px; background: var(--doing-bg); }
.pl-flow ol { display: flex; align-items: center; gap: 10px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.pl-flow li { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.pl-flow li i { width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center;
  justify-content: center; font-style: normal; font-size: 12px; font-weight: 600; background: var(--panel); color: var(--muted); }
.pl-flow li.on { color: var(--doing); font-weight: 600; }
.pl-flow li.on i { background: var(--doing); color: #fff; }
.pl-people { display: flex; flex-direction: column; gap: 20px; margin-top: 28px; }
.pl-person {
  background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 28px 32px;
  display: flex; flex-direction: column; gap: 20px; transition: border-color .2s, opacity .2s;
}
.pl-person.yes { border: 2px solid var(--accent); padding: 27px 31px; }
.pl-person.no { opacity: .62; }
.pl-person-head { display: flex; gap: 20px; align-items: center; }

.pl-person-who { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.pl-person-who h2 { font-size: 24px; line-height: 1.25; font-weight: 700; }

.pl-person-who p { margin: 0; font-size: 15px; line-height: 1.5; }
.pl-quote { display: flex; gap: 12px; color: var(--muted); font-size: 16px; line-height: 1.5; margin: 0; }
.pl-quote::before { content: ""; width: 3px; border-radius: 2px; background: var(--accent); flex-shrink: 0; }
.pl-verdict { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; flex-shrink: 0; align-self: flex-start; }
.pl-verdict form { display: flex; gap: 8px; }
.pl-verdict :is(button, .d) {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; min-width: 116px;
  padding: 0 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); cursor: pointer;
  font: 500 13px/1.2 var(--font); color: var(--ink);
}
.pl-verdict :is(button, .d):hover { border-color: var(--line-2); }
.pl-verdict :is(button, .d) svg { width: 16px; height: 16px; }
.pl-verdict .y svg { color: #2e8b57; }
.pl-verdict .n svg { color: var(--bad); }
.pl-verdict .y.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.pl-verdict .y.on svg { color: #fff; }
/* «Сохранить» (закладка), «Скачать», «Не подходит» — решение Ильи 22.10 вместо «Похоже / Не похоже». */
.pl .pl-verdict .d { color: var(--ink); text-decoration: none; }
.pl-verdict .y.on svg { fill: currentColor; }
.pl-verdict :is(button, .d) { min-width: 0; padding: 0 12px; }
.pl-verdict :is(button, .d) svg { flex: none; }
@media (max-width: 760px) {
  .pl-verdict :is(button, .d) { gap: 4px; padding: 0 6px; }
  .pl-verdict a.d { flex: 0 0 40px; }
  .pl-verdict form button { flex: 1 1 auto; white-space: nowrap; }
  .pl-verdict .d span { display: none; }
}
.pl-verdict .n.on { background: var(--bad-bg); border-color: var(--bad-line); color: var(--bad-ink); }
.pl-divider { height: 1px; background: var(--line); }
/* Разделы портрета парами, как у FounderPal: две колонки, между парами линия. */
.pl-traits { margin: 0; display: flex; flex-direction: column; }
.pl-trait { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 16px; padding: 12px 0; }
.pl-trait + .pl-trait { border-top: 1px solid var(--line); }
.pl-trait:first-child { padding-top: 0; }
.pl-trait dt { display: flex; align-items: flex-start; gap: 8px; font-size: 15px; font-weight: 600; line-height: 1.5; }
.pl-trait dt svg { color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.pl-trait dd { margin: 0; font-size: 16px; line-height: 1.5; }
.pl-trait.say dd { font-weight: 600; }
.pl-ask { display: flex; align-items: center; gap: 14px; padding: 14px 16px; margin-top: 28px; border-radius: 14px;
  background: var(--doing-bg); }
.pl-ask svg { color: var(--doing); flex-shrink: 0; }
.pl-ask b { flex: 1; font-size: 15px; }
.pl-next { margin-top: 28px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 22px; border-radius: 18px; background: var(--panel); border: 2px solid var(--accent); }
.pl-next span { font-size: 15px; color: var(--muted); }
.pl-next b { display: block; color: var(--ink); font-size: 17px; }
.pl-wait { position: relative; display: flex; gap: 14px; align-items: center; padding: 24px; margin-top: 28px; }
.pl-wait img { width: 44px; height: 44px; border-radius: 50%; }
.pl-wait b { display: block; }
/* Плашки, пока Афанасий пишет (Илья, 22.10: «анимация ожидания — в тему,
   ультрасовременная, стильная»). Заготовка — призрак портрета: место под фото,
   имя и строки, по ним волной идёт блик; по рамке заготовки и плашки
   «Афанасий рисует…» бежит луч. */
@property --pl-beam { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.pl-skeleton { position: relative; min-height: 220px; display: grid; grid-template-columns: 72px minmax(0, 1fr);
  align-content: start; gap: 12px 20px; padding: 28px; border-radius: 20px; border: 1px solid var(--line); background: var(--panel);
  --ghost: color-mix(in srgb, var(--ink) 7%, var(--panel)); --ghost-hi: color-mix(in srgb, var(--ink) 2%, var(--panel)); --wave: 0s; }
.pl-skeleton i { display: block; height: 11px; border-radius: 6px;
  background: linear-gradient(90deg, var(--ghost) 0 35%, var(--ghost-hi) 50%, var(--ghost) 65% 100%) 0 0 / 300% 100%;
  animation: pl-ghost 1.8s ease-in-out var(--wave) infinite; }
.pl-skeleton i:nth-child(1) { grid-row: span 2; width: 72px; height: 72px; border-radius: 14px; }
.pl-skeleton i:nth-child(2) { align-self: end; width: min(42%, 220px); height: 16px; animation-delay: calc(var(--wave) + .08s); }
.pl-skeleton i:nth-child(3) { align-self: start; width: min(26%, 140px); animation-delay: calc(var(--wave) + .16s); }
.pl-skeleton i:nth-child(n+4) { grid-column: 1 / -1; }
.pl-skeleton i:nth-child(4) { width: 88%; margin-top: 18px; animation-delay: calc(var(--wave) + .24s); }
.pl-skeleton i:nth-child(5) { width: 72%; animation-delay: calc(var(--wave) + .32s); }
.pl-skeleton i:nth-child(6) { width: 50%; animation-delay: calc(var(--wave) + .4s); }
.pl-skeleton + .pl-skeleton { --wave: .5s; }
.pl-skeleton::before, html.agent-thinking :is(.pl-wait:not([role="alert"]):not(.pl-v2-asking), .pl-ins-teaser.wait)::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: conic-gradient(from var(--pl-beam), transparent 0 72%, var(--accent) 88%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude;
  animation: pl-beam 3s linear infinite; }
.pl-skeleton + .pl-skeleton::before { animation-delay: -1.5s; }
.pl-ins-teaser.wait { position: relative; }
@keyframes pl-ghost { from { background-position: 100% 0; } to { background-position: 0 0; } }
@keyframes pl-beam { to { --pl-beam: 1turn; } }
@media (prefers-reduced-motion: reduce) {
  .pl-skeleton i, .pl-skeleton::before, .pl-wait::before, .pl-ins-teaser.wait::before { animation: none; }
}

/* --- задача и готовый текст (Figma 78:2, 114:4–6) ---------------------- */

.pl-crumbs { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; color: var(--muted); margin: 0 0 24px; }
.pl-crumbs a { display: inline-flex; align-items: center; gap: 8px; color: var(--muted) !important; text-decoration: none; }
.pl-crumbs a:hover { color: var(--ink) !important; }
.pl-crumbs i { font-style: normal; color: #9aa1aa; }
.pl-crumbs b { font-weight: 500; color: var(--ink); }
.pl .pl-task-h1 { font-size: 34px; line-height: 1.15; margin: 0 0 12px; }
.pl-who { display: inline-flex; align-items: center; gap: 8px; padding: 5px 10px 5px 6px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--panel); font-size: 13px; color: var(--muted); margin: 0 0 20px;
  position: relative; max-width: 100%; white-space: nowrap; }
.pl-who-ava { width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #fff; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 600; }
.pl-who select { border: 0; background: transparent; font: inherit; color: var(--muted); padding: 0 18px 0 0;
  appearance: none; -webkit-appearance: none; cursor: pointer; min-width: 0; flex: 1 1 auto; overflow: hidden;
  text-overflow: ellipsis; }
.pl-who svg { position: absolute; right: 10px; pointer-events: none; }
.pl-who.static { padding-right: 12px; }
.pl-who-t { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.pl-ask-box { display: flex; flex-direction: column; gap: 16px; padding: 28px; border-radius: 16px; }
.pl-ask-box h2 { font-size: 18px; }
.pl-field { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 12px;
  padding: 0 16px; background: var(--panel); }
.pl-field:focus-within { border-color: var(--accent); }
.pl-field svg { color: var(--muted); flex-shrink: 0; }
.pl .pl-field input, .pl .pl-field textarea { flex: 1; min-width: 0; border: 0; outline: none; background: transparent;
  font: 15px/1.5 var(--font); color: var(--ink); padding: 14px 0; box-shadow: none; resize: vertical; min-height: 0; }
.pl .pl-field textarea { min-height: 50px; }
.pl-or { margin: -4px 0 -4px; font-size: 14px; color: var(--muted); }
.pl-result-actions { margin: 4px 0 24px; }
.pl-result-actions form { display: inline-flex; }
.pl-btn[aria-disabled="true"] { opacity: .8; cursor: default; filter: none; }
.pl-label { margin: 0 0 12px; font-size: 14px; font-weight: 600; color: var(--muted); }
.pl-serp { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 24px;
  display: flex; flex-direction: column; gap: 6px; font-family: Arimo, Arial, sans-serif; margin-bottom: 20px; }
.pl-serp .meta { display: flex; gap: 8px; font-size: 13px; color: #4d5156; }
.pl-serp .meta b { color: var(--ink); }
.pl-serp .title { font-size: 20px; line-height: 1.3; color: #1a0dab; }
.pl-serp .desc { font-size: 14px; line-height: 1.5; color: #4d5156; }
:root[data-theme="dark"] .pl-serp .title { color: #8ab4f8; }
:root[data-theme="dark"] .pl-serp .meta, :root[data-theme="dark"] .pl-serp .desc { color: var(--muted); }
.pl-rows { display: flex; flex-direction: column; gap: 12px; padding: 28px; border-radius: 16px; margin-bottom: 20px; }
.pl-rows h2 { font-size: 17px; margin-bottom: 4px; }
.pl-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line);
  border-radius: 10px; background: var(--panel); }
.pl-row > span { flex: 1; min-width: 0; font-size: 15px; line-height: 1.4; }
.pl-row small { font-size: 12px; color: #9aa1aa; white-space: nowrap; }
.pl-row.over { border-color: var(--bad-line); background: var(--bad-bg); }
.pl-row.over small { color: var(--bad-ink); font-weight: 600; }
.pl-copy { border: 0; background: none; padding: 4px; color: var(--muted); cursor: pointer; display: inline-flex;
  border-radius: 6px; flex-shrink: 0; }
.pl-copy:hover, .pl-icon:hover { color: var(--ink); }
.copied, .pl-copy.copied, .pl-icon.copied { color: var(--accent) !important; }
.pl-checks { display: flex; gap: 12px; padding: 14px 16px; margin: 0 0 20px; border-radius: 12px;
  background: #fff8eb; border: 1px solid #f2d9a6; color: #6e4a00; font-size: 14px; }
.pl-checks svg { flex-shrink: 0; margin-top: 2px; }
.pl-checks ul { margin: 6px 0 0; padding-left: 18px; }
:root[data-theme="dark"] .pl-checks { background: #2d2211; border-color: #6b4a1a; color: #f5d3a1; }
.pl-more { margin: 24px 0 0; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.pl-more summary { cursor: pointer; font-weight: 600; font-size: 15px; }
.pl-more[open] summary { margin-bottom: 12px; }
.pl-formats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 4px 0 24px; }
.pl-format-form { display: contents; }
.pl-format { display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; border-radius: 14px; text-align: left;
  border: 1px solid var(--line); background: var(--panel); color: var(--ink) !important; text-decoration: none;
  cursor: pointer; font: inherit; width: 100%; }
.pl-format b { font-size: 17px; font-weight: 600; }
.pl-format span { font-size: 14px; color: var(--muted); }
.pl-format.on { border: 2px solid var(--accent); padding: 15px 17px; }
.pl-phone { width: 340px; max-width: 100%; margin: 0 auto 28px; border: 1px solid var(--line); border-radius: 24px;
  background: var(--panel); padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.pl-phone .head { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; }
.pl-phone .head i { width: 28px; height: 28px; border-radius: 50%; background: var(--accent-tint); }
.pl-phone .pic { aspect-ratio: 1; border-radius: 12px; background: var(--bg); display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 10px; color: var(--faint); text-align: center; padding: 24px;
  font-size: 13px; }
.pl-phone .icons { display: flex; gap: 12px; color: var(--ink); }
.pl-phone .first { margin: 0; font-weight: 600; font-size: 14px; line-height: 1.4; }
.pl-phone .rest { margin: 0; font-size: 13px; color: var(--muted); }
.pl .pl-h3 { font-size: 17px; margin: 0 0 12px; }
.pl-hooks { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.pl-hook { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line);
  border-radius: 10px; background: var(--panel); cursor: pointer; font-size: 15px; line-height: 1.4; }
.pl-hook input { margin-top: 3px; accent-color: var(--accent); }
.pl-hook:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.pl-text { white-space: pre-line; font-size: 15px; line-height: 1.55; margin-bottom: 16px; }
.pl-scene { display: flex; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.pl-scene:first-of-type { border-top: 0; }
.pl-scene small { width: 56px; flex-shrink: 0; font-family: "IBM Plex Mono", monospace; color: var(--muted); padding-top: 2px; }
.pl-scene p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.pl-stories { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin-bottom: 20px; }
.pl-story { position: relative; aspect-ratio: 9 / 16; border-radius: 16px; background: var(--ink); color: #fff;
  padding: 18px 14px; display: flex; flex-direction: column; gap: 8px; justify-content: center; }
.pl-story small { position: absolute; top: 12px; left: 14px; font-size: 12px; opacity: .6; }
.pl-story b { font-size: 17px; line-height: 1.3; }
.pl-story span { font-size: 12px; opacity: .7; }
.pl-story .pl-copy { position: absolute; top: 8px; right: 8px; color: #fff; }
.pl-outline { list-style: none; margin: 0 0 24px; padding: 9px; display: flex; flex-direction: column; gap: 4px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px; }
.pl-outline a { display: block; padding: 10px 14px; border-radius: 10px; color: var(--ink) !important;
  text-decoration: none; font-weight: 500; font-size: 15px; }
.pl-outline a:hover { background: var(--bg); }
.pl-blocks { display: flex; flex-direction: column; gap: 14px; margin-bottom: 20px; }
.pl-block { padding: 23px; scroll-margin-top: 80px; }
.pl-block header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.pl-block header small { font-family: "IBM Plex Mono", monospace; color: var(--muted); }
.pl-block header b { flex: 1; font-size: 17px; font-weight: 600; }
.pl-block header form { display: inline-flex; }
.pl-block h2 { font-size: 16px; margin: 0 0 6px; }
.pl-block p { margin: 0 0 8px; font-size: 15px; line-height: 1.55; }
.pl-fakebtn { display: inline-flex; padding: 6px 12px; border-radius: 8px; background: var(--accent-soft); color: var(--accent);
  font-size: 14px; font-weight: 600; }

/* --- Афанасий ------------------------------------------------------------ */

.pl-agent { display: flex; flex-direction: column; background: var(--agent-bg); min-width: 0; z-index: 45; }
.pl-agent-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.pl-ava { width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0; display: block; }
.pl-agent-head > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pl-agent-head b { font-size: 16px; font-weight: 600; line-height: 1.4; }
.pl-agent-head small { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); line-height: 1.4; }
.pl-dot { width: 8px; height: 8px; border-radius: 50%; background: #2e9e4f; display: inline-block; }
.pl-msgs { flex: 1; overflow-y: auto; padding: 18px 16px; display: flex; flex-direction: column; gap: 12px; overscroll-behavior: contain; }
.pl-msg {
  max-width: 250px; padding: 10px 14px; border-radius: 16px 16px 16px 4px; background: var(--panel);
  border: 1px solid var(--line); font-size: 14px; line-height: 1.4; white-space: pre-line; overflow-wrap: anywhere;
  align-self: flex-start;
}
.pl-msg.user { align-self: flex-end; background: var(--me); border-color: var(--me); color: #fff; border-radius: 16px 16px 4px 16px; }
.pl-msg.owner { border-color: var(--accent); }
.pl-msg.owner b { display: block; font-size: 12px; color: var(--accent); margin-bottom: 2px; }
.pl-msg.wait { padding: 12px 16px; }

/* Новое сообщение не появляется рывком: всплывает из своего угла — ваше
   справа, Афанасия слева. */
.pl-msg.o-in { transform-origin: 0 100%; animation: pl-msg-in .38s cubic-bezier(.2, .9, .25, 1) both; }
.pl-msg.user.o-in { transform-origin: 100% 100%; }
.pl-msg.wait.o-in { animation-duration: .24s; }
@keyframes pl-msg-in { from { opacity: 0; transform: translateY(12px) scale(.92); } }
.pl-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pl-chip {
  display: inline-flex; align-items: center; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--panel); color: var(--ink) !important; font: 500 14px/1.4 var(--font); text-decoration: none;
  cursor: pointer; text-align: left;
}
.pl-chip:hover { border-color: var(--accent); }

.pl-say { padding: 12px 16px 16px; }
.pl-input {
  display: flex; align-items: flex-end; gap: 8px; padding: 8px 8px 8px 16px; border-radius: 28px;
  background: var(--panel); border: 1px solid var(--line);
}
.pl-input:focus-within { border-color: var(--accent); }
.pl-input textarea { flex: 1; min-width: 0; min-height: 0; height: 38px; border: 0; border-radius: 0; outline: none;
  resize: none; background: transparent; box-shadow: none; font: 15px/1.4 var(--font); color: var(--ink);
  padding: 9px 0; max-height: 160px; margin: 0; }
.pl-input textarea::placeholder { color: var(--muted); }
.pl .pl-input textarea:focus-visible { outline: none; }
.pl-round { width: 38px; height: 38px; border-radius: 50%; border: 0; display: inline-flex; align-items: center;
  justify-content: center; cursor: pointer; flex-shrink: 0; padding: 0; }
.pl-round.mic { background: var(--accent-soft); color: var(--accent); }
.pl-round.mic.rec { background: var(--bad-ink); color: #fff; animation: pl-pulse 1.2s infinite; }
.pl-round.send { background: var(--accent); color: #fff; }
.pl-round:disabled { opacity: .5; cursor: default; }
@keyframes pl-pulse { 50% { opacity: .65; } }
.pl-voice { margin: 0 0 8px 6px; font-size: 13px; color: var(--muted); }
.pl-agent .typing { display: inline-flex; align-items: center; gap: 5px; height: 14px; }
.pl-agent .typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: pl-wave 1.1s ease-in-out infinite; }
.pl-agent .typing i:nth-child(2) { animation-delay: .14s; }
.pl-agent .typing i:nth-child(3) { animation-delay: .28s; }
@keyframes pl-type { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-2px); } }
@keyframes pl-wave { 0%, 60%, 100% { opacity: .3; transform: translateY(1px) scale(.8); } 30% { opacity: 1; transform: translateY(-3px) scale(1.05); } }

/* Афанасий думает (owner.js, think — html.agent-thinking): вокруг аватара бежит
   кольцо, черепаха задумчиво покачивает головой, над ней всплывают пузырьки
   мысли; в чате по реплике-ожиданию идёт блик, точки — волной. */
.pl-ava-box { position: relative; display: block; flex-shrink: 0; border-radius: 50%; line-height: 0; font-style: normal; }
.pl-ava-box::before { content: ""; position: absolute; inset: -4px; border-radius: 50%; pointer-events: none; opacity: 0;
  background: conic-gradient(from 0turn, transparent 0 35%, var(--accent) 100%);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2px));
          mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2px));
  transition: opacity .3s ease; }
.pl-think { position: absolute; right: -9px; top: -13px; width: 22px; height: 20px; pointer-events: none; }
.pl-think i { position: absolute; border-radius: 50%; background: var(--panel); border: 1.5px solid var(--accent); opacity: 0; }
.pl-think i:nth-child(1) { width: 5px; height: 5px; left: 0; bottom: 0; }
.pl-think i:nth-child(2) { width: 7px; height: 7px; left: 5px; bottom: 5px; }
.pl-think i:nth-child(3) { width: 10px; height: 10px; left: 12px; bottom: 10px; }
html.agent-thinking .pl-ava-box::before { opacity: 1; animation: pl-spin 1.1s linear infinite; }
html.agent-thinking .pl-ava-box img,
html.agent-thinking .pl-wait:not([role="alert"]):not(.pl-v2-asking) > img { animation: pl-ponder 2.6s ease-in-out infinite; transform-origin: 50% 80%; }
html.agent-thinking .pl-think i { animation: pl-thought 2.1s ease-in-out infinite; }
html.agent-thinking .pl-think i:nth-child(2) { animation-delay: .25s; }
html.agent-thinking .pl-think i:nth-child(3) { animation-delay: .5s; }
html.agent-thinking .pl-dot { animation: pl-dot 1.4s ease-out infinite; }
.pl-fab-busy { display: none; }
html.agent-thinking .pl-fab b:not(.pl-fab-busy), html.agent-thinking .pl-fab small { display: none !important; }
html.agent-thinking .pl-fab .pl-fab-busy { display: block; }
.pl-msg.wait { position: relative; overflow: hidden; }
.pl-msg.wait::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(100deg, transparent 30%, color-mix(in srgb, var(--accent) 16%, transparent) 50%, transparent 70%);
  animation: pl-sweep 1.6s ease-in-out infinite; }
@keyframes pl-spin { to { transform: rotate(1turn); } }
@keyframes pl-ponder { 0%, 100% { transform: rotate(0) translateY(0); } 30% { transform: rotate(-7deg) translateY(-1px); }
  65% { transform: rotate(5deg) translateY(0); } }
@keyframes pl-thought { 0% { opacity: 0; transform: translateY(4px) scale(.3); } 30%, 70% { opacity: 1; transform: translateY(0) scale(1); }
  100% { opacity: 0; transform: translateY(-4px) scale(1); } }
@keyframes pl-dot { from { box-shadow: 0 0 0 0 rgba(46, 158, 79, .55); } to { box-shadow: 0 0 0 7px rgba(46, 158, 79, 0); } }
@keyframes pl-sweep { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
/* Нажатая кнопка, пока сервер не ответил (owner.js, pending): блик по кнопке. */
.is-pending { cursor: progress; }
:is(button, a).is-pending { position: relative; overflow: hidden; }
:is(button, a).is-pending::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(100deg, transparent 25%, color-mix(in srgb, currentColor 24%, transparent) 50%, transparent 75%);
  animation: pl-sweep .9s linear infinite; }
@media (prefers-reduced-motion: reduce) {
  html.agent-thinking .pl-ava-box::before, html.agent-thinking .pl-ava-box img, html.agent-thinking .pl-wait > img,
  .pl-msg.wait::after, :is(button, a).is-pending::after, html.agent-thinking .pl-dot { animation: none; }
  html.agent-thinking .pl-think i { animation: none; opacity: 1; }
}

.pl-fab {
  position: fixed; right: 24px; bottom: 24px; z-index: 40; display: none; align-items: center; gap: 10px;
  padding: 7px 18px 7px 7px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line);
  box-shadow: 0 6px 24px rgba(31, 35, 40, .14); cursor: pointer; font: 600 14px/1.3 var(--font); color: var(--ink);
}
.pl-fab img { width: 40px; height: 40px; border-radius: 50%; }
.pl-fab span { display: flex; flex-direction: column; text-align: left; }
.pl-fab small { display: none; font-weight: 400; font-size: 13px; color: var(--muted); }
.pl-fab .pl-fab-mic { display: none; }
html.agent-folded .pl-fab, .pl-wide .pl-fab { display: inline-flex; }
.pl-wide.agent-open .pl-fab, html.agent-folded .agent-open:not(.pl-wide) .pl-fab { display: none; }

/* Компьютер: Афанасий — длинное окно поверх страницы справа, а не колонка.
   Открывается и сворачивается плавно: всплывает из угла, где кнопка, и туда
   же уходит. Колонка с содержимым отодвигается, чтобы окно его не закрывало;
   на широких страницах (портреты) — только когда окно открыто
   и экран от 1400 px, уже — окно поверх (Илья, 22.10). */
@media (min-width: 1181px) {
  .pl-agent {
    position: fixed; top: 16px; right: 16px; bottom: 16px; width: var(--agent-w);
    border: 1px solid var(--line); border-radius: 22px; overflow: hidden;
    box-shadow: 0 24px 64px rgba(31, 35, 40, .16), 0 2px 8px rgba(31, 35, 40, .06);
    transform-origin: 100% 100%;
    transition: opacity .22s ease, transform .36s cubic-bezier(.2, .9, .25, 1), visibility 0s;
  }
  html.agent-folded body:not(.agent-open) .pl-agent, .pl-wide:not(.agent-open) .pl-agent {
    opacity: 0; transform: translateY(20px) scale(.94); visibility: hidden; pointer-events: none;
    transition: opacity .18s ease-in, transform .22s ease-in, visibility 0s .22s;
  }
  .pl-app:not(.no-agent) > .pl-main { padding-right: calc(var(--agent-w) + 40px);
    transition: padding-right .36s cubic-bezier(.2, .9, .25, 1); }
  html.agent-folded body:not(.agent-open) .pl-app > .pl-main, .pl-wide .pl-app > .pl-main { padding-right: 24px; }
  html.agent-folded .pl-fab, .pl-wide .pl-fab { animation: pl-fade-up .26s cubic-bezier(.2, .9, .25, 1) .14s both; }
}
@media (min-width: 1400px) {
  .pl-wide.agent-open .pl-app > .pl-main { padding-right: calc(var(--agent-w) + 40px); }
}
@keyframes pl-fade-up { from { opacity: 0; transform: translateY(8px); } }

/* Окна: пейвол, вход. Без скрипта — обычная страница. */

/* --- тарифы, оплата, кабинет (Figma 130:3, 130:220, 130:410, 131:3, 131:125) --- */

.pl-mid .pl-col, .pl-mid .pl-foot { max-width: 820px; }
.pl-ok { margin: 0 0 18px; padding: 12px 16px; border-radius: 12px; background: var(--accent-soft); color: var(--accent);
  font-size: 14px; font-weight: 500; }
.pl-link.quiet { color: var(--muted); font-weight: 500; }
/* Кнопка-ссылка: owner.css красит все кнопки в цвет текста — здесь сильнее. */
.owner button.pl-link { color: var(--accent); font-weight: 600; }
.owner button.pl-link.quiet { color: var(--muted); font-weight: 500; }
.pl-sub .pl-actions { align-items: center; gap: 20px; }
.pl-badge.bad { background: var(--bad-bg); color: var(--bad-ink); font-weight: 600; }
.pl-card h2 { font-size: 17px; margin: 0; }
.pl-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.pl-price { display: flex; align-items: baseline; gap: 8px; margin: 0; }
.pl-price b { font-size: 34px; line-height: 1.1; font-weight: 700; color: var(--ink); }
.pl-price b.word { font-size: 26px; }
.pl-price span { font-size: 14px; color: var(--muted); }
.pl-plan-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; font-size: 14px; }
.pl-plan-list li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink); }
.pl-plan-list li svg { flex-shrink: 0; margin-top: 2px; color: var(--pro-hi); }
.pl-plan-list li.no { color: var(--muted); }
.pl-plan-list li.no svg { color: var(--faint); }
.pl-plan-list.boxed { padding: 16px 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); gap: 10px; }

.pl-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.pl-tier { display: flex; flex-direction: column; gap: 14px; }
.pl-tier h2 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 18px; }
.pl-tier.pro { border: 2px solid var(--pro-hi); padding: 21px; }
.pl-plan-note { margin: 0; padding-bottom: 16px; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.pl-plan-list { flex: 1; }
.pl-tier .pl-btn { margin-top: 18px; }
.pl-plan-foot { margin-top: 18px; text-align: center; font-size: 13px; color: var(--muted); }
.pl-faq { display: flex; flex-direction: column; gap: 14px; }
.pl-faq b { font-size: 14px; }
.pl-faq p { margin: 4px 0 0; font-size: 14px; color: var(--muted); }
.pl-legal { margin-top: 14px; }

.pl-paywall { max-width: 520px; margin: 24px auto; padding: 28px; border-radius: 22px; background: var(--panel);
  border: 1px solid var(--line); display: flex; flex-direction: column; gap: 16px; }
.pl-paywall h2 { font-size: 24px; line-height: 1.3; margin: 0; }
.pl-paywall .lede { margin: 0; font-size: 15px; }
.pl-paywall-top { display: flex; align-items: flex-start; justify-content: space-between; }
.pl-paywall-lock { width: 48px; height: 48px; border-radius: 12px; background: var(--pro-bg); color: var(--pro);
  display: inline-flex; align-items: center; justify-content: center; }
.pl .pl-paywall-x { color: var(--muted); padding: 6px; border-radius: 8px; }
.pl-paywall-x:hover { background: var(--hover); }
.pl .pl-paywall-later { align-self: center; color: var(--muted); font-weight: 600; font-size: 15px; text-decoration: none; }
.pl .pl-paywall-later:hover { color: var(--ink); }
.pl-paywall-legal { align-self: center; margin: -8px 0 0; }
.pl .pl-paywall-legal a, .pl .pl-sub-legal a { color: inherit; }
.pl-sub-legal { margin: 14px 0 0; }
dialog.pl-modal { border: 0; padding: 0; background: transparent; max-width: calc(100vw - 32px); max-height: calc(100vh - 32px);
  overflow: auto; }
dialog.pl-modal::backdrop { background: rgba(17, 19, 21, .42); }
dialog.pl-modal .pl-paywall { margin: 0; box-shadow: 0 24px 64px rgba(17, 19, 21, .25); }

.pl-paysteps { display: flex; gap: 22px; list-style: none; margin: 0 0 22px; padding: 0; font-size: 14px; color: var(--muted); }
.pl-paysteps li { display: inline-flex; align-items: center; gap: 8px; }
.pl-paysteps i { width: 22px; height: 22px; border-radius: 50%; background: var(--badge-bg); color: var(--badge-ink);
  font-style: normal; font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; }
.pl-paysteps li.done, .pl-paysteps li.on { color: var(--ink); }
.pl-paysteps li.done i, .pl-paysteps li.on i { background: var(--doing); color: #fff; }
.pl-paysteps li.on { font-weight: 600; }
.pl-buy, .pl-cardform { margin-bottom: 20px; display: flex; flex-direction: column; gap: 12px; }
.pl-buy .row, .pl-history .row { display: flex; justify-content: space-between; gap: 12px; margin: 0; font-size: 15px; }
.pl-buy .row.muted { color: var(--muted); }
.pl-buy .ok, .pl-history .ok { color: var(--pro); font-weight: 600; }
.pl-history .bad { color: var(--bad-ink); font-weight: 600; }
.pl-buy .row.total { padding-top: 14px; border-top: 1px solid var(--line); font-weight: 600; align-items: baseline; }
.pl-buy .row.total b { font-size: 20px; }
.pl-history { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.pl-testmode { display: flex; gap: 8px; margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--doing-bg);
  color: var(--doing); font-size: 13px; }
.pl-testmode svg { flex-shrink: 0; margin-top: 1px; }
.pl-lab { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
/* Только поле ввода: у карточки текста поста тот же класс, и высота 48px
   выталкивала текст на кнопки (26.10). */
.pl input.pl-text { height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel);
  font: inherit; font-size: 15px; font-weight: 400; color: var(--ink); width: 100%; min-width: 0; }
.pl input.pl-text:focus { border-color: var(--accent); outline: none; }
.pl-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pl-tick { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 14px; }
.pl-tick .box { width: 18px; height: 18px; border-radius: 5px; background: var(--doing); color: #fff; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center; }
.pl-decline { align-self: center; font-size: 13px; color: var(--muted); font-weight: 500; }

.pl-paid { display: flex; flex-direction: column; gap: 16px; padding: 32px; }
.pl-paid h1 { font-size: 30px; line-height: 1.3; margin: 0; }
.pl-paid .lede { margin: 0; }
.pl-paid-ok { width: 64px; height: 64px; border-radius: 50%; background: var(--pro-bg); color: var(--pro);
  display: inline-flex; align-items: center; justify-content: center; }
.pl-facts { padding: 14px 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg);
  display: flex; flex-direction: column; gap: 8px; }
.pl-facts.plain { padding: 0; border: 0; background: none; margin: 14px 0; }
.pl-facts p { display: flex; justify-content: space-between; gap: 12px; margin: 0; font-size: 14px; }
.pl-facts span { color: var(--muted); }

.pl-me { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.pl-me-ava { width: 44px; height: 44px; border-radius: 50%; background: #4a6572; color: #fff; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-size: 15px; }
.pl-me-who { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pl-me-who small { color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.pl-sub, .pl-projects, .pl-memory, .pl-login { margin-bottom: 20px; }
.pl-sub-note { margin: 10px 0 14px; font-size: 14px; color: var(--muted); }
.pl-prow { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line);
  color: inherit; text-decoration: none; }
.pl-card-head + .pl-prow { border-top: 0; padding-top: 0; }

.pl-prow-text { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 15px; }
.pl-prow-text small { color: var(--muted); font-size: 13px; }
.pl-prow-end { display: flex; align-items: center; gap: 14px; flex-shrink: 0; font-size: 14px; }
.pl-prow-end small { color: var(--muted); }
.pl-line { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.pl-line-row { display: flex; gap: 10px; }
.pl-line-row .pl-text { flex: 1; }

/* --- планшет и телефон --------------------------------------------------- */

@media (max-width: 1180px) {
  .pl-app { grid-template-columns: minmax(0, 1fr); }
  .pl-top {
    display: flex; align-items: center; gap: 10px; position: sticky; top: 0; z-index: 35; height: 64px;
    padding: 0 16px; background: var(--bg);
  }
  .pl-top .pl-brand { flex: 1; }
  .pl-top-ask { display: inline-flex; align-items: center; gap: 8px; padding: 5px 16px 5px 5px; border-radius: 999px;
    border: 1px solid var(--line); background: var(--panel); font: 600 15px/1.3 var(--font); color: var(--ink); cursor: pointer; }
  .pl-top-ask img { width: 30px; height: 30px; border-radius: 50%; }
  .pl-top-login { font-weight: 600; font-size: 16px; text-decoration: none; padding: 8px 4px; }
  .pl-side {
    position: fixed; z-index: 60; top: 0; left: 0; bottom: 0; height: auto; width: 300px; max-width: 86vw;
    background: var(--panel); border-radius: 0 20px 20px 0; transform: translateX(-105%); transition: transform .22s ease;
    padding: 20px 12px;
  }
  html.menu-open .pl-side { transform: none; }
  html.menu-open .pl-scrim-menu { display: block; }
  .pl-side .pl-close { display: inline-flex; }
  /* В шторке список проектов раскрывается на месте, а не сбоку. */
  .pl-sw-list { position: static; width: auto; margin-top: 6px; box-shadow: none; }

  .pl-spacer { flex: 0; min-height: 0; }
  .pl-main { padding: 20px 16px 120px; }
  .pl-main > .o-bar { margin: -20px -16px 16px; top: 64px; }
  .pl-main:has(> .o-compose) { padding-bottom: 0; }
  .pl-main > .o-compose { margin: 24px -16px 0; }
  body:has(.o-compose) .pl-fab { display: none !important; }
  .pl-agent, .pl-wide .pl-agent {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; top: auto; width: auto; height: min(78vh, 640px);
    border-radius: 20px 20px 0 0; border: 1px solid var(--line); box-shadow: 0 -8px 40px rgba(31, 35, 40, .16);
    transform: translateY(105%); transition: transform .34s cubic-bezier(.2, .9, .25, 1); z-index: 55; background: var(--panel);
  }
  .pl-agent::before { content: ""; position: absolute; top: 8px; left: 50%; width: 40px; height: 4px; margin-left: -20px;
    border-radius: 2px; background: var(--line-2); }
  body.agent-open .pl-agent { transform: none; }
  body .pl-scrim-agent { display: block; opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility 0s .25s; }
  body.agent-open .pl-scrim-agent { opacity: 1; visibility: visible; transition: opacity .25s ease; }
  .pl-fab, html.agent-folded .pl-fab, .pl-wide .pl-fab { display: inline-flex; right: 16px; bottom: 16px; }
  body.agent-open .pl-fab { display: none !important; }
  .pl-foot { margin-top: 32px; }
}
.pl-scrim-menu, .pl-scrim-agent { display: none; position: fixed; inset: 0; background: rgba(17, 19, 21, .42); border: 0; padding: 0; }
.pl-scrim-menu { z-index: 58; }
.pl-scrim-agent { z-index: 54; }

@media (max-width: 1180px) and (min-width: 700px) {
  .pl-main { padding: 28px 32px 120px; }
  .pl-start-body { padding: 80px 64px; }
  .pl-steps { padding: 18px 64px; }
}

@media (max-width: 760px) {
  .pl-langs h2 { margin-top: 28px; }
  .pl h1, .pl-hello h1, .pl-clients-head h1 { font-size: 26px; }
  .pl .lede { font-size: 15px; }
  .pl-choices { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .pl-paths, .pl-tasks.two { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .pl-pathcard { padding: 20px; }
  .pl-pathcard > b { font-size: 18px; }
  .pl-pathcard .d { font-size: 14px; }
  .pl-pathcard li { font-size: 14px; }
  .pl-fab.home { left: 16px; right: 16px; bottom: 16px; padding: 8px 8px 8px 8px; }
  .pl-fab.home span { flex: 1; }
  .pl-fab.home small { display: block; }
  .pl-fab.home .pl-fab-mic { display: inline-flex; width: 40px; height: 40px; border-radius: 50%; background: var(--accent);
    color: #fff; align-items: center; justify-content: center; }
  .pl-person, .pl-person.yes { padding: 20px 18px; border-radius: 18px; }
  .pl-person-head { flex-direction: column; align-items: stretch; }

  .pl-verdict { align-items: stretch; align-self: stretch; }
  .pl-verdict form { width: 100%; }
  .pl-verdict :is(button, .d) { flex: 1; min-width: 0; }
  .pl-person-who h2 { font-size: 20px; }
  .pl-trait { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .pl-start-top { padding: 0 16px; height: 60px; }
  .pl-steps { padding: 16px; }
  .pl-start-body { padding: 48px 16px; }
  .pl-start-body h1 { font-size: 32px; }
  .pl .pl-audience textarea { font-size: 18px; }
  /* Кнопка прилипает к низу экрана: вопросов много, листать до неё долго. */
  .pl textarea.pl-big { font-size: 22px; }
  .pl-where { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .pl-next { flex-direction: column; align-items: stretch; }
  .pl .pl-task-h1 { font-size: 26px; }
  .pl-ask-box, .pl-rows { padding: 18px; }
  .pl-formats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .pl-format { padding: 12px; }
  .pl-format.on { padding: 11px; }
  .pl-format b { font-size: 15px; }
  .pl-format span { font-size: 12px; }
  .pl-result-actions .pl-btn { flex: 1 1 auto; }
  .pl-task { padding: 12px; }
  .pl-task img { width: 44px; height: 44px; }
  .pl-card { padding: 18px; }

  .pl-project-title { order: 3; flex-basis: 100%; padding: 4px 0 0; }
  .pl-project-title b { font-size: 17px; }
  .pl-actions .pl-btn { flex: 1 1 auto; }
}
@media (max-width: 900px) {
  .pl-plans { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .pl-paywall { padding: 22px; }
  .pl-paywall h2 { font-size: 21px; }
  .pl-paid { padding: 22px; }
  .pl-paid h1 { font-size: 24px; }
  .pl-prow { flex-wrap: wrap; }
  .pl-prow-end { width: 100%; padding-left: 48px; gap: 12px; }
  .pl-prow-end .pl-badge { margin-right: auto; }
  /* Пейвол на телефоне — шторкой снизу (Figma 131:569). */
  dialog.pl-modal { margin: auto 0 0; width: 100vw; max-width: 100vw; max-height: 92vh; }
  dialog.pl-modal .pl-paywall { border-radius: 22px 22px 0 0; max-width: none; border: 0; }
}

/* --- живые кнопки и мягкие переходы ------------------------------------ */

/* Кнопка отвечает на нажатие: чуть проседает и сразу возвращается. Цвет и
   тень на наведении меняются плавно, а не щелчком. */
.pl-btn, .pl-chip, .pl-round, .pl-icon, .pl-fab, .pl-top-ask, .pl-verdict :is(button, .d), .pl-format, .o-btn, .o-quick button {
  transition: transform .18s cubic-bezier(.2, .9, .25, 1), background-color .18s, border-color .18s, color .18s,
    box-shadow .22s, filter .18s, opacity .18s;
}
.pl-btn:active:not(:disabled),
.pl-chip:active,
.pl-fab:active,
.pl-top-ask:active,
.pl-verdict :is(button, .d):active,
.pl-format:active,
.o-btn:active:not(:disabled),
.o-quick button:active { transform: scale(.97); }
.pl-round:active:not(:disabled), .pl-icon:active { transform: scale(.9); }
.pl-btn:hover:not(:disabled) { box-shadow: 0 4px 14px rgba(31, 35, 40, .1); }
.pl-btn.ghost:hover:not(:disabled), .pl-btn.sm:hover:not(:disabled) { box-shadow: none; }
.pl-fab:hover { box-shadow: 0 10px 30px rgba(31, 35, 40, .18); transform: translateY(-1px); }
.pl-nav, .pl-task { transition: background-color .16s, border-color .16s, box-shadow .2s, transform .18s cubic-bezier(.2, .9, .25, 1); }
.pl-task:active { transform: scale(.99); }

/* Смена экрана: меню, верхняя панель и Афанасий стоят на месте, меняется
   только содержимое — старое быстро гаснет, новое проявляется с лёгким
   подъёмом. */
.pl-side { view-transition-name: pl-side; }
.pl-top { view-transition-name: pl-top; }
.pl-agent { view-transition-name: pl-agent; }
::view-transition-old(root) { animation: pl-vt-out .14s ease-in both; }
::view-transition-new(root) { animation: pl-vt-in .32s cubic-bezier(.2, .9, .25, 1) .04s both; }
::view-transition-group(pl-side), ::view-transition-group(pl-top), ::view-transition-group(pl-agent) { animation-duration: .3s; }
@keyframes pl-vt-out { to { opacity: 0; } }
@keyframes pl-vt-in { from { opacity: 0; transform: translateY(8px); } }

@media (prefers-reduced-motion: reduce) {
  .pl-side,
.pl-agent,
.pl-bar i,
.pl-main,
body .pl-scrim-agent,
.pl-btn,
.pl-chip,
.pl-round,
.pl-icon,
.pl-fab,
.pl-top-ask,
.pl-verdict :is(button, .d),
.pl-format,
.o-btn,
.o-quick button { transition: none !important; }
  .pl-skeleton, .pl-agent .typing i, .pl-round.mic.rec, .pl-agent, .pl-fab, .pl-msg { animation: none !important; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

/* --- проект только для чтения (Figma 131:304) --- */
.pl-unpaid { display: flex; align-items: center; gap: 14px; margin: 0 0 28px; padding: 16px 18px; border-radius: 14px;
  background: var(--bad-bg); border: 1px solid var(--bad-line); color: var(--ink); font-size: 13px; }
.pl-unpaid > svg { color: var(--bad-ink); flex-shrink: 0; }
.pl-unpaid div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.pl-unpaid b { color: var(--bad-ink); font-size: 15px; }
.pl-unpaid .pl-btn { flex-shrink: 0; }
.pl-ro-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.pl-ro-head h1 { font-size: 32px; margin: 0; }
.pl-ro-person { margin-bottom: 16px; padding: 16px 18px; }
.pl-ro-person summary { display: flex; align-items: center; gap: 14px; cursor: pointer; list-style: none; }
.pl-ro-person summary::-webkit-details-marker { display: none; }
.pl-ro-face { width: 64px; height: 44px; border-radius: 10px; background: var(--accent-tint); display: inline-flex;
  align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.pl-ro-more { color: var(--faint); font-size: 14px; }
.pl-ro-person[open] .pl-ro-more { visibility: hidden; }
.pl-ro-person > p { margin: 14px 0; color: var(--ink-2); }
.pl-tasks.locked .pl-task { opacity: .55; cursor: default; }
.pl-tasks.locked .pl-task svg { color: var(--faint); }
.pl-btn.danger { color: var(--bad-ink) !important; border-color: var(--bad-line); }
@media (max-width: 760px) {
  .pl-unpaid { flex-wrap: wrap; }
  .pl-unpaid .pl-btn { width: 100%; }
  .pl-ro-head h1 { font-size: 26px; }
}

/* --- «Все портреты проверены» и плитки задач в три колонки ---------------- */
.pl-btn.off { color: var(--faint) !important; background: var(--bg); cursor: default; }
.pl-choices.three { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 14px; }
.pl-all-ok { display: flex; align-items: center; gap: 16px; margin-top: 28px; padding: 16px 20px; border-radius: 16px; background: var(--doing-bg); }
.pl-all-ok b { flex: 1; display: inline-flex; align-items: center; gap: 8px; font-size: 16px; }
.pl-all-ok b svg { color: var(--doing); }

/* «Скопировать сообщение» в блоке цены. */
.pl-offer-copy { align-self: flex-start; }

@media (max-width: 1180px) and (min-width: 761px) {
  .pl-choices.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .pl-choices.three { grid-template-columns: minmax(0, 1fr); }
  .pl-all-ok { flex-direction: column; align-items: stretch; }
  .pl-ask:has(form) { flex-wrap: wrap; }
  .pl-ask:has(form) b { flex: 1 1 calc(100% - 40px); }
  .pl-ask form, .pl-ask form .pl-btn { width: 100%; justify-content: center; }

  .pl-verdict .pl-btn { justify-content: center; }
}

/* --- Главная: проекты плитками и этап, на котором остановились ------------ */
.pl-proj-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pl-proj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 14px; margin: 14px 0 8px; }
.pl-proj { position: relative; display: flex; flex-direction: column; padding: 20px; border-radius: 18px; background: var(--panel);
  border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.pl-proj-main { flex: 1; display: flex; flex-direction: column; gap: 14px; }
.pl .pl-proj-main, .pl .pl-proj-main:hover { color: var(--ink); text-decoration: none; }
.pl-proj-del { position: absolute; right: 16px; bottom: 22px; }
.pl-proj-del button { border: 0; background: none; padding: 6px; border-radius: 8px; color: var(--faint); cursor: pointer; display: flex; }
.pl-proj-del button:hover { color: var(--bad-ink); background: var(--bad-bg); }
.pl-proj:hover { border-color: var(--line-2); box-shadow: 0 2px 10px rgba(31, 35, 40, .05); }
.pl .pl-proj, .pl .pl-proj:hover { color: var(--ink); text-decoration: none; }
.pl .pl-proj.new { color: var(--doing); }
.pl-proj.on { border: 2px solid var(--accent); padding: 19px; }
.pl-proj-head { display: flex; align-items: center; gap: 10px; }
.pl-proj-ico { width: 52px; height: 52px; flex-shrink: 0; border-radius: 14px; background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center; font-size: 28px; line-height: 1; }
.pl-proj-head .pl-badge { align-self: flex-start; margin-top: 6px; }
.pl-proj .pl-project-title { order: 0; flex-basis: auto; padding: 0 0 0 4px; }
.pl-proj .pl-project-title b { font-size: 17px; }
.pl-journey { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.pl-journey li { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px;
  background: var(--bg); color: var(--faint); font-size: 13px; font-weight: 500; }
.pl-journey li.done { background: var(--doing-bg); color: var(--doing); }
.pl-journey li.on { background: var(--panel); color: var(--doing); font-weight: 600; box-shadow: inset 0 0 0 1.5px var(--doing); }
.pl-proj-now { font-size: 15px; line-height: 1.4; }
.pl-proj .pl-btn { align-self: flex-start; margin-top: auto; }
.pl-proj.new { align-items: center; justify-content: center; flex-direction: row; gap: 12px; border-style: dashed;
  color: var(--doing); background: transparent; min-height: 120px; }
.pl-proj.new span { display: flex; flex-direction: column; font-size: 16px; font-weight: 600; }
.pl-proj.new small { font-size: 13px; font-weight: 400; color: var(--muted); }
@media (max-width: 760px) {
  .pl-proj-grid { grid-template-columns: minmax(0, 1fr); }
  .pl-proj { padding: 16px; } .pl-proj.on { padding: 15px; }
  .pl-proj .pl-btn { align-self: stretch; justify-content: center; }
  .pl-proj-del { right: 12px; top: 12px; bottom: auto; }
  .pl-proj-head { padding-right: 28px; }
}

/* --- «Для какого проекта?» (задача с главной при нескольких проектах) ---- */
.pl-pick { width: min(520px, calc(100vw - 32px)); padding: 24px; border: 0; border-radius: 20px; background: var(--panel);
  color: var(--ink); box-shadow: 0 24px 60px rgba(17, 19, 21, .22); }
.pl-pick::backdrop { background: rgba(17, 19, 21, .45); }
.pl-pick-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pl-pick-head h2 { font-size: 22px; }
.pl-pick-x { border: 0; background: none; padding: 6px; border-radius: 8px; color: var(--muted); cursor: pointer; display: flex; }
.pl-pick-x:hover { background: var(--bg); }
.pl-pick .lede { margin: 4px 0 16px; }
.pl-pick-list { display: flex; flex-direction: column; gap: 10px; }
.pl-pick-list a { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 14px; border: 1px solid var(--line);
  background: var(--panel); text-decoration: none; }
.pl .pl-pick-list a { color: var(--ink); }
.pl-pick-list a:hover { border-color: var(--line-2); box-shadow: 0 2px 10px rgba(31, 35, 40, .05); }
.pl-pick-list a > span:nth-child(2) { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pl-pick-list b { font-size: 16px; font-weight: 600; }
.pl-pick-list small { font-size: 13px; color: var(--muted); }
.pl-pick-list svg { color: var(--doing); flex-shrink: 0; }
.pl-pick-list .pl-proj-ico { width: 44px; height: 44px; font-size: 24px; border-radius: 12px; }
/* Своё окно подтверждения (owner.js, confirms) — вместо системного confirm(). */
.pl-confirm h2 { font-size: 20px; line-height: 1.35; margin: 0; }
.pl-confirm .lede { margin: 8px 0 0; }
.pl-confirm-act { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }
@media (max-width: 760px) { .pl-confirm h2 { font-size: 18px; } .pl-confirm-act { flex-direction: column-reverse; }
  .pl-confirm-act .pl-btn { width: 100%; } }

/* --- Появление блоков (owner.js, fades — AnimatedContent): до прихода скрипта блоки
   скрыты, но не навсегда — через 3 с проявятся сами, даже если скрипт
   не загрузился. Без JS и при «меньше движения» — сразу видны. --------- */
@keyframes pl-fade-safety { to { visibility: visible; } }
html.js :is(.pl-proj-grid > *, .pl-tasks > *, .pl-choices > *, .pl-next-tools > *, .pl-pick-list > *):not([data-faded]) {
  visibility: hidden; animation: pl-fade-safety 0s 3s forwards;
}
@media (prefers-reduced-motion: reduce) {
  html.js :is(.pl-proj-grid > *, .pl-tasks > *, .pl-choices > *, .pl-next-tools > *, .pl-pick-list > *):not([data-faded]) { visibility: visible; animation: none; }
}

/* --- Кнопка записи голоса — VoicePill (React Bits), owner.js voiceFor. --- */
.voice-pill {
  --vp-accent: #fff; --vp-icon: var(--accent); --vp-bg: var(--accent-soft); --vp-on: var(--ink);
  --vp-slide: 0px; --vp-cancel: 0; --vp-open: 200ms; --vp-ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  position: relative; display: inline-grid !important; place-items: center; isolation: isolate;
  width: var(--vp-size); height: var(--vp-size); padding: 0; border: 0; border-radius: var(--vp-radius);
  background: transparent !important; color: var(--vp-icon) !important; animation: none !important; box-shadow: none !important;
  user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent;
  touch-action: none; transition: transform 160ms var(--vp-ease-out), color 150ms ease;
}
.voice-pill[hidden] { display: none !important; }
.o-round.voice-pill { --vp-bg: var(--accent); --vp-icon: var(--accent-ink); }
.voice-pill[data-state="listening"] { z-index: 2; color: var(--vp-accent) !important; }
.voice-pill[data-pressed] { transform: scale(.95); }
.voice-pill:disabled { opacity: .55; }
.voice-pill__capsule { position: absolute; inset: 0 0 0 calc(-1 * (var(--vp-reach) + var(--vp-extra))); border-radius: var(--vp-radius);
  background: var(--vp-bg); clip-path: inset(0 0 0 calc(var(--vp-reach) + var(--vp-extra)) round var(--vp-radius));
  pointer-events: none; transition: clip-path var(--vp-open) var(--vp-ease-out), background-color 150ms ease; z-index: -1; }
@media (hover: hover) and (pointer: fine) {
  .voice-pill[data-state="idle"]:not(:disabled):hover .voice-pill__capsule { background: color-mix(in srgb, var(--vp-icon) 14%, var(--vp-bg)); }
}
.voice-pill[data-state="listening"] .voice-pill__capsule { background: var(--vp-on); clip-path: inset(0 0 round var(--vp-radius)); }
.voice-pill__time { position: absolute; top: 0; bottom: 0; right: 100%; display: grid; place-items: center; width: var(--vp-clock-w);
  color: var(--vp-accent); font-size: var(--vp-time-size); font-weight: 500; font-variant-numeric: tabular-nums; line-height: 1;
  opacity: 0; filter: blur(2px); transform: translateX(var(--vp-slide)); pointer-events: none;
  transition: opacity 200ms ease, filter 200ms ease, transform 240ms var(--vp-ease-out); }
.voice-pill[data-state="listening"] .voice-pill__time { opacity: calc(1 - var(--vp-cancel)); filter: blur(0); }
.voice-pill__wave { position: absolute; top: 18%; right: calc(100% + var(--vp-clock-w)); width: var(--vp-wave-w); height: 64%;
  opacity: 0; filter: blur(2px); transform: translateX(var(--vp-slide)); pointer-events: none;
  transition: opacity 200ms ease, filter 200ms ease, transform 240ms var(--vp-ease-out); }
.voice-pill[data-state="listening"] .voice-pill__wave { opacity: calc(1 - var(--vp-cancel)); filter: blur(0); }
.voice-pill__cancel { position: absolute; top: 0; bottom: 0; right: 100%; display: inline-flex; align-items: center; justify-content: center;
  width: var(--vp-extra); color: var(--vp-accent); font-size: var(--vp-time-size); font-weight: 500; line-height: 1;
  opacity: var(--vp-cancel); pointer-events: none; white-space: nowrap; }
.voice-pill[data-sliding] .voice-pill__time, .voice-pill[data-sliding] .voice-pill__wave, .voice-pill[data-sliding] .voice-pill__glyph {
  transition-property: opacity, filter; }
.voice-pill__glyph { position: relative; display: grid; place-items: center; width: var(--vp-size); height: var(--vp-size);
  transform: translateX(var(--vp-slide)); transition: transform 240ms var(--vp-ease-out); }
.voice-pill__glyph > * { grid-area: 1 / 1; transition: opacity 200ms ease, filter 200ms ease, transform 200ms var(--vp-ease-out); }
.voice-pill__mic { display: inline-flex; }
.voice-pill__stop { width: var(--vp-stop); height: var(--vp-stop); border-radius: 22%; background: currentColor;
  opacity: 0; filter: blur(2px); transform: scale(.6); }
.voice-pill[data-state="listening"] .voice-pill__mic { opacity: 0; filter: blur(2px); transform: scale(.7); }
.voice-pill[data-state="listening"] .voice-pill__stop { opacity: 1; filter: blur(0); transform: scale(1); }
@media (prefers-reduced-motion: reduce) {
  .voice-pill { transform: none !important; transition: color 150ms ease; }
  .voice-pill__capsule { transition: background-color 150ms ease; }
  .voice-pill__glyph > *, .voice-pill__time, .voice-pill__wave, .voice-pill__glyph { filter: none !important; transform: none !important; transition: opacity 200ms ease; }
}

/* ---------------------------------------------------------------------
   Инсайт «Что на самом деле покупают у вас» (Figma 439:459, 440:593).
   Догадка — пунктир и тихая метка, без тревожных цветов.
   --------------------------------------------------------------------- */
.pl {
  --ins-green: #000000; --ins-green-soft: #f2f2f2; --ins-idea: #000000;
  --ins-cell: #f2f2f2;
  --ins-dash: #767676; --ins-paper-top: #fafafa; --ins-paper-bottom: #f0f0f0;
  --ins-paper-line: #d9d9d9; --ins-paper-ink: #595959; --ins-shadow: none;
}
:root[data-theme="dark"] .pl {
  --ins-green: #f2f2f2; --ins-green-soft: #1f1f1f; --ins-cell: #1f1f1f; --ins-dash: #8c8c8c; --ins-idea: #f2f2f2;
  --ins-paper-top: #1c1c1c; --ins-paper-bottom: #171717; --ins-paper-line: #333333; --ins-paper-ink: #a6a6a6;
}
.pl-ins-head { margin: 0 0 20px; }
a.pl-ins-back { display: inline-flex; align-items: center; gap: 5px; font-size: 14px; color: var(--ins-green); text-decoration: none; }

.pl-ins-card { position: relative; margin: 0 0 16px; padding: 24px; border-radius: 18px; background: var(--panel); box-shadow: var(--ins-shadow); }
.pl-ins-card.guess { box-shadow: none; border: 1.5px dashed var(--ins-dash); padding: 22.5px; }
.pl-ins-label { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 14px; font-size: 14px; font-weight: 600; color: var(--muted); }
.pl-ins-guess { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: 999px;
  background: var(--ins-cell); font-size: 13px; font-weight: 500; color: var(--muted); }
.pl-ins-new { display: inline-block; margin: -4px 0 12px; padding: 3px 10px; border-radius: 999px; background: var(--ins-green-soft);
  color: var(--ins-green); font-size: 13px; font-weight: 500; }
.pl-ins-hero { background: var(--ins-green); color: #fff; box-shadow: none; }
.pl-ins-hero.guess { border-color: rgba(255, 255, 255, .55); }
.pl-ins-hero .pl-ins-label, .pl-ins-hero .pl-ins-check { color: #fff; }
.pl-ins-hero .pl-ins-guess { background: rgba(255, 255, 255, .16); color: #fff; }
.pl-ins-hero .pl-ins-new { background: rgba(255, 255, 255, .16); color: #fff; }
.pl-ins-hero h2 { margin: 0; font-size: 26px; line-height: 1.35; font-weight: 700; }

.pl-ins-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pl-ins-cell { padding: 14px 16px; border-radius: 12px; background: var(--ins-cell); }
.pl-ins-cell + .pl-ins-cell, .pl-ins-tiers + .pl-ins-cell { margin-top: 12px; }
.pl-ins-pair .pl-ins-cell + .pl-ins-cell { margin-top: 0; }
.pl-ins-cell.green { background: var(--ins-green-soft); }
.pl-ins-cell small { display: block; margin-bottom: 6px; font-size: 13px; color: var(--muted); }
.pl-ins-cell.green small { color: var(--ins-green); }
.pl-ins-cell p { margin: 0; font-size: 16px; line-height: 26px; }
.pl-ins-cell ul { margin: 0; padding-left: 20px; font-size: 16px; line-height: 26px; }
.pl-ins-letter { margin-top: 10px !important; padding-left: 12px; border-left: 3px solid var(--ins-green); font-style: italic; }
.pl-ins-cell .pl-btn { margin-top: 12px; }

.pl-ins-lead { margin: 0 0 14px; font-size: 16px; line-height: 26px; }

.pl-ins-tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.pl-ins-tier { padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; }
.pl-ins-tier.on { border: 1.5px solid var(--ins-green); background: var(--ins-green-soft); }
.pl-ins-tier p { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 8px; font-size: 15px; }
.pl-ins-tier p span { padding: 2px 9px; border-radius: 999px; background: var(--ins-green); color: #fff; font-size: 12px; font-weight: 500; }
.pl-ins-tier strong { display: block; font-size: 22px; line-height: 1.3; }
.pl-ins-tier small { display: block; margin-top: 4px; font-size: 13px; line-height: 20px; color: var(--muted); }
.pl-ins-small, .pl-ins-check { margin: 12px 0 0; font-size: 14px; line-height: 22px; color: var(--muted); }
.pl-ins-verdict { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.pl-ins-verdict button { display: inline-flex; align-items: center; gap: 5px; min-height: 34px; padding: 5px 14px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--panel); color: var(--ink); font: inherit; font-size: 14px; cursor: pointer; }
.pl-ins-verdict button.on { border-color: var(--ins-green); background: var(--ins-green-soft); color: var(--ins-green); font-weight: 600; }
.pl-ins-verdict.on-green button { background: transparent; border-color: rgba(255, 255, 255, .6); color: #fff; }
.pl-ins-verdict.on-green button.on { background: #fff; border-color: #fff; color: var(--ins-green); }
.pl-ins-why { margin-top: 16px; padding: 16px; border-radius: 12px; background: var(--ins-cell); color: var(--ink); }
.pl-ins-why > b { display: block; margin-bottom: 12px; font-size: 15px; }
.pl-ins-reasons { display: flex; flex-wrap: wrap; gap: 8px; }
.pl-ins-reasons label { position: relative; cursor: pointer; }
.pl-ins-reasons input { position: absolute; opacity: 0; pointer-events: none; }
.pl-ins-reasons span { display: inline-flex; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--panel); font-size: 14px; }
.pl-ins-reasons input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--panel); }
.pl-ins-reasons input:focus-visible + span { outline: 3px solid var(--ins-green); outline-offset: 2px; }
.pl-ins-why input[type="text"] { width: 100%; max-width: 420px; margin-top: 10px; padding: 9px 14px; border: 1px solid var(--line);
  border-radius: 10px; background: var(--panel); color: var(--ink); font: inherit; font-size: 15px; }
.pl-ins-go { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.pl-ins-go .pl-btn:not(.ghost) { background: var(--ins-green); border-color: var(--ins-green); }
.pl-ins-go .pl-btn.idea { background: var(--ins-idea); border-color: var(--ins-idea); }
.pl-ins-swap { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 16px; color: var(--muted); }

.pl-ins-fold, a.pl-ins-fold { display: block; margin: 0 0 12px; border-radius: 18px; color: var(--ink); text-decoration: none; }
.pl-ins-fold > summary, a.pl-ins-fold { display: flex; align-items: center; gap: 12px; padding: 16px 20px; cursor: pointer; list-style: none; }
.pl-ins-fold > summary::-webkit-details-marker { display: none; }
.pl-ins-fold span { flex: 1; min-width: 0; }
.pl-ins-fold b { display: block; font-size: 15px; }
.pl-ins-fold small { display: block; margin-top: 2px; font-size: 13px; line-height: 20px; color: var(--muted); }

/* Карточка инсайта над портретами. */
a.pl-ins-teaser, .pl-ins-teaser { display: flex; align-items: center; gap: 16px; margin: 0 0 20px; padding: 18px 20px; border-radius: 18px;
  background: var(--ins-green); color: #fff; text-decoration: none; }
.pl-ins-teaser span { flex: 1; min-width: 0; }
.pl-ins-teaser small { display: block; font-size: 13px; color: #fff; }
.pl-ins-teaser b { display: block; margin-top: 4px; font-size: 18px; line-height: 1.4; }
.pl-ins-teaser.wait { background: var(--ins-green-soft); color: var(--ink); }
.pl-ins-teaser.wait small { color: var(--muted); }
.pl-ins-teaser form { margin: 0; }
@media (max-width: 760px) {

  .pl-ins-card { padding: 18px; }
  .pl-ins-card.guess { padding: 16.5px; }
  .pl-ins-hero h2 { font-size: 22px; }
  .pl-ins-pair, .pl-ins-tiers { grid-template-columns: minmax(0, 1fr); }
  .pl-ins-verdict { justify-content: stretch; }
  .pl-ins-verdict button { flex: 1; justify-content: center; }
  .pl-ins-go .pl-btn { flex: 1 1 auto; justify-content: center; }
}

/* ---------------------------------------------------------------------
   Карточки и портрет на бумаге (ТЗ 21.10, Figma 481:290, 365:344).
   Карточка — белая, радиус 18, без рамки, мягкая тень. Портрет — бумага с
   пачкой листов.
   --------------------------------------------------------------------- */
.pl-card, .pl-task, .pl-proj, .pl-person, .pl-skeleton {
  border-color: transparent; box-shadow: var(--card-shadow); border-radius: 18px;
}
.pl-task:hover, .pl-proj:hover { border-color: transparent; box-shadow: 0 8px 28px rgba(31, 35, 40, .1); }
:root[data-theme="dark"] .pl :is(.pl-card, .pl-task, .pl-proj, .pl-person, .pl-skeleton):not(.pl-paper) {
  border-color: var(--line);
}

/* Портрет на бумаге: тёплый градиент без рамки, два листа пачки снизу (6 и
   12 px), мягкая тень, светлая линия сверху, лёгкое зерно. */
.pl-person.pl-paper { position: relative; margin-bottom: 18px; border-radius: 20px; color: var(--ink);
  background: linear-gradient(180deg, var(--paper-top), var(--paper-bottom));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), 0 9px 0 -3px var(--paper-sheet-1), 0 18px 0 -6px var(--paper-sheet-2),
    0 22px 30px rgba(107, 91, 62, .14); }
.pl-person.pl-paper::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.pl-person.pl-paper > * { position: relative; z-index: 1; }
.pl-person.pl-paper.yes { border: 1px solid transparent; padding: 28px 32px; }
.pl-paper-top { display: flex; align-items: center; gap: 8px; margin: 0 0 -4px; font: 600 12px/1 var(--font);
  letter-spacing: .08em; text-transform: uppercase; color: var(--paper-text); }
.pl-paper-top svg { color: #8a6d3b; }
.pl-paper-top b { margin-left: auto; font-weight: 500; letter-spacing: .02em; }
.pl-photo { display: grid; place-items: center; width: 104px; height: 104px; flex-shrink: 0; border-radius: 14px;
  background: #f1e6cf; color: #8a6d3b; }
.pl-meta { margin: 0; font-size: 14px; line-height: 22px; color: var(--muted); }
.pl-paper .pl-divider { background: var(--paper-border); }
.pl-paper .pl-trait + .pl-trait { border-color: var(--paper-border); }
.pl-paper .pl-trait dt { color: var(--paper-text); }
.pl-paper .pl-trait dt svg { color: #8a6d3b; }
.pl-paper .pl-verdict :is(button, .d), .pl-paper .pl-btn.ghost { background: rgba(255, 255, 255, .55); border-color: var(--paper-border); }
.pl-paper .pl-verdict .y.on, .pl-paper .pl-verdict .n.on { background: #fff; border-color: var(--paper-border); color: var(--ink); }
.pl-paper .pl-verdict .y.on svg { color: var(--green); }
.pl-paper .pl-verdict .n.on svg { color: var(--danger); }
.pl-paper .pl-badge, .pl-paper .pl-badge.new { display: inline-flex; align-items: center; gap: 6px; background: #fff; color: var(--paper-text); }
.pl-paper .pl-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
:root[data-theme="dark"] .pl-photo { background: #2b2519; color: #d7c7a6; }
:root[data-theme="dark"] .pl-paper .pl-verdict :is(button, .d), :root[data-theme="dark"] .pl-paper .pl-btn.ghost,
:root[data-theme="dark"] .pl-paper .pl-badge { background: rgba(0, 0, 0, .2); color: var(--ink); }

@media (max-width: 760px) {
  .pl-photo { width: 72px; height: 72px; }
  .pl-person.pl-paper.yes { padding: 20px 18px; }

}

/* Шаг 4: «Немного вопросов» (Figma 335:229, 438:460; вопросы про факты — Figma v4,
   вернулся 22.10 в анализе v2). Правила — те же, что были до 22.10. */
.pl-start-body.pl-intro { padding-top: 72px; }
.pl-intro h1 { font-size: 54px; margin-bottom: 28px; }
.pl-intro-qs { display: flex; flex-direction: column; gap: 24px; max-width: 1000px; }
.pl-intro-q { border: 0; padding: 0; margin: 0; min-width: 0; }
.pl-intro-q legend { padding: 0; margin-bottom: 12px; font-size: 22px; font-weight: 600; line-height: 1.3; }
.pl-intro-chips { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.pl-intro-chips label { position: relative; cursor: pointer; }
.pl-intro-chips input[type="radio"], .pl-intro-chips input[type="checkbox"] { position: absolute; opacity: 0; pointer-events: none; }
.pl-intro-chips span { display: inline-flex; align-items: center; min-height: 41px; padding: 9px 16px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--panel); font-size: 15px; font-weight: 500; line-height: 1.4; }
.pl-intro-chips label:hover span { border-color: var(--muted); }
.pl-intro-chips input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--panel); }
.pl-intro-q[data-multi] .pl-intro-chips input:checked + span::before { content: ""; width: 14px; height: 14px; margin-right: 8px;
  background: currentColor; -webkit-mask: var(--pl-check) center / contain no-repeat; mask: var(--pl-check) center / contain no-repeat; }
.pl-intro { --pl-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }
.pl-intro-chips input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.pl-intro-chips .idk span { background: var(--panel); color: var(--muted); }
.pl-intro-chips .own span { min-height: 0; padding: 4px 2px; border: 0; background: none; color: var(--ins-green, var(--accent));
  font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.pl-intro-chips label.own:hover span { border: 0; }
html.js .pl-intro-chips .own.off { display: none; }
.pl-intro-own { min-height: 44px; width: 100%; max-width: 520px; padding: 10px 16px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--panel); color: var(--ink); font: 400 16px/1.4 var(--font); outline: none; }
.pl-intro-own:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
html.js .pl-intro-own { display: none; }
html.js .pl-intro-chips:has([data-own]:checked) .pl-intro-own { display: block; flex-basis: 100%; }
html.js .pl-intro-chips:has([data-own]:checked) .own { display: none; }
.pl-intro-go { margin-top: 32px; gap: 20px; }
.pl-intro .pl-go .pl-btn:disabled { background: var(--badge-bg); border-color: var(--badge-bg); color: var(--muted); cursor: default; }
.pl-intro-wait { display: flex; flex-direction: column; gap: 24px; }
.pl-intro-status { margin: 0; display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 500; color: var(--muted); }
.pl-intro-status i { width: 10px; height: 10px; border-radius: 50%; background: var(--doing); animation: pl-intro-pulse 1.2s ease-in-out infinite; }
.pl-intro-ghost { display: flex; flex-direction: column; gap: 14px; }
.pl-intro-ghost b, .pl-intro-ghost i { display: block; background: var(--badge-bg); }
.pl-intro-ghost b { height: 22px; max-width: 100%; border-radius: 6px; }
.pl-intro-ghost span { display: flex; flex-wrap: wrap; gap: 10px; }
.pl-intro-ghost i { height: 41px; border-radius: 999px; width: 140px; }
.pl-intro-ghost i:nth-child(2n) { width: 190px; }
.pl-intro-ghost i:nth-child(3n) { width: 110px; }
@keyframes pl-intro-pulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .pl-intro-status i { animation: none; } }
@media (max-width: 1180px) and (min-width: 700px) {
  .pl-start-body.pl-intro { padding: 48px 40px 56px; }
  .pl-intro h1 { font-size: 40px; }
  .pl-intro-q legend { font-size: 20px; }
  .pl-intro-chips { gap: 8px; }
  .pl-intro-chips span { font-size: 16px; padding: 8px 14px; }
}
@media (max-width: 760px) {
  .pl-start-body.pl-intro { padding: 24px 16px 0; }
  .pl-intro h1 { font-size: 28px; margin-bottom: 18px; }
  .pl-intro-q legend { font-size: 18px; margin-bottom: 10px; }
  .pl-intro-chips { gap: 8px; }
  .pl-intro-chips span { min-height: 38px; font-size: 15px; padding: 7px 13px; }
  .pl-intro-ghost i { width: 110px; }
  /* Кнопка прилипает к низу экрана: вопросов много, листать до неё долго. */
  .pl-intro-go, .pl-intro .pl-go { position: sticky; bottom: 0; margin: 24px -16px 0; padding: 14px 16px 24px;
    background: var(--panel); border-top: 1px solid var(--line); flex-direction: column; gap: 12px; }
  .pl-intro-go .pl-btn, .pl-intro .pl-go .pl-btn { width: 100%; justify-content: center; }
}

/* Анализ v2 (бриф Ильи 22.10, Figma v4 569:3506): экран результата и полный
   портрет. Подписи блоков — капсом, допущение — пунктир и метка, больше пунктира
   нигде нет. Цвета — токены проекта: монохром — отдельный этап. */
.pl-v2-cap { margin: 0 0 6px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; color: var(--paper-text, var(--muted)); }
.pl-v2-cap span { text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--muted); }
.pl-v2-cap.big { margin: 0 0 14px; font-size: 13px; color: var(--ink); }
.pl-v2-guess { display: inline-flex; padding: 1px 8px; border: 1px dashed var(--ins-dash); border-radius: 999px;
  font-size: 11px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--muted); }
.pl-v2-from, .pl-v2-fresh { display: inline-flex; padding: 1px 8px; border-radius: 999px; background: var(--panel);
  font-size: 11px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--muted); }
.pl-v2-fresh { color: var(--ins-green); }
.chip.pl-v2-guesses { border-style: dashed; }
/* Экран результата: главное */
.pl-v2-main .pl-v2-seems { margin: 0 0 8px; font-size: 16px; line-height: 1.5; opacity: .85; }
.pl-v2-main h2 { font-size: 28px; }
.pl-v2-main .pl-v2-therefore { margin: 12px 0 0; font-size: 17px; line-height: 1.5; }
.pl-v2-asset { margin: 0; font-size: 18px; line-height: 1.55; }
/* Клиенты коротко */
.pl-v2-people { margin-top: 0; }
.pl-v2-card { gap: 16px; }
.pl-v2-card h2 a { color: inherit; text-decoration: none; }
.pl-v2-card h2 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.pl-v2-mini { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 24px; padding-top: 16px;
  border-top: 1px solid var(--paper-border, var(--line)); }
.pl-v2-mini p { margin: 0; font-size: 15px; line-height: 1.5; }
.pl-v2-needs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 15px; line-height: 1.5; }
.pl-v2-open { display: flex; flex-wrap: wrap; gap: 8px; }
.pl-v2-open form { margin: 0; }
/* Свёрнутое */
.pl-v2-fold { background: var(--panel); box-shadow: var(--ins-shadow); }
.pl-v2-fold[open] > summary > svg:last-child { transform: rotate(180deg); }
.pl-v2-fold-body { padding: 0 20px 20px; }
.pl-v2-stranger { margin: 0 0 8px; font-size: 16px; line-height: 1.55; }
/* Полный портрет */
.pl-v2-full h1 { margin: 0; font-size: 28px; line-height: 1.25; font-weight: 700; }
.pl-v2-full .pl-person-who p { font-size: 16px; }
.pl-v2-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 32px; padding-top: 20px;
  border-top: 1px solid var(--paper-border, var(--line)); }
.pl-v2-col { min-width: 0; }
.pl-v2-row { padding: 10px 0; }
.pl-v2-row + .pl-v2-row { border-top: 1px solid var(--paper-border, var(--line)); }
.pl-v2-row > p:last-child { margin: 0; font-size: 16px; line-height: 1.5; }
.pl-v2-row.guess > p:last-child { padding-left: 10px; border-left: 2px dashed var(--ins-dash); }
.pl-v2-ask { margin: 0 0 14px; padding: 14px 16px; border-radius: 12px; background: rgba(255, 255, 255, .6); }
.pl-v2-ask p:last-child { margin: 0; font-size: 16px; line-height: 1.5; }
.pl-v2-need { margin: 0 0 12px; padding: 14px 16px; border: 1px solid var(--paper-border, var(--line)); border-radius: 12px;
  background: rgba(255, 255, 255, .6); }
.pl-v2-need.guess { border-style: dashed; border-color: var(--ins-dash); }
.pl-v2-need.on { border-width: 2px; border-color: var(--ink); padding: 13px 15px; }
.pl-v2-need-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.pl-v2-reject { margin: 0; flex-shrink: 0; }
.pl-v2-reject button { border: 0; background: none; padding: 0; font: 500 13px var(--font); color: var(--muted);
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.pl-v2-reject button:hover, .pl-v2-reject button.on { color: var(--ink); }
.pl-v2-busy { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); flex-shrink: 0; }
.pl-v2-dl { margin: 6px 0 0; display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 6px 14px; }
.pl-v2-dl.wide { grid-template-columns: 190px minmax(0, 1fr); }
.pl-v2-dl dt { font-size: 14px; color: var(--muted); line-height: 1.5; }
.pl-v2-dl dd { margin: 0; font-size: 16px; line-height: 1.5; }
.pl-v2-more { margin: 0 0 12px; }
.pl-v2-more > summary { display: inline-flex; align-items: center; gap: 6px; padding: 6px 0; cursor: pointer; list-style: none;
  font-size: 14px; font-weight: 600; color: var(--paper-text, var(--muted)); }
.pl-v2-more > summary::-webkit-details-marker { display: none; }
.pl-v2-more[open] > summary svg { transform: rotate(180deg); }
.pl-v2-where { margin: 4px 0 0; padding-left: 20px; font-size: 16px; line-height: 1.6; }
.pl-v2-full > .pl-v2-need { margin-top: 4px; }
.pl-v2-full > .pl-v2-stranger { padding: 14px 0 0; border-top: 1px solid var(--paper-border, var(--line)); }
@media (max-width: 760px) {
  .pl-v2-mini, .pl-v2-cols { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .pl-v2-main h2 { font-size: 22px; }
  .pl-v2-full h1 { font-size: 22px; }
  .pl-v2-dl, .pl-v2-dl.wide { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .pl-v2-dl dd + dt { margin-top: 8px; }
  .pl-v2-fold-body { padding: 0 16px 16px; }
}
.pl-v2-asking { align-items: flex-start; }
.pl-v2-asking b { font-size: 18px; line-height: 1.45; }
.pl-v2-asking .pl-chips { margin-top: 14px; }

/* =====================================================================
   ЦА: сегменты v2 (Figma 648:2, 25.10.2026): пять вопросов, проверка
   выводов, ожидание, портреты сегментов, сравнение, «Сохранить и дальше».
   ===================================================================== */

/* --- Экраны без меню: вопросы, проверка, ожидание (Q1–Q5, V, G3–G5) --- */
body.pl.pl-flow { min-height: 100vh; margin: 0; padding: 0; background: var(--mono-sel); }
.pl-flow-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 70px;
  padding: 0 64px; background: var(--panel); border-bottom: 1px solid var(--line); }
.pl-flow-step { font-size: 14px; color: var(--muted); }
.pl-flow-bars { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; padding: 0 64px; }
.pl-flow-bars i { height: 4px; border-radius: 2px; background: var(--line); }
.pl-flow-bars i.on { background: var(--ink); }
.pl-flow-body { padding: 72px 24px 96px; }
.pl-q { max-width: 720px; margin: 0 auto; }
.pl-q-who { display: flex; align-items: center; gap: 10px; margin: 0 0 22px; font-size: 14px; font-weight: 600; }
.pl-q-who img { border-radius: 50%; }
.pl-q h1 { margin: 0 0 28px; font-size: 40px; line-height: 1.15; font-weight: 700; letter-spacing: -.015em; }
.pl-q-step + .pl-q-step { margin-top: 72px; }
.pl-q-js .pl-q-step + .pl-q-step { margin-top: 0; }
.pl-q-text { display: block; width: 100%; min-height: 64px; padding: 18px 20px; border: 1.5px solid var(--ink);
  border-radius: 6px; background: var(--panel); color: var(--ink); font: 400 18px/1.45 var(--font); resize: none; }
.pl-q-text::placeholder, .pl-q-own::placeholder, .pl-v-note::placeholder { color: var(--faint); }
.pl-q-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.pl-q-text + .pl-q-chips { margin-top: 12px; }
.pl-q-chips[hidden], .pl-q-think[hidden] { display: none; }
.pl-q-think { display: flex; align-items: center; min-height: 46px; margin: 0; font-size: 16px; }
.pl-q-chips label { position: relative; }
.pl-q-chips input { position: absolute; opacity: 0; pointer-events: none; }
.pl-q-chips span { display: inline-flex; align-items: center; min-height: 46px; padding: 10px 20px; border: 1.5px solid var(--ink);
  border-radius: 999px; background: var(--panel); font-size: 16px; cursor: pointer; }
.pl-q-chips input:checked + span { background: var(--ink); color: var(--panel); font-weight: 600; }
.pl-q-chips input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.pl-q-own[hidden], .pl-v-note[hidden] { display: none; }
.pl-q-own { display: block; width: 100%; margin-top: 12px; padding: 12px 16px; border: 1.5px solid var(--ink);
  border-radius: 6px; background: var(--panel); color: var(--ink); font: 400 16px var(--font); }
.pl-q-go { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 32px; }
.pl-q-go.start { justify-content: flex-start; }
.pl-q-go .pl-btn { min-height: 54px; padding: 0 24px; font-size: 16px; }
.pl-q-terms { margin: 56px 0 0; font-size: 13px; color: var(--muted); }
.pl-q-terms a { color: inherit; }
.pl-q .pl-error { margin: 0 0 24px; }

/* Проверка выводов (Figma 655:185) */
.pl-v { max-width: 1040px; }
.pl-v-list { display: flex; flex-direction: column; gap: 16px; }
.pl-v-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 20px; align-items: center; margin: 0;
  padding: 20px; border: 1.5px solid var(--line); border-radius: 6px; background: var(--panel); }
.pl-v-item.picked { border-color: var(--ink); }
.pl-v-text { margin: 0; font-size: 17px; line-height: 1.45; font-weight: 500; }
.pl-v-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.pl-v-btns label { position: relative; }
.pl-v-btns input { position: absolute; opacity: 0; pointer-events: none; }
.pl-v-btns span { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 6px; background: var(--panel); font-size: 15px; cursor: pointer; white-space: nowrap; }
.pl-v-btns input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--panel); font-weight: 600; }
.pl-v-btns input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.pl-v-note { grid-column: 1 / -1; width: 100%; padding: 12px 16px; border: 1.5px solid var(--ink); border-radius: 6px;
  background: var(--panel); color: var(--ink); font: 400 16px var(--font); }

/* Ожидание и ошибка (Figma G3–G5) */
.pl-wait-page { max-width: 560px; }
.pl-wait-page h1 { font-size: 30px; margin-bottom: 18px; }
.pl-wait-note { margin: 0; font-size: 17px; color: var(--muted); }
.pl-wait-bar { position: relative; height: 4px; overflow: hidden; border-radius: 2px; background: var(--line); }
.pl-wait-bar i { position: absolute; inset: 0 auto 0 0; width: 40%; background: var(--ink); border-radius: 2px;
  animation: pl-wait-run 2.4s ease-in-out infinite; }
@keyframes pl-wait-run { 0% { transform: translateX(-100%); } 100% { transform: translateX(250%); } }
@media (prefers-reduced-motion: reduce) { .pl-wait-bar i { animation: none; width: 60%; } }
.pl-wait-about { margin-top: 32px; padding: 22px 24px; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; }
.pl-wait-about-h { margin: 0 0 14px; font-size: 18px; font-weight: 700; }
.pl-wait-about ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.pl-wait-about li { display: block; font-size: 15px; line-height: 1.45; color: var(--muted); }
.pl-wait-about li b { display: block; color: var(--ink); font-weight: 600; }
.pl-wait-about-why { margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.45; }
@media (max-width: 600px) { .pl-wait-about { margin-top: 24px; padding: 18px; } }

/* --- Портреты сегментов (Figma 1.1–1.3, 653:2 … 653:378) --------------- */
.pl-seg-say { display: flex; align-items: center; gap: 16px; margin: 0 0 16px; padding: 16px 20px;
  border: 1.5px solid var(--ink); border-radius: 6px; background: var(--panel); }
.pl-seg-say img { flex: none; border-radius: 50%; }
.pl-seg-say p { margin: 0; font-size: 17px; font-weight: 600; line-height: 1.4; }
.pl-seg-say small, .pl-seg-label span, .pl-seg h2, .pl-cmp h2 { display: block; font-size: 12px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; }
.pl-seg-say small { margin-bottom: 4px; }
.pl-seg-tabs { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: 0 0 24px; }
.pl-seg-tab { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border: 1.5px solid var(--ink); border-radius: 6px;
  background: var(--panel); color: var(--ink); text-decoration: none; }
.pl-seg-tab.on { background: var(--ink); color: var(--panel); }
.pl-seg-tab.off { opacity: .55; }
.pl-seg-tab-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pl-seg-tab-top small { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.pl-seg-tab-top em, .pl-cmp-table th em { padding: 1px 8px; border: 1px solid currentColor; border-radius: 4px;
  font-size: 11px; font-style: normal; font-weight: 600; white-space: nowrap; }
.pl-seg-tab b { font-size: 15px; }
.pl-seg-tab-why { font-size: 12.5px; opacity: .8; }
.pl-seg, .pl-cmp, .pl-next-card { padding: 32px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); }
.pl-seg-label { display: flex; align-items: center; justify-content: space-between; margin: 0 0 20px; }
.pl-seg-label span { display: inline-flex; align-items: center; gap: 6px; }
.pl-seg-label b { font-size: 12px; letter-spacing: .06em; }
.pl-seg-head { display: grid; grid-template-columns: 80px minmax(0, 1fr) auto; gap: 20px; align-items: start; }
.pl-seg-photo { display: grid; place-items: center; width: 80px; height: 80px; border-radius: 6px; background: var(--mono-sel);
  color: var(--muted); }
.pl-seg-who h1 { margin: 0 0 6px; font-size: 26px; line-height: 1.25; font-weight: 700; }
.pl-seg-meta { margin: 0 0 10px; font-size: 14px; color: var(--muted); }
.pl-seg-money { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.pl-pill { display: inline-flex; align-items: center; padding: 4px 12px; border: 1px solid var(--ink); border-radius: 999px;
  font-size: 13px; font-weight: 500; background: var(--panel); color: var(--ink); }
.pl-pill.dark { background: var(--ink); color: var(--panel); font-weight: 600; }
.pl-pill.faint { border: 1px dashed var(--faint); color: var(--muted); background: var(--mono-sel); }
.pl-seg-verdict { display: flex; gap: 8px; }
.pl-seg-verdict .pl-btn.on { background: var(--ink); color: var(--panel) !important; }
.pl-seg-quote { margin: 24px 0; padding: 2px 0 2px 16px; border-left: 3px solid var(--ink); font-size: 18px; font-style: italic;
  line-height: 1.45; }
.pl-seg-route { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; font-size: 12px; }
.pl-seg-route b { font-weight: 700; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.pl-seg-route span { flex: 1; border-top: 1.5px dashed var(--line-2); }
.pl-seg-route i { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; font-style: normal;
  font-weight: 700; font-size: 13px; }
.pl-seg-route i:first-child { background: var(--ink); color: var(--panel); }
.pl-seg-route i:last-child { border: 1.5px solid var(--ink); }
.pl-seg-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: start; }
.pl-seg-a, .pl-seg-b, .pl-seg-path, .pl-seg-norm { padding: 20px; border-radius: 6px; }
.pl-seg-a { border: 1.5px solid var(--ink); }
.pl-seg-b { border: 3px solid var(--ink); }
.pl-seg-path { background: var(--mono-sel); }
.pl-seg h2 { margin: 0 0 14px; }
.pl-seg-a p, .pl-seg-b p { margin: 0 0 14px; font-size: 15px; line-height: 1.45; }
.pl-seg-a p:last-child, .pl-seg-b p:last-child { margin-bottom: 0; }
.pl-seg-a small, .pl-seg-b small, .pl-seg-norm small, .pl-cmp-best small { display: block; margin-bottom: 3px; font-size: 12.5px;
  color: var(--muted); }
.pl-seg-path ol { margin: 0; padding: 0; list-style: none; counter-reset: stop; }
.pl-seg-path li { position: relative; padding: 0 0 16px 38px; counter-increment: stop; font-size: 15px; line-height: 1.45; }
.pl-seg-path li::before { content: counter(stop); position: absolute; left: 0; top: 0; display: grid; place-items: center;
  width: 24px; height: 24px; border: 1.5px solid var(--ink); border-radius: 50%; background: var(--panel); font-size: 12px; font-weight: 700; }
.pl-seg-path li:not(:last-child)::after { content: ""; position: absolute; left: 12px; top: 26px; bottom: 2px; border-left: 1.5px solid var(--ink); }
.pl-seg-path li b { display: block; margin-bottom: 2px; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.pl-seg-path li .said { font-style: italic; }
.pl-seg-norm { margin-top: 20px; border: 1.5px solid var(--ink); }
.pl-seg-norm > div { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.pl-seg-norm p { margin: 0 0 10px; font-size: 14.5px; line-height: 1.45; }
.pl-miss { display: inline-block; margin: 0 0 4px; padding: 0 6px; border: 1px dashed var(--ink); border-radius: 3px;
  font-size: 11px; font-style: normal; }
.pl-seg-go { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* --- Сравнение (Figma 2, 653:567) -------------------------------------- */
.pl-cmp h1 { margin: 0 0 24px; font-size: 30px; line-height: 1.2; font-weight: 700; }
.pl-cmp-top { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 24px; align-items: start; margin-bottom: 28px; }
.pl-cmp-key, .pl-cmp-best { padding: 22px 24px; border-radius: 6px; }
.pl-cmp-key { border: 1.5px solid var(--ink); }
.pl-cmp-best { border: 3px solid var(--ink); }
.pl-cmp h2 { margin: 0 0 12px; }
.pl-cmp-lead { margin: 0 0 12px; font-size: 16px; font-weight: 600; }
.pl-cmp-key ul { margin: 0; padding: 0 0 0 18px; list-style: square; }
.pl-cmp-key li { margin: 0 0 12px; font-size: 15px; line-height: 1.45; }
.pl-cmp-best-top { display: flex; align-items: center; justify-content: space-between; margin: 0 0 10px; font-size: 12px;
  font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.pl-cmp-best-top em { padding: 4px 12px; border-radius: 999px; background: var(--ink); color: var(--panel); font-style: normal; }
.pl-cmp-best h2 { font-size: 19px; letter-spacing: 0; text-transform: none; }
.pl-cmp-best p { margin: 0 0 12px; font-size: 15px; line-height: 1.45; }
.pl-cmp-scroll { overflow-x: auto; border: 1.5px solid var(--ink); border-radius: 6px; }
.pl-cmp-table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 14.5px; line-height: 1.45; }
.pl-cmp-table th, .pl-cmp-table td { padding: 16px 18px; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
.pl-cmp-table thead th { border-top: 0; background: var(--mono-sel); font-size: 17px; }
.pl-cmp-table thead th:first-child { font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.pl-cmp-table thead th span { margin-right: 10px; }
.pl-cmp-table thead th.top { background: var(--ink); color: var(--panel); }
.pl-cmp-table tbody th { width: 22%; background: var(--mono-sel); font-weight: 600; }
.pl-cmp-table td.top { background: var(--mono-sel); }
.pl-cmp-table .pl-pill { margin: 0 6px 6px 0; }

/* --- «Сохранить и дальше» (Figma 3, 653:719) --------------------------- */
.pl-next-card + .pl-next-card { margin-top: 20px; }
.pl-next-card h1 { margin: 0 0 20px; font-size: 28px; font-weight: 700; }
.pl-next-file { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding: 16px 18px; border: 1.5px solid var(--ink); border-radius: 6px; }
.pl-next-file b { flex: 1 1 200px; font-size: 15px; }
.pl-next-w { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 4px; background: var(--ink); color: var(--panel);
  font-weight: 700; }
.pl-next-tools { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.pl-next-tool { display: flex; flex-direction: column; gap: 8px; padding: 18px; border: 1.5px solid var(--ink); border-radius: 6px;
  color: var(--ink); text-decoration: none; }
.pl-next-tool img { filter: grayscale(1); }
.pl-next-tool b { font-size: 17px; }
.pl-next-tool span { font-size: 14px; line-height: 1.45; color: var(--muted); }
.pl-next-tool em { display: inline-flex; align-items: center; gap: 4px; margin-top: auto; font-size: 14px; font-style: normal; font-weight: 600; }
.pl-next-tool:hover { background: var(--mono-sel); }
.pl-author { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 20px; padding: 16px 18px;
  border: 1px solid var(--line); border-radius: 6px; background: var(--panel); }
.pl-author img { flex: none; border-radius: 50%; object-fit: cover; }
.pl-author p { flex: 1 1 260px; margin: 0; font-size: 13px; color: var(--muted); }
.pl-author p b { display: block; margin-bottom: 2px; font-size: 14px; color: var(--ink); }

@media (max-width: 1100px) {
  .pl-seg-cols { grid-template-columns: minmax(0, 1fr); }
  .pl-seg-norm > div { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pl-cmp-top { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .pl-flow-top { padding: 0 16px; height: 59px; }
  .pl-flow-bars { padding: 0 16px; }
  .pl-flow-body { padding: 40px 16px 64px; }
  .pl-q h1 { font-size: 28px; margin-bottom: 20px; }
  .pl-q-chips span { min-height: 42px; padding: 8px 16px; font-size: 15px; }
  .pl-q-go .pl-btn { min-height: 48px; padding: 0 18px; }
  .pl-v-item { grid-template-columns: minmax(0, 1fr); padding: 16px; }
  .pl-v-btns { display: grid; grid-template-columns: 1fr 1fr; }
  .pl-v-btns span { justify-content: center; width: 100%; }
  .pl-seg, .pl-cmp, .pl-next-card { padding: 18px 16px; }
  .pl-seg-tabs { display: flex; overflow-x: auto; margin-left: -16px; margin-right: -16px; padding: 0 16px;
    scrollbar-width: none; }
  .pl-seg-tabs::-webkit-scrollbar { display: none; }
  .pl-seg-tab { flex: 0 0 72%; }
  .pl-seg-head { grid-template-columns: 56px minmax(0, 1fr); }
  .pl-seg-photo { width: 56px; height: 56px; }
  .pl-seg-who h1 { font-size: 21px; }
  .pl-seg-verdict { grid-column: 1 / -1; }
  .pl-seg-verdict .pl-btn { flex: 1; justify-content: center; }
  .pl-seg-quote { font-size: 16px; }
  .pl-seg-route b:not(:first-of-type) { display: none; }
  .pl-seg-norm > div { grid-template-columns: minmax(0, 1fr); }
  .pl-cmp h1 { font-size: 24px; }
  .pl-seg-go .pl-btn, .pl-next-file .pl-btn { width: 100%; justify-content: center; }
}

/* =====================================================================
   «Поддержать проект» (Figma PN 663:198, P 663:85, POP, LIM, PR2, G6, G7).
   ===================================================================== */
.pl-support { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.pl-support.wide { flex-direction: column; flex-wrap: nowrap; align-items: stretch; }
.pl-support-chips { display: flex; gap: 8px; }
.pl-support-every { display: inline-flex; align-self: flex-start; padding: 2px; border: 1px solid var(--ink); border-radius: 6px; }
.pl-support-every label { position: relative; }
.pl-support-every input { position: absolute; opacity: 0; pointer-events: none; }
.pl-support-every span { display: block; padding: 4px 12px; border-radius: 4px; text-align: center; font-size: 13px;
  font-weight: 600; cursor: pointer; white-space: nowrap; }
.pl-support-every input:checked + span { background: var(--ink); color: var(--panel); }
.pl-support-every input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.pl-support.wide .pl-support-chips { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pl-support-chips label { position: relative; }
.pl-support-chips input { position: absolute; opacity: 0; pointer-events: none; }
.pl-support-chips span { display: grid; place-items: center; min-width: 64px; height: 52px; padding: 0 14px;
  border: 1.5px solid var(--ink); border-radius: 6px; background: var(--panel); font-size: 20px; font-weight: 700; cursor: pointer; }
.pl-support.wide .pl-support-chips span { height: 58px; font-size: 22px; }
.pl-support-chips input:checked + span { background: var(--ink); color: var(--panel); }
.pl-support-chips input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.pl-support .pl-btn { min-height: 52px; padding: 0 22px; }
.pl-support-limits { font-size: 14px; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.pl-support:not(.wide) .pl-support-limits { margin-left: auto; }
.pl-next-h { margin: 0 0 20px; font-size: 24px; font-weight: 700; }
.pl-feedback { display: flex; flex-wrap: wrap; gap: 12px; }
.pl-feedback .pl-btn { min-height: 48px; }
.pl-pop h2, .pl-lim h2 { margin: 0; font-size: 22px; line-height: 1.25; }
.pl-pop .pl-paywall-top, .pl-lim .pl-paywall-top { align-items: flex-start; gap: 16px; margin-bottom: 16px; }
.pl-pop .lede { margin: 0 0 16px; }
.pl-lim p { margin: 0 0 14px; font-size: 15px; line-height: 1.5; }
.pl-lim-table { width: 100%; margin: 0 0 18px; border: 1px solid var(--line); border-radius: 6px; border-collapse: separate;
  border-spacing: 0; overflow: hidden; font-size: 15px; }
.pl-lim-table th, .pl-lim-table td { padding: 12px 16px; text-align: left; }
.pl-lim-table th { width: 64px; font-weight: 700; }
.pl-lim-table tr:nth-child(even) { background: var(--mono-sel); }
.pl-lim-small { color: var(--muted); }
.pl-lim-why { display: flex; gap: 12px; padding: 14px 16px; border-radius: 6px; background: var(--mono-sel); }
.pl-lim-why img { flex: none; border-radius: 50%; }
.pl-task-lock { display: inline-flex; color: var(--ink); }
.pl-plans.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pl-tier .pl-plan-list img { flex: none; filter: grayscale(1); }
.pl-tier .pl-support { margin: 4px 0 18px; }
.pl-tier .pl-support.wide .pl-support-chips span { height: 44px; font-size: 16px; }
.pl-paid-tools { display: flex; flex-direction: column; gap: 10px; margin: 18px 0 24px; padding: 0; list-style: none; }
.pl-paid-tools li { display: flex; align-items: center; gap: 10px; font-size: 16px; }
.pl-pay .lede { margin: 0 0 12px; }
.pl-pay-test { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 16px 0; }
.pl-pay-test .pl-key { flex-basis: 100%; margin: 0; }
/* «Мои проекты» (PR2): проект и строки инструментов со счётчиком «4/5». */
.pl-myproj + .pl-myproj { margin-top: 24px; }
.pl-myproj-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.pl-myproj-head .pl-project-title { flex: 1; }
.pl-myproj-rows { border: 1px solid var(--line); border-radius: 6px; padding: 0 16px; }
.pl-myproj-rows p { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 0; padding: 12px 0;
  border-top: 1px solid var(--line); font-size: 15px; }
.pl-myproj-rows p:first-child { border-top: 0; }
.pl-myproj-rows p > span:first-child { display: inline-flex; align-items: center; gap: 10px; flex: 1 1 240px; }
.pl-myproj-rows small { color: var(--muted); font-size: 13px; }
.pl-myproj-rows img { filter: grayscale(1); }
.pl-myproj-rows a, .pl-myproj-rows .pl-link { color: var(--ink); font-weight: 600; text-decoration: none; }
.pl-myproj-rows em.pl-pill { font-style: normal; font-size: 12px; padding: 2px 10px; }
.pl-myproj-rows .pl-lx { color: var(--muted); font-size: 13px; }
.pl-myproj-rows form { display: inline; }
@media (max-width: 760px) {
  .pl-plans.two { grid-template-columns: minmax(0, 1fr); }
  .pl-support:not(.wide) { flex-direction: column; align-items: stretch; }
  .pl-support:not(.wide) .pl-support-chips { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .pl-support:not(.wide) .pl-support-limits { margin-left: 0; }
}

