:root {
  color-scheme: light;
  --page: oklch(97.2% 0.006 95);
  --ink: oklch(22% 0.018 105);
  --muted: oklch(46% 0.014 105);
  --line: oklch(86% 0.012 95);
  --panel: oklch(99% 0.004 95);
  --panel-soft: oklch(94% 0.012 95);
  --accent: oklch(54% 0.12 190);
  --accent-ink: oklch(25% 0.055 196);
  --good: oklch(55% 0.12 150);
  --good-ink: oklch(34% 0.095 150);
  --warn: oklch(68% 0.13 78);
  --bad: oklch(56% 0.17 28);
  --bad-ink: oklch(37% 0.13 28);
  --focus: oklch(59% 0.14 255);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  font-family:
    ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
}

button,
input {
  font: inherit;
}

button {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  cursor: pointer;
  min-height: 2.25rem;
  padding: 0 0.85rem;
  transition:
    border-color 180ms var(--ease-out),
    background 180ms var(--ease-out);
}

button:hover:not(:disabled) {
  border-color: oklch(75% 0.05 190);
}

button:focus-visible {
  outline: 3px solid color-mix(in oklch, var(--focus), transparent 72%);
  outline-offset: 2px;
}

button:disabled {
  color: oklch(62% 0.01 105);
  cursor: not-allowed;
}

.shell {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 34px 0 44px;
}

.topbar {
  align-items: end;
  display: flex;
  gap: 22px;
  justify-content: space-between;
  margin-bottom: 24px;
}

.title-group {
  min-width: 0;
}

.eyebrow {
  color: var(--accent-ink);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin: 0 0 0.4rem;
  text-transform: uppercase;
}

h1 {
  font-size: 2.6rem;
  font-weight: 750;
  line-height: 1.02;
  margin: 0;
  text-wrap: balance;
}

.verdict-good {
  color: var(--good-ink);
}

.verdict-bad {
  color: var(--bad-ink);
}

.verdict-neutral {
  color: var(--muted);
}

.subline {
  color: var(--muted);
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
  margin: 0.55rem 0 0;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: flex-end;
}

.notice {
  border: 1px solid color-mix(in oklch, var(--bad), transparent 60%);
  border-radius: 8px;
  background: color-mix(in oklch, var(--bad), transparent 94%);
  color: var(--bad-ink);
  margin-bottom: 18px;
  padding: 0.85rem 1rem;
}

.table-wrap {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  overflow-x: auto;
}

table {
  border-collapse: collapse;
  width: 100%;
}

table.rechecking tbody {
  opacity: 0.72;
  transition: opacity 180ms var(--ease-out);
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 0.7rem 0.75rem;
  text-align: left;
  vertical-align: middle;
}

th {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

tr:last-child td {
  border-bottom: 0;
}

tr.row-problem td {
  background: color-mix(in oklch, var(--bad), transparent 95%);
}

.project-name {
  font-weight: 700;
}

.site-link {
  color: var(--accent-ink);
  font-weight: 700;
  text-decoration-color: color-mix(in oklch, var(--accent), transparent 55%);
  text-underline-offset: 3px;
}

.site-link:hover {
  color: oklch(34% 0.095 190);
}

.subtle,
.mono {
  color: var(--muted);
}

.mono {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
}

.pill {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 700;
  min-height: 1.7rem;
  padding: 0 0.6rem;
}

.pill.good {
  background: color-mix(in oklch, var(--good), transparent 88%);
  border-color: color-mix(in oklch, var(--good), transparent 62%);
  color: var(--good-ink);
}

.pill.warn {
  background: color-mix(in oklch, var(--warn), transparent 86%);
  border-color: color-mix(in oklch, var(--warn), transparent 58%);
  color: oklch(39% 0.09 78);
}

.pill.bad {
  background: color-mix(in oklch, var(--bad), transparent 88%);
  border-color: color-mix(in oklch, var(--bad), transparent 60%);
  color: var(--bad-ink);
}

.pill.neutral {
  background: var(--panel-soft);
  border-color: var(--line);
  color: var(--muted);
}

.cell-stack {
  display: grid;
  gap: 0.24rem;
}

.empty {
  color: var(--muted);
  margin: 0 auto;
  max-width: 44ch;
  padding: 2.5rem 1rem;
  text-align: center;
}

.empty p {
  margin: 0;
  line-height: 1.55;
}

.empty code {
  background: var(--panel-soft);
  border-radius: 4px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.85em;
  padding: 0.1em 0.35em;
}

.skeleton {
  display: grid;
  gap: 1px;
  padding: 0.35rem 0;
}

.skeleton-row {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1.4fr 1fr 0.7fr 1fr;
  padding: 0.85rem 0.75rem;
}

.skeleton-block {
  background: var(--panel-soft);
  border-radius: 4px;
  height: 1rem;
}

.w-lg { width: 82%; }
.w-md { width: 64%; }
.w-sm { width: 46%; }

@keyframes skeleton-pulse {
  50% { opacity: 0.45; }
}

.skeleton-block {
  animation: skeleton-pulse 1.4s var(--ease-out) infinite;
}

@media (prefers-reduced-motion: reduce) {
  .skeleton-block {
    animation: none;
  }
}

@media (max-width: 760px) {
  .shell {
    width: min(100vw - 20px, 1180px);
    padding-top: 22px;
  }

  h1 {
    font-size: 2rem;
  }

  .topbar {
    align-items: stretch;
    display: grid;
  }

  .actions {
    justify-content: stretch;
  }

  .actions button {
    flex: 1;
  }

  .table-wrap {
    overflow: hidden;
  }

  table,
  thead,
  tbody,
  tr,
  td {
    display: block;
    min-width: 0;
    width: 100%;
  }

  thead {
    display: none;
  }

  tr {
    border-bottom: 1px solid var(--line);
    padding: 0.75rem 0;
  }

  tr:last-child {
    border-bottom: 0;
  }

  td {
    border-bottom: 0;
    display: grid;
    gap: 0.75rem;
    grid-template-columns: minmax(5.5rem, 34%) minmax(0, 1fr);
    padding: 0.45rem 0.9rem;
  }

  td::before {
    color: var(--muted);
    content: attr(data-label);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
  }
}
