:root {
  --workflow-queue-low: #4fd57f;
  --workflow-queue-medium: #f0c34d;
  --workflow-queue-high: #ef6c67;
  --workflow-queue-low-soft: rgba(79, 213, 127, 0.18);
  --workflow-queue-medium-soft: rgba(240, 195, 77, 0.18);
  --workflow-queue-high-soft: rgba(239, 108, 103, 0.18);
}

.service-console .panel-top,
.seo-operations-panel .panel-top {
  justify-content: space-between;
  gap: 18px;
}

.service-console .panel-top > .pulse-dot,
.seo-operations-panel .panel-top > .pulse-dot {
  flex: 0 0 auto;
  margin-left: auto;
}

.service-console .hours-card-head,
.seo-operations-panel .hours-card-head {
  align-items: center;
}

.service-console .hours-card-head .hours-label,
.seo-operations-panel .hours-card-head .hours-label {
  margin-bottom: 0;
}

.pulse-dot.is-queue-low {
  background: var(--workflow-queue-low);
  box-shadow: 0 0 0 6px rgba(79, 213, 127, 0.14);
}

.pulse-dot.is-queue-medium {
  background: var(--workflow-queue-medium);
  box-shadow: 0 0 0 6px rgba(240, 195, 77, 0.14);
}

.pulse-dot.is-queue-high {
  background: var(--workflow-queue-high);
  box-shadow: 0 0 0 6px rgba(239, 108, 103, 0.14);
}

.hours-badge.is-queue-low {
  background: var(--workflow-queue-low-soft);
  border-color: rgba(79, 213, 127, 0.34);
  color: #e3ffeb;
}

.hours-badge.is-queue-medium {
  background: var(--workflow-queue-medium-soft);
  border-color: rgba(240, 195, 77, 0.34);
  color: #fff5d8;
}

.hours-badge.is-queue-high {
  background: var(--workflow-queue-high-soft);
  border-color: rgba(239, 108, 103, 0.34);
  color: #ffe7e4;
}

.workflow-legend {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0;
  flex-wrap: wrap;
  flex: 0 0 auto;
}

.workflow-legend-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  min-width: 0;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: #d9edf7;
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
}

.workflow-legend-item small {
  display: block;
  font: inherit;
  color: inherit;
}

.hours-row span.workflow-legend-item {
  flex: 0 0 auto;
  width: auto;
  min-width: 0;
}

.workflow-legend-item.is-low {
  background: var(--workflow-queue-low-soft);
  border-color: rgba(79, 213, 127, 0.26);
  color: #e3ffeb;
}

.workflow-legend-item.is-medium {
  background: var(--workflow-queue-medium-soft);
  border-color: rgba(240, 195, 77, 0.26);
  color: #fff5d8;
}

.workflow-legend-item.is-high {
  background: var(--workflow-queue-high-soft);
  border-color: rgba(239, 108, 103, 0.26);
  color: #ffe7e4;
}

.workflow-status-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex: 0 0 10px;
  min-width: 10px;
  vertical-align: middle;
}

.hours-row span.workflow-status-dot {
  flex: 0 0 10px;
  min-width: 10px;
  width: 10px;
}

.hours-row span.workflow-status-pill {
  flex: 0 0 auto;
  width: auto;
  min-width: 0;
}

.workflow-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
  flex: 0 0 auto;
  width: auto;
  min-width: 0;
}

.workflow-status-pill strong {
  color: inherit;
  font-size: inherit;
}

.workflow-status-pill.is-support-window-available {
  background: var(--workflow-queue-low-soft);
  border-color: rgba(79, 213, 127, 0.34);
  color: #e3ffeb;
}

.workflow-status-pill.is-support-window-available .workflow-status-dot {
  background: var(--workflow-queue-low);
  box-shadow: 0 0 0 3px rgba(79, 213, 127, 0.14);
}

.workflow-status-pill.is-support-window-schedule {
  background: var(--workflow-queue-medium-soft);
  border-color: rgba(240, 195, 77, 0.34);
  color: #fff5d8;
}

.workflow-status-pill.is-support-window-schedule .workflow-status-dot {
  background: var(--workflow-queue-medium);
  box-shadow: 0 0 0 3px rgba(240, 195, 77, 0.14);
}

.workflow-status-pill.is-support-window-downtime {
  background: var(--workflow-queue-high-soft);
  border-color: rgba(239, 108, 103, 0.34);
  color: #ffe7e4;
}

.workflow-status-pill.is-support-window-downtime .workflow-status-dot {
  background: var(--workflow-queue-high);
  box-shadow: 0 0 0 3px rgba(239, 108, 103, 0.14);
}

.workflow-note-row {
  display: block;
}

.workflow-note-row span {
  display: block;
  color: #d8f7ff;
  font-weight: 600;
  line-height: 1.45;
  text-align: center;
}

@media (max-width: 960px) {
  .service-console .hours-card-head,
  .service-console .hours-row {
    align-items: flex-start;
  }

  .workflow-legend {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .service-console .panel-top {
    align-items: flex-start;
  }

  .service-console .hours-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .workflow-status-pill {
    align-self: flex-start;
  }
}
