/* ══════════════════════════════════════
   AUDIT — pages/audit.css
   Block: Timeline, compare selectors, single/compare views
   ══════════════════════════════════════ */

/* ── Timeline header ── */
.audit-timeline-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: var(--ink3);
    margin-bottom: 10px;
}

/* ── Dot timeline ── */
.audit-timeline {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.audit-dot-item {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all .15s;
}

.audit-dot {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: var(--ink3);
    transition: all .15s;
    position: relative;
}

.audit-dot.selected {
    background: var(--brand-gradient);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0,192,84,.35);
}

.audit-dot.selected::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0; height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid var(--accent);
}

.audit-dot-label { font-size: 10px; color: var(--ink3); white-space: nowrap; text-align: center; }

.audit-dot-score {
    font-size: 9px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 10px;
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--ink3);
}

.audit-dot-score--active {
    background: var(--accent-light);
    color: #157a3a;
    border-color: rgba(0,192,84,.2);
}

.audit-connector {
    flex-shrink: 0;
    width: 24px;
    height: 2px;
    background: var(--border);
    margin-top: 21px;
    border-radius: 2px;
}

/* ── Mode bar ── */
.audit-mode-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    gap: 12px;
    flex-wrap: wrap;
}

.audit-mode-btns {
    display: flex;
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: 10px;
    padding: 3px;
    gap: 2px;
}

.audit-mode-btn {
    padding: 6px 14px;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    background: transparent;
    color: var(--ink3);
    transition: all .15s;
    font-family: 'Onest', sans-serif;
}

.audit-mode-btn.active {
    background: var(--white);
    color: var(--ink);
    box-shadow: 0 1px 4px rgba(0,0,0,.08);
}

.audit-select-hint { font-size: 12px; color: var(--ink3); display: flex; align-items: center; gap: 6px; }
.audit-select-hint span { color: var(--accent); font-weight: 600; }

/* ── Compare selectors ── */
.audit-compare-selectors-wrap { margin-bottom: 16px; }

.audit-compare-selectors {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.audit-selector-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--ink3);
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 6px;
}

.audit-selector {
    padding: 9px 14px;
    border: 1.5px solid var(--border);
    border-radius: 9px;
    font-family: 'Onest', sans-serif;
    font-size: 13px;
    color: var(--ink);
    background: var(--white);
    outline: none;
    min-width: 220px;
}

.audit-vs-sep { font-size: 18px; color: var(--ink3); padding-bottom: 8px; }

/* ── Single view: score hero ── */
.audit-score-hero {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 24px;
    align-items: center;
    background: var(--brand-gradient-alt);
    border-radius: 16px;
    padding: 24px 28px;
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
}

.audit-score-hero::before {
    content: '';
    position: absolute;
    top: -30px; right: 60px;
    width: 160px; height: 160px;
    background: radial-gradient(circle, rgba(0,192,84,.3) 0%, transparent 70%);
    pointer-events: none;
}

.audit-big-score {
    font-family: 'Unbounded', sans-serif;
    font-size: 64px;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    text-shadow: 0 2px 16px rgba(0,0,0,.15);
    position: relative;
    z-index: 1;
}

.audit-big-score span { font-size: 20px; font-weight: 400; opacity: .6; }

.audit-hero-right { position: relative; z-index: 1; }
.audit-hero-date  { font-family: 'Unbounded', sans-serif; font-size: 15px; font-weight: 700; color: #fff; }
.audit-hero-sub   { font-size: 13px; color: rgba(255,255,255,.6); margin-top: 4px; }

.audit-hero-tags  { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }

/* ── Delta badges ── */
.audit-delta { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 20px; display: inline-block; }
.audit-delta.up   { background: rgba(255,255,255,.2); color: #4ade80; }
.audit-delta.down { background: rgba(255,255,255,.15); color: #fca5a5; }
.audit-delta.same { background: rgba(255,255,255,.1);  color: rgba(255,255,255,.5); }

/* ── Audit list ── */
.audit-list { display: flex; flex-direction: column; gap: 8px; }

.audit-list-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    transition: border-color .15s;
}

.audit-list-item:hover { border-color: var(--ink4); }

.audit-list-score {
    font-family: 'Unbounded', sans-serif;
    font-size: 22px;
    font-weight: 800;
    min-width: 44px;
    text-align: center;
}

.audit-list-score.ok   { color: var(--green); }
.audit-list-score.warn { color: var(--orange); }
.audit-list-score.bad  { color: var(--red); }

.audit-list-info  { flex: 1; }
.audit-list-date  { font-size: 13.5px; font-weight: 600; }
.audit-list-badge { font-size: 11px; padding: 2px 7px; border-radius: 10px; font-weight: 600; margin-left: 6px; }

.audit-list-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 5px; }

.audit-list-tag {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 20px;
}

.audit-list-tag.up   { background: var(--green-light);  color: var(--green); }
.audit-list-tag.down { background: var(--red-light);    color: var(--red); }
.audit-list-tag.same { background: var(--bg);           color: var(--ink3); border: 1px solid var(--border); }

.audit-list-delta { font-family: 'Unbounded', sans-serif; font-size: 14px; font-weight: 700; min-width: 36px; text-align: right; }
.audit-list-delta.up   { color: var(--green); }
.audit-list-delta.down { color: var(--red); }
.audit-list-delta.same { color: var(--ink3); }

/* ── Compare view ── */
.audit-compare-header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 20px;
    align-items: center;
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 28px;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
}

.audit-compare-col-head { text-align: center; }
.audit-compare-col-head.col-b {}

.audit-cch-date  { font-size: 13px; font-weight: 600; color: var(--ink2); margin-bottom: 8px; }

.audit-cch-score {
    font-family: 'Unbounded', sans-serif;
    font-size: 44px;
    font-weight: 800;
    line-height: 1;
}

.audit-cch-score.ok   { color: var(--green); }
.audit-cch-score.warn { color: var(--orange); }
.audit-cch-score.bad  { color: var(--red); }

.audit-cch-sub           { font-size: 12px; color: var(--ink3); margin-top: 4px; }
.audit-cch-sub--positive { color: var(--green); font-weight: 600; }

.audit-vs-badge {
    font-family: 'Unbounded', sans-serif;
    font-size: 14px;
    font-weight: 800;
    color: var(--ink3);
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: 50%;
    width: 40px; height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    justify-self: center;
}

/* ── Compare table rows ── */
.audit-compare-table {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.audit-cmp-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 16px;
    align-items: center;
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: 12px;
    padding: 14px 20px;
    box-shadow: var(--shadow);
}

.audit-cmp-cell    { text-align: center; }
.audit-cmp-middle  { text-align: center; min-width: 120px; }

.audit-cmp-val {
    font-family: 'Unbounded', sans-serif;
    font-size: 24px;
    font-weight: 800;
}

.audit-cmp-val.ok   { color: var(--green); }
.audit-cmp-val.warn { color: var(--orange); }
.audit-cmp-val.bad  { color: var(--red); }

.audit-cmp-sub           { font-size: 11px; color: var(--ink3); margin-top: 3px; }
.audit-cmp-metric-icon   { font-size: 20px; margin-bottom: 4px; }
.audit-cmp-metric-name   { font-size: 12px; font-weight: 700; color: var(--ink2); }

/* ── Insight diff block ── */
.audit-insight-diff {
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 22px;
    display: flex;
    gap: 14px;
    box-shadow: var(--shadow);
}

.audit-insight-icon    { font-size: 24px; flex-shrink: 0; }
.audit-insight-content { flex: 1; }
.audit-insight-title   { font-family: 'Unbounded', sans-serif; font-size: 13px; font-weight: 700; margin-bottom: 12px; }

.audit-insight-items { display: flex; flex-direction: column; gap: 8px; }

.audit-insight-item {
    font-size: 13px;
    line-height: 1.5;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    border-left: 3px solid transparent;
}

.audit-insight-item.good    { background: #f0fdf4; border-left-color: var(--green); color: var(--ink2); }
.audit-insight-item.bad     { background: #fff5f5; border-left-color: var(--red);   color: var(--ink2); }
.audit-insight-item.neutral { background: var(--bg); border-left-color: var(--ink4); color: var(--ink3); }

/* ══════════════════════════════════════
   ИИ АУДИТ MODERN — ia-* components
   ══════════════════════════════════════ */

.ia-page { padding: 0; background: transparent; }

.ia-shell {
    --ia-green: #A8E76A;
    --ia-ink: #111217;
    --ia-muted: #8d919d;
    --ia-line: rgba(17,18,23,.075);
    --ia-card: rgba(255,255,255,.68);
    --ia-card-border: rgba(255,255,255,.72);
    min-height: 100vh;
    padding: 22px 28px 40px;
    color: var(--ia-ink);
}

/* ── Topbar ── */
.ia-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ia-topbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ia-scan-date {
    font-size: 12px;
    color: var(--ia-muted);
    font-weight: 600;
}

.ia-run-btn {
    height: 38px;
    padding: 0 18px;
    border: none;
    border-radius: 999px;
    background: var(--ia-ink);
    color: #fff;
    font-family: inherit;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: opacity .15s;
}
.ia-run-btn:hover { opacity: .8; }
.ia-run-btn:disabled { opacity: .45; filter: grayscale(.4); cursor: not-allowed; }
.ia-run-btn:disabled:hover { opacity: .45; }

/* ── Title row ── */
.ia-title-row {
    margin-top: 36px;
    margin-bottom: 22px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
}

.ia-title-row h1 {
    margin: 0;
    font-family: 'Unbounded', sans-serif;
    font-size: clamp(30px, 3.5vw, 48px);
    line-height: .95;
    font-weight: 800;
}

.ia-title-row p {
    margin: 8px 0 0;
    color: var(--ia-muted);
    font-size: 14px;
}

.ia-title-score {
    flex-shrink: 0;
    display: flex;
    align-items: baseline;
    gap: 5px;
}

.ia-title-score strong {
    font-family: 'Unbounded', sans-serif;
    font-size: 44px;
    line-height: 1;
    font-weight: 800;
}

.ia-title-score span {
    font-size: 16px;
    color: var(--ia-muted);
    font-weight: 700;
}

/* ── Tabs ── */
.ia-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    margin-bottom: 18px;
    background: rgba(255,255,255,.55);
    border: 1px solid rgba(255,255,255,.72);
    border-radius: 14px;
    padding: 4px;
    width: fit-content;
}

.ia-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 34px;
    padding: 0 16px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: var(--ia-muted);
    font-family: inherit;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: all .15s;
    white-space: nowrap;
}

.ia-tab:hover { color: var(--ia-ink); background: rgba(255,255,255,.4); }

.ia-tab.active {
    background: var(--ia-ink);
    color: #fff;
}

.ia-tab-locked { opacity: .6; }
.ia-tab-locked.active { opacity: 1; }

/* ── Views ── */
.ia-view { display: none; }
.ia-view.active { display: block; }

/* ── Card base ── */
.ia-card {
    background: var(--ia-card);
    border: 1px solid var(--ia-card-border);
    border-radius: 20px;
    overflow: hidden;
    transition: border-color .15s;
}
.ia-card:hover { border-color: rgba(17,18,23,.09); }

/* ── OVERVIEW layout ── */
.ia-overview-top {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 14px;
    margin-bottom: 14px;
}

/* Score card */
.ia-score-card {
    padding: 24px 26px;
    display: flex;
    flex-direction: column;
}

.ia-score-kicker {
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--ia-muted);
    margin-bottom: 18px;
}

.ia-score-row {
    display: flex;
    align-items: flex-end;
    gap: 14px;
    margin-bottom: 14px;
}

.ia-score-num {
    font-family: 'Unbounded', sans-serif;
    font-size: 72px;
    font-weight: 800;
    line-height: .86;
}

.ia-score-num.good { color: var(--ia-ink); }
.ia-score-num.warn { color: #92400e; }
.ia-score-num.bad  { color: #991b1b; }
.ia-score-num.none { color: var(--ia-muted); }

.ia-score-meta { padding-bottom: 4px; }

.ia-score-meta span {
    display: block;
    color: var(--ia-muted);
    font-size: 15px;
    font-weight: 700;
}

.ia-score-meta small {
    display: block;
    margin-top: 7px;
    font-size: 12px;
    font-weight: 800;
    color: #43712d;
}

.ia-score-meta small.down { color: #991b1b; }
.ia-score-meta small.flat { color: var(--ia-muted); }

.ia-score-insight {
    flex: 1;
    margin: 0 0 20px;
    color: #4b4f5a;
    font-size: 13px;
    line-height: 1.65;
    max-width: 480px;
}

.ia-score-bars {
    height: 90px;
    padding-top: 14px;
    border-top: 1px solid var(--ia-line);
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 7px;
    align-items: end;
}

.ia-score-bar {
    height: 100%;
    display: grid;
    grid-template-rows: 1fr 16px;
    align-items: end;
    justify-items: center;
    gap: 5px;
}

.ia-score-bar i {
    display: block;
    position: relative;
    width: 100%;
    min-height: 8px;
    border-radius: 8px 8px 3px 3px;
    background: var(--ia-green);
    opacity: .9;
    cursor: default;
}

.ia-score-bar.empty i { background: rgba(17,18,23,.07); opacity: 1; }

/* Тултип с оценкой при наведении на завершённый аудит */
.ia-score-bar:not(.empty) i::before {
    content: attr(data-score) " / 100";
    position: absolute;
    bottom: calc(100% + 9px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: var(--ia-ink);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    padding: 5px 11px;
    border-radius: 8px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity .15s ease, transform .15s ease;
    z-index: 5;
}

.ia-score-bar:not(.empty) i::after {
    content: "";
    position: absolute;
    bottom: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: var(--ia-ink);
    opacity: 0;
    pointer-events: none;
    transition: opacity .15s ease;
    z-index: 5;
}

.ia-score-bar:not(.empty) i:hover::before {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.ia-score-bar:not(.empty) i:hover::after {
    opacity: 1;
}

.ia-score-bar span {
    font-size: 9px;
    font-weight: 800;
    color: var(--ia-muted);
}

/* Category grid */
.ia-cat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.ia-cat-card {
    padding: 18px;
    cursor: pointer;
    transition: transform .15s, border-color .15s;
}

.ia-cat-card:hover { transform: translateY(-2px); border-color: rgba(17,18,23,.1); }

.ia-cat-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.ia-cat-icon-wrap {
    display: flex;
    align-items: center;
    gap: 9px;
}

.ia-cat-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.ia-cat-icon.green { background: #edfadb; color: #315d20; }
.ia-cat-icon.amber { background: #fef3c7; color: #92400e; }
.ia-cat-icon.red   { background: #fee2e2; color: #991b1b; }
.ia-cat-icon.muted { background: rgba(17,18,23,.05); color: var(--ia-muted); }

.ia-cat-name {
    font-size: 13px;
    font-weight: 800;
}

.ia-cat-score {
    font-family: 'Unbounded', sans-serif;
    font-size: 22px;
    font-weight: 800;
    line-height: 1;
}

.ia-cat-score.good { color: #315d20; }
.ia-cat-score.warn { color: #92400e; }
.ia-cat-score.bad  { color: #991b1b; }
.ia-cat-score.none { color: var(--ia-muted); font-size: 18px; }

.ia-cat-bar-wrap {
    height: 4px;
    background: rgba(17,18,23,.07);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 12px;
}

.ia-cat-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width .8s ease;
}

.ia-cat-bar-fill.good { background: #A8E76A; }
.ia-cat-bar-fill.warn { background: #fbbf24; }
.ia-cat-bar-fill.bad  { background: #f87171; }
.ia-cat-bar-fill.none { background: rgba(17,18,23,.08); width: 30% !important; }

.ia-cat-stats {
    display: flex;
    gap: 14px;
}

.ia-cat-stat {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 800;
}

.ia-cat-stat-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

.ia-cat-stat-dot.good { background: #A8E76A; }
.ia-cat-stat-dot.warn { background: #fbbf24; }
.ia-cat-stat-dot.bad  { background: #f87171; }
.ia-cat-stat-dot.muted { background: rgba(17,18,23,.15); }

.ia-cat-stat.good { color: #43712d; }
.ia-cat-stat.warn { color: #92400e; }
.ia-cat-stat.bad  { color: #991b1b; }
.ia-cat-stat.muted { color: var(--ia-muted); }

/* ── Что изменилось с прошлого аудита ── */
.ia-changes-card {
    padding: 18px 22px;
    margin-bottom: 14px;
}

.ia-changes-kicker {
    display: block;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--ia-muted);
    margin-bottom: 12px;
}

/* Сравнение score: прошлый аудит → текущий */
.ia-compare-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
}

.ia-compare-stat {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px 18px;
    background: rgba(255,255,255,.55);
    border: 1px solid var(--ia-line);
    border-radius: 14px;
}

.ia-compare-stat--up {
    background: linear-gradient(135deg, rgba(168,231,106,.34), rgba(255,255,255,.88) 68%);
    border-color: rgba(168,231,106,.4);
}

.ia-compare-stat--down {
    background: linear-gradient(135deg, rgba(248,113,113,.16), rgba(255,255,255,.88) 68%);
    border-color: rgba(248,113,113,.28);
}

.ia-compare-label {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: var(--ia-muted);
}

.ia-compare-values {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.ia-compare-prev {
    font-size: 14px;
    font-weight: 700;
    color: var(--ia-muted);
}

.ia-compare-arrow {
    font-size: 12px;
    color: var(--ia-muted);
}

.ia-compare-now {
    font-family: 'Unbounded', sans-serif;
    font-size: 19px;
    font-weight: 800;
    color: var(--ia-ink);
}

.ia-compare-delta {
    font-size: 11px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 999px;
    margin-left: 2px;
}

.ia-compare-delta--up   { background: #edfadb; color: #315d20; }
.ia-compare-delta--down { background: #fee2e2; color: #991b1b; }
.ia-compare-delta--flat { background: rgba(17,18,23,.06); color: var(--ia-muted); }

/* Выросшие позиции по ключевым словам */
.ia-changes-kw {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--ia-line);
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.ia-changes-kw-label {
    font-size: 11px;
    font-weight: 800;
    color: var(--ia-muted);
    margin-bottom: 2px;
}

.ia-changes-kw-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.ia-changes-kw-text {
    font-size: 13px;
    font-weight: 600;
    color: var(--ia-ink);
}

.ia-changes-kw-pos {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}
.ia-changes-kw-pos .ia-compare-now { font-size: 13px; }

@media (max-width: 720px) {
    .ia-compare-row { gap: 18px; }
}

/* ── Мостик к «Задачи от ИИ» (футер внутри карточки задач) ── */
.ia-tasks-bridge {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--ia-line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    cursor: pointer;
    transition: opacity .15s;
    flex-wrap: wrap;
}
.ia-tasks-bridge:hover { opacity: .7; }

.ia-tasks-bridge-text {
    font-size: 12px;
    font-weight: 700;
    color: var(--ia-muted);
}

.ia-tasks-bridge-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.ia-bridge-bar-wrap {
    width: 90px;
    height: 6px;
    background: rgba(17,18,23,.07);
    border-radius: 999px;
    overflow: hidden;
}

.ia-bridge-bar-fill {
    height: 100%;
    background: var(--ia-green);
    border-radius: 999px;
    transition: width .4s ease;
}

.ia-bridge-pct {
    font-family: 'Unbounded', sans-serif;
    font-size: 14px;
    font-weight: 800;
    color: var(--ia-ink);
    min-width: 34px;
    text-align: right;
}

.ia-bridge-arrow {
    font-size: 14px;
    color: var(--ia-muted);
    font-weight: 700;
}

/* ── Overview bottom row ── */
.ia-overview-bottom {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.ia-issues-card,
.ia-tasks-card {
    padding: 22px;
}

.ia-tasks-card {
    background: linear-gradient(135deg, rgba(168,231,106,.4), rgba(255,255,255,.88) 62%);
    border-color: rgba(168,231,106,.38);
    display: flex;
    flex-direction: column;
}

.ia-card-title {
    font-size: 14px;
    font-weight: 900;
    margin: 0 0 4px;
}

.ia-card-sub {
    font-size: 12px;
    color: var(--ia-muted);
    margin: 0 0 16px;
}

/* ── Результаты анализа: донат good/bad + топ проблемы + хорошее ── */
.ia-issues-card { display: flex; flex-direction: column; }

.ia-issues-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 22px;
    justify-content: space-between;
}

.ia-issues-body {
    display: flex;
    align-items: flex-start;
    gap: 28px;
}

.ia-donut-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.ia-donut {
    width: 128px;
    height: 128px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.ia-donut-hole {
    width: 98px;
    height: 98px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.ia-donut-num {
    font-family: 'Unbounded', sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: var(--ia-ink);
    line-height: 1;
}

.ia-donut-label {
    color: var(--ia-muted);
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-top: 4px;
}

.ia-donut-legend {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.ia-donut-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 850;
    color: var(--ia-ink);
    white-space: nowrap;
}

.ia-donut-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    flex-shrink: 0;
}

.ia-donut-dot.good { background: var(--ia-green); }
.ia-donut-dot.bad  { background: #f87171; }

.ia-issues-top {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.ia-issues-top-label {
    color: var(--ia-muted);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 5px;
}

.ia-issues-top-list {
    display: flex;
    flex-direction: column;
}

/* Строка-разделитель в стиле home-modern (.hm-pos-row) */
.ia-hm-row {
    min-height: 34px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    border-top: 1px solid var(--ia-line);
}
.ia-hm-row:first-child { border-top: none; }

.ia-hm-row span {
    min-width: 0;
    color: #4b4f5a;
    font-size: 12px;
    font-weight: 850;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ia-hm-row i {
    flex-shrink: 0;
    min-width: 64px;
    height: 22px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(17,18,23,.08);
    color: #4b4f5a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-style: normal;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .02em;
}

.ia-issues-good {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--ia-line);
}

.ia-issues-good-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ia-issues-good-chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 13px;
    border-radius: 999px;
    background: rgba(168,231,106,.32);
    color: #173111;
    font-size: 11px;
    font-weight: 850;
}

.ia-analysis-empty--compact { padding: 8px 0; text-align: left; }

@media (max-width: 720px) {
    .ia-issues-body { flex-direction: column; align-items: center; gap: 18px; }
    .ia-donut-wrap { flex-direction: row; gap: 18px; }
    .ia-issues-top { width: 100%; }
}

/* Tasks list */
.ia-task-list {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.ia-task-row {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 12px 14px;
    background: rgba(255,255,255,.5);
    border: 1px solid rgba(17,18,23,.06);
    border-radius: 12px;
    cursor: pointer;
    transition: border-color .12s, background .12s;
}

.ia-task-row:hover {
    border-color: rgba(17,18,23,.15);
    background: rgba(255,255,255,.75);
}

.ia-task-num {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    font-size: 10px;
    font-weight: 900;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    margin-top: 1px;
}

.ia-task-num.p1 { background: #fee2e2; color: #991b1b; }
.ia-task-num.p2 { background: #ffedd5; color: #9a3412; }
.ia-task-num.p3 { background: #fef3c7; color: #92400e; }
.ia-task-num.pn { background: rgba(17,18,23,.08); color: var(--ia-ink); }

.ia-task-body { flex: 1; min-width: 0; }

.ia-task-title {
    font-size: 12px;
    font-weight: 700;
    line-height: 1.45;
    color: var(--ia-ink);
    margin-bottom: 5px;
}

.ia-task-meta {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
}

.ia-task-badge {
    font-size: 10px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 999px;
}

.ia-task-badge.critical { background: #fee2e2; color: #991b1b; }
.ia-task-badge.high     { background: #ffedd5; color: #9a3412; }
.ia-task-badge.medium   { background: #fef3c7; color: #92400e; }
.ia-task-badge.low      { background: #dcfce7; color: #166534; }

.ia-task-desc {
    font-size: 11px;
    color: var(--ia-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 220px;
}

/* ── SUB-PAGE views ── */
.ia-subview {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ia-subview-header {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 20px;
    padding: 26px 28px;
}

.ia-subview-kicker {
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--ia-muted);
    margin-bottom: 10px;
}

.ia-subview-title {
    font-family: 'Unbounded', sans-serif;
    font-size: 22px;
    font-weight: 800;
    margin: 0 0 6px;
}

.ia-subview-desc {
    font-size: 13px;
    color: var(--ia-muted);
    margin: 0;
    line-height: 1.55;
    max-width: 540px;
}

.ia-subview-score-wrap { text-align: right; }

.ia-subview-score {
    font-family: 'Unbounded', sans-serif;
    font-size: 52px;
    font-weight: 800;
    line-height: 1;
}

.ia-subview-score.good { color: #315d20; }
.ia-subview-score.warn { color: #92400e; }
.ia-subview-score.bad  { color: #991b1b; }
.ia-subview-score.none { color: var(--ia-muted); }

.ia-subview-score-label {
    font-size: 12px;
    color: var(--ia-muted);
    font-weight: 700;
    margin-top: 3px;
}

/* 3-col analysis */
.ia-analysis-3col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.ia-analysis-col { padding: 20px 22px; }

.ia-col-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--ia-line);
}

.ia-col-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.ia-col-good .ia-col-dot { background: #A8E76A; }
.ia-col-bad  .ia-col-dot { background: #f87171; }
.ia-col-todo .ia-col-dot { background: #fbbf24; }

.ia-col-label {
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.ia-col-count {
    margin-left: auto;
    font-size: 11px;
    font-weight: 800;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: grid;
    place-items: center;
}

.ia-col-good .ia-col-label { color: #315d20; }
.ia-col-bad  .ia-col-label { color: #991b1b; }
.ia-col-todo .ia-col-label { color: #92400e; }

.ia-col-good .ia-col-count { background: rgba(168,231,106,.25); color: #315d20; }
.ia-col-bad  .ia-col-count { background: rgba(248,113,113,.2);  color: #991b1b; }
.ia-col-todo .ia-col-count { background: rgba(251,191,36,.2);   color: #92400e; }

.ia-analysis-items {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.ia-analysis-item {
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 12px;
    line-height: 1.5;
    font-weight: 500;
}

.ia-col-good .ia-analysis-item { background: rgba(168,231,106,.12); color: var(--ia-ink); }
.ia-col-bad  .ia-analysis-item { background: rgba(248,113,113,.1);  color: var(--ia-ink); }
.ia-col-todo .ia-analysis-item { background: rgba(251,191,36,.1);   color: var(--ia-ink); }

.ia-analysis-item-title {
    font-weight: 700;
    margin-bottom: 2px;
}

.ia-analysis-item-desc {
    color: var(--ia-muted);
    font-size: 11px;
    margin-top: 3px;
}

.ia-analysis-empty {
    text-align: center;
    padding: 24px 0;
    font-size: 12px;
    color: var(--ia-muted);
}

/* Sub-page tasks */
.ia-subpage-tasks { padding: 22px 24px; }

.ia-subpage-tasks-title {
    font-size: 13px;
    font-weight: 900;
    margin: 0 0 14px;
}

/* ── Coming soon ── */
.ia-coming-wrap {
    padding: 70px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
}

.ia-coming-icon {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    background: rgba(255,255,255,.85);
    border: 1px solid rgba(255,255,255,.9);
    display: grid;
    place-items: center;
    margin-bottom: 24px;
    color: var(--ia-muted);
}

.ia-coming-badge {
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #315d20;
    background: rgba(168,231,106,.3);
    border-radius: 999px;
    padding: 4px 14px;
    margin-bottom: 20px;
}

.ia-coming-badge--locked {
    color: var(--ia-muted);
    background: rgba(17,18,23,.07);
}

.ia-coming-title {
    font-family: 'Unbounded', sans-serif;
    font-size: 20px;
    font-weight: 800;
    margin: 0 0 12px;
}

.ia-coming-desc {
    font-size: 14px;
    color: var(--ia-muted);
    line-height: 1.7;
    margin: 0;
}

/* ── Empty state ── */
.ia-empty {
    padding: 60px 32px;
    text-align: center;
}

#iaCriticalTaskEmpty {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 32px;
}

.ia-empty-title {
    font-family: 'Unbounded', sans-serif;
    font-size: 18px;
    font-weight: 800;
    margin: 0 0 10px;
}

.ia-empty-desc {
    font-size: 13px;
    color: var(--ia-muted);
    line-height: 1.6;
    margin: 0 0 22px;
}

.ia-empty-btn {
    height: 38px;
    padding: 0 20px;
    border: none;
    border-radius: 999px;
    background: var(--ia-ink);
    color: #fff;
    font-family: inherit;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.ia-empty-btn:hover { opacity: .82; }

/* ── Responsive ── */
@media (max-width: 1100px) {
    .ia-overview-top { grid-template-columns: 1fr; }
    .ia-overview-bottom { grid-template-columns: 1fr; }
    .ia-analysis-3col { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
    .ia-shell { padding: 18px 16px 30px; }
    .ia-cat-grid { grid-template-columns: 1fr 1fr; }
    .ia-title-row { flex-direction: column; align-items: flex-start; }
}

/* ══════════════════════════════════════
   ПЛОЩАДКИ — ia-pf-* components
   ══════════════════════════════════════ */

/* Status badge (shared) */
.ia-pf-badge {
    flex-shrink: 0;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .04em;
    padding: 3px 10px;
    border-radius: 999px;
    white-space: nowrap;
}

.ia-pf-badge--active  { background: rgba(168,231,106,.25); color: #315d20; }
.ia-pf-badge--warning { background: rgba(251,191,36,.2);   color: #92400e; }
.ia-pf-badge--missing { background: rgba(248,113,113,.15); color: #991b1b; }

.ia-pf-badge--good { background: rgba(168,231,106,.25); color: #315d20; }
.ia-pf-badge--warn { background: rgba(251,191,36,.2);   color: #92400e; }
.ia-pf-badge--bad  { background: rgba(248,113,113,.15); color: #991b1b; }
.ia-pf-badge--none { background: rgba(17,18,23,.05);    color: var(--ia-muted); }

/* ── Сводная шапка ── */
.ia-pf-summary-row {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 14px;
    margin-bottom: 14px;
}

.ia-pf-visibility-card, .ia-pf-loss-card { padding: 22px 24px; }
.ia-pf-loss-card { display: flex; flex-direction: column; }

.ia-pf-summary-title {
    font-family: 'Unbounded', sans-serif;
    font-size: 18px;
    font-weight: 800;
    color: var(--ia-ink);
}

.ia-pf-visibility-body {
    display: flex;
    justify-content: center;
    margin-top: 14px;
}

.ia-pf-visibility-donut {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    display: grid;
    place-items: center;
}

.ia-pf-visibility-hole {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 10px;
}

.ia-pf-visibility-num {
    font-family: 'Unbounded', sans-serif;
    font-size: 19px;
    font-weight: 800;
    color: var(--ia-ink);
}

.ia-pf-visibility-lbl {
    font-size: 10px;
    color: var(--ia-muted);
    font-weight: 600;
    margin-top: 4px;
}

.ia-pf-visibility-metrika {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--ia-line);
    font-size: 12px;
    color: var(--ia-muted);
    font-weight: 600;
}

.ia-pf-visibility-metrika-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.ia-pf-visibility-metrika-dot--active  { background: #6fae3a; }
.ia-pf-visibility-metrika-dot--warning { background: #f59e0b; }
.ia-pf-visibility-metrika-dot--missing { background: #ef4444; }

.ia-pf-loss-sub {
    margin: 6px 0 16px;
    font-size: 12.5px;
    color: #4b4f5a;
    line-height: 1.5;
}

.ia-pf-loss-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    flex: 1;
    align-content: center;
}

.ia-pf-loss-stat {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    padding: 18px 16px;
    background: rgba(248,113,113,.08);
    border-radius: 12px;
}

.ia-pf-loss-val {
    font-family: 'Unbounded', sans-serif;
    font-size: 22px;
    font-weight: 800;
}
.ia-pf-loss-val--bad { color: #991b1b; }

.ia-pf-loss-lbl {
    font-size: 11px;
    color: var(--ia-muted);
    font-weight: 600;
}

.ia-pf-loss-note {
    margin: 12px 0 0;
    font-size: 11px;
    color: var(--ia-muted);
    flex-shrink: 0;
}

.ia-pf-section-label {
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--ia-muted);
    margin: 22px 0 12px;
}


/* ── Компактные карточки 4 основных площадок ── */
.ia-pf-tile-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.ia-pf-tile {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    cursor: pointer;
    transition: transform .15s, border-color .15s;
}
.ia-pf-tile:hover { transform: translateY(-2px); border-color: rgba(17,18,23,.12); }

.ia-pf-tile-head { display: flex; align-items: center; gap: 10px; }
.ia-pf-tile-name { font-size: 13.5px; font-weight: 800; color: var(--ia-ink); }

.ia-pf-tile-badge {
    align-self: flex-start;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 11px;
    border-radius: 999px;
    white-space: nowrap;
}
.ia-pf-tile-badge--bad  { background: rgba(248,113,113,.15); color: #991b1b; }
.ia-pf-tile-badge--warn { background: rgba(251,191,36,.2);   color: #92400e; }
.ia-pf-tile-badge--good { background: rgba(168,231,106,.25); color: #315d20; }

.ia-pf-tile-metric { display: flex; align-items: baseline; gap: 6px; }
.ia-pf-tile-metric-val { font-family: 'Unbounded', sans-serif; font-size: 26px; font-weight: 800; color: var(--ia-ink); }
.ia-pf-tile-metric-unit { font-size: 12px; color: var(--ia-muted); font-weight: 600; }

.ia-pf-tile-sub { margin: auto 0 0; font-size: 12.5px; color: var(--ia-muted); font-weight: 600; line-height: 1.4; }

.ia-pf-tile-fill-row { display: flex; align-items: baseline; gap: 6px; margin-top: 10px; }
.ia-pf-tile-fill-pct { font-size: 13px; font-weight: 800; color: var(--ia-ink); }
.ia-pf-tile-fill-lbl { font-size: 11px; color: var(--ia-muted); flex: 1; }
.ia-pf-tile-chevron { font-size: 18px; color: var(--ia-muted); line-height: 1; }

/* ── Модальное окно полного разбора площадки ── */
.ia-pf-detail-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15,17,23,.48);
    z-index: 500;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.ia-pf-detail-overlay.open { display: flex; }

.ia-pf-detail-modal {
    width: 1080px;
    max-width: 96vw;
    max-height: 88vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 0;
    background: #fff;
    border-color: rgba(17,18,23,.08);
    box-shadow: 0 24px 64px rgba(0,0,0,.22);
    animation: fadeUp .2s ease;
}
.ia-pf-detail-scroll {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 28px 36px;
}

.ia-pf-detail-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(17,18,23,.06);
    border: none;
    color: var(--ia-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background .15s, color .15s;
}
.ia-pf-detail-close:hover { background: rgba(17,18,23,.12); color: var(--ia-ink); }

.ia-pf-core-body--always { display: flex !important; padding-top: 18px; }

.ia-pf-report-head { display: flex; align-items: center; gap: 12px; }

.ia-pf-report-head-text {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.ia-pf-core-name {
    font-size: 14px;
    font-weight: 800;
    color: var(--ia-ink);
}

.ia-pf-core-body { display: none; flex-direction: column; gap: 22px; padding-top: 18px; }

.ia-pf-rlabel {
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--ia-muted);
}

/* ── 3-колоночная шапка разбора ── */
.ia-pf-top3col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--ia-line);
}

.ia-pf-score-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 8px;
}

.ia-pf-mini-donut {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.ia-pf-mini-donut-hole {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #fff;
    display: grid;
    place-items: center;
    font-family: 'Unbounded', sans-serif;
    font-size: 14px;
    font-weight: 800;
    color: var(--ia-ink);
}

.ia-pf-score-stack { display: flex; flex-direction: column; gap: 7px; }

.ia-pf-score-line { display: flex; align-items: baseline; gap: 8px; }
.ia-pf-score-line-lbl {
    width: 118px;
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 700;
    color: var(--ia-muted);
}
.ia-pf-score-line-num { font-size: 14px; font-weight: 800; color: var(--ia-ink); }
.ia-pf-score-line-num--muted { font-size: 13px; color: var(--ia-muted); font-weight: 700; }
.ia-pf-score-line-tag { font-size: 11px; font-weight: 600; color: var(--ia-muted); }

.ia-pf-verdict {
    margin: 0;
    font-size: 13px;
    color: #4b4f5a;
    line-height: 1.55;
}
.ia-pf-verdict--plain { margin: 8px 0 0; }

.ia-pf-loss-mini { margin-top: 8px; display: flex; flex-direction: column; gap: 8px; }
.ia-pf-loss-mini-row { display: flex; align-items: baseline; gap: 7px; font-size: 12px; color: var(--ia-muted); font-weight: 600; }
.ia-pf-loss-mini-val { font-family: 'Unbounded', sans-serif; font-size: 17px; font-weight: 800; color: #991b1b; }
.ia-pf-loss-mini-val--plain { color: var(--ia-ink); }

.ia-pf-bar-wrap {
    height: 6px;
    background: rgba(17,18,23,.07);
    border-radius: 999px;
    overflow: hidden;
}

.ia-pf-bar-fill {
    height: 100%;
    border-radius: 999px;
    transition: width .4s ease;
    opacity: .9;
}
.ia-pf-check-chips { display: flex; flex-wrap: wrap; gap: 8px; }

.ia-pf-check-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px 6px 7px;
    border-radius: 999px;
    background: rgba(17,18,23,.05);
    color: var(--ia-muted);
    font-size: 12px;
    font-weight: 700;
}
.ia-pf-check-chip.is-done { background: rgba(168,231,106,.22); color: #315d20; }

.ia-pf-check-chip-icon {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(17,18,23,.08);
    font-size: 9px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.ia-pf-check-chip.is-done .ia-pf-check-chip-icon { background: #A8E76A; color: #173111; }

/* ── Ключевые показатели (Метрика) ── */
.ia-pf-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: -4px; }

.ia-pf-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 16px;
    background: rgba(17,18,23,.04);
    border-radius: 14px;
}

.ia-pf-stat-val { font-family: 'Unbounded', sans-serif; font-size: 21px; font-weight: 800; color: var(--ia-ink); }
.ia-pf-stat-lbl { font-size: 11px; color: var(--ia-muted); font-weight: 600; }

/* ── Таблица «Где теряются клиенты» ── */
.ia-pf-loss-table { display: flex; flex-direction: column; }

.ia-pf-loss-table-hdr {
    display: grid;
    grid-template-columns: 1fr 1.8fr auto;
    gap: 28px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--ia-muted);
    padding-bottom: 8px;
}

.ia-pf-loss-table-row {
    display: grid;
    grid-template-columns: 1fr 1.8fr auto;
    gap: 28px;
    align-items: center;
    padding: 11px 0;
    border-top: 1px solid var(--ia-line);
}

.ia-pf-loss-table-problem { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--ia-ink); }
.ia-pf-loss-table-effect { font-size: 12.5px; color: #4b4f5a; line-height: 1.4; }
.ia-pf-loss-table-val { font-size: 12px; font-weight: 800; color: #991b1b; white-space: nowrap; text-align: right; }

.ia-pf-issue-dot { width: 6px; height: 6px; border-radius: 50%; background: #f87171; flex-shrink: 0; }

/* ── Прогноз «Что будет после исправления» ── */
.ia-pf-forecast { padding: 18px 20px; background: rgba(168,231,106,.1); border-radius: 14px; }

.ia-pf-forecast-body {
    display: flex;
    align-items: stretch;
    gap: 14px;
    margin-top: 14px;
}

.ia-pf-forecast-card {
    flex: 1;
    min-width: 0;
    background: #fff;
    border-radius: 12px;
    padding: 14px 16px;
}

.ia-pf-forecast-card--lead {
    flex: 0 0 190px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: rgba(49,93,32,.1);
    gap: 4px;
}

.ia-pf-forecast-fill-lbl { display: block; font-size: 11px; color: var(--ia-muted); font-weight: 700; margin-bottom: 8px; }
.ia-pf-forecast-fill-row { display: flex; align-items: center; gap: 8px; font-family: 'Unbounded', sans-serif; font-size: 18px; font-weight: 800; color: var(--ia-ink); }
.ia-pf-forecast-arrow { color: var(--ia-muted); font-size: 13px; }
.ia-pf-forecast-fill-to { color: #315d20; }

.ia-pf-forecast-upticks { display: flex; flex-direction: column; gap: 9px; }
.ia-pf-forecast-upticks .ia-pf-forecast-fill-lbl { margin-bottom: 0; }
.ia-pf-forecast-uptick { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--ia-ink); font-weight: 600; }
.ia-pf-forecast-uptick-icon { color: #315d20; font-weight: 900; flex-shrink: 0; }
.ia-pf-forecast-uptick-val { font-weight: 800; color: #315d20; }

.ia-pf-forecast-leads-val { font-family: 'Unbounded', sans-serif; font-size: 26px; font-weight: 800; color: #315d20; }
.ia-pf-forecast-leads-lbl { font-size: 11px; color: var(--ia-muted); font-weight: 700; }

/* ── Что исправить / Почему важно ── */
.ia-pf-report-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; padding-top: 18px; border-top: 1px solid var(--ia-line); }
.ia-pf-report-cols > div { display: flex; flex-direction: column; gap: 10px; }

.ia-pf-fix-list { display: flex; flex-direction: column; gap: 9px; }

.ia-pf-fix-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 13px;
    background: rgba(255,255,255,.55);
    border: 1px solid var(--ia-line);
    border-radius: 12px;
}

.ia-pf-fix-check {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #A8E76A;
    color: #1a3d0f;
    display: grid;
    place-items: center;
}

.ia-pf-fix-row-text { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ia-pf-fix-label { font-size: 12.5px; font-weight: 700; color: var(--ia-ink); }
.ia-pf-fix-time { font-size: 11px; color: var(--ia-muted); font-weight: 600; }

.ia-pf-fix-task-btn {
    flex-shrink: 0;
    background: #15171c;
    border: none;
    border-radius: 999px;
    padding: 8px 16px;
    font-family: inherit;
    font-size: 11.5px;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity .15s;
}
.ia-pf-fix-task-btn:hover { opacity: .8; }

.ia-pf-issues { display: flex; flex-direction: column; gap: 8px; }
.ia-pf-issue-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    background: rgba(220,38,38,.05);
    border-radius: 10px;
    font-size: 13px;
    color: #4b4f5a;
    line-height: 1.5;
}
.ia-pf-issue-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 1px;
    border-radius: 50%;
    background: rgba(220,38,38,.12);
    color: #b91c1c;
    display: grid;
    place-items: center;
}

.ia-pf-issue-row--good  { background: rgba(168,231,106,.14); }
.ia-pf-issue-icon--good { background: rgba(168,231,106,.35); color: #315d20; }

.ia-pf-why-list { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 8px; }
.ia-pf-why-list li { font-size: 12.5px; color: #4b4f5a; line-height: 1.5; }

.ia-pf-warning-box { margin-top: 12px; padding: 13px 15px; background: rgba(248,113,113,.08); border-radius: 12px; }
.ia-pf-warning-title { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: #991b1b; }
.ia-pf-warning-text { margin: 6px 0 0; font-size: 12.5px; color: #4b4f5a; line-height: 1.5; }
.ia-pf-warning-text strong { color: #991b1b; }

/* ── Тематические: компактные карточки, разбор — в модалке ── */
.ia-pf-them-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }

.ia-pf-them-tile { padding: 16px; display: flex; flex-direction: column; gap: 14px; cursor: pointer; transition: transform .15s, border-color .15s; }
.ia-pf-them-tile:hover { transform: translateY(-2px); border-color: rgba(17,18,23,.1); }

.ia-pf-them-top { display: flex; align-items: center; gap: 10px; }

.ia-pf-them-avatar {
    flex-shrink: 0;
    width: 34px; height: 34px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 800;
}
.ia-pf-them-avatar--lg { width: 42px; height: 42px; border-radius: 12px; font-size: 14px; }

.ia-pf-them-name-wrap { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ia-pf-them-name { font-size: 12.5px; font-weight: 800; color: var(--ia-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ia-pf-them-metric { font-size: 11px; color: var(--ia-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.ia-pf-them-badge { flex-shrink: 0; font-size: 9px; padding: 3px 8px; }

.ia-pf-them-bottom { display: flex; align-items: center; gap: 10px; }
.ia-pf-them-bottom .ia-pf-bar-wrap { flex: 1; }
.ia-pf-them-fill-pct { flex-shrink: 0; font-size: 11px; font-weight: 800; color: var(--ia-muted); white-space: nowrap; }

.ia-pf-them-section { display: flex; flex-direction: column; gap: 10px; }

/* ── Мостик к «Задачи от ИИ» ── */
.ia-pf-tasks-bridge {
    padding: 18px 22px;
    margin-top: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    cursor: pointer;
    background: linear-gradient(135deg, rgba(168,231,106,.4), rgba(255,255,255,.88) 62%);
    border-color: rgba(168,231,106,.38);
    transition: transform .15s;
}
.ia-pf-tasks-bridge:hover { transform: translateY(-2px); }

.ia-pf-tasks-bridge-title { font-size: 14px; font-weight: 800; color: var(--ia-ink); }
.ia-pf-tasks-bridge-sub { margin: 5px 0 0; font-size: 12.5px; color: #4b4f5a; line-height: 1.5; max-width: 520px; }
.ia-pf-tasks-bridge-arrow { font-size: 20px; color: var(--ia-ink); flex-shrink: 0; }

/* ══════════════════════════════════════
   САЙТ — ia-st-* (используются пунктом «Сравнение с конкурентами» в ia-sdt-item)
   ══════════════════════════════════════ */

/* ── Прогресс-бары ── */
.ia-st-bars { display: flex; flex-direction: column; gap: 13px; }
.ia-st-bar-row { display: flex; flex-direction: column; gap: 6px; }

.ia-st-bar-top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--ia-ink);
}

.ia-st-market-tag {
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 800;
    color: var(--ia-muted);
}

/* ── Вывод (серый блок-подсказка под каждым разделом) ── */
.ia-st-verdict {
    margin: 0;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(17,18,23,.045);
    font-weight: 700;
}

/* ── SEO состояние — в стиле «Обзора» (hm-grid/hm-card), своя копия токенов под ia-shell ── */
.ia-ov-title-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.ia-ov-title-row h2 { margin: 5px 0 0; font-family: 'Unbounded', sans-serif; font-size: 22px; }
.ia-ov-title-row p  { margin: 6px 0 0; color: var(--ia-muted); font-size: 13px; }

.ia-ov-kicker {
    color: var(--ia-muted);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.ia-ov-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(132px, auto);
    gap: 14px;
    margin-bottom: 14px;
}

.ia-ov-card { padding: 18px; }

.ia-ov-card--score { grid-column: span 2; display: flex; flex-direction: column; gap: 4px; }

.ia-ov-score-row { display: flex; align-items: baseline; gap: 7px; margin-top: 7px; }
.ia-ov-score-num { font-family: 'Unbounded', sans-serif; font-size: 52px; line-height: .9; color: var(--ia-ink); }
.ia-ov-score-unit { color: var(--ia-muted); font-weight: 900; font-size: 13px; }
.ia-ov-score-text { margin: 12px 0 0; max-width: 560px; color: #4b4f5a; font-size: 13.5px; line-height: 1.55; }

.ia-ov-kpi { cursor: pointer; }
.ia-ov-kpi strong { display: block; margin-top: 9px; font-family: 'Unbounded', sans-serif; font-size: 40px; line-height: .92; color: var(--ia-ink); }
.ia-ov-kpi small { display: block; margin-top: 7px; color: var(--ia-muted); font-size: 11.5px; font-weight: 800; }

.ia-ov-list-card { background: rgba(255,255,255,.5); }
.ia-ov-list-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.ia-ov-list-title { font-size: 13px; font-weight: 900; color: var(--ia-ink); }
.ia-ov-list-count { font-family: 'Unbounded', sans-serif; font-size: 18px; color: var(--ia-ink); }

.ia-ov-list-row {
    min-height: 32px;
    display: flex;
    align-items: center;
    gap: 9px;
    border-top: 1px solid var(--ia-line);
    font-size: 12px;
    font-weight: 700;
    color: #4b4f5a;
}
.ia-ov-list-row:first-child { border-top: none; }
.ia-ov-list-row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.ia-ov-dot { flex-shrink: 0; width: 7px; height: 7px; border-radius: 50%; }
.ia-ov-dot--good { background: #6fae3a; }
.ia-ov-dot--bad  { background: #ef4444; }

.ia-ov-pos-card { background: #f8f8f6; cursor: pointer; }

.ia-ov-pos-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 10px; }
.ia-ov-pos-head p { margin: 4px 0 0; color: var(--ia-muted); font-size: 11px; font-weight: 850; }
.ia-ov-pos-head strong { font-family: 'Unbounded', sans-serif; font-size: 22px; color: var(--ia-ink); }

.ia-ov-pos-row {
    min-height: 32px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    border-top: 1px solid var(--ia-line);
}
.ia-ov-pos-row:first-child { border-top: none; }

.ia-ov-pos-row span { min-width: 0; color: #4b4f5a; font-size: 12px; font-weight: 850; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.ia-ov-pos-row i {
    min-width: 42px;
    height: 22px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-style: normal;
    font-weight: 950;
}
.ia-ov-pos-row.top i { background: rgba(168,231,106,.45); color: #173111; }
.ia-ov-pos-row.mid i { background: rgba(245,198,83,.22); color: #775713; }
.ia-ov-pos-row.low i { background: rgba(17,18,23,.08); color: #4b4f5a; }

/* ── Привлечение клиентов: SEO и поисковая видимость ── */
.ia-seo-suite {
    margin-top: 30px;
}

.ia-seo-hero {
    padding: 22px 24px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: end;
    background: #f7f9f4;
}

.ia-seo-hero-main h2 {
    margin: 7px 0 0;
    max-width: 720px;
    font-family: 'Unbounded', sans-serif;
    font-size: 24px;
    line-height: 1.16;
    color: var(--ia-ink);
}

.ia-seo-hero-main p {
    margin: 10px 0 0;
    max-width: 760px;
    color: #4b4f5a;
    font-size: 14px;
    line-height: 1.55;
}

.ia-seo-hero-score {
    min-width: 138px;
    text-align: right;
}

.ia-seo-hero-score strong {
    font-family: 'Unbounded', sans-serif;
    font-size: 54px;
    line-height: .9;
    color: var(--ia-ink);
}

.ia-seo-hero-score span {
    color: var(--ia-muted);
    font-size: 14px;
    font-weight: 900;
}

.ia-seo-hero-score small {
    display: block;
    margin-top: 8px;
    color: #43712d;
    font-size: 12px;
    font-weight: 900;
}

.ia-seo-kpi-grid {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.ia-seo-kpi {
    min-height: 132px;
    padding: 18px;
    background: rgba(255,255,255,.68);
}

.ia-seo-kpi span {
    color: var(--ia-muted);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.ia-seo-kpi strong {
    display: block;
    margin-top: 10px;
    font-family: 'Unbounded', sans-serif;
    font-size: 40px;
    line-height: .92;
    color: var(--ia-ink);
}

.ia-seo-kpi small {
    display: block;
    margin-top: 10px;
    color: var(--ia-muted);
    font-size: 12px;
    font-weight: 800;
}

.ia-seo-layer-grid {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.ia-seo-layer {
    padding: 20px;
    background: rgba(255,255,255,.68);
}

.ia-seo-layer--wide {
    grid-column: 1 / -1;
}

.ia-seo-layer-head {
    margin-bottom: 16px;
}

.ia-seo-layer-head span {
    color: var(--ia-muted);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.ia-seo-layer-head h3 {
    margin: 5px 0 0;
    font-family: 'Unbounded', sans-serif;
    font-size: 18px;
    line-height: 1.2;
    color: var(--ia-ink);
}

.ia-seo-layer-head p {
    margin: 8px 0 0;
    max-width: 740px;
    color: #4b4f5a;
    font-size: 13px;
    line-height: 1.5;
}

.ia-seo-rank-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(240px, .65fr);
    gap: 14px;
}

.ia-seo-positions-table-wrap {
    overflow-x: auto;
    padding-bottom: 2px;
}

.ia-seo-positions-table {
    min-width: 900px;
    display: flex;
    flex-direction: column;
}

.ia-seo-pos-head,
.ia-seo-pos-row {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) 118px 82px minmax(220px, .8fr) 132px;
    gap: 12px;
    align-items: center;
}

.ia-seo-pos-head {
    min-height: 36px;
    border-bottom: 1px solid var(--ia-line);
}

.ia-seo-pos-head span {
    color: var(--ia-muted);
    font-size: 10px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.ia-seo-pos-row {
    min-height: 58px;
    border-bottom: 1px solid var(--ia-line);
}

.ia-seo-pos-row strong {
    min-width: 0;
    color: var(--ia-ink);
    font-size: 13px;
    font-weight: 950;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ia-seo-pos-row span {
    color: var(--ia-muted);
    font-size: 12px;
    font-weight: 850;
}

.ia-seo-pos-row em {
    min-width: 0;
    color: #4b4f5a;
    font-size: 12px;
    font-style: normal;
    font-weight: 900;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ia-seo-pos-row b {
    width: fit-content;
    min-width: 48px;
    height: 28px;
    padding: 0 11px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(17,18,23,.08);
    color: #4b4f5a;
    font-size: 12px;
    font-weight: 950;
}

.ia-seo-pos-row b.top {
    background: rgba(168,231,106,.45);
    color: #173111;
}

.ia-seo-pos-row b.mid {
    background: rgba(245,198,83,.22);
    color: #775713;
}

.ia-seo-pos-row b.none {
    background: rgba(17,18,23,.06);
    color: var(--ia-muted);
}

.ia-seo-query-list {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--ia-line);
}

.ia-seo-query {
    min-height: 54px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    border-bottom: 1px solid var(--ia-line);
}

.ia-seo-query i {
    min-width: 46px;
    height: 28px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-style: normal;
    font-weight: 950;
}

.ia-seo-query.top i { background: rgba(168,231,106,.45); color: #173111; }
.ia-seo-query.mid i { background: rgba(245,198,83,.22); color: #775713; }
.ia-seo-query.low i { background: rgba(17,18,23,.08); color: #4b4f5a; }

.ia-seo-query strong {
    display: block;
    min-width: 0;
    color: #1d1f26;
    font-size: 13px;
    font-weight: 900;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ia-seo-query span {
    display: block;
    margin-top: 3px;
    color: var(--ia-muted);
    font-size: 11px;
    font-weight: 800;
}

.ia-seo-query b {
    font-family: 'Unbounded', sans-serif;
    font-size: 13px;
}

.ia-seo-query b.up { color: #3a7d1e; }
.ia-seo-query b.down { color: #c0392b; }

.ia-seo-competitors {
    padding: 16px;
    border-radius: 16px;
    background: #f4f5f2;
}

.ia-seo-comp-row {
    padding: 12px 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
    border-top: 1px solid rgba(17,18,23,.07);
}

.ia-seo-comp-row:first-of-type {
    margin-top: 8px;
}

.ia-seo-comp-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
}

.ia-seo-comp-top span {
    min-width: 0;
    color: #4b4f5a;
    font-size: 12px;
    font-weight: 900;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ia-seo-comp-top strong {
    font-family: 'Unbounded', sans-serif;
    font-size: 22px;
    color: var(--ia-ink);
}

.ia-seo-comp-row small {
    color: var(--ia-muted);
    font-size: 11px;
    font-weight: 800;
}

.ia-seo-comp-queries {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.ia-seo-comp-query {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
    padding: 7px 9px;
    border-radius: 10px;
    background: rgba(255,255,255,.72);
}

.ia-seo-comp-query span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #4b4f5a;
    font-size: 11px;
    font-weight: 850;
}

.ia-seo-comp-query b {
    color: var(--ia-ink);
    font-size: 11px;
    font-weight: 950;
    white-space: nowrap;
}

.ia-seo-split-metric {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 14px;
}

.ia-seo-split-metric strong {
    font-family: 'Unbounded', sans-serif;
    font-size: 34px;
    line-height: .9;
    color: var(--ia-ink);
}

.ia-seo-split-metric span {
    color: #4b4f5a;
    font-size: 12.5px;
    font-weight: 800;
}

.ia-seo-chip-list {
    gap: 7px;
}

.ia-seo-pages-result {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    margin-bottom: 16px;
}

.ia-seo-pages-result strong {
    font-family: 'Unbounded', sans-serif;
    font-size: 46px;
    line-height: .9;
    color: var(--ia-ink);
}

.ia-seo-pages-result span {
    display: block;
    color: var(--ia-ink);
    font-size: 14px;
    font-weight: 950;
}

.ia-seo-pages-result p {
    margin: 4px 0 0;
    color: #4b4f5a;
    font-size: 12.5px;
    line-height: 1.45;
}

.ia-seo-page-gap-list {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--ia-line);
}

.ia-seo-page-gap {
    min-height: 66px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px 14px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--ia-line);
}

.ia-seo-page-gap strong {
    display: block;
    color: var(--ia-ink);
    font-size: 13px;
    font-weight: 950;
}

.ia-seo-page-gap span {
    display: block;
    margin-top: 3px;
    color: var(--ia-muted);
    font-size: 11.5px;
    font-weight: 800;
}

.ia-seo-page-gap b {
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(168,231,106,.34);
    color: #315d20;
    font-size: 11px;
    font-weight: 950;
    white-space: nowrap;
}

.ia-seo-page-gap p {
    grid-column: 1 / -1;
    margin: 0;
    color: #4b4f5a;
    font-size: 12px;
    font-weight: 800;
}

.ia-seo-page-tech {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.ia-seo-page-tech > span {
    margin: 0 2px 0 0;
    color: var(--ia-muted);
    font-size: 10.5px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.ia-seo-page-tech small {
    padding: 6px 9px;
    border-radius: 10px;
    background: rgba(17,18,23,.055);
    color: #4b4f5a;
    font-size: 10.5px;
    font-weight: 900;
    line-height: 1.25;
}

.ia-seo-page-tech small b {
    margin-right: 5px;
    color: var(--ia-ink);
    font-weight: 950;
}

.ia-seo-pages-covered {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.ia-seo-pages-covered span {
    color: var(--ia-muted);
    font-size: 11px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.ia-seo-pages-covered b {
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(168,231,106,.25);
    color: #315d20;
    font-size: 11.5px;
    font-weight: 900;
}

.ia-seo-nap-list {
    display: flex;
    flex-direction: column;
    margin-bottom: 14px;
    border-top: 1px solid var(--ia-line);
}

.ia-seo-nap-row {
    min-height: 48px;
    display: grid;
    grid-template-columns: minmax(112px, 1fr) repeat(3, auto);
    gap: 8px;
    align-items: center;
    border-bottom: 1px solid var(--ia-line);
}

.ia-seo-nap-row strong {
    color: var(--ia-ink);
    font-size: 12px;
    font-weight: 900;
}

.ia-seo-nap-row span {
    height: 24px;
    padding: 0 9px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    background: rgba(17,18,23,.06);
    color: var(--ia-muted);
    font-size: 10.5px;
    font-weight: 900;
}

.ia-seo-nap-row span.ok {
    background: rgba(168,231,106,.32);
    color: #315d20;
}

.ia-seo-gap-table {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--ia-line);
}

.ia-seo-gap-row {
    min-height: 56px;
    display: grid;
    grid-template-columns: minmax(180px, .8fr) minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    border-bottom: 1px solid var(--ia-line);
}

.ia-seo-gap-row strong {
    color: var(--ia-ink);
    font-size: 13px;
    font-weight: 950;
}

.ia-seo-gap-row span {
    color: #4b4f5a;
    font-size: 12.5px;
    line-height: 1.4;
}

.ia-seo-gap-row b {
    min-width: 116px;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(168,231,106,.34);
    color: #315d20;
    font-size: 11px;
    text-align: center;
}

@media (max-width: 1100px) {
    .ia-seo-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ia-seo-rank-layout { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
    .ia-seo-hero { grid-template-columns: 1fr; }
    .ia-seo-hero-score { text-align: left; }
    .ia-seo-layer-grid { grid-template-columns: 1fr; }
    .ia-seo-layer--wide { grid-column: auto; }
    .ia-seo-gap-row { grid-template-columns: 1fr; gap: 6px; padding: 12px 0; }
    .ia-seo-gap-row b { width: fit-content; min-width: 0; }
}

@media (max-width: 620px) {
    .ia-seo-kpi-grid { grid-template-columns: 1fr; }
    .ia-seo-nap-row { grid-template-columns: 1fr; padding: 12px 0; }
    .ia-seo-nap-row span { width: fit-content; }
}

/* ── Старый блок «Позиции по запросам» — оставлен для совместимости, если где-то ещё используется ── */
.ia-attract-kw-card { padding: 18px 20px; margin-bottom: 14px; }

.ia-attract-kw-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 8px; }
.ia-attract-kw-stats { margin: 4px 0 0; color: var(--ia-muted); font-size: 11px; font-weight: 850; }

.ia-attract-kw-all {
    border: none;
    background: rgba(17,18,23,.05);
    color: var(--ia-ink);
    font-size: 11px;
    font-weight: 800;
    padding: 7px 14px;
    border-radius: 999px;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
}
.ia-attract-kw-all:hover { background: rgba(17,18,23,.09); }

.ia-attract-kw-list { display: flex; flex-direction: column; }

.ia-ov-pos-row.ia-attract-kw-row { grid-template-columns: auto minmax(0,1fr) auto; }

.ia-attract-kw-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ia-attract-kw-name { color: #1d1f26; font-size: 12.5px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ia-attract-kw-freq { color: var(--ia-muted); font-size: 11px; font-weight: 700; }

.ia-attract-kw-delta { font-family: 'Unbounded', sans-serif; font-size: 13px; font-weight: 800; }
.ia-attract-kw-delta.up   { color: #3a7d1e; }
.ia-attract-kw-delta.down { color: #c0392b; }

/* ── Слои SEO-анализа ── */
.ia-layer-head { margin: 30px 0 14px; }
.ia-layer-num {
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--ia-muted);
}
.ia-layer-head h3 {
    margin: 4px 0 6px;
    font-family: 'Unbounded', sans-serif;
    font-size: 17px;
    font-weight: 800;
    color: var(--ia-ink);
}
.ia-layer-head p {
    margin: 0;
    max-width: 680px;
    font-size: 12.5px;
    color: #4b4f5a;
    line-height: 1.55;
}

.ia-attract-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 14px;
}
@media (max-width: 900px) {
    .ia-attract-2col { grid-template-columns: 1fr; }
}

.ia-attract-nap-list { display: flex; flex-direction: column; }
.ia-attract-nap-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 0;
    border-top: 1px solid var(--ia-line);
}
.ia-attract-nap-row:first-child { border-top: none; padding-top: 4px; }
.ia-attract-nap-src {
    min-width: 108px;
    flex-shrink: 0;
    font-size: 12px;
    font-weight: 800;
    color: var(--ia-ink);
}

@media (max-width: 1100px) {
    .ia-ov-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .ia-ov-grid { grid-template-columns: 1fr; }
    .ia-ov-card--score { grid-column: span 1; }
}

@media (max-width: 1200px) {
    .ia-pf-tile-grid { grid-template-columns: repeat(2, 1fr); }
    .ia-pf-them-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
    .ia-pf-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .ia-pf-report-cols { grid-template-columns: 1fr; }
    .ia-pf-summary-row { grid-template-columns: 1fr; }
    .ia-pf-top3col { grid-template-columns: 1fr; gap: 14px; }
    .ia-pf-loss-table-hdr, .ia-pf-loss-table-row { grid-template-columns: 1fr; gap: 4px; }
    .ia-pf-loss-table-val { text-align: left; }
    .ia-pf-forecast-body { flex-direction: column; gap: 14px; }
    .ia-pf-forecast-card--lead { flex-basis: auto; }
}

@media (max-width: 560px) {
    .ia-pf-tile-grid { grid-template-columns: 1fr; }
    .ia-pf-them-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
    .ia-pf-report-head { flex-wrap: wrap; }
    .ia-pf-loss-stats { grid-template-columns: 1fr; }
    .ia-pf-score-line-lbl { width: 92px; font-size: 10px; }
}

.ar-wrap {
    --ar-green: #A8E76A;
    --ar-ink:   #111217;
    --ar-muted: #8d919d;
    --ar-line:  rgba(17,18,23,.08);
    --ar-card:  rgba(255,255,255,.72);
    --ar-cbor:  rgba(255,255,255,.82);
    padding: 2px 0 40px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* ── Section headings ── */
.ar-section-head {
    padding: 18px 4px 6px;
}

.ar-section-title {
    font-size: 13px;
    font-weight: 900;
    color: var(--ar-ink);
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 3px;
}

.ar-section-hint {
    font-size: 12px;
    color: var(--ar-muted);
    font-weight: 500;
    line-height: 1.5;
}

/* ── Archive label (between featured and older items) ── */
.ar-archive-label {
    font-size: 11px;
    font-weight: 800;
    color: var(--ar-muted);
    text-transform: uppercase;
    letter-spacing: .06em;
    padding: 14px 4px 6px;
}

/* ── Featured item (latest audit) ── */
.ar-item--featured {
    background: var(--ar-ink) !important;
    border-color: transparent !important;
    border-radius: 18px !important;
    padding: 20px 22px !important;
    flex-direction: row;
    align-items: stretch;
    gap: 0;
}

.ar-item--featured:hover {
    background: #1a1b22 !important;
    border-color: transparent !important;
}

.ar-item--featured[data-expanded="1"] {
    border-radius: 18px 18px 0 0 !important;
}

.ar-featured-left { flex: 1; }

.ar-featured-kicker {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: rgba(255,255,255,.38);
    margin-bottom: 10px;
}

.ar-featured-score-row {
    display: flex;
    align-items: baseline;
    gap: 14px;
    margin-bottom: 18px;
}

.ar-featured-score {
    font-family: 'Unbounded', sans-serif;
    font-size: 54px;
    font-weight: 800;
    line-height: 1;
}

.ar-featured-score span {
    font-size: 18px;
    opacity: .35;
    font-weight: 500;
}

.ar-featured-score.good { color: var(--ar-green); }
.ar-featured-score.warn { color: #fbbf24; }
.ar-featured-score.bad  { color: #f87171; }

.ar-featured-badge {
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .05em;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(168,231,106,.18);
    color: var(--ar-green);
    align-self: center;
}

.ar-featured-delta {
    font-family: 'Unbounded', sans-serif;
    font-size: 16px;
    font-weight: 800;
    align-self: center;
}

.ar-featured-delta.up   { color: var(--ar-green); }
.ar-featured-delta.down { color: #f87171; }
.ar-featured-delta.flat { color: rgba(255,255,255,.3); }

/* Category pills inside featured */
.ar-featured-cats {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.ar-featured-cat {
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(255,255,255,.07);
    border-radius: 8px;
    padding: 5px 10px;
}

.ar-featured-cat-label {
    font-size: 11px;
    color: rgba(255,255,255,.42);
    font-weight: 600;
}

.ar-featured-cat-val {
    font-family: 'Unbounded', sans-serif;
    font-size: 13px;
    font-weight: 800;
}

.ar-featured-cat-val.good { color: var(--ar-green); }
.ar-featured-cat-val.warn { color: #fbbf24; }
.ar-featured-cat-val.bad  { color: #f87171; }

.ar-featured-action {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-end;
    gap: 6px;
    flex-shrink: 0;
    padding-left: 16px;
}

.ar-featured-action-text {
    font-size: 11px;
    color: rgba(255,255,255,.3);
    font-weight: 600;
    white-space: nowrap;
}

.ar-item--featured .ar-chevron {
    color: rgba(255,255,255,.4);
}

.ar-item--featured[data-expanded="1"] .ar-chevron {
    transform: rotate(180deg);
    color: var(--ar-green);
}

/* Featured expand panel */
.ar-expand--featured {
    background: rgba(17,18,23,.04);
    border: 1px solid rgba(17,18,23,.09);
    border-top: 1px solid rgba(255,255,255,.06);
    border-radius: 0 0 18px 18px;
}

/* ── Launch card ── */
.ar-launch {
    background: var(--ar-card);
    border: 1px solid var(--ar-cbor);
    border-radius: 18px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.ar-launch-site {
    display: flex;
    align-items: center;
    gap: 14px;
}

.ar-site-av {
    width: 44px;
    height: 44px;
    border-radius: 13px;
    background: var(--ar-ink);
    color: var(--ar-green);
    font-family: 'Unbounded', sans-serif;
    font-size: 18px;
    font-weight: 800;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.ar-site-domain {
    font-size: 15px;
    font-weight: 700;
    color: var(--ar-ink);
}

.ar-site-meta {
    font-size: 12px;
    color: var(--ar-muted);
    margin-top: 3px;
    font-weight: 500;
}

.ar-run-btn {
    height: 38px;
    padding: 0 20px;
    border: none;
    border-radius: 999px;
    background: var(--ar-ink);
    color: #fff;
    font-family: inherit;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    transition: opacity .15s;
}

.ar-run-btn:hover    { opacity: .82; }
.ar-run-btn:disabled { opacity: .45; cursor: default; }

.ar-no-site {
    font-size: 13px;
    color: var(--ar-muted);
    padding: 8px 0;
}

/* ── Progress ── */
.ar-progress {
    background: var(--ar-card);
    border: 1px solid var(--ar-cbor);
    border-radius: 16px;
    padding: 18px 20px;
}

.ar-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.ar-progress-header span:first-child {
    font-size: 13px;
    font-weight: 700;
    color: var(--ar-ink);
}

.ar-progress-header span:last-child {
    font-size: 12px;
    color: var(--ar-muted);
    font-weight: 600;
}

.ar-progress-track {
    height: 5px;
    background: rgba(17,18,23,.09);
    border-radius: 99px;
    overflow: hidden;
    margin-bottom: 14px;
}

.ar-progress-fill {
    height: 100%;
    width: 0%;
    border-radius: 99px;
    background: var(--ar-green);
    transition: width .5s ease;
}

.ar-progress-steps { display: flex; flex-direction: column; gap: 3px; }

.ar-step { font-size: 11.5px; color: var(--ar-muted); padding: 2px 0; transition: color .15s; }

.ar-step.active        { color: var(--ar-ink); font-weight: 600; }
.ar-step.active::before{ content: '→ '; color: var(--ar-green); }
.ar-step.done          { color: #5a9e3a; }
.ar-step.done::before  { content: '✓ '; }

@keyframes ar-spin {
    to { transform: rotate(360deg); }
}
.ar-spin { animation: ar-spin 1s linear infinite; }

/* ── Error ── */
.ar-error {
    background: rgba(248,113,113,.1);
    border: 1px solid rgba(248,113,113,.28);
    border-radius: 12px;
    padding: 11px 16px;
    font-size: 13px;
    color: #991b1b;
    font-weight: 500;
}

/* ── Mode bar ── */
.ar-mode-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 2px 4px;
    margin-top: 6px;
}

.ar-mode-tabs {
    display: flex;
    background: rgba(255,255,255,.62);
    border: 1px solid rgba(255,255,255,.85);
    border-radius: 12px;
    padding: 3px;
    gap: 2px;
}

.ar-mode-tab {
    height: 30px;
    padding: 0 16px;
    border: none;
    border-radius: 9px;
    background: transparent;
    color: var(--ar-muted);
    font-family: inherit;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: all .15s;
}

.ar-mode-tab:hover  { color: var(--ar-ink); }
.ar-mode-tab.active { background: var(--ar-ink); color: #fff; }

.ar-count {
    font-size: 11px;
    font-weight: 800;
    color: var(--ar-muted);
    text-transform: uppercase;
    letter-spacing: .06em;
}

/* ── Hero ── */
.ar-hero {
    background: var(--ar-ink);
    border-radius: 20px;
    padding: 22px 26px;
    display: flex;
    align-items: center;
    gap: 22px;
    position: relative;
    overflow: hidden;
}

.ar-hero::before {
    content: '';
    position: absolute;
    top: -50px; right: 30px;
    width: 220px; height: 220px;
    background: radial-gradient(circle, rgba(168,231,106,.14) 0%, transparent 65%);
    pointer-events: none;
}

.ar-hero-num {
    font-family: 'Unbounded', sans-serif;
    font-size: 66px;
    font-weight: 800;
    line-height: 1;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.ar-hero-num.good { color: var(--ar-green); }
.ar-hero-num.warn { color: #fbbf24; }
.ar-hero-num.bad  { color: #f87171; }

.ar-hero-right {
    flex: 1;
    position: relative;
    z-index: 1;
}

.ar-hero-date {
    font-size: 14px;
    font-weight: 700;
    color: rgba(255,255,255,.88);
    margin-bottom: 6px;
}

.ar-hero-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .05em;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(168,231,106,.18);
    color: var(--ar-green);
    margin-bottom: 13px;
}

.ar-hero-cats { display: flex; flex-wrap: wrap; gap: 6px; }

.ar-cat {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,.1);
    color: rgba(255,255,255,.6);
}

.ar-hero-delta {
    font-family: 'Unbounded', sans-serif;
    font-size: 20px;
    font-weight: 800;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.ar-hero-delta.up   { color: var(--ar-green); }
.ar-hero-delta.down { color: #f87171; }

/* ── Archive list ── */
.ar-list { display: flex; flex-direction: column; gap: 3px; }

.ar-item {
    background: var(--ar-card);
    border: 1px solid var(--ar-cbor);
    border-radius: 14px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    transition: border-color .15s, background .12s;
    user-select: none;
}

.ar-item:hover {
    border-color: rgba(17,18,23,.14);
    background: rgba(255,255,255,.88);
}

.ar-item[data-expanded="1"] {
    border-radius: 14px 14px 0 0;
    border-bottom-color: transparent;
}

.ar-item-score {
    font-family: 'Unbounded', sans-serif;
    font-size: 26px;
    font-weight: 800;
    min-width: 48px;
    text-align: center;
    flex-shrink: 0;
    line-height: 1;
}

.ar-item-score.good { color: #315d20; }
.ar-item-score.warn { color: #92400e; }
.ar-item-score.bad  { color: #991b1b; }

.ar-item-body { flex: 1; min-width: 0; }

.ar-item-date {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--ar-ink);
    margin-bottom: 3px;
    white-space: nowrap;
}

.ar-item-cats {
    font-size: 12px;
    color: var(--ar-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ar-badge-green {
    display: inline-block;
    font-size: 10px;
    font-weight: 900;
    padding: 1px 8px;
    border-radius: 999px;
    background: rgba(168,231,106,.22);
    color: #315d20;
    margin-left: 7px;
    vertical-align: middle;
}

.ar-badge-muted {
    display: inline-block;
    font-size: 10px;
    font-weight: 900;
    padding: 1px 8px;
    border-radius: 999px;
    background: rgba(17,18,23,.07);
    color: var(--ar-muted);
    margin-left: 7px;
    vertical-align: middle;
}

.ar-item-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.ar-delta {
    font-family: 'Unbounded', sans-serif;
    font-size: 13px;
    font-weight: 800;
    min-width: 34px;
    text-align: right;
}

.ar-delta.up   { color: #315d20; }
.ar-delta.down { color: #991b1b; }
.ar-delta.flat { color: var(--ar-muted); }

.ar-chevron {
    color: var(--ar-muted);
    transition: transform .2s;
    flex-shrink: 0;
}

.ar-item[data-expanded="1"] .ar-chevron { transform: rotate(180deg); }

/* ── Expand panel ── */
.ar-expand {
    background: rgba(255,255,255,.52);
    border: 1px solid rgba(17,18,23,.07);
    border-top: none;
    border-radius: 0 0 14px 14px;
    padding: 16px 18px 20px;
    animation: arSlideDown .18s ease;
}

@keyframes arSlideDown {
    from { opacity: 0; transform: translateY(-5px); }
    to   { opacity: 1; transform: translateY(0); }
}

.ar-expand-loading {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--ar-muted);
    padding: 10px 0;
    justify-content: center;
}

.ar-expand-err {
    font-size: 12px;
    color: #991b1b;
    padding: 8px 0;
    text-align: center;
}

.ar-expand-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.ar-expand-col-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
    padding-bottom: 9px;
    border-bottom: 1px solid var(--ar-line);
}

.ar-expand-col-name {
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--ar-ink);
}

.ar-expand-col-stats {
    display: flex;
    gap: 8px;
    font-size: 10px;
    font-weight: 800;
}

.ar-stat-good { color: #5a9e3a; }
.ar-stat-bad  { color: #991b1b; }
.ar-stat-todo { color: #92400e; }

.ar-expand-items { display: flex; flex-direction: column; gap: 5px; }

.ar-expand-item { padding: 9px 12px; border-radius: 10px; }

.ar-expand-item--good { background: rgba(168,231,106,.12); }
.ar-expand-item--bad  { background: rgba(248,113,113,.1);  }
.ar-expand-item--todo { background: rgba(251,191,36,.1);   }

.ar-expand-item-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--ar-ink);
    line-height: 1.4;
}

.ar-expand-item-desc {
    font-size: 11px;
    color: var(--ar-muted);
    margin-top: 2px;
    line-height: 1.4;
}

.ar-expand-empty,
.ar-expand-hint {
    font-size: 12px;
    color: var(--ar-muted);
    text-align: center;
    padding: 14px 0;
}

/* ── Empty state ── */
.ar-empty {
    background: var(--ar-card);
    border: 1px solid var(--ar-cbor);
    border-radius: 20px;
    padding: 56px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.ar-empty-icon {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    background: rgba(255,255,255,.85);
    border: 1px solid rgba(255,255,255,.9);
    display: grid;
    place-items: center;
    margin-bottom: 20px;
    color: var(--ar-muted);
}

.ar-empty-title {
    font-family: 'Unbounded', sans-serif;
    font-size: 18px;
    font-weight: 800;
    margin: 0 0 9px;
    color: var(--ar-ink);
}

.ar-empty-desc {
    font-size: 13px;
    color: var(--ar-muted);
    line-height: 1.65;
    margin: 0;
    max-width: 360px;
}

/* ── Compare view ── */
.ar-cmp-selects {
    background: var(--ar-card);
    border: 1px solid var(--ar-cbor);
    border-radius: 18px;
    padding: 18px 20px;
    display: flex;
    align-items: flex-end;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.ar-cmp-col { flex: 1; min-width: 160px; }

.ar-cmp-label {
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--ar-muted);
    margin-bottom: 7px;
}

.ar-select {
    width: 100%;
    height: 38px;
    padding: 0 14px;
    border: 1px solid rgba(17,18,23,.12);
    border-radius: 10px;
    background: rgba(255,255,255,.88);
    font-family: inherit;
    font-size: 13px;
    color: var(--ar-ink);
    outline: none;
    cursor: pointer;
}

.ar-cmp-vs {
    font-family: 'Unbounded', sans-serif;
    font-size: 11px;
    font-weight: 900;
    color: var(--ar-muted);
    padding-bottom: 8px;
    flex-shrink: 0;
}

.ar-cmp-empty {
    background: var(--ar-card);
    border: 1px solid var(--ar-cbor);
    border-radius: 18px;
    padding: 40px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--ar-muted);
    text-align: center;
}

.ar-cmp-result { display: flex; flex-direction: column; gap: 6px; }

/* Compare header */
.ar-cmp-header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 14px;
    align-items: center;
    background: var(--ar-card);
    border: 1px solid var(--ar-cbor);
    border-radius: 18px;
    padding: 20px 24px;
    text-align: center;
}

.ar-cmp-header-date {
    font-size: 12px;
    font-weight: 700;
    color: var(--ar-muted);
    margin-bottom: 8px;
}

.ar-cmp-header-score {
    font-family: 'Unbounded', sans-serif;
    font-size: 50px;
    font-weight: 800;
    line-height: 1;
}

.ar-cmp-header-score.good { color: #315d20; }
.ar-cmp-header-score.warn { color: #92400e; }
.ar-cmp-header-score.bad  { color: #991b1b; }
.ar-cmp-header-score.up   { color: #315d20; }
.ar-cmp-header-score.down { color: #991b1b; }

.ar-cmp-header-sub     { font-size: 12px; color: var(--ar-muted); margin-top: 5px; font-weight: 600; }
.ar-cmp-header-sub.up  { color: #315d20; }
.ar-cmp-header-sub.down{ color: #991b1b; }

.ar-cmp-header-vs {
    font-family: 'Unbounded', sans-serif;
    font-size: 11px;
    font-weight: 900;
    color: var(--ar-muted);
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(17,18,23,.06);
    border: 1px solid rgba(17,18,23,.09);
    display: grid;
    place-items: center;
}

/* Compare rows */
.ar-cmp-rows { display: flex; flex-direction: column; gap: 5px; }

.ar-cmp-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 14px;
    background: var(--ar-card);
    border: 1px solid var(--ar-cbor);
    border-radius: 14px;
    padding: 13px 20px;
    text-align: center;
}

.ar-cmp-val {
    font-family: 'Unbounded', sans-serif;
    font-size: 22px;
    font-weight: 800;
}

.ar-cmp-val.good { color: #315d20; }
.ar-cmp-val.warn { color: #92400e; }
.ar-cmp-val.bad  { color: #991b1b; }
.ar-cmp-val.none { color: var(--ar-muted); font-size: 18px; }

.ar-cmp-mid    { min-width: 110px; }

.ar-cmp-metric {
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--ar-muted);
    margin-bottom: 4px;
}

.ar-cmp-diff { font-size: 13px; font-weight: 800; }

.ar-cmp-diff.up   { color: #315d20; }
.ar-cmp-diff.down { color: #991b1b; }
.ar-cmp-diff.flat { color: var(--ar-muted); }

/* ── Responsive ── */
@media (max-width: 720px) {
    .ar-hero          { flex-wrap: wrap; }
    .ar-hero-num      { font-size: 50px; }
    .ar-expand-grid   { grid-template-columns: 1fr; }
    .ar-cmp-selects   { flex-direction: column; }
    .ar-cmp-header    { grid-template-columns: 1fr auto 1fr; }
    .ar-cmp-header-score { font-size: 38px; }
    .ar-cmp-val       { font-size: 18px; }
    .ar-item-cats     { display: none; }
}


/* ═══════════════════════════════════════════════════════════════════
   ИИ ЗАДАЧИ — экран #iaShellTasks (calendar layout, iatc-*)
   ═══════════════════════════════════════════════════════════════════ */

/* ── Кнопка «К анализу» ── */
.iatc-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 20px;
    border-radius: 999px;
    background: transparent;
    border: 1.5px solid rgba(17,18,23,.14);
    color: var(--ia-ink);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s, border-color .15s;
    white-space: nowrap;
    align-self: flex-end;
    margin-bottom: 6px;
}
.iatc-back-btn:hover {
    background: rgba(17,18,23,.05);
    border-color: rgba(17,18,23,.22);
}

/* ── Прогресс плана (кольцо + статусы) и таймлайн аудитов месяца ── */
.iatc-progress {
    background: var(--ia-card);
    border: 1px solid var(--ia-card-border);
    border-radius: 20px;
    padding: 20px 26px;
    margin-bottom: 14px;
    display: flex;
    align-items: stretch;
    gap: 26px;
}

.iatc-progress-label {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--ia-muted);
}

.iatc-prog-left {
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex-shrink: 0;
}

.iatc-prog-left-body {
    display: flex;
    align-items: center;
    gap: 18px;
}

/* Кольцо: зелёное — подтверждено ИИ, янтарное — на проверке, серое — в работе */
.iatc-prog-ring {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: conic-gradient(rgba(17,18,23,.08) 0% 100%);
    flex-shrink: 0;
}

.iatc-prog-ring-hole {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #fff;
    display: grid;
    place-items: center;
}

.iatc-prog-ring-hole b {
    font-family: 'Unbounded', sans-serif;
    font-size: 15px;
    font-weight: 800;
    color: var(--ia-ink);
}

.iatc-prog-stats {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.iatc-prog-stat {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--ia-muted);
    white-space: nowrap;
}

.iatc-prog-stat b {
    font-family: 'Unbounded', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: var(--ia-ink);
    min-width: 22px;
}

.iatc-prog-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}
.iatc-prog-dot--confirmed { background: #6fae3a; }
.iatc-prog-dot--await     { background: #f59e0b; }
.iatc-prog-dot--returned  { background: #dc2626; }
.iatc-prog-dot--open      { background: rgba(17,18,23,.18); }

.iatc-prog-div {
    width: 1px;
    background: var(--ia-line);
    flex-shrink: 0;
}

.iatc-prog-right {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.iatc-audits-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.iatc-audits-counter {
    font-family: 'Unbounded', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: var(--ia-ink);
    background: rgba(17,18,23,.05);
    padding: 4px 13px;
    border-radius: 999px;
    white-space: nowrap;
}

/* Степпер: узлы-аудиты, соединённые линией */
.iatc-audit-strip {
    display: flex;
    align-items: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
    scrollbar-color: rgba(17,18,23,.12) transparent;
}
.iatc-audit-strip::-webkit-scrollbar { height: 4px; }
.iatc-audit-strip::-webkit-scrollbar-thumb { background: rgba(17,18,23,.13); border-radius: 999px; }

.iatc-audit-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 84px;
    flex-shrink: 0;
    text-align: center;
}

.iatc-audit-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}
.iatc-audit-circle--plan {
    background: var(--ia-ink);
    color: #fff;
}
.iatc-audit-circle--verify {
    background: rgba(168,231,106,.4);
    color: #315d20;
}
.iatc-audit-circle--quiet {
    background: rgba(17,18,23,.06);
    color: var(--ia-muted);
}
.iatc-audit-circle--free {
    background: transparent;
    border: 1.5px dashed rgba(17,18,23,.22);
    color: var(--ia-muted);
    box-sizing: border-box;
}

.iatc-audit-date {
    font-size: 11px;
    font-weight: 800;
    color: var(--ia-ink);
    white-space: nowrap;
}
.iatc-audit-date--free { color: var(--ia-muted); }

.iatc-audit-sub {
    font-size: 10px;
    font-weight: 600;
    color: var(--ia-muted);
    white-space: nowrap;
}
.iatc-audit-sub .ok  { color: #5a8f2f; font-weight: 800; }
.iatc-audit-sub .ret { color: #dc2626; font-weight: 800; }

.iatc-audit-link {
    flex: 1 0 20px;
    min-width: 20px;
    height: 2px;
    border-radius: 2px;
    margin-top: 18px;
    background: rgba(17,18,23,.1);
}
.iatc-audit-link--done { background: var(--ia-green); }
.iatc-audit-link--free {
    background: repeating-linear-gradient(90deg, rgba(17,18,23,.16) 0 4px, transparent 4px 9px);
}

/* ── CTA-баннер «Запустить новый аудит» ── */
.iatc-cta {
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    background: var(--ia-card);
    border: 1px solid var(--ia-card-border);
    box-shadow: inset 3px 0 0 var(--ia-green);
    border-radius: 14px;
    padding: 11px 16px;
    margin-bottom: 14px;
    animation: fadeUp .2s ease;
}
.iatc-cta.iatc-cta--visible { display: flex; }

.iatc-cta-text {
    font-size: 13px;
    color: var(--ia-ink);
    flex: 1;
    line-height: 1.45;
}
.iatc-cta-text strong { font-weight: 700; }

.iatc-cta-acts {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.iatc-cta-run-btn {
    padding: 7px 16px;
    border-radius: 999px;
    background: var(--ia-ink);
    color: #fff;
    border: none;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity .15s;
    white-space: nowrap;
}
.iatc-cta-run-btn:hover { opacity: .8; }

.iatc-cta-dismiss-btn {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: transparent;
    border: none;
    color: var(--ia-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color .15s;
    flex-shrink: 0;
}
.iatc-cta-dismiss-btn:hover { color: var(--ia-ink); }

/* ── Общая раскладка: сайдбар блоков + календарь ── */
.iatc-wrap {
    display: grid;
    grid-template-columns: 288px 1fr;
    gap: 14px;
    align-items: start;
}

/* ══ Сайдбар: 6 блоков аудита ══ */
.iatc-side {
    background: var(--ia-card);
    border: 1px solid var(--ia-card-border);
    border-radius: 20px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.iatc-side-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding: 2px 6px 12px;
}
.iatc-side-head span {
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--ia-muted);
}
.iatc-side-head small { font-size: 11px; color: var(--ia-muted); font-weight: 600; }

.iatc-pillar-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 12px;
}

.iatc-pillar {
    display: flex;
    align-items: center;
    gap: 11px;
    width: 100%;
    padding: 10px 11px;
    border: 1.5px solid transparent;
    border-radius: 14px;
    background: transparent;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    transition: background .15s, border-color .15s, transform .15s;
}
.iatc-pillar:hover { background: rgba(17,18,23,.04); }
.iatc-pillar.active {
    background: #fff;
    border-color: rgba(17,18,23,.09);
    box-shadow: 0 4px 14px rgba(17,18,23,.07);
}

.iatc-pillar--locked { cursor: default; opacity: .55; }
.iatc-pillar--locked:hover { background: transparent; }

.iatc-pillar-icon {
    width: 34px;
    height: 34px;
    border-radius: 11px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    background: color-mix(in srgb, var(--pc, #8d919d) 16%, #fff);
    color: var(--pc, #8d919d);
}

.iatc-pillar-ring {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    padding: 3px;
}
.iatc-pillar-ring i {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #fff;
}

.iatc-pillar-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.iatc-pillar-name {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12.5px;
    font-weight: 800;
    color: var(--ia-ink);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.iatc-lock { flex-shrink: 0; color: var(--ia-muted); }

.iatc-pillar-count {
    font-size: 11px;
    font-weight: 700;
    color: var(--ia-muted);
}
.iatc-pillar-count b { color: var(--ia-ink); font-weight: 800; }

.iatc-pillar-bar {
    height: 4px;
    border-radius: 999px;
    background: rgba(17,18,23,.07);
    overflow: hidden;
}
.iatc-pillar-bar i {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: var(--pc, var(--ia-green));
    transition: width .4s cubic-bezier(.4,0,.2,1);
}

.iatc-pillar-all .iatc-pillar-name { font-size: 13px; }

/* ── Приоритеты плана: цветные блоки-счётчики (сайдбар) ── */
.iatc-stats {
    border-top: 1px solid var(--ia-line);
    padding-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.iatc-stats-title {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--ia-muted);
    padding: 0 2px 4px;
}

/* Приоритеты — лёгкие строки: точка + подпись + цветная цифра, без заливки */
.iatc-stat-row {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 700;
    color: var(--ia-ink);
}
.iatc-stat-row::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}
.iatc-stat-row span { flex: 1; }
.iatc-stat-row b { font-family: 'Unbounded', sans-serif; font-size: 13px; font-weight: 700; }
.iatc-stat-row--critical::before { background: #dc2626; }
.iatc-stat-row--high::before     { background: #f97316; }
.iatc-stat-row--growth::before   { background: #6fae3a; }
.iatc-stat-row--critical b { color: #dc2626; }
.iatc-stat-row--high b     { color: #f97316; }
.iatc-stat-row--growth b   { color: #5a8f2f; }

/* ── Проверка ИИ: строки-фильтры с кружками-статусами (язык чекбоксов календаря) ── */
.iatc-verif-row {
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    box-sizing: border-box;
    padding: 8px 10px;
    border: none;
    border-radius: 12px;
    background: rgba(17,18,23,.028);
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    color: var(--ia-ink);
    text-align: left;
    cursor: pointer;
    transition: background .13s, box-shadow .13s;
}
.iatc-verif-row:hover { background: rgba(17,18,23,.055); }
.iatc-verif-row.active {
    background: #fff;
    box-shadow: inset 0 0 0 1.5px var(--vc, var(--ia-ink));
}
.iatc-verif-lbl { flex: 1; }
.iatc-verif-row b { font-family: 'Unbounded', sans-serif; font-size: 13px; font-weight: 700; }

.iatc-verif-ico {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    box-sizing: border-box;
}
.iatc-verif-row--await     { --vc: #f59e0b; }
.iatc-verif-row--returned  { --vc: #dc2626; }
.iatc-verif-row--confirmed { --vc: #6fae3a; }
.iatc-verif-row--await .iatc-verif-ico     { background: #f59e0b; color: #fff; }
.iatc-verif-row--returned .iatc-verif-ico  { background: transparent; border: 1.5px solid #dc2626; color: #dc2626; }
.iatc-verif-row--confirmed .iatc-verif-ico { background: var(--ia-green); color: #315d20; }
.iatc-verif-row--await b     { color: #b45309; }
.iatc-verif-row--returned b  { color: #dc2626; }
.iatc-verif-row--confirmed b { color: #5a8f2f; }

/* ══ Календарь ══ */
.iatc-cal {
    background: var(--ia-card);
    border: 1px solid var(--ia-card-border);
    border-radius: 20px;
    padding: 18px 20px 20px;
    min-height: 520px;
}

.iatc-cal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
}

.iatc-cal-head-left {
    display: flex;
    align-items: center;
    gap: 4px;
}

.iatc-cal-period {
    font-family: 'Unbounded', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: var(--ia-ink);
    padding: 0 8px;
    white-space: nowrap;
}

.iatc-cal-nav {
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    background: rgba(17,18,23,.05);
    color: var(--ia-muted);
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: background .13s, color .13s;
    flex-shrink: 0;
}
.iatc-cal-nav:hover { background: rgba(17,18,23,.1); color: var(--ia-ink); }

.iatc-legend {
    display: flex;
    align-items: center;
    gap: 14px;
}
.iatc-legend span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    color: var(--ia-muted);
    white-space: nowrap;
}
.iatc-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.iatc-dot--critical { background: #ef4444; }
.iatc-dot--high      { background: #f59e0b; }
.iatc-dot--growth    { background: #6fae3a; }

.iatc-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    padding: 0 2px 8px;
}
.iatc-weekdays span {
    font-size: 10.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--ia-muted);
    text-align: center;
}

.iatc-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 6px;
}

.iatc-day {
    position: relative;
    min-width: 0;
    min-height: 208px;
    padding: 8px;
    border-radius: 16px;
    background: rgba(17,18,23,.025);
    border: 1px solid transparent;
    display: flex;
    flex-direction: column;
    gap: 7px;
    overflow: hidden;
    transition: background .15s, border-color .15s;
}

.iatc-day--out { opacity: .35; }

.iatc-day--today { border-color: var(--ia-ink); }
.iatc-day--today .iatc-day-num {
    background: var(--ia-ink);
    color: #fff;
}

.iatc-day-head {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.iatc-day-num {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 11px;
    font-weight: 700;
    color: var(--ia-ink);
    flex-shrink: 0;
}

/* Полоска состава задач дня (критично/важно/рост) — сводка с одного взгляда, даже если карточки свёрнуты в «ещё» */
.iatc-day-density {
    flex: 1;
    height: 4px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(17,18,23,.06);
}

.iatc-day-chips {
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-width: 0;
    flex: 1;
}

/* ── Карточка задачи — лаконичная, в языке .deal-card: белая, мягкая тень-кольцо ── */
.iatc-chip {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    text-align: left;
    background: #fff;
    border: none;
    border-radius: 13px;
    padding: 10px 11px 9px;
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(17,18,23,.05), 0 0 0 1px rgba(17,18,23,.045);
    transition: box-shadow .18s ease, transform .18s ease;
    overflow: hidden;
}
.iatc-chip:hover {
    box-shadow: 0 10px 26px rgba(17,18,23,.11), 0 0 0 1px rgba(17,18,23,.06);
    transform: translateY(-2px);
}

/* Короткий цветной штрих — цвет блока аудита (в режиме «Все блоки») */
.iatc-chip--tagged::before {
    content: '';
    display: block;
    width: 26px;
    height: 4px;
    border-radius: 999px;
    background: var(--pc, transparent);
    margin-bottom: 1px;
}

.iatc-chip-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

/* Приоритет — точка + микро-подпись, без плашки */
.iatc-chip-ptag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
}
.iatc-chip-ptag::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
    background: currentColor;
}
.iatc-chip-ptag--critical { color: #dc2626; }
.iatc-chip-ptag--high     { color: #f97316; }
.iatc-chip-ptag--growth   { color: #5a8f2f; }

.iatc-chip-check {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1.5px solid rgba(17,18,23,.14);
    background: transparent;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    color: #fff;
    cursor: pointer;
    padding: 0;
    transition: background .15s, border-color .15s, transform .15s;
}
.iatc-chip-check:hover { border-color: rgba(17,18,23,.38); transform: scale(1.1); }
.iatc-chip-check--locked { opacity: .4; cursor: not-allowed; }
.iatc-chip-check--locked:hover { border-color: rgba(17,18,23,.14); transform: none; }
.iatc-chip-check.is-done {
    background: var(--ia-green);
    border-color: var(--ia-green);
    color: #315d20;
}
.iatc-chip-check.is-await {
    background: #f59e0b;
    border-color: #f59e0b;
    color: #fff;
}
.iatc-chip-check.is-returned {
    background: transparent;
    border-color: #dc2626;
    color: #dc2626;
}

.iatc-chip-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--ia-ink);
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: calc(1.45em * 2);
}

/* Футер: ответственный + счётчик шагов — без линии, воздухом */
.iatc-chip-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin-top: 1px;
    min-width: 0;
}

.iatc-chip-owner {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    overflow: hidden;
    background: none;
    border: 0;
    padding: 2px 4px 2px 2px;
    margin: -2px -4px -2px -2px;
    border-radius: 999px;
    cursor: pointer;
}
.iatc-chip-owner:hover {
    background: rgba(17,18,23,.06);
}
.iatc-chip-owner--locked { cursor: not-allowed; }
.iatc-chip-owner--locked:hover { background: none; }
.iatc-chip-owner-ava {
    width: 17px;
    height: 17px;
    border-radius: 50%;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    font-size: 8px;
    font-weight: 800;
    color: #fff;
    overflow: hidden;
}
.iatc-chip-owner-ava img { width: 100%; height: 100%; object-fit: cover; display: block; }
.iatc-chip-owner-name {
    font-size: 10px;
    font-weight: 700;
    color: var(--ia-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.iatc-chip-steps {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 800;
    color: var(--ia-muted);
    flex-shrink: 0;
    opacity: .8;
}
.iatc-chip-steps svg { flex-shrink: 0; opacity: .75; }

/* Подтверждена ИИ — закрыта */
.iatc-chip--done { opacity: .55; }
.iatc-chip--done:hover { transform: none; box-shadow: 0 1px 4px rgba(17,18,23,.05), 0 0 0 1px rgba(17,18,23,.045); }
.iatc-chip--done .iatc-chip-title { text-decoration: line-through; color: var(--ia-muted); }

/* Выполнена пользователем — ждёт проверки ИИ */
.iatc-chip--await { box-shadow: 0 1px 4px rgba(17,18,23,.05), 0 0 0 1.5px rgba(245,158,11,.45); }

/* Возвращена ИИ после проверки */
.iatc-chip--returned { box-shadow: 0 1px 4px rgba(17,18,23,.05), 0 0 0 1.5px rgba(220,38,38,.4); }

.iatc-day-more {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 7px;
    border-radius: 10px;
    border: 1px dashed rgba(17,18,23,.18);
    background: transparent;
    color: var(--ia-muted);
    font-family: inherit;
    font-size: 10.5px;
    font-weight: 800;
    cursor: pointer;
    flex-shrink: 0;
    transition: background .15s, border-color .15s, color .15s;
}
.iatc-day-more:hover {
    background: rgba(17,18,23,.05);
    border-color: rgba(17,18,23,.3);
    color: var(--ia-ink);
}

/* ── Пустое состояние блока без задач ── */
.iatc-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 6px;
    padding: 60px 20px;
}
.iatc-empty-title { font-size: 15px; font-weight: 800; color: var(--ia-ink); }
.iatc-empty-desc { font-size: 13px; color: var(--ia-muted); max-width: 320px; }

/* ── Попап дня ── */
.iatc-daypop {
    position: fixed;
    width: 268px;
    max-height: 320px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(17,18,23,.22);
    z-index: 400;
    display: none;
    flex-direction: column;
    overflow: hidden;
    animation: fadeUp .15s ease;
}
.iatc-daypop.open { display: flex; }

.iatc-daypop-arrow {
    position: absolute;
    top: -6px;
    width: 12px;
    height: 12px;
    background: #fff;
    transform: rotate(45deg);
    box-shadow: -2px -2px 4px rgba(17,18,23,.03);
}

.iatc-daypop-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--ia-line);
    font-size: 12px;
    font-weight: 800;
    color: var(--ia-ink);
    text-transform: capitalize;
}

.iatc-daypop-close {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(17,18,23,.06);
    border: none;
    color: var(--ia-muted);
    display: grid;
    place-items: center;
    cursor: pointer;
    flex-shrink: 0;
}
.iatc-daypop-close:hover { background: rgba(17,18,23,.12); color: var(--ia-ink); }

.iatc-daypop-list {
    overflow-y: auto;
    padding: 6px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.iatc-daypop-row {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 7px 8px;
    border-radius: 10px;
    cursor: pointer;
    transition: background .13s;
}
.iatc-daypop-row:hover { background: rgba(17,18,23,.045); }

.iatc-daypop-check {
    width: 19px;
    height: 19px;
    border-radius: 50%;
    border: 1.5px solid rgba(17,18,23,.18);
    background: transparent;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    cursor: pointer;
    color: #fff;
}
.iatc-daypop-check--critical { border-color: #ef4444; }
.iatc-daypop-check--high     { border-color: #f59e0b; }
.iatc-daypop-check--growth   { border-color: #6fae3a; }
.iatc-daypop-check.is-done.iatc-daypop-check--critical { background: #ef4444; }
.iatc-daypop-check.is-done.iatc-daypop-check--high     { background: #f59e0b; }
.iatc-daypop-check.is-done.iatc-daypop-check--growth   { background: #6fae3a; }
.iatc-daypop-check.is-await    { background: #f59e0b !important; border-color: #f59e0b !important; color: #fff; }
.iatc-daypop-check.is-returned { background: transparent !important; border-color: #dc2626 !important; color: #dc2626; }

.iatc-daypop-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.iatc-daypop-title {
    display: block;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--ia-ink);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.iatc-daypop-row--done .iatc-daypop-title { text-decoration: line-through; color: var(--ia-muted); }
.iatc-daypop-pillar { display: block; font-size: 10.5px; color: var(--ia-muted); font-weight: 600; }

/* ── Попап выбора исполнителя задачи (пул ответственных по блоку) ── */
.iatc-assignee-menu {
    position: fixed;
    width: 220px;
    max-height: 300px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 20px 50px rgba(17,18,23,.22);
    z-index: 410;
    display: none;
    flex-direction: column;
    overflow: hidden;
    padding: 6px;
    animation: fadeUp .15s ease;
}
.iatc-assignee-menu.open { display: flex; }
.iatc-assignee-menu-label {
    font-size: 10.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--ia-muted);
    padding: 6px 8px 4px;
}
.iatc-assignee-item {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 7px 8px;
    border-radius: 10px;
    border: 0;
    background: none;
    cursor: pointer;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--ia-ink);
    text-align: left;
    transition: background .13s;
}
.iatc-assignee-item:hover { background: rgba(17,18,23,.06); }
.iatc-assignee-item.is-current { color: var(--ia-ink); font-weight: 800; }
.iatc-assignee-item-ava {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    font-size: 9px;
    font-weight: 800;
    color: #fff;
    overflow: hidden;
}
.iatc-assignee-item-ava img { width: 100%; height: 100%; object-fit: cover; display: block; }
.iatc-assignee-item-ava--empty { background: rgba(17,18,23,.08); color: var(--ia-muted); }
.iatc-assignee-item-check { margin-left: auto; color: #6fae3a; flex-shrink: 0; }

.iatc-modal-date {
    font-size: 11px;
    font-weight: 700;
    color: var(--ia-muted);
    background: rgba(17,18,23,.06);
    padding: 3px 9px;
    border-radius: 999px;
    white-space: nowrap;
}

/* ── Приоритет ── */
.iat-ptag {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .02em;
    white-space: nowrap;
    flex-shrink: 0;
}
.iat-ptag--critical { background: #fee2e2; color: #991b1b; }
.iat-ptag--high     { background: #ffedd5; color: #9a3412; }
.iat-ptag--growth   { background: #dcfce7; color: #166534; }

/* ── Модальное окно задачи ── */
.iat-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15,17,23,.48);
    z-index: 500;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.iat-modal-overlay.open { display: flex; }

.iat-modal {
    background: #fff;
    border-radius: 22px;
    width: 540px;
    max-width: 96vw;
    max-height: 88vh;
    overflow-y: auto;
    box-shadow: 0 24px 64px rgba(0,0,0,.2);
    animation: fadeUp .2s ease;
    display: flex;
    flex-direction: column;
    scrollbar-width: thin;
    scrollbar-color: rgba(17,18,23,.1) transparent;
}
.iat-modal::-webkit-scrollbar { width: 4px; }
.iat-modal::-webkit-scrollbar-thumb { background: rgba(17,18,23,.1); border-radius: 999px; }

.iat-modal-hdr {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 22px 22px 14px;
    border-bottom: 1px solid rgba(17,18,23,.07);
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 1;
    border-radius: 22px 22px 0 0;
}

.iat-modal-tags-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.iat-modal-pillar {
    font-size: 11px;
    font-weight: 700;
    color: var(--ia-muted);
    background: rgba(17,18,23,.06);
    padding: 3px 9px;
    border-radius: 999px;
    white-space: nowrap;
}

.iat-modal-close {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(17,18,23,.06);
    border: none;
    color: var(--ia-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background .15s, color .15s;
}
.iat-modal-close:hover { background: rgba(17,18,23,.12); color: var(--ia-ink); }

.iat-modal-body {
    padding: 20px 22px 8px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 1;
}

.iat-modal-title {
    font-size: 17px;
    font-weight: 800;
    color: var(--ia-ink);
    line-height: 1.35;
    margin: 0;
}

.iat-modal-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.iat-modal-section-lbl {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: var(--ia-muted);
}

/* Ответственный под заголовком */
.iat-modal-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: -8px;
}
.iat-modal-owner {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: none;
    border: 0;
    padding: 4px 10px 4px 4px;
    margin: -4px 0;
    border-radius: 999px;
    cursor: pointer;
    text-align: left;
}
.iat-modal-owner:hover {
    background: rgba(17,18,23,.05);
}
.iat-modal-owner--locked { cursor: not-allowed; }
.iat-modal-owner--locked:hover { background: none; }
.iat-modal-owner-ava {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    font-size: 11px;
    font-weight: 800;
    color: #fff;
    overflow: hidden;
}
.iat-modal-owner-ava img { width: 100%; height: 100%; object-fit: cover; display: block; }
.iat-modal-owner-col { display: flex; flex-direction: column; gap: 1px; }
.iat-modal-owner-lbl {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--ia-muted);
}
.iat-modal-owner-name {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--ia-ink);
}

/* Статус проверки ИИ (await / confirmed / returned) */
.iat-modal-status {
    padding: 11px 14px;
    border-radius: 12px;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.55;
}
.iat-modal-status b { font-weight: 800; }
.iat-modal-status--await     { background: rgba(245,158,11,.1);  color: #92400e; }
.iat-modal-status--confirmed { background: rgba(111,174,58,.12); color: #315d20; }
.iat-modal-status--returned  { background: #fee2e2;              color: #991b1b; }

/* Проблема — мягкий янтарный callout */
.iat-modal-problem-box {
    background: rgba(245,158,11,.07);
    border-radius: 12px;
    padding: 12px 15px;
}
.iat-modal-problem {
    font-size: 13.5px;
    color: var(--ia-ink);
    line-height: 1.6;
    margin: 0;
}

/* Подзадачи: шапка с прогрессом + чекбокс-строки */
.iat-modal-subs-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.iat-modal-subs-count {
    font-size: 11px;
    font-weight: 800;
    color: var(--ia-muted);
}
.iat-modal-subs-count b { color: var(--ia-ink); }

.iat-modal-subs-bar {
    height: 5px;
    border-radius: 999px;
    background: rgba(17,18,23,.07);
    overflow: hidden;
    margin: 4px 0 6px;
}
.iat-modal-subs-bar i {
    display: block;
    height: 100%;
    width: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--ia-green, #A8E76A), #6fae3a);
    transition: width .35s cubic-bezier(.4,0,.2,1);
}

.iat-modal-subs {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.iat-modal-sub {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border: none;
    border-radius: 12px;
    background: rgba(17,18,23,.028);
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    transition: background .13s;
}
.iat-modal-sub:hover { background: rgba(17,18,23,.055); }

.iat-modal-sub-check {
    width: 21px;
    height: 21px;
    border-radius: 50%;
    border: 1.5px solid rgba(17,18,23,.2);
    background: #fff;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    color: #315d20;
    margin-top: 1px;
    transition: background .15s, border-color .15s;
}
.iat-modal-sub:hover .iat-modal-sub-check { border-color: rgba(17,18,23,.4); }
.iat-modal-sub.is-done .iat-modal-sub-check {
    background: var(--ia-green);
    border-color: var(--ia-green);
}

.iat-modal-sub-text {
    font-size: 13.5px;
    color: var(--ia-ink);
    line-height: 1.55;
}
.iat-modal-sub.is-done .iat-modal-sub-text {
    color: var(--ia-muted);
    text-decoration: line-through;
}
.iat-modal-sub--locked { opacity: .55; cursor: not-allowed; }
.iat-modal-sub--locked:hover { background: rgba(17,18,23,.028); }

.iat-modal-footer {
    padding: 16px 22px 22px;
    border-top: 1px solid rgba(17,18,23,.07);
    position: sticky;
    bottom: 0;
    background: #fff;
    border-radius: 0 0 22px 22px;
}

.iat-done-btn {
    width: 100%;
    padding: 13px 20px;
    border-radius: 999px;
    background: var(--ia-ink, #111217);
    color: #fff;
    border: none;
    font-family: inherit;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: opacity .15s;
    letter-spacing: .01em;
}
.iat-done-btn:hover { opacity: .82; }

.iat-done-btn--undo {
    background: rgba(17,18,23,.07);
    color: var(--ia-muted);
}

.iat-done-btn--locked {
    background: rgba(17,18,23,.06);
    color: var(--ia-muted);
    cursor: not-allowed;
}
.iat-done-btn--locked:hover { opacity: 1; }
.iat-done-btn--undo:hover { opacity: 1; background: rgba(17,18,23,.12); }

/* ── Адаптив ── */
@media (max-width: 1180px) {
    .iatc-wrap { grid-template-columns: 1fr; }
    .iatc-side {
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 8px;
        padding: 12px;
    }
    .iatc-side-head { display: none; }
    .iatc-pillar-list { flex-direction: row; margin-bottom: 0; }
    .iatc-pillar { flex-direction: column; min-width: 128px; text-align: center; gap: 6px; }
    .iatc-pillar-body { align-items: center; }
    .iatc-pillar-name { white-space: normal; text-align: center; justify-content: center; }
    .iatc-stats { display: none; }
    .iatc-day { min-height: 190px; }
}

@media (max-width: 720px) {
    .iatc-progress { flex-direction: column; align-items: stretch; gap: 16px; }
    .iatc-prog-div { display: none; }
    .iatc-cta { flex-direction: column; align-items: flex-start; }
    .iatc-cal { padding: 14px; }
    .iatc-legend { display: none; }
    .iatc-day { min-height: 132px; padding: 6px; gap: 5px; }
    .iatc-day-num { width: 17px; height: 17px; font-size: 10px; }
    .iatc-chip { padding: 7px 8px 6px; gap: 5px; border-radius: 11px; }
    .iatc-chip-ptag { font-size: 8.5px; padding: 2px 6px; }
    .iatc-chip-check { width: 16px; height: 16px; }
    .iatc-chip-title { font-size: 10.5px; -webkit-line-clamp: 1; min-height: 1.4em; }
    .iatc-chip-foot { padding-top: 5px; }
    .iatc-chip-owner-name { display: none; }
    .iatc-day-more { padding: 5px; font-size: 9.5px; }
    .iatc-daypop { width: 230px; }
    .iat-modal { border-radius: 18px; }
    .iat-modal-hdr  { padding: 16px 16px 12px; border-radius: 18px 18px 0 0; }
    .iat-modal-body { padding: 16px 16px 8px; }
    .iat-modal-footer { padding: 14px 16px 18px; border-radius: 0 0 18px 18px; }
}

/* ══════════════════════════════════════
   SEO — детальный анализ, ia-sdt-* components
   ══════════════════════════════════════ */

.ia-sdt-summary { padding: 24px 26px; margin-bottom: 14px; }

.ia-sdt-summary-head { margin-bottom: 18px; }
.ia-sdt-summary-title { display: block; font-family: 'Unbounded', sans-serif; font-size: 15px; font-weight: 800; color: var(--ia-ink); }
.ia-sdt-summary-sub   { display: block; font-size: 12px; color: var(--ia-muted); margin-top: 3px; }

.ia-sdt-summary-body { display: flex; align-items: center; flex-wrap: wrap; gap: 28px; }

.ia-sdt-donut-wrap { display: flex; align-items: center; gap: 18px; flex-shrink: 0; min-width: 280px; }

.ia-sdt-donut {
    width: 96px; height: 96px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.ia-sdt-donut-hole {
    width: 74px; height: 74px; border-radius: 50%; background: #fff;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.ia-sdt-donut-num { font-family: 'Unbounded', sans-serif; font-size: 25px; font-weight: 800; line-height: 1; color: var(--ia-ink); }
.ia-sdt-donut-max { font-size: 10px; color: var(--ia-muted); margin-top: 2px; }

.ia-sdt-summary-level { display: inline-block; font-size: 13px; font-weight: 800; margin-bottom: 6px; }
.ia-sdt-summary-level.good { color: #166534; }
.ia-sdt-summary-level.warn { color: #92400e; }
.ia-sdt-summary-level.bad  { color: #991b1b; }
.ia-sdt-summary-level.none { color: var(--ia-muted); }
.ia-sdt-summary-desc { margin: 0; font-size: 12.5px; line-height: 1.5; color: #4b4f5a; max-width: 380px; }

.ia-sdt-stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; flex: 1; min-width: 280px; }
.ia-sdt-stat { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: 14px; background: rgba(17,18,23,.03); }
.ia-sdt-stat-num { font-family: 'Unbounded', sans-serif; font-size: 22px; font-weight: 800; line-height: 1; }
.ia-sdt-stat--bad  .ia-sdt-stat-num { color: #991b1b; }
.ia-sdt-stat--warn .ia-sdt-stat-num { color: #92400e; }
.ia-sdt-stat--good .ia-sdt-stat-num { color: #315d20; }
.ia-sdt-stat-lbl { font-size: 12px; font-weight: 700; color: var(--ia-ink); }
.ia-sdt-stat-sub { font-size: 11px; color: var(--ia-muted); line-height: 1.3; }

/* ── Center + right layout ── */
.ia-sdt-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 14px; margin-bottom: 14px; }

.ia-sdt-detail { padding: 22px 24px; }
.ia-sdt-detail-head { margin-bottom: 14px; }
.ia-sdt-detail-title { font-family: 'Unbounded', sans-serif; font-size: 15px; font-weight: 800; color: var(--ia-ink); }

.ia-sdt-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--ia-line); }
.ia-sdt-tab {
    display: flex; align-items: center; gap: 6px;
    padding: 7px 14px; border-radius: 999px; border: 1px solid var(--ia-line);
    background: transparent; font-family: inherit; font-size: 12.5px; font-weight: 700;
    color: var(--ia-muted); cursor: pointer; transition: background .15s, color .15s, border-color .15s;
}
.ia-sdt-tab span { font-size: 11px; font-weight: 800; padding: 1px 6px; border-radius: 999px; background: rgba(17,18,23,.06); color: var(--ia-ink); }
.ia-sdt-tab:hover { border-color: rgba(17,18,23,.2); }
.ia-sdt-tab.active { background: var(--ia-ink); color: #fff; border-color: var(--ia-ink); }
.ia-sdt-tab.active span { background: rgba(255,255,255,.18); color: #fff; }

.ia-sdt-list { display: flex; flex-direction: column; gap: 20px; }
.ia-sdt-item { padding-bottom: 20px; border-bottom: 1px solid var(--ia-line); }
.ia-sdt-item:last-child { border-bottom: none; padding-bottom: 0; }

.ia-sdt-item-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.ia-sdt-item-num { font-size: 14px; font-weight: 800; color: var(--ia-muted); }
.ia-sdt-item-title { font-size: 14.5px; font-weight: 800; color: var(--ia-ink); }
.ia-sdt-item-badge { font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: .03em; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.ia-sdt-item-badge--critical { background: #fee2e2; color: #991b1b; }
.ia-sdt-item-badge--growth   { background: #ffedd5; color: #9a3412; }
.ia-sdt-item-badge--strength { background: #dcfce7; color: #166534; }
.ia-sdt-item-page { margin-left: auto; font-size: 11.5px; font-weight: 600; color: var(--ia-muted); }

.ia-sdt-item-desc { margin: 0 0 14px; font-size: 13px; line-height: 1.5; color: #4b4f5a; }

.ia-sdt-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 10px; }
.ia-sdt-compare-col { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ia-sdt-compare-lbl { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; color: var(--ia-muted); }
.ia-sdt-code {
    display: block; padding: 10px 12px; border-radius: 10px;
    font-family: 'SFMono-Regular', Consolas, monospace; font-size: 12px; line-height: 1.55;
    white-space: pre-wrap; word-break: break-word;
}
.ia-sdt-code--bad  { background: rgba(248,113,113,.09); color: #991b1b; }
.ia-sdt-code--good { background: rgba(168,231,106,.2);  color: #2c5518; }
.ia-sdt-compare-meta { font-size: 11.5px; line-height: 1.4; }
.ia-sdt-compare-meta--bad  { color: #991b1b; }
.ia-sdt-compare-meta--good { color: #315d20; }

.ia-sdt-why { margin-top: 10px; padding: 12px 14px; border-radius: 12px; background: rgba(17,18,23,.03); }
.ia-sdt-why-title { display: block; font-size: 11.5px; font-weight: 800; color: var(--ia-ink); margin-bottom: 4px; }
.ia-sdt-why p { margin: 0; font-size: 12.5px; line-height: 1.5; color: #4b4f5a; }

.ia-sdt-before-note { margin: 4px 0 0; padding: 10px 12px; border-radius: 10px; background: rgba(248,113,113,.08); color: #991b1b; font-size: 12.5px; line-height: 1.4; }

.ia-sdt-fixlist { display: flex; flex-direction: column; gap: 10px; }
.ia-sdt-fix-row { display: flex; align-items: flex-start; gap: 10px; }
.ia-sdt-fix-check {
    flex-shrink: 0; width: 20px; height: 20px; margin-top: 1px; border-radius: 50%;
    background: rgba(168,231,106,.35); color: #315d20;
    display: flex; align-items: center; justify-content: center;
}
.ia-sdt-fix-text { display: flex; flex-direction: column; gap: 2px; }
.ia-sdt-fix-label { font-size: 12.5px; font-weight: 700; color: var(--ia-ink); }
.ia-sdt-fix-example { font-size: 11.5px; color: var(--ia-muted); }

.ia-sdt-good-list { display: flex; flex-direction: column; gap: 10px; }
.ia-sdt-good-row { display: flex; align-items: flex-start; gap: 10px; font-size: 12.5px; line-height: 1.45; color: #2c5518; }
.ia-sdt-good-check {
    flex-shrink: 0; width: 20px; height: 20px; margin-top: 1px; border-radius: 50%;
    background: rgba(168,231,106,.35); color: #315d20;
    display: flex; align-items: center; justify-content: center;
}

/* ── Right column ── */
.ia-sdt-side { display: flex; flex-direction: column; gap: 14px; align-self: start; position: sticky; top: 14px; }
.ia-sdt-tasks-card, .ia-sdt-potential-card { padding: 20px 22px; }
.ia-sdt-side-head { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; color: var(--ia-ink); margin-bottom: 16px; }
.ia-sdt-side-head svg { color: var(--ia-muted); flex-shrink: 0; }

.ia-sdt-task-list { display: flex; flex-direction: column; gap: 14px; margin-bottom: 16px; }
.ia-sdt-task-row { display: flex; align-items: flex-start; gap: 10px; }
.ia-sdt-task-icon { flex-shrink: 0; width: 8px; height: 8px; border-radius: 50%; margin-top: 5px; }
.ia-sdt-task-icon--high   { background: #ef4444; }
.ia-sdt-task-icon--medium { background: #f59e0b; }
.ia-sdt-task-icon--low    { background: #6fae3a; }
.ia-sdt-task-text { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.ia-sdt-task-title { font-size: 12.5px; font-weight: 700; color: var(--ia-ink); line-height: 1.3; }
.ia-sdt-task-sub { font-size: 11px; color: var(--ia-muted); }

.ia-sdt-tasks-all {
    width: 100%; display: flex; align-items: center; justify-content: center; gap: 6px;
    padding: 10px; border-radius: 999px; border: 1px solid var(--ia-line);
    background: transparent; font-family: inherit; font-size: 12.5px; font-weight: 700;
    color: var(--ia-ink); cursor: pointer; transition: background .15s;
}
.ia-sdt-tasks-all:hover { background: rgba(17,18,23,.04); }

.ia-sdt-potential-card {
    background: linear-gradient(135deg, rgba(168,231,106,.32), rgba(255,255,255,.9) 65%);
    border-color: rgba(168,231,106,.35);
}
.ia-sdt-potential-num { font-family: 'Unbounded', sans-serif; font-size: 32px; font-weight: 800; line-height: 1; color: #2c5518; margin-bottom: 6px; }
.ia-sdt-potential-lbl { font-size: 12.5px; font-weight: 700; color: var(--ia-ink); }
.ia-sdt-potential-sub { font-size: 11.5px; color: var(--ia-muted); margin-bottom: 12px; }
.ia-sdt-sparkline { display: block; width: 100%; height: 40px; }

/* ── Адаптив ── */
@media (max-width: 1200px) {
    .ia-sdt-grid { grid-template-columns: 1fr; }
    .ia-sdt-side { position: static; }
}

@media (max-width: 720px) {
    .ia-sdt-summary { padding: 20px; }
    .ia-sdt-stat-grid { grid-template-columns: 1fr; }
    .ia-sdt-detail, .ia-sdt-tasks-card, .ia-sdt-potential-card { padding: 18px; }
    .ia-sdt-compare { grid-template-columns: 1fr; }
    .ia-sdt-item-page { margin-left: 0; }
}

/* ══════════════════════════════════════
   САЙТ — ia-site-* (карточки в стиле ia-cat-card/«Обзора», без сайдбара)
   ══════════════════════════════════════ */

.ia-site-hero-card { padding: 24px 26px; margin-bottom: 14px; }

.ia-site-score-row {
    display: flex;
    align-items: stretch;
    gap: 32px;
    padding-bottom: 20px;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--ia-line);
}

.ia-site-score-block { flex-shrink: 0; width: 220px; display: flex; flex-direction: column; }

.ia-site-score-level { font-size: 13px; font-weight: 800; margin-top: 6px; }
.ia-site-score-level.good { color: #166534; }
.ia-site-score-level.warn { color: #92400e; }
.ia-site-score-level.bad  { color: #991b1b; }
.ia-site-score-level.none { color: var(--ia-muted); }

.ia-site-score-desc { margin: 8px 0 0; font-size: 12.5px; color: var(--ia-muted); line-height: 1.55; }

.ia-site-crit-bars {
    flex: 1;
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    gap: 8px;
    align-items: end;
    height: 108px;
}

.ia-site-crit-bar {
    height: 100%;
    display: grid;
    grid-template-rows: 1fr 16px;
    align-items: end;
    justify-items: center;
    gap: 6px;
    cursor: pointer;
}

.ia-site-crit-bar i {
    display: block;
    position: relative;
    width: 100%;
    min-height: 8px;
    border-radius: 8px 8px 3px 3px;
    opacity: .9;
    transition: opacity .15s;
}
.ia-site-crit-bar:hover i { opacity: 1; }

.ia-site-crit-bar span { font-size: 10.5px; font-weight: 800; color: var(--ia-muted); }

/* Тултип с названием параметра при наведении */
.ia-site-crit-bar i::before {
    content: attr(data-label) " — " attr(data-score) "/100";
    position: absolute;
    bottom: calc(100% + 9px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: var(--ia-ink);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    padding: 6px 12px;
    border-radius: 8px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity .15s ease, transform .15s ease;
    z-index: 5;
}
.ia-site-crit-bar i::after {
    content: "";
    position: absolute;
    bottom: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: var(--ia-ink);
    opacity: 0;
    pointer-events: none;
    transition: opacity .15s ease;
    z-index: 5;
}
.ia-site-crit-bar:hover i::before { opacity: 1; transform: translateX(-50%) translateY(0); }
.ia-site-crit-bar:hover i::after  { opacity: 1; }

.ia-site-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 14px; }

.ia-site-tile { display: flex; flex-direction: column; }

.ia-site-tile-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }

.ia-site-tile-title { font-size: 13.5px; font-weight: 800; color: var(--ia-ink); }
.ia-site-tile-sub   { font-size: 11px; color: var(--ia-muted); font-weight: 600; margin-top: 2px; margin-bottom: 8px; }
.ia-site-tile-verdict { margin: 0; font-size: 12.5px; color: #4b4f5a; line-height: 1.5; }

.ia-site-modal-icon { width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0; }

@media (max-width: 1200px) {
    .ia-site-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 780px) {
    .ia-site-score-row { flex-direction: column; gap: 20px; }
    .ia-site-score-block { width: auto; }
    .ia-site-crit-bars { grid-template-columns: repeat(9, minmax(24px, 1fr)); }
}
@media (max-width: 560px) {
    .ia-site-grid { grid-template-columns: 1fr; }
}

/* ── Сайт: новая архитектура сводки и 9 параметров ── */
#ia-view-site {
    display: none;
    flex-direction: column;
    gap: 14px;
}

#ia-view-site.active {
    display: flex;
}

.ia-site-summary-card {
    padding: 26px;
    border-radius: 22px;
    background:
        linear-gradient(180deg, rgba(255,255,255,.98), rgba(250,250,248,.98));
    border: 1px solid rgba(17,18,23,.08);
    box-shadow: 0 16px 40px rgba(17,18,23,.07);
}

.ia-site-summary-main {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
}

.ia-site-summary-icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ia-site-summary-copy h2 {
    margin: 5px 0 6px;
    font-family: 'Unbounded', sans-serif;
    font-size: 22px;
    line-height: 1.2;
    font-weight: 800;
    color: #111217;
}

.ia-site-summary-copy p {
    margin: 0;
    max-width: 760px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
    color: #8d919d;
}

.ia-site-summary-score {
    min-width: 132px;
    text-align: right;
}

.ia-site-summary-score strong {
    display: block;
    font-family: 'Unbounded', sans-serif;
    font-size: 34px;
    line-height: 1;
    font-weight: 800;
    color: #111217;
}

.ia-site-summary-score strong span {
    font-size: 14px;
    color: #8d919d;
}

.ia-site-summary-score small {
    display: block;
    margin-top: 7px;
    font-size: 12px;
    font-weight: 900;
}

.ia-site-summary-score small.good { color: #315d20; }
.ia-site-summary-score small.warn { color: #92400e; }
.ia-site-summary-score small.bad { color: #991b1b; }

.ia-site-summary-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.ia-site-dashboard-panel {
    display: grid;
    grid-template-columns: 226px minmax(0, 1fr) 318px;
    gap: 14px;
    align-items: stretch;
    margin-top: 22px;
    padding: 14px;
    border-radius: 22px;
    background:
        radial-gradient(circle at 84% 8%, rgba(168,231,106,.28), transparent 32%),
        linear-gradient(135deg, #111217 0%, #17191f 52%, #20271f 100%);
    border: 1px solid rgba(168,231,106,.16);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 18px 34px rgba(17,18,23,.12);
}

.ia-site-dashboard-score,
.ia-site-dashboard-chart,
.ia-site-dashboard-note {
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255,255,255,.085), rgba(255,255,255,.04));
    border: 1px solid rgba(255,255,255,.085);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.075);
}

.ia-site-dashboard-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    min-height: 238px;
    padding: 18px;
    text-align: center;
}

.ia-site-dashboard-score span,
.ia-site-chart-head span,
.ia-site-dashboard-note span {
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: rgba(255,255,255,.58);
}

.ia-site-dashboard-ring {
    --score: 0;
    --ring-color: #A8E76A;
    width: 138px;
    height: 138px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 14px 0;
    border-radius: 50%;
    background:
        conic-gradient(var(--ring-color) 0 calc(var(--score) * 1%), rgba(255,255,255,.1) 0 100%);
    box-shadow: 0 0 32px rgba(168,231,106,.2);
}

.ia-site-dashboard-ring::before {
    content: "";
    position: absolute;
}

.ia-site-dashboard-ring strong {
    width: 104px;
    height: 104px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #111217;
    border: 1px solid rgba(255,255,255,.08);
    font-family: 'Unbounded', sans-serif;
    font-size: 34px;
    line-height: 1;
    color: #fff;
}

.ia-site-dashboard-ring small {
    font-size: 15px;
    color: rgba(255,255,255,.5);
}

.ia-site-dashboard-scorebar {
    width: 100%;
    height: 9px;
    border-radius: 999px;
    background: rgba(255,255,255,.12);
    overflow: hidden;
}

.ia-site-dashboard-scorebar i {
    display: block;
    height: 100%;
    border-radius: inherit;
    box-shadow: 0 0 20px rgba(168,231,106,.34);
}

.ia-site-dashboard-level {
    margin-top: 6px;
    color: rgba(255,255,255,.62);
    font-size: 11px;
    font-weight: 800;
}

.ia-site-dashboard-chart {
    padding: 18px 18px 16px;
}

.ia-site-chart-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

.ia-site-chart-head b {
    color: #A8E76A;
    font-size: 12px;
    font-weight: 900;
}

.ia-site-chart-bars {
    display: grid;
    grid-template-columns: repeat(9, minmax(24px, 1fr));
    gap: 10px;
    align-items: end;
    min-height: 154px;
    padding: 12px 10px 0;
    border-radius: 16px;
    background: rgba(255,255,255,.035);
}

.ia-site-chart-bar {
    min-width: 0;
    height: 148px;
    display: grid;
    grid-template-rows: 1fr 18px;
    align-items: end;
    justify-items: center;
    gap: 7px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    font-family: 'Onest', sans-serif;
}

.ia-site-chart-bar i {
    width: 100%;
    min-height: 10px;
    border-radius: 999px 999px 6px 6px;
    box-shadow: 0 0 22px rgba(168,231,106,.24);
    transition: filter .15s ease, transform .15s ease;
}

.ia-site-chart-bar:hover i {
    filter: brightness(1.08);
    transform: translateY(-2px);
}

.ia-site-chart-bar--bad i {
    background: #f5f4f0 !important;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.18), 0 0 18px rgba(255,255,255,.08);
}

.ia-site-chart-bar span {
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,.09);
    color: rgba(255,255,255,.62);
    font-size: 10px;
    font-weight: 900;
}

.ia-site-chart-legend {
    display: flex;
    align-items: center;
    gap: 9px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.ia-site-chart-legend span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 8px;
    border-radius: 999px;
    background: rgba(255,255,255,.07);
    color: rgba(255,255,255,.58);
    font-size: 10.5px;
    font-weight: 800;
}

.ia-site-chart-legend b {
    color: #A8E76A;
    font-family: 'Unbounded', sans-serif;
    font-size: 10px;
}

.ia-site-dashboard-note {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 18px;
}

.ia-site-dashboard-note p {
    margin: 12px 0 0;
    color: rgba(255,255,255,.76);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
}

.ia-site-focus-list {
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin-top: 16px;
}

.ia-site-focus-list button {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 10px;
    align-items: center;
    padding: 10px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 13px;
    background: rgba(255,255,255,.055);
    color: #fff;
    cursor: pointer;
    text-align: left;
    font-family: 'Onest', sans-serif;
}

.ia-site-focus-list button:hover {
    background: rgba(255,255,255,.085);
}

.ia-site-focus-list b {
    font-family: 'Unbounded', sans-serif;
    color: #A8E76A;
    font-size: 17px;
}

.ia-site-focus-list span {
    color: rgba(255,255,255,.72);
    font-size: 12px;
    font-weight: 800;
    text-transform: none;
    letter-spacing: 0;
}

.ia-site-summary-stat {
    padding: 14px 16px;
    border-radius: 16px;
    background: #f5f4f0;
    border: 1px solid #e4e3de;
}

.ia-site-summary-stat strong,
.ia-site-summary-stat span,
.ia-site-summary-stat small {
    display: block;
}

.ia-site-summary-stat strong {
    font-family: 'Unbounded', sans-serif;
    font-size: 24px;
    line-height: 1;
    color: #111217;
}

.ia-site-summary-stat span {
    margin-top: 8px;
    font-size: 12px;
    font-weight: 900;
    color: #111217;
}

.ia-site-summary-stat small {
    margin-top: 3px;
    font-size: 11px;
    font-weight: 700;
    color: #8d919d;
}

.ia-site-summary-stat--bad { box-shadow: inset 3px 0 0 #111217; }
.ia-site-summary-stat--warn { box-shadow: inset 3px 0 0 #6fae3a; }
.ia-site-summary-stat--good { box-shadow: inset 3px 0 0 #A8E76A; }

#ia-view-site .ia-pf-section-label {
    margin: 4px 0 0;
}

#ia-view-site .ia-site-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

#ia-view-site .ia-site-tile {
    min-height: 204px;
    padding: 18px;
    border-radius: 18px;
    border: 1px solid rgba(17,18,23,.08);
    background:
        linear-gradient(180deg, #fff 0%, #fbfbf9 100%);
    box-shadow: 0 10px 24px rgba(17,18,23,.04);
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

#ia-view-site .ia-site-tile:hover {
    transform: translateY(-2px);
    border-color: rgba(31,90,57,.24);
    box-shadow: 0 16px 36px rgba(17,18,23,.09);
}

#ia-view-site .ia-site-tile .ia-cat-icon {
    width: 42px;
    height: 42px;
    border-radius: 13px;
}

#ia-view-site .ia-site-tile-title {
    margin-top: 2px;
    font-size: 14px;
    line-height: 1.25;
}

#ia-view-site .ia-site-tile-sub {
    margin-bottom: 10px;
}

.ia-site-tile-score {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 10px;
}

.ia-site-tile-score i {
    flex: 1;
    height: 6px;
    border-radius: 999px;
    background: #A8E76A;
}

.ia-site-tile-score span {
    flex-shrink: 0;
    font-size: 10.5px;
    font-weight: 900;
    color: #8d919d;
}

#ia-view-site .ia-site-tile-verdict {
    display: -webkit-box;
    min-height: 38px;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-size: 12.5px;
    font-weight: 600;
}

#ia-view-site .ia-pf-detail-modal {
    border-radius: 20px;
}

#ia-view-site .ia-pf-report-head {
    background: #fff;
}

#ia-view-site .ia-site-modal-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
}

#ia-view-site .ia-pf-verdict--plain {
    padding: 14px 16px;
    border-radius: 16px;
    background: #f5f4f0;
    border: 1px solid #e4e3de;
    color: #3d4050;
    font-weight: 700;
}

#ia-view-site .ia-pf-issue-row,
#ia-view-site .ia-pf-fix-row {
    border-radius: 14px;
}

#ia-view-site .ia-pf-issue-row--good {
    background: rgba(168,231,106,.14);
    border-color: rgba(168,231,106,.32);
}

#ia-view-site .ia-pf-issue-icon--good {
    background: #A8E76A;
    color: #111217;
}

#ia-view-site .ia-st-bars {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

#ia-view-site .ia-st-bar-row {
    padding: 14px;
    border-radius: 16px;
    background: #f5f4f0;
    border: 1px solid #e4e3de;
}

#ia-view-site .ia-st-bar-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 9px;
}

#ia-view-site .ia-st-bar-top span:first-child {
    font-size: 13px;
    font-weight: 900;
    color: #111217;
}

#ia-view-site .ia-st-market-tag {
    font-size: 11px;
    font-weight: 800;
    color: #6fae3a;
}

#ia-view-site .ia-st-verdict {
    margin-top: 16px;
}

@media (max-width: 1100px) {
    .ia-site-dashboard-panel {
        grid-template-columns: 190px minmax(0, 1fr);
    }
    .ia-site-dashboard-note {
        grid-column: 1 / -1;
    }
    #ia-view-site .ia-site-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .ia-site-summary-main {
        grid-template-columns: 48px 1fr;
    }
    .ia-site-summary-score {
        grid-column: 1 / -1;
        min-width: 0;
        text-align: left;
    }
    .ia-site-summary-stats,
    #ia-view-site .ia-site-grid {
        grid-template-columns: 1fr;
    }
    .ia-site-dashboard-panel {
        grid-template-columns: 1fr;
    }
    .ia-site-chart-bars {
        gap: 7px;
    }
}

/* ══════════════════════════════════════
   РЕПУТАЦИЯ — ia-rep-* (в стиле «Обзора»: плоские цифры и бары, без донатов)
   ══════════════════════════════════════ */

.ia-rep-hero-body { display: flex; align-items: stretch; gap: 32px; padding-bottom: 20px; margin-bottom: 18px; border-bottom: 1px solid var(--ia-line); }

.ia-rep-score-block { width: 220px; }

.ia-rep-sentiment { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.ia-rep-sentiment-bar { display: flex; height: 14px; border-radius: 999px; overflow: hidden; background: rgba(17,18,23,.06); }
.ia-rep-sentiment-seg { display: block; height: 100%; }
.ia-rep-sentiment-seg--good    { background: #A8E76A; }
.ia-rep-sentiment-seg--neutral { background: #d8dae0; }
.ia-rep-sentiment-seg--bad     { background: #f87171; }

.ia-rep-sentiment-legend { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 10px; }
.ia-rep-sentiment-legend-item { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--ia-muted); }
.ia-rep-sentiment-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.ia-rep-sentiment-dot--good    { background: #6fae3a; }
.ia-rep-sentiment-dot--neutral { background: #9ca0aa; }
.ia-rep-sentiment-dot--bad     { background: #ef4444; }

.ia-rep-platform-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 16px;
    align-content: center;
}

.ia-rep-platform-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid;
}

.ia-rep-platform-dot { flex-shrink: 0; width: 9px; height: 9px; border-radius: 50%; }

.ia-rep-platform-card-body { flex: 1; min-width: 0; }

.ia-rep-platform-card-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.ia-rep-platform-name { font-size: 12.5px; font-weight: 800; color: var(--ia-ink); }
.ia-rep-platform-rating { font-size: 14px; font-weight: 800; }

.ia-rep-platform-card-bottom { display: flex; align-items: center; gap: 7px; margin-top: 4px; }
.ia-rep-platform-stars { display: flex; align-items: center; gap: 1px; color: #d99a1b; }
.ia-rep-platform-count { font-size: 11px; color: var(--ia-muted); }

.ia-rep-platform-section { padding: 22px 24px; margin-bottom: 14px; }

.ia-rep-platform-section-head { display: flex; align-items: center; gap: 9px; margin-bottom: 18px; padding-bottom: 16px; border-bottom: 1px solid var(--ia-line); }
.ia-rep-platform-section-name { font-family: 'Unbounded', sans-serif; font-size: 15px; font-weight: 800; color: var(--ia-ink); }
.ia-rep-platform-section-rating { font-size: 13px; font-weight: 800; }

.ia-rep-platform-section-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.ia-rep-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }

.ia-rep-col { padding: 18px 20px; border-radius: 14px; border: 1px solid; }
.ia-crm-col { padding: 18px 20px; }
.ia-rep-col--good { background: linear-gradient(180deg, rgba(168,231,106,.14), rgba(255,255,255,.9) 40%); border-color: rgba(168,231,106,.3); }
.ia-rep-col--bad  { background: linear-gradient(180deg, rgba(248,113,113,.1), rgba(255,255,255,.9) 40%); border-color: rgba(248,113,113,.25); }

.ia-rep-col-head { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.ia-rep-col-title { font-family: 'Unbounded', sans-serif; font-size: 13px; font-weight: 800; color: var(--ia-ink); }
.ia-rep-col-count {
    font-size: 11px; font-weight: 800; color: var(--ia-muted);
    background: rgba(17,18,23,.06); padding: 2px 9px; border-radius: 999px;
}

.ia-rep-empty { margin: 0; font-size: 12.5px; color: var(--ia-muted); font-style: italic; }

.ia-rep-list { display: flex; flex-direction: column; gap: 14px; }

.ia-rep-item { padding-bottom: 14px; border-bottom: 1px solid rgba(17,18,23,.08); }
.ia-rep-item:last-child { border-bottom: none; padding-bottom: 0; }

.ia-rep-item-head { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-bottom: 8px; }
.ia-rep-stars { display: flex; align-items: center; gap: 1px; }
.ia-rep-stars--good { color: #d99a1b; }
.ia-rep-stars--bad  { color: #d99a1b; }
.ia-rep-author { font-size: 12px; color: var(--ia-muted); font-weight: 600; margin-left: auto; }
.ia-rep-generalized-badge {
    font-size: 11px; font-weight: 600; color: #8a6d1f; background: rgba(217,154,27,.14);
    border: 1px solid rgba(217,154,27,.3); border-radius: 999px; padding: 3px 9px;
    margin-left: auto; white-space: nowrap; cursor: help;
}

.ia-rep-text { margin: 0 0 10px; font-size: 13px; color: #4b4f5a; line-height: 1.55; font-style: italic; }

.ia-rep-insight { display: flex; align-items: flex-start; gap: 8px; padding: 10px 12px; border-radius: 10px; font-size: 12.5px; line-height: 1.5; }
.ia-rep-insight svg { flex-shrink: 0; width: 15px; height: 15px; margin-top: 1px; }
.ia-rep-insight--good { background: rgba(168,231,106,.16); color: #2c5518; }
.ia-rep-insight--good svg { color: #315d20; }
.ia-rep-insight--bad  { background: rgba(248,113,113,.1); color: #7a1f1f; }
.ia-rep-insight--bad  svg { color: #991b1b; }

.ia-rep-task-btn {
    margin-top: 10px;
    padding: 7px 14px;
    border-radius: 999px;
    border: 1px solid var(--ia-line);
    background: #fff;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    color: var(--ia-ink);
    cursor: pointer;
    transition: background .15s;
}
.ia-rep-task-btn:hover { background: rgba(17,18,23,.04); }

.ia-rep-more-btn {
    width: 100%;
    margin-top: 4px;
    display: flex; align-items: center; justify-content: center; gap: 6px;
    padding: 9px;
    border-radius: 999px;
    border: 1px solid rgba(17,18,23,.1);
    background: rgba(255,255,255,.6);
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    color: var(--ia-ink);
    cursor: pointer;
    transition: background .15s;
}
.ia-rep-more-btn:hover { background: rgba(255,255,255,.9); }

.ia-rep-more-btn--center {
    width: auto;
    min-width: 280px;
    margin: 18px auto 0;
    padding: 11px 26px;
    background: #fff;
    border-color: rgba(17,18,23,.12);
}

.ia-rep-more-btn--center:hover {
    background: #f5f4f0;
    border-color: rgba(17,18,23,.2);
}

/* Репутация: hero-блок в стиле сводных шапок (Конкуренты/CRM/Команда) */
#ia-view-reviews .ia-rep-head {
    padding: 26px 30px;
    border-radius: 22px;
    border: 1px solid rgba(17,18,23,.06);
    background:
        radial-gradient(circle at 92% 12%, rgba(168,231,106,.22), transparent 30%),
        linear-gradient(135deg, #fff 0%, #fbfbf8 100%);
}

#ia-view-reviews .ia-rep-head .ia-subview-header {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(340px, .8fr);
    gap: 28px;
    align-items: center;
    padding: 0;
    border: 0;
}

#ia-view-reviews .ia-rep-head .ia-subview-title {
    margin: 8px 0;
    font-size: clamp(20px, 1.8vw, 28px);
    line-height: 1.25;
}

#ia-view-reviews .ia-rep-head .ia-subview-desc {
    max-width: 640px;
    margin: 0;
    font-size: 14.5px;
    line-height: 1.5;
}

.ia-rep-plat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: 26px;
}

.ia-rep-plat-tile {
    display: flex;
    flex-direction: column;
    padding: 18px;
    border-radius: 16px;
    background: rgba(255,255,255,.85);
    border: 1px solid rgba(17,18,23,.07);
}

.ia-rep-plat-name {
    color: #9299a6;
    font-size: 10.5px;
    font-weight: 900;
    letter-spacing: .05em;
    text-transform: uppercase;
    line-height: 1.25;
}

.ia-rep-plat-rating-row {
    display: flex;
    align-items: baseline;
    gap: 5px;
    margin-top: 12px;
}

.ia-rep-plat-rating-row b {
    font-family: 'Unbounded', sans-serif;
    font-size: 26px;
    font-weight: 800;
    line-height: 1;
}

.ia-rep-plat-rating-row span {
    color: #9299a6;
    font-size: 12px;
    font-weight: 800;
}

.ia-rep-plat-bar {
    display: block;
    height: 8px;
    margin-top: 12px;
    border-radius: 999px;
    background: rgba(17,18,23,.07);
    overflow: hidden;
}

.ia-rep-plat-bar i {
    display: block;
    height: 100%;
    border-radius: inherit;
}

.ia-rep-plat-count {
    margin-top: 12px;
    padding-top: 11px;
    border-top: 1px solid rgba(17,18,23,.07);
    color: #8d95a1;
    font-size: 12px;
    font-weight: 800;
}

@media (max-width: 1150px) {
    #ia-view-reviews .ia-rep-head .ia-subview-header {
        grid-template-columns: 1fr;
    }
    .ia-rep-plat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .ia-rep-plat-grid {
        grid-template-columns: 1fr;
    }
}

/* Репутация: оценка отзыва вместо звёзд */
.ia-rep-rate {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
}

.ia-rep-rate b {
    font-family: 'Unbounded', sans-serif;
    font-size: 15px;
    font-weight: 800;
    line-height: 1;
}

.ia-rep-rate > span {
    color: #9299a6;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
}

/* Репутация: итоговая сводка ИИ v2 — что работает / что проседает, каждому пункту совет */
.team-ai-insight.ia-rep-ai2 {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.team-ai-insight.ia-rep-ai2 h3 {
    max-width: 960px;
    font-size: clamp(20px, 1.9vw, 26px);
    line-height: 1.22;
}

.ia-rep-ai2-head {
    min-width: 0;
}

.ia-rep-ai2-cols {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 16px;
}

.ia-rep-ai2-col-head {
    display: flex;
    align-items: baseline;
    gap: 7px;
    padding: 2px 4px 0;
}

.ia-rep-ai2-col-head b {
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
    line-height: 1;
}

.ia-rep-ai2-col-head span {
    color: #9299a6;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
}

.ia-rep-ai2-col-head--good b { color: #3f742c; }
.ia-rep-ai2-col-head--bad  b { color: #a72b2b; }

.ia-rep-ai2-count--good b { color: #4c8430; }
.ia-rep-ai2-count--bad  b { color: #b22b2b; }

.ia-rep-ai2-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-width: 0;
    padding: 18px;
    border-radius: 18px;
    background: rgba(255,255,255,.88);
    border: 1px solid rgba(17,18,23,.06);
    box-shadow: 0 10px 28px rgba(17,18,23,.04);
}

.ia-rep-ai2-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.ia-rep-ai2-card-top strong {
    color: #111217;
    font-size: 14px;
    font-weight: 850;
    line-height: 1.3;
}

.ia-rep-ai2-count {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    text-align: right;
}

.ia-rep-ai2-count b {
    font-family: 'Unbounded', sans-serif;
    font-size: 21px;
    font-weight: 800;
    line-height: 1;
}

.ia-rep-ai2-count.ia-rep-ai2-count--good b { color: #4c8430; }
.ia-rep-ai2-count.ia-rep-ai2-count--bad b  { color: #b22b2b; }

.ia-rep-ai2-count i {
    font-style: normal;
    color: #9299a6;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .05em;
    text-transform: uppercase;
    line-height: 1;
}

.ia-rep-ai2-fix {
    margin-top: auto;
    padding-top: 13px;
}

.ia-rep-ai2-fix::before {
    content: '';
    display: block;
    height: 1px;
    margin-bottom: 12px;
    background: rgba(17,18,23,.06);
}

.ia-rep-ai2-fix span {
    display: block;
    color: #5fa837;
    font-size: 9.5px;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
    line-height: 1;
}

.ia-rep-ai2-fix p {
    margin: 6px 0 0;
    color: #59616d;
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.45;
}

@media (max-width: 1000px) {
    /* На узких экранах grid-area с карточек игнорируется (flex),
       порядок задаёт DOM: сначала группа "работает", потом "проседает" */
    .ia-rep-ai2-cols {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    .ia-rep-ai2-cols .ia-rep-ai2-col-head--bad {
        margin-top: 14px;
    }
}

#ia-view-reviews .ia-rep-tasks-card {
    padding: 22px;
    background: #fff;
}

#ia-view-reviews .ia-comp-reco {
    align-items: center;
    gap: 20px;
    margin: 0 0 10px;
    padding: 18px 20px;
    border-radius: 16px;
    box-shadow: none;
}

#ia-view-reviews .ia-comp-reco h3 {
    margin: 7px 0 5px;
    font-size: 17px;
    line-height: 1.25;
}

#ia-view-reviews .ia-comp-reco p {
    font-size: 12px;
}

#ia-view-reviews .ia-rep-tasks-list {
    gap: 10px;
    margin-top: 0;
}

#ia-view-reviews .ia-rep-tasks-list .ia-pf-fix-row {
    padding: 16px 18px;
    border-radius: 16px;
    background: #f5f4f0;
    border: 1px solid #e7e5df;
    transition: background .15s, border-color .15s;
}

#ia-view-reviews .ia-rep-tasks-list .ia-pf-fix-row:hover {
    background: #f0efe9;
    border-color: #dddbd3;
}

.ia-rep-ai-problems {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 18px;
}

.ia-rep-ai-problem {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 15px 18px;
    border-radius: 16px;
    background: rgba(255,255,255,.88);
    border: 1px solid rgba(17,18,23,.06);
    box-shadow: 0 10px 28px rgba(17,18,23,.04);
}

.ia-rep-ai-problem-info strong {
    display: block;
    color: #111217;
    font-size: 13.5px;
    font-weight: 850;
    line-height: 1.3;
}

.ia-rep-ai-problem-info p {
    margin: 5px 0 0;
    color: #59616d;
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.45;
}

.ia-rep-ai-problem-count {
    flex-shrink: 0;
    padding-top: 2px;
    color: #b22b2b;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .02em;
    text-transform: uppercase;
    white-space: nowrap;
}

.ia-rep-ai-strengths {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    column-gap: 18px;
    row-gap: 6px;
    margin-top: 12px;
    padding: 14px 18px;
    border-radius: 16px;
    background: rgba(255,255,255,.7);
    border: 1px solid rgba(17,18,23,.05);
}

.ia-rep-ai-strengths-label {
    color: #9299a6;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.ia-rep-ai-strength {
    color: #3f742c;
    font-size: 12.5px;
    font-weight: 850;
}

.ia-rep-pattern-col { padding: 22px 24px; }
.ia-rep-pattern-list { display: flex; flex-direction: column; gap: 10px; }
.ia-rep-pattern-row {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(17,18,23,.03);
}
.ia-rep-pattern-label { flex: 1; min-width: 0; font-size: 13px; font-weight: 700; color: var(--ia-ink); }
.ia-rep-pattern-count { flex-shrink: 0; font-size: 11.5px; font-weight: 800; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.ia-rep-pattern-count--good { background: rgba(168,231,106,.25); color: #315d20; }
.ia-rep-pattern-count--bad  { background: rgba(248,113,113,.15); color: #991b1b; }

@media (max-width: 900px) {
    .ia-rep-cols { grid-template-columns: 1fr; }
    .ia-rep-platform-section-cols { grid-template-columns: 1fr; }
}
@media (max-width: 780px) {
    .ia-rep-hero-body { flex-direction: column; gap: 20px; }
    .ia-rep-score-block { width: auto; }
}
@media (max-width: 480px) {
    .ia-rep-author { margin-left: 0; }
}

/* ══════════════════════════════════════
   CRM И ПРОДАЖИ — ia-crm2-* (свой дизайн: полоса-воронка + плитки KPI + рекомендация,
   не повторяет ни блок SEO, ни компоненты «Обзора»)
   ══════════════════════════════════════ */

.ia-crm-num--bad  { color: #991b1b !important; }
.ia-crm-num--warn { color: #92400e !important; }
.ia-crm-num--good { color: #315d20 !important; }

.ia-crm-note {
    margin: 10px 0 0;
    padding-top: 10px;
    border-top: 1px solid var(--ia-line);
    font-size: 11.5px;
    color: var(--ia-muted);
    font-weight: 700;
    line-height: 1.45;
}

/* ── Обзор периода: сводка + графики ── */
.ia-crm2-overview { padding: 26px 28px; margin-bottom: 14px; }

.ia-crm2-overview-headline {
    margin: 12px 0 8px;
    font-family: 'Unbounded', sans-serif;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--ia-ink);
    max-width: 720px;
}
.ia-crm2-overview-headline .ia-crm-num--bad,
.ia-crm2-overview-headline .ia-crm-num--warn,
.ia-crm2-overview-headline .ia-crm-num--good { font-size: inherit; }

.ia-crm2-overview-sub { margin: 0 0 22px; font-size: 12.5px; color: var(--ia-muted); font-weight: 600; }

.ia-crm2-panels { display: grid; grid-template-columns: .8fr 1fr 1.2fr; gap: 14px; }

.ia-crm2-panel {
    position: relative;
    background: rgba(17,18,23,.03);
    border-radius: 16px;
    padding: 20px 20px 18px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.ia-crm2-panel::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
}
.ia-crm2-panel--accent-good::before    { background: #6fae3a; }
.ia-crm2-panel--accent-warn::before    { background: #f59e0b; }
.ia-crm2-panel--accent-bad::before     { background: #ef4444; }
.ia-crm2-panel--accent-neutral::before { background: rgba(17,18,23,.14); }

.ia-crm2-panel-label {
    font-size: 10.5px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--ia-muted);
    margin-bottom: 14px;
}


.ia-crm2-tally { display: flex; flex-direction: column; gap: 12px; }
.ia-crm2-tally-row { display: flex; align-items: center; gap: 10px; }
.ia-crm2-tally-name { flex: 1; min-width: 0; font-size: 12.5px; font-weight: 700; color: #4b4f5a; }
.ia-crm2-tally-row strong { font-family: 'Unbounded', sans-serif; font-size: 16px; font-weight: 800; color: var(--ia-ink); }

.ia-crm2-tally-icon {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ia-crm2-tally-icon svg { width: 13px; height: 13px; }
.ia-crm2-tally-icon--good    { background: rgba(168,231,106,.3); color: #315d20; }
.ia-crm2-tally-icon--bad     { background: rgba(248,113,113,.16); color: #991b1b; }
.ia-crm2-tally-icon--neutral { background: rgba(17,18,23,.06); color: var(--ia-muted); }

/* ── Кольцо конверсии ── */
.ia-crm2-ring-panel { align-items: center; text-align: center; }
.ia-crm2-ring-panel .ia-crm2-panel-label { align-self: flex-start; }
.ia-crm2-ring-wrap { flex: 1; display: flex; align-items: center; justify-content: center; }
.ia-crm2-ring { width: 122px; height: 122px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.ia-crm2-ring-hole { width: 94px; height: 94px; border-radius: 50%; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ia-crm2-ring-hole strong { font-family: 'Unbounded', sans-serif; font-size: 26px; font-weight: 800; line-height: 1; }
.ia-crm2-ring-hole strong.good { color: #166534; }
.ia-crm2-ring-hole strong.warn { color: #92400e; }
.ia-crm2-ring-hole strong.bad  { color: #991b1b; }
.ia-crm2-ring-hole span { margin-top: 4px; font-size: 10px; font-weight: 700; color: var(--ia-muted); text-align: center; max-width: 76px; line-height: 1.3; }

/* ── Донат структуры обращений ── */
.ia-crm2-donut-row { display: flex; align-items: center; gap: 22px; flex: 1; }
.ia-crm2-donut-wrap { position: relative; flex-shrink: 0; }
.ia-crm2-donut { width: 96px; height: 96px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.ia-crm2-donut-hole { width: 68px; height: 68px; border-radius: 50%; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ia-crm2-donut-hole strong { font-family: 'Unbounded', sans-serif; font-size: 18px; font-weight: 800; color: var(--ia-ink); line-height: 1; }
.ia-crm2-donut-hole span { margin-top: 2px; font-size: 9px; font-weight: 700; color: var(--ia-muted); }

.ia-crm2-donut-callout {
    position: absolute;
    top: -8px;
    right: -18px;
    background: var(--ia-ink);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.35;
    padding: 6px 10px;
    border-radius: 10px;
    white-space: nowrap;
    box-shadow: 0 6px 16px rgba(17,18,23,.18);
}
.ia-crm2-donut-callout b { font-size: 12px; }

.ia-crm2-donut-legend { display: flex; flex-direction: column; gap: 10px; }
.ia-crm2-donut-legend span { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700; color: #4b4f5a; }
.ia-crm2-donut-legend b { color: var(--ia-ink); font-family: 'Unbounded', sans-serif; font-size: 13px; }

.ia-crm2-panel-bar { margin-top: auto; }

@media (max-width: 900px) {
    .ia-crm2-panels { grid-template-columns: 1fr; }
}

/* ── Полоса-воронка ── */
.ia-crm2-funnel { padding: 26px 28px; margin-bottom: 14px; }

.ia-crm2-funnel-kicker {
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--ia-muted);
}

.ia-crm2-funnel-headline {
    margin: 8px 0 6px;
    font-family: 'Unbounded', sans-serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--ia-ink);
    max-width: 760px;
}

.ia-crm2-funnel-sub { margin: 0 0 22px; font-size: 13px; color: #4b4f5a; line-height: 1.5; max-width: 760px; }

.ia-crm2-funnel-chart { display: flex; flex-direction: column; }

.ia-crm2-funnel-row { display: grid; grid-template-columns: 130px 1fr 56px; align-items: center; gap: 14px; }
.ia-crm2-funnel-row-label { font-size: 12.5px; font-weight: 800; color: var(--ia-ink); }
.ia-crm2-funnel-row-track { height: 24px; border-radius: 7px; background: rgba(17,18,23,.05); overflow: hidden; }
.ia-crm2-funnel-row-fill { height: 100%; border-radius: 7px; background: #A8E76A; transition: width .2s; }
.ia-crm2-funnel-row-fill--final { background: #6fae3a; }
.ia-crm2-funnel-row-count { font-size: 12.5px; font-weight: 800; color: var(--ia-ink); text-align: right; }

.ia-crm2-funnel-drop {
    padding: 6px 0 6px 144px;
    font-size: 11px;
    font-weight: 800;
    color: var(--ia-muted);
}
.ia-crm2-funnel-drop--worst { color: #991b1b; }

/* ── Плитки KPI ── */
.ia-crm2-kpi-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 14px; }

.ia-crm2-kpi-tile {
    background: var(--ia-card);
    border: 1px solid var(--ia-card-border);
    border-radius: 16px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 7px;
}
.ia-crm2-kpi-tile--clickable { cursor: pointer; transition: border-color .15s; }
.ia-crm2-kpi-tile--clickable:hover { border-color: rgba(17,18,23,.14); }

.ia-crm2-kpi-label { font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .04em; color: var(--ia-muted); }
.ia-crm2-kpi-num { font-family: 'Unbounded', sans-serif; font-size: 28px; font-weight: 800; color: var(--ia-ink); line-height: 1; }
.ia-crm2-kpi-note { font-size: 11.5px; color: var(--ia-muted); font-weight: 600; line-height: 1.45; }

/* ── Сделки/отказы мини-метрики (внутри ia-crm-col) ── */
.ia-crm2-ratio-metrics { display: flex; gap: 20px; }
.ia-crm2-ratio-metrics > div { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.ia-crm2-ratio-metrics span { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; color: var(--ia-muted); }
.ia-crm2-ratio-metrics strong { font-family: 'Unbounded', sans-serif; font-size: 22px; font-weight: 800; color: var(--ia-ink); }

/* ── Баннер-рекомендация ── */
.ia-crm2-reco {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 26px;
    background: linear-gradient(135deg, rgba(168,231,106,.4), rgba(255,255,255,.9) 66%);
    border-color: rgba(168,231,106,.35);
    cursor: pointer;
}
.ia-crm2-reco-kicker { font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .04em; color: #315d20; }
.ia-crm2-reco-title { margin: 7px 0 5px; font-family: 'Unbounded', sans-serif; font-size: 17px; font-weight: 800; color: var(--ia-ink); }
.ia-crm2-reco-text { margin: 0; font-size: 13px; color: #2c5518; line-height: 1.5; max-width: 660px; }
.ia-crm2-reco-arrow { font-size: 22px; color: var(--ia-ink); flex-shrink: 0; }

@media (max-width: 900px) {
    .ia-crm2-kpi-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .ia-crm2-funnel-row { grid-template-columns: 90px 1fr 44px; gap: 8px; }
    .ia-crm2-funnel-drop { padding-left: 98px; }
    .ia-crm2-reco { flex-direction: column; align-items: flex-start; }
}

/* ══════════════════════════════════════
   CRM И ПРОДАЖИ — dashboard skin
   Dark analytics treatment in the product palette
   ══════════════════════════════════════ */

#ia-view-crm-sales {
    display: none;
    gap: 16px;
}

#ia-view-crm-sales.active {
    display: flex;
    flex-direction: column;
}

#ia-view-crm-sales .ia-card {
    border-radius: 20px;
}

#ia-view-crm-sales .ia-crm2-overview,
#ia-view-crm-sales .ia-crm2-funnel {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 78% 9%, rgba(168,231,106,.28), transparent 34%),
        radial-gradient(circle at 12% 95%, rgba(31,90,57,.38), transparent 28%),
        linear-gradient(140deg, #111217 0%, #181a20 54%, #20251f 100%);
    border: 1px solid rgba(168,231,106,.12);
    box-shadow: 0 18px 46px rgba(17,18,23,.16);
    color: #fff;
}

#ia-view-crm-sales .ia-crm2-overview::before,
#ia-view-crm-sales .ia-crm2-funnel::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(180deg, rgba(0,0,0,.9), transparent 78%);
}

#ia-view-crm-sales .ia-crm2-overview::after {
    content: "";
    position: absolute;
    right: 30px;
    bottom: 26px;
    width: 300px;
    height: 112px;
    opacity: .48;
    pointer-events: none;
    background:
        linear-gradient(135deg, transparent 0 13%, rgba(168,231,106,.18) 13% 15%, transparent 15% 29%, rgba(168,231,106,.4) 29% 31%, transparent 31% 48%, rgba(168,231,106,.24) 48% 50%, transparent 50% 68%, rgba(168,231,106,.58) 68% 70%, transparent 70%),
        radial-gradient(circle at 18% 68%, #A8E76A 0 3px, transparent 4px),
        radial-gradient(circle at 38% 46%, #A8E76A 0 3px, transparent 4px),
        radial-gradient(circle at 57% 58%, #A8E76A 0 3px, transparent 4px),
        radial-gradient(circle at 78% 27%, #A8E76A 0 3px, transparent 4px);
}

#ia-view-crm-sales .ia-crm2-funnel-kicker,
#ia-view-crm-sales .ia-crm2-panel-label,
#ia-view-crm-sales .ia-crm2-kpi-label,
#ia-view-crm-sales .ia-crm2-reco-kicker {
    color: #A8E76A;
}

#ia-view-crm-sales .ia-crm2-overview-headline,
#ia-view-crm-sales .ia-crm2-funnel-headline {
    color: #fff;
    max-width: 860px;
}

#ia-view-crm-sales .ia-crm2-overview-sub,
#ia-view-crm-sales .ia-crm2-funnel-sub {
    color: rgba(255,255,255,.62);
}

#ia-view-crm-sales .ia-crm-num--bad,
#ia-view-crm-sales .ia-crm-num--warn {
    color: #A8E76A !important;
}

#ia-view-crm-sales .ia-crm-num--good {
    color: #fff !important;
}

#ia-view-crm-sales .ia-crm2-panels {
    position: relative;
    z-index: 1;
    grid-template-columns: .86fr 1fr 1.18fr;
}

#ia-view-crm-sales .ia-crm2-panel,
#ia-view-crm-sales .ia-crm2-kpi-tile,
#ia-view-crm-sales .ia-crm-col,
#ia-view-crm-sales .ia-rep-pattern-col {
    background:
        linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.035)),
        rgba(17,18,23,.86);
    border: 1px solid rgba(255,255,255,.08);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
    color: #fff;
}

#ia-view-crm-sales .ia-crm2-panel::before {
    display: none;
}

#ia-view-crm-sales .ia-crm2-tally-row {
    min-height: 38px;
    padding: 7px 8px;
    border-radius: 12px;
    background: rgba(255,255,255,.035);
}

#ia-view-crm-sales .ia-crm2-tally-name,
#ia-view-crm-sales .ia-crm2-donut-legend span,
#ia-view-crm-sales .ia-crm2-kpi-note,
#ia-view-crm-sales .ia-crm-note,
#ia-view-crm-sales .ia-rep-pattern-label {
    color: rgba(255,255,255,.62);
}

#ia-view-crm-sales .ia-crm2-tally-row strong,
#ia-view-crm-sales .ia-crm2-donut-legend b,
#ia-view-crm-sales .ia-crm2-ratio-metrics strong,
#ia-view-crm-sales .ia-rep-col-title,
#ia-view-crm-sales .ia-rep-col-count {
    color: #fff;
}

#ia-view-crm-sales .ia-pf-section-label {
    color: var(--ia-muted, #8d919d);
}

#ia-view-crm-sales .ia-crm2-tally-icon--good,
#ia-view-crm-sales .ia-crm2-tally-icon--neutral {
    background: rgba(168,231,106,.15);
    color: #A8E76A;
}

#ia-view-crm-sales .ia-crm2-tally-icon--bad {
    background: rgba(255,255,255,.08);
    color: rgba(255,255,255,.72);
}

#ia-view-crm-sales .ia-crm2-ring {
    width: 138px;
    height: 138px;
    background: conic-gradient(#A8E76A 0% 23%, rgba(255,255,255,.12) 0) !important;
    box-shadow: 0 0 34px rgba(168,231,106,.24);
}

#ia-view-crm-sales .ia-crm2-ring-hole,
#ia-view-crm-sales .ia-crm2-donut-hole {
    background: #111217;
    border: 1px solid rgba(255,255,255,.08);
}

#ia-view-crm-sales .ia-crm2-ring-hole strong,
#ia-view-crm-sales .ia-crm2-donut-hole strong {
    color: #fff !important;
}

#ia-view-crm-sales .ia-crm2-ring-hole span,
#ia-view-crm-sales .ia-crm2-donut-hole span {
    color: rgba(255,255,255,.58);
}

#ia-view-crm-sales .ia-crm2-donut {
    background: conic-gradient(#272a31 0% 71%, rgba(255,255,255,.12) 71% 77%, #A8E76A 77% 100%) !important;
    box-shadow: 0 0 26px rgba(168,231,106,.14);
}

#ia-view-crm-sales .ia-crm2-donut-callout {
    background: #A8E76A;
    color: #111217;
    box-shadow: 0 10px 26px rgba(168,231,106,.24);
}

#ia-view-crm-sales .ia-crm2-funnel-chart {
    position: relative;
    z-index: 1;
    gap: 2px;
    padding: 18px;
    border-radius: 18px;
    background: rgba(255,255,255,.045);
    border: 1px solid rgba(255,255,255,.07);
}

#ia-view-crm-sales .ia-crm2-funnel-row {
    grid-template-columns: 138px 1fr 64px;
    min-height: 42px;
}

#ia-view-crm-sales .ia-crm2-funnel-row-label,
#ia-view-crm-sales .ia-crm2-funnel-row-count {
    color: #fff;
}

#ia-view-crm-sales .ia-crm2-funnel-row-track {
    height: 30px;
    border-radius: 999px;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.06);
    box-shadow: inset 0 1px 8px rgba(0,0,0,.24);
}

#ia-view-crm-sales .ia-crm2-funnel-row-fill {
    border-radius: 999px;
    background:
        linear-gradient(90deg, #A8E76A, #7ec04b);
    box-shadow: 0 0 24px rgba(168,231,106,.34);
}

#ia-view-crm-sales .ia-crm2-funnel-row-fill--final {
    background: linear-gradient(90deg, #fff, #A8E76A);
}

#ia-view-crm-sales .ia-crm2-funnel-drop {
    color: rgba(255,255,255,.44);
}

#ia-view-crm-sales .ia-crm2-funnel-drop--worst {
    color: #A8E76A;
}

#ia-view-crm-sales .ia-crm2-kpi-row {
    gap: 16px;
}

#ia-view-crm-sales .ia-crm2-kpi-tile {
    position: relative;
    min-height: 150px;
    overflow: hidden;
    padding: 20px;
}

#ia-view-crm-sales .ia-crm2-kpi-tile::before {
    content: "";
    position: absolute;
    right: 18px;
    bottom: 18px;
    width: 118px;
    height: 46px;
    opacity: .7;
    background:
        linear-gradient(140deg, transparent 0 14%, rgba(168,231,106,.45) 14% 17%, transparent 17% 34%, rgba(168,231,106,.18) 34% 37%, transparent 37% 55%, rgba(168,231,106,.55) 55% 58%, transparent 58%),
        radial-gradient(circle at 18% 68%, #A8E76A 0 2px, transparent 3px),
        radial-gradient(circle at 44% 42%, #A8E76A 0 2px, transparent 3px),
        radial-gradient(circle at 77% 22%, #A8E76A 0 2px, transparent 3px);
}

#ia-view-crm-sales .ia-crm2-kpi-tile::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    width: 62%;
    height: 58%;
    background: radial-gradient(circle at 70% 70%, rgba(168,231,106,.16), transparent 58%);
    pointer-events: none;
}

#ia-view-crm-sales .ia-crm2-kpi-num {
    color: #fff;
    font-size: 32px;
}

#ia-view-crm-sales .ia-rep-cols {
    gap: 16px;
}

#ia-view-crm-sales .ia-crm2-ratio-metrics {
    gap: 10px;
}

#ia-view-crm-sales .ia-crm2-ratio-metrics > div {
    min-height: 112px;
    justify-content: flex-end;
    padding: 14px;
    border-radius: 14px;
    background:
        linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.055)),
        linear-gradient(0deg, rgba(168,231,106,.36) 0 44%, transparent 44%);
    border: 1px solid rgba(255,255,255,.07);
}

#ia-view-crm-sales .ia-crm2-ratio-metrics > div:nth-child(2) {
    background:
        linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.055)),
        linear-gradient(0deg, rgba(255,255,255,.18) 0 74%, transparent 74%);
}

#ia-view-crm-sales .ia-crm2-ratio-metrics > div:nth-child(3) {
    background:
        linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.055)),
        linear-gradient(0deg, rgba(168,231,106,.18) 0 24%, transparent 24%);
}

#ia-view-crm-sales .ia-crm2-ratio-metrics span,
#ia-view-crm-sales .ia-rep-pattern-count {
    color: rgba(255,255,255,.56);
}

#ia-view-crm-sales .ia-rep-pattern-row {
    border-radius: 13px;
    background: rgba(255,255,255,.045);
    border: 1px solid rgba(255,255,255,.06);
}

#ia-view-crm-sales .ia-rep-pattern-row:hover {
    background: rgba(255,255,255,.07);
}

#ia-view-crm-sales .ia-crm2-reco {
    background: linear-gradient(135deg, #A8E76A 0%, #c8ff84 48%, #ffffff 100%);
    border-color: rgba(168,231,106,.55);
    box-shadow: 0 16px 34px rgba(31,90,57,.16);
}

#ia-view-crm-sales .ia-crm2-reco-kicker,
#ia-view-crm-sales .ia-crm2-reco-title,
#ia-view-crm-sales .ia-crm2-reco-text,
#ia-view-crm-sales .ia-crm2-reco-arrow {
    color: #111217;
}

@media (max-width: 1100px) {
    #ia-view-crm-sales .ia-crm2-panels {
        grid-template-columns: 1fr 1fr;
    }
    #ia-view-crm-sales .ia-crm2-panel--accent-bad {
        grid-column: 1 / -1;
    }
    #ia-view-crm-sales .ia-crm2-kpi-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 720px) {
    #ia-view-crm-sales .ia-crm2-overview,
    #ia-view-crm-sales .ia-crm2-funnel {
        padding: 22px 18px;
    }
    #ia-view-crm-sales .ia-crm2-panels,
    #ia-view-crm-sales .ia-crm2-kpi-row {
        grid-template-columns: 1fr;
    }
    #ia-view-crm-sales .ia-crm2-panel--accent-bad {
        grid-column: auto;
    }
    #ia-view-crm-sales .ia-crm2-donut-row {
        align-items: flex-start;
        flex-direction: column;
    }
    #ia-view-crm-sales .ia-crm2-funnel-row {
        grid-template-columns: 1fr 54px;
        gap: 8px;
    }
    #ia-view-crm-sales .ia-crm2-funnel-row-label {
        grid-column: 1 / -1;
    }
    #ia-view-crm-sales .ia-crm2-funnel-drop {
        padding-left: 0;
    }
}

/* ══════════════════════════════════════
   CRM dashboard rebuild — retrospective sales analytics
   ══════════════════════════════════════ */

#ia-view-crm-sales {
    display: none;
    flex-direction: column;
    gap: 18px;
}

#ia-view-crm-sales.active {
    display: flex;
}

.crm-dash-hero,
.crm-dash-card,
.crm-dash-funnel,
.crm-dash-speed,
.crm-dash-reasons,
.crm-dash-ai {
    border-radius: 20px;
    border: 1px solid rgba(17,18,23,.08);
    box-shadow: 0 14px 34px rgba(17,18,23,.06);
}

.crm-dash-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 22px;
    align-items: stretch;
    padding: 30px;
    background:
        radial-gradient(circle at 84% 18%, rgba(168,231,106,.32), transparent 32%),
        linear-gradient(135deg, rgba(168,231,106,.2), rgba(255,255,255,.98) 38%, #fff 100%);
    color: #111217;
    border-color: rgba(168,231,106,.34);
    overflow: hidden;
}

.crm-dash-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--ia-muted, #8d919d);
}

/* На тёмной карточке рекомендации серый кикер нечитаем — оставляем фирменный зелёный */
.crm-dash-ai .crm-dash-kicker {
    color: #A8E76A;
}

.crm-dash-hero .crm-dash-kicker,
.crm-dash-ai .crm-dash-kicker {
    color: #64ad37;
}

.crm-dash-hero h2 {
    margin: 12px 0 10px;
    max-width: 840px;
    font-family: 'Unbounded', sans-serif;
    font-size: 32px;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: 0;
}

.crm-dash-hero p {
    margin: 0;
    max-width: 820px;
    color: #7f8692;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.55;
}

.crm-dash-hero-metric {
    display: grid;
    grid-template-columns: .92fr 1fr;
    align-items: center;
    gap: 16px;
    min-height: 154px;
    padding: 18px;
    border-radius: 18px;
    background: rgba(255,255,255,.78);
    border: 1px solid rgba(17,18,23,.06);
    box-shadow: 0 12px 30px rgba(17,18,23,.06);
}

.crm-dash-hero-metric span,
.crm-dash-hero-metric small {
    color: #8d95a1;
    font-size: 12px;
    font-weight: 800;
}

.crm-dash-hero-score strong {
    display: block;
    margin: 8px 0 0;
    font-family: 'Unbounded', sans-serif;
    font-size: 44px;
    line-height: 1;
    color: #111217;
}

.crm-dash-hero-score strong small {
    font-size: 16px;
    color: #8d95a1;
}

.crm-dash-hero-loss {
    min-height: 100%;
}

.crm-dash-hero-score {
    min-height: 100%;
    padding-left: 16px;
    border-left: 1px solid rgba(17,18,23,.07);
}

.crm-dash-hero-loss b {
    display: block;
    margin: 8px 0 5px;
    font-family: 'Unbounded', sans-serif;
    font-size: 28px;
    line-height: 1;
    color: #64ad37;
}

.crm-dash-overview {
    display: grid;
    grid-template-columns: .9fr 1.08fr 1.18fr;
    gap: 16px;
}

.crm-dash-card,
.crm-dash-funnel,
.crm-dash-speed,
.crm-dash-reasons {
    background: #fff;
    padding: 22px;
}

.crm-dash-card {
    min-height: 250px;
    display: flex;
    flex-direction: column;
}

.crm-dash-card-head,
.crm-dash-section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.crm-dash-card-head span,
.crm-dash-section-head h3 {
    color: #111217;
}

.crm-dash-card-head span {
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.crm-dash-card-head b,
.crm-dash-section-head strong {
    font-size: 12px;
    font-weight: 900;
    color: #6fae3a;
    white-space: nowrap;
}

.crm-dash-section-head {
    margin-bottom: 20px;
}

.crm-dash-section-head h3 {
    margin: 6px 0 0;
    font-family: 'Unbounded', sans-serif;
    font-size: 22px;
    line-height: 1.18;
    font-weight: 800;
}

.crm-dash-ring {
    --value: 0;
    --ring-color: #A8E76A;
    width: 154px;
    height: 154px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: conic-gradient(var(--ring-color) 0 calc(var(--value) * 1%), #eceee8 0 100%);
    box-shadow: inset 0 0 0 1px rgba(17,18,23,.05), 0 18px 34px rgba(31,90,57,.12);
}

.crm-dash-ring > div,
.crm-dash-donut > div {
    width: 112px;
    height: 112px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fff;
    box-shadow: inset 0 0 0 1px rgba(17,18,23,.06);
}

.crm-dash-ring strong,
.crm-dash-donut strong {
    font-family: 'Unbounded', sans-serif;
    font-size: 30px;
    line-height: 1;
    color: #111217;
}

.crm-dash-ring span,
.crm-dash-donut span {
    margin-top: 6px;
    font-size: 10px;
    font-weight: 800;
    color: #8d919d;
}

.crm-dash-target {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding-top: 14px;
    border-top: 1px solid #eceee8;
    font-size: 12px;
    font-weight: 800;
}

.crm-dash-target span { color: #8d919d; }
.crm-dash-target strong { color: #1f5a39; }

.crm-dash-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 22px;
}

.crm-dash-summary-grid div {
    min-height: 82px;
    padding: 14px;
    border-radius: 16px;
    background: #f5f4f0;
    border: 1px solid #e4e3de;
}

.crm-dash-summary-grid i {
    display: none;
}

.crm-dash-summary-grid i svg {
    width: 15px;
    height: 15px;
}

.crm-dash-summary-grid span {
    display: block;
    font-size: 11px;
    font-weight: 800;
    color: #8d919d;
}

.crm-dash-summary-grid strong {
    display: block;
    margin-top: 4px;
    font-family: 'Unbounded', sans-serif;
    font-size: 22px;
    color: #111217;
}

.crm-dash-donut-row {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 26px;
    align-items: center;
    margin-top: 24px;
}

.crm-dash-donut {
    --lost: 0;
    --open: 0;
    --won: 0;
    position: relative;
    width: 150px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: conic-gradient(#111217 0 calc(var(--lost) * 1%), #d8dae0 0 calc((var(--lost) + var(--open)) * 1%), #A8E76A 0 100%);
}

.crm-dash-donut em {
    position: absolute;
    top: 2px;
    right: -18px;
    padding: 7px 10px;
    border-radius: 10px;
    background: #A8E76A;
    color: #111217;
    font-style: normal;
    font-size: 10px;
    font-weight: 900;
    box-shadow: 0 10px 22px rgba(31,90,57,.18);
}

.crm-dash-legend {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.crm-dash-legend span {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #5d626f;
    font-size: 13px;
    font-weight: 800;
}

.crm-dash-legend b {
    margin-left: auto;
    color: #111217;
    font-family: 'Unbounded', sans-serif;
}

.crm-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.crm-dot--won { background: #A8E76A; }
.crm-dot--open { background: #d8dae0; }
.crm-dot--lost { background: #111217; }

.crm-dash-funnel {
    background: #111217;
    color: #fff;
    border-color: rgba(168,231,106,.16);
}

.crm-dash-funnel .crm-dash-section-head h3,
.crm-dash-funnel .crm-dash-section-head strong {
    color: #fff;
}

.crm-dash-funnel .crm-dash-section-head strong {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(168,231,106,.14);
    color: #A8E76A;
}

.crm-dash-stage-flow {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 82px minmax(0, 1fr) 82px minmax(0, 1fr) 82px minmax(0, 1fr) 82px minmax(0, 1fr);
    gap: 10px;
    align-items: stretch;
}

.crm-dash-stage {
    min-height: 154px;
    padding: 16px;
    border-radius: 18px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.08);
}

.crm-dash-stage--final {
    background: linear-gradient(180deg, rgba(168,231,106,.28), rgba(168,231,106,.08));
    border-color: rgba(168,231,106,.3);
}

.crm-dash-stage-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.crm-dash-stage-top span,
.crm-dash-stage small,
.crm-dash-transition small {
    color: rgba(255,255,255,.58);
    font-size: 11px;
    font-weight: 800;
}

.crm-dash-stage-top strong {
    font-family: 'Unbounded', sans-serif;
    font-size: 26px;
    color: #fff;
}

.crm-dash-stage-bar {
    height: 72px;
    margin: 20px 0 10px;
    display: flex;
    align-items: flex-end;
    border-radius: 14px;
    background: rgba(255,255,255,.07);
    overflow: hidden;
}

.crm-dash-stage-bar i {
    height: 100%;
    display: block;
    border-radius: 0 14px 14px 0;
    background: linear-gradient(90deg, #A8E76A, #6fae3a);
    box-shadow: 0 0 22px rgba(168,231,106,.28);
}

.crm-dash-transition {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    text-align: center;
    color: rgba(255,255,255,.52);
}

.crm-dash-transition::before {
    content: "";
    width: 100%;
    height: 2px;
    border-radius: 99px;
    background: rgba(255,255,255,.16);
}

.crm-dash-transition span {
    font-family: 'Unbounded', sans-serif;
    font-size: 15px;
    color: #fff;
}

.crm-dash-transition--worst span,
.crm-dash-transition--worst small {
    color: #A8E76A;
}

.crm-dash-transition--worst::before {
    background: #A8E76A;
    box-shadow: 0 0 20px rgba(168,231,106,.45);
}

.crm-dash-kpi-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}

.crm-dash-kpi-grid article {
    position: relative;
    min-height: 158px;
    padding: 18px;
    border-radius: 18px;
    background: #f5f4f0;
    border: 1px solid #e4e3de;
    overflow: hidden;
}

.crm-dash-kpi-grid article[onclick] {
    cursor: pointer;
}

.crm-dash-kpi-grid article span {
    display: block;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #8d919d;
}

.crm-dash-kpi-grid article strong {
    display: block;
    margin: 14px 0 8px;
    font-family: 'Unbounded', sans-serif;
    font-size: 28px;
    line-height: 1;
    color: #111217;
}

.crm-dash-kpi-grid article small {
    display: block;
    min-height: 34px;
    color: #6b707c;
    font-size: 11.5px;
    font-weight: 700;
    line-height: 1.4;
}

.crm-dash-kpi-grid article > i {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    height: 8px;
    border-radius: 999px;
    background: rgba(17,18,23,.08);
    overflow: hidden;
}

.crm-dash-kpi-grid article > i::before {
    content: "";
    display: block;
    width: var(--bar);
    height: 100%;
    border-radius: inherit;
    background: #A8E76A;
}

.crm-dash-bottom {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, .75fr);
    gap: 16px;
}

.crm-dash-reason-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.crm-dash-reason-row {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(140px, .5fr);
    gap: 16px;
    align-items: center;
    padding: 14px;
    border-radius: 16px;
    background: #f5f4f0;
    border: 1px solid #e4e3de;
}

.crm-dash-reason-row span,
.crm-dash-reason-row b {
    display: block;
}

.crm-dash-reason-row span {
    color: #111217;
    font-size: 13px;
    font-weight: 800;
}

.crm-dash-reason-row b {
    margin-top: 4px;
    color: #8d919d;
    font-size: 11px;
}

.crm-dash-reason-row i {
    height: 9px;
    border-radius: 999px;
    background: rgba(17,18,23,.08);
    overflow: hidden;
}

.crm-dash-reason-row em {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #111217;
}

.crm-dash-ai button {
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    font-family: 'Onest', sans-serif;
    font-size: 12px;
    font-weight: 900;
}

.crm-dash-ai {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 24px;
    background:
        radial-gradient(circle at 85% 16%, rgba(168,231,106,.34), transparent 38%),
        linear-gradient(145deg, #111217, #1a1d22 62%, #22301e);
    color: #fff;
    cursor: pointer;
}

.crm-dash-ai h3 {
    margin: 12px 0 12px;
    font-family: 'Unbounded', sans-serif;
    font-size: 20px;
    line-height: 1.25;
    font-weight: 800;
}

.crm-dash-ai p {
    margin: 0 0 24px;
    color: rgba(255,255,255,.66);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.55;
}

.crm-dash-ai button {
    width: fit-content;
    margin-top: auto;
    padding: 12px 16px;
    background: #A8E76A;
    color: #111217;
}

.crm-dash-ai-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 4px 0 22px;
}

.crm-dash-ai-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.crm-dash-ai-check {
    flex-shrink: 0;
    width: 19px;
    height: 19px;
    margin-top: 1px;
    border-radius: 50%;
    background: #A8E76A;
    color: #1a3d0f;
    display: grid;
    place-items: center;
}

.crm-dash-ai-row-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.crm-dash-ai-row-label {
    font-size: 12.5px;
    font-weight: 800;
    color: #fff;
    line-height: 1.4;
}

.crm-dash-ai-row-sub {
    font-size: 11.5px;
    color: rgba(255,255,255,.5);
    line-height: 1.45;
}

/* Воронка: сжатая версия, когда открытый сайдбар съедает ширину */
@media (max-width: 1680px) {
    body.sb-modern-open .crm-dash-stage-flow {
        grid-template-columns: minmax(0, 1fr) 52px minmax(0, 1fr) 52px minmax(0, 1fr) 52px minmax(0, 1fr) 52px minmax(0, 1fr);
        gap: 8px;
    }
    body.sb-modern-open .crm-dash-stage {
        padding: 13px 14px;
    }
    body.sb-modern-open .crm-dash-stage-top strong {
        font-size: 22px;
    }
    body.sb-modern-open .crm-dash-transition span {
        font-size: 14px;
    }
    body.sb-modern-open .crm-dash-transition small {
        font-size: 9.5px;
    }
}

/* Воронка: вертикальная раскладка при открытом сайдбаре на средних экранах */
@media (max-width: 1420px) {
    body.sb-modern-open .crm-dash-stage-flow {
        grid-template-columns: 1fr;
    }
    body.sb-modern-open .crm-dash-transition {
        min-height: 42px;
        flex-direction: row;
    }
    body.sb-modern-open .crm-dash-transition::before {
        width: 48px;
    }
    body.sb-modern-open .crm-dash-stage {
        min-height: auto;
    }
    body.sb-modern-open .crm-dash-stage-bar {
        height: 34px;
        margin: 14px 0 8px;
    }
}

@media (max-width: 1280px) {
    .crm-dash-overview {
        grid-template-columns: 1fr 1fr;
    }
    .crm-dash-card--structure {
        grid-column: 1 / -1;
    }
    .crm-dash-stage-flow {
        grid-template-columns: 1fr;
    }
    .crm-dash-transition {
        min-height: 42px;
        flex-direction: row;
    }
    .crm-dash-transition::before {
        width: 48px;
    }
    .crm-dash-stage {
        min-height: auto;
    }
    .crm-dash-stage-bar {
        height: 34px;
    }
    .crm-dash-kpi-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .crm-dash-hero,
    .crm-dash-overview,
    .crm-dash-bottom {
        grid-template-columns: 1fr;
    }
    .crm-dash-card--structure {
        grid-column: auto;
    }
    .crm-dash-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .crm-dash-hero,
    .crm-dash-card,
    .crm-dash-funnel,
    .crm-dash-speed,
    .crm-dash-reasons,
    .crm-dash-ai {
        border-radius: 16px;
        padding: 18px;
    }
    .crm-dash-hero h2 {
        font-size: 24px;
    }
    .crm-dash-hero-metric {
        grid-template-columns: 1fr;
    }
    .crm-dash-hero-loss {
        min-height: auto;
    }
    .crm-dash-hero-score {
        min-height: auto;
        padding-left: 0;
        padding-top: 14px;
        border-left: 0;
        border-top: 1px solid rgba(17,18,23,.07);
    }
    .crm-dash-summary-grid,
    .crm-dash-kpi-grid,
    .crm-dash-donut-row {
        grid-template-columns: 1fr;
    }
    .crm-dash-reason-row {
        grid-template-columns: 1fr;
    }
}

/* ══════════════════════════════════════
   КОМАНДА — retrospective team dashboard
   ══════════════════════════════════════ */

#ia-view-team {
    display: none;
    flex-direction: column;
    gap: 16px;
}

#ia-view-team.active {
    display: flex;
}

.team-dash-hero,
.team-dash-card,
.team-dir,
.team-dash-ai {
    border-radius: 20px;
    border: 1px solid rgba(17,18,23,.08);
}

.team-dash-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 22px;
    padding: 30px;
    background:
        radial-gradient(circle at 86% 18%, rgba(168,231,106,.32), transparent 32%),
        linear-gradient(135deg, rgba(168,231,106,.22), rgba(255,255,255,.98) 38%, #fff 100%);
    color: #111217;
    border-color: rgba(168,231,106,.34);
    box-shadow: 0 18px 46px rgba(17,18,23,.08);
}

.team-dash-kicker {
    display: inline-flex;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--ia-muted, #8d919d);
}

.team-dash-hero .team-dash-kicker,
.team-dash-ai .team-dash-kicker {
    color: #64ad37;
}

.team-dash-hero h2 {
    max-width: 900px;
    margin: 12px 0 10px;
    font-family: 'Unbounded', sans-serif;
    font-size: 31px;
    line-height: 1.16;
    font-weight: 800;
}

.team-dash-hero p,
.team-dash-ai p {
    margin: 0;
    color: #7f8692;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.55;
}

.team-dash-pulse {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 168px;
    padding: 20px;
    border-radius: 18px;
    background: rgba(255,255,255,.76);
    border: 1px solid rgba(17,18,23,.06);
    box-shadow: 0 12px 30px rgba(17,18,23,.06);
}

.team-dash-pulse span,
.team-dash-pulse small {
    color: #8d95a1;
    font-size: 12px;
    font-weight: 900;
}

.team-dash-pulse strong {
    display: block;
    margin-top: 10px;
    font-family: 'Unbounded', sans-serif;
    font-size: 44px;
    line-height: 1;
    color: #111217;
}

.team-dash-pulse strong small {
    font-size: 16px;
    color: #8d95a1;
}

.team-dash-pulse-sub {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
}

.team-dash-pulse-sub b {
    color: #64ad37;
    font-family: 'Unbounded', sans-serif;
    font-size: 17px;
    font-weight: 900;
}

.team-dash-pulse i {
    display: block;
    border-radius: 999px;
    background: rgba(17,18,23,.08);
    overflow: hidden;
}

.team-dash-pulse i {
    height: 9px;
    background: rgba(17,18,23,.08);
}

.team-dash-pulse i::before {
    content: "";
    display: block;
    width: var(--team-active);
    height: 100%;
    border-radius: inherit;
    background: #A8E76A;
}

.team-dash-overview {
    display: grid;
    grid-template-columns: 1.15fr 1fr .9fr;
    gap: 16px;
}

.team-dash-card {
    padding: 22px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(17,18,23,.05);
}

.team-dash-card > strong,
.team-chart-head strong {
    display: block;
    margin-top: 12px;
    font-family: 'Unbounded', sans-serif;
    font-size: 42px;
    line-height: 1;
    color: #111217;
}

.team-chart-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.team-chart-head small {
    margin-top: 22px;
    color: #8d919d;
    font-size: 13px;
    font-weight: 900;
}

.team-dash-card p {
    margin: 8px 0 0;
    color: #8d919d;
    font-size: 13px;
    font-weight: 700;
}

.team-dash-work,
.team-dash-activity {
    min-height: 300px;
}

.team-work-chart {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    align-items: end;
    height: 148px;
    margin-top: 20px;
    padding: 14px 12px 10px;
    border-radius: 18px;
    background: rgba(17,18,23,.03);
    border: 1px solid var(--ia-line, rgba(17,18,23,.075));
}

.team-work-bar {
    min-width: 0;
    height: 100%;
    display: grid;
    grid-template-rows: 22px 1fr 20px;
    gap: 8px;
    align-items: end;
    text-align: center;
}

.team-work-bar span {
    overflow: hidden;
    color: #8d919d;
    font-size: 10px;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.team-work-bar i {
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    border-radius: 999px;
    background: rgba(17,18,23,.06);
    overflow: hidden;
}

.team-work-bar em {
    width: 100%;
    min-height: 14%;
    display: block;
    border-radius: 999px 999px 6px 6px;
    background: linear-gradient(180deg, #A8E76A, #6fae3a);
}

.team-work-bar b {
    color: #111217;
    font-family: 'Unbounded', sans-serif;
    font-size: 14px;
}

.team-activity-chart {
    display: flex;
    flex-direction: column;
    gap: 11px;
    margin-top: 22px;
}

.team-activity-row {
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr) 36px;
    gap: 10px;
    align-items: center;
}

.team-activity-row span {
    color: #4b4f5a;
    font-size: 12px;
    font-weight: 900;
}

.team-activity-row i {
    height: 14px;
    border-radius: 999px;
    background: rgba(17,18,23,.06);
    overflow: hidden;
}

.team-activity-row em {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #A8E76A, #6fae3a);
}

.team-activity-row b {
    color: #111217;
    font-family: 'Unbounded', sans-serif;
    font-size: 13px;
    text-align: right;
}

.team-dash-focus {
    display: flex;
    flex-direction: column;
    min-height: 300px;
}

.team-dash-focus .team-chart-head strong {
    font-size: 40px;
}

.team-dash-focus .team-chart-head strong small {
    display: block;
    margin-top: 6px;
    font-size: 15px;
    line-height: 1.25;
    color: #8d919d;
}

.team-focus-bars {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 22px;
}

.team-focus-bar-top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 6px;
}

.team-focus-bar-top span {
    font-size: 12.5px;
    font-weight: 800;
    color: #111217;
}

.team-focus-bar-top b {
    font-family: 'Unbounded', sans-serif;
    font-size: 13px;
    color: #111217;
}

.team-focus-bars i {
    display: block;
    height: 8px;
    border-radius: 999px;
    background: rgba(17,18,23,.06);
    overflow: hidden;
}

.team-focus-bars em {
    display: block;
    height: 100%;
    border-radius: inherit;
}

.team-focus-bar-row small {
    display: block;
    margin-top: 6px;
    font-size: 11px;
    font-weight: 700;
    color: #8d919d;
}

.team-dash-section-head {
    margin: 6px 0 16px;
}

.team-dash-section-head h3 {
    margin: 6px 0 0;
    font-family: 'Unbounded', sans-serif;
    font-size: 20px;
    line-height: 1.25;
    color: #111217;
}

.team-dash-directions {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.team-dir {
    padding: 20px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(17,18,23,.05);
}

.team-dir--dark {
    background: #111217;
    color: #fff;
    border-color: rgba(168,231,106,.14);
}

.team-dir-head,
.team-dir-body {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: 18px;
}

.team-dir-head {
    align-items: center;
    margin-bottom: 18px;
}

.team-dir-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.team-dir-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: #111217;
    color: #A8E76A;
}

.team-dir--dark .team-dir-icon {
    background: rgba(255,255,255,.08);
}

.team-dir-title h4 {
    margin: 0;
    font-family: 'Unbounded', sans-serif;
    font-size: 17px;
    color: inherit;
}

.team-dir-title p {
    margin: 3px 0 0;
    color: #8d919d;
    font-size: 12px;
    font-weight: 700;
}

.team-dir-summary,
.team-mini-stat,
.team-mini-rating {
    padding: 12px;
    border-radius: 14px;
    background: #f5f4f0;
    color: #8d919d;
    font-size: 11px;
    font-weight: 800;
}

.team-mini-stat {
    display: flex;
    flex-direction: column;
}

.team-mini-stat-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: center;
}

.team-dir--dark .team-dir-summary,
.team-dir--dark .team-mini-stat,
.team-dir--dark .team-mini-rating {
    background: rgba(255,255,255,.06);
    color: rgba(255,255,255,.62);
}

.team-dir-summary b,
.team-mini-stat b {
    display: block;
    margin-bottom: 3px;
    color: #111217;
    font-size: 13px;
    font-weight: 900;
}

.team-dir-summary span {
    display: block;
    color: #8d919d;
    font-size: 12px;
    font-weight: 800;
}

.team-dir--dark .team-dir-summary b,
.team-dir--dark .team-mini-stat b {
    color: #fff;
}

.team-dir--dark .team-dir-summary span {
    color: rgba(255,255,255,.58);
}

.team-dir-contrib {
    display: flex;
    flex-direction: column;
    padding: 14px;
    border-radius: 16px;
    background: #f5f4f0;
    border: 1px solid #e4e3de;
}

.team-dir--dark .team-dir-contrib {
    background: rgba(255,255,255,.055);
    border-color: rgba(255,255,255,.075);
}

.team-dir-block-title {
    display: block;
    margin-bottom: 4px;
    color: #6fae3a;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.team-dir--dark .team-dir-block-title {
    color: #A8E76A;
}

.team-contrib-person {
    padding: 12px 0;
    border-top: 1px solid rgba(17,18,23,.08);
}

.team-contrib-person:first-child {
    padding-top: 0;
    border-top: 0;
}

.team-dir--dark .team-contrib-person {
    border-top-color: rgba(255,255,255,.08);
}

.team-contrib-person-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.team-contrib-person-head strong {
    display: block;
    font-size: 13.5px;
    font-weight: 800;
    color: var(--ia-ink, #111217);
}

.team-dir--dark .team-contrib-person-head strong {
    color: #fff;
}

.team-contrib-person-head small {
    display: block;
    margin-top: 3px;
    color: #8d919d;
    font-size: 11px;
    font-weight: 700;
}

.team-dir--dark .team-contrib-person-head small {
    color: rgba(255,255,255,.55);
}

.team-contrib-pct {
    flex-shrink: 0;
    font-family: 'Unbounded', sans-serif;
    font-size: 19px;
    font-weight: 800;
    color: var(--ia-ink, #111217);
}

.team-dir--dark .team-contrib-pct {
    color: #A8E76A;
}

.team-contrib-bar-wrap {
    height: 8px;
    border-radius: 999px;
    background: rgba(17,18,23,.08);
    overflow: hidden;
}

.team-dir--dark .team-contrib-bar-wrap {
    background: rgba(255,255,255,.14);
}

.team-contrib-bar-wrap i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #A8E76A;
}

.team-dir-side {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 10px;
}

.team-mini-stat-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4px;
}

.team-mini-stat-grid b {
    margin: 0;
    font-family: 'Unbounded', sans-serif;
    font-size: 34px;
    line-height: 1;
}

.team-mini-stat-grid small {
    display: block;
    color: #8d919d;
    font-size: 11px;
    font-weight: 800;
}

.team-mini-stat-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(17,18,23,.08);
}

.team-dir--dark .team-mini-stat-list {
    border-top-color: rgba(255,255,255,.08);
}

.team-mini-stat-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.team-mini-stat-row i {
    width: 7px;
    height: 7px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #8d919d;
}

.team-mini-stat-row--bad i { background: #e5484d; }
.team-mini-stat-row--warn i { background: #f2a93b; }
.team-mini-stat-row--good i { background: #6fae3a; }
.team-dir--dark .team-mini-stat-row--good i { background: #A8E76A; }
.team-mini-stat-row--neutral i { background: #8d919d; }

.team-mini-stat-row span {
    flex: 1;
    margin: 0;
    color: #8d919d;
    font-size: 11px;
    font-weight: 800;
}

.team-dir--dark .team-mini-stat-row span {
    color: rgba(255,255,255,.62);
}

.team-mini-stat-row b {
    margin: 0;
    font-family: 'Unbounded', sans-serif;
    font-size: 13px;
    color: #111217;
}

.team-dir--dark .team-mini-stat-row b {
    color: #fff;
}

.team-mini-rating > span {
    display: block;
    margin-bottom: 3px;
}

.team-mini-rating-caption {
    display: block;
    margin-bottom: 8px;
    color: #b0b3ba;
    font-size: 10px;
    font-weight: 700;
}

.team-dir--dark .team-mini-rating-caption {
    color: rgba(255,255,255,.38);
}

.team-rating-person {
    padding: 12px 0;
    border-top: 1px solid rgba(17,18,23,.08);
}

.team-rating-person:first-child {
    padding-top: 0;
    border-top: 0;
}

.team-dir--dark .team-rating-person {
    border-top-color: rgba(255,255,255,.08);
}

.team-rating-person-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
}

.team-rating-person-head strong {
    font-size: 13.5px;
    font-weight: 800;
    color: var(--ia-ink, #111217);
}

.team-dir--dark .team-rating-person-head strong {
    color: #fff;
}

.team-rating-pace {
    flex-shrink: 0;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 10.5px;
    font-weight: 800;
    white-space: nowrap;
}

.team-rating-pace--good    { background: rgba(168,231,106,.28); color: #315d20; }
.team-rating-pace--warn    { background: rgba(251,191,36,.22);  color: #92400e; }
.team-rating-pace--bad     { background: rgba(248,113,113,.18); color: #991b1b; }
.team-rating-pace--neutral { background: rgba(17,18,23,.06);    color: #8d919d; }

.team-dir--dark .team-rating-pace--good    { background: rgba(168,231,106,.22); color: #A8E76A; }
.team-dir--dark .team-rating-pace--warn    { background: rgba(251,191,36,.24);  color: #fbbf24; }
.team-dir--dark .team-rating-pace--bad     { background: rgba(248,113,113,.26); color: #fca5a5; }
.team-dir--dark .team-rating-pace--neutral { background: rgba(255,255,255,.1);  color: rgba(255,255,255,.62); }

.team-rating-stats {
    display: flex;
    gap: 22px;
}

.team-rating-stats div {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.team-rating-stats b {
    font-family: 'Unbounded', sans-serif;
    font-size: 19px;
    font-weight: 800;
    color: var(--ia-ink, #111217);
}

.team-dir--dark .team-rating-stats b {
    color: #fff;
}

.team-rating-stats small {
    font-size: 10.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: #8d919d;
}

.team-dir--dark .team-rating-stats small {
    color: rgba(255,255,255,.5);
}

.team-rating-person--solo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.team-dash-ai {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 24px;
    background:
        radial-gradient(circle at 82% 10%, rgba(168,231,106,.3), transparent 35%),
        linear-gradient(135deg, #111217, #1a1d22 62%, #22301e);
    color: #fff;
    cursor: pointer;
}

.team-dash-ai h3 {
    margin: 10px 0 8px;
    font-family: 'Unbounded', sans-serif;
    font-size: 21px;
    line-height: 1.24;
}

.team-dash-ai button {
    flex-shrink: 0;
    padding: 12px 16px;
    border: 0;
    border-radius: 999px;
    background: #A8E76A;
    color: #111217;
    font-family: 'Onest', sans-serif;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
}

.team-ai-insight {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 18px;
    padding: 30px;
    border-radius: 32px;
    background:
        linear-gradient(135deg, rgba(168,231,106,.18), rgba(255,255,255,.92) 28%, #fff 72%),
        #fff;
    border: 1px solid rgba(100,173,55,.16);
    box-shadow: 0 18px 46px rgba(17,18,23,.07);
    font-family: 'Onest', sans-serif;
}

.team-ai-insight--report {
    align-items: start;
}

.team-ai-insight h3 {
    max-width: 820px;
    margin: 10px 0 14px;
    font-family: 'Unbounded', sans-serif;
    font-size: 28px;
    line-height: 1.22;
    font-weight: 900;
    color: #111217;
}

.team-ai-summary-line {
    display: flex;
    align-items: center;
    gap: 12px;
    width: fit-content;
    max-width: 100%;
    margin-bottom: 20px;
    padding: 12px 16px;
    border-radius: 18px;
    background: rgba(168,231,106,.18);
    border: 1px solid rgba(100,173,55,.14);
}

.team-ai-summary-line span {
    flex-shrink: 0;
    color: #64ad37;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.team-ai-summary-line b {
    color: #111217;
    font-size: 14px;
    font-weight: 900;
}

.team-ai-insight p {
    max-width: 1120px;
    margin: 0;
    color: #6f7683;
    font-size: 15px;
    line-height: 1.6;
    font-weight: 800;
}

.team-ai-report-head,
.team-ai-report-item {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr) minmax(0, .9fr);
    gap: 18px;
}

.team-ai-report-head {
    margin-bottom: 8px;
    padding: 0 18px;
}

.team-ai-report-head span {
    color: #969ca8;
    font-size: 10px;
    line-height: 1.15;
    font-weight: 900;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.team-ai-report-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 0;
}

.team-ai-report-item {
    align-items: start;
    min-height: auto;
    padding: 18px;
    border-radius: 22px;
    background: rgba(255,255,255,.88);
    border: 1px solid rgba(17,18,23,.06);
    box-shadow: 0 10px 28px rgba(17,18,23,.04);
}

.team-ai-report-top {
    display: block;
    padding: 0;
    border-bottom: 0;
}

.team-ai-report-top h4 {
    margin: 0;
    font-family: 'Unbounded', sans-serif;
    color: #111217;
    font-size: 16px;
    line-height: 1.15;
    font-weight: 900;
}

.team-ai-report-top span {
    display: block;
    margin-top: 5px;
    color: #64ad37;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.team-ai-report-top b {
    display: none;
}

.team-ai-report-body {
    display: contents;
}

.team-ai-report-body strong {
    display: block;
    margin-bottom: 5px;
    color: #111217;
    font-size: 12px;
    font-weight: 900;
}

.team-ai-report-body p {
    color: #59616d;
    font-size: 13px;
    line-height: 1.48;
    font-weight: 800;
}

/* Упрощённый список наблюдений (без ИИ) — одна колонка вместо 3, свой текст на строку */
.team-ai-report-list--plain .team-ai-report-item {
    display: block;
}

.team-ai-report-list--plain .team-ai-report-body {
    display: block;
}

.team-ai-report-list--plain .team-ai-report-body p {
    color: #3f4552;
}

.team-dash-empty {
    padding: 32px 26px;
    border-radius: 22px;
    background: rgba(255,255,255,.82);
    border: 1px solid rgba(17,18,23,.06);
}

.team-dash-empty p {
    margin: 0;
    max-width: 720px;
    color: #6f7683;
    font-size: 14px;
    line-height: 1.6;
    font-weight: 700;
}

.team-dash-empty-note {
    margin: 0;
    color: #9099a6;
    font-size: 13px;
    font-weight: 700;
}

.team-ai-insight-side {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.team-ai-task-card {
    position: sticky;
    top: 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: 520px;
    padding: 22px;
    border-radius: 26px;
    background:
        linear-gradient(145deg, rgba(168,231,106,.3), rgba(255,255,255,.96) 54%),
        #f8fbf5;
    border: 1px solid rgba(100,173,55,.18);
}

.team-ai-task-card > span {
    display: block;
    color: #64ad37;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.team-ai-task-card strong {
    display: block;
    font-family: 'Unbounded', sans-serif;
    font-size: 21px;
    line-height: 1.2;
    font-weight: 900;
    color: #111217;
}

.team-ai-task-card p {
    color: #6f7683;
    font-size: 13px;
    line-height: 1.45;
    font-weight: 800;
}

.team-ai-task-list {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-top: auto;
}

.team-ai-task-list i {
    min-height: 38px;
    display: flex;
    align-items: center;
    padding: 0 12px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid rgba(17,18,23,.06);
    color: #646b76;
    font-style: normal;
    font-size: 12px;
    font-weight: 900;
}

.team-ai-task-card button {
    min-height: 50px;
    border: 0;
    border-radius: 999px;
    background: #A8E76A;
    color: #111217;
    font-family: 'Onest', sans-serif;
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
    transition: transform .15s, filter .15s;
}

.team-ai-task-card button:hover {
    transform: translateY(-1px);
    filter: brightness(.98);
}

@media (max-width: 1200px) {
    .team-dash-overview,
    .team-dir-head,
    .team-dir-body,
    .team-dash-hero {
        grid-template-columns: 1fr;
    }
    .team-ai-insight {
        grid-template-columns: 1fr;
    }
    .team-ai-task-card {
        position: static;
        min-height: auto;
    }
}

@media (max-width: 760px) {
    .team-dash-hero,
    .team-dash-card,
    .team-dir,
    .team-dash-ai {
        padding: 18px;
        border-radius: 16px;
    }
    .team-dash-hero h2 {
        font-size: 24px;
    }
    .team-dir-side,
    .team-dash-ai {
        grid-template-columns: 1fr;
    }
    .team-dash-ai {
        align-items: flex-start;
        flex-direction: column;
    }
    .team-ai-insight {
        padding: 18px;
        border-radius: 22px;
    }
    .team-ai-insight h3 {
        font-size: 20px;
    }
    .team-ai-report-head {
        display: none;
    }
    .team-ai-report-item {
        display: grid;
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .team-ai-report-body {
        display: grid;
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .team-ai-report-list {
        gap: 10px;
    }
    .team-ai-report-item {
        min-height: auto;
    }
}

/* ══════════════ Конкуренты ══════════════ */

.ia-comp-hero {
    padding: 22px 24px;
}

.ia-comp-hero-headline {
    margin: 0;
    font-family: 'Unbounded', sans-serif;
    font-size: 21px;
    line-height: 1.3;
    color: var(--ia-ink);
    max-width: 720px;
}

.ia-comp-hero-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-top: 18px;
}

.ia-comp-hero-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(17,18,23,.035);
    border: 1px solid var(--ia-line);
}

.ia-comp-hero-stat b {
    font-family: 'Unbounded', sans-serif;
    font-size: 24px;
    color: var(--ia-ink);
}

.ia-comp-hero-stat span {
    font-size: 11px;
    font-weight: 800;
    color: var(--ia-muted);
}

.ia-comp-hero-stat--good b { color: #315d20; }
.ia-comp-hero-stat--warn b { color: #92400e; }
.ia-comp-hero-stat--bad b  { color: #991b1b; }

/* KPI: мы vs рынок */
.ia-comp-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.ia-comp-kpi-tile {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    border-radius: 14px;
    background: rgba(17,18,23,.03);
    border: 1px solid var(--ia-line);
}

.ia-comp-kpi-label {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: var(--ia-muted);
}

.ia-comp-kpi-nums {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.ia-comp-kpi-us {
    font-family: 'Unbounded', sans-serif;
    font-size: 21px;
    color: var(--ia-ink);
}

.ia-comp-kpi-badge {
    font-size: 10px;
    padding: 3px 8px;
}

.ia-comp-kpi-avg {
    font-size: 11px;
    font-weight: 700;
    color: var(--ia-muted);
}

/* Карточки конкурентов */
.ia-comp-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.ia-comp-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.ia-comp-card-name {
    display: block;
    font-size: 14px;
    font-weight: 800;
    color: var(--ia-ink);
}

.ia-comp-card-domain {
    display: block;
    margin-top: 2px;
    font-size: 11px;
    font-weight: 700;
    color: var(--ia-muted);
}

.ia-comp-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.ia-comp-tag {
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 10.5px;
    font-weight: 800;
}

.ia-comp-tag--bad  { background: rgba(248,113,113,.15); color: #991b1b; }
.ia-comp-tag--good { background: rgba(168,231,106,.25); color: #315d20; }

.ia-comp-card-more {
    display: block;
    font-size: 11.5px;
    font-weight: 800;
    color: #6fae3a;
}

/* Модалка конкурента */
.ia-comp-modal-axes {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 18px;
}

.ia-comp-modal-axis-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 11px 0;
    border-top: 1px solid var(--ia-line);
    font-size: 12.5px;
}

.ia-comp-modal-axis-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.ia-comp-modal-axis-name {
    color: var(--ia-ink);
    font-weight: 700;
}

.ia-comp-modal-axis-note {
    margin: 0;
    font-size: 12px;
    line-height: 1.45;
    color: var(--ia-muted);
}

.ia-comp-modal-offer {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 18px;
}

.ia-comp-modal-offer div {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(17,18,23,.03);
}

.ia-comp-modal-offer span {
    font-size: 10.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: var(--ia-muted);
}

.ia-comp-modal-offer b {
    font-family: 'Unbounded', sans-serif;
    font-size: 15px;
    color: var(--ia-ink);
}

/* Сравнение по направлениям */
.ia-comp-axes {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.ia-comp-axis-row + .ia-comp-axis-row {
    padding-top: 18px;
    border-top: 1px solid var(--ia-line);
}

.ia-comp-axis-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.ia-comp-axis-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 10px;
    background: rgba(17,18,23,.05);
    color: var(--ia-ink);
    flex-shrink: 0;
}

.ia-comp-axis-name {
    flex: 1;
    font-size: 13.5px;
    font-weight: 800;
    color: var(--ia-ink);
}

.ia-comp-axis-rank {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.ia-comp-axis-rank-pill {
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(17,18,23,.05);
    color: var(--ia-muted);
    font-size: 11.5px;
    font-weight: 800;
}

.ia-comp-axis-rank-pill--us {
    background: var(--ia-ink);
    color: #fff;
}

.ia-comp-axis-insight {
    margin: 0;
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--ia-muted);
}

/* Сравнение предложений */
.ia-comp-offer-table {
    display: flex;
    flex-direction: column;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--ia-line);
}

.ia-comp-offer-row {
    display: grid;
    grid-template-columns: 1.4fr repeat(5, .9fr);
    gap: 8px;
    padding: 12px 14px;
    align-items: center;
}

.ia-comp-offer-row:not(:last-child) {
    border-bottom: 1px solid var(--ia-line);
}

.ia-comp-offer-row span {
    font-size: 12px;
    color: var(--ia-ink);
}

.ia-comp-offer-row--head {
    background: rgba(17,18,23,.03);
}

.ia-comp-offer-row--head span {
    font-size: 10.5px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: var(--ia-muted);
}

.ia-comp-offer-attr {
    font-weight: 700;
}

.ia-comp-offer-us {
    font-weight: 900;
    color: #315d20;
}

/* Сильные / слабые стороны */
.ia-comp-balance {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.ia-comp-balance-col {
    padding: 16px 18px;
    border-radius: 14px;
}

.ia-comp-balance-col--good { background: rgba(168,231,106,.14); }
.ia-comp-balance-col--bad  { background: rgba(248,113,113,.09); }

.ia-comp-balance-title {
    display: block;
    margin-bottom: 10px;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--ia-muted);
}

.ia-comp-balance-col ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.ia-comp-balance-col li {
    padding-left: 16px;
    position: relative;
    font-size: 12.5px;
    line-height: 1.45;
    color: var(--ia-ink);
}

.ia-comp-balance-col li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.ia-comp-balance-col--good li::before { background: #6fae3a; }
.ia-comp-balance-col--bad li::before  { background: #ef4444; }

/* Рекомендация ИИ */
.ia-comp-reco {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 24px;
    border-radius: 16px;
    margin-bottom: 14px;
    background:
        radial-gradient(circle at 82% 10%, rgba(168,231,106,.3), transparent 35%),
        linear-gradient(135deg, #111217, #1a1d22 62%, #22301e);
    color: #fff;
    cursor: pointer;
}

.ia-comp-reco-kicker {
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #A8E76A;
}

.ia-comp-reco h3 {
    margin: 8px 0 6px;
    font-family: 'Unbounded', sans-serif;
    font-size: 19px;
    line-height: 1.28;
    color: #fff;
}

.ia-comp-reco p {
    margin: 0;
    font-size: 12.5px;
    color: rgba(255,255,255,.68);
    max-width: 520px;
}

.ia-comp-reco button {
    flex-shrink: 0;
    padding: 12px 16px;
    border: 0;
    border-radius: 999px;
    background: #A8E76A;
    color: #111217;
    font-family: 'Onest', sans-serif;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
}

/* ── Конкуренты: polished dashboard layer ── */
#ia-view-competitors {
    display: none;
    flex-direction: column;
    gap: 16px;
}

#ia-view-competitors.active {
    display: flex;
}

#ia-view-competitors > .ia-card {
    margin: 0;
    border-radius: 20px;
    border: 1px solid rgba(17,18,23,.08);
}

#ia-view-competitors .ia-subview {
    padding: 24px 28px;
    background:
        radial-gradient(circle at 88% 12%, rgba(168,231,106,.22), transparent 32%),
        #fff;
}

#ia-view-competitors .ia-subview-title {
    font-size: 28px;
}

#ia-view-competitors .ia-subview-desc {
    max-width: 760px;
    line-height: 1.55;
}

#ia-view-competitors .ia-pf-section-label {
    display: block;
    margin: 0 0 14px !important;
    color: var(--ia-muted);
    font-size: 11px;
    letter-spacing: .05em;
}

.ia-comp-hero {
    position: relative;
    overflow: hidden;
    padding: 30px;
    background:
        radial-gradient(circle at 84% 10%, rgba(168,231,106,.3), transparent 35%),
        linear-gradient(135deg, #111217 0%, #181a20 56%, #22301e 100%);
    color: #fff;
}

.ia-comp-hero .ia-pf-section-label {
    color: #A8E76A;
}

.ia-comp-hero-headline {
    max-width: 980px;
    color: #fff;
    font-size: 30px;
    line-height: 1.18;
}

.ia-comp-hero-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 24px;
}

.ia-comp-hero-stat {
    min-height: 104px;
    justify-content: flex-end;
    padding: 16px;
    border-radius: 16px;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.09);
}

.ia-comp-hero-stat b {
    color: #fff;
    font-size: 34px;
    line-height: 1;
}

.ia-comp-hero-stat span {
    color: rgba(255,255,255,.62);
    font-size: 12px;
}

.ia-comp-hero-stat--good b,
.ia-comp-hero-stat--warn b,
.ia-comp-hero-stat--bad b {
    color: #A8E76A;
}

.ia-comp-kpis {
    gap: 14px;
}

.ia-comp-kpi-tile {
    min-height: 132px;
    justify-content: space-between;
    padding: 18px;
    border-radius: 16px;
    background: #f5f4f0;
    border: 1px solid #e4e3de;
}

.ia-comp-kpi-label {
    color: #8d919d;
}

.ia-comp-kpi-us {
    font-size: 27px;
}

.ia-comp-kpi-avg {
    padding-top: 8px;
    border-top: 1px solid #e4e3de;
}

.ia-comp-grid {
    gap: 14px;
}

.ia-comp-card {
    position: relative;
    min-height: 176px;
    padding: 20px;
    border-radius: 18px;
    background:
        linear-gradient(180deg, #fff 0%, #fbfbf9 100%);
    border: 1px solid rgba(17,18,23,.08);
    box-shadow: 0 10px 24px rgba(17,18,23,.04);
    transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.ia-comp-card:hover {
    transform: translateY(-2px);
    border-color: rgba(31,90,57,.24);
    box-shadow: 0 16px 36px rgba(17,18,23,.08);
}

.ia-comp-card-head {
    margin-bottom: 14px;
}

.ia-comp-card-name {
    font-size: 18px;
}

.ia-comp-card-domain {
    font-size: 12px;
}

.ia-comp-card-tags {
    gap: 8px;
    margin-bottom: 16px;
}

.ia-comp-tag {
    padding: 6px 10px;
    font-size: 11px;
}

.ia-comp-tag--bad {
    background: rgba(248,113,113,.13);
    color: #991b1b;
}

.ia-comp-tag--good {
    background: rgba(168,231,106,.23);
    color: #315d20;
}

.ia-comp-card-more {
    margin-top: auto;
    color: #315d20;
    font-size: 12px;
}

.ia-comp-axes {
    gap: 0;
}

.ia-comp-axis-row {
    padding: 18px;
    border-radius: 16px;
    background: #f5f4f0;
    border: 1px solid #e4e3de;
}

.ia-comp-axis-row + .ia-comp-axis-row {
    margin-top: 12px;
    padding-top: 18px;
    border-top: 1px solid #e4e3de;
}

.ia-comp-axis-icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: #111217;
    color: #A8E76A;
}

.ia-comp-axis-name {
    font-size: 14px;
}

.ia-comp-axis-insight {
    max-width: 860px;
    color: #6b707c;
    font-weight: 600;
}

.ia-comp-offer-table {
    border-radius: 16px;
    border-color: #e4e3de;
}

.ia-comp-offer-row {
    padding: 14px 16px;
}

.ia-comp-offer-row--head {
    background: #111217;
}

.ia-comp-offer-row--head span {
    color: rgba(255,255,255,.68);
}

.ia-comp-offer-us {
    color: #315d20;
}

.ia-comp-balance {
    gap: 16px;
}

.ia-comp-balance-col {
    padding: 18px 20px;
    border-radius: 18px;
    border: 1px solid rgba(17,18,23,.06);
}

.ia-comp-balance-col--good {
    background: rgba(168,231,106,.16);
}

.ia-comp-balance-col--bad {
    background: #f5f4f0;
}

.ia-comp-balance-title {
    color: #111217;
}

.ia-comp-reco {
    margin: 0 0 14px;
    border-radius: 18px;
    box-shadow: 0 18px 42px rgba(17,18,23,.12);
}

@media (max-width: 1200px) {
    .ia-comp-hero-stats,
    .ia-comp-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .ia-comp-grid {
        grid-template-columns: 1fr;
    }
    .ia-comp-offer-row {
        grid-template-columns: 1.2fr repeat(5, 1fr);
        font-size: 11px;
    }
}

@media (max-width: 760px) {
    .ia-comp-hero-stats,
    .ia-comp-kpis,
    .ia-comp-balance {
        grid-template-columns: 1fr;
    }
    .ia-comp-modal-offer {
        grid-template-columns: 1fr;
    }
    .ia-comp-offer-table {
        overflow-x: auto;
    }
    .ia-comp-reco {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ── Конкуренты: финальная сборка страницы ── */
#ia-view-competitors,
#ia-view-competitors * {
    box-sizing: border-box;
}

#ia-view-competitors {
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0;
    overflow: hidden;
}

#ia-view-competitors.active {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

#ia-view-competitors > .ia-card {
    width: 100%;
    max-width: 100%;
    margin: 0;
    overflow: hidden;
    border-radius: 22px;
    background: #fff;
}

#ia-view-competitors > .ia-card:not(.ia-subview):not(.ia-comp-hero) {
    padding: 24px;
}

#ia-view-competitors .ia-pf-section-label {
    display: flex;
    align-items: center;
    width: fit-content;
    max-width: 100%;
    margin: 0 0 12px !important;
    padding: 0;
    position: static;
    left: auto;
    transform: none;
    color: var(--ia-muted);
    line-height: 1.1;
    white-space: normal;
}

#ia-view-competitors .ia-subview {
    padding: 26px 30px;
    border-color: rgba(17,18,23,.06);
    background:
        radial-gradient(circle at 92% 15%, rgba(168,231,106,.24), transparent 30%),
        linear-gradient(135deg, #fff 0%, #fbfbf8 100%);
}

#ia-view-competitors .ia-subview-title {
    margin: 8px 0;
    font-size: clamp(26px, 2.4vw, 38px);
    line-height: 1.05;
}

#ia-view-competitors .ia-subview-desc {
    max-width: 780px;
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
}

#ia-view-competitors .ia-comp-summary-head {
    min-height: 0;
}

#ia-view-competitors .ia-comp-summary-head .ia-subview-header {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(340px, .8fr);
    gap: 28px;
    align-items: center;
    padding: 0;
}

.ia-comp-summary-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    padding: 18px;
    border-radius: 20px;
    background:
        radial-gradient(circle at 88% 0%, rgba(168,231,106,.28), transparent 34%),
        rgba(245,244,240,.8);
    border: 1px solid rgba(17,18,23,.08);
}

.ia-comp-summary-score {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ia-comp-summary-score-label {
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #8d919d;
}

.ia-comp-summary-score div {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.ia-comp-summary-score b {
    font-family: 'Unbounded', sans-serif;
    font-size: 44px;
    line-height: 1;
    color: #111217;
}

.ia-comp-summary-score small {
    font-size: 16px;
    font-weight: 900;
    color: #8d919d;
}

.ia-comp-summary-score-bar {
    display: block;
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(17,18,23,.08);
}

.ia-comp-summary-score-bar i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #6db33f, #A8E76A);
}

.ia-comp-summary-mini {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.ia-comp-summary-mini span {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-height: 74px;
    justify-content: center;
    padding: 12px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid rgba(17,18,23,.07);
    color: #8d919d;
    font-size: 11px;
    font-weight: 850;
    line-height: 1.2;
}

.ia-comp-summary-mini b {
    font-family: 'Unbounded', sans-serif;
    font-size: 24px;
    line-height: 1;
    color: #111217;
}

.ia-comp-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr);
    gap: 28px;
    align-items: end;
    padding: 32px;
    border-color: rgba(31,90,57,.22) !important;
    background:
        radial-gradient(circle at 78% 12%, rgba(168,231,106,.32), transparent 30%),
        linear-gradient(135deg, #111217 0%, #171a20 54%, #24381f 100%);
}

.ia-comp-hero .ia-pf-section-label {
    color: #A8E76A !important;
    grid-column: 1 / -1;
    margin-bottom: -8px !important;
}

.ia-comp-hero-headline {
    max-width: 980px;
    font-size: clamp(28px, 3vw, 48px);
    line-height: 1.08;
    letter-spacing: 0;
}

.ia-comp-hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
}

.ia-comp-hero-stat {
    min-height: 118px;
    padding: 18px;
    border-radius: 18px;
    background: rgba(255,255,255,.075);
    border: 1px solid rgba(255,255,255,.13);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}

.ia-comp-hero-stat b {
    font-size: 38px;
}

.ia-comp-kpis {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.ia-comp-kpi-tile {
    min-height: 128px;
    padding: 18px;
    border-radius: 16px;
    background: #f5f4f0;
    border: 1px solid #e4e3de;
    box-shadow: none;
}

.ia-comp-kpi-nums {
    gap: 10px;
}

.ia-comp-kpi-us {
    font-family: 'Unbounded', sans-serif;
    font-weight: 800;
    font-size: clamp(22px, 1.8vw, 27px);
    line-height: 1;
}

.ia-comp-kpi-badge {
    white-space: nowrap;
}

.ia-comp-kpi-avg {
    margin-top: auto;
    padding-top: 12px;
}

.ia-comp-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.ia-comp-card {
    min-height: 156px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    border-radius: 18px;
    background:
        radial-gradient(circle at 92% 0%, rgba(168,231,106,.12), transparent 26%),
        #fff;
}

.ia-comp-card-head {
    align-items: flex-start;
    margin-bottom: 16px;
}

.ia-comp-card-head .ia-pf-badge {
    flex-shrink: 0;
    max-width: 45%;
    text-align: center;
    white-space: normal;
}

.ia-comp-card-name {
    font-size: 18px;
    line-height: 1.2;
}

.ia-comp-card-tags {
    min-height: 32px;
    margin-bottom: 18px;
    gap: 8px;
}

.ia-comp-tag {
    max-width: 100%;
    line-height: 1.2;
}

.ia-comp-axes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.ia-comp-axis-row,
.ia-comp-axis-row + .ia-comp-axis-row {
    min-height: 184px;
    margin: 0;
    padding: 18px;
    border: 1px solid rgba(17,18,23,.08);
    border-radius: 18px;
    background: #f6f5f2;
}

.ia-comp-axis-head {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    margin-bottom: 16px;
}

.ia-comp-axis-icon {
    width: 40px;
    height: 40px;
    border-radius: 13px;
}

.ia-comp-axis-name {
    min-width: 0;
    font-size: 15px;
    line-height: 1.25;
}

.ia-comp-axis-head .ia-pf-badge {
    white-space: nowrap;
}

.ia-comp-axis-rank {
    margin-bottom: 10px;
}

.ia-comp-axis-insight {
    display: -webkit-box;
    max-width: none;
    min-height: 38px;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.ia-comp-offer-table {
    width: 100%;
    overflow-x: auto;
}

.ia-comp-offer-row {
    min-width: 980px;
    grid-template-columns: 1.25fr repeat(5, minmax(110px, .9fr));
}

.ia-comp-balance {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ia-comp-balance-col {
    min-height: 180px;
}

.ia-comp-reco {
    align-items: center;
    padding: 24px;
}

.ia-comp-tasks-list {
    margin-top: 14px;
}

@media (max-width: 1280px) {
    .ia-comp-hero {
        grid-template-columns: 1fr;
    }

    .ia-comp-hero-stats {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .ia-comp-kpis,
    .ia-comp-axes {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    #ia-view-competitors > .ia-card:not(.ia-subview):not(.ia-comp-hero),
    #ia-view-competitors .ia-subview,
    .ia-comp-hero {
        padding: 20px;
    }

    .ia-comp-hero-stats,
    .ia-comp-kpis,
    .ia-comp-grid,
    .ia-comp-axes,
    .ia-comp-balance {
        grid-template-columns: 1fr;
    }

    .ia-comp-axis-head {
        grid-template-columns: 40px minmax(0, 1fr);
    }

    .ia-comp-axis-head .ia-pf-badge {
        grid-column: 1 / -1;
        justify-self: flex-start;
    }

    .ia-comp-reco {
        flex-direction: column;
        align-items: flex-start;
    }

    #ia-view-competitors .ia-comp-summary-head .ia-subview-header {
        grid-template-columns: 1fr;
    }

    .ia-comp-summary-panel {
        width: 100%;
    }
}

@media (max-width: 640px) {
    .ia-comp-summary-mini {
        grid-template-columns: 1fr;
    }
}

/* Fix: обзор конкурентов должен перебивать общий белый стиль карточек */
#ia-view-competitors > .ia-card.ia-comp-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(340px, .8fr);
    gap: 26px;
    align-items: end;
    min-height: auto;
    padding: 32px;
    overflow: hidden;
    border: 1px solid rgba(31,90,57,.24);
    background:
        radial-gradient(circle at 84% 8%, rgba(168,231,106,.34), transparent 30%),
        linear-gradient(135deg, #111217 0%, #171a20 56%, #24381f 100%);
}

#ia-view-competitors > .ia-card.ia-comp-hero .ia-pf-section-label {
    grid-column: 1 / -1;
    margin: 0 0 -4px !important;
    color: #A8E76A !important;
}

#ia-view-competitors > .ia-card.ia-comp-hero .ia-comp-hero-headline {
    margin: 0;
    max-width: 980px;
    color: #fff;
    font-size: clamp(30px, 3.1vw, 48px);
    line-height: 1.08;
}

#ia-view-competitors > .ia-card.ia-comp-hero .ia-comp-hero-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
    margin: 0;
}

#ia-view-competitors > .ia-card.ia-comp-hero .ia-comp-hero-stat {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 112px;
    padding: 17px;
    border-radius: 18px;
    background: rgba(255,255,255,.075);
    border: 1px solid rgba(255,255,255,.13);
}

#ia-view-competitors > .ia-card.ia-comp-hero .ia-comp-hero-stat b {
    color: #A8E76A;
    font-size: 36px;
    line-height: 1;
}

#ia-view-competitors > .ia-card.ia-comp-hero .ia-comp-hero-stat--muted b {
    color: #fff;
}

#ia-view-competitors > .ia-card.ia-comp-hero .ia-comp-hero-stat span {
    margin-top: 7px;
    color: rgba(255,255,255,.68);
    font-size: 12px;
    line-height: 1.25;
}

@media (max-width: 1280px) {
    #ia-view-competitors > .ia-card.ia-comp-hero {
        grid-template-columns: 1fr;
    }

    #ia-view-competitors > .ia-card.ia-comp-hero .ia-comp-hero-stats {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    #ia-view-competitors > .ia-card.ia-comp-hero {
        padding: 22px;
    }

    #ia-view-competitors > .ia-card.ia-comp-hero .ia-comp-hero-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Конкуренты: аккуратные плашки в карточках */
#ia-view-competitors .ia-comp-card-head .ia-pf-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 7px 12px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 10px;
    line-height: 1;
    letter-spacing: .04em;
    box-shadow: none;
}

#ia-view-competitors .ia-comp-card-head .ia-pf-badge--bad,
#ia-view-competitors .ia-comp-card-head .ia-pf-badge--missing {
    background: #fff1f1;
    border-color: rgba(185, 43, 43, .12);
    color: #b22b2b;
}

#ia-view-competitors .ia-comp-card-head .ia-pf-badge--warn,
#ia-view-competitors .ia-comp-card-head .ia-pf-badge--warning {
    background: #fff7e8;
    border-color: rgba(178, 104, 22, .14);
    color: #a35b12;
}

#ia-view-competitors .ia-comp-card-head .ia-pf-badge--good,
#ia-view-competitors .ia-comp-card-head .ia-pf-badge--active {
    background: #edf9df;
    border-color: rgba(80, 132, 43, .14);
    color: #3f742c;
}

#ia-view-competitors .ia-comp-card-tags {
    align-items: flex-start;
    gap: 8px;
}

#ia-view-competitors .ia-comp-tag {
    display: inline-flex;
    align-items: center;
    min-height: 31px;
    padding: 7px 13px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 11px;
    line-height: 1.15;
    font-weight: 850;
}

#ia-view-competitors .ia-comp-tag::before {
    content: none;
}

#ia-view-competitors .ia-comp-tag--bad {
    background: #fff3f3;
    border-color: rgba(185, 43, 43, .1);
    color: #a72b2b;
}

#ia-view-competitors .ia-comp-tag--good {
    background: #f0f9e8;
    border-color: rgba(80, 132, 43, .12);
    color: #3f742c;
}

#ia-view-competitors .ia-comp-card-more {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 32px;
    padding: 0 2px;
    color: #315d20;
    font-size: 12px;
    font-weight: 900;
}

/* Конкуренты: в сравнении по направлениям оставляем только названия */
#ia-view-competitors .ia-comp-axis-icon {
    display: none;
}

#ia-view-competitors .ia-comp-axis-head {
    grid-template-columns: minmax(0, 1fr) auto;
}

/* Конкуренты: сравнение предложений без ощущения Excel */
#ia-view-competitors .ia-comp-offer-table {
    display: grid;
    gap: 10px;
    width: 100%;
    padding: 0;
    overflow-x: auto;
    border: 0;
    border-radius: 0;
    background: transparent;
}

#ia-view-competitors .ia-comp-offer-table::-webkit-scrollbar {
    height: 6px;
}

#ia-view-competitors .ia-comp-offer-table::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(17,18,23,.16);
}

#ia-view-competitors .ia-comp-offer-row {
    display: grid;
    grid-template-columns: 1.25fr repeat(5, minmax(120px, .9fr));
    min-width: 980px;
    gap: 10px;
    align-items: stretch;
    padding: 0;
    border: 0;
}

#ia-view-competitors .ia-comp-offer-row:not(.ia-comp-offer-row--head) {
    transition: transform .15s ease;
}

#ia-view-competitors .ia-comp-offer-row:not(.ia-comp-offer-row--head):hover {
    transform: translateX(2px);
}

#ia-view-competitors .ia-comp-offer-row:not(:last-child) {
    border-bottom: 0;
}

#ia-view-competitors .ia-comp-offer-row span {
    display: flex;
    align-items: center;
    min-height: 58px;
    padding: 14px 16px;
    border-radius: 16px;
    background: #f6f5f2;
    border: 1px solid rgba(17,18,23,.06);
    color: #111217;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.55);
}

#ia-view-competitors .ia-comp-offer-row--head span {
    min-height: 44px;
    padding: 12px 16px;
    background: transparent;
    border-color: transparent;
    color: #8d919d;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .05em;
    box-shadow: none;
}

#ia-view-competitors .ia-comp-offer-row--head span:nth-child(2) {
    color: #315d20;
}

#ia-view-competitors .ia-comp-offer-attr {
    background: #111217 !important;
    border-color: #111217 !important;
    color: #fff !important;
}

#ia-view-competitors .ia-comp-offer-us {
    background:
        radial-gradient(circle at 85% 15%, rgba(168,231,106,.28), transparent 34%),
        #eef8e5 !important;
    border-color: rgba(80,132,43,.16) !important;
    color: #315d20 !important;
}

#ia-view-competitors .ia-comp-offer-row:not(.ia-comp-offer-row--head) span:not(.ia-comp-offer-attr):not(.ia-comp-offer-us) {
    color: #3d4149;
}

#ia-view-competitors .ia-comp-offer-row:not(.ia-comp-offer-row--head) span:nth-child(3),
#ia-view-competitors .ia-comp-offer-row:not(.ia-comp-offer-row--head) span:nth-child(4),
#ia-view-competitors .ia-comp-offer-row:not(.ia-comp-offer-row--head) span:nth-child(5),
#ia-view-competitors .ia-comp-offer-row:not(.ia-comp-offer-row--head) span:nth-child(6) {
    background: #fbfaf8;
}

@media (max-width: 760px) {
    #ia-view-competitors .ia-comp-offer-row {
        min-width: 820px;
        grid-template-columns: 1.15fr repeat(5, minmax(105px, .9fr));
        gap: 8px;
    }

    #ia-view-competitors .ia-comp-offer-row span {
        min-height: 52px;
        padding: 12px;
        font-size: 12px;
    }
}

/* Конкуренты: спокойная матрица предложений в стиле продукта */
#ia-view-competitors .ia-comp-offer-table {
    display: block;
    overflow-x: hidden;
    border: 1px solid rgba(17,18,23,.08);
    border-radius: 18px;
    background: #f7f6f3;
}

#ia-view-competitors .ia-comp-offer-table::-webkit-scrollbar {
    display: none;
}

#ia-view-competitors .ia-comp-offer-row {
    display: grid;
    grid-template-columns: 1.25fr repeat(5, minmax(0, 1fr));
    min-width: 0;
    gap: 0;
    padding: 0;
    border: 0;
    background: transparent;
}

#ia-view-competitors .ia-comp-offer-row:not(.ia-comp-offer-row--head) {
    transition: none;
}

#ia-view-competitors .ia-comp-offer-row:not(.ia-comp-offer-row--head):hover {
    transform: none;
}

#ia-view-competitors .ia-comp-offer-row:not(:last-child) {
    border-bottom: 1px solid rgba(17,18,23,.07);
}

#ia-view-competitors .ia-comp-offer-row span {
    min-height: 62px;
    padding: 16px 18px;
    border: 0;
    border-radius: 0;
    background: transparent !important;
    box-shadow: none;
    color: #3d4149;
    font-size: 13px;
    font-weight: 800;
}

#ia-view-competitors .ia-comp-offer-row span + span {
    border-left: 1px solid rgba(17,18,23,.055);
}

#ia-view-competitors .ia-comp-offer-row--head {
    background: #111217;
}

#ia-view-competitors .ia-comp-offer-row--head span {
    min-height: 52px;
    padding: 15px 18px;
    color: rgba(255,255,255,.58);
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .05em;
}

#ia-view-competitors .ia-comp-offer-row--head span + span {
    border-left-color: rgba(255,255,255,.08);
}

#ia-view-competitors .ia-comp-offer-row--head span:nth-child(2) {
    color: #A8E76A;
}

#ia-view-competitors .ia-comp-offer-attr {
    color: #111217 !important;
    font-weight: 900 !important;
}

#ia-view-competitors .ia-comp-offer-us {
    color: #315d20 !important;
    background: rgba(168,231,106,.14) !important;
}

@media (max-width: 1100px) {
    #ia-view-competitors .ia-comp-offer-table {
        overflow-x: auto;
    }

    #ia-view-competitors .ia-comp-offer-row {
        min-width: 900px;
    }
}

/* Команда: в карточках направлений оставляем только названия */
.team-dir .team-dir-icon {
    display: none;
}

.team-dir .team-dir-title {
    gap: 0;
}

/* Сайт: светлый продуктовый дашборд вместо тёмной панели */
#ia-view-site .ia-site-dashboard-panel {
    grid-template-columns: 230px minmax(0, 1fr) 320px;
    gap: 14px;
    padding: 14px;
    background:
        radial-gradient(circle at 85% 8%, rgba(168,231,106,.22), transparent 32%),
        #f7f6f3;
    border: 1px solid rgba(17,18,23,.08);
    box-shadow: none;
}

#ia-view-site .ia-site-dashboard-score,
#ia-view-site .ia-site-dashboard-chart,
#ia-view-site .ia-site-dashboard-note {
    background: rgba(255,255,255,.74);
    border: 1px solid rgba(17,18,23,.075);
    box-shadow: none;
}

#ia-view-site .ia-site-dashboard-score span,
#ia-view-site .ia-site-chart-head span,
#ia-view-site .ia-site-dashboard-note span {
    color: #8d919d;
}

#ia-view-site .ia-site-dashboard-ring {
    width: 132px;
    height: 132px;
    background:
        conic-gradient(var(--ring-color) 0 calc(var(--score) * 1%), #e4e3de 0 100%);
    box-shadow: none;
}

#ia-view-site .ia-site-dashboard-ring strong {
    width: 96px;
    height: 96px;
    background: #fff;
    border: 1px solid rgba(17,18,23,.08);
    color: #111217;
}

#ia-view-site .ia-site-dashboard-ring small {
    color: #8d919d;
}

#ia-view-site .ia-site-dashboard-scorebar {
    display: none;
}

#ia-view-site .ia-site-dashboard-scorebar i {
    box-shadow: none;
}

#ia-view-site .ia-site-dashboard-level {
    color: #8d919d;
}

#ia-view-site .ia-site-dashboard-chart {
    padding: 18px;
}

#ia-view-site .ia-site-chart-head {
    margin-bottom: 14px;
}

#ia-view-site .ia-site-chart-head b {
    color: #315d20;
}

#ia-view-site .ia-site-chart-bars {
    min-height: 178px;
    padding: 12px 12px 10px;
    border-radius: 18px;
    background:
        linear-gradient(to top, rgba(17,18,23,.06) 1px, transparent 1px) 0 0 / 100% 25%,
        #fbfaf8;
    border: 1px solid rgba(17,18,23,.06);
}

#ia-view-site .ia-site-chart-bar {
    height: 156px;
    grid-template-rows: 20px 1fr 22px;
    gap: 6px;
}

#ia-view-site .ia-site-chart-bar strong {
    align-self: start;
    font-family: 'Unbounded', sans-serif;
    font-size: 11px;
    line-height: 1;
    color: #111217;
}

#ia-view-site .ia-site-chart-bar i {
    width: 72%;
    border-radius: 999px 999px 8px 8px;
    box-shadow: none;
    transition: none;
}

#ia-view-site .ia-site-chart-bar:hover i {
    filter: none;
    transform: none;
}

#ia-view-site .ia-site-chart-bar--bad i {
    background: #e4e3de !important;
    box-shadow: none;
}

#ia-view-site .ia-site-chart-bar span {
    width: 22px;
    height: 22px;
    background: #f1f0ec;
    border: 1px solid rgba(17,18,23,.07);
    color: #8d919d;
}

#ia-view-site .ia-site-chart-legend span {
    background: #f1f0ec;
    color: #6b707c;
}

#ia-view-site .ia-site-chart-legend b {
    color: #315d20;
}

#ia-view-site .ia-site-dashboard-note p {
    color: #6b707c;
}

#ia-view-site .ia-site-focus-list button {
    grid-template-columns: 48px 1fr;
    background: #fff;
    border: 1px solid rgba(17,18,23,.075);
    color: #111217;
    cursor: pointer;
}

#ia-view-site .ia-site-focus-list button:hover {
    background: #fff;
}

#ia-view-site .ia-site-focus-list b {
    color: #315d20;
}

#ia-view-site .ia-site-focus-list span {
    color: #6b707c;
}

@media (max-width: 1180px) {
    #ia-view-site .ia-site-dashboard-panel {
        grid-template-columns: 1fr;
    }

    #ia-view-site .ia-site-dashboard-score {
        min-height: auto;
    }
}

/* Team direction operations table */
.team-dash-directions--ops {
    gap: 18px;
}

.team-ops-dir {
    position: relative;
    overflow: hidden;
    padding: 24px;
    border-radius: 28px;
    background:
        linear-gradient(135deg, rgba(168,231,106,.16), rgba(255,255,255,.96) 28%, #fff 78%),
        #fff;
    border: 1px solid rgba(17,18,23,.06);
    box-shadow: 0 18px 46px rgba(17,18,23,.06);
    font-family: 'Onest', sans-serif;
}

.team-ops-dir::before {
    content: '';
    position: absolute;
    width: 240px;
    height: 240px;
    left: -74px;
    top: -92px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(168,231,106,.32), rgba(168,231,106,0) 68%);
    pointer-events: none;
}

.team-ops-dir--dark {
    background:
        linear-gradient(135deg, rgba(132,226,207,.22), rgba(255,255,255,.96) 36%, #f7fbfa 100%),
        #fff;
    border-color: rgba(132,226,207,.36);
}

.team-ops-dir--dark::before {
    background: radial-gradient(circle, rgba(132,226,207,.34), rgba(132,226,207,0) 68%);
}

.team-ops-dir--soft {
    background:
        linear-gradient(135deg, rgba(168,231,106,.28), rgba(255,255,255,.96) 40%, #f8fdf3 100%),
        #fff;
    border-color: rgba(168,231,106,.46);
}

.team-ops-dir--soft::before {
    background: radial-gradient(circle, rgba(168,231,106,.38), rgba(168,231,106,0) 70%);
}

.team-ops-dir--amber {
    background:
        linear-gradient(135deg, rgba(179,221,246,.32), rgba(255,255,255,.96) 40%, #f6fbff 100%),
        #fff;
    border-color: rgba(179,221,246,.56);
}

.team-ops-dir--amber::before {
    background: radial-gradient(circle, rgba(179,221,246,.42), rgba(179,221,246,0) 70%);
}

.team-ops-head {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 32px;
}

.team-ops-title {
    display: flex;
    align-items: center;
    min-width: 240px;
}

.team-ops-title h4 {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-family: 'Unbounded', sans-serif;
    font-size: 24px;
    line-height: 1.05;
    font-weight: 900;
    color: #111217;
}


.team-ops-title p {
    margin-top: 5px;
    font-family: 'Onest', sans-serif;
    color: #8d919d;
    font-size: 14px;
    font-weight: 800;
}

.team-ops-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(112px, 1fr));
    gap: 8px;
    width: min(620px, 100%);
}

.team-ops-summary div {
    min-height: 74px;
    padding: 12px 14px;
    border-radius: 18px;
    background: rgba(255,255,255,.78);
    border: 1px solid rgba(17,18,23,.05);
    box-shadow: 0 10px 24px rgba(17,18,23,.035);
}

.team-ops-summary span,
.team-ops-table-head span,
.team-ops-num span,
.team-ops-time span,
.team-ops-good span,
.team-ops-risk span {
    display: block;
    font-family: 'Onest', sans-serif;
    color: #969ca8;
    font-size: 10px;
    line-height: 1.15;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.team-ops-summary b {
    display: block;
    margin-top: 10px;
    color: #111217;
    font-family: 'Unbounded', sans-serif;
    font-size: 21px;
    line-height: 1;
}

.team-ops-table {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.team-ops-table-head,
.team-ops-row {
    display: grid;
    grid-template-columns: minmax(150px, .8fr) minmax(170px, 1fr) repeat(5, minmax(92px, .65fr));
    align-items: center;
    gap: 24px;
}

.team-ops-table-head {
    padding: 0 14px 4px;
}

.team-ops-row {
    padding: 14px;
    border-radius: 20px;
    background: rgba(255,255,255,.82);
    border: 1px solid rgba(17,18,23,.055);
    box-shadow: 0 8px 18px rgba(17,18,23,.028);
}

.team-ops-person strong {
    display: block;
    font-family: 'Onest', sans-serif;
    color: #111217;
    font-size: 15px;
    font-weight: 900;
}

.team-ops-person small {
    display: block;
    margin-top: 4px;
    font-family: 'Onest', sans-serif;
    color: #8d919d;
    font-size: 12px;
    font-weight: 800;
}

.team-ops-engage > div {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    margin-bottom: 8px;
}

.team-ops-engage > div > span {
    color: #111217;
    font-family: 'Unbounded', sans-serif;
    font-size: 17px;
    font-weight: 900;
}

.team-ops-engage > i {
    display: block;
    width: calc(100% - 44px);
    max-width: 360px;
    height: 9px;
    border-radius: 999px;
    background: #e8e8e5;
    overflow: hidden;
}

.team-ops-engage > i em {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #A8E76A, #64ad37);
}

.team-ops-num b,
.team-ops-time b,
.team-ops-good b,
.team-ops-risk b {
    display: block;
    margin-bottom: 5px;
    color: #111217;
    font-family: 'Unbounded', sans-serif;
    font-size: 18px;
    line-height: 1;
}

.team-ops-good b {
    color: #4f8f2e;
}

.team-ops-risk b {
    color: #b45309;
}

@media (max-width: 1180px) {
    .team-ops-head {
        flex-direction: column;
    }

    .team-ops-summary {
        width: 100%;
    }

    .team-ops-table {
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .team-ops-table-head,
    .team-ops-row {
        min-width: 980px;
    }
}

@media (max-width: 680px) {
    .team-ops-dir {
        padding: 18px;
        border-radius: 24px;
    }

    .team-ops-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

/* Конкуренты: блок "Мы vs рынок" в стиле продукта */
#ia-view-competitors .ia-comp-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

#ia-view-competitors .ia-comp-kpi-tile {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0;
    min-height: 132px;
    padding: 18px;
    border-radius: 22px;
    background: #fff;
    border: 1px solid rgba(17,18,23,.07);
    box-shadow: 0 10px 24px rgba(17,18,23,.045);
    font-family: 'Onest', sans-serif;
    overflow: hidden;
}

#ia-view-competitors .ia-comp-kpi-label {
    display: block;
    color: #9299a6;
    font-family: 'Onest', sans-serif;
    font-size: 11px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
}

#ia-view-competitors .ia-comp-kpi-nums {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-top: 14px;
    padding-bottom: 0 !important;
    border-bottom: 0 !important;
    min-width: 0;
}

#ia-view-competitors .ia-comp-kpi-us {
    color: #111217;
    font-family: 'Unbounded', sans-serif;
    font-size: clamp(15px, 1.1vw, 19px);
    line-height: 1.25;
    font-weight: 900;
    letter-spacing: 0;
    min-width: 0;
    white-space: normal;
    overflow-wrap: break-word;
}

#ia-view-competitors .ia-comp-kpi-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    max-width: 100%;
    min-height: 0;
    padding: 6px 12px;
    border-radius: 999px;
    border: 0;
    font-family: 'Onest', sans-serif;
    font-size: 10px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
}

#ia-view-competitors .ia-comp-kpi-badge.ia-pf-badge--good {
    background: rgba(168,231,106,.28);
    color: #315d20;
}

#ia-view-competitors .ia-comp-kpi-badge.ia-pf-badge--bad {
    background: #fff1f1;
    color: #b22b2b;
}

#ia-view-competitors .ia-comp-kpi-avg {
    display: block;
    margin-top: 13px;
    padding: 0 !important;
    border-top: 0 !important;
    color: #8d95a1;
    font-family: 'Onest', sans-serif;
    font-size: 12px;
    font-weight: 900;
}

@media (max-width: 1180px) {
    #ia-view-competitors .ia-comp-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    #ia-view-competitors .ia-comp-kpis {
        grid-template-columns: 1fr;
    }
}

/* Конкуренты: карточки "Отслеживаемые конкуренты" в стиле продукта */
#ia-view-competitors .ia-comp-card {
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 20px;
    border-radius: 22px;
    background: #fff;
    border: 1px solid rgba(17,18,23,.07);
    box-shadow: 0 10px 24px rgba(17,18,23,.045);
    font-family: 'Onest', sans-serif;
}

#ia-view-competitors .ia-comp-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

#ia-view-competitors .ia-comp-card-id {
    display: flex;
    align-items: center;
    gap: 13px;
    min-width: 0;
}

#ia-view-competitors .ia-comp-card-mono {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 15px;
    background: linear-gradient(135deg, rgba(168,231,106,.55), rgba(168,231,106,.16));
    border: 1px solid rgba(80,132,43,.14);
    color: #315d20;
    font-family: 'Unbounded', sans-serif;
    font-size: 18px;
    font-weight: 800;
    line-height: 1;
}

#ia-view-competitors .ia-comp-card-titles {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

#ia-view-competitors .ia-comp-card-name {
    display: block;
    color: #111217;
    font-size: 17px;
    font-weight: 850;
    line-height: 1.15;
}

#ia-view-competitors .ia-comp-card-domain {
    display: block;
    color: #9299a6;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#ia-view-competitors .ia-comp-card-threat {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
    text-align: right;
}

#ia-view-competitors .ia-comp-card-threat-label {
    color: #9299a6;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
    line-height: 1;
}

#ia-view-competitors .ia-comp-card-threat-val {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13.5px;
    font-weight: 850;
    line-height: 1;
}

#ia-view-competitors .ia-comp-card-threat-val::before {
    content: none;
}

#ia-view-competitors .ia-comp-card-threat--bad  .ia-comp-card-threat-val { color: #b22b2b; }
#ia-view-competitors .ia-comp-card-threat--warn .ia-comp-card-threat-val { color: #a35b12; }
#ia-view-competitors .ia-comp-card-threat--good .ia-comp-card-threat-val { color: #3f742c; }

#ia-view-competitors .ia-comp-card-edges {
    display: flex;
    flex-direction: column;
    padding: 3px 16px;
    border-radius: 16px;
    background: rgba(17,18,23,.03);
    border: 1px solid rgba(17,18,23,.05);
}

#ia-view-competitors .ia-comp-edge {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    align-items: baseline;
    gap: 12px;
    padding: 12px 0;
}

#ia-view-competitors .ia-comp-edge + .ia-comp-edge {
    border-top: 1px solid rgba(17,18,23,.06);
}

#ia-view-competitors .ia-comp-edge-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 10.5px;
    font-weight: 900;
    letter-spacing: .05em;
    text-transform: uppercase;
    line-height: 1.2;
    white-space: nowrap;
}

#ia-view-competitors .ia-comp-edge-label::before {
    content: none;
}

#ia-view-competitors .ia-comp-edge--good .ia-comp-edge-label { color: #4c8430; }
#ia-view-competitors .ia-comp-edge--bad  .ia-comp-edge-label { color: #b22b2b; }

#ia-view-competitors .ia-comp-edge-text {
    color: #3a3d46;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.45;
}

#ia-view-competitors .ia-comp-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 14px;
}

#ia-view-competitors .ia-comp-card-foot::before {
    display: none;
}

#ia-view-competitors .ia-comp-card-traffic {
    color: #8d95a1;
    font-size: 12px;
    font-weight: 800;
}

#ia-view-competitors .ia-comp-card-foot .ia-comp-card-more {
    min-height: 0;
}

@media (max-width: 560px) {
    #ia-view-competitors .ia-comp-edge {
        grid-template-columns: 1fr;
        gap: 5px;
    }
    #ia-view-competitors .ia-comp-card-foot {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* Конкуренты: "Сравнение по направлениям" — рейтинг-лист (ia-cax-*) */
.ia-cax-list {
    display: flex;
    flex-direction: column;
}

.ia-cax-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 28px;
    padding: 18px 0;
}

.ia-cax-row + .ia-cax-row {
    border-top: 1px solid rgba(17,18,23,.06);
}

.ia-cax-list .ia-cax-row:first-child {
    padding-top: 4px;
}

.ia-cax-list .ia-cax-row:last-child {
    padding-bottom: 4px;
}

.ia-cax-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.ia-cax-name {
    color: #111217;
    font-size: 14.5px;
    font-weight: 800;
    line-height: 1.2;
}

.ia-cax-insight {
    margin: 0;
    color: #8d95a1;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.45;
    max-width: 640px;
}

.ia-cax-side {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 24px;
}

.ia-cax-scale {
    display: flex;
    align-items: center;
    gap: 6px;
}

.ia-cax-cell {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 27px;
    height: 27px;
    border-radius: 9px;
    background: rgba(17,18,23,.045);
    color: #a4a9b3;
    font-size: 11.5px;
    font-weight: 850;
    line-height: 1;
    cursor: default;
}

.ia-cax-cell::after {
    content: attr(data-tip);
    position: absolute;
    bottom: calc(100% + 9px);
    left: 50%;
    transform: translateX(-50%) translateY(3px);
    padding: 8px 12px;
    border-radius: 10px;
    background: #111217;
    color: #fff;
    font-family: 'Onest', sans-serif;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: .01em;
    white-space: nowrap;
    box-shadow: 0 8px 20px rgba(17,18,23,.25);
    opacity: 0;
    visibility: hidden;
    transition: opacity .15s ease, transform .15s ease;
    pointer-events: none;
    z-index: 40;
}

.ia-cax-cell::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%) translateY(3px);
    border: 5px solid transparent;
    border-top-color: #111217;
    opacity: 0;
    visibility: hidden;
    transition: opacity .15s ease, transform .15s ease;
    pointer-events: none;
    z-index: 40;
}

.ia-cax-cell:hover::after,
.ia-cax-cell:hover::before {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.ia-cax-cell--us {
    color: #fff;
}

.ia-cax-cell--good { background: #6db33f; box-shadow: 0 0 0 3px rgba(109,179,63,.18); }
.ia-cax-cell--warn { background: #dfa32e; box-shadow: 0 0 0 3px rgba(223,163,46,.18); }
.ia-cax-cell--bad  { background: #d84a4a; box-shadow: 0 0 0 3px rgba(216,74,74,.18); }

.ia-cax-rank {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
    min-width: 58px;
    text-align: right;
}

.ia-cax-rank b {
    font-family: 'Unbounded', sans-serif;
    font-size: 22px;
    font-weight: 800;
    line-height: 1;
}

.ia-cax-rank--good b { color: #4c8430; }
.ia-cax-rank--warn b { color: #a35b12; }
.ia-cax-rank--bad  b { color: #b22b2b; }

.ia-cax-rank span {
    color: #9299a6;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
}

@media (max-width: 720px) {
    .ia-cax-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .ia-cax-side {
        justify-content: space-between;
    }
    .ia-cax-rank {
        align-items: flex-end;
    }
}

/* Конкуренты: объединённый блок "стороны + задачи" в две колонки */
#ia-view-competitors .ia-comp-duo {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
}

#ia-view-competitors .ia-comp-duo-col {
    min-width: 0;
}

#ia-view-competitors .ia-comp-duo-col--tasks {
    padding-left: 28px;
    border-left: 1px solid rgba(17,18,23,.06);
}

#ia-view-competitors .ia-comp-duo .ia-comp-balance {
    grid-template-columns: 1fr;
    gap: 14px;
}

#ia-view-competitors .ia-comp-duo .ia-comp-reco {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 22px;
}

#ia-view-competitors .ia-comp-duo .ia-comp-reco p {
    max-width: none;
}

@media (max-width: 1150px) {
    #ia-view-competitors .ia-comp-duo {
        grid-template-columns: 1fr;
    }
    #ia-view-competitors .ia-comp-duo-col--tasks {
        padding-left: 0;
        border-left: 0;
        margin-top: 26px;
        padding-top: 26px;
        border-top: 1px solid rgba(17,18,23,.06);
    }
}

/* Конкуренты: фирменные цветовые акценты */
#ia-view-competitors .ia-comp-kpi-tile {
    transition: transform .15s, box-shadow .15s;
}

#ia-view-competitors .ia-comp-kpi-tile:has(.ia-pf-badge--good) {
    background:
        radial-gradient(circle at 90% -12%, rgba(168,231,106,.2), transparent 40%),
        #fff;
    border-color: rgba(80,132,43,.1);
}

#ia-view-competitors .ia-comp-kpi-tile:has(.ia-pf-badge--bad) {
    background:
        radial-gradient(circle at 90% -12%, rgba(224,82,82,.16), transparent 42%),
        #fff;
    border-color: rgba(185,43,43,.1);
}

#ia-view-competitors .ia-comp-kpi-tile:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(17,18,23,.07);
}

#ia-view-competitors .ia-comp-card:hover {
    border-color: rgba(17,18,23,.16);
    box-shadow: 0 14px 32px rgba(17,18,23,.08);
}

#ia-view-competitors .ia-cax-row {
    border-radius: 14px;
    padding: 18px 14px;
    margin: 0 -14px;
    transition: background .15s;
}

#ia-view-competitors .ia-cax-row:hover {
    background: rgba(17,18,23,.032);
}

#ia-view-competitors .ia-comp-offer-us {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 4px 11px;
    margin: -4px 0;
    border-radius: 999px;
    background: rgba(168,231,106,.18);
    font-weight: 850;
}

#ia-view-competitors .ia-comp-offer-row--head .ia-comp-offer-us,
#ia-view-competitors .ia-comp-offer-row--head span:nth-child(2) {
    color: #A8E76A;
}

#ia-view-competitors > .ia-card:has(.ia-comp-duo) {
    background:
        linear-gradient(135deg, rgba(168,231,106,.18), rgba(255,255,255,.92) 28%, #fff 72%),
        #fff;
    border: 1px solid rgba(100,173,55,.16);
    box-shadow: 0 18px 46px rgba(17,18,23,.07);
}

#ia-view-competitors .ia-comp-balance-col--good,
#ia-view-competitors .ia-comp-balance-col--bad {
    padding: 18px 20px;
    border-radius: 22px;
    background: rgba(255,255,255,.88);
    border: 1px solid rgba(17,18,23,.06);
    box-shadow: 0 10px 28px rgba(17,18,23,.04);
}

#ia-view-competitors .ia-comp-balance-col--good .ia-comp-balance-title { color: #3f742c; }
#ia-view-competitors .ia-comp-balance-col--bad  .ia-comp-balance-title { color: #a72b2b; }

#ia-view-competitors .ia-comp-balance-col ul {
    gap: 0;
}

#ia-view-competitors .ia-comp-balance-col li {
    padding: 11px 0;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.45;
    color: #2c2f37;
}

#ia-view-competitors .ia-comp-balance-col li::before {
    content: none;
}

#ia-view-competitors .ia-comp-balance-col li + li {
    border-top: 1px solid rgba(17,18,23,.06);
}

#ia-view-competitors .ia-comp-balance-col--good li + li {
    border-top-color: rgba(80,132,43,.14);
}

#ia-view-competitors .ia-comp-balance-col--bad li + li {
    border-top-color: rgba(185,43,43,.1);
}

#ia-view-competitors .ia-pf-fix-row {
    padding: 16px 18px;
    border-radius: 16px;
    background: rgba(255,255,255,.88);
    border: 1px solid rgba(17,18,23,.06);
    box-shadow: 0 10px 28px rgba(17,18,23,.04);
    transition: background .15s, border-color .15s;
}

#ia-view-competitors .ia-pf-fix-row:hover {
    background: #fff;
    border-color: rgba(17,18,23,.13);
}

#ia-view-competitors .ia-comp-tasks-list {
    gap: 10px;
}

/* Конкуренты: модалка подробного разбора (ia-cmx-*) */
#ia-view-competitors .ia-cmx-modal {
    width: 880px;
    border-radius: 26px;
    font-family: 'Onest', sans-serif;
}

#ia-view-competitors .ia-cmx-scroll {
    padding: 0;
}

.ia-cmx-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 30px 34px;
    background:
        radial-gradient(circle at 82% 8%, rgba(168,231,106,.3), transparent 34%),
        linear-gradient(135deg, #111217 0%, #171a20 54%, #24381f 100%);
    color: #fff;
}

.ia-cmx-close {
    position: absolute;
    top: 18px;
    right: 18px;
    background: rgba(255,255,255,.1);
    color: rgba(255,255,255,.75);
}

.ia-cmx-close:hover {
    background: rgba(255,255,255,.2);
    color: #fff;
}

.ia-cmx-hero-id {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.ia-cmx-mono {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 17px;
    background: linear-gradient(135deg, #A8E76A, #7fc243);
    color: #1c3311;
    font-family: 'Unbounded', sans-serif;
    font-size: 21px;
    font-weight: 800;
    line-height: 1;
}

.ia-cmx-hero-titles {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.ia-cmx-name {
    font-family: 'Unbounded', sans-serif;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.05;
    color: #fff;
}

.ia-cmx-sub {
    color: rgba(255,255,255,.58);
    font-size: 13px;
    font-weight: 700;
}

.ia-cmx-threat {
    font-style: normal;
    font-weight: 850;
}

.ia-cmx-threat--bad  { color: #ffb3a8; }
.ia-cmx-threat--warn { color: #fbd38d; }
.ia-cmx-threat--good { color: #c4f39a; }

.ia-cmx-score {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    padding-right: 28px;
    text-align: right;
}

.ia-cmx-score-label {
    color: rgba(255,255,255,.5);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .07em;
    text-transform: uppercase;
    line-height: 1;
}

.ia-cmx-score-nums {
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-family: 'Unbounded', sans-serif;
    font-weight: 800;
    line-height: 1;
}

.ia-cmx-score-nums b { font-size: 38px; color: #A8E76A; }
.ia-cmx-score-nums i { font-size: 24px; font-style: normal; color: rgba(255,255,255,.35); }
.ia-cmx-score-nums span { font-size: 38px; color: rgba(255,255,255,.5); }

.ia-cmx-score-hint {
    color: rgba(255,255,255,.45);
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
}

.ia-cmx-body {
    padding: 26px 34px 34px;
}

.ia-cmx-label {
    display: block;
    margin: 26px 0 16px;
    color: #5fa837;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .05em;
    text-transform: uppercase;
    line-height: 1.1;
}

.ia-cmx-body .ia-cmx-label:first-child {
    margin-top: 0;
}

/* Дуэль-бары по направлениям */
.ia-cmx-axes {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.ia-cmx-axis {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.ia-cmx-axis-top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
}

.ia-cmx-axis-name {
    color: #111217;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
}

.ia-cmx-axis-nums {
    flex-shrink: 0;
    display: inline-flex;
    align-items: baseline;
    gap: 5px;
    font-family: 'Unbounded', sans-serif;
    font-weight: 800;
    line-height: 1;
}

.ia-cmx-axis-nums b { font-size: 15px; color: #4c8430; }
.ia-cmx-axis-nums i { font-size: 11px; font-style: normal; color: #b8bcc4; }
.ia-cmx-axis-nums span { font-size: 15px; color: #9299a6; }

.ia-cmx-axis-nums--behind b { color: #9299a6; }
.ia-cmx-axis-nums--behind span { color: #111217; }

.ia-cmx-duel {
    position: relative;
    height: 10px;
    border-radius: 999px;
    background: rgba(17,18,23,.07);
    overflow: hidden;
}

.ia-cmx-duel i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #6db33f, #A8E76A);
}

.ia-cmx-duel u {
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background: #fff;
    text-decoration: none;
}

.ia-cmx-axis-note {
    margin: 0;
    color: #8d95a1;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.45;
}

/* Оффер конкурента */
.ia-cmx-offer {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.ia-cmx-offer-tile {
    display: flex;
    flex-direction: column;
    padding: 16px;
    border-radius: 16px;
    background: rgba(17,18,23,.03);
    border: 1px solid rgba(17,18,23,.05);
}

.ia-cmx-offer-key {
    color: #9299a6;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .05em;
    text-transform: uppercase;
    line-height: 1.25;
}

.ia-cmx-offer-them {
    margin-top: 11px;
    color: #111217;
    font-family: 'Unbounded', sans-serif;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.3;
    white-space: normal;
    overflow-wrap: break-word;
}

.ia-cmx-offer-us {
    margin-top: 11px;
    padding-top: 10px;
    border-top: 1px solid rgba(17,18,23,.07);
    color: #8d95a1;
    font-size: 12px;
    font-weight: 800;
}

/* Итог: козыри и что перенять */
.ia-cmx-cols {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.ia-cmx-col {
    display: flex;
    flex-direction: column;
    padding: 6px 18px 10px;
    border-radius: 16px;
    background: rgba(17,18,23,.03);
    border: 1px solid rgba(17,18,23,.05);
}

.ia-cmx-col--good {
    background: linear-gradient(135deg, rgba(168,231,106,.22), rgba(168,231,106,.08));
    border-color: rgba(80,132,43,.14);
}

.ia-cmx-col-title {
    padding: 14px 0 4px;
    color: #6b7280;
    font-size: 10.5px;
    font-weight: 900;
    letter-spacing: .05em;
    text-transform: uppercase;
    line-height: 1.2;
}

.ia-cmx-col--good .ia-cmx-col-title {
    color: #4c8430;
}

.ia-cmx-col-item {
    padding: 11px 0;
    color: #2c2f37;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
}

.ia-cmx-col-item + .ia-cmx-col-item {
    border-top: 1px solid rgba(17,18,23,.06);
}

.ia-cmx-col--good .ia-cmx-col-item + .ia-cmx-col-item {
    border-top-color: rgba(80,132,43,.12);
}

@media (max-width: 860px) {
    .ia-cmx-offer {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .ia-cmx-hero {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        padding: 24px;
    }
    .ia-cmx-score {
        align-items: flex-start;
        padding-right: 0;
        text-align: left;
    }
    .ia-cmx-body {
        padding: 22px 20px 26px;
    }
    .ia-cmx-cols,
    .ia-cmx-offer {
        grid-template-columns: 1fr;
    }
}

/* ══════════════════════════════════════
   САЙТ — hero v2 (ia-stx-*)
   ══════════════════════════════════════ */
#ia-view-site .ia-stx-head {
    padding: 26px 30px;
    border-radius: 22px;
    border: 1px solid rgba(17,18,23,.06);
    background:
        radial-gradient(circle at 92% 12%, rgba(168,231,106,.22), transparent 30%),
        linear-gradient(135deg, #fff 0%, #fbfbf8 100%);
    overflow: visible;
}

#ia-view-site .ia-stx-head .ia-subview-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 22px;
    align-items: center;
    padding: 0;
    border: 0;
}

#ia-view-site .ia-stx-head .ia-comp-summary-panel {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 168px;
    padding: 20px;
    border-radius: 18px;
    background: rgba(255,255,255,.76);
    border: 1px solid rgba(17,18,23,.06);
    box-shadow: 0 12px 30px rgba(17,18,23,.06);
}

#ia-view-site .ia-stx-head .ia-comp-summary-score b {
    font-size: 38px;
}

#ia-view-site .ia-stx-head .ia-subview-title {
    margin: 8px 0;
    font-size: clamp(24px, 2.2vw, 34px);
    line-height: 1.1;
}

#ia-view-site .ia-stx-head .ia-subview-desc {
    max-width: 640px;
    margin: 0;
    font-size: 14.5px;
    line-height: 1.5;
}

.ia-stx-body {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(300px, .75fr);
    gap: 14px;
    margin-top: 26px;
}

.ia-stx-chart {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 18px 20px;
    border-radius: 16px;
    background: rgba(255,255,255,.85);
    border: 1px solid rgba(17,18,23,.07);
}

.ia-stx-chart-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

.ia-stx-chart-head span {
    color: #9299a6;
    font-size: 10.5px;
    font-weight: 900;
    letter-spacing: .05em;
    text-transform: uppercase;
    line-height: 1;
}

.ia-stx-chart-head b {
    color: #b22b2b;
    font-size: 11.5px;
    font-weight: 850;
    line-height: 1;
}

.ia-stx-bars {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(9, minmax(0, 1fr));
    gap: 10px;
}

.ia-stx-bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 0;
    padding: 0;
    border: 0;
    background: transparent;
    font-family: inherit;
    cursor: pointer;
}

.ia-stx-bar strong {
    font-family: 'Unbounded', sans-serif;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
}

.ia-stx-bar strong.good { color: #4c8430; }
.ia-stx-bar strong.warn { color: #a35b12; }
.ia-stx-bar strong.bad  { color: #b22b2b; }

.ia-stx-bar-track {
    position: relative;
    display: block;
    flex: 1;
    width: 100%;
    max-width: 44px;
    min-height: 128px;
    border-radius: 12px;
    background: rgba(17,18,23,.05);
    overflow: hidden;
}

.ia-stx-bar-fill {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: block;
    border-radius: 12px;
    transition: transform .15s;
}

.ia-stx-bar-fill--good { background: linear-gradient(180deg, #A8E76A, #6db33f); }
.ia-stx-bar-fill--warn { background: linear-gradient(180deg, #f0c95f, #dfa32e); }
.ia-stx-bar-fill--bad  { background: linear-gradient(180deg, #ef8f7c, #d84a4a); }

.ia-stx-bar:hover .ia-stx-bar-track {
    background: rgba(17,18,23,.08);
}

.ia-stx-bar-name {
    color: #8d95a1;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.ia-stx-note {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 18px 20px;
    border-radius: 16px;
    background: rgba(255,255,255,.85);
    border: 1px solid rgba(17,18,23,.07);
}

.ia-stx-note-label {
    color: #5fa837;
    font-size: 10.5px;
    font-weight: 900;
    letter-spacing: .05em;
    text-transform: uppercase;
    line-height: 1;
}

.ia-stx-note p {
    margin: 12px 0 0;
    color: #3a3d46;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.5;
}

.ia-stx-mini.ia-comp-summary-mini {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ia-stx-path {
    display: flex;
    flex-direction: column;
    margin-top: 8px;
}

.ia-stx-path button {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    width: calc(100% + 16px);
    margin: 0 -8px;
    padding: 11px 8px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    transition: background .15s;
}

.ia-stx-path button:hover {
    background: rgba(17,18,23,.035);
}

.ia-stx-path button + button {
    border-top: 1px solid rgba(17,18,23,.06);
    border-radius: 0 0 10px 10px;
}

.ia-stx-path-step {
    display: flex;
    align-items: baseline;
    gap: 8px;
    color: #111217;
    font-size: 12.5px;
    font-weight: 850;
    line-height: 1.3;
}

.ia-stx-path-step b {
    color: #9299a6;
    font-family: 'Unbounded', sans-serif;
    font-size: 10px;
    font-weight: 800;
}

.ia-stx-path-state {
    font-size: 11.5px;
    font-weight: 750;
    line-height: 1.3;
}

.ia-stx-path-state--good { color: #4c8430; }
.ia-stx-path-state--warn { color: #a35b12; }
.ia-stx-path-state--bad  { color: #b22b2b; }

/* Воронка: цветная ступень фоном строки */
.ia-stx-fun-strip {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 9px;
    background: rgba(17,18,23,.04);
    overflow: hidden;
}

.ia-stx-fun-fill {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    border-radius: 9px;
}

.ia-stx-fun-fill--good { background: linear-gradient(90deg, rgba(168,231,106,.55), rgba(168,231,106,.3)); }
.ia-stx-fun-fill--warn { background: linear-gradient(90deg, rgba(240,201,95,.6), rgba(240,201,95,.32)); }
.ia-stx-fun-fill--bad  { background: linear-gradient(90deg, rgba(239,143,124,.55), rgba(239,143,124,.3)); }

.ia-stx-fun-strip .ia-stx-path-step {
    position: relative;
    z-index: 1;
}

.ia-stx-fun-pct {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    color: #111217;
    font-family: 'Unbounded', sans-serif;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
}

#ia-view-site .ia-stx-reco {
    margin: 14px 0 0;
    align-items: center;
    gap: 20px;
    padding: 20px 22px;
    border-radius: 16px;
    box-shadow: none;
}

#ia-view-site .ia-stx-reco h3 {
    font-size: 17px;
    margin: 7px 0 5px;
}

#ia-view-site .ia-stx-reco p {
    font-size: 12px;
}

@media (max-width: 1150px) {
    #ia-view-site .ia-stx-head .ia-subview-header {
        grid-template-columns: 1fr;
    }
    .ia-stx-body {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .ia-stx-bars {
        gap: 6px;
    }
    .ia-stx-bar-name {
        display: none;
    }
}

/* Сайт: карточки 9 параметров без иконок, заголовок в верхней строке */
#ia-view-site .ia-site-tile-top {
    align-items: flex-start;
    margin-bottom: 6px;
}

#ia-view-site .ia-site-tile-top .ia-site-tile-title {
    margin-top: 0;
    font-size: 14.5px;
}

#ia-view-site .ia-site-tile-top .ia-pf-badge {
    flex-shrink: 0;
}

/* Сайт: кнопка-стрелка открытия карточки (как в CRM) + бейдж в строке счёта */
.ia-site-open-btn {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: rgba(17,18,23,.06);
    color: #8d919d;
    cursor: pointer;
    transition: background .15s, color .15s;
}

.ia-site-open-btn svg {
    width: 14px;
    height: 14px;
}

.ia-site-open-btn:hover {
    background: #111217;
    color: #fff;
}

#ia-view-site .ia-site-tile-score .ia-pf-badge {
    font-size: 9px;
    padding: 3px 8px;
}

/* Сайт: крупный балл-акцент в карточках 9 параметров */
#ia-view-site .ia-site-tile {
    display: flex;
    flex-direction: column;
}

.ia-site-tile-scorebig {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: auto 0 10px;
    padding-top: 14px;
}

.ia-site-tile-scorebig strong {
    font-family: 'Unbounded', sans-serif;
    font-size: 25px;
    font-weight: 800;
    line-height: 1;
}

.ia-site-tile-scorebig strong small {
    margin-left: 4px;
    color: #9299a6;
    font-size: 11px;
    font-weight: 800;
}

.ia-site-tile-scorebig-num--good { color: #4c8430; }
.ia-site-tile-scorebig-num--warn { color: #a35b12; }
.ia-site-tile-scorebig-num--bad  { color: #b22b2b; }

#ia-view-site .ia-site-tile-score {
    margin-bottom: 12px;
}

/* Сайт: лаконичные прогресс-бары в карточках */
#ia-view-site .ia-site-tile-score {
    display: block;
    height: 4px;
    border-radius: 999px;
    background: rgba(17,18,23,.06);
    overflow: hidden;
}

#ia-view-site .ia-site-tile-score i {
    display: block;
    height: 100%;
    border-radius: inherit;
    opacity: .55;
}

/* Сайт: заголовки карточек фирменным Unbounded в лёгком начертании */
#ia-view-site .ia-site-tile-top .ia-site-tile-title {
    font-family: 'Unbounded', sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    color: #111217;
}

/* Сайт: модалка "Сравнение с конкурентами" — дуэль-бары против рынка */
.ia-stm9-rows {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ia-stm9-top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 8px;
}

.ia-stm9-top span {
    color: #111217;
    font-size: 13.5px;
    font-weight: 800;
    line-height: 1.2;
}

.ia-stm9-top b {
    flex-shrink: 0;
    font-size: 12px;
    font-weight: 850;
    line-height: 1.2;
}

.ia-stm9-tag--good { color: #4c8430; }
.ia-stm9-tag--warn { color: #a35b12; }
.ia-stm9-tag--bad  { color: #b22b2b; }

.ia-stm9-duel {
    position: relative;
    height: 10px;
    border-radius: 999px;
    background: rgba(17,18,23,.07);
    overflow: hidden;
}

.ia-stm9-duel i {
    display: block;
    height: 100%;
    border-radius: inherit;
}

.ia-stm9-fill--good { background: linear-gradient(90deg, #6db33f, #A8E76A); }
.ia-stm9-fill--warn { background: linear-gradient(90deg, #dfa32e, #f0c95f); }
.ia-stm9-fill--bad  { background: linear-gradient(90deg, #d84a4a, #ef8f7c); }

.ia-stm9-duel u {
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background: #fff;
    text-decoration: none;
}

.ia-stm9-hint {
    display: block;
    margin-top: 12px;
    color: #9299a6;
    font-size: 11px;
    font-weight: 700;
}

.team-ai-summary-line.ia-stm9-verdict {
    align-items: flex-start;
    width: 100%;
    margin: 16px 0 0;
    padding: 14px 16px;
    border-radius: 14px;
}

.team-ai-summary-line.ia-stm9-verdict span {
    padding-top: 2px;
}

.team-ai-summary-line.ia-stm9-verdict b {
    font-size: 13.5px;
    font-weight: 800;
    line-height: 1.45;
}

/* Сайт: плашка "Что проверяет ИИ" в модалках параметров */
.ia-stm-check {
    padding: 14px 16px;
    border-radius: 14px;
    background: #f5f4f0;
    border: 1px solid #e4e3de;
}

.ia-stm-check span {
    display: block;
    color: #5fa837;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
    line-height: 1;
}

.ia-stm-check p {
    margin: 7px 0 0;
    color: #3d4050;
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.5;
}

/* Сайт: статы вместо описания в модалках параметров */
.ia-stm-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.ia-stm-stat {
    display: flex;
    flex-direction: column;
    padding: 15px 17px;
    border-radius: 14px;
    background: #f5f4f0;
    border: 1px solid #e4e3de;
}

.ia-stm-stat span {
    color: #9299a6;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .05em;
    text-transform: uppercase;
    line-height: 1.2;
}

.ia-stm-stat b {
    margin-top: 9px;
    color: #111217;
    font-family: 'Unbounded', sans-serif;
    font-size: 22px;
    font-weight: 800;
    line-height: 1;
}

.ia-stm-stat b small {
    margin-left: 3px;
    color: #9299a6;
    font-size: 11px;
    font-weight: 800;
}

.ia-stm-stat-num--good { color: #4c8430 !important; }
.ia-stm-stat-num--warn { color: #a35b12 !important; }
.ia-stm-stat-num--bad  { color: #b22b2b !important; }

.ia-stm-stat-bar {
    display: block;
    height: 4px;
    margin-top: 11px;
    border-radius: 999px;
    background: rgba(17,18,23,.07);
    overflow: hidden;
}

.ia-stm-stat-bar u {
    display: block;
    height: 100%;
    border-radius: inherit;
    opacity: .6;
}

.ia-stm-stat em {
    margin-top: 9px;
    font-style: normal;
    color: #8d95a1;
    font-size: 11.5px;
    font-weight: 750;
    line-height: 1.3;
}

@media (max-width: 640px) {
    .ia-stm-stats {
        grid-template-columns: 1fr;
    }
}

/* Привлечение клиентов: единый hero (площадки + SEO + общий индекс) */
#ia-view-attract .ia-atr-head {
    padding: 26px 30px;
    border-radius: 22px;
    border: 1px solid rgba(17,18,23,.06);
    background:
        radial-gradient(circle at 92% 12%, rgba(168,231,106,.22), transparent 30%),
        linear-gradient(135deg, #fff 0%, #fbfbf8 100%);
    overflow: visible;
}

#ia-view-attract .ia-atr-head .ia-subview-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 22px;
    align-items: center;
    padding: 0;
    border: 0;
}

#ia-view-attract .ia-atr-head .ia-subview-title {
    margin: 8px 0;
    font-size: clamp(24px, 2.2vw, 34px);
    line-height: 1.1;
}

#ia-view-attract .ia-atr-head .ia-subview-desc {
    max-width: 640px;
    margin: 0;
    font-size: 14.5px;
    line-height: 1.5;
}

#ia-view-attract .ia-atr-head .ia-comp-summary-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 140px;
    padding: 20px;
    border-radius: 18px;
    background: rgba(255,255,255,.76);
    border: 1px solid rgba(17,18,23,.06);
    box-shadow: 0 12px 30px rgba(17,18,23,.06);
}

#ia-view-attract .ia-atr-head .ia-comp-summary-score b {
    font-size: 38px;
}

.ia-atr-duo {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 24px;
}

.ia-atr-block {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 16px 18px;
    border-radius: 16px;
    background: rgba(255,255,255,.85);
    border: 1px solid rgba(17,18,23,.07);
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    transition: border-color .15s, box-shadow .15s;
}

.ia-atr-block:hover {
    border-color: rgba(17,18,23,.16);
    box-shadow: 0 10px 24px rgba(17,18,23,.06);
}

.ia-atr-block-top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.ia-atr-block-top span {
    color: #111217;
    font-size: 13.5px;
    font-weight: 850;
}

.ia-atr-block-top b {
    font-family: 'Unbounded', sans-serif;
    font-size: 21px;
    font-weight: 800;
    line-height: 1;
}

.ia-atr-block-top b small {
    margin-left: 3px;
    color: #9299a6;
    font-size: 11px;
    font-weight: 800;
}

.ia-atr-num--good { color: #4c8430; }
.ia-atr-num--warn { color: #a35b12; }
.ia-atr-num--bad  { color: #b22b2b; }

.ia-atr-bar {
    display: block;
    height: 4px;
    margin-top: 12px;
    border-radius: 999px;
    background: rgba(17,18,23,.07);
    overflow: hidden;
}

.ia-atr-bar i {
    display: block;
    height: 100%;
    border-radius: inherit;
    opacity: .6;
}

.ia-atr-sub {
    margin-top: 11px;
    color: #8d95a1;
    font-size: 12px;
    font-weight: 800;
}

@media (max-width: 1100px) {
    #ia-view-attract .ia-atr-head .ia-subview-header {
        grid-template-columns: 1fr;
    }
    .ia-atr-duo {
        grid-template-columns: 1fr;
    }
}

/* Привлечение: статусная мозаика вместо прогресс-баров */
.ia-atr-cells {
    display: flex;
    gap: 5px;
    margin-top: 13px;
}

.ia-atr-cell {
    flex: 1;
    height: 16px;
    border-radius: 6px;
}

.ia-atr-cell--good { background: #A8E76A; }
.ia-atr-cell--warn { background: #eec25a; }
.ia-atr-cell--bad  { background: #ef8f7c; }

/* Привлечение: кнопка-стрелка в шапке карточек площадок */
#ia-view-attract .ia-pf-tile-head {
    justify-content: space-between;
}

/* Привлечение: крупный цветной процент вместо прогресс-баров */
.ia-atr-pct--good { color: #4c8430 !important; }
.ia-atr-pct--warn { color: #a35b12 !important; }
.ia-atr-pct--bad  { color: #b22b2b !important; }
.ia-atr-pct--none { color: #9299a6 !important; }

#ia-view-attract .ia-pf-tile-fill-row {
    align-items: baseline;
    margin-top: auto;
    padding-top: 12px;
}

#ia-view-attract .ia-pf-tile-fill-pct {
    font-family: 'Unbounded', sans-serif;
    font-size: 20px;
    font-weight: 800;
    line-height: 1;
}

#ia-view-attract .ia-pf-them-bottom {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.ia-pf-them-fill-lbl {
    color: #9299a6;
    font-size: 11px;
    font-weight: 800;
}

#ia-view-attract .ia-pf-them-fill-pct {
    font-family: 'Unbounded', sans-serif;
    font-size: 20px;
    font-weight: 800;
    line-height: 1;
}

/* Привлечение: мини-мозаика заполненности в карточках площадок */
.ia-atr-mini {
    display: inline-flex;
    gap: 3px;
    flex-shrink: 0;
}

.ia-atr-mini i {
    width: 14px;
    height: 10px;
    border-radius: 4px;
    background: rgba(17,18,23,.08);
}

.ia-atr-mini i.ia-atr-mini-on--good { background: #A8E76A; }
.ia-atr-mini i.ia-atr-mini-on--warn { background: #eec25a; }
.ia-atr-mini i.ia-atr-mini-on--bad  { background: #ef8f7c; }
.ia-atr-mini i.ia-atr-mini-on--none { background: rgba(17,18,23,.16); }

#ia-view-attract .ia-pf-tile-fill-row .ia-pf-tile-fill-lbl,
#ia-view-attract .ia-pf-them-bottom .ia-pf-them-fill-lbl {
    flex: 1;
    text-align: right;
    color: #8d95a1;
    font-size: 11.5px;
    font-weight: 800;
}

/* Единые отступы подзаголовков секций: визуально 22px сверху / 12px снизу, как в "Привлечении клиентов".
   В flex-контейнерах с gap марджины компенсируются под размер gap. */
#ia-view-crm-sales > .ia-pf-section-label,
#ia-view-team > .ia-pf-section-label {
    margin: 6px 0 -4px;
}

#ia-view-competitors > .ia-pf-section-label {
    margin: 4px 0 -6px !important;
}

/* ════════════════════════════════════════════════════════════
   ОБЗОР 2.0 — «пульт месяца» (ia-ov-*)
   Hero: индекс месяца + траектория аудитов + план задач ИИ.
   Сетка 6 блоков со спарклайнами, «Движение за месяц», история.
   ════════════════════════════════════════════════════════════ */

/* ── Hero ── */
.ia-ov-hero {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 14px;
    margin-bottom: 14px;
}

.ia-ov-pulse {
    padding: 24px 26px;
    display: flex;
    flex-direction: column;
}

.ia-ov-pulse-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
}

.ia-ov-pulse-head .ia-score-kicker { margin-bottom: 18px; }

.ia-ov-pulse-domain {
    font-size: 11px;
    font-weight: 700;
    color: var(--ia-muted);
    white-space: nowrap;
}

/* Траектория месяца: столбики замеров + пустые слоты тарифа */
.ia-ov-traj {
    margin-top: auto;
    height: 118px;
    padding-top: 14px;
    border-top: 1px solid var(--ia-line);
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    gap: 12px;
    align-items: end;
}

.ia-ov-traj-col {
    position: relative;
    height: 100%;
    display: grid;
    grid-template-rows: 1fr 14px;
    gap: 6px;
    justify-items: center;
}

/* Столбики в стиле блока «Результат аудита» на главной (.hm-bar):
   сплошной зелёный скруглённый бар, значение — тултипом при наведении */
.ia-ov-traj-track {
    width: 100%;
    max-width: 58px;
    height: 100%;
    display: flex;
    align-items: flex-end;
}

.ia-ov-traj-fill {
    width: 100%;
    min-height: 10px;
    border-radius: 14px 14px 4px 4px;
    background: var(--ia-green);
    transition: filter .15s;
}

.ia-ov-traj-col:hover .ia-ov-traj-fill { filter: brightness(.94); }

.ia-ov-traj-fill--last { box-shadow: inset 0 0 0 2px rgba(17,18,23,.18); }

.ia-ov-traj-track--free {
    max-width: 58px;
    border: 1.5px dashed rgba(17,18,23,.16);
    border-radius: 14px 14px 4px 4px;
    align-items: center;
    justify-content: center;
    color: rgba(17,18,23,.26);
}

/* Тултип столбика: «дата · результат/100», как у точек на графиках блоков */
.ia-ov-traj-col[data-tip]::after {
    content: attr(data-tip);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 7px);
    transform: translateX(-50%) translateY(2px);
    background: var(--ia-ink);
    color: #fff;
    font-size: 10.5px;
    font-weight: 700;
    line-height: 1;
    padding: 5px 8px;
    border-radius: 8px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity .12s, transform .12s;
    z-index: 3;
}

.ia-ov-traj-col[data-tip]::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: calc(100% + 2px);
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: var(--ia-ink);
    border-bottom-width: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity .12s;
    z-index: 3;
}

.ia-ov-traj-col[data-tip]:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.ia-ov-traj-col[data-tip]:hover::before { opacity: 1; }

.ia-ov-traj-col[data-tip]:first-child::after {
    left: 0;
    transform: translateX(0) translateY(2px);
}

.ia-ov-traj-col[data-tip]:first-child:hover::after {
    transform: translateX(0) translateY(0);
}

.ia-ov-traj-col[data-tip]:last-child::after {
    left: auto;
    right: 0;
    transform: translateX(0) translateY(2px);
}

.ia-ov-traj-col[data-tip]:last-child:hover::after {
    transform: translateX(0) translateY(0);
}

.ia-ov-traj-date {
    font-size: 10px;
    font-weight: 700;
    color: var(--ia-muted);
    white-space: nowrap;
}

.ia-ov-traj-date--free { color: rgba(17,18,23,.28); }

/* ── Карточка «План задач месяца» ── */
.ia-ov-plan {
    padding: 22px 24px;
    display: flex;
    flex-direction: column;
}

.ia-ov-plan-body {
    display: flex;
    gap: 18px;
    align-items: center;
    margin-bottom: 16px;
}

.ia-ov-plan-ring {
    width: 92px;
    height: 92px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ia-ov-plan-ring-hole {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ia-ov-plan-ring-hole b {
    font-family: 'Unbounded', sans-serif;
    font-size: 14px;
    font-weight: 800;
    color: var(--ia-ink);
}

.ia-ov-plan-stats {
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-width: 0;
}

.ia-ov-plan-stat {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #4b4f5a;
    white-space: nowrap;
}

.ia-ov-plan-stat b {
    font-weight: 800;
    color: var(--ia-ink);
    min-width: 18px;
}

.ia-ov-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.ia-ov-dot--confirmed { background: #6fae3a; }
.ia-ov-dot--await     { background: #f59e0b; }
.ia-ov-dot--returned  { background: #ef4444; }
.ia-ov-dot--open      { background: rgba(17,18,23,.18); }

.ia-ov-plan-bar-wrap { margin-bottom: 16px; }

.ia-ov-plan-bar {
    height: 7px;
    border-radius: 99px;
    background: rgba(17,18,23,.07);
    overflow: hidden;
    margin-bottom: 7px;
}

.ia-ov-plan-bar i {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #c3f08f, #6fae3a);
    border-radius: 99px;
    transition: width .3s;
}

.ia-ov-plan-bar-lbl {
    font-size: 11px;
    font-weight: 700;
    color: var(--ia-muted);
}

.ia-ov-plan-empty p {
    margin: 0 0 16px;
    font-size: 12.5px;
    line-height: 1.55;
    color: #4b4f5a;
}

.ia-ov-plan-slots {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: rgba(17,18,23,.035);
    border-radius: 12px;
    margin: auto 0 14px;
}

.ia-ov-plan-slots-lbl {
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--ia-muted);
    white-space: nowrap;
}

.ia-ov-plan-slots-dots {
    display: flex;
    gap: 5px;
    flex: 1;
}

.ia-ov-plan-slots-dots i {
    width: 16px;
    height: 6px;
    border-radius: 99px;
    background: rgba(17,18,23,.1);
}

.ia-ov-plan-slots-dots i.is-used { background: var(--ia-ink); }

.ia-ov-plan-slots b {
    font-size: 12px;
    font-weight: 800;
    color: var(--ia-ink);
    white-space: nowrap;
}

.ia-ov-plan-acts {
    display: flex;
    gap: 10px;
}

.ia-ov-plan-run {
    flex: 1;
    padding: 11px 18px;
    border: none;
    border-radius: 999px;
    background: var(--ia-ink);
    color: #fff;
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 800;
    cursor: pointer;
    transition: transform .15s, opacity .15s;
    white-space: nowrap;
}

.ia-ov-plan-run:hover { transform: translateY(-1px); opacity: .92; }

.ia-ov-plan-open {
    padding: 11px 16px;
    border: 1px solid rgba(17,18,23,.14);
    border-radius: 999px;
    background: transparent;
    color: var(--ia-ink);
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
    transition: border-color .15s;
}

.ia-ov-plan-open:hover { border-color: rgba(17,18,23,.3); }

.ia-ov-plan-open span { margin-left: 2px; }

/* ── Сетка 6 блоков ── */
.ia-ov-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 14px;
}

.ia-ov-block {
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ia-ov-block--soon { opacity: .88; }

.ia-ov-block-head {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ia-ov-block-name {
    flex: 1;
    font-size: 13px;
    font-weight: 800;
    color: var(--ia-ink);
    line-height: 1.25;
}

.ia-ov-block-soon {
    font-size: 9.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--ia-muted);
    border: 1px dashed rgba(17,18,23,.2);
    border-radius: 999px;
    padding: 3px 8px;
    white-space: nowrap;
}

.ia-ov-delta {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 999px;
    white-space: nowrap;
}

.ia-ov-delta--up   { background: #e7f7d4; color: #315d20; }
.ia-ov-delta--down { background: #fdeaea; color: #991b1b; }
.ia-ov-delta--flat { background: rgba(17,18,23,.05); color: var(--ia-muted); }

.ia-ov-block-score-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
}

.ia-ov-block-score {
    font-family: 'Unbounded', sans-serif;
    font-size: 30px;
    font-weight: 800;
    line-height: 1;
}

.ia-ov-block-score small {
    font-family: 'Onest', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: var(--ia-muted);
    margin-left: 3px;
}

.ia-ov-block-score--good { color: var(--ia-ink); }
.ia-ov-block-score--warn { color: #92400e; }
.ia-ov-block-score--bad  { color: #991b1b; }
.ia-ov-block-score--none { color: var(--ia-muted); }

/* Шкала-спидометр: три цветовые зоны (0–50 / 50–70 / 70–100) + пин на позиции скора */
.ia-ov-meter {
    position: relative;
    flex: 1;
    height: 8px;
    border-radius: 99px;
    margin-bottom: 7px;
    background: linear-gradient(90deg,
        rgba(239,68,68,.16) 0 50%,
        rgba(245,158,11,.18) 50% 70%,
        rgba(111,174,58,.22) 70% 100%);
}

.ia-ov-meter::before,
.ia-ov-meter::after {
    content: '';
    position: absolute;
    top: -2px;
    bottom: -2px;
    width: 2px;
    border-radius: 2px;
    background: rgba(255,255,255,.9);
}

.ia-ov-meter::before { left: 50%; }
.ia-ov-meter::after  { left: 70%; }

.ia-ov-meter-pin {
    position: absolute;
    top: 50%;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: #fff;
    transform: translate(-50%, -50%);
    box-shadow: 0 1px 4px rgba(17,18,23,.22);
    transition: transform .15s;
    z-index: 1;
}

.ia-ov-meter-pin--good { border: 3.5px solid #6fae3a; }
.ia-ov-meter-pin--warn { border: 3.5px solid #f59e0b; }
.ia-ov-meter-pin--bad  { border: 3.5px solid #ef4444; }
.ia-ov-meter-pin--none { border: 3.5px solid rgba(17,18,23,.25); }

.ia-ov-block:hover .ia-ov-meter-pin { transform: translate(-50%, -50%) scale(1.18); }

.ia-ov-meter { cursor: help; outline: none; }

/* Подсказка шкалы: своя карточка вместо нативного title, показывает все 3 зоны
   и подсвечивает текущую — якорь справа, чтобы не вылезать за левый край карточки */
.ia-ov-meter-tip {
    position: absolute;
    right: -4px;
    top: calc(100% + 12px);
    width: 214px;
    background: var(--ia-ink);
    color: #fff;
    border-radius: 14px;
    padding: 11px 12px;
    box-shadow: 0 12px 28px rgba(17,18,23,.22);
    opacity: 0;
    transform: translateY(-4px);
    pointer-events: none;
    transition: opacity .12s, transform .12s;
    z-index: 6;
}

.ia-ov-meter-tip::before {
    content: '';
    position: absolute;
    right: 16px;
    bottom: 100%;
    border: 6px solid transparent;
    border-bottom-color: var(--ia-ink);
    border-top-width: 0;
}

.ia-ov-meter:hover .ia-ov-meter-tip,
.ia-ov-meter:focus-visible .ia-ov-meter-tip {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.ia-ov-meter-tip-title {
    display: block;
    font-size: 9.5px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: rgba(255,255,255,.5);
    margin-bottom: 8px;
}

.ia-ov-meter-tip-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
    font-size: 11.5px;
    font-weight: 600;
    color: rgba(255,255,255,.62);
}

.ia-ov-meter-tip-row i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}

.ia-ov-meter-tip-row--bad i  { background: #ef4444; }
.ia-ov-meter-tip-row--warn i { background: #f59e0b; }
.ia-ov-meter-tip-row--good i { background: #6fae3a; }

.ia-ov-meter-tip-row span:nth-child(2) { flex: 1; }

.ia-ov-meter-tip-row small {
    font-weight: 700;
    color: rgba(255,255,255,.45);
    white-space: nowrap;
}

.ia-ov-meter-tip-row.is-active {
    color: #fff;
}

.ia-ov-meter-tip-row.is-active span:nth-child(2) { font-weight: 800; }
.ia-ov-meter-tip-row.is-active small { color: #fff; }

/* График динамики: плавная кривая + градиент, на всю ширину карточки */
.ia-ov-chart {
    position: relative;
    margin: 0 -6px;
}

.ia-ov-chart-svg {
    display: block;
    width: 100%;
    height: auto;
}

.ia-ov-chart-svg text { font-family: 'Onest', sans-serif; }

/* Хотспоты точек: невидимые круги поверх SVG, тултип «дата · оценка/100» */
.ia-ov-chart-dotzone {
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    cursor: default;
    z-index: 2;
}

.ia-ov-chart-dotzone:hover { background: rgba(17,18,23,.07); }

.ia-ov-chart-dotzone::after {
    content: attr(data-tip);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 7px);
    transform: translateX(-50%) translateY(2px);
    background: var(--ia-ink);
    color: #fff;
    font-size: 10.5px;
    font-weight: 700;
    line-height: 1;
    padding: 5px 8px;
    border-radius: 8px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity .12s, transform .12s;
    z-index: 3;
}

.ia-ov-chart-dotzone::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: calc(100% + 2px);
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: var(--ia-ink);
    border-bottom-width: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity .12s;
}

.ia-ov-chart-dotzone:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.ia-ov-chart-dotzone:hover::before { opacity: 1; }

/* Крайние точки: не даём тултипу вылезть за карточку */
.ia-ov-chart-dotzone:first-of-type::after {
    left: 0;
    transform: translateX(0) translateY(2px);
}

.ia-ov-chart-dotzone:first-of-type:hover::after {
    transform: translateX(0) translateY(0);
}

.ia-ov-chart-dotzone:last-of-type::after {
    left: auto;
    right: 0;
    transform: translateX(0) translateY(2px);
}

.ia-ov-chart-dotzone:last-of-type:hover::after {
    transform: translateX(0) translateY(0);
}

.ia-ov-chart-note {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 10px;
    font-weight: 700;
    color: var(--ia-muted);
    background: rgba(255,255,255,.75);
    padding: 3px 9px;
    border-radius: 999px;
    white-space: nowrap;
    backdrop-filter: blur(2px);
}

/* «Радар-пинг» последнего замера при наведении на карточку */
.ia-ov-chart-ping {
    transform-box: fill-box;
    transform-origin: center;
}

.ia-ov-block:hover .ia-ov-chart-ping {
    animation: iaOvPing 1.5s ease-out infinite;
}

@keyframes iaOvPing {
    0%   { transform: scale(.55); opacity: .38; }
    75%  { transform: scale(1.7); opacity: 0; }
    100% { transform: scale(1.7); opacity: 0; }
}

.ia-ov-block-insight {
    margin: 0;
    font-size: 12px;
    line-height: 1.5;
    color: #4b4f5a;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 36px;
}

.ia-ov-block .ia-cat-stats { margin-top: auto; }

/* ── Движение за месяц ── */
.ia-ov-move {
    padding: 22px 24px;
    margin-bottom: 14px;
}

.ia-ov-move-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.ia-ov-move-title h3 {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 800;
    color: var(--ia-ink);
}

.ia-ov-move-title span {
    font-size: 12px;
    font-weight: 600;
    color: var(--ia-muted);
}

.ia-ov-move-total { text-align: right; }

.ia-ov-move-total b {
    display: block;
    font-family: 'Unbounded', sans-serif;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.1;
}

.ia-ov-move-total--up b   { color: #315d20; }
.ia-ov-move-total--down b { color: #991b1b; }
.ia-ov-move-total--flat b { color: var(--ia-muted); }

.ia-ov-move-total span {
    font-size: 11px;
    font-weight: 700;
    color: var(--ia-muted);
}

/* Пульс блоков: горизонтальная строка дельт 4 аналитических блоков — всегда
   содержательна, даже когда колонки событий ниже ещё пустые в середине месяца */
.ia-ov-move-pulse {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--ia-line);
}

.ia-ov-pulse-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px 8px 8px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid rgba(17,18,23,.07);
}

.ia-ov-pulse-chip-ico {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ia-ov-pulse-chip--up   .ia-ov-pulse-chip-ico { background: #e7f7d4; color: #315d20; }
.ia-ov-pulse-chip--down .ia-ov-pulse-chip-ico { background: #fdeaea; color: #991b1b; }
.ia-ov-pulse-chip--flat .ia-ov-pulse-chip-ico { background: rgba(17,18,23,.06); color: var(--ia-muted); }

.ia-ov-pulse-chip-name {
    font-size: 12px;
    font-weight: 700;
    color: #4b4f5a;
    white-space: nowrap;
}

.ia-ov-pulse-chip-delta {
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.ia-ov-pulse-chip--up   .ia-ov-pulse-chip-delta { color: #315d20; }
.ia-ov-pulse-chip--down .ia-ov-pulse-chip-delta { color: #991b1b; }
.ia-ov-pulse-chip--flat .ia-ov-pulse-chip-delta { color: var(--ia-muted); }

.ia-ov-move-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    align-items: stretch;
}

.ia-ov-move-col {
    border: 1px solid var(--ia-line);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

.ia-ov-move-col--up   { background: rgba(168,231,106,.08); }
.ia-ov-move-col--down { background: rgba(239,68,68,.05); }
.ia-ov-move-col--todo { background: rgba(17,18,23,.025); }

.ia-ov-move-col-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ia-ov-move-col-title {
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.ia-ov-move-col--up   .ia-ov-move-col-title { color: #315d20; }
.ia-ov-move-col--down .ia-ov-move-col-title { color: #991b1b; }
.ia-ov-move-col--todo .ia-ov-move-col-title { color: var(--ia-ink); }

.ia-ov-move-col-count {
    font-family: 'Unbounded', sans-serif;
    font-size: 14px;
    font-weight: 800;
    color: var(--ia-ink);
}

.ia-ov-move-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.ia-ov-move-chips:empty { display: none; }

.ia-ov-move-chip {
    font-size: 11px;
    font-weight: 700;
    padding: 4px 9px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid rgba(17,18,23,.08);
    color: #4b4f5a;
    white-space: nowrap;
}

.ia-ov-move-chip b { font-weight: 800; }

.ia-ov-move-chip--up b   { color: #315d20; }
.ia-ov-move-chip--down b { color: #991b1b; }

.ia-ov-move-chip--crit {
    background: #fdeaea;
    border-color: transparent;
    color: #991b1b;
    font-weight: 800;
}

.ia-ov-move-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ia-ov-move-item {
    display: flex;
    gap: 9px;
    align-items: flex-start;
    background: #fff;
    border: 1px solid rgba(17,18,23,.05);
    border-radius: 12px;
    padding: 9px 10px;
}

.ia-ov-move-item-ico {
    width: 20px;
    height: 20px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}

.ia-ov-move-item-ico--up   { background: #e7f7d4; color: #315d20; }
.ia-ov-move-item-ico--down { background: #fdeaea; color: #991b1b; }

.ia-ov-move-item-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.ia-ov-move-item-text span {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--ia-ink);
    line-height: 1.35;
}

.ia-ov-move-item-text small {
    font-size: 11px;
    font-weight: 600;
    color: var(--ia-muted);
    line-height: 1.4;
}

/* Empty-состояние колонки: заполняет высоту растянутой колонки (align-items:stretch
   у .ia-ov-move-cols), вместо голого пустого места — центрированная плашка */
.ia-ov-move-col-empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 8px;
    padding: 18px 12px;
    min-height: 96px;
}

.ia-ov-move-col-empty-ico {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ia-ov-move-col-empty-ico--up   { background: rgba(17,18,23,.05); color: var(--ia-muted); }
.ia-ov-move-col-empty-ico--down { background: #e7f7d4; color: #315d20; }

.ia-ov-move-col-empty b {
    font-size: 12.5px;
    font-weight: 800;
    color: var(--ia-ink);
}

.ia-ov-move-col-empty p {
    margin: 0;
    font-size: 11.5px;
    line-height: 1.5;
    color: var(--ia-muted);
    max-width: 200px;
}

.ia-ov-move-col--todo .ia-task-row {
    background: #fff;
    border: 1px solid rgba(17,18,23,.05);
    border-radius: 12px;
    padding: 10px 12px;
}

.ia-ov-move-col--todo .ia-empty { padding: 10px 0; }

.ia-ov-move-all {
    margin-top: auto;
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0;
    border: none;
    background: transparent;
    font-family: inherit;
    font-size: 12px;
    font-weight: 800;
    color: var(--ia-ink);
    cursor: pointer;
}

.ia-ov-move-all:hover span { transform: translateX(2px); }

.ia-ov-move-all span { transition: transform .15s; }

/* Состояние «движение ещё не из чего собрать» */
.ia-ov-move-await {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 8px 4px;
}

.ia-ov-move-await-viz {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.ia-ov-move-await-node {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1.5px dashed rgba(17,18,23,.22);
    background: #fff;
    color: var(--ia-muted);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ia-ov-move-await-node.is-done {
    border: none;
    background: var(--ia-green);
    color: #1d3311;
}

.ia-ov-move-await-link {
    width: 56px;
    height: 2px;
    background: repeating-linear-gradient(90deg, rgba(17,18,23,.25) 0 6px, transparent 6px 12px);
}

.ia-ov-move-await-text { flex: 1; min-width: 0; }

.ia-ov-move-await-text b {
    display: block;
    margin-bottom: 3px;
    font-size: 13.5px;
    font-weight: 800;
    color: var(--ia-ink);
}

.ia-ov-move-await-text p {
    margin: 0;
    font-size: 12.5px;
    line-height: 1.55;
    color: #4b4f5a;
    max-width: 560px;
}

.ia-ov-move-await .ia-ov-plan-run { flex: 0 0 auto; }

/* ── Архив аудитов: тизер за всё время сайта, не только текущий месяц ──
   Один ряд на всю ширину карточки: слева число аудитов и период, по центру —
   график динамики по всем аудитам (тот же компонент, что в карточках блоков,
   flex:1 — сам заполняет пространство), справа — индекс "было → стало" за
   всё время и кнопка в архив/сравнение (личный кабинет → вкладка «Аудит»,
   режим «Сравнение» — там уже можно сравнить любые два аудита между собой). */
.ia-ov-archive {
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 16px 22px;
    margin-bottom: 14px;
}

.ia-ov-archive-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex-shrink: 0;
}

.ia-ov-archive-kicker {
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--ia-muted);
}

.ia-ov-archive-meta {
    font-size: 13.5px;
    font-weight: 800;
    color: var(--ia-ink);
    white-space: nowrap;
}

.ia-ov-archive-chart {
    position: relative;
    flex: 1;
    min-width: 120px;
    max-width: 280px;
    height: 40px;
    padding: 0 8px;
    border-left: 1px solid var(--ia-line);
    border-right: 1px solid var(--ia-line);
}

.ia-ov-archive-chart .ia-ov-chart-svg { height: 40px; }

.ia-ov-archive-stat {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex-shrink: 0;
}

.ia-ov-archive-stat-label {
    font-size: 10.5px;
    font-weight: 800;
    color: var(--ia-muted);
    white-space: nowrap;
}

.ia-ov-archive-stat-vals {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ia-ov-archive-score {
    font-family: 'Unbounded', sans-serif;
    font-size: 16px;
    font-weight: 800;
    color: var(--ia-muted);
}

.ia-ov-archive-score--now { color: var(--ia-ink); }

.ia-ov-archive-arrow { color: var(--ia-muted); font-size: 13px; }

.ia-ov-archive-btn {
    padding: 9px 15px;
    border: 1px solid rgba(17,18,23,.12);
    border-radius: 999px;
    background: transparent;
    color: var(--ia-ink);
    font-family: inherit;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: border-color .15s;
}

.ia-ov-archive-btn:hover { border-color: rgba(17,18,23,.3); }

/* ── Адаптив ── */
@media (max-width: 1280px) {
    .ia-ov-hero { grid-template-columns: 1.3fr 1fr; }
    .ia-ov-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1024px) {
    .ia-ov-hero { grid-template-columns: 1fr; }
    .ia-ov-move-cols { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
    .ia-ov-grid { grid-template-columns: 1fr; }
    .ia-ov-move-await { flex-wrap: wrap; }
    .ia-ov-archive { flex-wrap: wrap; }
    .ia-ov-archive-chart { order: 3; flex-basis: 100%; max-width: none; border: none; padding: 0; margin-top: 4px; }
}


/* ════════════════════════════════════════════════════════════
   ПРИВЕТСТВИЕ И ГЕНЕРАЦИЯ АУДИТА (ia-welcome-* / ia-gen-*)
   Полноширинные страницы в ритме остального продукта (hero-грид как
   .ia-ov-hero + сетка карточек как .ia-ov-grid), а не маленькое окошко
   посреди пустого экрана. Показываются вместо всего ia-shell: welcome —
   когда для сайта ещё ни разу не было готового аудита; gen — пока
   worker_analyze.php реально работает (виден сразу при заходе на страницу,
   если audits.status='pending', либо раскрывается по клику "Запустить
   аудит"/"Сделать новый аудит" — см. iaStartAudit() в pages/seo.php).
   ════════════════════════════════════════════════════════════ */

/* ── Приветствие: hero — текст слева, "сцена" с персонажем справа.
   Персонаж крупный и в деле: вокруг него плавают мини-карточки будущего
   отчёта (Health Score / план задач / 6 блоков) — он как будто держит
   в руках то, что сгенерирует, а не стоит декором сбоку. ── */
.ia-welcome-hero {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 36px 30px 36px 42px;
    margin-bottom: 14px;
}

.ia-welcome-hero-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.ia-welcome-kicker {
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--ia-muted);
    margin-bottom: 14px;
}

.ia-welcome-title {
    font-family: 'Unbounded', sans-serif;
    font-size: clamp(28px, 3vw, 38px);
    font-weight: 800;
    color: var(--ia-ink);
    line-height: 1.16;
    margin: 0 0 14px;
}

.ia-welcome-desc {
    max-width: 460px;
    font-size: 14px;
    line-height: 1.65;
    color: #4b4f5a;
    margin: 0 0 24px;
}

.ia-welcome-warn {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    max-width: 460px;
    padding: 12px 16px;
    margin-bottom: 20px;
    border-radius: 14px;
    background: #fff6e8;
    color: #92400e;
    text-align: left;
}

.ia-welcome-warn svg { flex-shrink: 0; margin-top: 1px; }
.ia-welcome-warn span { font-size: 12.5px; line-height: 1.5; font-weight: 600; }

.ia-welcome-acts {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
}

.ia-welcome-btn-primary,
.ia-welcome-btn-secondary {
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 800;
    padding: 13px 26px;
    border-radius: 999px;
    cursor: pointer;
    white-space: nowrap;
    transition: transform .15s, opacity .15s, border-color .15s;
}

.ia-welcome-btn-primary {
    border: none;
    background: var(--ia-ink);
    color: #fff;
}
.ia-welcome-btn-primary:hover    { transform: translateY(-1px); opacity: .92; }
.ia-welcome-btn-primary:disabled { opacity: .6; cursor: default; transform: none; }

.ia-welcome-btn-secondary {
    border: 1px solid rgba(17,18,23,.14);
    background: transparent;
    color: var(--ia-ink);
}
.ia-welcome-btn-secondary:hover { border-color: rgba(17,18,23,.3); }

.ia-welcome-hint {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--ia-muted);
}

/* ── Приветствие: сцена персонажа ── */
.ia-welcome-stage {
    position: relative;
    flex-shrink: 0;
    width: 360px;
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ia-welcome-stage-glow {
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(168,231,106,.45) 0%, rgba(168,231,106,0) 70%);
    animation: iaGenGlowPulse 3s ease-in-out infinite;
}

.ia-welcome-stage-ring {
    position: absolute;
    border-radius: 50%;
    border: 1.5px solid var(--ia-green);
    animation: iaGenRingSpin 6s linear infinite;
}
.ia-welcome-stage-ring--1 { width: 200px; height: 200px; opacity: .3; }
.ia-welcome-stage-ring--2 { width: 246px; height: 246px; opacity: .14; animation-direction: reverse; animation-duration: 8s; }

.ia-welcome-mascot {
    position: relative;
    z-index: 2;
    width: 188px;
    height: auto;
    filter: drop-shadow(0 18px 26px rgba(17,18,23,.16));
}

.ia-welcome-float {
    position: absolute;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 13px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 10px 22px rgba(17,18,23,.12);
    white-space: nowrap;
    animation: iaWelcomeFloat 4s ease-in-out infinite;
}

.ia-welcome-float--score  { top: 6px; right: 4px; }
.ia-welcome-float--tasks  { bottom: 78px; left: 2px; animation-delay: .5s; }
.ia-welcome-float--blocks { bottom: 10px; right: 26px; animation-delay: 1s; }

@keyframes iaWelcomeFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-6px); }
}

.ia-welcome-float-donut {
    position: relative;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    flex-shrink: 0;
    background: conic-gradient(var(--ia-green) 0% 68%, rgba(17,18,23,.09) 68% 100%);
}
.ia-welcome-float-donut::after {
    content: '';
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    background: #fff;
}

.ia-welcome-float-col { display: flex; flex-direction: column; }
.ia-welcome-float-col b  { font-size: 11.5px; font-weight: 800; color: var(--ia-ink); }
.ia-welcome-float-col small { font-size: 9.5px; font-weight: 600; color: var(--ia-muted); }

.ia-welcome-float-check {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--ia-green);
    color: #1d3311;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ia-welcome-float b { font-size: 11px; font-weight: 800; color: var(--ia-ink); }

.ia-welcome-float-bars {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    width: 20px;
    height: 16px;
    flex-shrink: 0;
}
.ia-welcome-float-bars u { display: block; width: 4px; border-radius: 2px; background: var(--ia-green); }
.ia-welcome-float-bars u:nth-child(1) { height: 50%; }
.ia-welcome-float-bars u:nth-child(2) { height: 100%; }
.ia-welcome-float-bars u:nth-child(3) { height: 70%; }

/* ── Приветствие: сетка "что покажет ИИ Аудит" (переиспользует .ia-ov-grid) ── */
.ia-welcome-feature {
    padding: 18px 20px;
    min-height: 178px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ia-welcome-feature-head {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ia-welcome-feature-name {
    flex: 1;
    font-size: 13px;
    font-weight: 800;
    color: var(--ia-ink);
}

.ia-welcome-feature-num {
    font-family: 'Unbounded', sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: rgba(17,18,23,.09);
    line-height: 1;
}

.ia-welcome-feature-desc {
    margin: 0;
    font-size: 12.5px;
    line-height: 1.55;
    color: #4b4f5a;
}

.ia-welcome-viz { margin-top: auto; padding-top: 6px; }

.ia-wfz-cells { display: flex; gap: 5px; }
.ia-wfz-cells i { width: 14px; height: 14px; border-radius: 5px; background: rgba(17,18,23,.07); }
.ia-wfz-cells i.is-good { background: var(--ia-green); }
.ia-wfz-cells i.is-warn { background: #f6ca79; }

.ia-wfz-meter-track {
    position: relative;
    display: block;
    height: 7px;
    border-radius: 99px;
    background: linear-gradient(90deg, rgba(239,68,68,.16) 0 50%, rgba(245,158,11,.18) 50% 70%, rgba(111,174,58,.22) 70% 100%);
}
.ia-wfz-meter-pin {
    position: absolute;
    top: 50%;
    left: 62%;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid #f59e0b;
    transform: translate(-50%, -50%);
    box-shadow: 0 1px 4px rgba(17,18,23,.2);
}

.ia-wfz-stars { display: flex; gap: 3px; color: rgba(17,18,23,.15); }
.ia-wfz-stars em { display: flex; font-style: normal; }
.ia-wfz-stars em svg { fill: currentColor; }
.ia-wfz-stars em.is-on { color: #f59e0b; }

.ia-wfz-duel-bar { display: flex; height: 8px; border-radius: 99px; overflow: hidden; }
.ia-wfz-duel-bar i { display: block; width: 58%; background: var(--ia-green); }
.ia-wfz-duel-bar u { display: block; flex: 1; background: rgba(17,18,23,.08); }
.ia-wfz-duel small { display: block; margin-top: 5px; font-size: 9.5px; font-weight: 700; color: var(--ia-muted); }

.ia-wfz-funnel { display: flex; flex-direction: column; gap: 4px; }
.ia-wfz-funnel i { display: block; height: 7px; border-radius: 4px; background: var(--ia-green); opacity: .85; }
.ia-wfz-funnel i:nth-child(2) { opacity: .6; }
.ia-wfz-funnel i:nth-child(3) { opacity: .4; }

.ia-wfz-team { display: flex; align-items: center; }
.ia-wfz-ava {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: 800;
    color: var(--ia-ink);
    border: 2px solid #fff;
    margin-left: -8px;
}
.ia-wfz-ava:first-child { margin-left: 0; }
.ia-wfz-team small { margin-left: 8px; font-size: 9.5px; font-weight: 700; color: var(--ia-muted); }

/* ── Генерация: компактная hero-полоса (орб + название + прогресс)
   сверху, во всю ширину — под ней сетка ВСЕХ 6 блоков (см. ниже),
   а не узкая колонка на 4 карточки. ── */
.ia-gen-hero {
    display: flex;
    align-items: center;
    gap: 26px;
    padding: 26px 34px;
    margin-bottom: 14px;
}

.ia-gen-orb-wrap {
    position: relative;
    width: 88px;
    height: 88px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ia-gen-glow {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(168,231,106,.55) 0%, rgba(168,231,106,0) 70%);
    animation: iaGenGlowPulse 2.4s ease-in-out infinite;
}

@keyframes iaGenGlowPulse {
    0%, 100% { opacity: .5; transform: scale(.9); }
    50%      { opacity: 1;  transform: scale(1.1); }
}

.ia-gen-ring {
    position: absolute;
    border-radius: 50%;
    border: 1.5px solid var(--ia-green);
    animation: iaGenRingSpin 2.2s linear infinite;
}
.ia-gen-ring--1 { inset: 0; opacity: .4; }
.ia-gen-ring--2 { inset: -14px; opacity: .18; animation-direction: reverse; animation-duration: 3s; }

@keyframes iaGenRingSpin {
    from { transform: rotate(0deg) scale(1); }
    50%  { transform: rotate(180deg) scale(1.06); }
    to   { transform: rotate(360deg) scale(1); }
}

.ia-gen-spark {
    position: absolute;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--ia-green);
    box-shadow: 0 0 8px rgba(168,231,106,.85);
    opacity: 0;
    animation: iaGenSparkTwinkle 2.6s ease-in-out infinite;
}
.ia-gen-spark--1 { top: 2%;  left: 82%; animation-delay: 0s; }
.ia-gen-spark--2 { top: 74%; left: 4%;  animation-delay: .85s; }
.ia-gen-spark--3 { top: 84%; left: 84%; animation-delay: 1.7s; }

@keyframes iaGenSparkTwinkle {
    0%, 65%, 100% { opacity: 0; transform: scale(.4); }
    32%           { opacity: 1; transform: scale(1); }
}

.ia-gen-orb-core {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ia-gen-orb-mascot {
    width: 52px;
    height: auto;
    display: block;
    filter: drop-shadow(0 8px 12px rgba(49,93,32,.28));
}

.ia-gen-hero-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.ia-gen-title {
    font-family: 'Unbounded', sans-serif;
    font-size: 18px;
    font-weight: 800;
    color: var(--ia-ink);
}

.ia-gen-sub {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--ia-muted);
    margin-top: 3px;
    margin-bottom: 14px;
}

.ia-gen-progress-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.ia-gen-progress {
    flex: 1;
    height: 5px;
    background: rgba(17,18,23,.07);
    border-radius: 999px;
    overflow: hidden;
}

.ia-gen-progress-fill {
    height: 100%;
    width: 0%;
    border-radius: 999px;
    background: linear-gradient(90deg, #c3f08f, #6fae3a);
    transition: width .5s ease;
}

.ia-gen-progress-pct {
    font-family: 'Unbounded', sans-serif;
    font-size: 12px;
    font-weight: 800;
    color: var(--ia-ink);
    min-width: 34px;
    text-align: right;
}

@keyframes iaGenDotBeat {
    0%, 100% { box-shadow: 0 0 0 0 rgba(168,231,106,.4); }
    50%      { box-shadow: 0 0 0 5px rgba(168,231,106,0); }
}

/* ── Генерация: сетка всех 6 блоков (переиспользует .ia-ov-grid — 3 колонки,
   как "Блоки аудита" на Обзоре), статус синхронизирован со степпером выше.
   Привлечение/Сайт/Репутация/Конкуренты — реально анализирует ИИ (data-gen-step).
   CRM и Команда — свой честный статичный статус, не "в очереди": CRM всегда
   живые данные из БД, Команда — предпросмотр без бэка. ── */
.ia-gen-preview-block {
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    opacity: .55;
    transition: opacity .3s, border-color .3s;
}

.ia-gen-preview-block.is-active { opacity: 1; border-color: rgba(168,231,106,.5); }
.ia-gen-preview-block.is-done   { opacity: 1; }

/* Команда — честный статичный "предпросмотр" (демо без бэка), не часть
   последовательной анимации, наследует приглушённое базовое opacity: .55 */
.ia-gen-preview-note {
    margin: auto 0 0;
    padding-top: 6px;
    font-size: 11px;
    line-height: 1.5;
    color: var(--ia-muted);
}

.ia-gen-preview-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.ia-gen-preview-name {
    font-size: 13px;
    font-weight: 800;
    color: var(--ia-ink);
}

.ia-gen-preview-status {
    display: flex;
    align-items: center;
    gap: 5px;
}

.ia-gen-preview-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(17,18,23,.16);
    flex-shrink: 0;
}

.ia-gen-preview-block.is-active .ia-gen-preview-dot {
    background: #6fae3a;
    animation: iaGenDotBeat .9s ease-in-out infinite;
}
.ia-gen-preview-block.is-done .ia-gen-preview-dot { background: #6fae3a; }

.ia-gen-preview-status em {
    font-style: normal;
    font-size: 10.5px;
    font-weight: 700;
    color: var(--ia-muted);
}
.ia-gen-preview-block.is-active .ia-gen-preview-status em { color: #315d20; }
.ia-gen-preview-block.is-done   .ia-gen-preview-status em { color: #43712d; }

.ia-gen-preview-skel {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-top: auto;
}

.ia-gen-preview-skel i {
    display: block;
    height: 8px;
    border-radius: 6px;
    background: rgba(17,18,23,.06);
}
.ia-gen-preview-skel i:nth-child(1) { width: 88%; }
.ia-gen-preview-skel i:nth-child(2) { width: 62%; }
.ia-gen-preview-skel i:nth-child(3) { width: 74%; }

.ia-gen-preview-block.is-active .ia-gen-preview-skel i {
    background: linear-gradient(90deg, rgba(17,18,23,.06) 25%, rgba(168,231,106,.4) 50%, rgba(17,18,23,.06) 75%);
    background-size: 200% 100%;
    animation: iaGenSkelShimmer 1.4s linear infinite;
}

@keyframes iaGenSkelShimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.ia-gen-preview-block.is-done .ia-gen-preview-skel i {
    background: rgba(111,174,58,.4);
    animation: none;
}

/* ── Генерация: ошибка (отдельная карточка на всю ширину, содержимое по центру) ── */
.ia-gen-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    max-width: 480px;
    margin: 0 auto;
    padding: 40px 36px;
    color: #991b1b;
}

.ia-gen-error-title {
    font-size: 15px;
    font-weight: 800;
    color: var(--ia-ink);
    margin-top: 4px;
}

.ia-gen-error-text {
    max-width: 340px;
    font-size: 12.5px;
    line-height: 1.55;
    color: var(--ia-muted);
    margin: 0 0 14px;
}

/* ── Адаптив ── */
@media (max-width: 1100px) {
    .ia-welcome-hero { flex-direction: column; padding: 32px; }
    .ia-welcome-stage { width: 100%; min-height: 260px; }
}

@media (max-width: 720px) {
    .ia-welcome-grid { grid-template-columns: 1fr; }
    .ia-welcome-hero { padding: 28px 22px; }
    .ia-welcome-stage { min-height: 220px; }
    .ia-welcome-mascot { width: 140px; }
    .ia-gen-hero { flex-direction: column; align-items: flex-start; gap: 16px; padding: 24px; }
}

/* ════════════════════════════════════════════════════════════
   ПЛАВАЮЩИЙ ВИДЖЕТ ГЕНЕРАЦИИ (ia-gwidget) — index.php, вне .page,
   поэтому виден при любой открытой странице, пока идёт аудит.
   Позиция: низ-право экрана, чуть выше #toast (bottom:24px), чтобы
   всплывающие тосты не перекрывались с виджетом. Цвета захардкожены
   (не var(--ia-*)) — эти переменные объявлены на .ia-shell и сюда,
   за пределы .ia-shell, не докатятся.
   ════════════════════════════════════════════════════════════ */

.ia-gwidget {
    position: fixed;
    bottom: 72px;
    right: 24px;
    z-index: 9000;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 20px 9px 9px;
    border-radius: 20px;
    background: #fdfdfb;
    border: 1px solid rgba(17,18,23,.07);
    box-shadow: 0 14px 34px rgba(17,18,23,.16);
    cursor: pointer;
    opacity: 0;
    transform: translateY(14px) scale(.96);
    pointer-events: none;
    transition: opacity .3s ease, transform .3s cubic-bezier(.22,1,.36,1), box-shadow .2s ease;
}

.ia-gwidget.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.ia-gwidget:hover {
    box-shadow: 0 18px 42px rgba(17,18,23,.2);
    transform: translateY(-2px) scale(1.015);
}

/* Дышащий ореол вокруг виджета, пока идёт анализ — мягко привлекает
   боковое зрение, не отвлекая по-настоящему */
.ia-gwidget.is-active {
    animation: iaGWidgetBreathe 2.8s ease-in-out infinite;
}
@keyframes iaGWidgetBreathe {
    0%, 100% { box-shadow: 0 14px 34px rgba(17,18,23,.16), 0 0 0 0 rgba(168,231,106,.38); }
    50%      { box-shadow: 0 14px 34px rgba(17,18,23,.16), 0 0 0 7px rgba(168,231,106,0); }
}

/* Одноразовый "поп" при смене статуса (готово/ошибка) */
.ia-gwidget.is-pop { animation: iaGWidgetPop .5s cubic-bezier(.34,1.56,.64,1); }
@keyframes iaGWidgetPop {
    0%   { transform: scale(1); }
    35%  { transform: scale(1.08); }
    100% { transform: scale(1); }
}

.ia-gwidget-ring {
    position: relative;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.ia-gwidget-ring-svg {
    width: 40px;
    height: 40px;
    transform: rotate(-90deg);
}

.ia-gwidget-ring-track {
    fill: none;
    stroke: rgba(17,18,23,.08);
    stroke-width: 3;
}

.ia-gwidget-ring-fill {
    fill: none;
    stroke: #6fae3a;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-dasharray: 106.8;
    stroke-dashoffset: 106.8;
    transition: stroke-dashoffset .45s ease, stroke .25s ease;
}

.ia-gwidget-pct {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Unbounded', sans-serif;
    font-size: 9.5px;
    font-weight: 800;
    color: #111217;
}

.ia-gwidget-check,
.ia-gwidget-alert {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
}

.ia-gwidget-check { background: #6fae3a; }
.ia-gwidget-alert { background: #ef4444; }

.ia-gwidget.is-done  .ia-gwidget-pct   { display: none; }
.ia-gwidget.is-done  .ia-gwidget-check { display: flex; }
.ia-gwidget.is-done  .ia-gwidget-ring-fill { stroke-dashoffset: 0; }

.ia-gwidget.is-error .ia-gwidget-pct   { display: none; }
.ia-gwidget.is-error .ia-gwidget-alert { display: flex; }
.ia-gwidget.is-error .ia-gwidget-ring-fill { stroke: #ef4444; stroke-dashoffset: 0; }

/* Тариф есть, сайта нет — предупреждение, а не ошибка, поэтому янтарный, не красный */
.ia-gwidget.is-nosite .ia-gwidget-pct   { display: none; }
.ia-gwidget.is-nosite .ia-gwidget-alert { display: flex; background: #d97706; }
.ia-gwidget.is-nosite .ia-gwidget-ring-fill { stroke: #d97706; stroke-dashoffset: 0; }

.ia-gwidget-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
    white-space: nowrap;
}

.ia-gwidget-text b {
    font-size: 12.5px;
    font-weight: 800;
    color: #111217;
}

.ia-gwidget-text small {
    font-size: 11px;
    font-weight: 600;
    color: #8d919d;
}

.ia-gwidget.is-done   .ia-gwidget-text small { color: #43712d; font-weight: 700; }
.ia-gwidget.is-error  .ia-gwidget-text small { color: #b91c1c; font-weight: 700; }
.ia-gwidget.is-nosite .ia-gwidget-text small { color: #b45309; font-weight: 700; }

@media (max-width: 480px) {
    .ia-gwidget { right: 12px; bottom: 64px; padding: 8px 16px 8px 8px; }
    .ia-gwidget-text b { font-size: 12px; }
}
