/* ============================================================
   «Чат в эфире» — направление «Кадр» (канвас «Чат в эфире», 06.09.2026).
   Без вкладок: слева bento-плитки настроек, справа закреплённый живой кадр,
   под ним оформление. События и плашка эфира — чипами, а не рядами тумблеров.
   Все id и data-атрибуты контролов прежние: обработчики bindDashboard не менялись.
   ============================================================ */

.chat-a { display: grid; gap: 18px; }

/* ---- шапка ---- */
.cf-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cf-head h1 { margin: 6px 0 0; font-family: var(--font-display); font-size: 30px; font-weight: 900; letter-spacing: -.04em; line-height: 1; color: var(--text); }
.cf-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.cf-pill { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid rgb(var(--veil) / .08); background: rgb(0 0 0 / .35); color: var(--text-2); font-size: 12px; font-weight: 650; }
.cf-pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--text-3); }
.cf-pill.is-on i { background: var(--success); box-shadow: 0 0 8px color-mix(in srgb, var(--success) 80%, transparent); }
.cf-pill.is-amber i { background: var(--warning); box-shadow: 0 0 8px color-mix(in srgb, var(--warning) 80%, transparent); }
.cf-pill.is-orange i { background: var(--primary); box-shadow: 0 0 8px color-mix(in srgb, var(--primary) 80%, transparent); }
.cf-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.cf-actions .button { min-height: 38px; border-radius: 10px; }

/* ---- сетка ---- */
.cf-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px; align-items: start; }
.cf-left { grid-column: span 7; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.cf-right { grid-column: span 5; position: sticky; top: 16px; }
.cf-grid.is-mod .cf-right { grid-column: 3 / span 8; position: static; }
.cf-span2 { grid-column: span 2; }

/* ---- плитка ---- */
.cf-tile { position: relative; border: 1px solid rgb(var(--veil) / .08); border-radius: 14px; padding: 18px 18px 16px; background: linear-gradient(180deg, var(--surface-2) 0%, var(--bg-subtle) 100%); box-shadow: inset 0 1px 0 rgb(var(--veil) / .05); min-width: 0; }
.cf-tile-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.cf-tile-head h2 { margin: 0; font-family: var(--font-display); font-size: 14px; font-weight: 700; letter-spacing: -.01em; color: var(--text); }
.cf-tile-head p { margin: 2px 0 0; font-size: 12px; line-height: 1.4; color: var(--text-3); }
.cf-tile-ico { flex: 0 0 auto; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(140deg, rgba(255, 106, 43, .38), rgba(255, 106, 43, .12)); box-shadow: inset 0 0 0 1px rgba(255, 138, 82, .35); color: #ffd6c2; }
.cf-tile-ico .line-icon { width: 18px; height: 18px; }
.cf-count { margin-left: auto; flex: 0 0 auto; display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 999px; background: rgba(255, 106, 43, .12); color: #ffb08a; font-family: var(--font-mono); font-size: 10.5px; font-weight: 700; letter-spacing: .08em; }

/* ---- ряд-тумблер ---- */
.cf-opts { display: grid; gap: 6px; }
.cf-opt { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 48px; padding: 6px 12px 6px 14px; border-radius: 10px; background: rgb(var(--shade) / .22); border: 1px solid rgb(var(--veil) / .05); cursor: pointer; transition: border-color .18s ease, background .18s ease; }
.cf-opt:hover { border-color: rgb(var(--veil) / .12); background: rgb(var(--shade) / .3); }
.cf-opt > span { display: grid; gap: 2px; min-width: 0; }
.cf-opt b { font-size: 13.5px; font-weight: 700; color: var(--text); line-height: 1.2; }
.cf-opt small { font-size: 11.5px; line-height: 1.35; color: var(--text-3); }
.cf-opt input { position: absolute; opacity: 0; pointer-events: none; }
.cf-opt i { position: relative; flex: 0 0 auto; width: 40px; height: 22px; border-radius: 999px; border: 1px solid rgb(var(--veil) / .08); background: var(--surface-3); transition: background .18s ease, border-color .18s ease, box-shadow .18s ease; }
.cf-opt i::after { content: ""; position: absolute; left: 2px; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: #c9bda6; transition: transform .18s ease, background .18s ease; }
.cf-opt input:checked + i { border-color: rgba(255, 138, 82, .6); background: linear-gradient(135deg, var(--primary), var(--warning)); box-shadow: 0 0 14px rgba(255, 106, 43, .35); }
.cf-opt input:checked + i::after { transform: translateX(18px); background: var(--bg); }
.cf-opt input:focus-visible + i { box-shadow: var(--ring); }
.cf-opt.cf-opt-sm { min-height: 42px; padding: 4px 10px 4px 12px; }
.cf-opt.cf-opt-sm b { font-size: 12.5px; }

/* ---- чипы ---- */
.cf-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cf-chip { position: relative; display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 13px 0 11px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--text-2); font-size: 12.5px; font-weight: 650; cursor: pointer; user-select: none; transition: border-color .18s ease, background .18s ease, color .18s ease; }
.cf-chip:hover { border-color: rgb(var(--veil) / .3); color: var(--text); }
.cf-chip input { position: absolute; opacity: 0; pointer-events: none; }
.cf-chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); transition: background .18s ease, box-shadow .18s ease; }
.cf-chip:has(input:checked) { border-color: rgba(255, 106, 43, .6); background: rgba(255, 106, 43, .14); color: #ffd6c2; }
.cf-chip:has(input:checked) i { background: var(--primary); box-shadow: 0 0 8px rgba(255, 106, 43, .7); }
.cf-chip:has(input:focus-visible) { box-shadow: var(--ring); }
.cf-links { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 14px; font-size: 12.5px; color: var(--text-3); }
.cf-links small { flex-basis: 100%; font-size: 11.5px; line-height: 1.4; }
.cf-link { padding: 0; border: 0; background: none; color: #ffb08a; font: inherit; font-weight: 700; cursor: pointer; }
.cf-link:hover { color: var(--primary-hover); text-decoration: underline; }
@media (min-width: 1101px) { .cf-links small { flex-basis: auto; margin-left: auto; text-align: right; } }

/* ---- поля ---- */
.cf-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.cf-gap { margin-top: 12px; }
.chat-a .select, .chat-a .input { border-radius: 10px; background: var(--bg); }
.chat-a .field-label { font-size: 12px; }
.chat-a .field-hint { font-size: 11.5px; }
.chat-a .bot-adder { display: flex; gap: 6px; }
.chat-a .bot-adder .input { flex: 1; min-height: 40px; }
.chat-a .bot-adder button { flex: 0 0 40px; height: 40px; border: 0; border-radius: 10px; background: linear-gradient(135deg, var(--primary), #ff8a52); color: var(--bg); font-size: 20px; font-weight: 700; cursor: pointer; }
.chat-a .bot-chips { margin-top: 10px; gap: 8px; }
.chat-a .bot-chip { border-color: rgba(255, 106, 43, .6); background: rgba(255, 106, 43, .14); color: #ffd6c2; border-radius: 999px; }

/* ---- живой кадр ---- */
.cf-frame { padding: 0; overflow: hidden; }
.cf-frame-head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid rgb(var(--veil) / .07); }
.cf-live { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 10.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--text); }
.cf-live i { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 10px rgba(255, 106, 43, .8); }
.cf-frame-note { margin-left: auto; font-family: var(--font-mono); font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.cf-frame-head .scene-map { width: 74px; gap: 0; }
.cf-frame-head .scene-map .scene-frame { border-radius: 6px; }
.cf-frame-head .scene-map .scene-caption, .cf-frame-head .scene-map .scene-ratio, .cf-frame-head .scene-map .scene-layer b, .cf-frame-head .scene-map .scene-layer .line-icon { display: none; }
.chat-a .cf-frame iframe { display: block; width: 100%; height: 470px; border: 0; background: var(--bg-subtle); pointer-events: auto; touch-action: pan-y; }
.cf-look { display: grid; gap: 14px; padding: 16px; border-top: 1px solid rgb(var(--veil) / .07); }
.cf-look-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 12px; color: var(--text-3); }
.cf-look-head .eyebrow-mini { color: var(--text); }
.cf-swatches { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; }
.cf-swatch { display: grid; gap: 5px; justify-items: center; padding: 0; border: 0; background: none; cursor: pointer; color: var(--text-3); }
.cf-swatch i { display: block; width: 40px; height: 40px; border-radius: 12px; border: 1px solid rgb(var(--veil) / .1); transition: transform .18s ease, box-shadow .18s ease; }
.cf-swatch:hover i { transform: translateY(-1px); }
.cf-swatch small { font-size: 10.5px; line-height: 1.2; text-align: center; }
.cf-swatch.is-active i { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--primary); }
.cf-swatch.is-active small { color: #ffd6c2; }
.cf-swatch[data-chat-style="ember"] i { background: linear-gradient(135deg, #ff6a2b, #2a1a0c); }
.cf-swatch[data-chat-style="subtitles"] i { background: #100c07; box-shadow: inset 0 -3px 0 #efe6d4; }
.cf-swatch[data-chat-style="terminal"] i { background: #0b0f0a; box-shadow: inset 0 0 0 2px #8cc97e; }
.cf-swatch[data-chat-style="bubbles"] i { background: linear-gradient(135deg, #5aa7ff, #1a2436); border-radius: 20px; }
.cf-swatch[data-chat-style="pixel"] i { background: repeating-linear-gradient(90deg, #ffb454 0 6px, #16110b 6px 12px); border-radius: 6px; }
.cf-swatch.is-active[data-chat-style="subtitles"] i { box-shadow: inset 0 -3px 0 #efe6d4, 0 0 0 2px var(--bg), 0 0 0 4px var(--primary); }
.cf-swatch.is-active[data-chat-style="terminal"] i { box-shadow: inset 0 0 0 2px #8cc97e, 0 0 0 2px var(--bg), 0 0 0 4px var(--primary); }
.cf-look-row { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 12px; align-items: end; }
.cf-look-row .select { min-height: 38px; }
.chat-a input[type="range"] { width: 100%; height: 22px; margin: 0; accent-color: var(--primary); }

/* ---- адаптив ---- */
@media (max-width: 1100px) {
  .cf-left, .cf-right { grid-column: 1 / -1; }
  .cf-right { position: static; order: -1; }
  .cf-grid.is-mod .cf-right { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .cf-head h1 { font-size: 26px; }
  .cf-actions { width: 100%; }
  .cf-actions .button { flex: 1; min-height: 44px; }
  .cf-left { grid-template-columns: minmax(0, 1fr); }
  .cf-span2 { grid-column: auto; }
  .cf-two { grid-template-columns: minmax(0, 1fr); }
  .chat-a .cf-frame iframe { height: 300px; }
  .cf-swatches { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
  .cf-swatch { flex: 0 0 auto; }
  .cf-look-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .cf-look-row > :first-child { grid-column: 1 / -1; }
  .cf-frame-head .scene-map { display: none; }
}

/* ============================================================
   «Оверлей и ссылки» — то же направление (канвас «Оверлей и ссылки OBS»,
   06.09.2026). Шапка с диагностикой, фильтр-чипы, плитки источников по
   группам, справа карта сцены со всеми источниками, шаги и опасная зона.
   Хуки диагностики прежние: [data-overlay-sources-summary], [data-overlay-source],
   [data-obs-onboarding], [data-source-toggle], [data-copy], #regenerate.
   ============================================================ */
.obs-a { display: grid; gap: 18px; }
.obs-a .cf-left, .obs-a .cf-right { display: flex; flex-direction: column; gap: 14px; }
.os-filters { display: flex; flex-wrap: wrap; gap: 8px; }
button.cf-chip { background: transparent; font: inherit; }
.cf-chip.is-on { border-color: rgba(255, 106, 43, .6); background: rgba(255, 106, 43, .14); color: #ffd6c2; }
.cf-chip.is-on i { background: var(--primary); box-shadow: 0 0 8px rgba(255, 106, 43, .7); }
.os-filter-off { margin-left: auto; border-style: dashed; }
.os-srcs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.os-src { display: grid; gap: 10px; padding: 14px; border-radius: 12px; background: rgb(var(--shade) / .22); border: 1px solid rgb(var(--veil) / .05); min-width: 0; }
.os-src[hidden], .os-src-body[hidden] { display: none; }
.os-src-top { display: flex; align-items: center; gap: 10px; }
.os-src-ico { flex: 0 0 auto; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: rgba(255, 106, 43, .12); color: #ffb08a; }
.os-src-ico.is-cyan { background: rgba(255, 180, 84, .12); color: var(--warning); }
.os-src-ico .line-icon { width: 15px; height: 15px; }
.os-src-copy { flex: 1; min-width: 0; }
.os-src-copy b { display: flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 800; color: var(--text); }
.os-src-copy .tag, .os-chip .tag { font-size: 9px; padding: 2px 6px; letter-spacing: .1em; font-family: var(--font-mono); }
.os-src-copy small { display: block; margin-top: 1px; font-size: 11.5px; line-height: 1.35; color: var(--text-3); }
.os-src-top .source-status { margin-left: auto; }
.os-addr { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 38px; padding: 0 12px; border-radius: 10px; background: var(--bg); border: 1px solid rgb(var(--veil) / .08); }
.os-addr code { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--font-mono); font-size: 11.5px; color: var(--text-2); }
.os-src-body { display: grid; gap: 8px; }
.os-src-foot { display: flex; align-items: center; gap: 8px; }
.os-size { flex: 1; min-width: 0; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .06em; color: var(--text-3); }
.os-src-foot .icon-button { width: 32px; height: 32px; border-radius: 9px; }
.os-src-foot .icon-button[data-copy] { border-color: rgba(255, 106, 43, .5); background: rgba(255, 106, 43, .14); color: #ffd6c2; }
.os-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.os-chip { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 6px 0 10px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--text-2); font-size: 12.5px; font-weight: 650; }
.os-chip-btn { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 999px; border: 0; background: rgb(var(--veil) / .06); color: var(--text-2); cursor: pointer; }
.os-chip-btn:hover { background: rgba(255, 106, 43, .2); color: #ffd6c2; }
.os-chip-btn .line-icon { width: 13px; height: 13px; }
/* карта сцены */
.os-map { display: grid; gap: 10px; padding: 14px 16px 16px; }
.os-map-frame { position: relative; display: grid; grid-template-columns: repeat(12, 1fr); grid-template-rows: repeat(8, 1fr); gap: 3px; aspect-ratio: 16 / 9; padding: 6px; border-radius: 10px; border: 1px solid var(--line); background: #100c07 repeating-linear-gradient(45deg, rgb(var(--veil) / .025) 0 6px, transparent 6px 12px); }
.os-layer { display: flex; align-items: flex-end; gap: 5px; padding: 6px 8px; border-radius: 6px; border: 1px solid rgb(var(--veil) / .12); background: rgb(var(--veil) / .04); font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); overflow: hidden; min-width: 0; }
.os-layer .line-icon { width: 12px; height: 12px; flex: 0 0 auto; }
.os-layer b { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.os-layer.is-live { border-color: rgba(255, 106, 43, .7); background: rgba(255, 106, 43, .14); color: #ffd6c2; box-shadow: inset 0 0 18px rgba(255, 106, 43, .25); }
.os-layer.is-seen { border-color: rgba(255, 180, 84, .5); background: rgba(255, 180, 84, .08); color: var(--warning); }
.os-map-ratio { position: absolute; right: 8px; bottom: 6px; font-family: var(--font-mono); font-size: 9px; letter-spacing: .1em; color: var(--line-strong); }
.os-map-legend, .os-map-audio { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-size: 11.5px; color: var(--text-3); }
.os-map-legend span, .os-audio { display: inline-flex; align-items: center; gap: 6px; }
.os-map-legend i, .os-audio i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); }
.os-map-legend .is-live i, .os-audio.is-live i { background: var(--primary); box-shadow: 0 0 8px rgba(255, 106, 43, .7); }
.os-map-legend .is-seen i, .os-audio.is-seen i { background: var(--warning); }
.os-audio { color: var(--text-2); font-weight: 650; }
.os-map-audio small { margin-left: auto; font-size: 11px; }
/* шаги */
.os-help { padding: 0; }
.os-help summary { display: flex; align-items: center; gap: 12px; padding: 16px 18px; cursor: pointer; list-style: none; }
.os-help summary::-webkit-details-marker { display: none; }
.os-help summary > span:nth-child(2) { flex: 1; display: grid; gap: 2px; }
.os-help summary b { font-family: var(--font-display); font-size: 14px; font-weight: 700; color: var(--text); }
.os-help summary small { font-size: 12px; color: var(--text-3); }
.os-help summary > i { display: grid; place-items: center; color: var(--text-3); transition: transform .18s ease; }
.os-help summary > i .line-icon { width: 16px; height: 16px; }
.os-help[open] summary > i { transform: rotate(180deg); }
.os-steps { list-style: none; margin: 0; padding: 0 18px 16px; display: grid; gap: 10px; counter-reset: os-step; }
.os-steps li { position: relative; padding-left: 32px; font-size: 12.5px; line-height: 1.4; color: var(--text-3); counter-increment: os-step; }
.os-steps li::before { content: counter(os-step); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; background: rgba(255, 106, 43, .14); color: #ffb08a; font-family: var(--font-mono); font-size: 10.5px; font-weight: 700; }
.os-steps li b { display: block; color: var(--text); font-weight: 700; }
/* опасная зона */
.os-danger { border-color: rgba(229, 72, 77, .35); }
.cf-tile-ico.is-danger { background: rgba(229, 72, 77, .16); box-shadow: inset 0 0 0 1px rgba(229, 72, 77, .35); color: #ff9a9d; }
.os-danger-text { margin: 0 0 12px; font-size: 12.5px; line-height: 1.5; color: var(--text-2); }
/* шапка */
.os-summary .source-diagnostics-line { display: inline-flex; align-items: center; gap: 7px; }
.os-summary .source-diagnostics-line small { display: none; }
.os-summary .line-icon { width: 14px; height: 14px; color: var(--text-3); }
.os-summary .is-ok .line-icon { color: var(--success); }
.os-summary .is-warn .line-icon { color: var(--warning); }
.os-summary b { font-weight: 650; color: var(--text-2); }
/* 18.09.2026: внутри пилюли оставались рамка, фон и поля общей плашки
   .source-diagnostics-line из panel.css — выходила коробка в коробке. Тон статуса
   теперь несёт сама пилюля. */
.os-summary .source-diagnostics-line { min-width: 0; padding: 0; border: 0; border-radius: 0; background: none; }
.os-summary b { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.cf-pill.os-summary:has(.is-ok) { border-color: color-mix(in srgb, var(--success) 40%, transparent); background: color-mix(in srgb, var(--success) 9%, rgb(0 0 0 / .35)); }
.cf-pill.os-summary:has(.is-warn) { border-color: color-mix(in srgb, var(--warning) 40%, transparent); background: color-mix(in srgb, var(--warning) 9%, rgb(0 0 0 / .35)); }
.os-summary .is-warn b { color: var(--warning); }
/* Без этого многоточие не срабатывает: пилюля и левая колонка шапки — flex-элементы
   с min-width:auto и растут по всей строке текста (на 360 px пилюля вылезала за край). */
.cf-pill.os-summary { min-width: 0; max-width: 100%; }
.obs-a .cf-head > div:first-child { min-width: 0; max-width: 100%; }
button.os-refresh { cursor: pointer; font: inherit; }
.os-refresh .line-icon { width: 13px; height: 13px; }
.os-refresh.spinning .line-icon { animation: spin .8s linear infinite; }
.cf-actions .button.danger { min-height: 38px; border-radius: 10px; }
@media (max-width: 760px) {
  .os-srcs { grid-template-columns: minmax(0, 1fr); }
  .os-filter-off { margin-left: 0; }
  .os-filters { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
  .os-filters .cf-chip { flex: 0 0 auto; }
}

/* ---------------- «Виджеты» — оболочка «Кадр» (канвас «Разделы кабинета», 06.09.2026) ----------------
   Таймер и смерти, донатон, дождь из эмоутов, голосования: одна шапка, чипы-переключатель,
   слева плитки настроек, справа живой кадр с адресами источников. */
.wg-a { display: flex; flex-direction: column; gap: 18px; }
.wg-chips { margin-top: -2px; }
.cf-chip.is-active { border-color: rgba(255, 106, 43, .6); background: rgba(255, 106, 43, .14); color: #ffd6c2; }
.cf-chip.is-active i { background: var(--primary); box-shadow: 0 0 8px rgba(255, 106, 43, .7); }
.cf-chip:focus-visible { outline: none; box-shadow: var(--ring); }
.wg-pill { gap: 8px; padding-right: 5px; }
.wg-pill b { font-weight: 650; color: var(--text-2); }
.wg-pill .source-status { height: 22px; padding: 0 8px; font-size: 10.5px; }
.wg-pill .source-status .line-icon { width: 12px; height: 12px; }
.wg-head-opt { margin-left: auto; }
.wg-left .cf-tile { align-self: start; }
.wg-time { display: flex; align-items: center; gap: 6px; }
.wg-time .input { flex: 1 1 0; width: 0; min-width: 0; height: 46px; padding: 0 6px; text-align: center; font-family: var(--font-mono); font-size: 18px; font-weight: 700; }
.wg-time b { color: var(--text-3); font-size: 18px; line-height: 1; }
.wg-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.wg-actions.is-end { justify-content: flex-end; }
.wg-actions .button { min-height: 38px; border-radius: 10px; }
.wg-actions .button.sm { min-height: 32px; }
.wg-count { display: flex; align-items: center; gap: 10px; }
.wg-count .input { width: 130px; height: 50px; text-align: center; font-family: var(--font-mono); font-size: 22px; font-weight: 800; }
.wg-count span { font-size: 12px; color: var(--text-3); }
.wg-toggles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.wg-toggles.is-one { grid-template-columns: minmax(0, 1fr); }
.wg-style { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: end; }
.wg-style > div { min-width: 0; }
.wg-style .field-label { display: block; margin-bottom: 6px; }
.wg-style-note { grid-column: span 2; align-self: center; }
.wg-color { display: grid; gap: 6px; min-width: 0; }
.wg-color .field-label { margin: 0; }
.wg-color-well { position: relative; display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 12px 0 8px; border-radius: 10px; border: 1px solid rgb(var(--veil) / .08); background: rgb(var(--shade) / .28); cursor: pointer; }
.wg-color-well:hover { border-color: rgb(var(--veil) / .16); }
.wg-color-well input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; opacity: 0; cursor: pointer; }
.wg-color-well input:focus-visible ~ code { box-shadow: var(--ring); }
.wg-color-well i { flex: 0 0 auto; width: 24px; height: 24px; border-radius: 7px; border: 1px solid rgb(var(--veil) / .18); }
.wg-color-well code { font-family: var(--font-mono); font-size: 12px; letter-spacing: .02em; color: var(--text-2); }
.wg-rule { display: flex; align-items: center; gap: 10px; }
.wg-rule label { display: flex; align-items: center; gap: 6px; flex: 1 1 0; min-width: 0; }
.wg-rule label .input { flex: 1 1 0; min-width: 0; text-align: center; font-family: var(--font-mono); font-weight: 700; }
.wg-rule span { font-size: 14px; font-weight: 700; color: var(--text-2); }
.wg-rule b { font-size: 20px; color: var(--text-2); }
.wg-fill { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 12.5px; }
.wg-fill .line-icon { width: 14px; height: 14px; }
.wg-canvas { display: grid; gap: 14px; place-items: center; min-height: 220px; padding: 18px; background: repeating-conic-gradient(var(--scene-checker) 0% 25%, transparent 0% 50%) 0 0 / 16px 16px, var(--scene, #1f1913); }
.wg-canvas .widgets-preview-host { width: 100%; display: grid; place-items: center; }
.wg-canvas-empty { min-height: 160px; }
.wg-links { display: grid; gap: 8px; padding: 14px 16px 16px; border-top: 1px solid rgb(var(--veil) / .07); }
.wg-addr { height: auto; min-height: 38px; }
.wg-addr-side { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.wg-addr-side .icon-button { width: 30px; height: 30px; border-radius: 8px; }
.wg-addr-side .source-status { height: 22px; padding: 0 8px; font-size: 10.5px; }
.wg-note { display: flex; align-items: flex-start; gap: 8px; margin: 0; font-size: 11.5px; line-height: 1.5; color: var(--text-3); }
.wg-note .line-icon { flex: 0 0 auto; width: 14px; height: 14px; margin-top: 2px; color: var(--text-3); }
.wg-note b { color: var(--text-2); }
.wg-a .select, .wg-a .input { border-radius: 10px; }
.wg-a .field-label { color: var(--text-2); font-weight: 650; }
/* Дождь: рейл и инспектор из студии живут внутри плиток */
.wg-rail-tile { padding-bottom: 12px; }
.wg-rail { display: grid; gap: 4px; }
.wg-rail .wx-rail-group { margin: 6px 0 2px; }
.wg-inspector-tile { padding: 0; }
.wg-inspector.wx-inspector { padding: 18px; overflow: visible; }
.wg-stage.wx-stage { min-height: 240px; border-bottom: 0; }
/* Голосования: демо во всю ширину кадра */
.wg-vote-preview.vote-preview { max-width: none; margin: 0; border: 0; border-radius: 0; }
@media (max-width: 1100px) {
  .wg-a .cf-right { position: static; }
}
@media (max-width: 760px) {
  .wg-style { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wg-style-note { grid-column: span 2; }
  .wg-toggles { grid-template-columns: minmax(0, 1fr); }
  .wg-chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
  .wg-chips .cf-chip { flex: 0 0 auto; }
}

/* ---------------- «Звуки» — оболочка «Кадр» (канвас «Разделы кабинета», 06.09.2026) ---------------- */
.sd-rule { display: flex; flex-direction: column; }
.sd-rule .cf-tile-head { align-items: flex-start; margin-bottom: 0; }
.sd-rule .cf-tile-head > div { flex: 1 1 auto; min-width: 0; }
.sd-rule .cf-tile-ico { overflow: hidden; }
.sd-rule .cf-tile-ico img { width: 100%; height: 100%; object-fit: cover; }
.sd-rule.is-uploading::after { content: "Загружаем звук…"; position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; border-radius: inherit; color: var(--warning); background: color-mix(in srgb, var(--bg) 91%, transparent); font-size: 12px; font-weight: 900; }
.sd-switch { position: relative; display: inline-flex; align-items: center; flex: 0 0 auto; margin-left: auto; margin-top: 6px; cursor: pointer; }
.sd-switch input { position: absolute; opacity: 0; pointer-events: none; }
.sd-switch i { position: relative; width: 40px; height: 22px; border-radius: 999px; border: 1px solid rgb(var(--veil) / .08); background: var(--surface-3); transition: background .18s ease, border-color .18s ease, box-shadow .18s ease; }
.sd-switch i::after { content: ""; position: absolute; left: 2px; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: #c9bda6; transition: transform .18s ease, background .18s ease; }
.sd-switch input:checked + i { border-color: rgba(255, 138, 82, .6); background: linear-gradient(135deg, var(--primary), var(--warning)); box-shadow: 0 0 14px rgba(255, 106, 43, .35); }
.sd-switch input:checked + i::after { transform: translateX(18px); background: var(--bg); }
.sd-switch input:disabled + i { opacity: .4; cursor: not-allowed; }
.sd-switch input:focus-visible + i { box-shadow: var(--ring); }
.sd-switch b { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sd-remove { flex: 0 0 auto; width: 30px; height: 30px; margin-top: 2px; margin-left: 4px; border-radius: 8px; }
.sd-range { display: grid; gap: 8px; }
.sd-range > span { display: flex; justify-content: space-between; align-items: baseline; font-size: 12px; font-weight: 650; color: var(--text-2); }
.sd-range b { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .04em; color: #ffb08a; }
.sd-range input[type="range"] { width: 100%; height: 22px; margin: 0; background: none; accent-color: var(--primary); cursor: pointer; }
.sd-controls { display: grid; gap: 12px; margin-top: 14px; }
.sd-row { display: flex; align-items: center; gap: 6px; }
.sd-row .icon-button { width: 32px; height: 32px; border-radius: 9px; }
.sd-row .icon-button.is-playing { border-color: rgba(255, 106, 43, .6); background: rgba(255, 106, 43, .14); color: #ffd6c2; }
.sd-row .button { margin-left: auto; min-height: 32px; border-radius: 9px; }
.sd-upload { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 62px; margin-top: 14px; padding: 10px 12px; border: 1px dashed var(--line-strong); border-radius: 10px; background: none; color: var(--text-3); font: inherit; font-size: 12.5px; text-align: center; cursor: pointer; transition: border-color .18s ease, color .18s ease, background .18s ease; }
.sd-upload:hover { border-color: rgba(255, 106, 43, .55); background: rgba(255, 106, 43, .06); color: var(--text-2); }
.sd-upload .line-icon { flex: 0 0 auto; width: 16px; height: 16px; }
.sd-info .cf-tile-head { margin-bottom: 0; }
.sd-empty { display: grid; justify-items: center; gap: 10px; padding: 30px 18px; text-align: center; }
.sd-empty .cf-tile-ico { width: 44px; height: 44px; }
.sd-empty strong { font-family: var(--font-display); font-size: 14px; color: var(--text); }
.sd-empty p { margin: 0; max-width: 420px; font-size: 12.5px; line-height: 1.5; color: var(--text-3); }
.sd-steps { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; font-size: 12px; line-height: 1.45; color: var(--text-3); }
.sd-steps li { display: flex; align-items: flex-start; gap: 8px; }
.sd-steps b { flex: 0 0 auto; display: grid; place-items: center; width: 18px; height: 18px; margin-top: 1px; border-radius: 50%; background: rgba(255, 106, 43, .14); color: #ffb08a; font-family: var(--font-mono); font-size: 10px; font-weight: 700; }
.sd-chip-add { border-style: dashed; }

/* ---------------- «Мемы» — оболочка «Кадр» (канвас «Разделы кабинета», 06.09.2026) ---------------- */
.md-filters { align-items: center; }
.md-filter-off { margin-left: auto; border-style: dashed; }
.md-filters b { font-weight: 700; color: inherit; }
.md-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.md-list > .media-empty { grid-column: 1 / -1; }
.md-cmd { display: flex; flex-direction: column; gap: 10px; }
.md-cmd .cf-tile-head { margin-bottom: 0; }
.md-cmd h2 code { padding: 0; background: none; font-family: var(--font-mono); font-size: 14px; color: var(--text); }
.md-cmd.is-off { opacity: .74; }
.md-state { flex: 0 0 auto; margin-left: auto; display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 999px; background: rgb(var(--veil) / .06); color: var(--text-3); font-size: 11px; font-weight: 700; }
.md-state::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--text-3); }
.md-state.is-on { background: color-mix(in srgb, var(--success) 14%, transparent); color: var(--success); }
.md-state.is-on::before { background: var(--success); }
.md-thumb .media-preview { width: 100%; height: 110px; border-radius: 10px; }
.md-aliases { display: flex; flex-wrap: wrap; gap: 6px; }
.md-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 11.5px; color: var(--text-3); }
.md-meta span { display: inline-flex; align-items: center; gap: 5px; }
.md-meta .line-icon { width: 13px; height: 13px; }
.md-actions { display: flex; gap: 6px; margin-top: auto; }
.md-actions .icon-button { width: 32px; height: 32px; border-radius: 9px; }
.md-actions .icon-button:first-child { margin-right: auto; border-color: rgba(255, 106, 43, .5); background: rgba(255, 106, 43, .14); color: #ffd6c2; }
.md-editor .media-form { display: grid; gap: 14px; }
.md-editor .media-upload-row { align-items: center; }
.md-form-footer { margin-top: 0; }
.md-playback { margin-top: 4px; }
.md-playback .field-label { display: block; margin-bottom: 6px; }
.md-a .cf-tile > .cf-pill { align-self: flex-start; }
@media (max-width: 760px) {
  .md-list { grid-template-columns: minmax(0, 1fr); }
  .md-filter-off { margin-left: 0; }
}

/* ---------------- «Сейчас играет» — оболочка «Кадр» (канвас «Разделы кабинета», 06.09.2026) ---------------- */
.np-key { gap: 8px; }
.np-key-input { flex: 1 1 auto; min-width: 0; height: 100%; padding: 0; border: 0; background: none; color: var(--text-2); font-family: var(--font-mono); font-size: 12px; letter-spacing: .04em; outline: none; }
.np-key-input:focus-visible { box-shadow: var(--ring); border-radius: 4px; }
.np-key .cf-link { font-size: 12px; }
.np-now b { color: var(--text); font-weight: 700; }
.np-canvas { display: grid; padding: 14px 16px; background: repeating-conic-gradient(var(--scene-checker) 0% 25%, transparent 0% 50%) 0 0 / 16px 16px, var(--scene, #1f1913); }
.np-canvas .np-preview { width: 100%; }
.np-canvas .np-preview-modes { display: flex; gap: 8px; margin-top: 10px; }
.np-a .wg-toggles .cf-opt { min-height: 44px; }
@media (max-width: 760px) {
  .np-key .wg-addr-side .cf-link { display: none; }
}

/* ---------------- Лейблы · Словотрон · Расписание · Приветствие — оболочка «Кадр» (06.09.2026) ---------------- */
/* Заметка под иконкой: текст с <b> и <code> течёт обычной строкой, иконка стоит слева. */
.wg-note { display: block; position: relative; padding-left: 22px; }
.wg-note > .line-icon:first-child { position: absolute; left: 0; top: 2px; margin: 0; }
.wg-note code { font-family: var(--font-mono); font-size: 11px; }
.ws-live { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.ws-live .slov-live-answer { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-left: auto; }
.ws-a .vt-layout { margin-top: 0; }
/* Инспекторы студий внутри плитки «Кадра»: две колонки полей вместо одной. */
@media (min-width: 761px) { .wg-inspector .wx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Интеграции: форма API-ключа (DonatePay) в ряду действий плитки. */
.em-int-form { display: flex; gap: 8px; flex: 1 1 100%; min-width: 0; }
.em-int-form .input { flex: 1 1 auto; min-width: 0; font-family: var(--font-mono); font-size: 12px; letter-spacing: .02em; }
.em-int-form .button { flex: 0 0 auto; }
.em-int-form[hidden] { display: none; }

/* ---------------- Читаемость текста в плитках «Кадра» (владелец, 07.09.2026) ----------------
   --text-3 (#8a7b63) на подложке плитки даёт контраст около 4.2:1 — для мелких пояснений
   этого мало, текст «сливается». Подписи и заметки поднимаем до --text-2, основной текст
   инспекторов студии — почти до основного цвета, выключенные блоки рейла глушим мягче. */
.wg-note { color: var(--text-2); font-size: 12px; line-height: 1.55; }
.wg-note > .line-icon:first-child { color: var(--text-2); }
.cf-opt small { color: var(--text-2); font-size: 12px; }
.cf-tile-head p { color: var(--text-2); }
.cf-frame-note { color: var(--text-2); }
.sd-steps { color: var(--text-2); }
.md-meta { color: var(--text-2); }
.wg-inspector .wx-inspector-head p,
.wg-inspector .wx-outcome p,
.wg-inspector .wx-block > p { color: color-mix(in srgb, var(--text) 78%, var(--text-2)); font-size: 13px; line-height: 1.6; }
.wg-inspector .wx-note { color: var(--text-2); font-size: 12.5px; line-height: 1.6; }
.wg-inspector .wx-note.is-warn { color: var(--warning); }
.wg-inspector .wx-note b, .wg-inspector .wx-outcome b { color: var(--text); }
.wg-inspector .wx-check small { color: var(--text-2); font-size: 12px; }
.wg-inspector .wx-check span { color: var(--text); }
.wg-inspector .field-label, .wg-inspector .wx-grid > label > span { color: var(--text-2); }
.wg-inspector .wx-block-title, .wg-rail .wx-rail-group { color: #ffb08a; opacity: .92; }
.wg-rail .wx-rail-copy small { color: var(--text-2); }
.wg-rail .wx-rail-item.is-off .wx-rail-copy b { opacity: 1; color: var(--text-2); }
.wg-rail .wx-rail-item.is-off .wx-rail-copy small { opacity: .85; }
.wg-rail .wx-rail-item.is-off .wx-rail-ico { opacity: .7; }
.wg-rail .wx-rail-item.is-active .wx-rail-copy b { color: var(--text); }
/* Блок раунда Словотрона скрыт атрибутом hidden — display:flex его не перебивает. */
.ws-live[hidden] { display: none; }

/* ---------------- Доводка «Кадра» по замечаниям владельца (07.09.2026) ----------------
   1) Пункты рейла — обведённые строки, а не голый список; 2) пояснения — мягкие
   плашки-калауты вместо приклеенных строк; 3) кнопка «Копировать» у адресов —
   акцентная пилюля; 4) инспектор студии не растягивается длинной ссылкой. */

/* 1. Рейл блоков: каждая строка — карточка, активная — с акцентной обводкой. */
.wg-rail { gap: 6px; }
.wg-rail .wx-rail-item { border: 1px solid rgb(var(--veil) / .07); border-radius: 10px; background: rgb(var(--shade) / .22); }
.wg-rail .wx-rail-item:hover { border-color: rgb(var(--veil) / .16); background: rgb(var(--shade) / .34); }
.wg-rail .wx-rail-item.is-active { border-color: rgba(255, 106, 43, .55); background: rgba(255, 106, 43, .09); box-shadow: none; }
.wg-rail .wx-rail-open { padding: 10px 10px 10px 11px; }
.wg-rail .wx-rail-ico { border-radius: 8px; background: rgb(var(--shade) / .35); }
.wg-rail .wx-rail-item.is-active .wx-rail-ico { background: rgba(255, 106, 43, .18); border-color: rgba(255, 138, 82, .45); color: #ffd6c2; }
.wg-rail .wx-rail-group { margin: 10px 2px 4px; }
.wg-rail .wx-rail-group:first-child { margin-top: 0; }

/* 2. Калаут: пояснение в своей плашке с иконкой, отбивка от контролов сверху. */
.wg-callout { display: flex; align-items: flex-start; gap: 10px; margin: 14px 0 0; padding: 11px 12px; border-radius: 10px; border: 1px solid rgb(var(--veil) / .07); background: rgb(var(--shade) / .24); color: var(--text-2); font-size: 12.5px; line-height: 1.55; }
.wg-callout > .line-icon { flex: 0 0 auto; width: 16px; height: 16px; margin-top: 1px; color: #ffb08a; }
.wg-callout b { color: var(--text); font-weight: 700; }
.wg-callout.is-accent { border-color: rgba(255, 106, 43, .32); background: rgba(255, 106, 43, .08); color: var(--text); }
.wg-callout.is-accent > .line-icon { color: var(--primary); }
.cf-tile > .wg-callout:last-child { margin-bottom: 2px; }

/* 3. Копирование адреса: акцентная пилюля с подписью, на узких экранах — одна иконка. */
.wg-copy { display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto; height: 30px; padding: 0 11px 0 9px; border-radius: 8px; border: 1px solid rgba(255, 106, 43, .45); background: rgba(255, 106, 43, .14); color: #ffd6c2; font: 650 12px/1 var(--font-sans, inherit); cursor: pointer; transition: background .18s ease, border-color .18s ease, transform .18s ease; }
.wg-copy:hover { background: rgba(255, 106, 43, .24); border-color: rgba(255, 106, 43, .7); }
.wg-copy:active { transform: translateY(1px); }
.wg-copy:focus-visible { outline: none; box-shadow: var(--ring); }
.wg-copy .line-icon { width: 14px; height: 14px; }
.wg-addr-side .icon-button { width: 30px; height: 30px; border-radius: 8px; border-color: rgba(255, 106, 43, .45); background: rgba(255, 106, 43, .14); color: #ffd6c2; }
.wg-addr-side .icon-button:hover { background: rgba(255, 106, 43, .24); border-color: rgba(255, 106, 43, .7); }
.wg-addr-side .tag { height: 22px; display: inline-flex; align-items: center; }
@media (max-width: 760px) {
  .wg-copy span { display: none; }
  .wg-copy { padding: 0 8px; }
}

/* 4. Инспектор студии: колонка не шире плитки, длинная ссылка режется многоточием. */
.wg-inspector.wx-inspector { grid-template-columns: minmax(0, 1fr); }
.wg-inspector.wx-inspector > * { min-width: 0; }
.wg-inspector .link-box { min-width: 0; }
.wg-inspector .link-box code { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wg-inspector .wx-row-actions small { color: var(--text-2); font-size: 12px; }

/* ---------------- Студии в «Кадре»: Лейблы, Словотрон, Дождь (канвас «Лейблы канала», 07.09.2026) ----------------
   Переменные студии раньше жили на .wx-studio-layout; без обёртки чипы, блоки и цвета
   инспектора теряли рамки и фон. Здесь они заданы на оболочке «Кадра», а сама студия
   переложена: блоки — сеткой карточек на всю ширину, инспектор под ними, поля в три колонки. */
.wg-a {
  --wx-bg: var(--bg);
  --wx-panel: rgb(var(--veil) / .028);
  --wx-panel-2: rgb(var(--veil) / .05);
  --wx-hair: rgb(var(--veil) / .075);
  --wx-hair-2: rgb(var(--veil) / .14);
  --wx-ink-3: var(--text-2);
}

/* Блоки карточками */
.ws-rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ws-rows .wx-rail-group { grid-column: 1 / -1; margin: 8px 2px 0; }
.ws-rows .wx-rail-group:first-child { margin-top: 0; }
.ws-rows .wx-rail-item { min-height: 56px; }
.ws-rows .wx-rail-item .switch-row { margin-right: 2px; }

/* Инспектор: секции без коробок, заголовки секций акцентом, поля в три колонки */
.wg-inspector.wx-inspector { gap: 20px; padding: 18px 20px 22px; }
.wg-inspector .wx-block { gap: 12px; padding: 0; border: 0; background: none; }
.wg-inspector .wx-block + .wx-block { padding-top: 18px; border-top: 1px solid rgb(var(--veil) / .06); border-radius: 0; }
.wg-inspector .wx-block-title { color: #ffb08a; font-size: 10px; letter-spacing: .14em; }
.wg-inspector .wx-inspector-head { padding-bottom: 4px; }
@media (min-width: 761px) {
  .wg-inspector .wx-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .wg-inspector .wx-grid .wx-wide { grid-column: 1 / -1; }
}
.wg-inspector .input, .wg-inspector select.input, .wg-inspector .select { border-radius: 10px; min-height: 42px; }

/* Чипы инспектора — как чипы «Кадра» */
.wg-inspector .wx-chips { gap: 8px; }
.wg-inspector .wx-chip { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 13px 0 11px; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; color: var(--text-2); font-size: 12.5px; font-weight: 650; }
.wg-inspector .wx-chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); transition: background .18s ease, box-shadow .18s ease; }
.wg-inspector .wx-chip:hover { border-color: rgb(var(--veil) / .3); color: var(--text); }
.wg-inspector .wx-chip.is-active { border-color: rgba(255, 106, 43, .6); background: rgba(255, 106, 43, .14); color: #ffd6c2; }
.wg-inspector .wx-chip.is-active::before { background: var(--primary); box-shadow: 0 0 8px rgba(255, 106, 43, .7); }

/* Цвета — колодцы в ряд */
.wg-inspector .wx-colors { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 10px; }
.wg-inspector .wx-colors label { display: grid; gap: 6px; }
.wg-inspector .wx-colors input[type="color"] { width: 100%; height: 42px; padding: 6px 8px; border: 1px solid rgb(var(--veil) / .08); border-radius: 10px; background: rgb(var(--shade) / .28); }
.wg-inspector .wx-colors input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
.wg-inspector .wx-colors input[type="color"]::-webkit-color-swatch { border: 1px solid rgb(var(--veil) / .18); border-radius: 7px; }
.wg-inspector .wx-colors input[type="color"]::-moz-color-swatch { border: 1px solid rgb(var(--veil) / .18); border-radius: 7px; }

/* Переключатели-галочки — строкой с подложкой */
.wg-inspector .wx-checks { gap: 6px; }
.wg-inspector .wx-check { align-items: center; min-height: 42px; padding: 6px 12px; border-radius: 10px; background: rgb(var(--shade) / .22); border: 1px solid rgb(var(--veil) / .05); }
.wg-inspector .wx-check input { accent-color: var(--primary); width: 16px; height: 16px; margin: 0; }
.wg-inspector .wx-check span { font-weight: 700; }

/* Текущее значение и отдельный источник — поле и адресная строка */
.wg-inspector .wx-row-actions { flex-direction: row-reverse; justify-content: space-between; min-height: 42px; padding: 4px 4px 4px 12px; border-radius: 10px; background: var(--bg); border: 1px solid rgb(var(--veil) / .1); }
.wg-inspector .wx-row-actions small { flex: 1 1 auto; min-width: 0; font-size: 13px; color: var(--text); }
.wg-inspector .wx-row-actions .button { min-height: 32px; border-radius: 8px; }
.wg-inspector .link-rows { display: grid; gap: 8px; min-width: 0; }
.wg-inspector .link-box { min-width: 0; min-height: 40px; padding: 4px 4px 4px 12px; border-radius: 10px; border-color: rgb(var(--veil) / .08); }
.wg-inspector .link-box .tag { font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.wg-inspector .link-box code { font-family: var(--font-mono); font-size: 11.5px; }
.wg-inspector .link-box .icon-button { min-height: 30px; padding: 0 11px 0 9px; border-radius: 8px; border-color: rgba(255, 106, 43, .45); background: rgba(255, 106, 43, .14); color: #ffd6c2; font-size: 12px; font-weight: 650; }
.wg-inspector .link-box .icon-button:hover { background: rgba(255, 106, 43, .24); border-color: rgba(255, 106, 43, .7); }
.wg-inspector .wx-note { margin-top: 2px; }

/* Кадр всех строк справа */
.ws-all .cf-tile-head { margin-bottom: 12px; }
.ws-all-stage.wx-stage { min-height: 180px; border-radius: 10px; border: 1px solid rgb(var(--veil) / .06); }
.ws-all-stage .wx-stage-label, .ws-all-stage .wx-stage-hint { display: none; }

@media (max-width: 760px) {
  .ws-rows { grid-template-columns: minmax(0, 1fr); }
  .wg-inspector .wx-colors { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ============================================================
   «Чат» — док-панель и источник OBS (канвас «Чат и меню FoxChat»,
   18.09.2026). Поверх сетки «Кадра»: где живёт чат, скины, «Свой вид»
   по скинам, кадр «Сцена / Док-панель» и окно про док-панель OBS.
   ============================================================ */

.cv-page .cf-grid.is-mod .cf-right { grid-column: span 5; position: sticky; }
.cv-section-label { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; margin: 4px 0 -4px; font-family: var(--font-mono); font-size: 10.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--text); }
.cv-section-label i { flex: 1; height: 1px; background: rgb(var(--veil) / .08); }
.cf-right .cv-section-label { margin: 0 0 10px; }
.cv-look { grid-column: 1 / -1; display: grid; gap: 14px; }

/* ---- где живёт чат ---- */
.cv-places { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.cv-place { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 12px; border: 1px solid rgb(var(--veil) / .08); background: rgb(22 17 11 / .55); }
.cv-place-ico { display: grid; place-items: center; flex: 0 0 auto; width: 40px; height: 40px; border-radius: 10px; background: rgb(255 106 43 / .12); box-shadow: inset 0 0 0 1px rgb(255 138 82 / .28); color: #ffb08a; }
.cv-place-ico .line-icon { width: 20px; height: 20px; }
.cv-place-copy { flex: 1; min-width: 0; }
.cv-place-copy b { font-size: 14px; color: var(--text); }
.cv-place-copy p { margin: 3px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--text-2); }
.cv-place .button { flex: 0 0 auto; }

/* ---- скины ---- */
.cv-skins { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.cv-skin { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 0; overflow: hidden; border: 1px solid #363b44; border-radius: 12px; background: #22262d; color: inherit; font: inherit; text-align: left; cursor: pointer; transition: border-color .16s ease, transform .16s ease; }
.cv-skin:hover { border-color: rgb(var(--veil) / .2); transform: translateY(-1px); }
.cv-skin:focus-visible { outline: none; box-shadow: var(--ring); }
.cv-skin.is-active { border-color: rgb(255 106 43 / .6); box-shadow: 0 0 0 1px rgb(255 106 43 / .35); }
.cv-skin-prev { display: flex; flex-direction: column; justify-content: center; gap: 6px; height: 136px; padding: 12px; box-sizing: border-box; overflow: hidden; }
.cv-skin-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px; border-top: 1px solid #363b44; }
.cv-skin-foot b { display: block; font-size: 12.5px; font-weight: 700; color: var(--text); }
.cv-skin-foot small { display: block; margin-top: 1px; font-size: 10.5px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cv-tag { display: inline-flex; align-items: center; flex: 0 0 auto; height: 18px; padding: 0 6px; border-radius: 2px; font-family: var(--font-mono); font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--warning); background: rgb(255 180 84 / .12); border: 1px solid rgb(255 180 84 / .32); }
.cv-lock { display: grid; place-items: center; color: #6f624c; }
.cv-lock .line-icon { width: 13px; height: 13px; }
.cv-skin-choice { display:grid; place-items:center; flex:none; width:20px; height:20px; border:1px solid #606874; border-radius:50%; }
.cv-skin-choice .line-icon { width:13px; height:13px; }
.cv-skin.is-active .cv-skin-choice { border-color:#ff8a52; background:#ff8a52; color:#191b20; }
.cv-sample-row { display:block; padding:7px 9px; border:1px solid #30333a; border-radius:5px; background:#1c1e21; color:#f1f0ed; font:500 10px/1.4 Onest,system-ui,sans-serif; text-shadow:none; }
.cv-sample-head { display:flex; align-items:center; gap:5px; margin-bottom:3px; white-space:nowrap; }
.cv-sample-head b { min-width:0; overflow:hidden; text-overflow:ellipsis; font-size:10px; font-weight:700; color:#c9a4ff; }
.cv-sample-head time { margin-left:auto; font:8px/1.2 ui-monospace,monospace; color:#929ba8; }
.cv-sample-head em { padding:1px 4px; border:1px solid #bfa0ff45; border-radius:3px; color:#d4bfff; background:#bfa0ff10; font:500 7px/1.4 system-ui,sans-serif; }
.cv-sample-row + .cv-sample-row b { color:#9dc899; }
.cv-sample-highlight { border-left:2px solid #bfa0ff; }
[data-chat-style="graphite"] .cv-sample-highlight { border-color:#ffb45470; background:linear-gradient(100deg,#ffb45412,transparent),#1c1e21; }
[data-chat-style="graphite"] .cv-sample-head em { border-color:#ffb45445; background:#ffb45412; color:#efc18b; }
[data-chat-style="ember"] .cv-sample-row { border-color:#382b1a; background:#16110b; color:#efe6d4; border-radius:2px; }
[data-chat-style="ember"] .cv-sample-highlight { border-left-color:#ffb454; }
[data-chat-style="ember"] .cv-sample-head em { border-color:#ffb45445; background:#ffb45412; color:#efc18b; }
[data-chat-style="bubbles"] .cv-sample-row { background:#23272d; border-color:#3c424c; border-radius:8px; }
[data-chat-style="bubbles"] .cv-sample-head { padding-bottom:3px; border-bottom:1px solid #80808047; }
[data-chat-style="subtitles"] .cv-sample-row { border:0; padding:2px; background:none; text-shadow:0 1px 3px #000; color:#fff; }
[data-chat-style="terminal"] .cv-sample-row { padding:2px; border:0; background:none; color:#d8e6c8; font-family:'JetBrains Mono',monospace; }
[data-chat-style="terminal"] .cv-sample-head b { font-family:inherit; }
[data-chat-style="pixel"] .cv-sample-row { border:2px solid #c7c7ea; border-radius:0; box-shadow:2px 2px #060622; background:#191a50; font-family:'PT Mono',monospace; }
[data-chat-style="pixel"] .cv-sample-head b { font:7px/1.5 'Press Start 2P',monospace; color:#f8d34a; }
.cv-note { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; font-size: 11.5px; line-height: 1.4; color: var(--text-3); }
.cv-note .line-icon { flex: 0 0 auto; width: 13px; height: 13px; color: #6f624c; }

/* ---- «Свой вид» ---- */
.cv-custom .cf-tile-head { flex-wrap: wrap; }
.cv-custom .cv-reset { margin-left: auto; }
.cv-custom .cv-reset[disabled] { opacity: .45; cursor: default; }
.cv-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; }
.cv-grp { display: flex; flex-direction: column; gap: 12px; min-width: 0; margin: 0; padding: 14px; border: 1px solid rgb(var(--veil) / .05); border-radius: 12px; background: rgb(22 17 11 / .45); }
.cv-grp-h { display: flex; align-items: center; gap: 8px; width: 100%; padding: 0; font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: #ff8a52; }
.cv-grp-h::after { content: ""; flex: 1; height: 1px; background: rgb(var(--veil) / .08); }
.cv-grp.is-locked .cv-grp-h { color: var(--text-3); }
.cv-grp.is-locked .cv-grp-body { display: flex; flex-direction: column; gap: 12px; opacity: .38; }
.cv-lock-note { display: flex; align-items: center; gap: 8px; margin: 0; padding: 9px 11px; border: 1px dashed rgb(var(--veil) / .14); border-radius: 8px; font-size: 12px; color: var(--text-2); }
.cv-lock-note .line-icon { flex: 0 0 auto; width: 14px; height: 14px; color: var(--text-3); }
.cv-field { display: grid; gap: 6px; min-width: 0; }
.cv-field-label { font-size: 12px; font-weight: 650; color: var(--text-2); }
.cv-hint { display: block; font-size: 11.5px; line-height: 1.45; color: var(--text-3); }
.cv-range { display: grid; gap: 6px; }
.cv-range label { display: flex; justify-content: space-between; align-items: baseline; font-size: 12px; font-weight: 650; color: var(--text-2); }
.cv-range b { font-family: var(--font-mono); font-size: 11.5px; font-weight: 700; letter-spacing: .04em; color: #ffb08a; }
.cv-range input[type="range"] { width: 100%; height: 22px; margin: 0; accent-color: var(--primary); cursor: pointer; }
.cv-seg { display: flex; gap: 3px; padding: 3px; border: 1px solid #3a2f1e; border-radius: 999px; background: rgb(22 17 11 / .55); }
.cv-seg button { flex: 1 1 0; min-width: 0; height: 30px; padding: 0 8px; border: 0; border-radius: 999px; background: none; color: var(--text-2); font: inherit; font-size: 12.5px; font-weight: 650; white-space: nowrap; cursor: pointer; }
.cv-seg button:hover { color: var(--text); }
.cv-seg button:focus-visible { outline: none; box-shadow: var(--ring); }
.cv-seg button.is-on { color: #ffd6c2; background: linear-gradient(135deg, rgb(255 106 43 / .26), rgb(255 106 43 / .1)); box-shadow: inset 0 0 0 1px rgb(255 106 43 / .45); }
.cv-well span { margin-left: auto; font-size: 11.5px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cv-switches { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.cv-switch { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 40px; padding: 0 10px 0 12px; border-radius: 10px; border: 1px solid rgb(var(--veil) / .05); background: rgb(22 17 11 / .55); font-size: 13px; font-weight: 650; color: var(--text); cursor: pointer; }
.cv-switch input { position: absolute; opacity: 0; pointer-events: none; }
.cv-switch i { position: relative; flex: 0 0 auto; width: 40px; height: 22px; border-radius: 999px; border: 1px solid rgb(var(--veil) / .08); background: #2a2216; transition: background .16s ease; }
.cv-switch i::after { content: ""; position: absolute; left: 2px; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: #c9bda6; transition: left .16s ease; }
.cv-switch input:checked + i { border-color: rgb(255 138 82 / .6); background: linear-gradient(135deg, #ff6a2b, #ffb454); box-shadow: 0 0 14px rgb(255 106 43 / .35); }
.cv-switch input:checked + i::after { left: 20px; background: #16110b; }
.cv-switch input:focus-visible + i { box-shadow: var(--ring); }
.cv-custom .select { min-height: 42px; border-radius: 10px; }
.cv-save-note { display: flex; align-items: center; gap: 8px; margin: 14px 0 0; font-size: 11.5px; color: var(--text-3); }
.cv-save-note i { width: 7px; height: 7px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 8px rgb(255 106 43 / .8); }

/* ---- выбор шрифта ---- */
.cv-font-anchor { position: relative; }
.cv-font-btn { display: flex; align-items: center; gap: 10px; width: 100%; height: 42px; padding: 0 12px; box-sizing: border-box; border: 1px solid rgb(var(--veil) / .08); border-radius: 10px; background: var(--bg); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.cv-font-btn:hover { border-color: rgb(var(--veil) / .16); }
.cv-font-btn:focus-visible, .cv-font-btn[aria-expanded="true"] { outline: none; border-color: rgb(255 106 43 / .6); box-shadow: 0 0 0 3px rgb(255 106 43 / .18); }
.cv-font-btn b { font-size: 14px; font-weight: 700; white-space: nowrap; }
.cv-font-btn span { margin-left: auto; font-size: 13px; color: var(--text-2); white-space: nowrap; }
.cv-font-btn .line-icon { flex: 0 0 auto; width: 14px; height: 14px; color: var(--text-2); }
.cv-font-btn.is-static { cursor: default; }
.cv-font-pop { position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; right: 0; max-height: 420px; overflow-y: auto; padding: 8px; border: 1px solid rgb(var(--veil) / .1); border-radius: 12px; background: #1b1510; box-shadow: 0 18px 40px rgb(0 0 0 / .55); scrollbar-width: thin; }
.cv-font-search { display: flex; align-items: center; gap: 8px; height: 38px; margin-bottom: 6px; padding: 0 10px; border: 1px solid rgb(var(--veil) / .08); border-radius: 8px; background: var(--bg); color: var(--text-3); }
.cv-font-search .line-icon { width: 15px; height: 15px; }
.cv-font-search input { flex: 1; min-width: 0; border: 0; background: none; color: var(--text); font: inherit; font-size: 13px; outline: none; }
.cv-font-group { margin: 10px 10px 4px; font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--text-3); }
.cv-font-opt { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 36px; padding: 0 10px; border: 0; border-radius: 8px; background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.cv-font-opt:hover, .cv-font-opt:focus-visible { outline: none; background: rgb(var(--veil) / .06); }
.cv-font-opt[aria-selected="true"] { background: rgb(255 106 43 / .14); color: #ffd6c2; }
.cv-font-check { display: grid; place-items: center; flex: 0 0 16px; color: var(--primary); }
.cv-font-check .line-icon { width: 15px; height: 15px; }
.cv-font-opt b { flex: 0 0 118px; font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cv-font-opt span:last-child, .cv-font-opt small { flex: 1; min-width: 0; font-size: 13px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cv-font-opt small { font-size: 11.5px; color: var(--text-3); }

/* ---- кадр ---- */
.cv-frame .cf-frame-head .cv-seg { margin-left: auto; flex: 0 0 auto; }
.cv-frame .cf-frame-head .cv-seg button { height: 26px; font-size: 12px; padding: 0 12px; }
.cv-frame-box { display: flex; justify-content: center; background: radial-gradient(420px 260px at 72% 22%, rgb(120 170 140 / .22), transparent 60%), radial-gradient(360px 300px at 18% 90%, rgb(255 140 70 / .18), transparent 62%), linear-gradient(165deg, #22302a 0%, #1a2230 52%, #2c2118 100%); }
.chat-a .cv-frame-box iframe { width: 100%; height: 640px; background: transparent; }
.cv-frame-box.is-dock { padding: 12px 0; background: #1c1e25; }
.chat-a .cv-frame-box.is-dock iframe { width: min(100%, 360px); height: 616px; border: 1px solid #343845; }
.cv-frame-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 16px; border-top: 1px solid rgb(var(--veil) / .07); }
.cv-frame-note { font-family: var(--font-mono); font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.cv-frame-foot a { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: #ffb08a; text-decoration: none; }
.cv-frame-foot a .line-icon { width: 13px; height: 13px; }
.cv-frame-tip { display: flex; gap: 12px; margin: 14px 0 0; padding: 14px 16px; border: 1px dashed rgb(var(--veil) / .12); border-radius: 12px; font-size: 12.5px; line-height: 1.5; color: var(--text-2); }
.cv-frame-tip .line-icon { flex: 0 0 auto; width: 18px; height: 18px; color: #ffb08a; }

/* ---- окно «Добавить в OBS как док-панель» ---- */
.fc-dialog.cv-dock { width: min(1040px, calc(100vw - 32px)); max-width: none; padding: 0; }
.cv-dock-shell { display: flex; flex-direction: column; max-height: calc(100vh - 48px); padding: 0; overflow: hidden; }
.cv-dock-head { display: flex; align-items: flex-start; gap: 16px; padding: 22px 26px 18px; border-bottom: 1px solid var(--line); }
.cv-dock-head > div { flex: 1; }
.cv-dock-head h3 { margin: 6px 0 0; font-family: var(--font-display); font-size: 22px; font-weight: 700; letter-spacing: -.03em; color: var(--text); }
.cv-dock-head p { margin: 8px 0 0; max-width: 600px; font-size: 13.5px; line-height: 1.5; color: var(--text-2); }
.cv-dock-body { display: grid; grid-template-columns: minmax(0, 1fr) 440px; gap: 28px; padding: 22px 26px; overflow-y: auto; }
.cv-steps { display: flex; flex-direction: column; gap: 18px; margin: 0; padding: 0; list-style: none; }
.cv-step { display: flex; gap: 12px; }
.cv-step > div { flex: 1; min-width: 0; display: grid; gap: 8px; }
.cv-step b { font-size: 14px; font-weight: 700; line-height: 26px; color: var(--text); }
.cv-step p { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--text-2); }
.cv-step-n { display: grid; place-items: center; flex: 0 0 auto; width: 26px; height: 26px; border-radius: 2px; background: rgb(255 106 43 / .14); border: 1px solid rgb(255 106 43 / .45); font-family: var(--font-mono); font-size: 12px; font-weight: 700; color: #ff9a5e; }
.cv-obs-path { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.cv-obs-path .line-icon { width: 14px; height: 14px; color: var(--text-3); }
.cv-obs-chip { display: inline-flex; align-items: center; height: 26px; padding: 0 9px; border-radius: 3px; background: #3b4a68; border: 1px solid #5b77b0; font-family: 'Segoe UI', system-ui, sans-serif; font-size: 12px; color: #e6e8ee; white-space: nowrap; }
.cv-obs-table { overflow: hidden; border: 1px solid #3a3e4a; border-radius: 3px; font-family: 'Segoe UI', system-ui, sans-serif; font-size: 12px; }
.cv-obs-table > div { display: grid; grid-template-columns: 150px minmax(0, 1fr); }
.cv-obs-table > div:first-child { background: #2b2e38; color: #9aa0ae; }
.cv-obs-table > div:last-child { background: #1c1e25; color: #e6e8ee; }
.cv-obs-table span { padding: 7px 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cv-obs-table span + span { border-left: 1px solid #3a3e4a; }
.cv-step-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cv-step-actions small { font-size: 11.5px; color: var(--text-3); }
.cv-obs { display: flex; flex-direction: column; gap: 0; margin: 0; overflow: hidden; border: 1px solid #343845; border-radius: 6px; background: #1c1e25; box-shadow: 0 24px 60px rgb(0 0 0 / .5); font-family: 'Segoe UI', system-ui, sans-serif; color: #d6d9e2; align-self: start; }
.cv-obs-title { height: 24px; display: flex; align-items: center; padding: 0 10px; background: #15171d; font-size: 10.5px; color: #9aa0ae; }
.cv-obs-menu { display: flex; align-items: center; gap: 14px; height: 24px; padding: 0 10px; background: #22252d; border-bottom: 1px solid #343845; font-size: 11px; }
.cv-obs-menu .is-hot { margin: 0 -6px; padding: 2px 6px; border-radius: 2px; background: #3b4a68; color: #fff; }
.cv-obs-main { position: relative; display: flex; height: 250px; }
.cv-obs-preview { flex: 1; margin: 8px; border-radius: 2px; background: radial-gradient(260px 180px at 72% 22%, rgb(120 170 140 / .3), transparent 60%), linear-gradient(165deg, #22302a 0%, #1a2230 52%, #2c2118 100%); }
.cv-obs-dock { display: flex; flex-direction: column; width: 140px; border-left: 1px solid #343845; background: #16110b; }
.cv-obs-dock-head { height: 22px; display: flex; align-items: center; padding: 0 8px; background: #262a34; font-size: 10.5px; font-weight: 600; color: #e6e8ee; }
.cv-obs-dock-feed { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 5px; padding: 6px; }
.cv-obs-dock-feed i { display: block; height: 22px; border-radius: 2px; border: 1px solid rgb(239 230 214 / .06); border-left: 2px solid var(--c); background: rgb(28 21 13 / .9); }
.cv-obs-dock-input { margin-top: 2px; padding: 4px 7px; border: 1px solid rgb(239 230 214 / .12); border-radius: 2px; font-size: 9px; color: #8a7b63; }
.cv-obs-drop { position: absolute; left: 62px; top: 0; display: grid; width: 240px; padding: 4px; border: 1px solid #454a5a; border-radius: 3px; background: #262a34; box-shadow: 0 12px 28px rgb(0 0 0 / .55); font-size: 10.5px; }
.cv-obs-drop span { padding: 5px 8px; color: #c9ccd6; }
.cv-obs-drop .is-hot { border-radius: 2px; background: #ff6a2b; color: #16110b; font-weight: 700; }
.cv-obs-docks { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; height: 70px; padding: 6px 8px 8px; box-sizing: border-box; border-top: 1px solid #343845; }
.cv-obs-docks span { padding: 3px 6px; border: 1px solid #343845; border-radius: 2px; background: #22252d; font-size: 9.5px; color: #9aa0ae; }
.cv-obs figcaption { padding: 8px; font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; text-align: center; color: var(--text-3); background: #16110b; }
.cv-dock-foot { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 14px 26px; border-top: 1px solid var(--line); background: var(--bg-subtle); }
.cv-dock-foot .cf-link { display: inline-flex; align-items: center; gap: 6px; }
.cv-dock-foot .cf-link .line-icon { width: 14px; height: 14px; }
.cv-dock-warn { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-3); }
.cv-dock-warn .line-icon { width: 14px; height: 14px; color: var(--warning); }
.cv-dock-foot .button { margin-left: auto; }

@media (max-width: 1280px) {
  .cv-skins { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cv-groups { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 1100px) {
  .cv-page .cf-grid.is-mod .cf-right { grid-column: 1 / -1; position: static; }
  .chat-a .cv-frame-box iframe { height: 440px; }
  .cv-dock-body { grid-template-columns: minmax(0, 1fr); }
  .cv-obs { display: none; }
}
@media (max-width: 760px) {
  .cv-places { grid-template-columns: minmax(0, 1fr); }
  .cv-place { flex-wrap: wrap; }
  .cv-place .button { width: 100%; min-height: 44px; }
  .cv-skins { grid-template-columns: repeat(2,minmax(0,1fr)); gap:8px; }
  .cv-skin-prev { padding:8px; }
  .cv-skin-foot { padding:10px 8px; }
  .cv-switches { grid-template-columns: minmax(0, 1fr); }
  .chat-a .cv-frame-box iframe { height: 330px; }
  .cv-frame .cf-frame-head { flex-wrap: wrap; }
  .cv-frame .cf-frame-head .cv-seg { order: 3; width: 100%; margin-left: 0; }
  .cv-dock-head, .cv-dock-body, .cv-dock-foot { padding-left: 16px; padding-right: 16px; }
  .cv-dock-foot .button { width: 100%; }
}

/* Страница OBS: инструкция в двух частях — чат док-панелью, остальное источниками (18.09.2026). */
/* Отступы — у самой части: заголовок, шаги и кнопка стоят по одной линии с шапкой
   карточки (раньше заголовок и кнопка прилипали к краю, а шаги были сдвинуты). */
.os-help[open] > summary { border-bottom: 1px solid rgb(var(--veil) / .07); }
.os-help-part { display: grid; gap: 12px; padding: 16px 18px 18px; }
.os-help-part + .os-help-part { border-top: 1px solid rgb(var(--veil) / .07); }
.os-help-part > .eyebrow-mini { color: #ff8a52; }
.os-help-part > .os-steps { padding: 0; }
.os-help-part > .button { justify-self: start; margin-top: 2px; }
.os-dock-help { margin-left: 4px; font-size: 11.5px; }
/* Длинный адрес («…/donations», локальный хост) растягивал плитку источника, и «подробнее» уезжало
   за край: колонка сетки не сжималась уже содержимого. */
.os-src { grid-template-columns: minmax(0, 1fr); }
/* Метка «выбран» — в углу картинки скина: в подписи она теснила название и обрезалась. */
.cv-skin > .cv-skin-foot .cv-tag { position: absolute; top: 7px; right: 7px; box-shadow: 0 2px 8px rgb(0 0 0 / .45); background: #2a1f12; }
/* Пока применяется новый скин — скины и «Свой вид» заняты: правка в этот момент
   откатила бы шрифт и акцент нового скина (проверка 18.09.2026). */
.cv-skins-tile.is-busy, .cv-custom.is-busy { opacity: .6; pointer-events: none; transition: opacity .15s ease; }
@media (max-width:400px) { .cv-skins { grid-template-columns:minmax(0,1fr); } }
