.editor-speakers {
  --speaker-border: #b8cad9;
  --speaker-ink: #163a56;
  border: 0;
  border-radius: 0;
  background: #f6f9fb;
  color: var(--speaker-ink);
  box-shadow: inset 0 1px #fff;
}
.editor-speakers [hidden] { display: none; }
.speakers-switch {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 5px clamp(10px, 1.35vw, 16px);
  border-radius: inherit;
  background: #f6f9fb;
  font-size: 14px;
  cursor: pointer;
}
.editor-speakers .speakers-switch > input {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  clip-path: inset(50%);
  overflow: hidden;
  padding: 0;
  border: 0;
}
.speakers-track {
  display: inline-flex;
  align-items: center;
  width: 35px;
  height: 20px;
  flex: none;
  padding: 2px;
  border: 1px solid #768da2;
  border-radius: 1rem;
  background: #566e82;
  box-shadow: inset 0 1px 2px #21384e70;
}
.speakers-track::before {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px #162c41;
}
.speakers-switch input:checked + .speakers-track { justify-content: flex-end; background: #205d8d; border-color: #205d8d; }
.speakers-switch input:focus-visible + .speakers-track { outline: 3px solid #2d73ad; outline-offset: 2px; }
.speakers-switch:has(input:disabled) { cursor: default; opacity: .65; }
.speakers-panel { border-top: 1px solid #d5e0e9; padding: 9px clamp(10px, 1.35vw, 16px); background: #fff; }
.speakers-assignments, .speakers-chips { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.speakers-chips { min-width: 0; max-width: 100%; }
.speakers-group-label { font-size: 13px; font-weight: 700; }
.editor-speakers button, .editor-speakers select {
  min-height: 44px;
  max-width: 100%;
  padding: 5px 10px;
  border: 1px solid var(--speaker-border);
  border-radius: 7px;
  background: #fff;
  color: var(--speaker-ink);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
.editor-speakers button { font-weight: 650; }
.editor-speakers button:disabled { opacity: .53; cursor: default; }
.editor-speakers button:focus-visible, .speakers-settings summary:focus-visible { outline: 3px solid #2d73ad; outline-offset: 2px; }
.editor-speakers .speakers-chip {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  min-width: 0;
  border-color: var(--speaker-color);
  color: var(--speaker-color);
  box-shadow: inset 0 1px #fff, 0 1px 2px #12334f19;
}
.speakers-chip i { width: 10px; height: 10px; flex: none; border-radius: 50%; background: currentColor; }
.speakers-chip span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.editor-speakers .speakers-chip[aria-pressed="true"] { background: var(--speaker-color); color: #fff; box-shadow: none; }
.editor-speakers .speakers-remove { border-color: transparent; background: transparent; text-decoration: underline; text-underline-offset: 3px; }
.speakers-note, .speakers-status { font-size: 13px; line-height: 1.45; }
.speakers-note { margin: 6px 0 2px; color: #3d556b; }
.speakers-status:empty { display: none; }
.speakers-status { padding: 5px 11px; }
.speakers-settings > summary { width: fit-content; min-height: 40px; padding-block: 9px; font-size: 14px; font-weight: 650; cursor: pointer; }
.speakers-form { display: grid; gap: 10px; max-width: 42rem; padding-block: 4px 7px; }
.speakers-person { display: grid; grid-template-columns: minmax(0, 1fr) minmax(100px, .5fr); gap: 8px; }
.speakers-person label { display: grid; gap: 3px; min-width: 0; font-size: 13px; }
.speakers-color-label { display: inline-flex; align-items: center; gap: 5px; }
.speakers-color-label i { width: 9px; height: 9px; border-radius: 50%; }
.editor-speakers .speakers-person input, .editor-speakers .speakers-person select { width: 100%; min-height: 44px; font-size: 16px; }
.speakers-form > button { justify-self: start; }
.speakers-confirm p { font-size: 14px; margin: 8px 0; }
@media (pointer: coarse) {
  .editor-speakers button, .speakers-settings > summary { min-height: 44px; }
}
@media (max-width: 440px) {
  .speakers-assignments { align-items: flex-start; }
  .speakers-group-label { flex-basis: 100%; }
  .editor-speakers .speakers-remove { padding-inline: 3px; }
}
@media (forced-colors: active) {
  .speakers-track, .speakers-chip i { border: 1px solid ButtonText; }
  .speakers-track::before { background: ButtonText; }
  .speakers-chip[aria-pressed="true"] { outline: 2px solid Highlight; }
}
