/* ── Audit page ─────────────────────────────────────────────────────── */
.audit-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}
@media (max-width: 900px) { .audit-grid { grid-template-columns: 1fr; } }
.audit-kpis {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
}
.audit-kpi {
  background: var(--glass-input);
  border: 1px solid var(--border-dim);
  border-radius: 10px; padding: 10px 12px;
}
.audit-kpi-val { font-size: 22px; font-weight: 700; color: var(--text); letter-spacing: -0.4px; line-height: 1.1; }
.audit-kpi-lbl { font-size: 11px; color: var(--muted); margin-top: 3px; }
.audit-kpi.audit-blocker .audit-kpi-val  { color: #ff3b30; }
.audit-kpi.audit-critical .audit-kpi-val { color: #ff453a; }
.audit-kpi.audit-warn .audit-kpi-val     { color: #ff9500; }
.audit-kpi.audit-info .audit-kpi-val     { color: #5b8dee; }
.audit-kpi.audit-ok .audit-kpi-val       { color: #30d158; }

.issue-row {
  display: flex; gap: 8px; padding: 6px 8px;
  border-radius: 8px; font-size: 12.5px; line-height: 1.4;
}
.issue-row + .issue-row { margin-top: 2px; }
.issue-row .sev {
  flex-shrink: 0; min-width: 70px;
  font-size: 10px; font-weight: 700;
  padding: 2px 6px; border-radius: 4px; text-align: center;
  text-transform: uppercase; letter-spacing: .5px;
  height: max-content;
}
.sev.sev-blocker  { background: rgba(255,59,48,.22);  color: #ff3b30; }
.sev.sev-critical { background: rgba(255,69,58,.20);  color: #ff453a; }
.sev.sev-warn     { background: rgba(255,149,0,.20);  color: #ff9500; }
.sev.sev-info     { background: rgba(91,141,238,.20); color: #5b8dee; }
.issue-row .msg   { flex: 1; color: var(--text); }
.issue-row .code  { font-size: 10.5px; color: var(--muted); font-family: 'SF Mono', Menlo, monospace; }

.audit-page-card {
  background: var(--glass-input);
  border: 1px solid var(--border-dim);
  border-radius: 10px; padding: 10px 12px;
  transition: border-color .15s;
}
.audit-page-card:hover { border-color: var(--border-std); }
.audit-page-card.has-blocker  { border-left: 3px solid #ff3b30; }
.audit-page-card.has-critical { border-left: 3px solid #ff453a; }
.audit-page-card.has-warn     { border-left: 3px solid #ff9500; }
.audit-page-card.has-ok       { border-left: 3px solid #30d158; }
.audit-page-card.is-variation { opacity: .78; }
.audit-page-head {
  display: flex; align-items: center; gap: 8px; cursor: pointer;
  user-select: none;
}
.audit-page-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px; flex-shrink: 0;
  font-size: 10px; color: var(--muted);
  transition: transform .15s;
}
.audit-page-card.is-open .audit-page-toggle { transform: rotate(90deg); }
.audit-page-lvl {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 22px; height: 17px; padding: 0 5px;
  font-size: 10px; font-weight: 700;
  background: rgba(91,141,238,.16); color: #5b8dee;
  border-radius: 4px; flex-shrink: 0;
}
.audit-page-lvl.lvl-1 { background: rgba(48,209,88,.18); color: #30d158; }
.audit-page-lvl.lvl-2 { background: rgba(91,141,238,.18); color: #60a5fa; }
.audit-page-lvl.lvl-3 { background: rgba(180,180,180,.14); color: var(--muted-hi); }
.audit-page-lvl.lvl-var { background: rgba(180,180,180,.10); color: var(--muted); font-weight: 600; }
.audit-page-url { font-size: 12.5px; font-weight: 600; color: var(--text); word-break: break-all; flex: 1; min-width: 0; }
.audit-page-url-text { text-decoration: none; color: inherit; }
.audit-page-url-text:hover { color: var(--accent); }
.audit-page-badges { display: inline-flex; gap: 4px; flex-shrink: 0; align-items: center; }
.audit-page-badge {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 10.5px; font-weight: 600;
  padding: 1px 6px; border-radius: 4px;
  font-variant-numeric: tabular-nums;
}
.audit-page-badge.b-blocker  { background: rgba(255,59,48,.20); color: #ff3b30; }
.audit-page-badge.b-critical { background: rgba(255,69,58,.18); color: #ff453a; }
.audit-page-badge.b-warn     { background: rgba(255,149,0,.18); color: #ff9500; }
.audit-page-badge.b-info     { background: rgba(91,141,238,.16); color: #5b8dee; }
.audit-page-badge.b-ms       { background: var(--glass-dark); color: var(--muted-hi); font-weight: 500; }
.audit-page-status {
  display: inline-block; font-size: 10.5px; font-weight: 600;
  padding: 1px 7px; border-radius: 4px;
  flex-shrink: 0;
}
.audit-page-status.ok    { background: rgba(48,209,88,.18); color: #30d158; }
.audit-page-status.fail  { background: rgba(255,69,58,.18); color: #ff453a; }
.audit-page-body { display: none; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--border-dim); }
.audit-page-card.is-open .audit-page-body { display: block; }
.audit-page-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3px 24px;
  font-size: 12px;
  align-items: start;
}
@media (max-width: 900px) {
  .audit-page-meta { grid-template-columns: minmax(0,1fr); }
}
.audit-meta-row {
  display: flex; gap: 8px; align-items: baseline;
  min-width: 0; line-height: 1.4;
}
.audit-meta-row .k {
  width: 92px; flex-shrink: 0;
  color: var(--muted); font-size: 11px;
}
.audit-meta-row .k small { font-weight: 400; opacity: .75; }
.audit-meta-row .v {
  flex: 1; min-width: 0;
  color: var(--text); word-break: break-word;
  font-variant-numeric: tabular-nums;
}
.audit-meta-row .v.is-empty { color: var(--muted); font-style: italic; }
.audit-page-meta .k { color: var(--muted); font-size: 11px; padding-top: 2px; }
.audit-page-meta .v { color: var(--text); word-break: break-word; font-variant-numeric: tabular-nums; }
.audit-tag {
  display: inline-block; font-size: 10.5px;
  background: rgba(91,141,238,.14); color: #5b8dee;
  padding: 1px 6px; border-radius: 4px; margin: 1px 3px 1px 0;
  font-family: 'SF Mono', Menlo, monospace;
}
.audit-tag.og  { background: rgba(48,209,88,.14); color: #30d158; }
.audit-tag.tw  { background: rgba(91,141,238,.14); color: #60a5fa; }
.audit-tag.ld  { background: rgba(255,159,10,.14); color: #ff9f0a; }
.audit-page-issues { margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--border-dim); }
.audit-pre {
  background: rgba(0,0,0,.18); padding: 8px 10px; border-radius: 6px;
  font-size: 11.5px; font-family: 'SF Mono', Menlo, monospace;
  white-space: pre-wrap; max-height: 180px; overflow-y: auto;
  color: var(--text2);
}
[data-theme="light"] .audit-pre { background: rgba(0,0,0,.05); }

/* ── Issues grouped by type ─────────────────────────────────────────── */
.issue-group {
  background: var(--glass-input); border: 1px solid var(--border-dim);
  border-radius: 10px; margin-bottom: 6px; overflow: hidden;
}
.issue-group.sev-blocker  { border-left: 3px solid #ff3b30; }
.issue-group.sev-critical { border-left: 3px solid #ff453a; }
.issue-group.sev-warn     { border-left: 3px solid #ff9500; }
.issue-group.sev-info     { border-left: 3px solid #5b8dee; }
.issue-group-head {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; cursor: pointer; user-select: none;
}
.issue-group-head:hover { background: var(--glass-dark); }
.issue-group-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px; flex-shrink: 0; font-size: 10px;
  color: var(--muted); transition: transform .15s;
}
.issue-group.is-open .issue-group-toggle { transform: rotate(90deg); }
.issue-group-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 32px; padding: 2px 8px; border-radius: 5px;
  font-size: 12px; font-weight: 700; flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}
.issue-group.sev-blocker  .issue-group-count { background: rgba(255,59,48,.20); color: #ff3b30; }
.issue-group.sev-critical .issue-group-count { background: rgba(255,69,58,.20); color: #ff453a; }
.issue-group.sev-warn     .issue-group-count { background: rgba(255,149,0,.18); color: #ff9500; }
.issue-group.sev-info     .issue-group-count { background: rgba(91,141,238,.16); color: #5b8dee; }
.issue-group-msg { flex: 1; font-size: 13px; color: var(--text); min-width: 0; }
.issue-group-msg .label { font-weight: 600; }
.issue-group-msg .code {
  font-size: 10.5px; color: var(--muted); font-family: 'SF Mono', Menlo, monospace;
  margin-left: 8px;
}
.issue-group-body { display: none; padding: 0 12px 10px 38px; }
.issue-group.is-open .issue-group-body { display: block; }
.issue-group-urls {
  max-height: 280px; overflow-y: auto;
  background: rgba(0,0,0,.06); border-radius: 6px; padding: 6px 10px;
  font-size: 12px;
}
[data-theme="light"] .issue-group-urls { background: rgba(0,0,0,.04); }
.issue-group-url {
  padding: 3px 0; border-bottom: 1px solid var(--border-dim);
  word-break: break-all; line-height: 1.45;
  display: flex; align-items: baseline; gap: 8px;
}
.issue-group-url:last-child { border-bottom: none; }
.issue-group-url a {
  color: var(--text); text-decoration: none; flex: 1; min-width: 0;
}
.issue-group-url a:hover { color: var(--accent); text-decoration: underline; }
.issue-group-url .scroll-btn {
  font-size: 10.5px; color: var(--muted-hi); padding: 1px 6px;
  border-radius: 4px; background: var(--glass-input);
  border: 1px solid var(--border-dim); cursor: pointer; flex-shrink: 0;
}
.issue-group-url .scroll-btn:hover { color: var(--accent); border-color: var(--accent); }

/* ── Performance page ───────────────────────────────────────────────── */
.perf-ps-grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
}
.perf-ps-strategy {
  background: var(--glass-input); border: 1px solid var(--border-dim);
  border-radius: 12px; padding: 14px 16px;
}
.perf-ps-strategy-title {
  font-size: 13px; font-weight: 700; color: var(--text);
  margin-bottom: 10px; display: flex; align-items: center; gap: 8px;
}
.perf-ps-scores {
  display: grid; gap: 8px;
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 12px;
}
.perf-ps-score {
  text-align: center; padding: 8px 6px; border-radius: 8px;
  background: var(--glass-dark); border: 1px solid var(--border-dim);
}
.perf-ps-score-val {
  font-size: 22px; font-weight: 700; line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.perf-ps-score-val.good   { color: #30d158; }
.perf-ps-score-val.medium { color: #ff9500; }
.perf-ps-score-val.poor   { color: #ff3b30; }
.perf-ps-score-lbl { font-size: 10.5px; color: var(--muted); margin-top: 2px; text-transform: uppercase; letter-spacing: 0.4px; }

.perf-ps-vitals {
  display: grid; gap: 6px;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border-dim);
}
.perf-ps-vital {
  background: var(--glass-dark); border-radius: 6px; padding: 6px 8px;
}
.perf-ps-vital .lbl { font-size: 10.5px; color: var(--muted); font-weight: 600; }
.perf-ps-vital .val { font-size: 14px; font-weight: 700; color: var(--text); margin-top: 2px; font-variant-numeric: tabular-nums; }
.perf-ps-vital.fast    { border-left: 3px solid #30d158; }
.perf-ps-vital.average { border-left: 3px solid #ff9500; }
.perf-ps-vital.slow    { border-left: 3px solid #ff3b30; }
.perf-ps-vital .src { font-size: 9.5px; color: var(--muted); margin-top: 1px; }

.perf-ps-opps { margin-top: 12px; }
.perf-ps-opps-title { font-size: 11.5px; color: var(--muted-hi); font-weight: 600; margin-bottom: 6px; }
.perf-ps-opp {
  display: flex; align-items: flex-start; gap: 8px;
  padding: 6px 8px; border-radius: 6px;
  background: var(--glass-dark); margin-bottom: 4px; font-size: 12px;
}
.perf-ps-opp .savings { font-weight: 700; color: #ff9500; min-width: 60px; flex-shrink: 0; font-variant-numeric: tabular-nums; }
.perf-ps-opp .text    { flex: 1; color: var(--text2); }

.perf-metrika-kpis {
  display: grid; gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}
.perf-metrika-kpi {
  background: var(--glass-input); border: 1px solid var(--border-dim);
  border-radius: 10px; padding: 10px 12px;
}
.perf-metrika-kpi-val { font-size: 22px; font-weight: 700; color: var(--text); line-height: 1.1; font-variant-numeric: tabular-nums; }
.perf-metrika-kpi-val.good   { color: #30d158; }
.perf-metrika-kpi-val.medium { color: #ff9500; }
.perf-metrika-kpi-val.poor   { color: #ff3b30; }
.perf-metrika-kpi-lbl { font-size: 11px; color: var(--muted); margin-top: 3px; }

.perf-slow-row {
  display: grid; gap: 12px;
  grid-template-columns: minmax(0, 1fr) 80px 80px 80px;
  padding: 6px 10px; font-size: 12px;
  border-bottom: 1px solid var(--border-dim);
  align-items: baseline;
}
.perf-slow-row.head { font-weight: 600; color: var(--muted); border-bottom: 1px solid var(--border-std); }
.perf-slow-row .url { word-break: break-all; min-width: 0; }
.perf-slow-row .url a { color: var(--text); text-decoration: none; }
.perf-slow-row .url a:hover { color: var(--accent); }
.perf-slow-row .num { text-align: right; font-variant-numeric: tabular-nums; }
.perf-slow-row .num.poor   { color: #ff3b30; font-weight: 700; }
.perf-slow-row .num.medium { color: #ff9500; font-weight: 600; }
.perf-slow-row .num.good   { color: #30d158; }

/* ── Site contacts on audit page ────────────────────────────────────── */
.audit-contacts-grid {
  display: grid; gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.audit-contact-block {
  background: var(--glass-input); border: 1px solid var(--border-dim);
  border-radius: 10px; padding: 10px 12px;
}
.audit-contact-block .lbl {
  font-size: 11px; color: var(--muted); margin-bottom: 6px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.4px;
}
.audit-contact-block .val { font-size: 13px; color: var(--text); line-height: 1.5; }
.audit-contact-block .val.empty { color: var(--muted); font-style: italic; font-size: 12px; }
.audit-contact-block.has { border-left: 3px solid #30d158; }
.audit-contact-block.miss { border-left: 3px solid #ff9500; }
.audit-contact-block .val a { color: var(--accent); text-decoration: none; font-weight: 600; }
.audit-contact-block .val a:hover { text-decoration: underline; }
.audit-contacts-source-badge {
  display: inline-block; font-size: 10px; font-weight: 600;
  padding: 1px 7px; border-radius: 4px; margin-left: 8px;
  vertical-align: 2px; text-transform: uppercase; letter-spacing: 0.4px;
}
.audit-contacts-source-badge.ai    { background: rgba(91,141,238,.18); color: #5b8dee; }
.audit-contacts-source-badge.regex { background: rgba(180,180,180,.16); color: var(--muted-hi); }
.conf-pill {
  display: inline-block; font-size: 9.5px; font-weight: 600;
  padding: 1px 5px; border-radius: 3px; margin-left: 4px;
  text-transform: uppercase; letter-spacing: 0.3px; vertical-align: 1px;
}
.conf-pill.conf-ok  { background: rgba(48,209,88,.16); color: #30d158; }
.conf-pill.conf-mid { background: rgba(255,149,0,.16); color: #ff9500; }
.conf-pill.conf-lo  { background: rgba(180,180,180,.14); color: var(--muted-hi); }
.audit-contact-promo {
  font-size: 12px; color: var(--text2);
  padding: 4px 0; border-bottom: 1px solid var(--border-dim);
}
.audit-contact-promo:last-child { border-bottom: none; }
.audit-jsonld-coverage {
  margin-top: 10px; padding: 8px 10px;
  background: var(--glass-dark); border-radius: 8px;
  font-size: 12px; display: flex; gap: 12px; flex-wrap: wrap;
}
.audit-jsonld-flag { display: inline-flex; align-items: center; gap: 4px; }
.audit-jsonld-flag.ok   { color: #30d158; }
.audit-jsonld-flag.miss { color: #ff9500; }

/* ── Chat history dropdown ──────────────────────────────────────────── */
.audit-chat-history-bar {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  padding: 6px 0; font-size: 11.5px;
}
.audit-chat-history-list {
  display: flex; gap: 4px; overflow-x: auto; flex: 1;
  padding-bottom: 2px;
}
.audit-chat-history-chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 8px; font-size: 11px;
  background: var(--glass-input); border: 1px solid var(--border-dim);
  border-radius: 12px; cursor: pointer; white-space: nowrap;
  flex-shrink: 0; max-width: 220px;
}
.audit-chat-history-chip:hover { border-color: var(--accent); }
.audit-chat-history-chip.active { background: rgba(91,141,238,.18); border-color: var(--accent); color: var(--text); }
.audit-chat-history-chip .title {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 160px;
}
.audit-chat-history-chip .x {
  opacity: .55; font-size: 11px; padding: 0 2px;
}
.audit-chat-history-chip .x:hover { opacity: 1; color: #ff453a; }

/* ── Yandex Webmaster on audit page ─────────────────────────────────── */
.audit-wm-kpis {
  display: grid; gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  margin-bottom: 12px;
}
.audit-wm-kpi {
  background: var(--glass-input); border: 1px solid var(--border-dim);
  border-radius: 8px; padding: 8px 10px;
}
.audit-wm-kpi-val { font-size: 18px; font-weight: 700; color: var(--text); line-height: 1.1; font-variant-numeric: tabular-nums; }
.audit-wm-kpi-lbl { font-size: 11px; color: var(--muted); margin-top: 2px; }
.audit-wm-kpi.accent .audit-wm-kpi-val { color: #5b8dee; }
.audit-wm-kpi.ok .audit-wm-kpi-val     { color: #30d158; }
.audit-wm-kpi.warn .audit-wm-kpi-val   { color: #ff9500; }

.audit-wm-section { margin-top: 10px; }
.audit-wm-section-title {
  font-size: 12px; color: var(--muted-hi); font-weight: 600;
  margin-bottom: 6px;
}
.audit-wm-section-title .muted { color: var(--muted); font-weight: 400; margin-left: 6px; }

.audit-wm-rec {
  display: flex; align-items: flex-start; gap: 8px;
  padding: 6px 8px; border-radius: 6px;
  background: var(--glass-input); border: 1px solid var(--border-dim);
  margin-bottom: 4px; font-size: 12.5px;
}
.audit-wm-rec.sev-blocker  { border-left: 3px solid #ff3b30; }
.audit-wm-rec.sev-critical { border-left: 3px solid #ff453a; }
.audit-wm-rec.sev-warn     { border-left: 3px solid #ff9500; }
.audit-wm-rec.sev-info     { border-left: 3px solid #5b8dee; }
.audit-wm-rec-label { flex: 1; color: var(--text); }
.audit-wm-rec-since { color: var(--muted); font-size: 10.5px; white-space: nowrap; }

.audit-wm-pages-list {
  max-height: 220px; overflow-y: auto;
  background: rgba(0,0,0,.06); border-radius: 6px; padding: 6px 10px;
  font-size: 12px;
}
[data-theme="light"] .audit-wm-pages-list { background: rgba(0,0,0,.04); }
.audit-wm-page-row {
  padding: 3px 0; border-bottom: 1px solid var(--border-dim);
  word-break: break-all; line-height: 1.45;
}
.audit-wm-page-row:last-child { border-bottom: none; }
.audit-wm-page-row a { color: var(--text); text-decoration: none; }
.audit-wm-page-row a:hover { color: var(--accent); }
.audit-wm-page-row .last { color: var(--muted); font-size: 10.5px; margin-left: 6px; }

/* Per-URL Webmaster badge inside each audit page card header */
.audit-page-wm {
  font-size: 10.5px; padding: 1px 6px; border-radius: 4px;
  font-weight: 600; flex-shrink: 0;
}
.audit-page-wm.in-search    { background: rgba(48,209,88,.18); color: #30d158; }
.audit-page-wm.not-in-search{ background: rgba(180,180,180,.14); color: var(--muted-hi); }

/* Per-URL Google Search Console badge — синяя, рядом с Яндекс-бейджем */
.audit-page-gsc {
  font-size: 10.5px; padding: 1px 6px; border-radius: 4px;
  font-weight: 600; flex-shrink: 0;
}
.audit-page-gsc.in-search    { background: rgba(66,133,244,.20); color: #4285f4; }
.audit-page-gsc.not-in-search{ background: rgba(180,180,180,.14); color: var(--muted-hi); }
.audit-page-gsc.pending      { background: rgba(180,180,180,.10); color: var(--muted); }

/* ── Sitemap card: статусы индексации по каждой URL ─────────────────── */
.sitemap-status-bar {
  display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
  margin-bottom: 8px; padding: 6px 10px;
  background: rgba(255,255,255,.04); border: 1px solid var(--border-dim);
  border-radius: 6px; font-size: 11.5px;
}
.sitemap-status-bar.sm-pending { color: var(--muted); }
.sitemap-status-bar .sm-stat {
  font-weight: 600; padding: 2px 8px; border-radius: 4px; line-height: 1.5;
}
.sitemap-status-bar .sm-stat.sm-ok    { background: rgba(48,209,88,.14);  color: #30d158; }
.sitemap-status-bar .sm-stat.sm-warn  { background: rgba(255,149,0,.14);  color: #ff9500; }
.sitemap-status-bar .sm-stat.sm-muted { background: rgba(180,180,180,.10); color: var(--muted-hi); }
.sitemap-status-bar .sm-stat-hint { color: var(--muted); margin-left: auto; font-size: 10.5px; }
.sitemap-list {
  font-size: 12px; color: var(--text2);
  max-height: 180px; overflow-y: auto;
  background: rgba(0,0,0,.10); border-radius: 6px; padding: 6px 10px;
}
.sitemap-row {
  display: flex; align-items: center; gap: 8px;
  padding: 2px 0; border-bottom: 1px solid var(--border-dim);
  word-break: break-all; line-height: 1.45;
}
.sitemap-row:last-child { border-bottom: none; }
.sitemap-row .sitemap-loc { flex: 1; min-width: 0; }
.sitemap-row .sitemap-lm { color: var(--muted); font-size: 10.5px; flex-shrink: 0; }
.sm-row-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; border-radius: 4px; font-size: 11px; font-weight: 700;
  flex-shrink: 0;
}
.sm-row-badge.ok    { background: rgba(48,209,88,.18);  color: #30d158; }
.sm-row-badge.warn  { background: rgba(255,149,0,.18);  color: #ff9500; }
.sm-row-badge.muted { background: rgba(180,180,180,.12); color: var(--muted-hi); }
.sm-row-badge.gsc   { background: rgba(66,133,244,.22); color: #4285f4; }
.sm-row-badge.gsc-muted { background: rgba(66,133,244,.06); color: rgba(66,133,244,.45); }
.sitemap-status-bar .sm-stat.sm-google { background: rgba(66,133,244,.18); color: #4285f4; }

/* ── Sitemap × Webmaster modal: детальная таблица индексации ────────── */
#idx-modal .freq-modal { max-width: 1280px; padding: 22px 24px; }
.idx-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.idx-chip {
  padding: 5px 12px; border: 1px solid var(--border-dim); background: rgba(255,255,255,.04);
  color: var(--muted); cursor: pointer; font-size: 11.5px; font-weight: 600;
  border-radius: 16px; transition: color .15s, border-color .15s, background .15s;
}
.idx-chip:hover { color: var(--text); border-color: var(--border); }
.idx-chip.active.all      { color: #5b8dee; border-color: #5b8dee; background: rgba(91,141,238,.10); }
.idx-chip.active.in_search{ color: #30d158; border-color: rgba(48,209,88,.6);  background: rgba(48,209,88,.10); }
.idx-chip.active.excluded { color: #ff9500; border-color: rgba(255,149,0,.6);  background: rgba(255,149,0,.10); }
.idx-chip.active.unknown  { color: var(--muted-hi); border-color: var(--border); background: rgba(180,180,180,.08); }
.idx-chip-count { color: var(--muted); margin-left: 6px; font-weight: 500; }
.idx-chip.active .idx-chip-count { color: inherit; }
.idx-toolbar { display: flex; gap: 8px; align-items: center; margin-bottom: 12px; flex-wrap: wrap; }
.idx-toolbar .idx-filter {
  flex: 1; min-width: 220px;
  background: rgba(255,255,255,.05); border: 1px solid var(--border-dim);
  color: var(--text); border-radius: 7px; padding: 8px 11px; font-size: 12.5px;
}
.idx-toolbar .idx-filter:focus { outline: none; border-color: #5b8dee; }
.idx-toolbar .idx-meta { font-size: 11px; color: var(--muted); margin-left: auto; }

.idx-table-wrap { max-height: 60vh; overflow-y: auto; border: 1px solid var(--border-dim); border-radius: 8px; }
.idx-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.idx-table th {
  background: rgba(255,255,255,.05);
  font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .6px;
  font-weight: 500; padding: 9px 12px; text-align: left;
  position: sticky; top: 0; z-index: 1; border-bottom: 1px solid var(--border-dim);
  user-select: none;
}
.idx-table th.idx-sortable { cursor: pointer; }
.idx-table th.idx-sortable:hover { color: var(--text); }
.idx-table th.idx-sortable .idx-sort-arrow { color: #5b8dee; margin-left: 4px; font-size: 10px; }
.idx-table .idx-status-badge {
  display: inline-flex; align-items: center; gap: 3px; padding: 2px 8px; border-radius: 4px;
  font-size: 11px; font-weight: 600; white-space: nowrap;
}
.idx-table .idx-status-badge.in_search { background: rgba(48,209,88,.14);  color: #30d158; }
.idx-table .idx-status-badge.excluded  { background: rgba(255,149,0,.14);  color: #ff9500; }
.idx-table .idx-status-badge.unknown   { background: rgba(180,180,180,.10); color: var(--muted-hi); }
.idx-table td { padding: 8px 12px; border-bottom: 1px solid var(--border-dim); vertical-align: top; }
.idx-table tr:last-child td { border-bottom: none; }
.idx-table tr:hover td { background: rgba(91,141,238,.05); }
.idx-table tr.idx-hl td { background: rgba(255,149,0,.10); }
.idx-table .idx-url { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 11px; word-break: break-all; }
.idx-table .idx-url a { color: #5b8dee; text-decoration: none; }
.idx-table .idx-url a:hover { text-decoration: underline; }
.idx-table .idx-date { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 11px; color: var(--muted); white-space: nowrap; }
.idx-table .idx-reason { font-size: 12px; color: #ff9500; }
.idx-table .idx-reason-code { color: var(--muted); font-size: 10.5px; margin-left: 4px; }
.idx-empty-row td { padding: 28px; text-align: center; color: var(--muted); font-size: 13px; }
.idx-loading { padding: 40px; text-align: center; color: var(--muted); font-size: 13px; }
.idx-error {
  padding: 18px; text-align: center; color: #ff6b6b; font-size: 13px;
  background: rgba(255,69,58,.06); border: 1px solid rgba(255,69,58,.22); border-radius: 8px;
}

