/* Studio Pro interactive tutorial — scoped to marketing site */

.studio-pro-tutorial-page .page-shell {
  max-width: none;
  padding: 0;
}

.studio-pro-tutorial-page #main {
  padding: 0;
}

.spt-app {
  --spt-bg-deep: #2c3646;
  --spt-bg-sidebar: #1c2a3a;
  --spt-bg-canvas: #243040;
  --spt-bg-node: #18202e;
  --spt-edge: #7e88d0;
  --spt-text: #f5f0e3;
  --spt-muted: #a1a1aa;
  --spt-blue: #3b82f6;
  --spt-cyan: #06b6d4;
  --spt-purple: #a855f7;
  --spt-emerald: #34d399;
  display: flex;
  flex-direction: column;
  min-height: calc(100dvh - 76px);
  background: linear-gradient(180deg, rgba(61, 74, 92, 0.96), rgba(44, 54, 70, 0.98));
  color: var(--spt-text);
  font-family: "Nunito", system-ui, sans-serif;
}

.spt-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1.5rem;
  background: #fff;
  border-bottom: 1px solid rgba(61, 74, 92, 0.08);
  color: #3d4a5c;
}

.spt-chrome__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.spt-chrome__logo-link img {
  display: block;
  height: 32px;
  width: auto;
}

.spt-chrome__title {
  font-family: "Philosopher", Georgia, serif;
  font-size: 1.125rem;
  font-weight: 700;
}

.spt-chrome__nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.875rem;
}

.spt-chrome__nav a {
  color: #3d4a5c;
  text-decoration: none;
}

.spt-chrome__nav a:hover {
  color: #2c3646;
  text-decoration: underline;
}

.spt-chrome__credits {
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: rgba(126, 136, 208, 0.15);
  font-size: 0.8125rem;
  font-weight: 700;
}

.spt-workspace {
  display: flex;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.spt-sidebar {
  width: 18rem;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  background: var(--spt-bg-sidebar);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.spt-sidebar__project,
.spt-sidebar__actions,
.spt-sidebar__nodes {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.spt-sidebar__label {
  display: block;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #71717a;
  margin-bottom: 0.5rem;
}

.spt-sidebar__name {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: #f4f4f5;
}

.spt-sidebar__hint {
  margin: 0.25rem 0 0.75rem;
  font-size: 0.75rem;
  color: #52525b;
}

.spt-sidebar__actions {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.spt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.spt-btn--primary {
  background: linear-gradient(135deg, #8892d8 0%, #6870c8 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(104, 112, 200, 0.25);
}

.spt-btn--ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #d4d4d8;
}

.spt-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.spt-palette {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.spt-palette__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.625rem;
  border: 1px solid transparent;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
  text-align: left;
  cursor: grab;
  touch-action: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.spt-palette__item:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.07);
}

.spt-palette__item:active:not(:disabled) {
  cursor: grabbing;
}

.spt-palette__item:disabled,
.spt-palette__item[aria-disabled="true"] {
  opacity: 0.45;
  cursor: not-allowed;
}

.spt-palette__item.is-highlight {
  border-color: rgba(126, 136, 208, 0.55);
  box-shadow: 0 0 0 2px rgba(126, 136, 208, 0.25);
}

.spt-palette__icon {
  width: 2.25rem;
  height: 2.25rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
}

.spt-palette__icon svg {
  width: 1.125rem;
  height: 1.125rem;
}

.spt-palette__icon--blue {
  background: rgba(59, 130, 246, 0.25);
  color: #60a5fa;
}

.spt-palette__icon--cyan {
  background: rgba(6, 182, 212, 0.25);
  color: #22d3ee;
}

.spt-palette__icon--purple {
  background: rgba(168, 85, 247, 0.25);
  color: #c084fc;
}

.spt-palette__icon--emerald {
  background: rgba(16, 185, 129, 0.25);
  color: #34d399;
}

.spt-palette__icon--rose {
  background: rgba(236, 72, 153, 0.25);
  color: #f472b6;
}

.spt-palette__icon--amber {
  background: rgba(245, 158, 11, 0.25);
  color: #fbbf24;
}

.spt-palette__item--extra {
  opacity: 0.55;
  cursor: not-allowed;
}

.spt-palette__item--extra:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: transparent;
}

.spt-palette__copy {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  min-width: 0;
}

.spt-palette__copy strong {
  font-size: 0.875rem;
  color: #e4e4e7;
}

.spt-palette__copy span {
  font-size: 0.75rem;
  color: #71717a;
}

.spt-canvas-wrap {
  position: relative;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.spt-actions {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.spt-actions__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(24, 32, 46, 0.95);
  color: #d4d4d8;
  font-size: 0.875rem;
  cursor: not-allowed;
  opacity: 0.7;
}

.spt-actions__btn svg {
  width: 0.875rem;
  height: 0.875rem;
}

.spt-actions__status {
  font-size: 0.875rem;
  color: #71717a;
}

.spt-actions__run {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.875rem;
  border: none;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, #34d399 0%, #059669 100%);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.25);
  cursor: not-allowed;
  opacity: 0.55;
  transition: opacity 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.spt-actions__run:not(:disabled) {
  cursor: pointer;
  opacity: 1;
}

.spt-actions__run:not(:disabled):hover {
  opacity: 0.92;
}

.spt-actions__run.is-highlight {
  box-shadow:
    0 0 0 3px rgba(52, 211, 153, 0.45),
    0 4px 20px rgba(16, 185, 129, 0.45);
}

.spt-actions__run.is-highlight:disabled {
  animation: spt-pulse-run 1.5s ease-in-out infinite;
}

.spt-actions__run.is-highlight:not(:disabled) {
  animation: none;
}

.spt-actions__run svg {
  width: 0.875rem;
  height: 0.875rem;
}

@keyframes spt-pulse-run {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.03);
  }
}

.spt-canvas {
  flex: 1;
  position: relative;
  overflow: hidden;
  background-color: var(--spt-bg-canvas);
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 20px 20px;
  cursor: default;
}

.spt-canvas.is-pan-mode {
  cursor: grab;
}

.spt-canvas.is-pan-mode.is-panning {
  cursor: grabbing;
}

.spt-canvas__viewport {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.spt-canvas__world {
  position: absolute;
  top: 0;
  left: 0;
  width: 2400px;
  height: 1600px;
  transform-origin: 0 0;
  will-change: transform;
}

.spt-drop-zone {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed;
  border-radius: 0.75rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
  padding: 1rem;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}

.spt-drop-zone.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.spt-drop-zone.is-highlight {
  border-style: solid;
  color: rgba(255, 255, 255, 0.85);
}

.spt-drop-zone--text {
  left: 80px;
  top: 120px;
  width: 280px;
  height: 200px;
  border-color: rgba(59, 130, 246, 0.55);
}

.spt-drop-zone--upload {
  left: 80px;
  top: 380px;
  width: 300px;
  height: 220px;
  border-color: rgba(6, 182, 212, 0.55);
}

.spt-drop-zone--image {
  left: 520px;
  top: 220px;
  width: 340px;
  height: 320px;
  border-color: rgba(168, 85, 247, 0.55);
}

.spt-edges {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}

.spt-edge-path {
  fill: none;
  stroke: var(--spt-edge);
  stroke-width: 1.5;
  stroke-opacity: 0.75;
  stroke-dasharray: 6 4;
  animation: spt-edge-flow 0.6s linear infinite;
}

.spt-edge-preview {
  fill: none;
  stroke: var(--spt-edge);
  stroke-width: 1.5;
  stroke-opacity: 0.85;
  pointer-events: none;
}

@keyframes spt-edge-flow {
  to {
    stroke-dashoffset: -10;
  }
}

.spt-nodes {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.spt-node {
  position: absolute;
  pointer-events: auto;
  min-width: 220px;
  border-radius: 0.5rem;
  border: 1px solid;
  background: linear-gradient(180deg, rgba(30, 40, 56, 0.98) 0%, rgba(24, 32, 46, 0.98) 100%);
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
  user-select: none;
  overflow: hidden;
}

.spt-node.is-dragging {
  opacity: 0.92;
  z-index: 30;
}

.spt-node.is-running {
  animation: spt-node-breathe 2s ease-in-out infinite;
}

@keyframes spt-node-breathe {
  0%,
  100% {
    box-shadow:
      0 0 14px rgba(var(--spt-glow-rgb), 0.12),
      0 4px 14px rgba(0, 0, 0, 0.55),
      0 1px 3px rgba(0, 0, 0, 0.8);
    border-color: rgba(var(--spt-glow-rgb), 0.2);
  }
  50% {
    box-shadow:
      0 0 36px rgba(var(--spt-glow-rgb), 0.55),
      0 0 72px rgba(var(--spt-glow-rgb), 0.22),
      0 6px 20px rgba(0, 0, 0, 0.6);
    border-color: rgba(var(--spt-glow-rgb), 0.65);
  }
}

.spt-node--text {
  --spt-glow-rgb: 59, 130, 246;
  --spt-border-hex: #3b82f6;
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow:
    0 0 18px rgba(59, 130, 246, 0.16),
    0 4px 14px rgba(0, 0, 0, 0.55),
    0 1px 3px rgba(0, 0, 0, 0.8);
  width: 260px;
}

.spt-node--upload {
  --spt-glow-rgb: 6, 182, 212;
  --spt-border-hex: #06b6d4;
  border-color: rgba(6, 182, 212, 0.3);
  box-shadow:
    0 0 18px rgba(6, 182, 212, 0.16),
    0 4px 14px rgba(0, 0, 0, 0.55),
    0 1px 3px rgba(0, 0, 0, 0.8);
  width: 280px;
}

.spt-node--image {
  --spt-glow-rgb: 168, 85, 247;
  --spt-border-hex: #a855f7;
  border-color: rgba(168, 85, 247, 0.3);
  box-shadow:
    0 0 18px rgba(168, 85, 247, 0.16),
    0 4px 14px rgba(0, 0, 0, 0.55),
    0 1px 3px rgba(0, 0, 0, 0.8);
  width: 300px;
}

.spt-node.is-highlight {
  box-shadow:
    0 0 0 1px rgba(var(--spt-glow-rgb), 0.2),
    0 0 28px rgba(var(--spt-glow-rgb), 0.32),
    0 0 56px rgba(var(--spt-glow-rgb), 0.12),
    0 8px 24px rgba(0, 0, 0, 0.7);
  border-color: rgba(var(--spt-glow-rgb), 0.55);
}

.spt-node__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.625rem 0.75rem 0.5rem;
  border-bottom: 1px solid rgba(var(--spt-glow-rgb), 0.1);
}

.spt-node__header-main {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  flex: 1;
}

.spt-node__header-actions {
  display: flex;
  align-items: center;
  gap: 0.125rem;
  flex-shrink: 0;
}

.spt-node__success {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
}

.spt-node__success svg {
  width: 0.625rem;
  height: 0.625rem;
}

.spt-node__run {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  border: none;
  border-radius: 0.375rem;
  background: transparent;
  color: #10b981;
  cursor: not-allowed;
  opacity: 0.4;
  transition: background 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}

.spt-node__run:not(:disabled) {
  cursor: pointer;
  opacity: 1;
}

.spt-node__run:not(:disabled):hover {
  background: rgba(16, 185, 129, 0.1);
  color: #34d399;
}

.spt-node__run.is-highlight:not(:disabled) {
  background: rgba(16, 185, 129, 0.15);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.35);
}

.spt-node__run svg {
  width: 0.875rem;
  height: 0.875rem;
}

.spt-node.is-running .spt-node__run svg {
  animation: spt-spin 1s linear infinite;
}

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

.spt-node__header-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.spt-node__header-icon svg {
  width: 1rem;
  height: 1rem;
}

.spt-node--text .spt-node__header-icon {
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
}

.spt-node--upload .spt-node__header-icon {
  background: rgba(6, 182, 212, 0.2);
  color: #22d3ee;
}

.spt-node--image .spt-node__header-icon {
  background: rgba(168, 85, 247, 0.2);
  color: #c084fc;
}

.spt-node__title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #f4f4f5;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.spt-node__port-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2rem;
  padding: 0.5rem 0.75rem 0.625rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.spt-node__port-col {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0;
}

.spt-port-row {
  position: relative;
  min-height: 1.75rem;
  align-items: center;
}

.spt-port-row--in {
  display: grid;
  grid-template-columns: 1.25rem 1rem minmax(0, 1fr);
}

.spt-port-row--out {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1rem 1.25rem;
}

.spt-port-row__label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #a1a1aa;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.spt-port-row--out .spt-port-row__label {
  text-align: right;
}

.spt-node--image .spt-port-row--in .spt-port-row__label {
  color: #d4d4d8;
}

.spt-port-row--in .spt-port {
  margin-left: -12px;
}

.spt-port-row--out .spt-port {
  margin-right: -12px;
  justify-self: end;
}

.spt-node__body {
  padding: 0.625rem 0.75rem 0.75rem;
  font-size: 0.75rem;
  color: #a1a1aa;
}

.spt-node__body textarea,
.spt-node__body select {
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.375rem 0.5rem;
  border-radius: 0.375rem;
  border: 1px solid #3f3f46;
  background: #09090b;
  color: #d4d4d8;
  font-size: 0.8125rem;
  resize: none;
  pointer-events: none;
}

.spt-field-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: #a1a1aa;
  margin-bottom: 0.375rem;
}

.spt-upload-field {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.spt-upload-btn {
  width: 100%;
  padding: 0.375rem 0.625rem;
  border-radius: 0.375rem;
  border: 0;
  background: #27272a;
  color: #d4d4d8;
  font-size: 0.75rem;
  font-weight: 600;
  text-align: left;
  cursor: default;
  pointer-events: none;
}

.spt-upload-secondary {
  padding: 0.375rem 0.625rem;
  border-radius: 0.375rem;
  border: 1px solid #3f3f46;
  background: #09090b;
  color: #d4d4d8;
  font-size: 0.75rem;
  cursor: default;
  pointer-events: none;
}

.spt-upload-actions {
  margin-top: 0.625rem;
}

.spt-field-hint {
  margin: 0;
  font-size: 0.6875rem;
  color: #71717a;
  line-height: 1.4;
}

.spt-port {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 2px solid rgba(8, 12, 24, 0.95);
  background: radial-gradient(
    circle at 50% 50%,
    var(--port-color) 0 31%,
    var(--spt-bg-node) 34% 49%,
    var(--port-color) 52% 72%,
    rgba(8, 12, 24, 0.98) 75% 100%
  );
  box-shadow:
    0 0 0 1px rgba(196, 184, 212, 0.18),
    0 0 10px color-mix(in srgb, var(--port-color) 42%, transparent);
  cursor: crosshair;
  padding: 0;
  flex-shrink: 0;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.spt-port:hover,
.spt-port:focus-visible,
.spt-port.is-armed,
.spt-port.is-connected {
  box-shadow:
    0 0 0 1px rgba(245, 240, 227, 0.22),
    0 0 14px color-mix(in srgb, var(--port-color) 58%, transparent);
  outline: none;
}

.spt-port--text {
  --port-color: #3b82f6;
}

.spt-port--image {
  --port-color: #a855f7;
}

.spt-port--json {
  --port-color: #10b981;
}

.spt-port.is-invalid-flash {
  animation: spt-shake 0.35s ease;
}

@keyframes spt-shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-4px);
  }
  75% {
    transform: translateX(4px);
  }
}

.spt-toolbar {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 0.125rem;
  padding: 0.375rem 0.5rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(24, 32, 46, 0.95);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
}

.spt-toolbar.is-highlight {
  box-shadow:
    0 0 0 2px rgba(126, 136, 208, 0.45),
    0 10px 30px rgba(0, 0, 0, 0.35);
}

.spt-toolbar__btn,
.spt-toolbar__zoom {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 1.75rem;
  height: 1.75rem;
  padding: 0 0.25rem;
  border: none;
  border-radius: 0.5rem;
  background: transparent;
  color: #a1a1aa;
  font-size: 0.875rem;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.spt-toolbar__btn svg {
  width: 1rem;
  height: 1rem;
}

.spt-toolbar__btn:hover,
.spt-toolbar__zoom:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #e4e4e7;
}

.spt-toolbar__btn.is-active {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.spt-toolbar__zoom {
  min-width: 2.625rem;
  font-family: ui-monospace, monospace;
  font-size: 0.75rem;
}

.spt-toolbar__sep {
  width: 1px;
  height: 1rem;
  margin: 0 0.25rem;
  background: rgba(255, 255, 255, 0.1);
}

.spt-coach {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 50;
  width: min(22rem, calc(100vw - 2rem));
  padding: 1rem 1.25rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(24, 32, 46, 0.97);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.spt-coach__progress {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7e88d0;
  margin-bottom: 0.375rem;
}

.spt-coach__title {
  margin: 0 0 0.5rem;
  font-size: 1.0625rem;
  font-weight: 700;
  color: #f4f4f5;
}

.spt-coach__body {
  margin: 0 0 0.75rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #a1a1aa;
}

.spt-coach__body strong {
  color: #e4e4e7;
}

.spt-coach__actions {
  display: flex;
  gap: 1rem;
}

.spt-coach__link {
  padding: 0;
  border: none;
  background: none;
  color: #7e88d0;
  font-size: 0.8125rem;
  cursor: pointer;
  text-decoration: underline;
}

.spt-coach__link:hover {
  color: #a5b4fc;
}

.spt-drag-ghost {
  position: fixed;
  z-index: 1001;
  pointer-events: none;
  padding: 0.5rem 0.75rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(34, 48, 71, 0.95);
  color: #f4f4f5;
  font-size: 0.8125rem;
  font-weight: 600;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  transform: translate(-50%, -50%);
}

.spt-run-banner {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 60;
  transform: translate(-50%, -50%);
  padding: 0.75rem 1.25rem;
  border-radius: 0.75rem;
  background: rgba(24, 32, 46, 0.95);
  border: 1px solid rgba(52, 211, 153, 0.35);
  color: #6ee7b7;
  font-weight: 600;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.spt-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.spt-modal[hidden] {
  display: none;
}

.spt-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
}

.spt-modal__panel {
  position: relative;
  width: min(28rem, 100%);
  padding: 1.5rem;
  border-radius: 1rem;
  border: 1px solid #3f3f46;
  background: #18181b;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
}

.spt-modal__panel h2 {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
  color: #f4f4f5;
}

.spt-modal__panel p {
  margin: 0 0 1.25rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: #a1a1aa;
}

.spt-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.spt-connection-preview {
  position: fixed;
  z-index: 40;
  pointer-events: none;
  overflow: visible;
}

@media (prefers-reduced-motion: reduce) {
  .spt-edge-path {
    animation: none;
  }

  .spt-node.is-running,
  .spt-node.is-running .spt-node__run svg {
    animation: none;
  }
}

@media (max-width: 900px) {
  .spt-sidebar {
    width: 14rem;
  }

  .spt-coach {
    left: 1rem;
    right: 1rem;
    width: auto;
  }
}

@media (max-width: 640px) {
  .spt-workspace {
    flex-direction: column;
  }

  .spt-sidebar {
    width: 100%;
    max-height: 12rem;
    overflow-y: auto;
  }

  .spt-chrome__nav {
    display: none;
  }
}
