/* «ИИ-бухгалтер» (Алекс 02.11.2026) — ai-accountant.js (window.ACC): раздел #aiAccountantTab и слой в окне чата.
   Цвет агента — фиолетовый: сообщения и подсказки ИИ сразу отличаются от переписки. Статусы: зелёный, янтарный, красный, всегда с подписью. */
.acc, .acc-drawer-wrap, .acc-panel, .acc-strip {
    --acc-ai: #6246c7; --acc-ai-bg: rgba(98, 70, 199, .09); --acc-ai-line: rgba(98, 70, 199, .28);
    --acc-ok: #15803d; --acc-ok-bg: rgba(21, 128, 61, .1); --acc-bad: #c62828; --acc-bad-bg: rgba(198, 40, 40, .09);
    --acc-warn: #b45309; --acc-warn-bg: rgba(217, 119, 6, .13); --acc-info: #0b63b5; --acc-info-bg: rgba(11, 99, 181, .1);
    --acc-promise: #b45309; --acc-promise-bg: rgba(217, 119, 6, .12); --acc-question: #0b63b5; --acc-question-bg: rgba(11, 99, 181, .1); --acc-filing: #0f766e; --acc-filing-bg: rgba(15, 118, 110, .11);
    --acc-report: #4338ca; --acc-report-bg: rgba(67, 56, 202, .08); --acc-report-line: rgba(67, 56, 202, .26);
    --acc-soft: var(--surface-bg, #f8f9fa); --acc-line: var(--border-color); --acc-radius: 12px;
}
body[data-theme="dark"] .acc, body[data-theme="dark"] .acc-drawer-wrap, body[data-theme="dark"] .acc-panel, body[data-theme="dark"] .acc-strip {
    --acc-ai: #b9a7f7; --acc-ai-bg: rgba(185, 167, 247, .13); --acc-ai-line: rgba(185, 167, 247, .32);
    --acc-ok: #4ade80; --acc-ok-bg: rgba(74, 222, 128, .13); --acc-bad: #fca5a5; --acc-bad-bg: rgba(252, 165, 165, .13);
    --acc-warn: #fbbf24; --acc-warn-bg: rgba(251, 191, 36, .14); --acc-info: #93c5fd; --acc-info-bg: rgba(147, 197, 253, .14);
    --acc-promise: #fbbf24; --acc-promise-bg: rgba(251, 191, 36, .14); --acc-question: #93c5fd; --acc-question-bg: rgba(147, 197, 253, .14); --acc-filing: #5eead4; --acc-filing-bg: rgba(94, 234, 212, .13);
    --acc-report: #a5b4fc; --acc-report-bg: rgba(165, 180, 252, .12); --acc-report-line: rgba(165, 180, 252, .32);
    --acc-soft: rgba(255, 255, 255, .04);
}

/* .main-content > .tab-panel.active режет переполнение, поэтому раздел прокручивается сам */
#aiAccountantTab.active { overflow-y: auto; min-height: 0; }
.acc { flex: none; display: flex; flex-direction: column; gap: 14px; padding: 18px 22px 32px; color: var(--text-color); max-width: 1500px; }
.acc-head { display: flex; align-items: center; justify-content: space-between; gap: 12px 18px; flex-wrap: wrap; }
.acc-title { display: flex; align-items: center; gap: 12px; }
.acc-title h2 { margin: 0; font-size: 20px; font-weight: 700; line-height: 1.2; }
.acc-title span:not(.acc-logo) { font-size: 12.5px; color: var(--text-muted); }
.acc-logo { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 11px; background: var(--acc-ai-bg); color: var(--acc-ai); flex: none; }
.acc-logo.small { width: 30px; height: 30px; border-radius: 9px; }
.acc-tabs { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--acc-line); border-radius: 11px; background: var(--card-bg); flex-wrap: wrap; }
.acc-tab { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border: 0; border-radius: 8px; background: none; color: var(--text-muted); font: inherit; font-size: 13px; cursor: pointer; }
.acc-tab:hover { color: var(--text-color); }
.acc-tab.on { background: var(--primary-color); color: #fff; font-weight: 600; }
.acc-body { display: flex; flex-direction: column; gap: 14px; min-width: 0; }

.acc-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 34px; padding: 0 13px; border: 1px solid var(--acc-line); border-radius: 9px; background: var(--card-bg); color: var(--text-color); font: inherit; font-size: 13px; cursor: pointer; white-space: nowrap; }
.acc-btn:hover { border-color: var(--primary-color); color: var(--primary-color); }
.acc-btn.icon { width: 34px; padding: 0; }
.acc-btn.primary { background: var(--primary-color); border-color: var(--primary-color); color: #fff; font-weight: 600; }
.acc-btn.primary:hover { color: #fff; filter: brightness(1.08); }
.acc-link { display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; padding: 0; color: var(--primary-color); font: inherit; font-size: 12.5px; cursor: pointer; }
.acc-link:hover { text-decoration: underline; }
body[data-theme="dark"] .acc-link { color: var(--acc-info); }
.acc-dim { color: var(--text-muted); font-size: 12.5px; }
.acc-sub { margin: 0 0 12px; font-size: 12.5px; line-height: 1.45; color: var(--text-muted); }
.acc-none { padding: 18px 8px; text-align: center; font-size: 13px; color: var(--text-muted); }

.acc-tag { display: inline-flex; align-items: center; height: 21px; padding: 0 8px; border-radius: 6px; font-size: 11.5px; font-weight: 600; white-space: nowrap; background: var(--acc-soft); color: var(--text-muted); }
.acc-tag.t-ok { background: var(--acc-ok-bg); color: var(--acc-ok); }
.acc-tag.t-bad { background: var(--acc-bad-bg); color: var(--acc-bad); }
.acc-tag.t-warn { background: var(--acc-warn-bg); color: var(--acc-warn); }
.acc-tag.t-info { background: var(--acc-info-bg); color: var(--acc-info); }
.acc-tag.t-ai { background: var(--acc-ai-bg); color: var(--acc-ai); }
.acc-tag.t-muted { background: var(--acc-soft); color: var(--text-muted); border: 1px solid var(--acc-line); }

.acc-skel { display: flex; flex-direction: column; gap: 12px; }
.acc-skel i { display: block; height: 96px; border-radius: var(--acc-radius); background: linear-gradient(90deg, var(--acc-soft), var(--hover-bg, #f1f3f4), var(--acc-soft)); background-size: 200% 100%; animation: acc-shine 1.2s linear infinite; }
@keyframes acc-shine { to { background-position: -200% 0; } }
.acc-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 48px 20px; text-align: center; color: var(--text-muted); border: 1px dashed var(--acc-line); border-radius: var(--acc-radius); }
.acc-empty b { color: var(--text-color); font-size: 15px; }
.acc-empty span { max-width: 560px; font-size: 13px; line-height: 1.5; }
.acc-empty.is-err svg { color: var(--danger-color); }
.acc-wait { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-muted); }
.acc-wait i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--acc-ai-line); border-top-color: var(--acc-ai); animation: acc-spin .8s linear infinite; }
@keyframes acc-spin { to { transform: rotate(360deg); } }

/* Обзор */
.acc-banner { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: var(--acc-radius); background: var(--acc-ai-bg); border: 1px solid var(--acc-ai-line); }
.acc-banner.off { background: var(--acc-soft); border-color: var(--acc-line); }
.acc-banner-ic { color: var(--acc-ai); display: inline-flex; }
.acc-banner-txt { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; }
.acc-banner-txt b { font-size: 13.5px; }
.acc-banner-txt span { font-size: 12.5px; color: var(--text-muted); line-height: 1.4; }
.acc-banner-meta { display: flex; flex-direction: column; gap: 3px; flex: none; }
.acc-banner-meta span { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--text-muted); white-space: nowrap; }

.acc-scen-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.acc-scen { display: flex; flex-direction: column; gap: 8px; padding: 16px; border: 1px solid var(--acc-line); border-radius: var(--acc-radius); background: var(--card-bg); color: inherit; font: inherit; text-align: left; cursor: pointer; transition: border-color var(--transition, .15s), box-shadow var(--transition, .15s); }
.acc-scen:hover { border-color: var(--primary-color); box-shadow: var(--shadow-lg); }
.acc-scen-top { display: flex; align-items: center; justify-content: space-between; }
.acc-scen h3 { margin: 2px 0 0; font-size: 14.5px; font-weight: 700; }
.acc-scen p { margin: 0; font-size: 12.5px; line-height: 1.4; color: var(--text-muted); min-height: 35px; }
.acc-scen-ic { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 10px; flex: none; }
.acc-scen-ic.small { width: 30px; height: 30px; border-radius: 8px; }
.s-promise { background: var(--acc-promise-bg); color: var(--acc-promise); }
.s-question { background: var(--acc-question-bg); color: var(--acc-question); }
.s-filing { background: var(--acc-filing-bg); color: var(--acc-filing); }
.acc-mode { font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--acc-soft); color: var(--text-muted); border: 1px solid var(--acc-line); }
.acc-mode.m-preview { background: var(--acc-info-bg); color: var(--acc-info); border-color: transparent; }
.acc-mode.m-live { background: var(--acc-ok-bg); color: var(--acc-ok); border-color: transparent; }
.acc-scen-nums { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-top: 4px; }
.acc-scen-nums div { display: flex; flex-direction: column; gap: 1px; }
.acc-scen-nums b { font-size: 30px; line-height: 1.05; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.acc-scen-nums span { font-size: 12px; color: var(--text-muted); }
.acc-prec { align-items: flex-end; text-align: right; }
.acc-prec b { font-size: 22px; }
.acc-prec.ok b { color: var(--acc-ok); }
.acc-prec.warn b { color: var(--acc-warn); }
.acc-prec.bad b { color: var(--acc-bad); }
.acc-ready { display: flex; flex-direction: column; gap: 5px; margin-top: 2px; }
.acc-ready-bar { height: 6px; border-radius: 6px; background: var(--acc-soft); box-shadow: inset 0 0 0 1px var(--acc-line); overflow: hidden; }
.acc-ready-bar i { display: block; height: 100%; background: var(--acc-ai); border-radius: 6px; transition: width .4s; }
.acc-ready-bar i.ok { background: var(--acc-ok); }
.acc-ready span { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--text-muted); }
.acc-scen-src { display: flex; flex-wrap: wrap; gap: 3px 10px; padding-top: 8px; border-top: 1px solid var(--border-light, var(--acc-line)); font-size: 11.5px; color: var(--text-muted); }
.acc-scen-src .bad { color: var(--acc-bad); font-weight: 600; }

.acc-two { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 12px; }
.acc-card { padding: 16px; border: 1px solid var(--acc-line); border-radius: var(--acc-radius); background: var(--card-bg); min-width: 0; }
.acc-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.acc-card-head h3 { display: inline-flex; align-items: center; gap: 7px; margin: 0; font-size: 14.5px; font-weight: 700; }
.acc-card-head h3 svg { color: var(--acc-ai); }
.acc-score { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.acc-score-num { display: flex; flex-direction: column; gap: 2px; min-width: 160px; flex: 1; }
.acc-score-num b { font-size: 34px; line-height: 1.05; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--acc-ai); }
.acc-score-num span { font-size: 12px; color: var(--text-muted); line-height: 1.35; }
.acc-weeks { display: flex; align-items: flex-end; gap: 6px; height: 86px; }
.acc-wbar { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; width: 34px; height: 100%; outline: none; cursor: default; }
.acc-wbar-col { flex: 1; width: 18px; display: flex; align-items: flex-end; border-radius: 5px; background: var(--acc-soft); box-shadow: inset 0 0 0 1px var(--border-light, var(--acc-line)); overflow: hidden; }
.acc-wbar-col i { display: block; width: 100%; background: var(--acc-ai); border-radius: 4px 4px 0 0; }
.acc-wbar span { font-size: 10.5px; color: var(--text-muted); white-space: nowrap; }
.acc-wbar:hover::after, .acc-wbar:focus::after { content: attr(data-tip); position: absolute; right: 0; bottom: calc(100% + 4px); z-index: 5; width: max-content; max-width: 240px; padding: 6px 9px; border-radius: 7px; background: var(--text-color); color: var(--card-bg); font-size: 11.5px; line-height: 1.35; }
.acc-vlist { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; }
.acc-v { display: grid; grid-template-columns: 124px minmax(0, 1fr) 34px; align-items: center; gap: 8px; font-size: 12.5px; }
.acc-v-name { color: var(--text-muted); }
.acc-v-bar { height: 8px; border-radius: 4px; background: var(--acc-soft); overflow: hidden; }
.acc-v-bar i { display: block; height: 100%; border-radius: 4px; min-width: 2px; background: var(--acc-ai); }
.acc-v-bar i.t-ok { background: var(--acc-ok); } .acc-v-bar i.t-bad { background: var(--acc-bad); } .acc-v-bar i.t-warn { background: var(--acc-warn); } .acc-v-bar i.t-info { background: var(--acc-info); }
.acc-v b { text-align: right; font-variant-numeric: tabular-nums; }
.acc-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.acc-tile { display: flex; flex-direction: column; gap: 2px; padding: 10px 11px; border-radius: 10px; background: var(--acc-soft); min-width: 0; }
.acc-tile b { font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.2; }
.acc-tile span { font-size: 11.5px; line-height: 1.3; color: var(--text-muted); }
.acc-kb { display: flex; align-items: flex-start; gap: 7px; margin-top: 10px; padding: 8px 10px; border-radius: 9px; font-size: 12.5px; line-height: 1.4; color: var(--text-muted); background: var(--acc-soft); }
.acc-kb svg { flex: none; margin-top: 1px; }
.acc-kb.warn { background: var(--acc-warn-bg); color: var(--text-color); }
.acc-kb.warn svg { color: var(--acc-warn); }
.acc-mini-list { display: flex; flex-direction: column; }
.acc-mini { display: flex; align-items: center; gap: 10px; padding: 9px 6px; border: 0; border-top: 1px solid var(--border-light, var(--acc-line)); background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; border-radius: 6px; }
.acc-mini:first-child { border-top: 0; }
.acc-mini:hover { background: var(--hover-bg, #f1f3f4); }
.acc-mini-ic { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 8px; flex: none; }
.acc-mini-body { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; }
.acc-mini-body b { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-mini-body span { font-size: 12px; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-mini-age { font-size: 11.5px; color: var(--text-muted); white-space: nowrap; flex: none; }
.acc-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; font-size: 11.5px; color: var(--text-muted); padding: 0 2px; }
.acc-foot-models { display: inline-flex; align-items: center; gap: 5px; }
.acc-foot .bad { color: var(--acc-bad); }

/* Панель фильтров и список */
.acc-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px 14px; flex-wrap: wrap; }
.acc-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.acc-chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border: 1px solid var(--acc-line); border-radius: 999px; background: var(--card-bg); color: var(--text-muted); font: inherit; font-size: 12.5px; cursor: pointer; }
.acc-chip i { font-style: normal; font-weight: 700; color: var(--text-color); font-variant-numeric: tabular-nums; }
.acc-chip:hover { border-color: var(--primary-color); }
.acc-chip.on { border-color: var(--primary-color); background: var(--primary-light, rgba(7, 71, 131, .08)); color: var(--text-color); font-weight: 600; }
body[data-theme="dark"] .acc-chip.on { background: rgba(147, 197, 253, .14); }
.acc-tools { display: flex; gap: 6px; flex-wrap: wrap; }
.acc-select { height: 32px; padding: 0 8px; border: 1px solid var(--acc-line); border-radius: 8px; background: var(--card-bg); color: var(--text-color); font: inherit; font-size: 13px; }
.acc-search { position: relative; display: inline-flex; align-items: center; }
.acc-search svg { position: absolute; left: 9px; color: var(--text-muted); pointer-events: none; }
.acc-search input { height: 32px; width: 230px; padding: 0 10px 0 30px; border: 1px solid var(--acc-line); border-radius: 8px; background: var(--card-bg); color: var(--text-color); font: inherit; font-size: 13px; }
.acc-list { display: flex; flex-direction: column; gap: 8px; }
.acc-group { border: 1px solid var(--acc-line); border-radius: var(--acc-radius); background: var(--card-bg); overflow: hidden; }
.acc-group-h { display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 14px; background: var(--acc-soft); border-bottom: 1px solid var(--border-light, var(--acc-line)); }
.acc-group-h .acc-f-client { font-size: 13.5px; }
.acc-group-h i { font-style: normal; padding: 0 7px; border-radius: 999px; background: var(--acc-ai-bg); color: var(--acc-ai); font-size: 11.5px; font-weight: 700; line-height: 18px; font-variant-numeric: tabular-nums; }
.acc-group-h .acc-act { margin-left: auto; }
.acc-group .acc-f { border: 0; border-radius: 0; background: none; }
.acc-group .acc-f + .acc-f { border-top: 1px solid var(--border-light, var(--acc-line)); }
.acc-group .acc-f-age { margin-left: 0; }
.acc-group-more { display: block; width: 100%; padding: 9px; border: 0; border-top: 1px solid var(--border-light, var(--acc-line)); background: none; color: var(--acc-ai); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.acc-group-more:hover { background: var(--acc-ai-bg); }

/* Находка */
.acc-f { display: flex; gap: 12px; padding: 14px; border: 1px solid var(--acc-line); border-radius: var(--acc-radius); background: var(--card-bg); }
.acc-f.closed { background: var(--acc-soft); }
.acc-f-ic { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 10px; flex: none; }
.acc-f-main { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1; }
.acc-f-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.acc-f-client { border: 0; background: none; padding: 0; font: inherit; font-size: 12.5px; font-weight: 600; color: var(--primary-color); cursor: pointer; text-align: left; }
.acc-f-client:hover { text-decoration: underline; }
body[data-theme="dark"] .acc-f-client { color: var(--acc-info); }
.acc-f-age { margin-left: auto; font-size: 11.5px; color: var(--text-muted); white-space: nowrap; }
.acc-f h4 { margin: 0; font-size: 14px; font-weight: 600; line-height: 1.35; }
.acc-f-title { border: 0; background: none; padding: 0; margin: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.acc-f-title:hover { color: var(--primary-color); text-decoration: underline; text-underline-offset: 2px; }
.acc-f-title:focus-visible { outline: 2px solid var(--primary-color); outline-offset: 2px; border-radius: 4px; }
.acc-f-why { margin: 0; font-size: 13px; line-height: 1.45; color: var(--text-muted); }
.acc-f-next { display: flex; gap: 6px; align-items: flex-start; font-size: 13px; line-height: 1.45; font-weight: 500; }
.acc-f-next svg { flex: none; margin-top: 3px; color: var(--acc-ai); }
.acc-bubble { display: flex; flex-direction: column; gap: 3px; padding: 9px 11px; border-radius: 4px 11px 11px 11px; background: var(--acc-ai-bg); font-size: 13px; line-height: 1.45; white-space: pre-wrap; word-break: break-word; }
.acc-bubble-h { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; color: var(--acc-ai); }
.acc-det summary { cursor: pointer; font-size: 12px; color: var(--text-muted); user-select: none; }
.acc-det[open] summary { margin-bottom: 6px; }
.acc-ev { display: flex; align-items: flex-start; gap: 8px; padding: 5px 0; border-top: 1px solid var(--border-light, var(--acc-line)); font-size: 12.5px; line-height: 1.4; }
.acc-ev time { flex: none; width: 76px; font-size: 11.5px; color: var(--text-muted); }
.acc-ev span { flex: 1; min-width: 0; word-break: break-word; }
.acc-ev.src span { font-weight: 500; }
.acc-ev-go { flex: none; border: 0; background: none; padding: 1px 3px; color: var(--text-muted); cursor: pointer; border-radius: 5px; }
.acc-ev-go:hover { color: var(--primary-color); background: var(--hover-bg, #f1f3f4); }
.acc-f-truth { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; font-size: 12px; color: var(--text-muted); line-height: 1.35; }
.acc-f-closed { font-size: 12px; color: var(--text-muted); }
.acc-f-acts { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 2px; }
.acc-act { display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 10px; border: 1px solid var(--acc-line); border-radius: 8px; background: var(--card-bg); color: var(--text-color); font: inherit; font-size: 12.5px; cursor: pointer; white-space: nowrap; touch-action: none; user-select: none; }
.acc-act:hover { border-color: var(--primary-color); }
.acc-act.small { height: 26px; padding: 0 7px; font-size: 12px; }
.acc-act.ok { color: var(--acc-ok); border-color: var(--acc-ok); }
.acc-act.ok:hover { background: var(--acc-ok-bg); border-color: var(--acc-ok); }
.acc-act.bad { color: var(--acc-bad); border-color: var(--acc-bad); }
.acc-act.bad:hover { background: var(--acc-bad-bg); border-color: var(--acc-bad); }
.acc-act.mic { color: var(--acc-ai); border-color: var(--acc-ai-line); }
.acc-act.mic:hover { background: var(--acc-ai-bg); border-color: var(--acc-ai); }
.acc-act.ghost { border-color: transparent; background: none; color: var(--text-muted); }
.acc-act.ghost:hover { color: var(--text-color); background: var(--hover-bg, #f1f3f4); }
.acc-act.rec, .acc-ask-mic.rec { background: var(--acc-bad); border-color: var(--acc-bad); color: #fff; animation: acc-pulse 1.1s ease-in-out infinite; }
@keyframes acc-pulse { 50% { box-shadow: 0 0 0 5px var(--acc-bad-bg); } }
.acc-f-input { display: flex; flex-direction: column; gap: 6px; }
.acc-f-input[hidden] { display: none; }
.acc-f-input textarea { width: 100%; box-sizing: border-box; padding: 8px 10px; border: 1px solid var(--acc-line); border-radius: 8px; background: var(--card-bg); color: var(--text-color); font: inherit; font-size: 13px; line-height: 1.45; resize: vertical; }
.acc-f-input-acts { display: flex; gap: 6px; }

/* Клиенты */
.acc-table-wrap { border: 1px solid var(--acc-line); border-radius: var(--acc-radius); background: var(--card-bg); overflow-x: auto; }
.acc-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.acc-table th { position: sticky; top: 0; padding: 10px 12px; text-align: left; font-size: 11.5px; font-weight: 600; color: var(--text-muted); background: var(--card-bg); border-bottom: 1px solid var(--acc-line); white-space: nowrap; }
.acc-table td { padding: 9px 12px; border-bottom: 1px solid var(--border-light, var(--acc-line)); vertical-align: top; }
.acc-table tr:last-child td { border-bottom: 0; }
.acc-table tbody tr { cursor: pointer; }
.acc-table tbody tr:hover, .acc-table tbody tr:focus { background: var(--hover-bg, #f1f3f4); outline: none; }
.acc-table .n { text-align: right; font-variant-numeric: tabular-nums; width: 92px; }
.acc-table td b { font-weight: 600; }
.acc-table b.hot { color: var(--acc-ai); }
.acc-table b.bad { color: var(--acc-bad); }
.acc-td-sub { display: block; font-size: 11.5px; color: var(--text-muted); margin-top: 1px; }

/* Карточка клиента */
.acc-drawer-wrap { position: fixed; inset: 0; z-index: 3000; display: flex; justify-content: flex-end; }
.acc-drawer-bg { position: absolute; inset: 0; background: rgba(15, 23, 42, .4); }
body[data-theme="dark"] .acc-drawer-bg { background: rgba(0, 0, 0, .6); }
.acc-drawer { position: relative; display: flex; flex-direction: column; width: min(860px, 100%); height: 100%; background: var(--bg-color); color: var(--text-color); box-shadow: -12px 0 40px rgba(15, 23, 42, .18); animation: acc-slide .18s ease; }
@keyframes acc-slide { from { transform: translateX(32px); opacity: 0; } to { transform: none; opacity: 1; } }
.acc-drawer-body { flex: 1; overflow-y: auto; padding: 18px 22px 40px; display: flex; flex-direction: column; gap: 12px; }
.acc-d-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; position: sticky; top: -18px; z-index: 2; margin: -18px -22px 0; padding: 16px 22px 12px; background: var(--bg-color); border-bottom: 1px solid var(--acc-line); }
.acc-d-head h3 { margin: 0 0 6px; font-size: 17px; font-weight: 700; line-height: 1.25; }
.acc-d-tags { display: flex; gap: 5px; flex-wrap: wrap; }
.acc-d-acts { display: flex; gap: 6px; flex: none; }
.acc-d-sec { padding: 14px; border: 1px solid var(--acc-line); border-radius: var(--acc-radius); background: var(--card-bg); }
.acc-d-sec > h4 { display: flex; align-items: center; gap: 6px; margin: 0 0 10px; font-size: 13.5px; font-weight: 700; }
.acc-d-sec > h4 svg { color: var(--acc-ai); }
.acc-d-sec > h4 i { font-style: normal; padding: 0 6px; border-radius: 999px; background: var(--acc-ai-bg); color: var(--acc-ai); font-size: 11.5px; }
.acc-d-sec > h4 .acc-link { margin-left: auto; font-weight: 400; }
.acc-d-sec.portrait { background: var(--acc-ai-bg); border-color: var(--acc-ai-line); }
.acc-d-sec.portrait p { margin: 0; font-size: 13.5px; line-height: 1.5; }
.acc-d-sec.portrait ul { margin: 8px 0 0; padding-left: 18px; font-size: 13px; line-height: 1.5; }
.acc-d-sec.portrait time { display: block; margin-top: 8px; font-size: 11.5px; color: var(--text-muted); }
.acc-rows { display: flex; flex-direction: column; }
.acc-row { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 10px; align-items: flex-start; padding: 8px 0; border-top: 1px solid var(--border-light, var(--acc-line)); font-size: 13px; }
.acc-row:first-child { border-top: 0; padding-top: 0; }
.acc-row.plain { grid-template-columns: minmax(0, 1fr) auto 70px; text-align: left; }
.acc-row.plain > b { text-align: right; font-variant-numeric: tabular-nums; }
.acc-row time { font-size: 11.5px; color: var(--text-muted); padding-top: 1px; }
.acc-row > div b { font-weight: 600; display: block; line-height: 1.35; }
.acc-row > div span { display: block; margin-top: 1px; font-size: 12px; color: var(--text-muted); line-height: 1.4; }
.acc-fgroup { margin-top: 10px; }
.acc-fgroup:first-of-type { margin-top: 0; }
.acc-fgroup h5 { margin: 0 0 4px; font-size: 11.5px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .03em; }
.acc-fact { position: relative; padding: 6px 26px 6px 9px; border-left: 2px solid var(--acc-ai-line); margin-bottom: 4px; border-radius: 0 7px 7px 0; }
.acc-fact:hover { background: var(--hover-bg, #f1f3f4); }
.acc-fact.old { opacity: .62; border-left-color: var(--acc-line); }
.acc-fact-val { font-size: 13px; line-height: 1.4; word-break: break-word; }
.acc-fact-meta { display: flex; flex-wrap: wrap; gap: 2px 10px; margin-top: 2px; font-size: 11.5px; color: var(--text-muted); }
.acc-fact-q { font-style: italic; }
.acc-fact-x { position: absolute; top: 5px; right: 4px; display: none; border: 0; background: none; padding: 2px; color: var(--text-muted); cursor: pointer; border-radius: 5px; }
.acc-fact:hover .acc-fact-x { display: inline-flex; }
.acc-fact-x:hover { color: var(--acc-bad); }
.acc-fact-add { display: flex; gap: 6px; margin-top: 12px; flex-wrap: wrap; }
.acc-fact-add input { flex: 1; min-width: 180px; height: 34px; padding: 0 10px; border: 1px solid var(--acc-line); border-radius: 8px; background: var(--card-bg); color: var(--text-color); font: inherit; font-size: 13px; }
.acc-fact-add .acc-select { height: 34px; }

/* Обучение */
.acc-learn { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 12px; align-items: start; }
.acc-learn-main { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.acc-learn-side { position: sticky; top: 12px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.acc-raters { display: flex; flex-direction: column; gap: 10px; }
.acc-rater { display: flex; flex-direction: column; gap: 4px; }
.acc-rater-top { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; }
.acc-rater-top b { font-weight: 600; }
.acc-rater-top span { color: var(--text-muted); font-variant-numeric: tabular-nums; }
.acc-rater small { font-size: 11.5px; color: var(--text-muted); }
.acc-how { padding: 14px 16px; border-radius: var(--acc-radius); background: var(--acc-ai-bg); border: 1px solid var(--acc-ai-line); }
.acc-how h3 { display: inline-flex; align-items: center; gap: 7px; margin: 0 0 8px; font-size: 14px; font-weight: 700; }
.acc-how h3 svg { color: var(--acc-ai); }
.acc-how ol { margin: 0; padding-left: 18px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 22px; font-size: 12.5px; line-height: 1.45; color: var(--text-muted); }
.acc-how li b { color: var(--text-color); }
.acc-s { display: flex; flex-direction: column; gap: 7px; padding: 14px; border: 1px solid var(--acc-line); border-radius: var(--acc-radius); background: var(--card-bg); }
.acc-s header { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.acc-s header time { font-size: 11.5px; color: var(--text-muted); }
.acc-s header .acc-tag { margin-left: auto; }
.acc-s h4 { margin: 0; font-size: 13.5px; font-weight: 600; line-height: 1.35; }
.acc-s-q { margin: 0; font-size: 12.5px; color: var(--text-muted); line-height: 1.4; }
.acc-s-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.acc-s-ai, .acc-s-man { padding: 9px 11px; border-radius: 9px; font-size: 13px; line-height: 1.45; min-width: 0; word-break: break-word; }
.acc-s-ai { background: var(--acc-ai-bg); }
.acc-s-man { background: var(--acc-soft); }
.acc-s-h { display: inline-flex; align-items: center; gap: 4px; margin-bottom: 4px; font-size: 11px; font-weight: 700; color: var(--text-muted); }
.acc-s-ai .acc-s-h { color: var(--acc-ai); }
.acc-s-ai ul { margin: 0 0 5px; padding-left: 16px; }
.acc-s-ai p, .acc-s-man p { margin: 0; white-space: pre-wrap; }
.acc-s-why { margin: 0; font-size: 12.5px; color: var(--text-muted); line-height: 1.4; }
.acc-s-lesson { display: flex; gap: 6px; margin: 0; padding: 7px 9px; border-radius: 8px; background: var(--acc-warn-bg); font-size: 12.5px; line-height: 1.4; }
.acc-s-lesson svg { flex: none; margin-top: 2px; color: var(--acc-warn); }
.acc-s-law { display: flex; gap: 6px; margin: 0; padding: 7px 9px; border-radius: 8px; background: var(--acc-bad-bg); font-size: 12.5px; line-height: 1.4; }
.acc-s-law svg { flex: none; margin-top: 2px; color: var(--acc-bad); }
.acc-s-acts { display: flex; align-items: center; gap: 6px; }
.acc-lessons { display: flex; flex-direction: column; gap: 8px; max-height: 70vh; overflow-y: auto; }
.acc-lesson { padding: 9px 10px; border: 1px solid var(--acc-line); border-radius: 9px; }
.acc-lesson.rejected { opacity: .55; }
.acc-lesson p { margin: 0 0 6px; font-size: 12.5px; line-height: 1.45; }
.acc-lesson-foot { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.acc-lesson-foot .acc-dim { font-size: 11.5px; margin-right: auto; }

/* Настройки */
.acc-set-row { display: flex; align-items: center; justify-content: space-between; gap: 10px 18px; padding: 10px 0; border-top: 1px solid var(--border-light, var(--acc-line)); flex-wrap: wrap; }
.acc-set-l { display: flex; align-items: center; gap: 10px; min-width: 0; }
.acc-set-l div { display: flex; flex-direction: column; gap: 1px; }
.acc-set-l b { font-size: 13.5px; }
.acc-set-l div span { font-size: 12px; color: var(--text-muted); }
.acc-seg { display: inline-flex; padding: 3px; border-radius: 9px; background: var(--acc-soft); border: 1px solid var(--acc-line); }
.acc-seg button { height: 28px; padding: 0 11px; border: 0; border-radius: 7px; background: none; color: var(--text-muted); font: inherit; font-size: 12.5px; cursor: pointer; white-space: nowrap; }
.acc-seg button.on { background: var(--card-bg); color: var(--text-color); font-weight: 600; box-shadow: var(--shadow); }
.acc-set-switch { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-bottom: 14px; }
.acc-switch { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; }
.acc-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.acc-switch i { position: relative; width: 34px; height: 20px; border-radius: 999px; background: var(--border-color); transition: background .15s; flex: none; }
.acc-switch i::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 2px rgba(0, 0, 0, .25); }
.acc-switch input:checked + i { background: var(--acc-ok); }
.acc-switch input:checked + i::after { transform: translateX(14px); }
.acc-switch input:focus-visible + i { outline: 2px solid var(--primary-color); outline-offset: 2px; }
.acc-flds { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.acc-fld { display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.acc-fld small { font-size: 11.5px; color: var(--text-muted); line-height: 1.35; }
.acc-fld-in { position: relative; display: inline-flex; align-items: center; }
.acc-fld-in input { width: 100%; height: 34px; padding: 0 28px 0 10px; border: 1px solid var(--acc-line); border-radius: 8px; background: var(--card-bg); color: var(--text-color); font: inherit; font-size: 13px; }
.acc-fld-in i { position: absolute; right: 10px; font-style: normal; font-size: 12px; color: var(--text-muted); }
.acc-set-foot { display: flex; align-items: center; gap: 12px; margin-top: 14px; flex-wrap: wrap; }

/* Слой в окне чата */
.acc-chat-btn { position: relative; color: var(--acc-ai, #6246c7) !important; }
.acc-chat-badge { position: absolute; top: 1px; right: 0; min-width: 15px; height: 15px; padding: 0 3px; border-radius: 999px; background: #6246c7; color: #fff; font-size: 10px; font-weight: 700; line-height: 15px; text-align: center; }
.acc-panel { position: absolute; top: 0; right: 0; bottom: 0; width: 420px; max-width: 86%; display: flex; flex-direction: column; z-index: 41; background: var(--card-bg); color: var(--text-color); border-left: 1px solid var(--border-color); box-shadow: -8px 0 28px rgba(11, 20, 26, .1); animation: acc-slide .16s ease; }
.acc-panel-head { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--border-color); background: var(--acc-ai-bg); }
.acc-panel-head div { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.acc-panel-head b { font-size: 14px; }
.acc-panel-head div span { font-size: 11.5px; color: var(--text-muted); }
.acc-panel-x { border: 0; background: none; padding: 4px; color: var(--text-muted); cursor: pointer; border-radius: 6px; display: inline-flex; }
.acc-panel-x:hover { background: var(--hover-bg, #f1f3f4); color: var(--text-color); }
.acc-panel-body { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 12px; }
.acc-p-sec > h4 { display: flex; align-items: center; gap: 6px; margin: 0 0 6px; font-size: 12px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .03em; }
.acc-p-sec > h4 i { font-style: normal; padding: 0 6px; border-radius: 999px; background: var(--acc-ai-bg); color: var(--acc-ai); }
.acc-p-sum { margin: 0; font-size: 13px; line-height: 1.5; }
.acc-p-ul { margin: 6px 0 0; padding-left: 16px; font-size: 12.5px; line-height: 1.45; color: var(--text-muted); }
.acc-p-row { display: flex; align-items: flex-start; gap: 8px; padding: 6px 0; border-top: 1px solid var(--border-light, var(--border-color)); font-size: 12.5px; line-height: 1.4; }
.acc-p-row:first-of-type { border-top: 0; }
.acc-p-row > span:first-child { flex: none; width: 46px; font-size: 11.5px; color: var(--text-muted); }
.acc-p-row b { font-weight: 500; flex: 1; min-width: 0; }
.acc-p-row time { flex: none; font-size: 11.5px; color: var(--text-muted); }
.acc-panel .acc-f { padding: 10px; gap: 8px; }
.acc-panel .acc-f-ic { width: 26px; height: 26px; border-radius: 8px; }
.acc-panel .acc-f h4 { font-size: 13px; }
.acc-panel .acc-f-why, .acc-panel .acc-f-next { font-size: 12.5px; }
.acc-ask { display: flex; align-items: flex-end; gap: 6px; padding: 8px 10px; border-top: 1px solid var(--border-color); }
.acc-ask textarea { flex: 1; min-width: 0; max-height: 120px; padding: 8px 10px; border: 1px solid var(--border-color); border-radius: 10px; background: var(--card-bg); color: var(--text-color); font: inherit; font-size: 13px; line-height: 1.4; resize: none; }
.acc-ask textarea:focus { outline: none; border-color: var(--acc-ai); }
.acc-ask-mic, .acc-ask-send { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; flex: none; border: 1px solid var(--acc-ai-line); border-radius: 10px; background: none; color: var(--acc-ai); cursor: pointer; touch-action: none; }
.acc-ask-send { background: var(--acc-ai); border-color: var(--acc-ai); color: #fff; }
body[data-theme="dark"] .acc-ask-send { color: #17132b; }
.acc-ask-q { align-self: flex-end; max-width: 88%; margin: 6px 0 4px auto; padding: 7px 10px; border-radius: 11px 11px 3px 11px; background: var(--acc-soft); font-size: 12.5px; line-height: 1.4; width: fit-content; }
.acc-ask-a { padding: 8px 10px; border-radius: 3px 11px 11px 11px; background: var(--acc-ai-bg); font-size: 13px; line-height: 1.45; white-space: pre-wrap; word-break: break-word; }
.acc-ask-src { display: block; margin-top: 5px; font-size: 11px; color: var(--text-muted); }
.acc-ask-a .acc-bubble { margin-top: 6px; background: var(--card-bg); }
.acc-strip-slot:empty { display: none; }
.acc-strip { display: flex; align-items: center; gap: 8px; margin: 4px 10px; padding: 7px 8px 7px 10px; border-radius: 10px; background: var(--acc-ai-bg); border: 1px solid var(--acc-ai-line); }
.acc-strip-ic { display: inline-flex; color: var(--acc-ai); flex: none; }
.acc-strip-body { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.acc-strip-body b { font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acc-strip-body span { font-size: 11.5px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acc-strip-more { border: 0; background: none; padding: 2px 4px; color: var(--acc-ai); font: inherit; font-size: 12px; cursor: pointer; white-space: nowrap; flex: none; }
.acc-strip-more:hover { text-decoration: underline; }
.acc-strip-act { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; flex: none; border: 1px solid transparent; border-radius: 8px; background: var(--card-bg); cursor: pointer; }
.acc-strip-act.ok { color: var(--acc-ok); } .acc-strip-act.ok:hover { border-color: var(--acc-ok); }
.acc-strip-act.bad { color: var(--acc-bad); } .acc-strip-act.bad:hover { border-color: var(--acc-bad); }

/* Доступ (03.11.2026): раздел видят только люди из списка, в шапке — кто именно */
.acc-head-r { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.acc-people { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px 0 7px; border: 1px solid var(--acc-line); border-radius: 11px; background: var(--card-bg); color: var(--text-muted); font: inherit; font-size: 12.5px; white-space: nowrap; }
button.acc-people { cursor: pointer; }
button.acc-people:hover { border-color: var(--primary-color); color: var(--text-color); }
.acc-av { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; flex: none; font-size: 11.5px; font-weight: 700; letter-spacing: .02em; }
.acc-av.lv-admin { background: var(--acc-ai-bg); color: var(--acc-ai); }
.acc-av.lv-staff { background: var(--acc-filing-bg); color: var(--acc-filing); }
.acc-av.lv-none { background: var(--acc-soft); color: var(--text-muted); box-shadow: inset 0 0 0 1px var(--acc-line); }
.acc-av.lg { width: 38px; height: 38px; font-size: 13.5px; }
.acc-av-stack { display: inline-flex; gap: 3px; }
.acc-av-stack .acc-av { width: 24px; height: 24px; font-size: 10px; letter-spacing: 0; }
.acc-tab-badge { font-style: normal; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 2px; border-radius: 999px; background: var(--acc-warn); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; font-variant-numeric: tabular-nums; }
.acc-tab.on .acc-tab-badge { background: #fff; color: var(--primary-color); }
.acc-locked { margin-top: 24px; }
.acc-locked svg { color: var(--text-muted); }
.acc-people-list { display: flex; flex-direction: column; }
.acc-person { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--border-light, var(--acc-line)); }
.acc-person:first-child { border-top: 0; padding-top: 2px; }
.acc-person-main { display: flex; flex-direction: column; gap: 1px; flex: 1; min-width: 0; }
.acc-person-main b { font-size: 13.5px; font-weight: 600; }
.acc-person-main b .acc-dim { font-weight: 400; margin-left: 4px; }
.acc-person-main > span { font-size: 12px; color: var(--text-muted); line-height: 1.35; }

/* Оценки и правки на карточке находки: что ушло на разбор и чем кончилось */
.acc-fbs { display: flex; flex-direction: column; gap: 4px; }
.acc-fb { display: flex; align-items: center; gap: 7px; font-size: 12px; line-height: 1.4; color: var(--text-muted); }
.acc-fb-ic { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 6px; flex: none; }
.acc-fb.k-ok .acc-fb-ic { background: var(--acc-ok-bg); color: var(--acc-ok); }
.acc-fb.k-bad .acc-fb-ic { background: var(--acc-bad-bg); color: var(--acc-bad); }
.acc-fb.k-ai .acc-fb-ic { background: var(--acc-ai-bg); color: var(--acc-ai); }
.acc-fb-txt { flex: 1; min-width: 0; word-break: break-word; }
.acc-fb-txt b { color: var(--text-color); font-weight: 600; }
.acc-fb .acc-tag { height: 19px; font-size: 11px; flex: none; }
.acc-fb time { flex: none; font-size: 11px; white-space: nowrap; }
.acc-f-input-hint { display: flex; align-items: flex-start; gap: 6px; font-size: 12px; line-height: 1.4; color: var(--text-muted); }
.acc-f-input-hint svg { flex: none; margin-top: 1px; color: var(--acc-info); }

/* Обзор: напоминание о разборе */
.acc-qnote { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 16px; border: 1px solid rgba(217, 119, 6, .35); border-radius: var(--acc-radius); background: var(--acc-warn-bg); color: inherit; font: inherit; text-align: left; cursor: pointer; transition: box-shadow var(--transition, .15s); }
.acc-qnote:hover { box-shadow: var(--shadow-lg); }
.acc-qnote-ic { display: inline-flex; color: var(--acc-warn); flex: none; }
.acc-qnote-txt { display: flex; flex-direction: column; gap: 1px; flex: 1; min-width: 0; }
.acc-qnote-txt b { font-size: 13.5px; }
.acc-qnote-txt span { font-size: 12.5px; color: var(--text-muted); line-height: 1.4; }
.acc-qnote-go { display: inline-flex; align-items: center; gap: 4px; flex: none; font-size: 12.5px; font-weight: 600; color: var(--acc-warn); white-space: nowrap; }

/* Карантин в «Обучении» */
.acc-q { padding: 16px; border: 1px solid var(--acc-line); border-radius: var(--acc-radius); background: var(--card-bg); }
.acc-q-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px 18px; flex-wrap: wrap; margin-bottom: 12px; }
.acc-q-title { display: flex; align-items: flex-start; gap: 12px; min-width: 0; flex: 1 1 380px; }
.acc-q-title > div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.acc-q-title h3 { display: flex; align-items: center; gap: 7px; margin: 0; font-size: 15px; font-weight: 700; }
.acc-q-title span { font-size: 12.5px; line-height: 1.45; color: var(--text-muted); }
.acc-q-ic { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 11px; flex: none; background: var(--acc-warn-bg); color: var(--acc-warn); }
.acc-q-count { font-style: normal; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--acc-warn); color: #fff; font-size: 11.5px; font-weight: 700; line-height: 20px; text-align: center; font-variant-numeric: tabular-nums; }
.acc-seg button i { font-style: normal; margin-left: 6px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--text-muted); }
.acc-seg button.on i { color: var(--text-color); }
.acc-q-list { display: flex; flex-direction: column; gap: 10px; }
.acc-qi { display: flex; flex-direction: column; gap: 10px; padding: 14px; border: 1px solid var(--acc-line); border-left: 3px solid var(--acc-warn); border-radius: var(--acc-radius); background: var(--card-bg); transition: opacity .15s; }
.acc-qi.done { border-left-color: var(--acc-line); background: var(--acc-soft); gap: 8px; }
.acc-qi.busy { opacity: .5; pointer-events: none; }
.acc-qi-head { display: flex; align-items: center; gap: 10px; }
.acc-qi-who { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.acc-qi-who b { font-size: 13.5px; font-weight: 600; }
.acc-qi-who span { font-size: 11.5px; color: var(--text-muted); }
.acc-qi-kind { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: 999px; flex: none; font-size: 12.5px; font-weight: 600; }
.acc-qi-kind.k-ok { background: var(--acc-ok-bg); color: var(--acc-ok); }
.acc-qi-kind.k-bad { background: var(--acc-bad-bg); color: var(--acc-bad); }
.acc-qi-kind.k-ai { background: var(--acc-ai-bg); color: var(--acc-ai); }
.acc-qi-target { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; background: var(--acc-soft); }
.acc-qi.done .acc-qi-target { background: var(--card-bg); }
.acc-qi-target > div { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; }
.acc-qi-target b { font-size: 13px; font-weight: 600; line-height: 1.35; }
.acc-qi-target span { font-size: 12px; color: var(--text-muted); }
.acc-qi-target .acc-link { flex: none; }
.acc-qi-say { margin: 0; padding: 9px 12px; border-left: 3px solid var(--acc-ai-line); border-radius: 0 10px 10px 0; background: var(--acc-ai-bg); font-size: 13px; line-height: 1.5; white-space: pre-wrap; word-break: break-word; }
.acc-qi-nosay { margin: 0; font-size: 12.5px; font-style: italic; color: var(--text-muted); }
.acc-qi-diff { display: flex; flex-direction: column; gap: 10px; }
.acc-qi-diff-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 8px; }
.acc-qi-diff-h { grid-column: 1 / -1; font-size: 11.5px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .03em; }
.acc-qi-diff-row .was, .acc-qi-diff-row .now { padding: 8px 10px; border-radius: 9px; font-size: 12.5px; line-height: 1.45; white-space: pre-wrap; word-break: break-word; }
.acc-qi-diff-row .was { background: var(--acc-soft); color: var(--text-muted); box-shadow: inset 0 0 0 1px var(--acc-line); }
.acc-qi-diff-row .now { background: var(--acc-ok-bg); }
.acc-qi-diff-row small { display: block; margin-bottom: 2px; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); }
.acc-qi-diff-row .now small { color: var(--acc-ok); }
.acc-qi-effect { display: flex; align-items: flex-start; gap: 7px; font-size: 12.5px; line-height: 1.4; color: var(--text-muted); }
.acc-qi-effect svg { flex: none; margin-top: 1px; color: var(--acc-info); }
.acc-qi-rule { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px; border: 1px dashed var(--acc-line); border-radius: 10px; }
.acc-qi-rule.on { border-style: solid; border-color: var(--acc-ai-line); background: var(--acc-ai-bg); }
.acc-qi-rule-prev { display: flex; align-items: flex-start; gap: 6px; margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--text-muted); }
.acc-qi-rule-prev svg { flex: none; margin-top: 2px; color: var(--acc-warn); }
.acc-qi-rule-prev[hidden], .acc-qi-rule-ed[hidden], .acc-qi-hint-rule[hidden] { display: none; }
.acc-qi-rule-ed textarea { width: 100%; box-sizing: border-box; padding: 8px 10px; border: 1px solid var(--acc-ai-line); border-radius: 8px; background: var(--card-bg); color: var(--text-color); font: inherit; font-size: 13px; line-height: 1.45; resize: vertical; }
.acc-qi-rule-ed textarea:focus { outline: none; border-color: var(--acc-ai); }
.acc-qi-rule-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.acc-qi-acts { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.acc-qi-acts .acc-act { height: 32px; padding: 0 12px; font-weight: 600; }
.acc-qi-hint { flex: 1 1 260px; font-size: 12px; line-height: 1.4; color: var(--text-muted); }
.acc-qi-hint b { font-weight: 600; color: var(--text-color); }
.acc-qi-done { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12px; color: var(--text-muted); }
.acc-qi-rule-made { display: flex; align-items: flex-start; gap: 5px; flex-basis: 100%; font-size: 12.5px; line-height: 1.4; color: var(--text-color); }
.acc-qi-rule-made svg { flex: none; margin-top: 2px; color: var(--acc-warn); }
.acc-lesson.live { box-shadow: inset 3px 0 0 var(--acc-ok); }
.acc-lesson-meta { display: flex; flex-wrap: wrap; gap: 2px 10px; margin: -2px 0 6px; font-size: 11.5px; color: var(--text-muted); }
body[data-theme="dark"] .acc-tab-badge, body[data-theme="dark"] .acc-q-count { color: #1c1300; }
body[data-theme="dark"] .acc-qnote { border-color: rgba(251, 191, 36, .35); }

@media (max-width: 1180px) {
    .acc-scen-grid { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
    .acc-two, .acc-learn { grid-template-columns: minmax(0, 1fr); }
    .acc-learn-side { position: static; }
}
@media (max-width: 720px) {
    .acc { padding: 12px 12px 24px; }
    .acc-banner { flex-wrap: wrap; }
    .acc-banner-meta { flex-direction: row; flex-wrap: wrap; gap: 3px 12px; flex: 1 1 100%; }
    .acc-banner-meta span { white-space: normal; }
    .acc-table .hide-sm { display: none; }
    .acc-table th, .acc-table td { padding-left: 8px; padding-right: 6px; }
    .acc-table th { font-size: 11px; }
    .acc-table .n { width: 54px; padding-left: 2px; padding-right: 8px; }
    .acc-search, .acc-search input { width: 100%; }
    .acc-tools, .acc-tools .acc-search { flex: 1 1 auto; }
    .acc-s-grid, .acc-how ol { grid-template-columns: minmax(0, 1fr); }
    .acc-row { grid-template-columns: minmax(0, 1fr) auto; }
    .acc-row time { grid-column: 1 / -1; }
    .acc-search input { width: 100%; }
    .acc-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .acc-drawer-body { padding: 16px 14px 32px; }
    .acc-d-head { margin: -16px -14px 0; padding: 14px; top: -16px; }
    .acc-head-r { width: 100%; }
    .acc-q { padding: 12px; }
    .acc-q-head .acc-seg { display: flex; width: 100%; }
    .acc-q-head .acc-seg button { flex: 1; padding: 0 6px; }
    .acc-qi { padding: 12px; }
    .acc-qi-diff-row { grid-template-columns: minmax(0, 1fr); }
    .acc-qi-target { flex-wrap: wrap; }
    .acc-qnote { flex-wrap: wrap; }
    .acc-qnote-go { margin-left: 30px; }
}

/* ==========================================================================
   Контроль отчёта 161 (этап 2, Алекс 03.11.2026): пилот на небольшой группе клиентов, путь от обязанности до записи
   в журнале Салыка, подсказка следующего шага в окне чата. Цвет сценария — индиго.
   ========================================================================== */
.s-report { background: var(--acc-report-bg); color: var(--acc-report); }

/* Обзор: карточка пилота */
.acc-ctl-ov { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 16px; border: 1px solid var(--acc-report-line); border-radius: var(--acc-radius); background: linear-gradient(110deg, var(--acc-report-bg), transparent 70%), var(--card-bg); color: inherit; font: inherit; text-align: left; cursor: pointer; transition: border-color var(--transition, .15s), box-shadow var(--transition, .15s); }
.acc-ctl-ov:hover { border-color: var(--acc-report); box-shadow: var(--shadow-lg); }
.acc-ctl-ov-txt { display: flex; flex-direction: column; gap: 1px; flex: 1; min-width: 0; }
.acc-ctl-ov-txt b { font-size: 14px; }
.acc-ctl-ov-txt span { font-size: 12.5px; color: var(--text-muted); line-height: 1.4; }
.acc-ctl-ov-nums { display: flex; gap: 6px; flex: none; }
.acc-ctl-ov-n { display: flex; flex-direction: column; align-items: center; min-width: 66px; padding: 5px 8px; border-radius: 9px; background: var(--acc-soft); font-size: 11px; line-height: 1.25; color: var(--text-muted); text-align: center; }
.acc-ctl-ov-n b { font-size: 17px; color: var(--text-color); font-variant-numeric: tabular-nums; }
.acc-ctl-ov-n.warn { background: var(--acc-warn-bg); } .acc-ctl-ov-n.warn b { color: var(--acc-warn); }
.acc-ctl-ov-n.info { background: var(--acc-info-bg); } .acc-ctl-ov-n.info b { color: var(--acc-info); }
.acc-ctl-ov-n.ok { background: var(--acc-ok-bg); } .acc-ctl-ov-n.ok b { color: var(--acc-ok); }
.acc-ctl-ov .acc-qnote-go { color: var(--acc-report); }

/* Вкладка: шапка пилота и срок сдачи */
.acc-ctl-hero { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 16px; padding: 16px; border: 1px solid var(--acc-line); border-radius: var(--acc-radius); background: linear-gradient(120deg, var(--acc-report-bg), transparent 62%), var(--card-bg); }
.acc-ctl-hero-main { display: flex; gap: 14px; min-width: 0; }
.acc-ctl-hero-main .acc-scen-ic { width: 42px; height: 42px; border-radius: 12px; }
.acc-ctl-hero-main h3 { margin: 2px 0 4px; font-size: 18px; font-weight: 700; line-height: 1.25; }
.acc-ctl-hero-main p { margin: 0 0 10px; max-width: 780px; font-size: 13px; line-height: 1.5; color: var(--text-muted); }
.acc-ctl-meta { display: flex; align-items: center; gap: 6px 10px; flex-wrap: wrap; }
.acc-ctl-meta .acc-dim { display: inline-flex; align-items: center; gap: 4px; }
.acc-ctl-due { display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 12px 14px; border: 1px solid var(--acc-line); border-radius: 11px; background: var(--card-bg); }
.acc-ctl-due > span { font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--text-muted); }
.acc-ctl-due > b { font-size: 27px; line-height: 1.1; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.acc-ctl-due > i { font-style: normal; font-size: 12.5px; color: var(--text-muted); }
.acc-ctl-due.warn > b, .acc-ctl-due.warn > i { color: var(--acc-warn); }
.acc-ctl-due.bad > b, .acc-ctl-due.bad > i { color: var(--acc-bad); }
.acc-ctl-bar { display: block; height: 6px; margin-top: 9px; border-radius: 6px; background: var(--acc-soft); box-shadow: inset 0 0 0 1px var(--acc-line); overflow: hidden; }
.acc-ctl-bar i { display: block; height: 100%; border-radius: 6px; background: var(--acc-report); transition: width .4s; }
.acc-ctl-due.warn .acc-ctl-bar i { background: var(--acc-warn); }
.acc-ctl-due.bad .acc-ctl-bar i { background: var(--acc-bad); }

/* Шаги пути: сколько клиентов прошли каждый, клик — кто сейчас на этом шаге */
.acc-ctl-funnel { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.acc-ctl-step { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 12px; border: 1px solid var(--acc-line); border-radius: 11px; background: var(--card-bg); color: inherit; font: inherit; text-align: left; cursor: pointer; transition: border-color var(--transition, .15s), box-shadow var(--transition, .15s); }
.acc-ctl-step:hover { border-color: var(--acc-report); }
.acc-ctl-step.on { border-color: var(--acc-report); box-shadow: 0 0 0 3px var(--acc-report-bg); }
.acc-ctl-step + .acc-ctl-step::before { content: ''; position: absolute; left: -10px; top: 26px; width: 10px; height: 2px; background: var(--acc-line); }
.acc-ctl-step-ic { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 9px; background: var(--acc-report-bg); color: var(--acc-report); }
.acc-ctl-step b { font-size: 13px; line-height: 1.25; }
.acc-ctl-step-bar { display: block; height: 5px; border-radius: 5px; background: var(--acc-soft); box-shadow: inset 0 0 0 1px var(--border-light, var(--acc-line)); overflow: hidden; }
.acc-ctl-step-bar i { display: block; height: 100%; border-radius: 5px; background: var(--acc-ok); }
.acc-ctl-step-n { display: flex; flex-direction: column; gap: 1px; font-size: 11.5px; line-height: 1.35; color: var(--text-muted); }
.acc-ctl-step-n em { font-style: normal; font-weight: 600; color: var(--acc-report); }
.acc-tiles-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.acc-tile.ok b { color: var(--acc-ok); }
.acc-tile.bad b { color: var(--acc-bad); }
.acc-tile.warn b { color: var(--acc-warn); }

/* Список клиентов пилота: кто, путь, что сейчас, сколько на шаге */
.acc-ctl-list { display: flex; flex-direction: column; gap: 6px; }
.acc-ctl-row { position: relative; display: grid; grid-template-columns: minmax(180px, 1.1fr) auto minmax(0, 2fr) auto; grid-template-areas: "who trk now side"; align-items: center; gap: 10px 18px; padding: 11px 14px 11px 18px; border: 1px solid var(--acc-line); border-radius: 11px; background: var(--card-bg); cursor: pointer; transition: border-color var(--transition, .15s), box-shadow var(--transition, .15s); }
.acc-ctl-row::before { content: ''; position: absolute; left: 0; top: 9px; bottom: 9px; width: 4px; border-radius: 0 4px 4px 0; background: var(--acc-line); }
.acc-ctl-row:hover, .acc-ctl-row:focus-visible { border-color: var(--acc-report); box-shadow: var(--shadow); outline: none; }
.acc-ctl-row.st-late::before { background: var(--acc-bad); }
.acc-ctl-row.st-gap::before { background: var(--acc-warn); }
.acc-ctl-row.st-check::before { background: var(--acc-info); }
.acc-ctl-row.st-done::before { background: var(--acc-ok); }
.acc-ctl-row.st-off { opacity: .75; }
.acc-ctl-who { grid-area: who; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.acc-ctl-who b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13.5px; font-weight: 600; line-height: 1.3; }
.acc-ctl-who span { font-size: 11.5px; color: var(--text-muted); }
.acc-ctl-who em.warn { font-style: normal; color: var(--acc-warn); }
.acc-ctl-trk { grid-area: trk; }
.acc-ctl-now { grid-area: now; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.acc-ctl-now-h { display: flex; align-items: flex-start; gap: 8px; min-width: 0; }
.acc-ctl-now-h .acc-tag { flex: none; margin-top: 1px; }
.acc-ctl-now-h b { min-width: 0; font-size: 13px; font-weight: 600; line-height: 1.4; }
.acc-ctl-now > span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 12.5px; line-height: 1.4; color: var(--text-muted); }
.acc-ctl-now > span svg { margin: 0 4px -2px 0; color: var(--acc-report); }
.acc-ctl-now em { font-style: normal; font-weight: 600; color: var(--acc-report); white-space: nowrap; }
.acc-ctl-side { grid-area: side; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.acc-ctl-side time { font-size: 11px; color: var(--text-muted); white-space: nowrap; }
.acc-ctl-acts { display: inline-flex; gap: 2px; }
.acc-act.icon { width: 32px; padding: 0; justify-content: center; }

/* Трекер шагов: mini — точки, mid — с подписями, full — с тем, что произошло и когда */
.acc-trk { display: flex; align-items: center; margin: 0; padding: 0; list-style: none; }
.acc-trk li { position: relative; display: flex; align-items: center; }
.acc-trk i { display: inline-flex; align-items: center; justify-content: center; flex: none; position: relative; z-index: 1; border: 1.5px solid var(--acc-line); border-radius: 50%; background: var(--card-bg); color: var(--text-muted); font-style: normal; }
.acc-trk .st-done i { border-color: var(--acc-ok); background: var(--acc-ok); color: #fff; }
.acc-trk .st-done.muted i { background: var(--acc-ok-bg); color: var(--acc-ok); }
.acc-trk .st-wait i { border-color: var(--acc-info); background: var(--acc-info-bg); color: var(--acc-info); }
.acc-trk .st-check i { border-color: var(--acc-info); border-style: dashed; color: var(--acc-info); }
.acc-trk .st-act i { border-color: var(--acc-warn); background: var(--acc-warn-bg); color: var(--acc-warn); }
.acc-trk .st-problem i { border-color: var(--acc-bad); background: var(--acc-bad-bg); color: var(--acc-bad); }
.acc-trk .st-todo.cur i { border-width: 2px; border-color: var(--acc-warn); color: var(--acc-warn); }
body[data-theme="dark"] .acc-trk .st-done:not(.muted) i { color: #0d1f12; }
.acc-trk.mini li + li::before { content: ''; width: 9px; height: 2px; background: var(--acc-line); }
.acc-trk.mini li.st-done + li::before { background: var(--acc-ok); }
.acc-trk.mini i { width: 22px; height: 22px; }
.acc-trk.mid { align-items: flex-start; }
.acc-trk.mid li { flex: 1; flex-direction: column; gap: 5px; min-width: 0; text-align: center; }
.acc-trk.mid li::after { content: ''; position: absolute; top: 12px; left: calc(50% + 15px); right: calc(-50% + 15px); height: 2px; background: var(--acc-line); }
.acc-trk.mid li:last-child::after { display: none; }
.acc-trk.mid li.st-done::after { background: var(--acc-ok); }
.acc-trk.mid i { width: 26px; height: 26px; }
.acc-trk.mid .acc-trk-t b { display: block; font-size: 10.5px; font-weight: 600; line-height: 1.2; color: var(--text-muted); overflow-wrap: normal; word-break: normal; hyphens: manual; }
.acc-trk.mid .cur .acc-trk-t b { color: var(--text-color); }
.acc-trk.full { align-items: stretch; }
.acc-trk.full li { flex: 1; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; padding-right: 10px; }
.acc-trk.full li::after { content: ''; position: absolute; top: 16px; left: 40px; right: 6px; height: 2px; background: var(--acc-line); }
.acc-trk.full li:last-child::after { display: none; }
.acc-trk.full li.st-done::after { background: var(--acc-ok); }
.acc-trk.full i { width: 34px; height: 34px; }
.acc-trk-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.acc-trk.full .acc-trk-t b { font-size: 12.5px; font-weight: 700; }
.acc-trk.full .acc-trk-t span { font-size: 12px; line-height: 1.35; color: var(--text-muted); overflow-wrap: anywhere; }
.acc-trk.full .acc-trk-t time { font-size: 11px; color: var(--text-muted); }
.acc-trk.full .cur .acc-trk-t b { color: var(--acc-report); }
.acc-trk.full .st-act .acc-trk-t span { color: var(--acc-warn); }
.acc-trk.full .st-problem .acc-trk-t span { color: var(--acc-bad); }

/* Карточка пути отчёта */
.acc-ctl-path-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.acc-ctl-path-h h4 { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 13.5px; font-weight: 700; }
.acc-ctl-path-h h4 svg { color: var(--acc-report); }
.acc-ctl-due-in { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--text-muted); }
.acc-ctl-due-in.warn { color: var(--acc-warn); font-weight: 600; }
.acc-ctl-due-in.bad { color: var(--acc-bad); font-weight: 600; }
.acc-ctl-calm { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 10px; background: var(--acc-soft); font-size: 13px; line-height: 1.45; }
.acc-ctl-calm svg { flex: none; color: var(--acc-info); }
.acc-ctl-donebox { border-color: rgba(21, 128, 61, .3); }
.acc-ctl-donebox .acc-ctl-calm { background: var(--acc-ok-bg); }
.acc-ctl-donebox .acc-ctl-calm svg, .acc-ctl-donebox > h4 svg { color: var(--acc-ok); }
.acc-ctl-waits { display: flex; flex-direction: column; gap: 4px; margin-top: 10px; }
.acc-ctl-waits span { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-muted); }
.acc-ctl-foot { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 0; font-size: 11.5px; line-height: 1.4; color: var(--text-muted); }
.acc-ctl-drow > div { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.acc-ctl-drow > div span { font-size: 12px; color: var(--text-muted); }
.acc-ctl-mini-head { margin: 10px 0 0; font-size: 13px; line-height: 1.45; }
.acc-ctl-notes { display: flex; flex-direction: column; }
.acc-ctl-note { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; border-top: 1px solid var(--border-light, var(--acc-line)); }
.acc-ctl-note:first-child { border-top: 0; padding-top: 0; }
.acc-ctl-note .acc-tag { flex: none; min-width: 112px; justify-content: center; }
.acc-ctl-note > span { flex: 1; min-width: 0; font-size: 13px; line-height: 1.45; overflow-wrap: anywhere; }
.acc-ctl-note time { display: block; margin-top: 1px; font-size: 11.5px; color: var(--text-muted); }

/* Ход работы */
.acc-tl { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.acc-tl li { position: relative; display: flex; gap: 10px; padding: 0 0 12px; }
.acc-tl li:not(:last-child)::before { content: ''; position: absolute; left: 13px; top: 30px; bottom: 2px; width: 2px; background: var(--border-light, var(--acc-line)); }
.acc-tl-ic { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; flex: none; border-radius: 50%; background: var(--acc-soft); color: var(--text-muted); }
.acc-tl li > div { display: flex; flex-direction: column; gap: 1px; min-width: 0; padding-top: 4px; }
.acc-tl b { font-size: 13px; font-weight: 500; line-height: 1.4; overflow-wrap: anywhere; }
.acc-tl span { font-size: 11.5px; color: var(--text-muted); }
.acc-tl .k-resolved .acc-tl-ic { background: var(--acc-ok-bg); color: var(--acc-ok); }
.acc-tl .k-gap .acc-tl-ic { background: var(--acc-warn-bg); color: var(--acc-warn); }
.acc-tl .k-step .acc-tl-ic { background: var(--acc-report-bg); color: var(--acc-report); }
.acc-tl .k-check .acc-tl-ic { background: var(--acc-ai-bg); color: var(--acc-ai); }
.acc-tl .k-duty .acc-tl-ic { background: var(--acc-info-bg); color: var(--acc-info); }

/* Действия по подсказке контроля */
.acc-f-go { display: flex; gap: 6px; flex-wrap: wrap; }
.acc-act.go { border-color: var(--acc-report-line); background: var(--acc-report-bg); color: var(--acc-report); font-weight: 600; touch-action: manipulation; }
.acc-act.go:hover { border-color: var(--acc-report); }
.acc-act[disabled], .acc-btn[disabled], .acc-strip-go[disabled] { opacity: .7; cursor: progress; }

/* Окно чата */
.acc-strip.is-report { background: var(--acc-report-bg); border-color: var(--acc-report-line); }
.acc-strip.is-report .acc-strip-ic, .acc-strip.is-report .acc-strip-more { color: var(--acc-report); }
.acc-strip-go { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 10px; flex: none; border: 1px solid var(--acc-report-line); border-radius: 8px; background: var(--card-bg); color: var(--acc-report); font: inherit; font-size: 12px; font-weight: 600; white-space: nowrap; cursor: pointer; }
.acc-strip-go:hover { border-color: var(--acc-report); }
.acc-p-ctl { padding: 12px; border: 1px solid var(--acc-report-line); border-radius: 11px; background: var(--acc-report-bg); }
.acc-p-ctl > h4 { color: var(--acc-report); }
.acc-p-ctl .acc-trk.mid { margin: 10px 0 12px; }
.acc-p-ctl-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.acc-p-ctl-head { margin: 8px 0 6px; font-size: 13px; line-height: 1.45; font-weight: 500; }

/* Настройки: пилот */
.acc-pilot { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.acc-pchip { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; height: 32px; padding: 0 4px 0 11px; border: 1px solid var(--acc-line); border-radius: 999px; background: var(--card-bg); font-size: 12.5px; }
.acc-pchip b { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.acc-pchip i { font-style: normal; font-size: 11.5px; color: var(--text-muted); white-space: nowrap; }
.acc-pchip button { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; flex: none; border: 0; border-radius: 50%; background: none; color: var(--text-muted); cursor: pointer; }
.acc-pchip button:hover { background: var(--acc-bad-bg); color: var(--acc-bad); }
.acc-pchip.off { border-style: dashed; opacity: .7; }
.acc-pilot-add { position: relative; margin-bottom: 12px; }
.acc-pilot-add .acc-search input { width: 360px; max-width: 100%; }
.acc-pilot-sug { position: absolute; z-index: 20; top: 38px; left: 0; width: min(480px, 100%); max-height: 320px; overflow-y: auto; padding: 4px; border: 1px solid var(--acc-line); border-radius: 11px; background: var(--card-bg); box-shadow: var(--shadow-lg); }
.acc-pilot-sug button { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 0 8px; width: 100%; padding: 7px 10px; border: 0; border-radius: 8px; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.acc-pilot-sug button:hover { background: var(--hover-bg, #f1f3f4); }
.acc-pilot-sug b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 600; }
.acc-pilot-sug span { grid-column: 1; font-size: 11.5px; color: var(--text-muted); }
.acc-pilot-sug svg { grid-column: 2; grid-row: 1 / span 2; color: var(--acc-report); }
.acc-pilot-cross { align-items: flex-start; line-height: 1.45; }
.acc-pilot-cross i { margin-top: 1px; }

@media (max-width: 1180px) {
    .acc-ctl-funnel { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .acc-ctl-step + .acc-ctl-step::before { display: none; }
    .acc-tiles-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .acc-ctl-row { grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "who trk side" "now now now"; }
}
@media (max-width: 720px) {
    .acc-ctl-hero { grid-template-columns: minmax(0, 1fr); }
    .acc-ctl-hero-main { flex-direction: column; gap: 10px; }
    .acc-ctl-funnel { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .acc-tiles-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .acc-ctl-ov { flex-wrap: wrap; }
    .acc-ctl-ov-nums { width: 100%; }
    .acc-ctl-ov-n { flex: 1; min-width: 0; }
    .acc-ctl-ov .acc-qnote-go { display: none; }
    .acc-ctl-row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "who side" "trk trk" "now now"; padding: 11px 12px 11px 16px; }
    .acc-ctl-side { flex-direction: row; align-items: center; }
    .acc-trk.full { flex-direction: column; align-items: stretch; }
    .acc-trk.full li { flex-direction: row; align-items: flex-start; gap: 10px; padding: 0 0 14px; }
    .acc-trk.full li::after { top: 36px; bottom: 2px; left: 16px; right: auto; width: 2px; height: auto; }
    .acc-trk.full .acc-trk-t { padding-top: 7px; }
    .acc-pilot-add .acc-search, .acc-pilot-add .acc-search input { width: 100%; }
    .acc-pchip b { max-width: 180px; }
    .acc-ctl-dacts .acc-btn .lbl { display: none; }
    .acc-ctl-dacts .acc-btn { width: 34px; padding: 0; }
    .acc-ctl-note { flex-direction: column; gap: 4px; }
    .acc-ctl-note .acc-tag { min-width: 0; }
}
