/* ── Theme grid layout ───────────────────────────────────────── */
.theme-grid {
  font-size: 13px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
}

html[data-theme=dark] .theme-grid {
  border-color: #333;
}

.theme-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 6px;
  box-sizing: border-box;
}

html[data-theme=light] .theme-row:hover {
  background: #e0f0f2;
}

html[data-theme=dark] .theme-row:hover {
  background: #0e2a30;
}

.theme-name {
  min-width: 250px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 1000;
  font-size: 1.2em;
}

.theme-links {
  display: flex;
  gap: 8px;
  font-size: 0.85em;
  white-space: nowrap;
}

.theme-links a {
  text-decoration: none;
  opacity: 0.75;
}

.theme-links a:hover {
  opacity: 1;
}

html[data-theme=light] .theme-links a:hover {
  background: #000;
  color: #fff;
}

html[data-theme=dark] .theme-links a:hover {
  background: #fff;
  color: #000;
}

/* ── Colour swatch bars ──────────────────────────────────────── */
.palette-special,
.palette-ansi {
  height: 16px;
  border-radius: 2px;
  flex-shrink: 0;
}

.palette-special {
  width: 80px;
}

.palette-ansi {
  flex: 1 1 0;
  min-width: 160px;
  max-width: 320px;
}

.palette-sep {
  width: 1px;
  height: 12px;
  background: #888;
  opacity: 0.4;
  flex-shrink: 0;
}

