/* DataNewton · портал сейлов
   Слои: tokens.css (примитивы, генерируется) -> семантика (ниже) -> компоненты.
   Метод: Utopia (fluid type/space), OKLCH color-mix, layout-примитивы (Every Layout), контраст по WCAG AA. */

@font-face { font-family: "PT Root UI"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("/static/fonts/PT-Root-UI_Regular.woff2") format("woff2"); }
@font-face { font-family: "PT Root UI"; font-weight: 500; font-style: normal; font-display: swap;
  src: url("/static/fonts/PT-Root-UI_Medium.woff2") format("woff2"); }
@font-face { font-family: "PT Root UI"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("/static/fonts/PT-Root-UI_Bold.woff2") format("woff2"); }

/* ---------- Tier 2: семантика ---------- */
:root {
  --surface-canvas: var(--color-neutral-1);
  --surface-card: var(--color-white);
  --surface-tint: var(--color-brand-1);
  --surface-hover: color-mix(in oklch, var(--color-brand-5) 6%, white);
  --text: var(--color-neutral-6);
  --text-muted: var(--color-neutral-5);
  --text-faint: var(--color-neutral-4); /* только декор и иконки, не текст */
  --line: var(--color-neutral-3);
  --line-soft: var(--color-neutral-2);
  --action: var(--color-brand-6);
  --action-hover: color-mix(in oklch, var(--color-brand-6) 78%, black);
  --on-action: var(--color-white);
  --focus-ring: 0 0 0 3px color-mix(in oklch, var(--color-brand-5) 30%, transparent);
  --danger: var(--color-negative-6);
  --link: var(--color-brand-6);
  --link-hover: color-mix(in oklch, var(--color-brand-6) 78%, black);
  --card-gap: 0.875rem;
  --accent-line: color-mix(in oklch, var(--color-brand-5) 32%, var(--color-white));
  --glow: var(--color-brand-2);
  --surface-muted: var(--color-neutral-2);
  --surface-warn: var(--color-warning-1);
  --surface-error: var(--color-negative-1);
  --text-error: var(--color-negative-6);
  --surface-ai: var(--color-ai-1);
  --text-ai: var(--color-ai-6);
  --measure: 66ch; /* 45-90 знаков в строке, цель 66 */
  interpolate-size: allow-keywords;
  color-scheme: light;
}

/* Тёмная тема: те же семантические имена, другие значения (токены --dark-* из tokens.css) */
html[data-theme="dark"] {
  color-scheme: dark;
  --surface-canvas: var(--dark-canvas);
  --surface-card: var(--dark-card);
  --surface-tint: var(--dark-tint);
  --surface-hover: var(--dark-hover);
  --surface-muted: var(--dark-muted-bg);
  --surface-warn: var(--dark-warn-bg);
  --surface-error: var(--dark-error-bg);
  --surface-ai: var(--dark-ai-bg);
  --text: var(--dark-text);
  --text-muted: var(--dark-muted);
  --text-faint: var(--dark-faint);
  --text-error: var(--dark-error-text);
  --text-ai: var(--dark-ai-text);
  --line: var(--dark-line);
  --line-soft: var(--dark-line-soft);
  --accent-line: var(--dark-accent-line);
  --glow: var(--dark-glow);
  --link: var(--dark-link);
  --link-hover: var(--dark-link-hover);
  --danger: var(--dark-error-text);
  --shadow-card: 0 0.25rem 1rem #00000040;
  --shadow-header: 0 1px 0 var(--dark-line-soft);
  --focus-ring: 0 0 0 3px color-mix(in oklch, var(--dark-link) 40%, transparent);
}

/* ---------- Reset и база ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--layout-header-h) + var(--space-s)); }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: var(--fs-0);
  line-height: 1.5;
  color: var(--text);
  background: var(--surface-canvas);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
h1, h2, h3 { text-wrap: balance; line-height: 1.2; letter-spacing: -0.01em; }
p, li { text-wrap: pretty; }
.story p, .post__text, .about__text { hyphens: auto; overflow-wrap: break-word; }
time, .chip, .count, .pf-count, .stat__n, .event__date { font-variant-numeric: tabular-nums; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--link-hover); }
:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: var(--radius-1); }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--space-s); top: -4rem; z-index: 100; padding: var(--space-2xs) var(--space-xs);
  background: var(--action); color: var(--on-action); border-radius: var(--radius-2); }
.skip:focus { top: var(--space-xs); }

/* ---------- Layout-примитивы ---------- */
.container { width: min(100% - var(--space-m) * 2, var(--layout-container)); margin-inline: auto; }
.stack > * + * { margin-block-start: var(--stack-gap, var(--space-s)); }
.cluster { display: flex; flex-wrap: wrap; align-items: center; gap: var(--cluster-gap, var(--space-xs)); }
.grid-auto { display: grid; gap: var(--space-s);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--min, 20rem)), 1fr)); }

/* ---------- Оболочка: шапка, левое меню, лента, правая колонка ---------- */
:root { --nav-h: 3.75rem; }
.topbar { position: sticky; top: 0; z-index: 30; background: var(--surface-card); box-shadow: var(--shadow-header); }
.topbar__inner { display: flex; align-items: center; gap: var(--space-xs); min-height: var(--layout-header-h); max-width: 100rem; margin-inline: auto; padding-inline: var(--space-xs); }
.brand { display: inline-flex; align-items: center; gap: var(--space-2xs); flex: none;
  color: var(--text); font-weight: 700; text-decoration: none; letter-spacing: -0.01em; }
.brand:hover { color: var(--text); }
.brand__mark { width: 3rem; height: 3rem; border-radius: 0.875rem; background: var(--surface-tint); object-fit: cover; }
.brand__name { font-size: var(--fs-0); white-space: nowrap; }
.brand__sub { color: inherit; font-weight: 700; }
.search { position: relative; flex: 1 1 auto; min-width: 0; max-width: 34rem; margin-inline: auto; }
.search > .ico { position: absolute; left: 0.9rem; top: 50%; translate: 0 -50%; color: var(--text-muted); pointer-events: none; }
.search input { min-height: 2.5rem; padding-left: 2.6rem; border-radius: var(--radius-full); background: var(--surface-canvas); border-color: transparent; }
.search input:hover { border-color: var(--line); }
.topbar .search__close, .topbar .search-toggle { display: none; }
.who { display: flex; align-items: center; gap: var(--space-2xs); margin-left: auto; flex: none; }
.who form { margin: 0; }
.who__me { display: inline-flex; align-items: center; gap: var(--space-2xs); color: var(--text); text-decoration: none; font-weight: 500; font-size: var(--fs-n1); }
.who__me:hover { color: var(--text); }
@media (min-width: 48rem) {
  .topbar__inner { gap: var(--space-s); padding-inline: var(--space-s); }
  .who { gap: var(--space-xs); }
}
@media (max-width: 47.99rem) {
  .search { display: none; }
  .topbar .search-toggle { display: inline-grid; }
  .topbar__inner.is-searching .brand, .topbar__inner.is-searching .who { display: none; }
  .topbar__inner.is-searching .search { display: block; max-width: none; margin: 0; }
  .topbar__inner.is-searching .search input { padding-right: 3rem; }
  .topbar .is-searching .search__close { display: inline-grid; position: absolute; right: 0.25rem; top: 50%; translate: 0 -50%; }
}

/* Мобильная раскладка: лента, под ней сводка, внизу навигация */
.shell { display: grid; gap: var(--card-gap); max-width: 100rem; margin-inline: auto; padding: var(--space-s) var(--space-s) calc(var(--nav-h) + var(--space-l));
  grid-template-columns: minmax(0, 1fr); grid-template-areas: "main" "rail"; }
.shell--norail { grid-template-areas: "main"; }
.feed-col { grid-area: main; min-width: 0; container: feed / inline-size; }
.rail { grid-area: rail; display: grid; gap: var(--card-gap); align-content: start; min-width: 0;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.sidebar { position: fixed; inset: auto 0 0 0; z-index: 40; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr);
  background: var(--surface-card); border-top: 1px solid var(--line); box-shadow: 0 -8px 20px -14px rgb(0 0 0 / 0.35);
  padding-bottom: env(safe-area-inset-bottom); }
.sidebar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.125rem; min-width: 0; min-height: var(--nav-h); padding: 0.375rem 0.125rem;
  color: var(--text-muted); font-size: var(--fs-n2); font-weight: 500; text-align: center; text-decoration: none;
  transition: background var(--motion-dur-1) var(--motion-ease-out), color var(--motion-dur-1) var(--motion-ease-out); }
.sidebar a span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 30rem) {
  .sidebar a span { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
}
.sidebar a .ico { width: 1.4rem; height: 1.4rem; }
.sidebar a:hover { background: var(--surface-hover); color: var(--text); }
.sidebar a.is-active { color: var(--link); font-weight: 700; box-shadow: inset 0 3px 0 var(--action); }
@media (min-width: 64rem) {
  .shell { padding-bottom: var(--space-2xl); grid-template-columns: 14.5rem minmax(0, 1fr); grid-template-areas: "nav main" "nav rail"; }
  .shell--norail { grid-template-areas: "nav main"; }
  .sidebar { grid-area: nav; position: sticky; inset: auto; top: calc(var(--layout-header-h) + var(--space-s)); z-index: 20; align-self: start;
    display: flex; flex-direction: column; gap: var(--space-3xs); background: none; border: 0; box-shadow: none; padding: 0; }
  .sidebar a { flex-direction: row; justify-content: flex-start; gap: var(--space-xs); min-height: 0; padding: var(--space-2xs) var(--space-xs); border-radius: var(--radius-3);
    font-size: var(--fs-0); text-align: left; }
  .sidebar a .ico { width: 1.25rem; height: 1.25rem; }
  .sidebar a.is-active { background: var(--action); color: var(--on-action); box-shadow: none; }
  .sidebar a:focus-visible, .sidebar a.is-active:focus-visible { box-shadow: var(--focus-ring); }
  .sidebar__admin { margin-top: var(--space-2xs); }
}
@media (min-width: 80rem) {
  .shell { grid-template-columns: 14.5rem minmax(0, 1fr) 20rem; grid-template-areas: "nav main rail"; }
  .shell--norail { grid-template-columns: 14.5rem minmax(0, 1fr); grid-template-areas: "nav main"; }
  .rail { grid-template-columns: 1fr; align-self: start; position: sticky; top: calc(var(--layout-header-h) + var(--space-s)); }
}

/* ---------- Типографика страницы ---------- */
.page-head { margin-bottom: var(--space-m); }
.page-head h1 { font-size: var(--fs-3); font-weight: 700; }
.lead { margin-top: var(--space-2xs); max-width: var(--measure); color: var(--text-muted); font-size: var(--fs-1); }
.kicker { margin-bottom: var(--space-xs); font-size: var(--fs-n1); color: var(--text-muted); }
.kicker a { text-decoration: none; font-weight: 500; }
.block-title { margin: var(--space-l) 0 var(--space-xs); font-size: var(--fs-2); font-weight: 700; }
.empty { color: var(--text-muted); padding-block: var(--space-xs); }
.error { margin: var(--space-xs) 0; padding: var(--space-xs) var(--space-s); border-radius: var(--radius-2);
  background: var(--surface-error); color: var(--text-error); font-weight: 500; }

/* ---------- Аватары (палитра extra из сайта) ---------- */
.avatar { flex: none; display: inline-grid; place-items: center; width: var(--size, 2.5rem); height: var(--size, 2.5rem);
  border-radius: var(--radius-full); color: var(--color-neutral-6); font-weight: 700; font-size: calc(var(--size, 2.5rem) * 0.4); line-height: 1; user-select: none; }
.avatar { overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar--sm { --size: 1.75rem; }
.avatar--lg { --size: 5rem; }
.av-0 { background: var(--color-extra-lime); }
.av-1 { background: var(--color-extra-mint); }
.av-2 { background: var(--color-extra-laguna); }
.av-3 { background: var(--color-extra-lemon); }
.av-4 { background: var(--color-extra-sand); }
.av-5 { background: var(--color-extra-rose); }
.av-6 { background: var(--color-extra-lilac); }
.av-7 { background: var(--color-extra-sky); }

/* ---------- Карточки, чипы, кнопки ---------- */
.card, .panel { background: var(--surface-card); border-radius: var(--radius-4); padding: var(--space-m); box-shadow: 0 0 0 1px var(--line-soft); }
.panel + .panel { margin-top: var(--space-s); }
.chip { display: inline-flex; align-items: center; gap: var(--space-3xs); padding: 0.125rem var(--space-xs); border-radius: var(--radius-full);
  background: var(--surface-tint); color: var(--text); font-size: var(--fs-n1); font-weight: 500; white-space: nowrap; }
.chip--role { background: var(--surface-muted); color: var(--text-muted); }
.chip--ai { background: var(--surface-ai); color: var(--text-ai); }
.chip--warn { background: var(--surface-warn); }
.chip--muted { background: var(--surface-muted); color: var(--text-muted); }

.btn, .btn-ghost, button.primary {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2xs); min-height: 2.5rem; padding: 0 var(--space-s);
  border: 1px solid transparent; border-radius: var(--radius-2); font: inherit; font-weight: 500; text-decoration: none; cursor: pointer;
  transition: background var(--motion-dur-1) var(--motion-ease-out), box-shadow var(--motion-dur-1) var(--motion-ease-out), transform var(--motion-dur-1) var(--motion-ease-out);
}
.btn, button.primary { background: var(--action); color: var(--on-action); }
.btn:hover, button.primary:hover { background: var(--action-hover); color: var(--on-action); box-shadow: var(--shadow-brand); }
.btn:active, button.primary:active { transform: translateY(1px); }
.btn-ghost { background: var(--surface-card); color: var(--link); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface-hover); border-color: var(--accent-line); }

/* ---------- Формы ---------- */
form.form, .login-card form, main form:has(textarea), main form:has(select) { max-width: 36rem; }
label { display: block; margin: var(--space-s) 0 var(--space-3xs); font-weight: 500; font-size: var(--fs-n1); }
input, select, textarea { width: 100%; min-height: 2.75rem; padding: var(--space-2xs) var(--space-xs); font: inherit; color: var(--text);
  background: var(--surface-card); border: 1px solid var(--line); border-radius: var(--radius-2);
  transition: border-color var(--motion-dur-1) var(--motion-ease-out), box-shadow var(--motion-dur-1) var(--motion-ease-out); }
textarea { min-height: 7rem; resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--text-muted); opacity: 1; }
input:hover, select:hover, textarea:hover { border-color: var(--text-faint); }
input:focus-visible, select:focus-visible, textarea:focus-visible { border-color: var(--link); box-shadow: var(--focus-ring); }
form button.primary, form .btn-ghost { margin-top: var(--space-m); margin-right: var(--space-2xs); }
.form-section { margin-top: var(--space-l); padding-top: var(--space-s); border-top: 1px solid var(--line-soft); }
.form-grid { display: grid; gap: 0 var(--space-s); grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
input[type="checkbox"] { width: auto; min-height: 0; accent-color: var(--link); }
.count { float: right; font-weight: 400; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.field-hint { margin-top: var(--space-3xs); font-size: var(--fs-n1); color: var(--text-muted); }
.photo-field { display: flex; align-items: center; gap: var(--space-m); }
.photo-field__controls { display: grid; gap: var(--space-2xs); justify-items: start; }
.photo-field .photo-field__pick { margin: 0; cursor: pointer; }
.photo-field__controls:has(input:focus-visible) .photo-field__pick { box-shadow: var(--focus-ring); border-color: var(--link); }
.photo-field__hint { font-size: var(--fs-n1); color: var(--text-muted); overflow-wrap: anywhere; }
label.check { display: flex; align-items: center; gap: var(--space-2xs); margin: 0; font-weight: 400; cursor: pointer; }

/* ---------- Вход ---------- */
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: var(--space-m);
  background: radial-gradient(60rem 30rem at 50% -10%, var(--glow), transparent 70%), var(--surface-canvas); }
.login-card { width: min(100%, 26rem); background: var(--surface-card); border-radius: var(--radius-4); padding: var(--space-l); box-shadow: var(--shadow-card); }
.login-card .brand { margin-bottom: var(--space-m); }
.login-card h1 { font-size: var(--fs-3); }
.login-card .hint { margin-top: var(--space-2xs); color: var(--text-muted); font-size: var(--fs-n1); }
.login-card button.primary { width: 100%; margin-right: 0; }

/* ---------- Люди ---------- */
.person-card { container-type: inline-size; display: grid; grid-template-columns: auto 1fr; gap: var(--space-2xs) var(--space-xs); align-items: center;
  padding: var(--space-s); background: var(--surface-card); color: var(--text); text-decoration: none; border-radius: var(--radius-4);
  box-shadow: 0 0 0 1px var(--line-soft);
  transition: box-shadow var(--motion-dur-2) var(--motion-ease-out), transform var(--motion-dur-2) var(--motion-ease-out); }
a.person-card:hover { color: var(--text); box-shadow: 0 0 0 1px var(--accent-line), var(--shadow-card); transform: translateY(-2px); }
.person-card__main { min-width: 0; display: grid; }
.person-card__name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.person-card__handle { color: var(--text-muted); font-size: var(--fs-n1); }
.person-card__role { color: var(--text-muted); font-size: var(--fs-n1); }
.person-card__status { margin-top: var(--space-3xs); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--fs-n1); font-style: italic; }
.person-card .cluster { grid-column: 1 / -1; --cluster-gap: var(--space-3xs); }
.person-card--soon { background: transparent; box-shadow: none; border: 1px dashed var(--line); color: var(--text-muted); cursor: default; user-select: none; }
.person-card--soon .person-card__name { white-space: normal; color: var(--text-muted); font-weight: 500; }

/* ---------- Профиль (карточка сотрудника) ---------- */
.avatar--xl { --size: 6.5rem; }
.pf-hero { display: grid; gap: var(--space-s) var(--space-m); grid-template-columns: auto 1fr; align-items: start; margin-bottom: var(--space-s);
  padding: var(--space-m) var(--space-m) 0; background: var(--surface-card); border-radius: var(--radius-4); box-shadow: 0 0 0 1px var(--line-soft); }
.pf-ava { position: relative; padding: 0.375rem; }
.pf-ava .avatar { box-shadow: 0 0 0 1px var(--line-soft); }
.pf-hero__main { min-width: 0; padding-top: var(--space-2xs); }
.pf-hero h1 { font-size: var(--fs-3); }
.pf-hero__role { margin-top: var(--space-3xs); font-weight: 700; }
.pf-hero__status { margin-top: var(--space-3xs); color: var(--text-muted); overflow-wrap: anywhere; }
.pf-hero__status a { font-size: var(--fs-n1); }
.pf-hero__actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: var(--space-xs); align-items: center; }
.pf-tabs { grid-column: 1 / -1; display: flex; align-items: center; gap: var(--space-m); margin-top: var(--space-xs); }
.pf-count { margin-left: auto; color: var(--text-muted); font-size: var(--fs-n1); white-space: nowrap; }
.pf-tabs a { position: relative; padding: var(--space-xs) 0; color: var(--text-muted); font-weight: 500; text-decoration: none; }
.pf-tabs a:hover { color: var(--text); }
.pf-tabs a.is-active { color: var(--text); }
.pf-tabs a.is-active::after { content: ""; position: absolute; inset: auto 0 0 0; height: 2px; background: var(--action); border-radius: 2px 2px 0 0; }
.pf-tabs .chip { margin-left: var(--space-3xs); padding-block: 0; text-transform: none; letter-spacing: 0; }
@container feed (min-width: 50rem) {
  .pf-hero { grid-template-columns: auto 1fr auto; }
  .pf-hero__actions { grid-column: 3; grid-row: 1; justify-content: flex-end; }
  .pf-ava { grid-row: 1 / span 2; }
  .pf-hero__main { grid-column: 2; grid-row: 1; }
  .pf-tabs { grid-column: 2 / -1; grid-row: 2; margin-top: 0; }
}
.icon-btn { display: inline-grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: var(--radius-2); border: 1px solid var(--line);
  background: var(--surface-card); color: var(--text-muted); transition: background var(--motion-dur-1) var(--motion-ease-out), color var(--motion-dur-1) var(--motion-ease-out); }
.icon-btn:hover { background: var(--surface-hover); color: var(--link); }
.ico { width: 1.125rem; height: 1.125rem; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

.pf-main, .pf-side { display: grid; gap: var(--card-gap); min-width: 0; }
.pf-card { padding: var(--space-m); background: var(--surface-card); border-radius: var(--radius-4); box-shadow: 0 0 0 1px var(--line-soft); }
.section-title { margin-bottom: var(--space-xs); font-size: var(--fs-1); font-weight: 700; }
.pf-card .section-title { margin-bottom: var(--space-s); }
.pf-card--hint { background: var(--surface-tint); box-shadow: 0 0 0 1px var(--accent-line); }

.facts { display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-xl); }
.fact { display: grid; gap: 0.125rem; min-width: 0; }
.fact__label { display: block; font-size: var(--fs-n1); color: var(--text-muted); }
.fact__value { overflow-wrap: anywhere; color: var(--text); font-weight: 500; text-decoration: none; }
a.fact__value:hover { color: var(--link); }
.pf-card .empty { padding: 0; }
.about__text { max-width: var(--measure); white-space: pre-line; }

.side-label { font-size: var(--fs-n1); color: var(--text-muted); }
.side-value { margin-top: var(--space-3xs); font-weight: 700; font-size: var(--fs-1); }
.side-sub { font-size: var(--fs-n1); color: var(--text-muted); }
.thankers { display: flex; flex-wrap: wrap; gap: var(--space-2xs); margin-top: var(--space-xs); }
.thankers a { border-radius: 50%; line-height: 0; transition: transform var(--motion-dur-1) var(--motion-ease-out); }
.thankers a:hover { transform: translateY(-2px); }
.thankers .avatar { --size: 2.5rem; }
.thankers__more { display: inline-grid; place-items: center; min-width: 2.5rem; height: 2.5rem; padding-inline: var(--space-2xs); border-radius: var(--radius-full);
  background: var(--surface-muted); font-size: var(--fs-n1); font-weight: 700; font-variant-numeric: tabular-nums; }

.thanks-feed { display: grid; gap: var(--space-s); max-width: 46rem; }
.thanks-card { display: grid; gap: var(--space-s); padding: var(--space-m); background: var(--surface-card);
  border-radius: var(--radius-4); box-shadow: 0 0 0 1px var(--line-soft); }
.thanks-card__kicker { display: inline-flex; align-items: center; gap: var(--space-3xs); color: var(--link); font-size: var(--fs-n1); font-weight: 700; }
.thanks-card__kicker .ico { width: 1rem; height: 1rem; }
.thanks-card__quote { margin: 0; padding-left: var(--space-s); border-left: 3px solid var(--action); font-size: var(--fs-2); font-weight: 700; line-height: 1.3; }
.thanks-card__foot { display: flex; align-items: center; justify-content: space-between; gap: var(--space-xs); padding-top: var(--space-xs); border-top: 1px solid var(--line-soft); }
.thanks-card__from { display: inline-flex; align-items: center; gap: var(--space-2xs); min-width: 0; color: var(--text); font-weight: 500; text-decoration: none; }
.thanks-card__from:hover { color: var(--link); }
.thanks-card__dir { color: var(--text-muted); font-weight: 400; }
.thanks-card__foot time { flex: none; color: var(--text-muted); font-size: var(--fs-n1); }
.thanks-feed + .side-sub { margin-top: var(--space-xs); }
.thanks-item { display: grid; grid-template-columns: auto 1fr; gap: var(--space-xs); padding-block: var(--space-xs); }
.thanks-item + .thanks-item { border-top: 1px solid var(--line-soft); }
.thanks-item__body { font-size: var(--fs-0); }
.thanks-item__from { margin-top: var(--space-3xs); font-size: var(--fs-n1); color: var(--text-muted); }

/* ---------- Карточка ачивки (структура Яны сохранена) ---------- */
.achievements-feed { display: grid; gap: var(--space-s); max-width: 46rem; }
.achievement-card { display: grid; grid-template-columns: auto 1fr; gap: var(--space-s); align-items: start;
  padding: var(--space-m) var(--space-m) var(--space-s); background: var(--surface-card); border-radius: var(--radius-4);
  box-shadow: 0 0 0 1px var(--line-soft);
  transition: box-shadow var(--motion-dur-2) var(--motion-ease-out); }
.achievement-card:hover { box-shadow: 0 0 0 1px var(--accent-line), var(--shadow-card); }
.achievement-card__badge { width: 6rem; height: 6rem; border-radius: 50%; display: grid; place-items: center; padding: var(--space-2xs);
  text-align: center; font-size: var(--fs-n2); color: var(--text-muted); background: var(--surface-canvas); border: 2px dashed var(--line); }
.achievement-card__badge--has-image { padding: 0; border: 0; overflow: hidden; background: var(--surface-card); box-shadow: 0 0 0 4px var(--surface-tint), 0 0 0 5px var(--accent-line); }
.achievement-card__badge--has-image img { width: 100%; height: 100%; object-fit: cover; }
.achievement-card__body { min-width: 0; }
.achievement-card__headline { font-size: var(--fs-1); font-weight: 700; }
.achievement-card__text { margin-top: var(--space-2xs); color: var(--text-muted); }
.achievement-card__recipient { margin-top: var(--space-xs); font-size: var(--fs-n1); color: var(--text); font-weight: 500; }
.achievement-card__footer { display: flex; align-items: center; justify-content: space-between; margin-top: var(--space-s); padding-top: var(--space-xs); border-top: 1px solid var(--line-soft); }
.achievement-card__date { font-size: var(--fs-n1); color: var(--text-muted); }
@media (max-width: 30rem) { .achievement-card { grid-template-columns: 1fr; } }

/* ---------- Конкуренты ---------- */
.callout { display: grid; gap: var(--space-3xs); width: fit-content; max-width: min(100%, 40rem); padding: var(--space-xs) var(--space-s); border-radius: 0 var(--radius-3) var(--radius-3) 0;
  background: var(--surface-card); border-left: 3px solid var(--color-warning-5); color: var(--text-muted); font-size: var(--fs-n1); margin-block: var(--space-s); }
.callout[hidden] { display: none; }
.callout__title { font-weight: 700; color: var(--text); }
.draft-note { margin-top: var(--space-xs); }
.tabs { display: flex; flex-wrap: wrap; gap: var(--space-2xs) var(--space-m); margin-block: var(--space-m) var(--space-s); border-bottom: 1px solid var(--line); }
.tabs__item { position: relative; padding: var(--space-2xs) 0; color: var(--text-muted); font-weight: 500; text-decoration: none; }
.tabs__item:hover { color: var(--link); }
.tabs__item.is-active { color: var(--link); }
.tabs__item.is-active::after { content: ""; position: absolute; inset: auto 0 -1px 0; height: 2px; border-radius: 2px 2px 0 0; background: var(--action); }

.fact-list { list-style: none; padding: 0; counter-reset: fact; display: grid; gap: var(--space-xs); max-width: 52rem; }
.fact-list li { counter-increment: fact; display: grid; grid-template-columns: auto 1fr; gap: var(--space-xs); padding: var(--space-xs) var(--space-s);
  background: var(--surface-card); border-radius: var(--radius-3); box-shadow: 0 0 0 1px var(--line-soft); }
.fact-list li::before { content: counter(fact); display: grid; place-items: center; width: 1.75rem; height: 1.75rem; border-radius: var(--radius-full);
  background: var(--surface-tint); color: var(--link); font-size: var(--fs-n1); font-weight: 700; font-variant-numeric: tabular-nums; }
.fact-list--lead li { background: var(--surface-tint); box-shadow: 0 0 0 1px var(--accent-line); }
.fact-list--lead li::before { background: var(--action); color: var(--on-action); }

.mod { background: var(--surface-card); border-radius: var(--radius-3); box-shadow: 0 0 0 1px var(--line-soft); max-width: 52rem; }
.mod + .mod { margin-top: var(--space-xs); }
.mod[open] { box-shadow: 0 0 0 1px var(--accent-line), var(--shadow-card); }
.mod summary { display: flex; align-items: center; gap: var(--space-xs); padding: var(--space-xs) var(--space-s); font-weight: 500; cursor: pointer; list-style: none; border-radius: var(--radius-3); }
.mod summary::-webkit-details-marker { display: none; }
.mod summary:hover { background: var(--surface-hover); }
.mod summary::after { content: ""; flex: none; margin-left: auto; width: 0.5rem; height: 0.5rem; border-right: 2px solid var(--text-muted); border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg) translate(-2px, -2px); transition: transform var(--motion-dur-1) var(--motion-ease-out); }
.mod[open] summary::after { transform: rotate(-135deg); }
.mod__body { display: grid; gap: var(--space-xs); padding: 0 var(--space-s) var(--space-s); }
.mod__body ul { margin: 0; padding-left: var(--space-s); display: grid; gap: var(--space-3xs); }
.mod__label { display: inline-flex; align-items: center; gap: var(--space-2xs); margin-top: var(--space-2xs); font-size: var(--fs-n1); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); }
.mod__label::before { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--color-brand-5); }
.mod__label--arg::before { background: var(--color-positive-5); }
.mod__label--close::before { background: var(--color-warning-5); }
@supports (interpolate-size: allow-keywords) {
  .mod::details-content, .vs__weak::details-content, .vs__extra::details-content, .vs__point-more::details-content {
    block-size: 0; overflow: clip;
    transition: block-size var(--motion-dur-2) var(--motion-ease-out), content-visibility var(--motion-dur-2) allow-discrete;
  }
  .mod[open]::details-content, .vs__weak[open]::details-content, .vs__extra[open]::details-content, .vs__point-more[open]::details-content { block-size: auto; }
}

/* ---------- Новости ---------- */
.news-list { display: grid; gap: var(--space-m); grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); }
.news-card { display: grid; overflow: hidden; background: var(--surface-card); color: var(--text); text-decoration: none; border-radius: var(--radius-4);
  box-shadow: 0 0 0 1px var(--line-soft);
  transition: box-shadow var(--motion-dur-2) var(--motion-ease-out), transform var(--motion-dur-2) var(--motion-ease-out); }
.news-card:hover { color: var(--text); box-shadow: 0 0 0 1px var(--accent-line), var(--shadow-card); transform: translateY(-2px); }
.news-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.news-card__body { display: grid; gap: var(--space-2xs); padding: var(--space-s) var(--space-m) var(--space-m); }
.news-card__body strong { font-size: var(--fs-1); line-height: 1.25; text-wrap: balance; }
.news-card__meta { font-size: var(--fs-n1); color: var(--text-muted); }

.story-wrap { max-width: 52rem; margin-inline: auto; }
.story { padding-top: var(--space-l); background: var(--surface-card); border-radius: var(--radius-4); overflow: hidden; box-shadow: 0 0 0 1px var(--line-soft); }
.story__figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.story__figure { margin-top: var(--space-m); }
.story > :not(figure) { margin-inline: var(--space-m); max-width: var(--measure); }
.story__lead { margin-top: var(--space-s); font-size: var(--fs-1); color: var(--text-muted); }
.story h2 { margin-top: var(--space-l); font-size: var(--fs-2); }
.story p { margin-top: var(--space-xs); }
.story > :last-child { margin-bottom: var(--space-l); }
.story__shot { margin: var(--space-s) var(--space-m) 0; }
.story__zoom { display: block; width: 100%; padding: 0; border: 0; line-height: 0; cursor: zoom-in; border-radius: var(--radius-3); background: var(--color-white); box-shadow: 0 0 0 1px var(--line); }
.story__zoom:focus-visible { box-shadow: var(--focus-ring); }
.story__shot img { width: 100%; height: auto; max-height: 70vh; object-fit: contain; object-position: top center; border-radius: var(--radius-3); background: var(--color-white); }
.fig-field { display: grid; gap: var(--space-2xs); margin-top: var(--space-xs); padding-top: var(--space-xs); border-top: 1px dashed var(--line); }
.fig-field label { margin: 0; }
.fig-field__thumb { max-width: 16rem; max-height: 9rem; border-radius: var(--radius-2); box-shadow: 0 0 0 1px var(--line); object-fit: contain; background: var(--color-white); }

/* ---------- Заглушка ---------- */
.empty-state { display: grid; justify-items: start; gap: var(--space-xs); padding: var(--space-l); background: var(--surface-card);
  border-radius: var(--radius-4); box-shadow: 0 0 0 1px var(--line-soft); }

/* ---------- Переходы между страницами и движение ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: var(--motion-dur-1); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; scroll-behavior: auto !important; }
  a.person-card:hover, .news-card:hover { transform: none; }
  @view-transition { navigation: none; }
}

/* ---------- Переключатель темы ---------- */
.theme-toggle .i-sun { display: none; }
html[data-theme="dark"] .theme-toggle .i-sun { display: block; }
html[data-theme="dark"] .theme-toggle .i-moon { display: none; }
.login-wrap .theme-toggle { position: fixed; top: var(--space-s); right: var(--space-s); }
html.theme-anim, html.theme-anim *, html.theme-anim *::before, html.theme-anim *::after {
  transition: background-color var(--motion-dur-2) var(--motion-ease-out), color var(--motion-dur-2) var(--motion-ease-out),
    border-color var(--motion-dur-2) var(--motion-ease-out), box-shadow var(--motion-dur-2) var(--motion-ease-out) !important;
}

/* ---------- Главная: форма «спасибо» и лента ---------- */
.composer { display: grid; grid-template-columns: auto 1fr; gap: var(--space-xs); align-items: start; margin-bottom: var(--space-s);
  padding: var(--space-s); background: var(--surface-card); border-radius: var(--radius-4); box-shadow: 0 0 0 1px var(--line-soft); }
.composer form { display: grid; gap: var(--space-xs); max-width: none; }
.composer__fields { display: grid; gap: var(--space-2xs); }
.composer select, .composer input[name="body"] { background: var(--surface-canvas); border-color: transparent; }
.composer select:hover, .composer input[name="body"]:hover { border-color: var(--line); }
.composer button.primary { margin: 0; justify-self: end; }
@container feed (min-width: 40rem) { .composer__fields { grid-template-columns: minmax(10rem, 14rem) 1fr; } }

.feed-filter { display: flex; flex-wrap: wrap; gap: var(--space-2xs); margin-bottom: var(--card-gap); }
.feed-filter a { display: inline-flex; align-items: center; gap: var(--space-3xs); min-height: 2.25rem; padding: 0 var(--space-s);
  border-radius: var(--radius-full); background: var(--surface-card); color: var(--text); font-weight: 500; text-decoration: none;
  box-shadow: 0 0 0 1px var(--line); }
.feed-filter a:hover { color: var(--text); box-shadow: 0 0 0 1px var(--accent-line); }
.feed-filter a.is-active { background: var(--action); color: var(--on-action); box-shadow: none; }
.feed-filter__n { font-size: var(--fs-n1); color: var(--text-muted); font-variant-numeric: tabular-nums; }
.feed-filter a.is-active .feed-filter__n { color: color-mix(in oklch, white 82%, transparent); }
.feed { display: grid; gap: var(--card-gap); }
.post { display: grid; gap: var(--space-xs); padding: var(--space-s) var(--space-m) var(--space-m); background: var(--surface-card);
  border-radius: var(--radius-4); box-shadow: 0 0 0 1px var(--line-soft); }
.post__head { display: flex; align-items: center; gap: var(--space-xs); }
.post__meta { display: grid; min-width: 0; }
.post__meta strong { display: flex; align-items: center; flex-wrap: wrap; gap: var(--space-3xs); }
.post__meta strong .ico { width: 0.9rem; height: 0.9rem; color: var(--text-faint); }
.post__meta small { color: var(--text-muted); font-size: var(--fs-n1); }
.post__meta a { color: var(--text); text-decoration: none; }
.post__meta a:hover { color: var(--link); }
.post__icon { display: inline-grid; place-items: center; flex: none; width: 2.5rem; height: 2.5rem; border-radius: var(--radius-3); background: var(--surface-tint); color: var(--link); }
.post__badge { flex: none; width: 2.5rem; height: 2.5rem; border-radius: 50%; object-fit: cover; background: var(--surface-card); box-shadow: 0 0 0 2px var(--surface-tint); }
.post__img { width: 100%; aspect-ratio: 16 / 9; max-height: 22rem; object-fit: cover; border-radius: var(--radius-3); }
.post__title { font-size: var(--fs-1); font-weight: 700; }
.post__title a { color: var(--text); text-decoration: none; }
.post__title a:hover { color: var(--link); }
.post__text { color: var(--text-muted); overflow-wrap: anywhere; }
.post__text--quote { color: var(--text); font-size: var(--fs-1); padding-left: var(--space-xs); border-left: 3px solid var(--accent-line); }
.post__more { display: inline-flex; align-items: center; gap: var(--space-3xs); color: var(--text-muted); font-size: var(--fs-n1); text-decoration: none; }
.post__more:hover { color: var(--link); }
.post__row { display: grid; gap: var(--space-xs); }
.post__col { display: grid; gap: var(--space-2xs); align-content: start; min-width: 0; }
.post__col .post__text { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post__thumb { display: block; border-radius: var(--radius-3); overflow: hidden; background: var(--surface-muted); }
.post__thumb img { width: 100%; height: 100%; max-height: 8rem; aspect-ratio: 16 / 9; object-fit: cover; }
@container feed (min-width: 34rem) {
  .post__row--thumb { grid-template-columns: minmax(0, 1fr) 9.5rem; align-items: start; gap: var(--space-s); }
  .post__thumb img { max-height: none; }
}

/* ---------- Правая колонка ---------- */

.widget { display: grid; gap: var(--space-3xs); padding: var(--space-s); background: var(--surface-card); border-radius: var(--radius-4); box-shadow: 0 0 0 1px var(--line-soft); }
.widget__title { margin-bottom: var(--space-2xs); font-size: var(--fs-0); font-weight: 700; }
.widget__empty { color: var(--text-muted); font-size: var(--fs-n1); }
.widget-link, .event { display: flex; align-items: center; gap: var(--space-xs); padding: var(--space-2xs); margin-inline: calc(var(--space-2xs) * -1); border-radius: var(--radius-3);
  color: var(--text); text-decoration: none; transition: background var(--motion-dur-1) var(--motion-ease-out); }
.widget-link:hover, .event:hover { background: var(--surface-hover); color: var(--text); }
.widget-link__ico { display: grid; place-items: center; flex: none; width: 2.5rem; height: 2.5rem; border-radius: var(--radius-3); background: var(--surface-tint); color: var(--link); }
.widget-link__ico--logo { width: auto; height: 2.25rem; background: #fff; padding: 0.15rem 0.3rem; }
.widget-link__ico--logo img { width: auto; height: 100%; max-width: 6.5rem; object-fit: contain; }
.widget-link__ico--spark { width: 2.5rem; height: 2.5rem; padding: 0; background: transparent; }
.widget-link__ico--spark img { width: 100%; height: 100%; max-width: none; }
.widget-link__text, .event__text { display: grid; flex: 1; min-width: 0; line-height: 1.25; }
.widget-link__text small, .event__text small { color: var(--text-muted); font-size: var(--fs-n1); }
.widget-link__text small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; white-space: normal; }
.widget-link > .ico:last-child { color: var(--text-faint); }
.event__date { display: grid; place-items: center; flex: none; width: 2.75rem; padding-block: 0.25rem; border-radius: var(--radius-2); background: var(--surface-muted);
  font-size: var(--fs-n2); line-height: 1.1; color: var(--text-muted); text-transform: uppercase; }
.event__date b { font-size: var(--fs-1); color: var(--text); }

/* ---------- Профиль: контакты внутри шапки ---------- */
.pf-strip { grid-column: 1 / -1; margin-inline: calc(var(--space-m) * -1); padding: var(--space-xs) var(--space-m); border-top: 1px solid var(--line-soft); }
.pf-nudge { margin-block: var(--space-xs); font-size: var(--fs-n1); color: var(--text-muted); }
.pf-main { margin-top: var(--space-s); }

/* ---------- Кабинет РОПа ---------- */
.story__title { margin-bottom: var(--space-s); font-size: var(--fs-3); line-height: 1.15; text-wrap: balance; }
.notice { margin: var(--space-xs) 0; padding: var(--space-xs) var(--space-s); border-radius: var(--radius-2); background: var(--surface-tint); box-shadow: inset 3px 0 0 var(--action); }
.stats { display: grid; gap: var(--space-s); grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); }
.stat { display: grid; gap: var(--space-3xs); padding: var(--space-s) var(--space-m); background: var(--surface-card); border-radius: var(--radius-4); box-shadow: 0 0 0 1px var(--line-soft);
  color: var(--text); text-decoration: none; transition: box-shadow var(--motion-dur-2) var(--motion-ease-out), transform var(--motion-dur-2) var(--motion-ease-out); }
.stat:hover { color: var(--text); box-shadow: 0 0 0 1px var(--accent-line), var(--shadow-card); transform: translateY(-2px); }
.stat__n { font-size: var(--fs-4); font-weight: 700; line-height: 1; }
.stat__l { display: flex; align-items: center; gap: var(--space-2xs); color: var(--text-muted); font-size: var(--fs-n1); }
.changes { list-style: none; padding: 0; display: grid; gap: var(--space-2xs); max-width: 52rem; }
.changes li { display: flex; align-items: center; justify-content: space-between; gap: var(--space-s); padding: var(--space-xs) var(--space-s);
  background: var(--surface-card); border-radius: var(--radius-3); box-shadow: 0 0 0 1px var(--line-soft); }
.changes li > div { display: grid; min-width: 0; }
.changes small { color: var(--text-muted); font-size: var(--fs-n1); }
.changes form { margin: 0; }
.changes .btn, .changes .btn-ghost, .changes button { margin: 0; white-space: nowrap; }
@media (max-width: 40rem) { .changes li { flex-direction: column; align-items: stretch; } }

.editor { display: grid; gap: var(--space-s); max-width: 52rem; }
.editor .panel { margin: 0; }
.editor .section-title { margin-bottom: var(--space-3xs); }
.editor textarea { min-height: 3rem; line-height: 1.45; }
.rep__list { display: grid; gap: var(--space-xs); margin-block: var(--space-xs); }
.rep-item { display: grid; gap: var(--space-3xs); padding: var(--space-xs); background: var(--surface-canvas); border-radius: var(--radius-3); box-shadow: 0 0 0 1px var(--line-soft); }
.rep-item label { margin-top: var(--space-2xs); }
.rep-item--row { grid-template-columns: 1fr auto; align-items: start; }
.rep-item__head { display: flex; align-items: center; justify-content: space-between; }
.rep-item__n { font-size: var(--fs-n1); font-weight: 700; color: var(--text-muted); }
.rep-item__tools { display: inline-flex; gap: var(--space-3xs); }
.rep-item__tools .icon-btn { width: 2rem; height: 2rem; font-size: var(--fs-0); line-height: 1; }
.rep-item__tools .icon-btn[data-act="del"]:hover { color: var(--text-error); }
.savebar { position: sticky; bottom: 0; z-index: 10; display: flex; flex-wrap: wrap; gap: var(--space-xs); align-items: center;
  padding: var(--space-xs) var(--space-s); margin-inline: calc(var(--space-s) * -1); background: var(--surface-card); border-top: 1px solid var(--line); box-shadow: 0 -8px 20px -12px rgb(0 0 0 / 0.25); }
.savebar > * { margin: 0; }
.img-field { display: grid; gap: var(--space-s); grid-template-columns: minmax(0, 14rem) 1fr; align-items: start; }
.img-field__preview { display: grid; place-items: center; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius-3); background: var(--surface-muted); color: var(--text-muted); font-size: var(--fs-n1); }
.img-field__preview img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 36rem) { .img-field { grid-template-columns: 1fr; } }
.danger-zone { max-width: 52rem; margin-top: var(--space-l); }
.btn-danger { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 var(--space-s); border-radius: var(--radius-3); border: 1px solid var(--line); background: transparent;
  color: var(--text-error); font: inherit; font-weight: 500; cursor: pointer; }
.btn-danger:hover { background: var(--surface-error); border-color: var(--text-error); }

.add-person { max-width: 60rem; margin-bottom: var(--space-s); }
.add-person summary { display: inline-flex; list-style: none; cursor: pointer; }
.add-person summary::-webkit-details-marker { display: none; }
.team-admin { list-style: none; padding: 0; display: grid; gap: var(--space-xs); max-width: 60rem; }
.team-admin .panel { margin: 0; padding: var(--space-s); }
.team-row { display: grid; gap: var(--space-2xs) var(--space-s); align-items: end; grid-template-columns: 1fr; }
.team-row label { margin-top: 0; }
.team-row__who { display: flex; align-items: center; gap: var(--space-xs); }
.team-row__who div { display: grid; line-height: 1.2; }
.team-row__who small { color: var(--text-muted); font-size: var(--fs-n1); }
@container feed (min-width: 48rem) { .team-row { grid-template-columns: 11rem 1fr 1fr 1fr auto; } }
/* ---------- Посты ---------- */
.composer--post textarea { min-height: 5rem; background: var(--surface-canvas); border-color: transparent; line-height: 1.5; }
.composer--post textarea:hover { border-color: var(--line); }
.composer--post form { gap: var(--space-2xs); }
.composer__bar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-xs) var(--space-s); }
.composer__bar button.primary { margin: 0 0 0 auto; }
.post__head .post__tools { display: inline-flex; align-items: center; gap: var(--space-3xs); margin-left: auto; }
.post__tools form { margin: 0; }
.post__tools .icon-btn { width: 2rem; height: 2rem; font-size: var(--fs-0); line-height: 1; }
.post__tools .icon-btn:hover { color: var(--link); }
.post__tools form .icon-btn:hover { color: var(--text-error); }
.post__text--body { color: var(--text); font-size: var(--fs-0); white-space: pre-line; }
.post--pinned { box-shadow: 0 0 0 1px var(--accent-line); }
.manage { display: grid; gap: var(--space-xs); grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
.manage__item { display: flex; align-items: center; gap: var(--space-xs); padding: var(--space-xs) var(--space-s); border-radius: var(--radius-3);
  background: var(--surface-canvas); color: var(--text); text-decoration: none; transition: background var(--motion-dur-1) var(--motion-ease-out), box-shadow var(--motion-dur-1) var(--motion-ease-out); }
.manage__item:hover { background: var(--surface-hover); color: var(--text); box-shadow: 0 0 0 1px var(--accent-line); }
.manage__item .ico { flex: none; width: 1.5rem; height: 1.5rem; color: var(--link); }
.manage__item span { display: grid; line-height: 1.25; }
.manage__item small { color: var(--text-muted); font-size: var(--fs-n1); }
/* ---------- Правки по замечаниям ---------- */
.composer .error { margin: 0; }
button:disabled, button.primary:disabled { opacity: 1; cursor: not-allowed; box-shadow: none; transform: none;
  background: var(--surface-muted); color: var(--text-muted); border-color: var(--line); }
.composer__hint { flex: 1 0 100%; margin: 0; color: var(--text-muted); font-size: var(--fs-n1); }
.composer__pick { display: inline-flex; align-items: center; gap: var(--space-2xs); margin: 0; cursor: pointer; }
.composer__pick:has(+ input:focus-visible) { box-shadow: var(--focus-ring); border-color: var(--link); }
.composer__preview { position: relative; margin: 0; max-width: 20rem; border-radius: var(--radius-3); overflow: hidden; background: var(--surface-muted); }
.composer__preview[hidden] { display: none; }
.composer__preview img { display: block; width: 100%; max-height: 12rem; object-fit: cover; }
.composer__preview figcaption { padding: var(--space-3xs) var(--space-xs); font-size: var(--fs-n1); color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.composer__preview .icon-btn { position: absolute; top: var(--space-3xs); right: var(--space-3xs); width: 2rem; height: 2rem; background: var(--surface-card); }
@container feed (max-width: 34rem) {
  .composer__bar button.primary { flex: 1 0 100%; margin: 0; }
}
.pf-badge { vertical-align: middle; width: 1.75rem; height: 1.75rem; margin-left: var(--space-2xs); border-radius: 50%; object-fit: cover; background: var(--surface-card);
  box-shadow: 0 0 0 1px var(--accent-line); }
.person-card__handle--wrap { overflow-wrap: anywhere; white-space: normal; }
.savebar { bottom: var(--nav-h); }
@media (min-width: 64rem) { .savebar { bottom: 0; } }


.team-delete { display: flex; justify-content: flex-end; margin-top: var(--space-2xs); }
.team-delete .btn-danger { min-height: 2.25rem; font-size: var(--fs-n1); }

/* ---------- Главная: карточка пользователя, один композер, баннер справа ---------- */
.me-card { display: grid; gap: var(--space-xs); padding: var(--space-s); background: var(--surface-card); border-radius: var(--radius-4); box-shadow: 0 0 0 1px var(--line-soft); }
.me-card__row { display: flex; align-items: center; gap: var(--space-xs); flex-wrap: wrap; }
.me-card__who { display: flex; align-items: center; gap: var(--space-xs); flex: 1 1 12rem; min-width: 0; color: var(--text); text-decoration: none; }
.me-card__who:hover { color: var(--text); }
.me-card__who .avatar { --size: 3rem; }
.me-card__text { display: grid; min-width: 0; line-height: 1.25; }
.me-card__text strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-card__text small { color: var(--text-muted); font-size: var(--fs-n1); }
.me-card form { display: grid; gap: var(--space-xs); max-width: none; }
.me-card form[hidden] { display: none; }
.me-card .composer__fields { display: grid; gap: var(--space-2xs); }
.me-card select, .me-card input[name="body"] { background: var(--surface-canvas); border-color: transparent; }
.me-card button.primary { margin: 0; justify-self: end; border-radius: var(--radius-full); }
.me-card .error { margin: 0; }
.me-card__note { margin: 0; color: var(--text-muted); font-size: var(--fs-n1); }
@container feed (min-width: 40rem) { .me-card .composer__fields { grid-template-columns: minmax(10rem, 14rem) 1fr; } }

.composer { margin-bottom: 0; }
.composer--post { display: grid; grid-template-columns: auto 1fr; gap: var(--space-xs); align-items: start; }
.composer--post label { margin: 0; }
.composer--post textarea { min-height: 2.75rem; height: 2.75rem; max-height: 14rem; padding-block: 0.6rem; resize: none; overflow-y: auto; background: var(--surface-card);
  border: 1px solid var(--line); border-radius: var(--radius-3); line-height: 1.45; }
.composer--post textarea:hover { border-color: var(--text-faint); }
.composer__bar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2xs); }
.composer__bar button.primary { margin: 0 0 0 auto; border-radius: var(--radius-full); }
.quiet-btn { display: inline-flex; align-items: center; gap: var(--space-2xs); min-height: 2.25rem; margin: 0; padding: 0 var(--space-xs); border: 0; border-radius: var(--radius-3);
  background: transparent; color: var(--text-muted); font: inherit; font-size: var(--fs-n1); font-weight: 500; cursor: pointer;
  transition: background var(--motion-dur-1) var(--motion-ease-out), color var(--motion-dur-1) var(--motion-ease-out); }
.quiet-btn:hover { background: var(--surface-hover); color: var(--text); }
.quiet-btn:has(input:checked) { background: var(--surface-tint); color: var(--link); }
.quiet-btn:has(input:focus-visible) { box-shadow: var(--focus-ring); }
.quiet-btn input { position: absolute; width: 1px; height: 1px; opacity: 0; margin: 0; }

.banner { display: grid; overflow: hidden; background: var(--surface-card); border-radius: var(--radius-4); box-shadow: 0 0 0 1px var(--line-soft); }
.banner__img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.banner__img--blank { display: grid; place-items: center; color: var(--link); background: var(--surface-tint); }
.banner__img--blank .ico { width: 2.5rem; height: 2.5rem; }
.banner__body { display: grid; gap: var(--space-2xs); justify-items: start; padding: var(--space-s); }
.banner__kicker { color: var(--text-muted); font-size: var(--fs-n1); }
.banner__title { font-size: var(--fs-0); font-weight: 700; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.banner .btn { min-height: 2.25rem; margin-top: var(--space-3xs); border-radius: var(--radius-full); }
.feed-col > .me-card, .feed-col > .composer { margin-bottom: var(--card-gap); }

/* Талисман: ангел в светлой теме, дьявол в тёмной */
.brand__mark--dark { display: none; }
html[data-theme="dark"] .brand__mark--light { display: none; }
html[data-theme="dark"] .brand__mark--dark { display: block; }
.login-card .brand__mark { width: 5rem; height: 5rem; border-radius: 1.25rem; }

/* ---------- Новость: плашка, фраза для звонка, список, подписи, шапка ---------- */
.story-top { display: flex; align-items: center; justify-content: space-between; gap: var(--space-xs); margin-bottom: var(--space-xs); }
.story-top .kicker { margin: 0; }
.story > .story__note { margin-top: var(--space-m); margin-bottom: 0; }
.story .story__note span:not(.callout__title) { display: block; margin-top: var(--space-3xs); }
.story > ul { margin-top: var(--space-xs); padding-left: 1.25rem; }
.story li + li { margin-top: var(--space-2xs); }
.story__shot figcaption { margin-top: var(--space-2xs); font-size: var(--fs-n1); color: var(--text-muted); }
.say { margin-top: var(--space-l); padding: var(--space-s) var(--space-m); border-left: 4px solid var(--action); border-radius: 0 var(--radius-3) var(--radius-3) 0; background: var(--surface-tint); }
.story .say h2 { margin-top: 0; font-size: var(--fs-1); }
.say__text { margin: var(--space-2xs) 0 0; padding: 0; font-size: var(--fs-0); }
.say__text p { margin-top: var(--space-xs); }
.say__text p:first-child { margin-top: 0; }
.say__copy { margin-top: var(--space-s); }
.fig-label { margin-top: var(--space-xs); }

/* ---------- Подсказки поиска ---------- */
.suggest { position: absolute; left: 0; right: 0; top: calc(100% + 0.375rem); z-index: 70; max-height: min(70vh, 26rem); overflow: auto;
  padding: var(--space-3xs); background: var(--surface-card); border-radius: var(--radius-3); box-shadow: 0 0 0 1px var(--line), var(--shadow-card); }
.suggest[hidden] { display: none; }
.suggest__group { margin: var(--space-2xs) var(--space-xs) var(--space-3xs); font-size: var(--fs-n2); font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.suggest__item { display: grid; gap: 0.0625rem; padding: var(--space-2xs) var(--space-xs); border-radius: var(--radius-2); color: var(--text); text-decoration: none; }
.suggest__item small { color: var(--text-muted); font-size: var(--fs-n1); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.suggest__item:hover, .suggest__item.is-active { background: var(--surface-hover); color: var(--text); }
.suggest__all strong { color: var(--link); }
.suggest__all { border-top: 1px solid var(--line-soft); border-radius: 0 0 var(--radius-2) var(--radius-2); margin-top: var(--space-3xs); }

/* ---------- Конкуренты: история из трёх шагов ---------- */
.vs__intro { margin-top: var(--space-2xs); max-width: var(--measure); color: var(--text-muted); }
.vs__admin { margin-top: var(--space-xs); }
.vs__steps { display: flex; flex-wrap: nowrap; align-items: center; gap: var(--space-2xs) var(--space-xs); margin: 0 0 var(--space-s); padding: 0; list-style: none;
  font-size: var(--fs-n1); font-weight: 700; min-width: 0; }
.vs__steps li { display: flex; align-items: center; gap: var(--space-2xs); color: var(--text-faint); white-space: nowrap; flex: none; }
.vs__steps li.is-done { color: var(--link); }
.vs__steps li.is-now { color: var(--text); }
.vs__steps li + li::before { content: ""; width: 1.25rem; height: 1px; background: var(--line); flex: none; }
@container feed (max-width: 26rem) {
  .vs__steps { font-size: 0.75rem; gap: 0.3rem; }
  .vs__steps li { gap: 0.2rem; }
  .vs__steps li + li::before { width: 0.55rem; }
}
.vs__picks { display: grid; gap: var(--space-xs); grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }
.vs__pick { display: grid; grid-template-columns: auto 1fr; gap: var(--space-3xs) var(--space-xs); align-items: center;
  padding: var(--space-xs) var(--space-s); min-height: 4.75rem; background: var(--surface-card); color: var(--text);
  text-decoration: none; border-radius: var(--radius-4); box-shadow: 0 0 0 1px var(--line-soft);
  transition: box-shadow var(--motion-dur-2) var(--motion-ease-out); }
.vs__pick:hover { color: var(--text); box-shadow: 0 0 0 1px var(--accent-line), var(--shadow-card); }
.vs__pick.is-on { background: var(--surface-tint); box-shadow: 0 0 0 2px var(--action); }
.vs__pick--empty { background: transparent; box-shadow: none; outline: 1px dashed var(--line); }
.vs__pick--empty.is-on { outline: 2px solid var(--action); box-shadow: none; }
.vs__pick--soon { cursor: default; }
.vs__pick--soon:hover { color: var(--text); box-shadow: none; }
.vs__pick-main { min-width: 0; display: grid; gap: 0.125rem; }
.vs__pick-name { font-weight: 700; }
.vs__pick-hint { color: var(--text-muted); font-size: var(--fs-n1); }
.vs__pick .chip { justify-self: start; margin-top: var(--space-3xs); }
.vs__pick .avatar--logo { width: auto; height: 2.25rem; border-radius: 0.4rem; background: #fff; padding: 0.2rem 0.35rem; }
.vs__pick .avatar--logo img { width: auto; height: 100%; max-width: 7.5rem; object-fit: contain; }
.vs__pick .avatar--logo-spark { width: 2.75rem; height: 2.75rem; padding: 0; border-radius: var(--radius-full); background: transparent; }
.vs__pick .avatar--logo-spark img { width: 100%; height: 100%; max-width: none; }
.vs__win { position: relative; width: min(100%, 44rem); margin-top: var(--space-m); padding: var(--space-s);
  background: var(--surface-card); border: 1px solid var(--accent-line); border-radius: var(--radius-4); box-shadow: var(--shadow-card); }
.vs__win[hidden] { display: none; }
.vs__win::before { content: ""; position: absolute; z-index: 1; top: -8px; left: var(--caret, 8rem); width: 14px; height: 14px;
  translate: -50% 0; rotate: 45deg; background: var(--surface-card); border-top: 1px solid var(--accent-line); border-left: 1px solid var(--accent-line); }
@media (prefers-reduced-motion: no-preference) {
  .vs__win.is-in { animation: vs-pop var(--motion-dur-2) var(--motion-ease-out); }
}
@keyframes vs-pop { from { opacity: 0; translate: 0 0.6rem; } to { opacity: 1; translate: 0 0; } }
.vs__win-head { display: grid; grid-template-columns: 1fr auto; gap: var(--space-2xs) var(--space-xs); align-items: start; }
.vs__win-head h2 { font-size: var(--fs-2); }
.vs__win-tools { display: flex; flex-wrap: wrap; gap: var(--space-2xs); }
.vs__win-tools .btn-ghost { min-height: 2.25rem; }
.vs__win-head .chip { grid-column: 1; justify-self: start; }
.vs__note, .vs__count { margin-top: var(--space-2xs); color: var(--text-muted); font-size: var(--fs-n1); }
.vs__win .callout { width: auto; margin: var(--space-xs) 0 0; background: var(--surface-canvas); }
.vs__weaks { display: grid; gap: var(--space-2xs); margin-top: var(--space-s); }
.vs__extra { margin-top: var(--space-2xs); border-radius: var(--radius-3); background: var(--surface-card);
  box-shadow: 0 0 0 1px color-mix(in oklch, var(--action) 18%, var(--line)); }
.vs__weaks + .vs__extra { margin-top: var(--space-s); }
.vs__weak summary, .vs__extra summary, .vs__point-more summary { display: flex; align-items: center; gap: var(--space-xs); padding: var(--space-xs) var(--space-s);
  font-weight: 500; cursor: pointer; list-style: none; border-radius: var(--radius-3); }
.vs__weak summary::-webkit-details-marker, .vs__extra summary::-webkit-details-marker, .vs__point-more summary::-webkit-details-marker { display: none; }
.vs__weak summary:hover, .vs__extra summary:hover, .vs__point-more summary:hover { background: color-mix(in oklch, var(--action) 8%, var(--surface-card)); }
.vs__weak summary::after, .vs__extra summary::after, .vs__point-more summary::after { content: ""; flex: none; margin-left: auto; width: 0.5rem; height: 0.5rem;
  border-right: 2px solid var(--text-muted); border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg) translate(-2px, -2px); transition: transform var(--motion-dur-1) var(--motion-ease-out); }
.vs__weak[open] summary::after, .vs__extra[open] summary::after, .vs__point-more[open] summary::after { transform: rotate(-135deg); }
.vs__weak[open] > summary, .vs__point-more[open] > summary { background: transparent; font-weight: 700;
  border-radius: var(--radius-3) var(--radius-3) 0 0;
  box-shadow: inset 0 -1px 0 color-mix(in oklch, var(--action) 20%, var(--line)); }
.vs__n, .vs__key-n { flex: none; display: grid; place-items: center; width: 1.75rem; height: 1.75rem; border-radius: var(--radius-full);
  background: var(--surface-tint); color: var(--action); font-size: var(--fs-n1); font-weight: 700; font-variant-numeric: tabular-nums; }
.vs__edge, .vs__about { display: grid; gap: var(--space-s); padding: var(--space-xs) var(--space-s) var(--space-s) calc(var(--space-s) + 1.75rem + var(--space-xs)); }
.vs__arg { display: grid; justify-items: start; gap: var(--space-xs); }
.vs__edge p, .vs__about p { margin: 0; max-width: var(--measure); }
.vs__edge ul, .vs__facts { margin: 0; padding-left: 1.15rem; display: grid; gap: var(--space-2xs); }
.vs__facts { padding: 0 var(--space-s) var(--space-s) 2.4rem; }
.vs__label { display: flex; align-items: center; gap: 0.4rem; margin: 0 0 var(--space-3xs); font-size: var(--fs-n1); font-weight: 700; color: var(--text-muted); }
.vs__label--ours { color: var(--text); }
.vs__label--ours::before { content: ""; width: 0.45rem; height: 0.45rem; border-radius: 50%; background: var(--color-positive-5); }
.vs__say { padding: var(--space-xs) var(--space-s); border-left: 4px solid var(--action); border-radius: 0 var(--radius-2) var(--radius-2) 0;
  background: var(--surface-tint); font-size: var(--fs-1); }
.vs__close { display: grid; justify-items: start; gap: var(--space-2xs); }
.vs__copy { min-height: 2.25rem; }
.vs__blocks { display: grid; gap: var(--space-s); margin-top: var(--space-s); }
.vs__block h3, .vs__block--key h3, .vs__weaks > h3 { margin: 0; justify-self: start; }
.vs__block-lead { margin: 0; max-width: var(--measure); }
.vs__block ul { margin: var(--space-xs) 0 0; padding-left: 1.15rem; display: grid; gap: var(--space-2xs); }
.vs__block ul:has(> .vs__point) { list-style: none; padding-left: 0; }
.vs__block li { max-width: var(--measure); }
.vs__block ul:has(> .vs__point) > li { max-width: none; }
/* Одна панель на тезисы и на раскрывающиеся пункты: метка, лид-карточка, нумерованные карточки. */
.vs__block, .vs__weaks {
  position: relative;
  padding: var(--space-s);
  border-radius: var(--radius-4);
  background: var(--surface-card);
  border-left: 3px solid var(--action);
  box-shadow: 0 0 0 1px var(--line-soft);
}
.vs__block::before, .vs__weaks::before { content: none; }
.vs__block h3, .vs__weaks > h3 {
  display: block;
  margin: 0;
  padding: 0;
  border-radius: 0;
  background: none;
  color: var(--text);
  font-size: var(--fs-1);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0;
  text-transform: none;
  box-shadow: none;
}
.vs__block h3::before, .vs__weaks > h3::before { content: none; }
.vs__block--key h3 {
  display: block;
  justify-self: stretch;
  padding: var(--space-xs) var(--space-s);
  border-radius: var(--radius-3);
  background: var(--surface-card);
  color: var(--text);
  font-size: var(--fs-1);
  line-height: 1.35;
  box-shadow: 0 0 0 1px color-mix(in oklch, var(--action) 28%, var(--line));
}
.vs__block--key h3::before { content: none; }
.vs__block .vs__block-lead, .vs__weaks > .vs__block-lead {
  margin: var(--space-xs) 0 0;
  max-width: 38rem;
  padding: var(--space-xs) var(--space-s);
  border-radius: var(--radius-3);
  background: var(--surface-card);
  box-shadow: 0 0 0 1px color-mix(in oklch, var(--action) 28%, var(--line));
  font-size: var(--fs-1);
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
}
.vs__key-list {
  list-style: none;
  margin: var(--space-xs) 0 0;
  padding: 0;
  display: grid;
  gap: var(--space-2xs);
}
.vs__key-list > li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-xs);
  align-items: start;
  max-width: none;
  margin: 0;
  padding: var(--space-xs) var(--space-s);
  border-radius: var(--radius-3);
  background: color-mix(in oklch, var(--surface-card) 88%, transparent);
  box-shadow: 0 0 0 1px color-mix(in oklch, var(--action) 16%, var(--line-soft));
}
.vs__key-list > .vs__point { margin-left: 0; padding: 0; background: transparent; box-shadow: none; display: block; }
.vs__key-n { margin-top: 0.1rem; }
.vs__key-list > li > p { margin: 0; max-width: 62ch; line-height: 1.45; }

/* Возражения. Пружина нажатия — linear() с небольшим выходом за единицу:
   кнопка сразу продавливается и на отпускании мягко возвращается. */
.obj {
  --press-spring: linear(
    0, 0.006, 0.025 2.8%, 0.101 6.1%, 0.539 18.9%, 0.721 25.3%,
    0.849 31.5%, 0.937 38.1%, 0.968 41.8%, 0.991 45.7%, 1.006 50.1%,
    1.015 55%, 1.017 63.9%, 1.001 85.2%, 1
  );
}
.vs__blocks.obj > .vs__block > h2,
.vs__blocks.obj > .vs__block > h3 {
  display: block; padding: 0; border-radius: 0; background: none; color: inherit;
  font-size: inherit; font-weight: inherit; line-height: inherit; box-shadow: none;
}
.vs__blocks.obj > .vs__block > h2::before,
.vs__blocks.obj > .vs__block > h3::before { content: none; }
.obj__toggle {
  appearance: none; border: 0; cursor: pointer; font: inherit;
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-xs);
  width: 100%; min-height: 2.75rem; padding: 0.2rem 0;
  border-radius: var(--radius-2); background: transparent; color: var(--text);
  font-size: var(--fs-1); font-weight: 700; line-height: 1.3; letter-spacing: 0; text-align: left;
  box-shadow: none;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
  transition: background-color var(--motion-dur-1) var(--motion-ease-out);
}
.obj__toggle::before { content: none; }
.obj__toggle::after {
  content: ""; flex: none; width: 0.5rem; height: 0.5rem;
  border-right: 2px solid var(--text-muted); border-bottom: 2px solid var(--text-muted);
  transform: rotate(-135deg) translate(-1px, -1px);
  transition: transform var(--motion-dur-1) var(--motion-ease-out);
}
.obj__group.is-shut .obj__toggle::after { transform: rotate(45deg) translate(-1px, -1px); }
@media (hover: hover) and (pointer: fine) {
  .obj__toggle:hover { background: var(--surface-hover); color: var(--text); }
}
.obj__toggle:active { background: var(--surface-hover); }
.obj__toggle:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.obj__fold { display: grid; grid-template-rows: 1fr; transition: grid-template-rows 420ms var(--motion-ease-out); }
.obj__group.is-shut .obj__fold { grid-template-rows: 0fr; }
.obj__fold-in { min-height: 0; overflow: hidden; }
.obj__list { display: grid; gap: var(--space-2xs); margin-top: var(--space-xs); }
.obj__item {
  border-radius: var(--radius-3);
  background: color-mix(in oklch, var(--surface-card) 92%, transparent);
  box-shadow: 0 0 0 1px color-mix(in oklch, var(--action) 16%, var(--line-soft));
  interpolate-size: allow-keywords;
}
.obj__item summary, .obj__row {
  display: flex; align-items: center; gap: var(--space-xs);
  padding: var(--space-xs) var(--space-s); border-radius: var(--radius-3);
}
.obj__item summary {
  font-weight: 500; cursor: pointer; list-style: none;
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
  transform: translateZ(0);
  transition: transform 420ms var(--press-spring), background-color 120ms ease-out;
}
.obj__item summary:active {
  transform: scale(0.985);
  transition-duration: 70ms;
  transition-timing-function: ease-out;
}
.obj__item summary::-webkit-details-marker { display: none; }
.obj__item summary:hover { background: color-mix(in oklch, var(--action) 8%, var(--surface-card)); }
.obj__item summary::after {
  content: ""; flex: none; margin-left: auto; width: 0.5rem; height: 0.5rem;
  border-right: 2px solid var(--text-muted); border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform var(--motion-dur-1) var(--motion-ease-out);
}
.obj__item summary:has(.obj__count)::after { margin-left: var(--space-2xs); }
.obj__item[open] > summary {
  font-weight: 700;
  border-radius: var(--radius-3) var(--radius-3) 0 0;
  box-shadow: inset 0 -1px 0 color-mix(in oklch, var(--action) 22%, var(--line));
}
.obj__item[open] > summary::after { transform: rotate(-135deg); }
.obj__item .vs__key-n { margin-top: 0; }
.obj__title { flex: 1 1 12rem; min-width: 0; margin: 0; line-height: 1.35; }
.obj__count {
  flex: none; margin-left: auto; padding: 0.12rem 0.55rem; border-radius: var(--radius-full);
  background: color-mix(in oklch, var(--action) 12%, var(--surface-card));
  color: var(--text-muted); font-size: var(--fs-n1); font-weight: 700; font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.obj__panel { display: grid; gap: var(--space-xs); justify-items: start;
  padding: var(--space-xs) var(--space-s) var(--space-s); }
.obj__lead, .obj__vars p { margin: 0; max-width: 68ch; line-height: 1.45; }
.obj__lead {
  padding: var(--space-xs) var(--space-s); border-radius: var(--radius-2);
  background: var(--surface-tint); border-left: 3px solid var(--action);
}
.obj__vars { list-style: none; width: 100%; margin: 0; padding: 0; display: grid; gap: var(--space-2xs); }
.obj__vars > li {
  display: grid; grid-template-columns: auto 1fr; gap: var(--space-xs); align-items: start;
  margin: 0; padding: var(--space-xs) var(--space-s); max-width: none;
  border-radius: var(--radius-2); background: var(--surface-canvas); border-left: 3px solid var(--line);
}
.obj__var-n {
  font-size: var(--fs-n1); font-weight: 700; font-variant-numeric: tabular-nums;
  color: var(--action); line-height: 1.45;
}
@media (prefers-reduced-motion: no-preference) {
  .obj__item[open] .obj__panel { animation: obj-in var(--motion-dur-2) var(--motion-ease-out); }
}
@keyframes obj-in {
  from { opacity: 0; transform: translateY(-0.35rem); }
  to { opacity: 1; transform: none; }
}
.vs__point { list-style: none; margin: 0; max-width: none; }
.vs__weak, .vs__point-more {
  border-radius: var(--radius-3);
  background: color-mix(in oklch, var(--surface-card) 88%, transparent);
  box-shadow: 0 0 0 1px color-mix(in oklch, var(--action) 16%, var(--line-soft));
}
.vs__point-body { display: grid; gap: var(--space-xs); justify-items: start;
  padding: var(--space-xs) var(--space-s) var(--space-s) calc(var(--space-s) + 1.75rem + var(--space-xs)); }
.vs__point-body p { margin: 0; max-width: var(--measure); }
@media (max-width: 36rem) {
  .vs__edge, .vs__point-body { padding-left: var(--space-s); }
}
.vs__shot { display: inline; padding: 0; border: 0; background: none; color: var(--link); font: inherit;
  font-weight: 700; text-decoration: underline; text-underline-offset: 0.15em; cursor: pointer; }
.vs__shot:hover { color: var(--link-hover, var(--link)); }
.shot { width: min(72rem, calc(100vw - 2rem)); max-height: calc(100vh - 2rem); padding: 0; border: 0; background: transparent; }
.shot::backdrop { background: rgba(16, 18, 24, 0.72); }
.shot__frame { display: grid; gap: var(--space-xs); max-height: calc(100vh - 2rem); padding: var(--space-s); overflow: auto;
  background: var(--surface-card); border-radius: var(--radius-4); box-shadow: var(--shadow-card); }
.shot__bar { display: flex; align-items: flex-start; gap: var(--space-xs); }
.shot__cap { margin: 0; flex: 1; color: var(--text-muted); font-size: var(--fs-n1); }
.shot__x { flex: none; width: 2.75rem; height: 2.75rem; border: 0; border-radius: var(--radius-full);
  background: var(--action); color: var(--on-action); font-size: 1.5rem; line-height: 1; cursor: pointer; }
.shot__x:hover { background: var(--action-hover); }
.shot img { display: block; width: 100%; max-height: calc(100vh - 8rem); object-fit: contain; object-position: top center; background: var(--color-white); border-radius: var(--radius-2); }
@media (max-width: 36rem) {
  .vs__win-head { grid-template-columns: 1fr; }
  .vs__win-tools { grid-row: 1; }
  .vs__win-head h2 { grid-row: 2; }
}
