
.faq-a-inner a { color: var(--violet-ink); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 1. Дашборд агентства: как в платформе — план, факт, темп, цвет ---------- */
.ag-elapsed { gap: 8px; }
.ag-elapsed-mark { width: 2px; height: 12px; border-radius: 2px; background: var(--ink-900); opacity: 0.55; font-style: normal; }
.ag-table { padding-top: 14px; padding-bottom: 6px; }
.ag-row {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1.35fr) minmax(0, 1.05fr) minmax(76px, 0.6fr) 168px;
  gap: 18px;
  align-items: center;
  padding: 12px 10px;
  margin: 0 -10px;
  border-bottom: 1px solid var(--line);
  border-radius: 10px;
  font-size: 13px;
  color: var(--ink-900);
  font-variant-numeric: tabular-nums;
}
.ag-row:last-child { border-bottom: 0; }
.ag-row.is-problem { background: color-mix(in srgb, var(--st-warn) 6%, transparent); border-bottom-color: transparent; margin-bottom: 2px; }
.ag-head { padding-top: 0; padding-bottom: 10px; font-family: var(--font-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-400); }
.ag-cl { display: grid; min-width: 0; }
.ag-cl b { font-weight: 550; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ag-cl small { font-size: 11.5px; color: var(--ink-500); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ag-m { display: grid; gap: 5px; min-width: 0; }
.ag-m-top { display: flex; align-items: baseline; gap: 6px; white-space: nowrap; }
.ag-m-top b { font-weight: 600; font-size: 13.5px; }
.ag-m-top small { font-size: 11.5px; color: var(--ink-500); }
.ag-m .pf-track { display: block; height: 6px; }
.ag-m .pf-mark { top: -4px; bottom: -4px; }
.ag-note { font-size: 11px; line-height: 1.3; color: var(--ink-500); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ag-note.is-warn, .ag-m-top b.is-warn, .is-warn { color: var(--st-warn); }
.ag-note.is-bad, .ag-m-top b.is-bad, .is-bad { color: var(--st-bad); }
.ag-m-top b.is-ok, .is-ok { color: var(--st-ok); }
.ag-note.is-ok { color: var(--ink-500); }
.pf-fill.is-bad { background: var(--st-bad); }
.ag-st { display: grid; gap: 6px; justify-items: end; }
.ag-st .chip { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.ag-btn-mini { --btn-h: 28px; padding: 0 10px; font-size: 12px; }
.ag-total { border-top: 1px solid var(--line-strong); border-radius: 0; margin-top: 4px; }
.ag-total-name { font-weight: 600; }
.ag-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-500); }
.ag-legend span { display: inline-flex; align-items: center; gap: 6px; }
.ag-legend i { width: 14px; height: 6px; border-radius: 99px; font-style: normal; }
.ag-legend i.is-ok { background: var(--st-ok); }
.ag-legend i.is-warn { background: var(--st-warn); }
.ag-legend i.is-bad { background: var(--st-bad); }
.ag-legend-mark { width: 2px !important; height: 12px !important; background: var(--ink-900); opacity: 0.55; }
@media (max-width: 1100px) {
  .ag-row { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.3fr) minmax(0, 1fr) 70px 140px; gap: 12px; }
  .ag-note { white-space: normal; }
}
@media (max-width: 860px) {
  .ag-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 80px; grid-template-areas: "cl cl st" "sp ld cp"; row-gap: 12px; }
  .ag-row > .mt-name { grid-area: cl; }
  .ag-row > .ag-m--spend { grid-area: sp; }
  .ag-row > .ag-m:not(.ag-m--spend):not(.ag-m--cpl) { grid-area: ld; }
  .ag-row > .ag-m--cpl { grid-area: cp; }
  .ag-row > .ag-st { grid-area: st; align-self: start; }
  .ag-row > .ag-total-name { grid-area: cl; }
  .ag-head { display: none; }
}
@media (max-width: 560px) {
  .ag-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "cl cl" "st st" "sp sp" "ld cp"; }
  .ag-row > .ag-st { justify-items: start; padding-left: 31px; }
  .ag-st { display: flex; flex-wrap: wrap; justify-content: flex-start; align-items: center; gap: 8px; }
  .ag-st .chip { max-width: none; }
  .ag-total { grid-template-areas: "cl cl" "sp sp" "ld cp"; }
  .ag-metrics { grid-template-columns: 1fr; }
  .ag-metrics .metric { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
  .ag-metrics .metric-value { margin-top: 0; font-size: 19px; white-space: nowrap; }
}

/* ---------- 2. Сводка ---------- */
.ag-tree { padding-top: 12px; padding-bottom: 8px; }
.ag-tree-row {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: center;
  padding: 9px 0 9px 26px;
  border-bottom: 1px dashed var(--line-strong);
  font-size: 13px;
  color: var(--ink-700);
  font-variant-numeric: tabular-nums;
}
.ag-tree-row > :not(:first-child) { text-align: right; justify-self: end; }
.ag-tree-row:last-child { border-bottom: 0; }
.ag-tree-head { padding-left: 0; padding-top: 0; border-bottom-style: solid; font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-400); }
.ag-tree-row--client { padding-left: 0; color: var(--ink-900); font-weight: 550; border-bottom-style: solid; }
.ag-tree-row--client > span:first-child { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ag-tree-row--client svg { width: 14px; height: 14px; flex: none; color: var(--violet-ink); }
.ag-tree-row--client b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 560px) {
  .ag-tree-row { grid-template-columns: minmax(0, 1fr) auto auto; padding-left: 14px; }
  .ag-tree-row > :nth-child(3) { display: none; }
  .ag-tree-row--client, .ag-tree-head { padding-left: 0; }
}
.ag-pf { display: grid; gap: 0; }
.ag-pf-row { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1fr); gap: 12px; align-items: end; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--ink-900); }
.ag-pf-name { align-self: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ag-pf-cell { display: grid; gap: 5px; }
.ag-pf-cell .pf-track { display: block; height: 6px; }
.ag-pf-cell .pf-mark { top: -4px; bottom: -4px; }
.ag-pf-num { font-size: 12px; color: var(--ink-500); white-space: nowrap; }
.ag-pf-num b { font-weight: 600; color: var(--ink-900); }
.ag-pf-head { padding-top: 0; font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-400); }
.ag-pf-foot { margin-top: 12px; font-size: 12.5px; color: var(--ink-500); line-height: 1.45; }
@media (max-width: 560px) { .ag-pf-row { grid-template-columns: 1fr 1fr; } .ag-pf-name { grid-column: 1 / -1; } .ag-pf-head > :first-child { display: none; } }
.ag-access { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.ag-alert {
  display: grid;
  gap: 12px;
  justify-items: start;
  padding: 20px;
  border: 1px solid color-mix(in srgb, var(--st-warn) 30%, transparent);
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--st-warn) 6%, var(--surface));
}
.ag-alert-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.ag-alert-who { font-size: 13.5px; font-weight: 550; color: var(--ink-900); }
.ag-alert-msg { font-size: 14px; color: var(--ink-700); line-height: 1.5; }
.ag-alert-steps { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 6px; counter-reset: st; font-size: 12.5px; color: var(--ink-500); }
.ag-alert-steps li { counter-increment: st; display: flex; gap: 8px; align-items: baseline; }
.ag-alert-steps li::before { content: counter(st); font-family: var(--font-mono); font-size: 11px; color: var(--violet-ink); }
@media (max-width: 860px) { .ag-access { grid-template-columns: 1fr; } }

/* ---------- 2б. Одна таблица как в дашборде ---------- */
.ag-dash { display: grid; font-size: 13.5px; }
.ag-dash-row {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: center;
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-900);
  font-variant-numeric: tabular-nums;
}
.ag-dash-row > :not(:first-child) { justify-self: end; text-align: right; white-space: nowrap; }
.ag-dash-head { padding-top: 0; font-family: var(--font-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-400); }
.ag-dash-cl { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ag-dash-cl svg { width: 14px; height: 14px; flex: none; color: var(--ink-400); }
.ag-dash-cl b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ag-dash-row.is-open { background: color-mix(in srgb, var(--violet) 5%, transparent); border-bottom-color: transparent; border-radius: 10px 10px 0 0; }
.ag-dash-row.is-open .ag-dash-cl svg { color: var(--violet-ink); }
.ag-dash-row.is-ch { padding-left: 32px; background: color-mix(in srgb, var(--violet) 2.5%, transparent); color: var(--ink-700); font-size: 13px; }
.ag-dash-row.is-ch .mt-name { color: var(--ink-900); font-weight: 500; }
.ag-active { margin-left: 8px; font-size: 11.5px; font-weight: 400; color: var(--ink-500); white-space: nowrap; }
.ag-d { position: relative; top: -5px; margin-left: 4px; font-size: 10.5px; font-weight: 600; color: var(--ink-400); white-space: nowrap; }
.ag-d.is-good { color: var(--st-ok); }
.ag-d.is-badd { color: var(--st-bad); }
.ag-d.is-neutral { color: var(--ink-400); font-weight: 500; }
.ag-dash-note { margin-top: 4px; font-size: 12.5px; color: var(--ink-500); }
.ag-dash-note .ag-d { top: 0; margin: 0 2px 0 0; font-size: 12.5px; }
@media (max-width: 760px) {
  .ag-dash-row { grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 8px; padding: 11px 6px; font-size: 12.5px; }
  .ag-dash-row.is-ch { padding-left: 14px; }
  .ag-dash-row .mt-name i { display: none; }
  .ag-dash-cl b { white-space: normal; overflow: hidden; overflow-wrap: anywhere; hyphens: auto; line-height: 1.3; font-size: 12px; }
  .ag-dash-row { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 0.6fr) minmax(0, 0.9fr); }
  .ag-dash-cl { align-items: flex-start; }
  .ag-active { display: block; margin-left: 0; }
  .ag-dash-row .mt-name { flex-direction: column; align-items: flex-start; gap: 0; }
  .ag-dash-row > :not(:first-child) { white-space: normal; }
  .ag-d { display: block; top: 0; margin-left: 0; }
}

/* ---------- 3. Режимы по клиентам ---------- */
.ag-modes { border: 1px solid var(--line); border-radius: var(--radius-md); padding: 4px 16px; background: var(--surface-2); }
.ag-modes .toggle-row > span:first-child { min-width: 0; color: var(--ink-900); }
.ag-mode { display: inline-flex; align-items: center; gap: 12px; flex: none; }
.ag-mode .chip { min-width: 104px; justify-content: center; }
.ag-modes-note { margin-top: 14px; line-height: 1.5; }

/* ---------- 4. Отчёты ---------- */
.ag-split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.ag-split-text { display: grid; gap: 24px; }
.ag-split-text .checks { margin-top: 8px; gap: 16px; }
.ag-report .mt-row { --mt-cols: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); }
@media (max-width: 960px) { .ag-split { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .ag-report .mt-row { --mt-cols: minmax(0, 1fr) 64px 34px 52px; gap: 8px; font-size: 12px; } }

.log-btn { --btn-h: 24px; padding: 0 10px; margin-left: 6px; font-size: 11.5px; vertical-align: middle; }

/* ---------- 4б. Шапка отчёта в стиле агентства ---------- */
.ag-brand { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; padding: 14px 22px; border-bottom: 1px solid var(--line); background: linear-gradient(90deg, color-mix(in srgb, var(--sky) 14%, var(--surface)), var(--surface)); }
.ag-brand-logo { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; background: linear-gradient(135deg, #1d78ad, #47bfff); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 14px; }
.ag-brand-name { font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--ink-900); }
.ag-brand-doc { margin-left: auto; font-size: 12px; color: var(--ink-500); }
@media (max-width: 560px) { .ag-brand { padding: 12px 16px; } .ag-brand-doc { margin-left: 0; width: 100%; } }

/* ---------- 5. Креативы ---------- */
.ag-split--rev > .ag-split-text { order: 2; }
.ag-split--rev { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
.ag-packs { gap: 10px; }
.ag-pack { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); }
.ag-thumbs { display: flex; }
.ag-th { position: relative; width: 64px; height: 64px; flex: none; border-radius: 11px; overflow: hidden; border: 2px solid var(--surface); box-shadow: 0 2px 6px rgba(21, 19, 29, 0.16); background: var(--surface-3); }
.ag-th + .ag-th { margin-left: -22px; }
.ag-th img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ag-th-btn { position: absolute; left: 8px; right: 8px; bottom: 7px; height: 9px; border-radius: 99px; font-style: normal; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25); }
.ag-th-btn--a { background: #863bff; }
.ag-th-btn--b { background: #ffffff; }
.ag-th-btn--c { background: #47bfff; right: 20px; }
.ag-th-play { position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; background: rgba(255, 255, 255, 0.9); font-style: normal; }
.ag-th-play::after { content: ""; position: absolute; left: 8px; top: 6px; border-left: 8px solid #15131d; border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.ag-pack-info { display: grid; min-width: 0; }
.ag-pack-info b { font-size: 13.5px; font-weight: 550; color: var(--ink-900); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ag-pack-info small { font-size: 12px; color: var(--ink-500); }
@media (max-width: 960px) { .ag-split--rev > .ag-split-text { order: 0; } .ag-split--rev { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .ag-pack { grid-template-columns: auto minmax(0, 1fr); } .ag-pack .chip { grid-column: 2; justify-self: start; } }

/* ---------- 6. Звонки ---------- */
.ag-calls { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 16px; align-items: stretch; }
.ag-call-table { display: grid; font-size: 13px; }
.ag-call-row { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(5, minmax(0, 0.7fr)); gap: 10px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); color: var(--ink-900); font-variant-numeric: tabular-nums; }
.ag-call-row:last-child { border-bottom: 0; }
.ag-call-row > :not(:first-child) { justify-self: end; text-align: right; }
.ag-call-row > :first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; }
.ag-call-head { padding-top: 0; font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-400); }
.ag-call-head > :first-child { font-weight: 400; }
.ag-call-card { gap: 0; }
.ag-call-tip { margin-top: 16px; font-size: 14px; color: var(--ink-900); line-height: 1.5; }
.ag-call-tip .chip { margin-right: 8px; }
.ag-call-card .small { margin-top: 12px; line-height: 1.5; }
@media (max-width: 960px) { .ag-calls { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .ag-call-row { grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(0, 0.7fr)); gap: 6px; font-size: 12px; } .ag-hide-sm { display: none; } }

/* ---------- 8. Помощник и Telegram ---------- */
.ag-chat .bubble { max-width: 92%; }
.ag-voice { display: inline-flex; align-items: center; gap: 2px; height: 14px; margin-right: 8px; vertical-align: -2px; }
.ag-voice i { width: 2px; border-radius: 2px; background: var(--violet); font-style: normal; }
.ag-voice i:nth-child(1) { height: 6px; } .ag-voice i:nth-child(2) { height: 12px; } .ag-voice i:nth-child(3) { height: 8px; } .ag-voice i:nth-child(4) { height: 14px; } .ag-voice i:nth-child(5) { height: 7px; } .ag-voice i:nth-child(6) { height: 11px; } .ag-voice i:nth-child(7) { height: 5px; }
.ag-chat-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.ag-tg { display: grid; gap: 10px; }
.ag-tg-msg { display: grid; gap: 8px; justify-items: start; padding: 14px 16px; border-radius: 16px 16px 16px 6px; border: 1px solid var(--line); background: var(--surface-2); }
.ag-tg-msg p { font-size: 13.5px; color: var(--ink-900); line-height: 1.5; }
.ag-tg-msg time { justify-self: end; font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-400); }
.ag-tg-msg--urgent { border-color: color-mix(in srgb, var(--st-bad) 28%, transparent); background: color-mix(in srgb, var(--st-bad) 6%, var(--surface)); }

/* ---------- 7. Роли ---------- */
.ag-perm { display: grid; font-size: 12.5px; }
.ag-perm-row {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-900);
}
.ag-perm-row:last-child { border-bottom: 0; }
.ag-perm-row .chip { justify-self: start; }
.ag-perm-head { padding-top: 0; font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-400); }
@media (max-width: 560px) {
  .ag-perm { font-size: 11.5px; }
  .ag-perm-row { grid-template-columns: minmax(0, 1.15fr) repeat(3, minmax(0, 1fr)); gap: 4px; }
  .ag-perm-head { font-size: 8.5px; letter-spacing: 0.02em; }
  .ag-perm-row .chip { padding-left: 6px; padding-right: 6px; font-size: 10.5px; }
}

/* ---------- 6. Ещё ---------- */
.ag-more .int-cat-text { font-size: 14.5px; line-height: 1.55; }

.ag-noaccess { align-items: center; }
