.signals-report__cover {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.signals-report__pdf {
  flex: 0 0 auto;
  border: 1px solid var(--blue);
  border-radius: 10px;
  padding: 10px 14px;
  color: var(--text);
  background: rgba(85, 199, 255, 0.12);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.signals-report__pdf:hover {
  background: rgba(85, 199, 255, 0.2);
}

.signals-report__summary {
  max-width: 760px;
  white-space: normal;
  line-height: 1.6;
}

.signals-report-card-list {
  display: grid;
  gap: 1rem;
}

.signals-report-card {
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 12px;
  padding: 1rem 1.1rem;
  background: rgba(255, 255, 255, 0.04);
}

html[data-theme="light"] .signals-report-card {
  background: #fff;
  border-color: #e2e8f0;
}

.signals-report-card__head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.65rem;
  align-items: center;
  margin-bottom: 0.75rem;
}

.signals-report-card__label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 0.25rem;
}

.signals-report-card p {
  margin: 0 0 0.85rem;
  line-height: 1.45;
}

.signals-report-card p:last-child {
  margin-bottom: 0;
}

.signals-report-card__badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
}

.signals-report-card__badge.is-count {
  font-weight: 600;
  opacity: 0.85;
}

.signals-report-card__badge.is-provider {
  background: rgba(100, 116, 139, 0.28);
  border-color: rgba(148, 163, 184, 0.5);
  color: #cbd5e1;
}
.signals-report-card__badge.is-provider-openai {
  background: rgba(16, 185, 129, 0.22);
  border-color: rgba(52, 211, 153, 0.55);
  color: #6ee7b7;
}
.signals-report-card__badge.is-provider-gemini {
  background: rgba(59, 130, 246, 0.24);
  border-color: rgba(96, 165, 250, 0.55);
  color: #93c5fd;
}
.signals-report-card__badge.is-provider-claude {
  background: rgba(234, 88, 12, 0.24);
  border-color: rgba(251, 146, 60, 0.55);
  color: #fdba74;
}
.signals-report-card__badge.is-provider-perplexity {
  background: rgba(8, 145, 178, 0.26);
  border-color: rgba(34, 211, 238, 0.5);
  color: #67e8f9;
}
.signals-report-card__badge.is-provider-google_ai_overviews {
  background: rgba(217, 119, 6, 0.24);
  border-color: rgba(251, 191, 36, 0.55);
  color: #fcd34d;
}

.signals-report-card__badge.is-topic-tone-0 {
  background: rgba(139, 92, 246, 0.24);
  border-color: rgba(167, 139, 250, 0.55);
  color: #c4b5fd;
}
.signals-report-card__badge.is-topic-tone-1 {
  background: rgba(236, 72, 153, 0.22);
  border-color: rgba(244, 114, 182, 0.5);
  color: #f9a8d4;
}
.signals-report-card__badge.is-topic-tone-2 {
  background: rgba(5, 150, 105, 0.22);
  border-color: rgba(52, 211, 153, 0.5);
  color: #6ee7b7;
}
.signals-report-card__badge.is-topic-tone-3 {
  background: rgba(245, 158, 11, 0.22);
  border-color: rgba(251, 191, 36, 0.5);
  color: #fcd34d;
}
.signals-report-card__badge.is-topic-tone-4 {
  background: rgba(14, 165, 233, 0.22);
  border-color: rgba(56, 189, 248, 0.5);
  color: #7dd3fc;
}
.signals-report-card__badge.is-topic-tone-5 {
  background: rgba(225, 29, 72, 0.22);
  border-color: rgba(251, 113, 133, 0.5);
  color: #fda4af;
}
.signals-report-card__badge.is-topic-tone-6 {
  background: rgba(132, 204, 22, 0.2);
  border-color: rgba(163, 230, 53, 0.5);
  color: #bef264;
}
.signals-report-card__badge.is-topic-tone-7 {
  background: rgba(99, 102, 241, 0.24);
  border-color: rgba(129, 140, 248, 0.5);
  color: #a5b4fc;
}

html[data-theme="light"] .signals-report-card__badge.is-provider {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #334155;
}
html[data-theme="light"] .signals-report-card__badge.is-provider-openai {
  background: rgba(16, 185, 129, 0.14);
  border-color: rgba(5, 150, 105, 0.4);
  color: #047857;
}
html[data-theme="light"] .signals-report-card__badge.is-provider-gemini {
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(37, 99, 235, 0.35);
  color: #1d4ed8;
}
html[data-theme="light"] .signals-report-card__badge.is-provider-claude {
  background: rgba(234, 88, 12, 0.12);
  border-color: rgba(194, 65, 12, 0.35);
  color: #c2410c;
}
html[data-theme="light"] .signals-report-card__badge.is-provider-perplexity {
  background: rgba(8, 145, 178, 0.12);
  border-color: rgba(14, 116, 144, 0.35);
  color: #0e7490;
}
html[data-theme="light"] .signals-report-card__badge.is-provider-google_ai_overviews {
  background: rgba(245, 158, 11, 0.16);
  border-color: rgba(180, 83, 9, 0.35);
  color: #b45309;
}

html[data-theme="light"] .signals-report-card__badge.is-topic-tone-0 {
  background: rgba(139, 92, 246, 0.12);
  border-color: rgba(109, 40, 217, 0.35);
  color: #6d28d9;
}
html[data-theme="light"] .signals-report-card__badge.is-topic-tone-1 {
  background: rgba(236, 72, 153, 0.12);
  border-color: rgba(190, 24, 93, 0.35);
  color: #be185d;
}
html[data-theme="light"] .signals-report-card__badge.is-topic-tone-2 {
  background: rgba(5, 150, 105, 0.12);
  border-color: rgba(4, 120, 87, 0.35);
  color: #047857;
}
html[data-theme="light"] .signals-report-card__badge.is-topic-tone-3 {
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(180, 83, 9, 0.35);
  color: #b45309;
}
html[data-theme="light"] .signals-report-card__badge.is-topic-tone-4 {
  background: rgba(14, 165, 233, 0.12);
  border-color: rgba(3, 105, 161, 0.35);
  color: #0369a1;
}
html[data-theme="light"] .signals-report-card__badge.is-topic-tone-5 {
  background: rgba(225, 29, 72, 0.12);
  border-color: rgba(190, 18, 60, 0.35);
  color: #be123c;
}
html[data-theme="light"] .signals-report-card__badge.is-topic-tone-6 {
  background: rgba(132, 204, 22, 0.14);
  border-color: rgba(77, 124, 15, 0.35);
  color: #4d7c0f;
}
html[data-theme="light"] .signals-report-card__badge.is-topic-tone-7 {
  background: rgba(99, 102, 241, 0.12);
  border-color: rgba(67, 56, 202, 0.35);
  color: #4338ca;
}

.signals-report-card__date {
  margin-left: auto;
  font-size: 0.8rem;
  opacity: 0.75;
}

.signals-report-card__ns {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  opacity: 0.75;
}

.signals-answer-preview {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0.75rem 0.9rem;
  text-align: left;
  font: inherit;
  line-height: 1.45;
  color: inherit;
  background: rgba(148, 163, 184, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 10px;
  cursor: default;
}

html[data-theme="light"] .signals-answer-preview {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #1e293b;
}

.signals-answer-preview.is-expandable {
  cursor: pointer;
}

.signals-answer-preview.is-expandable:hover,
.signals-answer-preview.is-expandable:focus-visible {
  border-color: rgba(59, 130, 246, 0.55);
  outline: none;
}

.signals-answer-expand-hint {
  display: inline-block;
  margin-top: 0.45rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #3b82f6;
}

.signals-answer-modal {
  width: min(720px, calc(100vw - 32px));
  max-height: min(80vh, 720px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: #eef3ff;
}

.signals-answer-modal .audit-share-modal-title,
.signals-answer-modal .signals-answer-sources-title,
.signals-answer-modal .secondary-btn {
  color: #eef3ff;
}

.signals-answer-modal .audit-share-modal-body {
  overflow: auto;
  max-height: min(80vh, 720px);
}

.signals-answer-modal-body {
  white-space: pre-wrap;
  line-height: 1.55;
  margin: 0 0 1.25rem;
  color: #e2e8f0;
}

.signals-answer-modal-body strong,
.signals-answer-preview-text strong { font-weight: 700; }
.signals-answer-modal-body em,
.signals-answer-preview-text em { font-style: italic; }
.signals-answer-modal-body code,
.signals-answer-preview-text code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.88em;
  padding: 0.05em 0.35em;
  border-radius: 4px;
  background: rgba(148, 163, 184, 0.18);
}

.signals-answer-modal-body h3,
.signals-answer-modal-body h4,
.signals-answer-modal-body h5,
.signals-answer-modal-body h6 {
  margin: 0.9em 0 0.35em;
  font-size: 1.02em;
  font-weight: 700;
  line-height: 1.35;
}

.signals-answer-modal-body a { color: #93c5fd; }
html[data-theme="light"] .signals-answer-modal-body a { color: #2563eb; }

.signals-answer-sources-block { margin: 0 0 1.25rem; }
.signals-answer-sources-title {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
}
.signals-answer-sources-lead {
  margin: 0 0 0.65rem;
  font-size: 0.8rem;
  opacity: 0.75;
  color: #a8b4c8;
}
.signals-answer-sources-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
}
.signals-answer-sources-list li {
  font-size: 0.85rem;
  line-height: 1.4;
  word-break: break-word;
  color: #e2e8f0;
}
.signals-answer-sources-list a { color: #93c5fd; }
.signals-answer-source-n {
  font-weight: 700;
  color: #93c5fd;
  margin-right: 0.15rem;
}
.signals-answer-source-domain { opacity: 0.7; }
.signals-answer-source-is-yours {
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(52, 211, 153, 0.45);
  border-radius: 8px;
  padding: 0.4rem 0.55rem;
}
.signals-answer-source-is-yours .signals-answer-source-n { color: #6ee7b7; }
.signals-answer-source-yours-badge {
  display: inline-block;
  margin-left: 0.45rem;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.28);
  color: #a7f3d0;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: middle;
}
.signals-answer-cite-yours {
  background: rgba(16, 185, 129, 0.28);
  color: #6ee7b7;
  font-weight: 800;
  padding: 0.05em 0.22em;
  border-radius: 4px;
}

mark.signals-answer-hit {
  background: rgba(251, 191, 36, 0.42);
  color: inherit;
  font-weight: 700;
  padding: 0.05em 0.18em;
  border-radius: 3px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

html[data-theme="light"] .signals-answer-modal {
  background: #fff;
  border-color: #e2e8f0;
  color: #0f172a;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.18);
}
html[data-theme="light"] .signals-answer-modal .audit-share-modal-title,
html[data-theme="light"] .signals-answer-modal .signals-answer-sources-title,
html[data-theme="light"] .signals-answer-modal .secondary-btn {
  color: #0f172a;
}
html[data-theme="light"] .signals-answer-modal .audit-share-modal-close {
  background: #f1f5f9;
  color: #0f172a;
}
html[data-theme="light"] .signals-answer-modal-body,
html[data-theme="light"] .signals-answer-sources-list li {
  color: #1e293b;
}
html[data-theme="light"] .signals-answer-sources-lead {
  color: #64748b;
  opacity: 1;
}
html[data-theme="light"] .signals-answer-sources-list a,
html[data-theme="light"] .signals-answer-source-n {
  color: #2563eb;
}
html[data-theme="light"] .signals-answer-source-is-yours {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(5, 150, 105, 0.4);
}
html[data-theme="light"] .signals-answer-source-is-yours .signals-answer-source-n,
html[data-theme="light"] .signals-answer-cite-yours {
  color: #047857;
}
html[data-theme="light"] .signals-answer-source-yours-badge {
  background: rgba(16, 185, 129, 0.22);
  color: #047857;
}
html[data-theme="light"] .signals-answer-cite-yours {
  background: rgba(16, 185, 129, 0.22);
}
html[data-theme="light"] mark.signals-answer-hit {
  background: rgba(245, 158, 11, 0.38);
  color: inherit;
}

@media (max-width: 640px) {
  .signals-report__cover {
    display: block;
  }

  .signals-report__pdf {
    margin-top: 18px;
  }

  .signals-report-card__date {
    margin-left: 0;
  }
}

@media print {
  .audit-share-brand-bar,
  .signals-report__pdf,
  .signals-answer-expand-hint,
  .audit-share-modal-scrim,
  .signals-answer-modal {
    display: none !important;
  }

  .signals-report {
    max-width: none;
    padding: 0;
  }

  .signals-answer-preview {
    border: 1px solid #ccc;
    background: transparent;
  }
}
