body[data-theme="command-light"] {
  --lists-ground: #f5f7fa;
  --lists-surface: #ffffff;
  --lists-surface-soft: #f8fafc;
  --lists-ink: #2d333b;
  --lists-muted: #6f7782;
  --lists-border: #dfe3e8;
  --lists-border-strong: #c8ced6;
  --lists-accent: #3498db;
  --lists-accent-soft: #edf7fd;
  --lists-live: #287a54;
  --lists-live-soft: #edf8f2;
  --lists-preview: #8a671d;
  --lists-preview-soft: #fff8e8;
  --lists-shadow: 0 12px 36px rgba(33, 43, 54, 0.07);
}

body[data-theme="command"] {
  --lists-ground: #0d0f13;
  --lists-surface: #17191f;
  --lists-surface-soft: #1d2027;
  --lists-ink: #f5f7fa;
  --lists-muted: #a0a7b2;
  --lists-border: #2b2f38;
  --lists-border-strong: #3a404b;
  --lists-accent: #53a9e2;
  --lists-accent-soft: rgba(83, 169, 226, 0.14);
  --lists-live: #69c895;
  --lists-live-soft: rgba(70, 169, 116, 0.13);
  --lists-preview: #e1bd6a;
  --lists-preview-soft: rgba(202, 158, 60, 0.13);
  --lists-shadow: 0 14px 44px rgba(0, 0, 0, 0.24);
}

body[data-theme^="command"] {
  background: var(--lists-ground);
  color: var(--lists-ink);
}

body[data-theme^="command"] .lists-header {
  max-width: 1180px;
  border-color: var(--lists-border);
}

.lists-nav a {
  text-decoration: none;
}

.lists-nav a:hover,
.lists-nav a[aria-current="page"] {
  color: var(--lists-accent);
}

.lists-nav a[aria-current="page"] {
  font-weight: 700;
}

.lists-shell {
  width: min(calc(100% - 48px), 1180px);
  margin: 0 auto;
  padding: 62px 0 96px;
}

.lists-hero {
  padding-bottom: 30px;
  border-bottom: 1px solid var(--lists-border-strong);
}

.lists-kicker {
  margin: 0 0 9px;
  color: var(--lists-accent);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.12em;
}

.lists-hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(36px, 5vw, 62px);
  font-weight: 720;
  letter-spacing: -0.05em;
  line-height: 1.07;
  text-wrap: balance;
}

.lists-intro {
  margin: 0;
  color: var(--lists-muted);
  font-size: 14px;
  line-height: 1.8;
  text-wrap: pretty;
}

.overview-block,
.collection-block {
  padding-top: 30px;
}

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

.section-heading h2 {
  margin: 0;
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.section-heading > p {
  margin: 0;
  color: var(--lists-muted);
  font-size: 12px;
}

.overview-link {
  min-height: 102px;
  display: grid;
  grid-template-columns: 64px minmax(260px, 1fr) 150px 76px 34px;
  gap: 18px;
  align-items: center;
  padding: 24px;
  border: 1px solid var(--lists-border-strong);
  border-radius: 12px;
  background: var(--lists-surface);
  box-shadow: var(--lists-shadow);
  color: var(--lists-ink);
  text-decoration: none;
  transition: border-color 150ms ease, background-color 150ms ease, transform 150ms ease;
}

.overview-link:hover {
  border-color: var(--lists-accent);
  background: var(--lists-accent-soft);
  transform: translateY(-1px);
}

.overview-sequence,
.collection-sequence,
.route-label {
  color: var(--lists-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.overview-copy,
.overview-stats,
.collection-name,
.collection-scope,
.collection-size {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.overview-copy strong {
  font-size: 22px;
  letter-spacing: -0.025em;
}

.overview-copy small,
.overview-stats small,
.collection-name small,
.collection-scope small,
.collection-size small {
  color: var(--lists-muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
  text-wrap: pretty;
}

.overview-stats strong,
.collection-size strong {
  font-family: var(--font-mono);
  font-size: 24px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.04em;
}

.row-arrow {
  color: var(--lists-accent);
  font-size: 19px;
  text-align: right;
  transition: transform 150ms ease;
}

.overview-link:hover .row-arrow,
.collection-row:hover .row-arrow {
  transform: translateX(3px);
}

.collection-table {
  overflow: hidden;
  border: 1px solid var(--lists-border);
  border-radius: 12px;
  background: var(--lists-surface);
  box-shadow: var(--lists-shadow);
}

.collection-table-head,
.collection-row {
  display: grid;
  grid-template-columns: 64px minmax(220px, 0.8fr) minmax(300px, 1.35fr) 112px 98px 52px;
  gap: 18px;
  align-items: center;
}

.collection-table-head {
  min-height: 44px;
  padding: 0 22px;
  border-bottom: 1px solid var(--lists-border);
  background: var(--lists-surface-soft);
  color: var(--lists-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.collection-row {
  min-height: 96px;
  padding: 16px 22px;
  color: var(--lists-ink);
  text-decoration: none;
  transition: background-color 150ms ease;
}

.collection-row + .collection-row {
  border-top: 1px solid var(--lists-border);
}

a.collection-row:hover {
  background: var(--lists-surface-soft);
}

.collection-name strong {
  font-size: 18px;
  letter-spacing: -0.02em;
}

.collection-scope > span {
  font-size: 13px;
  font-weight: 650;
}

.collection-state {
  width: fit-content;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
}

.collection-state[data-state="live"] {
  background: var(--lists-live-soft);
  color: var(--lists-live);
}

.collection-state[data-state="preview"] {
  background: var(--lists-preview-soft);
  color: var(--lists-preview);
}

.collection-route {
  color: var(--lists-accent);
}

.v0-note {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 24px;
  margin-top: 22px;
  padding: 18px 22px;
  border: 1px dashed var(--lists-border-strong);
  border-radius: 10px;
  color: var(--lists-muted);
  font-size: 12px;
}

.v0-note strong {
  color: var(--lists-ink);
}

.v0-note p {
  margin: 0;
}

@media (max-width: 920px) {
  .lists-hero {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .lists-intro {
    max-width: 620px;
  }

  .overview-link {
    grid-template-columns: 48px minmax(0, 1fr) 116px 34px;
  }

  .overview-link > .route-label {
    display: none;
  }

  .collection-table-head {
    display: none;
  }

  .collection-row {
    grid-template-columns: 48px minmax(220px, 0.8fr) minmax(240px, 1fr) 88px;
  }

  .collection-row .collection-size,
  .collection-row .collection-state {
    display: none;
  }
}

@media (max-width: 680px) {
  body[data-theme^="command"] .lists-header {
    width: min(calc(100% - 28px), 1180px);
  }

  .lists-header {
    align-items: flex-start;
    padding: 14px 0;
  }

  .lists-nav {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .lists-nav .header-rule,
  #dataset-label {
    display: none;
  }

  .lists-shell {
    width: min(calc(100% - 28px), 1180px);
    padding-top: 42px;
  }

  .lists-hero h1 {
    font-size: clamp(34px, 11vw, 48px);
  }

  .overview-link {
    grid-template-columns: 36px minmax(0, 1fr) 30px;
    min-height: 0;
    padding: 20px 16px;
  }

  .overview-stats {
    grid-column: 2;
  }

  .overview-link > .row-arrow {
    grid-column: 3;
    grid-row: 1 / span 2;
  }

  .collection-table {
    display: grid;
    gap: 10px;
    overflow: visible;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .collection-row {
    min-height: 0;
    grid-template-columns: 34px minmax(0, 1fr) 30px;
    gap: 12px;
    padding: 18px 16px;
    border: 1px solid var(--lists-border) !important;
    border-radius: 10px;
    background: var(--lists-surface);
  }

  .collection-row .collection-name,
  .collection-row .collection-scope {
    grid-column: 2;
  }

  .collection-row .collection-scope {
    margin-top: 7px;
  }

  .collection-row .row-arrow,
  .collection-row .collection-route {
    grid-column: 3;
    grid-row: 1 / span 2;
    align-self: center;
  }

  .section-heading {
    align-items: flex-start;
  }

  .section-heading > p {
    max-width: 120px;
    text-align: right;
  }

  .v0-note {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .overview-link,
  .collection-row,
  .row-arrow {
    transition: none;
  }

  .overview-link:hover,
  .overview-link:hover .row-arrow,
  .collection-row:hover .row-arrow {
    transform: none;
  }
}
