/* Category manager dialog. */
.category-list {
  list-style: none;
  margin: 0 0 0.75rem;
  padding: 0;
}
.category-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.25rem 0;
}
.category-row input { flex: 1; min-width: 0; }
.category-row .tab { margin: 0; font-size: 0.8rem; }
.category-row .tab:disabled { opacity: 0.35; cursor: not-allowed; border-bottom-width: 1px; }

.swatch-btn,
.swatch {
  flex-shrink: 0;
  padding: 0;
  border-radius: 50%;
  background: var(--c);
  border: 2px solid color-mix(in srgb, var(--c) var(--event-bar), var(--text));
}
.swatch-btn { width: 1.6rem; height: 1.6rem; }
.swatch-btn[aria-expanded="true"] { outline: 2px solid var(--accent); outline-offset: 2px; }
.swatch { width: 1.35rem; height: 1.35rem; border-width: 1px; }
.swatch:hover { transform: scale(1.12); }
.swatch[aria-pressed="true"] { outline: 2px solid var(--text); outline-offset: 2px; }
.swatch-btn:focus-visible, .swatch:focus-visible {
  outline: 2px dashed var(--secondary);
  outline-offset: 2px;
}

.swatch-picker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0 0.7rem 2.2rem;
}
.swatch-custom {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-left: 0.25rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--text-soft);
  cursor: pointer;
}
.swatch-custom input[type="color"] {
  width: 1.6rem;
  height: 1.6rem;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
}
