.checklist-main {
  box-sizing: border-box;
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  padding: 16px 16px 48px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.checklist-hero,
.checklist-panel,
.checklist-cat {
  margin: 0;
  padding: 16px;
}

.checklist-kicker,
.checklist-source,
.checklist-note,
.checklist-search-label,
.checklist-jump a,
.checklist-chip,
.checklist-count,
.checklist-flag,
.checklist-subset-label,
.checklist-rarity,
.checklist-legend {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
}

.checklist-hero h1,
.checklist-team-name,
.checklist-cat h2,
.checklist-subset h3 {
  margin: 0 0 8px;
  font-family: var(--font-display, "Inter", sans-serif);
  color: var(--folio-ink);
}

.checklist-hero h1 {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.15;
}

.checklist-kicker {
  margin: 0 0 6px;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--portal-muted, #a3a9b5);
}

.checklist-dek,
.checklist-source,
.checklist-note,
.checklist-empty {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--csl-chrome, var(--folio-ink));
}

.checklist-source {
  margin-top: 12px;
  font-size: 12px;
}

.checklist-source a {
  color: inherit;
}

.checklist-note,
.checklist-empty {
  font-size: 13px;
  color: var(--portal-muted, #a3a9b5);
}

.checklist-sticky {
  position: sticky;
  top: var(--folio-imagine-h, 92px);
  z-index: 4;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px 0 10px;
  background: var(--folio-brick, #8d3c30);
}

.checklist-chips {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  padding-bottom: 2px;
}

.checklist-chip {
  flex: 0 0 auto;
  min-height: 40px;
  min-width: 44px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(15, 18, 24, 0.35);
  color: #f4f4f1;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.checklist-chip.is-active {
  background: #f4f4f1;
  color: #14110e;
  border-color: #f4f4f1;
}

.checklist-chip:focus-visible {
  outline: 2px solid #f4f4f1;
  outline-offset: 2px;
}

.checklist-jumps {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  overflow-x: auto;
  font-size: 12px;
}

.checklist-jumps a {
  flex: 0 0 auto;
  color: #f4f4f1;
  text-decoration: none;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
}

.checklist-jumps a:focus-visible {
  outline: 2px solid #f4f4f1;
  outline-offset: 2px;
}

.checklist-team-name {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.15;
}

.checklist-search-label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

#checklistSearch {
  width: 100%;
  min-height: 44px;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid var(--line, rgba(255, 255, 255, 0.12));
  border-radius: 8px;
  background: transparent;
  color: inherit;
  font: inherit;
}

.checklist-legend {
  margin: 0 0 12px;
}

.checklist-legend-bands,
.checklist-legend-note {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--portal-muted, #a3a9b5);
}

.checklist-legend-note {
  margin-top: 4px;
}

.checklist-cat-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}

.checklist-cat-head .checklist-count {
  margin-left: auto;
}

.checklist-cat h2 {
  font-size: 18px;
  margin: 0;
}

.checklist-rarity {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 2px 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #c4c8d0;
}

.checklist-rarity-odds {
  text-transform: none;
  letter-spacing: 0;
  color: #8b919c;
}

.rarity-common {
  color: #b0b6c0;
}

.rarity-rare {
  color: #d4d8e0;
}

.rarity-sp {
  color: #cdd6e4;
  border-color: rgba(180, 196, 216, 0.35);
}

.rarity-ssp {
  color: #f4f4f1;
  border-color: rgba(244, 244, 241, 0.4);
}

.rarity-unrated {
  color: #8b919c;
  border-color: rgba(255, 255, 255, 0.1);
}

.checklist-count {
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--portal-muted, #a3a9b5);
}

.checklist-subset {
  margin: 12px 0 0;
}

.checklist-subset h3 {
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.checklist-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}

.checklist-row {
  display: grid;
  grid-template-columns: 7.5rem 1fr auto;
  gap: 8px 12px;
  align-items: baseline;
  min-height: 40px;
  padding: 6px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 14px;
}

.checklist-num {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 12px;
  color: var(--portal-muted, #a3a9b5);
}

.checklist-player {
  font-weight: 600;
}

.checklist-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  font-size: 12px;
  color: var(--portal-muted, #a3a9b5);
}

.checklist-flag {
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

html[data-theme="portal"] .checklist-page .folio-scrap {
  background: #151820;
  color: #f4f4f1;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

html[data-theme="portal"] .checklist-page .checklist-hero h1,
html[data-theme="portal"] .checklist-page .checklist-team-name,
html[data-theme="portal"] .checklist-page .checklist-cat h2,
html[data-theme="portal"] .checklist-page .checklist-subset h3 {
  color: #f4f4f1;
}

html[data-theme="portal"] .checklist-page .muted,
html[data-theme="portal"] .checklist-page .checklist-dek,
html[data-theme="portal"] .checklist-page .checklist-source,
html[data-theme="portal"] .checklist-page .checklist-note,
html[data-theme="portal"] .checklist-page .checklist-legend-bands,
html[data-theme="portal"] .checklist-page .checklist-legend-note {
  color: #a3a9b5;
}

@media (max-width: 640px) {
  .checklist-row {
    grid-template-columns: 5.8rem 1fr;
  }

  .checklist-meta {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .checklist-team-name {
    font-size: 22px;
  }
}
