/*
 * Copyright F5, Inc. 2026
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *     http://www.apache.org/licenses/LICENSE-2.0
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

@import url("https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700;800&family=IBM+Plex+Mono:wght@400;500&display=swap");

:root {
  --bg: #f3f7f5;
  --bg-soft: #f8faf9;
  --panel: rgba(255, 255, 255, 0.9);
  --panel-strong: #ffffff;
  --ink: #14231a;
  --muted: #4f6357;
  --line: #c5d7cc;
  --line-soft: #dbe7e0;
  --accent: #0f8b6f;
  --accent-strong: #0b6f59;
  --accent-blue: #2d5f8f;
  --success: #0f8b6f;
  --warning: #b36a00;
  --danger: #a43524;
  --shadow-sm: 0 8px 20px rgba(20, 45, 33, 0.07);
  --shadow-md: 0 18px 42px rgba(20, 45, 33, 0.12);
  --shadow-lg: 0 30px 60px rgba(16, 37, 27, 0.14);
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: "Sora", "Avenir Next", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    linear-gradient(180deg, #f7faf8 0%, #edf4f0 55%, #eef3f7 100%);
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.14;
  z-index: -2;
  background-image:
    linear-gradient(transparent 96%, rgba(20, 52, 38, 0.08) 96%),
    linear-gradient(90deg, transparent 96%, rgba(20, 52, 38, 0.08) 96%);
  background-size: 22px 22px;
}

code,
pre {
  font-family: "IBM Plex Mono", "SFMono-Regular", Menlo, monospace;
}

.bg-shape {
  display: none;
}

.layout {
  max-width: 1680px;
  margin: 0 auto;
  padding: 18px;
  display: grid;
  gap: 14px;
}

.hero {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel-strong);
  box-shadow: var(--shadow-sm);
  padding: 12px 16px;
  animation: fadein 0.42s ease-out;
}

.hero-kicker {
  margin: 0 0 6px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: #2f6f5a;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(101, 153, 132, 0.34);
}

.hero h1 {
  margin: 0;
  font-weight: 800;
  letter-spacing: 0;
  font-size: clamp(1.38rem, 2.6vw, 1.96rem);
}

.hero-subtitle {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.5;
  max-width: 78ch;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(780px, 2.25fr) minmax(330px, 0.75fr);
  gap: 14px;
  min-height: calc(100vh - 150px);
}

.panel {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  padding: 14px;
  backdrop-filter: blur(6px);
  animation: rise 0.34s ease-out;
  overflow: hidden;
}

.panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.3), transparent 44%);
}

.panel-head {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-soft);
}

.panel-head h2,
.topology-panel h2 {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 700;
}

.panel-subtitle {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.trace-meta {
  display: grid;
  justify-items: end;
  gap: 7px;
}

.trace-chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  display: grid;
  justify-items: end;
  background: #fff;
  box-shadow: 0 5px 16px rgba(20, 44, 33, 0.08);
}

.trace-chip span {
  font-size: 0.64rem;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: var(--muted);
}

.trace-chip code {
  color: #254b72;
  font-size: 0.74rem;
  font-weight: 600;
}

.guardrail-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 11px;
  font-size: 0.69rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  background: #fff;
  box-shadow: 0 4px 14px rgba(20, 44, 33, 0.07);
}

.guardrail-status .dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
}

.guardrail-status.status-unknown {
  color: #4f6357;
}

.guardrail-status.status-unknown .dot {
  background: #83998b;
}

.guardrail-status.status-clear {
  color: #0e6853;
  border-color: #8fcab7;
  background: #f3fcf8;
}

.guardrail-status.status-clear .dot {
  background: var(--success);
}

.guardrail-status.status-flagged {
  color: #895300;
  border-color: #e4c289;
  background: #fff9ef;
}

.guardrail-status.status-flagged .dot {
  background: var(--warning);
}

.guardrail-status.status-blocked {
  color: #8f2c1e;
  border-color: #e3a9a1;
  background: #fff3f1;
}

.guardrail-status.status-blocked .dot {
  background: var(--danger);
}

.chat-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  max-height: calc(100vh - 150px);
}

.tab-nav {
  position: relative;
  z-index: 1;
  display: inline-flex;
  gap: 8px;
  margin-bottom: 12px;
  padding: 4px;
  width: fit-content;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
}

.tab-btn {
  border: 1px solid transparent;
  background: transparent;
  color: #2a4f74;
  border-radius: 9px;
  padding: 8px 13px;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.16s ease;
}

.tab-btn:hover {
  background: #f2f7fc;
}

.tab-btn.active {
  border-color: #0f6a55;
  background: linear-gradient(180deg, #13a07d, #0f8b6f);
  color: #fff;
  box-shadow: 0 8px 16px rgba(14, 105, 83, 0.26);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

#chatTab.tab-panel.active {
  display: grid;
  grid-template-rows: minmax(260px, 1fr) auto;
  gap: 10px;
  min-height: 0;
}

.chat-stream {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  background:
    radial-gradient(420px 170px at 8% 0%, rgba(180, 227, 204, 0.14), transparent 75%),
    radial-gradient(360px 180px at 96% 2%, rgba(182, 206, 243, 0.15), transparent 80%),
    #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  padding: 12px;
  overflow: auto;
  display: grid;
  gap: 11px;
}

.chat-empty {
  color: var(--muted);
  font-size: 0.9rem;
  align-self: center;
  justify-self: center;
  text-align: center;
  max-width: 360px;
  line-height: 1.5;
  border: 1px dashed #bed3c8;
  border-radius: 12px;
  padding: 14px;
  background: #f7fbf9;
}

.prompt-library {
  display: grid;
  gap: 10px;
}

.prompt-card {
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: #fff;
  padding: 11px;
  display: grid;
  gap: 8px;
  box-shadow: var(--shadow-sm);
}

.prompt-card h4 {
  margin: 0;
  font-size: 0.94rem;
}

.prompt-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.prompt-hint {
  margin: 0;
  color: #2c5c86;
  font-size: 0.78rem;
  line-height: 1.4;
  font-weight: 600;
  background: #eef5fc;
  border: 1px solid #cfe0f2;
  border-radius: 9px;
  padding: 7px 9px;
}

.prompt-text {
  border: 1px solid #d8e4dd;
  border-radius: 10px;
  background: #f7fbf9;
  padding: 9px;
  font-size: 0.8rem;
  line-height: 1.38;
  color: #1b2f24;
  white-space: pre-wrap;
}

.prompt-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.prompt-option {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  color: #2c5c86;
  font-size: 0.76rem;
  line-height: 1.35;
  font-weight: 600;
}

.prompt-option input {
  margin: 2px 0 0;
  accent-color: var(--accent);
}

.message {
  display: grid;
  gap: 5px;
  animation: rise 0.28s ease-out;
}

.message.user {
  justify-items: end;
}

.message.assistant {
  justify-items: start;
}

.message-meta {
  font-size: 0.68rem;
  color: #5d7468;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
}

.bubble {
  max-width: 96%;
  border-radius: 12px;
  padding: 9px 11px;
  white-space: pre-wrap;
  line-height: 1.5;
  font-size: 0.84rem;
  box-shadow: 0 10px 24px rgba(21, 47, 35, 0.09);
}

.message.user .bubble {
  color: #fff;
  background: linear-gradient(160deg, #13a27f, #0f8b6f);
  border-top-right-radius: 7px;
}

.message.assistant .bubble {
  color: #1b2f24;
  background: #f3f8f5;
  border: 1px solid #cedfd5;
  border-top-left-radius: 7px;
}

.bubble.pending {
  opacity: 0.78;
  font-style: italic;
}

.composer {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  background: var(--panel-strong);
  padding: 12px;
  display: grid;
  gap: 8px;
  box-shadow: var(--shadow-sm);
}

.composer label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #4f6357;
  font-weight: 700;
}

textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 10px 11px;
  font: inherit;
  color: var(--ink);
  background: #fff;
}

textarea {
  resize: vertical;
  min-height: 96px;
}

textarea:focus,
select:focus,
button:focus-visible,
.topology-node:focus-visible,
.tab-btn:focus-visible,
.popover-close:focus-visible {
  outline: 2px solid rgba(13, 140, 111, 0.38);
  outline-offset: 2px;
}

.row {
  display: flex;
  gap: 8px;
}

.config-row {
  align-items: center;
  flex-wrap: wrap;
}

.inline-label {
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.checkbox-label {
  text-transform: none;
  letter-spacing: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

button {
  border: 1px solid #0f6a55;
  background: linear-gradient(180deg, #14a27f, #0f8b6f);
  color: #fff;
  font: inherit;
  font-weight: 700;
  border-radius: 10px;
  padding: 9px 12px;
  cursor: pointer;
  transition: transform 0.14s ease, box-shadow 0.16s ease, filter 0.16s ease, background-color 0.16s ease;
}

button:hover {
  transform: translateY(-1px);
  box-shadow: 0 9px 16px rgba(15, 96, 77, 0.23);
}

button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

button.secondary {
  background: #fff;
  color: #274d72;
  border-color: #9eb8ce;
}

button.secondary:hover {
  box-shadow: 0 8px 15px rgba(39, 77, 114, 0.17);
}

.topology-panel {
  display: grid;
  gap: 10px;
  align-content: start;
  min-width: 0;
}

.topology-controls {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.icon-btn {
  min-width: 34px;
  padding: 7px 10px;
}

.zoom-label {
  min-width: 56px;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: #274a3f;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  padding: 6px 8px;
}

.topology-stage {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 12px;
  height: min(720px, calc(100vh - 285px));
  min-height: 540px;
  background:
    linear-gradient(transparent 95%, rgba(31, 75, 59, 0.045) 95%),
    linear-gradient(90deg, transparent 95%, rgba(31, 75, 59, 0.045) 95%),
    linear-gradient(180deg, #fbfefd, #f2f7f4 52%, #f4f7fa);
  background-size: 32px 32px, 32px 32px, auto;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
  overflow: auto;
  padding: 0;
  scroll-behavior: smooth;
  touch-action: pan-x pan-y;
}

.topology-canvas {
  position: relative;
  width: 1500px;
  height: 760px;
}

.topology-scene {
  position: relative;
  width: 1500px;
  height: 760px;
  transform-origin: top left;
}

#topologySvg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

#topologyNodes {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.topology-node {
  all: unset;
  position: absolute;
  transform: translate(-50%, -50%);
  min-width: 158px;
  max-width: 240px;
  border: 1px solid #94b7a8;
  border-radius: 12px;
  padding: 10px 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  cursor: pointer;
  z-index: 2;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.1;
  color: #1e4c3b;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 22px rgba(20, 55, 41, 0.11);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
  overflow: visible;
}

.topology-node.is-muted {
  opacity: 1;
}

.topology-node:hover {
  transform: translate(-50%, -50%) translateY(-2px);
  box-shadow: 0 18px 30px rgba(20, 55, 41, 0.16);
}

.topology-node.selected {
  border-color: #0f8b6f;
  box-shadow: 0 18px 34px rgba(15, 139, 111, 0.25);
}

.topology-node.working {
  border-color: #e06d11;
  border-width: 2px;
  z-index: 4;
  box-shadow:
    0 0 0 6px rgba(255, 146, 54, 0.3),
    0 16px 34px rgba(224, 109, 17, 0.38);
  animation: pulseNode 0.95s ease-in-out infinite;
}

.topology-node.working .topology-node-icon {
  border-color: #e06d11;
  background: #fff4e6;
}

.topology-node.llm-active {
  border-color: #2d5f8f;
  border-width: 2px;
  z-index: 5;
  box-shadow:
    0 0 0 7px rgba(45, 95, 143, 0.26),
    0 18px 34px rgba(45, 95, 143, 0.36);
}

.topology-node.llm-active .topology-node-icon {
  border-color: #2d5f8f;
  background: #edf4ff;
}

.topology-node-icon {
  width: 27px;
  height: 27px;
  flex: 0 0 auto;
  border-radius: 999px;
  display: grid;
  place-items: center;
  border: 1px solid #b1cfbf;
  background: #f2faf6;
}

.topology-node-icon svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.topology-node-label {
  display: block;
  white-space: nowrap;
}

.topology-node-badge {
  position: absolute;
  top: -10px;
  right: -10px;
  min-width: 26px;
  height: 22px;
  padding: 0 7px;
  border: 1px solid #d7b36d;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  color: #6b4f16;
  background: #fff8e8;
  box-shadow: 0 6px 14px rgba(111, 78, 20, 0.18);
  font-size: 0.64rem;
  font-weight: 800;
  line-height: 1;
}

.topology-node.kind-input {
  border-color: #7f9cbf;
  color: #1a4168;
  background: rgba(242, 248, 253, 0.93);
}

.topology-node.kind-input .topology-node-icon {
  border-color: #adc4dc;
  background: #edf4fb;
}

.topology-node.kind-agent {
  border-color: #8cbda9;
  color: #1d4b3a;
  background: rgba(239, 250, 245, 0.93);
}

.topology-node.kind-agent .topology-node-icon {
  border-color: #afd6c5;
  background: #ecf8f2;
}

.topology-node.kind-tool {
  border-color: #c2ac76;
  color: #614916;
  background: rgba(255, 249, 236, 0.94);
}

.topology-node.kind-tool .topology-node-icon {
  border-color: #dbc99b;
  background: #fff4de;
}

.topology-node.kind-tool-child {
  min-width: 144px;
  max-width: 164px;
  padding: 7px 8px;
  border-radius: 10px;
  font-size: 0.68rem;
  letter-spacing: 0.02em;
  border-color: #ccb98d;
  color: #5f4618;
  background: rgba(255, 250, 239, 0.93);
  box-shadow: 0 8px 17px rgba(104, 80, 37, 0.16);
}

.topology-node.kind-tool-child .topology-node-icon {
  width: 18px;
  height: 18px;
  border-color: #dbc99b;
  background: #fff4de;
}

.topology-node.kind-tool-child .topology-node-icon svg {
  width: 11px;
  height: 11px;
}

.topology-node.kind-tool-child .topology-node-label {
  white-space: normal;
  line-height: 1.15;
}

.topology-node.kind-tool-child.is-idle {
  border-style: dashed;
  opacity: 0.9;
}

.topology-node.kind-tool-child.is-invoked {
  border-style: solid;
  box-shadow: 0 12px 22px rgba(133, 96, 30, 0.2);
}

.topology-node.kind-tool-child.is-triggered-live {
  border-color: #d87b1b;
  border-width: 2px;
  background: #fff4e5;
  box-shadow:
    0 0 0 4px rgba(216, 123, 27, 0.2),
    0 12px 24px rgba(216, 123, 27, 0.28);
}

.topology-node.kind-tool-child.is-triggered-live .topology-node-icon {
  border-color: #d87b1b;
  background: #ffecd3;
}

.topology-node.kind-output {
  border-color: #95a4d2;
  color: #2a3f76;
  background: rgba(244, 247, 255, 0.94);
}

.topology-node.kind-output .topology-node-icon {
  border-color: #bdc7e8;
  background: #eef2ff;
}

.topology-node.kind-memory {
  border-color: #86b4b0;
  color: #1f5956;
  background: rgba(236, 249, 248, 0.94);
}

.topology-node.kind-memory .topology-node-icon {
  border-color: #a9cecb;
  background: #eaf7f6;
}

.topology-node.kind-guardrail {
  border-color: #2f5f94 !important;
  color: #1f3f63 !important;
  background: rgba(236, 245, 255, 0.95) !important;
}

.topology-node.kind-guardrail .topology-node-icon {
  border-color: #7aa3cf !important;
  background: #e9f2ff !important;
}

.topology-edge {
  stroke: #8ca89f;
  stroke-width: 2;
  fill: none;
  marker-end: url(#arrowHead);
  stroke-dasharray: none;
}

.topology-edge.edge-active {
  stroke: #238869;
  animation: none;
}

.topology-edge.edge-muted {
  stroke: #b5c8be;
  opacity: 0.52;
}

.topology-edge.edge-secondary {
  stroke: #93a3b5;
  stroke-width: 1.7;
  stroke-dasharray: 7 7;
}

.topology-edge.edge-guardrail {
  stroke: #4b78a9;
  stroke-dasharray: 5 6;
}

.topology-edge.edge-live {
  stroke: #0f8b6f;
  stroke-width: 2.8;
  opacity: 1;
  animation: flowdash 0.95s linear infinite;
}

.topology-edge.edge-guardrail-live {
  stroke: #2f5f94;
  stroke-width: 3;
  opacity: 1;
  animation: flowdash 0.8s linear infinite;
}

.topology-edge.edge-tool-triggered {
  stroke: #d87b1b;
  stroke-width: 2.4;
  opacity: 1;
}

.topology-edge-label-bg {
  fill: rgba(255, 255, 255, 0.92);
  stroke: rgba(178, 203, 190, 0.82);
  stroke-width: 1;
}

.topology-edge-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  fill: #2f6352;
  text-transform: uppercase;
}

.node-popover {
  position: absolute;
  min-width: 235px;
  max-width: 300px;
  background: #fff;
  border: 1px solid #b9d6c8;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  padding: 12px 12px 10px;
  z-index: 5;
}

.node-popover[hidden] {
  display: none;
}

.popover-close {
  all: unset;
  position: absolute;
  right: 8px;
  top: 7px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  text-align: center;
  font-size: 16px;
  line-height: 22px;
  color: #557267;
  cursor: pointer;
}

.popover-close:hover {
  background: #eef6f2;
}

.popover-eyebrow {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #5d796d;
  margin-bottom: 5px;
}

.node-popover h4 {
  margin: 0 0 7px;
  font-size: 0.9rem;
  color: #17392d;
}

.node-popover p {
  margin: 0;
  font-size: 0.81rem;
  line-height: 1.42;
  color: #365245;
}

.topology-grid {
  display: grid;
  gap: 10px;
}

.topology-grid article {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 10px 11px;
  box-shadow: var(--shadow-sm);
}

.topology-grid h3 {
  margin: 0 0 7px;
  font-size: 0.92rem;
}

.flow-steps {
  margin: 0;
  padding-left: 1.2rem;
  columns: 2;
  column-gap: 28px;
  font-size: 0.8rem;
  line-height: 1.4;
  color: #2a4034;
}

.flow-steps li {
  cursor: pointer;
  break-inside: avoid;
  margin-bottom: 6px;
}

.flow-steps li:hover {
  color: #0f8b6f;
}

.flow-steps li.active {
  color: #0f8b6f;
  font-weight: 700;
}

.flow-steps li.live {
  color: #0f8b6f;
  font-weight: 700;
  background: rgba(15, 139, 111, 0.12);
  border-radius: 8px;
  padding: 3px 6px;
}

pre {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.4;
  color: #24362b;
  white-space: pre-wrap;
  max-height: 210px;
  overflow: auto;
}

@media (max-width: 1260px) {
  .workspace {
    grid-template-columns: 1fr;
  }

  .chat-panel {
    max-height: none;
  }

  .topology-stage {
    height: 560px;
  }
}

@media (max-width: 980px) {
  .layout {
    padding: 14px;
  }

  .panel-head {
    flex-direction: column;
    align-items: stretch;
    gap: 9px;
  }

  .trace-meta {
    justify-items: start;
  }

  .topology-node {
    min-width: 136px;
    font-size: 0.74rem;
  }
}

@media (max-width: 760px) {
  .layout {
    padding: 12px;
  }

  .hero {
    padding: 14px;
  }

  .hero-subtitle {
    font-size: 0.86rem;
  }

  .bubble {
    max-width: 97%;
    font-size: 0.86rem;
  }

  .row {
    flex-wrap: wrap;
  }

  .topology-stage {
    height: 460px;
    padding: 0;
  }

  .topology-edge-label {
    font-size: 11px;
  }

  .flow-steps {
    columns: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@keyframes fadein {
  from {
    opacity: 0;
    transform: translateY(7px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes flowdash {
  from {
    stroke-dashoffset: 26;
  }
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, 18px, 0);
  }
}

@keyframes pulseNode {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.02);
  }
}

/* Dark operations-console redesign */
:root {
  --bg: #050a12;
  --bg-soft: #08111d;
  --panel: #09111d;
  --panel-strong: #0c1624;
  --ink: #e8f0f7;
  --muted: #8997a8;
  --line: #1b2a3b;
  --line-soft: #142234;
  --accent: #31d36d;
  --accent-strong: #22b95d;
  --accent-blue: #458cff;
  --success: #31d36d;
  --warning: #f5a524;
  --danger: #ff5d5d;
  --shadow-sm: 0 12px 36px rgba(0, 0, 0, 0.28);
  --shadow-md: 0 18px 52px rgba(0, 0, 0, 0.34);
  --shadow-lg: 0 28px 72px rgba(0, 0, 0, 0.5);
}

body {
  color: var(--ink);
  background:
    radial-gradient(900px 360px at 46% 8%, rgba(45, 140, 255, 0.12), transparent 68%),
    radial-gradient(760px 320px at 8% 20%, rgba(49, 211, 109, 0.08), transparent 70%),
    linear-gradient(180deg, #050a12 0%, #07101c 58%, #050911 100%);
}

body::before {
  opacity: 0.2;
  background-image:
    linear-gradient(transparent 96%, rgba(121, 148, 178, 0.06) 96%),
    linear-gradient(90deg, transparent 96%, rgba(121, 148, 178, 0.06) 96%);
}

.layout {
  max-width: 1760px;
  min-height: 100vh;
  padding: 10px;
  gap: 10px;
}

.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-color: #152235;
  border-radius: 10px;
  background: rgba(7, 13, 22, 0.86);
  box-shadow: none;
  padding: 16px 18px;
}

.hero-kicker {
  display: none;
}

.hero h1 {
  font-size: 1.28rem;
  font-weight: 700;
}

.hero-subtitle {
  color: #9da9b8;
  font-size: 0.82rem;
  margin-top: 7px;
}

.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #b5c0cf;
  font-size: 0.8rem;
}

.live-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--success);
  box-shadow: 0 0 18px rgba(49, 211, 109, 0.85);
}

.workspace {
  grid-template-columns: minmax(270px, 0.58fr) minmax(820px, 2.35fr);
  gap: 10px;
  min-height: calc(100vh - 92px);
}

.panel {
  border-color: #152235;
  border-radius: 10px;
  background: rgba(8, 15, 27, 0.9);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(12px);
}

.panel::after {
  display: none;
}

.panel-head {
  border-bottom-color: #152235;
}

.panel-head h2,
.topology-panel h2 {
  color: #eef5fb;
  font-size: 0.96rem;
}

.panel-subtitle {
  color: #8794a6;
  font-size: 0.76rem;
}

.chat-panel {
  max-height: calc(100vh - 92px);
}

.tab-nav {
  border-color: #17263a;
  background: #07101b;
}

.tab-btn {
  color: #91a0b3;
  border-radius: 7px;
  padding: 7px 10px;
  font-size: 0.76rem;
}

.tab-btn:hover {
  background: #101c2b;
}

.tab-btn.active {
  border-color: rgba(49, 211, 109, 0.45);
  background: rgba(49, 211, 109, 0.08);
  color: #31d36d;
  box-shadow: none;
}

#chatTab.tab-panel.active {
  grid-template-rows: minmax(300px, 1fr) auto;
}

.chat-stream,
.composer,
.prompt-card,
.topology-grid article {
  border-color: #17263a;
  background: #08121f;
  box-shadow: none;
}

.chat-empty,
.prompt-text {
  color: #8f9dad;
  border-color: #1d2d42;
  background: #0a1523;
}

.message-meta {
  color: #7f8da0;
}

.message.user .bubble {
  color: #ecfff3;
  background: #0d1c27;
  border: 1px solid #203347;
}

.message.assistant .bubble {
  color: #cbd6e3;
  background: #0a1523;
  border-color: #1a2a3d;
}

.composer label {
  color: #9ba8b8;
}

textarea,
select {
  color: #dce6ef;
  border-color: #1b2b40;
  background: #07101b;
}

button {
  border-color: rgba(49, 211, 109, 0.45);
  background: linear-gradient(180deg, #1fc75f, #158e48);
  color: #031109;
  border-radius: 8px;
}

button.secondary {
  color: #c2cfdd;
  border-color: #24354a;
  background: #0a1422;
}

button.red-team-toggle {
  color: #ffb7b7;
  border-color: rgba(255, 93, 93, 0.5);
  background: rgba(72, 14, 20, 0.72);
}

button:hover,
button.secondary:hover {
  box-shadow: 0 0 0 1px rgba(69, 140, 255, 0.16), 0 12px 28px rgba(0, 0, 0, 0.26);
}

.trace-chip,
.guardrail-status,
.zoom-label {
  border-color: #1b2a3d;
  background: #07101b;
  box-shadow: none;
}

.trace-chip span,
.guardrail-status.status-unknown,
.zoom-label {
  color: #8290a1;
}

.trace-chip code {
  color: #8ebdff;
}

.guardrail-status.status-clear {
  color: #31d36d;
  border-color: rgba(49, 211, 109, 0.42);
  background: rgba(49, 211, 109, 0.08);
}

.guardrail-status.status-flagged {
  color: #f5a524;
  border-color: rgba(245, 165, 36, 0.42);
  background: rgba(245, 165, 36, 0.08);
}

.guardrail-status.status-blocked {
  color: #ff7474;
  border-color: rgba(255, 93, 93, 0.42);
  background: rgba(255, 93, 93, 0.08);
}

.run-progress {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  border: 1px solid #142237;
  border-radius: 10px;
  background: linear-gradient(180deg, #0a1422, #08111d);
  overflow: hidden;
}

.run-progress-item {
  position: relative;
  min-height: 70px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #748294;
  border-right: 1px solid #142237;
}

.run-progress-item:last-child {
  border-right: 0;
}

.run-progress-item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 13px;
  top: 50%;
  width: 46px;
  border-top: 1px dashed #3a4657;
  transform: translate(100%, -50%);
  z-index: 2;
}

.run-progress-index {
  width: 38px;
  height: 38px;
  border: 1px solid #2a3a50;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #9aa8b8;
  background: #07101b;
  font-weight: 800;
}

.run-progress-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.run-progress-label {
  color: #d9e4ef;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
}

.run-progress-status {
  color: #7f8da0;
  font-size: 0.74rem;
}

.run-progress-item.status-complete .run-progress-index,
.run-progress-item.status-active .run-progress-index {
  border-color: rgba(49, 211, 109, 0.55);
  color: #33e174;
  box-shadow: 0 0 24px rgba(49, 211, 109, 0.26);
}

.run-progress-item.status-active {
  background: radial-gradient(160px 70px at 20% 50%, rgba(49, 211, 109, 0.16), transparent 72%);
}

.run-progress-item.status-active .run-progress-status,
.run-progress-item.status-complete .run-progress-status {
  color: #31d36d;
}

.run-progress-item.status-blocked .run-progress-index,
.run-progress-item.status-blocked .run-progress-status {
  color: #ff7474;
  border-color: rgba(255, 93, 93, 0.52);
}

.topology-controls {
  justify-content: flex-end;
}

.topology-stage {
  height: min(630px, calc(100vh - 330px));
  min-height: 480px;
  border-color: #142237;
  background:
    radial-gradient(520px 240px at 44% 20%, rgba(69, 140, 255, 0.09), transparent 70%),
    radial-gradient(420px 220px at 14% 48%, rgba(49, 211, 109, 0.09), transparent 72%),
    #07101b;
  box-shadow: inset 0 0 80px rgba(0, 0, 0, 0.28);
}

.topology-node {
  color: #dce8f2;
  border-color: #203149;
  background: #0b1624;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.34);
}

.topology-node-icon {
  color: #9ba9ba;
  border-color: #283b55;
  background: #08111d;
}

.topology-node.kind-input {
  color: #8dffb6;
  border-color: rgba(49, 211, 109, 0.58);
  background: rgba(20, 70, 43, 0.28);
  box-shadow: 0 0 30px rgba(49, 211, 109, 0.2);
}

.topology-node.kind-input .topology-node-icon {
  color: #31d36d;
  border-color: rgba(49, 211, 109, 0.46);
  background: rgba(49, 211, 109, 0.09);
}

.topology-node.kind-agent {
  color: #cfe3ff;
  border-color: rgba(126, 91, 255, 0.56);
  background: rgba(45, 31, 91, 0.32);
}

.topology-node.kind-agent .topology-node-icon {
  color: #9d84ff;
  border-color: rgba(126, 91, 255, 0.46);
  background: rgba(126, 91, 255, 0.1);
}

.topology-node.kind-tool,
.topology-node.kind-tool-child {
  color: #f5d49a;
  border-color: rgba(191, 126, 45, 0.62);
  background: rgba(69, 42, 17, 0.48);
}

.topology-node.kind-tool .topology-node-icon,
.topology-node.kind-tool-child .topology-node-icon {
  color: #e2a64a;
  border-color: rgba(201, 132, 43, 0.56);
  background: rgba(216, 123, 27, 0.12);
}

.topology-node.kind-memory {
  color: #d1dee9;
  border-color: #28384c;
  background: #0a1422;
}

.topology-node.kind-output {
  color: #dbe5ef;
  border-color: #2c3b4d;
  background: #0a1422;
}

.topology-node.kind-guardrail {
  color: #94c4ff !important;
  border-color: rgba(69, 140, 255, 0.48) !important;
  background: rgba(25, 58, 102, 0.32) !important;
}

.topology-node.kind-model {
  color: #d7e8ff;
  border-color: rgba(95, 170, 255, 0.58);
  background:
    radial-gradient(130px 70px at 22% 30%, rgba(69, 140, 255, 0.2), transparent 76%),
    linear-gradient(180deg, rgba(12, 43, 83, 0.94), rgba(6, 21, 43, 0.98));
}

.topology-node.kind-model .topology-node-icon {
  color: #9fcbff;
  border-color: rgba(107, 177, 255, 0.58);
  background: rgba(5, 18, 38, 0.82);
}

.topology-node.kind-red-team {
  color: #ffe7e7;
  border-color: rgba(255, 93, 93, 0.78);
  background:
    radial-gradient(140px 70px at 24% 28%, rgba(255, 93, 93, 0.22), transparent 74%),
    linear-gradient(180deg, rgba(91, 18, 27, 0.98), rgba(42, 8, 15, 0.99));
  box-shadow:
    0 0 0 1px rgba(255, 93, 93, 0.32),
    0 0 34px rgba(255, 93, 93, 0.25),
    0 18px 42px rgba(0, 0, 0, 0.42);
}

.topology-node.kind-red-team .topology-node-icon {
  color: #ff9d9d;
  border-color: rgba(255, 125, 125, 0.66);
  background: rgba(36, 5, 11, 0.8);
}

.topology-node.selected,
.topology-node.working,
.topology-node.llm-active {
  box-shadow: 0 0 0 1px rgba(69, 140, 255, 0.28), 0 0 38px rgba(69, 140, 255, 0.25);
}

.topology-edge {
  stroke: #3a4657;
}

.topology-edge.edge-active,
.topology-edge.edge-live {
  stroke: #31d36d;
}

.topology-edge.edge-secondary,
.topology-edge.edge-muted {
  stroke: #4b5768;
}

.topology-edge.edge-guardrail,
.topology-edge.edge-guardrail-live {
  stroke: #458cff;
}

.topology-edge.edge-red-team {
  stroke: #ff5d5d;
  stroke-width: 2.2;
  stroke-dasharray: 8 6;
}

.topology-edge-label-bg {
  fill: #07101b;
  stroke: #1d2d42;
}

.topology-edge-label {
  fill: #93a6ba;
}

.topology-node-badge {
  color: #eaf2ff;
  border-color: rgba(69, 140, 255, 0.58);
  background: #12305a;
}

.topology-node.guardrail-blocked {
  border-color: rgba(255, 93, 93, 0.82) !important;
  box-shadow:
    0 0 0 1px rgba(255, 93, 93, 0.34),
    0 0 34px rgba(255, 93, 93, 0.26),
    0 18px 42px rgba(0, 0, 0, 0.42) !important;
}

.topology-guardrail-shield {
  position: absolute;
  top: -13px;
  right: -13px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(180deg, #ff6666, #c91f35);
  clip-path: polygon(50% 0%, 88% 14%, 82% 68%, 50% 100%, 18% 68%, 12% 14%);
  box-shadow: 0 0 22px rgba(255, 93, 93, 0.58);
  font-size: 0.84rem;
  font-weight: 900;
  line-height: 1;
  z-index: 8;
}

.node-popover {
  color: #dce6ef;
  border-color: #203149;
  background: #0a1422;
}

.popover-eyebrow,
.node-popover p {
  color: #91a0b3;
}

.node-popover h4 {
  color: #edf5fb;
}

.flow-steps {
  columns: 1;
  padding-left: 0;
  list-style: none;
  color: #8f9dad;
}

.flow-steps li {
  position: relative;
  margin: 0;
  padding: 9px 8px 9px 30px;
  border-top: 1px solid #132136;
  font-size: 0.76rem;
}

.flow-steps li::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 15px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #3f4b5c;
}

.flow-steps li.active::before,
.flow-steps li.live::before {
  background: #31d36d;
  box-shadow: 0 0 14px rgba(49, 211, 109, 0.7);
}

.flow-steps li.active,
.flow-steps li.live,
.flow-steps li:hover {
  color: #dce8f2;
  background: rgba(69, 140, 255, 0.06);
}

@media (max-width: 1260px) {
  .workspace {
    grid-template-columns: 1fr;
  }

  .chat-panel {
    max-height: none;
    order: 2;
  }

  .topology-panel {
    order: 1;
  }

  .run-progress {
    grid-template-columns: 1fr;
  }

  .run-progress-item {
    min-height: 54px;
    border-right: 0;
    border-bottom: 1px solid #142237;
  }

  .run-progress-item::after {
    display: none;
  }
}

/* Fit-to-viewport compact mode */
html,
body {
  height: 100%;
  overflow: hidden;
}

.layout {
  height: 100vh;
  grid-template-rows: auto minmax(0, 1fr);
  padding: 8px;
  gap: 8px;
  overflow: hidden;
}

.hero {
  min-height: 58px;
  padding: 10px 14px;
}

.hero h1 {
  font-size: 1.06rem;
}

.hero-subtitle {
  margin-top: 4px;
  font-size: 0.74rem;
}

.workspace {
  min-height: 0;
  height: 100%;
  gap: 8px;
  overflow: hidden;
}

.panel {
  min-height: 0;
  padding: 10px;
  overflow: hidden;
}

.panel-head {
  margin-bottom: 8px;
  padding-bottom: 8px;
}

.panel-head h2,
.topology-panel h2 {
  font-size: 0.88rem;
}

.panel-subtitle {
  margin-top: 4px;
  font-size: 0.7rem;
}

.chat-panel {
  height: 100%;
  max-height: none;
}

#chatTab.tab-panel.active {
  height: calc(100% - 48px);
  grid-template-rows: minmax(0, 1fr) auto;
}

.tab-nav {
  margin-bottom: 8px;
  padding: 3px;
}

.tab-btn {
  padding: 6px 9px;
  font-size: 0.7rem;
}

.chat-stream {
  min-height: 0;
  padding: 8px;
  gap: 8px;
}

.message-meta {
  font-size: 0.58rem;
}

.bubble {
  padding: 8px 9px;
  font-size: 0.75rem;
  line-height: 1.38;
}

.composer {
  padding: 8px;
  gap: 6px;
}

.composer label {
  font-size: 0.62rem;
}

textarea {
  min-height: 70px;
  max-height: 86px;
  padding: 8px 9px;
  font-size: 0.74rem;
}

button {
  padding: 7px 10px;
  font-size: 0.74rem;
}

.topology-panel {
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr) minmax(96px, 0.22fr);
  gap: 8px;
}

.trace-meta {
  gap: 5px;
}

.trace-chip,
.guardrail-status,
.zoom-label {
  padding: 4px 8px;
}

.trace-chip span {
  font-size: 0.54rem;
}

.trace-chip code,
.guardrail-status {
  font-size: 0.62rem;
}

.run-progress {
  min-height: 50px;
}

.run-progress-item {
  min-height: 50px;
  padding: 8px 10px;
  gap: 8px;
}

.run-progress-index {
  width: 28px;
  height: 28px;
  font-size: 0.7rem;
}

.run-progress-label,
.run-progress-status {
  font-size: 0.62rem;
}

.topology-controls {
  gap: 6px;
}

.icon-btn {
  min-width: 28px;
  padding: 5px 8px;
}

.topology-stage {
  height: auto;
  min-height: 0;
}

.topology-canvas {
  width: 1500px;
  height: 760px;
}

.topology-node {
  min-width: 132px;
  max-width: 190px;
  padding: 8px 10px;
  gap: 6px;
  font-size: 0.72rem;
}

.topology-node-icon {
  width: 23px;
  height: 23px;
}

.topology-node-icon svg {
  width: 14px;
  height: 14px;
}

.topology-node.kind-tool-child {
  min-width: 126px;
  max-width: 144px;
  padding: 6px 7px;
  font-size: 0.6rem;
}

.topology-node.kind-tool-child .topology-node-icon {
  width: 16px;
  height: 16px;
}

.topology-edge-label {
  font-size: 10px;
}

.topology-node-badge {
  top: -8px;
  right: -8px;
  min-width: 22px;
  height: 18px;
  font-size: 0.56rem;
}

.topology-guardrail-shield {
  top: -11px;
  right: -11px;
  width: 25px;
  height: 25px;
  font-size: 0.72rem;
}

.topology-grid {
  min-height: 0;
}

.topology-grid article {
  min-height: 0;
  padding: 8px 9px;
  overflow: hidden;
}

.topology-grid h3 {
  margin-bottom: 4px;
  font-size: 0.78rem;
}

.flow-steps {
  max-height: 100%;
  overflow: auto;
}

.flow-steps li {
  padding: 6px 8px 6px 26px;
  font-size: 0.68rem;
  line-height: 1.3;
}

.flow-steps li::before {
  left: 9px;
  top: 11px;
  width: 7px;
  height: 7px;
}

/* Dense chat rail */
.chat-panel {
  padding: 10px;
}

.chat-panel .panel-head {
  margin-bottom: 6px;
  padding-bottom: 6px;
}

.chat-panel .panel-subtitle {
  margin-top: 2px;
}

#chatTab.tab-panel.active {
  height: calc(100% - 42px);
  gap: 6px;
}

.chat-stream {
  align-content: end;
  gap: 6px;
  padding: 8px;
}

.message {
  gap: 3px;
}

.message + .message {
  margin-top: 2px;
}

.message-meta {
  padding: 0 3px;
  font-size: 0.54rem;
  line-height: 1;
  letter-spacing: 0.08em;
}

.bubble {
  max-width: 92%;
  padding: 7px 9px;
  border-radius: 10px;
  font-size: 0.72rem;
  line-height: 1.28;
}

.message.user .bubble {
  border-top-right-radius: 4px;
}

.message.assistant .bubble {
  border-top-left-radius: 4px;
}

.composer {
  padding: 7px;
  gap: 5px;
}

.composer label {
  font-size: 0.56rem;
  line-height: 1;
}

.composer .row {
  gap: 6px;
}

textarea {
  min-height: 52px;
  max-height: 64px;
  padding: 7px 8px;
  border-radius: 8px;
  font-size: 0.7rem;
  line-height: 1.2;
}

.composer button {
  padding: 6px 9px;
  font-size: 0.7rem;
  line-height: 1.1;
}

#promptsTab.tab-panel.active {
  height: calc(100% - 42px);
  min-height: 0;
  overflow: auto;
  padding-right: 3px;
}

.prompt-library {
  gap: 7px;
}

.prompt-card {
  padding: 8px;
  gap: 6px;
}

.prompt-card h4 {
  font-size: 0.78rem;
}

.prompt-card p,
.prompt-hint,
.prompt-text,
.prompt-option {
  color: #8f9dad;
  font-size: 0.66rem;
  line-height: 1.28;
}

.prompt-hint,
.prompt-text {
  padding: 6px 7px;
}

.prompt-text {
  max-height: 74px;
  overflow: auto;
}

.prompt-actions {
  gap: 6px;
}

.prompt-actions button {
  padding: 6px 8px;
  font-size: 0.68rem;
}

/* Keep active tool nodes readable on the dark canvas. */
.topology-node.kind-tool-child.is-invoked,
.topology-node.kind-tool-child.is-triggered-live,
.topology-node.kind-tool-child.working {
  color: #fff4e3;
  border-color: rgba(207, 113, 32, 0.82);
  background: linear-gradient(180deg, rgba(86, 43, 12, 0.98), rgba(39, 21, 8, 0.99));
  box-shadow:
    0 0 0 1px rgba(207, 113, 32, 0.28),
    0 0 24px rgba(216, 123, 27, 0.24),
    0 14px 30px rgba(0, 0, 0, 0.4);
}

.topology-node.kind-tool-child.is-triggered-live,
.topology-node.kind-tool-child.working {
  border-width: 2px;
  background: linear-gradient(180deg, rgba(102, 50, 13, 0.99), rgba(42, 21, 7, 1));
}

.topology-node.kind-tool-child.is-invoked .topology-node-icon,
.topology-node.kind-tool-child.is-triggered-live .topology-node-icon,
.topology-node.kind-tool-child.working .topology-node-icon {
  color: #ffb866;
  border-color: rgba(230, 137, 47, 0.62);
  background: rgba(30, 15, 5, 0.9);
}

/* Keep long assistant outputs reachable inside the fixed-height chat rail. */
#chatTab.tab-panel.active {
  min-height: 0;
}

.chat-stream {
  min-height: 0;
  overflow-y: scroll;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  align-content: start;
}

.bubble {
  overflow-wrap: anywhere;
}

@media (max-width: 1260px) {
  html,
  body {
    overflow: auto;
  }

  .layout {
    height: auto;
    min-height: 100vh;
    overflow: visible;
  }

  .workspace {
    height: auto;
    overflow: visible;
  }
}
