/* ==========================================================================
   List Card (theme-aware)
   ========================================================================== */

.list-card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 10px;
}

.list-card__title {
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  margin: 0;
  color: var(--text-primary);
}

.list-card__progress {
  font-family: var(--font-mono, 'JetBrains Mono', ui-monospace, monospace);
  font-size: 0.72rem;
  color: var(--text-tertiary);
  letter-spacing: 0.06em;
}

.list-card__progress b {
  color: var(--success);
  font-weight: 500;
}

.list-card__bar {
  height: 2px;
  background: var(--border);
  border-radius: 1px;
  overflow: hidden;
  margin-bottom: 6px;
}

.list-card__bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--violet), var(--violet-hover, #B07CFF));
  box-shadow: 0 0 6px color-mix(in oklab, var(--violet) 50%, transparent);
  border-radius: 1px;
  transition: width 300ms ease;
}

.list-card__items {
  display: flex;
  flex-direction: column;
}

.list-card__item {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid color-mix(in oklab, var(--border) 60%, transparent);
  cursor: pointer;
  transition: background 160ms ease;
}

.list-card__item:last-child {
  border-bottom: none;
}

.list-card__item:hover {
  background: color-mix(in oklab, var(--text) 1.5%, transparent);
}

.list-card__check {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  border: 1.5px solid var(--border-strong);
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
  flex-shrink: 0;
  transition: all 160ms ease;
}

.list-card__check svg {
  width: 11px;
  height: 11px;
  opacity: 0;
  color: white;
}

.list-card__item--done .list-card__check {
  background: var(--violet);
  border-color: var(--violet);
  box-shadow: 0 0 8px color-mix(in oklab, var(--violet) 50%, transparent);
}

.list-card__item--done .list-card__check svg {
  opacity: 1;
}

.list-card__text {
  font-size: 0.94rem;
  color: var(--text-primary);
  line-height: 1.4;
}

.list-card__item--done .list-card__text {
  color: var(--text-tertiary);
  text-decoration: line-through;
  text-decoration-color: color-mix(in oklab, var(--text-tertiary) 60%, transparent);
}
