.dioxus-theme {
  color-scheme: light;
  --bg: #e7dfcf;
  --bg2: #d9d0c1;
  --panel: rgba(255, 252, 246, 0.94);
  --panel-alt: #f4ebdd;
  --panel-strong: #f7f1e6;
  --border: rgba(117, 97, 74, 0.34);
  --text: #23201c;
  --muted: #675e53;
  --accent: #7a4f2b;
  --accent-2: #284b63;
  --danger: #a6462f;
  --surface-panel-gradient: linear-gradient(145deg, rgba(255, 252, 246, 0.96), rgba(244, 235, 221, 0.94));
  --surface-subtle: rgba(122, 79, 43, 0.06);
  --state-accent-border: rgba(40, 75, 99, 0.28);
  --state-accent-soft: rgba(40, 75, 99, 0.08);
  --state-accent-strong: rgba(40, 75, 99, 0.12);
  --shadow-surface: 0 24px 60px rgba(56, 40, 20, 0.14);
  --shadow-elevated: 0 18px 40px rgba(56, 40, 20, 0.16);
  --focus-ring-color: rgba(40, 75, 99, 0.38);
  --font-sans: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-family: var(--font-sans);
  color: var(--text);
}

html[data-editor-route="true"][data-editor-theme="light"] body {
  background:
    radial-gradient(circle at top left, rgba(122, 79, 43, 0.18), transparent 30%),
    radial-gradient(circle at 90% 15%, rgba(40, 75, 99, 0.14), transparent 28%),
    linear-gradient(160deg, #e7dfcf, #d9d0c1);
  color: #23201c;
}

html[data-editor-route="true"][data-editor-theme="dark"] body {
  background: radial-gradient(circle at 15% 20%, #0f1f3f, #0b1328 45%, #070f1f 85%);
  color: #e9eefb;
}

html[data-editor-route="true"],
html[data-editor-route="true"] body {
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}

.run-next-shell[data-theme="light"] {
  color-scheme: light;
  --bg: #e7dfcf;
  --bg2: #d9d0c1;
  --panel: rgba(255, 252, 246, 0.94);
  --panel-alt: #f4ebdd;
  --panel-strong: #f7f1e6;
  --border: rgba(117, 97, 74, 0.34);
  --text: #23201c;
  --muted: #675e53;
  --accent: #7a4f2b;
  --accent-2: #284b63;
  --danger: #a6462f;
  --surface-panel-gradient: linear-gradient(145deg, rgba(255, 252, 246, 0.96), rgba(244, 235, 221, 0.94));
  --surface-subtle: rgba(122, 79, 43, 0.06);
  --state-accent-border: rgba(40, 75, 99, 0.28);
  --state-accent-soft: rgba(40, 75, 99, 0.08);
  --state-accent-strong: rgba(40, 75, 99, 0.12);
  --shadow-surface: 0 24px 60px rgba(56, 40, 20, 0.14);
  --shadow-elevated: 0 18px 40px rgba(56, 40, 20, 0.16);
  --shadow-popover: 0 18px 32px rgba(56, 40, 20, 0.18);
  --shadow-floating: 0 20px 60px rgba(56, 40, 20, 0.2);
  --focus-ring-color: rgba(40, 75, 99, 0.38);
  --font-sans: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --editor-shell-background:
    radial-gradient(circle at top left, rgba(122, 79, 43, 0.18), transparent 30%),
    radial-gradient(circle at 90% 15%, rgba(40, 75, 99, 0.14), transparent 28%),
    linear-gradient(160deg, var(--bg), var(--bg2));
  --editor-tag-border: rgba(40, 75, 99, 0.18);
  --editor-tag-bg: rgba(40, 75, 99, 0.08);
  --editor-tag-text: var(--accent-2);
  --editor-warning-border: rgba(122, 79, 43, 0.28);
  --editor-warning-bg: rgba(122, 79, 43, 0.1);
  --editor-warning-text: var(--accent);
  --editor-danger-border: rgba(166, 70, 47, 0.24);
  --editor-danger-bg: rgba(166, 70, 47, 0.1);
  --editor-danger-text: var(--danger);
  --editor-control-border: var(--border);
  --editor-control-bg: rgba(255, 255, 255, 0.72);
  --editor-control-text: var(--text);
  --editor-control-active-border: var(--accent);
  --editor-control-active-bg: var(--accent);
  --editor-control-active-text: #fff;
  --editor-toolbar-pill-border: var(--border);
  --editor-toolbar-pill-bg: rgba(255, 255, 255, 0.58);
  --editor-toolbar-pill-text: var(--muted);
  --editor-dock-border: rgba(91, 77, 58, 0.35);
  --editor-dock-bg: rgba(255, 255, 255, 0.28);
  --editor-tool-rail-bg:
    linear-gradient(180deg, rgba(255, 252, 246, 0.96), rgba(241, 233, 220, 0.94)),
    radial-gradient(circle at top, rgba(40, 75, 99, 0.08), transparent 52%);
  --editor-canvas-host-bg:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 250, 242, 0.9)),
    repeating-linear-gradient(90deg, transparent 0, transparent 23px, rgba(126, 107, 87, 0.08) 24px);
  --editor-panel-bg: var(--panel-strong);
  --editor-panel-shadow: 0 10px 28px rgba(46, 34, 19, 0.12);
  --editor-panel-header-bg: rgba(255, 255, 255, 0.6);
  --editor-list-border: rgba(117, 97, 74, 0.16);
  --editor-list-bg: rgba(255, 255, 255, 0.52);
  --editor-list-active-border: rgba(40, 75, 99, 0.24);
  --editor-list-active-bg: rgba(40, 75, 99, 0.1);
  --editor-chip-border: rgba(117, 97, 74, 0.18);
  --editor-chip-bg: rgba(255, 255, 255, 0.72);
  --editor-input-border: rgba(117, 97, 74, 0.22);
  --editor-input-bg: rgba(255, 255, 255, 0.82);
  --editor-stage-border: rgba(117, 97, 74, 0.24);
  --editor-stage-bg:
    radial-gradient(circle at top, rgba(40, 75, 99, 0.08), transparent 44%),
    linear-gradient(180deg, rgba(252, 249, 243, 0.92), rgba(241, 233, 220, 0.9));
  --editor-stage-inset-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.56),
    inset 0 0 0 1px rgba(255, 255, 255, 0.16);
  --editor-scene-page-border: rgba(117, 97, 74, 0.24);
  --editor-scene-page-bg:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 239, 228, 0.98)),
    repeating-linear-gradient(90deg, transparent 0, transparent 31px, rgba(40, 75, 99, 0.06) 32px);
  --editor-scene-page-shadow: 0 18px 36px rgba(56, 40, 20, 0.14);
  --editor-scene-page-hover-border: rgba(40, 75, 99, 0.32);
  --editor-scene-page-active-border: rgba(40, 75, 99, 0.42);
  --editor-scene-page-active-shadow: 0 22px 40px rgba(40, 75, 99, 0.16);
  --editor-scene-canvas-bg: rgba(255, 255, 255, 0.84);
  --editor-settings-panel-border: rgba(117, 97, 74, 0.18);
  --editor-settings-panel-bg: rgba(255, 255, 255, 0.58);
  --editor-overlay-backdrop: rgba(0, 0, 0, 0.45);
  --editor-overlay-backdrop-strong: rgba(0, 0, 0, 0.55);
  --editor-overlay-backdrop-command: rgba(56, 40, 20, 0.22);
  --editor-preview-canvas-bg: #f3ede2;
  --editor-dialog-subpanel-border: rgba(117, 97, 74, 0.18);
  --editor-dialog-subpanel-bg: rgba(255, 255, 255, 0.5);
  --editor-command-input-bg: rgba(255, 255, 255, 0.82);
  --editor-drop-indicator: rgba(40, 75, 99, 0.68);
  --editor-page-thumb-bg: rgba(255, 255, 255, 0.52);
  --editor-card-active-bg: linear-gradient(145deg, rgba(40, 75, 99, 0.18), rgba(40, 75, 99, 0.08));
  --editor-wheel-indicator-border: rgba(255, 255, 255, 0.92);
  --editor-swatch-chip-border: rgba(117, 97, 74, 0.18);
  --editor-swatch-chip-text: #23201c;
  --editor-swatch-chip-shadow: 0 14px 36px rgba(56, 40, 20, 0.14);
  --editor-card-bg: rgba(255, 255, 255, 0.58);
  --editor-card-hover-border: rgba(40, 75, 99, 0.34);
  --editor-draw-wrap-bg: linear-gradient(160deg, rgba(40, 75, 99, 0.08), rgba(122, 79, 43, 0.08));
  --editor-draw-wrap-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.26);
  --editor-draw-area-bg:
    radial-gradient(circle at 25% 15%, rgba(40, 75, 99, 0.12), transparent 45%),
    radial-gradient(circle at 70% 70%, rgba(122, 79, 43, 0.1), transparent 50%),
    #f5eee3;
  --editor-preview-layer-bg: rgba(255, 255, 255, 0.58);
  --editor-preview-layer-shadow: 0 8px 24px rgba(56, 40, 20, 0.18);
  --editor-footer-chip-bg: rgba(255, 255, 255, 0.58);
  --editor-object-drag-over: rgba(117, 97, 74, 0.28);
  --editor-object-drag-after: rgba(40, 75, 99, 0.8);
  --editor-import-zone-bg: rgba(40, 75, 99, 0.05);
  --editor-asset-input-bg: rgba(255, 255, 255, 0.72);
  --editor-asset-thumb-bg: rgba(255, 255, 255, 0.52);
  --editor-instance-selection-shadow: drop-shadow(0 6px 16px rgba(40, 75, 99, 0.24));
  --editor-wheel-shadow: 0 18px 60px rgba(56, 40, 20, 0.18);
  --editor-wheel-indicator-shadow: 0 6px 16px rgba(56, 40, 20, 0.28);
  --editor-dot-border: rgba(117, 97, 74, 0.22);
  --editor-swatch-pill-border: rgba(117, 97, 74, 0.28);
  --editor-swatch-pill-shadow: 0 6px 16px rgba(56, 40, 20, 0.18);
}

.run-next-shell[data-theme="dark"] {
  color-scheme: dark;
  --bg: #080f1f;
  --bg2: #070f1f;
  --panel: #0c162c;
  --panel-alt: #0f1d3a;
  --panel-strong: #111b35;
  --border: #1c2743;
  --text: #e9eefb;
  --muted: #9fb0d0;
  --accent: #22d3ee;
  --accent-2: #f97316;
  --danger: #f43f5e;
  --surface-panel-gradient: linear-gradient(145deg, var(--panel), var(--panel-alt));
  --surface-subtle: rgba(255, 255, 255, 0.02);
  --state-accent-border: rgba(34, 211, 238, 0.6);
  --state-accent-soft: rgba(34, 211, 238, 0.08);
  --state-accent-strong: rgba(34, 211, 238, 0.12);
  --shadow-surface: 0 24px 70px rgba(0, 0, 0, 0.35);
  --shadow-elevated: 0 18px 55px rgba(0, 0, 0, 0.28);
  --shadow-popover: 0 18px 32px rgba(0, 0, 0, 0.38);
  --shadow-floating: 0 20px 60px rgba(0, 0, 0, 0.45);
  --focus-ring-color: rgba(34, 211, 238, 0.75);
  --font-sans: "Space Grotesk", "Manrope", "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --editor-shell-background: radial-gradient(circle at 15% 20%, #0f1f3f, #0b1328 45%, #070f1f 85%);
  --editor-tag-border: rgba(34, 211, 238, 0.22);
  --editor-tag-bg: rgba(34, 211, 238, 0.08);
  --editor-tag-text: #9ae5f8;
  --editor-warning-border: rgba(249, 115, 22, 0.28);
  --editor-warning-bg: rgba(249, 115, 22, 0.08);
  --editor-warning-text: #fbbf24;
  --editor-danger-border: rgba(244, 63, 94, 0.28);
  --editor-danger-bg: rgba(244, 63, 94, 0.1);
  --editor-danger-text: var(--danger);
  --editor-control-border: var(--border);
  --editor-control-bg: rgba(255, 255, 255, 0.06);
  --editor-control-text: var(--text);
  --editor-control-active-border: rgba(34, 211, 238, 0.55);
  --editor-control-active-bg: var(--state-accent-strong);
  --editor-control-active-text: #9ae5f8;
  --editor-toolbar-pill-border: var(--border);
  --editor-toolbar-pill-bg: rgba(255, 255, 255, 0.06);
  --editor-toolbar-pill-text: var(--muted);
  --editor-dock-border: rgba(34, 211, 238, 0.18);
  --editor-dock-bg: rgba(12, 22, 44, 0.42);
  --editor-tool-rail-bg:
    linear-gradient(180deg, rgba(15, 29, 58, 0.96), rgba(10, 18, 36, 0.94)),
    radial-gradient(circle at top, rgba(34, 211, 238, 0.1), transparent 52%);
  --editor-canvas-host-bg:
    linear-gradient(180deg, rgba(12, 22, 44, 0.82), rgba(7, 15, 31, 0.9)),
    repeating-linear-gradient(90deg, transparent 0, transparent 23px, rgba(159, 176, 208, 0.08) 24px);
  --editor-panel-bg: var(--panel);
  --editor-panel-shadow: 0 10px 28px rgba(0, 0, 0, 0.32);
  --editor-panel-header-bg: rgba(255, 255, 255, 0.04);
  --editor-list-border: var(--border);
  --editor-list-bg: rgba(255, 255, 255, 0.04);
  --editor-list-active-border: var(--state-accent-border);
  --editor-list-active-bg: var(--state-accent-soft);
  --editor-chip-border: var(--border);
  --editor-chip-bg: rgba(255, 255, 255, 0.06);
  --editor-input-border: var(--border);
  --editor-input-bg: rgba(255, 255, 255, 0.04);
  --editor-stage-border: var(--border);
  --editor-stage-bg:
    radial-gradient(circle at top, rgba(34, 211, 238, 0.08), transparent 44%),
    linear-gradient(180deg, rgba(12, 22, 44, 0.92), rgba(7, 15, 31, 0.94));
  --editor-stage-inset-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 0 0 1px rgba(255, 255, 255, 0.02);
  --editor-scene-page-border: rgba(34, 211, 238, 0.2);
  --editor-scene-page-bg:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 239, 228, 0.98)),
    repeating-linear-gradient(90deg, transparent 0, transparent 31px, rgba(34, 211, 238, 0.06) 32px);
  --editor-scene-page-shadow: 0 18px 36px rgba(0, 0, 0, 0.28);
  --editor-scene-page-hover-border: rgba(34, 211, 238, 0.32);
  --editor-scene-page-active-border: rgba(34, 211, 238, 0.46);
  --editor-scene-page-active-shadow: 0 22px 40px rgba(34, 211, 238, 0.16);
  --editor-scene-canvas-bg: rgba(255, 255, 255, 0.94);
  --editor-settings-panel-border: var(--border);
  --editor-settings-panel-bg: rgba(255, 255, 255, 0.04);
  --editor-overlay-backdrop: rgba(0, 0, 0, 0.45);
  --editor-overlay-backdrop-strong: rgba(0, 0, 0, 0.55);
  --editor-overlay-backdrop-command: rgba(6, 12, 24, 0.62);
  --editor-preview-canvas-bg: #050a18;
  --editor-dialog-subpanel-border: rgba(255, 255, 255, 0.06);
  --editor-dialog-subpanel-bg: var(--surface-subtle);
  --editor-command-input-bg: rgba(8, 12, 20, 0.6);
  --editor-drop-indicator: rgba(34, 211, 238, 0.75);
  --editor-page-thumb-bg: rgba(255, 255, 255, 0.04);
  --editor-card-active-bg: linear-gradient(145deg, #0c2d48, #0b2238);
  --editor-wheel-indicator-border: #0d1428;
  --editor-swatch-chip-border: rgba(255, 255, 255, 0.07);
  --editor-swatch-chip-text: #0c1220;
  --editor-swatch-chip-shadow: 0 14px 36px rgba(0, 0, 0, 0.4);
  --editor-card-bg: rgba(255, 255, 255, 0.03);
  --editor-card-hover-border: rgba(34, 211, 238, 0.6);
  --editor-draw-wrap-bg: linear-gradient(160deg, rgba(34, 211, 238, 0.06), rgba(249, 115, 22, 0.08));
  --editor-draw-wrap-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  --editor-draw-area-bg:
    radial-gradient(circle at 25% 15%, rgba(34, 211, 238, 0.08), transparent 45%),
    radial-gradient(circle at 70% 70%, rgba(251, 146, 60, 0.08), transparent 50%),
    #0a1020;
  --editor-preview-layer-bg: rgba(255, 255, 255, 0.03);
  --editor-preview-layer-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  --editor-footer-chip-bg: rgba(255, 255, 255, 0.04);
  --editor-object-drag-over: rgba(255, 255, 255, 0.25);
  --editor-object-drag-after: rgba(34, 211, 238, 0.8);
  --editor-import-zone-bg: rgba(34, 211, 238, 0.05);
  --editor-asset-input-bg: rgba(255, 255, 255, 0.04);
  --editor-asset-thumb-bg: rgba(255, 255, 255, 0.03);
  --editor-instance-selection-shadow: drop-shadow(0 6px 16px rgba(34, 211, 238, 0.35));
  --editor-wheel-shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
  --editor-wheel-indicator-shadow: 0 6px 16px rgba(0, 0, 0, 0.45);
  --editor-dot-border: rgba(255, 255, 255, 0.35);
  --editor-swatch-pill-border: rgba(255, 255, 255, 0.14);
  --editor-swatch-pill-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

.dioxus-theme.public-shell {
  background:
    radial-gradient(circle at top left, rgba(122, 79, 43, 0.18), transparent 30%),
    radial-gradient(circle at 90% 15%, rgba(40, 75, 99, 0.14), transparent 28%),
    linear-gradient(160deg, var(--bg), var(--bg2));
}

.dioxus-theme .surface {
  border-color: var(--border);
  background: var(--surface-panel-gradient);
  box-shadow: var(--shadow-surface);
}

.dioxus-theme .public-badge {
  color: var(--accent);
  text-shadow: none;
}

.dioxus-theme .public-status,
.dioxus-theme .public-panel-label,
.dioxus-theme .public-card-eyebrow,
.dioxus-theme .public-field-label,
.dioxus-theme .status-kicker {
  color: var(--muted);
}

.dioxus-theme .public-title,
.dioxus-theme .public-proof-title,
.dioxus-theme .public-latest-title,
.dioxus-theme .public-card-title {
  color: var(--text);
}

.dioxus-theme .public-summary,
.dioxus-theme .public-proof-body,
.dioxus-theme .public-latest-body,
.dioxus-theme .public-card-body,
.dioxus-theme .public-hint,
.dioxus-theme .status-body {
  color: var(--muted);
}

.dioxus-theme .public-link {
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
}

.dioxus-theme .public-link:hover {
  border-color: rgba(40, 75, 99, 0.42);
}

.dioxus-theme .public-link-primary {
  background: linear-gradient(135deg, rgba(122, 79, 43, 0.18), rgba(40, 75, 99, 0.15));
}

.dioxus-theme .public-link-secondary {
  background: rgba(255, 255, 255, 0.52);
}

.dioxus-theme .public-input.surface {
  background: rgba(255, 255, 255, 0.78);
  color: var(--text);
}

.dioxus-theme .public-input.surface::placeholder {
  color: var(--muted);
}

.dioxus-theme .status-block.status-notice.status-tone-success {
  background: rgba(40, 75, 99, 0.08);
  color: var(--accent-2);
  border-color: rgba(40, 75, 99, 0.18);
}

.dioxus-theme .status-block.status-notice.status-tone-danger {
  background: rgba(166, 70, 47, 0.08);
  color: var(--danger);
  border-color: rgba(166, 70, 47, 0.18);
}

.dioxus-theme .public-aside,
.dioxus-theme .public-latest {
  background:
    radial-gradient(circle at top left, rgba(122, 79, 43, 0.09), transparent 34%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.84), rgba(245, 237, 226, 0.88));
}

.dioxus-theme .public-proof-item,
.dioxus-theme .public-latest-item + .public-latest-item {
  border-color: rgba(117, 97, 74, 0.18);
}

.dioxus-theme .public-latest-date {
  color: var(--accent);
}

.dioxus-theme.landing-shell .public-hero {
  border-radius: 28px;
  background:
    radial-gradient(circle at top left, rgba(122, 79, 43, 0.12), transparent 28%),
    radial-gradient(circle at top right, rgba(40, 75, 99, 0.1), transparent 30%),
    linear-gradient(145deg, rgba(255, 252, 246, 0.95), rgba(242, 233, 220, 0.95));
  border-color: rgba(117, 97, 74, 0.2);
  box-shadow: 0 32px 70px rgba(56, 40, 20, 0.14);
}

.dioxus-theme.landing-shell .public-status {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 var(--space-5);
  border-radius: var(--radius-pill);
  border: 1px solid rgba(117, 97, 74, 0.18);
  background: rgba(255, 255, 255, 0.52);
}

.legacy-run-root {
  min-height: 100vh;
  min-height: 100dvh;
}

.run-next-shell {
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  padding: 16px;
  background: var(--editor-shell-background);
  font-family: var(--font-sans);
  color: var(--text);
  overflow: hidden;
  overscroll-behavior: none;
}

.run-next-shell button,
.run-next-shell a {
  font: inherit;
}

.run-next-app {
  position: relative;
  height: calc(100vh - 32px);
  height: calc(100dvh - 32px);
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
}

.run-next-topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--panel);
  box-shadow: var(--shadow-surface);
}

.run-next-topbar-left,
.run-next-topbar-center,
.run-next-topbar-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.run-next-topbar-center {
  flex: 1 1 28rem;
  justify-content: center;
  min-width: 0;
}

.run-next-topbar-right {
  margin-left: auto;
  justify-content: flex-end;
}

.run-next-topbar-left h1 {
  margin: 0;
  font-size: 1.2rem;
  letter-spacing: 0.02em;
}

.run-next-topbar-tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--editor-tag-border);
  background: var(--editor-tag-bg);
  color: var(--editor-tag-text);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.run-next-summary-line,
.run-next-panel-copy,
.run-next-panel-meta,
.run-next-hint {
  margin: 0;
  color: var(--muted);
}

.run-next-notice {
  flex: 1 1 18rem;
  min-height: 36px;
  padding: 8px 12px;
  border-radius: 14px;
  border: 1px solid var(--state-accent-border);
  background: var(--state-accent-soft);
  color: var(--text);
  font-size: 0.92rem;
}

.run-next-notice-warning {
  border-color: var(--editor-warning-border);
  background: var(--editor-warning-bg);
  color: var(--editor-warning-text);
}

.run-next-notice-error {
  border-color: var(--editor-danger-border);
  background: var(--editor-danger-bg);
  color: var(--editor-danger-text);
}

.run-next-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--editor-control-border);
  background: var(--editor-chip-bg);
  color: var(--muted);
  white-space: nowrap;
}

.run-next-save-pill {
  min-width: 13ch;
}

.run-next-status-pill-accent,
.run-next-save-pill-saved {
  border-color: var(--state-accent-border);
  background: var(--state-accent-soft);
  color: var(--editor-tag-text);
}

.run-next-save-pill-saving,
.run-next-save-pill-booting {
  border-color: var(--editor-warning-border);
  background: var(--editor-warning-bg);
  color: var(--editor-warning-text);
}

.run-next-save-pill-error {
  border-color: var(--editor-danger-border);
  background: var(--editor-danger-bg);
  color: var(--editor-danger-text);
}

.run-next-topbar-center button,
.run-next-topbar-right button,
.run-next-panel button,
.run-next-tool-button,
.run-next-dock-toggle,
.run-next-dock-collapsed-button,
.run-next-stage-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--editor-control-border);
  border-radius: 999px;
  background: var(--editor-control-bg);
  color: var(--editor-control-text);
  padding: 0.48rem 0.78rem;
  cursor: pointer;
  text-decoration: none;
}

.run-next-toolbar-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--editor-toolbar-pill-border);
  background: var(--editor-toolbar-pill-bg);
  color: var(--editor-toolbar-pill-text);
}

.run-next-topbar-button-with-icon {
  gap: 0.45rem;
}

.run-next-topbar-icon-button {
  min-width: 2.5rem;
  min-height: 2.5rem;
  padding: 0.45rem;
}

.run-next-topbar-center button:disabled,
.run-next-topbar-right button:disabled,
.run-next-tool-button:disabled {
  opacity: 0.48;
  cursor: default;
}

.run-next-topbar-center button.active,
.run-next-topbar-right button.active,
.run-next-panel-actions button.active,
.run-next-tool-button.active,
.run-next-stage-actions button.active {
  background: var(--editor-control-active-bg);
  color: var(--editor-control-active-text);
  border-color: var(--editor-control-active-border);
}

.run-next-workspace {
  position: relative;
  flex: 1;
  min-height: 0;
  display: flex;
  gap: 12px;
  overflow: hidden;
}

.run-next-left-shell {
  display: flex;
  gap: 12px;
  flex: 0 0 auto;
  min-height: 0;
  align-items: stretch;
  overflow: hidden;
}

.run-next-dock-column {
  width: 19rem;
  flex: 0 0 19rem;
  min-width: 0;
  min-height: 520px;
  padding: 12px;
  border: 1px dashed var(--editor-dock-border);
  border-radius: 18px;
  background: var(--editor-dock-bg);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.run-next-dock-column-collapsed {
  width: 5.25rem;
  flex: 0 0 5.25rem;
  padding: 8px;
}

.run-next-dock-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.run-next-dock-column h2 {
  margin: 0;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.run-next-dock-scroll {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.run-next-dock-toggle {
  min-width: 2.5rem;
  min-height: 2.5rem;
  padding: 0.45rem;
}

.run-next-dock-collapsed-button {
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  border-radius: 16px;
  padding: 0.9rem 0.55rem;
  flex-direction: column;
  gap: 0.4rem;
  text-align: center;
}

.run-next-tool-icon,
.run-next-dock-icon,
.run-next-topbar-icon {
  width: 1.15rem;
  height: 1.15rem;
  display: block;
}

.run-next-dock-collapsed-title {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.run-next-dock-collapsed-meta {
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.2;
}

.run-next-dock-scroll > .run-next-hint {
  flex: 0 0 auto;
}

.run-next-center-stack {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 520px;
  display: flex;
}

.run-next-tool-rail {
  width: 4.5rem;
  flex: 0 0 4.5rem;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--editor-tool-rail-bg);
  box-shadow: var(--shadow-surface);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 12px;
  padding: 12px 8px;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.run-next-tool-rail-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.run-next-tool-rail-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.run-next-tool-button {
  min-width: 2.5rem;
  min-height: 2.5rem;
  padding: 0.45rem 0.55rem;
}

.run-next-canvas-host {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--editor-canvas-host-bg);
  display: flex;
  box-shadow: var(--shadow-surface);
  overflow: hidden;
}

.run-next-stage-shell {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
  overflow: hidden;
}

.run-next-panel {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--editor-panel-bg);
  box-shadow: var(--editor-panel-shadow);
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.run-next-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  background: var(--editor-panel-header-bg);
}

.run-next-panel-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.run-next-panel-header-draggable {
  cursor: grab;
  user-select: none;
  touch-action: none;
}

.run-next-panel-header-drag {
  flex: 1 1 auto;
  min-width: 0;
}

.run-next-panel-header-drag:hover {
  opacity: 0.92;
}

.run-next-panel-icon-button {
  min-width: 2.25rem;
  min-height: 2.25rem;
  padding: 0.4rem;
}

.run-next-panel-disclosure-icon {
  width: 1rem;
  height: 1rem;
  display: block;
  flex: 0 0 auto;
}

.run-next-panel-header-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.run-next-panel-header-meta {
  color: var(--muted);
  font-size: 0.82rem;
}

.run-next-panel-collapsed .run-next-panel-header {
  padding-block: 8px;
}

.run-next-panel-collapsed .run-next-panel-header-actions {
  gap: 6px;
}

.run-next-panel-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  gap: 10px;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.run-next-panel-stack,
.run-next-panel-section {
  display: flex;
  flex-direction: column;
}

.run-next-panel-stack {
  gap: 14px;
}

.run-next-panel-section {
  gap: 8px;
}

.run-next-panel-section-title {
  margin: 0;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.run-next-panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.run-next-panel-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.run-next-panel-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--editor-list-bg);
  border: 1px solid var(--editor-list-border);
}

.run-next-panel-list-item-rich {
  align-items: flex-start;
}

.run-next-panel-list-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.run-next-layer-card {
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  gap: 10px;
}

.run-next-panel button.run-next-layer-row-main {
  width: 100%;
  display: block;
  appearance: none;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  align-items: initial;
  justify-content: initial;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  text-decoration: none;
  box-shadow: none;
}

.run-next-layer-row-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.run-next-layer-row-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.run-next-layer-row-stat {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 10px;
  border: 1px solid var(--editor-chip-border);
  background: var(--editor-chip-bg);
  color: var(--muted);
  font-size: 0.78rem;
}

.run-next-layer-row-state-chip {
  min-height: 24px;
  padding: 0 8px;
  border-radius: 10px;
  font-size: 0.76rem;
}

.run-next-layer-row-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 6px;
  padding-top: 8px;
  border-top: 1px solid var(--editor-list-border);
}

.run-next-layer-row-actions .run-next-panel-icon-button {
  min-width: 2.5rem;
  min-height: 2.5rem;
  padding: 0.35rem;
  border-radius: 12px;
}

.run-next-panel-list-button {
  width: 100%;
  appearance: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--editor-list-border);
  background: var(--editor-list-bg);
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.run-next-panel-list-button.is-active {
  background: var(--editor-list-active-bg);
  border-color: var(--editor-list-active-border);
}

.run-next-panel-list-item.is-active {
  background: var(--editor-list-active-bg);
  border-color: var(--editor-list-active-border);
}

.run-next-panel-list-title {
  font-weight: 600;
  color: var(--text);
}

.run-next-panel-list-meta {
  color: var(--muted);
  text-align: right;
}

.run-next-panel-submeta {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.run-next-panel-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.run-next-panel-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--editor-chip-border);
  background: var(--editor-chip-bg);
  color: var(--muted);
}

.run-next-panel-chip-button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--editor-chip-border);
  background: var(--editor-chip-bg);
  color: var(--text);
  font: inherit;
  cursor: pointer;
}

.run-next-panel-chip-button.is-active {
  background: var(--editor-list-active-bg);
  border-color: var(--editor-list-active-border);
}

.run-next-panel-chip-button:disabled {
  opacity: 0.55;
  cursor: default;
}

.run-next-panel-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.run-next-panel-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.run-next-panel-field-wide {
  width: 100%;
}

.run-next-panel-field-color {
  min-width: 0;
}

.run-next-panel-field-label {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.run-next-panel-input,
.run-next-panel-textarea {
  width: 100%;
  border: 1px solid var(--editor-input-border);
  border-radius: 12px;
  background: var(--editor-input-bg);
  color: var(--text);
  font: inherit;
}

.run-next-panel-input {
  min-height: 40px;
  padding: 0 12px;
}

.run-next-panel-textarea {
  min-height: 6.5rem;
  padding: 10px 12px;
  resize: vertical;
}

.run-next-panel-input:disabled,
.run-next-panel-textarea:disabled {
  opacity: 0.55;
  cursor: default;
}

.run-next-panel-input-color {
  min-width: 100%;
  padding: 6px;
}

.run-next-panel-toggle-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.run-next-scene-page-meta strong {
  margin: 0;
}

.run-next-scene-page-meta span {
  margin: 0;
  color: var(--muted);
}

.run-next-scene-page-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--editor-chip-border);
  background: var(--editor-chip-bg);
  color: var(--muted);
}

.run-next-stage-surface {
  flex: 1 1 auto;
  min-height: 0;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--editor-stage-border);
  background: var(--editor-stage-bg);
  box-shadow: var(--editor-stage-inset-shadow);
}

.run-next-stage-canvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: default;
  touch-action: none;
}

.run-next-stage-canvas:focus {
  outline: none;
}

.run-next-stage-surface.is-panning .run-next-stage-canvas {
  cursor: grabbing;
}

.run-next-stage-surface.is-box-selecting .run-next-stage-canvas {
  cursor: crosshair;
}

.run-next-stage-surface.is-authoring .run-next-stage-canvas {
  cursor: crosshair;
}

.run-next-scene {
  display: grid;
  gap: 18px;
  justify-content: center;
}

.run-next-scene-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  align-items: start;
}

.run-next-scene-page-card {
  padding: 0;
  border: 0;
  appearance: none;
  background: transparent;
  font: inherit;
  color: inherit;
  text-align: inherit;
  cursor: pointer;
  display: grid;
  gap: 10px;
  justify-items: center;
}

.run-next-scene-page-card.is-active .run-next-scene-page {
  border-color: var(--editor-scene-page-active-border);
  box-shadow: var(--editor-scene-page-active-shadow);
}

.run-next-scene-page {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--editor-scene-page-border);
  background: var(--editor-scene-page-bg);
  box-shadow: var(--editor-scene-page-shadow);
  display: block;
  padding: 12px;
}

.run-next-scene-canvas {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  background: var(--editor-scene-canvas-bg);
}

.run-next-scene-page-card:hover .run-next-scene-page {
  border-color: var(--editor-scene-page-hover-border);
}

.run-next-scene-page-overlay {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  pointer-events: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.run-next-scene-page-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  text-align: center;
}

.run-next-scene-page-meta-focused {
  gap: 6px;
}

.run-next-floating-layer {
  position: absolute;
  inset: 0;
  z-index: 16;
  pointer-events: none;
}

.run-next-floating-panel {
  position: absolute;
  width: 18rem;
  pointer-events: auto;
  min-width: 15rem;
  min-height: 11.25rem;
  max-height: calc(100% - 16px);
}

.run-next-floating-panel-resize-handle {
  position: absolute;
  right: 2px;
  bottom: 2px;
  width: 16px;
  height: 16px;
  cursor: nwse-resize;
  opacity: 0.8;
  touch-action: none;
  background:
    linear-gradient(135deg, transparent 0 40%, var(--border) 40% 48%, transparent 48% 100%),
    linear-gradient(135deg, transparent 0 58%, var(--border) 58% 66%, transparent 66% 100%),
    linear-gradient(135deg, transparent 0 76%, var(--border) 76% 84%, transparent 84% 100%);
}

.run-next-floating-panel-resize-handle:hover {
  opacity: 1;
}

.run-next-dock-scroll > .run-next-panel {
  flex: 1 1 0;
  min-height: 0;
}

.run-next-dock-scroll > .run-next-panel.run-next-panel-collapsed,
.run-next-dock-scroll > .run-next-hint {
  flex: 0 0 auto;
}

@media (min-width: 1101px) {
  .run-next-shell {
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
  }

  .run-next-app {
    height: calc(100vh - 32px);
    height: calc(100dvh - 32px);
    min-height: 0;
    overflow: hidden;
  }

  .run-next-workspace {
    align-items: stretch;
    overflow: hidden;
  }

  .run-next-left-shell,
  .run-next-center-stack,
  .run-next-tool-rail,
  .run-next-canvas-host,
  .run-next-stage-shell,
  .run-next-dock-column,
  .run-next-dock-scroll {
    min-height: 0;
  }

  .run-next-tool-rail {
    overflow-y: auto;
  }

  .run-next-dock-column {
    overflow: hidden;
  }

  .run-next-dock-scroll {
    flex: 1 1 auto;
    overflow: hidden;
    padding-right: 0;
  }

  .run-next-canvas-host,
  .run-next-stage-shell {
    overflow: hidden;
  }

  .run-next-scene-grid {
    flex: 1 1 auto;
    min-height: 0;
    align-content: start;
    overflow: auto;
    padding-right: 4px;
  }
}

@media (max-width: 1240px) {
  .run-next-topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .run-next-topbar-center,
  .run-next-topbar-right {
    justify-content: flex-start;
  }

  .run-next-topbar-right {
    margin-left: 0;
  }
}

@media (max-width: 1100px) {
  .run-next-workspace {
    flex-direction: column;
    overflow: auto;
    overscroll-behavior: contain;
  }

  .run-next-left-shell {
    flex-direction: column;
    flex: 0 1 auto;
  }

  .run-next-tool-rail {
    width: auto;
    flex: none;
    flex-direction: row;
    align-items: stretch;
    overflow-x: auto;
  }

  .run-next-tool-rail-group {
    flex-direction: row;
    align-items: center;
  }

  .run-next-dock-column {
    min-height: unset;
    width: auto;
    flex: none;
  }

  .run-next-dock-collapsed-button {
    min-height: 3.25rem;
    flex-direction: row;
    justify-content: flex-start;
    text-align: left;
    padding: 0.7rem 0.9rem;
  }

  .run-next-floating-panel {
    width: min(18rem, calc(100vw - 32px));
  }
}

.run-next-settings-menu {
  width: min(360px, calc(100vw - 32px));
  max-height: calc(100vh - 112px);
  padding: 12px 14px;
  gap: 14px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--panel);
  box-shadow: var(--shadow-floating);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.run-next-planner-setup-menu {
  width: min(460px, calc(100vw - 32px));
}

.run-next-settings-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.run-next-settings-menu-title {
  margin: 0;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.run-next-settings-menu-section-title {
  margin: 0;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.run-next-settings-menu-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.run-next-settings-menu-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.run-next-settings-menu button,
.run-next-settings-menu-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--editor-control-border);
  border-radius: 999px;
  background: var(--editor-control-bg);
  color: var(--editor-control-text);
  padding: 0.48rem 0.78rem;
  cursor: pointer;
  text-decoration: none;
}

.run-next-settings-menu button.active,
.run-next-settings-menu-link.active {
  background: var(--editor-control-active-bg);
  color: var(--editor-control-active-text);
  border-color: var(--editor-control-active-border);
}

.run-next-settings-panel-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.run-next-settings-panel-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid var(--editor-settings-panel-border);
  background: var(--editor-settings-panel-bg);
}

.run-next-settings-panel-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.run-next-settings-panel-copy strong {
  color: var(--text);
}

.run-next-settings-panel-copy span {
  color: var(--muted);
  font-size: 0.84rem;
}

.run-next-settings-panel-actions,
.run-next-settings-panel-placement {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.run-next-settings-panel-actions {
  align-items: center;
  justify-content: space-between;
}
