body {
  font-family: "Sarabun", system-ui, -apple-system, sans-serif;
}
select[multiple] {
  min-height: 3.5rem;
}

/* --- UI Components: Toggle Pill --- */
.toggle-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  height: 22px;
  border-radius: 9999px;
  cursor: pointer;
  border: none;
  outline: none;
  transition: background-color 0.25s ease;
  padding: 0;
  background-color: #94a3b8;
}
.toggle-pill .toggle-knob {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  position: absolute;
  top: 3px;
  transition: left 0.25s ease, right 0.25s ease;
}
.toggle-label {
  display: inline-block;
  color: #ffffff;
  font-size: 10px;
  font-weight: 600;
  pointer-events: none;
  transition: margin 0.25s ease;
}
.toggle-pill[data-state="shown"] {
  background-color: #22c55e;
}
.toggle-pill[data-state="shown"] .toggle-knob {
  left: auto;
  right: 3px;
}
.toggle-pill[data-state="shown"] .toggle-label {
  margin-right: 14px;
  margin-left: 0;
}

.toggle-pill[data-state="hidden"] {
  background-color: #94a3b8;
}
.toggle-pill[data-state="hidden"] .toggle-knob {
  left: 3px;
  right: auto;
}
.toggle-pill[data-state="hidden"] .toggle-label {
  margin-left: 14px;
  margin-right: 0;
}

/* --- UI Components: Tags --- */
.tag-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.1rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  background-color: #dbeafe;
  color: #1d4ed8;
  cursor: default;
  margin-right: 0.1rem;
  position: relative;
  z-index: 10;
}
.tag-pill .tag-text {
  margin-right: 0.25rem;
}
.tag-pill .tag-remove {
  font-weight: 600;
  cursor: pointer;
}
