/* Ответ видео — плеер в ленте (brand/answer-video.js), общий для витрин. Цвета — только токенами: витрина меняет
   --rb-* и тему, плеер перекрашивается сам, в том числе посреди показа. Макет — static/mockups/answer-video.html */

.lzv { --v-ink: var(--rb-ink); --v-canvas: var(--rb-canvas); --v-muted: var(--rb-muted); --v-faint: var(--rb-faint); --v-line: var(--rb-line);
  --v-ok: var(--rb-good); --v-white: var(--lz-white); --v-black: var(--lz-black); --v-ease: cubic-bezier(.2, .8, .2, 1);
  --v-glass: var(--rb-glass-bg); --v-glass-shadow: inset 0 0 0 1px var(--rb-glass-border), var(--rb-shadow-glass);
  display: grid; gap: 10px; margin: 2px 0 6px; color: var(--v-ink) }
.lzv-hidden > :not(.lzv-keep) { display: none !important }
.lz-rich.lzv-hidden:not(:has(.lzv-keep)) { display: none }
.lzv-i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round }
.lzv-glass { background: var(--v-glass); -webkit-backdrop-filter: var(--rb-blur); backdrop-filter: var(--rb-blur);
  box-shadow: var(--v-glass-shadow); transition: background-color .45s var(--v-ease), box-shadow .45s var(--v-ease) }

/* сцена: без рамки, сцены сменяют друг друга на месте */
.lzv-stage { position: relative; height: clamp(300px, 52vw, 420px); overflow: hidden; contain: layout paint; cursor: pointer; -webkit-tap-highlight-color: transparent }
.lzv-stage.is-v { width: min(360px, 100%); height: auto; aspect-ratio: 9 / 16; margin: 0 auto }
.lzv-sc { position: absolute; inset: 0; padding: 24px 22px; display: grid; transform-origin: 50% 50%; transition: transform 1.1s var(--v-ease) }
.lzv-sc.is-off { pointer-events: none }
.lzv-wait { opacity: 0 }
.lzv-lbl, .lzv-cap { color: var(--v-muted); font-size: 14px; line-height: 1.3 }

.lzv-forming { position: relative; width: 100%; height: 100%; border-radius: var(--rb-radius-lg); overflow: hidden }
/* ответ пишется в режиме «Видео» / голос первой главы синтезируется: тихая плашка «Готовлю…» (обложка главы — за ней) */
.lzv-sc.is-loading > :not(.lzv-load) { opacity: .4 }
.lzv-load { position: absolute; left: 50%; top: 50%; z-index: 4; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: var(--rb-radius-pill); background: var(--v-glass); box-shadow: var(--v-glass-shadow); color: var(--v-muted); font-size: 12.5px; white-space: nowrap }
.lzv-load .rb-spinner { width: 13px; height: 13px; border-width: 2px }
.lzv-forming.is-quiet { display: grid; place-items: center; background: var(--rb-surface-soft) }
.lzv-forming.is-quiet .lzv-load { position: static; transform: none }
.lzv-draft { width: 680px; max-width: 100%; height: clamp(180px, 30svh, 300px); margin: 4px 0 }

.lzv-sc--go { place-content: center }
.lzv-go { height: 48px; padding: 0 22px 0 18px; font-size: 16px }   /* вид — роль «главная» (rb-btn--primary, brand/roles.css) */
.lzv-sc--poster + .lzv-sc--go { place-content: end center }   /* над обложкой — внизу, не поверх заголовка */

/* заголовок главы крупно; без заголовка — фраза голоса */
.lzv-sc--title { place-content: center; text-align: center; gap: 18px }
.lzv-big { font-size: clamp(34px, 6vw, 56px); line-height: 1.05; font-weight: 650; letter-spacing: -.035em }
.lzv-sc--title .lzv-big { font-size: clamp(26px, 4vw, 38px); color: var(--v-muted) }
.lzv-say { font-size: clamp(24px, 4vw, 36px); line-height: 1.25; font-weight: 650; letter-spacing: -.02em; max-width: 22ch; margin: 0 auto; min-height: 2.5em; color: var(--v-faint) }
.lzv.is-say .lzv-kar { display: none }

/* два числа */
.lzv-sc--duel { place-content: center; justify-items: center; gap: 22px }
.lzv-duel { display: flex; gap: clamp(28px, 8vw, 84px); align-items: end }
.lzv-side { display: grid; gap: 2px; justify-items: start }
.lzv-num { font-size: clamp(56px, 12vw, 104px); line-height: .95; font-weight: 650; letter-spacing: -.045em; font-variant-numeric: tabular-nums }
.lzv-num small { font-size: .42em; font-weight: 500; letter-spacing: 0; margin-left: .12em; color: var(--v-muted) }
.lzv-side { transition: opacity .5s var(--v-ease) }
.lzv-side.is-quiet { opacity: .38 }
.lzv-note { font-size: 13px; color: var(--v-muted); max-width: 22ch; line-height: 1.3; margin-top: 4px }
.lzv-duel.n3 .lzv-num { font-size: clamp(44px, 8vw, 80px) }
.lzv-duel.n4 { gap: clamp(18px, 4vw, 40px) } .lzv-duel.n4 .lzv-num { font-size: clamp(36px, 6vw, 60px) }
.lzv-diff { padding: 9px 18px; border-radius: var(--rb-radius-pill); font-size: 15px; font-weight: 500 }

/* карточки */
.lzv-sc--cards { align-content: center }
.lzv-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 14px }
.lzv-card { border-radius: var(--rb-radius-xl); padding: 20px 18px; display: grid; gap: 6px; align-content: start; min-height: 140px }
.lzv-card b { font-size: clamp(20px, 3.4vw, 30px); line-height: 1.1; font-weight: 650; letter-spacing: -.025em; overflow-wrap: anywhere }
.lzv-card span { color: var(--v-muted); font-size: 14px; line-height: 1.35 }

/* плашка: полоски, таблица, цитата */
.lzv-sc--plate { place-content: center stretch }
.lzv-plate { width: min(580px, 100%); justify-self: center; border-radius: var(--rb-radius-xl); padding: 22px 24px; display: grid; gap: 10px; align-content: start; min-width: 0 }
.lzv-bars { --lw: 168px; --vw: 54px; --g: 12px; position: relative; display: grid; gap: 14px; padding: 26px 0 4px }
.lzv-bar { display: grid; grid-template-columns: var(--lw) 1fr var(--vw); gap: var(--g); align-items: center; font-size: 14px }
.lzv-bar__l { color: var(--v-muted); line-height: 1.3 }
.lzv-bar__v { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums }
.lzv-tr { height: 12px; border-radius: var(--rb-radius-xs); background: color-mix(in srgb, var(--v-ink) 7%, transparent); overflow: hidden; display: block }
.lzv-fl { display: block; height: 100%; width: 0; border-radius: var(--rb-radius-xs); background: var(--v-faint); transition: width 1.2s var(--v-ease) }
.lzv-fl.is-ok { background: var(--v-ok) }
.is-grown .lzv-fl { width: var(--w); min-width: 12px }
.lzv-mark { position: absolute; top: 0; bottom: 0; left: calc(var(--lw) + var(--g) + (100% - var(--lw) - var(--vw) - 2 * var(--g)) * var(--x)); border-left: 1.5px dashed var(--v-muted) }
.lzv-mark span { position: absolute; top: 0; left: 8px; white-space: nowrap; font-size: 12.5px; color: var(--v-muted) }
.lzv-tb { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums }
.lzv-tb th { text-align: right; font-weight: 500; color: var(--v-muted); font-size: 13.5px; padding: 0 12px 6px }
.lzv-tb td { padding: 9px 12px; text-align: right; font-size: 16px; border-top: 1px solid color-mix(in srgb, var(--v-ink) 9%, transparent); transition: color .5s var(--v-ease) }
.lzv-tb td:first-child, .lzv-tb th:first-child { text-align: left; padding-left: 0 }
.lzv-tb td:last-child { color: var(--v-muted) }
.lzv-tb tr.is-total td { font-weight: 650 }
.lzv-tb tbody tr.is-dim td { color: var(--v-faint) }
.lzv-tb tbody tr.is-focus td { font-weight: 650; color: var(--v-ink) }
.lzv-tb tbody tr.is-focus td:first-child { box-shadow: inset 3px 0 0 var(--v-ink); padding-left: 12px }
.lzv-quote { margin: 0; padding: 30px 32px }
.lzv-quote blockquote { margin: 0; font-family: var(--lz-font-read); font-size: clamp(24px, 4.4vw, 34px); line-height: 1.3; font-weight: 420; letter-spacing: -.01em }
.lzv-qw { color: color-mix(in srgb, var(--v-ink) 22%, transparent); transition: color .35s var(--v-ease) }
.lzv-qw.is-lit { color: var(--v-ink) }
.lzv-quote figcaption { color: var(--v-muted); font-size: 14px }

/* шаги: номер в кружке, линия от шага к шагу */
.lzv-steps ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; position: relative }
.lzv-steps li { position: relative; display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: start; font-size: 16px; line-height: 1.4 }
.lzv-steps li > i { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font: 600 14px/1 var(--rb-font-body); font-style: normal;
  box-shadow: inset 0 0 0 1.5px var(--v-ink) }
.lzv-steps li:not(:last-child)::after { content: ""; position: absolute; left: 14.25px; top: 34px; bottom: -12px; width: 1.5px; background: color-mix(in srgb, var(--v-ink) 18%, transparent) }
.lzv-steps li b { font-weight: 650 }

/* сравнение в две колонки */
.lzv-sc--compare { grid-template-columns: 1fr 1fr; gap: 14px; align-items: center }
.lzv-col { border-radius: var(--rb-radius-xl); padding: 20px 22px; display: grid; gap: 12px; align-content: start }
.lzv-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px }
.lzv-col li { display: flex; gap: 10px; align-items: flex-start; font-size: 15.5px; line-height: 1.35 }
.lzv-col li .lzv-i { margin-top: 1px; color: var(--v-ok) }
.lzv-col.is-other li { color: var(--v-muted) }
.lzv-col.is-other li::before { content: ""; flex: none; width: 10px; height: 1.5px; margin: 10px 4px 0; background: var(--v-faint) }
.lzv-col .lzv-cap { font-size: 15px; color: var(--v-ink); font-weight: 600 }
.lzv-col.is-other .lzv-cap { color: var(--v-muted) }

/* вертикаль 9:16 — та же сцена в столбик */
.is-v .lzv-sc { padding: 30px 20px }
.is-v .lzv-duel { flex-direction: column; align-items: center; gap: 22px }
.is-v .lzv-side { justify-items: center }
.is-v .lzv-num { font-size: 84px }
.is-v .lzv-duel.n3 .lzv-num, .is-v .lzv-duel.n4 .lzv-num { font-size: 56px }
.is-v .lzv-cards { grid-template-columns: 1fr; gap: 10px }
.is-v .lzv-card { min-height: 0; padding: 16px 18px }
.is-v .lzv-sc--compare { grid-template-columns: 1fr; align-content: center; gap: 10px }
.is-v .lzv-bars { --lw: 96px; --vw: 46px; --g: 8px }
.is-v .lzv-big { font-size: 44px }
.is-v .lzv-tb td { font-size: 14px; padding: 8px 6px } .is-v .lzv-tb th { padding: 0 6px 6px }
.is-v .lzv-plate { padding: 20px 18px }

/* связи (map, flow): SVG-раскладка плеера — узлы, линии, наконечники; видна раскладка под кадр (горизонталь / вертикаль) */
.lzv-plate--graph { width: min(920px, 100%); padding: 18px 20px }
.lzv-graph { display: block; width: 100%; margin: 0 auto; height: auto; max-height: 290px; overflow: visible }
.lzv-stage.is-v .lzv-graph { max-height: 540px }
.lzv-stage.is-v .lzv-graph.is-wide, .lzv-stage:not(.is-v) .lzv-graph.is-tall { display: none }
.lzv-node { transform-box: fill-box; transform-origin: center }
.lzv-node rect { fill: color-mix(in srgb, var(--v-ink) 4%, var(--v-canvas)); stroke: color-mix(in srgb, var(--v-ink) 18%, transparent); stroke-width: 1;
  transition: fill .45s var(--v-ease), stroke .45s var(--v-ease) }
.lzv-node text { fill: var(--v-ink); text-anchor: middle; font-family: var(--rb-font-body); font-weight: 500 }
.lzv-node.is-root rect { fill: var(--v-ink); stroke: none }
.lzv-node.is-root text { fill: var(--v-canvas); font-weight: 600 }
.lzv-node.is-l2 rect { fill: transparent; stroke: none }
.lzv-node.is-l2 text { fill: var(--v-muted) }
.lzv-node.is-hot rect { fill: color-mix(in srgb, var(--v-ok) 12%, var(--v-canvas)); stroke: var(--v-ok); stroke-width: 1.8 }
.lzv-node.is-hot text { fill: var(--v-ink) }
.lzv-edge, .lzv-ahead { fill: none; stroke: color-mix(in srgb, var(--v-ink) 36%, transparent); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round }
.lzv-edge.is-root { stroke-width: 2 }
.lzv-edge.is-dash { stroke-dasharray: 4 5 }
.lzv-draw { stroke-dasharray: 1; stroke-dashoffset: 0; stroke-linecap: butt }   /* круглый конец оставлял точку у ещё не нарисованной линии */
mask .lzv-draw { fill: none; stroke: var(--v-white); stroke-width: 8 }
.lzv-elabel { font: 500 11px var(--rb-font-body); fill: var(--v-muted); text-anchor: middle; paint-order: stroke; stroke: var(--v-canvas); stroke-width: 4px; stroke-linejoin: round }

/* караоке — обычной строкой чата */
.lzv-kar { min-height: 3.1em; font-size: 18px; line-height: 1.55; color: var(--v-faint); text-align: center; text-wrap: balance }   /* титры — по центру, как в кино */
.lzv-w { transition: color .2s linear }
.lzv-w.is-on, .lzv-w.is-now { color: var(--v-ink) }
.lzv-w.is-now { background: linear-gradient(var(--v-ink), var(--v-ink)) 0 100% / 100% 1.5px no-repeat }
.lzv--voice .lzv-kar { min-height: 0; font-size: 15px }

/* управление — инструмент: волосяная обводка */
.lzv-ctl { display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 8px 0 4px; border-radius: var(--rb-radius-pill); box-shadow: inset 0 0 0 1px var(--rb-line) }
/* кнопки полосы — роль «системная иконка» (brand/roles.css): здесь только размер */
.lzv-btn { flex: none; width: 34px; height: 34px; border: 0; border-radius: 50%; display: grid; place-items: center; cursor: pointer; transition: background-color .2s, color .2s }
.lzv-rate { flex: none; height: 28px; min-width: 44px; padding: 0 8px; border: 0; border-radius: var(--rb-radius-pill); cursor: pointer;
  font: 600 12.5px/1 var(--rb-font-body); font-variant-numeric: tabular-nums; transition: background-color .2s, color .2s }
.lzv-track { position: relative; flex: 1; height: 22px; cursor: pointer; display: flex; align-items: center }
.lzv-track::before { content: ""; position: absolute; left: 0; right: 0; height: 3px; border-radius: var(--rb-radius-xs); background: color-mix(in srgb, var(--v-ink) 12%, transparent); transition: height .15s }
.lzv-fill { position: absolute; left: 0; height: 3px; border-radius: var(--rb-radius-xs); background: var(--v-ink); width: 0; transition: height .15s }
.lzv-track:hover::before, .lzv-track:hover .lzv-fill { height: 5px }
.lzv-tick { position: absolute; width: 3px; height: 7px; background: var(--v-canvas) }
.lzv-chap { position: absolute; bottom: calc(100% + 8px); transform: translateX(-50%); white-space: nowrap; padding: 6px 10px; border-radius: var(--rb-radius-sm); font-size: 13px; line-height: 1.2;
  color: var(--v-canvas); background: var(--v-ink); pointer-events: none; opacity: 0; transition: opacity .15s; z-index: 4 }
.lzv-chap small { color: color-mix(in srgb, var(--v-canvas) 60%, transparent); margin-left: 6px; font-size: 12px; font-variant-numeric: tabular-nums }
.lzv-track:hover .lzv-chap { opacity: 1 }
.lzv-time { font-size: 13px; color: var(--v-muted); font-variant-numeric: tabular-nums; min-width: 76px; text-align: right }
.lzv-flash { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; display: grid; place-items: center; z-index: 4; pointer-events: none }
.lzv-flash .lzv-i { width: 26px; height: 26px }
/* «Включить звук» — роль «инструмент» (brand/roles.css) */
.lzv-snd { position: absolute; right: 14px; top: 14px; z-index: 5; height: 34px; padding: 0 14px 0 10px; border-radius: var(--rb-radius-pill); display: inline-flex; align-items: center; gap: 7px;
  font: 600 13px/1 var(--rb-font-body); cursor: pointer }
.lzv > .lzv-snd { position: static; justify-self: start }

/* «Автозапуск» */
.lzv-sw { justify-self: end; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--v-muted); cursor: pointer; white-space: nowrap }
.lzv-sw input { appearance: none; -webkit-appearance: none; position: relative; width: 30px; height: 18px; margin: 0; border-radius: var(--rb-radius-pill); cursor: pointer;
  background: color-mix(in srgb, var(--v-ink) 18%, transparent); transition: background-color .2s }
.lzv-sw input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--v-canvas); transition: transform .2s var(--v-ease) }
.lzv-sw input:checked { background: var(--rb-accent) }
.lzv-sw input:checked::after { transform: translateX(12px) }

@media (max-width: 560px) {
  .lzv-stage { height: 360px }
  .lzv-sc { padding: 18px 14px }
  .lzv-cards { gap: 8px } .lzv-card { padding: 14px 12px; min-height: 110px; border-radius: var(--rb-radius-lg) } .lzv-card span { font-size: 12.5px }
  .lzv-bars { --lw: 104px; --vw: 44px; --g: 8px }
  .lzv-sc--compare { gap: 8px } .lzv-col { padding: 14px; border-radius: var(--rb-radius-lg) } .lzv-col li { font-size: 13.5px }
  .lzv-kar { font-size: 16px }
}
@media (prefers-reduced-motion: reduce) { .lzv-sc, .lzv-fl { transition: none } }

/* в приложении: «Видео» под ответом — включено, пока показывается видео; выбор режима под полем — как «Мышление» */
.lz-video-btn.is-on { opacity: 1; color: var(--rb-accent) }
.lz-msg.has-lzv { align-self: stretch }
.lz-msg.has-lzv .lzv { width: 100%; max-width: 760px }
/* узкий экран: у кнопок под полем остаются только значки (app.css) — у режима ответа тоже */
@media (max-width: 720px) { .rb-chat__compose [data-amode-label], .rb-chat__compose .lz-amode-chip > i:last-child { display: none } }
.lzv-duel { flex-wrap: wrap; justify-content: center; row-gap: 18px }

/* ── работа агента ── */
/* источник: карточка-браузер, маркер проходит по словам источника (--p от часов плеера) */
.lzv-src { width: min(600px, 100%); gap: 12px }
.lzv-src__bar { display: flex; align-items: center; gap: 9px; padding: 7px 12px; border-radius: var(--rb-radius-sm); background: color-mix(in srgb, var(--v-ink) 5%, transparent) }
.lzv-src__fav { width: 18px; height: 18px; border-radius: var(--rb-radius-xs); display: grid; place-items: center; font: 700 11px/1 var(--rb-font-body); font-style: normal;
  color: var(--v-canvas); background: var(--v-ink) }
.lzv-src__site { font-size: 13.5px; color: var(--v-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.lzv-src__title { font-size: 15px; line-height: 1.35; font-weight: 600 }
.lzv-src__text { margin: 0; font-family: var(--lz-font-read); font-size: clamp(17px, 2.4vw, 21px); line-height: 1.55; color: var(--v-muted) }
.lzv-mark-hl { color: var(--v-ink); background: none }
.lzv-hlw { background: linear-gradient(color-mix(in srgb, var(--rb-warn) 42%, transparent), color-mix(in srgb, var(--rb-warn) 42%, transparent)) 0 85% / var(--p, 0%) 46% no-repeat;
  margin: 0 -2px; padding: 0 2px }

/* правка ячейки: файл, строка формулы, кусок листа; ячейка — рамкой выделения */
.lzv-xl { width: min(620px, 100%); gap: 10px; padding: 16px 18px }
.lzv-xl__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 26px }
.lzv-xl__file { font-size: 13.5px; font-weight: 600; color: var(--v-ink) }
.lzv-done { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: var(--v-ok); opacity: 0; transform: translateY(4px); transition: opacity .4s var(--v-ease), transform .4s var(--v-ease) }
.lzv-done.is-on { opacity: 1; transform: none }
.lzv-done .lzv-i { width: 15px; height: 15px; stroke-width: 2.2 }
.lzv-xl__fx { display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 12px; border-radius: var(--rb-radius-xs); font: 500 14px/1 var(--rb-font-mono);
  box-shadow: inset 0 0 0 1px var(--rb-line); overflow: hidden; white-space: nowrap }
.lzv-xl__fx b { font: 600 13px/1 var(--rb-font-body); color: var(--v-muted); min-width: 26px }
.lzv-xl__fx i { font-style: italic; color: var(--v-faint); font-family: var(--lz-font-read) }
.lzv-caret { display: inline-block; width: 1.5px; height: 1.1em; margin-right: -1.5px; vertical-align: -.15em; background: var(--v-ink); opacity: 0; text-decoration: none }
.is-typing .lzv-caret { opacity: 1; animation: lzv-blink 1s steps(1) infinite }
@keyframes lzv-blink { 50% { opacity: 0 } }
.lzv-xl__grid { display: grid; border-radius: var(--rb-radius-xs); overflow: hidden; box-shadow: inset 0 0 0 1px var(--rb-line); font-size: 14px }
.lzv-xl__grid > * { min-height: 31px; padding: 0 10px; display: flex; align-items: center; border-right: 1px solid color-mix(in srgb, var(--v-ink) 8%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--v-ink) 8%, transparent); white-space: nowrap; overflow: hidden }
.lzv-xl__h { justify-content: center; font-style: normal; font-size: 12px; color: var(--v-faint); background: color-mix(in srgb, var(--v-ink) 4%, transparent) }
.lzv-xl__h.is-on { color: var(--v-ink); background: color-mix(in srgb, var(--v-ink) 9%, transparent) }
.lzv-xl__c.is-num { justify-content: flex-end; font-variant-numeric: tabular-nums }
.lzv-xl__c.is-target { position: relative; font-weight: 650; box-shadow: inset 0 0 0 2px var(--v-ink); transition: background-color .5s var(--v-ease) }
.lzv-xl__c.is-changed { background: color-mix(in srgb, var(--v-ok) 16%, transparent) }

/* правка текста: страница, старое зачёркивается (--strike) и уходит, новое допечатывается с подсветкой */
.lzv-doc { width: min(600px, 100%); gap: 12px }
.lzv-doc__page { display: grid; gap: 10px; padding: 18px 20px; border-radius: var(--rb-radius-sm); background: color-mix(in srgb, var(--v-canvas) 70%, transparent);
  box-shadow: inset 0 0 0 1px var(--rb-line); font-family: var(--lz-font-read); font-size: 16px; line-height: 1.55 }
.lzv-doc__page p { margin: 0; color: var(--v-faint) }
.lzv-doc__page p.is-line { color: var(--v-ink) }
.lzv-doc__page s { text-decoration: none; background: linear-gradient(var(--rb-bad), var(--rb-bad)) 0 55% / var(--strike, 0%) 1.5px no-repeat; color: var(--v-muted);
  display: inline-block; max-width: 30em; white-space: nowrap; vertical-align: bottom; overflow: hidden; transition: max-width .45s var(--v-ease), opacity .45s var(--v-ease) }
.is-gone s { max-width: 0; opacity: 0 }
.lzv-doc__page ins { text-decoration: none; background: color-mix(in srgb, var(--v-ok) 16%, transparent); border-radius: var(--rb-radius-xs) }
.lzv-doc__page ins:empty { background: none }

/* ── два блока главы рядом ── */
.lzv-sc--combo { grid-template-columns: 1fr 1fr; gap: 14px; align-items: center }
.lzv-pane { display: grid; place-content: center stretch; min-width: 0; min-height: 0; position: relative; transform-origin: 50% 50%; transition: transform 1.1s var(--v-ease) }
.lzv-pane .lzv-plate, .lzv-pane .lzv-cards, .lzv-pane .lzv-board { width: 100% }
.lzv-pane .lzv-duel { gap: 24px }
.lzv-pane .lzv-num { font-size: clamp(40px, 6vw, 64px) }
.is-v .lzv-sc--combo { grid-template-columns: 1fr; align-content: center }

/* ── панель: несколько плашек сразу ── */
.lzv-sc--board { align-content: center; gap: 12px }
.lzv-board__cap { text-align: center }
.lzv-board { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px }
.lzv-board.n4 { grid-template-columns: repeat(2, 1fr) } .lzv-board.n5, .lzv-board.n6 { grid-template-columns: repeat(3, 1fr) }
.lzv-wdg { border-radius: var(--rb-radius-lg); padding: 14px 16px; display: grid; gap: 4px; align-content: start; min-width: 0 }
.lzv-w__lbl { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--v-muted); line-height: 1.25 }
.lzv-w__num { font-size: clamp(26px, 3.6vw, 36px); line-height: 1.05; font-weight: 650; letter-spacing: -.03em; font-variant-numeric: tabular-nums }
.lzv-w__num small { font-size: .5em; font-weight: 500; margin-left: .1em; color: var(--v-muted) }
.lzv-w__from { font-size: 14px; color: var(--v-faint); text-decoration: line-through; font-variant-numeric: tabular-nums }
.lzv-w__note { font-size: 12.5px; color: var(--v-muted); line-height: 1.3 }
.lzv-w__text { display: flex; gap: 8px; align-items: flex-start; font-size: 14.5px; line-height: 1.4 }
.lzv-delta { width: max-content; font-size: 12.5px; font-weight: 600; color: var(--v-ok) }
.lzv-delta.is-down { color: var(--rb-bad) }
.lzv-ico { display: inline-grid; width: 16px; height: 16px; flex: none; color: var(--v-ink) }
.lzv-ico svg { width: 100%; height: 100% }
.lzv-w__text .lzv-ico { width: 18px; height: 18px; margin-top: 1px }
.lzv-ring { position: relative; width: 74px; height: 74px; display: grid; place-items: center; margin: 2px 0 }
.lzv-ring svg { position: absolute; inset: 0; transform: rotate(-90deg) }
.lzv-ring circle { fill: none; stroke: color-mix(in srgb, var(--v-ink) 10%, transparent); stroke-width: 6 }
.lzv-ring circle.is-val { stroke: var(--v-ink); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100 }
.lzv-ring b { font-size: 17px; font-weight: 650; font-variant-numeric: tabular-nums }
.lzv-ring b small { font-size: .7em; font-weight: 500; color: var(--v-muted) }
.lzv-spark { width: 100%; height: 38px; margin-top: 4px; overflow: visible }
.lzv-spark polyline { fill: none; stroke: var(--v-ink); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 100; stroke-dashoffset: 100 }

/* ── ASCII агента ── */
.lzv-ascii { margin: 0; display: grid; justify-items: center; gap: 8px }
.lzv-ascii pre { margin: 0; font: 600 16px/1.15 var(--rb-font-mono); color: var(--v-ink); white-space: pre; letter-spacing: 0 }
.lzv-ascii figcaption { font-size: 13px; color: var(--v-muted) }
/* модель точками (```dots, brand/dots.js): холст — во всю плашку, чернила — цветом сцены */
.lzv-dots { margin: 0; display: grid; justify-items: center; gap: 8px; width: 100% }
.lzv-dots__box { width: min(100%, 560px); aspect-ratio: 4 / 3; max-height: 62vh; color: var(--v-ink) }
.lzv-dots figcaption { font-size: 13px; color: var(--v-muted) }

/* ── картинка было → стало: шторка ── */
.lzv-img { width: auto; justify-self: center }
.lzv-img__box { position: relative; border-radius: var(--rb-radius-sm); overflow: hidden; height: clamp(220px, 32vw, 290px); aspect-ratio: var(--ar, 16 / 10); justify-self: center; background: var(--lz-forming-bg) }
.lzv-img__box img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover }
.lzv-img__box img.is-after { clip-path: inset(0 calc(100% - var(--cut, 0%)) 0 0) }
.lzv-img__cut { position: absolute; top: 0; bottom: 0; left: var(--cut, 0%); width: 2px; margin-left: -1px; background: var(--v-white); box-shadow: var(--rb-shadow-card) }
.lzv-img__tag { position: absolute; top: 10px; padding: 3px 9px; border-radius: var(--rb-radius-pill); font-size: 12px; color: var(--v-white); background: color-mix(in srgb, var(--v-black) 45%, transparent) }
.lzv-img__tag.is-l { left: 10px } .lzv-img__tag.is-r { right: 10px }

/* ── рамки правки: код, слайд, PDF ── */
.lzv-code { padding: 10px 0; border-radius: var(--rb-radius-sm); background: color-mix(in srgb, var(--v-ink) 4%, transparent); font: 500 13.5px/1.7 var(--rb-font-mono); overflow: hidden }
.lzv-code p { margin: 0; padding: 0 14px 0 0; white-space: pre; color: var(--v-muted) }
.lzv-code p i { display: inline-block; width: 38px; padding-right: 12px; text-align: right; font-style: normal; color: var(--v-faint) }
.lzv-code p.is-old { color: var(--v-ink); background: color-mix(in srgb, var(--rb-bad) 10%, transparent) }
.lzv-code p.is-new { color: var(--v-ink); background: color-mix(in srgb, var(--v-ok) 12%, transparent) }
.lzv-code p.is-old i::after { content: " −"; color: var(--rb-bad) } .lzv-code p.is-new i::after { content: " +"; color: var(--v-ok) }
.lzv-code s { display: inline; max-width: none }
.lzv-slide { aspect-ratio: 16 / 9; padding: 22px 26px; border-radius: var(--rb-radius-sm); background: var(--v-canvas); box-shadow: inset 0 0 0 1px var(--rb-line); display: grid; align-content: start; gap: 12px }
.lzv-slide > b { font-size: 22px; line-height: 1.2 }
.lzv-slide ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 15px; color: var(--v-muted) }
.lzv-slide li.is-line { color: var(--v-ink) }
.lzv-slide s { text-decoration: none; background: linear-gradient(var(--rb-bad), var(--rb-bad)) 0 55% / var(--strike, 0%) 1.5px no-repeat; display: inline-block; max-width: 30em; white-space: nowrap; vertical-align: bottom; overflow: hidden; transition: max-width .45s var(--v-ease), opacity .45s var(--v-ease) }
.lzv-slide .is-gone s { max-width: 0; opacity: 0 }
.lzv-slide ins { text-decoration: none; background: color-mix(in srgb, var(--v-ok) 16%, transparent); border-radius: var(--rb-radius-xs) }
.lzv-doc__page.is-pdf { box-shadow: inset 0 0 0 1px var(--rb-line), var(--rb-shadow-card) }
.lzv-doc__page small { justify-self: end; font: 400 11.5px/1 var(--rb-font-body); color: var(--v-faint) }
.lzv-code s { text-decoration: none; background: linear-gradient(var(--rb-bad), var(--rb-bad)) 0 55% / var(--strike, 0%) 1.5px no-repeat }
.lzv-code ins { text-decoration: none }

.lzv-wdg.is-note { grid-column: 1 / -1 }
.lzv-pane .lzv-board { grid-template-columns: repeat(2, minmax(0, 1fr)) }

/* знакомство с ответом видео — один раз над полем ввода (app.js amodeIntro, макет answer-mode, вариант Д). Цвета, шрифты,
   радиусы, тени — токены брендбука; кнопки — роли (rb-btn--primary, rb-btn--quiet, системная иконка — brand/roles.css) */
.lz-intro { position: relative; display: grid; grid-template-columns: 112px 1fr auto; gap: var(--rb-space-3); align-items: center; margin: 0 0 var(--rb-space-2);
  padding: var(--rb-space-3); border-radius: var(--rb-radius-lg); background: var(--rb-canvas); box-shadow: 0 0 0 1px var(--rb-line), var(--rb-shadow-lift);
  animation: lz-intro-in .5s cubic-bezier(.2, .8, .2, 1) both }
@keyframes lz-intro-in { from { opacity: 0; transform: translateY(8px) } }
.lz-intro__copy b { display: block; font: var(--rb-weight-heading) 14px/1.3 var(--rb-font-heading); color: var(--rb-ink) }
.lz-intro__copy p { margin: var(--rb-space-1) 0 var(--rb-space-2); font: 13px/1.45 var(--rb-font-body); color: var(--rb-muted) }
/* превью без слов: плашка со столбиками встаёт, кольцо заполняется, под ними бежит строка титров — по кругу */
.lz-intro__mini { position: relative; height: 76px; border-radius: var(--rb-radius-sm); background: var(--rb-surface-soft); overflow: hidden; color: var(--rb-ink) }
.lz-intro__plate { position: absolute; left: 12px; top: 12px; width: 52px; height: 36px; display: flex; align-items: flex-end; gap: 5px; padding: 6px 8px;
  border-radius: var(--rb-radius-xs); background: var(--rb-glass-bg); box-shadow: inset 0 0 0 1px var(--rb-glass-border), var(--rb-shadow-card); animation: lz-iv-plate 4s cubic-bezier(.2, .8, .2, 1) infinite }
.lz-intro__plate i { flex: 1; border-radius: 1.5px; background: currentColor; height: 0; animation: lz-iv-bar 4s cubic-bezier(.2, .8, .2, 1) infinite }
.lz-intro__plate i:nth-child(1) { --h: 40%; animation-delay: .1s } .lz-intro__plate i:nth-child(2) { --h: 85%; animation-delay: .25s; opacity: .55 } .lz-intro__plate i:nth-child(3) { --h: 62%; animation-delay: .4s }
.lz-intro__ring { position: absolute; right: 12px; top: 16px; width: 26px; height: 26px; border-radius: 50%;
  background: conic-gradient(currentColor calc(var(--p, 0) * 1%), color-mix(in srgb, currentColor 14%, transparent) 0);
  -webkit-mask: radial-gradient(circle, transparent 54%, var(--lz-black) 56%); mask: radial-gradient(circle, transparent 54%, var(--lz-black) 56%); animation: lz-iv-ring 4s linear infinite }
.lz-intro__mini u { position: absolute; left: 12px; right: 12px; bottom: 11px; height: 3px; border-radius: 2px; text-decoration: none;
  background: linear-gradient(90deg, currentColor 50%, color-mix(in srgb, currentColor 18%, transparent) 0) 100% 0 / 200% 100%; animation: lz-iv-cap 4s linear infinite }
@property --p { syntax: '<number>'; inherits: false; initial-value: 0 }
@keyframes lz-iv-plate { 0% { opacity: 0; transform: translateY(6px) scale(.94) } 12%, 86% { opacity: 1; transform: none } 100% { opacity: 0 } }
@keyframes lz-iv-bar { 0%, 15% { height: 0 } 45%, 86% { height: var(--h) } 100% { height: 0 } }
@keyframes lz-iv-ring { 0%, 25% { --p: 0 } 70%, 86% { --p: 72 } 100% { --p: 0 } }
@keyframes lz-iv-cap { from { background-position: 100% 0 } 86% { background-position: 0 0 } to { background-position: 0 0 } }
/* кнопки — роли брендбука («Включить» — главная, «Не сейчас» — тихая, закрыть — системная иконка): здесь только размер */
.lz-intro__btns { display: flex; gap: var(--rb-space-2) }
.lz-intro__btns .rb-btn { padding: 8px 14px; font-size: 13px }
.lz-intro__x { align-self: start; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; display: grid; place-items: center; cursor: pointer }
.lz-intro__x .ic, .lz-intro__x svg { width: 16px; height: 16px }
/* телефон: превью — полосой сверху (без него карточка читалась как голый текст), крестик рядом, текст и кнопки — под ними */
@media (max-width: 560px) {
  .lz-intro { grid-template-columns: 1fr auto; align-items: start }
  .lz-intro__mini { grid-column: 1; grid-row: 1; height: 64px }
  .lz-intro__x { grid-column: 2; grid-row: 1 }
  .lz-intro__copy { grid-column: 1 / -1; grid-row: 2 }
}
@media (prefers-reduced-motion: reduce) { .lz-intro, .lz-intro__mini * { animation: none } .lz-intro__plate i { height: var(--h) } .lz-intro__ring { --p: 72 } }
.rb-chat__compose > .lz-intro { pointer-events: auto }   /* зона ввода пропускает нажатия насквозь (robowb), подсказку — нет */

/* ── кадр скачиваемого видео (режим render, webchat/answer_video.py → HyperFrames): сцена во весь кадр, знак и имя
   витрины слева сверху, титры по центру внизу; движение считает плеер от времени кадра — CSS-переходы выключены ── */
.lzv--render { position: relative; display: block; width: 100%; height: 100%; margin: 0; background: var(--rb-canvas); overflow: hidden }
.lzv--render, .lzv--render * { transition: none !important; animation-play-state: paused }
.lzv--render .lzv-ctl, .lzv--render .lzv-sw, .lzv--render .lzv-snd { display: none }
.lzv--render .lzv-stage, .lzv--render .lzv-stage.is-v { position: absolute; left: 0; right: 0; top: 44px; bottom: 96px; width: auto; height: auto; aspect-ratio: auto; margin: 0; cursor: default }
.lzv--render .lzv-kar { position: absolute; left: var(--rb-space-6); right: var(--rb-space-6); bottom: 26px; min-height: 0; font-size: 21px; font-weight: 600; line-height: 1.35 }
.lzv--render .lzv-stage.is-v ~ .lzv-kar, .lzv--render .lzv-stage.is-v + .lzv-kar { font-size: 22px; bottom: 34px }
.lzv--render.is-say .lzv-stage { bottom: 30px }
.lzv-wm { position: absolute; left: 18px; top: 14px; z-index: 3; display: flex; align-items: center; gap: 7px; color: var(--rb-ink); opacity: .85 }
.lzv-wm svg { width: 20px; height: 20px; fill: currentColor }
.lzv-wm b { font: 600 17px/1 var(--rb-font-brand); letter-spacing: -.01em }

/* «Скачать видео» в окне «Поделиться» (app.js shareVideoBox): формат — сегмент (роль «выбор»), кнопка — главная */
.lz-share__video { display: grid; gap: var(--rb-space-2); margin-top: var(--rb-space-4); padding-top: var(--rb-space-4); border-top: 1px solid var(--rb-line); text-align: left }
.lz-share__video-title { font: var(--rb-weight-heading) 15px/1.3 var(--rb-font-heading); color: var(--rb-ink) }
.lz-share__fmt { display: grid; grid-template-columns: 1fr 1fr; gap: var(--rb-space-1) }
.lz-share__fmt .rb-segmented__item { display: grid; gap: 2px; justify-items: start; padding: var(--rb-space-2) var(--rb-space-3); text-align: left }
.lz-share__fmt .rb-segmented__item small { font-size: 12px; color: var(--rb-muted); font-weight: 400 }
.lz-share__video-go { justify-self: stretch; justify-content: center }

.lzv--render .lzv-stage:not(.is-v) .lzv-graph { max-height: 230px }
.lzv--render .lzv-stage.is-v .lzv-graph { max-height: 600px }

/* ── работа агента до ответа (answer-video.js, сцены w-*): движение задаёт плеер от времени шага, здесь — только вид ── */
/* под видео — автозапуск и «целиком / только ответ», мелко и в одну строку (robowb на телефоне растягивает сегменты
   во всю ширину — здесь нет) */
.lzv-opts { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--rb-space-2) var(--rb-space-3); padding: 0 2px }
.lzv-opts .lzv-sw { justify-self: auto; font-size: 12.5px }
.lzv .lzv-wseg { width: auto; padding: 2px }
.lzv .lzv-wseg .rb-segmented__item { flex: none; min-height: 24px; padding: 0 10px; font-size: 11.5px }
/* плеер — в рамке: управление сверху, видео и титры, настройки снизу */
.lzv.lzv--video:not(.lzv--render):not(.lzv-live) { padding: var(--rb-space-2); border-radius: var(--rb-radius-xl); background: var(--rb-canvas);
  box-shadow: 0 0 0 1px var(--rb-line), var(--rb-shadow-card) }
.lzv.lzv--video:not(.lzv--render):not(.lzv-live) .lzv-ctl { box-shadow: none; background: var(--rb-surface-soft) }
.lzv-mute .lzv-i { width: 18px; height: 18px }
.lzv--render .lzv-opts { display: none }
.lzv-tick.is-work { opacity: .5 }
.lzv-wlab { color: var(--v-muted); font-weight: 500 }
.lzv-wk { width: min(560px, 100%); gap: 12px }
.lzv-wk__top { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600 }
.lzv-wk__top small { margin-left: auto; font-weight: 500; color: var(--v-faint) }
.lzv-wk .lzv-ico { width: 18px; height: 18px }
/* поиск */
.lzv-ws__bar { display: flex; align-items: center; gap: 10px; min-height: 22px; padding: 10px 16px; border-radius: var(--rb-radius-pill);
  background: color-mix(in srgb, var(--v-ink) 5%, transparent); font-size: 16px }
.lzv-ws__res { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none }
.lzv-ws__res li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--rb-radius-sm); opacity: 0 }
.lzv-ws__res li > span { display: grid; min-width: 0 }
.lzv-ws__res b { overflow: hidden; font-size: 14px; font-weight: 600; white-space: nowrap; text-overflow: ellipsis }
.lzv-ws__res small { font-size: 12px; color: var(--v-muted) }
.lzv-ws__res li.is-pick, .lzv-wf__list li.is-pick.is-on { background: color-mix(in srgb, var(--v-ok) 10%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--v-ok) 40%, transparent) }
/* чтение сайта */
.lzv-wr__view { position: relative; height: 210px; overflow: hidden;
  -webkit-mask-image: linear-gradient(transparent, var(--v-black) 8%, var(--v-black) 82%, transparent); mask-image: linear-gradient(transparent, var(--v-black) 8%, var(--v-black) 82%, transparent) }
.lzv-wr__page { display: grid; gap: 8px; padding: 8px 2px; opacity: 0 }
.lzv-wr__text { margin: 0; font-family: var(--lz-font-read); font-size: 16px; line-height: 1.6; color: var(--v-faint) }
.lzv-wr__text span.is-read { color: var(--v-ink) }
/* файлы беседы */
.lzv-wf__view { height: 220px; overflow: hidden; -webkit-mask-image: linear-gradient(var(--v-black) 82%, transparent); mask-image: linear-gradient(var(--v-black) 82%, transparent) }
.lzv-wf__list { display: grid; gap: 3px; margin: 0; padding: 0; list-style: none }
.lzv-wf__list li { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 7px 10px; border-radius: var(--rb-radius-sm); font-size: 14px; opacity: 0 }
.lzv-wf__list li > span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis }
.lzv-wf__list small { font-size: 12px; color: var(--v-muted) }
/* запуск генерации */
.lzv-wg__prompt { min-height: 72px; padding: 12px 14px; border-radius: var(--rb-radius-md); background: color-mix(in srgb, var(--v-ink) 4%, transparent); font-size: 15px; line-height: 1.5 }
.lzv-wg__row { display: flex; align-items: center; justify-content: space-between; gap: 10px }
.lzv-wg__chips { display: flex; flex-wrap: wrap; gap: 6px }
.lzv-wg__chip { padding: 4px 10px; border-radius: var(--rb-radius-pill); background: color-mix(in srgb, var(--v-ink) 6%, transparent); font-size: 12.5px; color: var(--v-muted); opacity: 0 }
.lzv-wg__go { flex: none; padding: 7px 16px; border-radius: var(--rb-radius-pill); background: color-mix(in srgb, var(--v-ink) 9%, transparent); font-size: 13.5px; font-weight: 600 }
.lzv-wg__go.is-on { background: var(--v-ink); color: var(--v-canvas) }
.lzv-wg__bar { height: 4px; border-radius: var(--rb-radius-pill); background: color-mix(in srgb, var(--v-ink) 8%, transparent); overflow: hidden }
.lzv-wg__bar i { display: block; width: 0; height: 100%; background: linear-gradient(90deg, var(--lz-forming-1), var(--lz-forming-3), var(--lz-forming-5)) }
/* правка кода и новый файл */
.lzv-wk .lzv-code p { overflow: hidden }
.lzv-wk .lzv-code p[data-op="+"] { opacity: 0 }
.lzv-wn { display: grid; grid-template-columns: minmax(140px, .85fr) minmax(0, 1.15fr); align-items: start; width: min(680px, 100%) }
.is-v .lzv-wn { grid-template-columns: 1fr }
.lzv-wn__tree { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; font-size: 13.5px }
.lzv-wn__tree li { display: flex; align-items: center; gap: 7px; padding: 4px 8px 4px calc(8px + var(--d, 0) * 14px); border-radius: var(--rb-radius-xs); color: var(--v-muted) }
.lzv-wn__tree li.is-new { opacity: 0; font-weight: 600; color: var(--v-ink) }
.lzv-wn__tree li.is-new.is-on { background: color-mix(in srgb, var(--v-ok) 12%, transparent) }
.lzv-wn__head { min-height: 120px }
/* реплика по ходу и прочий шаг */
.lzv-wsay { width: min(540px, 100%); padding: 0; background: none; box-shadow: none }
.lzv-wsay blockquote { min-height: 1.45em; margin: 0; font: italic 400 clamp(20px, 3vw, 26px)/1.45 var(--lz-font-read); color: var(--v-ink) }
.lzv-wstep { display: grid; justify-items: center; align-self: center; gap: 12px; text-align: center }
.lzv-wstep .lzv-ico { width: 34px; height: 34px }
.lzv-wstep b { font-size: 20px; font-weight: 600 }
.lzv-wstep__dots { display: flex; gap: 6px }
.lzv-wstep__dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--v-muted) }
/* заготовки: сайтов поиска и текста страницы не знаем — серые строки, а не выдуманное */
.lzv-ws__res li.is-skel b, .lzv-ws__res li.is-skel small, .lzv-wr__skel i { display: block; height: 10px; border-radius: var(--rb-radius-pill); background: color-mix(in srgb, var(--v-ink) 8%, transparent) }
.lzv-ws__res li.is-skel b { width: 70% } .lzv-ws__res li.is-skel small { width: 34%; margin-top: 6px }
.lzv-ws__res li.is-skel .lzv-src__fav { background: color-mix(in srgb, var(--v-ink) 8%, transparent) }
.lzv-wr__skel { display: grid; gap: 12px; padding-top: 6px }
.lzv-wr__skel i:nth-child(3n) { width: 82% } .lzv-wr__skel i:nth-child(3n+2) { width: 94% } .lzv-wr__skel i:last-child { width: 46% }
/* живой показ работы в черновике (во время хода): та же сцена, без подписи — что делает агент, пишет статус над ней.
   Ширина своя, не по содержимому: черновик ужимается под сцену, и поиск с чтением сайта давали разный экран — прыгало */
.lzv-live { width: 680px; max-width: 100%; margin: 6px 0 2px }
.lzv-live .lzv-stage { height: clamp(200px, 30svh, 300px); cursor: default }
.lzv--render .lzv-stage:not(.is-v) .lzv-wr__view, .lzv--render .lzv-stage:not(.is-v) .lzv-wf__view { height: 150px }
.lzv-ws__res li.is-skel > span { flex: 1 }

/* ── плеер по ролям (флаг витрины video-role, 13.11.2026): рамка — область на полу в обводке (как раздел профиля),
   «пуск» — выпуклая, шкала — бороздка в полу, скорость — инструмент, сегменты — дорожка с ползунком (seg-role).
   Размер: 16:9 во всю ширину ленты, но не выше 380 px; 9:16 — по центру; «на весь экран» — окно поверх страницы
   (.is-full, плеер переезжает в body), крестик — общий (.lz-models__close). Без флага — как было ── */
html:has(meta[name="lz-flags"][content~="video-role"]) .lzv.lzv--video:not(.lzv--render):not(.lzv-live) { gap: 12px; padding: 10px 12px 12px; border-radius: var(--section-radius, 22px);
  background: var(--section-bg, transparent); box-shadow: 0 0 0 1px var(--section-line, var(--rb-line)) }
html:has(meta[name="lz-flags"][content~="video-role"]) .lzv.lzv--video:not(.lzv--render):not(.lzv-live) .lzv-ctl { height: 44px; padding: 0 2px; background: transparent; box-shadow: none }
html:has(meta[name="lz-flags"][content~="video-role"]) .lzv-ctl [data-lzv-play] { width: 38px; height: 38px; background: var(--pill-bg, var(--rb-canvas)); color: var(--rb-ink);
  box-shadow: var(--pill-shadow, none); transition: box-shadow .3s ease }
html:has(meta[name="lz-flags"][content~="video-role"]) .lzv-ctl [data-lzv-play]:hover { background: var(--pill-bg, var(--rb-canvas)); box-shadow: var(--pill-hover-shadow, none) }
html:has(meta[name="lz-flags"][content~="video-role"]) .lzv-ctl [data-lzv-play]:active { box-shadow: var(--pill-press-shadow, none); transition-duration: .12s }
html:has(meta[name="lz-flags"][content~="video-role"]) .lzv-track::before { height: 6px; border-radius: 3px; background: var(--video-track-bg, color-mix(in srgb, var(--v-ink) 10%, transparent));
  box-shadow: var(--video-track-shadow, none) }
html:has(meta[name="lz-flags"][content~="video-role"]) .lzv-fill { left: 1px; height: 4px; border-radius: 2px }
html:has(meta[name="lz-flags"][content~="video-role"]) .lzv-track:hover::before { height: 8px; border-radius: 4px }
html:has(meta[name="lz-flags"][content~="video-role"]) .lzv-track:hover .lzv-fill { height: 6px; border-radius: 3px }
html:has(meta[name="lz-flags"][content~="video-role"]) .lzv-tick { height: 10px; width: 2px }
html:has(meta[name="lz-flags"][content~="video-role"]) .lzv-ctl .lzv-rate { height: 30px; border: 1px solid var(--btn-tool-border, var(--rb-line)); background: var(--btn-tool-bg, transparent);
  color: var(--btn-tool-label, var(--rb-ink)); box-shadow: var(--btn-tool-shadow, none); transition: box-shadow .3s ease }
html:has(meta[name="lz-flags"][content~="video-role"]) .lzv-ctl .lzv-rate:hover { background: var(--btn-tool-bg, transparent); box-shadow: var(--btn-tool-hover-shadow, none) }
html:has(meta[name="lz-flags"][content~="video-role"]) .lzv-ctl .lzv-rate:active { box-shadow: var(--btn-tool-press-shadow, none) }
/* сцена — экран в рамке: свои углы, не вылезает за них */
html:has(meta[name="lz-flags"][content~="video-role"]) .lzv--video:not(.lzv--render) .lzv-stage { border-radius: 16px }
/* размер — по высоте окна: плеер целиком между шапкой и полем ввода (владелец 20.11.2026: «не влезает, прячется») */
html:has(meta[name="lz-flags"][content~="video-role"]) .lzv--video:not(.lzv--render):not(.lzv-live) .lzv-stage:not(.is-v) { width: 100%; height: auto; aspect-ratio: 16 / 9; min-height: 180px; max-height: min(340px, 36svh) }
html:has(meta[name="lz-flags"][content~="video-role"]) .lzv--video:not(.lzv--render) .lzv-stage.is-v { width: auto; max-width: 100%; height: min(520px, 48svh); aspect-ratio: 9 / 16 }
html:has(meta[name="lz-flags"][content~="video-role"]) .lzv-kar { min-height: 2.6em; font-size: 17px }
/* сегменты под видео: дорожка с ползунком, мельче, чем в профиле */
html:has(meta[name="lz-flags"][content~="video-role"]) .lzv .lz-choice { grid-auto-columns: auto; padding: 3px }
html:has(meta[name="lz-flags"][content~="video-role"]) .lzv .lz-choice::before { top: 3px; bottom: 3px }
html:has(meta[name="lz-flags"][content~="video-role"]) .lzv .lz-choice .lz-choice__item { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; font-size: 12.5px }
html:has(meta[name="lz-flags"][content~="video-role"]) .lzv .lz-choice .lzv-i { width: 15px; height: 15px }
html:has(meta[name="lz-flags"][content~="video-role"]) .lzv .lzv-opts { padding: 0 }
html:has(meta[name="lz-flags"][content~="video-role"]) .lzv .lzv-opts .lzv-sw { margin-left: auto }

/* на весь экран: окно поверх страницы цвета пола, всё — в высоту экрана без прокрутки: сцена забирает остаток (flex),
   ширину по пропорции ставит answer-video.js fitFull (на телефоне видимая высота меньше 100vh — панели браузера) */
html.lzv-full-open, html.lzv-full-open body { overflow: hidden }
html:has(meta[name="lz-flags"][content~="video-role"]) .lzv.lzv--video.is-full:not(.lzv--render):not(.lzv-live) { position: fixed; inset: 0; z-index: 1000; width: auto;
  max-width: none; height: 100%; margin: 0; padding: 56px max(16px, 3vw) 16px; border-radius: 0; overflow: hidden; display: flex; flex-direction: column;
  align-items: center; gap: 12px; background: var(--rb-canvas); box-shadow: none; animation: lzv-full-in .32s var(--v-ease) }
.lzv.is-full > :not(.lzv-x) { flex: none; width: min(100%, var(--fw, 1280px)) }
html:has(meta[name="lz-flags"][content~="video-role"]) .lzv.lzv--video.is-full:not(.lzv--render):not(.lzv-live) .lzv-stage:is(.is-v, :not(.is-v)) {
  flex: 1 1 0; height: auto; min-height: 0; max-height: none; aspect-ratio: auto; margin: 0 }
html:has(meta[name="lz-flags"][content~="video-role"]) .lzv.is-full .lzv-kar { min-height: 0; font-size: 20px }
.lzv.is-full .lzv-x { position: fixed; top: 12px; right: 12px; z-index: 2; margin: 0 }
.lzv.is-full .lzv-x .lzv-i { width: 18px; height: 18px }
@keyframes lzv-full-in { from { opacity: 0; transform: scale(.98) } }
@media (max-width: 720px) {
  html:has(meta[name="lz-flags"][content~="video-role"]) .lzv.lzv--video.is-full:not(.lzv--render):not(.lzv-live) { padding: 52px 10px 12px; gap: 8px }
  html:has(meta[name="lz-flags"][content~="video-role"]) .lzv.is-full .lzv-kar { font-size: 16px }
  html:has(meta[name="lz-flags"][content~="video-role"]) .lzv .lz-choice .lz-choice__item { padding: 0 9px }
}
@media (prefers-reduced-motion: reduce) { .lzv.is-full { animation: none } }
