/* JSTools generated final; edit frontend/styles/console.css sources, not this file. */
/* source: features/jst-theme-light-contrast.css */
/* Light-mode contrast and surface cleanup. Dark-mode tokens remain untouched. */
html[data-product-shell="console"] body[data-theme="light"] {
  /* Preserve each preset's hue but mute glare at the token boundary. A global
     filter also dims text, icons, and semantic states, which made light mode
     look cloudy instead of deliberately calm. */
  --jst-light-canvas: color-mix(in srgb, var(--bg) 42%, #e8ecf0);
  --jst-light-surface: color-mix(in srgb, var(--surface) 62%, #eff2f5);
  --jst-light-surface-2: color-mix(in srgb, var(--surface) 60%, #e8edf1);
  --jst-light-raised: color-mix(in srgb, var(--surface) 54%, #e0e6eb);
  --jst-light-line: color-mix(in srgb, var(--border) 26%, #c8d1da);
  background: var(--jst-light-canvas);
}

html[data-product-shell="console"] body[data-theme="light"] .app-shell {
  --fg-2: #34445a;
  --muted: #5a6a7d;
  --c-bg: var(--jst-light-canvas);
  --c-surface: var(--jst-light-surface);
  --c-surface-soft: var(--jst-light-surface-2);
  --c-surface-strong: var(--jst-light-raised);
  --c-border: var(--jst-light-line);
  --c-text-secondary: #5a6a7d;
  --c-text-tertiary: #34445a;
  --dash-fg-2: #34445a;
  --dash-muted: #5a6a7d;
  --jst-bg: var(--jst-light-canvas);
  --jst-panel: var(--jst-light-surface);
  --jst-panel-2: var(--jst-light-surface-2);
  --jst-line: var(--jst-light-line);
  --jstools-canvas: var(--jst-light-canvas);
  --jstools-surface: var(--jst-light-surface);
  --jstools-surface-1: var(--jst-light-surface);
  --jstools-surface-2: var(--jst-light-surface-2);
  --jstools-surface-raised: var(--jst-light-raised);
  --jstools-border: var(--jst-light-line);
  --jstools-border-default: var(--jst-light-line);
  --jstools-border-strong: color-mix(in srgb, var(--jst-light-line) 72%, var(--fg));
  --jstools-text-secondary: #5a6a7d;
  --jst-muted: #5a6a7d;
  --surface-2: var(--jst-light-surface-2);
  --surface-3: var(--jst-light-raised);
}

html[data-product-shell="console"] body[data-theme="light"] .app-shell .sidebar {
  background: var(--jstools-surface-1, var(--surface)) !important;
}

html[data-product-shell="console"] body[data-theme="light"] .app-shell :is(
  .nav-group-label,
  .brand-text span,
  .sidebar-user-meta
) {
  color: #526176 !important;
}

html[data-product-shell="console"] body[data-theme="light"] .app-shell .nav-item {
  color: #29384d !important;
}

html[data-product-shell="console"] body[data-theme="light"] .app-shell .nav-icon {
  border: 1px solid color-mix(in srgb, currentColor 22%, transparent) !important;
  background: color-mix(in srgb, currentColor 9%, var(--jstools-surface-1, var(--surface))) !important;
  filter: none !important;
}

html[data-product-shell="console"] body[data-theme="light"] .app-shell .nav-item[data-page-target="dashboard"] .nav-icon { color: #6d28d9 !important; }
html[data-product-shell="console"] body[data-theme="light"] .app-shell .nav-item[data-page-target="pipeline"] .nav-icon { color: #036b7a !important; }
html[data-product-shell="console"] body[data-theme="light"] .app-shell .nav-item[data-page-target="template"] .nav-icon { color: #1d4ed8 !important; }
html[data-product-shell="console"] body[data-theme="light"] .app-shell .nav-item[data-page-target="devtools"] .nav-icon { color: #7e22ce !important; }
html[data-product-shell="console"] body[data-theme="light"] .app-shell .nav-item[data-page-target="history"] .nav-icon { color: #8a4b00 !important; }
html[data-product-shell="console"] body[data-theme="light"] .app-shell .nav-item[data-page-target="settings"] .nav-icon { color: #0e7490 !important; }
html[data-product-shell="console"] body[data-theme="light"] .app-shell .nav-item[data-page-target="admin"] .nav-icon { color: #087a55 !important; }

html[data-product-shell="console"] body[data-theme="light"] .app-shell .jst-current-panel,
html[data-product-shell="console"] body[data-theme="light"] .app-shell .jst-hero,
html[data-product-shell="console"] body[data-theme="light"] .app-shell .hero-panel {
  border-color: var(--jstools-border-default, var(--border)) !important;
  background: var(--jstools-surface-1, var(--surface)) !important;
}

html[data-product-shell="console"] body[data-theme="light"] .app-shell .jst-current-visual {
  opacity: .12 !important;
  mix-blend-mode: multiply !important;
}

html[data-product-shell="console"] body[data-theme="light"] .app-shell .jst-hero-visual {
  opacity: .12 !important;
  mix-blend-mode: multiply !important;
}

html[data-product-shell="console"] body[data-theme="light"] .app-shell .jst-current-task,
html[data-product-shell="console"] body[data-theme="light"] .app-shell .jst-dashboard .cc-capability-card {
  background: var(--jstools-surface-2, var(--surface-2)) !important;
}

html[data-product-shell="console"] body[data-theme="light"] .app-shell .jst-dashboard .cc-capability-card:hover {
  background: color-mix(
    in srgb,
    var(--tone, var(--jstools-accent)) 4%,
    var(--jstools-surface-2, var(--surface-2))
  ) !important;
}

/* The editor, history detail and pipeline consoles previously mixed black into
   their surfaces directly. That was correct for dark worlds but left charcoal
   islands in every light preset. Rebind those work areas to the selected light
   tokens instead of repainting the entire page with one global color. */
html[data-product-shell="console"] body[data-theme="light"] .app-shell :is(
  .jst-editor-split,
  .jst-template-editor .preview-box,
  .jst-template-editor .jst-code-editor,
  .jst-history-detail .cc-detail-code,
  .jst-console-grid textarea,
  .jst-console-grid pre,
  .jst-trace-drawer .pipeline-trace-step
) {
  background: var(--jstools-surface-2, var(--surface-2)) !important;
}

html[data-product-shell="console"] body[data-theme="light"] .app-shell :is(
  .jst-template-editor .template-preview-live,
  .jst-code-highlight,
  .jst-canvas-body,
  .jst-pipeline-workspace
) {
  background-color: var(--jstools-canvas, var(--bg)) !important;
}

html[data-product-shell="console"] body[data-theme="light"] .app-shell :is(
  .jst-template-editor .preview-box,
  .jst-history-detail .cc-detail-code,
  .jst-console-grid textarea,
  .jst-console-grid pre
) {
  color: var(--jstools-text-primary, var(--fg)) !important;
}

html[data-product-shell="console"] body[data-theme="light"] .app-shell :is(
  .jst-icon-tile.tone-violet,
  .tone-violet .jst-icon-tile
) { --tone: #6d28d9; }

html[data-product-shell="console"] body[data-theme="light"] .app-shell :is(
  .jst-icon-tile.tone-purple,
  .tone-purple .jst-icon-tile
) { --tone: #7e22ce; }

html[data-product-shell="console"] body[data-theme="light"] .app-shell :is(
  .jst-icon-tile.tone-cyan,
  .tone-cyan .jst-icon-tile
) { --tone: #0e7490; }

html[data-product-shell="console"] body[data-theme="light"] .app-shell :is(
  .jst-icon-tile.tone-amber,
  .tone-amber .jst-icon-tile
) { --tone: #8a4b00; }

html[data-product-shell="console"] body[data-theme="light"] .app-shell :is(
  .jst-icon-tile.tone-green,
  .tone-green .jst-icon-tile
) { --tone: #087a55; }

html[data-product-shell="console"] body[data-theme="light"] .app-shell :is(
  .jst-icon-tile.tone-red,
  .tone-red .jst-icon-tile
) { --tone: #b4232d; }

html[data-product-shell="console"] body[data-theme="light"] .app-shell :is(
  .jst-icon-tile.tone-blue,
  .tone-blue .jst-icon-tile
) { --tone: #1d4ed8; }

/* source: components/jst-choice-controls.css */
/* Terminal choice-control contract. Native checkbox and radio semantics remain
   intact; this layer supplies a visible four-edge frame in dense tables and
   normalizes hover, checked, disabled and keyboard-focus states. */
html[data-product-shell="console"] {
  --jst-choice-size: 16px;
  --jst-choice-border: color-mix(in srgb, var(--jst-text) 34%, var(--jst-line));
  --jst-choice-border-hover: color-mix(in srgb, var(--jst-cyan) 58%, var(--jst-choice-border));
  --jst-choice-border-checked: color-mix(in srgb, var(--jst-cyan) 76%, white);
  --jst-choice-focus: color-mix(in srgb, var(--jst-cyan) 24%, transparent);
}

html[data-product-shell="console"] body :is(.app-shell[data-current-page], #overlayHost) input:is([type="checkbox"], [type="radio"]):not([role="switch"]):not([data-jst-choice-native]) {
  box-sizing: border-box !important;
  width: var(--jst-choice-size) !important;
  min-width: var(--jst-choice-size) !important;
  height: var(--jst-choice-size) !important;
  min-height: var(--jst-choice-size) !important;
  flex: 0 0 var(--jst-choice-size) !important;
  margin: 0 !important;
  overflow: visible !important;
  border-radius: 3px;
  outline: 1px solid var(--jst-choice-border) !important;
  outline-offset: -1px !important;
  accent-color: var(--jst-cyan);
  box-shadow: 0 0 0 1px rgb(255 255 255 / 2%) inset;
  cursor: pointer;
  transition: outline-color 120ms ease, box-shadow 120ms ease, opacity 120ms ease;
}

html[data-product-shell="console"] body :is(.app-shell[data-current-page], #overlayHost) input[type="radio"]:not([role="switch"]):not([data-jst-choice-native]) {
  border-radius: 50%;
}

html[data-product-shell="console"] body :is(.app-shell[data-current-page], #overlayHost) input:is([type="checkbox"], [type="radio"]):not([role="switch"]):not([data-jst-choice-native]):hover:not(:disabled) {
  outline-color: var(--jst-choice-border-hover) !important;
}

html[data-product-shell="console"] body :is(.app-shell[data-current-page], #overlayHost) input:is([type="checkbox"], [type="radio"]):not([role="switch"]):not([data-jst-choice-native]):checked {
  outline-color: var(--jst-choice-border-checked) !important;
}

html[data-product-shell="console"] body :is(.app-shell[data-current-page], #overlayHost) input:is([type="checkbox"], [type="radio"]):not([role="switch"]):not([data-jst-choice-native]):focus-visible {
  outline: 2px solid var(--jst-choice-border-checked) !important;
  outline-offset: 1px !important;
  box-shadow: 0 0 0 4px var(--jst-choice-focus) !important;
}

html[data-product-shell="console"] body :is(.app-shell[data-current-page], #overlayHost) input:is([type="checkbox"], [type="radio"]):not([role="switch"]):not([data-jst-choice-native]):disabled {
  cursor: not-allowed;
  outline-color: color-mix(in srgb, var(--jst-choice-border) 62%, transparent) !important;
  opacity: .46;
}

@media (forced-colors: active) {
  html[data-product-shell="console"] body :is(.app-shell[data-current-page], #overlayHost) input:is([type="checkbox"], [type="radio"]):not([role="switch"]):not([data-jst-choice-native]) {
    outline-color: CanvasText !important;
  }
}

/* source: components/syntax-editor.css */
html[data-product-shell="console"] {
  --syntax-editor-bg: #080a1d;
  --syntax-editor-text: #d4d4d4;
  --syntax-editor-comment: #6a9955;
  --syntax-editor-keyword: #c586c0;
  --syntax-editor-string: #ce9178;
  --syntax-editor-number: #b5cea8;
  --syntax-editor-literal: #569cd6;
  --syntax-editor-property: #9cdcfe;
  --syntax-editor-function: #dcdcaa;
  --syntax-editor-tag: #569cd6;
  --syntax-editor-variable: #4fc1ff;
  --syntax-editor-punctuation: #9aa0bb;
  --syntax-editor-operator: #d4d4d4;
}

html[data-product-shell="console"] body[data-theme="light"] {
  --syntax-editor-bg: #f7f8ff;
  --syntax-editor-text: #1f2430;
  --syntax-editor-comment: #008000;
  --syntax-editor-keyword: #af00db;
  --syntax-editor-string: #a31515;
  --syntax-editor-number: #098658;
  --syntax-editor-literal: #0000ff;
  --syntax-editor-property: #0451a5;
  --syntax-editor-function: #795e26;
  --syntax-editor-tag: #800000;
  --syntax-editor-variable: #0070c1;
  --syntax-editor-punctuation: #59636f;
  --syntax-editor-operator: #30343b;
}

.syntax-editor-shell { position:relative; width:100%; min-width:0; min-height:0; display:grid; background:var(--syntax-editor-background,var(--syntax-editor-bg)); overflow:hidden; }
.syntax-editor-shell > .syntax-editor-control { grid-area:1 / 1; width:100%; height:100%; box-sizing:border-box; }
.syntax-editor-shell > .syntax-editor-highlight { grid-area:1 / 1; }
.syntax-editor-shell:focus-within { outline:1px solid color-mix(in srgb,var(--jst-cyan,#48d7e8) 72%,transparent); outline-offset:-1px; }
.syntax-editor-host { position:relative; }
.syntax-editor-highlight { position:absolute; inset:0; z-index:0; box-sizing:border-box; margin:0; overflow:hidden; pointer-events:none; color:var(--syntax-editor-text); background:var(--syntax-editor-background,var(--syntax-editor-bg)); }
html[data-product-shell="console"] body .syntax-editor-control,
html[data-product-shell="console"] body .syntax-editor-highlight { font-family:var(--font-mono,"JetBrains Mono",Consolas,"Courier New",monospace)!important; font-variant-ligatures:none; }
.syntax-editor-control { position:relative; z-index:1; min-width:0; }
.syntax-editor-active .syntax-editor-control { background:transparent!important; color:transparent!important; caret-color:var(--syntax-editor-text)!important; -webkit-text-fill-color:transparent!important; }
.syntax-editor-active .syntax-editor-control::selection { background:color-mix(in srgb,var(--jst-cyan,#48d7e8) 30%,transparent); }
.syntax-editor-empty .syntax-editor-control::placeholder { color:var(--jst-muted,#8690b5)!important; -webkit-text-fill-color:var(--jst-muted,#8690b5)!important; }
.syntax-token-comment { color:var(--syntax-editor-comment); font-style:italic; }
.syntax-token-keyword { color:var(--syntax-editor-keyword); }
.syntax-token-string { color:var(--syntax-editor-string); }
.syntax-token-number { color:var(--syntax-editor-number); }
.syntax-token-literal { color:var(--syntax-editor-literal); }
.syntax-token-property { color:var(--syntax-editor-property); }
.syntax-token-function { color:var(--syntax-editor-function); }
.syntax-token-tag { color:var(--syntax-editor-tag); }
.syntax-token-variable { color:var(--syntax-editor-variable); }
.syntax-token-punctuation { color:var(--syntax-editor-punctuation); }
.syntax-token-operator { color:var(--syntax-editor-operator); }

html[data-product-shell="console"] .jst-code-input.syntax-editor-active .jst-code-highlight { display:block; z-index:0; }
html[data-product-shell="console"] .jst-code-input.syntax-editor-active .template-content-area { z-index:1; background:transparent!important; color:transparent!important; -webkit-text-fill-color:transparent!important; }
html[data-product-shell="console"] .syntax-editor-device-host > .syntax-editor-device-highlight { grid-column:1; grid-row:1; position:relative; min-height:0; }
html[data-product-shell="console"] .syntax-editor-device-host > .device-editor-code { grid-column:1; grid-row:1; }
html[data-product-shell="console"] .syntax-editor-device-host > .syntax-editor-device-highlight,
html[data-product-shell="console"] .syntax-editor-device-host > .device-editor-code { white-space:pre; overflow:auto; }
.syntax-editor-device-highlight[hidden] { display:none!important; }

@media (forced-colors:active) {
  .syntax-editor-highlight { display:none!important; }
  .syntax-editor-active .syntax-editor-control { color:CanvasText!important; -webkit-text-fill-color:CanvasText!important; background:Canvas!important; }
}

/* source: responsive/pencil-viewport-utilization.css */
html[data-product-shell="console"] body .app-shell[data-current-page="dashboard"] .jst-dashboard > [data-admin-overview][aria-hidden="true"] {
  display: none !important;
}

@media (min-width: 1400px) {
  html[data-product-shell="console"] body .app-shell[data-current-page="dashboard"] .jst-dashboard {
    box-sizing: border-box !important;
    height: 100% !important;
    min-height: 0 !important;
    padding-bottom: 14px !important;
    grid-template-rows: minmax(0, 1fr) 57px !important;
  }

  html[data-product-shell="console"] body .app-shell[data-current-page="dashboard"] .jst-dashboard-grid {
    height: 100% !important;
    min-height: 0 !important;
  }

  html[data-product-shell="console"] body .app-shell[data-current-page="dashboard"] .jst-dashboard-left {
    grid-template-rows: minmax(0, 340fr) minmax(0, 372fr) !important;
  }

  html[data-product-shell="console"] body .app-shell[data-current-page="dashboard"] .jst-dashboard-right {
    grid-template-rows: minmax(0, 253fr) minmax(0, 184fr) minmax(0, 265fr) !important;
  }

  html[data-product-shell="console"] body .app-shell[data-current-page="pipeline"] :is(
    .pipeline-a3.jst-pipeline,
    .pipeline-a3.jst-pipeline > .pipeline-task-stage.active,
    .jst-library-shell,
    .jst-pipeline-workspace
  ) {
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
  }

  html[data-product-shell="console"] body .app-shell[data-current-page="pipeline"] .pipeline-a3.jst-pipeline,
  html[data-product-shell="console"] body .app-shell[data-current-page="pipeline"] .pipeline-a3.jst-pipeline > .pipeline-task-stage.active {
    grid-template-rows: minmax(0, 1fr) !important;
  }

  html[data-product-shell="console"] body .app-shell[data-current-page="pipeline"] .jst-pipeline-workspace {
    grid-template-rows: minmax(0, 1fr) 138px !important;
  }

  html[data-product-shell="console"] body .app-shell[data-current-page="pipeline"] #pipeline-task-panel-chain,
  html[data-product-shell="console"] body .app-shell[data-current-page="pipeline"] #pipeline-task-panel-chain > .jst-canvas {
    height: 100% !important;
    min-height: 0 !important;
  }

  html[data-product-shell="console"] body .app-shell[data-current-page="pipeline"] #pipeline-task-panel-io {
    height: 138px !important;
    min-height: 138px !important;
  }
}

@media (min-width: 1181px) and (max-width: 1399px) {
  html[data-product-shell="console"] body .app-shell[data-current-page="dashboard"] .jst-dashboard {
    box-sizing: border-box !important;
    height: 100% !important;
    min-height: 0 !important;
    padding-bottom: 15px !important;
    grid-template-rows: minmax(0, 1fr) 57px !important;
  }

  html[data-product-shell="console"] body .app-shell[data-current-page="dashboard"] .jst-dashboard-grid {
    height: 100% !important;
    min-height: 0 !important;
  }

  html[data-product-shell="console"] body .app-shell[data-current-page="dashboard"] .jst-dashboard-left {
    grid-template-rows: minmax(0, 220fr) minmax(0, 352fr) !important;
  }

  html[data-product-shell="console"] body .app-shell[data-current-page="dashboard"] .jst-dashboard-right {
    grid-template-rows: minmax(0, 220fr) minmax(0, 156fr) minmax(0, 180fr) !important;
  }

  html[data-product-shell="console"] body .app-shell[data-current-page="pipeline"] .pipeline-a3.jst-pipeline {
    height: calc(100% - 24px) !important;
    min-height: 0 !important;
    margin: 12px 8px 12px 16px !important;
  }

  html[data-product-shell="console"] body .app-shell[data-current-page="pipeline"] .pipeline-a3 > .pipeline-task-stage.active,
  html[data-product-shell="console"] body .app-shell[data-current-page="pipeline"] :is(.jst-library-shell, .jst-pipeline-workspace, .jst-inspector) {
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
  }

  html[data-product-shell="console"] body .app-shell[data-current-page="pipeline"] .pipeline-a3 > .pipeline-task-stage.active {
    grid-template-rows: minmax(0, 1fr) !important;
  }

  html[data-product-shell="console"] body .app-shell[data-current-page="pipeline"] .jst-pipeline-workspace {
    grid-template-rows: minmax(0, 1fr) 162px !important;
  }

  html[data-product-shell="console"] body .app-shell[data-current-page="pipeline"] #pipeline-task-panel-chain,
  html[data-product-shell="console"] body .app-shell[data-current-page="pipeline"] #pipeline-task-panel-chain > .jst-canvas {
    height: 100% !important;
    min-height: 0 !important;
  }

  html[data-product-shell="console"] body .app-shell[data-current-page="pipeline"] #pipeline-task-panel-io {
    height: 162px !important;
    min-height: 162px !important;
  }

  html[data-product-shell="console"] body .app-shell[data-current-page="pipeline"] .pipeline-a3.jst-pipeline #pipelineStage > .step-card:nth-child(5) {
    display: grid !important;
  }
}

@media (min-width: 921px) and (max-width: 1180px) {
  html[data-product-shell="console"] body .app-shell[data-current-page="dashboard"] .jst-dashboard {
    grid-template-rows: minmax(0, 1fr) 44px !important;
  }

  html[data-product-shell="console"] body .app-shell[data-current-page="dashboard"] .jst-dashboard-grid {
    height: 100% !important;
    min-height: 0 !important;
  }

  html[data-product-shell="console"] body .app-shell[data-current-page="dashboard"] .jst-quick {
    height: calc(100% - 372px) !important;
  }
}

@media (min-width: 641px) and (max-width: 920px) {
  html[data-product-shell="console"] .mobile-tabbar {
    position: fixed !important;
    z-index: 70 !important;
    left: 50% !important;
    right: auto !important;
    bottom: 12px !important;
    width: min(374px, calc(100% - 16px)) !important;
    height: 64px !important;
    min-height: 64px !important;
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    transform: translateX(-50%) !important;
    border: 1px solid var(--jst-line) !important;
    border-radius: 12px !important;
    background: color-mix(in srgb, var(--jst-bg) 94%, transparent) !important;
    backdrop-filter: blur(16px) !important;
  }

  html[data-product-shell="console"] .mobile-tabbar button {
    min-width: 0 !important;
    min-height: 48px !important;
    border: 0 !important;
    background: transparent !important;
    color: var(--jst-muted) !important;
    font-size: 11px !important;
  }

  html[data-product-shell="console"] .mobile-tabbar button.active {
    color: var(--jst-cyan) !important;
    box-shadow: inset 0 2px var(--jst-cyan) !important;
  }
}

@media (max-width: 680px) {
  html[data-product-shell="console"] body .app-shell[data-current-page="pipeline"] .content {
    height: calc(100dvh - 105px - var(--jst-mobile-tabbar-reserved-height, 72px)) !important;
    max-height: calc(100dvh - 105px - var(--jst-mobile-tabbar-reserved-height, 72px)) !important;
    padding: 0 2px !important;
  }

  html[data-product-shell="console"] body .app-shell[data-current-page="pipeline"] .pipeline-a3.jst-pipeline {
    height: 100% !important;
    min-height: 0 !important;
    grid-template-rows: 54px minmax(0, 1fr) !important;
  }

  html[data-product-shell="console"] body .app-shell[data-current-page="pipeline"] .jst-pipeline > .pipeline-task-stage {
    height: 100% !important;
    min-height: 0 !important;
  }

  html[data-product-shell="console"] body .app-shell[data-current-page="pipeline"] .pipeline-a3[data-pipeline-fidelity-layout="phone-flow"].jst-pipeline :is(
    .jst-pipeline-workspace,
    #pipeline-task-panel-chain,
    #pipeline-task-panel-chain > .pipeline-chain-panel.jst-canvas
  ) {
    height: 100% !important;
    min-height: 0 !important;
  }

  html[data-product-shell="console"] body .app-shell[data-current-page="pipeline"] .pipeline-a3[data-pipeline-fidelity-layout="phone-flow"].jst-pipeline .jst-pipeline-workspace {
    grid-template-rows: minmax(0, 1fr) !important;
  }

  html[data-product-shell="console"] body .app-shell[data-current-page="pipeline"] .pipeline-a3[data-pipeline-fidelity-layout="phone-flow"].jst-pipeline #pipeline-task-panel-chain > .pipeline-chain-panel.jst-canvas {
    grid-template-rows: 53px minmax(0, 1fr) !important;
  }

  html[data-product-shell="console"] body .app-shell[data-current-page="pipeline"] .chain-stage.jst-canvas-body {
    height: auto !important;
    min-height: 0 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    scrollbar-gutter: stable !important;
  }

  html[data-product-shell="console"] body .app-shell[data-current-page="pipeline"] .pipeline-a3[data-pipeline-fidelity-layout="phone-flow"][data-pipeline-mobile-stage="console"].jst-pipeline #pipeline-task-panel-io,
  html[data-product-shell="console"] body .app-shell[data-current-page="pipeline"] .pipeline-a3[data-pipeline-fidelity-layout="phone-flow"][data-pipeline-mobile-stage="console"].jst-pipeline #pipeline-task-panel-io .jst-console-grid {
    height: 100% !important;
    min-height: 0 !important;
  }
}

/* source: responsive/pencil-viewport-utilization-pipeline-bridge.css */
/* Pipeline terminal bridge: this cross-route bundle loads after route CSS. */
@media (min-width: 1181px) {
  html[data-product-shell="console"] body #appShell.app-shell[data-current-page="pipeline"] .pipeline-a3.jst-pipeline {
    height: calc(100% - 1.5rem) !important;
    min-height: 0 !important;
    max-height: calc(100% - 1.5rem) !important;
    margin: 0.75rem 0.5rem 0.75rem 1rem !important;
  }

  html[data-product-shell="console"] body .app-shell[data-current-page="pipeline"] :is(
    .pipeline-a3.jst-pipeline > .pipeline-task-stage.active,
    .jst-library-shell,
    .jst-pipeline-workspace
  ) {
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
  }

  html[data-product-shell="console"] body .app-shell[data-current-page="pipeline"] .jst-pipeline-workspace {
    grid-template-rows: minmax(18rem, 4fr) minmax(8.5rem, 1fr) !important;
    gap: clamp(0.5rem, 1vw, 0.75rem) !important;
  }

  html[data-product-shell="console"] body .app-shell[data-current-page="pipeline"] #pipeline-task-panel-io {
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
  }
}

@media (max-width: 680px) {
  html[data-product-shell="console"] body .app-shell[data-current-page="pipeline"] .content {
    height: calc(100dvh - 6.5625rem - var(--jst-mobile-tabbar-reserved-height, 4.5rem)) !important;
    max-height: calc(100dvh - 6.5625rem - var(--jst-mobile-tabbar-reserved-height, 4.5rem)) !important;
    padding: 0 0.125rem !important;
  }

  html[data-product-shell="console"] body .app-shell[data-current-page="pipeline"] .pipeline-a3.jst-pipeline {
    height: 100% !important;
    min-height: 0 !important;
    grid-template-rows: 3.375rem minmax(0, 1fr) !important;
  }

  html[data-product-shell="console"] body .app-shell[data-current-page="pipeline"] .pipeline-a3[data-pipeline-fidelity-layout="phone-flow"].jst-pipeline #pipeline-task-panel-chain > .pipeline-chain-panel.jst-canvas {
    grid-template-rows: 3.3125rem minmax(0, 1fr) !important;
  }
}

/* source: responsive/pencil-pipeline-scroll-experience.css */
@media (max-width: 920px) {
  html[data-product-shell="console"] body .app-shell[data-current-page="pipeline"] .content {
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior-y: auto !important;
    scrollbar-gutter: auto !important;
    touch-action: pan-y pinch-zoom !important;
  }

  html[data-product-shell="console"] body .app-shell[data-current-page="pipeline"] .pipeline-a3.jst-pipeline {
    height: auto !important;
    min-height: 100% !important;
    max-height: none !important;
    overflow: visible !important;
  }

  html[data-product-shell="console"] body .app-shell[data-current-page="pipeline"] .jst-pipeline > .jst-pipeline-mobile-tabs {
    position: sticky !important;
    top: 0 !important;
    z-index: 12 !important;
    align-self: start !important;
    background: var(--jstools-surface, var(--surface)) !important;
  }

  html[data-product-shell="console"] body .app-shell[data-current-page="pipeline"] .jst-pipeline > .pipeline-task-stage.active {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
  }

  html[data-product-shell="console"] body .app-shell[data-current-page="pipeline"] .chain-stage.jst-canvas-body {
    overscroll-behavior-y: auto !important;
    touch-action: pan-y pinch-zoom !important;
  }

  html[data-product-shell="console"] body .app-shell[data-current-page="pipeline"] #pipelineStage.jst-node-chain {
    --jst-canvas-pan-x: 0px !important;
    --jst-canvas-pan-y: 0px !important;
    transform: none !important;
  }

  html[data-product-shell="console"] body .app-shell[data-current-page="pipeline"] :is(
    #pipelineInput,
    #pipelineResult,
    .pencil-tablet-trace-view
  ) {
    overscroll-behavior: auto !important;
    touch-action: pan-y pinch-zoom !important;
  }
}
@media (max-width: 680px) {
  html[data-product-shell="console"] body .app-shell[data-current-page="pipeline"] .content {
    padding: 0 0.125rem max(0.75rem, env(safe-area-inset-bottom)) !important;
  }

  html[data-product-shell="console"] body .app-shell[data-current-page="pipeline"] .pipeline-a3.jst-pipeline {
    --jst-pipeline-phone-workspace-min: max(24rem, calc(100dvh - var(--jst-topbar, 6.5rem) - var(--jst-mobile-tabbar-reserved-height, 4.5rem) - 3.625rem));
    grid-template-rows: auto auto !important;
    align-content: start !important;
  }

  html[data-product-shell="console"] body .app-shell[data-current-page="pipeline"] .jst-pipeline > :is(
    .pipeline-task-stage.active,
    .pipeline-task-stage.active > .jst-pipeline-workspace
  ),
  html[data-product-shell="console"] body .app-shell[data-current-page="pipeline"] .jst-pipeline[data-pipeline-mobile-stage] :is(
    .jst-library-shell,
    #pipeline-task-panel-chain,
    #pipeline-task-panel-chain > .pipeline-chain-panel.jst-canvas,
    #pipeline-task-panel-io,
    #pipeline-task-panel-io .pipeline-io-panel.jst-console,
    #pipeline-task-panel-io .io-stack.jst-console-grid
  ) {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
  }

  html[data-product-shell="console"] body .app-shell[data-current-page="pipeline"] .pipeline-a3[data-pipeline-fidelity-layout="phone-flow"] #pipeline-task-panel-chain > .pipeline-chain-panel.jst-canvas {
    grid-template-rows: auto minmax(min-content, 1fr) !important;
  }

  html[data-product-shell="console"] body .app-shell[data-current-page="pipeline"] .pipeline-a3[data-pipeline-fidelity-layout="phone-flow"].jst-pipeline[data-pipeline-mobile-stage="canvas"] :is(.pipeline-task-stage.active, .jst-pipeline-workspace, #pipeline-task-panel-chain, #pipeline-task-panel-chain > .pipeline-chain-panel.jst-canvas) {
    min-height: var(--jst-pipeline-phone-workspace-min) !important;
  }

  html[data-product-shell="console"] body .app-shell[data-current-page="pipeline"] .chain-stage.jst-canvas-body {
    height: auto !important;
    min-height: 0 !important;
    padding: 3.8125rem 1rem 1rem !important;
    align-items: flex-start !important;
    justify-content: center !important;
    overflow: visible !important;
  }

  html[data-product-shell="console"] body .app-shell[data-current-page="pipeline"] .pipeline-a3[data-pipeline-fidelity-layout="phone-flow"] .chain-stage > #pipelineStage.jst-node-chain {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 0 !important;
    display: grid !important;
    gap: 1.0625rem !important;
    align-content: start !important;
    overflow: visible !important;
  }

  html[data-product-shell="console"] body .app-shell[data-current-page="pipeline"] .jst-pipeline[data-pipeline-mobile-stage="library"] .jst-library-shell,
  html[data-product-shell="console"] body .app-shell[data-current-page="pipeline"] .jst-pipeline[data-pipeline-mobile-stage="library"] .jst-library-shell > [data-pipeline-library-panel="steps"] {
    position: static !important;
    inset: auto !important;
    display: block !important;
    overflow: visible !important;
  }

  html[data-product-shell="console"] body .app-shell[data-current-page="pipeline"] .jst-pipeline[data-pipeline-mobile-stage="library"] :is(
    .jst-step-library,
    .jst-library-list
  ) {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
  }

  html[data-product-shell="console"] body .app-shell[data-current-page="pipeline"] .jst-pipeline[data-pipeline-mobile-stage="library"] .jst-step-library {
    grid-template-rows: auto auto auto auto !important;
  }

  html[data-product-shell="console"] body .app-shell[data-current-page="pipeline"] .pipeline-a3[data-pipeline-fidelity-layout="phone-flow"][data-pipeline-mobile-stage="console"].jst-pipeline #pipeline-task-panel-io {
    padding-block: 0.75rem !important;
  }

  html[data-product-shell="console"] body .app-shell[data-current-page="pipeline"] .pipeline-a3[data-pipeline-fidelity-layout="phone-flow"][data-pipeline-mobile-stage="console"].jst-pipeline #pipeline-task-panel-io .io-stack.jst-console-grid {
    height: auto !important;
    min-height: 0 !important;
    padding: 0.5rem 0.75rem !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: repeat(2, minmax(clamp(12rem, 35dvh, 19rem), auto)) !important;
    gap: 0.75rem !important;
    overflow: visible !important;
  }

  html[data-product-shell="console"] body .app-shell[data-current-page="pipeline"] .pipeline-a3[data-pipeline-fidelity-layout="phone-flow"][data-pipeline-mobile-stage="console"].jst-pipeline #pipeline-task-panel-io :is(
    .jst-console-input,
    .jst-console-output
  ) {
    height: auto !important;
    min-height: clamp(12rem, 35dvh, 19rem) !important;
    max-height: none !important;
  }
}

@media (min-width: 681px) and (max-width: 920px) {
  html[data-product-shell="console"] body .app-shell[data-current-page="pipeline"] .content {
    height: max(20rem, calc(100dvh - 6.5rem - var(--jst-mobile-tabbar-reserved-height, 4.5rem) - 0.75rem)) !important;
    max-height: max(20rem, calc(100dvh - 6.5rem - var(--jst-mobile-tabbar-reserved-height, 4.5rem) - 0.75rem)) !important;
    padding-bottom: max(0.75rem, env(safe-area-inset-bottom)) !important;
  }

  html[data-product-shell="console"] body .app-shell[data-current-page="pipeline"] .pipeline-a3.jst-pipeline {
    grid-template-rows:
      auto
      minmax(clamp(28rem, 50dvh, 34rem), auto)
      minmax(clamp(22rem, 40dvh, 26rem), auto) !important;
  }

  html[data-product-shell="console"] body .app-shell[data-current-page="pipeline"] .pipeline-a3[data-pipeline-fidelity-layout="tablet-flow"] :is(
    #pipeline-task-panel-chain,
    #pipeline-task-panel-io
  ) {
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
  }

  html[data-product-shell="console"] body .app-shell[data-current-page="pipeline"] .pipeline-a3[data-pipeline-fidelity-layout="tablet-flow"].jst-pipeline #pipeline-task-panel-chain {
    height: auto !important;
    min-height: clamp(28rem, 50dvh, 34rem) !important;
  }

  html[data-product-shell="console"] body .app-shell[data-current-page="pipeline"] .pipeline-a3[data-pipeline-fidelity-layout="tablet-flow"].jst-pipeline #pipeline-task-panel-chain > .pipeline-chain-panel.jst-canvas {
    height: auto !important;
    min-height: clamp(28rem, 50dvh, 34rem) !important;
    grid-template-rows: 4rem minmax(24rem, 1fr) !important;
    overflow: visible !important;
  }

  html[data-product-shell="console"] body .app-shell[data-current-page="pipeline"] .pipeline-a3[data-pipeline-fidelity-layout="tablet-flow"].jst-pipeline .chain-stage.jst-canvas-body {
    height: auto !important;
    min-height: 24rem !important;
    padding: 0.875rem 1rem !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: minmax(18.625rem, auto) 3.125rem !important;
    gap: 0.75rem !important;
    overflow: visible !important;
  }

  html[data-product-shell="console"] body .app-shell[data-current-page="pipeline"] .pipeline-a3[data-pipeline-fidelity-layout="tablet-flow"].jst-pipeline .chain-stage > #pipelineStage.jst-node-chain {
    grid-column: 1 !important;
    grid-row: 1 !important;
    width: 100% !important;
    height: auto !important;
    min-height: 18.625rem !important;
  }

  html[data-product-shell="console"] body .app-shell[data-current-page="pipeline"] .pipeline-a3[data-pipeline-fidelity-layout="tablet-flow"][data-pipeline-mobile-stage="canvas"] #pipeline-task-panel-io {
    min-height: clamp(22rem, 40dvh, 26rem) !important;
  }

  html[data-product-shell="console"] body .app-shell[data-current-page="pipeline"] .pipeline-a3[data-pipeline-fidelity-layout="tablet-flow"][data-pipeline-mobile-stage="library"] .jst-library-shell,
  html[data-product-shell="console"] body .app-shell[data-current-page="pipeline"] .pipeline-a3[data-pipeline-fidelity-layout="tablet-flow"][data-pipeline-mobile-stage="console"] #pipeline-task-panel-io {
    height: auto !important;
    min-height: clamp(34rem, 72dvh, 48rem) !important;
    max-height: none !important;
  }
}

/* source: responsive/mobile-scroll-ownership.css */
@media (max-width:920px) {
  html[data-product-shell="console"] body .app-shell[data-current-page="settings"] .jst-settings {
    height:auto !important;
    min-height:100% !important;
    max-height:none !important;
    grid-template-rows:72px auto auto !important;
    padding-bottom:var(--cc-fit-pad-y,.5rem) !important;
    overflow:visible !important;
  }

  html[data-product-shell="console"] body .app-shell[data-current-page="settings"] .jst-settings:not([data-jst-active-settings="appearance"]) {
    grid-template-rows:72px auto !important;
  }

  html[data-product-shell="console"] body .app-shell[data-current-page="settings"] .jst-settings-main {
    height:auto !important;
    min-height:0 !important;
    max-height:none !important;
    overflow:visible !important;
    overscroll-behavior-y:auto;
    touch-action:pan-y pinch-zoom;
  }

  html[data-product-shell="console"] body .app-shell[data-current-page="settings"] .jst-settings-save {
    position:static !important;
  }

  html[data-product-shell="console"] body .app-shell[data-current-page="devtools"] #devtools-panel-capture.active .cc-dev-capture-config,
  html[data-product-shell="console"] body .app-shell[data-current-page="devtools"] #devtools-panel-capture.active .capture-config-body {
    height:auto !important;
    min-height:0 !important;
    max-height:none !important;
    overflow:visible !important;
    overscroll-behavior-y:auto;
    touch-action:pan-y pinch-zoom;
  }

  html[data-product-shell="console"] body .app-shell[data-current-page="devtools"] #devtools-panel-capture.active,
  html[data-product-shell="console"] body .app-shell[data-current-page="devtools"] #devtools-panel-capture.active > .cc-dev-full,
  html[data-product-shell="console"] body .app-shell[data-current-page="devtools"] #devtools-panel-capture.active .cc-dev-capture-full {
    height:auto !important;
    min-height:100% !important;
    max-height:none !important;
    grid-template-rows:auto auto !important;
    overflow:visible !important;
  }

  html[data-product-shell="console"] body .app-shell[data-current-page] :is(
    .topbar-chips,
    [role="tablist"],
    .api-open-tabs,
    .cc-dev-primary-tabs,
    .cc-dev-subtabs,
    .history-pager-actions,
    .jst-admin-table-scroll,
    .history-table-wrap
  ) {
    -webkit-overflow-scrolling:touch;
    overscroll-behavior-inline:contain;
    touch-action:pan-x pinch-zoom;
  }

  html[data-product-shell="console"] body .app-shell[data-current-page="devtools"] .content {
    overscroll-behavior-y:auto !important;
  }

  .app-shell[data-current-page="devtools"] [data-dev-panel].active { padding-bottom:var(--cc-fit-pad-y,.5rem) !important; }

  html[data-product-shell="console"] body .app-shell[data-current-page="devtools"] #devtools-panel-resource.active {
    height:auto !important;
    min-height:100% !important;
    max-height:none !important;
    padding-bottom:0 !important;
    overflow:visible !important;
    overscroll-behavior-y:auto !important;
    scrollbar-gutter:auto !important;
  }

  html[data-product-shell="console"] body .app-shell[data-current-page="devtools"] #devtools-panel-resource.active > .cc-dev-full {
    height:auto !important;
    min-height:100% !important;
    max-height:none !important;
    overflow:visible !important;
  }

  html[data-product-shell="console"] body .app-shell[data-current-page="devtools"] #devtools-panel-resource.active > .cc-dev-full::after {
    display:none !important;
  }

  html[data-product-shell="console"] body .app-shell[data-current-page="devtools"] #devtools-panel-resource.active .cc-dev-resource-full[data-design-layout="workspace"],
  html[data-product-shell="console"] body .app-shell[data-current-page="devtools"] #devtools-panel-resource.active :is(#resource-panel-list,#resource-panel-log).active {
    height:max-content !important;
    min-height:0 !important;
    max-height:none !important;
    overflow:visible !important;
    overscroll-behavior-y:auto !important;
  }
}
@media (max-width:640px) {
  html[data-product-shell="console"] body .app-shell[data-current-page="devtools"] #devtools-panel-device.active,
  html[data-product-shell="console"] body .app-shell[data-current-page="devtools"] #devtools-panel-device.active > .cc-dev-full,
  html[data-product-shell="console"] body .app-shell[data-current-page="devtools"] #devtools-panel-device.active > .cc-dev-full > .cc-dev-device-full[data-design-layout="workspace"] {
    height:auto !important;
    min-height:100% !important;
    max-height:none !important;
    overflow:visible !important;
  }

  html[data-product-shell="console"] body .app-shell[data-current-page="devtools"] #devtools-panel-device.active .cc-dev-device-full[data-design-layout="workspace"] > [data-task-stage-panel].active {
    height:auto !important;
    min-height:0 !important;
    max-height:none !important;
    padding-bottom:0 !important;
    overflow:visible !important;
  }

  html[data-product-shell="console"] body .app-shell[data-current-page="devtools"] #devtools-panel-device.active .cc-dev-file-layout {
    height:auto !important;
    min-height:590px !important;
    grid-template-columns:minmax(0,1fr) !important;
    grid-template-rows:160px minmax(420px,auto) !important;
    overflow:visible !important;
  }

  html[data-product-shell="console"] body .app-shell[data-current-page="devtools"] #devtools-panel-device.active .cc-dev-file-tree {
    height:160px !important;
    min-height:160px !important;
    max-height:160px !important;
    overflow:auto !important;
    overscroll-behavior-y:auto;
  }

  html[data-product-shell="console"] body .app-shell[data-current-page="devtools"] #devtools-panel-device.active .cc-dev-editor-shell {
    height:420px !important;
    min-height:420px !important;
    max-height:none !important;
  }
}

@media (max-width:820px) {
  #devtools-panel-api {
    --api-mobile-nav-offset:var(--jst-mobile-tabbar-reserved-height,4.5rem);
  }

  html[data-product-shell="console"] body .app-shell[data-current-page="devtools"] #devtools-panel-api.active,
  html[data-product-shell="console"] body .app-shell[data-current-page="devtools"] #devtools-panel-api.active > .cc-dev-full {
    height:auto !important;
    min-height:100% !important;
    max-height:none !important;
    overflow:visible !important;
  }

  html[data-product-shell="console"] body .app-shell[data-current-page="devtools"] .cc-devtools-page:has(> #devtools-panel-api.active) {
    grid-template-rows:auto !important;
  }

  html[data-product-shell="console"] body .app-shell[data-current-page="devtools"] #devtools-panel-api.active > .cc-dev-full > [data-dev-workbench="api"],
  html[data-product-shell="console"] body .app-shell[data-current-page="devtools"] #devtools-panel-api.active > .cc-dev-full > [data-dev-workbench="api"][data-api-nav-open="false"] {
    height:auto !important;
    min-height:953px !important;
    max-height:none !important;
    grid-template-rows:auto 40px !important;
    overflow:visible !important;
  }

  #devtools-panel-api .api-main {
    height:auto !important;
    min-height:913px !important;
    grid-template-rows:42px minmax(480px,auto) 11px minmax(380px,auto) !important;
    overflow:visible !important;
  }

  #devtools-panel-api .api-request-card,
  #devtools-panel-api .api-request-card form {
    height:auto !important;
    overflow:visible !important;
  }

  #devtools-panel-api .api-request-card { min-height:480px !important; }
  #devtools-panel-api .api-request-card form {
    min-height:379px !important;
    grid-template-rows:48px 40px minmax(280px,auto) !important;
  }

  #devtools-panel-api .api-stage.active {
    height:auto !important;
    min-height:280px !important;
    max-height:none !important;
    overflow:visible !important;
  }

  #devtools-panel-api .api-response-card {
    height:auto !important;
    min-height:380px !important;
    grid-template-rows:47px 38px 47px minmax(248px,auto) !important;
    overflow:visible !important;
  }

  #devtools-panel-api .api-response-stage.active {
    min-height:248px !important;
    max-height:360px !important;
    overflow:auto !important;
    overscroll-behavior-y:auto;
  }

  #devtools-panel-api .api-activity-rail {
    position:sticky;
    top:0;
    align-self:start;
    height:calc(100dvh - var(--jst-topbar,104px) - var(--api-mobile-nav-offset,0px));
  }

  #devtools-panel-api .api-workspace-panel {
    position:fixed !important;
    top:var(--jst-topbar,104px) !important;
    bottom:var(--api-mobile-nav-offset,0px) !important;
    height:auto !important;
    overflow:auto !important;
  }
}

/* source: responsive/all-page-touch-scroll.css */
/* Final viewport contract: one route scroller, finger-operable dense surfaces,
   and a shared safe area before the fixed phone or tablet navigation. */
html[data-product-shell="console"] body :is(.login-screen,.app-shell[data-current-page] .content,.app-shell[data-current-page] .page.active,.app-shell[data-current-page] .jst-settings-main,.drawer-body) {
  -webkit-overflow-scrolling:touch;
  touch-action:pan-y pinch-zoom;
}

html[data-product-shell="console"] body .app-shell[data-current-page] :is(.algorithm-list,.jst-library-list,.jst-history-table-scroll,.cc-dev-file-tree,.cc-dev-table-wrap,.device-package-list,.api-response-stage,.api-response-body,.time-quick-panel,.jst-code-editor,.jst-inspector-config,.jst-inspector-description) {
  -webkit-overflow-scrolling:touch;
  overscroll-behavior:auto;
  touch-action:pan-x pan-y pinch-zoom;
}

@media (max-width:920px) {
  html[data-product-shell="console"] body .app-shell[data-current-page] .topbar {
    grid-template-columns:44px minmax(0,1fr) 148px !important;
  }

  html[data-product-shell="console"] body .app-shell[data-current-page] .topbar > .top-actions {
    position:absolute !important;
    inset:12px 12px auto auto !important;
    grid-column:auto !important;
    grid-row:auto !important;
    width:148px !important;
    display:flex !important;
    align-items:center !important;
    justify-content:flex-end !important;
    flex-wrap:nowrap !important;
    gap:8px !important;
  }

  html[data-product-shell="console"] body .app-shell[data-current-page] .topbar > .top-actions > .template-top-action {
    display:none !important;
  }

  html[data-product-shell="console"] body #loginScreen.login-screen[data-cc-id="login-root"]:not(.hidden) {
    overflow-x:hidden !important;
    overflow-y:auto !important;
    overscroll-behavior-y:auto;
  }

  html[data-product-shell="console"] body .app-shell[data-current-page] .content {
    height:calc(100dvh - var(--jst-topbar) - var(--jst-mobile-tabbar-reserved-height,4.5rem) - .25rem) !important;
    max-height:calc(100dvh - var(--jst-topbar) - var(--jst-mobile-tabbar-reserved-height,4.5rem) - .25rem) !important;
    overflow-x:clip !important;
    overflow-y:auto !important;
    overscroll-behavior-x:none;
    overscroll-behavior-y:auto;
    scroll-behavior:smooth;
    scrollbar-gutter:auto;
  }

  html[data-product-shell="console"] body .app-shell[data-current-page] .content > .page.active {
    height:auto !important;
    min-height:100% !important;
    overflow:visible !important;
  }
}

@media (min-width:641px) and (max-width:920px) {
  html[data-product-shell="console"] body .app-shell {
    --jst-mobile-tabbar-bottom:.75rem;
  }
}

/* source: components/jst-selects.css */
html[data-product-shell="console"] {
  --jst-select-control-height: var(--jst-control-height, 32px);
  --jst-select-control-radius: var(--jst-control-radius, 6px);
  --jst-select-control-background: var(--jst-control-background, var(--jst-panel-2));
  --jst-select-control-border: var(--jst-control-border, var(--jst-line));
  --jst-select-popover: color-mix(in srgb, var(--jst-panel-2) 96%, var(--jst-bg));
  --jst-select-option-hover: color-mix(in srgb, var(--jst-panel-2) 84%, var(--jst-cyan));
  --jst-select-option-selected: color-mix(in srgb, var(--jst-panel-2) 76%, var(--jst-cyan));
}

/* Page styles retain width and grid placement. This terminal component owns
   every eligible trigger and the one portal listbox shared by all pages. */
html[data-product-shell="console"] body :is(.app-shell[data-current-page], #overlayHost) :is(select, .select, [role="combobox"], #jst-select-specificity-guard):not([multiple]):not([size]):not([data-jst-select-native]) {
  box-sizing: border-box !important;
  min-width: 0;
  height: var(--jst-select-control-height) !important;
  min-height: var(--jst-select-control-height) !important;
  padding: 0 31px 0 10px !important;
  border: 1px solid var(--jst-select-control-border) !important;
  border-radius: var(--jst-select-control-radius) !important;
  outline: 0 !important;
  appearance: none !important;
  background-color: var(--jst-select-control-background) !important;
  background-image: url("../../assets/icons/chevron-down.svg") !important;
  background-position: right 9px center !important;
  background-repeat: no-repeat !important;
  background-size: 14px 14px !important;
  color: var(--jst-text) !important;
  font-family: var(--jst-ui-font) !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  line-height: 1.2 !important;
  text-overflow: ellipsis;
  box-shadow: none !important;
  cursor: pointer;
  transition: border-color 140ms ease, background-color 140ms ease, box-shadow 140ms ease;
}

html[data-product-shell="console"] body :is(.app-shell[data-current-page], #overlayHost) :is(select, .select, [role="combobox"], #jst-select-specificity-guard):not([multiple]):not([size]):not([data-jst-select-native]):hover:not(:disabled) {
  border-color: color-mix(in srgb, var(--jst-cyan) 42%, var(--jst-select-control-border)) !important;
  background-color: color-mix(in srgb, var(--jst-select-control-background) 92%, var(--jst-cyan)) !important;
}

html[data-product-shell="console"] body :is(.app-shell[data-current-page], #overlayHost) :is(select, .select, [role="combobox"], #jst-select-specificity-guard):not([multiple]):not([size]):not([data-jst-select-native]):is(:focus-visible, .jst-select-open) {
  border-color: var(--jst-cyan) !important;
  background-color: var(--jst-select-control-background) !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--jst-cyan) 18%, transparent) !important;
}

html[data-product-shell="console"] body :is(.app-shell[data-current-page], #overlayHost) :is(select, .select, [role="combobox"], #jst-select-specificity-guard):not([multiple]):not([size]):not([data-jst-select-native]):disabled {
  cursor: not-allowed !important;
  border-color: color-mix(in srgb, var(--jst-select-control-border) 72%, transparent) !important;
  background-color: color-mix(in srgb, var(--jst-select-control-background) 82%, transparent) !important;
  color: var(--jst-muted) !important;
  box-shadow: none !important;
  opacity: .48 !important;
}

html[data-product-shell="console"] .app-shell select option {
  background: var(--jst-panel-2);
  color: var(--jst-text);
}

html[data-product-shell="console"] .jst-select-popover {
  position: fixed;
  z-index: 2400;
  box-sizing: border-box;
  padding: 4px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--jst-select-control-border) 94%, var(--jst-cyan));
  border-radius: 8px;
  background: var(--jst-select-popover);
  color: var(--jst-text);
  font: 500 12px/1.35 var(--jst-ui-font);
  box-shadow: 0 18px 42px rgb(0 0 0 / 38%), 0 0 0 1px rgb(255 255 255 / 3%) inset;
  transform-origin: center top;
  animation: jst-select-enter 110ms ease-out;
}

html[data-product-shell="console"] .jst-select-popover[data-placement="top"] {
  transform-origin: center bottom;
}

html[data-product-shell="console"] .jst-select-popover[hidden] { display: none !important; }

html[data-product-shell="console"] .jst-select-listbox {
  max-height: min(320px, calc(100vh - 24px));
  padding: 1px;
  overflow: auto;
  overscroll-behavior: contain;
  outline: 0;
  scrollbar-gutter: stable;
}

html[data-product-shell="console"] .jst-select-option {
  display: grid;
  min-height: 32px;
  padding: 0 9px 0 6px;
  grid-template-columns: 17px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  border: 1px solid transparent;
  border-radius: 5px;
  color: var(--jst-text);
  cursor: default;
  user-select: none;
  transition: border-color 90ms ease, background-color 90ms ease, color 90ms ease;
}

html[data-product-shell="console"] .jst-select-option + .jst-select-option { margin-top: 1px; }

html[data-product-shell="console"] .jst-select-option[data-active] {
  border-color: color-mix(in srgb, var(--jst-cyan) 20%, transparent);
  background: var(--jst-select-option-hover);
}

html[data-product-shell="console"] .jst-select-option[aria-selected="true"] {
  background: var(--jst-select-option-selected);
  color: color-mix(in srgb, var(--jst-text) 92%, white);
}

html[data-product-shell="console"] .jst-select-option[aria-selected="true"][data-active] {
  border-color: color-mix(in srgb, var(--jst-cyan) 52%, var(--jst-select-control-border));
}

html[data-product-shell="console"] .jst-select-option[aria-disabled="true"] {
  color: var(--jst-muted);
  cursor: not-allowed;
  opacity: .46;
}

html[data-product-shell="console"] .jst-select-option-check {
  display: grid;
  width: 17px;
  height: 17px;
  place-items: center;
  color: var(--jst-cyan);
  opacity: 0;
}

html[data-product-shell="console"] .jst-select-option[aria-selected="true"] .jst-select-option-check { opacity: 1; }
html[data-product-shell="console"] .jst-select-option-check .ui-icon { width: 14px; height: 14px; stroke-width: 2.2; }

html[data-product-shell="console"] .jst-select-option-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html[data-product-shell="console"] .jst-select-group {
  padding: 8px 8px 4px 30px;
  color: var(--jst-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
}

html[data-product-shell="console"] .jst-select-empty {
  padding: 12px 10px;
  color: var(--jst-muted);
  text-align: center;
}

html[data-product-shell="console"] body[data-theme="light"] .jst-select-popover {
  box-shadow: 0 16px 36px rgb(29 45 72 / 22%), 0 0 0 1px rgb(255 255 255 / 66%) inset;
}

html[data-product-shell="console"] .jst-help-button {
  color: var(--jst-text);
  font-size: 13px;
  font-weight: 800;
}

@keyframes jst-select-enter {
  from { opacity: 0; transform: translateY(-3px) scale(.992); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  html[data-product-shell="console"] .jst-select-popover { animation: none; }
}

@media (max-width: 920px) {
  html[data-product-shell="console"] { --jst-select-control-height: 36px; }
  html[data-product-shell="console"] .jst-select-option { min-height: 38px; }
}
