
div.dash-debug-menu__content button.dash-debug-menu__button:first-child {
  display: none;
}

.rm-root {
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: #f5f7fb;
  min-height: 100vh;
  padding: 2rem 3rem 4rem;
  color: #0e1f33;
}

.rm-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.rm-header-text h1 {
  margin: 0;
  font-size: 2rem;
}

.rm-header-meta {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 0.25rem 1rem;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.rm-section {
  margin-bottom: 2.5rem;
}

.rm-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.rm-section-heading--stacked {
  align-items: flex-start;
  flex-direction: column;
  gap: 0.25rem;
}

.rm-section-subtitle {
  margin: 0;
  font-size: 0.95rem;
  color: #5b648f;
}

.rm-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.rm-card {
  background: #fff;
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: 0 20px 45px rgba(18, 34, 72, 0.08);
  border: 1px solid rgba(43, 76, 139, 0.08);
}

.rm-card-title {
  font-size: 1.1rem;
  font-weight: 600;
}


.rm-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.rm-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.rm-card-heading {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.rm-card-meta {
  font-size: 0.8rem;
  color: #7b879f;
}

.rm-card-body {
  margin: 1.25rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.rm-card-toggle {
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(14, 31, 51, 0.08);
  font-size: 0.9rem;
  color: #243175;
}

.rm-card-toggle label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.rm-card-toggle input[type="checkbox"] {
  width: 1.1rem;
  height: 1.1rem;
  accent-color: #5168ff;
}

.rm-card-controls {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
  margin-left: auto;
  min-width: 180px;
}

@media (max-width: 600px) {
  .rm-card-controls {
    align-items: flex-start;
    width: 100%;
  }
}

.rm-card-state-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.4rem;
}

@media (max-width: 600px) {
  .rm-card-state-group {
    justify-content: flex-start;
  }
}

.rm-card-action-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.rm-card-controls .rm-button {
  white-space: nowrap;
}

.rm-auto-stop-toggle {
  border: 1px solid rgba(14, 31, 51, 0.08);
  border-radius: 12px;
  padding: 0.35rem 0.75rem;
  background: rgba(15, 22, 38, 0.03);
}

.rm-auto-stop-toggle-input {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: #243175;
}

.rm-auto-stop-toggle-input label {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
}

.rm-auto-stop-toggle-input input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  accent-color: #5168ff;
}

.rm-card-active-run {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(81, 104, 255, 0.2);
  border-radius: 12px;
  background: rgba(81, 104, 255, 0.08);
}

.rm-card-active-run .rm-chip--status {
  background: rgba(15, 23, 42, 0.85);
  color: #f4f6ff;
}

.rm-active-git {
  font-family: "JetBrains Mono", "SFMono-Regular", "Consolas", monospace;
  font-size: 0.85rem;
  color: #243175;
}

.rm-chip {
  background: rgba(86, 126, 235, 0.15);
  color: #3659b1;
  padding: 0.2rem 0.8rem;
  border-radius: 999px;
  font-size: 0.8rem;
  text-transform: capitalize;
}

.rm-chip--state {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rm-chip--state-running {
  background: rgba(34, 197, 94, 0.2);
  color: #14532d;
}

.rm-chip--state-pending,
.rm-chip--state-initializing {
  background: rgba(251, 191, 36, 0.25);
  color: #92400e;
}

.rm-chip--state-stopping,
.rm-chip--state-shutting-down {
  background: rgba(249, 115, 22, 0.2);
  color: #7c2d12;
}

.rm-chip--state-stopped,
.rm-chip--state-terminated,
.rm-chip--state-unknown {
  background: rgba(148, 163, 184, 0.25);
  color: #1f2937;
}

.rm-chip--warning {
  background: rgba(251, 191, 36, 0.25);
  color: #92400e;
}

.rm-badge {
  font-weight: 600;
}

.rm-muted {
  color: #6b7280;
}

.rm-card--composer {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: flex-start;
  padding: 2rem;
  background: linear-gradient(135deg, rgba(81, 104, 255, 0.08), rgba(59, 193, 254, 0.05));
  border: 1px solid rgba(81, 104, 255, 0.15);
}

@media (max-width: 1100px) {
  .rm-card--composer {
    grid-template-columns: 1fr;
  }
}

.rm-composer-pane {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.rm-composer-pane--primary {
  padding-right: 1rem;
}

@media (max-width: 1100px) {
  .rm-composer-pane--primary {
    padding-right: 0;
  }
}

.rm-textarea,
.rm-input,
.rm-dropdown,
.rm-dropdown .Select-control {
  width: 100%;
  max-width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(14, 31, 51, 0.15);
  background: #fff;
  box-sizing: border-box;
}

.rm-dropdown {
  display: block;
}

.rm-field label {
  display: block;
  margin-bottom: 0.35rem;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

.rm-upload {
  border: 2px dashed #c5d0f8;
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  cursor: pointer;
  background: rgba(197, 208, 248, 0.15);
}

.rm-field--textarea {
  grid-column: 1 / -1;
}

.rm-field--actions {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.rm-textarea {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(14, 31, 51, 0.15);
  padding: 1rem 1.25rem;
  font-family: "JetBrains Mono", "SFMono-Regular", "Consolas", monospace;
  font-size: 0.9rem;
  line-height: 1.4;
  background: #0f1626;
  color: #f4f6ff;
  min-height: 240px;
}

.rm-textarea:focus {
  outline: none;
  border-color: #5168ff;
  box-shadow: 0 0 0 3px rgba(81, 104, 255, 0.15);
}

.rm-input {
  padding: 0.9rem 1rem;
  font-size: 0.95rem;
}

.rm-input:focus,
.rm-dropdown .Select-control:focus {
  outline: none;
  border-color: #5168ff;
  box-shadow: 0 0 0 3px rgba(81, 104, 255, 0.15);
}

.rm-input--number::-webkit-inner-spin-button,
.rm-input--number::-webkit-outer-spin-button {
  opacity: 1;
  height: 1.25rem;
}

.rm-dropdown .Select-placeholder {
  color: #7b879f;
}

.rm-help-text {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.8rem;
  color: #7b879f;
}

.rm-label--muted {
  color: #7b879f;
}

.rm-card-body-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.rm-card-body-row .rm-value {
  font-weight: 500;
}

.rm-card-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.rm-metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin-bottom: 0.25rem;
}

@media (max-width: 640px) {
  .rm-metric-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }
}

.rm-metric {
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  border: 1px solid rgba(81, 104, 255, 0.2);
  background: rgba(81, 104, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.rm-metric-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #5b648f;
}

.rm-metric-value {
  font-size: 1.3rem;
  font-weight: 600;
}

.rm-metric-bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  overflow: hidden;
}

.rm-metric-bar__fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(135deg, #5168ff, #3bc1fe);
}

.rm-metric-chip {
  padding: 0.2rem 0.6rem;
  background: rgba(81, 104, 255, 0.15);
  color: #1d2c6b;
  border-radius: 999px;
  font-size: 0.8rem;
}

.rm-card--instance {
  position: relative;
  overflow: hidden;
}

.rm-card--instance::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(135deg, rgba(81, 104, 255, 0.4), rgba(59, 193, 254, 0.3));
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

.rm-card--instance > * {
  position: relative;
}

.rm-health {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.rm-health-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
}

.rm-health-dot--healthy {
  background: #16a34a;
  box-shadow: 0 0 12px rgba(22, 163, 74, 0.6);
}

.rm-health-dot--warning {
  background: #facc15;
  box-shadow: 0 0 12px rgba(250, 204, 21, 0.6);
}

.rm-health-dot--unreachable {
  background: #ef4444;
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.5);
}

.rm-health-dot--unknown {
  background: #94a3b8;
}

.rm-button {
  align-self: stretch;
  padding: 0.85rem 1.75rem;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #5168ff, #3bc1fe);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}

.rm-button--secondary {
  background: #fff;
  color: #1d2c6b;
  border: 1px solid rgba(81, 104, 255, 0.4);
  transition: box-shadow 0.2s ease;
}

.rm-button--secondary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.rm-button--secondary:not(:disabled):hover {
  box-shadow: 0 12px 24px rgba(81, 104, 255, 0.25);
}

.rm-dispatch-status {
  grid-column: 1 / -1;
  min-height: 1.5rem;
}

.rm-dispatch-status__message {
  display: inline-flex;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  font-size: 0.9rem;
  background: rgba(81, 104, 255, 0.12);
  color: #243175;
}

.rm-dispatch-status__message--error {
  background: rgba(229, 64, 64, 0.12);
  color: #a11c1c;
}

.rm-dispatch-status__message--success {
  background: rgba(56, 189, 149, 0.18);
  color: #0f5132;
}

.rm-loading {
  min-height: 200px;
}

.rm-loading--inline {
  min-height: 0;
}

.rm-loading--inline .dash-loading,
.rm-loading--inline .dash-loading-output {
  min-height: 100%;
}

.rm-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
}

.rm-table th, .rm-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #eef0f7;
  text-align: left;
}

.rm-table th {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  background: #f0f2fb;
}

.rm-runs-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.2fr);
  gap: 1.5rem;
}

@media (max-width: 1100px) {
  .rm-runs-grid {
    grid-template-columns: 1fr;
  }
}

.rm-runs-table,
.rm-sweep-panel {
  background: #fff;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 20px 45px rgba(18, 34, 72, 0.08);
  border: 1px solid rgba(43, 76, 139, 0.08);
}

.rm-sweep-panel .te-card {
  box-shadow: none;
  border-radius: 12px;
  border-color: rgba(43, 76, 139, 0.12);
}

.rm-sweep-panel .te-header {
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(43, 76, 139, 0.1);
}

.rm-sweep-panel .te-pane {
  gap: 0.65rem;
}

.rm-sweep-panel .te-editor--input .ace_editor {
  min-height: 280px;
}

.rm-empty-state {
  padding: 1rem;
  background: rgba(15, 22, 38, 0.04);
  border-radius: 12px;
  text-align: center;
  color: #6b7280;
}

.rm-runs-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.rm-run-rows {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.rm-run-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  padding: 0.45rem 0.75rem 0.45rem 1rem;
  border-radius: 14px;
  background: rgba(15, 22, 38, 0.02);
  border: 1px solid rgba(15, 31, 51, 0.06);
  align-items: center;
}

.rm-run-row-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
}

@media (max-width: 720px) {
  .rm-run-row-actions {
    align-items: stretch;
  }
}

.rm-run-row-actions .rm-chip {
  align-self: flex-start;
}

.rm-run-row-actions .rm-button {
  min-width: 100px;
}

@media (max-width: 720px) {
  .rm-run-row-actions .rm-button {
    width: 100%;
  }
}

.rm-run-row--header {
  background: transparent;
  border: none;
  padding: 0;
  grid-template-columns: minmax(0, 1fr) auto;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #7b879f;
}

.rm-run-row--selected {
  border-color: rgba(81, 104, 255, 0.4);
  background: rgba(81, 104, 255, 0.08);
  box-shadow: 0 12px 32px rgba(81, 104, 255, 0.15);
}

.rm-run-header-label {
  font-weight: 600;
}

.rm-run-header-label--actions {
  text-align: right;
}

.rm-run-row-select {
  border: none;
  background: transparent;
  padding: 0;
  text-align: left;
  cursor: pointer;
  width: 100%;
}

.rm-run-row-select:focus-visible {
  outline: 2px solid #5168ff;
  outline-offset: 2px;
}

.rm-run-row-content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.rm-run-row-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.rm-chip--status {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}

.rm-chip--status-queued,
.rm-chip--status-dispatched {
  background: rgba(14, 31, 51, 0.08);
  color: #0e1f33;
}

.rm-chip--status-preparing,
.rm-chip--status-packing,
.rm-chip--status-uploading {
  background: rgba(249, 179, 63, 0.18);
  color: #9a5a02;
}

.rm-chip--status-running {
  background: rgba(81, 104, 255, 0.18);
  color: #1d2c6b;
}

.rm-chip--status-completed {
  background: rgba(56, 189, 149, 0.2);
  color: #065f46;
}

.rm-chip--status-failed {
  background: rgba(248, 113, 113, 0.22);
  color: #7f1d1d;
}

.rm-chip--status-cancelled {
  background: rgba(248, 140, 113, 0.22);
  color: #7f341d;
}

.rm-run-row-details {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-size: 0.85rem;
  color: #4b5563;
}

.rm-run-sync-holder {
  flex-basis: 100%;
}

.rm-run-meta--stacked {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.35rem 0.65rem;
  border-radius: 10px;
  background: rgba(15, 22, 38, 0.03);
}

.rm-run-meta-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #7b879f;
}

.rm-run-meta-value {
  font-weight: 600;
  color: #1d2c6b;
}

.rm-run-progress {
  flex-basis: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 0.35rem;
}

.rm-progress-row {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.rm-progress-header {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  color: #4b567a;
}

.rm-progress-label {
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.rm-progress-value {
  font-weight: 600;
  color: #1d2c6b;
}

.rm-progress-secondary {
  color: #6b7280;
}

.rm-progress-bar {
  position: relative;
  background: rgba(15, 22, 38, 0.08);
  border-radius: 999px;
  height: 6px;
  overflow: hidden;
}

.rm-progress-bar__fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #5168ff, #3bc1fe);
}

.rm-progress-message {
  font-size: 0.75rem;
  color: #6b7280;
}

.rm-run-row-primary {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.rm-run-id {
  font-family: "JetBrains Mono", "SFMono-Regular", "Consolas", monospace;
  font-weight: 600;
  color: #111c3d;
}

.rm-run-note {
  color: #6b7280;
  font-size: 0.85rem;
}

.rm-run-meta {
  font-size: 0.85rem;
  color: #4b567a;
}

.rm-run-meta--code {
  font-family: "JetBrains Mono", "SFMono-Regular", "Consolas", monospace;
  font-size: 0.8rem;
  color: #243175;
}

.rm-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1rem;
}

.rm-pagination-label {
  font-size: 0.85rem;
  color: #4b567a;
}

.rm-button--ghost {
  background: transparent;
  border: 1px solid rgba(15, 31, 51, 0.2);
  color: #1d2c6b;
}

.rm-button--ghost:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.rm-button--tiny {
  padding: 0.35rem 0.65rem;
  font-size: 0.75rem;
}

.rm-button--small {
  padding: 0.4rem 0.9rem;
  font-size: 0.85rem;
}

.rm-run-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

body.rm-modal-open {
  overflow: hidden;
}

.rm-modal {
  position: fixed;
  inset: 0;
  background: rgba(14, 31, 51, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  z-index: 1000;
}

.rm-modal-card {
  background: #fff;
  border-radius: 20px;
  max-width: 520px;
  width: 100%;
  padding: 1.75rem;
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.35);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-height: min(90vh, 640px);
  overflow-y: auto;
}

.rm-modal-card:focus {
  outline: none;
  box-shadow:
    0 30px 70px rgba(15, 23, 42, 0.35),
    0 0 0 3px rgba(81, 104, 255, 0.35);
}

.rm-modal-header {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.rm-modal-title {
  margin: 0;
}

.rm-modal-subtitle {
  margin: 0;
  color: #5b648f;
}

.rm-modal-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.rm-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

.rm-radio-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.9rem;
}

.rm-radio-group input[type="radio"] {
  accent-color: #5168ff;
}

.rm-code-viewer {
  background: #0f1626;
  color: #f4f6ff;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  min-height: 400px;
  overflow: auto;
  font-family: "JetBrains Mono", "SFMono-Regular", "Consolas", monospace;
  font-size: 0.85rem;
  line-height: 1.5;
}

.rm-auth-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 11, 25, 0.82);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
}

.rm-auth-card {
  background: #fff;
  border-radius: 18px;
  padding: 2.5rem;
  width: min(420px, calc(100% - 2rem));
  box-shadow: 0 30px 70px rgba(0, 11, 40, 0.35);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.rm-auth-card h2 {
  margin: 0;
}

.rm-input--password,
.rm-input--centered {
  text-align: center;
}
