@import url("tokens.css");
/* Кабинет клуба на дизайн-системе Студии: цвета, шрифт, радиусы и капсулы — те же; числа — из page/tokens.css (файл рядом — копия сборки,
   равенство стережёт tests/design-system.test.ts: правится только page/tokens.css, потом `node club/tools/design.mjs`).
   Свои числа здесь — только те, что не о толщине и не о размере (доля, проценты, кадры анимации). Свой цвет один — жёлтый бренда вместо синего акцента.
   Тема Telegram не подмешивается: кабинет всегда как Студия. */
@font-face { font-family: "Google Sans"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("GoogleSans-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Google Sans"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("GoogleSans-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

:root {
  color-scheme: dark;
  --canvas: #141414;
  --card: #222;
  --inner: #262626;
  --chip: #404040;
  --modal: #1f1f1f;
  --edge: rgb(255 255 255 / .12);
  --text: #fafafa;
  --muted: #8a8a8a;
  --icon: #737373;
  --ok: #30d158;
  --danger: #ff6961;
  --accent: #f5c518;
  --on-accent: #141414;

  /* Смысл тех же чисел, что у Студии: отступ карточки, радиусы, отступ строки, кружок, нижний бар. */
  --pad: var(--s4);
  --radius: var(--r-l);
  --radius-inner: var(--r-m);
  --pill: var(--r-pill);
  --radius-small: var(--r-s);
  --row-inset: var(--s4);
  --bubble: var(--ctl);
  --bar: var(--bar-s);
  --bar-gap: var(--s3);
  /* Telegram советует привязывать низ к стабильной высоте: страница бывает выше видимой части, когда окно свёрнуто. */
  --stable: var(--tg-viewport-stable-height, 100dvh);
  --safe-bottom: max(env(safe-area-inset-bottom), var(--tg-safe-area-inset-bottom, 0px));
  --safe-top: calc(var(--tg-safe-area-inset-top, 0px) + var(--tg-content-safe-area-inset-top, 0px));
  --bar-top: calc(var(--stable) - var(--bar) - var(--bar-gap) - var(--safe-bottom));
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; scrollbar-width: none; }
::-webkit-scrollbar { width: 0; height: 0; }
html { -webkit-text-size-adjust: 100%; background: var(--canvas); scroll-padding-bottom: calc(var(--bar) + var(--bar-gap) + var(--s4)); }
body { margin: 0; min-height: 100dvh; background: var(--canvas); color: var(--text); font: 400 var(--fs-b)/1.5 "Google Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; overscroll-behavior-y: contain; }
h1, h2, p, ul { margin: 0; padding: 0; }
button { font: inherit; color: inherit; touch-action: manipulation; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
::selection { background: var(--accent); color: var(--on-accent); }

main {
  display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: var(--s5);
  max-width: var(--measure-s); margin: 0 auto;
  padding: calc(var(--pad) + var(--safe-top)) var(--pad) calc(var(--bar) + var(--bar-gap) + var(--s5) + var(--safe-bottom) + 100dvh - var(--stable));
}
.stack { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s2); }

/* Шапка экрана */
.head { display: flex; align-items: center; gap: var(--s3); min-height: var(--s7); }
.head-text { flex: 1; min-width: 0; }
.head h1 { font-size: var(--fs-2xl); line-height: 30px; font-weight: var(--fw-b); letter-spacing: -.01em; overflow-wrap: anywhere; }
.head p { margin-top: var(--s1); font-size: var(--fs-m); line-height: 20px; color: var(--muted); overflow-wrap: anywhere; }
.logo { flex: none; display: grid; place-items: center; width: var(--s7); height: var(--s7); border-radius: var(--radius-inner); background: var(--card); }
.logo svg { display: block; width: var(--logo-s); height: var(--logo-s); }
.avatar { flex: none; display: grid; place-items: center; width: var(--s7); height: var(--s7); border-radius: 50%; object-fit: cover; background: var(--chip); color: var(--text); font-size: var(--fs-l); font-weight: var(--fw-b); }
.page-head { display: grid; justify-items: start; gap: var(--s1); }
.page-head h1 { font-size: var(--fs-2xl); line-height: 30px; font-weight: var(--fw-b); letter-spacing: -.01em; overflow-wrap: anywhere; }
.back { display: inline-flex; align-items: center; gap: var(--s1); min-height: var(--ctl-l); margin: calc(-1 * var(--s2)) 0 0 calc(-1 * var(--s2)); padding: 0 var(--s3) 0 var(--s1); border: 0; border-radius: var(--radius-inner); background: none; color: var(--muted); font-size: var(--fs-b); font-weight: var(--fw-m); cursor: pointer; }
.back .icon { width: var(--ic-xl); height: var(--ic-xl); }
.back:active { color: var(--text); }

/* Значки: одна сетка 24, одна толщина линии */
.icon { flex: none; display: grid; place-items: center; }
svg.line, .icon svg { display: block; width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* Раздел: подпись снаружи, карточка внутри */
.section { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s2); }
.section > h2 { padding: 0 var(--row-inset); font-size: var(--fs-s); line-height: 18px; font-weight: var(--fw-m); color: var(--muted); }

.group { min-width: 0; overflow: hidden; border-radius: var(--radius); background: var(--card); }
.card { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s3); min-width: 0; padding: var(--row-inset); border-radius: var(--radius); background: var(--card); }

/* Строка: кружок, текст, стрелка. Линия между строками начинается от текста. */
.row { position: relative; display: flex; align-items: center; gap: var(--s3); width: 100%; min-height: var(--row-h-l); padding: var(--s3) var(--row-inset); border: 0; background: none; color: inherit; font: inherit; text-align: left; }
.row.slim { min-height: var(--s7); padding-block: var(--s2); }
.row + .row::before { content: ""; position: absolute; top: 0; left: calc(var(--row-inset) + var(--bubble) + var(--s3)); right: 0; height: 1px; background: var(--edge); }
.row:not(:has(.bubble))::before { left: var(--row-inset) !important; }
button.row { cursor: pointer; transition: background-color .12s; }
button.row:active:not(:disabled) { background: var(--inner); }
.row:focus-visible { outline-offset: -2px; }
.bubble { flex: none; display: grid; place-items: center; width: var(--bubble); height: var(--bubble); border-radius: 50%; background: var(--chip); color: var(--text); font-size: var(--fs-m); line-height: 1; font-weight: var(--fw-b); font-variant-numeric: tabular-nums; }
.bubble .icon { width: var(--ic-s); height: var(--ic-s); }
.row-text { flex: 1; min-width: 0; }
.row-text b { display: block; font-size: var(--fs-b); line-height: 20px; font-weight: var(--fw-m); overflow-wrap: anywhere; }
.row-text span { display: block; margin-top: 0; font-size: var(--fs-s); line-height: 18px; color: var(--muted); overflow-wrap: anywhere; }
.tail { width: var(--ic-s); height: var(--ic-s); color: var(--icon); }
.row.locked { cursor: default; }
.row.locked .bubble { background: var(--inner); color: var(--muted); }
.row.locked b { color: var(--muted); }
.row-value { flex: none; text-align: right; }
.row-value b { display: block; font-size: var(--fs-b); line-height: 20px; font-weight: var(--fw-b); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Кнопки: радиусы карточек Студии. Капсула только у нижнего бара. */
.btn { display: flex; align-items: center; justify-content: center; gap: var(--s2); width: 100%; min-height: var(--ctl-l); padding: 0 var(--s4); border: 0; border-radius: var(--radius-inner); background: var(--chip); color: var(--text); font-size: var(--fs-m); font-weight: var(--fw-m); text-align: center; cursor: pointer; transition: transform .12s; }
.btn:active:not(:disabled) { transform: scale(.98); }
.btn .icon { width: var(--ic-s); height: var(--ic-s); }
.btn.primary { min-height: var(--s7); border-radius: var(--radius); background: var(--accent); color: var(--on-accent); font-size: var(--fs-b); font-weight: var(--fw-b); }
.btn.quiet { background: none; color: var(--muted); }
.btn.danger { color: var(--danger); }
.btn.mini { position: relative; flex: none; width: auto; min-height: var(--ctl); padding: 0 var(--s3); border-radius: var(--radius-small); font-size: var(--fs-s); }
.btn.mini::after { content: ""; position: absolute; inset: calc(-1 * var(--s1)) 0; }
.btn:disabled { cursor: default; }
/* Ответ задержался: крутится то, что нажали */
.btn.busy { position: relative; color: transparent; }
.btn.busy::before, .row.busy .tail, .spinner { content: ""; display: block; width: var(--ic-s); height: var(--ic-s); border-radius: 50%; border: 2px solid var(--muted); border-top-color: transparent; animation: spin .7s linear infinite; }
.btn.busy::before { position: absolute; left: calc(50% - var(--ic-s) / 2); top: calc(50% - var(--ic-s) / 2); }
.btn.primary.busy::before { border-color: var(--on-accent); border-top-color: transparent; }
.row.busy .tail svg { display: none; }
.spinner { margin: var(--s6) auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.cta { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s2); }
.caption { font-size: var(--fs-s); line-height: 18px; color: var(--muted); text-align: center; }

/* Текст гайда */
.prose { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s3); }
.prose p { font-size: var(--fs-m); line-height: 1.5; overflow-wrap: anywhere; white-space: pre-line; }
.prose .lead { color: var(--muted); }
.code { position: relative; min-width: 0; }
.copy { position: absolute; top: 0; right: 0; display: grid; place-items: center; width: var(--ctl-l); height: var(--ctl-l); padding: var(--s3); border: 0; background: none; color: var(--muted); cursor: pointer; }
.copy svg { display: block; width: var(--ic-m); height: var(--ic-m); fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.copy[data-done] { color: var(--ok); }
.copy[data-done] path { stroke-dasharray: 24; animation: draw .24s ease-out; }
@keyframes draw { from { stroke-dashoffset: 24; } }
pre { margin: 0; padding: var(--s3) calc(var(--ctl-l) + var(--s2)) var(--s3) var(--s3); min-height: var(--ctl-l); border-radius: var(--radius-inner); background: var(--canvas); font: var(--fs-s)/20px ui-monospace, "SF Mono", Menlo, monospace; white-space: pre-wrap; overflow-wrap: anywhere; user-select: all; -webkit-user-select: all; }
code { padding: 1px var(--s1); border-radius: var(--radius-small); background: var(--canvas); font: var(--fs-xs) ui-monospace, "SF Mono", Menlo, monospace; overflow-wrap: anywhere; }
.prose code { cursor: pointer; user-select: all; -webkit-user-select: all; }
.prose code[data-done] { color: var(--ok); }

/* Значения и журналы */
.pair { position: relative; display: flex; justify-content: space-between; align-items: center; gap: var(--s4); min-height: var(--ctl-l); padding: var(--s3) var(--row-inset); font-size: var(--fs-m); line-height: 20px; }
.pair + .pair::before { content: ""; position: absolute; top: 0; left: var(--row-inset); right: 0; height: 1px; background: var(--edge); }
.pair > span { color: var(--muted); }
.pair > b { font-weight: var(--fw-m); text-align: right; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.lines { display: grid; gap: var(--s2); padding: var(--row-inset); list-style: none; }
.lines li { position: relative; padding-left: var(--s4); font-size: var(--fs-m); line-height: 20px; overflow-wrap: anywhere; }
.lines li::before { content: ""; position: absolute; left: 1px; top: 8px; width: var(--s1); height: var(--s1); border-radius: 50%; background: var(--icon); }

/* Нижний бар: активная вкладка раскрывается в значок с подписью */
.tabs { position: fixed; z-index: 10; left: 50%; top: var(--bar-top); transform: translateX(-50%); display: flex; gap: var(--s1); height: var(--bar); padding: var(--s1); border-radius: var(--pill); background: var(--card); box-shadow: 0 0 0 1px var(--edge), 0 8px 24px rgb(0 0 0 / .4); }
.scrim { position: fixed; z-index: 9; left: 0; right: 0; top: calc(var(--bar-top) - var(--s5)); height: calc(var(--bar) + var(--bar-gap) + var(--s5) + var(--safe-bottom)); background: linear-gradient(to bottom, transparent, var(--canvas) 45%); pointer-events: none; }
.tabs button { display: flex; align-items: center; justify-content: center; min-width: calc(var(--ctl-l) + var(--s3)); height: 100%; padding: 0 var(--s4); border: 0; border-radius: var(--pill); background: transparent; color: var(--muted); font-size: var(--fs-m); font-weight: var(--fw-b); cursor: pointer; transition: background-color .2s, color .2s; }
.tabs .icon { width: var(--ic-l); height: var(--ic-l); }
.tabs .label { max-width: 0; overflow: hidden; opacity: 0; white-space: nowrap; transition: max-width .24s cubic-bezier(.3, .8, .3, 1), opacity .16s, margin-left .24s cubic-bezier(.3, .8, .3, 1); }
.tabs button[aria-selected="true"] { background: var(--accent); color: var(--on-accent); }
.tabs button[aria-selected="true"] .icon { animation: pop .28s cubic-bezier(.3, .8, .3, 1); }
@keyframes pop { from { transform: scale(.8); } }
.tabs button[aria-selected="true"] .label { max-width: calc(var(--s7) * 2); margin-left: var(--s2); opacity: 1; }
.tabs button:focus-visible { outline-offset: -2px; }
/* Клавиатура поднимает низ окна: бар в это время только мешает. */
body:has(input:focus, textarea:focus) :is(.tabs, .scrim) { display: none; }

.toast { position: fixed; z-index: 11; left: 50%; top: calc(var(--bar-top) - var(--s3)); transform: translate(-50%, -100%); width: min(calc(100% - var(--s6)), calc(var(--measure-s) - var(--s6))); padding: var(--s3) var(--row-inset); border-radius: var(--radius-inner); background: var(--modal); box-shadow: 0 0 0 1px var(--edge), 0 12px 32px rgb(0 0 0 / .5); color: var(--danger); font-size: var(--fs-s); line-height: 18px; }

/* Экран без данных: вне Telegram, загрузка, сбой */
main:has(> .empty) { padding-bottom: var(--pad); }
.empty { display: grid; justify-items: center; align-content: center; gap: var(--s3); min-height: calc(var(--stable) - 2 * var(--pad)); text-align: center; }
.empty h1 { font-size: var(--fs-2xl); line-height: 30px; font-weight: var(--fw-b); }
.empty p { max-width: var(--w-l); font-size: var(--fs-m); line-height: 20px; color: var(--muted); }
.empty .btn { width: auto; min-width: var(--w-m); }

/* Админка */
.pills { display: flex; justify-content: space-between; gap: var(--s3); max-width: 100%; margin-top: calc(-1 * var(--s2)); overflow-x: auto; }
.pill { position: relative; flex: none; min-height: var(--ctl-l); padding: 0 var(--s1); border: 0; border-radius: var(--radius-small); background: transparent; color: var(--muted); font-size: var(--fs-l); line-height: 1.2; font-weight: var(--fw-m); white-space: nowrap; cursor: pointer; }
.pill[aria-selected="true"] { color: var(--text); }
.pill[aria-selected="true"]::after { content: ""; position: absolute; left: var(--s1); right: var(--s1); bottom: var(--s1); height: 2px; border-radius: var(--radius-small); background: var(--text); }
.pill:focus-visible { outline-offset: -2px; }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s2); }
.tile { display: grid; gap: var(--s1); padding: var(--s3) var(--row-inset); border-radius: var(--radius); background: var(--card); }
.tile b { font-size: var(--fs-3xl); line-height: 32px; font-weight: var(--fw-b); font-variant-numeric: tabular-nums; }
.tile span { font-size: var(--fs-s); line-height: 18px; color: var(--muted); }
.choice { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: var(--s1); padding: var(--s1); border-radius: var(--radius-inner); background: var(--canvas); }
.choice button { min-height: var(--ctl); padding: 0 var(--s2); border: 0; border-radius: var(--radius-small); background: none; color: var(--muted); font-size: var(--fs-m); font-weight: var(--fw-m); cursor: pointer; transition: background-color .16s, color .16s; }
.choice button[aria-selected="true"] { background: var(--chip); color: var(--text); }
/* 16 px у поля — не размер вида: меньше 16 браузер телефона приближает страницу при нажатии (и не отдаляет обратно). */
.field { display: block; width: 100%; min-height: var(--ctl-l); padding: 0 var(--s3); border: 0; border-radius: var(--radius-inner); background: var(--canvas); color: var(--text); font: inherit; font-size: 16px; }
.field::placeholder { color: var(--muted); }
textarea.field { padding: var(--s3); resize: vertical; font-size: 16px; line-height: 22px; }
.field-card { background: var(--card); }
.inline { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); font-size: var(--fs-m); color: var(--muted); }
.field::-webkit-outer-spin-button, .field::-webkit-inner-spin-button { appearance: none; margin: 0; }
.field.short { appearance: textfield; flex: none; width: calc(var(--s7) + var(--s5)); padding: 0 var(--s2); text-align: center; }
.search { position: relative; }
.search .icon { position: absolute; left: var(--s3); top: var(--s3); width: var(--ic-s); height: var(--ic-s); color: var(--icon); pointer-events: none; }
.search .field { padding-left: calc(var(--ic-s) + var(--s5)); }
.promo { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: var(--s2); padding: var(--s3) var(--row-inset); }
.promo + .promo::before { content: ""; position: absolute; top: 0; left: var(--row-inset); right: 0; height: 1px; background: var(--edge); }
.promo-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: var(--s2); }
.tag { display: inline-flex; align-items: center; height: var(--s5); padding: 0 var(--s2); border-radius: var(--radius-small); background: var(--inner); color: var(--muted); font-size: var(--fs-xs); font-weight: var(--fw-m); white-space: nowrap; }
.tag.waiting { background: var(--chip); color: var(--text); }
.log { display: grid; gap: var(--s2); padding: var(--row-inset); list-style: none; }
.log li { display: grid; gap: 0; font-size: var(--fs-m); line-height: 20px; overflow-wrap: anywhere; }
.log span:first-child { font-size: var(--fs-xs); line-height: 16px; color: var(--muted); }
.result { font-size: var(--fs-s); line-height: 18px; color: var(--muted); }

@media (hover: hover) {
  button.row:hover:not(:disabled) { background: var(--inner); }
  .btn:not(.primary, .quiet):hover { background: #4d4d4d; }
  .btn.quiet:hover { color: var(--text); }
  .btn.danger:hover { color: var(--danger); }
  .tabs button:not([aria-selected="true"]):hover, .pill:hover { color: var(--text); }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* Документы: страница без Telegram и экран в кабинете */
.legal, .legal-text { font-size: var(--fs-b); line-height: 1.55; overflow-wrap: anywhere; }
.legal { display: block; padding: calc(var(--pad) + var(--safe-top)) var(--pad) var(--s7); }
.legal h1, .legal-text h1 { margin: var(--s2) 0 var(--s4); font-size: var(--fs-2xl); line-height: 30px; font-weight: var(--fw-b); letter-spacing: -.01em; }
.legal h2, .legal-text h2 { margin: var(--s5) 0 var(--s3); font-size: var(--fs-l); line-height: 24px; font-weight: var(--fw-b); }
.legal h3, .legal-text h3 { margin: var(--s4) 0 var(--s2); font-size: var(--fs-b); line-height: 22px; font-weight: var(--fw-b); }
.legal p, .legal-text p { margin: 0 0 var(--s3); }
.legal ul, .legal ol, .legal-text ul, .legal-text ol { margin: 0 0 var(--s3); padding-left: var(--s5); }
.legal li, .legal-text li { margin-bottom: var(--s2); }
.legal a, .legal-text a { color: var(--accent); }
.legal code, .legal-text code { padding: 1px var(--s1); border-radius: var(--radius-small); background: var(--inner); font-size: var(--fs-s); }
.legal pre, .legal-text pre { overflow-x: auto; margin: 0 0 var(--s3); padding: var(--s3); border-radius: var(--radius-inner); background: var(--card); font-size: var(--fs-xs); line-height: 1.45; }
.edition { color: var(--muted); font-size: var(--fs-s); }
.table { overflow-x: auto; margin: 0 0 var(--s3); border-radius: var(--radius-inner); border: 1px solid var(--edge); }
.table table { border-collapse: collapse; width: 100%; font-size: var(--fs-s); line-height: 1.45; }
.table th, .table td { padding: var(--s2) var(--s3); text-align: left; vertical-align: top; border-bottom: 1px solid var(--edge); }
.table tr:last-child td { border-bottom: 0; }
.table th { font-weight: var(--fw-b); color: var(--muted); }
.ticks { display: grid; gap: var(--s3); }
.tick { display: flex; gap: var(--s3); align-items: flex-start; cursor: pointer; }
.tick input { flex: none; width: var(--ic-m); height: var(--ic-m); margin: 0; accent-color: var(--accent); }

.tabs[hidden], .scrim[hidden] { display: none; }

/* ---------- Главный экран: яркая шапка ---------- */
h3 { margin: 0; }
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s3); overflow: hidden; padding: 0 0 var(--row-inset); border-radius: var(--r-xl); background: #000; box-shadow: 0 0 0 1px var(--edge); }
.hero-art { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; margin-bottom: calc(-1 * var(--s5) - var(--s4)); -webkit-mask-image: linear-gradient(#000 60%, transparent); mask-image: linear-gradient(#000 60%, transparent); }
.hero-text { position: relative; display: grid; gap: var(--s1); padding: 0 var(--row-inset); }
.hero h1 { font-size: var(--fs-3xl); line-height: 32px; font-weight: var(--fw-b); letter-spacing: -.01em; }
.hero p { font-size: var(--fs-m); line-height: 20px; color: #b5b5b5; }
.hero .cta { padding: 0 var(--row-inset); }

/* Цветные кружки: оттенок бренда, линия значка в цвет */
.bubble.t-yellow { background: rgb(245 197 24 / .16); color: #f5c518; }
.bubble.t-orange { background: rgb(255 159 10 / .16); color: #ff9f0a; }
.bubble.t-green { background: rgb(48 209 88 / .15); color: #30d158; }
.bubble.t-violet { background: rgb(191 90 242 / .16); color: #c77dff; }
.row.locked .bubble[class*="t-"] { opacity: .55; }
.row.locked b { color: var(--text); }
.tail.lock { color: var(--muted); }

/* Плашки 16:9: картинка, заголовок, строка */
.plates { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s3); }
.plate { overflow: hidden; border-radius: var(--radius); background: var(--card); }
.plate figure { position: relative; margin: 0; aspect-ratio: 16 / 9; background: var(--inner); }
.plate img { display: block; width: 100%; height: 100%; object-fit: cover; }
.example { position: absolute; top: var(--s2); right: var(--s2); padding: var(--s1) var(--s2); border-radius: var(--radius-small); background: rgb(0 0 0 / .6); color: #d4d4d4; font-size: var(--fs-2xs); line-height: 16px; font-weight: var(--fw-m); }
.plate-text { display: grid; gap: var(--s1); padding: var(--s3) var(--row-inset) var(--s4); }
.plate h3 { font-size: var(--fs-l); line-height: 22px; font-weight: var(--fw-b); }
.plate p { font-size: var(--fs-s); line-height: 18px; color: var(--muted); }

/* Владелец: просмотр как клиент */
.as-client { position: sticky; top: calc(var(--safe-top) + var(--s1)); z-index: 8; display: flex; align-items: center; gap: var(--s2); min-height: calc(var(--ctl-l) - var(--s1)); padding: 0 var(--s1) 0 var(--s3); border-radius: var(--radius-inner); background: var(--accent); color: var(--on-accent); font-size: var(--fs-s); font-weight: var(--fw-b); }
.as-client > span:nth-child(2) { flex: 1; }
.as-client .icon { width: var(--ic-s); height: var(--ic-s); }
.strip-close { display: grid; place-items: center; width: calc(var(--ctl-l) - var(--s1)); height: calc(var(--ctl-l) - var(--s1)); border: 0; background: none; color: inherit; cursor: pointer; }
.strip-close .icon { width: var(--ic-s); height: var(--ic-s); }
.roles { display: flex; flex-wrap: wrap; gap: var(--s2); }
.row[data-done] .tail { color: var(--ok); }
.table table { min-width: var(--measure-s); }
.table th, .table td { min-width: calc(var(--s7) * 2); }
.caption.terms { color: var(--text); opacity: .8; }
