.seo-snapshot {
  box-sizing: border-box;
  width: min(1100px, calc(100% - 32px));
  margin: 16px auto;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-sans);
}

.seo-snapshot h2,
.seo-snapshot p,
.seo-snapshot dt,
.seo-snapshot dd {
  margin: 0;
}

.seo-snapshot h2 {
  margin-bottom: 6px;
  color: var(--text);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.seo-snapshot p {
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.45;
}

.seo-snapshot__links {
  margin-top: 10px;
}

.seo-snapshot a {
  color: var(--accent);
  text-decoration: none;
}

.seo-snapshot a:hover {
  color: var(--accent-strong);
  text-decoration: underline;
}

.seo-snapshot__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.seo-snapshot__stats div {
  padding: 10px 12px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}

.seo-snapshot__stats dt {
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.seo-snapshot__stats dd {
  margin-top: 4px;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 800;
}

.seo-snapshot table {
  width: 100%;
  margin-top: 12px;
  border-collapse: collapse;
  font-size: 13px;
}

.seo-snapshot th,
.seo-snapshot td {
  padding: 7px 8px;
  border-bottom: 1px solid var(--border-subtle);
  text-align: left;
}

.seo-snapshot thead th {
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.seo-snapshot tbody th {
  font-weight: 650;
}

.seo-snapshot td:nth-child(n + 4),
.seo-snapshot thead th:nth-child(n + 4) {
  font-family: var(--font-mono);
  text-align: right;
}

@media (max-width: 700px) {
  .seo-snapshot {
    width: calc(100% - 20px);
    padding: 14px;
  }

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

  .seo-snapshot th:nth-child(3),
  .seo-snapshot td:nth-child(3) {
    display: none;
  }
}

body:has(#CompFull.tabulator) #comp > .seo-snapshot,
body:has(#td-board-table.tabulator) .seo-snapshot--board {
  display: none;
}
