body { margin: 0; padding-left: 0; min-height: 100vh; background: #f5f7fa; }
.dispatch-header { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 18px 24px; background: white; border-bottom: 1px solid #e4e7ed; }
.dispatch-header h1 { font-size: 20px; margin: 0; }
.dispatch-header button, .dispatch-login button { padding: 8px 16px; border: 1px solid #dcdfe6; border-radius: 6px; background: white; cursor: pointer; }
.dispatch-main { width: min(1500px, 100%); margin: auto; padding: 24px; }
.dispatch-login { width: min(420px, calc(100% - 32px)); margin: 12vh auto; padding: 32px; background: white; border: 1px solid #e4e7ed; border-radius: 8px; }
.dispatch-login h1 { font-size: 22px; }
.dispatch-login label { display: grid; gap: 8px; margin: 24px 0 16px; }
.dispatch-login input { min-height: 40px; padding: 8px; border: 1px solid #dcdfe6; border-radius: 6px; }
.dispatch-login button { background: #377dff; border-color: #377dff; color: white; }
.dispatch-login [role="alert"] { color: #b3261e; }
.dispatch-monitor-heading p { margin-top: 4px; }
.dispatch-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding: 16px 16px 0; }
.dispatch-card { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 4px; padding: 12px 14px; border: 1px solid #e5eaf2; border-radius: 6px; background: #fafbfd; }
.dispatch-card span { color: #475467; }
.dispatch-card strong { font-size: 22px; color: #25344a; font-variant-numeric: tabular-nums; }
.dispatch-card small { grid-column: 1 / -1; color: #667085; }
.dispatch-progress { padding: 14px 16px; color: #344054; font-weight: 500; line-height: 1.7; }
.dispatch-list-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-top: 1px solid #edf1f5; }
.dispatch-list-heading h3 { font-size: 14px; }
.dispatch-list-heading select { margin-left: 6px; padding: 6px 8px; border: 1px solid #dcdfe6; border-radius: 5px; background: white; }
.dispatch-server-list { max-height: 420px; overflow-y: auto; border-top: 1px solid #edf1f5; }
.dispatch-server-row { display: grid; grid-template-columns: minmax(160px, 1.4fr) 100px minmax(120px, 1fr) minmax(150px, 1fr) auto; gap: 12px; align-items: center; padding: 11px 16px; border-bottom: 1px solid #f0f2f6; }
.dispatch-server-name { min-width: 0; overflow-wrap: anywhere; font-weight: 500; }
.dispatch-state { width: fit-content; border-radius: 4px; padding: 2px 8px; color: #475467; background: #f0f2f5; white-space: nowrap; }
.dispatch-state.is-running { color: #146c43; background: #e7f6ee; }
.dispatch-state.is-paused { color: #8a5100; background: #fff3db; }
.dispatch-state.is-unknown { color: #a3291e; background: #fff0ee; }
.dispatch-server-progress, .dispatch-server-counts { color: #475467; font-variant-numeric: tabular-nums; }
.dispatch-empty, .dispatch-footnote { margin: 0; padding: 12px 16px; color: #667085; }
.dispatch-footnote { font-size: 12px; }
.dispatch-management, .dispatch-advanced, .dispatch-target-details { border: 1px solid #e4e7ed; border-radius: 6px; background: white; }
.dispatch-management > summary, .dispatch-advanced > summary, .dispatch-target-details > summary { padding: 12px 16px; cursor: pointer; color: #344054; font-weight: 500; }
.dispatch-management-content { display: grid; gap: 16px; padding: 0 16px 16px; }
.dispatch-advanced, .dispatch-target-details { margin: 0 16px 12px; }
.dispatch-advanced-fields { display: flex; flex-wrap: wrap; align-items: end; gap: 12px 16px; padding: 0 16px 12px; }
.dispatch-advanced .remote-help { margin: 0; }
@media (max-width: 600px) { .dispatch-main { padding: 12px; } .dispatch-header { padding: 14px; } }
@media (max-width: 700px) {
  .dispatch-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dispatch-server-row { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; }
  .dispatch-server-progress, .dispatch-server-counts { grid-column: 1 / -1; }
  .dispatch-server-row > div:last-child { grid-column: 1 / -1; }
}
