.plugin-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.plugin-pill {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 30px;
  padding: 3px 10px;
  border: 1px solid #c9d6e8;
  border-radius: 999px;
  color: #425973;
  background: #ffffff73;
  font: inherit;
  font-size: 12px;
  white-space: nowrap;
  cursor: pointer;
  transition: color .16s ease, border-color .16s ease, background .16s ease;
}

.plugin-pill:hover:not(:disabled) {
  border-color: #8baad2;
  background: #f2f7ff;
}

.plugin-pill[aria-pressed="true"] {
  border-color: #8cb1ef;
  color: #2058bc;
  background: #e7f0ff;
}

.plugin-pill:focus-visible { outline: 2px solid #3572dc; outline-offset: 2px; }
.plugin-pill:disabled { opacity: .57; cursor: default; }
.plugin-pill svg { display: block; width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.composer-tools:has(.plugin-pills) { flex-wrap: wrap; }

html[data-theme="dark"] .plugin-pill { border-color: #4c5f78; color: #c5d3e9; background: #253249; }
html[data-theme="dark"] .plugin-pill[aria-pressed="true"] { border-color: #759be0; color: #c6dbff; background: #294575; }

@media (prefers-reduced-motion: reduce) {
  .plugin-pill { transition: none; }
}
