.start-screen:has(.word-list) {
  grid-template-columns: minmax(0, 1fr);
}

.start-card.word-list {
  max-width: 960px;
  width: 100%;
  min-width: 0;
}

.word-list-summary {
  color: var(--muted);
}

.word-list-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}

.word-list-filter {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-weight: 700;
}

.word-list-filter select {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px 12px;
  font: inherit;
  color: var(--ink);
  background: var(--card-strong);
}

.word-table-wrap {
  overflow-x: auto;
  max-height: 70vh;
  overflow-y: auto;
  box-shadow: var(--shadow);
  border-radius: 12px;
}

.word-table {
  width: 100%;
  border-collapse: collapse;
  color: var(--ink);
  text-align: left;
}

.word-table th {
  position: sticky;
  top: 0;
  background: var(--card-strong);
  border-bottom: 1px solid var(--line);
  padding: 8px 10px;
  z-index: 1;
}

.word-table td {
  border-bottom: 1px solid var(--line);
  padding: 8px 10px;
  font-size: 1rem;
}

.word-sort {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-weight: 700;
  color: inherit;
  cursor: pointer;
  white-space: nowrap;
}

.word-table .word-zh {
  font-size: 1.6rem;
  white-space: nowrap;
}

.word-table .word-py {
  font-size: 1.1rem;
  white-space: nowrap;
}

.word-table .is-unused {
  color: var(--muted);
}

.word-table .is-used {
  font-weight: 700;
}

.word-table-empty {
  text-align: center;
  color: var(--muted);
  padding: 20px;
}

.stage-tag {
  display: inline-block;
  border-radius: 999px;
  padding: 2px 10px;
  color: var(--ink);
  font-weight: 700;
}

.stage-tag--1 {
  background: #ffda77;
}

.stage-tag--2 {
  background: var(--sky);
}

.stage-tag--3 {
  background: var(--mint);
}

@media (max-width: 600px) {
  .word-table .word-zh {
    font-size: 1.3rem;
  }

  .word-table th,
  .word-table td {
    padding: 6px;
  }
}
