:root {
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', 'JetBrains Mono', 'Fira Code', monospace;
  --landing-shell-width: 1440px;
  
  /* echoRocket 2026 Palette */
  --primary: #0284C7;
  --primary-hover: #0369A1;
  --primary-subtle: #F0F9FF;
  --success: #059669;
  --warning: #D97706;
  --danger: #DC2626;
  
  /* Surfaces - Flatter approach */
  --bg-body: #F8FAFC;
  --bg-card: #FFFFFF;
  --bg-subtle: #F1F5F9;
  --border-subtle: rgba(15, 23, 42, 0.06);
  
  /* Text */
  --text-main: #0F172A;
  --text-muted: #64748B;
  
  /* Soft Layered Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);

  --radius-md: 0.5rem;
  --radius-lg: 0.5rem;
}

[data-bs-theme="dark"] {
  --bg-body: #020617;
  --bg-card: #0F172A;
  --bg-subtle: #1E293B;
  --border-subtle: rgba(255,255,255,0.04);
  --text-main: #F1F5F9;
  --text-muted: #94A3B8;
  --primary-subtle: rgba(2, 132, 199, 0.1);
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.is-landing {
  background-color: #f8fbfd;
  overflow-x: clip;
}

body.is-landing::before,
body.is-landing::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body.is-landing::before {
  z-index: 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(186, 230, 253, 0.22), transparent 42%),
    radial-gradient(circle at 14% 18%, rgba(224, 242, 254, 0.62), transparent 24%),
    linear-gradient(180deg, #fcfeff 0%, #f7fafd 58%, #f8fafc 100%);
}

body.is-landing::after {
  z-index: 0;
  opacity: 0.45;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72) 0%, rgba(255, 255, 255, 0) 42%);
  mix-blend-mode: normal;
  animation: none;
}

/* UTILITIES */
.no-wrap { white-space: nowrap; }
.break-word { word-break: break-word; overflow-wrap: break-word; }

/* NAVBAR */
.navbar-glass {
  background: color-mix(in srgb, var(--bg-card) 82%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

body.is-landing .navbar-glass {
  background: color-mix(in srgb, var(--bg-card) 92%, transparent);
  border-bottom-color: color-mix(in srgb, var(--text-muted) 8%, transparent);
}

body.is-landing .navbar .container-xxl {
  max-width: var(--landing-shell-width);
}

.nav-action-btn {
  border: 1px solid color-mix(in srgb, var(--text-muted) 14%, transparent);
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--bg-card) 86%, var(--bg-subtle));
  color: var(--text-main);
  transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.nav-action-btn:hover,
.nav-action-btn:focus {
  color: var(--primary);
  border-color: color-mix(in srgb, var(--primary) 28%, transparent);
  transform: translateY(-1px);
}

/* LAYOUT */
.main-wrapper { padding-top: 100px; padding-bottom: 4rem; }
.bg-card { background: var(--bg-card) !important; }
.text-main { color: var(--text-main) !important; }
.font-mono { font-family: var(--font-mono); }
.eyebrow {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* HERO / LANDING */
body.is-landing .main-wrapper {
  position: relative;
  z-index: 1;
  max-width: var(--landing-shell-width);
  width: 100%;
  margin-inline: auto;
  padding-inline: calc(var(--bs-gutter-x, 1.5rem) * 0.5);
  padding-top: 74px;
  padding-bottom: 0;
}

.landing-hero {
  position: relative;
  min-height: auto;
  display: flex;
  align-items: stretch;
  overflow: visible;
}

.landing-hero-shell {
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: auto;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(0.45rem, 1vw, 0.85rem) 0 2rem;
}

.landing-grid {
  width: 100%;
  max-width: var(--landing-shell-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  align-items: start;
  justify-items: center;
}

.landing-copy {
  max-width: none;
  width: 100%;
}

.hero-content {
  position: relative;
  width: min(100%, 900px);
  margin: 0 auto;
}

.hero-kicker {
  display: block;
  margin-bottom: 0.7rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary);
}

.hero-display {
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 4.6vw, 3.95rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
  max-width: 12ch;
  margin-inline: auto;
  color: var(--text-main);
  text-wrap: balance;
}

.hero-lead {
  max-width: 40rem;
  margin-inline: auto;
  font-size: clamp(0.98rem, 1.15vw, 1.05rem);
  line-height: 1.58;
  color: color-mix(in srgb, var(--text-main) 76%, var(--text-muted));
}

.landing-inline-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.landing-inline-facts span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.46rem 0.82rem;
  border-radius: var(--radius-md);
  border: 1px solid color-mix(in srgb, var(--text-muted) 10%, transparent);
  background: rgba(255, 255, 255, 0.46);
  box-shadow: 0 8px 22px rgba(148, 163, 184, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: color-mix(in srgb, var(--text-main) 64%, var(--text-muted));
  font-size: 0.78rem;
  font-weight: 600;
}

.hero-input-wrapper {
  max-width: 840px;
  margin-top: 0.9rem;
  margin-inline: auto;
}

.hero-form-shell {
  padding: clamp(0.9rem, 2vw, 1.15rem);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.workflow-switcher {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  width: 100%;
}

.workflow-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  min-height: 56px;
  padding: 0.78rem 0.95rem;
  border-radius: var(--radius-md);
  border: 1px solid color-mix(in srgb, var(--text-muted) 8%, transparent);
  background: #fff;
  text-align: center;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
  color: var(--text-main);
  text-decoration: none;
}

.workflow-card-primary {
  border-color: rgba(125, 211, 252, 0.4);
  background: #f4fbff;
}

.workflow-card-secondary {
  background: #fbfdff;
}

.workflow-card:hover {
  border-color: color-mix(in srgb, var(--primary) 28%, transparent);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.workflow-card.is-active {
  border-color: color-mix(in srgb, var(--primary-hover) 70%, transparent);
  background: linear-gradient(180deg, var(--primary) 0%, var(--primary-hover) 100%);
  box-shadow: 0 14px 28px rgba(2, 132, 199, 0.24);
  color: #fff;
}

.workflow-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  background: rgba(240, 249, 255, 0.9);
  color: var(--primary);
  font-size: 1rem;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.14);
}

.workflow-card.is-active .workflow-icon {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.workflow-card.is-active .workflow-copy small {
  color: rgba(255, 255, 255, 0.82);
}

.workflow-copy {
  min-width: 0;
}

.workflow-copy strong {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 0.35rem;
  font-size: 0.93rem;
  font-weight: 700;
  white-space: nowrap;
}

.workflow-copy small {
  display: block;
  margin-top: 0.12rem;
  font-size: 0.76rem;
  color: var(--text-muted);
}

.workflow-chip {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  padding: 0.12rem 0.42rem;
  border-radius: var(--radius-md);
  background: rgba(2, 132, 199, 0.12);
  color: var(--primary);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: middle;
}

.workflow-card.is-active .workflow-chip {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.landing-panel {
  padding-top: 0.35rem;
}

.hero-form .form-control-lg,
.landing-panel[data-landing-panel="a11y"] .form-control-lg {
  min-height: 58px;
  border-radius: var(--radius-md);
}

.hero-form .btn-lg,
.landing-panel[data-landing-panel="a11y"] .btn-lg {
  white-space: nowrap;
}

.hero-panel-copy {
  display: grid;
  gap: 0.55rem;
}

.hero-panel-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.hero-panel-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
}

.hero-panel-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.34rem 0.72rem;
  border-radius: var(--radius-md);
  background: rgba(2, 132, 199, 0.12);
  color: var(--primary);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-panel-badge-secondary {
  background: rgba(15, 23, 42, 0.06);
  color: color-mix(in srgb, var(--text-main) 74%, var(--text-muted));
}

.hero-panel-note,
.hero-input-help {
  max-width: none;
  line-height: 1.55;
}

.landing-panel .bg-card {
  background: #f9fbfd !important;
  border-color: rgba(148, 163, 184, 0.16) !important;
}

.landing-quiet-note {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.landing-metadata {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 1.35rem;
  max-width: 760px;
}

.landing-meta-card {
  position: relative;
  padding: 0.2rem 0 0;
  color: var(--text-muted);
}

.landing-meta-card::before {
  content: "";
  display: block;
  width: 56px;
  height: 1px;
  margin-bottom: 0.8rem;
  background: linear-gradient(90deg, rgba(14, 165, 233, 0.58), transparent);
}

.landing-meta-card strong {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.93rem;
  line-height: 1.6;
  color: var(--text-main);
  font-weight: 600;
}

.landing-scene {
  position: relative;
  min-height: min(78vh, 880px);
  align-items: stretch;
  justify-content: center;
  opacity: 0.78;
}

.scene-caption {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(100, 116, 139, 0.88);
}

.scene-caption-top {
  top: 8%;
  left: 6%;
}

.scene-wordmark {
  position: absolute;
  inset: 10% 0 auto 2%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15em;
  pointer-events: none;
}

.scene-wordmark span {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(5.4rem, 12vw, 10.6rem);
  line-height: 0.82;
  letter-spacing: -0.07em;
  color: rgba(15, 23, 42, 0.05);
}

.scene-axis,
.scene-track,
.scene-link {
  position: absolute;
}

.scene-axis.axis-x {
  left: 6%;
  right: 2%;
  top: 42%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(14, 165, 233, 0.2), transparent);
}

.scene-axis.axis-y {
  top: 10%;
  bottom: 8%;
  left: 59%;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(14, 165, 233, 0.18), transparent);
}

.scene-track.track-a {
  right: 10%;
  top: 18%;
  width: 200px;
  height: 200px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(14, 165, 233, 0.16);
  transform: rotate(16deg);
}

.scene-track.track-b {
  left: 16%;
  bottom: 14%;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  border: 1px solid rgba(148, 163, 184, 0.16);
}

.scene-dot {
  position: absolute;
  width: 11px;
  height: 11px;
  border-radius: var(--radius-md);
  background: rgba(14, 165, 233, 0.92);
  box-shadow: 0 0 0 8px rgba(14, 165, 233, 0.12);
  animation: landing-node-float 10s ease-in-out infinite;
}

.scene-dot.dot-a {
  top: 22%;
  right: 16%;
}

.scene-dot.dot-b {
  left: 56%;
  bottom: 20%;
  animation-delay: -2.2s;
}

.scene-dot.dot-c {
  left: 25%;
  top: 58%;
  width: 8px;
  height: 8px;
  animation-delay: -4.4s;
}

.scene-link,
.landing-canvas-link {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(14, 165, 233, 0.28), rgba(255, 255, 255, 0.62), rgba(37, 99, 235, 0.2), transparent);
  opacity: 0.7;
  animation: landing-link-pulse 9s ease-in-out infinite;
}

.scene-link::after,
.landing-canvas-link::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 8%;
  width: 10px;
  height: 10px;
  border-radius: var(--radius-md);
  background: rgba(191, 219, 254, 0.92);
  box-shadow: 0 0 0 6px rgba(14, 165, 233, 0.12);
  transform: translate(-50%, -50%);
  animation: landing-signal 8s linear infinite;
}

.scene-link-a {
  top: 29%;
  left: 56%;
  width: 24%;
  transform: rotate(18deg);
}

.scene-link-b {
  top: 58%;
  left: 25%;
  width: 32%;
  transform: rotate(-38deg);
  animation-delay: -2.5s;
}

.scene-link-c {
  top: 70%;
  left: 57%;
  width: 18%;
  transform: rotate(-60deg);
  animation-delay: -4.5s;
}

.scene-float {
  position: absolute;
  width: min(244px, 44%);
  padding: 1rem 1.05rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(148, 163, 184, 0.14);
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  animation: landing-float-card 14s ease-in-out infinite;
}

.scene-float strong {
  display: block;
  margin-top: 0.2rem;
  margin-bottom: 0.25rem;
  font-size: 1rem;
  color: var(--text-main);
}

.scene-float small {
  display: block;
  line-height: 1.55;
  color: var(--text-muted);
}

.scene-float-a {
  top: 18%;
  right: 2%;
}

.scene-float-b {
  left: 7%;
  bottom: 11%;
  animation-delay: -4s;
}

.scene-float-c {
  right: 11%;
  bottom: 28%;
  animation-delay: -7s;
}

.landing-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.landing-canvas-grid,
.landing-canvas-scan,
.landing-canvas-glow,
.landing-canvas-node,
.landing-canvas-link {
  position: absolute;
}

.landing-canvas-grid {
  inset: -8%;
  background-image:
    linear-gradient(rgba(14, 165, 233, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 165, 233, 0.07) 1px, transparent 1px);
  background-size: 82px 82px;
  mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.95) 36%, transparent 82%);
  opacity: 0.58;
  animation: landing-grid-drift 30s linear infinite;
}

.landing-canvas-scan {
  inset: -12% 4%;
  background: linear-gradient(180deg, transparent 0%, rgba(125, 211, 252, 0.04) 30%, rgba(255, 255, 255, 0.22) 50%, rgba(125, 211, 252, 0.05) 68%, transparent 100%);
  opacity: 0.4;
  mix-blend-mode: screen;
  transform: translateY(-62%);
  animation: landing-scan 16s linear infinite;
}

.landing-canvas-glow {
  border-radius: var(--radius-md);
  filter: blur(16px);
}

.landing-canvas-glow.glow-a {
  top: -8%;
  left: -8%;
  width: 360px;
  height: 360px;
  background: rgba(14, 165, 233, 0.15);
}

.landing-canvas-glow.glow-b {
  right: -2%;
  bottom: 4%;
  width: 420px;
  height: 420px;
  background: rgba(59, 130, 246, 0.12);
}

.landing-canvas-node {
  width: 12px;
  height: 12px;
  border-radius: var(--radius-md);
  background: rgba(248, 250, 252, 0.9);
  box-shadow: 0 0 0 8px rgba(14, 165, 233, 0.1);
  animation: landing-node-float 10s ease-in-out infinite;
}

.landing-canvas-node.node-a {
  top: 14%;
  right: 11%;
}

.landing-canvas-node.node-b {
  left: 44%;
  bottom: 16%;
  width: 9px;
  height: 9px;
  animation-delay: -2.8s;
}

.landing-canvas-node.node-c {
  left: 18%;
  top: 58%;
  width: 8px;
  height: 8px;
  animation-delay: -5.2s;
}

.landing-canvas-link.link-a {
  top: 22%;
  left: 48%;
  width: min(30vw, 520px);
  transform: rotate(124deg);
}

.landing-canvas-link.link-b {
  top: 60%;
  left: 16%;
  width: min(32vw, 500px);
  transform: rotate(-8deg);
  animation-delay: -3s;
}

.landing-canvas-link.link-c {
  top: 43%;
  left: 18%;
  width: min(42vw, 680px);
  transform: rotate(18deg);
  animation-delay: -5s;
}

[data-bs-theme="dark"] body.is-landing {
  background-color: #020617;
}

[data-bs-theme="dark"] body.is-landing::before {
  background:
    radial-gradient(circle at 12% 16%, rgba(14, 165, 233, 0.16), transparent 24%),
    radial-gradient(circle at 82% 14%, rgba(59, 130, 246, 0.14), transparent 20%),
    radial-gradient(circle at 74% 78%, rgba(14, 165, 233, 0.08), transparent 24%),
    linear-gradient(180deg, #020617 0%, #07111f 48%, #020617 100%);
}

[data-bs-theme="dark"] body.is-landing::after {
  opacity: 0.58;
  background-image:
    radial-gradient(circle at 18% 28%, rgba(56, 189, 248, 0.12) 0 2px, transparent 3px),
    radial-gradient(circle at 74% 18%, rgba(96, 165, 250, 0.1) 0 2px, transparent 3px),
    linear-gradient(118deg, rgba(14, 165, 233, 0.07), transparent 44%, rgba(37, 99, 235, 0.08) 74%, transparent 100%);
}

[data-bs-theme="dark"] .hero-display {
  color: #f8fbff;
}

[data-bs-theme="dark"] body.is-landing .navbar-glass {
  background: rgba(2, 6, 23, 0.54);
  border-bottom-color: rgba(125, 211, 252, 0.08);
}

[data-bs-theme="dark"] .hero-lead {
  color: #bfd0e4;
}

[data-bs-theme="dark"] .landing-inline-facts span {
  background: rgba(7, 17, 31, 0.56);
  border-color: rgba(125, 211, 252, 0.12);
  box-shadow: 0 10px 22px rgba(1, 4, 14, 0.22);
  color: #bfd1e9;
}

[data-bs-theme="dark"] .hero-form-shell,
[data-bs-theme="dark"] .scene-float {
  background: linear-gradient(180deg, rgba(3, 7, 18, 0.78) 0%, rgba(7, 17, 31, 0.62) 100%);
  border-color: rgba(125, 211, 252, 0.14);
  box-shadow: 0 24px 62px rgba(1, 4, 14, 0.38);
}

[data-bs-theme="dark"] .workflow-card {
  background: rgba(15, 23, 42, 0.52);
  border-color: rgba(125, 211, 252, 0.08);
}

[data-bs-theme="dark"] .workflow-card-primary {
  background: linear-gradient(180deg, rgba(8, 47, 73, 0.5) 0%, rgba(15, 23, 42, 0.72) 100%);
}

[data-bs-theme="dark"] .workflow-card:hover {
  background: rgba(15, 23, 42, 0.7);
}

[data-bs-theme="dark"] .workflow-card.is-active {
  background: linear-gradient(180deg, #0ea5e9 0%, #0284c7 100%);
  border-color: rgba(125, 211, 252, 0.7);
  box-shadow: 0 16px 30px rgba(2, 132, 199, 0.3);
}

[data-bs-theme="dark"] .workflow-icon {
  background: rgba(9, 14, 29, 0.78);
  box-shadow: inset 0 0 0 1px rgba(125, 211, 252, 0.08);
  color: #7dd3fc;
}

[data-bs-theme="dark"] .workflow-chip,
[data-bs-theme="dark"] .hero-panel-badge {
  background: rgba(14, 165, 233, 0.16);
  color: #7dd3fc;
}

[data-bs-theme="dark"] .hero-panel-badge-secondary {
  background: rgba(148, 163, 184, 0.14);
  color: #d5dfec;
}

[data-bs-theme="dark"] .landing-panel .bg-card {
  background: rgba(15, 23, 42, 0.62) !important;
  border-color: rgba(125, 211, 252, 0.12) !important;
}

[data-bs-theme="dark"] .landing-meta-card::before {
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.72), transparent);
}

[data-bs-theme="dark"] .landing-meta-card strong,
[data-bs-theme="dark"] .scene-float strong {
  color: #f8fafc;
}

[data-bs-theme="dark"] .scene-caption {
  color: rgba(186, 206, 229, 0.78);
}

[data-bs-theme="dark"] .scene-wordmark span {
  color: rgba(241, 245, 249, 0.06);
}

[data-bs-theme="dark"] .scene-axis.axis-x {
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.18), transparent);
}

[data-bs-theme="dark"] .scene-axis.axis-y {
  background: linear-gradient(180deg, transparent, rgba(56, 189, 248, 0.16), transparent);
}

[data-bs-theme="dark"] .scene-track.track-a {
  border-color: rgba(56, 189, 248, 0.18);
}

[data-bs-theme="dark"] .scene-track.track-b {
  border-color: rgba(148, 163, 184, 0.16);
}

[data-bs-theme="dark"] .scene-link,
[data-bs-theme="dark"] .landing-canvas-link {
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.36), rgba(147, 197, 253, 0.56), rgba(56, 189, 248, 0.22), transparent);
}

[data-bs-theme="dark"] .scene-link::after,
[data-bs-theme="dark"] .landing-canvas-link::after {
  background: rgba(147, 197, 253, 0.9);
  box-shadow: 0 0 0 7px rgba(56, 189, 248, 0.14);
}

@keyframes landing-aurora {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(1.5%, -2%, 0) scale(1.04); }
}

@keyframes landing-grid-drift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-44px, -28px, 0); }
}

@keyframes landing-scan {
  0% { transform: translateY(-62%); }
  100% { transform: translateY(62%); }
}

@keyframes landing-node-float {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -16px, 0); }
}

@keyframes landing-link-pulse {
  0%, 100% { opacity: 0.3; filter: blur(0); }
  50% { opacity: 0.82; filter: blur(0.2px); }
}

@keyframes landing-signal {
  0% { left: 8%; opacity: 0; }
  14% { opacity: 1; }
  86% { opacity: 1; }
  100% { left: 92%; opacity: 0; }
}

@keyframes landing-float-card {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -10px, 0); }
}

@media (max-width: 1199px) {
  body.is-landing .main-wrapper {
    padding-top: 72px;
  }

  .landing-hero-shell {
    padding-inline: clamp(1rem, 4vw, 2rem);
  }

  .landing-copy,
  .hero-input-wrapper {
    max-width: none;
  }

  .hero-display {
    max-width: 9ch;
  }
}

@media (max-width: 767px) {
  body.is-landing .main-wrapper {
    padding-top: 70px;
  }

  .landing-hero {
    min-height: auto;
  }

  .landing-hero-shell {
    min-height: auto;
    padding: 0.5rem 1rem 1.5rem;
  }

  .hero-display {
    font-size: clamp(2.45rem, 11vw, 3.6rem);
    max-width: 8.8ch;
  }

  .hero-form-shell {
    padding: 0.85rem;
    border-radius: var(--radius-md);
  }

  .hero-panel-heading {
    align-items: flex-start;
  }

  .hero-panel-title {
    font-size: 1rem;
  }

  .workflow-switcher {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-form .d-flex.gap-2,
  .landing-panel[data-landing-panel="a11y"] .d-flex.gap-2 {
    flex-direction: column;
  }

  .workflow-card {
    padding: 0.72rem 0.75rem;
  }

  .workflow-icon {
    width: 34px;
    height: 34px;
    font-size: 0.95rem;
  }
}

@media (max-width: 575px) {
  .workflow-switcher {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.is-landing::after,
  .landing-canvas-grid,
  .landing-canvas-scan,
  .landing-canvas-node,
  .landing-canvas-link,
  .scene-dot,
  .scene-link,
  .scene-float {
    animation: none !important;
  }
}

/* DASHBOARD COMPONENTS */
.a11y-report-shell .report-hero-shell {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.a11y-report-shell .report-summary-card {
  background: transparent;
  border: none;
}

.a11y-report-shell .summary-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.85rem;
  margin-top: 1rem;
}

.a11y-report-shell .summary-card {
  padding: 1.1rem 1.15rem;
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--bg-card) 92%, var(--bg-subtle));
  border: 1px solid color-mix(in srgb, var(--text-muted) 10%, transparent);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none !important;
  color: inherit !important;
}

.a11y-report-shell .summary-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.a11y-report-shell .summary-card.is-active {
  border-color: var(--primary);
  background: var(--primary-subtle);
}

.a11y-report-shell .summary-card strong {
  display: block;
  font-size: 1.7rem;
  line-height: 1;
  margin: 0.4rem 0 0;
}

.a11y-report-shell .report-facts-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 2rem;
  padding: 1rem 0;
  border-top: 1px solid var(--border-subtle);
}

.a11y-report-shell .report-fact {
  font-size: 0.875rem;
}

.a11y-report-shell .report-fact span {
  color: var(--text-muted);
  font-weight: 500;
  margin-right: 0.5rem;
}

.crawl-progress-shell {
  max-width: 960px;
  margin: 0 auto;
}

.crawl-progress-hero,
.crawl-progress-card,
.a11y-progress-card,
.a11y-run-status-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 1.35rem 1.4rem;
}

.crawl-progress-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
}

.crawl-progress-stat .label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}

.crawl-progress-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  color: var(--text-muted);
  font-size: 0.84rem;
  font-weight: 500;
}

.a11y-report-shell .a11y-report-header {
  padding-bottom: 0.35rem;
  border-bottom: 1px solid color-mix(in srgb, var(--text-muted) 12%, transparent);
}

.a11y-report-shell .a11y-report-header .lead {
  font-size: 1rem;
  max-width: 760px;
}

.a11y-report-shell .a11y-resume-card {
  max-width: 620px;
}

.a11y-report-shell .a11y-resume-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.65rem;
}

.a11y-report-shell .a11y-resume-field .form-control {
  background: color-mix(in srgb, var(--bg-card) 92%, var(--bg-subtle));
  border-color: color-mix(in srgb, var(--text-muted) 12%, transparent);
  font-family: var(--font-mono);
  font-size: 0.82rem;
}

.a11y-report-shell .a11y-resume-field .btn {
  min-width: 88px;
}

.a11y-report-shell .a11y-resume-field .btn.is-copied {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.a11y-run-setup-pills,
.pagespeed-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.a11y-report-shell .a11y-setup-compact {
  display: grid;
  gap: 0.55rem;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-md);
  border: 1px solid color-mix(in srgb, var(--text-muted) 10%, transparent);
  background: color-mix(in srgb, var(--bg-card) 90%, var(--bg-subtle));
}

.a11y-report-shell .a11y-setup-compact-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.7rem;
}

.a11y-report-shell .a11y-setup-compact-body {
  min-width: 0;
}

.a11y-report-shell .a11y-run-setup-pills-compact {
  gap: 0.45rem;
}

.a11y-report-shell .a11y-setup-compact .issue-pill {
  padding: 0.22rem 0.55rem;
  font-size: 0.74rem;
}

.a11y-report-shell .a11y-run-status-panel {
  background: color-mix(in srgb, var(--bg-card) 92%, var(--bg-subtle));
  border: 1px solid color-mix(in srgb, var(--text-muted) 12%, transparent);
  border-radius: var(--radius-md);
  padding: 1rem 1.1rem;
}

.a11y-run-status-head,
.a11y-console-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
}

.a11y-run-status-progress {
  margin-top: 0.85rem;
}

.a11y-report-shell .a11y-progress-card {
  background: linear-gradient(180deg, #07111f 0%, #0b1220 100%);
  border: 1px solid rgba(51, 65, 85, 0.92);
  border-radius: var(--radius-md);
  box-shadow: 0 18px 44px rgba(8, 15, 31, 0.24);
  color: #dbeafe;
  padding: 1rem 1rem 1.05rem;
}

.a11y-console-head {
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(51, 65, 85, 0.9);
}

.a11y-console-prompt,
.a11y-console-meta,
.a11y-console-label,
.a11y-report-shell .a11y-current-page strong,
.a11y-report-shell .a11y-run-log-copy strong,
.a11y-report-shell .a11y-run-log-copy .small,
.a11y-report-shell #a11yRunCurrentPageStatus,
.a11y-report-shell .a11y-log-status {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.a11y-console-prompt {
  color: #67e8f9;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

.a11y-console-meta,
.a11y-report-shell .a11y-progress-card .small {
  color: #94a3b8;
}

.a11y-report-shell .a11y-worker-pool {
  margin: 0.9rem 0 0.75rem;
  padding: 0 0 0.95rem;
  border-radius: 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(51, 65, 85, 0.9);
}

.a11y-console-label {
  display: block;
  margin-bottom: 0.3rem;
  color: #38bdf8;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.a11y-worker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.65rem;
}

.a11y-worker-slot {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
  padding: 0.75rem 0.8rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(51, 65, 85, 0.92);
  background: rgba(15, 23, 42, 0.5);
}

.a11y-worker-slot-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
}

.a11y-worker-slot-name,
.a11y-worker-slot-status,
.a11y-worker-slot strong,
.a11y-worker-slot .small {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.a11y-worker-slot-name {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #67e8f9;
}

.a11y-worker-slot-status {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #94a3b8;
}

.a11y-worker-slot strong {
  display: block;
  font-size: 0.94rem;
  margin: 0;
}

.a11y-worker-slot.is-running {
  border-color: rgba(34, 211, 238, 0.3);
}

.a11y-worker-slot.is-running .a11y-worker-slot-status {
  color: #67e8f9;
}

.a11y-worker-slot.is-idle {
  border-color: rgba(71, 85, 105, 0.7);
  border-style: dashed;
  background: rgba(15, 23, 42, 0.24);
}

.a11y-run-log-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  max-height: 320px;
  overflow: auto;
  padding-right: 0.35rem;
}

.a11y-run-log-list::-webkit-scrollbar {
  width: 8px;
}

.a11y-run-log-list::-webkit-scrollbar-thumb {
  background: rgba(71, 85, 105, 0.82);
  border-radius: var(--radius-md);
}

.a11y-console-empty {
  font-family: var(--font-mono);
}

.a11y-report-shell .a11y-run-log-item {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0.8rem;
  padding: 0.72rem 0.8rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(51, 65, 85, 0.92);
  background: rgba(15, 23, 42, 0.5);
}

.a11y-run-log-copy {
  min-width: 0;
  flex: 1 1 auto;
}

.a11y-report-shell .a11y-log-status {
  flex: 0 0 90px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #67e8f9;
  white-space: nowrap;
}

.a11y-run-log-item.is-running {
  border-color: rgba(34, 211, 238, 0.3);
}

.a11y-run-log-item.is-failed {
  border-color: rgba(248, 113, 113, 0.3);
}

.a11y-run-log-item.is-done .a11y-log-status {
  color: #34d399;
}

.a11y-run-log-item.is-pending .a11y-log-status {
  color: #94a3b8;
}

.a11y-run-log-item.is-failed .a11y-log-status {
  color: #fca5a5;
}

.pagespeed-snapshot {
  padding-top: 0.95rem;
  margin-top: 0.95rem;
  border-top: 1px solid color-mix(in srgb, var(--text-muted) 12%, transparent);
}

.pagespeed-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.7rem;
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--bg-card) 84%, var(--bg-subtle));
  border: 1px solid color-mix(in srgb, var(--text-muted) 12%, transparent);
  font-size: 0.82rem;
  font-weight: 600;
}

.pagespeed-chip strong {
  color: var(--primary);
}

.preset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem;
}

.preset-toggle {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: color-mix(in srgb, var(--bg-card) 86%, var(--bg-subtle));
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.preset-toggle:hover {
  border-color: color-mix(in srgb, var(--primary) 30%, transparent);
  transform: translateY(-1px);
}

.preset-toggle input {
  margin: 0;
}

.landing-panel[data-landing-panel="a11y"] .a11y-form-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.landing-panel[data-landing-panel="a11y"] .a11y-state-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.34rem 0.7rem;
  border-radius: var(--radius-md);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(148, 163, 184, 0.14);
  color: var(--text-muted);
}

.landing-panel[data-landing-panel="a11y"] .a11y-state-pill.is-pending {
  background: rgba(2, 132, 199, 0.12);
  color: var(--primary);
}

.landing-panel[data-landing-panel="a11y"] .a11y-state-pill.is-ready {
  background: rgba(5, 150, 105, 0.14);
  color: var(--success);
}

.landing-panel[data-landing-panel="a11y"] .a11y-state-pill.is-error {
  background: rgba(220, 38, 38, 0.12);
  color: var(--danger);
}

.landing-panel[data-landing-panel="a11y"] #a11yRunBtn:disabled {
  opacity: 0.72;
  cursor: not-allowed;
}

.help-page .help-main {
  padding-top: 96px;
  padding-bottom: 2.5rem;
}

.help-page .help-hero,
.help-page .help-step,
.help-page .help-card,
.help-page .help-accordion .accordion-item {
  background: var(--bg-card);
  border: 1px solid color-mix(in srgb, var(--text-muted) 12%, transparent);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.help-page .help-hero {
  padding: 1.2rem 1.25rem;
}

.help-page .help-kicker {
  display: inline-flex;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.35rem;
}

.help-page .help-section {
  scroll-margin-top: 100px;
}

.help-page .help-card,
.help-page .help-step {
  padding: 1rem 1.1rem;
}

.help-page .step-num {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  font-size: 0.82rem;
  font-weight: 700;
  background: var(--primary-subtle);
  color: var(--primary);
  margin-bottom: 0.65rem;
}

.help-page .help-toc {
  top: 92px;
}

.help-page .help-toc .list-group-item {
  background: transparent;
  border: 0;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  font-weight: 600;
  padding: 0.5rem 0.65rem;
}

.help-page .help-toc .list-group-item:hover,
.help-page .help-toc .list-group-item:focus {
  background: var(--primary-subtle);
  color: var(--primary);
}

.help-page .help-accordion .accordion-item {
  overflow: hidden;
  margin-bottom: 0.65rem;
}

.help-page .help-accordion .accordion-button {
  padding: 0.85rem 1rem !important;
}

.help-page pre {
  background: var(--bg-subtle);
  border-radius: var(--radius-md);
  padding: 0.85rem;
}

.help-page code {
  color: inherit;
}

/* RESULT ROWS - THE FLATTENED STREAM */
.a11y-report-shell .toolbar-sticky {
  position: sticky;
  top: 70px;
  z-index: 1000;
  background: rgba(248, 250, 252, 0.9);
  backdrop-filter: blur(8px);
  padding: 1rem 0;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.a11y-report-shell .results-wrapper {
  display: flex;
  flex-direction: column;
}

.a11y-report-shell .group-title,
.landing-panel[data-landing-panel="a11y"] .group-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-muted);
  padding: 1.5rem 0 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.a11y-page-list .result-row {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin-bottom: 0.5rem;
  transition: border-color 0.2s ease;
}

.a11y-page-list .result-row:hover {
  border-color: var(--primary);
}

.a11y-page-list .accordion-button {
  padding: 1rem 1.15rem !important;
  background: transparent !important;
  box-shadow: none !important;
  color: inherit !important;
}

.a11y-page-list .accordion-button::after {
  background-size: 1rem;
  margin-inline-start: 0.5rem;
}

/* FLATTENING THE CONTENT: No more boxes in boxes */
.a11y-page-list .accordion-body {
  padding: 0 1.15rem 1.35rem 1.15rem !important;
  background: transparent !important;
  border-top: none !important;
}

.a11y-report-shell .detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  padding-top: 1rem;
}

.a11y-report-shell .detail-section {
  background: transparent;
  padding: 0;
  border: none;
  box-shadow: none;
}

.a11y-report-shell .detail-section h6 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.a11y-report-shell .kv-row {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.25rem;
}

.a11y-report-shell .kv-key {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.a11y-report-shell .kv-val {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-main);
  word-break: break-word;
}

/* PAGE ROW LAYOUT */
.a11y-page-list .row-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
}

.a11y-page-list .page-title {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0;
  color: var(--text-main);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.a11y-report-shell .page-link {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-decoration: none;
  font-family: var(--font-mono);
  display: block;
}

.a11y-report-shell .page-link:hover {
  color: var(--primary);
}

.a11y-page-list .page-row-issues {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.45rem;
  min-width: 0;
}

.a11y-report-shell .issue-pill {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
  color: var(--text-muted);
  border: 1px solid transparent;
}

.a11y-report-shell .issue-pill-danger {
  background: rgba(220, 38, 38, 0.08);
  color: var(--danger);
}

.a11y-report-shell .issue-pill-warning {
  background: rgba(217, 119, 6, 0.08);
  color: var(--warning);
}

.a11y-report-shell .issue-pill-info {
  background: rgba(2, 132, 199, 0.08);
  color: var(--primary);
}

.a11y-page-list .result-row[data-severity="critical"] .issue-pill {
  background: rgba(220, 38, 38, 0.08);
  color: var(--danger);
}

.a11y-page-list .result-row[data-severity="warning"] .issue-pill {
  background: rgba(217, 119, 6, 0.08);
  color: var(--warning);
}

.a11y-report-shell .issue-pill-ok {
  background: rgba(5, 150, 105, 0.08);
  color: var(--success);
}

/* TOP RULES */
.a11y-top-rule-summary .accordion-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.a11y-top-rule-summary .accordion-button {
  padding: 1rem 1.1rem !important;
  background: transparent !important;
  box-shadow: none !important;
  color: inherit !important;
}

.a11y-top-rule-summary .accordion-button::after {
  background-size: 0.95rem;
  margin-inline-start: 0.5rem;
}

.a11y-top-rule-summary .accordion-body {
  padding: 0 1.1rem 1rem !important;
}

.a11y-top-rule-summary-head,
.a11y-top-rule-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.85rem;
  width: 100%;
  align-items: center;
}

.a11y-top-rule-copy {
  min-width: 0;
}

.a11y-top-rule-copy .fw-semibold {
  font-size: 0.98rem;
}

.a11y-top-rule-summary-head .group-title {
  padding: 0;
}

.a11y-top-rule-summary-meta,
.a11y-top-rule-metrics {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.45rem;
}

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

.a11y-top-rule-item {
  padding: 1rem 0;
  border-top: 1px solid color-mix(in srgb, var(--text-muted) 10%, transparent);
}

.a11y-top-rule-link {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.1rem;
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}

.a11y-top-rule-link:hover {
  color: color-mix(in srgb, var(--primary) 86%, var(--text-main));
}

.a11y-finding {
  background: transparent;
  padding: 2.5rem 0;
  border: none;
  border-bottom: 1px solid var(--border-subtle);
  border-radius: 0;
  box-shadow: none;
}

.a11y-finding:last-child {
  border-bottom: none;
}

.a11y-node {
  background: color-mix(in srgb, var(--bg-card) 76%, var(--bg-subtle));
  padding: 1.5rem;
  border-radius: 0;
  margin: 1.5rem 0;
  border: 1px solid color-mix(in srgb, var(--text-muted) 12%, transparent);
}

.a11y-node .selector {
  font-family: inherit;
  flex: 1 1 auto;
  min-width: 0;
  font-size: 1rem;
  font-weight: 700;
  color: color-mix(in srgb, var(--text-main) 88%, var(--primary));
  letter-spacing: 0;
  margin-bottom: 0;
  display: block;
}

.a11y-node-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.9rem;
  margin-bottom: 1rem;
}

.a11y-node-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
}

.a11y-node-action {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.72rem;
  border-radius: var(--radius-md);
  border: 1px solid color-mix(in srgb, var(--text-muted) 12%, transparent);
  background: color-mix(in srgb, var(--bg-card) 72%, var(--bg-subtle));
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

.a11y-node-action:hover {
  color: color-mix(in srgb, var(--primary) 85%, var(--text-main));
  border-color: color-mix(in srgb, var(--primary) 28%, transparent);
}

.a11y-node-shot {
  display: block;
  width: min(420px, 100%);
  margin-bottom: 1rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--text-muted) 12%, transparent);
  background: color-mix(in srgb, var(--bg-card) 72%, var(--bg-subtle));
  box-shadow: var(--shadow-sm);
}

.a11y-node-shot img {
  display: block;
  width: 100%;
  height: auto;
}

.a11y-code {
  background: color-mix(in srgb, var(--bg-card) 58%, var(--bg-subtle));
  color: var(--text-main);
  padding: 1.25rem;
  border-radius: 8px;
  font-size: 0.8125rem;
  margin: 1.25rem 0;
  border: 1px solid color-mix(in srgb, var(--text-muted) 14%, transparent);
  overflow-x: auto;
}

[data-bs-theme="dark"] .a11y-node {
  background: #0F1A35;
  border-color: rgba(255,255,255,0.05);
}

[data-bs-theme="dark"] .a11y-node .selector {
  color: #FFFFFF;
}

[data-bs-theme="dark"] .a11y-node-action {
  background: rgba(15, 23, 42, 0.72);
  border-color: rgba(255,255,255,0.08);
  color: #93c5fd;
}

[data-bs-theme="dark"] .a11y-node-shot {
  background: rgba(15, 23, 42, 0.72);
  border-color: rgba(255,255,255,0.08);
}

[data-bs-theme="dark"] .a11y-code {
  background: #020617;
  color: #F1F5F9;
  border-color: rgba(255,255,255,0.08);
}

.a11y-failure {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text-main);
  background: var(--bg-subtle);
  padding: 1rem 1.25rem;
  border-radius: 8px;
  margin-top: 1rem;
}

[data-bs-theme="dark"] .a11y-failure {
  background: rgba(255,255,255,0.03);
}

/* SCORE PIE */
.score-card {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.score-pie {
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  position: relative;
  background: radial-gradient(closest-side, var(--bg-card) 85%, transparent 0 100%),
              conic-gradient(var(--pie-color) calc(var(--score) * 1%), var(--bg-subtle) 0);
}

.score-text {
  text-align: center;
}

.score-text .value {
  display: block;
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1;
}

.score-text .label {
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
}

.classic-audit-report .dashboard-header {
  margin-top: 2rem;
}

.classic-audit-report .score-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0;
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  height: 100%;
}

.classic-audit-report .score-info-btn {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  border: 1px solid color-mix(in srgb, var(--text-muted) 20%, transparent);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  background: color-mix(in srgb, var(--bg-card) 84%, var(--bg-subtle));
  line-height: 1;
}

.classic-audit-report .score-info-btn:hover {
  color: var(--primary);
  border-color: color-mix(in srgb, var(--primary) 32%, transparent);
  background: var(--primary-subtle);
}

.classic-audit-report .score-pie {
  --pie-color: var(--success);
  width: 168px;
  height: 168px;
  background:
    radial-gradient(circle at center, var(--bg-card) 0 56px, transparent 57px),
    conic-gradient(var(--pie-color) calc(var(--score) * 1%), color-mix(in srgb, var(--bg-subtle) 86%, var(--bg-card)) 0);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--text-muted) 14%, transparent);
}

.classic-audit-report .score-pie.health-low { --pie-color: var(--danger); }
.classic-audit-report .score-pie.health-mid { --pie-color: var(--warning); }
.classic-audit-report .score-pie.health-high { --pie-color: var(--success); }

.classic-audit-report .score-text .value {
  font-size: 2.5rem;
}

.classic-audit-report .score-text .label {
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

.classic-audit-report .score-scale {
  width: 100%;
  max-width: 220px;
}

.classic-audit-report .score-scale-track {
  position: relative;
  height: 9px;
  border-radius: var(--radius-md);
  overflow: hidden;
  display: grid;
  grid-template-columns: 50fr 40fr 10fr;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--text-muted) 12%, transparent);
}

.classic-audit-report .score-scale-track .seg.poor { background: #dc2626; }
.classic-audit-report .score-scale-track .seg.mid { background: #f59e0b; }
.classic-audit-report .score-scale-track .seg.good { background: #16a34a; }

.classic-audit-report .score-marker {
  position: absolute;
  top: -2px;
  width: 3px;
  height: 13px;
  background: var(--text-main);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--bg-card) 70%, transparent);
  border-radius: 2px;
  transform: translateX(-50%);
}

.classic-audit-report .score-scale-legend {
  margin-top: 0.45rem;
  display: flex;
  justify-content: space-between;
  font-size: 0.68rem;
  color: var(--text-muted);
  font-weight: 800;
  letter-spacing: 0.02em;
}

.classic-audit-report .global-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  height: 100%;
}

.classic-audit-report .global-item .lbl {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  margin-bottom: 0.25rem;
}

.classic-audit-report .global-item .val {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-main);
}

.classic-audit-report .site-root-link,
.classic-audit-report .site-sitemap-link {
  font-size: 0.86rem;
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 600;
}

.classic-audit-report .site-root-link:hover,
.classic-audit-report .site-sitemap-link:hover {
  color: var(--primary);
  text-decoration: underline;
}

.classic-audit-report .metric-pill {
  background: var(--bg-subtle);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  cursor: default;
  transition: all 0.2s ease;
}

.classic-audit-report .metric-pill,
.classic-audit-report .metric-pill:link,
.classic-audit-report .metric-pill:visited,
.classic-audit-report .metric-pill:hover,
.classic-audit-report .metric-pill:active {
  text-decoration: none;
  color: var(--text-main);
}

.classic-audit-report .metric-help {
  font-weight: 600;
  opacity: 0.9;
}

.classic-audit-report .metric-pill.clickable {
  cursor: pointer;
  border: 1px solid transparent;
}

.classic-audit-report .metric-pill.clickable:hover {
  background: var(--primary-subtle);
  color: var(--primary);
}

.classic-audit-report .metric-pill.clickable:hover .filter-dot {
  opacity: 0.95;
}

.classic-audit-report .metric-pill.active {
  background: var(--text-main);
  color: var(--bg-card);
}

.classic-audit-report .metric-pill.active .num {
  color: var(--bg-card);
}

.classic-audit-report .metric-pill.active .filter-dot {
  opacity: 1;
  color: var(--bg-card);
}

.classic-audit-report .metric-pill .num {
  font-weight: 800;
  font-size: 1.1rem;
}

.classic-audit-report .metric-pill .txt {
  font-size: 0.8rem;
  font-weight: 600;
  opacity: 0.8;
}

.classic-audit-report .filter-dot {
  margin-left: auto;
  font-size: 0.72rem;
  opacity: 0.35;
  color: var(--text-muted);
}

.classic-audit-report .sev-crit .num { color: var(--danger); }
.classic-audit-report .sev-warn .num { color: var(--warning); }
.classic-audit-report .sev-ok .num { color: var(--success); }

.classic-audit-report .run-insights {
  margin-top: -0.75rem;
}

.classic-audit-report .run-summary-accordion {
  width: 100%;
}

.classic-audit-report .run-summary-toggle {
  width: 100%;
  border: 1px solid color-mix(in srgb, var(--text-muted) 12%, transparent);
  background: color-mix(in srgb, var(--bg-card) 88%, var(--bg-subtle));
  color: var(--text-main);
  border-radius: var(--radius-md);
  padding: 0.65rem 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 800;
  font-size: 0.84rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.classic-audit-report .run-summary-toggle:hover {
  background: color-mix(in srgb, var(--primary-subtle) 65%, var(--bg-card));
}

.classic-audit-report .run-summary-caret {
  transition: transform 0.22s ease;
}

.classic-audit-report .run-summary-toggle[aria-expanded="true"] .run-summary-caret {
  transform: rotate(180deg);
}

.classic-audit-report .insight-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid color-mix(in srgb, var(--text-muted) 12%, transparent);
  padding: 1rem;
}

.classic-audit-report .run-summary-card {
  padding: 0.85rem 0.95rem;
}

.classic-audit-report .run-summary-sections {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.classic-audit-report .run-summary-section {
  padding: 0.55rem 0.65rem;
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--bg-subtle) 58%, var(--bg-card));
  border: 1px solid color-mix(in srgb, var(--text-muted) 10%, transparent);
}

.classic-audit-report .insight-title {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.65rem;
}

.classic-audit-report .insight-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}

.classic-audit-report .insight-grid .k {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.classic-audit-report .insight-grid .v {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
}

.classic-audit-report .delta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.classic-audit-report .delta-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.6rem;
  border-radius: var(--radius-md);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.classic-audit-report .delta-pill.is-good { background: rgba(5, 150, 105, 0.12); color: var(--success); }
.classic-audit-report .delta-pill.is-bad { background: rgba(220, 38, 38, 0.12); color: var(--danger); }
.classic-audit-report .delta-pill.is-flat { background: rgba(100, 116, 139, 0.16); color: var(--text-muted); }

.classic-audit-report .run-meta-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding-top: 0.75rem;
  margin-top: 0.75rem;
  border-top: 1px solid color-mix(in srgb, var(--text-muted) 12%, transparent);
}

.classic-audit-report .run-meta-text {
  color: var(--text-muted);
  font-weight: 600;
}

.classic-audit-report .run-meta-recheck {
  margin: 0;
}

.classic-audit-report .run-recheck-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: var(--radius-md);
  padding-inline: 0.8rem;
}

.classic-audit-report .run-cache-meta {
  font-weight: 500;
}

.classic-audit-report .group-block {
  margin-bottom: 2rem;
}

.classic-audit-report .search-field {
  position: relative;
  width: 100%;
}

.classic-audit-report .toolbar-sticky {
  position: sticky;
  top: 70px;
  z-index: 1000;
  background: color-mix(in srgb, var(--bg-card) 94%, var(--bg-body));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 0.65rem 0.8rem;
  margin-bottom: 1rem;
  border: 1px solid color-mix(in srgb, var(--text-muted) 10%, transparent);
  border-radius: var(--radius-md);
}

.classic-audit-report .toolbar-sticky-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.65rem;
  align-items: center;
}

.classic-audit-report .toolbar-cluster {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}

.classic-audit-report .toolbar-view-mode {
  white-space: nowrap;
}

.classic-audit-report .toolbar-label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.classic-audit-report .toolbar-segmented {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.18rem;
  background: color-mix(in srgb, var(--bg-subtle) 82%, var(--bg-card));
  border: 1px solid color-mix(in srgb, var(--text-muted) 10%, transparent);
  border-radius: var(--radius-md);
}

.classic-audit-report .btn-filter {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text-muted);
  border: 1px solid transparent;
  background: transparent;
  padding: 0.4rem 0.78rem;
  border-radius: calc(var(--radius-md) - 0.125rem);
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.classic-audit-report .btn-filter:hover,
.classic-audit-report .btn-filter:focus-visible {
  background: color-mix(in srgb, var(--bg-card) 88%, transparent);
  color: var(--text-main);
  border-color: color-mix(in srgb, var(--text-muted) 10%, transparent);
}

.classic-audit-report .btn-filter.active {
  background: var(--primary);
  color: #fff;
  border-color: color-mix(in srgb, var(--primary) 78%, #000 8%);
}

.classic-audit-report .toolbar-search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.6rem;
  align-items: center;
  min-width: 0;
}

.classic-audit-report .toolbar-search-shell {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  padding: 0.5rem 0.72rem;
  background: color-mix(in srgb, var(--bg-body) 78%, var(--bg-card));
  border: 1px solid color-mix(in srgb, var(--text-muted) 10%, transparent);
  border-radius: var(--radius-md);
}

.classic-audit-report .search-field i {
  color: var(--text-muted);
}

.classic-audit-report .toolbar-search-shell .form-control {
  min-width: 0;
  border: none;
  background: transparent;
  padding: 0;
  color: var(--text-main);
  box-shadow: none;
}

.classic-audit-report .toolbar-search-shell .form-control::placeholder {
  color: color-mix(in srgb, var(--text-muted) 82%, transparent);
}

.classic-audit-report .toolbar-search-shell .form-control:focus {
  box-shadow: none;
}

.classic-audit-report .toolbar-actions {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-end;
  gap: 0.45rem;
  align-items: center;
  white-space: nowrap;
}

.classic-audit-report .toolbar-page-size {
  min-width: 96px;
  min-height: 2.25rem;
  height: 2.25rem;
  font-size: 0.88rem;
  line-height: 1.1;
  padding-top: 0.45rem;
  padding-bottom: 0.45rem;
  border-radius: var(--radius-md);
  border-color: color-mix(in srgb, var(--text-muted) 10%, transparent);
  background-color: var(--bg-card);
}

.classic-audit-report .toolbar-page-size:focus,
.classic-audit-report .btn-toolbar-action:focus,
.classic-audit-report .btn-toolbar-icon:focus {
  border-color: color-mix(in srgb, var(--primary) 34%, transparent);
  box-shadow: 0 0 0 0.2rem color-mix(in srgb, var(--primary) 14%, transparent);
}

.classic-audit-report .btn-toolbar-action,
.classic-audit-report .btn-toolbar-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.25rem;
  border-radius: var(--radius-md);
  border: 1px solid color-mix(in srgb, var(--text-muted) 12%, transparent);
  background: var(--bg-card);
  color: var(--text-main);
  font-weight: 700;
  font-size: 0.88rem;
  line-height: 1.1;
  padding: 0.45rem 0.8rem;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.classic-audit-report .btn-toolbar-action:hover,
.classic-audit-report .btn-toolbar-action:focus-visible,
.classic-audit-report .btn-toolbar-icon:hover,
.classic-audit-report .btn-toolbar-icon:focus-visible {
  color: var(--primary);
  border-color: color-mix(in srgb, var(--primary) 26%, transparent);
  background: color-mix(in srgb, var(--bg-card) 92%, var(--primary-subtle));
  transform: translateY(-1px);
}

.classic-audit-report .btn-toolbar-primary {
  color: #fff;
  background: linear-gradient(180deg, color-mix(in srgb, var(--primary) 90%, #fff 10%), var(--primary));
  border-color: color-mix(in srgb, var(--primary) 84%, #000 10%);
}

.classic-audit-report .btn-toolbar-primary:hover,
.classic-audit-report .btn-toolbar-primary:focus-visible {
  color: #fff;
  background: linear-gradient(180deg, color-mix(in srgb, var(--primary-hover) 86%, #fff 8%), var(--primary-hover));
  border-color: color-mix(in srgb, var(--primary-hover) 84%, #000 10%);
}

.classic-audit-report .btn-toolbar-icon {
  width: 2.25rem;
  padding-inline: 0;
}

.classic-audit-report .toolbar-expand {
  justify-self: end;
}

.classic-audit-report .results-wrapper {
  display: flex;
  flex-direction: column;
}

.classic-audit-report .group-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-muted);
  padding: 1.5rem 0 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.classic-audit-report .result-row {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin-bottom: 0.5rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.classic-audit-report .result-row:hover {
  border-color: color-mix(in srgb, var(--primary) 35%, var(--border-subtle));
  box-shadow: var(--shadow-sm);
}

.classic-audit-report .accordion-button {
  padding: 1.25rem 1.5rem !important;
  background: transparent !important;
  box-shadow: none !important;
  color: inherit !important;
}

.classic-audit-report .accordion-button::after {
  background-size: 1rem;
  margin-inline-start: 1rem;
}

.classic-audit-report .accordion-body {
  padding: 0 1.5rem 1.5rem 1.5rem !important;
  background: transparent !important;
  border-top: none !important;
}

.classic-audit-report .detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  padding-top: 1rem;
}

.classic-audit-report .detail-section h6 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.classic-audit-report .kv-row {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.25rem;
}

.classic-audit-report .kv-key {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.classic-audit-report .kv-val {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-main);
  word-break: break-word;
}

.classic-audit-report .row-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 1.5rem;
  align-items: center;
  width: 100%;
}

.classic-audit-report .cell-main {
  min-width: 0;
}

.classic-audit-report .page-title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-main);
}

.classic-audit-report .page-link {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-decoration: none;
}

.classic-audit-report .page-link:hover {
  color: var(--primary);
}

.classic-audit-report .cell-status {
  align-items: center;
}

.classic-audit-report .badge-status {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.classic-audit-report .badge-status.is-crit {
  background: rgba(220, 38, 38, 0.12);
  color: var(--danger);
}

.classic-audit-report .badge-status.is-warn {
  background: rgba(217, 119, 6, 0.12);
  color: var(--warning);
}

.classic-audit-report .badge-status.is-ok {
  background: rgba(5, 150, 105, 0.12);
  color: var(--success);
}

.classic-audit-report .cell-matrix {
  display: flex;
  gap: 1rem;
  padding-left: 1.5rem;
  border-left: 1px solid var(--border-subtle);
}

.classic-audit-report .m-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: help;
  transition: transform 0.2s ease;
}

.classic-audit-report .m-box:hover {
  transform: translateY(-2px);
}

.classic-audit-report .m-box span {
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
}

.classic-audit-report .matrix-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  transition: box-shadow 0.2s ease, opacity 0.2s ease;
}

.classic-audit-report .matrix-dot.is-ok {
  background: var(--success);
  opacity: 0.4;
}

.classic-audit-report .m-box:hover .matrix-dot.is-ok {
  opacity: 1;
  box-shadow: 0 0 8px color-mix(in srgb, var(--success) 55%, transparent);
}

.classic-audit-report .matrix-dot.is-err {
  background: var(--danger);
  box-shadow: 0 0 6px rgba(220, 38, 38, 0.3);
}

.classic-audit-report .matrix-dot.is-neutral {
  background: #94a3b8;
  opacity: 0.6;
  box-shadow: none;
}

[data-bs-theme="dark"] .classic-audit-report .matrix-dot.is-neutral {
  background: #64748b;
}

.classic-audit-report .results-footer {
  margin-top: 1rem;
  padding: 0.95rem 1rem 0.85rem;
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--bg-card) 88%, var(--bg-subtle));
  border: 1px solid color-mix(in srgb, var(--text-muted) 12%, transparent);
  box-shadow: var(--shadow-sm);
}

.classic-audit-report .results-meta {
  font-weight: 600;
}

.classic-audit-report .results-pagination {
  margin-top: 0.75rem;
}

.classic-audit-report .results-pagination .pagination {
  gap: 0.25rem;
  flex-wrap: wrap;
}

.classic-audit-report .results-pagination .page-link {
  border-radius: 8px;
  color: var(--text-main);
}

.classic-audit-report .results-pagination .page-item.active .page-link {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.score-modal .modal-content {
  background: var(--bg-card);
  color: var(--text-main);
  border-radius: var(--radius-md);
  border: 1px solid color-mix(in srgb, var(--text-muted) 12%, transparent);
  box-shadow: var(--shadow-md);
}

.score-modal .modal-header,
.score-modal .modal-footer {
  border-color: color-mix(in srgb, var(--text-muted) 12%, transparent);
}

.score-formula {
  color: var(--text-muted);
  font-weight: 600;
}

.score-factor-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.score-factor-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(140px, 2fr) auto;
  gap: 0.8rem;
  align-items: center;
  padding: 0.7rem 0.8rem;
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--bg-card) 86%, var(--bg-subtle));
}

.factor-label span {
  display: block;
  font-weight: 700;
}

.factor-label small {
  color: var(--text-muted);
}

.factor-bar-wrap {
  height: 10px;
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--text-muted) 12%, transparent);
  overflow: hidden;
}

.factor-bar {
  height: 100%;
  border-radius: var(--radius-md);
  background: linear-gradient(90deg, color-mix(in srgb, var(--warning) 80%, var(--danger)), var(--danger));
}

.factor-impact {
  font-weight: 800;
  color: var(--danger);
}

.score-breakdown-foot {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-weight: 700;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .a11y-page-list .row-grid { grid-template-columns: 1fr; gap: 0.6rem; }
  .a11y-page-list .page-title { white-space: normal; overflow: visible; text-overflow: clip; }
  .a11y-page-list .page-row-issues { justify-content: flex-start; }
  .a11y-node-head { flex-direction: column; }
  .a11y-node-actions { justify-content: flex-start; }
  .a11y-top-rule-summary-head,
  .a11y-top-rule-head { grid-template-columns: 1fr; }
  .a11y-top-rule-summary-meta,
  .a11y-top-rule-metrics { justify-content: flex-start; }
  .a11y-report-shell .summary-card-grid { grid-template-columns: 1fr; }
  .score-factor-row { grid-template-columns: 1fr; }
}

@media (max-width: 991.98px) {
  .help-page .help-toc {
    position: static !important;
  }

  .classic-audit-report .run-summary-sections {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  .classic-audit-report .toolbar-sticky-inner {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .classic-audit-report .toolbar-search-form {
    grid-template-columns: 1fr;
  }

  .classic-audit-report .toolbar-actions,
  .classic-audit-report .toolbar-expand {
    justify-content: flex-start;
    justify-self: start;
  }

  .classic-audit-report .row-grid {
    grid-template-columns: 1fr;
  }

  .classic-audit-report .cell-status,
  .classic-audit-report .cell-matrix {
    display: none !important;
  }

  .classic-audit-report .detail-grid,
  .classic-audit-report .insight-grid {
    grid-template-columns: 1fr;
  }

  .classic-audit-report .run-meta-note {
    align-items: flex-start;
  }
}

@media (max-width: 575.98px) {
  .classic-audit-report .toolbar-sticky {
    top: 64px;
    padding: 0.72rem;
  }

  .classic-audit-report .toolbar-view-mode {
    flex-direction: column;
    align-items: flex-start;
  }

  .classic-audit-report .toolbar-segmented {
    width: 100%;
  }

  .classic-audit-report .btn-filter {
    flex: 1 1 0;
  }

  .classic-audit-report .toolbar-actions {
    width: 100%;
    flex-wrap: wrap;
    white-space: normal;
  }
}

@media (max-width: 479.98px) {
  .classic-audit-report .toolbar-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .classic-audit-report .toolbar-page-size {
    grid-column: 1 / -1;
    width: 100%;
  }

  .classic-audit-report .btn-toolbar-action,
  .classic-audit-report .btn-toolbar-icon {
    width: 100%;
  }
}
