:root {
  font-family:
    system-ui,
    -apple-system,
    sans-serif;
  color: #302b37;
  background: #f9f8f5;
  font-synthesis: none;
  --accent: #6c46c3;
  --muted: #756f7d;
  --line: #e5e1e8;
  --green: #357453;
  --amber: #956019;
  --red: #b43b4a;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input {
  font: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
a {
  color: inherit;
}
button {
  cursor: pointer;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 8px 12px;
  font-size: 12px;
  transition:
    background 0.15s,
    border-color 0.15s;
}
button:hover {
  background: #eee9f4;
  border-color: #c8bbdf;
}
button:disabled {
  opacity: 0.45;
  cursor: wait;
}
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
[hidden] {
  display: none !important;
}
.site-header {
  height: 78px;
  display: flex;
  align-items: center;
  gap: 50px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 0 44px;
}
.wordmark {
  font:
    600 29px Georgia,
    serif;
  letter-spacing: -1.2px;
  text-decoration: none;
}
.wordmark span {
  color: var(--accent);
  margin-left: 4px;
}
nav {
  display: flex;
  align-self: stretch;
  gap: 25px;
  font-size: 13px;
}
nav a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--muted);
  border-bottom: 2px solid transparent;
}
nav a[aria-current] {
  border-color: var(--accent);
  color: var(--accent);
}
.environment {
  margin-left: auto;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 1.6px;
}
main {
  max-width: 1440px;
  padding: 36px 44px 0;
  margin: auto;
}
.heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.8px;
  color: var(--muted);
  margin: 0 0 12px;
}
h1 {
  font-size: 34px;
  font-weight: 550;
  letter-spacing: -1.2px;
  margin: 0;
}
.subtitle {
  font-size: 13px;
  color: var(--muted);
  margin: 9px 0 0;
}
.controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.controls > span {
  font-size: 11px;
  color: var(--muted);
  margin-right: 6px;
}
.health-strip {
  margin: 28px 0 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 13px 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 12px;
}
#freshness {
  color: var(--muted);
}
[data-state] {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}
[data-state]::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #aca6b3;
  flex: none;
}
[data-state="ok"]::before {
  background: var(--green);
}
[data-state="warning"]::before {
  background: var(--amber);
}
[data-state="error"]::before {
  background: var(--red);
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 29px 0 32px;
  border-bottom: 1px solid var(--line);
  gap: 24px;
}
.metrics h2 {
  font-size: 12px;
  font-weight: 500;
  margin: 0 0 14px;
  color: var(--muted);
}
.metrics strong {
  font-size: clamp(25px, 2.8vw, 40px);
  line-height: 1;
  letter-spacing: -1.4px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.metrics p {
  font-size: 11px;
  color: var(--muted);
  margin: 11px 0 0;
  line-height: 1.5;
}
.section {
  min-width: 0;
  padding: 25px 0;
  border-bottom: 1px solid var(--line);
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 23px;
}
.section-heading h2 {
  font-size: 15px;
  font-weight: 600;
  margin: 0;
}
.section-heading > span {
  font-size: 11px;
  color: var(--muted);
}
.engine-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
}
.chart {
  position: relative;
  height: 140px;
  display: flex;
  gap: 15px;
}
.chart svg {
  min-width: 0;
  width: 100%;
  height: 130px;
  overflow: visible;
}
.chart-scale {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 130px;
  min-width: 32px;
  text-align: right;
  font-size: 10px;
  color: var(--muted);
}
.grid {
  fill: none;
  stroke: var(--line);
  stroke-dasharray: 3 5;
  stroke-width: 1;
}
.line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}
.area {
  fill: #6c46c310;
  stroke: none;
}
.chart > p {
  position: absolute;
  top: 38px;
  left: 0;
  width: 100%;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}
.chart-axis {
  display: flex;
  justify-content: space-between;
  padding-left: 47px;
  color: var(--muted);
  font-size: 10px;
}
.traffic-detail,
.ai-counts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0 0;
}
dt {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.4;
}
dd {
  margin: 7px 0 0;
  font-size: 17px;
  font-variant-numeric: tabular-nums;
}
.detail-list {
  margin: 0;
}
.detail-list > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 15px;
  padding: 10px 0;
  border-bottom: 1px solid #e5e1e870;
}
.detail-list > div:first-child {
  padding-top: 0;
}
.detail-list > div:last-child {
  border: 0;
}
.detail-list dd {
  font-size: 13px;
  margin: 0;
  text-align: right;
}
.explanation {
  font-size: 11px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 650px;
  margin: 18px 0 0;
}
.table-scroll {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 13px;
  text-align: left;
}
th {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  font-weight: 500;
}
td,
th {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
td:first-child,
th:first-child {
  padding-left: 0;
}
td:last-child,
th:last-child {
  padding-right: 0;
}
.numeric {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
tbody tr {
  transition: background 0.15s;
}
tbody tr:hover {
  background: #eee9f460;
}
tbody td:first-child {
  font-weight: 600;
}
tfoot td,
tfoot th {
  border-bottom: 0;
  font-weight: 600;
}
.ai-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 60px;
}
.progress-heading {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  font-size: 12px;
  color: var(--muted);
  margin: 5px 0 15px;
}
.progress-heading strong {
  color: var(--accent);
  font-weight: 500;
}
progress {
  appearance: none;
  width: 100%;
  height: 6px;
  border: none;
  background: var(--line);
  border-radius: 8px;
  overflow: hidden;
}
progress::-webkit-progress-bar {
  background: var(--line);
}
progress::-webkit-progress-value {
  background: var(--accent);
  transition: width 0.4s;
}
progress::-moz-progress-bar {
  background: var(--accent);
}
.ai-counts dd {
  font-size: 24px;
}
.ai-counts {
  margin-top: 28px;
}
.notice {
  border-left: 3px solid var(--amber);
  background: #f5eddf;
  color: #765016;
  padding: 12px 16px;
  font-size: 12px;
  line-height: 1.7;
  margin: 18px 0;
}
.stale .metrics strong,
.stale #collections {
  opacity: 0.55;
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 10px;
  color: var(--muted);
  padding: 24px 0 32px;
  line-height: 1.5;
}
footer > span:first-child {
  letter-spacing: 1px;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
  max-width: 420px;
  width: calc(100% - 32px);
  background: #f9f8f5;
  color: inherit;
}
dialog::backdrop {
  background: #302b3760;
}
dialog h2 {
  font-size: 20px;
  margin-top: 0;
}
dialog p,
dialog label {
  font-size: 12px;
  color: var(--muted);
}
dialog input {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 24px;
}
@media (min-width: 900px) {
  main {
    animation: appear 0.3s ease-out;
  }
}
@keyframes appear {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 1000px) {
  .heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .engine-layout,
  .ai-layout {
    gap: 25px;
  }
  .traffic-detail {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 650px) {
  .site-header {
    height: 67px;
    padding: 0 20px;
    gap: 24px;
  }
  .wordmark {
    font-size: 25px;
  }
  .environment {
    display: none;
  }
  nav {
    gap: 16px;
    font-size: 12px;
  }
  main {
    padding: 26px 20px 0;
  }
  h1 {
    font-size: 30px;
  }
  .controls {
    gap: 6px;
  }
  .controls > span {
    width: 100%;
    margin-bottom: 4px;
  }
  .health-strip {
    font-size: 11px;
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 28px;
    padding: 25px 0;
  }
  .metrics strong {
    font-size: 30px;
  }
  .metrics p {
    font-size: 10px;
  }
  .engine-layout,
  .ai-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .traffic-detail {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .traffic-detail dd {
    font-size: 14px;
  }
  .traffic-detail dt {
    font-size: 10px;
  }
  .section-heading > span {
    max-width: 50%;
    text-align: right;
  }
  .ai-layout > .detail-list {
    margin-top: 26px;
  }
  .ai-counts dd {
    font-size: 20px;
  }
  td,
  th {
    padding: 12px 14px;
  }
  footer {
    flex-wrap: wrap;
  }
  footer > span:nth-child(2) {
    order: 3;
    width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
