/* Okto Nexus interactive product demo.
   This stylesheet intentionally mirrors the current dashboard's light Pulse shell. */
.nexus-board-embed {
  --nb-accent: #6857e5;
  --nb-accent-soft: #ede9fe;
  --nb-accent-ink: #5b3fd0;
  --nb-surface-0: #ffffff;
  --nb-surface-1: #f8fafc;
  --nb-surface-2: #f1f5f9;
  --nb-surface-3: #e2e8f0;
  --nb-line: #dbe3ee;
  --nb-ink: #0f172a;
  --nb-copy: #334155;
  --nb-muted: #64748b;
  --nb-faint: #94a3b8;
  --nb-green: #10b981;
  --nb-amber: #f59e0b;
  --nb-red: #ef4444;
  --nb-sky: #0ea5e9;
  position: relative;
  height: min(790px, 82vh);
  min-height: 620px;
  overflow: hidden;
  color: var(--nb-copy);
  background: var(--nb-surface-1);
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  isolation: isolate;
}

.nexus-board-embed *,
.nexus-board-embed *::before,
.nexus-board-embed *::after { box-sizing: border-box; }

.nexus-board-embed button,
.nexus-board-embed input,
.nexus-board-embed select,
.nexus-board-embed textarea { font: inherit; }

.nb-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.nb-topbar {
  height: 49px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  color: var(--nb-ink);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--nb-line);
  position: relative;
  z-index: 30;
}

.nb-hamburger,
.nb-icon-button {
  display: grid;
  place-items: center;
  min-width: 30px;
  height: 30px;
  padding: 0 8px;
  border: 1px solid var(--nb-line);
  border-radius: 8px;
  color: var(--nb-muted);
  background: var(--nb-surface-1);
  cursor: pointer;
  transition: border-color 150ms ease, color 150ms ease, background 150ms ease, transform 150ms ease;
}

.nb-hamburger { border-color: transparent; background: transparent; font-size: 17px; }
.nb-hamburger:hover,
.nb-icon-button:hover { color: var(--nb-accent-ink); border-color: #c4b5fd; background: #f5f3ff; }
.nb-icon-button:active { transform: translateY(1px); }
.nb-icon-button[data-nb-menu] { font-size: 10px; letter-spacing: -1px; }
.nb-icon-button.is-spinning { animation: nb-spin 0.6s ease; }

.nb-topbar__brand {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--nb-ink);
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
}

.nb-topbar__brand img { width: 18px; height: 18px; }
.nb-topbar__crumb { color: var(--nb-muted); font-size: 13px; white-space: nowrap; }
.nb-topbar__actions { margin-left: auto; display: flex; align-items: center; gap: 8px; min-width: 0; }
.nb-topbar__select,
.nb-input,
.nb-select {
  min-height: 31px;
  padding: 5px 30px 5px 10px;
  color: var(--nb-copy);
  background: var(--nb-surface-0);
  border: 1px solid var(--nb-line);
  border-radius: 8px;
  outline: none;
  font-size: 11px;
}
.nb-topbar__select { width: 190px; }
.nb-topbar__select:focus,
.nb-input:focus,
.nb-select:focus,
.nb-textarea:focus { border-color: #a78bfa; box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.13); }
.nb-topbar__live,
.nb-live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 7px;
  color: #047857;
  background: #d1fae5;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.nb-topbar__live-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--nb-green); box-shadow: 0 0 0 3px rgba(16,185,129,.13); }

.nb-shell { display: flex; height: calc(100% - 49px); min-height: 0; }
.nb-sidebar {
  width: 214px;
  flex: 0 0 214px;
  padding: 14px 9px;
  overflow-y: auto;
  color: var(--nb-copy);
  background: rgba(248, 250, 252, 0.96);
  border-right: 1px solid var(--nb-line);
  transition: width 220ms ease, flex-basis 220ms ease, transform 220ms ease;
  scrollbar-width: thin;
}
.nb-sidebar.is-collapsed { width: 0; flex-basis: 0; padding-inline: 0; overflow: hidden; border-right: 0; }
.nb-sidebar__label { display: block; margin: 2px 10px 7px; color: var(--nb-faint); font-size: 10px; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; }
.nb-tab {
  width: 100%;
  min-height: 34px;
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 2px 0;
  padding: 7px 10px;
  border: 0;
  border-radius: 8px;
  color: var(--nb-copy);
  background: transparent;
  cursor: pointer;
  text-align: left;
  font-size: 12px;
  transition: background 140ms ease, color 140ms ease;
}
.nb-tab:hover { color: #0369a1; background: #e0f2fe; }
.nb-tab.is-active { color: #0369a1; background: #dbeafe; }
.nb-tab__icon { width: 17px; flex: 0 0 17px; color: currentColor; text-align: center; font-size: 15px; line-height: 1; }
.nb-tab__badge { min-width: 18px; margin-left: auto; padding: 2px 5px; border-radius: 999px; color: #fff; background: var(--nb-red); font-size: 9px; font-weight: 700; text-align: center; }

.nb-main { flex: 1; min-width: 0; min-height: 0; overflow: hidden; position: relative; background: #f7f9fc; }
.nb-panel { width: 100%; height: 100%; min-height: 0; overflow: auto; position: relative; scrollbar-width: thin; scrollbar-color: #cbd5e1 transparent; }
.nb-page { min-height: 100%; padding: 22px 24px 28px; animation: nb-fade 180ms ease; }
.nb-page--flush { padding: 0; overflow: hidden; }
.nb-page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.nb-page-head h2 { margin: 0; color: var(--nb-ink); font-size: 18px; font-weight: 600; letter-spacing: -0.02em; }
.nb-page-head p { max-width: 660px; margin: 4px 0 0; color: var(--nb-muted); font-size: 11px; line-height: 1.55; }
.nb-page-head__actions { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }

.nb-card,
.nb-panel-card {
  background: var(--nb-surface-0);
  border: 1px solid var(--nb-line);
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.nb-panel-card { padding: 15px; }
.nb-section-title { margin: 0 0 11px; color: var(--nb-ink); font-size: 13px; font-weight: 600; }
.nb-muted { color: var(--nb-muted); }
.nb-mono { font-family: "IBM Plex Mono", ui-monospace, monospace; }
.nb-btn {
  min-height: 29px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 5px 10px;
  color: var(--nb-copy);
  background: var(--nb-surface-1);
  border: 1px solid var(--nb-line);
  border-radius: 8px;
  cursor: pointer;
  font-size: 10px;
  font-weight: 500;
  transition: border-color 140ms ease, background 140ms ease, color 140ms ease;
}
.nb-btn:hover { border-color: #a5b4fc; color: var(--nb-accent-ink); background: #f5f3ff; }
.nb-btn--primary { color: #fff; border-color: #059669; background: #059669; }
.nb-btn--primary:hover { color: #fff; border-color: #047857; background: #047857; }
.nb-btn--danger { color: #dc2626; border-color: #fecaca; background: #fff; }
.nb-btn--danger:hover { color: #b91c1c; border-color: #f87171; background: #fff1f2; }
.nb-btn[disabled] { opacity: .48; cursor: not-allowed; }
.nb-chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 7px; border-radius: 999px; color: #475569; background: #e2e8f0; font-size: 8px; font-weight: 700; letter-spacing: .045em; text-transform: uppercase; white-space: nowrap; }
.nb-chip[data-tone="sky"] { color: #0369a1; background: #e0f2fe; }
.nb-chip[data-tone="violet"] { color: #6d28d9; background: #ede9fe; }
.nb-chip[data-tone="green"] { color: #047857; background: #d1fae5; }
.nb-chip[data-tone="amber"] { color: #b45309; background: #fef3c7; }
.nb-chip[data-tone="red"] { color: #b91c1c; background: #fee2e2; }
.nb-empty { min-height: 170px; display: grid; place-content: center; gap: 4px; padding: 30px; color: var(--nb-faint); text-align: center; font-size: 11px; }
.nb-empty strong { color: var(--nb-copy); font-size: 13px; }

/* Graph */
.nb-graph-page { height: 100%; min-height: 0; display: flex; overflow: hidden; background: #f8fafc; }
.nb-graph-stage { flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; position: relative; }
.nb-graph-toolbar { height: 43px; flex: 0 0 43px; display: flex; align-items: center; gap: 8px; padding: 0 14px; background: rgba(255,255,255,.94); border-bottom: 1px solid var(--nb-line); }
.nb-segmented { display: inline-flex; align-items: center; padding: 2px; border: 1px solid var(--nb-line); border-radius: 8px; background: var(--nb-surface-1); }
.nb-segmented button { padding: 4px 8px; border: 0; border-radius: 6px; color: var(--nb-muted); background: transparent; cursor: pointer; font-size: 9px; }
.nb-segmented button.is-active { color: var(--nb-accent-ink); background: #fff; box-shadow: 0 1px 3px rgba(15,23,42,.1); }
.nb-graph-toolbar__hint { margin-left: auto; color: var(--nb-faint); font-size: 9px; }
.nb-view-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  color: #94a3b8;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 9px;
  font-weight: 500;
}
.nb-view-switch i {
  display: block;
  width: 30px;
  height: 16px;
  padding: 2px;
  background: #020617;
  border: 1px solid #475569;
  border-radius: 999px;
  transition: background 140ms ease, border-color 140ms ease;
}
.nb-view-switch i b {
  display: block;
  width: 10px;
  height: 10px;
  background: #64748b;
  border-radius: 50%;
  transition: background 140ms ease, transform 140ms ease;
}
.nb-view-switch:hover,
.nb-view-switch.is-active { color: #e0f2fe; }
.nb-view-switch:hover i { border-color: #0ea5e9; }
.nb-view-switch.is-active i { background: #0369a1; border-color: #0ea5e9; }
.nb-view-switch.is-active i b { background: #fff; transform: translateX(14px); }
.nb-graph-canvas { flex: 1; min-height: 0; position: relative; overflow: hidden; background-color: #f8fafc; background-image: radial-gradient(circle at center, rgba(148,163,184,.22) 1px, transparent 1px); background-size: 26px 26px; }
.nb-graph-routes { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: auto; overflow: visible; }
.nb-graph-edge { fill: none; stroke: #8b95a5; stroke-width: var(--edge-width, 2); opacity: .9; pointer-events: none; vector-effect: non-scaling-stroke; }
.nb-graph-edge[data-kind="in-flight"] { stroke: #0ea5e9; }
.nb-graph-edge[data-kind="inbox"] { stroke: #7dd3fc; stroke-dasharray: 10 8; }
.nb-graph-edge[data-kind="completed"] { stroke: var(--edge-color, #8b95a5); }
.nb-graph-edge--handoff { stroke: #ec4899; stroke-width: 2; }
.nb-graph-edge.is-selected { filter: drop-shadow(0 0 4px currentColor); opacity: 1; }
.nb-graph-edge-label { fill: #38bdf8; font: 700 12px "IBM Plex Sans", sans-serif; text-anchor: middle; paint-order: stroke; stroke: #020617; stroke-width: 4px; stroke-linejoin: round; pointer-events: none; }
.nb-graph-edge-hit { fill: none; stroke: transparent; stroke-width: 16; pointer-events: stroke; cursor: pointer; vector-effect: non-scaling-stroke; }
.nb-graph-agent {
  --node: #38bdf8;
  position: absolute;
  width: 210px;
  padding: 0;
  overflow: hidden;
  color: var(--nb-copy);
  background: rgba(255,255,255,.97);
  border: 2px solid #cbd5e1;
  border-radius: 14px;
  box-shadow: 0 3px 10px rgba(15,23,42,.11);
  cursor: pointer;
  text-align: left;
  transform: translate(-50%, -50%);
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}
.nb-graph-agent:hover,
.nb-graph-agent.is-selected { border-color: var(--nb-accent); box-shadow: 0 0 0 3px rgba(104,87,229,.12), 0 7px 20px rgba(15,23,42,.14); transform: translate(-50%, -50%) scale(1.015); }
.nb-graph-agent__head { padding: 8px 10px 7px; color: #10233e; background: linear-gradient(90deg, color-mix(in srgb, var(--node) 78%, white), color-mix(in srgb, var(--node) 36%, white)); border-bottom: 1px solid rgba(15,23,42,.12); }
.nb-graph-agent__title { display: flex; align-items: center; gap: 7px; min-width: 0; font-size: 12px; font-weight: 700; }
.nb-presence { width: 9px; height: 9px; flex: 0 0 9px; border: 1px solid rgba(255,255,255,.9); border-radius: 50%; background: var(--nb-green); box-shadow: 0 0 0 1px rgba(15,23,42,.14); }
.nb-presence[data-presence="stale"] { background: var(--nb-amber); }
.nb-presence[data-presence="offline"] { background: var(--nb-faint); }
.nb-graph-agent__role { margin: 2px 0 0 16px; font-size: 10px; opacity: .82; }
.nb-graph-agent__body { padding: 7px 10px 8px; }
.nb-graph-agent__action { margin-bottom: 6px; color: var(--nb-muted); font-size: 9px; font-style: italic; }
.nb-graph-agent__badges,
.nb-chip-row { display: flex; gap: 5px; flex-wrap: wrap; align-items: center; }
.nb-graph-agent__badge { display: inline-flex; align-items: center; gap: 3px; padding: 2px 5px; border-radius: 5px; color: #0369a1; background: #e0f2fe; font-size: 9px; font-weight: 600; }
.nb-graph-agent__badge[data-kind="handoff"] { color: #a21caf; background: #fae8ff; }
.nb-graph-agent__tag { max-width: 95px; overflow: hidden; padding: 2px 5px; border: 1px solid var(--nb-line); border-radius: 4px; color: var(--nb-muted); background: #fff; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.nb-graph-simple-agent { position:absolute; display:grid; justify-items:center; gap:5px; padding:6px; transform:translate(-50%,-50%); color:#e2e8f0; border:0; background:transparent; cursor:pointer; }
.nb-graph-simple-agent__circle { width:var(--simple-size); height:var(--simple-size); display:block; position:relative; border:2px solid color-mix(in srgb,var(--node) 78%,white); border-radius:50%; background:var(--node); box-shadow:0 3px 12px rgba(0,0,0,.35); transition:box-shadow 140ms ease,transform 140ms ease; }
.nb-graph-simple-agent__circle .nb-presence { position:absolute; left:-2px; top:-2px; width:11px; height:11px; }
.nb-graph-simple-agent__label { font-size:10px; font-weight:600; text-shadow:0 1px 3px #020617; }
.nb-graph-simple-agent:hover .nb-graph-simple-agent__circle,
.nb-graph-simple-agent.is-selected .nb-graph-simple-agent__circle { transform:scale(1.06); box-shadow:0 0 0 3px rgba(14,165,233,.24),0 5px 16px rgba(0,0,0,.45); }
.nb-graph-handoff { position: absolute; display: flex; align-items: center; gap: 7px; min-width: 0; padding: 5px; transform: translate(-11px,-50%); color: #f9a8d4; border: 0; background: transparent; cursor: pointer; text-align: left; white-space: nowrap; }
.nb-graph-handoff__square { width: 22px; height: 22px; flex: 0 0 22px; background: #ec4899; box-shadow: 0 0 14px rgba(236,72,153,.18); }
.nb-graph-handoff__label { font-size: 11px; font-weight: 700; }
.nb-graph-handoff:hover,
.nb-graph-handoff.is-selected { color: #fce7f3; filter: drop-shadow(0 0 5px rgba(236,72,153,.65)); }
.nb-graph-legend { position: absolute; left: 14px; bottom: 14px; width: 255px; padding: 12px; background: rgba(255,255,255,.92); border: 1px solid var(--nb-line); border-radius: 13px; box-shadow: 0 5px 18px rgba(15,23,42,.08); }
.nb-graph-legend h4 { margin: 0 0 7px; color: var(--nb-ink); font-size: 11px; }
.nb-graph-legend p { margin: 4px 0; color: var(--nb-muted); font-size: 9px; }
.nb-graph-legend button { float: right; border: 0; color: var(--nb-faint); background: transparent; cursor: pointer; }

.nb-side-panel { width: clamp(320px, 39%, 470px); flex: 0 0 clamp(320px, 39%, 470px); min-width: 0; display: flex; flex-direction: column; padding: 13px; overflow: hidden; background: #fff; border-left: 1px solid var(--nb-line); box-shadow: -12px 0 30px rgba(15,23,42,.06); animation: nb-slide-left 180ms ease; position: relative; }
.nb-side-panel::before { content: ""; position: absolute; left: -2px; top: 45%; width: 4px; height: 46px; border-radius: 4px; background: #cbd5e1; }
.nb-side-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.nb-side-head h3 { margin: 0; color: var(--nb-ink); font-size: 13px; line-height: 1.3; }
.nb-side-head p { margin: 3px 0 0; color: var(--nb-muted); font-size: 9px; }
.nb-side-head__actions { display: flex; align-items: center; gap: 5px; }
.nb-side-section { padding: 9px 0; border-top: 1px solid var(--nb-line); }
.nb-side-label { margin: 0 0 6px; color: var(--nb-copy); font-size: 10px; font-weight: 600; }
.nb-lanes { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 5px; }
.nb-lane { padding: 6px 3px; color: var(--nb-muted); background: var(--nb-surface-1); border-radius: 7px; text-align: center; font-size: 8px; }
.nb-lane b { display: block; margin-top: 2px; color: var(--nb-accent-ink); font-size: 11px; }
.nb-conversations { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.nb-peer-tabs { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 7px; }
.nb-peer-tab { max-width: 132px; overflow: hidden; padding: 3px 5px; border: 1px solid var(--nb-line); border-radius: 6px; color: var(--nb-muted); background: #fff; cursor: pointer; font-size: 7.5px; line-height: 1.15; text-overflow: ellipsis; white-space: nowrap; }
.nb-peer-tab.is-active { color: var(--nb-accent-ink); border-color: #c4b5fd; background: #f5f3ff; }
.nb-peer-tab span { margin-left: 3px; opacity: .65; }
.nb-message-list { flex: 1; min-height: 0; overflow-y: auto; padding-right: 3px; scrollbar-width: thin; }
.nb-message { width: 92%; margin-bottom: 7px; padding: 7px 9px; border: 1px solid var(--nb-line); border-radius: 10px 10px 10px 3px; color: var(--nb-copy); background: var(--nb-surface-1); font-size: 9px; line-height: 1.45; }
.nb-message.is-out { margin-left: auto; border-radius: 10px 10px 3px 10px; border-color: #c4b5fd; background: #f5f3ff; }
.nb-message__meta { display: flex; align-items: center; gap: 5px; margin-bottom: 3px; color: var(--nb-faint); font-size: 7.5px; }
.nb-message__meta b { color: var(--nb-copy); font-size: 8px; }
.nb-message__subject { margin-bottom: 2px; color: var(--nb-ink); font-weight: 600; }
.nb-message__ticks { margin-left: auto; color: #0284c7; letter-spacing: -1px; }
.nb-message pre { margin: 5px 0 0; padding: 6px; overflow: auto; color: #c4b5fd; background: #111827; border-radius: 6px; font: 8px/1.4 "IBM Plex Mono", monospace; white-space: pre-wrap; }

.nb-structured { margin-bottom: 7px; overflow: hidden; border: 1px solid var(--st-border, #bfdbfe); border-radius: 11px; background: var(--st-bg, #eff6ff); box-shadow: 0 1px 2px rgba(15,23,42,.04); }
.nb-structured[data-tone="success"] { --st-border:#a7f3d0; --st-bg:#ecfdf5; --st-ink:#047857; }
.nb-structured[data-tone="warning"] { --st-border:#fde68a; --st-bg:#fffbeb; --st-ink:#b45309; }
.nb-structured[data-tone="danger"] { --st-border:#fecaca; --st-bg:#fff1f2; --st-ink:#be123c; }
.nb-structured[data-tone="info"] { --st-border:#ddd6fe; --st-bg:#f5f3ff; --st-ink:#6d28d9; }
.nb-structured[data-tone="receipt"] { --st-border:#bae6fd; --st-bg:#f0f9ff; --st-ink:#0369a1; }
.nb-structured__head { display: flex; align-items: flex-start; gap: 7px; padding: 7px 8px; border-bottom: 1px solid var(--st-border); }
.nb-structured__icon { width: 23px; height: 23px; flex: 0 0 23px; display: grid; place-items: center; border-radius: 7px; color: var(--st-ink, #475569); background: rgba(255,255,255,.7); font-size: 12px; }
.nb-structured__kind { color: var(--st-ink, #475569); font-size: 7.5px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.nb-structured__subject { margin-top: 2px; color: var(--nb-ink); font-size: 9px; font-weight: 600; }
.nb-structured__body { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; padding: 8px; }
.nb-structured__detail { min-width: 0; }
.nb-structured__detail[data-wide="true"] { grid-column: 1 / -1; padding: 6px; border: 1px solid rgba(15,23,42,.06); border-radius: 6px; background: rgba(255,255,255,.65); }
.nb-structured__detail small { display: block; margin-bottom: 2px; color: var(--nb-faint); font-size: 6.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.nb-structured__detail span,
.nb-structured__detail code { display: block; overflow-wrap: anywhere; color: var(--nb-copy); font-size: 8px; line-height: 1.4; }

/* Handoffs */
.nb-handoff-page { height: 100%; min-height: 0; display: flex; flex-direction: column; padding: 16px 18px; overflow: hidden; }
.nb-filterbar { flex: 0 0 auto; display: flex; align-items: flex-end; gap: 7px; flex-wrap: wrap; margin-bottom: 12px; padding: 10px; background: #fff; border: 1px solid var(--nb-line); border-radius: 12px; }
.nb-filterbar label { display: grid; gap: 3px; color: var(--nb-faint); font-size: 7px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.nb-filterbar .nb-input,
.nb-filterbar .nb-select { max-width: 160px; min-height: 28px; padding-top: 4px; padding-bottom: 4px; font-size: 9px; }
.nb-filterbar__count { margin-left: auto; align-self: center; color: var(--nb-muted); font-size: 9px; }
.nb-kanban-scroll { flex: 1; min-height: 0; overflow: auto; padding-bottom: 8px; }
.nb-kanban { min-width: 1490px; display: grid; grid-template-columns: repeat(6, 238px); gap: 12px; align-items: start; }
.nb-kanban-col { min-height: 220px; padding: 10px; background: #f1f5f9; border-top: 3px solid var(--col, #38bdf8); border-radius: 13px; }
.nb-kanban-col__head { display: flex; align-items: center; gap: 6px; margin-bottom: 9px; color: var(--nb-copy); font-size: 10px; font-weight: 600; text-transform: uppercase; }
.nb-kanban-col__count { min-width: 18px; padding: 2px 5px; color: var(--nb-muted); background: #e2e8f0; border-radius: 5px; font-size: 8px; text-align: center; }
.nb-handoff-card { margin-bottom: 8px; padding: 10px; background: #fff; border: 1px solid var(--nb-line); border-radius: 12px; box-shadow: 0 1px 3px rgba(15,23,42,.07); cursor: pointer; transition: transform 130ms ease, border-color 130ms ease, box-shadow 130ms ease; }
.nb-handoff-card:hover { transform: translateY(-1px); border-color: #a5b4fc; box-shadow: 0 5px 12px rgba(15,23,42,.09); }
.nb-handoff-card h4 { margin: 7px 0 5px; overflow: hidden; color: var(--nb-ink); font: 500 10px/1.4 "IBM Plex Mono", monospace; text-overflow: ellipsis; white-space: nowrap; }
.nb-handoff-card p { margin: 3px 0; color: var(--nb-muted); font-size: 8.5px; line-height: 1.45; }
.nb-handoff-card__deps { padding-top: 5px; border-top: 1px solid var(--nb-line); }
.nb-handoff-card__criteria { margin: 5px 0 0; padding: 0; list-style: none; }
.nb-handoff-card__criteria li { margin: 2px 0; overflow: hidden; color: var(--nb-muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.nb-handoff-card__criteria li::before { content: "•"; margin-right: 4px; color: var(--nb-faint); }
.nb-handoff-card .nb-btn { min-height: 21px; padding: 2px 6px; border-radius: 6px; font-size: 7.5px; line-height: 1; }
.nb-kanban-empty { min-height: 112px; display: grid; place-items: center; color: var(--nb-faint); border: 2px dashed #cbd5e1; border-radius: 11px; font-size: 10px; }

.nb-modal-backdrop { position: absolute; inset: 0; z-index: 60; display: grid; place-items: center; padding: 18px; background: rgba(15,23,42,.38); backdrop-filter: blur(3px); }
.nb-modal { width: min(620px, 94%); max-height: 88%; overflow: auto; padding: 16px; background: #fff; border: 1px solid var(--nb-line); border-radius: 15px; box-shadow: 0 25px 70px rgba(15,23,42,.25); animation: nb-pop 160ms ease; }
.nb-modal__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.nb-modal__head h3 { margin: 0; color: var(--nb-ink); font-size: 14px; }
.nb-modal__head code { display: block; margin-top: 3px; color: var(--nb-muted); font-size: 9px; }
.nb-modal__grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.nb-detail { padding: 8px; background: var(--nb-surface-1); border: 1px solid var(--nb-line); border-radius: 9px; }
.nb-detail[data-wide="true"] { grid-column: 1/-1; }
.nb-detail small { display: block; margin-bottom: 3px; color: var(--nb-faint); font-size: 7px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.nb-detail div { color: var(--nb-copy); font-size: 9px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }

/* Workspaces and analytical screens */
.nb-workspace-list { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin-bottom: 13px; }
.nb-workspace-card { padding: 12px; border: 1px solid var(--nb-line); border-radius: 12px; background: #fff; cursor: pointer; text-align: left; }
.nb-workspace-card:hover,
.nb-workspace-card.is-active { border-color: #38bdf8; box-shadow: 0 0 0 1px #38bdf8 inset; }
.nb-workspace-card strong { display: block; overflow: hidden; color: var(--nb-ink); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.nb-workspace-card span { display: block; margin-top: 7px; color: var(--nb-muted); font-size: 8px; }
.nb-workspace-overview { margin-bottom: 13px; }
.nb-workspace-overview__head { display: flex; justify-content: space-between; gap: 14px; margin-bottom: 12px; }
.nb-workspace-overview__head h3 { margin: 0; color: var(--nb-ink); font-size: 14px; }
.nb-workspace-overview__head code { display: block; margin-top: 3px; color: var(--nb-muted); font-size: 8px; }
.nb-workspace-overview__dates { color: var(--nb-muted); font-size: 8px; line-height: 1.65; text-align: right; }
.nb-stats { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; }
.nb-stat { min-width: 0; padding: 10px; background: #fff; border: 1px solid var(--nb-line); border-radius: 11px; }
.nb-stat small { display: block; color: var(--nb-faint); font-size: 7px; }
.nb-stat strong { display: block; margin-top: 6px; overflow: hidden; color: var(--nb-ink); font: 600 16px/1 "IBM Plex Mono", monospace; text-overflow: ellipsis; white-space: nowrap; }
.nb-stat p { margin: 5px 0 0; color: var(--nb-faint); font-size: 7.5px; }
.nb-stat.is-warn { border-color: #fdba74; background: #fffaf2; }
.nb-stat.is-warn strong,
.nb-stat.is-warn p { color: #c2410c; }
.nb-health { margin-top: 13px; }
.nb-health__head { display: flex; align-items: center; gap: 8px; margin-bottom: 11px; }
.nb-health__head h3 { margin: 0; color: var(--nb-ink); font-size: 13px; }
.nb-health__head .nb-segmented { margin-left: auto; }
.nb-health-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; }
.nb-analytics { margin-top: 13px; }
.nb-chart { height: 150px; display: flex; align-items: end; gap: 8px; padding: 15px 12px 8px; border-top: 1px solid var(--nb-line); position: relative; }
.nb-chart::before,
.nb-chart::after { content:""; position:absolute; left:12px; right:12px; border-top:1px dashed #e2e8f0; }
.nb-chart::before { top: 40px; }
.nb-chart::after { top: 87px; }
.nb-chart__bar { flex: 1; min-width: 13px; height: var(--h); display: flex; flex-direction: column-reverse; border-radius: 5px 5px 2px 2px; overflow: hidden; position: relative; z-index: 1; cursor: pointer; }
.nb-chart__bar i { display:block; height:var(--part); background:var(--c); }
.nb-chart-labels { display:flex; gap:8px; padding:0 12px 10px; }
.nb-chart-labels span { flex:1; color:var(--nb-faint); font-size:7px; text-align:center; }

/* Lists, tables, catalogs */
.nb-split { min-height: 430px; display: grid; grid-template-columns: minmax(250px, .82fr) minmax(330px, 1.18fr); gap: 12px; }
.nb-list-panel,
.nb-detail-panel { min-height: 0; overflow: hidden; display: flex; flex-direction: column; }
.nb-list-panel__head { padding: 12px; border-bottom: 1px solid var(--nb-line); }
.nb-list-panel__head .nb-input { width: 100%; }
.nb-list { flex: 1; min-height: 0; overflow-y: auto; }
.nb-list-item { width: 100%; display: block; padding: 10px 12px; color: var(--nb-copy); background: #fff; border: 0; border-bottom: 1px solid var(--nb-line); cursor: pointer; text-align: left; }
.nb-list-item:hover,
.nb-list-item.is-active { background: #f5f3ff; }
.nb-list-item strong { display: block; color: var(--nb-ink); font-size: 10px; }
.nb-list-item p { margin: 4px 0 0; color: var(--nb-muted); font-size: 8px; line-height: 1.4; }
.nb-list-item__meta { display: flex; align-items: center; gap: 5px; margin-top: 5px; color: var(--nb-faint); font-size: 7px; }
.nb-detail-panel { padding: 14px; overflow-y: auto; }
.nb-detail-panel h3 { margin: 0 0 5px; color: var(--nb-ink); font-size: 14px; }
.nb-detail-panel > p { margin: 0 0 12px; color: var(--nb-muted); font-size: 9px; line-height: 1.55; }
.nb-table-wrap { overflow: auto; background: #fff; border: 1px solid var(--nb-line); border-radius: 13px; }
.nb-table { width: 100%; border-collapse: collapse; font-size: 9px; }
.nb-table th { padding: 9px 10px; color: var(--nb-faint); background: var(--nb-surface-1); border-bottom: 1px solid var(--nb-line); font-size: 7px; letter-spacing: .05em; text-align: left; text-transform: uppercase; white-space: nowrap; }
.nb-table td { padding: 9px 10px; color: var(--nb-copy); border-bottom: 1px solid var(--nb-line); vertical-align: top; }
.nb-table tr:last-child td { border-bottom: 0; }
.nb-table tbody tr[data-clickable="true"] { cursor:pointer; }
.nb-table tbody tr[data-clickable="true"]:hover { background:#f8fafc; }
.nb-catalog-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.nb-catalog-card { padding: 12px; background: #fff; border: 1px solid var(--nb-line); border-radius: 12px; }
.nb-catalog-card h3 { margin: 0; color: var(--nb-ink); font-size: 11px; }
.nb-catalog-card p { margin: 6px 0 9px; color: var(--nb-muted); font-size: 8px; line-height: 1.5; }
.nb-catalog-card dl { margin: 0; display: grid; gap: 6px; }
.nb-catalog-card dl div { display: flex; justify-content: space-between; gap: 9px; padding-top: 6px; border-top: 1px solid var(--nb-line); font-size: 8px; }
.nb-catalog-card dt { color: var(--nb-faint); }
.nb-catalog-card dd { margin: 0; color: var(--nb-copy); text-align: right; }
.nb-subtabs { display: flex; align-items: center; gap: 4px; margin-bottom: 12px; padding-bottom: 9px; border-bottom: 1px solid var(--nb-line); }
.nb-subtab { padding: 5px 8px; border: 0; border-radius: 7px; color: var(--nb-muted); background: transparent; cursor: pointer; font-size: 9px; }
.nb-subtab.is-active { color: var(--nb-accent-ink); background: var(--nb-accent-soft); }
.nb-code { margin: 8px 0 0; padding: 10px; overflow: auto; color: #c4b5fd; background: #111827; border-radius: 8px; font: 8px/1.55 "IBM Plex Mono", monospace; white-space: pre-wrap; }
.nb-callout { margin-bottom: 12px; padding: 9px 11px; color: #9a3412; background: #fff7ed; border: 1px solid #fdba74; border-radius: 9px; font-size: 9px; line-height: 1.5; }
.nb-setting { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--nb-line); }
.nb-setting:last-child { border-bottom: 0; }
.nb-setting strong { display:block; color:var(--nb-ink); font-size:10px; }
.nb-setting p { margin:3px 0 0; color:var(--nb-muted); font-size:8px; }
.nb-toggle { width: 32px; height: 18px; padding: 2px; border: 0; border-radius: 999px; background: #cbd5e1; cursor:pointer; }
.nb-toggle::after { content:""; display:block; width:14px; height:14px; border-radius:50%; background:#fff; box-shadow:0 1px 3px rgba(0,0,0,.2); transition:transform 150ms ease; }
.nb-toggle[aria-pressed="true"] { background: var(--nb-accent); }
.nb-toggle[aria-pressed="true"]::after { transform:translateX(14px); }
.nb-textarea { width:100%; min-height:80px; padding:8px; color:var(--nb-copy); background:#fff; border:1px solid var(--nb-line); border-radius:8px; outline:none; resize:vertical; font-size:9px; }
.nb-toast { position:absolute; right:16px; bottom:16px; z-index:80; max-width:300px; padding:9px 12px; color:#fff; background:#0f172a; border-radius:9px; box-shadow:0 10px 30px rgba(15,23,42,.25); font-size:9px; animation:nb-pop 160ms ease; }

/* Current Nexus dashboard theme: dark Pulse surfaces throughout the embed. */
.nexus-board-embed {
  --nb-accent: #0ea5e9;
  --nb-accent-soft: #0c4a6e;
  --nb-accent-ink: #7dd3fc;
  --nb-surface-0: #0f172a;
  --nb-surface-1: #111827;
  --nb-surface-2: #1e293b;
  --nb-surface-3: #334155;
  --nb-line: #334155;
  --nb-ink: #f1f5f9;
  --nb-copy: #cbd5e1;
  --nb-muted: #94a3b8;
  --nb-faint: #64748b;
  color-scheme: dark;
  color: var(--nb-copy);
  background: #020617;
  border-color: #1e293b;
  box-shadow: 0 30px 90px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.025) inset;
}

.nb-topbar { color: var(--nb-ink); background: rgba(0,0,0,.96); border-color: #1f2937; }
.nb-hamburger,
.nb-icon-button { color: #94a3b8; background: #111827; border-color: #334155; }
.nb-hamburger { background: transparent; border-color: transparent; }
.nb-hamburger:hover,
.nb-icon-button:hover { color: #e0f2fe; border-color: #475569; background: #1e293b; }
.nb-topbar__brand { color: #f8fafc; }
.nb-topbar__crumb { color: #94a3b8; }
.nb-topbar__select,
.nb-input,
.nb-select,
.nb-textarea { color: #e2e8f0; background-color: #1e293b; border-color: #334155; }
.nb-topbar__select:focus,
.nb-input:focus,
.nb-select:focus,
.nb-textarea:focus { border-color: #0ea5e9; box-shadow: 0 0 0 3px rgba(14,165,233,.16); }
.nb-topbar__live,
.nb-live { color: #6ee7b7; background: rgba(6,78,59,.55); }

.nb-sidebar { color: #cbd5e1; background: rgba(15,23,42,.98); border-color: #263244; }
.nb-sidebar__label { color: #64748b; }
.nb-tab { color: #cbd5e1; }
.nb-tab:hover { color: #bae6fd; background: rgba(7,89,133,.45); }
.nb-tab.is-active { color: #e0f2fe; background: #0c4a6e; }
.nb-main,
.nb-panel,
.nb-page,
.nb-page--flush { background: #020617; }
.nb-page-head h2,
.nb-section-title { color: #f1f5f9; }
.nb-page-head p { color: #94a3b8; }

.nb-card,
.nb-panel-card,
.nb-filterbar,
.nb-list-panel,
.nb-detail-panel,
.nb-table-wrap,
.nb-workspace-card,
.nb-catalog-card,
.nb-stat,
.nb-modal { color: #cbd5e1; background: #0f172a; border-color: #334155; box-shadow: 0 1px 3px rgba(0,0,0,.22); }
.nb-panel-card,
.nb-modal { box-shadow: 0 10px 35px rgba(0,0,0,.18); }
.nb-btn { color: #cbd5e1; background: #1e293b; border-color: #334155; }
.nb-btn:hover { color: #e0f2fe; background: #263449; border-color: #0ea5e9; }
.nb-btn--primary { color: #fff; background: #059669; border-color: #059669; }
.nb-btn--primary:hover { color: #fff; background: #047857; border-color: #10b981; }
.nb-btn--danger { color: #fda4af; background: #1f1720; border-color: #7f1d1d; }
.nb-btn--danger:hover { color: #fecdd3; background: #3f151d; border-color: #e11d48; }
.nb-chip { color: #cbd5e1; background: #263449; }
.nb-chip[data-tone="sky"] { color: #7dd3fc; background: rgba(12,74,110,.7); }
.nb-chip[data-tone="violet"] { color: #c4b5fd; background: rgba(76,29,149,.5); }
.nb-chip[data-tone="green"] { color: #6ee7b7; background: rgba(6,78,59,.55); }
.nb-chip[data-tone="amber"] { color: #fcd34d; background: rgba(120,53,15,.52); }
.nb-chip[data-tone="red"] { color: #fda4af; background: rgba(127,29,29,.52); }
.nb-empty { color: #64748b; }
.nb-empty strong { color: #cbd5e1; }

.nb-graph-page,
.nb-graph-stage { background: #020617; }
.nb-graph-toolbar { background: rgba(15,23,42,.92); border-color: #1e293b; }
.nb-graph-toolbar__label { color: #94a3b8; font-size: 10px; font-weight: 500; }
.nb-graph-toolbar__hint { color: #64748b; }
.nb-segmented { background: #020617; border-color: #334155; }
.nb-segmented button { color: #94a3b8; }
.nb-segmented button.is-active { color: #fff; background: #0369a1; box-shadow: 0 1px 4px rgba(0,0,0,.3); }
.nb-graph-canvas { background-color: #020617; background-image: none; }
.nb-graph-agent { color: #cbd5e1; background: rgba(15,23,42,.98); border-color: #475569; box-shadow: 0 3px 12px rgba(0,0,0,.34); }
.nb-graph-agent:hover,
.nb-graph-agent.is-selected { border-color: #38bdf8; box-shadow: 0 0 0 2px rgba(14,165,233,.2), 0 8px 24px rgba(0,0,0,.38); }
.nb-graph-agent__body { background: #0f172a; }
.nb-graph-agent__action { color: #cbd5e1; }
.nb-graph-agent__action::first-line { color: #e2e8f0; }
.nb-graph-agent__badge { color: #7dd3fc; background: rgba(12,74,110,.65); }
.nb-graph-agent__badge[data-kind="handoff"] { color: #f0abfc; background: rgba(112,26,117,.5); }
.nb-graph-agent__tag { color: #cbd5e1; background: #1e293b; border-color: #263449; }
.nb-graph-legend { color: #cbd5e1; background: rgba(15,23,42,.9); border-color: #334155; box-shadow: 0 8px 28px rgba(0,0,0,.3); backdrop-filter: blur(10px); }
.nb-graph-legend h4 { color: #e2e8f0; }
.nb-graph-legend p { color: #cbd5e1; }
.nb-graph-legend p i { color: #64748b; font-style: normal; }
.nb-graph-legend__foot { margin-top: 6px !important; color: #64748b !important; }
.nb-graph-help { position: absolute; left: 14px; bottom: 14px; }

.nb-side-panel { color: #cbd5e1; background: #0f172a; border-color: #334155; box-shadow: -15px 0 36px rgba(0,0,0,.28); }
.nb-side-panel::before { background: #475569; }
.nb-side-head h3,
.nb-side-label { color: #f1f5f9; }
.nb-side-head p { color: #94a3b8; }
.nb-side-section { border-color: #334155; }
.nb-lane { color: #94a3b8; background: #1e293b; }
.nb-lane b { color: #7dd3fc; }
.nb-peer-tab { color: #94a3b8; background: #0f172a; border-color: #334155; }
.nb-peer-tab.is-active { color: #bae6fd; background: #0c4a6e; border-color: #0284c7; }
.nb-message { color: #cbd5e1; background: #111827; border-color: #334155; }
.nb-message.is-out { color: #ddd6fe; background: #1e1b4b; border-color: #5b21b6; }
.nb-message__meta { color: #64748b; }
.nb-message__meta b,
.nb-message__subject { color: #e2e8f0; }

.nb-structured { --st-border:#334155; --st-bg:#111827; --st-ink:#cbd5e1; }
.nb-structured[data-tone="success"] { --st-border:#065f46; --st-bg:rgba(2,44,34,.68); --st-ink:#6ee7b7; }
.nb-structured[data-tone="warning"] { --st-border:#92400e; --st-bg:rgba(69,26,3,.64); --st-ink:#fcd34d; }
.nb-structured[data-tone="danger"] { --st-border:#881337; --st-bg:rgba(76,5,25,.62); --st-ink:#fda4af; }
.nb-structured[data-tone="info"] { --st-border:#5b21b6; --st-bg:rgba(46,16,101,.58); --st-ink:#c4b5fd; }
.nb-structured[data-tone="receipt"] { --st-border:#075985; --st-bg:rgba(8,47,73,.65); --st-ink:#7dd3fc; }
.nb-structured__subject { color:#f1f5f9; }
.nb-structured__detail[data-wide="true"] { background:rgba(0,0,0,.16); border-color:rgba(255,255,255,.05); }
.nb-structured__detail span,
.nb-structured__detail code { color:#cbd5e1; }

.nb-kanban-col { background:#0b1324; }
.nb-kanban-col__head { color:#cbd5e1; }
.nb-kanban-col__count { color:#94a3b8; background:#1e293b; }
.nb-handoff-card { color:#cbd5e1; background:#0f172a; border-color:#334155; box-shadow:0 1px 4px rgba(0,0,0,.26); }
.nb-handoff-card:hover { border-color:#0ea5e9; box-shadow:0 6px 18px rgba(0,0,0,.3); }
.nb-handoff-card h4 { color:#e2e8f0; }
.nb-handoff-card p,
.nb-handoff-card__criteria li { color:#94a3b8; }
.nb-handoff-card__deps,
.nb-kanban-empty { border-color:#334155; }
.nb-kanban-empty { color:#64748b; }
.nb-modal-backdrop { background:rgba(0,0,0,.68); }
.nb-modal__head h3 { color:#f1f5f9; }
.nb-modal__head code { color:#94a3b8; }
.nb-detail { background:#111827; border-color:#334155; }
.nb-detail div { color:#cbd5e1; }

.nb-workspace-card strong,
.nb-workspace-overview__head h3,
.nb-stat strong,
.nb-health__head h3,
.nb-list-item strong,
.nb-detail-panel h3,
.nb-catalog-card h3,
.nb-setting strong { color:#f1f5f9; }
.nb-workspace-card span,
.nb-workspace-overview__dates,
.nb-stat small,
.nb-stat p,
.nb-list-item p,
.nb-detail-panel > p,
.nb-catalog-card p,
.nb-setting p { color:#94a3b8; }
.nb-workspace-card:hover,
.nb-workspace-card.is-active { border-color:#0ea5e9; box-shadow:0 0 0 1px #0ea5e9 inset; }
.nb-stat.is-warn { background:rgba(69,26,3,.46); border-color:#92400e; }
.nb-stat.is-warn strong,
.nb-stat.is-warn p { color:#fb923c; }
.nb-chart { border-color:#334155; }
.nb-chart::before,
.nb-chart::after { border-color:#1e293b; }
.nb-list-panel__head,
.nb-list-item,
.nb-table th,
.nb-table td,
.nb-catalog-card dl div,
.nb-subtabs,
.nb-setting { border-color:#334155; }
.nb-list-item { color:#cbd5e1; background:#0f172a; }
.nb-list-item:hover,
.nb-list-item.is-active { background:#172554; }
.nb-table th { color:#64748b; background:#111827; }
.nb-table td { color:#cbd5e1; }
.nb-table tbody tr[data-clickable="true"]:hover { background:#111827; }
.nb-catalog-card dt { color:#64748b; }
.nb-catalog-card dd { color:#cbd5e1; }
.nb-subtab { color:#94a3b8; }
.nb-subtab.is-active { color:#bae6fd; background:#0c4a6e; }
.nb-callout { color:#fdba74; background:rgba(69,26,3,.55); border-color:#92400e; }
.nb-toggle { background:#334155; }
.nb-toggle[aria-pressed="true"] { background:#0ea5e9; }
.nb-toast { color:#e2e8f0; background:#1e293b; border:1px solid #334155; box-shadow:0 12px 35px rgba(0,0,0,.45); }

@keyframes nb-fade { from { opacity: .55; } to { opacity: 1; } }
@keyframes nb-slide-left { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: translateX(0); } }
@keyframes nb-pop { from { opacity:0; transform:translateY(6px) scale(.985); } to { opacity:1; transform:none; } }
@keyframes nb-spin { to { transform: rotate(360deg); } }

@media (max-width: 980px) {
  .nexus-board-embed { height: 740px; }
  .nb-sidebar { width: 188px; flex-basis: 188px; }
  .nb-topbar__select { width: 145px; }
  .nb-workspace-list,
  .nb-catalog-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .nb-stats,
  .nb-health-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .nb-side-panel { width: 410px; flex-basis: 410px; }
}

@media (max-width: 760px) {
  .nexus-board-embed { min-height: 660px; height: 78vh; border-radius: 13px; }
  .nb-topbar { gap: 7px; padding-inline: 8px; }
  .nb-topbar__brand span { display: none; }
  .nb-topbar__crumb { max-width: 92px; overflow: hidden; text-overflow: ellipsis; }
  .nb-topbar__select { width: 116px; }
  .nb-icon-button[data-nb-menu] { display: none; }
  .nb-sidebar { position: absolute; inset: 49px auto 0 0; z-index: 40; width: 205px; flex-basis: 205px; box-shadow: 14px 0 32px rgba(15,23,42,.18); }
  .nb-sidebar.is-collapsed { width: 205px; transform: translateX(-100%); }
  .nb-page { padding: 16px 13px 22px; }
  .nb-page-head { flex-direction: column; }
  .nb-graph-agent { width: 160px; }
  .nb-graph-agent__tag { display:none; }
  .nb-graph-legend { width: 200px; }
  .nb-side-panel { position:absolute; inset:43px 0 0 auto; z-index:25; width:min(92%,390px); flex-basis:auto; }
  .nb-split { grid-template-columns:1fr; }
  .nb-list-panel { max-height:210px; }
  .nb-workspace-list,
  .nb-catalog-grid { grid-template-columns:1fr; }
}

@media (max-width: 520px) {
  .nb-topbar__live,
  .nb-topbar__select { display:none; }
  .nb-topbar__actions { gap:4px; }
  .nb-graph-agent { width: 136px; }
  .nb-graph-agent__body { padding:5px 7px; }
  .nb-graph-agent__badges { display:none; }
  .nb-graph-legend { display:none; }
  .nb-modal__grid { grid-template-columns:1fr; }
  .nb-detail[data-wide="true"] { grid-column:auto; }
}

@media (prefers-reduced-motion: reduce) {
  .nexus-board-embed *,
  .nexus-board-embed *::before,
  .nexus-board-embed *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
