.dispatch-colour-settings{--palette-bg: #111d2c;--palette-tile: #192638;--palette-tile-hover: #1e2e43;--palette-border: #304158;--palette-divider: #28384d;--palette-text: #e7edf6;--palette-muted: #94a5bd;--palette-accent: #93b9f2;margin-top:22px;overflow:hidden;border:1px solid var(--palette-border);border-radius:18px;background:var(--palette-bg);color:var(--palette-text);box-shadow:0 6px 24px #00000012}html:not(.dark) .dispatch-colour-settings{--palette-bg: #ffffff;--palette-tile: #f8fafc;--palette-tile-hover: #f0f5fc;--palette-border: #dbe3ee;--palette-divider: #e8edf4;--palette-text: #20314b;--palette-muted: #64748b;--palette-accent: #365eab}html.midnight-gold .dispatch-colour-settings{--palette-bg: #15202e;--palette-tile: #1c2a3c;--palette-tile-hover: #233249;--palette-border: #40516a;--palette-divider: #324258;--palette-text: #f5f0e6;--palette-muted: #a7b3c5;--palette-accent: #d9b96d}.dispatch-palette-header{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;padding:18px 22px;border-bottom:1px solid var(--palette-divider)}.dispatch-palette-heading,.dispatch-palette-summary,.dispatch-palette-group-heading{display:inline-flex;align-items:center;gap:10px}.dispatch-palette-heading-icon{display:grid;width:36px;height:36px;place-items:center;border:1px solid var(--palette-border);border-radius:11px;background:var(--palette-tile);color:var(--palette-accent)}.dispatch-palette-heading h3{margin:0;font-size:14px;font-weight:650;letter-spacing:-.015em}.dispatch-palette-miniatures{display:inline-flex;align-items:center;padding-left:5px}.dispatch-palette-miniatures>span{width:14px;height:14px;margin-left:-4px;border:2px solid var(--palette-bg);border-radius:50%}.dispatch-palette-state{font-size:11px;font-weight:500;color:var(--palette-muted)}.dispatch-palette-state.is-dirty{color:var(--palette-accent)}.dispatch-palette-access{margin:14px 22px 0;font-size:12px;color:var(--palette-muted)}.dispatch-palette-body{padding:2px 22px 22px}.dispatch-palette-group{min-width:0;margin:22px 0 0;padding:0;border:0}.dispatch-palette-group legend{padding:0;margin-bottom:11px}.dispatch-palette-group-heading{gap:8px;font-size:12px;font-weight:600;color:var(--palette-text)}.dispatch-palette-group-heading>svg{color:var(--palette-muted)}.dispatch-palette-count{min-width:20px;padding:1px 5px;border:1px solid var(--palette-border);border-radius:6px;color:var(--palette-muted);text-align:center;font-size:10px;font-weight:500}.dispatch-palette-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.dispatch-palette-tile{display:flex;min-width:0;align-items:center;gap:12px;padding:12px;border:1px solid var(--palette-divider);border-radius:12px;background:var(--palette-tile);cursor:pointer;transition:border-color .14s ease,background-color .14s ease}.dispatch-palette-group:not(:disabled) .dispatch-palette-tile:hover{background:var(--palette-tile-hover);border-color:var(--palette-border)}.dispatch-palette-tile:focus-within{outline:2px solid var(--palette-accent);outline-offset:2px}.dispatch-palette-swatch{position:relative;display:grid;flex:0 0 40px;width:40px;height:40px;place-items:center;overflow:hidden;border-radius:10px;background:var(--dispatch-colour);color:var(--dispatch-colour-text);box-shadow:inset 0 0 0 1px #80808033}.dispatch-palette-swatch>svg{opacity:.7;pointer-events:none}.dispatch-palette-swatch>input{position:absolute;inset:0;width:100%;height:100%;padding:0;opacity:0;cursor:pointer}.dispatch-palette-tile-copy{display:flex;min-width:0;flex-direction:column;gap:4px}.dispatch-palette-tile-name{font-size:12px;font-weight:550;line-height:1.4;overflow-wrap:anywhere}.dispatch-palette-tile-value{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:10px;letter-spacing:.05em;color:var(--palette-muted)}.dispatch-palette-group:disabled .dispatch-palette-tile,.dispatch-palette-group:disabled input{cursor:default}.dispatch-palette-footer{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px;padding:16px 22px;border-top:1px solid var(--palette-divider)}.dispatch-palette-message{display:flex;flex:1 1 260px;min-width:0;align-items:flex-start;gap:8px;margin:0;font-size:11px;line-height:1.6;color:var(--palette-muted)}.dispatch-palette-message>svg{flex-shrink:0;margin-top:1px}.dispatch-palette-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px;margin-left:auto}.dispatch-palette-actions .cm-btn{gap:7px;min-height:34px;padding:7px 12px;border-radius:8px}.dispatch-palette-actions .cm-btn:disabled{opacity:.45;cursor:not-allowed}.dispatch-palette-actions .cm-btn:focus-visible{outline:2px solid var(--palette-accent);outline-offset:3px}@media(max-width:1000px){.dispatch-palette-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:560px){.dispatch-palette-header,.dispatch-palette-footer{padding:16px}.dispatch-palette-body{padding:0 16px 16px}.dispatch-palette-grid{grid-template-columns:minmax(0,1fr);gap:8px}.dispatch-palette-summary{margin-left:46px}.dispatch-palette-actions{width:100%}}@media(prefers-reduced-motion:reduce){.dispatch-palette-tile{transition:none}}

/* Tenant dispatch palettes. Solid badges keep WCAG-readable black/white text in every theme. */
.dispatch-colour-badge,
.dispatch-config-job-status[style] > span {
  background-color: var(--dispatch-colour) !important;
  border-color: var(--dispatch-colour) !important;
  color: var(--dispatch-colour-text) !important;
}
.dispatch-colour-row > td {
  background-color: var(--dispatch-colour-tint) !important;
}
.dispatch-colour-row:hover > td {
  box-shadow: inset 0 0 0 999px rgb(128 128 128 / 8%);
}
.dispatch-colour-row > td:first-child {
  box-shadow: inset 3px 0 var(--dispatch-colour);
}

.dispatch-colour-waiting-chip{border-left:3px solid var(--dispatch-colour)!important}
