/* Checklist zone v1.3 — Stitch light dense */
.checklist-page {
  background-color: #f7f9fb;
  color: #1a2332;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 1rem;
}

@media (min-width: 1024px) {
  .checklist-page {
    padding-bottom: 0;
  }
}

.checklist-page .skip-link:focus {
  background: #006c49;
  color: #fff;
}

/* Fixed Stitch header */
.checklist-stitch-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  padding: 0.75rem 0;
}

.checklist-stitch-header-inner {
  max-width: none;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.checklist-stitch-title {
  font-family: "Archivo Narrow", sans-serif;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #1a2332;
  margin: 0;
  line-height: 1.1;
  flex: 1;
}

.checklist-stitch-actions {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-shrink: 0;
  margin-left: auto;
}

.checklist-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.375rem;
  border: 1px solid transparent;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  text-decoration: none;
}

.checklist-icon-btn:hover {
  background: #f1f5f9;
  color: #006c49;
}

.checklist-icon-btn .material-symbols-outlined {
  font-size: 1.375rem;
}

/* Layout */
.checklist-layout {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding-top: 3.75rem;
}

@media (min-width: 1024px) {
  .checklist-layout {
    flex-direction: row;
    align-items: stretch;
  }
}

/* Filter panel — sidebar on desktop, portaled to sheet on mobile */
.checklist-filter-panel {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  display: none;
  flex-direction: column;
}

@media (max-width: 1023px) {
  .checklist-filter-panel {
    display: none !important;
  }
}

@media (min-width: 1024px) {
  .checklist-filter-panel {
    display: flex;
    width: 18.75rem;
    min-width: 17.5rem;
    max-width: 20rem;
    position: sticky;
    top: 3.75rem;
    height: calc(100vh - 3.75rem);
    overflow-y: auto;
    border-bottom: none;
    border-right: 1px solid #e2e8f0;
  }
}

.checklist-filter-panel-inner {
  padding: 1rem;
  flex: 1;
}

.checklist-filter-heading {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #64748b;
  margin: 0 0 1rem;
}

.checklist-filter-section {
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid #e2e8f0;
}

.checklist-filter-section:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.checklist-mobile-filter-panel .checklist-filter-section:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.checklist-filter-section-title {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #1a2332;
}

.checklist-filter-section-heading {
  margin: 0 0 0.75rem;
}

.checklist-filter-section-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  text-align: left;
  color: inherit;
}

.checklist-filter-section-toggle:hover .checklist-filter-section-title {
  color: #006c49;
}

.checklist-filter-section-chevron {
  font-size: 1.25rem;
  color: #64748b;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.checklist-filter-section.is-collapsed .checklist-filter-section-chevron {
  transform: rotate(-90deg);
}

.checklist-filter-section.is-collapsed .checklist-filter-section-body {
  display: none;
}

.checklist-filter-section.is-collapsed .checklist-filter-section-heading {
  margin-bottom: 0;
}

/* Team picker */
.checklist-team-search-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #f7f9fb;
  border: 1px solid #e2e8f0;
  border-radius: 0.375rem;
  padding: 0.5rem 0.75rem;
  margin-bottom: 0.75rem;
  color: #64748b;
}

.checklist-team-search-wrap input {
  flex: 1;
  background: transparent;
  border: none;
  color: #1a2332;
  font-size: 0.8125rem;
  min-height: 2rem;
}

.checklist-team-search-wrap input:focus {
  outline: none;
}

.checklist-team-search-wrap input::placeholder {
  color: #94a3b8;
}

.checklist-team-search-clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  border: none;
  border-radius: 9999px;
  background: transparent;
  color: #64748b;
  cursor: pointer;
}

.checklist-team-search-clear:hover {
  background: #e2e8f0;
  color: #334155;
}

.checklist-team-search-clear .material-symbols-outlined {
  font-size: 1.125rem;
}

.checklist-team-search-clear.hidden {
  display: none;
}

.checklist-team-list {
  max-height: 10rem;
  overflow-y: auto;
  border: 1px solid #e2e8f0;
  border-radius: 0.375rem;
  background: #ffffff;
  margin-bottom: 0.75rem;
  scrollbar-width: thin;
  scrollbar-color: #10b981 #f1f5f9;
}

.checklist-team-list::-webkit-scrollbar {
  width: 8px;
}

.checklist-team-list::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 4px;
}

.checklist-team-list::-webkit-scrollbar-thumb {
  background: #10b981;
  border-radius: 4px;
  border: 2px solid #f1f5f9;
}

.checklist-team-list::-webkit-scrollbar-thumb:hover {
  background: #006c49;
}

.checklist-team-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.8125rem;
  color: #334155;
  cursor: pointer;
  border-bottom: 1px solid #f1f5f9;
}

.checklist-team-item:last-child {
  border-bottom: none;
}

.checklist-team-item.hidden {
  display: none;
}

.checklist-team-item input {
  accent-color: #006c49;
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.checklist-team-chips-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem;
  min-height: 0;
}

.checklist-team-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.3125rem 0.625rem;
  background: #ecfdf5;
  border: 1px solid #10b981;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #006c49;
}

.checklist-team-chip-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: #64748b;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  min-width: 2.75rem;
  min-height: 2.75rem;
  margin: -0.625rem -0.375rem -0.625rem 0;
  padding: 0;
}

.checklist-team-chip-remove:hover {
  color: #dc2626;
}

.checklist-team-clear {
  margin-left: auto;
  background: transparent;
  border: none;
  color: #006c49;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: underline;
}

.checklist-team-clear.hidden {
  display: none;
}

/* Category checkbox cards */
.checklist-category-cards {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.checklist-category-card {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.8125rem 1rem;
  background: #f7f9fb;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s, box-shadow 0.15s;
}

.checklist-category-card:hover {
  border-color: #10b981;
  box-shadow: 0 1px 3px rgba(0, 108, 73, 0.08);
}

.checklist-category-card:has(input:checked) {
  border-color: #006c49;
  background: #ecfdf5;
  box-shadow: 0 0 0 1px #006c49;
}

.checklist-category-card.is-partial {
  border-color: #10b981;
  background: #ecfdf5;
  box-shadow: 0 0 0 1px #006c49;
}

.checklist-type-filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.checklist-type-filter-group-main {
  display: flex;
  align-items: stretch;
  gap: 0.375rem;
}

.checklist-type-filter-group-label {
  flex: 1;
}

.checklist-type-filter-expand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  flex-shrink: 0;
  border: 1px solid #e2e8f0;
  border-radius: 0.375rem;
  background: #f7f9fb;
  color: #64748b;
  cursor: pointer;
}

.checklist-type-filter-expand:hover {
  border-color: #10b981;
  color: #006c49;
}

.checklist-type-filter-children {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  padding-left: 0.75rem;
  border-left: 2px solid #e2e8f0;
  margin-left: 0.5rem;
}

.checklist-type-filter-children[hidden] {
  display: none;
}

.checklist-type-filter-child {
  background: #ffffff;
}

.checklist-category-card input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.checklist-category-card-icon {
  color: #94a3b8;
  font-size: 1.25rem;
}

.checklist-category-card:has(input:checked) .checklist-category-card-icon {
  color: #006c49;
}

.checklist-category-card-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #1a2332;
}

/* Sort segmented pills */
.checklist-sort-fieldset {
  border: none;
  margin: 0;
  padding: 0;
}

.checklist-sort-segmented {
  display: flex;
  width: 100%;
  padding: 0.125rem;
  background: #f7f9fb;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
}

.checklist-sort-segment {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.25rem;
  border-radius: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #334155;
  cursor: pointer;
  background: transparent;
  border: none;
  transition: background-color 0.15s, color 0.15s;
}

.checklist-sort-segment:hover:not(:has(input:checked)) {
  background: #ecfdf5;
  color: #006c49;
}

.checklist-sort-segment:has(input:checked) {
  background: #006c49;
  color: #ffffff;
  font-weight: 600;
}

.checklist-sort-segment:focus-within {
  outline: 2px solid #10b981;
  outline-offset: 2px;
}

.checklist-sort-segment input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  accent-color: #006c49;
}

.checklist-sort-segment-label {
  pointer-events: none;
}

/* Reset bar */
.checklist-reset-bar {
  padding: 1rem;
  border-top: 1px solid #e2e8f0;
  background: transparent;
}

.checklist-reset-btn {
  width: 100%;
  padding: 0.625rem 1rem;
  background: transparent;
  border: 1px solid #e2e8f0;
  border-radius: 0.375rem;
  color: #64748b;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  min-height: 2.5rem;
}

.checklist-reset-btn:hover {
  background: #f7f9fb;
  border-color: #cbd5e1;
  color: #1a2332;
}

/* Main column */
.checklist-main-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.checklist-main-inner {
  flex: 1;
  padding: 1rem;
  max-width: none;
}

@media (min-width: 768px) {
  .checklist-main-inner {
    padding: 1.25rem 1.5rem;
  }
}

.checklist-main-inner h1 {
  font-family: "Archivo Narrow", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #1a2332;
  margin: 0 0 0.5rem;
  line-height: 1.15;
}

@media (min-width: 768px) {
  .checklist-main-inner h1 {
    font-size: 1.75rem;
  }
}

.checklist-intro {
  font-size: 0.75rem;
  color: #64748b;
  margin: 0 0 1rem;
  max-width: 48rem;
}

.checklist-lead {
  font-size: 0.9375rem;
  color: #43474f;
  margin: 0 0 0.75rem;
  line-height: 1.5;
  max-width: 48rem;
}

/* Search row */
.checklist-search-row {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.checklist-search-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0.375rem;
  padding: 0.5rem 0.75rem;
  color: #64748b;
}

.checklist-search-wrap input {
  flex: 1;
  background: transparent;
  border: none;
  color: #1a2332;
  font-size: 0.875rem;
  min-height: 2.5rem;
}

.checklist-search-wrap input:focus {
  outline: none;
}

.checklist-search-wrap input::placeholder {
  color: #94a3b8;
}

.checklist-search-kbd {
  display: none;
  font-size: 0.6875rem;
  font-weight: 600;
  color: #64748b;
  border: 1px solid #e2e8f0;
  border-radius: 0.25rem;
  padding: 0.125rem 0.375rem;
  white-space: nowrap;
}

@media (min-width: 768px) {
  .checklist-search-kbd {
    display: inline-block;
  }
}

.checklist-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 0.875rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0.375rem;
  color: #334155;
  font-size: 0.8125rem;
  font-weight: 600;
  min-height: 2.75rem;
  cursor: pointer;
  flex-shrink: 0;
}

.checklist-filter-btn:hover {
  border-color: #10b981;
  color: #006c49;
}

/* Mobile action bar + filter sheet */
.checklist-mobile-bar {
  display: none;
}

@media (max-width: 1023px) {
  .checklist-mobile-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
  }

  .checklist-filter-controls-home {
    margin-bottom: 0.75rem;
  }

  .checklist-mobile-filter-panel[hidden] {
    display: none !important;
  }

  .checklist-filter-sheet-backdrop[hidden] {
    display: none !important;
  }

  .checklist-mobile-filter-panel {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: flex;
    flex-direction: column;
    border: none;
    border-radius: 0;
    overflow: hidden;
    transform: translateY(100%);
    transition: transform 200ms ease-out;
  }

  .checklist-mobile-filter-panel.is-open {
    transform: translateY(0);
  }

  @media (prefers-reduced-motion: reduce) {
    .checklist-mobile-filter-panel,
    .checklist-filter-sheet-backdrop {
      transition: none;
    }

    .checklist-mobile-filter-panel {
      transform: none;
    }
  }

  .checklist-mobile-filter-panel.is-open {
    display: flex;
  }

  .checklist-toolbar {
    display: none;
  }

  .checklist-intro {
    margin-bottom: 0.75rem;
  }

  .checklist-mobile-filter-panel .checklist-search-wrap input,
  .checklist-mobile-filter-panel .checklist-team-search-wrap input {
    font-size: 16px;
  }
}

@media (min-width: 1024px) {
  .checklist-mobile-bar {
    display: none !important;
  }
}

.checklist-mobile-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.4375rem 0.75rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0.375rem;
  color: #334155;
  font-size: 0.8125rem;
  font-weight: 600;
  min-height: 2.375rem;
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
}

.checklist-mobile-action-btn .material-symbols-outlined {
  font-size: 1.125rem;
}

.checklist-mobile-action-btn:hover,
.checklist-mobile-action-btn.has-active-filters {
  border-color: #10b981;
  color: #006c49;
}

.checklist-mobile-action-btn--compact {
  padding-left: 0.625rem;
  padding-right: 0.625rem;
}

.checklist-mobile-badge {
  position: absolute;
  top: 0.3125rem;
  right: 0.3125rem;
  width: 0.4375rem;
  height: 0.4375rem;
  border-radius: 9999px;
  background: #10b981;
}

.checklist-mobile-count {
  flex: 1 1 100%;
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #64748b;
}

.checklist-export-menu {
  position: relative;
}

.checklist-export-menu-popover {
  position: absolute;
  top: calc(100% + 0.375rem);
  left: 0;
  z-index: 45;
  min-width: 11.5rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
  padding: 0.375rem;
}

.checklist-export-menu-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.5625rem 0.625rem;
  border: none;
  border-radius: 0.375rem;
  background: transparent;
  color: #334155;
  font-size: 0.8125rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.checklist-export-menu-item .material-symbols-outlined {
  font-size: 1.125rem;
  color: #64748b;
}

.checklist-export-menu-item:hover {
  background: #f1f5f9;
  color: #006c49;
}

/* Mobile filter sheet */
html.checklist-filter-sheet-open,
body.checklist-filter-sheet-open {
  overflow: hidden;
}

.checklist-filter-sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(15, 23, 42, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity 200ms ease-out, visibility 200ms ease-out;
}

.checklist-filter-sheet-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.checklist-filter-sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  border-bottom: 1px solid #e2e8f0;
  background: #ffffff;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  z-index: 1;
}

.checklist-filter-sheet-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #1a2332;
}

.checklist-filter-sheet-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0;
  border: none;
  border-radius: 0.375rem;
  background: transparent;
  color: #64748b;
  cursor: pointer;
}

.checklist-filter-sheet-close:hover {
  background: #f1f5f9;
  color: #1a2332;
}

.checklist-filter-sheet-close .material-symbols-outlined {
  font-size: 1.375rem;
}

.checklist-filter-sheet-body {
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: #f7f9fb;
}

.checklist-done-btn {
  flex: 1;
  min-height: 2.75rem;
  padding: 0.625rem 1rem;
  background: #006c49;
  border: none;
  border-radius: 0.375rem;
  color: #ffffff;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
}

.checklist-done-btn:hover {
  background: #005a3d;
}

.checklist-reset-btn--secondary {
  flex: 1;
  min-height: 2.75rem;
}

.checklist-mobile-filter-panel {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  overflow: hidden;
}

.checklist-mobile-filter-section,
.checklist-filter-sheet-body .checklist-filter-section {
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 0;
  padding-bottom: 0;
}

.checklist-filter-sheet-body #filter-section-sort {
  border-bottom: none;
}

.checklist-mobile-filter-toggle,
.checklist-mobile-filter-panel .checklist-filter-section-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.875rem 1rem;
  border: none;
  background: transparent;
  cursor: pointer;
  text-align: left;
  color: inherit;
}

.checklist-mobile-filter-label,
.checklist-mobile-filter-panel .checklist-filter-section-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: #1a2332;
  flex-shrink: 0;
}

.checklist-mobile-filter-summary {
  flex: 1;
  min-width: 0;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #64748b;
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.checklist-mobile-filter-chevron,
.checklist-mobile-filter-panel .checklist-filter-section-chevron {
  font-size: 1.25rem;
  color: #64748b;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.checklist-mobile-filter-section.is-collapsed .checklist-mobile-filter-chevron,
.checklist-mobile-filter-panel .checklist-filter-section.is-collapsed .checklist-filter-section-chevron {
  transform: rotate(-90deg);
}

.checklist-mobile-filter-body {
  padding: 0 1rem 1rem;
}

.checklist-mobile-filter-body .checklist-search-row {
  margin-bottom: 0;
}

.checklist-mobile-filter-body .checklist-chip-row {
  margin-bottom: 0;
  padding-bottom: 0;
}

.checklist-mobile-filter-panel .checklist-filter-section-body {
  padding: 0 1rem 1rem;
}

.checklist-mobile-filter-panel .checklist-filter-section.is-collapsed .checklist-filter-section-heading {
  margin-bottom: 0;
}

.checklist-mobile-filter-panel .checklist-filter-section-heading {
  margin: 0;
}

.checklist-mobile-filter-actions {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-top: 1px solid #e2e8f0;
  background: #ffffff;
  position: sticky;
  bottom: 0;
  flex-shrink: 0;
  z-index: 1;
}

@media (min-width: 1024px) {
  .checklist-filter-sheet-backdrop {
    display: none !important;
  }

  .checklist-filter-sheet-header {
    display: none;
  }

  .checklist-filter-sheet-body {
    flex: none;
    overflow: visible;
    background: transparent;
  }

  .checklist-mobile-filter-panel {
    display: block !important;
    position: static;
    inset: auto;
    z-index: auto;
    transform: none;
    transition: none;
    background: transparent;
    border: none;
    border-radius: 0;
    overflow: visible;
  }

  .checklist-mobile-filter-panel[hidden] {
    display: block !important;
  }

  .checklist-mobile-filter-toggle {
    display: none;
  }

  .checklist-mobile-filter-summary {
    display: none;
  }

  .checklist-mobile-filter-section,
  .checklist-mobile-filter-panel .checklist-filter-section {
    border: none;
    margin-bottom: 0.75rem;
  }

  .checklist-mobile-filter-section.is-collapsed .checklist-mobile-filter-body,
  .checklist-mobile-filter-body[hidden] {
    display: block !important;
  }

  .checklist-mobile-filter-body {
    padding: 0;
  }

  .checklist-mobile-filter-body .checklist-chip-row {
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
  }

  #mobile-section-teams-slot,
  #mobile-section-sort-slot,
  .checklist-mobile-filter-actions {
    display: none !important;
  }
}

/* Category chips */
.checklist-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  margin-bottom: 0.75rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.checklist-chip-row::-webkit-scrollbar {
  display: none;
}

.checklist-chip {
  flex-shrink: 0;
  padding: 0.375rem 0.875rem;
  border-radius: 9999px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #334155;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.checklist-chip:hover {
  border-color: #10b981;
}

.checklist-chip.is-active {
  background: #006c49;
  border-color: #006c49;
  color: #ffffff;
}

.checklist-chip.is-partial {
  background: #ecfdf5;
  border-color: #10b981;
  color: #065f46;
}

.checklist-chip-separator {
  align-self: center;
  width: 1px;
  height: 1.25rem;
  margin: 0 0.125rem;
  background: #cbd5e1;
  flex-shrink: 0;
}

.checklist-flag-filter-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid #e2e8f0;
}

.checklist-chip-group {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.375rem;
  max-width: 100%;
}

.checklist-chip-group-main {
  display: inline-flex;
  align-items: stretch;
}

.checklist-chip-group-main .type-group-chip {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.checklist-chip-expand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.5rem;
  border: 1px solid #e2e8f0;
  border-left: none;
  border-radius: 0 9999px 9999px 0;
  background: #ffffff;
  color: #64748b;
  cursor: pointer;
  min-height: 2rem;
}

.checklist-chip-expand:hover {
  border-color: #10b981;
  color: #006c49;
}

.checklist-chip-group.is-expanded .checklist-chip-expand {
  border-color: #cbd5e1;
}

.checklist-chip-group-children {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  padding-left: 0.25rem;
}

.checklist-chip-group-children[hidden] {
  display: none;
}

.theme-icon-dark.hidden,
.theme-icon-light.hidden {
  display: none;
}

/* Toolbar */
.checklist-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.checklist-toolbar #result-count {
  font-size: 0.875rem;
  font-weight: 500;
  color: #64748b;
}

.checklist-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.checklist-column-menu {
  position: relative;
}

.checklist-column-popover {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 12rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
  padding: 0.5rem;
  position: absolute;
  top: calc(100% + 0.375rem);
  right: 0;
  z-index: 45;
}

.checklist-column-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4375rem 0.5rem;
  border-radius: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
}

.checklist-column-option:hover {
  background: #f1f5f9;
}

.checklist-column-fieldset {
  width: 100%;
}

.checklist-variations-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.125rem;
  padding: 0.125rem 0.375rem;
  border: 1px solid #cbd5e1;
  border-radius: 9999px;
  background: #f8fafc;
  color: #334155;
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
}

.checklist-variations-trigger:hover,
.checklist-variations-trigger[aria-expanded="true"] {
  border-color: #2563eb;
  background: #eff6ff;
  color: #1d4ed8;
}

.checklist-variations-trigger .material-symbols-outlined {
  font-size: 0.875rem;
  line-height: 1;
}

.checklist-col-variations .checklist-variations-trigger {
  margin-top: 0;
}

.checklist-meta-variations .checklist-variations-trigger {
  margin-top: 0;
  vertical-align: baseline;
}

.checklist-variations-popover {
  position: fixed;
  z-index: 50;
  min-width: 12rem;
  max-width: min(18rem, calc(100vw - 1rem));
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
  padding: 0.625rem 0.75rem;
}

.checklist-variations-popover-title {
  margin: 0 0 0.375rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #334155;
  line-height: 1.3;
}

.checklist-variations-popover-list {
  margin: 0;
  padding-left: 1rem;
  font-size: 0.8125rem;
  color: #475569;
  line-height: 1.45;
}

.checklist-variations-popover-list li + li {
  margin-top: 0.125rem;
}

.checklist-col-hidden {
  display: none !important;
}

.checklist-flag.is-yes {
  display: inline-block;
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  background: #ecfdf5;
  color: #065f46;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.checklist-flag.is-no {
  color: #94a3b8;
  font-size: 0.75rem;
}

.checklist-meta-flag.is-yes {
  display: inline;
  font-size: 0.6875rem;
  font-weight: 700;
  color: #065f46;
}

.checklist-meta-flag.is-no {
  display: none;
}

.checklist-export-btn {
  background: #ffffff;
  color: #334155;
  padding: 0.5rem 0.875rem;
  border-radius: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 700;
  min-height: 2.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  border: 1px solid #e2e8f0;
  cursor: pointer;
}

.checklist-export-btn:hover:not(:disabled) {
  border-color: #006c49;
  color: #006c49;
}

.checklist-export-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.checklist-export-btn.is-copied {
  border-color: #006c49;
  color: #006c49;
}

/* Export modal */
.checklist-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.checklist-modal[hidden] {
  display: none;
}

body.checklist-modal-open {
  overflow: hidden;
}

.checklist-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}

.checklist-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 32rem);
  max-height: min(90vh, 44rem);
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: 0.75rem;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.18);
  border: 1px solid #e2e8f0;
}

.checklist-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #e2e8f0;
}

.checklist-modal-header h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #1a2332;
}

.checklist-modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: none;
  background: transparent;
  color: #64748b;
  border-radius: 0.375rem;
  cursor: pointer;
}

.checklist-modal-close:hover {
  background: #f1f5f9;
  color: #1a2332;
}

.checklist-modal-body {
  padding: 1rem 1.25rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.checklist-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  padding: 1rem 1.25rem;
  border-top: 1px solid #e2e8f0;
}

.checklist-export-lead {
  margin: 0;
  font-size: 0.8125rem;
  color: #64748b;
}

.checklist-export-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  min-height: 1.5rem;
}

.checklist-export-summary-empty {
  font-size: 0.8125rem;
  color: #94a3b8;
  font-style: italic;
}

.checklist-export-summary-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  font-size: 0.75rem;
  font-weight: 600;
}

.checklist-export-summary-chip button {
  border: none;
  background: transparent;
  color: inherit;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  font-size: 0.875rem;
}

.checklist-export-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.checklist-export-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
}

.checklist-export-input {
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 0.375rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.8125rem;
  color: #1a2332;
  background: #ffffff;
}

.checklist-export-input:focus {
  outline: 2px solid #10b981;
  outline-offset: 1px;
}

.checklist-export-chip-row {
  margin-bottom: 0;
}

.checklist-export-count {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 700;
  color: #006c49;
}

.checklist-csv-btn {
  background: #006c49;
  color: #ffffff;
  padding: 0.5rem 0.875rem;
  border-radius: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 700;
  min-height: 2.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  border: none;
  cursor: pointer;
}

.checklist-csv-btn:hover:not(:disabled) {
  background: #005a3d;
}

.checklist-csv-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Dense grid table */
.checklist-grid-wrap {
  overflow-x: auto;
  border: 1px solid #e2e8f0;
  border-radius: 0.375rem;
  background: #ffffff;
}

.checklist-grid {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
  table-layout: fixed;
}

/* Column % widths set in JS (syncTableColumnWidths) from role weights */

col.checklist-col-hidden,
th.checklist-col-hidden,
td.checklist-col-hidden {
  display: none !important;
  width: 0 !important;
  padding: 0 !important;
  border: none !important;
}

.checklist-grid-head th.checklist-col-rc,
.checklist-grid-head th.checklist-col-fb,
.checklist-row td.checklist-col-rc,
.checklist-row td.checklist-col-fb {
  text-align: center;
}

.checklist-grid-head {
  position: sticky;
  top: 0;
  z-index: 10;
}

.checklist-grid-head th {
  background: #f1f5f9;
  color: #64748b;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: left;
  padding: 0.625rem 0.75rem;
  border-bottom: 1px solid #e2e8f0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.checklist-row td {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
  color: #334155;
  overflow: hidden;
  text-overflow: ellipsis;
}

.checklist-col-num {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-variant-numeric: tabular-nums;
  width: 16ch;
  max-width: 16ch;
}

.checklist-grid col.checklist-col-num {
  width: 16ch;
}

.checklist-col-player {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
}

.checklist-col-team {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.checklist-col-type {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.35;
  width: 35ch;
  max-width: 35ch;
}

.checklist-grid col.checklist-col-type {
  width: 35ch;
}

.checklist-col-rc,
.checklist-col-fb {
  white-space: nowrap;
}

.checklist-col-variations {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.checklist-col-meta {
  display: none;
}

.checklist-row:last-child td {
  border-bottom: none;
}

.checklist-row:hover td {
  background: #f8fafc;
}

.checklist-row.hidden-row,
.checklist-row[hidden] {
  display: none !important;
}

@media (max-width: 1023px) {
  .checklist-grid-wrap {
    border: none;
    border-radius: 0;
    background: transparent;
  }

  .checklist-grid {
    display: block;
    font-size: 0.875rem;
  }

  .checklist-grid colgroup,
  .checklist-grid-head {
    display: none;
  }

  .checklist-grid tbody {
    display: block;
  }

  .checklist-row {
    display: grid;
    grid-template-columns: minmax(5.5rem, 34%) 1fr;
    grid-template-rows: auto auto auto;
    gap: 0.125rem 0.625rem;
    padding: 0.625rem 0.75rem;
    border-bottom: 1px solid #e2e8f0;
    background: #ffffff;
  }

  .checklist-row:first-child {
    border-top: 1px solid #e2e8f0;
    border-radius: 0.375rem 0.375rem 0 0;
  }

  .checklist-row:last-child {
    border-radius: 0 0 0.375rem 0.375rem;
  }

  .checklist-row td {
    display: block;
    padding: 0;
    border: none;
    overflow: visible;
    text-overflow: unset;
  }

  .checklist-row td.checklist-col-type {
    display: -webkit-box !important;
    -webkit-box-orient: vertical;
    grid-column: 1;
    grid-row: 1;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #64748b;
    line-height: 1.25;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    white-space: normal;
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }

  .checklist-row td.checklist-col-type .checklist-type {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    white-space: normal;
  }

  .checklist-col-num {
    grid-column: 1;
    grid-row: 2;
    align-self: start;
    padding-top: 0;
    max-width: none;
  }

  .checklist-col-player {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
    min-width: 0;
    white-space: normal;
    font-weight: 600;
    color: #1a2332;
    line-height: 1.3;
    max-width: none;
  }

  .checklist-row td.checklist-col-team,
  .checklist-row td.checklist-col-rc,
  .checklist-row td.checklist-col-fb,
  .checklist-row td.checklist-col-variations {
    display: none !important;
  }

  .checklist-row td.checklist-col-meta {
    display: block;
    grid-column: 2;
    grid-row: 2;
    white-space: normal;
    font-size: 0.75rem;
    color: #64748b;
    line-height: 1.35;
  }

  .checklist-row .checklist-meta-type,
  .checklist-row .checklist-meta-sep[data-col="team-type-sep"] {
    display: none !important;
  }

  .checklist-row td.checklist-col-type.checklist-col-hidden ~ td.checklist-col-meta .checklist-meta-type,
  .checklist-row td.checklist-col-type.checklist-col-hidden ~ td.checklist-col-meta .checklist-meta-sep[data-col="team-type-sep"] {
    display: inline !important;
  }

  .checklist-meta-sep {
    color: #94a3b8;
  }

  .checklist-row:hover td {
    background: transparent;
  }

  .checklist-row:hover {
    background: #f8fafc;
  }
}

.checklist-card-num {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.75rem;
  font-weight: 500;
  color: #475569;
}

.checklist-player {
  font-family: "Archivo Narrow", sans-serif;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #1a2332;
}

.checklist-team {
  font-size: 0.8125rem;
  color: #475569;
}

.checklist-type {
  font-size: 0.75rem;
  color: #64748b;
}

.checklist-empty {
  border: 2px dashed #e2e8f0;
  background: #ffffff;
  color: #64748b;
  border-radius: 0.375rem;
}

.checklist-empty.hidden {
  display: none;
}

.checklist-clear-btn {
  color: #006c49;
  font-size: 0.875rem;
  text-decoration: underline;
  background: transparent;
  border: none;
  cursor: pointer;
}

.checklist-clear-btn:hover {
  color: #005a3d;
}

/* Soft funnel */
.checklist-funnel {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 0.375rem;
  margin-top: 2rem;
  padding: 1.25rem;
  max-width: 48rem;
}

.checklist-funnel h2 {
  font-family: "Archivo Narrow", sans-serif;
  font-size: 1rem;
  text-transform: uppercase;
  color: #1a2332;
  margin: 0 0 0.75rem;
}

.checklist-funnel p {
  color: #475569;
  font-size: 0.875rem;
  line-height: 1.6;
  margin: 0 0 0.75rem;
}

.checklist-funnel a {
  color: #006c49;
  font-weight: 600;
  text-decoration: underline;
}

.checklist-funnel a:hover {
  color: #005a3d;
}

.checklist-funnel-sep {
  color: #94a3b8;
  margin: 0 0.5rem;
}

.checklist-page footer {
  background: #f1f5f9;
  margin-top: 2rem;
  border-top: 1px solid #e2e8f0;
}

.checklist-page footer p {
  font-size: 0.75rem;
  color: #64748b;
  text-align: center;
  padding: 1.5rem 1rem;
}

.checklist-page footer a {
  color: #64748b;
  text-decoration: underline;
}

.checklist-page footer a:hover {
  color: #006c49;
}

/* Bottom tab bar (mobile) — glass */
.checklist-tab-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid #e2e8f0;
}

@media (min-width: 1024px) {
  .checklist-tab-bar {
    display: none;
  }
}

.checklist-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.125rem;
  padding: 0.625rem;
  min-height: 3.5rem;
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}

.checklist-tab .material-symbols-outlined {
  font-size: 1.25rem;
}

.checklist-tab.is-active {
  color: #006c49;
}

.checklist-tab.is-active .material-symbols-outlined {
  color: #10b981;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hidden {
  display: none !important;
}

/* Dark theme */
html.dark .checklist-page {
  background-color: #0b1220;
  color: #e2e8f0;
}

html.dark .checklist-stitch-header {
  background: #111827;
  border-bottom-color: #1f2937;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

html.dark .checklist-stitch-title {
  color: #f8fafc;
}

html.dark .checklist-icon-btn {
  color: #94a3b8;
}

html.dark .checklist-icon-btn:hover {
  background: #1f2937;
  color: #34d399;
}

html.dark .checklist-filter-panel,
html.dark .checklist-grid-wrap,
html.dark .checklist-funnel,
html.dark .checklist-modal-dialog {
  background: #111827;
  border-color: #334155;
}

html.dark .checklist-filter-section {
  border-bottom-color: #1f2937;
}

html.dark .checklist-filter-section-title,
html.dark .checklist-main-inner h1,
html.dark .checklist-modal-header h2,
html.dark .checklist-funnel h2 {
  color: #f8fafc;
}

html.dark .checklist-filter-heading,
html.dark .checklist-export-label,
html.dark .checklist-intro,
html.dark .checklist-toolbar #result-count,
html.dark .checklist-export-lead,
html.dark .checklist-funnel p {
  color: #94a3b8;
}

html.dark .checklist-team-search-wrap,
html.dark .checklist-search-wrap,
html.dark .checklist-export-input,
html.dark .checklist-category-card,
html.dark .checklist-team-item {
  background: #0f172a;
  border-color: #334155;
  color: #e2e8f0;
}

html.dark .checklist-category-card:has(input:checked),
html.dark .checklist-category-card.is-partial {
  background: #064e3b;
  border-color: #10b981;
}

html.dark .checklist-category-card-label,
html.dark .checklist-team-item span {
  color: #e2e8f0;
}

html.dark .checklist-sort-segment {
  color: #cbd5e1;
}

html.dark .checklist-sort-segmented {
  background: #0f172a;
  border-color: #334155;
}

html.dark .checklist-sort-segment:hover:not(:has(input:checked)) {
  background: #064e3b;
  color: #34d399;
}

html.dark .checklist-sort-segment:has(input:checked) {
  background: #006c49;
  color: #ffffff;
}

html.dark .checklist-category-card:has(input:checked) .checklist-category-card-label {
  color: #ecfdf5;
}

html.dark .checklist-category-card-icon {
  color: #64748b;
}

html.dark .checklist-category-card:has(input:checked) .checklist-category-card-icon,
html.dark .checklist-category-card.is-partial .checklist-category-card-icon {
  color: #34d399;
}

html.dark .checklist-team-search-wrap input,
html.dark .checklist-search-wrap input,
html.dark .checklist-export-input {
  color: #f8fafc;
}

html.dark .checklist-team-search-wrap input::placeholder,
html.dark .checklist-search-wrap input::placeholder,
html.dark .checklist-export-input::placeholder {
  color: #64748b;
}

html.dark .checklist-team-search-clear {
  color: #94a3b8;
}

html.dark .checklist-team-search-clear:hover {
  background: #334155;
  color: #f8fafc;
}

html.dark .checklist-search-kbd {
  background: #1e293b;
  border-color: #334155;
  color: #64748b;
}

html.dark .checklist-chip,
html.dark .checklist-chip-expand,
html.dark .checklist-export-btn,
html.dark .checklist-type-filter-expand {
  background: #0f172a;
  border-color: #334155;
  color: #cbd5e1;
}

html.dark .checklist-type-filter-child {
  background: #111827;
  border-color: #334155;
}

html.dark .checklist-type-filter-children {
  border-left-color: #334155;
}

html.dark .checklist-chip:hover,
html.dark .checklist-chip-expand:hover,
html.dark .checklist-type-filter-expand:hover {
  border-color: #10b981;
  color: #34d399;
}

html.dark .checklist-chip.is-active {
  background: #006c49;
  border-color: #006c49;
  color: #ffffff;
}

html.dark .checklist-chip.is-partial {
  background: #064e3b;
  border-color: #10b981;
  color: #d1fae5;
}

html.dark .checklist-chip-separator {
  background: #475569;
}

html.dark .checklist-flag-filter-cards {
  border-top-color: #334155;
}

html.dark .checklist-grid {
  background: #111827;
}

html.dark .checklist-grid-head th {
  background: #1e293b;
  color: #94a3b8;
  border-bottom-color: #334155;
}

html.dark .checklist-row td {
  color: #cbd5e1;
  border-bottom-color: #1f2937;
  background: #111827;
}

html.dark .checklist-grid tbody tr:nth-child(even) td {
  background: #0f172a;
}

html.dark .checklist-row:hover td {
  background: #1e293b;
}

html.dark .checklist-player {
  color: #f1f5f9;
}

html.dark .checklist-team {
  color: #94a3b8;
}

html.dark .checklist-type {
  color: #64748b;
}

html.dark .checklist-card-num {
  color: #34d399;
}

html.dark .checklist-empty {
  border-color: #334155;
  color: #94a3b8;
}

html.dark .checklist-clear-btn {
  color: #34d399;
}

html.dark .checklist-export-count {
  color: #34d399;
}

html.dark .checklist-funnel a {
  color: #34d399;
}

html.dark .checklist-funnel a:hover {
  color: #6ee7b7;
}

html.dark .checklist-tab-bar {
  background: rgba(17, 24, 39, 0.92);
  border-top-color: #1f2937;
}

html.dark .checklist-tab {
  color: #94a3b8;
}

html.dark .checklist-tab.is-active {
  color: #34d399;
}

html.dark .checklist-page footer {
  background: #0f172a;
  border-top-color: #1f2937;
}

html.dark .checklist-page footer p,
html.dark .checklist-page footer a {
  color: #64748b;
}

html.dark .checklist-page footer a:hover {
  color: #34d399;
}

html.dark .checklist-modal-backdrop {
  background: rgba(2, 6, 23, 0.72);
}

html.dark .checklist-modal-header,
html.dark .checklist-modal-footer {
  border-color: #1f2937;
}

html.dark .checklist-reset-bar {
  background: transparent;
  border-top-color: #1f2937;
}

html.dark .checklist-reset-btn,
html.dark .checklist-filter-btn {
  background: transparent;
  border-color: #334155;
  color: #94a3b8;
}

html.dark .checklist-reset-btn:hover,
html.dark .checklist-filter-btn:hover {
  background: #1e293b;
  border-color: #34d399;
  color: #34d399;
}

html.dark .checklist-export-btn:hover:not(:disabled) {
  border-color: #34d399;
  color: #34d399;
}

html.dark .checklist-filter-section-chevron {
  color: #64748b;
}

html.dark .checklist-mobile-action-btn {
  background: #111827;
  border-color: #334155;
  color: #cbd5e1;
}

html.dark .checklist-mobile-action-btn:hover,
html.dark .checklist-mobile-action-btn.has-active-filters {
  border-color: #34d399;
  color: #34d399;
}

html.dark .checklist-mobile-count {
  color: #94a3b8;
}

html.dark .checklist-export-menu-popover {
  background: #111827;
  border-color: #334155;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

html.dark .checklist-export-menu-item {
  color: #cbd5e1;
}

html.dark .checklist-export-menu-item:hover {
  background: #1f2937;
  color: #34d399;
}

html.dark .checklist-column-popover {
  background: #111827;
  border-color: #334155;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

html.dark .checklist-variations-trigger {
  border-color: #334155;
  background: #1e293b;
  color: #cbd5e1;
}

html.dark .checklist-variations-trigger:hover,
html.dark .checklist-variations-trigger[aria-expanded="true"] {
  border-color: #60a5fa;
  background: #172554;
  color: #93c5fd;
}

html.dark .checklist-variations-popover {
  background: #111827;
  border-color: #334155;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

html.dark .checklist-variations-popover-title {
  color: #e2e8f0;
}

html.dark .checklist-variations-popover-list {
  color: #cbd5e1;
}

html.dark .checklist-column-option {
  color: #cbd5e1;
}

html.dark .checklist-column-option:hover {
  background: #1f2937;
}

html.dark .checklist-flag.is-yes {
  background: #064e3b;
  color: #6ee7b7;
}

html.dark .checklist-meta-flag.is-yes {
  color: #6ee7b7;
}

html.dark .checklist-flag.is-no {
  color: #64748b;
}

html.dark .checklist-mobile-filter-panel {
  background: #111827;
  border-color: #334155;
}

html.dark .checklist-filter-sheet-header,
html.dark .checklist-mobile-filter-actions {
  background: #111827;
  border-color: #1f2937;
}

html.dark .checklist-filter-sheet-title {
  color: #f8fafc;
}

html.dark .checklist-filter-sheet-close {
  color: #94a3b8;
}

html.dark .checklist-filter-sheet-close:hover {
  background: #1f2937;
  color: #f8fafc;
}

html.dark .checklist-filter-sheet-body {
  background: #0f172a;
}

html.dark .checklist-team-list {
  scrollbar-color: #10b981 #1e293b;
}

html.dark .checklist-team-list::-webkit-scrollbar-track {
  background: #1e293b;
}

html.dark .checklist-team-list::-webkit-scrollbar-thumb {
  border-color: #1e293b;
}

html.dark .checklist-mobile-filter-section,
html.dark .checklist-mobile-filter-panel .checklist-filter-section {
  border-bottom-color: #1f2937;
}

html.dark .checklist-mobile-filter-label,
html.dark .checklist-mobile-filter-panel .checklist-filter-section-title {
  color: #f8fafc;
}

html.dark .checklist-mobile-filter-summary {
  color: #94a3b8;
}

html.dark .checklist-done-btn {
  background: #006c49;
  color: #ffffff;
}

html.dark .checklist-done-btn:hover {
  background: #059669;
}

@media (max-width: 1023px) {
  html.dark .checklist-row {
    background: #111827;
    border-bottom-color: #1f2937;
  }

  html.dark .checklist-row:first-child {
    border-top-color: #334155;
  }

  html.dark .checklist-col-player {
    color: #f1f5f9;
  }

  html.dark .checklist-col-team,
  html.dark .checklist-col-type,
  html.dark .checklist-col-meta {
    color: #94a3b8;
  }

  html.dark .checklist-row:hover {
    background: #1e293b;
  }
}

/* Mobile-only hides — must stay last to beat desktop toolbar/chip rules */
@media (max-width: 1023px) {
  .checklist-toolbar,
  .checklist-toolbar-actions {
    display: none !important;
  }
}
