/* Selection must win over both theme defaults and the old heavy-service color. */
html .capability-chip { cursor: pointer; min-height: 44px; }
html .capability-chip .selection-mark { display: inline-grid; visibility: hidden; }
html .capability-chip.active,
html[data-theme] .capability-chip.active {
  background: #d9f7e7;
  border-color: #168653;
  color: #075330;
  box-shadow: inset 0 0 0 1px #168653;
}
html .capability-chip.active .selection-mark { visibility: visible; background: #168653; color: #fff; }
html[data-theme="command"] .capability-chip.active { background: #153e2d; border-color: #52d797; color: #d4ffe8; box-shadow: inset 0 0 0 1px #52d797; }
html[data-theme="command"] .capability-chip.active .selection-mark { background: #52d797; color: #062417; }
.capacity-editor { display: grid; gap: 12px; }
.capacity-editor .capacity-extra { border-top: 1px solid var(--line); padding-top: 12px; }
.capacity-editor select { max-width: 100%; min-width: 0; }
.capacity-selection-help { margin-top: 4px; }
