/* =============================================
   AUDIT PAGE STYLES
   Companion to audit.html — imports after style.css
   ============================================= */

/* =============================================
   AUDIT PAGE BODY & LAYOUT
   ============================================= */
.audit-page-bg {
  background-color: #f1f3f4;
  min-height: 100vh;
}

/* =============================================
   SECTION 1: URL ENTRY (Pure White #ffffff)
   ============================================= */
.section-url-entry {
  background-color: #ffffff;
  width: 100%;
  padding-top: 48px;
  padding-bottom: 48px;
  padding-left: 16px;
  padding-right: 16px;
}

@media (min-width: 768px) {
  .section-url-entry {
    padding-top: 64px;
    padding-bottom: 48px;
    padding-left: 24px;
    padding-right: 24px;
  }
}

.audit-container-sm {
  max-width: 768px;
  margin: 0 auto;
}

/* White Card */
.audit-url-card {
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid #dadce0;
  padding: 24px;
  text-align: center;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

@media (min-width: 640px) {
  .audit-url-card {
    padding: 40px;
  }
}

.audit-card-heading {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #202124;
  margin-bottom: 12px;
}

@media (min-width: 640px) {
  .audit-card-heading {
    font-size: 30px;
  }
}

.audit-card-subtitle {
  font-size: 14px;
  color: #5f6368;
  max-width: 560px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

@media (min-width: 640px) {
  .audit-card-subtitle {
    font-size: 16px;
  }
}

.audit-card-subtitle .highlight-blue {
  color: #4285f4;
  font-weight: 600;
}

/* =============================================
   AUDIT FORM / URL INPUT
   ============================================= */
.audit-form {
  max-width: 560px;
  margin: 0 auto;
}

/* Pill-shaped Input Container */
.url-input-container {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  background: #ffffff;
  border: 1px solid #dadce0;
  border-radius: 9999px;
  padding: 6px 6px 6px 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.url-input-container:focus-within {
  border-color: #4285f4;
  box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.18);
}

/* Globe Icon */
.url-globe-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #5f6368;
  margin-right: 8px;
  flex-shrink: 0;
}

.url-globe-icon svg {
  width: 20px;
  height: 20px;
}

/* Input Field */
.url-text-input {
  width: 100%;
  background: transparent;
  font-size: 14px;
  color: #202124;
  border: none;
  outline: none;
  font-family: "Inter", sans-serif;
  font-weight: 500;
}

@media (min-width: 640px) {
  .url-text-input {
    font-size: 16px;
  }
}

.url-text-input::placeholder {
  color: rgba(95, 99, 104, 0.6);
}

/* Scan Now Button (inside pill) */
.btn-scan-pill {
  background-color: #4285f4;
  color: #ffffff;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 14px;
  border: none;
  border-radius: 9999px;
  padding: 0 20px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 115px;
  height: 42px;
  cursor: pointer;
  transition:
    background-color 0.15s ease,
    transform 0.1s ease;
}

@media (min-width: 640px) {
  .btn-scan-pill {
    font-size: 16px;
    padding: 0 28px;
  }
}

.btn-scan-pill:hover {
  background-color: #185abc;
}

.btn-scan-pill:active {
  transform: scale(0.98);
}

.btn-scan-pill:disabled {
  cursor: not-allowed;
  opacity: 0.9;
}

/* Spinner inside button */
.btn-spinner {
  display: none;
  align-items: center;
  justify-content: center;
}

.btn-spinner svg {
  animation: spin 1s linear infinite;
  height: 20px;
  width: 20px;
  color: #ffffff;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.btn-spinner-circle {
  opacity: 0.25;
}

.btn-spinner-arc {
  opacity: 0.9;
}

/* =============================================
   GRADIENT BLEND TRANSITION
   ============================================= */
.gradient-blend-transition {
  height: 80px;
  width: 100%;
  background: linear-gradient(to bottom, #ffffff 0%, #f1f3f4 100%);
  pointer-events: none;
}

/* =============================================
   SECTIONS 2 & 3: GRAY CONTENT AREA
   ============================================= */
.section-content-gray {
  background-color: #f1f3f4;
  width: 100%;
  padding-bottom: 80px;
  padding-left: 16px;
  padding-right: 16px;
}

@media (min-width: 640px) {
  .section-content-gray {
    padding-left: 24px;
    padding-right: 24px;
  }
}

.audit-content-container {
  max-width: 1024px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

/* =============================================
   SECTION HEADINGS (Sections 2 & 3)
   ============================================= */
.audit-section-heading {
  font-size: 18px;
  font-weight: 700;
  color: #202124;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

@media (min-width: 640px) {
  .audit-section-heading {
    font-size: 20px;
  }
}

/* =============================================
   SECTION 2: RECENT SCANS TABLE CARD
   ============================================= */
.recent-scans-card {
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid #dadce0;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.recent-scans-table-wrap {
  overflow-x: auto;
}

.recent-scans-table {
  width: 100%;
  text-align: left;
  border-collapse: collapse;
}

/* Table Header */
.recent-scans-table thead tr {
  border-bottom: 1px solid #dadce0;
  background: #ffffff;
}

.recent-scans-table th {
  padding: 14px 24px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #5f6368;
  white-space: nowrap;
}

@media (min-width: 640px) {
  .recent-scans-table th {
    font-size: 12px;
  }
}

.recent-scans-table th:last-child {
  text-align: right;
}

/* Table body rows */
.recent-scans-table tbody tr {
  border-bottom: 1px solid #f1f3f4;
  transition: background 0.12s ease;
}
.recent-scans-table tbody tr:last-child {
  border-bottom: none;
}
.recent-scans-table tbody tr:hover {
  background: #f8f9fa;
}
.recent-scans-table td {
  padding: 13px 24px;
  font-size: 13px;
  color: #3c4043;
  vertical-align: middle;
  white-space: nowrap;
}
.recent-scans-table td:nth-child(3) strong {
  font-size: 14px;
  font-weight: 700;
  color: #202124;
}
.recent-scans-table td:nth-child(3) {
  color: #80868b;
  font-size: 13px;
}
.recent-scans-table td:last-child {
  text-align: right;
}

/* Empty State Row */
.empty-state-cell {
  padding: 64px 16px !important;
  text-align: center;
}

@media (min-width: 640px) {
  .empty-state-cell {
    padding: 80px 16px;
  }
}

.empty-state-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 320px;
  margin: 0 auto;
}

/* Clipboard Icon */
.empty-state-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #5f6368;
}

.empty-state-icon svg {
  width: 40px;
  height: 40px;
  stroke: currentColor;
  fill: none;
}

.empty-state-title {
  font-size: 16px;
  font-weight: 700;
  color: #202124;
  margin-bottom: 4px;
}

@media (min-width: 640px) {
  .empty-state-title {
    font-size: 18px;
  }
}

.empty-state-desc {
  font-size: 12px;
  color: #5f6368;
}

@media (min-width: 640px) {
  .empty-state-desc {
    font-size: 14px;
  }
}

/* =============================================
   SECTION 3: AUDIT REPORT EMPTY STATE
   ============================================= */
.audit-report-card {
  background: #ffffff;
  border-radius: 8px;
  border: 2px dashed #dadce0;
  padding: 40px 16px;
  text-align: center;
}

@media (min-width: 640px) {
  .audit-report-card {
    padding: 64px 16px;
  }
}

.audit-report-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 400px;
  margin: 0 auto;
}

/* Document Icon with Badge */
.report-icon-wrap {
  position: relative;
  width: 56px;
  height: 56px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #5f6368;
}

.report-icon-wrap svg {
  width: 48px;
  height: 48px;
  stroke: currentColor;
  fill: none;
}

/* Blue Info Badge */
.report-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 20px;
  height: 20px;
  background-color: #4285f4;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  box-shadow: 0 0 0 2px #ffffff;
  line-height: 1;
}

.audit-report-title {
  font-size: 16px;
  font-weight: 700;
  color: #202124;
  margin-bottom: 6px;
}

@media (min-width: 640px) {
  .audit-report-title {
    font-size: 18px;
  }
}

.audit-report-desc {
  font-size: 12px;
  color: #5f6368;
  margin-bottom: 24px;
  max-width: 360px;
  line-height: 1.6;
}

@media (min-width: 640px) {
  .audit-report-desc {
    font-size: 14px;
  }
}

/* Outline Scroll-Up Button */
.btn-outline-scan {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid #4285f4;
  color: #4285f4;
  background: transparent;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 12px;
  padding: 10px 24px;
  border-radius: 9999px;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.1s ease;
}

@media (min-width: 640px) {
  .btn-outline-scan {
    font-size: 14px;
  }
}

.btn-outline-scan:hover {
  background-color: rgba(66, 133, 244, 0.08);
  border-color: #185abc;
  color: #185abc;
}

.btn-outline-scan:active {
  transform: scale(0.95);
}

.btn-outline-scan svg {
  width: 16px;
  height: 16px;
}

/* =============================================
   FOCUS HIGHLIGHT ANIMATION (scroll-to card)
   ============================================= */
@keyframes focusGlow {
  0% {
    transform: scale(1);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  }
  30% {
    transform: scale(1.01);
    box-shadow: 0 0 0 6px rgba(66, 133, 244, 0.25);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  }
}

.scroll-highlight {
  animation: focusGlow 1.2s ease-out;
}

/* =============================================
   FULL AUDIT / SCAN PROGRESS / RESULTS
   ============================================= */
.audit-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #4285f4;
  margin: 0 0 8px;
}
.audit-form-note {
  font-size: 12px;
  color: #80868b;
  margin: 12px 0 0;
}
.audit-section-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 16px;
}
.audit-section-note {
  font-size: 12px;
  color: #80868b;
}
.report-status-pill,
.history-status {
  display: inline-flex;
  align-items: center;
  border: 1px solid #dadce0;
  border-radius: 999px;
  padding: 5px 11px;
  font-size: 11px;
  font-weight: 600;
  color: #3c4043;
  background: #f1f3f4;
  white-space: nowrap;
}
/* Good Candidate → green tint */
.history-status.status-good {
  background: #e6f4ea;
  border-color: #a8d5b5;
  color: #137333;
}
/* Needs Work / Not Ready → red/orange tint */
.history-status.status-fail {
  background: #fce8e6;
  border-color: #f5c6c2;
  color: #c5221f;
}
/* Borderline / Review → yellow tint */
.history-status.status-warn {
  background: #fef7e0;
  border-color: #f5d67a;
  color: #b06000;
}
.audit-history-section[hidden],
#historySection[hidden],
.scan-loading-card[hidden],
.report-card[hidden],
#reportCard[hidden],
#resultsView[hidden] {
  display: none !important;
}
.scan-loading-card {
  background: #fff;
  border: 1px solid #dadce0;
  border-radius: 14px;
  padding: 58px 24px 44px;
  text-align: center;
  box-shadow: 0 8px 30px rgba(60, 64, 67, 0.1);
  min-height: 430px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.scan-circle-wrapper {
  position: relative;
  width: 140px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.scan-circle-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 140px;
  height: 140px;
  transform: rotate(-90deg);
}
.scan-circle-track {
  fill: none;
  stroke: #e8eaed;
  stroke-width: 9;
}
.scan-circle-arc {
  fill: none;
  stroke: #4285f4;
  stroke-width: 9;
  stroke-linecap: round;
  /* circumference of r=52: 2*π*52 ≈ 326.73 */
  stroke-dasharray: 326.73;
  stroke-dashoffset: 326.73;
  transition: stroke-dashoffset 0.35s ease;
}
.scan-progress-number {
  position: relative;
  z-index: 2;
  font-size: 28px;
  font-weight: 800;
  color: #202124;
  line-height: 1;
  margin-bottom: 0;
}
.scan-loading-title {
  font-size: 22px;
  color: #202124;
  margin: 0 0 8px;
}
.scan-loading-text {
  font-size: 14px;
  color: #5f6368;
  margin: 0 0 20px;
}
.scan-progress-track {
  width: min(620px, 90%);
  height: 8px;
  border-radius: 999px;
  background: #e8eaed;
  overflow: hidden;
}
.scan-progress-bar {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: #4285f4;
  transition: width 0.25s ease;
}
.scan-stage-list {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  width: min(850px, 100%);
  margin-top: 24px;
  gap: 8px;
}
.scan-stage-list span {
  font-size: 10px;
  color: #9aa0a6;
  padding: 9px 5px;
  border-top: 2px solid #e8eaed;
}
.scan-stage-list span.is-active {
  color: #4285f4;
  border-color: #4285f4;
  font-weight: 700;
}
.scan-stage-list span.is-complete {
  color: #34a853;
  border-color: #34a853;
}
.result-summary-card {
  background: #fff;
  border: 1px solid #dadce0;
  border-radius: 14px;
  padding: 24px;
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 24px;
  align-items: center;
  box-shadow: 0 8px 30px rgba(60, 64, 67, 0.08);
}
.score-block {
  border-right: 1px solid #e8eaed;
  padding-right: 20px;
  text-align: center;
}
.score-value {
  font-size: 56px;
  font-weight: 800;
  line-height: 1;
  color: #202124;
}
.score-label {
  font-size: 11px;
  color: #5f6368;
  margin-top: 5px;
}
.summary-top {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.severity-pill {
  display: inline-flex;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 800;
  background: #fce8e6;
  color: #c5221f;
}
.scanned-url {
  font-size: 12px;
  color: #5f6368;
  word-break: break-all;
}
.summary-copy h3 {
  margin: 10px 0 6px;
  font-size: 22px;
  color: #202124;
}
.summary-copy p {
  margin: 0;
  color: #5f6368;
  font-size: 13px;
  line-height: 1.6;
}
.summary-stats {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.summary-stats span {
  font-size: 12px;
  color: #5f6368;
}
.summary-stats strong {
  color: #202124;
}
.summary-actions {
  align-self: start;
}
.audit-notice {
  margin: 16px 0;
  background: #e8f0fe;
  border: 1px solid #c6dafc;
  color: #174ea6;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 12px;
  line-height: 1.6;
}
.category-overview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 16px 0 36px;
}
.category-card {
  background: #fff;
  border: 1px solid #dadce0;
  border-radius: 12px;
  padding: 16px;
}
.category-card-top {
  display: flex;
  align-items: center;
  gap: 10px;
}
.category-card-top > strong {
  margin-left: auto;
  font-size: 20px;
  color: #c5221f;
}
.category-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: #f1f3f4;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  color: #4285f4;
}
.category-card h3 {
  margin: 0;
  color: #202124;
  font-size: 14px;
}
.category-card p {
  margin: 3px 0 0;
  color: #80868b;
  font-size: 11px;
}
.category-mini-stats {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.category-mini-stats span {
  font-size: 10px;
  color: #5f6368;
}
.finding-category {
  margin-top: 34px;
}
.finding-category-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 12px;
}
.finding-category-heading h3 {
  margin: 0;
  color: #202124;
  font-size: 20px;
}
.finding-category-heading > span {
  font-size: 11px;
  color: #80868b;
}
.finding-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.finding-card {
  background: #fff;
  border: 1px solid #dadce0;
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 2px 8px rgba(60, 64, 67, 0.04);
}
.finding-card.finding-fail {
  border-left: 4px solid #d93025;
}
.finding-card.finding-warn {
  border-left: 4px solid #f9ab00;
}
.finding-card.finding-info {
  border-left: 4px solid #4285f4;
}
.finding-card.finding-pass {
  border-left: 4px solid #34a853;
}
.finding-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.finding-head > div:first-child {
  min-width: 0;
}
.finding-code {
  display: inline-flex;
  font-size: 10px;
  font-weight: 800;
  color: #5f6368;
  background: #f1f3f4;
  border-radius: 5px;
  padding: 4px 6px;
  margin-bottom: 5px;
}
.finding-card h4 {
  margin: 0;
  color: #202124;
  font-size: 15px;
}
.finding-head-right {
  display: flex;
  gap: 6px;
  align-items: flex-start;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.finding-severity,
.finding-status {
  display: inline-flex;
  border-radius: 999px;
  padding: 5px 8px;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}
.severity-critical {
  background: #fce8e6;
  color: #c5221f;
}
.severity-high {
  background: #fef7e0;
  color: #b06000;
}
.severity-medium {
  background: #e8f0fe;
  color: #174ea6;
}
.severity-low {
  background: #f1f3f4;
  color: #5f6368;
}
.status-fail {
  background: #fce8e6;
  color: #c5221f;
}
.status-warn {
  background: #fef7e0;
  color: #b06000;
}
.status-info {
  background: #e8f0fe;
  color: #174ea6;
}
.status-pass {
  background: #e6f4ea;
  color: #137333;
}
.finding-detail {
  font-size: 13px;
  line-height: 1.6;
  color: #3c4043;
  margin: 14px 0;
}
.finding-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}
.finding-meta div,
.finding-fix {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 11px;
}
.finding-meta span,
.finding-fix > span {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #80868b;
  font-weight: 700;
  margin-bottom: 4px;
}
.finding-meta strong {
  display: block;
  font-size: 11px;
  color: #3c4043;
  font-weight: 600;
  word-break: break-word;
}
.finding-fix {
  margin-top: 10px;
  background: #f8fbff;
}
.finding-fix p {
  font-size: 12px;
  line-height: 1.6;
  color: #3c4043;
  margin: 0;
}
.history-url {
  max-width: 240px;
  word-break: break-all;
}
.history-view {
  border: 1px solid #dadce0;
  background: #fff;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
.history-view:hover {
  background: #f8f9fa;
}
@media (max-width: 900px) {
  .category-overview {
    grid-template-columns: repeat(2, 1fr);
  }
  .result-summary-card {
    grid-template-columns: 1fr;
  }
  .score-block {
    border-right: 0;
    border-bottom: 1px solid #e8eaed;
    padding: 0 0 18px;
  }
  .summary-actions {
    justify-self: start;
  }
  .scan-stage-list {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 640px) {
  .audit-section-title-row {
    align-items: flex-start;
    flex-direction: column;
  }
  .category-overview {
    grid-template-columns: 1fr;
  }
  .scan-loading-card {
    padding: 40px 14px;
  }
  .scan-loading-title {
    font-size: 19px;
  }
  .scan-circle-wrapper {
    width: 120px;
    height: 120px;
    margin-bottom: 16px;
  }
  .scan-circle-svg {
    width: 120px;
    height: 120px;
  }
  .scan-progress-number {
    font-size: 22px;
  }
  .scan-stage-list {
    grid-template-columns: repeat(2, 1fr);
  }
  .finding-head {
    flex-direction: column;
  }
  .finding-head-right {
    justify-content: flex-start;
  }
  .finding-meta {
    grid-template-columns: 1fr;
  }
  .summary-copy h3 {
    font-size: 19px;
  }
  .score-value {
    font-size: 48px;
  }
  .url-input-container {
    padding-left: 12px;
  }
  .btn-scan-pill {
    min-width: 100px;
    padding: 0 15px;
  }
}

/* =====================================================================
   REPORT DESIGN V2
   Keeps the same visual language as the existing Rejected by AdSense site:
   white cards, Google-inspired blue accents, light gray canvas, modest
   shadows, restrained typography and no dashboard-heavy visual treatment.
   ===================================================================== */

.results-view {
  width: 100%;
}

.report-content {
  width: 100%;
}

.report-summary-card {
  background: #ffffff;
  border: 1px solid #dadce0;
  border-radius: 10px;
  box-shadow: 0 3px 18px rgba(60, 64, 67, 0.07);
  overflow: hidden;
}

.report-summary-main {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  align-items: center;
  gap: 28px;
  padding: 28px;
}

.score-ring {
  position: relative;
  width: 132px;
  height: 132px;
  margin: 0 auto;
}

.score-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.score-ring-track,
.score-ring-value {
  fill: none;
  stroke-width: 8;
}

.score-ring-track {
  stroke: #e8eaed;
}

.score-ring-value {
  stroke: #4285f4;
  stroke-linecap: round;
  stroke-dasharray: var(--score-circumference);
  stroke-dashoffset: var(--score-dash);
  transition: stroke-dashoffset 0.6s ease;
}

.score-ring.risk-high .score-ring-value {
  stroke: #d93025;
}

.score-ring.risk-moderate .score-ring-value {
  stroke: #f9ab00;
}

.score-ring.risk-some .score-ring-value {
  stroke: #4285f4;
}

.score-ring.risk-good .score-ring-value {
  stroke: #34a853;
}

.score-ring-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.score-ring-center strong {
  color: #202124;
  font-size: 36px;
  line-height: 1;
  letter-spacing: -0.03em;
}

.score-ring-center span {
  margin-top: 5px;
  color: #80868b;
  font-size: 11px;
  font-weight: 600;
}

.report-summary-copy {
  min-width: 0;
}

.summary-label-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.report-summary-copy h3 {
  margin: 0 0 8px;
  color: #202124;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.report-summary-copy p {
  margin: 0;
  max-width: 720px;
  color: #5f6368;
  font-size: 13px;
  line-height: 1.7;
}

.report-summary-copy p strong {
  color: #202124;
}

.summary-site {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 100%;
  margin-top: 14px;
  padding: 7px 10px;
  border: 1px solid #e8eaed;
  border-radius: 999px;
  background: #f8f9fa;
  color: #3c4043;
  font-size: 11px;
  font-weight: 600;
}

.summary-site span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34a853;
  flex-shrink: 0;
}

.severity-pill.risk-high {
  color: #c5221f;
  background: #fce8e6;
}

.severity-pill.risk-moderate {
  color: #b06000;
  background: #fef7e0;
}

.severity-pill.risk-some {
  color: #174ea6;
  background: #e8f0fe;
}

.severity-pill.risk-good {
  color: #137333;
  background: #e6f4ea;
}

.summary-stats {
  display: none;
}

.summary-stat-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid #e8eaed;
  background: #fafafa;
}

.summary-stat {
  min-width: 0;
  padding: 15px 12px;
  text-align: center;
  border-right: 1px solid #e8eaed;
}

.summary-stat:last-child {
  border-right: 0;
}

.summary-stat strong {
  display: block;
  color: #202124;
  font-size: 19px;
  line-height: 1.1;
}

.summary-stat span {
  display: block;
  margin-top: 4px;
  color: #80868b;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.report-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin: 34px 0 14px;
}

.report-toolbar h3,
.category-overview-heading h3,
.report-category-heading-wrap h3 {
  margin: 0;
  color: #202124;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.report-toolbar-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* =============================================
   CRAWL STATS GRID
   ============================================= */
.crawl-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: #e8eaed;
  border: 1px solid #e8eaed;
  border-radius: 10px;
  overflow: hidden;
  margin: 20px 0;
  box-shadow: 0 1px 4px rgba(60, 64, 67, 0.04);
}

.crawl-stat-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  background: #ffffff;
}

.crawl-stat-row:hover {
  background: #f8f9fa;
}

.crawl-stat-label {
  font-size: 11px;
  font-weight: 600;
  color: #80868b;
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.3;
}

.crawl-stat-value {
  font-size: 20px;
  font-weight: 800;
  color: #202124;
  line-height: 1.1;
}

/* Flag non-zero values for certain fields */
.crawl-stat-row:has(.crawl-stat-label:empty) .crawl-stat-value {
  color: #202124;
}

@media (max-width: 720px) {
  .crawl-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 420px) {
  .crawl-stats-grid {
    grid-template-columns: 1fr;
  }
}

/* =============================================
   EXPORT BUTTONS (CSV & PDF)
   ============================================= */
.btn-export {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 16px;
  border-radius: 8px;
  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition:
    background-color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.1s ease;
  white-space: nowrap;
}

.btn-export svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.btn-export:active {
  transform: scale(0.97);
}

/* CSV button — outlined style */
.btn-export-csv {
  background: #ffffff;
  color: #1a8754;
  border: 1.5px solid #1a8754;
}

.btn-export-csv:hover {
  background: #e8f5e9;
  box-shadow: 0 2px 8px rgba(26, 135, 84, 0.15);
}

/* PDF button — filled style */
.btn-export-pdf {
  background: #4285f4;
  color: #ffffff;
  border: 1.5px solid #4285f4;
}

.btn-export-pdf:hover {
  background: #185abc;
  border-color: #185abc;
  box-shadow: 0 2px 8px rgba(66, 133, 244, 0.3);
}

/* JSON button — outlined purple style */
.btn-export-json {
  background: #ffffff;
  color: #7b4fcc;
  border: 1.5px solid #7b4fcc;
}

.btn-export-json:hover {
  background: #f3eeff;
  box-shadow: 0 2px 8px rgba(123, 79, 204, 0.15);
}

@media (max-width: 480px) {
  .btn-export {
    font-size: 12px;
    padding: 0 12px;
    height: 34px;
  }
}

/* ─── Blocker URL Fix Queue (matches top-issues-card design) ──── */

.blocker-queue-card {
  overflow: hidden;
  margin-bottom: 34px;
  border: 1px solid #dadce0;
  border-radius: 9px;
  background: #ffffff;
  box-shadow: 0 2px 12px rgba(60, 64, 67, 0.04);
  padding: 22px;
}

.blocker-queue-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 0 16px;
  border-bottom: 1px solid #e8eaed;
  background: #ffffff;
}

.blocker-queue-head strong {
  display: block;
  color: #202124;
  font-size: 13px;
  font-weight: 700;
}

.blocker-queue-head span {
  display: block;
  margin-top: 2px;
  color: #80868b;
  font-size: 11px;
}

.blocker-queue-count {
  flex-shrink: 0;
  background: #fce8e6;
  color: #c5221f;
  font-size: 9px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 5px;
  white-space: nowrap;
}

.blocker-queue-list {
  display: flex;
  flex-direction: column;
}

.blocker-row {
  display: grid;
  grid-template-columns: 28px auto minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 13px 18px;
  border-bottom: 1px solid #f1f3f4;
  background: #ffffff;
  transition: background-color 0.15s ease;
}

.blocker-row:last-child {
  border-bottom: 0;
}

.blocker-row:hover {
  background: #f8f9fa;
}

.blocker-num {
  font-size: 10px;
  font-weight: 800;
  color: #80868b;
  padding-top: 4px;
  text-align: center;
}

.blocker-sev {
  min-width: 55px;
  padding: 5px 7px;
  border-radius: 5px;
  text-align: center;
  font-size: 9px;
  font-weight: 800;
}

.blocker-sev.severity-critical {
  color: #c5221f;
  background: #fce8e6;
}

.blocker-sev.severity-high {
  color: #b06000;
  background: #fef7e0;
}

.blocker-sev.severity-medium {
  color: #174ea6;
  background: #e8f0fe;
}

.blocker-sev.severity-low {
  color: #5f6368;
  background: #f1f3f4;
}

.blocker-check strong {
  display: block;
  overflow: hidden;
  color: #202124;
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.blocker-check small {
  display: block;
  margin-top: 3px;
  color: #80868b;
  font-size: 10px;
}

.blocker-urls {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.blocker-url {
  font-size: 11px;
  color: #4285f4;
  text-decoration: none;
  word-break: break-all;
  line-height: 1.4;
}

.blocker-url:hover {
  text-decoration: underline;
}

.blocker-url-sitewide {
  font-size: 11px;
  color: #80868b;
  font-style: italic;
}

.blocker-fix {
  font-size: 11px;
  color: #3c4043;
  line-height: 1.5;
}

@media (max-width: 700px) {
  .blocker-row {
    grid-template-columns: 24px auto minmax(0, 1fr);
    grid-template-rows: auto auto auto;
  }
  .blocker-urls,
  .blocker-fix {
    grid-column: 3;
  }
}

.btn-small-outline {
  height: 34px;
  padding: 0 13px;
  border: 1px solid #dadce0;
  border-radius: 999px;
  background: #ffffff;
  color: #5f6368;
  font-family: "Inter", sans-serif;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

.btn-small-outline:hover {
  border-color: #4285f4;
  color: #174ea6;
  background: #f8fbff;
}

.top-issues-card {
  overflow: hidden;
  margin-bottom: 34px;
  border: 1px solid #dadce0;
  border-radius: 9px;
  background: #ffffff;
  box-shadow: 0 2px 12px rgba(60, 64, 67, 0.04);
}

.top-issues-heading {
  padding: 16px 18px;
  border-bottom: 1px solid #e8eaed;
  background: #ffffff;
}

.top-issues-heading strong {
  display: block;
  color: #202124;
  font-size: 13px;
  font-weight: 700;
}

.top-issues-heading > span {
  display: block;
  margin-top: 2px;
  color: #80868b;
  font-size: 11px;
}

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

.top-issue-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 13px 18px;
  border: 0;
  border-bottom: 1px solid #f1f3f4;
  background: #ffffff;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.top-issue-row:last-child {
  border-bottom: 0;
}

.top-issue-row:hover {
  background: #f8f9fa;
}

.top-issue-severity {
  min-width: 55px;
  padding: 5px 7px;
  border-radius: 5px;
  text-align: center;
  font-size: 9px;
  font-weight: 800;
}

.top-issue-severity.severity-critical {
  color: #c5221f;
  background: #fce8e6;
}

.top-issue-severity.severity-high {
  color: #b06000;
  background: #fef7e0;
}

.top-issue-severity.severity-medium {
  color: #174ea6;
  background: #e8f0fe;
}

.top-issue-severity.severity-low {
  color: #5f6368;
  background: #f1f3f4;
}

.top-issue-text {
  min-width: 0;
}

.top-issue-text strong,
.top-issue-text small {
  display: block;
}

.top-issue-text strong {
  overflow: hidden;
  color: #202124;
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.top-issue-text small {
  margin-top: 3px;
  color: #80868b;
  font-size: 10px;
}

.top-issues-empty {
  padding: 18px;
  color: #5f6368;
  font-size: 12px;
}

.category-overview-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin: 4px 0 14px;
}

.category-overview-heading > span {
  color: #80868b;
  font-size: 11px;
}

.report-category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 40px;
}

.report-category-card {
  position: relative;
  min-width: 0;
  padding: 16px;
  border: 1px solid #dadce0;
  border-radius: 10px;
  background: #ffffff;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(60, 64, 67, 0.04);
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.15s ease;
  border-left-width: 3px;
  border-left-color: #dadce0;
}

.report-category-card:hover {
  box-shadow: 0 4px 14px rgba(60, 64, 67, 0.08);
  transform: translateY(-1px);
}

/* Left border accent by status */
.report-category-card.category-risk {
  border-left-color: #d93025;
  background: #fffafa;
}
.report-category-card.category-warning {
  border-left-color: #f9ab00;
  background: #fffdf5;
}
.report-category-card.category-good {
  border-left-color: #34a853;
  background: #f8fdf9;
}

.report-category-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.report-category-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: #e8f0fe;
  color: #1a73e8;
  font-size: 12px;
  font-weight: 800;
}

/* Icon tint by status */
.report-category-card.category-risk .report-category-icon {
  background: #fce8e6;
  color: #c5221f;
}
.report-category-card.category-warning .report-category-icon {
  background: #fef7e0;
  color: #b06000;
}
.report-category-card.category-good .report-category-icon {
  background: #e6f4ea;
  color: #137333;
}

.report-category-count {
  color: #80868b;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.report-category-card h4 {
  margin: 0 0 10px;
  color: #202124;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
}

.report-category-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  padding-top: 10px;
  border-top: 1px solid #f1f3f4;
}

.category-attention {
  font-weight: 700;
  color: #c5221f;
}

.category-good .category-attention {
  color: #137333;
}

.category-warning .category-attention {
  color: #b06000;
}

/* "passed" label */
.report-category-foot > span:last-child {
  color: #80868b;
}

/* 0 need review → green */
.category-attention-zero {
  color: #137333 !important;
}

.report-category-heading-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 14px 0;
}

.report-category-heading-wrap p {
  max-width: 740px;
  margin: 7px 0 0;
  color: #5f6368;
  font-size: 12px;
  line-height: 1.6;
}

.full-report-count {
  flex-shrink: 0;
  padding-bottom: 2px;
  color: #80868b;
  font-size: 10px;
  font-weight: 700;
}

.report-category-section {
  scroll-margin-top: 24px;
  margin-bottom: 34px;
}

.report-category-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.report-category-heading h3 {
  margin: 0;
  color: #202124;
  font-size: 18px;
  font-weight: 700;
}

.report-category-heading > span {
  padding-bottom: 2px;
  color: #80868b;
  font-size: 10px;
  font-weight: 700;
}

.report-finding-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.report-finding-card {
  position: relative;
  overflow: hidden;
  border: 1px solid #dadce0;
  border-radius: 8px;
  background: #ffffff;
}

.report-finding-card.finding-state-fail {
  border-left: 3px solid #d93025;
}

.report-finding-card.finding-state-warn {
  border-left: 3px solid #f9ab00;
}

.report-finding-card.finding-state-info {
  border-left: 3px solid #4285f4;
}

.report-finding-card.finding-state-pass {
  border-left: 3px solid #34a853;
}

.finding-toggle {
  display: grid;
  grid-template-columns: 9px minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
  width: 100%;
  min-height: 65px;
  padding: 11px 13px 11px 12px;
  border: 0;
  background: #ffffff;
  text-align: left;
  cursor: pointer;
}

.finding-toggle:hover {
  background: #fafafa;
}

.finding-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34a853;
}

.finding-state-fail .finding-status-dot {
  background: #d93025;
}

.finding-state-warn .finding-status-dot {
  background: #f9ab00;
}

.finding-state-info .finding-status-dot {
  background: #4285f4;
}

.finding-title-block {
  min-width: 0;
}

.finding-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.finding-code {
  flex-shrink: 0;
  padding: 3px 5px;
  border-radius: 4px;
  background: #f1f3f4;
  color: #5f6368;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.finding-title {
  overflow: hidden;
  color: #202124;
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.finding-subline {
  display: block;
  margin-top: 4px;
  color: #80868b;
  font-size: 10px;
}

.finding-right-meta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  flex-shrink: 0;
}

.finding-severity {
  padding: 4px 7px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 800;
}

.finding-severity.severity-critical {
  color: #c5221f;
  background: #fce8e6;
}

.finding-severity.severity-high {
  color: #b06000;
  background: #fef7e0;
}

.finding-severity.severity-medium {
  color: #174ea6;
  background: #e8f0fe;
}

.finding-severity.severity-low {
  color: #5f6368;
  background: #f1f3f4;
}

.finding-severity.severity-passed {
  color: #137333;
  background: #e6f4ea;
}

.finding-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: #80868b;
  transition: transform 0.15s ease;
}

.finding-chevron svg {
  display: block;
  width: 16px;
  height: 16px;
}

.report-finding-card.is-open .finding-chevron {
  transform: rotate(180deg);
}

.finding-details {
  padding: 0 13px 14px 35px;
  border-top: 1px solid #f1f3f4;
  background: #ffffff;
}

.finding-detail-copy {
  padding: 13px 0 11px;
}

.finding-detail-copy strong {
  display: block;
  margin-bottom: 4px;
  color: #202124;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.finding-detail-copy p {
  margin: 0;
  color: #3c4043;
  font-size: 12px;
  line-height: 1.65;
}

.finding-evidence-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
}

.finding-evidence-grid > div {
  padding: 10px;
  border: 1px solid #e8eaed;
  border-radius: 7px;
  background: #f8f9fa;
}

.finding-evidence-grid span {
  display: block;
  margin-bottom: 4px;
  color: #80868b;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.finding-evidence-grid strong {
  display: block;
  color: #3c4043;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.5;
  word-break: break-word;
}

.finding-action {
  display: grid;
  grid-template-columns: 25px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  margin-top: 8px;
  padding: 10px;
  border-radius: 7px;
}

.finding-action-pass {
  background: #f7fbf8;
}

.finding-action-info {
  background: #f8fbff;
}

.finding-action-fix {
  background: #fffaf2;
}

.action-check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: #e6f4ea;
  color: #137333;
  font-size: 11px;
  font-weight: 900;
}

.finding-action-info .action-check {
  background: #e8f0fe;
  color: #174ea6;
}

.finding-action-fix .action-check {
  background: #fef7e0;
  color: #b06000;
}

.finding-action strong,
.finding-action span:not(.action-check) {
  display: block;
}

.finding-action strong {
  color: #202124;
  font-size: 10px;
  font-weight: 800;
}

.finding-action span:not(.action-check) {
  margin-top: 3px;
  color: #5f6368;
  font-size: 11px;
  line-height: 1.55;
}

.report-finding-card.finding-state-pass .finding-toggle {
  min-height: 57px;
}

.report-finding-card.finding-state-pass .finding-title {
  color: #3c4043;
}

.report-finding-card.finding-state-pass .finding-severity {
  opacity: 1;
}

.report-notice {
  margin: 16px 0 0;
  padding: 11px 13px;
  border: 1px solid #d2e3fc;
  border-radius: 8px;
  background: #f8fbff;
  color: #3c4043;
  font-size: 11px;
  line-height: 1.6;
}

.status-failed {
  color: #c5221f !important;
  border-color: #f6c7c3 !important;
  background: #fce8e6 !important;
}

@media (max-width: 900px) {
  .report-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .report-summary-main {
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 20px;
    padding: 22px;
  }

  .score-ring {
    width: 112px;
    height: 112px;
  }

  .score-ring-center strong {
    font-size: 31px;
  }
}

@media (max-width: 640px) {
  .report-summary-main {
    grid-template-columns: 1fr;
    padding: 20px;
    text-align: center;
  }

  .summary-label-row,
  .summary-site {
    justify-content: center;
  }

  .report-summary-copy p {
    margin: 0 auto;
  }

  .summary-stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .summary-stat:nth-child(2),
  .summary-stat:nth-child(4) {
    border-right: 0;
  }

  .summary-stat:nth-child(3),
  .summary-stat:nth-child(4),
  .summary-stat:nth-child(5) {
    border-top: 1px solid #e8eaed;
  }

  .summary-stat:last-child {
    grid-column: 1 / -1;
  }

  .report-toolbar,
  .category-overview-heading,
  .report-category-heading,
  .report-category-heading-wrap {
    align-items: flex-start;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .report-toolbar {
    gap: 10px;
  }

  .report-toolbar-actions {
    justify-content: flex-start;
  }

  .report-category-grid {
    grid-template-columns: 1fr;
  }

  .finding-title-row {
    align-items: flex-start;
  }

  .finding-title {
    white-space: normal;
  }

  .finding-right-meta {
    align-self: start;
  }

  .finding-details {
    padding-left: 12px;
  }

  .finding-evidence-grid {
    grid-template-columns: 1fr;
  }

  .finding-toggle {
    grid-template-columns: 8px minmax(0, 1fr);
  }

  .finding-right-meta {
    grid-column: 2;
  }
}

/* =============================================
   AUDIT FILTER BAR — matches site severity badge style
   ============================================= */
.audit-filter-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin: 0 0 16px;
}

.audit-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 28px;
  padding: 0 10px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  background: #f1f3f4;
  color: #5f6368;
  font-family: "Inter", sans-serif;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
  letter-spacing: 0.01em;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease,
    box-shadow 0.15s ease;
  white-space: nowrap;
}

/* All — neutral */
.audit-filter-btn[data-filter="all"] {
  background: #f1f3f4;
  color: #5f6368;
}
.audit-filter-btn[data-filter="all"]:hover,
.audit-filter-btn[data-filter="all"].is-active {
  background: #202124;
  color: #ffffff;
  border-color: #202124;
}

/* Critical */
.audit-filter-btn.filter-critical {
  background: #fce8e6;
  color: #c5221f;
}
.audit-filter-btn.filter-critical:hover,
.audit-filter-btn.filter-critical.is-active {
  background: #d93025;
  color: #ffffff;
  border-color: #d93025;
  box-shadow: 0 2px 6px rgba(217, 48, 37, 0.25);
}

/* High */
.audit-filter-btn.filter-high {
  background: #fef7e0;
  color: #b06000;
}
.audit-filter-btn.filter-high:hover,
.audit-filter-btn.filter-high.is-active {
  background: #f9ab00;
  color: #202124;
  border-color: #f9ab00;
  box-shadow: 0 2px 6px rgba(249, 171, 0, 0.28);
}

/* Medium */
.audit-filter-btn.filter-medium {
  background: #e8f0fe;
  color: #174ea6;
}
.audit-filter-btn.filter-medium:hover,
.audit-filter-btn.filter-medium.is-active {
  background: #4285f4;
  color: #ffffff;
  border-color: #4285f4;
  box-shadow: 0 2px 6px rgba(66, 133, 244, 0.28);
}

/* Low */
.audit-filter-btn.filter-low {
  background: #f1f3f4;
  color: #5f6368;
}
.audit-filter-btn.filter-low:hover,
.audit-filter-btn.filter-low.is-active {
  background: #5f6368;
  color: #ffffff;
  border-color: #5f6368;
}

/* Passed */
.audit-filter-btn.filter-passed {
  background: #e6f4ea;
  color: #137333;
}
.audit-filter-btn.filter-passed:hover,
.audit-filter-btn.filter-passed.is-active {
  background: #34a853;
  color: #ffffff;
  border-color: #34a853;
  box-shadow: 0 2px 6px rgba(52, 168, 83, 0.25);
}

/* Count bubble inside each filter button */
.audit-filter-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.08);
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
}

.audit-filter-btn.is-active .audit-filter-count {
  background: rgba(255, 255, 255, 0.25);
}

@media (max-width: 600px) {
  .audit-filter-btn {
    height: 26px;
    padding: 0 8px;
    font-size: 9px;
  }
}

/* Evidence-driven audit additions */
.audit-connection-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 18px 0 10px;
  padding: 14px 16px;
  border: 1px solid #dadce0;
  border-radius: 8px;
  background: #fafafa;
}
.audit-connection-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.audit-connection-copy strong {
  font-size: 13px;
  color: #202124;
}
.audit-connection-copy span {
  font-size: 12px;
  color: #5f6368;
  line-height: 1.5;
}
.external-evidence-card {
  margin: 24px 0;
  border: 1px solid #dadce0;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(60, 64, 67, 0.06);
  padding: 22px;
}
.external-evidence-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 18px;
}
.external-evidence-head h3 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 700;
  color: #202124;
}
.external-evidence-head p {
  margin: 0;
  color: #5f6368;
  font-size: 13px;
  line-height: 1.6;
  max-width: 760px;
}
.evidence-time {
  font-size: 11px;
  color: #80868b;
  white-space: nowrap;
}
.external-evidence-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}
.external-evidence-item {
  min-width: 0;
  border: 1px solid #e8eaed;
  border-radius: 8px;
  padding: 14px;
  background: #f8f9fa;
}
.external-evidence-item > span {
  display: block;
  font-size: 11px;
  color: #80868b;
  margin-bottom: 7px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.external-evidence-item > strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #202124;
  line-height: 1.3;
  margin-bottom: 6px;
}
.external-evidence-item > small {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 11px;
  line-height: 1.55;
  color: #5f6368;
  word-break: break-word;
  max-height: 5.1em; /* fallback for non-webkit */
}
/* Status color coding for external evidence cards */
.external-evidence-item.status-unavailable {
  border-color: #fce8e6;
  background: #fff8f8;
}
.external-evidence-item.status-unavailable > strong {
  color: #c5221f;
}
.external-evidence-item.status-warning {
  border-color: #feefc3;
  background: #fffdf0;
}
.external-evidence-item.status-warning > strong {
  color: #b06000;
}
.external-evidence-item.status-ok {
  border-color: #ceead6;
  background: #f6fef8;
}
.external-evidence-item.status-ok > strong {
  color: #137333;
}
.external-evidence-item.status-info {
  border-color: #d2e3fc;
  background: #f8fbff;
}
.external-evidence-item.status-info > strong {
  color: #1a73e8;
}
/* Status dot indicator */
.external-evidence-item .ev-status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-right: 5px;
  vertical-align: middle;
  background: #dadce0;
}
.external-evidence-item.status-unavailable .ev-status-dot {
  background: #ea4335;
}
.external-evidence-item.status-warning .ev-status-dot {
  background: #fbbc04;
}
.external-evidence-item.status-ok .ev-status-dot {
  background: #34a853;
}
.external-evidence-item.status-info .ev-status-dot {
  background: #4285f4;
}
@media (max-width: 1100px) {
  .external-evidence-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 720px) {
  .audit-connection-row {
    align-items: flex-start;
    flex-direction: column;
  }
  .external-evidence-head {
    flex-direction: column;
  }
  .external-evidence-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 500px) {
  .external-evidence-grid {
    grid-template-columns: 1fr;
  }
  .external-evidence-card {
    padding: 16px;
  }
}

/* ─── AI Content Detection Card ─────────────────────────────────────────────── */

.ai-detection-card {
  background: var(--surface, #fff);
  border: 1px solid var(--border, #e8eaed);
  border-radius: 14px;
  overflow: hidden;
  margin-top: 16px;
}

.ai-detection-head {
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--border, #e8eaed);
}

.ai-detection-title-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.ai-detection-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--accent, #4f46e5);
}

.ai-detection-title-row > div {
  flex: 1;
}

.ai-detection-title-row h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary, #202124);
  margin: 0 0 4px;
}

.ai-detection-title-row p {
  font-size: 13px;
  color: var(--text-secondary, #5f6368);
  margin: 0;
  line-height: 1.5;
}

.ai-detection-body {
  padding: 20px 24px;
}

.ai-score-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}

/* Dial */
.ai-score-dial {
  position: relative;
  width: 80px;
  height: 80px;
  flex-shrink: 0;
}

.ai-score-dial svg {
  width: 100%;
  height: 100%;
}

.ai-dial-track {
  stroke: var(--border, #e8eaed);
}

.ai-dial-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.ai-dial-center strong {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary, #202124);
  line-height: 1;
}

.ai-dial-center span {
  font-size: 10px;
  color: var(--text-secondary, #5f6368);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ai-score-label {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ai-score-label strong {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary, #202124);
}

.ai-score-label span {
  font-size: 13px;
  color: var(--text-secondary, #5f6368);
}

.ai-score-unavailable {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--surface-alt, #f8f9fa);
  border-radius: 8px;
  font-size: 14px;
  color: var(--text-secondary, #5f6368);
  flex: 1;
}

/* Per-page breakdown */
.ai-detection-pages {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid var(--border, #e8eaed);
  padding-top: 16px;
}

.ai-page-row {
  display: grid;
  grid-template-columns: 1fr 120px 46px;
  align-items: center;
  gap: 10px;
}

.ai-page-row .ai-page-verdict {
  grid-column: 1 / -1;
  font-size: 12px;
  color: var(--text-secondary, #5f6368);
  padding-left: 2px;
  line-height: 1.4;
}

.ai-page-url {
  font-size: 12px;
  color: var(--text-secondary, #5f6368);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ai-bar-wrap {
  height: 6px;
  background: var(--border, #e8eaed);
  border-radius: 99px;
  overflow: hidden;
}

.ai-bar {
  height: 100%;
  border-radius: 99px;
  transition: width 0.5s ease;
}

.ai-bar-low {
  background: #22c55e;
}
.ai-bar-medium {
  background: #f59e0b;
}
.ai-bar-high {
  background: #ef4444;
}

.ai-page-pct {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary, #202124);
  text-align: right;
}

/* Responsive */
@media (max-width: 600px) {
  .ai-score-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .ai-page-row {
    grid-template-columns: 1fr 80px 40px;
  }

  .ai-detection-body {
    padding: 16px;
  }

  .ai-detection-head {
    padding: 16px;
  }
}

/* ─── Screenshot & Visual Audit Card ────────────────────────────────────────── */

.visual-audit-card {
  margin: 24px 0;
  border: 1px solid #dadce0;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(60, 64, 67, 0.06);
  overflow: hidden;
  padding: 22px;
}

.visual-audit-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  padding: 0 0 18px;
  border-bottom: 1px solid #f1f3f4;
}

.visual-audit-head h3 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 700;
  color: #202124;
}

.visual-audit-head p {
  margin: 0;
  color: #5f6368;
  font-size: 13px;
  line-height: 1.6;
  max-width: 760px;
}

.visual-audit-time {
  font-size: 11px;
  color: #80868b;
  white-space: nowrap;
  flex-shrink: 0;
}

.visual-audit-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 22px;
  background: #f8f9fa;
  border-bottom: 1px solid #f1f3f4;
}

.visual-flag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid transparent;
}

.visual-flag.flag-ok {
  background: #f6fef8;
  border-color: #ceead6;
  color: #137333;
}

.visual-flag.flag-warn {
  background: #fffdf0;
  border-color: #feefc3;
  color: #b06000;
}

.visual-flag.flag-fail {
  background: #fff8f8;
  border-color: #fce8e6;
  color: #c5221f;
}

.visual-flag.flag-info {
  background: #f8fbff;
  border-color: #d2e3fc;
  color: #1a73e8;
}

.visual-flag .flag-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.8;
}

.visual-audit-screenshots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.visual-screenshot-panel {
  padding: 20px 22px;
  border-right: 1px solid #f1f3f4;
}

.visual-screenshot-panel:last-child {
  border-right: none;
}

.visual-screenshot-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.visual-screenshot-label strong {
  font-size: 13px;
  font-weight: 700;
  color: #202124;
}

.visual-screenshot-label span {
  font-size: 11px;
  color: #80868b;
  background: #f1f3f4;
  padding: 2px 8px;
  border-radius: 999px;
}

.visual-screenshot-img-wrap {
  position: relative;
  border: 1px solid #e8eaed;
  border-radius: 8px;
  overflow: hidden;
  background: #f8f9fa;
  cursor: zoom-in;
  transition: box-shadow 0.15s;
}

.visual-screenshot-img-wrap:hover {
  box-shadow: 0 4px 18px rgba(60, 64, 67, 0.14);
}

.visual-screenshot-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 340px;
  object-fit: cover;
  object-position: top;
}

.visual-screenshot-img.is-blank {
  filter: contrast(0.3) brightness(1.7);
  border: 2px dashed #ea4335;
}

.visual-screenshot-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  pointer-events: none;
}

.visual-screenshot-badge.badge-ok {
  background: #34a853;
  color: #fff;
}

.visual-screenshot-badge.badge-warn {
  background: #fbbc04;
  color: #202124;
}

.visual-screenshot-badge.badge-fail {
  background: #ea4335;
  color: #fff;
}

.visual-screenshot-caption {
  margin-top: 8px;
  font-size: 11px;
  color: #5f6368;
  line-height: 1.5;
}

.visual-atf-panel {
  border-top: 1px solid #f1f3f4;
  padding: 20px 22px;
}

.visual-atf-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.visual-atf-label strong {
  font-size: 13px;
  font-weight: 700;
  color: #202124;
}

.visual-atf-img-wrap {
  position: relative;
  border: 1px solid #e8eaed;
  border-radius: 8px;
  overflow: hidden;
  background: #f8f9fa;
}

.visual-atf-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: cover;
  object-position: top;
}

.visual-atf-fold-line {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #ea4335 0%, #fbbc04 50%, #34a853 100%);
  opacity: 0.7;
}

.visual-atf-ad-flag {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-size: 12px;
  font-weight: 600;
  color: #b06000;
  background: #fffdf0;
  border: 1px solid #feefc3;
  border-radius: 6px;
  padding: 8px 12px;
}

.visual-atf-ad-flag svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.visual-audit-unavailable {
  padding: 32px 22px;
  text-align: center;
  color: #80868b;
}

.visual-audit-unavailable svg {
  width: 40px;
  height: 40px;
  margin: 0 auto 12px;
  display: block;
  stroke: #bdc1c6;
}

.visual-audit-unavailable strong {
  display: block;
  font-size: 14px;
  color: #5f6368;
  margin-bottom: 6px;
}

.visual-audit-unavailable p {
  font-size: 12px;
  margin: 0;
  line-height: 1.6;
}

/* lightbox */
.visual-lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  animation: vlb-in 0.15s ease;
}
@keyframes vlb-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.visual-lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 6px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
  object-fit: contain;
  display: block;
}
.visual-lightbox-close {
  position: absolute;
  top: 18px;
  right: 22px;
  background: rgba(255, 255, 255, 0.14);
  border: none;
  color: #fff;
  font-size: 26px;
  line-height: 1;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* loading shimmer inside panel */
.visual-screenshot-shimmer {
  width: 100%;
  height: 180px;
  background: linear-gradient(90deg, #f1f3f4 25%, #e8eaed 50%, #f1f3f4 75%);
  background-size: 200% 100%;
  animation: shimmer 1.3s infinite;
  border-radius: 8px;
}
@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

@media (max-width: 760px) {
  .visual-audit-screenshots {
    grid-template-columns: 1fr;
  }
  .visual-screenshot-panel {
    border-right: none;
    border-bottom: 1px solid #f1f3f4;
  }
  .visual-screenshot-panel:last-child {
    border-bottom: none;
  }
}

@media (max-width: 500px) {
  .visual-audit-head {
    flex-direction: column;
  }
  .visual-audit-flags {
    padding: 12px 16px;
  }
  .visual-screenshot-panel {
    padding: 16px;
  }
  .visual-atf-panel {
    padding: 16px;
  }
}

/* ── Plan-gating: locked category cards & sections ────────────────────── */

/* ── Locked overview card (links to pricing) ───────────────────────────── */

.report-category-card--locked {
  display: block;
  text-decoration: none;
  border-style: dashed;
  border-color: #dadce0;
  border-left-color: #dadce0;
  background: #f8f9fa;
  color: inherit;
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.15s ease;
}

.report-category-card--locked:hover {
  border-color: #1a73e8;
  border-left-color: #1a73e8;
  box-shadow: 0 4px 14px rgba(26, 115, 232, 0.12);
  transform: translateY(-1px);
}

.report-category-card--locked .report-category-icon--locked {
  background: #f1f3f4;
  color: #80868b;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.report-category-card--locked:hover .report-category-icon--locked {
  background: #e8f0fe;
  color: #1a73e8;
}

.report-category-card--locked h4 {
  color: #80868b;
}

.report-category-card--locked:hover h4 {
  color: #1a73e8;
}

.report-category-card--locked .report-category-count {
  color: #1a73e8;
  font-weight: 700;
}

/* ── Locked category section in findings list ──────────────────────────── */

.report-category-section--locked .report-category-heading h3 {
  color: #80868b;
}

.category-locked-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  background: #e8f0fe;
  color: #1a73e8;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

.report-category-locked-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 32px 24px;
  border: 1.5px dashed #dadce0;
  border-radius: 10px;
  background: #f8f9fa;
  text-align: center;
}

.report-category-locked-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #e8f0fe;
  color: #1a73e8;
  flex-shrink: 0;
}

.report-category-locked-body p {
  margin: 0;
  font-size: 14px;
  color: #5f6368;
  max-width: 340px;
  line-height: 1.5;
}

.btn-locked-upgrade {
  display: inline-block;
  padding: 9px 22px;
  background: #1a73e8;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.15s;
}

.btn-locked-upgrade:hover {
  background: #1557b0;
}

/* Legacy locked card rule kept for any remaining references */
.report-category-card.category-locked {
  opacity: 0.55;
  cursor: default;
  border-style: dashed;
  border-color: #dadce0;
  background: #f8f9fa;
  pointer-events: none;
}

.report-category-card.category-locked .report-category-icon {
  font-size: 16px;
}

.report-category-section.report-category-locked .report-category-heading {
  opacity: 0.6;
}

.plan-gate-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: #f8f9fa;
  border: 1.5px dashed #dadce0;
  border-radius: 10px;
  margin: 4px 0 8px;
}

.plan-gate-lock {
  font-size: 22px;
  flex-shrink: 0;
  line-height: 1;
}

.plan-gate-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.plan-gate-text strong {
  font-size: 14px;
  font-weight: 600;
  color: #202124;
}

.plan-gate-text span {
  font-size: 13px;
  color: #5f6368;
}

.plan-gate-btn {
  flex-shrink: 0;
  display: inline-block;
  padding: 8px 18px;
  background: #1a73e8;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s;
}

.plan-gate-btn:hover {
  background: #1557b0;
}

@media (max-width: 580px) {
  .plan-gate-banner {
    flex-wrap: wrap;
    gap: 12px;
  }
}

/* ── Export button plan gating ─────────────────────────────────────────── */

.btn-export-wrap {
  position: relative;
  display: inline-flex;
}

.btn-export.btn-export-gated {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-export-wrap:hover .btn-export-gated {
  opacity: 0.55;
}

.export-upgrade-tip {
  display: none;
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #202124;
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  padding: 6px 11px;
  border-radius: 6px;
  pointer-events: none;
  z-index: 10;
}

.export-upgrade-tip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: #202124;
}

.btn-export-wrap:hover .export-upgrade-tip {
  display: block;
}

/* ═══════════════════════════════════════════════════════════════════
   Plan-gating: locked section styles (Additional Signals, Fix Queue,
   Visual Audit, individual checks)
   ═══════════════════════════════════════════════════════════════════ */

/* Shared locked badge (used in section headings) */
.ev-locked-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  background: #e8f0fe;
  color: #1a73e8;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Shared locked CTA block (icon + text + button) */
.ev-locked-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 28px 24px;
  background: #f8f9fa;
  border: 1.5px dashed #dadce0;
  border-radius: 10px;
  text-align: center;
  margin-top: 12px;
}

.ev-locked-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #e8f0fe;
  color: #1a73e8;
  flex-shrink: 0;
}

.ev-locked-cta p {
  margin: 0;
  font-size: 14px;
  color: #5f6368;
  max-width: 340px;
  line-height: 1.5;
}

/* ── Additional Signals locked ─────────────────────────────── */

.external-evidence-card--locked .external-evidence-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.external-evidence-card--locked .external-evidence-head h3 {
  margin: 0 0 4px;
  font-size: 17px;
  font-weight: 700;
  color: #202124;
}

.external-evidence-card--locked .external-evidence-head p {
  margin: 0;
  font-size: 13px;
  color: #5f6368;
}

.ev-locked-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
  margin-bottom: 0;
}

.ev-item--locked {
  opacity: 0.45;
  pointer-events: none;
}

/* ── Fix Queue locked ──────────────────────────────────────── */

.blocker-queue-card--locked .blocker-queue-head {
  opacity: 0.7;
}

.blocker-locked-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 28px 24px;
  background: #f8f9fa;
  border: 1.5px dashed #dadce0;
  border-radius: 10px;
  text-align: center;
  margin-top: 12px;
}

.blocker-locked-body p {
  margin: 0;
  font-size: 14px;
  color: #5f6368;
  max-width: 340px;
  line-height: 1.5;
}

/* ── Visual Audit locked ───────────────────────────────────── */

.visual-audit-card--locked .visual-audit-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.visual-audit-card--locked .visual-audit-head h3 {
  margin: 0 0 4px;
  font-size: 17px;
  font-weight: 700;
  color: #202124;
}

.visual-audit-card--locked .visual-audit-head p {
  margin: 0;
  font-size: 13px;
  color: #5f6368;
}

/* ── Individual gated check rows ───────────────────────────── */

.report-finding-card--locked {
  border: 1px dashed #dadce0;
  border-radius: 8px;
  background: #f8f9fa;
}

.finding-locked-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
}

.finding-locked-icon {
  display: flex;
  align-items: center;
  color: #80868b;
  flex-shrink: 0;
}

.finding-locked-name {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
  color: #80868b;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.finding-locked-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  background: #e8f0fe;
  color: #1a73e8;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

.finding-locked-cta {
  display: inline-block;
  padding: 5px 14px;
  background: #1a73e8;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  border-radius: 5px;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.15s;
}

.finding-locked-cta:hover {
  background: #1557b0;
}

@media (max-width: 540px) {
  .finding-locked-name {
    white-space: normal;
  }
  .ev-locked-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* =============================================
   AUDIT REPORT CARD — ERROR STATES
   ============================================= */

/* Card tint when an error is displayed */
.audit-report-card--error {
  border-color: rgba(234, 67, 53, 0.25);
  background: #fffafa;
}

/* Icon wrapper colours */
.report-icon-wrap--warn {
  color: #f9a825;
}

.report-icon-wrap--error {
  color: #ea4335;
}

/* Badge variants */
.report-badge--warn {
  background-color: #f9a825;
}

.report-badge--error {
  background-color: #ea4335;
}

/* "Try Again" button — orange-red outline to match error tone */
.btn-outline-scan--retry {
  border-color: #ea4335;
  color: #ea4335;
}

.btn-outline-scan--retry:hover {
  background-color: rgba(234, 67, 53, 0.08);
  border-color: #c5221f;
  color: #c5221f;
}

/* =============================================
   VISUAL AUDIT — MULTI-PAGE GRID
   Section label above homepage shots + additional
   pages grid below.
   ============================================= */

/* Section divider label (e.g. "Homepage") */
.vp-section-label {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 16px 22px 0;
  margin-bottom: 2px;
}

.vp-section-label strong {
  font-size: 13px;
  font-weight: 700;
  color: #202124;
}

.vp-section-url {
  font-size: 11px;
  color: #80868b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 520px;
}

/* ── Additional pages container ── */
.vp-additional-pages {
  border-top: 1px solid #f1f3f4;
  padding: 20px 22px 8px;
}

.vp-additional-heading {
  margin-bottom: 16px;
}

.vp-additional-heading h4 {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 700;
  color: #202124;
}

.vp-additional-heading p {
  margin: 0;
  font-size: 12px;
  color: #5f6368;
  line-height: 1.6;
}

/* ── Pages grid: up to 4 cards across ── */
.vp-pages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

/* ── Individual page card ── */
.vp-page-card {
  border: 1px solid #e8eaed;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  transition: box-shadow 0.15s;
  display: flex;
  flex-direction: column;
}

.vp-page-card:hover {
  box-shadow: 0 4px 14px rgba(60, 64, 67, 0.12);
}

.vp-page-card.vp-page--ok {
  border-color: #ceead6;
}

.vp-page-card.vp-page--issues {
  border-color: #feefc3;
}

.vp-page-card.vp-page--error {
  border-color: #fce8e6;
  background: #fffafa;
}

/* ── Thumbnail area ── */
.vp-page-thumb {
  position: relative;
  background: #f8f9fa;
  border-bottom: 1px solid #f1f3f4;
  cursor: zoom-in;
  overflow: hidden;
  flex-shrink: 0;
  min-height: 130px;
  transition: opacity 0.15s;
}

.vp-page-thumb:hover {
  opacity: 0.92;
}

.vp-page-img {
  display: block;
  width: 100%;
  height: 130px;
  object-fit: cover;
  object-position: top;
}

.vp-page-img.is-blank {
  filter: contrast(0.3) brightness(1.7);
}

/* badge in top-right of thumb */
.vp-page-badge {
  position: absolute;
  top: 6px;
  right: 6px;
}

/* ── Capture-failed placeholder ── */
.vp-page-error-msg {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 130px;
  padding: 14px;
  text-align: center;
  color: #ea4335;
}

.vp-page-error-msg svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.vp-page-error-msg span {
  font-size: 11px;
  color: #5f6368;
  line-height: 1.5;
}

/* ── Meta row below thumb ── */
.vp-page-meta {
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.vp-page-name {
  font-size: 12px;
  font-weight: 700;
  color: #202124;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vp-page-url {
  font-size: 10px;
  color: #80868b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Chip pills (issue indicators) ── */
.vp-page-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}

.vp-chip {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid transparent;
  white-space: nowrap;
  line-height: 1.5;
}

.vp-chip--ok {
  background: #f6fef8;
  border-color: #ceead6;
  color: #137333;
}

.vp-chip--warn {
  background: #fffdf0;
  border-color: #feefc3;
  color: #b06000;
}

.vp-chip--fail {
  background: #fff8f8;
  border-color: #fce8e6;
  color: #c5221f;
}

/* ── Responsive ── */
@media (max-width: 760px) {
  .vp-pages-grid {
    grid-template-columns: 1fr 1fr;
  }

  .vp-section-label {
    flex-direction: column;
    gap: 2px;
    padding: 14px 14px 0;
  }

  .vp-section-url {
    max-width: 100%;
  }

  .vp-additional-pages {
    padding: 16px 14px 8px;
  }
}

@media (max-width: 480px) {
  .vp-pages-grid {
    grid-template-columns: 1fr;
  }
}
