.chip {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .25rem .5rem;
  border-radius: var(--bs-border-radius);
  background-color: var(--bs-primary-bg-subtle);
  border: 1px solid var(--bs-primary-border-subtle);
  font-size: .875rem;
  margin: .15rem .25rem .15rem 0;
  user-select: none;
}
.chip button {
  border: 0;
  background: transparent;
  padding: 0 .25rem;
  line-height: 1;
  cursor: pointer;
  opacity: .7;
}
.chip button:hover { opacity: 1; }
.muted { color: #6c757d; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; }
.jsonbox { white-space: pre; overflow: auto; max-height: 340px; }
details > summary {
  cursor: pointer;
  list-style: none;
}
details > summary::-webkit-details-marker { display: none; }
.rule-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
}
.rule-summary-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rule-summary-actions {
  display: inline-flex;
  gap: .5rem;
  flex-shrink: 0;
}
.badge-soft {
  background: rgba(108,117,125,.12);
  color: #495057;
  border: 1px solid rgba(108,117,125,.2);
  font-weight: 600;
}

.spec-dialog {
  width: min(900px, 92vw);
  border: 0;
  border-radius: .75rem;
  padding: 0;
}
.spec-dialog::backdrop {
  background: rgba(0,0,0,.35);
}

.rule-actions {
  position: relative;
}

.rule-actions > summary {
  list-style: none;
}
.rule-actions > summary::-webkit-details-marker {
  display: none;
}

.rule-json.border-warning {
  outline: 2px solid rgba(255, 193, 7, 0.5);
}

.nav-link .fa:not([class*="text-"]),
.dropdown-menu .fa:not([class*="text-"]) {
	color: var(--bs-secondary-color);
}

.js-toggle-group {
  cursor: pointer;
  user-select: none;
}
.js-toggle-group:hover {
  filter: brightness(0.9);
}

.where-node {
    border-radius: var(--bs-border-radius);
    padding: .25rem;	
}
.where-node:has(> .where-children > .chip-editing ) {
	background-color: var(--bs-secondary-bg-subtle);
}

.chip-editing {
  color: #fff;
  background-color: var(--bs-primary-text-emphasis);
}

#platformAcknowledge:not(hidden) ~ #platformList {
	pointer-events: none;
}
#platformAcknowledge:not(:hover) .bg-body-tertiary {
	opacity: 0.8;
}