#completionChannelSettings[hidden] { display: none !important; }
#completionChannelSettings { display: block; }
#completionChannelSettings .completionChannelHeading,
#completionChannelSettings .completionChannelTitle,
#completionChannelSettings .completionChannelActions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
#completionChannelSettings .completionChannelHeading > button { margin-left: auto; }
#completionChannelSettings .completionChannelForm { display: block; padding: 18px 0 8px; border-top: 1px solid #e2e8f0; }
#completionChannelSettings .completionChannelTitle { justify-content: space-between; margin-bottom: 12px; }
#completionChannelSettings h3 { font-size: 14px; margin: 0; }
#completionChannelSettings .settingToggle { margin: 0; padding: 0; border: 0; background: transparent; min-height: 24px; display: flex; gap: 8px; align-items: center; }
/* The global density rules force text-input minimum height and padding on all inputs. */
#completionChannelSettings .settingToggle input { appearance: none; position: relative; width: 48px; height: 24px; min-height: 24px !important; flex: 0 0 48px; margin: 0; padding: 0 !important; border: 0; border-radius: 999px; background: #cbd5e1; box-shadow: none; cursor: pointer; }
#completionChannelSettings .settingToggle input::before { content: ""; position: absolute; width: 20px; height: 20px; left: 2px; top: 2px; border-radius: 50%; background: #fff; }
#completionChannelSettings .settingToggle input:checked { background: #2563eb; }
#completionChannelSettings .settingToggle input:checked::before { transform: translateX(24px); }
#completionChannelSettings .settingToggle input:focus-visible { outline: 2px solid #2563eb; outline-offset: 3px; }
#completionChannelSettings .settingToggle input:disabled { opacity: .55; cursor: default; }
#completionChannelSettings .completionChannelDetails { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; margin: 16px 0; }
#completionChannelSettings .completionChannelDetails > div { min-width: 0; }
#completionChannelSettings .completionChannelDetails dt { color: #64748b; font-size: 12px; margin-bottom: 6px; }
#completionChannelSettings .completionChannelDetails dd { margin: 0; line-height: 1.6; overflow-wrap: anywhere; }
#completionChannelSettings small,
#completionChannelSettings [data-test-state],
#completionChannelSettings [data-completion-project] { color: #64748b; font-size: 12px; overflow-wrap: anywhere; }
#completionChannelSettings .completionChannelActions { justify-content: flex-end; margin-top: 12px; }
#completionChannelSettings [data-test-state] { margin-right: auto; }
#completionChannelSettings .formStatus { overflow-wrap: anywhere; }
@media (max-width: 600px) {
  #completionChannelSettings .completionChannelDetails { grid-template-columns: minmax(0, 1fr); }
  #completionChannelSettings [data-test-state] { flex-basis: 100%; }
}
