:root {
  color-scheme: light;

  --bg: #FAFBFC;
  --bg-tint: #F4F6FA;
  --surface: #FFFFFF;
  --surface-2: #F4F6FA;
  --surface-3: #EDF0F6;
  --text: #0B0F19;
  --text-strong: #05070D;
  --strong: var(--text-strong);
  --muted: #5B6472;
  --muted-2: #868E9E;
  --line: #E6E9EF;
  --line-2: #D6DBE6;

  --accent: #2E6BFF;
  --accent-strong: #1B4FD6;
  --accent-weak: rgba(46, 107, 255, .10);
  --accent-soft: rgba(46, 107, 255, .16);
  --accent-glow: rgba(46, 107, 255, .35);
  --on-accent: #FFFFFF;

  --success: #147A56;
  --success-weak: rgba(31, 169, 113, .12);
  --warning: #8A5A00;
  --warning-weak: rgba(181, 121, 10, .12);
  --danger: #B42318;
  --danger-weak: rgba(224, 72, 61, .12);

  --shadow-sm: 0 1px 2px rgba(11, 15, 25, .06);
  --shadow: 0 8px 30px rgba(11, 15, 25, .08);
  --shadow-lg: 0 24px 64px rgba(11, 15, 25, .12);
  --ring: 0 0 0 4px var(--accent-weak);

  --radius: 16px;
  --radius-sm: 10px;
  --radius-pill: 999px;

  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "JetBrains Mono", SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  --max: 1120px;
}

:root[data-theme="dark"] {
  color-scheme: dark;

  --bg: #0B0F17;
  --bg-tint: #0E1420;
  --surface: #141B26;
  --surface-2: #1A2230;
  --surface-3: #212B3B;
  --text: #E6EAF2;
  --text-strong: #F5F7FB;
  --strong: var(--text-strong);
  --muted: #9AA4B5;
  --muted-2: #6D7788;
  --line: #232C3A;
  --line-2: #2E3A4C;

  --accent: #5B8CFF;
  --accent-strong: #7BA4FF;
  --accent-weak: rgba(91, 140, 255, .14);
  --accent-soft: rgba(91, 140, 255, .22);
  --accent-glow: rgba(91, 140, 255, .30);
  --on-accent: #0B0F17;

  --success: #3DD68C;
  --success-weak: rgba(61, 214, 140, .14);
  --warning: #E0A22E;
  --warning-weak: rgba(224, 162, 46, .14);
  --danger: #F0645A;
  --danger-weak: rgba(240, 100, 90, .14);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow: 0 8px 30px rgba(0, 0, 0, .45);
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, .55);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;

    --bg: #0B0F17;
    --bg-tint: #0E1420;
    --surface: #141B26;
    --surface-2: #1A2230;
    --surface-3: #212B3B;
    --text: #E6EAF2;
    --text-strong: #F5F7FB;
    --strong: var(--text-strong);
    --muted: #9AA4B5;
    --muted-2: #6D7788;
    --line: #232C3A;
    --line-2: #2E3A4C;

    --accent: #5B8CFF;
    --accent-strong: #7BA4FF;
    --accent-weak: rgba(91, 140, 255, .14);
    --accent-soft: rgba(91, 140, 255, .22);
    --accent-glow: rgba(91, 140, 255, .30);
    --on-accent: #0B0F17;

    --success: #3DD68C;
    --success-weak: rgba(61, 214, 140, .14);
    --warning: #E0A22E;
    --warning-weak: rgba(224, 162, 46, .14);
    --danger: #F0645A;
    --danger-weak: rgba(240, 100, 90, .14);

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow: 0 8px 30px rgba(0, 0, 0, .45);
    --shadow-lg: 0 24px 64px rgba(0, 0, 0, .55);
  }
}

* { box-sizing: border-box; }
html {
  overflow-x: clip;
  scroll-behavior: smooth;
}
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
body {
  margin: 0;
  overflow-x: clip;
  font-family: var(--font-sans);
  font-feature-settings: "cv05", "ss01", "tnum";
  color: var(--text);
  line-height: 1.55;
  background:
    radial-gradient(880px 460px at 50% -8%, var(--accent-weak), transparent 70%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  transition: color .15s ease;
}

code {
  font-family: var(--font-mono);
  font-size: .88em;
  background: var(--surface-3);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: .12rem .4rem;
  color: var(--text);
}

:where(a, button, input, textarea, [tabindex]):focus-visible {
  outline: none;
  box-shadow: var(--ring);
  border-radius: var(--radius-sm);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 100;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus {
  left: 16px;
  box-shadow: var(--ring);
}

.site-header,
.shell,
.site-footer {
  width: min(var(--max), calc(100% - 32px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 14px 0;
}
.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.site-header::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  z-index: -1;
  pointer-events: none;
  background: rgba(250, 251, 252, .88);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(11, 15, 25, .02);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
}
:root[data-theme="dark"] .site-header::before {
  background: rgba(11, 15, 23, .82);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .02);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .site-header::before {
    background: rgba(11, 15, 23, .82);
    box-shadow: 0 1px 0 rgba(255, 255, 255, .02);
  }
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
  text-decoration: none;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  color: var(--on-accent);
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  box-shadow: 0 4px 14px var(--accent-glow);
  font-weight: 800;
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 14px;
}
.nav a,
.footer-links a {
  text-decoration: none;
}
.nav a {
  position: relative;
  padding: 4px 0;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -2px;
  height: 2px;
  background: var(--accent);
  transition: right .18s ease;
}
.nav a:hover,
.footer-links a:hover {
  color: var(--text-strong);
}
.nav a:hover::after {
  right: 0;
}
.theme-toggle {
  min-height: 42px;
  min-width: 42px;
  padding: 0;
  border-radius: 999px;
  flex: 0 0 auto;
}
.theme-toggle span[aria-hidden="true"] {
  font-size: 18px;
  line-height: 1;
}

.hero {
  position: relative;
  isolation: isolate;
  width: min(980px, calc(100% - 32px));
  margin: 56px auto 28px;
  text-align: center;
}
.hero::before {
  content: "";
  position: absolute;
  top: -40px;
  bottom: -10px;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(46, 107, 255, .06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(46, 107, 255, .06) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(620px 360px at 50% 30%, #000 0%, transparent 75%);
  mask-image: radial-gradient(620px 360px at 50% 30%, #000 0%, transparent 75%);
}
:root[data-theme="dark"] .hero::before {
  background-image:
    linear-gradient(to right, rgba(91, 140, 255, .08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(91, 140, 255, .08) 1px, transparent 1px);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .hero::before {
    background-image:
      linear-gradient(to right, rgba(91, 140, 255, .08) 1px, transparent 1px),
      linear-gradient(to bottom, rgba(91, 140, 255, .08) 1px, transparent 1px);
  }
}
.hero--tool { margin-top: 34px; }

.eyebrow,
.tool-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-strong);
  background: var(--accent-weak);
  border: 1px solid var(--accent-soft);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}
.section-heading > .eyebrow,
.split .eyebrow {
  color: var(--muted);
  background: var(--surface-2);
  border-color: var(--line);
}

h1,
h2,
h3 {
  line-height: 1.08;
  letter-spacing: 0;
  margin: 0;
  color: var(--text-strong);
}
h1 {
  max-width: 18ch;
  margin: 14px auto 18px;
  font-size: clamp(2.25rem, 5vw, 3.5rem);
}
h2 {
  margin: 8px 0 14px;
  font-size: clamp(1.875rem, 3.2vw, 2.5rem);
}
h3 {
  margin: 8px 0;
  font-size: 1.1875rem;
}
.hero-copy {
  max-width: 60ch;
  margin: 0 auto 26px;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.125rem);
}
.report-hero .hero-copy {
  margin-left: 0;
  margin-right: 0;
}

.scanner-card {
  max-width: 820px;
  margin: 30px auto 0;
  padding: 16px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  text-align: left;
}
.scanner-card--compact { max-width: 720px; }
.scanner-label {
  display: block;
  margin: 0 0 8px 4px;
  font-weight: 600;
  color: var(--text-strong);
  font-size: 13px;
}
.input-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}
input[type="url"],
input[type="text"],
input[type="password"],
input[type="number"],
input[type="month"],
select,
textarea {
  width: 100%;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  padding: 15px 16px;
  font: inherit;
  color: var(--text);
  background: var(--surface);
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: var(--ring);
}
textarea {
  resize: vertical;
  min-height: 160px;
  line-height: 1.5;
}
form[data-monitor-form] {
  display: grid;
  gap: 12px;
}

button,
.button-secondary {
  appearance: none;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 14px 20px;
  font: inherit;
  font-weight: 700;
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  text-decoration: none;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: var(--on-accent);
  box-shadow: 0 6px 18px var(--accent-glow);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease, color .15s ease;
}
button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 26px var(--accent-glow);
}
button:active { transform: translateY(0); }
button:disabled {
  opacity: .6;
  cursor: wait;
  box-shadow: none;
}
.button-secondary,
.action-row .button-secondary,
.action-row button.button-secondary {
  background: var(--surface);
  color: var(--text-strong);
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow-sm);
}
.button-secondary:hover {
  border-color: var(--accent);
  color: var(--accent-strong);
  box-shadow: none;
  transform: none;
}
.button-secondary--small {
  min-height: auto;
  padding: 9px 12px;
  font-size: 13px;
}
.recent-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: stretch;
}
.recent-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-2);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  font-weight: 700;
}
.recent-chip strong {
  font-size: 14px;
}
.recent-chip span {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  font-size: 13px;
}
.recent-chip:hover {
  border-color: var(--accent);
  color: var(--accent-strong);
}

.form-help,
.muted {
  color: var(--muted);
  font-size: 14px;
}
.form-help { margin: 10px 4px 0; }
.scan-status {
  margin-top: 12px;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid var(--line);
}
.scan-status--info {
  background: var(--accent-weak);
  border-color: var(--accent-soft);
  color: var(--accent-strong);
}
.scan-status--success {
  background: var(--success-weak);
  border-color: rgba(31, 169, 113, .25);
  color: var(--success);
}
.scan-status--error {
  background: var(--danger-weak);
  border-color: rgba(224, 72, 61, .25);
  color: var(--danger);
}
.scan-status--progress {
  display: grid;
  gap: 10px;
}
.status-card {
  display: grid;
  gap: 8px;
}
.status-card p {
  margin: 0;
}
.status-card__detail {
  color: var(--muted);
  font-weight: 500;
}
.status-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.scan-progress {
  height: 8px;
  border-radius: var(--radius-pill);
  background: var(--accent-weak);
  overflow: hidden;
}
.scan-progress__bar {
  display: block;
  height: 100%;
  width: 6%;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  transition: width .24s ease;
}
.scan-progress__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.scan-progress__time {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}
.result-box {
  margin-top: 14px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px;
}
.result-box p {
  margin: 8px 0 0;
}
.result-code {
  display: block;
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  overflow-x: auto;
}
.admin-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}
.api-admin-panel {
  margin-top: 0;
  max-width: none;
}
.api-admin-panel--wide {
  grid-column: 1 / -1;
}
.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.admin-inline-fields,
.admin-check-grid {
  display: grid;
  gap: 12px;
}
.admin-inline-fields {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.admin-check-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.admin-check-grid label,
.admin-checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0 14px;
  background: var(--surface-2);
  font-weight: 600;
}
.admin-checkbox-row {
  margin-top: 12px;
}
.admin-check-grid input,
.admin-checkbox-row input {
  width: 16px;
  height: 16px;
  margin: 0;
}
.table-scroll {
  margin-top: 14px;
  overflow-x: auto;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 920px;
  font-size: 14px;
}
.data-table th,
.data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  text-align: left;
}
.data-table th {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
}
.data-table tbody tr:hover {
  background: var(--surface-2);
}
.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  min-height: 28px;
  padding: 0 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: var(--surface-2);
  font-size: 12px;
  font-weight: 700;
}
.status-pill--active {
  color: var(--success);
  background: var(--success-weak);
  border-color: rgba(31, 169, 113, .22);
}
.status-pill--disabled {
  color: var(--danger);
  background: var(--danger-weak);
  border-color: rgba(224, 72, 61, .22);
}
.status-pill--pending_confirmation,
.status-pill--pending {
  color: var(--warning);
  background: var(--warning-weak);
  border-color: rgba(181, 121, 10, .22);
}
.status-pill--unsubscribed,
.status-pill--failed,
.status-pill--error {
  color: var(--danger);
  background: var(--danger-weak);
  border-color: rgba(224, 72, 61, .22);
}
.status-pill--success,
.status-pill--sent {
  color: var(--success);
  background: var(--success-weak);
  border-color: rgba(31, 169, 113, .22);
}
.empty-state {
  margin: 0;
  color: var(--muted);
}
.try-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 18px;
  color: var(--muted);
  font-size: 14px;
}
.try-row button {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line-2);
  box-shadow: none;
  min-height: auto;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-family: var(--font-mono);
  font-size: 12px;
}
.try-row button:hover {
  border-color: var(--accent);
  color: var(--accent-strong);
  transform: none;
  box-shadow: none;
}
.compare-inputs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.section { padding: 56px 0; }
.section-heading {
  max-width: 720px;
  margin-bottom: 24px;
}
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}
.tool-grid,
.link-grid,
.metrics-grid,
.report-grid {
  display: grid;
  gap: 14px;
}
.split > *,
.tool-grid > *,
.link-grid > *,
.metrics-grid > *,
.report-grid > *,
.tech-groups > * {
  min-width: 0;
}
.tool-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.metrics-grid {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}
.link-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.report-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.tool-card,
.task-card,
.mini-report,
.metric,
.report-panel,
.tech-group,
.issue,
.comparison-table {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  min-width: 0;
  max-width: 100%;
}
.tool-card {
  position: relative;
  display: block;
  overflow: hidden;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.tool-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
}
.tool-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--line-2);
}
.tool-card:hover::before { transform: scaleX(1); }
.tool-card p,
.task-card p,
.report-panel p {
  color: var(--muted);
}
.check-list { padding-left: 1.1rem; }
.check-list li { margin: 9px 0; }
.hero-copy,
.section p,
.section li,
.section h2,
.section h3,
.task-card,
.mini-report {
  overflow-wrap: anywhere;
}
.link-grid a {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-weight: 600;
  text-decoration: none;
  font-size: 14px;
  transition: border-color .15s ease, color .15s ease;
}
.link-grid a:hover {
  border-color: var(--accent);
  color: var(--accent-strong);
}

.report-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  padding: 44px 0 18px;
}
.report-hero a,
.details-list dd,
.tech-item code,
.redirect-list span {
  overflow-wrap: anywhere;
  word-break: break-word;
}
.report-hero h1 {
  margin-left: 0;
  margin-right: 0;
  font-size: clamp(2rem, 4.2vw, 3.25rem);
}
.score-card {
  min-width: 260px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  color: var(--text-strong);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.score-card__copy p {
  margin: 10px 0 0;
}
.score-card span {
  display: block;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: .12em;
  font-family: var(--font-mono);
  color: var(--muted);
}
.score-card strong {
  display: block;
  font-size: 40px;
  margin-top: 8px;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
  color: var(--text-strong);
}
.score-card strong small {
  font-size: .45em;
  color: var(--muted);
}
.score-card--low {
  border-color: rgba(240, 100, 90, .28);
  box-shadow: 0 18px 42px rgba(240, 100, 90, .12);
}
.score-card--med {
  border-color: rgba(224, 162, 46, .28);
  box-shadow: 0 18px 42px rgba(224, 162, 46, .12);
}
.score-card--high {
  border-color: rgba(61, 214, 140, .28);
  box-shadow: 0 18px 42px rgba(61, 214, 140, .12);
}
.score-donut {
  width: 118px;
  height: 118px;
  overflow: visible;
}
.score-donut__track,
.score-donut__value {
  fill: none;
  stroke-width: 12;
}
.score-donut__track {
  stroke: var(--surface-3);
}
.score-donut__value {
  stroke-linecap: round;
}
.score-donut__value--low { stroke: var(--danger); }
.score-donut__value--med { stroke: var(--warning); }
.score-donut__value--high { stroke: var(--success); }
.score-donut__num,
.score-donut__label {
  fill: var(--text-strong);
  text-anchor: middle;
  font-family: var(--font-sans);
}
.score-donut__num {
  font-size: 28px;
  font-weight: 800;
  dominant-baseline: central;
}
.score-donut__label {
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  fill: var(--muted);
}
.score-pill {
  display: inline-flex;
  gap: 8px;
  align-items: baseline;
  font-weight: 700;
  color: var(--accent-strong);
  background: var(--accent-weak);
  border: 1px solid var(--accent-soft);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
}
.score-pill strong { font-variant-numeric: tabular-nums; }
.action-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 8px auto 18px;
}

.metric { position: relative; }
.metric-icon {
  position: absolute;
  top: 16px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  color: var(--accent-strong);
  background: var(--accent-weak);
  border: 1px solid var(--accent-soft);
}
.metric-icon svg { width: 19px; height: 19px; }
.metric-label {
  display: block;
  padding-right: 46px;
  color: var(--muted);
  font-size: 12px;
  font-family: var(--font-mono);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.metric strong {
  display: block;
  font-size: 30px;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
  color: var(--text-strong);
}
.fix-list { padding-left: 1.2rem; }
.fix-list li { margin: 0 0 18px; }
.fix-progress {
  margin: 0 0 14px;
  font-weight: 600;
}
.fix-item {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  list-style: none;
  padding: 14px 0 0;
  margin: 0 0 16px;
  border-top: 1px solid var(--line);
}
.fix-item:first-child {
  border-top: 0;
  padding-top: 0;
}
.fix-item__toggle {
  display: inline-flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 2px;
}
.fix-item__toggle input {
  width: 18px;
  height: 18px;
  margin: 0;
}
.fix-item.is-checked .fix-item__body strong,
.fix-item.is-checked .fix-item__body p {
  opacity: .7;
}
.fix-item.is-checked .fix-item__body strong {
  text-decoration: line-through;
}
.fix-item__body {
  min-width: 0;
}
.fix-list p {
  color: var(--muted);
  margin: 5px 0;
}
.fix-list small {
  color: var(--accent-strong);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  font-family: var(--font-mono);
  font-size: 11px;
}
.breakdown {
  display: grid;
  gap: 14px;
}
.dim {
  display: grid;
  grid-template-columns: 150px 1fr 54px;
  align-items: center;
  gap: 12px;
}
.breakdown strong {
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.dim-bar {
  position: relative;
  width: 100%;
  height: 12px;
  border-radius: var(--radius-pill);
  background: var(--surface-3);
  overflow: hidden;
}
.dim-bar__fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
}
.dim-bar__fill--low { background: linear-gradient(90deg, #D1493F, var(--danger)); }
.dim-bar__fill--med { background: linear-gradient(90deg, #B5790A, var(--warning)); }
.dim-bar__fill--high { background: linear-gradient(90deg, #1FA971, var(--success)); }

.tech-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.tech-item {
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin-top: 14px;
}
.tech-item ul {
  padding-left: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}
.tech-item li {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 8px;
  align-items: start;
}
.tech-item li span {
  color: var(--muted);
  font-size: 13px;
}
.confidence {
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-pill);
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  font-family: var(--font-mono);
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--muted);
}
.confidence--high {
  background: var(--success-weak);
  color: var(--success);
  border-color: rgba(31, 169, 113, .25);
}
.confidence--medium {
  background: var(--accent-weak);
  color: var(--accent-strong);
  border-color: var(--accent-soft);
}
.confidence--low,
.confidence--tentative {
  background: var(--warning-weak);
  color: var(--warning);
  border-color: rgba(181, 121, 10, .25);
}
.version-badge,
.status-flag {
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-pill);
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  font-family: var(--font-mono);
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--text-strong);
  text-transform: uppercase;
}
.status-flag--warn {
  background: var(--warning-weak);
  color: var(--warning);
  border-color: rgba(181, 121, 10, .25);
}

.details-list {
  display: grid;
  gap: 10px;
  margin: 0;
}
.details-list div {
  display: grid;
  grid-template-columns: 135px 1fr;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}
.details-list dt {
  color: var(--muted);
  font-weight: 600;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .03em;
}
.details-list dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.redirect-list { padding-left: 1.2rem; }
.redirect-list li {
  margin-bottom: 10px;
  display: grid;
  gap: 3px;
  overflow-wrap: anywhere;
}
.issue-list {
  display: grid;
  gap: 12px;
}
.issue { border-left: 3px solid var(--line-2); }
.issue--high,
.issue--critical { border-left-color: var(--danger); }
.issue--medium,
.issue--warning { border-left-color: var(--warning); }
.issue--low,
.issue--info { border-left-color: var(--accent); }
.issue div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.issue div:first-child span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  font-family: var(--font-mono);
}
.issue p {
  margin: 8px 0 0;
  color: var(--muted);
}
.issue-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.issue-meta code {
  font-size: 12px;
}
.report-nav {
  position: sticky;
  top: 56px;
  z-index: 40;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 auto 22px;
  padding: 10px 0;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.report-nav a {
  border: 1px solid var(--line-2);
  background: var(--surface);
  color: var(--text-strong);
  border-radius: var(--radius-pill);
  padding: 8px 15px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
}
.report-nav a:hover {
  border-color: var(--accent);
  color: var(--accent-strong);
}
.report-nav a.is-current {
  border-color: var(--accent);
  background: var(--accent-weak);
  color: var(--accent-strong);
}
[id^="report-"] { scroll-margin-top: 140px; }

.coverage-note {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--line-2);
  font-size: 13px;
  line-height: 1.55;
}
.issue-count {
  margin: 8px 0 4px;
  font-size: 13px;
}
.scan-progress__note {
  margin: 8px 0 0;
  font-size: 13px;
}
.trend-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  flex-wrap: wrap;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 18px 20px;
}
.trend-copy { min-width: 220px; }
.trend-value {
  margin: 6px 0 4px;
  font-size: 30px;
  font-weight: 800;
  color: var(--text-strong);
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.trend-value small { font-size: 15px; color: var(--muted); font-weight: 600; }
.trend-delta {
  font-size: 13px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  background: var(--surface-2);
}
.trend-delta--high { color: var(--success); }
.trend-delta--low { color: var(--danger); }
.trend-delta--med { color: var(--muted); }
.trend-spark {
  width: 320px;
  max-width: 100%;
  height: 56px;
}
.sitejson-title {
  font-weight: 700;
  color: var(--text-strong);
  margin: 0 0 10px;
}
.sitejson-swatch {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  border: 1px solid var(--line-2);
  vertical-align: middle;
}
.issue-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 16px;
}
.chip {
  appearance: none;
  min-height: auto;
  border: 1px solid var(--line-2);
  background: var(--surface);
  color: var(--text-strong);
  border-radius: var(--radius-pill);
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: none;
}
.chip span {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.chip:hover {
  border-color: var(--accent);
  color: var(--accent-strong);
  transform: none;
}
.chip.is-active {
  background: var(--accent-weak);
  border-color: var(--accent-soft);
  color: var(--accent-strong);
}
.chip.is-active span { color: var(--accent-strong); }
.to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  min-height: auto;
  padding: 10px 16px;
  font-size: 13px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow);
}
.to-top[hidden] { display: none; }
.sitejson-panel {
  display: grid;
  gap: 14px;
  justify-items: start;
}
.perf-intel-panel {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}
.perf-intel-result[hidden] { display: none; }
.perf-intel-result {
  display: grid;
  gap: 14px;
}
.wp-detail-list {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 10px;
}
.sitejson-result[hidden] { display: none; }
.sitejson-result {
  display: grid;
  gap: 14px;
  width: 100%;
}
.sitejson-metrics {
  margin: 0;
}
.sitejson-shot {
  margin: 0;
  max-width: 520px;
}
.sitejson-shot img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}
.sitejson-shot figcaption {
  margin-top: 6px;
  font-size: 13px;
}
.sitejson-shot[hidden] { display: none; }
.bulk-results {
  margin-top: 16px;
}
.bulk-summary {
  margin: 0 0 12px;
  color: var(--muted);
}
.bulk-row--failed td {
  background: var(--danger-weak);
}
.bulk-url,
.compare-card__url {
  overflow-wrap: anywhere;
  word-break: break-word;
}
.bulk-score {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}
.compare-results {
  margin-top: 20px;
}
.compare-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.compare-card,
.compare-panel {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}
.compare-card--winner {
  border-color: var(--accent);
  box-shadow: 0 12px 28px var(--accent-weak);
}
.compare-card--error {
  border-color: rgba(240, 100, 90, .24);
}
.compare-card__url {
  margin: 8px 0 12px;
  color: var(--muted);
}
.compare-score {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  margin: 4px 0 10px;
}
.compare-score strong {
  font-size: 34px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.compare-score span {
  color: var(--muted);
  font-size: 14px;
}
.compare-panel {
  margin-top: 14px;
}
.compare-panel h3 {
  margin-bottom: 14px;
}
.compare-rows {
  display: grid;
  gap: 10px;
}
.compare-row {
  display: grid;
  grid-template-columns: 1.1fr .6fr .8fr .6fr;
  gap: 10px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}
.compare-row:first-child {
  border-top: 0;
  padding-top: 0;
}
.compare-row strong,
.compare-row em {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.compare-row em {
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
}
.compare-tech-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.compare-tech-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 8px;
}
.compare-tech-list li:first-child {
  border-top: 0;
  padding-top: 0;
}
.compare-presence {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 76px;
  min-height: 28px;
  padding: 0 10px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  border: 1px solid var(--line);
  background: var(--surface);
}
.compare-presence--both {
  border-color: var(--accent-soft);
  background: var(--accent-weak);
  color: var(--accent-strong);
}
.compare-presence--a,
.compare-presence--b {
  color: var(--muted);
}
.mini-report--example .button-secondary {
  margin-top: 8px;
}
.comparison-table {
  display: grid;
  gap: 0;
  padding: 0;
  overflow: hidden;
}
.comparison-table > div {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 1px;
  background: var(--line);
}
.comparison-table > div > * {
  background: var(--surface);
  padding: 14px;
}
.comparison-table > div:first-child > * {
  background: var(--surface-2);
  font-weight: 600;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
  padding: 34px 0 46px;
  margin-top: 56px;
  color: var(--muted);
  font-size: 14px;
}
.footer-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.footer-links a { text-decoration: none; }

/* Tablet tier: between the multi-column desktop layout and the 860px single-column
   collapse, tighten the 8-item header nav, action row, and report nav so the
   600–1024px band is not awkward, and guarantee comfortable tap targets. */
@media (min-width: 861px) and (max-width: 1024px) {
  .nav {
    flex-wrap: wrap;
    gap: 12px 16px;
  }
  .nav a { font-size: 14px; }
  .action-row { gap: 8px; }
  .report-nav a,
  .chip {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
  }
  .trend-card { padding: 16px; }
}

@media (max-width: 860px) {
  .site-header,
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
  /* The mobile header is a taller flex column, so a fixed sticky offset for the
     report nav would either overlap it or leave a gap — keep it in flow here. */
  .report-nav {
    position: static;
    top: auto;
  }
  [id^="report-"] { scroll-margin-top: 90px; }
  .trend-card { flex-direction: column; align-items: flex-start; }
  .site-header { gap: 12px; }
  .header-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }
  .nav {
    width: 100%;
    flex-wrap: wrap;
    gap: 16px;
    overflow-x: visible;
    padding-bottom: 2px;
  }
  .nav a { flex: 0 1 auto; }
  .hero {
    margin-top: 38px;
  }
  .input-row,
  .compare-inputs,
  .split,
  .admin-grid,
  .admin-inline-fields,
  .report-hero,
  .tool-grid,
  .link-grid,
  .admin-check-grid,
  .metrics-grid,
  .report-grid,
  .tech-groups,
  .compare-grid {
    grid-template-columns: 1fr;
  }
  .input-row button { width: 100%; }
  .comparison-table { overflow-x: auto; }
  .comparison-table > div { min-width: 720px; }
  .data-table { min-width: 760px; }
  .details-list div,
  .dim,
  .compare-row,
  .tech-item li {
    grid-template-columns: 1fr;
  }
  .breakdown strong,
  .compare-row strong,
  .compare-row em {
    text-align: left;
  }
  .recent-row {
    flex-direction: column;
  }
  .recent-chip,
  .theme-toggle {
    width: 100%;
  }
  .score-card {
    width: 100%;
    min-width: 0;
    grid-template-columns: 1fr;
  }
  .action-row > * {
    width: 100%;
  }
  .button-secondary--small,
  .try-row button {
    min-height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  .site-header,
  .site-footer,
  .action-row,
  .report-nav,
  .to-top,
  .scanner-card,
  .try-row {
    display: none !important;
  }
  .hero::before,
  .site-header::before {
    display: none !important;
  }
  body { background: #fff; }
  .tool-card,
  .task-card,
  .mini-report,
  .metric,
  .report-panel,
  .tech-group,
  .issue {
    box-shadow: none;
  }
}
