/**
 * spell.css
 * Styles for the spell checker (Phase 5): suggestion badges in the shared
 * issue list, the Replace dialog, and the personal dictionary list.
 * Selectors target ts-spell-* and ts-issue-badge only.
 */

.ts-issue-badge {
  margin-left: 0.35rem;
  padding: 0 0.35rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  vertical-align: middle;
  color: #0b0d0c;
  background: #86efac;
  border-radius: 99px;
}

.ts-spell-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.3rem 0 0.8rem;
}

.ts-spell-suggestion {
  display: inline-flex;
  gap: 0.15rem;
}

.ts-spell-hear {
  padding-left: 0.45rem;
  padding-right: 0.45rem;
}

.ts-spell-words {
  list-style: none;
  margin: 0.3rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.ts-spell-word {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.3rem 0.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  overflow-wrap: anywhere;
}

.ts-spell-word button {
  padding: 0.2rem 0.5rem;
  font-size: 0.76rem;
}

body.light-mode .ts-issue-badge {
  background: #bbf7d0;
}

body.light-mode .ts-spell-word {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.1);
}
