@keyframes deploy-status-spin {
  to {
    transform: rotate(360deg);
  }
}

.deploy-status-banner {
  flex-shrink: 0;
  border-bottom: 1px solid transparent;
  font-family: var(--font, 'Sora', system-ui, sans-serif);
  font-size: 11px;
  line-height: 1.35;
}
.deploy-status-banner--deploying {
  background: linear-gradient(180deg, #fffbeb 0%, #fef3c7 100%);
  color: #78350f;
  border-bottom-color: #fde68a;
}
.deploy-status-banner--failed {
  background: linear-gradient(180deg, #fef2f2 0%, #fee2e2 100%);
  color: #991b1b;
  border-bottom-color: #fecaca;
  box-shadow: 0 4px 24px rgba(220, 38, 38, 0.12);
}
.deploy-status-banner--failed .deploy-status-banner__label {
  color: #7f1d1d;
}
.deploy-status-banner--failed .deploy-status-banner__muted {
  opacity: 0.88;
  color: #b91c1c;
}
.deploy-status-banner--failed .deploy-status-banner__sha {
  background: rgba(127, 29, 29, 0.08);
  border-color: rgba(127, 29, 29, 0.16);
}
.deploy-status-banner--failed .deploy-status-banner__failed-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  background: #dc2626;
  color: #fff;
}
.deploy-status-banner__subline {
  margin: 2px 0 0;
  font-size: 10px;
  line-height: 1.35;
  opacity: 0.85;
  color: #991b1b;
}
.deploy-status-banner--deploying .deploy-status-banner__close {
  border-color: rgba(120, 53, 15, 0.16);
  background: rgba(255, 255, 255, 0.55);
  color: #92400e;
}
.deploy-status-banner--deploying .deploy-status-banner__close:hover {
  background: rgba(255, 255, 255, 0.92);
  color: #78350f;
  border-color: rgba(120, 53, 15, 0.24);
}
.deploy-status-banner--ready {
  background: linear-gradient(180deg, #ecfdf5 0%, #d1fae5 100%);
  color: #064e3b;
  border-bottom-color: #a7f3d0;
}
.deploy-status-banner--important {
  background: linear-gradient(180deg, #f5f3ff 0%, #ede9fe 100%);
  color: #5b21b6;
  border-bottom-color: #ddd6fe;
  box-shadow: 0 4px 24px rgba(124, 58, 237, 0.12);
}
.deploy-status-banner--important .deploy-status-banner__label {
  color: #4c1d95;
}
.deploy-status-banner--important .deploy-status-banner__muted {
  opacity: 0.88;
  color: #7c3aed;
}
.deploy-status-banner--important .deploy-status-banner__sha {
  background: rgba(76, 29, 149, 0.08);
  border-color: rgba(76, 29, 149, 0.16);
}
.deploy-status-banner--important .deploy-status-banner__ready-icon {
  background: #7c3aed;
  color: #fff;
  font-weight: 900;
}
.deploy-status-banner--important .deploy-status-banner__refresh {
  background: #7c3aed;
  box-shadow: 0 2px 10px rgba(124, 58, 237, 0.28);
}
.deploy-status-banner--important .deploy-status-banner__refresh:hover {
  box-shadow: 0 3px 14px rgba(124, 58, 237, 0.36);
}
.deploy-status-banner--minor {
  background: #f3f4f6;
  color: #374151;
  border-bottom-color: #e5e7eb;
}
.deploy-status-banner--minor .deploy-status-banner__label {
  color: #1f2937;
  font-weight: 700;
}
.deploy-status-banner--minor .deploy-status-banner__muted {
  opacity: 0.85;
  color: #6b7280;
}
.deploy-status-banner--minor .deploy-status-banner__sha {
  background: rgba(55, 65, 81, 0.08);
  border-color: rgba(55, 65, 81, 0.12);
}
.deploy-status-root {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10050;
  pointer-events: none;
}
.deploy-status-root .deploy-status-banner,
.deploy-status-root .deploy-status-handle {
  pointer-events: auto;
}
.deploy-status-handle--global {
  display: flex;
  justify-content: center;
}
.deploy-status-handle__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 5px 14px 7px;
  border: 1px solid #d1d5db;
  border-top: none;
  border-radius: 0 0 10px 10px;
  background: #f9fafb;
  color: #4b5563;
  font-family: var(--font, 'Sora', system-ui, sans-serif);
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}
.deploy-status-handle__btn:hover {
  background: #fff;
  color: #1f2937;
  box-shadow: 0 5px 18px rgba(15, 23, 42, 0.1);
}
.deploy-status-handle__btn--deploying {
  background: linear-gradient(180deg, #fffbeb 0%, #fef3c7 100%);
  color: #78350f;
  border-color: #fde68a;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.14);
}
.deploy-status-handle__btn--deploying:hover {
  background: linear-gradient(180deg, #fffef5 0%, #fde68a 100%);
  color: #78350f;
  box-shadow: 0 5px 18px rgba(217, 119, 6, 0.18);
}
.deploy-status-handle__btn--ready {
  background: linear-gradient(180deg, #ecfdf5 0%, #d1fae5 100%);
  color: #064e3b;
  border-color: #a7f3d0;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.14);
}
.deploy-status-handle__btn--ready:hover {
  background: linear-gradient(180deg, #f0fdf9 0%, #bbf7d0 100%);
  color: #064e3b;
  box-shadow: 0 5px 18px rgba(5, 150, 105, 0.18);
}
.deploy-status-handle__grip {
  width: 20px;
  height: 3px;
  border-radius: 999px;
  background: #9ca3af;
  box-shadow: 0 -4px 0 #9ca3af, 0 4px 0 #9ca3af;
}
.deploy-status-handle__grip--deploying {
  background: #d97706;
  box-shadow: 0 -4px 0 #d97706, 0 4px 0 #d97706;
}
.deploy-status-handle__grip--ready {
  background: #059669;
  box-shadow: 0 -4px 0 #059669, 0 4px 0 #059669;
}
.deploy-status-handle__chevron {
  font-size: 9px;
  line-height: 1;
  opacity: 0.75;
}
.deploy-status-banner--global {
  box-shadow: 0 4px 24px rgba(8, 18, 42, 0.1);
}
.deploy-status-banner__inner {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 6px 12px;
  max-width: 100%;
  min-height: 32px;
}
.deploy-status-banner__content {
  min-width: 0;
  flex: 1;
}
.deploy-status-banner__stack {
  list-style: none;
  margin: 3px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
  font-size: 10px;
  line-height: 1.25;
}
.deploy-status-banner__stack-item {
  display: flex;
  align-items: center;
  min-width: 0;
}
.deploy-status-banner__stack-item .deploy-status-banner__commit {
  max-width: 100%;
  gap: 5px;
}
.deploy-status-banner__stack-item .deploy-status-banner__sha {
  font-size: 8px;
  padding: 1px 4px;
  border-radius: 3px;
}
.deploy-status-banner__stack-item .deploy-status-banner__subject {
  font-size: 10px;
  font-weight: 500;
  max-width: min(100%, 420px);
}
.deploy-status-banner__line {
  margin: 0;
  min-width: 0;
  flex: 1;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  font-size: 11px;
  line-height: 1.3;
}
.deploy-status-banner__label {
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
  font-size: 11px;
}
.deploy-status-banner__sep {
  opacity: 0.45;
  font-weight: 600;
  line-height: 1;
  font-size: 10px;
}
.deploy-status-banner__muted {
  opacity: 0.72;
  white-space: nowrap;
  font-size: 10px;
  font-weight: 500;
}
.deploy-status-banner__stage {
  font-weight: 600;
  white-space: nowrap;
}
.deploy-status-banner__commit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  max-width: min(100%, 520px);
}
.deploy-status-banner__sha {
  flex-shrink: 0;
  font-family: var(--mono, 'IBM Plex Mono', ui-monospace, monospace);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 2px 5px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.08);
}
.deploy-status-banner--ready .deploy-status-banner__sha {
  background: rgba(6, 78, 59, 0.08);
  border-color: rgba(6, 78, 59, 0.12);
}
.deploy-status-banner__subject {
  font-weight: 500;
  font-size: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.deploy-status-banner__line .deploy-status-banner__subject {
  font-size: 11px;
  font-weight: 600;
}
.deploy-status-banner__spinner {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 2px solid rgba(120, 53, 15, 0.16);
  border-top-color: #d97706;
  animation: deploy-status-spin 0.8s linear infinite;
}
.deploy-status-banner__ready-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  background: #059669;
  color: #fff;
}
.deploy-status-banner__refresh {
  flex-shrink: 0;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  padding: 5px 10px;
  font-size: 10px;
  font-weight: 700;
  font-family: var(--font, 'Sora', system-ui, sans-serif);
  background: #059669;
  color: #fff;
  transition: transform 0.12s, opacity 0.15s;
}
.deploy-status-banner__refresh:hover {
  opacity: 0.92;
}
.deploy-status-banner__refresh:active {
  transform: scale(0.98);
}
.deploy-status-banner__actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.deploy-status-banner__ignore {
  flex-shrink: 0;
  border: 1px solid rgba(6, 78, 59, 0.2);
  border-radius: 999px;
  cursor: pointer;
  padding: 5px 10px;
  font-size: 10px;
  font-weight: 700;
  font-family: var(--font, 'Sora', system-ui, sans-serif);
  background: rgba(255, 255, 255, 0.65);
  color: #065f46;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.deploy-status-banner__ignore:hover {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(6, 78, 59, 0.32);
}
.deploy-status-banner__ignore:active {
  transform: scale(0.98);
}
.deploy-status-banner__close {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(55, 65, 81, 0.12);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.55);
  color: #6b7280;
  font-size: 15px;
  line-height: 1;
  font-weight: 400;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-family: var(--font, 'Sora', system-ui, sans-serif);
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.deploy-status-banner__close:hover {
  background: rgba(255, 255, 255, 0.9);
  color: #374151;
  border-color: rgba(55, 65, 81, 0.2);
}
.deploy-status-banner--ready .deploy-status-banner__close {
  border-color: rgba(6, 78, 59, 0.16);
  background: rgba(255, 255, 255, 0.55);
  color: #047857;
}
.deploy-status-banner--ready .deploy-status-banner__close:hover {
  background: rgba(255, 255, 255, 0.92);
  color: #065f46;
  border-color: rgba(6, 78, 59, 0.24);
}
.deploy-status-banner__close:active {
  transform: scale(0.96);
}

/* Settings wrench button */
.deploy-status-banner__settings {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(55, 65, 81, 0.12);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.55);
  color: #6b7280;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.deploy-status-banner__settings:hover {
  background: rgba(255, 255, 255, 0.9);
  color: #374151;
  border-color: rgba(55, 65, 81, 0.2);
}
.deploy-status-banner__settings:active {
  transform: scale(0.96);
}
.deploy-status-banner--deploying .deploy-status-banner__settings {
  border-color: rgba(120, 53, 15, 0.16);
  background: rgba(255, 255, 255, 0.55);
  color: #92400e;
}
.deploy-status-banner--deploying .deploy-status-banner__settings:hover {
  background: rgba(255, 255, 255, 0.92);
  color: #78350f;
  border-color: rgba(120, 53, 15, 0.24);
}
.deploy-status-banner--ready .deploy-status-banner__settings {
  border-color: rgba(6, 78, 59, 0.16);
  background: rgba(255, 255, 255, 0.55);
  color: #047857;
}
.deploy-status-banner--ready .deploy-status-banner__settings:hover {
  background: rgba(255, 255, 255, 0.92);
  color: #065f46;
  border-color: rgba(6, 78, 59, 0.24);
}

/* Auto-refresh toggle in the deploying bar */
.deploy-status-banner__auto-refresh {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  font-size: 10px;
  font-weight: 600;
  font-family: var(--font, 'Sora', system-ui, sans-serif);
  color: #92400e;
  flex-shrink: 0;
  padding: 4px 8px;
  border: 1px solid rgba(120, 53, 15, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  transition: background 0.15s;
  user-select: none;
  line-height: 1;
}
.deploy-status-banner__auto-refresh:hover {
  background: rgba(255, 255, 255, 0.85);
}
.deploy-status-banner__auto-refresh input[type="checkbox"] {
  width: 11px;
  height: 11px;
  margin: 0;
  cursor: pointer;
  accent-color: #d97706;
  flex-shrink: 0;
}

/* Settings dialog overlay */
@keyframes deploy-status-fadein {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes deploy-status-slidein {
  from { transform: translateY(-6px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.deploy-status-settings-overlay {
  position: fixed;
  inset: 0;
  z-index: 10060;
  background: rgba(0, 0, 0, 0.32);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: deploy-status-fadein 0.15s ease;
}
.deploy-status-settings-dialog {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.18);
  width: 320px;
  max-width: calc(100vw - 32px);
  font-family: var(--font, 'Sora', system-ui, sans-serif);
  overflow: hidden;
  animation: deploy-status-slidein 0.15s ease;
}
.deploy-status-settings-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 12px;
  border-bottom: 1px solid #f3f4f6;
}
.deploy-status-settings-title {
  font-size: 13px;
  font-weight: 700;
  color: #111827;
  margin: 0;
}
.deploy-status-settings-close {
  width: 24px;
  height: 24px;
  border: 1px solid rgba(55, 65, 81, 0.12);
  border-radius: 6px;
  background: #f9fafb;
  color: #6b7280;
  font-size: 15px;
  font-weight: 400;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 0.15s, color 0.15s;
}
.deploy-status-settings-close:hover {
  background: #f3f4f6;
  color: #374151;
}
.deploy-status-settings-body {
  padding: 12px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.deploy-status-settings-row {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  color: #374151;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #f3f4f6;
  background: #f9fafb;
  transition: background 0.12s, border-color 0.12s;
  user-select: none;
}
.deploy-status-settings-row:hover {
  background: #f3f4f6;
  border-color: #e5e7eb;
}
.deploy-status-settings-row input[type="checkbox"] {
  width: 14px;
  height: 14px;
  margin: 0;
  flex-shrink: 0;
  cursor: pointer;
  accent-color: #6366f1;
}
