.spells-index { display: grid; gap: var(--app-space); }
.spells-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--app-space-sm);
  align-items: end;
  padding: var(--app-space);
  border: 1px solid var(--app-color-border);
  border-radius: var(--app-radius, 0.5rem);
  background: var(--app-color-bg-raised);
}
.spells-filters .field { display: flex; flex-direction: column; gap: var(--app-space-2xs); }
.spells-filters label { font-size: 0.85rem; font-weight: 600; color: var(--app-color-fg-muted); }
.spells-filters input {
  padding: 0.4rem 0.55rem;
  font: inherit;
  font-size: 0.92rem;
  color: var(--app-color-fg);
  background: var(--app-color-bg);
  border: 1px solid var(--app-color-border);
  border-radius: var(--app-radius, 0.5rem);
  min-width: 12rem;
}
.spells-filters .actions { display: flex; gap: var(--app-space-2xs); }
.spells-filters .btn {
  padding: 0.45rem 1rem;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: var(--app-radius, 0.5rem);
  cursor: pointer;
  border: 1px solid var(--app-color-border);
  background: var(--app-color-accent);
  color: var(--app-color-accent-on);
}
.spells-filters .btn.btn-secondary { background: var(--app-color-bg); color: var(--app-color-fg); }

.spell-name { color: var(--app-color-fg); text-decoration: none; font-weight: 600; }
.spell-name:hover { text-decoration: underline; }
.chip {
  display: inline-block;
  padding: 0.1rem 0.5rem;
  border: 1px solid var(--app-color-border);
  border-radius: 999px;
  font-size: 0.78rem;
  color: var(--app-color-fg-muted);
  background: var(--app-color-bg);
}
.chip.system { background: color-mix(in srgb, var(--app-color-accent) 12%, transparent); color: var(--app-color-fg); }

.spells-empty { padding: var(--app-space-lg); text-align: center; color: var(--app-color-fg-muted); }

.spells-alpha { display: flex; flex-wrap: wrap; gap: var(--app-space-2xs); align-items: center; }
.spells-alpha .alpha {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 1.9rem; padding: 0.25rem 0.5rem;
  border: 1px solid var(--app-color-border); border-radius: var(--app-radius, 0.5rem);
  font-size: 0.9rem; font-weight: 600; text-decoration: none;
  color: var(--app-color-fg); background: var(--app-color-bg-raised);
}
.spells-alpha a.alpha:hover { border-color: var(--app-color-accent); }
.spells-alpha .alpha.active {
  background: var(--app-color-accent); color: var(--app-color-accent-on);
  border-color: var(--app-color-accent);
}
.spells-alpha .alpha.disabled { opacity: 0.35; background: transparent; color: var(--app-color-fg-muted); }
