/* ИИ-копилот редактора чек-листа: переключатель «Список / Схема», панель копилота, маркеры,
   ✦ у полей и правил, широкий drawer критерия с колонкой копилота. Всё под .cqa-app. */

/* ---------- Панель над карточкой: вид + копилот ---------- */
.cqa-app .ck-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: -8px; }
.cqa-app .ck-toolbar:empty { display: none; }
.cqa-app .ck-viewseg {
  display: inline-flex; gap: 2px; padding: 3px;
  background: var(--seg-bg); border-radius: 11px;
}
.cqa-app .ck-viewseg button {
  display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 14px;
  border: 0; border-radius: 8px; background: transparent;
  font-size: 13px; font-weight: 500; color: var(--text-body); cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease;
}
.cqa-app .ck-viewseg button .cqa-icon { width: 15px; height: 15px; }
.cqa-app .ck-viewseg button:hover { color: var(--text); }
.cqa-app .ck-viewseg button[aria-checked="true"] { background: var(--surface); color: var(--text); font-weight: 600; box-shadow: var(--shadow-seg); }
.cqa-app .ck-viewseg button[aria-checked="true"] .cqa-icon { color: var(--nav-active-icon); }
.cqa-app .ck-viewseg button:focus-visible { outline: none; box-shadow: var(--focus-ring); }

/* old */ .cqa-app .ck-copbtn { height: 38px; gap: 7px; }
/* old */ .cqa-app .ck-copbtn .cqa-icon { color: var(--info); }
/* old */ .cqa-app .ck-copbtn.is-on { background: var(--info-bg); border-color: var(--info-border); color: var(--info-text); }
/* old */ .cqa-app .ck-copbtn__n {
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px;
  background: var(--amber-dot); color: #fff; font-size: 11.5px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}

/* ---------- Схема внутри карточки ---------- */
.cqa-app .ck-card--canvas { overflow: visible; }
.cqa-app .ck-canvas-legend { font-size: 12.5px; color: var(--text-muted); }
.cqa-app .ck-canvas-host { padding: 0 16px 16px; }


/* ---------- Копилот: строка ввода («таблетка» как в Miro) ---------- */
.cqa-app .cop-pill {
  position: relative; display: flex; align-items: flex-end; gap: 6px; width: 100%;
  padding: 7px 7px 7px 8px; border: 1px solid var(--border); border-radius: 16px;
  background: var(--surface); box-shadow: var(--shadow);
}
.cqa-app .cop-pill:focus-within { border-color: var(--info-border); box-shadow: var(--shadow), 0 0 0 3px rgba(59,95,168,.10); }
.cqa-app .cop-pill__plus, .cqa-app .cop-pill__send {
  flex: none; width: 34px; height: 34px; border-radius: 11px; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; transition: background-color 150ms ease, opacity 150ms ease;
}
.cqa-app .cop-pill__plus { background: var(--surface-muted); color: var(--text-body); }
.cqa-app .cop-pill__plus:hover { background: var(--surface-hover); color: var(--text); }
.cqa-app .cop-pill__plus .cqa-icon, .cqa-app .cop-pill__send .cqa-icon { width: 18px; height: 18px; }
.cqa-app .cop-pill__send { background: var(--info); color: #fff; }
.cqa-app .cop-pill__send:hover:not(:disabled) { background: var(--info-text); }
.cqa-app .cop-pill__send.is-empty { opacity: 0; pointer-events: none; width: 0; margin-left: -6px; }
.cqa-app .cop-pill__input {
  flex: 1 1 auto; min-width: 0; min-height: 34px; max-height: 92px; padding: 7px 4px; border: 0; outline: none; resize: none;
  background: transparent; font: inherit; font-size: 14px; line-height: 20px; color: var(--text);
}
.cqa-app .cop-pill__input::placeholder { color: var(--text-muted); }
.cqa-app .cop-pill__mic { flex: none; display: inline-flex; align-items: center; }
.cqa-app .cop-pill__mic:empty { display: none; }
.cqa-app .ck-aimenu.cop-plusmenu { top: auto; bottom: calc(100% + 8px); left: 0; right: auto; min-width: 220px; }
.cqa-app .cop-plusmenu button { display: flex; align-items: center; gap: 8px; }
.cqa-app .cop-plusmenu .cqa-icon { width: 15px; height: 15px; color: var(--info); }

.cqa-app .cop-logo { width: 18px; height: 18px; border-radius: 5px; object-fit: contain; }
.cqa-app .cop-logo--lg { width: 30px; height: 30px; border-radius: 9px; }
.cqa-app .cop-badge {
  display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; background: var(--amber-dot); color: #fff; font-size: 11px; font-weight: 700;
}
.cqa-app .cop-you {
  align-self: flex-end; margin: 0 0 8px auto; max-width: 88%; width: fit-content; padding: 8px 12px; border-radius: 14px 14px 4px 14px;
  background: var(--surface-muted); font-size: 13px; line-height: 1.45; color: var(--text);
}
.cqa-app .cop-intro { display: flex; flex-direction: column; gap: 12px; padding: 4px 0; }
.cqa-app .cop-intro p { margin: 0; font-size: 13px; line-height: 1.5; color: var(--text-body); }
.cqa-app .cop-intro .cop-sugg { display: inline-flex; align-items: center; gap: 6px; }
.cqa-app .cop-intro .cop-sugg .cqa-icon { width: 13px; height: 13px; color: var(--info); }
.cqa-app .cop-sec h3 { display: flex; align-items: center; gap: 6px; }
.cqa-app .cop-sec h3 .cqa-icon { width: 14px; height: 14px; color: var(--info); }
.cqa-app .cop-meta .cqa-icon { width: 12px; height: 12px; vertical-align: -2px; margin-right: 4px; }

/* «Список»: круглая кнопка AI справа внизу → окно ~420×560 */
.cqa-app .cop--fab, .cqa-app .cop--win { position: fixed; right: 28px; bottom: 28px; z-index: 35; }
.cqa-app .cop-fab {
  position: relative; width: 58px; height: 58px; border: 0; border-radius: 50%; cursor: pointer;
  background: var(--surface); box-shadow: 0 8px 24px rgba(17,24,39,.16), 0 0 0 1px var(--border);
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform 150ms ease, box-shadow 150ms ease;
}
.cqa-app .cop-fab:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(17,24,39,.2), 0 0 0 1px var(--brand-border); }
.cqa-app .cop-fab:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.cqa-app .cop-fab__logo { width: 34px; height: 34px; object-fit: contain; }
.cqa-app .cop-fab__ai {
  position: absolute; right: -2px; bottom: -2px; padding: 2px 6px; border-radius: 8px;
  background: var(--brand-gradient); color: #fff; font-size: 10.5px; font-weight: 800; letter-spacing: .04em;
  box-shadow: 0 0 0 2px var(--surface);
}
.cqa-app .cop-fab__n { position: absolute; top: -3px; right: -3px; box-shadow: 0 0 0 2px var(--surface); }
.cqa-app .cop-win {
  width: 420px; height: min(560px, calc(100vh - 56px)); display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: 0 18px 48px rgba(17,24,39,.18);
  animation: cop-in 180ms var(--ease-out);
}
@keyframes cop-in { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.cqa-app .cop-win__head { display: flex; align-items: center; gap: 10px; padding: 12px 10px 12px 14px; border-bottom: 1px solid var(--border-inner); }
.cqa-app .cop-win__titles { flex: 1 1 auto; min-width: 0; }
.cqa-app .cop-win__titles h2 { font-size: 15px; font-weight: 700; }
.cqa-app .cop-win__titles p { margin: 1px 0 0; font-size: 12px; color: var(--text-secondary); }
.cqa-app .cop-win__head .cqa-icon-btn { width: 34px; height: 34px; }
.cqa-app .cop-win__body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 8px 16px 12px; display: flex; flex-direction: column; }
.cqa-app .cop-win__foot { position: relative; padding: 10px 12px 12px; border-top: 1px solid var(--border-inner); background: var(--surface-2); border-radius: 0 0 18px 18px; }
.cqa-app .cop-win__foot .cop-pill { box-shadow: none; }

/* «Схема»: строка внизу по центру холста, ответы — стеком над ней */
.cqa-app.cqa-copilot-bar .cqa-main { padding-bottom: 140px; }
.cqa-app .cop--bar {
  position: fixed; z-index: 35; bottom: 22px;
  left: calc(var(--sidebar-w) + (100vw - var(--sidebar-w)) / 2); transform: translateX(-50%);
  width: min(640px, calc(100vw - var(--sidebar-w) - 48px));
  display: flex; flex-direction: column; gap: 10px;
}
.cqa-app .cop-barwrap { position: relative; }
.cqa-app .cop-stack {
  display: flex; flex-direction: column; max-height: min(58vh, 560px);
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow);
  animation: cop-in 180ms var(--ease-out);
}
.cqa-app .cop-stack.is-collapsed { max-height: none; }
.cqa-app .cop-stack__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 6px 6px 14px; border-bottom: 1px solid var(--border-inner); }
.cqa-app .cop-stack.is-collapsed .cop-stack__head { border-bottom: 0; }
.cqa-app .cop-stack__title { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--text); }
.cqa-app .cop-stack__toggle { width: 32px; height: 32px; }
.cqa-app .cop-stack__body { overflow-y: auto; overscroll-behavior: contain; padding: 4px 16px 12px; display: flex; flex-direction: column; }

/* ---------- Маркеры копилота у строк ---------- */
.cqa-app .cop-mark {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; margin-left: 8px; padding: 0 5px; vertical-align: 1px;
  border-radius: 9px; font-size: 11px; font-weight: 700; line-height: 1; color: #fff; cursor: pointer;
  font-variant-numeric: tabular-nums;
}
.cqa-app .cop-mark--issue { background: var(--amber-dot); }
.cqa-app .cop-mark--tip { background: var(--info); }
.cqa-app .ck-rule > .cop-mark { margin: 10px 0 0; }

@keyframes cop-flash { 0% { box-shadow: 0 0 0 0 rgba(72,168,72,.0); background: var(--brand-50); } 30% { box-shadow: 0 0 0 3px rgba(72,168,72,.35); } 100% { box-shadow: 0 0 0 0 rgba(72,168,72,0); } }
.cqa-app .is-flash { animation: cop-flash 1.4s ease; border-radius: var(--radius-ctl); }

/* ---------- Панель копилота (справа, без затемнения) ---------- */
.cqa-app .cop-sec { padding: 14px 0; }
.cqa-app .cop-sec + .cop-sec { border-top: 1px solid var(--border-inner); }
.cqa-app .cop-sec__head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.cqa-app .cop-sec h3 { font-size: 13px; font-weight: 600; color: var(--text); }
.cqa-app .cop-run { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; }
.cqa-app .cop-meta { font-size: 12px; color: var(--text-muted); }
.cqa-app .cop-note { display: flex; gap: 6px; margin: 10px 0 0; padding: 8px 10px; border-radius: var(--radius-sm); background: var(--amber-soft); color: var(--amber-text); font-size: 12.5px; line-height: 1.4; }
.cqa-app .cop-note .cqa-icon { flex: none; width: 14px; height: 14px; margin-top: 1px; }
.cqa-app .cop-summary { margin: 12px 0 0; font-size: 13px; line-height: 1.5; color: var(--text-body); }
.cqa-app .cop-count { margin: 10px 0 6px; font-size: 12.5px; font-weight: 600; color: var(--text-status); }
.cqa-app .cop-empty { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; font-size: 13px; color: var(--ok-text); }
.cqa-app .cop-empty .cqa-icon { width: 16px; height: 16px; }

.cqa-app .cop-items, .cqa-app .cop-changes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.cqa-app .cop-item {
  display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px;
  padding: 12px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface);
}
.cqa-app .cop-item__icon .cqa-icon { width: 18px; height: 18px; }
.cqa-app .cop-item--issue .cop-item__icon { color: var(--amber-dot); }
.cqa-app .cop-item--tip .cop-item__icon { color: var(--info); }
.cqa-app .cop-item__top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.cqa-app .cop-item__title { font-size: 13.5px; font-weight: 600; color: var(--text); line-height: 1.35; }
.cqa-app .cop-tag { font-size: 11px; color: var(--text-muted); white-space: nowrap; }
.cqa-app .cop-chip {
  display: inline-flex; max-width: 100%; margin-top: 6px; padding: 2px 8px;
  border: 1px solid var(--border-control); border-radius: 6px; background: var(--surface-2);
  font-size: 12px; color: var(--text-status); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer;
}
.cqa-app .cop-chip:hover { border-color: var(--brand-500); color: var(--brand-700); }
.cqa-app .cop-item__detail { margin: 6px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--text-body); }
.cqa-app .cop-item__acts, .cqa-app .ck-rw__acts, .cqa-app .ccp-row { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin-top: 10px; }
.cqa-app .cop-hide { color: var(--text-secondary); }
.cqa-app .cop-hide:hover:not(:disabled) { color: var(--text); }

/* «было → стало» */
.cqa-app .cop-diff { display: grid; gap: 3px; margin-top: 8px; font-size: 12.5px; line-height: 1.45; }
.cqa-app .cop-diff__label { font-size: 11.5px; font-weight: 600; color: var(--text-secondary); }
.cqa-app .cop-diff del, .cqa-app .cop-diff ins { display: block; padding: 6px 9px; border-radius: 7px; text-decoration: none; white-space: pre-wrap; word-break: break-word; }
.cqa-app .cop-diff del { background: var(--bad-bg); color: var(--chip-bad-text); text-decoration: line-through; text-decoration-color: rgba(165,29,29,.35); }
.cqa-app .cop-diff del.is-empty { background: transparent; padding: 0 2px; color: var(--text-muted); font-style: italic; text-decoration: none; }
.cqa-app .cop-diff ins { background: var(--ok-bg); color: var(--brand-700); }

/* Попросить копилота */
.cqa-app .cop-input { position: relative; display: flex; align-items: flex-start; gap: 6px; }
.cqa-app .cop-input .ck-textarea { min-height: 64px; flex: 1 1 auto; }
.cqa-app .cop-mic {
  flex: none; width: 36px; height: 36px; border: 1px solid var(--border-control); border-radius: 9px;
  background: var(--surface); color: var(--text-secondary); display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.cqa-app .cop-mic .cqa-icon { width: 17px; height: 17px; }
.cqa-app .cop-ask__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; margin-top: 8px; }
.cqa-app .cop-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.cqa-app .cop-sugg {
  padding: 4px 9px; border: 1px solid var(--border-control); border-radius: 999px; background: var(--surface);
  font-size: 12px; color: var(--text-body); cursor: pointer; text-align: left; line-height: 1.3;
  transition: border-color 150ms ease, background-color 150ms ease, color 150ms ease;
}
.cqa-app .cop-sugg:hover, .cqa-app .cop-sugg.is-on { border-color: var(--info-border); background: var(--info-bg); color: var(--info-text); }
.cqa-app .cop-sugg.is-on { font-weight: 600; }
.cqa-app .cop-answer { margin-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.cqa-app .cop-bubble { display: flex; gap: 8px; margin: 0; padding: 10px 12px; border-radius: var(--radius); background: var(--info-bg); color: var(--info-text); font-size: 13px; line-height: 1.45; }
.cqa-app .cop-bubble .cqa-icon { flex: none; width: 15px; height: 15px; margin-top: 2px; }
.cqa-app .cop-q p { margin: 0 0 8px; font-size: 13px; font-weight: 600; color: var(--text); }
.cqa-app .cop-allrow { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cqa-app .cop-ch { padding: 12px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.cqa-app .cop-ch--add { border-left: 3px solid var(--brand-500); }
.cqa-app .cop-ch--update { border-left: 3px solid var(--info); }
.cqa-app .cop-ch--remove { border-left: 3px solid var(--bad); }
.cqa-app .cop-ch.is-applied { background: var(--row-selected); }
.cqa-app .cop-ch.is-rejected { opacity: .6; }
.cqa-app .cop-ch__title { margin: 0; font-size: 13.5px; font-weight: 600; color: var(--text); }
.cqa-app .cop-ch__meta { margin: 4px 0 0; font-size: 12px; color: var(--text-secondary); }
.cqa-app .cop-ch__why { margin: 8px 0 0; font-size: 12px; color: var(--text-secondary); font-style: italic; }
.cqa-app .cop-ch__warn { display: flex; gap: 6px; margin: 6px 0 0; font-size: 12px; color: var(--amber-text); }
.cqa-app .cop-ch__warn .cqa-icon { flex: none; width: 13px; height: 13px; margin-top: 1px; }
.cqa-app .cop-ch__state { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--ok-text); }
.cqa-app .cop-ch__state .cqa-icon { width: 14px; height: 14px; }
.cqa-app .cop-rejected { display: flex; gap: 6px; margin: 0; font-size: 12px; line-height: 1.4; color: var(--text-secondary); }
.cqa-app .cop-rejected .cqa-icon { flex: none; width: 13px; height: 13px; margin-top: 2px; }
.cqa-app .cop-item.is-flash { animation: cop-flash 1.6s ease; }

/* ---------- ✦ у правил и полей ---------- */
.cqa-app .ck-rule { grid-template-columns: 24px minmax(0, 1fr) auto auto; }
.cqa-app .ck-rule__acts { position: relative; }
.cqa-app .ck-rule__btn--ai .cqa-icon { color: var(--info); }
.cqa-app .ck-rule__btn--ai:hover { background: var(--info-bg); }
.cqa-app .ck-rule__rw { grid-column: 2 / -1; padding: 0 4px 8px 0; }
.cqa-app .ck-rules__head { display: flex; justify-content: space-between; gap: 16px; }
.cqa-app .ck-rules__check { flex: none; }
.cqa-app .ck-rules__check .cqa-icon { color: var(--info); }
.cqa-app .ck-rules__adds { display: flex; gap: 12px; margin: 12px 16px 16px; }
.cqa-app .ck-rules__adds .ck-add { margin: 0; width: auto; flex: 1 1 0; }
.cqa-app .ck-add--ai .cqa-icon { color: var(--info); }
.cqa-app .ck-add--ai:hover { border-color: var(--info); background: var(--info-bg); color: var(--info-text); }
.cqa-app .ck-compose { display: flex; flex-direction: column; gap: 8px; margin: 12px 16px 0; padding: 14px; border: 1px solid var(--info-border); border-radius: var(--radius); background: var(--surface-2); }

.cqa-app .ck-aimenu {
  position: absolute; top: calc(100% + 4px); right: 0; z-index: 25; min-width: 180px; padding: 4px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.cqa-app .ck-aimenu button {
  height: 34px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent; text-align: left;
  font-size: 13px; color: var(--text); cursor: pointer;
}
.cqa-app .ck-aimenu button:hover, .cqa-app .ck-aimenu button:focus-visible { background: var(--info-bg); color: var(--info-text); outline: none; }
.cqa-app .ck-rw { margin-top: 4px; padding: 10px 12px; border: 1px solid var(--info-border); border-radius: var(--radius-ctl); background: var(--surface-2); font-size: 13px; }
.cqa-app .ck-rw[role="status"] { display: flex; align-items: center; gap: 8px; color: var(--info-text); }
.cqa-app .ck-rw[role="status"] .cqa-icon { width: 15px; height: 15px; }
.cqa-app .ck-rw .cop-diff { margin-top: 0; }
.cqa-app .ck-rw__note { margin: 6px 0 0; font-size: 12px; color: var(--text-secondary); }

/* ---------- Широкий drawer критерия ---------- */
.cqa-app .ck-drawer--wide .cqa-drawer__body { display: block; padding: 0; overflow: hidden; }
.cqa-app .ck-dlay { display: grid; grid-template-columns: 304px minmax(0, 1fr); height: 100%; min-height: 0; }
.cqa-app .ck-dlay__cc {
  min-height: 0; overflow-y: auto; overscroll-behavior: contain;
  background: var(--surface-2); border-right: 1px solid var(--border-inner);
}
.cqa-app .ck-dlay__form {
  min-height: 0; overflow-y: auto; overscroll-behavior: contain;
  display: flex; flex-direction: column; gap: 16px; padding: 18px 24px 24px;
}
.cqa-app .ck-dlay__rail { display: none; }
.cqa-app .ck-dlay.is-cc-collapsed { grid-template-columns: 52px minmax(0, 1fr); }
.cqa-app .ck-dlay.is-cc-collapsed .ccp { display: none; }
.cqa-app .ck-dlay.is-cc-collapsed .ck-dlay__rail {
  display: flex; flex-direction: column; align-items: center; gap: 8px; width: 100%; padding: 16px 0;
  border: 0; background: transparent; color: var(--info-text); font-size: 11px; font-weight: 600; cursor: pointer;
}
.cqa-app .ck-dlay__rail .cqa-icon { width: 20px; height: 20px; color: var(--info); }
.cqa-app .ck-dlay__rail span { writing-mode: vertical-rl; transform: rotate(180deg); letter-spacing: .04em; }
.cqa-app .ck-dlay__rail:hover { background: var(--info-bg); }

.cqa-app .ck-frow { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 14px; }
.cqa-app .ck-fcols { display: grid; grid-template-columns: minmax(0, 1fr) 288px; gap: 20px; align-items: start; }
.cqa-app .ck-fcol { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.cqa-app .ck-fcol--side .ck-seg { width: 100%; }
.cqa-app .ck-fcol--side .ck-seg button { flex: 1 1 0; }
.cqa-app .ck-labelrow { display: flex; align-items: center; gap: 8px; min-height: 22px; }
.cqa-app .ck-labelrow .ck-label { margin-right: auto; }
.cqa-app .ck-textarea--sm { min-height: 56px; }
.cqa-app .ck-aiwrap { position: relative; display: inline-flex; }
.cqa-app .ck-ai {
  width: 26px; height: 22px; border: 1px solid transparent; border-radius: 7px; background: transparent;
  display: inline-flex; align-items: center; justify-content: center; color: var(--info); cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease;
}
.cqa-app .ck-ai .cqa-icon { width: 15px; height: 15px; }
.cqa-app .ck-ai:hover, .cqa-app .ck-ai[aria-expanded="true"] { background: var(--info-bg); border-color: var(--info-border); }

.cqa-app .ck-drawer--wide .ck-step { padding: 5px 10px; }
.cqa-app .ck-drawer--wide .ck-step__label { padding-top: 5px; padding-bottom: 5px; }
.cqa-app .ck-drawer--wide .ck-textarea { min-height: 60px; }

/* «Призрак» — значение, предложенное копилотом, ещё не принято */
.cqa-app .ck-field--ghost .ck-input, .cqa-app .ck-field--ghost .ck-select, .cqa-app .ck-field--ghost .ck-textarea,
.cqa-app .ck-field--ghost .ck-step__val, .cqa-app .ck-field--ghost .ck-step__label {
  background-color: var(--info-bg); border-color: var(--info-border); border-style: dashed; color: var(--info-text);
}
.cqa-app .ck-field--ghost .ck-seg button[aria-checked="true"] { box-shadow: 0 0 0 1.5px var(--info); color: var(--info-text); }
.cqa-app .ck-na-block.ck-field--ghost { border-color: var(--info-border); border-style: dashed; background: var(--info-bg); }
.cqa-app .ck-ghostbar {
  display: inline-flex; align-items: center; gap: 4px; padding: 1px 3px 1px 7px; border-radius: 999px;
  background: var(--info-bg); border: 1px solid var(--info-border); color: var(--info-text); font-size: 11px; font-weight: 600; white-space: nowrap;
}
.cqa-app .ck-ghostbar > .cqa-icon { width: 11px; height: 11px; }
.cqa-app .ck-ghostbar button {
  width: 20px; height: 18px; border: 0; border-radius: 999px; background: var(--surface); color: var(--info-text);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.cqa-app .ck-ghostbar button .cqa-icon { width: 12px; height: 12px; }
.cqa-app .ck-ghostbar button:first-of-type:hover { background: var(--ok-bg); color: var(--ok-text); }
.cqa-app .ck-ghostbar button:last-of-type:hover { background: var(--bad-bg); color: var(--danger-text); }
.cqa-app .ck-na-block__title .ck-ghostbar { margin-left: 6px; vertical-align: 1px; }

/* ---------- Копилот критерия (колонка) ---------- */
.cqa-app .ccp { display: flex; flex-direction: column; gap: 0; padding: 16px 16px 24px; }
.cqa-app .ccp__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cqa-app .ccp__title { display: flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 700; color: var(--text); }
.cqa-app .ccp__title .cqa-icon { width: 16px; height: 16px; color: var(--info); }
.cqa-app .ccp__collapse { width: 32px; height: 32px; }
.cqa-app .ccp__collapse .cqa-icon { width: 17px; height: 17px; }
.cqa-app .ccp__tip {
  display: flex; gap: 8px; margin: 10px 0 4px; padding: 9px 10px; border-radius: var(--radius-ctl);
  background: var(--surface); border: 1px solid var(--border); font-size: 12.5px; line-height: 1.45; color: var(--text-body);
}
.cqa-app .ccp__tip .cqa-icon { flex: none; width: 15px; height: 15px; margin-top: 1px; color: var(--info); }
.cqa-app .ccp-sec { padding: 14px 0 2px; }
.cqa-app .ccp-sec + .ccp-sec { border-top: 1px solid var(--border-inner); margin-top: 12px; }
.cqa-app .ccp-sec h4 { margin: 0 0 8px; font-size: 11.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--text-secondary); }
.cqa-app .ccp-sec--lead .ccp-fill { background: var(--info); border-color: var(--info); color: #fff; }
.cqa-app .ccp-sec--lead .ccp-fill:hover:not(:disabled) { background: var(--info-text); border-color: var(--info-text); }
.cqa-app .ccp-fill { margin-top: 8px; width: 100%; }
.cqa-app .ccp .cop-input .ck-textarea { min-height: 54px; font-size: 13px; }
.cqa-app .ccp .cop-meta { display: block; margin-top: 6px; }
.cqa-app .ccp-wait { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 13px; color: var(--info-text); }
.cqa-app .ccp-wait .cqa-icon { width: 15px; height: 15px; }
.cqa-app .ccp-q { margin-bottom: 10px; }
.cqa-app .ccp-q p { margin: 0 0 6px; font-size: 13px; font-weight: 600; line-height: 1.4; color: var(--text); }
.cqa-app .ccp-q__opts { display: flex; flex-wrap: wrap; gap: 6px; }
.cqa-app .ccp-notes { margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--text-body); }
.cqa-app .ccp-sec__row { display: flex; align-items: center; justify-content: space-between; }
.cqa-app .ccp-clarity { position: relative; }
.cqa-app .cop-clarity { list-style: none; margin: 0; padding: 0 36px 0 0; display: flex; flex-direction: column; gap: 5px; }
.cqa-app .cop-clarity li { display: flex; gap: 7px; font-size: 12.5px; line-height: 1.4; color: var(--text-body); }
.cqa-app .cop-clarity .cqa-icon { flex: none; width: 14px; height: 14px; margin-top: 1px; }
.cqa-app .cop-clarity .is-ok .cqa-icon { color: var(--ok); }
.cqa-app .cop-clarity .is-neutral .cqa-icon { color: var(--text-muted); }
.cqa-app .cop-clarity .is-soft .cqa-icon { color: var(--amber-dot); }
.cqa-app .cop-clarity .is-bad .cqa-icon { color: var(--bad); }
.cqa-app .cop-clarity .is-bad span { color: var(--danger-text); }
.cqa-app .cop-clarity__score { position: absolute; top: 0; right: 0; font-size: 12px; font-weight: 700; color: var(--text-secondary); }
.cqa-app .ccp-link { margin-top: 10px; height: 28px; padding: 0; color: var(--info-text); }
.cqa-app .ccp-link .cqa-icon { color: var(--info); }
.cqa-app .ccp-items { margin-top: 10px; }
.cqa-app .ccp-items .cop-item { padding: 10px; }
.cqa-app .ccp-cap { margin: 0 0 8px; font-size: 12px; line-height: 1.4; color: var(--text-secondary); }
.cqa-app .ccp-ids { display: flex; flex-wrap: wrap; gap: 6px; }
.cqa-app .ccp-id {
  display: inline-flex; align-items: center; gap: 2px; height: 26px; padding: 0 3px 0 9px;
  border: 1px solid var(--border-control); border-radius: 7px; background: var(--surface); font-size: 12px; color: var(--text-status);
}
.cqa-app .ccp-id button { width: 20px; height: 20px; border: 0; background: transparent; color: var(--text-muted); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; border-radius: 5px; }
.cqa-app .ccp-id button:hover { background: var(--surface-muted); color: var(--text); }
.cqa-app .ccp-id button .cqa-icon { width: 12px; height: 12px; }
.cqa-app .ccp-id--add { padding: 0 9px; border-style: dashed; color: var(--text-secondary); cursor: pointer; gap: 4px; }
.cqa-app .ccp-id--add .cqa-icon { width: 12px; height: 12px; }
.cqa-app .ccp-pick { height: 28px; width: 100%; font-size: 12.5px; }
.cqa-app .ccp-res { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.cqa-app .ccp-r { padding: 10px 11px; border: 1px solid var(--border); border-radius: var(--radius-ctl); background: var(--surface); }
.cqa-app .ccp-r--err { display: flex; flex-direction: column; gap: 2px; font-size: 12px; color: var(--danger-text); }
.cqa-app .ccp-r__top { display: flex; align-items: center; gap: 8px; }
.cqa-app .ccp-r__id { display: inline-flex; align-items: center; gap: 3px; font-size: 12.5px; font-weight: 600; color: var(--text); text-decoration: none; }
.cqa-app .ccp-r__id .cqa-icon { width: 12px; height: 12px; color: var(--text-muted); }
.cqa-app .ccp-r__id:hover { color: var(--brand-700); }
.cqa-app .ccp-r__lang { font-size: 11px; font-weight: 600; color: var(--text-muted); }
.cqa-app .ccp-r__why { margin: 6px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--text-body); }
.cqa-app .ccp-ans { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 12px; font-weight: 600; }
.cqa-app .ccp-ans .cqa-icon { width: 12px; height: 12px; }
.cqa-app .ccp-ans--ok { background: var(--ok-bg); color: var(--ans-yes); }
.cqa-app .ccp-ans--bad { background: var(--bad-bg); color: var(--ans-no); }
.cqa-app .ccp-ans--warn { background: var(--warn-bg); color: var(--ans-mid); }
.cqa-app .ccp-ans--na { background: var(--na-bg); color: var(--ans-na); }
.cqa-app .ccp-ev {
  display: block; margin-top: 6px; padding: 5px 8px; border-radius: 7px; background: var(--evidence-bg);
  font-size: 12px; line-height: 1.4; color: var(--text-body); text-decoration: none;
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.cqa-app .ccp-ev span { margin-right: 6px; font-weight: 700; color: var(--evidence-text); }
.cqa-app .ccp-ev:hover { box-shadow: inset 0 0 0 1px var(--evidence-ring); }

/* ---------- Адаптив ---------- */
@media (max-width: 1280px) {
}
@media (max-width: 1200px) {
  .cqa-app .ck-fcols { grid-template-columns: minmax(0, 1fr); }
  .cqa-app .ck-fcol--side { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
  .cqa-app .ck-fcol--side > .ck-field:first-child, .cqa-app .ck-fcol--side > .ck-na-block { grid-column: auto; }
}
@media (max-width: 1024px) {
  .cqa-app .ck-fcol--side { display: flex; }
  .cqa-app .ck-drawer--wide .cqa-drawer__body { overflow-y: auto; }
  .cqa-app .ck-dlay, .cqa-app .ck-dlay.is-cc-collapsed { display: flex; flex-direction: column; height: auto; }
  .cqa-app .ck-dlay__cc { overflow: visible; border-right: 0; border-bottom: 1px solid var(--border-inner); }
  .cqa-app .ck-dlay__form { overflow: visible; }
  .cqa-app .ck-dlay.is-cc-collapsed .ck-dlay__rail { flex-direction: row; justify-content: flex-start; padding: 10px 16px; }
  .cqa-app .ck-dlay__rail span { writing-mode: horizontal-tb; transform: none; }
  .cqa-app .ck-fcols { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .cqa-app .ck-toolbar { margin-top: 0; }
  .cqa-app .ck-viewseg button { padding: 0 12px; }
  .cqa-app .cop--fab { right: 16px; bottom: calc(var(--m-bottom-space) + 16px); }
  .cqa-app .cop--win { inset: 0; z-index: 45; }
  .cqa-app .cop-win { width: 100%; height: 100%; height: 100dvh; border-radius: 0; border: 0; }
  .cqa-app .cop-win__foot { border-radius: 0; padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px)); }
  .cqa-app .cop--bar { left: 50%; width: calc(100vw - 24px); bottom: calc(var(--m-bottom-space) + 10px); }
  .cqa-app.cqa-copilot-bar .cqa-main { padding-bottom: calc(var(--m-bottom-space) + 120px); }
  .cqa-app .ck-frow { grid-template-columns: minmax(0, 1fr); }
  .cqa-app .ck-dlay__form { padding: 16px; }
  .cqa-app .ck-rules__adds { flex-direction: column; }
  .cqa-app .ck-rules__head { flex-direction: column; }
  .cqa-app .ck-canvas-legend { display: none; }
  .cqa-app .ck-canvas-host { padding: 0 8px 8px; }
}

/* ---------- Секции: меню ⋯, переименование, новая секция ---------- */
.cqa-app .ck-section__right { display: inline-flex; align-items: center; gap: 6px; }
.cqa-app .ck-secmenu-wrap { position: relative; display: inline-flex; }
.cqa-app .ck-secbtn {
  width: 26px; height: 24px; border: 0; border-radius: 7px; background: transparent; color: var(--text-muted);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: background-color 150ms ease, color 150ms ease;
}
.cqa-app .ck-secbtn .cqa-icon { width: 16px; height: 16px; }
.cqa-app .ck-secbtn:hover, .cqa-app .ck-secbtn[aria-expanded="true"] { background: var(--surface-muted); color: var(--text); }
.cqa-app .ck-secmenu { min-width: 236px; }
.cqa-app .ck-secmenu button { display: flex; align-items: center; gap: 8px; }
.cqa-app .ck-secmenu button .cqa-icon { width: 15px; height: 15px; color: var(--text-secondary); }
.cqa-app .ck-secmenu button:disabled { opacity: .45; cursor: not-allowed; background: transparent; color: var(--text); }
.cqa-app .ck-secmenu button.is-danger { color: var(--danger-text); }
.cqa-app .ck-secmenu button.is-danger .cqa-icon { color: var(--danger-text); }
.cqa-app .ck-secmenu button.is-danger:hover:not(:disabled) { background: var(--bad-bg); color: var(--danger-text); }
.cqa-app .ck-section__name--edit { flex: 1 1 auto; max-width: 420px; }
.cqa-app .ck-secinput { height: 30px; font-size: 13px; font-weight: 600; }
.cqa-app .ck-secnew { display: flex; align-items: center; gap: 8px; margin: 12px 16px 0; }
.cqa-app .ck-secnew .ck-input { height: 36px; max-width: 420px; }
.cqa-app .ck-secnew--drawer { margin: 8px 0 0; }
.cqa-app .ck-secnew--drawer .cqa-btn--sm { padding: 0 8px; }
.cqa-app .ck-card:has(.ck-secmenu), .cqa-app .ck-card:has(.ck-aimenu) { overflow: visible; }

/* Уведомление с кнопкой («Отменить») */
.cqa-app .cqa-toast--action { display: flex; align-items: center; gap: 14px; }
.cqa-app .cqa-toast__action {
  flex: none; margin-left: auto; padding: 4px 10px; border: 1px solid rgba(255,255,255,.35); border-radius: 7px;
  background: transparent; color: #fff; font-size: 12.5px; font-weight: 600; cursor: pointer;
}
.cqa-app .cqa-toast__action:hover { background: rgba(255,255,255,.12); }
.cqa-app .ck-toolbar__hint { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-secondary); }
.cqa-app .ck-toolbar__hint .cqa-icon { width: 14px; height: 14px; color: var(--info); }
.cqa-app .ccp .cop-pill { box-shadow: none; border-color: var(--border-control); border-radius: 12px; }

/* ---------- Роль «Оператор»: чек-лист только для просмотра ---------- */
.cqa-app .ck-readonly {
  flex: 1 1 100%; display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: var(--radius-ctl);
  background: var(--info-bg); border: 1px solid var(--info-border); color: var(--info-text); font-size: 13px;
}
.cqa-app .ck-readonly .cqa-icon { flex: none; width: 15px; height: 15px; }
.cqa-app .ck-page--readonly .ck-toolbar { flex-wrap: wrap; }
.cqa-app .ck-page--readonly .ck-actions,
.cqa-app .ck-page--readonly .ck-add, .cqa-app .ck-page--readonly .ck-rules__adds,
.cqa-app .ck-page--readonly .ck-secbtn,
.cqa-app .ck-page--readonly .ck-rules__check, .cqa-app .ck-page--readonly .ck-rule__acts,
.cqa-app .ck-page--readonly .ck-compose, .cqa-app .ck-page--readonly .ck-secnew,
.cqa-app .ck-page--readonly .cop-mark { display: none !important; }
.cqa-app.cqa-ck-readonly .cop { display: none !important; }
.cqa-app.cqa-ck-readonly .cqa-main { padding-bottom: 48px; }
.cqa-app .ck-dlay.is-readonly { grid-template-columns: minmax(0, 1fr); }
.cqa-app .ck-dlay.is-readonly .ck-dlay__cc { display: none; }
.cqa-app .ck-dlay.is-readonly .ck-input:disabled, .cqa-app .ck-dlay.is-readonly .ck-textarea:disabled,
.cqa-app .ck-dlay.is-readonly .ck-select:disabled, .cqa-app .ck-dlay.is-readonly .ck-step__val:disabled,
.cqa-app .ck-dlay.is-readonly .ck-step__label:disabled {
  background: var(--surface-2); color: var(--text); cursor: default; opacity: 1; -webkit-text-fill-color: var(--text);
}
.cqa-app .ck-dlay.is-readonly .ck-seg button:disabled, .cqa-app .ck-dlay.is-readonly .ck-switch:disabled { cursor: default; opacity: .85; }

.cqa-app .ck-page--readonly .ck-grip { visibility: hidden; }
/* Схема для оператора: только просмотр — без «+», ручек и меню переноса правил */
.cqa-app .ck-page--readonly .cv-tools, .cqa-app .ck-page--readonly .cv-sec__add,
.cqa-app .ck-page--readonly .cv-handle, .cqa-app .ck-page--readonly .cv-more { display: none !important; }

/* «Список»: открытый кружок → длинная строка, растущая влево от кружка (как Miro AI) */
.cqa-app .cop--dock {
  position: fixed; right: 28px; bottom: 28px; z-index: 35;
  width: min(720px, calc(100vw - var(--sidebar-w) - 56px));
  display: flex; flex-direction: column; align-items: stretch; gap: 10px;
}
.cqa-app .cop-dock__stack { display: flex; flex-direction: column; }
.cqa-app .cop-dock__hints {
  align-self: flex-end; max-width: 520px; padding: 12px 14px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow); animation: cop-in 200ms var(--ease-out) 120ms both;
}
.cqa-app .cop-dock__hints .cop-intro { padding: 0; gap: 10px; }
.cqa-app .cop-dock__bar {
  display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 10px; margin-left: auto; width: 100%;
  background: var(--surface); border-radius: 29px; box-shadow: 0 10px 30px rgba(17,24,39,.16), 0 0 0 1px var(--border);
  transform-origin: right center; animation: cop-dock-grow 260ms cubic-bezier(.2,.8,.2,1);
  overflow: visible;
}
@keyframes cop-dock-grow { from { width: 58px; opacity: .6; } to { width: 100%; opacity: 1; } }
.cqa-app .cop-dock__logo { flex: none; width: 30px; height: 30px; object-fit: contain; }
.cqa-app .cop-dock__input { flex: 1 1 auto; min-width: 0; animation: cop-in 160ms var(--ease-out) 120ms both; }
.cqa-app .cop-dock__input .cop-pill { box-shadow: none; border: 0; background: transparent; padding-left: 0; }
.cqa-app .cop-dock__close { flex: none; width: 40px; height: 40px; border-radius: 50%; }
@media (max-width: 640px) {
  .cqa-app .cop--dock { right: 12px; left: 12px; width: auto; bottom: calc(var(--m-bottom-space, 72px) + 12px); }
}
@media (prefers-reduced-motion: reduce) {
  .cqa-app .cop-dock__bar, .cqa-app .cop-dock__input, .cqa-app .cop-dock__hints { animation: none; }
}

/* ---------- Строка ИИ: одна разметка в «Списке» (dock) и на «Схеме» (bar) ---------- */
@property --cop-a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.cqa-app .cop-aibar {
  position: relative;
  isolation: isolate;
  box-shadow: 0 10px 30px rgba(17,24,39,.14), 0 8px 26px -8px rgba(102,216,126,.45), 0 8px 26px -8px rgba(112,144,216,.4);
  transition: box-shadow 200ms ease;
}
/* Тонкая градиентная рамка 1.5px, медленно «переливается» по кругу */
.cqa-app .cop-aibar::before {
  content: "";
  position: absolute;
  inset: -1.5px;
  z-index: -1;
  padding: 1.5px;
  border-radius: inherit;
  background: conic-gradient(from var(--cop-a), var(--grad-from), var(--grad-to) 30%, rgba(112,144,216,.35) 50%, var(--grad-to) 70%, var(--grad-from));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: .8;
  animation: cop-ring 6s linear infinite;
  pointer-events: none;
  transition: opacity 200ms ease;
}
.cqa-app .cop-aibar:focus-within::before { opacity: 1; }
.cqa-app .cop-aibar:focus-within { box-shadow: 0 10px 30px rgba(17,24,39,.14), 0 10px 32px -8px rgba(102,216,126,.6), 0 10px 32px -8px rgba(112,144,216,.55); }
.cqa-app .cop-aibar:focus-within .cop-pill { box-shadow: none; }
.cqa-app .cop-aibar.is-busy::before { opacity: 1; animation-duration: 1.4s; }
.cqa-app .cop-aibar.is-busy { box-shadow: 0 10px 30px rgba(17,24,39,.14), 0 10px 36px -6px rgba(102,216,126,.7), 0 10px 36px -6px rgba(112,144,216,.6); }
@keyframes cop-ring { to { --cop-a: 360deg; } }
.cqa-app .cop-aibar--static, .cqa-app .cop-aibar--static .cop-dock__input { animation: none; }
.cqa-app .cop-aibar .cop-pill__input::placeholder { color: var(--text-secondary); }

/* «Думаю…» с тремя точками, пока идёт запрос */
.cqa-app .cop-thinking {
  display: inline-flex;
  align-items: baseline;
  flex: none;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--brand-50);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--brand-700);
}
.cqa-app .cop-thinking i {
  width: 3px;
  height: 3px;
  margin-left: 2px;
  border-radius: 50%;
  background: currentColor;
  animation: cop-dot 1.2s ease-in-out infinite;
}
.cqa-app .cop-thinking i:nth-child(2) { animation-delay: .15s; }
.cqa-app .cop-thinking i:nth-child(3) { animation-delay: .3s; }
@keyframes cop-dot { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-2px); } }

@media (prefers-reduced-motion: reduce) {
  .cqa-app .cop-aibar::before, .cqa-app .cop-thinking i { animation: none; }
}

/* «Спросить ИИ» из меню «Схемы»: строка коротко привлекает внимание (рамка ярче, 2 вспышки свечения, подъём на 2px) */
.cqa-app .cop-aibar.cop-aibar--pulse { animation: cop-attn 450ms ease-in-out 2; }
.cqa-app .cop-aibar.cop-aibar--pulse::before { opacity: 1; padding: 2px; inset: -2px; animation-duration: 1.2s; }
@keyframes cop-attn {
  0%, 100% { transform: translateY(0); box-shadow: 0 10px 30px rgba(17,24,39,.14), 0 10px 32px -8px rgba(102,216,126,.6), 0 10px 32px -8px rgba(112,144,216,.55); }
  50% { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(17,24,39,.16), 0 0 0 6px rgba(102,216,126,.16), 0 12px 44px -4px rgba(102,216,126,.85), 0 12px 44px -4px rgba(112,144,216,.75); }
}
@media (prefers-reduced-motion: reduce) {
  .cqa-app .cop-aibar.cop-aibar--pulse { animation: none; }
}

/* Раскрытая строка ИИ: мягкое затемнение снизу экрана, чтобы строка и ответы читались поверх контента */
.cqa-app .cop--dock::before {
  content: ""; position: fixed; left: 0; right: 0; bottom: 0; height: min(62vh, 560px); z-index: -1;
  background: linear-gradient(to top, rgba(17, 24, 39, .30) 0%, rgba(17, 24, 39, .16) 45%, rgba(17, 24, 39, 0) 100%);
  pointer-events: none; animation: cop-scrim-in 220ms ease both;
}
@keyframes cop-scrim-in { from { opacity: 0; } }
.cqa-app .cop--dock .cop-dock__bar { box-shadow: 0 16px 40px rgba(17, 24, 39, .26), 0 0 0 1px var(--border); }
.cqa-app .cop--dock .cop-stack,
.cqa-app .cop--dock .cop-dock__hints { box-shadow: 0 14px 36px rgba(17, 24, 39, .22), 0 0 0 1px var(--border); border-color: transparent; }
@media (prefers-reduced-motion: reduce) { .cqa-app .cop--dock::before { animation: none; } }
