/* AI-Ready Export — scoped styles. Mirrors ar-* conventions from agent-readiness.css. */

.aix-main { max-width: 960px; margin: 0 auto; padding: 24px 20px 80px; }

.aix-hero { background: var(--gray-50, #f8fafc); border: 1px solid var(--gray-200, #e2e8f0); border-radius: 14px; padding: 32px 28px; margin-bottom: 28px; }
.aix-hero-inner { max-width: 760px; }
.aix-eyebrow { text-transform: uppercase; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; color: var(--accent-600, #2563eb); margin: 0 0 10px; }
.aix-h1 { font-size: 26px; font-weight: 700; margin: 0 0 10px; color: var(--gray-900, #0f172a); line-height: 1.3; }
.aix-lede { font-size: 14px; line-height: 1.6; color: var(--gray-700, #334155); margin: 0 0 22px; }
.aix-lede code { background: var(--gray-100, #f1f5f9); padding: 1px 6px; border-radius: 4px; font-size: 12px; }

.aix-form { display: flex; flex-direction: column; gap: 8px; }
.aix-label { font-size: 12px; font-weight: 600; color: var(--gray-700, #334155); }
.aix-input-row { display: flex; gap: 8px; }
.aix-input {
  flex: 1; padding: 10px 14px; font-size: 14px;
  border: 1px solid var(--gray-300, #cbd5e1); border-radius: 8px;
  background: #fff; color: var(--gray-900, #0f172a);
}
.aix-input:focus { outline: 2px solid var(--accent-500, #3b82f6); outline-offset: 1px; border-color: var(--accent-500, #3b82f6); }
.aix-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 18px; font-size: 14px; font-weight: 600;
  border: 1px solid transparent; border-radius: 8px; cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.aix-btn-primary { background: var(--accent-600, #2563eb); color: #fff; }
.aix-btn-primary:hover { background: var(--accent-700, #1d4ed8); }
.aix-btn-primary:disabled { opacity: 0.65; cursor: wait; }
.aix-btn-primary .aix-spinner { display: none; animation: aix-spin 0.8s linear infinite; }
.aix-btn-primary.is-loading .aix-btn-text { opacity: 0.6; }
.aix-btn-primary.is-loading .aix-spinner { display: inline-block; }
.aix-btn-download {
  background: #fff; color: var(--gray-900, #0f172a);
  border-color: var(--gray-300, #cbd5e1);
}
.aix-btn-download:hover { background: var(--gray-50, #f8fafc); border-color: var(--gray-400, #94a3b8); }
.aix-btn-secondary { background: var(--gray-100, #f1f5f9); color: var(--gray-800, #1e293b); border-color: var(--gray-200, #e2e8f0); }
.aix-btn-secondary:hover { background: var(--gray-200, #e2e8f0); }
@keyframes aix-spin { to { transform: rotate(360deg); } }
.aix-hint { font-size: 12px; color: var(--gray-500, #64748b); margin: 4px 0 0; }

.aix-results { margin-top: 16px; }
.aix-result-card { background: #fff; border: 1px solid var(--gray-200, #e2e8f0); border-radius: 14px; padding: 28px; }

.aix-summary-row { display: flex; gap: 28px; align-items: center; margin-bottom: 22px; flex-wrap: wrap; }
.aix-reduction-headline { display: flex; flex-direction: column; align-items: center; min-width: 140px; }
.aix-reduction-pct { font-size: 44px; font-weight: 800; color: var(--accent-600, #2563eb); line-height: 1; }
.aix-reduction-label { font-size: 12px; color: var(--gray-500, #64748b); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 4px; }
.aix-summary-meta { flex: 1; min-width: 260px; }
.aix-result-title { font-size: 18px; font-weight: 700; margin: 0 0 4px; color: var(--gray-900, #0f172a); }
.aix-result-url { font-size: 13px; color: var(--gray-600, #475569); margin: 0 0 10px; word-break: break-all; }
.aix-result-footer { margin: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.aix-pill-mini { display: inline-block; padding: 2px 8px; font-size: 11px; border-radius: 10px; background: var(--gray-100, #f1f5f9); color: var(--gray-700, #334155); }

.aix-tiles { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: stretch; margin: 20px 0; }
.aix-tile { background: var(--gray-50, #f8fafc); border: 1px solid var(--gray-200, #e2e8f0); border-radius: 10px; padding: 18px; text-align: center; }
.aix-tile h4 { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gray-500, #64748b); margin: 0 0 10px; font-weight: 700; }
.aix-tile-big { font-size: 30px; font-weight: 700; color: var(--gray-900, #0f172a); margin: 0; line-height: 1; }
.aix-tile-sub { font-size: 11px; color: var(--gray-500, #64748b); margin: 4px 0 10px; }
.aix-tile-meta { list-style: none; padding: 0; margin: 0; display: flex; justify-content: center; gap: 14px; font-size: 12px; color: var(--gray-600, #475569); }
.aix-tile-meta li span { font-weight: 600; color: var(--gray-800, #1e293b); }
.aix-tile-transformed { background: var(--accent-50, #eff6ff); border-color: var(--accent-200, #bfdbfe); }
.aix-tile-transformed .aix-tile-big { color: var(--accent-700, #1d4ed8); }
.aix-tile-arrow { display: flex; align-items: center; justify-content: center; font-size: 22px; color: var(--gray-400, #94a3b8); border: none; background: transparent; padding: 0; }

@media (max-width: 640px) {
  .aix-tiles { grid-template-columns: 1fr; }
  .aix-tile-arrow { transform: rotate(90deg); }
}

.aix-breakdown { font-size: 13px; color: var(--gray-700, #334155); text-align: center; margin: 10px 0 18px; font-weight: 500; }

.aix-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }

.aix-preview { border: 1px solid var(--gray-200, #e2e8f0); border-radius: 10px; overflow: hidden; }
.aix-preview-tabs { display: flex; border-bottom: 1px solid var(--gray-200, #e2e8f0); background: var(--gray-50, #f8fafc); }
.aix-preview-tab {
  padding: 10px 16px; font-size: 13px; font-weight: 500; color: var(--gray-600, #475569);
  background: transparent; border: none; border-bottom: 2px solid transparent; cursor: pointer;
}
.aix-preview-tab.is-active { color: var(--accent-700, #1d4ed8); border-bottom-color: var(--accent-600, #2563eb); }
.aix-preview-tab:hover:not(.is-active) { background: var(--gray-100, #f1f5f9); }
.aix-preview-body {
  margin: 0; padding: 16px 18px; max-height: 400px; overflow: auto;
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 12px; line-height: 1.55; background: #fff; color: var(--gray-800, #1e293b);
  white-space: pre-wrap; word-break: break-word;
}
.aix-preview-caveat { margin: 0; padding: 10px 18px; font-size: 11px; color: var(--gray-500, #64748b); background: var(--gray-50, #f8fafc); border-top: 1px solid var(--gray-200, #e2e8f0); }

.aix-token-caveat { font-size: 11px; color: var(--gray-500, #64748b); margin: 16px 0 0; font-style: italic; }

.aix-error { margin-top: 16px; padding: 14px 18px; background: #fef2f2; border: 1px solid #fecaca; border-radius: 10px; color: #991b1b; font-size: 14px; }

/* Dark mode */
html[data-theme="dark"] .aix-hero { background: var(--gray-800, #1e293b); border-color: var(--gray-700, #334155); }
html[data-theme="dark"] .aix-h1 { color: var(--gray-100, #f1f5f9); }
html[data-theme="dark"] .aix-lede { color: var(--gray-300, #cbd5e1); }
html[data-theme="dark"] .aix-lede code { background: var(--gray-700, #334155); color: var(--gray-100, #f1f5f9); }
html[data-theme="dark"] .aix-input { background: var(--gray-900, #0f172a); border-color: var(--gray-600, #475569); color: var(--gray-100, #f1f5f9); }
html[data-theme="dark"] .aix-result-card { background: var(--gray-900, #0f172a); border-color: var(--gray-700, #334155); }
html[data-theme="dark"] .aix-result-title { color: var(--gray-100, #f1f5f9); }
html[data-theme="dark"] .aix-result-url { color: var(--gray-400, #94a3b8); }
html[data-theme="dark"] .aix-tile { background: var(--gray-800, #1e293b); border-color: var(--gray-700, #334155); }
html[data-theme="dark"] .aix-tile-big { color: var(--gray-100, #f1f5f9); }
html[data-theme="dark"] .aix-tile-transformed { background: rgba(37, 99, 235, 0.12); border-color: rgba(59, 130, 246, 0.35); }
html[data-theme="dark"] .aix-tile-transformed .aix-tile-big { color: #93c5fd; }
html[data-theme="dark"] .aix-preview { border-color: var(--gray-700, #334155); }
html[data-theme="dark"] .aix-preview-tabs { background: var(--gray-800, #1e293b); border-bottom-color: var(--gray-700, #334155); }
html[data-theme="dark"] .aix-preview-body { background: var(--gray-900, #0f172a); color: var(--gray-200, #e2e8f0); }
html[data-theme="dark"] .aix-preview-caveat { background: var(--gray-800, #1e293b); border-top-color: var(--gray-700, #334155); color: var(--gray-400, #94a3b8); }
html[data-theme="dark"] .aix-btn-download { background: var(--gray-800, #1e293b); color: var(--gray-100, #f1f5f9); border-color: var(--gray-600, #475569); }
html[data-theme="dark"] .aix-btn-download:hover { background: var(--gray-700, #334155); }
html[data-theme="dark"] .aix-btn-secondary { background: var(--gray-800, #1e293b); color: var(--gray-100, #f1f5f9); border-color: var(--gray-700, #334155); }
html[data-theme="dark"] .aix-btn-secondary:hover { background: var(--gray-700, #334155); }
html[data-theme="dark"] .aix-error { background: #7f1d1d; border-color: #991b1b; color: #fecaca; }

/* ============================================================
 * V2: Tabs + Schema.org JSON-LD Generator
 * ============================================================ */

.aix-tabs { display: flex; gap: 4px; margin-bottom: 18px; border-bottom: 1px solid var(--gray-200, #e2e8f0); }
.aix-tab {
  padding: 10px 18px; font-size: 14px; font-weight: 600;
  background: transparent; border: none; border-bottom: 2px solid transparent;
  color: var(--gray-600, #475569); cursor: pointer; transition: color 0.15s, border-color 0.15s;
}
.aix-tab:hover:not(.is-active) { color: var(--gray-900, #0f172a); }
.aix-tab.is-active { color: var(--accent-700, #1d4ed8); border-bottom-color: var(--accent-600, #2563eb); }

.aix-form-card {
  background: var(--gray-50, #f8fafc);
  border: 1px solid var(--gray-200, #e2e8f0);
  border-radius: 14px;
  padding: 22px 24px;
  margin-bottom: 18px;
}

.aix-schema-results { margin-top: 16px; }
.aix-schema-result-card { background: #fff; border: 1px solid var(--gray-200, #e2e8f0); border-radius: 14px; padding: 24px 28px; }
.aix-schema-result-head { margin-bottom: 18px; }

.aix-schema-grid { display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: start; }
@media (max-width: 720px) { .aix-schema-grid { grid-template-columns: 1fr; } }

.aix-schema-h4 { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gray-500, #64748b); margin: 0 0 10px; }
.aix-schema-status .aix-schema-h4 + .aix-schema-list { margin-bottom: 18px; }
.aix-schema-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }

.aix-schema-list li { display: flex; align-items: center; gap: 8px; font-size: 13px; padding: 6px 10px; border-radius: 8px; }
.aix-schema-item-existing { background: #ecfdf5; color: #065f46; }
.aix-schema-item-existing .aix-schema-check { color: #10b981; font-weight: 700; }
.aix-schema-item-missing { background: #fef3c7; color: #92400e; }
.aix-schema-item-missing .aix-schema-flag { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; background: #f59e0b; color: #fff; border-radius: 50%; font-size: 10px; font-weight: 800; }
.aix-schema-item-empty { font-size: 12px; color: var(--gray-500, #64748b); font-style: italic; padding: 6px 0; }
.aix-schema-type { font-weight: 500; }

.aix-schema-blocks { display: flex; flex-direction: column; gap: 14px; }

.aix-schema-block { border: 1px solid var(--gray-200, #e2e8f0); border-radius: 10px; overflow: hidden; }
.aix-schema-block-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; background: var(--gray-50, #f8fafc); border-bottom: 1px solid var(--gray-200, #e2e8f0); }
.aix-schema-block-type { font-size: 13px; font-weight: 600; color: var(--gray-900, #0f172a); }
.aix-schema-copy-btn { padding: 4px 12px; font-size: 12px; }

.aix-schema-block-body {
  margin: 0; padding: 14px 16px; max-height: 320px; overflow: auto;
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 12px; line-height: 1.55; background: #fff; color: var(--gray-800, #1e293b);
  white-space: pre-wrap; word-break: break-word;
}

.aix-schema-validation { padding: 10px 14px; background: #fef9e7; border-top: 1px solid #fde68a; font-size: 12px; }
.aix-schema-validation p { margin: 0; line-height: 1.5; }
.aix-schema-validation p + p { margin-top: 4px; }
.aix-schema-validation-required { color: #b45309; font-weight: 600; }
.aix-schema-validation-required::before { content: '! '; color: #d97706; font-weight: 800; }
.aix-schema-validation-warning { color: #78350f; }

.aix-schema-empty { font-size: 13px; color: var(--gray-500, #64748b); padding: 16px 18px; background: var(--gray-50, #f8fafc); border-radius: 10px; margin: 0; }

.aix-schema-caveat { font-size: 11px; color: var(--gray-500, #64748b); margin: 18px 0 0; font-style: italic; line-height: 1.6; }
.aix-schema-caveat a { color: var(--accent-600, #2563eb); text-decoration: underline; }

/* Dark mode */
html[data-theme="dark"] .aix-tabs { border-bottom-color: var(--gray-700, #334155); }
html[data-theme="dark"] .aix-tab { color: var(--gray-400, #94a3b8); }
html[data-theme="dark"] .aix-tab:hover:not(.is-active) { color: var(--gray-100, #f1f5f9); }
html[data-theme="dark"] .aix-tab.is-active { color: #93c5fd; border-bottom-color: #3b82f6; }
html[data-theme="dark"] .aix-form-card { background: var(--gray-800, #1e293b); border-color: var(--gray-700, #334155); }
html[data-theme="dark"] .aix-schema-result-card { background: var(--gray-900, #0f172a); border-color: var(--gray-700, #334155); }
html[data-theme="dark"] .aix-schema-block { border-color: var(--gray-700, #334155); }
html[data-theme="dark"] .aix-schema-block-head { background: var(--gray-800, #1e293b); border-bottom-color: var(--gray-700, #334155); }
html[data-theme="dark"] .aix-schema-block-type { color: var(--gray-100, #f1f5f9); }
html[data-theme="dark"] .aix-schema-block-body { background: var(--gray-900, #0f172a); color: var(--gray-200, #e2e8f0); }
html[data-theme="dark"] .aix-schema-item-existing { background: rgba(16, 185, 129, 0.15); color: #6ee7b7; }
html[data-theme="dark"] .aix-schema-item-missing { background: rgba(245, 158, 11, 0.18); color: #fcd34d; }
html[data-theme="dark"] .aix-schema-validation { background: rgba(245, 158, 11, 0.10); border-top-color: rgba(245, 158, 11, 0.35); }
html[data-theme="dark"] .aix-schema-validation-required { color: #fbbf24; }
html[data-theme="dark"] .aix-schema-validation-warning { color: #fcd34d; }
html[data-theme="dark"] .aix-schema-empty { background: var(--gray-800, #1e293b); color: var(--gray-400, #94a3b8); }

/* ============================================================
 * V2 Phase C: Content Freshness Audit
 * ============================================================ */

.aix-freshness-results { margin-top: 16px; }
.aix-freshness-result-card { background: #fff; border: 1px solid var(--gray-200, #e2e8f0); border-radius: 14px; padding: 24px 28px; }
.aix-freshness-head { margin-bottom: 12px; }

.aix-freshness-summary { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 18px; }

.aix-fresh-pill { display: inline-block; padding: 4px 10px; font-size: 12px; font-weight: 600; border-radius: 999px; }
.aix-fresh-pill-fresh      { background: #ecfdf5; color: #065f46; }
.aix-fresh-pill-aging      { background: #fefce8; color: #854d0e; }
.aix-fresh-pill-stale      { background: #fef3c7; color: #92400e; }
.aix-fresh-pill-decay_risk { background: #fee2e2; color: #991b1b; }
.aix-fresh-pill-unknown    { background: var(--gray-100, #f1f5f9); color: var(--gray-600, #475569); }

.aix-freshness-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.aix-freshness-filters { display: flex; gap: 6px; flex-wrap: wrap; }

.aix-filter-chip {
  padding: 5px 12px; font-size: 12px; font-weight: 500;
  background: #fff; color: var(--gray-700, #334155);
  border: 1px solid var(--gray-300, #cbd5e1); border-radius: 999px; cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.aix-filter-chip:hover { background: var(--gray-50, #f8fafc); border-color: var(--gray-400, #94a3b8); }
.aix-filter-chip.is-active { background: var(--accent-600, #2563eb); border-color: var(--accent-600, #2563eb); color: #fff; }

.aix-freshness-table-wrap { overflow-x: auto; border: 1px solid var(--gray-200, #e2e8f0); border-radius: 10px; }
.aix-freshness-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.aix-freshness-table thead th {
  text-align: left; padding: 10px 14px; font-weight: 600; font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--gray-600, #475569);
  background: var(--gray-50, #f8fafc); border-bottom: 1px solid var(--gray-200, #e2e8f0);
  white-space: nowrap;
}
.aix-freshness-table tbody td { padding: 10px 14px; border-bottom: 1px solid var(--gray-100, #f1f5f9); vertical-align: top; }
.aix-freshness-table tbody tr:last-child td { border-bottom: none; }
.aix-freshness-table tbody tr:hover { background: var(--gray-50, #f8fafc); }

.aix-fresh-link { color: var(--accent-700, #1d4ed8); text-decoration: none; word-break: break-all; }
.aix-fresh-link:hover { text-decoration: underline; }
.aix-fresh-source { color: var(--gray-500, #64748b); font-size: 11px; }
.aix-fresh-muted { color: var(--gray-400, #94a3b8); }
.aix-fresh-score { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--gray-700, #334155); }
.aix-fresh-score-mid { color: #b45309; }
.aix-fresh-score-high { color: #991b1b; }
.aix-fresh-empty { padding: 24px; text-align: center; color: var(--gray-500, #64748b); font-style: italic; }

/* Dark mode */
html[data-theme="dark"] .aix-freshness-result-card { background: var(--gray-900, #0f172a); border-color: var(--gray-700, #334155); }
html[data-theme="dark"] .aix-freshness-table-wrap { border-color: var(--gray-700, #334155); }
html[data-theme="dark"] .aix-freshness-table thead th { background: var(--gray-800, #1e293b); border-bottom-color: var(--gray-700, #334155); color: var(--gray-300, #cbd5e1); }
html[data-theme="dark"] .aix-freshness-table tbody td { border-bottom-color: var(--gray-800, #1e293b); }
html[data-theme="dark"] .aix-freshness-table tbody tr:hover { background: var(--gray-800, #1e293b); }
html[data-theme="dark"] .aix-fresh-link { color: #93c5fd; }
html[data-theme="dark"] .aix-filter-chip { background: var(--gray-900, #0f172a); border-color: var(--gray-700, #334155); color: var(--gray-300, #cbd5e1); }
html[data-theme="dark"] .aix-filter-chip:hover { background: var(--gray-800, #1e293b); }
html[data-theme="dark"] .aix-filter-chip.is-active { background: #3b82f6; border-color: #3b82f6; color: #fff; }
html[data-theme="dark"] .aix-fresh-pill-fresh      { background: rgba(16, 185, 129, 0.18); color: #6ee7b7; }
html[data-theme="dark"] .aix-fresh-pill-aging      { background: rgba(234, 179, 8, 0.18);  color: #fde68a; }
html[data-theme="dark"] .aix-fresh-pill-stale      { background: rgba(245, 158, 11, 0.18); color: #fcd34d; }
html[data-theme="dark"] .aix-fresh-pill-decay_risk { background: rgba(239, 68, 68, 0.18);  color: #fecaca; }
html[data-theme="dark"] .aix-fresh-pill-unknown    { background: var(--gray-800, #1e293b); color: var(--gray-400, #94a3b8); }
html[data-theme="dark"] .aix-fresh-score-mid { color: #fbbf24; }
html[data-theme="dark"] .aix-fresh-score-high { color: #fca5a5; }

/* ============================================================
 * V2 Phase D: Citation Source Gap
 * ============================================================ */

.aix-cg-intro { font-size: 13px; line-height: 1.6; color: var(--gray-700, #334155); margin: 0 0 14px; }
.aix-cg-anon { padding: 18px; background: #fef9e7; border: 1px solid #fde68a; border-radius: 10px; }
.aix-cg-anon p { margin: 0 0 8px; color: #78350f; font-size: 13px; }
.aix-cg-anon p:last-child { margin-bottom: 0; }

.aix-cg-controls .aix-input-row { gap: 8px; }
.aix-cg-controls select { padding: 9px 12px; }

.aix-cg-results { margin-top: 16px; }
.aix-cg-result-card { background: #fff; border: 1px solid var(--gray-200, #e2e8f0); border-radius: 14px; padding: 24px 28px; }
.aix-cg-head { margin-bottom: 16px; }

.aix-cg-warning { padding: 12px 16px; background: #fef9e7; border: 1px solid #fde68a; border-left: 4px solid #f59e0b; border-radius: 8px; margin-bottom: 16px; }
.aix-cg-warning p { margin: 0; color: #78350f; font-size: 13px; line-height: 1.5; }

.aix-cg-moats { display: flex; flex-direction: column; gap: 10px; margin-bottom: 22px; }
.aix-cg-moat { padding: 14px 18px; border-radius: 10px; border: 1px solid var(--gray-200, #e2e8f0); }
.aix-cg-moat-gap { background: #fef3c7; border-color: #fde68a; }
.aix-cg-moat-covered { background: #ecfdf5; border-color: #a7f3d0; }
.aix-cg-moat-no_data { background: var(--gray-50, #f8fafc); }

.aix-cg-moat-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; flex-wrap: wrap; }
.aix-cg-moat-state {
  display: inline-block; padding: 2px 8px; border-radius: 4px;
  font-size: 10px; font-weight: 800; letter-spacing: 0.06em;
}
.aix-cg-moat-state-gap { background: #f59e0b; color: #fff; }
.aix-cg-moat-state-covered { background: #10b981; color: #fff; }
.aix-cg-moat-state-no_data { background: var(--gray-300, #cbd5e1); color: var(--gray-700, #334155); }
.aix-cg-moat-source { font-size: 14px; font-weight: 700; color: var(--gray-900, #0f172a); }
.aix-cg-moat-engine { font-size: 12px; color: var(--gray-600, #475569); margin-left: auto; }

.aix-cg-moat-note { font-size: 12px; color: var(--gray-700, #334155); margin: 4px 0; line-height: 1.5; }
.aix-cg-moat-citedby { font-size: 12px; color: var(--gray-800, #1e293b); margin: 4px 0; }
.aix-cg-moat-action { font-size: 13px; color: var(--accent-700, #1d4ed8); margin: 6px 0 0; font-weight: 500; }
.aix-cg-moat-no_data .aix-cg-moat-action { color: var(--gray-500, #64748b); font-weight: 400; }
.aix-cg-moat-covered .aix-cg-moat-action { color: #065f46; }

.aix-cg-competitor-list { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-direction: column; gap: 6px; }
.aix-cg-competitor { display: flex; align-items: center; gap: 8px; font-size: 13px; padding: 6px 0; flex-wrap: wrap; }
.aix-cg-comp-name { font-weight: 600; color: var(--gray-900, #0f172a); }

.aix-cg-longtail-count { font-size: 12px; color: var(--gray-600, #475569); font-style: italic; }

/* Dark mode */
html[data-theme="dark"] .aix-cg-intro { color: var(--gray-300, #cbd5e1); }
html[data-theme="dark"] .aix-cg-anon { background: rgba(245, 158, 11, 0.12); border-color: rgba(245, 158, 11, 0.4); }
html[data-theme="dark"] .aix-cg-anon p { color: #fcd34d; }
html[data-theme="dark"] .aix-cg-result-card { background: var(--gray-900, #0f172a); border-color: var(--gray-700, #334155); }
html[data-theme="dark"] .aix-cg-warning { background: rgba(245, 158, 11, 0.12); border-color: rgba(245, 158, 11, 0.4); border-left-color: #f59e0b; }
html[data-theme="dark"] .aix-cg-warning p { color: #fcd34d; }
html[data-theme="dark"] .aix-cg-moat { border-color: var(--gray-700, #334155); }
html[data-theme="dark"] .aix-cg-moat-gap { background: rgba(245, 158, 11, 0.12); border-color: rgba(245, 158, 11, 0.4); }
html[data-theme="dark"] .aix-cg-moat-covered { background: rgba(16, 185, 129, 0.12); border-color: rgba(16, 185, 129, 0.4); }
html[data-theme="dark"] .aix-cg-moat-no_data { background: var(--gray-800, #1e293b); }
html[data-theme="dark"] .aix-cg-moat-state-no_data { background: var(--gray-700, #334155); color: var(--gray-300, #cbd5e1); }
html[data-theme="dark"] .aix-cg-moat-source { color: var(--gray-100, #f1f5f9); }
html[data-theme="dark"] .aix-cg-moat-engine { color: var(--gray-400, #94a3b8); }
html[data-theme="dark"] .aix-cg-moat-note { color: var(--gray-300, #cbd5e1); }
html[data-theme="dark"] .aix-cg-moat-citedby { color: var(--gray-200, #e2e8f0); }
html[data-theme="dark"] .aix-cg-moat-action { color: #93c5fd; }
html[data-theme="dark"] .aix-cg-moat-covered .aix-cg-moat-action { color: #6ee7b7; }
html[data-theme="dark"] .aix-cg-comp-name { color: var(--gray-100, #f1f5f9); }
