/* =============================================
   REPORT PAGE — STANDALONE CSS
   Combines base styles (navbar, footer) + audit
   report styles. Scan input & recent-scans
   sections removed. Background is full grey.
   ============================================= */

/* =============================================
   RESET & BASE
   ============================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  background-color: #f1f3f4;
  color: #202124;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.hidden {
  display: none !important;
}

/* =============================================
   UTILITY BUTTONS
   ============================================= */
.btn-primary {
  display: inline-block;
  background-color: #4285f4;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
  text-align: center;
  font-family: "Inter", sans-serif;
}
.btn-primary:hover {
  background-color: #185abc;
}

.btn-outline {
  display: inline-block;
  background-color: transparent;
  color: #4285f4;
  border: 1px solid #4285f4;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
  text-align: center;
  font-family: "Inter", sans-serif;
}
.btn-outline:hover {
  background-color: rgba(66, 133, 244, 0.05);
}

.flex-1 {
  flex: 1;
}

/* =============================================
   NAVBAR
   ============================================= */
.navbar-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 12px 24px;
  background-color: #ffffff;
  border-bottom: 2px solid #f1f3f4;
}

@media (min-width: 768px) {
  .navbar-header {
    padding: 12px 48px;
  }
}

.navbar-container {
  max-width: 1152px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 50px;
}

.navbar-logo {
  display: flex;
  align-items: center;
}

.navbar-logo-img {
  height: 70px;
  width: auto;
  object-fit: contain;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 32px;
}

@media (min-width: 768px) {
  .nav-desktop {
    display: flex;
  }
}

.nav-link {
  color: #5f6368;
  font-weight: 500;
  font-size: 14px;
  transition: color 0.2s;
}
.nav-link:hover {
  color: #4285f4;
}

.nav-actions-desktop {
  display: none;
  align-items: center;
  gap: 12px;
}

@media (min-width: 768px) {
  .nav-actions-desktop {
    display: flex;
  }
}

.hamburger-btn {
  display: flex;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: #202124;
}

@media (min-width: 768px) {
  .hamburger-btn {
    display: none;
  }
}

.hamburger-icon {
  width: 24px;
  height: 24px;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 12px;
  padding-top: 16px;
  padding-bottom: 8px;
  border-top: 1px solid #dadce0;
  margin-top: 12px;
}

.mobile-menu.flex {
  display: flex;
}

.mobile-nav-link {
  color: #5f6368;
  font-weight: 500;
  font-size: 14px;
  padding: 4px 0;
  transition: color 0.2s;
}
.mobile-nav-link:hover {
  color: #4285f4;
}

.mobile-nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 8px;
}

/* =============================================
   MAIN CONTENT
   ============================================= */
.main-content {
  flex-grow: 1;
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background-color: #202124;
  color: #ffffff;
  padding: 48px 24px;
  border-top: 1px solid #3c4043;
}

.footer-inner {
  max-width: 1152px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

@media (min-width: 768px) {
  .footer-top {
    grid-template-columns: 2fr 4fr;
    gap: 48px;
  }
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.footer-logo {
  height: 60px;
  width: auto;
  object-fit: contain;
}

.footer-tagline {
  font-size: 14px;
  color: #9ca3af;
  line-height: 1.6;
  max-width: 360px;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 16px;
  color: #9ca3af;
  margin-top: 8px;
}

.social-link {
  color: #9ca3af;
  transition: color 0.2s;
}
.social-link:hover {
  color: #ffffff;
}

.social-icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.footer-links-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

@media (min-width: 640px) {
  .footer-links-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col-title {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #e5e7eb;
}

.footer-col-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 4px;
}

.footer-link {
  font-size: 14px;
  color: #9ca3af;
  transition: color 0.2s;
  display: block;
  padding: 2px 0;
}
.footer-link:hover {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid rgba(75, 85, 99, 0.6);
  padding-top: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.footer-disclaimer {
  font-size: 12px;
  color: #9ca3af;
  line-height: 1.6;
  max-width: 640px;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #9ca3af;
  gap: 8px 8px;
}

.footer-legal-link {
  color: #9ca3af;
  transition: color 0.2s;
}
.footer-legal-link:hover {
  color: #ffffff;
}

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

/* =============================================
   GRAY CONTENT AREA
   Full grey — no white-to-grey gradient transition
   since the scan section has been removed.
   ============================================= */
.section-content-gray {
  background-color: #f1f3f4;
  width: 100%;
  padding-top: 40px;
  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
   ============================================= */
.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;
  }
}

/* =============================================
   AUDIT REPORT SECTION LAYOUT
   ============================================= */
.audit-report-section {
  width: 100%;
}

.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;
}

/* =============================================
   RESULTS VIEW
   ============================================= */
.results-view {
  width: 100%;
}

.report-content {
  width: 100%;
}

/* =============================================
   REPORT SUMMARY CARD
   ============================================= */
.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;
}

.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;
}

/* =============================================
   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;
  line-height: 1.3;
}

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

@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;
  }
}

/* =============================================
   EXTERNAL EVIDENCE CARD
   ============================================= */
.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;
}

.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;
}

.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) {
  .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;
  }
}

/* =============================================
   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;
}

.visual-audit-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  padding: 22px 22px 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-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;
}

.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;
  }
}

/* =============================================
   REPORT NOTICE
   ============================================= */
.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;
}

/* =============================================
   REPORT TOOLBAR & EXPORT BUTTONS
   ============================================= */
.report-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin: 34px 0 14px;
}

.report-toolbar 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;
}

.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);
}

.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);
}

.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);
}

.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;
  }
}

/* =============================================
   TOP ISSUES CARD
   ============================================= */
.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;
}

/* =============================================
   FIX QUEUE / BLOCKER QUEUE CARD
   ============================================= */
.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);
}

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

.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;
  }
}

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

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

.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);
}
.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;
}

.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;
}
.report-category-foot > span:last-child {
  color: #80868b;
}
.category-attention-zero {
  color: #137333 !important;
}

/* =============================================
   ALL CHECKS HEADING & FILTER BAR
   ============================================= */
.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;
}

.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;
}

.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;
}

.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);
}

.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);
}

.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);
}

.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;
}

.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);
}

.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;
  }
}

/* =============================================
   CATEGORY SECTIONS & FINDING CARDS
   ============================================= */
.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-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;
}

/* =============================================
   RESPONSIVE — REPORT LAYOUT
   ============================================= */
@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-section-title-row {
    align-items: flex-start;
    flex-direction: column;
  }
}
