.shell {
  --workspace-bg: var(--graphite-bg);
  --workspace-surface: var(--graphite-stage);
  --workspace-border: var(--graphite-hairline);
  --workspace-ink: var(--graphite-ink);
  --workspace-muted: var(--graphite-muted);
  --workspace-accent: var(--graphite-accent);
  --workspace-ease: var(--graphite-ease);
  color: var(--workspace-ink);
  background: var(--workspace-bg);
}
.workspace-main {
  min-width: 0;
  background: var(--workspace-bg);
}
.workspace-content {
  padding: clamp(24px, 3.2vw, 46px) clamp(18px, 3vw, 44px) 68px;
}
.shell[data-workspace-page="overview"] .workspace-content {
  max-width: 1920px;
}
.shell[data-workspace-page="builder"] .workspace-content {
  padding: clamp(15px, 2vw, 23px) clamp(14px, 2.2vw, 31px) 44px;
}
.shell .page-head h1 {
  font-size: clamp(28px, 2.8vw, 42px);
  letter-spacing: -.055em;
  color: var(--workspace-ink);
}
.shell .page-head p {
  max-width: 65ch;
  color: var(--workspace-muted);
  line-height: 1.65;
}
.shell :where(.btn-primary) {
  border-color: var(--graphite-accent);
  background: var(--graphite-accent);
  color: #1e2022;
  box-shadow: none;
}
.shell :where(.btn-primary:not(:disabled)):hover {
  background: #fff;
  border-color: #fff;
  color: #161719;
}
.shell :where(.btn-light) {
  border-color: var(--graphite-hairline);
  background: var(--graphite-panel);
}
.shell :where(.btn-light:not(:disabled)):hover {
  border-color: var(--graphite-line);
  background: var(--graphite-raised);
}
.shell :where(a, button, summary, [role="button"]):focus-visible {
  outline: 2px solid var(--workspace-accent);
  outline-offset: 3px;
}
.workspace-main:focus { outline: none; }
.shell.editor-window {
  display: block;
  height: 100dvh;
  min-height: 0;
}
.editor-window .workspace-main {
  height: 100%;
  display: flex;
  flex-direction: column;
}
.shell.editor-window .workspace-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  width: 100%;
  padding: clamp(6px,.7vw,12px);
  overflow: auto;
}
.editor-window .graph-heading { flex: 0 0 auto; margin: 0 0 9px; }
.editor-window .graph-heading h1 { margin: 0; font-size: clamp(22px,2.4vw,30px); }
.editor-window .graph-heading p { margin: 1px 0 0; }
.editor-window .graph-heading-copy { min-width: 0; }
.editor-window [data-flow-window-bot] { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shell.editor-window .graph-shell { flex: 1; height: auto; min-height: 0; box-shadow: none; }
.shell.editor-window .graph-toolbar { min-height: 45px; padding-block: 4px; }
.shell.editor-window .graph-footer { display: none; }
.shell.editor-window .graph-connections { max-height: 52px; overflow: auto; padding: 4px 12px; }
.shell.editor-window .graph-feedback { min-height: 20px; padding: 3px 12px 4px; }
.editor-window-unavailable { max-width: 560px; margin: 12vh auto; padding: 18px; }
.editor-window-unavailable .btn { margin-top: 16px; }
[data-graph-reload][hidden] { display: none; }
.graph-heading-actions [data-graph-reload] { grid-row: 2; grid-column: 1; justify-self: end; }
@media (max-width: 700px) {
  .shell.editor-window .graph-shell { min-height: 240px; }
  .shell.editor-window .graph-palette { flex-shrink: 0; max-height: min(28dvh,180px); }
  .shell.editor-window .graph-viewport { flex: 1; height: auto; min-height: 0; }
}
.workspace-skip {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 80;
  padding: 11px 15px;
  border-radius: 9px;
  color: #191a1c;
  background: var(--workspace-accent);
  font-size: 13px;
  font-weight: 750;
  transform: translateY(calc(-100% - 15px));
}
.workspace-skip:focus { transform: none; }
#app:has(.shell) ~ #toast {
  color: var(--workspace-ink);
  background: #2d2f33ed;
  border: 1px solid var(--workspace-border);
  border-radius: 12px;
  box-shadow: 0 12px 30px #0006;
  backdrop-filter: blur(16px);
}
@media (prefers-reduced-motion: no-preference) {
  .workspace-enter > :not(.runtime-backdrop) {
    animation: workspace-surface-in 260ms var(--workspace-ease);
  }
  .workspace-enter :where(.page-head, .dash-header, .admin-header) {
    animation: workspace-heading-in 300ms var(--workspace-ease);
  }
  @keyframes workspace-surface-in {
    from { opacity: .76; }
    to { opacity: 1; }
  }
  @keyframes workspace-heading-in {
    from { transform: translateY(7px); }
    to { transform: translateY(0); }
  }
}
@media (max-width: 650px) {
  .workspace-content { padding: 24px 16px 48px; }
  .shell[data-workspace-page="builder"] .workspace-content { padding: 12px 10px 28px; }
}
