:root {
  color-scheme: dark;
  --bg: #0f1621;
  --bg-deep: #0b1018;
  --topbar: #111720;
  --rail: #24102f;
  --sidebar: #15101f;
  --panel: #151b26;
  --panel-soft: #1b2230;
  --panel-strong: #202737;
  --canvas: #121821;
  --line: rgba(222, 231, 242, 0.1);
  --line-strong: rgba(222, 231, 242, 0.18);
  --text: #f2f5f8;
  --muted: #a2adba;
  --muted-2: #788493;
  --purple: #8753c9;
  --purple-strong: #6c3ea4;
  --purple-soft: rgba(135, 83, 201, 0.24);
  --teal: #4cc7c0;
  --teal-soft: rgba(76, 199, 192, 0.16);
  --yellow: #e0b341;
  --yellow-soft: rgba(224, 179, 65, 0.16);
  --green: #35c083;
  --blue: #4f9cf9;
  --red: #f16f69;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  --topbar-height: 48px;
  --rail-width: 56px;
  --sidebar-width: 260px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
}

* {
  box-sizing: border-box;
}

html,
body,
#app {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
}

@supports (height: 100dvh) {
  html,
  body,
  #app {
    height: 100dvh;
  }
}

body {
  background:
    radial-gradient(circle at 18% -10%, rgba(76, 199, 192, 0.12), transparent 30%),
    radial-gradient(circle at 95% 12%, rgba(135, 83, 201, 0.18), transparent 28%),
    var(--bg);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  letter-spacing: 0;
  overscroll-behavior: none;
  touch-action: manipulation;
}

button,
input {
  font: inherit;
}

button {
  border: 0;
  color: inherit;
  cursor: pointer;
}

.flow-app {
  display: grid;
  grid-template-rows: var(--topbar-height) minmax(0, 1fr);
  min-width: 0;
  min-height: 0;
  padding: var(--safe-top) var(--safe-right) var(--safe-bottom) var(--safe-left);
}

.topbar {
  position: relative;
  z-index: 50;
  display: grid;
  grid-template-columns:
    minmax(132px, 180px)
    minmax(280px, 1fr)
    minmax(0, 220px)
    max-content;
  align-items: center;
  gap: 10px;
  min-width: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(13, 18, 26, 0.94);
  padding: 0 14px 0 12px;
  backdrop-filter: blur(16px);
}

.topbar > * {
  min-width: 0;
}

.topbar > section[aria-label="Startup simulation status"],
.brand-copy > p {
  display: none !important;
}

.brand {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 10px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: #f2f5f8;
  color: #0b1018;
  font-size: 17px;
  font-weight: 950;
  line-height: 1;
}

.brand-copy {
  min-width: 0;
  overflow: hidden;
}

.brand-title {
  margin: 0;
  color: #fff;
  font-size: 17px;
  font-weight: 860;
  line-height: 1.1;
}

.global-search {
  position: relative;
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(430px, 100%);
  height: 30px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--muted);
  font-size: 12px;
  padding: 0 11px;
}

.global-search::before {
  content: "";
  width: 12px;
  height: 12px;
  margin-right: 8px;
  border: 2px solid var(--muted-2);
  border-radius: 50%;
  box-shadow: 6px 6px 0 -5px var(--muted-2);
}

.global-search input {
  flex: 1 1 160px;
  min-width: 0;
  border: 0;
  background: transparent;
  color: #edf2f7;
  font-size: 12px;
  outline: none;
}

.global-search input::placeholder {
  color: var(--muted-2);
}

.global-search-status {
  position: absolute;
  width: 1px;
  height: 1px;
  min-width: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  color: var(--muted);
  font-size: 10.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.global-search-results {
  position: absolute;
  top: 36px;
  left: 0;
  right: 0;
  z-index: 30;
  display: grid;
  gap: 4px;
  max-height: min(360px, calc(100vh - 80px));
  overflow: auto;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(18, 24, 33, 0.98);
  box-shadow: var(--shadow);
  padding: 6px;
}

.global-search-results button {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-width: 0;
  border-radius: 7px;
  background: transparent;
  padding: 7px;
  text-align: left;
}

.global-search-results button:hover,
.global-search-results button:focus-visible {
  background: var(--purple-soft);
  outline: 1px solid rgba(135, 83, 201, 0.4);
}

.search-result-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: var(--purple-soft);
  color: #f6f0ff;
  font-size: 10px;
  font-weight: 900;
}

.search-result-icon.teal {
  background: var(--teal-soft);
  color: #9ff0ea;
}

.search-result-icon.yellow {
  background: var(--yellow-soft);
  color: #ffe386;
}

.global-search-results strong,
.global-search-results small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.global-search-results strong {
  color: var(--text);
  font-size: 12px;
  line-height: 1.2;
}

.global-search-results small,
.global-search-empty {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.2;
}

.global-search-empty {
  padding: 10px;
}

.server-auth-status {
  justify-self: end;
  min-width: 0;
  max-width: 100%;
}

.server-auth-status.authenticated {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  max-width: 220px;
  overflow: hidden;
  border: 1px solid rgba(106, 211, 145, 0.35);
  border-radius: 999px;
  color: #9de6bb;
  font-size: 10px;
  font-weight: 900;
  padding: 0 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.server-auth-status.required {
  display: grid;
  grid-template-columns: minmax(76px, 1fr) minmax(76px, 112px) max-content;
  align-items: center;
  gap: 6px;
  width: min(330px, 100%);
  max-width: 100%;
  min-width: 0;
  height: 34px;
  border: 1px solid rgba(255, 183, 107, 0.38);
  border-radius: 8px;
  background: rgba(255, 183, 107, 0.07);
  padding: 4px 5px 4px 8px;
}

.server-auth-status.required span {
  min-width: 0;
  overflow: hidden;
  color: #ffd08a;
  font-size: 10px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.server-auth-status.required input {
  min-width: 0;
  height: 24px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.055);
  color: #edf2f7;
  font-size: 11px;
  outline: none;
  padding: 0 8px;
}

.server-auth-status.required button {
  height: 24px;
  border-radius: 6px;
  background: rgba(255, 183, 107, 0.14);
  color: #ffe1ad;
  font-size: 10px;
  font-weight: 900;
  padding: 0 8px;
}

.topbar-actions {
  position: relative;
  justify-self: end;
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
  overflow: visible;
}

.icon-button {
  position: relative;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.04);
  color: #e7edf5;
  font-size: 13px;
  font-weight: 850;
}

.help-tray,
.settings-tray,
.notification-tray {
  position: absolute;
  top: 38px;
  right: 92px;
  z-index: 70;
  display: grid;
  gap: 8px;
  width: min(360px, calc(100vw - 24px));
  max-height: min(420px, calc(100vh - 74px));
  overflow: auto;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(18, 24, 33, 0.98);
  box-shadow: var(--shadow);
  padding: 10px;
}

.help-tray {
  right: 136px;
  width: min(460px, calc(100vw - 24px));
}

.settings-tray {
  right: 172px;
  width: min(320px, calc(100vw - 24px));
}

.notification-tray {
  right: 68px;
  width: min(420px, calc(100vw - 24px));
  max-height: min(520px, calc(100vh - 74px));
  padding: 0;
}

.help-tray header,
.settings-tray header {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.help-tray header strong,
.settings-tray header strong {
  color: #fff;
  font-size: 13px;
  line-height: 1.2;
}

.help-tray header span,
.settings-tray header span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.settings-field {
  position: relative;
  display: grid;
  gap: 5px;
  min-width: 0;
}

.settings-field span {
  color: var(--text-soft);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
}

.settings-field select {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(138, 185, 238, 0.62);
  border-radius: 7px;
  background:
    linear-gradient(45deg, transparent 50%, #e6eef8 50%) calc(100% - 17px) calc(50% - 2px) / 6px 6px no-repeat,
    linear-gradient(135deg, #e6eef8 50%, transparent 50%) calc(100% - 12px) calc(50% - 2px) / 6px 6px no-repeat,
    #101a27;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  color: #f8fbff;
  color-scheme: dark;
  font-size: 12px;
  font-weight: 760;
  padding: 8px 34px 8px 10px;
}

.settings-field select:hover {
  border-color: rgba(185, 242, 237, 0.72);
  background-color: #132235;
}

.settings-field select:focus {
  border-color: rgba(185, 242, 237, 0.86);
  background-color: #132235;
  outline: 2px solid rgba(76, 199, 192, 0.48);
  outline-offset: 2px;
}

.settings-field select option {
  background: #101a27;
  color: #f8fbff;
}

.settings-scope-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
}

.settings-scope-summary span {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  font-size: 10px;
  font-weight: 760;
  line-height: 1.2;
  padding: 6px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.help-workspace-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 5px;
}

.help-workspace-summary span {
  display: grid;
  gap: 2px;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.035);
  padding: 7px;
}

.help-workspace-summary small,
.help-endpoint-list small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.2;
}

.help-workspace-summary strong {
  color: #f6f8fb;
  font-size: 13px;
  line-height: 1.2;
}

.help-section-list {
  display: grid;
  gap: 6px;
}

.help-section-list section,
.help-endpoint-list span {
  display: grid;
  gap: 3px;
  min-width: 0;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.035);
  padding: 8px;
}

.help-section-list strong {
  color: #f6f8fb;
  font-size: 12px;
  line-height: 1.2;
}

.help-section-list p {
  margin: 0;
  color: var(--text-soft);
  font-size: 11px;
  line-height: 1.35;
}

.help-endpoint-list {
  display: grid;
  gap: 5px;
}

.help-endpoint-list span {
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
}

.help-endpoint-list b {
  color: #b9f2ed;
  font-size: 10px;
  line-height: 1.2;
}

.help-endpoint-list code {
  overflow: hidden;
  color: #f6f8fb;
  font-size: 11px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.help-endpoint-list small {
  grid-column: 2;
}

.notification-list {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.notification-list button {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-width: 0;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.035);
  padding: 8px;
  text-align: left;
}

.notification-list button:hover,
.notification-list button:focus-visible {
  background: var(--purple-soft);
  outline: 1px solid rgba(135, 83, 201, 0.4);
}

.notification-list strong,
.notification-list small,
.notification-empty {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notification-list strong {
  color: #f6f8fb;
  font-size: 12px;
  line-height: 1.2;
}

.notification-list small,
.notification-empty {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.notification-kind {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: rgba(76, 199, 192, 0.14);
  color: #b9f2ed;
  font-size: 10px;
  font-weight: 900;
}

.activity-panel,
.activity-inbox-tray {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: var(--panel);
}

.activity-inbox-tray {
  min-height: 0;
  max-height: min(520px, calc(100vh - 74px));
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.42);
}

.activity-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
  min-height: 64px;
  border-bottom: 1px solid var(--line);
  padding: 0 18px;
}

.activity-header h2 {
  margin: 0;
  color: #fff7d7;
  font-size: 20px;
  line-height: 1.15;
}

.activity-header span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.activity-header button {
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.055);
  color: rgba(255, 255, 255, 0.78);
  font-size: 11px;
  font-weight: 820;
  padding: 0 10px;
}

.activity-filter-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  padding: 10px 18px;
}

.activity-filter-tab {
  display: inline-grid;
  grid-template-columns: minmax(0, auto) auto;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.035);
  color: rgba(255, 255, 255, 0.76);
  padding: 0 10px;
}

.activity-filter-tab.active {
  border-color: rgba(245, 196, 83, 0.45);
  background: rgba(245, 196, 83, 0.12);
  color: #fff7d7;
}

.activity-filter-tab b {
  font-size: 11px;
}

.activity-filter-tab small {
  color: var(--muted-2);
  font-size: 10px;
  font-weight: 820;
}

.activity-inbox-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.activity-list {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
  min-height: 0;
  max-height: min(340px, calc(100vh - 230px));
  overflow: auto;
  padding: 14px;
}

.activity-card {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  color: rgba(255, 255, 255, 0.86);
  padding: 10px;
  text-align: left;
}

.activity-card-time {
  grid-column: 2;
}

.activity-card:hover,
.activity-card:focus-visible {
  border-color: rgba(245, 196, 83, 0.38);
  background: rgba(245, 196, 83, 0.1);
  outline: none;
}

.activity-kind {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(76, 199, 192, 0.14);
  color: #b9f2ed;
  font-size: 11px;
  font-weight: 920;
}

.activity-card-copy,
.activity-card-copy strong,
.activity-card-copy small,
.activity-card-time,
.activity-empty {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.activity-card-copy {
  display: grid;
  gap: 3px;
}

.activity-card-copy strong {
  color: #fff7d7;
  font-size: 13px;
  line-height: 1.25;
  white-space: nowrap;
}

.activity-card-copy small,
.activity-card-time,
.activity-empty,
.activity-detail-empty {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.activity-card-time {
  max-width: 52px;
  white-space: nowrap;
}

.activity-empty {
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 14px;
}

.activity-detail-empty {
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 0;
  padding: 20px;
  text-align: center;
}

.activity-inbox-tray .activity-detail-empty {
  display: none;
}

@media (max-width: 860px) {
  .activity-inbox-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .activity-list {
    border-right: 0;
  }

  .activity-detail-empty {
    display: none;
  }
}

.app-shell {
  display: grid;
  grid-template-columns: var(--rail-width) var(--sidebar-width) minmax(0, 1fr);
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.app-rail {
  display: grid;
  align-content: start;
  min-width: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--rail);
  padding: 9px 7px;
}

.workspace-switcher {
  display: grid;
  align-content: start;
  gap: 8px;
  justify-items: center;
}

.workspace-button {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin: 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.82);
  font-size: 10px;
  font-weight: 950;
  line-height: 1.1;
  text-align: center;
}

.workspace-button-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.workspace-button.active {
  border-color: rgba(255, 255, 255, 0.28);
  background: var(--purple-strong);
  color: #fff;
  box-shadow: inset 4px 0 0 rgba(255, 255, 255, 0.9);
}

.workspace-button.add-workspace {
  background: rgba(255, 255, 255, 0.055);
  color: rgba(255, 255, 255, 0.74);
  font-size: 20px;
  font-weight: 650;
}

.activity-rail {
  display: grid;
  justify-items: center;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.activity-rail-button {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 3px;
  width: 44px;
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: rgba(255, 255, 255, 0.68);
  font-size: 9px;
  font-weight: 820;
  line-height: 1;
}

.activity-rail-button:hover,
.activity-rail-button:focus-visible,
.activity-rail-button.active {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.activity-rail-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(76, 199, 192, 0.14);
  color: #b9f2ed;
  font-size: 15px;
  font-weight: 950;
}

.activity-rail-label {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.activity-rail-badge {
  position: absolute;
  top: -4px;
  right: -3px;
  display: grid;
  place-items: center;
  min-width: 17px;
  height: 17px;
  border: 2px solid #220d30;
  border-radius: 999px;
  background: #4cc7c0;
  color: #071018;
  font-size: 9px;
  font-weight: 950;
  line-height: 1;
  padding: 0 4px;
}

.rail-mobile-tabs {
  display: none;
}

.workspace-sidebar {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto auto auto minmax(0, 1fr) auto;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border-right: 1px solid var(--line);
  background: var(--sidebar);
}

.workspace-sidebar > * {
  min-width: 0;
  max-width: 100%;
}

.workspace-header {
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 54px;
  border-bottom: 1px solid var(--line);
  padding: 0 12px 0 16px;
}

.workspace-header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}

.company-selector {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.workspace-title-button {
  width: 100%;
  border-radius: 7px;
  background: transparent;
  color: inherit;
  padding: 4px 6px;
  text-align: left;
}

.company-selector strong,
.company-selector span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.company-selector strong {
  color: #fff;
  font-size: 13px;
}

.company-selector span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.compose-button {
  min-width: 34px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 11px;
  font-weight: 850;
  padding: 0 8px;
}

.workspace-source-bridge {
  grid-row: 2;
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.018);
  padding: 8px 10px;
}

.source-bridge-label {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  font-weight: 900;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.source-bridge-flow {
  display: grid;
  grid-template-columns: max-content max-content max-content;
  align-items: center;
  gap: 5px;
  min-width: 0;
  justify-content: end;
}

.source-bridge-node {
  display: flex;
  align-items: center;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(8, 12, 21, 0.52);
  color: inherit;
  padding: 5px 8px;
  text-align: left;
}

.source-bridge-node.active {
  border-color: rgba(76, 199, 192, 0.52);
  background: rgba(76, 199, 192, 0.11);
}

.source-bridge-node:hover,
.source-bridge-node:focus-visible {
  border-color: rgba(76, 199, 192, 0.5);
  outline: none;
}

.source-bridge-node small,
.source-bridge-node span {
  display: none;
}

.source-bridge-node strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.source-bridge-node small {
  color: var(--muted);
  font-size: 8.5px;
  font-weight: 850;
}

.source-bridge-node strong {
  color: #fff;
  font-size: 10px;
}

.source-bridge-node span {
  color: #bfc9d3;
  font-size: 9px;
}

.source-bridge-arrow {
  align-self: center;
  justify-self: center;
  color: #8adfd9;
  font-size: 12px;
  font-weight: 900;
}

.workspace-boundary-notice {
  grid-row: 3;
  display: grid;
  gap: 3px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  padding: 8px 10px;
}

.workspace-boundary-notice strong,
.workspace-boundary-notice span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-boundary-notice strong {
  color: #f6fbff;
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.workspace-boundary-notice span {
  color: var(--muted);
  font-size: 10px;
}

.workspace-boundary-notice.locked {
  border-bottom-color: rgba(255, 202, 116, 0.28);
  background: rgba(255, 202, 116, 0.06);
}

.workspace-boundary-notice.locked strong {
  color: #ffd99a;
}

.sidebar-scroll {
  grid-row: 5;
  width: 100%;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 10px 8px 12px;
}

.workspace-profile-dock {
  grid-row: 6;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 30px;
  align-items: center;
  gap: 6px;
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.14);
  padding: 8px;
}

.workspace-profile-button {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 34px;
  border-radius: 7px;
  background: transparent;
  color: inherit;
  padding: 2px 4px;
  text-align: left;
}

.workspace-profile-icon:hover,
.workspace-profile-icon:focus-visible {
  background: rgba(255, 255, 255, 0.075);
  outline: none;
}

.workspace-profile-avatar {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: var(--teal);
  color: #071018;
  font-size: 11px;
  font-weight: 900;
}

.workspace-profile-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.workspace-profile-copy strong,
.workspace-profile-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-profile-copy strong {
  color: rgba(255, 255, 255, 0.92);
  font-size: 12px;
  font-weight: 820;
}

.workspace-profile-copy small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 620;
}

.workspace-profile-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.055);
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  font-weight: 900;
}

.primary-nav {
  display: grid;
  gap: 3px;
  margin-bottom: 16px;
}

.primary-nav button {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 30px;
  border-radius: 6px;
  background: transparent;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  font-weight: 760;
  padding: 0 10px;
  text-align: left;
}

.primary-nav button.active {
  background: var(--purple);
  color: #fff;
}

.sidebar-group {
  margin-top: 12px;
}

.sidebar-quick-nav {
  display: grid;
  gap: 2px;
  margin: 2px 0 12px;
}

.sidebar-quick-nav button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  border-radius: 6px;
  background: transparent;
  color: rgba(255, 255, 255, 0.74);
  font-size: 12.5px;
  font-weight: 700;
  padding: 0 9px;
  text-align: left;
}

.sidebar-quick-nav button:hover,
.sidebar-quick-nav button:focus-visible {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  outline: none;
}

.sidebar-quick-nav span,
.sidebar-quick-nav small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-quick-nav small {
  color: var(--muted-2);
  font-size: 10px;
  font-weight: 680;
}

.sidebar-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 24px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 11px;
  font-weight: 760;
  padding: 0 8px;
}

.sidebar-heading button {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 5px;
  background: transparent;
  color: rgba(255, 255, 255, 0.62);
  font-size: 14px;
  font-weight: 850;
}

.sidebar-heading button:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.sidebar-heading-title {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.sidebar-heading-title > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.sidebar-collapse-button {
  flex: 0 0 auto;
  color: rgba(166, 250, 236, 0.72);
}

.sidebar-collapse-chevron {
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translate(-1px, -1px);
}

.chat-sidebar-group.collapsed .sidebar-collapse-chevron {
  transform: rotate(-45deg);
}

.chat-sidebar-group.collapsed .sidebar-list {
  display: none;
}

.sidebar-heading-actions {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.sidebar-heading-action {
  flex: 0 0 auto;
}

.sidebar-heading-action[aria-pressed="true"] {
  background: rgba(135, 83, 201, 0.35);
  color: #fff;
}

.workflow-sidebar-action-menu {
  display: grid;
  gap: 6px;
  margin: 4px 8px 8px;
  padding: 6px;
  border: 1px solid rgba(133, 190, 255, 0.2);
  border-radius: 7px;
  background: rgba(14, 23, 34, 0.86);
}

.workflow-sidebar-action-button {
  display: grid;
  gap: 2px;
  width: 100%;
  min-height: 42px;
  min-width: 0;
  padding: 7px 8px;
  text-align: left;
  border: 1px solid rgba(133, 190, 255, 0.16);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.92);
}

.workflow-sidebar-action-button:hover {
  border-color: rgba(87, 183, 255, 0.45);
  background: rgba(87, 183, 255, 0.1);
}

.workflow-sidebar-action-button:focus-visible,
.workflow-sidebar-action-close:focus-visible {
  outline: none;
  border-color: rgba(87, 183, 255, 0.72);
  box-shadow: 0 0 0 2px rgba(87, 183, 255, 0.18);
}

.workflow-sidebar-action-button strong {
  overflow: hidden;
  text-overflow: ellipsis;
  color: #fff;
  font-size: 11px;
  font-weight: 850;
  white-space: nowrap;
}

.workflow-sidebar-action-button small {
  overflow: hidden;
  text-overflow: ellipsis;
  color: rgba(202, 222, 247, 0.66);
  font-size: 10px;
  font-weight: 650;
  white-space: nowrap;
}

.workflow-sidebar-action-menu-footer {
  display: flex;
  justify-content: flex-end;
}

.workflow-sidebar-action-close {
  min-height: 26px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.78);
  font-size: 10px;
  font-weight: 850;
}

.sidebar-list {
  display: grid;
  gap: 1px;
}

.chat-room-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  gap: 3px;
  min-width: 0;
}

.chat-room-main {
  min-width: 0;
}

.chat-context-backdrop,
.workspace-context-backdrop {
  position: fixed;
  inset: 0;
  z-index: 79;
  border: 0;
  background: transparent;
  cursor: default;
}

.workspace-context-menu {
  position: fixed;
  z-index: 80;
  left: min(max(8px, var(--workspace-context-x, 8px)), calc(100vw - 192px));
  top: min(max(8px, var(--workspace-context-y, 8px)), calc(100vh - 154px));
  display: grid;
  gap: 5px;
  width: 184px;
  border: 1px solid rgba(166, 250, 236, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(26, 44, 38, 0.98), rgba(10, 16, 12, 0.98)),
    #101913;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.46);
  padding: 7px;
}

.workspace-context-menu strong {
  overflow: hidden;
  color: #fff7d7;
  font-size: 11px;
  font-weight: 920;
  line-height: 1.2;
  padding: 2px 4px 5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-context-menu button {
  min-height: 30px;
  border: 1px solid rgba(247, 244, 232, 0.1);
  border-radius: 6px;
  background: rgba(247, 244, 232, 0.045);
  color: rgba(247, 244, 232, 0.86);
  font-size: 11px;
  font-weight: 820;
  padding: 0 9px;
  text-align: left;
}

.workspace-context-menu button:hover,
.workspace-context-menu button:focus-visible {
  border-color: rgba(245, 196, 83, 0.46);
  background: rgba(245, 196, 83, 0.13);
  color: #fff7d7;
}

.workspace-context-menu button.danger {
  color: #ffb8b4;
}

.workspace-context-menu button.danger:hover,
.workspace-context-menu button.danger:focus-visible {
  border-color: rgba(255, 102, 95, 0.46);
  background: rgba(255, 102, 95, 0.14);
  color: #ffe2df;
}

.workspace-context-menu button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

.chat-context-menu {
  position: fixed;
  z-index: 80;
  left: min(max(8px, var(--chat-context-x, 8px)), calc(100vw - 304px));
  top: min(max(8px, var(--chat-context-y, 8px)), calc(100vh - 430px));
  display: grid;
  gap: 0;
  width: min(292px, calc(100vw - 16px));
  max-height: min(430px, calc(100vh - 16px));
  overflow: auto;
  border: 1px solid rgba(247, 244, 232, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(24, 31, 26, 0.98), rgba(12, 17, 13, 0.99)),
    #111812;
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.54);
  padding: 6px;
}

.chat-context-menu strong {
  overflow: hidden;
  color: rgba(255, 247, 215, 0.96);
  font-size: 11px;
  font-weight: 920;
  line-height: 1.2;
  padding: 3px 6px 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-context-section {
  display: grid;
  gap: 1px;
  padding: 6px 0;
}

.chat-context-section + .chat-context-section {
  border-top: 1px solid rgba(247, 244, 232, 0.12);
}

.chat-context-kicker {
  color: rgba(247, 244, 232, 0.58);
  font-size: 11px;
  font-weight: 760;
  line-height: 1.2;
  padding: 2px 8px 5px;
}

.chat-context-menu button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  align-items: center;
  gap: 12px;
  min-height: 30px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: rgba(247, 244, 232, 0.86);
  font-size: 11px;
  font-weight: 820;
  padding: 0 8px;
  text-align: left;
}

.chat-context-menu button span {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-context-menu button b {
  display: inline-grid;
  width: 12px;
  min-width: 12px;
  place-items: center;
  color: #7ff2da;
  font-size: 10px;
  font-weight: 920;
}

.chat-context-menu button em,
.chat-context-menu button small {
  color: rgba(247, 244, 232, 0.48);
  font-size: 11px;
  font-style: normal;
  font-weight: 740;
  white-space: nowrap;
}

.chat-context-menu button:hover,
.chat-context-menu button:focus-visible {
  border-color: rgba(245, 196, 83, 0.26);
  background: rgba(245, 196, 83, 0.12);
  color: #fff7d7;
}

.chat-context-menu button.danger {
  color: #ffb8b4;
}

.chat-context-menu button.danger:hover,
.chat-context-menu button.danger:focus-visible {
  border-color: rgba(255, 102, 95, 0.34);
  background: rgba(255, 102, 95, 0.12);
  color: #ffe2df;
}

.sidebar-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 28px;
  border-radius: 6px;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 620;
  padding: 0 9px;
  text-align: left;
}

.sidebar-item.active {
  background: rgba(135, 83, 201, 0.48);
  color: #fff;
}

.sidebar-item.locked {
  color: rgba(255, 255, 255, 0.5);
}

.session-item {
  min-height: 34px;
  padding-top: 5px;
  padding-bottom: 5px;
}

.session-row {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.session-row-header {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.session-title,
.session-latest {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.session-title {
  color: rgba(255, 255, 255, 0.88);
  font-weight: 760;
}

.session-health {
  flex: 0 0 auto;
  max-width: 82px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(76, 199, 192, 0.14);
  color: #9ff0ea;
  font-size: 9px;
  font-weight: 820;
  line-height: 1.4;
  padding: 1px 6px;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.session-health.blocked {
  background: rgba(255, 190, 96, 0.18);
  color: #ffd08a;
}

.sidebar-item.has-draft .session-title,
.sidebar-item.has-draft .session-latest {
  color: #ffd08a;
}

.draft-pill {
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  height: 18px;
  border: 1px solid rgba(255, 190, 96, 0.32);
  border-radius: 999px;
  background: rgba(255, 190, 96, 0.1);
  color: #ffd08a;
  font-size: 9px;
  font-weight: 950;
  line-height: 1;
  padding: 0 6px;
  text-transform: uppercase;
}

.session-summary {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 590;
  line-height: 1.2;
}

.workspace-sidebar .session-summary {
  display: none;
}

.session-summary span {
  min-width: 0;
}

.session-summary span:not(.session-latest) {
  flex: 0 1 auto;
  max-width: 74px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.session-summary span + span::before {
  content: "\\00b7";
  margin-right: 5px;
  color: rgba(255, 255, 255, 0.32);
}

.session-latest {
  flex: 1 1 auto;
}

.sidebar-item.active .session-title,
.sidebar-item.active .session-summary,
.sidebar-item.active .session-summary span + span::before {
  color: #fff;
}

.sidebar-item.active .session-health {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.sidebar-empty {
  padding: 8px 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.app-section-item {
  min-height: 34px;
}

.app-section-item > span:not(.session-row) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workflow-sidebar-items {
  display: grid;
  gap: 4px;
  margin-top: 5px;
}

.workflow-sidebar-item {
  grid-template-columns: 26px minmax(0, 1fr) max-content;
  min-height: 42px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.035);
  padding: 6px 8px;
}

.workflow-sidebar-item.active {
  border-color: rgba(135, 83, 201, 0.48);
  background: rgba(135, 83, 201, 0.3);
}

.workflow-sidebar-item .capability-icon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  font-size: 9px;
}

.workflow-sidebar-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.workflow-sidebar-copy strong,
.workflow-sidebar-copy small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workflow-sidebar-copy strong {
  color: #f6fbff;
  font-size: 12px;
  font-weight: 780;
}

.workflow-sidebar-copy small {
  color: rgba(214, 224, 238, 0.64);
  font-size: 9.5px;
  font-weight: 680;
}

.workflow-sidebar-status {
  overflow: hidden;
  max-width: 54px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(234, 240, 248, 0.78);
  font-size: 8px;
  font-weight: 900;
  line-height: 1;
  padding: 4px 5px;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.workflow-library-item {
  --workflow-accent: #77d9d2;
  --workflow-accent-soft: rgba(119, 217, 210, 0.12);
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 6px;
  width: 100%;
  min-height: 92px;
  border: 1px solid rgba(122, 142, 169, 0.16);
  border-left: 3px solid var(--workflow-accent);
  border-radius: 7px;
  background:
    linear-gradient(90deg, var(--workflow-accent-soft), rgba(255, 255, 255, 0.028) 48%),
    rgba(8, 12, 22, 0.42);
  padding: 8px 8px 8px 9px;
  color: inherit;
  text-align: left;
}

.workflow-library-item.runtime {
  --workflow-accent: #77d9d2;
  --workflow-accent-soft: rgba(119, 217, 210, 0.13);
}

.workflow-library-item.fanout {
  --workflow-accent: #74d6c9;
  --workflow-accent-soft: rgba(116, 214, 201, 0.13);
}

.workflow-library-item.orchestrator {
  --workflow-accent: #74d6c9;
  --workflow-accent-soft: rgba(116, 214, 201, 0.13);
}

.workflow-library-item.approval {
  --workflow-accent: #f0bf5f;
  --workflow-accent-soft: rgba(240, 191, 95, 0.14);
}

.workflow-library-item.triage {
  --workflow-accent: #f0bf5f;
  --workflow-accent-soft: rgba(240, 191, 95, 0.13);
}

.workflow-library-item.creative {
  --workflow-accent: #d98bd1;
  --workflow-accent-soft: rgba(217, 139, 209, 0.13);
}

.workflow-library-item.verification {
  --workflow-accent: #bba0f2;
  --workflow-accent-soft: rgba(187, 160, 242, 0.13);
}

.workflow-library-item.evaluator {
  --workflow-accent: #bba0f2;
  --workflow-accent-soft: rgba(187, 160, 242, 0.13);
}

.workflow-library-item.incident {
  --workflow-accent: #f07b67;
  --workflow-accent-soft: rgba(240, 123, 103, 0.13);
}

.workflow-library-item.investigation {
  --workflow-accent: #f07b67;
  --workflow-accent-soft: rgba(240, 123, 103, 0.13);
}

.workflow-library-item.people {
  --workflow-accent: #80d993;
  --workflow-accent-soft: rgba(128, 217, 147, 0.12);
}

.workflow-library-item.memory {
  --workflow-accent: #80d993;
  --workflow-accent-soft: rgba(128, 217, 147, 0.12);
}

.workflow-library-item.governance {
  --workflow-accent: #89a8f5;
  --workflow-accent-soft: rgba(137, 168, 245, 0.13);
}

.workflow-library-item.migration {
  --workflow-accent: #89a8f5;
  --workflow-accent-soft: rgba(137, 168, 245, 0.13);
}

.workflow-library-item.tournament {
  --workflow-accent: #d98bd1;
  --workflow-accent-soft: rgba(217, 139, 209, 0.13);
}

.workflow-library-item.routing {
  --workflow-accent: #9bb8c6;
  --workflow-accent-soft: rgba(155, 184, 198, 0.13);
}

.workflow-library-item.source {
  --workflow-accent: #9bb8c6;
  --workflow-accent-soft: rgba(155, 184, 198, 0.12);
}

.workflow-library-item.selected {
  background:
    linear-gradient(90deg, var(--workflow-accent-soft), rgba(135, 83, 201, 0.2) 68%),
    rgba(20, 18, 35, 0.78);
  border-color: color-mix(in srgb, var(--workflow-accent) 58%, rgba(255, 255, 255, 0.12));
}

.workflow-library-list-item {
  min-height: 104px;
  padding: 10px;
}

.workflow-library-item > span {
  min-width: 0;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
}

.workflow-library-topline,
.workflow-library-title-row,
.workflow-library-foot {
  display: flex;
  align-items: center;
  min-width: 0;
}

.workflow-library-topline {
  justify-content: space-between;
  gap: 7px;
}

.workflow-library-type,
.workflow-library-status {
  overflow: hidden;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
  padding: 4px 6px;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.workflow-library-type {
  max-width: 116px;
  background: var(--workflow-accent-soft);
  color: color-mix(in srgb, var(--workflow-accent) 80%, #fff);
}

.workflow-library-status {
  max-width: 72px;
  background: rgba(255, 255, 255, 0.075);
  color: #d8e2ec;
}

.workflow-library-item.status-draft .workflow-library-status {
  color: #b9c3d0;
}

.workflow-library-title-row {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 8px;
}

.workflow-library-mark {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid color-mix(in srgb, var(--workflow-accent) 45%, rgba(255, 255, 255, 0.1));
  border-radius: 7px;
  background: var(--workflow-accent-soft);
  color: color-mix(in srgb, var(--workflow-accent) 88%, #fff);
  font-size: 10px;
  font-weight: 950;
}

.workflow-library-title-block {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.workflow-library-title-block strong,
.workflow-library-title-block small,
.workflow-library-foot span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workflow-library-title-block strong {
  color: #f6fbff;
  font-size: 12px;
  font-weight: 880;
}

.workflow-library-title-block small {
  color: #aebbd0;
  font-size: 10px;
  font-weight: 720;
}

.workflow-library-progress {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 3px;
  min-width: 0;
}

.workflow-library-progress span {
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.11);
}

.workflow-library-progress span.filled {
  background: var(--workflow-accent);
}

.workflow-library-contract {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1fr);
  gap: 5px;
  min-width: 0;
}

.workflow-library-contract span {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.045);
  color: #c8d4e3;
  font-size: 9.5px;
  font-weight: 760;
  line-height: 1.15;
  padding: 4px 5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workflow-library-contract span:first-child {
  color: color-mix(in srgb, var(--workflow-accent) 62%, #f3f8ff);
}

.workflow-library-foot {
  gap: 5px;
  color: #9faec2;
  font-size: 9.5px;
  font-weight: 780;
}

.workflow-library-foot span {
  flex: 0 1 auto;
  max-width: 86px;
}

.workflow-library-foot span:last-child {
  flex: 1 1 auto;
  max-width: none;
  color: color-mix(in srgb, var(--workflow-accent) 58%, #c9d4e2);
}

.dm-name {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
}

.dm-name::before {
  content: "";
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--green);
}

.main-area {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: rgba(9, 14, 21, 0.64);
}

.semantic-tasker-view {
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.tab-panel {
  display: none;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

body[data-active-tab="chat"] .chat-panel,
body[data-active-tab="hr"] .hr-panel,
body[data-active-tab="workflow"] .workflow-panel {
  display: grid;
}

.panel-surface {
  min-width: 0;
  min-height: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(21, 27, 38, 0.94);
  box-shadow: var(--shadow);
}

.chat-panel {
  grid-template-columns: minmax(0, 1fr) 300px;
}

.chat-panel.info-closed {
  grid-template-columns: minmax(0, 1fr);
}

.chat-panel.info-closed .chat-main {
  border-right: 0;
}

.chat-main {
  display: grid;
  grid-template-rows: minmax(50px, auto) auto minmax(0, 1fr) minmax(76px, auto);
  min-width: 0;
  min-height: 0;
  border-right: 1px solid var(--line);
  background: rgba(16, 22, 31, 0.96);
  contain: layout style;
}

.chat-main.has-loop-summary,
.chat-main.has-accountability-summary,
.chat-main.has-loop-summary.has-accountability-summary {
  grid-template-rows: minmax(50px, auto) auto minmax(0, 1fr) minmax(76px, auto);
}

.messenger-card {
  min-width: 0;
  min-height: 0;
}

.channel-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  align-items: stretch;
  gap: 8px 10px;
  min-width: 0;
  min-height: 64px;
  border-bottom: 1px solid var(--line);
  padding: 8px 12px 6px 16px;
}

.channel-header-main {
  display: grid;
  align-content: center;
  gap: 6px;
  min-width: 0;
}

.channel-title {
  display: grid;
  grid-template-columns: minmax(0, max-content) max-content;
  align-items: center;
  min-width: 0;
  gap: 3px 8px;
}

.channel-title h2 {
  margin: 0;
  min-width: 0;
  overflow: hidden;
  color: #fff;
  font-size: 18px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.channel-title span {
  grid-column: 1 / -1;
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-sync-pill {
  display: inline-flex;
  align-items: center;
  height: 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted-2);
  font-size: 10px;
  font-weight: 850;
  line-height: 1;
  padding: 0 8px;
  white-space: nowrap;
}

.chat-sync-pill.synced {
  border-color: rgba(106, 211, 145, 0.35);
  color: #9de6bb;
}

.chat-sync-pill.syncing {
  border-color: rgba(98, 190, 214, 0.38);
  color: #9bdce7;
}

.chat-sync-pill.error {
  border-color: rgba(255, 183, 107, 0.42);
  color: #ffd08a;
}

.channel-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 1px;
  scrollbar-width: none;
}

.channel-tabs::-webkit-scrollbar {
  display: none;
}

.channel-tab {
  appearance: none;
  display: grid;
  align-content: center;
  flex: 0 0 auto;
  min-width: 72px;
  max-width: 132px;
  min-height: 26px;
  border: 1px solid rgba(84, 105, 133, 0.42);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.028);
  color: #dbe3ec;
  cursor: pointer;
  font: inherit;
  padding: 3px 7px;
  text-align: left;
}

.channel-tab:hover,
.channel-tab:focus-visible {
  border-color: rgba(148, 184, 225, 0.54);
  background: rgba(255, 255, 255, 0.06);
  outline: none;
}

.channel-tab b,
.channel-tab small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.channel-tab b {
  color: #edf2f7;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.1;
}

.channel-tab small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  line-height: 1.15;
}

.channel-tab.active {
  border-color: rgba(76, 199, 192, 0.46);
  background: rgba(76, 199, 192, 0.1);
}

.channel-tab.details {
  cursor: pointer;
}

.room-control-strip {
  grid-column: 2;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 7px;
  min-width: 0;
}

.room-control-chip {
  display: grid;
  align-content: center;
  flex: 1 1 112px;
  min-width: 0;
  max-width: 210px;
  min-height: 34px;
  border: 1px solid rgba(84, 105, 133, 0.68);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.035);
  padding: 4px 8px;
}

.room-control-chip b,
.room-control-chip small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.room-control-chip b {
  color: #eef5fb;
  font-size: 10px;
  font-weight: 950;
  line-height: 1.1;
  text-transform: uppercase;
}

.room-control-chip small {
  color: #9aacbf;
  font-size: 9.5px;
  font-weight: 760;
  line-height: 1.25;
}

.room-control-chip.blocked {
  border-color: rgba(255, 183, 107, 0.5);
  background: rgba(255, 183, 107, 0.11);
}

.room-control-chip.blocked b {
  color: #ffd99a;
}

.room-control-chip.clear {
  border-color: rgba(106, 211, 145, 0.34);
  background: rgba(106, 211, 145, 0.08);
}

.chat-meta-stack {
  display: grid;
  align-content: start;
  min-width: 0;
  max-height: 72px;
  overflow-x: hidden;
  overflow-y: auto;
  border-bottom: 1px solid rgba(84, 105, 133, 0.22);
  background: rgba(7, 13, 22, 0.3);
  contain: layout style;
  scrollbar-width: thin;
}

.chat-meta-stack:empty {
  display: none;
}

.chat-source-of-truth-strip {
  grid-column: 1 / -1;
  flex-wrap: wrap;
  justify-content: flex-start;
  overflow: visible;
  row-gap: 6px;
  border-bottom: 0;
  padding: 4px 12px 5px;
  scrollbar-width: none;
}

.chat-source-of-truth-strip::-webkit-scrollbar {
  display: none;
}

.chat-ledger-chip {
  flex: 1 1 122px;
  max-width: none;
}

.chat-ledger-chip.summary {
  flex-basis: 190px;
  max-width: none;
}

.chat-ledger-chip.accountability {
  border-color: rgba(76, 199, 192, 0.45);
  background: rgba(76, 199, 192, 0.09);
}

.room-control-chip.artifacts {
  border-color: rgba(92, 190, 232, 0.28);
  background: rgba(92, 190, 232, 0.07);
}

.room-control-chip.clear b {
  color: #a8e8c0;
}

.header-actions {
  grid-column: 2;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  justify-content: flex-end;
  justify-self: end;
  gap: 5px;
  max-width: 300px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.header-actions::-webkit-scrollbar {
  display: none;
}

.header-actions button,
.small-action {
  min-width: 44px;
  min-height: 34px;
  border-radius: 6px;
  background: transparent;
  color: #dbe3ec;
  font-size: 11px;
  font-weight: 850;
  padding: 0 10px;
}

.header-actions .primary-action,
.header-actions button.active,
.messenger-loop-actions .primary-action {
  border-color: rgba(76, 199, 192, 0.34);
  background: rgba(76, 199, 192, 0.15);
  color: #c7f5ef;
}

.messenger-loop-status {
  display: grid;
  grid-template-columns: minmax(168px, 0.72fr) minmax(0, 1.4fr);
  gap: 10px 12px;
  min-width: 0;
  border-bottom: 1px solid rgba(54, 74, 99, 0.86);
  background: rgba(9, 15, 25, 0.74);
  padding: 12px 16px;
}

.messenger-loop-status.completed {
  background: linear-gradient(90deg, rgba(76, 199, 192, 0.11), rgba(9, 15, 25, 0.76));
}

.messenger-loop-status.failed {
  background: linear-gradient(90deg, rgba(255, 112, 91, 0.12), rgba(9, 15, 25, 0.78));
}

.messenger-loop-head,
.messenger-loop-main > div:first-child,
.messenger-loop-actions {
  min-width: 0;
}

.messenger-loop-head {
  display: grid;
  align-content: center;
  gap: 3px;
}

.messenger-loop-head span,
.messenger-loop-main small,
.messenger-loop-stage small,
.messenger-loop-metrics small {
  overflow: hidden;
  color: #8ea4bf;
  font-size: 10px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.messenger-loop-head strong {
  color: #f3f8ff;
  font-size: 15px;
  font-weight: 900;
}

.messenger-loop-head em {
  width: max-content;
  max-width: 100%;
  border: 1px solid rgba(76, 199, 192, 0.28);
  border-radius: 999px;
  color: #a6eee8;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
  padding: 5px 7px;
}

.messenger-loop-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(274px, max-content);
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.messenger-loop-main b {
  display: block;
  overflow: hidden;
  color: #eaf2fb;
  font-size: 12px;
  line-height: 1.28;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.messenger-loop-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(64px, 1fr));
  gap: 6px;
  min-width: 0;
}

.messenger-loop-metrics span {
  display: grid;
  gap: 2px;
  min-width: 0;
  border: 1px solid rgba(122, 142, 169, 0.18);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.045);
  padding: 7px 8px;
}

.messenger-loop-metrics b {
  color: #f6fbff;
  font-size: 11px;
  font-weight: 900;
}

.messenger-loop-metrics .implementation-evidence small,
.messenger-workforce-evidence .implementation-evidence small,
.workflow-loop-evidence .implementation-evidence small {
  overflow: visible;
  line-height: 1.2;
  text-overflow: clip;
  white-space: normal;
}

.messenger-loop-stages {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(9, minmax(52px, 1fr));
  gap: 5px;
  min-width: 0;
}

.messenger-loop-stage {
  display: grid;
  gap: 2px;
  min-width: 0;
  border: 1px solid rgba(122, 142, 169, 0.18);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.035);
  padding: 6px 7px;
}

.messenger-loop-stage.done {
  border-color: rgba(76, 199, 192, 0.28);
  background: rgba(76, 199, 192, 0.09);
}

.messenger-loop-stage.active {
  border-color: rgba(224, 179, 65, 0.42);
  background: rgba(224, 179, 65, 0.1);
}

.messenger-loop-stage.failed {
  border-color: rgba(255, 112, 91, 0.42);
  background: rgba(255, 112, 91, 0.1);
}

.messenger-loop-stage b {
  overflow: hidden;
  color: #e4edf5;
  font-size: 10px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.messenger-loop-actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 8px;
}

.messenger-loop-actions button {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.055);
  color: #e8eff7;
  font-size: 11px;
  font-weight: 850;
  padding: 0 9px;
}

.messenger-loop-actions code {
  min-width: 0;
  overflow: hidden;
  color: #90a8c1;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.messenger-thread {
  min-width: 0;
  min-height: 0;
  overflow: auto;
  contain: layout paint style;
  padding: 18px 22px 22px;
}

.chat-main.utility-open .messenger-thread {
  padding: 14px 18px 18px;
}

.chat-utility-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 14px;
  min-width: 0;
  min-height: 100%;
}

.chat-utility-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(153, 170, 196, 0.16);
  padding: 2px 0 13px;
}

.chat-utility-header h3 {
  margin: 0;
  color: #f2f6f1;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.2;
}

.chat-utility-header p {
  margin: 3px 0 0;
  color: #a7b6aa;
  font-size: 12px;
  line-height: 1.35;
}

.chat-utility-return,
.chat-utility-card button {
  appearance: none;
  border: 1px solid rgba(121, 143, 123, 0.4);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.035);
  color: #edf4ea;
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 900;
  padding: 7px 10px;
  white-space: nowrap;
}

.chat-utility-return:hover,
.chat-utility-return:focus-visible,
.chat-utility-card button:hover,
.chat-utility-card button:focus-visible {
  border-color: rgba(76, 199, 192, 0.58);
  background: rgba(76, 199, 192, 0.1);
  outline: none;
}

.chat-utility-list {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
}

.chat-utility-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-width: 0;
  border: 1px solid rgba(82, 105, 90, 0.48);
  border-radius: 8px;
  background: rgba(14, 33, 24, 0.78);
  padding: 12px 13px;
}

.chat-utility-card-main {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.chat-utility-kicker,
.chat-utility-meta {
  color: #98cfc3;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.chat-utility-card h4 {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: #f7f1cf;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-utility-card p {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: #b6c3b4;
  font-size: 12px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-card {
  grid-template-columns: minmax(0, 1fr) minmax(72px, auto);
}

.chat-utility-meta {
  justify-self: end;
  max-width: 180px;
  overflow: hidden;
  color: #b4c8bd;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-transform: none;
}

.chat-utility-empty {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 7px;
  min-height: 220px;
  border: 1px dashed rgba(125, 145, 126, 0.38);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.018);
  padding: 24px;
}

.chat-utility-empty h4,
.chat-utility-empty p {
  margin: 0;
}

.chat-utility-empty h4 {
  color: #f3eccb;
  font-size: 14px;
  font-weight: 900;
}

.chat-utility-empty p {
  max-width: 520px;
  color: #a5b2a5;
  font-size: 12px;
  line-height: 1.45;
}

.workspace-empty-state {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 9px;
  min-width: 0;
  min-height: 0;
  padding: 24px;
  text-align: center;
}

.workspace-empty-kicker {
  border: 1px solid rgba(76, 199, 192, 0.24);
  border-radius: 999px;
  background: var(--teal-soft);
  color: #9ff0ea;
  font-size: 10px;
  font-weight: 950;
  line-height: 1;
  padding: 6px 9px;
  text-transform: uppercase;
}

.workspace-empty-state h2,
.workspace-empty-state p {
  margin: 0;
}

.workspace-empty-state h2 {
  max-width: 520px;
  color: #fff;
  font-size: 18px;
  font-weight: 880;
  line-height: 1.2;
}

.workspace-empty-state p {
  max-width: 520px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.48;
}

.workspace-empty-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 1px;
}

.empty-action {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.055);
  color: #edf5ff;
  font-size: 12px;
  font-weight: 900;
  padding: 0 12px;
}

.empty-action.primary {
  border-color: rgba(76, 199, 192, 0.42);
  background: rgba(76, 199, 192, 0.18);
  color: #b9f2ed;
}

.chat-empty-state {
  min-height: 100%;
}

.messenger-message {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  margin-bottom: 17px;
}

.messenger-message.latest-loop-message {
  border-radius: 8px;
  background: rgba(76, 199, 192, 0.055);
  box-shadow: 0 0 0 1px rgba(76, 199, 192, 0.18);
  padding: 8px;
}

.message-avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 7px;
  background: linear-gradient(135deg, #d7c6ff, #8753c9);
  color: #1d0e29;
  font-size: 12px;
  font-weight: 950;
}

.messenger-message.human .message-avatar {
  background: linear-gradient(135deg, #ead6bd, #a96f50);
  color: #24130d;
}

.message-body {
  position: relative;
  min-width: 0;
}

.messenger-message.agent .message-body {
  max-width: min(860px, 100%);
}

.message-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
  margin-bottom: 5px;
}

.message-meta strong {
  color: #fff;
  font-size: 13px;
  font-weight: 850;
}

.message-meta time {
  color: var(--muted-2);
  font-size: 11px;
}

.message-action-bar {
  position: absolute;
  top: -7px;
  right: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 2px;
  min-height: 28px;
  border: 1px solid rgba(222, 231, 242, 0.14);
  border-radius: 7px;
  background: rgba(18, 24, 33, 0.98);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.32);
  opacity: 0;
  padding: 2px;
  transform: translateY(-2px);
  transition: opacity 140ms ease, transform 140ms ease;
}

.messenger-message:hover .message-action-bar,
.messenger-message:focus-within .message-action-bar {
  opacity: 1;
  transform: translateY(0);
}

.message-action-bar button {
  min-width: 44px;
  min-height: 24px;
  border-radius: 5px;
  background: transparent;
  color: #c8d3df;
  font-size: 10px;
  font-weight: 900;
  padding: 0 7px;
}

.message-action-bar button:hover,
.message-action-bar button:focus-visible {
  background: rgba(255, 255, 255, 0.075);
  color: #fff;
  outline: 1px solid rgba(255, 255, 255, 0.12);
}

.message-action-bar button:disabled {
  cursor: not-allowed;
  opacity: 0.44;
}

.message-thread-parent {
  display: grid;
  grid-template-columns: max-content max-content minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  max-width: 760px;
  min-height: 24px;
  margin: -1px 0 7px;
  border-left: 2px solid rgba(255, 190, 96, 0.62);
  color: var(--muted);
  font-size: 11px;
  padding-left: 8px;
}

.message-thread-parent span {
  color: #ffd08a;
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.message-thread-parent strong,
.message-thread-parent small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.message-thread-parent strong {
  color: #f4f8fc;
  font-size: 11px;
  font-weight: 900;
}

.message-thread-parent small {
  color: var(--muted);
}

.app-badge,
.message-provenance-badge,
.status-badge {
  display: inline-grid;
  place-items: center;
  min-height: 17px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.12);
  color: #dfe7ef;
  font-size: 9px;
  font-weight: 950;
  line-height: 1;
  padding: 0 5px;
}

.message-provenance-badge.server-rule {
  border: 1px solid rgba(245, 197, 107, 0.45);
  background: rgba(245, 197, 107, 0.13);
  color: #ffe0a3;
}

.message-provenance-badge.worker-dispatched {
  border: 1px solid rgba(76, 199, 192, 0.5);
  background: rgba(76, 199, 192, 0.16);
  color: #b9f2ed;
}

.message-provenance-badge.local-pending,
.message-provenance-badge.local-failed {
  border: 1px solid rgba(255, 183, 107, 0.45);
  background: rgba(255, 183, 107, 0.13);
  color: #ffdda4;
}

.message-provenance-badge.local-failed {
  border-color: rgba(241, 111, 105, 0.55);
  background: rgba(241, 111, 105, 0.16);
  color: #ffc5c0;
}

.status-badge {
  border-radius: 999px;
  color: #b9f6dc;
  background: rgba(53, 192, 131, 0.16);
  font-size: 10px;
}

.status-badge.idle {
  color: #c6d0dc;
  background: rgba(255, 255, 255, 0.09);
}

.status-badge.draft {
  color: #ffd985;
  background: var(--yellow-soft);
}

.status-badge.blocked {
  color: #ffc5c0;
  background: rgba(241, 111, 105, 0.18);
}

.status-badge.unknown {
  color: #ffd985;
  background: var(--yellow-soft);
}

.status-badge.waiting {
  color: #cfe0f0;
  background: rgba(255, 255, 255, 0.1);
}

.status-badge.ready,
.status-badge.pass {
  color: #b9f6dc;
  background: rgba(53, 192, 131, 0.16);
}

.message-copy {
  display: grid;
  gap: 8px;
  max-width: 860px;
  color: #dce3eb;
  overflow-wrap: anywhere;
}

.message-copy p,
.message-body p {
  margin: 0;
  color: #dce3eb;
  font-size: 13px;
  line-height: 1.58;
  white-space: pre-wrap;
}

.message-copy h4 {
  margin: 4px 0 -1px;
  color: #f4f8fc;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.04em;
  line-height: 1.25;
  text-transform: uppercase;
}

.message-copy ul {
  display: grid;
  gap: 5px;
  margin: 0;
  padding: 0 0 0 18px;
}

.message-copy li {
  color: #dce3eb;
  font-size: 13px;
  line-height: 1.5;
  padding-left: 2px;
}

.message-copy li::marker {
  color: #83d7cf;
}

.message-copy.structured-feedback {
  gap: 9px;
}

.messenger-message.hr-agent-design-feedback .message-copy {
  border-left: 2px solid rgba(76, 199, 192, 0.38);
  padding-left: 12px;
}

.message-design-summary {
  display: grid;
  gap: 6px;
  margin-top: 2px;
}

.message-design-summary span {
  color: var(--muted-2);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.message-design-summary div {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.message-design-summary b {
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: #d8e1eb;
  font-size: 10px;
  font-weight: 760;
  line-height: 1;
  padding: 5px 7px;
}

.mention {
  color: #f5cf72;
  font-weight: 850;
}

.channel-mention-token {
  color: #ffd08a;
  font-weight: 950;
}

.accountability-summary-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
  border-bottom: 1px solid rgba(84, 105, 133, 0.26);
  background: rgba(255, 255, 255, 0.025);
  padding: 7px 14px;
}

.accountability-summary-label {
  flex: 0 0 auto;
  color: #9aacbf;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.accountability-summary-source {
  flex: 0 0 auto;
  min-width: 0;
  overflow: hidden;
  color: #6f8197;
  font-size: 10px;
  font-weight: 850;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.accountability-summary-list {
  display: flex;
  flex: 1 1 360px;
  flex-wrap: wrap;
  gap: 7px;
  min-width: 0;
  overflow: visible;
}

.accountability-summary-item {
  display: grid;
  flex: 1 1 112px;
  min-width: 104px;
  max-width: 220px;
  border: 1px solid rgba(84, 105, 133, 0.46);
  border-radius: 7px;
  background: rgba(8, 13, 22, 0.38);
  padding: 5px 7px;
}

.accountability-summary-item b,
.accountability-summary-item small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.accountability-summary-item b {
  color: #eef5fb;
  font-size: 10px;
  font-weight: 900;
}

.accountability-summary-item small {
  color: #9aacbf;
  font-size: 10px;
}

.chat-meta-stack > .accountability-summary-strip,
.chat-main > .accountability-summary-strip {
  align-self: start;
  flex-wrap: nowrap;
  max-height: 34px;
  overflow: hidden;
  border-bottom: 0;
  padding: 4px 12px 5px;
}

.chat-meta-stack > .accountability-summary-strip .accountability-summary-list,
.chat-main > .accountability-summary-strip .accountability-summary-list {
  flex: 1 1 auto;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}

.chat-meta-stack > .accountability-summary-strip .accountability-summary-list::-webkit-scrollbar,
.chat-main > .accountability-summary-strip .accountability-summary-list::-webkit-scrollbar {
  display: none;
}

.chat-meta-stack > .accountability-summary-strip .accountability-summary-item,
.chat-main > .accountability-summary-strip .accountability-summary-item {
  flex: 0 0 118px;
  max-width: 150px;
  padding: 4px 7px;
}

.messenger-message {
  content-visibility: auto;
  contain-intrinsic-size: 96px;
}

.attachment-card {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 9px;
  width: min(420px, 100%);
  max-width: 100%;
  min-height: 54px;
  margin-top: 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.045);
  padding: 9px;
}

.attachment-card.has-preview {
  width: min(640px, 100%);
  border-color: rgba(138, 185, 238, 0.34);
  background: rgba(138, 185, 238, 0.07);
}

.file-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 6px;
  background: #e7edf5;
  color: #1a2230;
  font-size: 10px;
  font-weight: 950;
}

.attachment-content {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.attachment-card strong,
.attachment-card span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attachment-card strong {
  color: #fff;
  font-size: 12px;
}

.attachment-card span {
  color: var(--muted);
  font-size: 11px;
}

.attachment-preview {
  display: grid;
  min-width: 0;
  max-height: 142px;
  overflow: hidden;
  border: 1px solid rgba(84, 105, 133, 0.32);
  border-radius: 7px;
  background: rgba(7, 10, 8, 0.44);
  margin-top: 4px;
  padding: 6px 0;
}

.attachment-preview-line {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: baseline;
  min-width: 0;
  gap: 10px;
  padding: 0 10px 0 0;
}

.attachment-preview-line b {
  color: rgba(185, 195, 170, 0.58);
  font-size: 11px;
  font-weight: 700;
  text-align: right;
  user-select: none;
}

.attachment-preview-line code {
  min-width: 0;
  overflow: hidden;
  color: #d8e4ff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11.5px;
  line-height: 1.55;
  text-overflow: ellipsis;
  white-space: pre;
}

.decision-trace-card,
.handoff-trace-card,
.working-group-trace-card {
  width: min(620px, 100%);
  margin-top: 10px;
  border: 1px solid rgba(92, 190, 232, 0.24);
  border-radius: 8px;
  background: rgba(9, 18, 29, 0.72);
  padding: 11px;
}

.decision-trace-card {
  border-color: rgba(255, 190, 96, 0.34);
  background: rgba(37, 28, 15, 0.46);
}

.decision-trace-header,
.handoff-trace-header,
.working-group-trace-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 5px 8px;
  align-items: center;
  margin-bottom: 9px;
}

.decision-source {
  grid-row: span 2;
  display: inline-grid;
  place-items: center;
  min-height: 24px;
  border-radius: 6px;
  background: rgba(124, 92, 255, 0.24);
  color: #d9ceff;
  font-size: 9px;
  font-weight: 950;
  letter-spacing: 0;
  padding: 0 7px;
  text-transform: uppercase;
}

.decision-trace-header strong,
.handoff-trace-header strong,
.working-group-trace-header strong {
  min-width: 0;
  overflow: hidden;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.decision-trace-header small,
.handoff-trace-header small,
.working-group-trace-header small {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.decision-trace-grid {
  display: grid;
  gap: 8px;
  margin: 0;
}

.decision-trace-grid div {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.decision-trace-grid dt {
  color: #ffd08a;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.35;
  text-transform: uppercase;
}

.decision-trace-grid dd,
.handoff-trace-card p {
  margin: 0;
  color: #dce3eb;
  font-size: 12px;
  line-height: 1.4;
}

.decision-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.decision-action {
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.055);
  color: #dfe7ef;
  font-size: 11px;
  font-weight: 850;
  padding: 0 9px;
}

.decision-action.primary {
  border-color: rgba(255, 190, 96, 0.42);
  background: rgba(255, 190, 96, 0.16);
  color: #ffe0a6;
}

.handoff-trace-card {
  border-color: rgba(92, 190, 232, 0.28);
}

.handoff-chat-route {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin: 0 0 9px;
}

.handoff-chat-route dt,
.handoff-chat-route dd {
  min-width: 0;
  margin: 0;
}

.handoff-chat-route dt {
  color: #8fcde1;
  font-size: 9px;
  font-weight: 950;
  text-transform: uppercase;
}

.handoff-chat-route dd {
  overflow: hidden;
  color: #dff8ff;
  font-size: 11px;
  font-weight: 780;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.working-group-trace-card {
  border-color: rgba(105, 224, 199, 0.26);
  background: rgba(9, 27, 30, 0.58);
}

.working-group-trace-card .decision-source {
  background: rgba(105, 224, 199, 0.16);
  color: #baf8ea;
}

.working-group-trace-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin-top: 9px;
}

.working-group-trace-metrics span {
  display: grid;
  min-width: 0;
  min-height: 46px;
  align-content: center;
  border: 1px solid rgba(105, 224, 199, 0.16);
  border-radius: 7px;
  background: rgba(105, 224, 199, 0.055);
  padding: 7px 8px;
}

.working-group-trace-metrics b {
  color: #e5fff8;
  font-size: 15px;
  font-weight: 950;
}

.working-group-trace-metrics small {
  min-width: 0;
  overflow: hidden;
  color: #9cd6ca;
  font-size: 10px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.working-group-stage-list {
  display: grid;
  gap: 6px;
  margin: 9px 0 0;
  padding: 0;
}

.working-group-stage-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.035);
  color: #dce7e6;
  list-style: none;
  padding: 5px 8px;
}

.working-group-stage-list strong,
.working-group-stage-list span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.working-group-stage-list strong {
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}

.working-group-stage-list span {
  color: #9fb3b5;
  font-size: 10px;
  font-weight: 760;
}

.handoff-atom-summary {
  display: grid;
  gap: 7px;
  margin-top: 9px;
  border: 1px solid rgba(92, 190, 232, 0.16);
  border-radius: 7px;
  background: rgba(92, 190, 232, 0.055);
  padding: 8px;
}

.handoff-atom-summary > strong {
  color: #dff8ff;
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.handoff-atom-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
}

.handoff-atom-row > span {
  color: #8fcde1;
  font-size: 10px;
  font-weight: 900;
}

.handoff-atom-row > div {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  gap: 5px;
}

.handoff-atom-row em {
  max-width: 100%;
  min-height: 20px;
  overflow: hidden;
  border: 1px solid rgba(92, 190, 232, 0.2);
  border-radius: 999px;
  background: rgba(10, 35, 52, 0.72);
  color: #b9edf8;
  font-size: 10px;
  font-style: normal;
  font-weight: 820;
  line-height: 18px;
  padding: 0 7px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.handoff-artifact {
  display: inline-flex;
  max-width: 100%;
  min-height: 24px;
  margin-top: 8px;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(92, 190, 232, 0.2);
  border-radius: 6px;
  background: rgba(92, 190, 232, 0.09);
  color: #aee7f7;
  font-size: 11px;
  font-weight: 780;
  padding: 0 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.runtime-handoff-evidence {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  width: min(620px, 100%);
  margin-top: 8px;
}

.runtime-event-card {
  display: grid;
  gap: 8px;
  width: min(620px, 100%);
  margin-top: 10px;
  border: 1px solid rgba(105, 224, 199, 0.24);
  border-radius: 8px;
  background: rgba(8, 34, 34, 0.6);
  padding: 11px;
}

.runtime-event-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 5px 8px;
  align-items: center;
}

.runtime-event-header strong,
.runtime-event-header small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.runtime-event-header strong {
  color: #f0fffb;
  font-size: 12px;
  font-weight: 900;
}

.runtime-event-header small {
  color: #9fd6ce;
  font-size: 11px;
  font-weight: 720;
}

.runtime-event-chip-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.runtime-event-chip-row span {
  display: grid;
  min-width: 0;
  min-height: 38px;
  align-content: center;
  border: 1px solid rgba(105, 224, 199, 0.16);
  border-radius: 6px;
  background: rgba(5, 20, 24, 0.44);
  padding: 6px 8px;
}

.runtime-event-chip-row b,
.runtime-event-chip-row small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.runtime-event-chip-row b {
  color: #9ef0dc;
  font-size: 9px;
  font-weight: 950;
  text-transform: uppercase;
}

.runtime-event-chip-row small {
  color: #e8fff9;
  font-size: 10px;
  font-weight: 820;
}

.runtime-event-card p {
  margin: 0;
  overflow-wrap: anywhere;
  color: #dcebe8;
  font-size: 12px;
  line-height: 1.4;
}

.runtime-handoff-evidence span {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 6px;
  align-items: center;
  max-width: 100%;
  min-height: 24px;
  border: 1px solid rgba(105, 224, 199, 0.2);
  border-radius: 6px;
  background: rgba(8, 34, 34, 0.68);
  padding: 0 8px;
}

.runtime-handoff-evidence b,
.runtime-handoff-evidence small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.runtime-handoff-evidence b {
  color: #9ef0dc;
  font-size: 9px;
  font-weight: 950;
  text-transform: uppercase;
}

.runtime-handoff-evidence small {
  color: #e8fff9;
  font-size: 10px;
  font-weight: 820;
}

.reaction-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 8px;
}

.reaction-row span {
  min-height: 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: #d8e1eb;
  font-size: 11px;
  font-weight: 760;
  padding: 3px 8px;
}

.message-provenance {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 8px;
  margin-top: 8px;
  max-width: 860px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #dfe7ef;
  font-size: 11px;
  line-height: 1.35;
  padding: 0;
}

.message-provenance.server-rule {
  border-color: transparent;
  background: transparent;
}

.message-provenance.worker-dispatched {
  border-color: transparent;
  background: transparent;
}

.message-provenance.local-pending span {
  color: #ffdda4;
}

.message-provenance.local-failed span {
  color: #ffc5c0;
}

.message-provenance span {
  color: #ffe0a3;
  font-weight: 850;
}

.message-provenance small {
  color: var(--muted-2);
  font-size: 10px;
  line-height: 1.35;
}

.composer {
  display: grid;
  grid-template-rows: minmax(44px, 1fr) 44px;
  min-width: 0;
  border-top: 1px solid var(--line);
  padding: 8px 16px;
}

.chat-reply-target {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 34px;
  margin-bottom: 7px;
  border: 1px solid rgba(255, 190, 96, 0.2);
  border-radius: 7px;
  background: rgba(255, 190, 96, 0.075);
  color: #f5e6c9;
  padding: 6px 8px;
}

.chat-reply-target span,
.chat-reply-target small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-reply-target span {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 7px;
  align-items: center;
  font-size: 11px;
  font-weight: 760;
}

.chat-reply-target strong {
  color: #ffd08a;
}

.chat-reply-target small {
  grid-column: 1 / -1;
  color: #d4c7ad;
  font-size: 10px;
}

.chat-reply-target button {
  min-width: 44px;
  min-height: 26px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.06);
  color: #f4e7d0;
  font-size: 10px;
  font-weight: 900;
  padding: 0 8px;
}

.composer-input {
  display: block;
  width: 100%;
  height: 44px;
  max-height: 132px;
  min-width: 0;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  color: #e7edf5;
  font-size: 13px;
  line-height: 1.35;
  outline: none;
  overflow: auto;
  padding: 11px 12px;
  resize: none;
  scrollbar-width: thin;
}

.composer-input::placeholder {
  color: var(--muted);
  opacity: 1;
}

.composer-input:focus {
  border-color: rgba(135, 83, 201, 0.62);
  box-shadow: 0 0 0 2px rgba(135, 83, 201, 0.16);
}

.composer-toolbar {
  display: grid;
  grid-template-columns: minmax(145px, max-content) minmax(120px, 1fr) max-content max-content;
  align-items: end;
  gap: 12px;
  color: var(--muted-2);
  font-size: 12px;
}

.composer-persona {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.composer-persona-empty {
  align-self: center;
  color: var(--muted-2);
  font-size: 11px;
  font-weight: 850;
}

.composer-persona > span {
  flex: 0 0 auto;
  color: var(--muted-2);
  font-size: 10.5px;
  font-weight: 800;
}

.composer-persona select {
  min-width: 0;
  max-width: 184px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.055);
  color: #dfe8f1;
  font-size: 11px;
  font-weight: 800;
  padding: 0 24px 0 8px;
}

.composer-status-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.composer-status {
  align-self: center;
  min-width: 0;
  overflow: hidden;
  color: #9aacbf;
  font-size: 10.5px;
  font-weight: 780;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.composer-count {
  color: var(--muted-2);
  font-size: 10px;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
}

.composer-count.near-limit {
  color: #ffd08a;
}

.composer-count.over-limit {
  color: #ffc5c0;
}

.composer-status.ready {
  color: #9de6bb;
}

.composer-status.syncing {
  color: #9bdce7;
}

.composer-status.error {
  color: #ffd08a;
}

.composer-icons {
  display: flex;
  justify-self: start;
  gap: 6px;
}

.composer-icons button {
  min-width: 44px;
  height: 44px;
  border-radius: 5px;
  background: transparent;
  color: var(--muted-2);
  font-size: 11px;
  font-weight: 900;
  padding: 0 5px;
}

.composer-icons button:hover,
.composer-icons button:focus-visible {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.send-button {
  width: 58px;
  height: 44px;
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
  font-weight: 900;
}

.send-button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

.info-panel {
  min-width: 0;
  min-height: 0;
  overflow: auto;
  background: rgba(17, 23, 32, 0.98);
  padding: 18px 16px 20px;
}

.info-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.info-header h3 {
  margin: 0;
  color: #fff;
  font-size: 14px;
}

.info-section {
  border-top: 1px solid var(--line);
  padding: 15px 0;
}

.info-section:first-of-type {
  border-top: 0;
}

.info-section h4 {
  margin: 0 0 7px;
  color: #fff;
  font-size: 12px;
}

.info-ledger-section {
  display: grid;
  gap: 8px;
}

.info-ledger-section .chat-source-of-truth-strip,
.info-ledger-section .accountability-summary-strip {
  display: grid;
  gap: 6px;
  max-height: none;
  overflow: visible;
  border: 1px solid rgba(84, 105, 133, 0.28);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.025);
  padding: 8px;
}

.info-ledger-section .room-control-chip,
.info-ledger-section .accountability-summary-item {
  max-width: none;
  min-height: 30px;
}

.info-ledger-section .accountability-summary-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
}

.info-section p,
.info-section li {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.member-stack,
.integration-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.member-chip {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 6px;
  background: #d9c0a7;
  color: #20140f;
  font-size: 10px;
  font-weight: 900;
}

.member-chip.more {
  background: rgba(255, 255, 255, 0.12);
  color: #e4ebf2;
}

.pin-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.state-list {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.state-list li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 6px;
}

.state-list strong {
  overflow: hidden;
  color: #fff;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pin-list li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pin-list li::before {
  content: "DOC";
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.11);
  color: #dce5ef;
  font-size: 8px;
  font-weight: 950;
}

.integration {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 6px;
  background: #e8edf3;
  color: #1c2430;
  font-size: 12px;
  font-weight: 950;
}

.hr-panel {
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
}

.hr-panel.hr-agent-editor-managed {
  grid-template-columns: minmax(0, 1fr);
}

.hr-list-panel,
.hr-detail-panel,
.workflow-list-panel,
.workflow-canvas-panel,
.workflow-right-panel,
.workflow-agent-palette {
  overflow: hidden;
}

.workspace-empty-panel {
  display: grid;
  min-height: 0;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  border-bottom: 1px solid var(--line);
  padding: 0 12px;
}

.panel-header h2,
.panel-header h3 {
  margin: 0;
  color: #fff;
  font-size: 14px;
  font-weight: 850;
}

.panel-actions {
  display: flex;
  gap: 6px;
  min-width: 0;
}

.hr-list-header {
  display: grid;
  align-items: stretch;
  justify-content: stretch;
  grid-template-columns: minmax(0, 1fr);
  gap: 9px;
  min-height: 0;
  padding: 12px;
}

.hr-list-title {
  display: grid;
  gap: 3px;
  width: 100%;
  min-width: 0;
}

.hr-list-title span {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hr-list-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  width: 100%;
}

.hr-list-actions .new-agent-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  min-height: 28px;
  padding: 0 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hr-list-actions .hr-primary-action {
  grid-column: 1 / -1;
}

.tab-strip {
  display: flex;
  gap: 4px;
  min-width: 0;
  overflow: auto;
  padding: 9px 10px;
  border-bottom: 1px solid var(--line);
}

.tab-strip button {
  flex: 0 0 auto;
  min-height: 26px;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  padding: 0 9px;
}

.tab-strip button.active {
  background: var(--teal-soft);
  color: #8ff0ea;
}

.hr-view-tabs {
  flex-wrap: wrap;
  overflow: visible;
}

.hr-view-tabs button {
  flex: 1 1 auto;
  padding: 0 7px;
}

.search-field {
  display: flex;
  align-items: center;
  width: calc(100% - 20px);
  height: 32px;
  margin: 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted-2);
  font-size: 11px;
  padding: 0 10px;
  outline: none;
}

.search-field::placeholder {
  color: var(--muted-2);
}

.search-field:focus {
  border-color: rgba(126, 87, 194, 0.52);
  box-shadow: 0 0 0 2px rgba(126, 87, 194, 0.15);
}

.empty-row {
  border: 1px dashed var(--line);
  border-radius: 7px;
  color: var(--muted);
  font-size: 11px;
  padding: 10px;
}

.agent-list,
.workflow-list {
  display: grid;
  gap: 7px;
  min-height: 0;
  overflow: auto;
  padding: 0 10px 12px;
}

.harness-type-group {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.harness-type-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  padding: 4px 2px 0;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.harness-type-heading small {
  min-width: 20px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: #d9e6e2;
  padding: 1px 6px;
  text-align: center;
}

.workflow-section-menu {
  display: grid;
  gap: 7px;
  padding: 10px;
  border-bottom: 1px solid var(--line);
}

.workflow-section-menu button {
  display: grid;
  gap: 3px;
  min-width: 0;
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
  padding: 8px 10px;
  text-align: left;
}

.workflow-section-menu button.active {
  border-color: rgba(245, 207, 114, 0.5);
  background: rgba(245, 207, 114, 0.11);
}

.workflow-section-menu strong,
.workflow-section-menu small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workflow-section-menu strong {
  color: #fff;
  font-size: 12px;
}

.workflow-section-menu small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.codeboarding-sidebar-menu {
  display: grid;
  align-content: start;
  gap: 9px;
  min-height: 0;
  overflow: auto;
  padding: 10px;
}

.codeboarding-menu-card {
  display: grid;
  gap: 8px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  padding: 10px;
}

.codeboarding-menu-card.active {
  border-color: rgba(245, 207, 114, 0.34);
  background: rgba(245, 207, 114, 0.08);
}

.codeboarding-menu-card strong,
.codeboarding-menu-card small,
.codeboarding-menu-card span,
.codeboarding-menu-card p,
.codeboarding-menu-card code {
  min-width: 0;
}

.codeboarding-menu-card > strong {
  color: #fff;
  font-size: 12px;
}

.codeboarding-menu-card > small,
.codeboarding-menu-card label span,
.codeboarding-menu-card p {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.codeboarding-menu-card label {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.codeboarding-menu-card input,
.codeboarding-menu-card select {
  width: 100%;
  min-width: 0;
  height: 28px;
  border: 1px solid rgba(222, 231, 242, 0.13);
  border-radius: 6px;
  background: rgba(4, 8, 14, 0.86);
  color: #eef7fb;
  font-size: 10.5px;
  font-weight: 800;
  padding: 0 8px;
}

.codeboarding-menu-card button {
  min-height: 28px;
  border: 1px solid rgba(222, 231, 242, 0.14);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: #e8eef5;
  font-size: 10px;
  font-weight: 900;
}

.codeboarding-menu-card button:hover,
.codeboarding-sidebar-modes button.active {
  border-color: rgba(245, 207, 114, 0.48);
  background: rgba(245, 207, 114, 0.13);
  color: #f5d57e;
}

.codeboarding-sidebar-modes,
.codeboarding-menu-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
}

.codeboarding-menu-metrics {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.codeboarding-menu-metrics span {
  display: grid;
  gap: 2px;
  border: 1px solid rgba(222, 231, 242, 0.11);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.035);
  padding: 6px;
}

.codeboarding-menu-metrics b {
  color: #f5d57e;
  font-size: 12px;
}

.codeboarding-menu-card code {
  display: block;
  overflow: hidden;
  border: 1px solid rgba(143, 240, 234, 0.12);
  border-radius: 6px;
  background: rgba(4, 8, 14, 0.82);
  color: #b9f2ed;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 9px;
  line-height: 1.35;
  padding: 7px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.codeboarding-menu-card .codeboarding-run-fields.secondary {
  grid-template-columns: minmax(0, 1fr);
}

.agent-row,
.human-row,
.request-row,
.template-row,
.skill-row,
.workflow-row {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 9px;
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
  padding: 8px;
  text-align: left;
}

.agent-row.active,
.human-row.active,
.request-row.active,
.template-row.active,
.skill-row.active,
.workflow-row.active {
  border-color: rgba(135, 83, 201, 0.54);
  background: rgba(135, 83, 201, 0.18);
}

.workflow-row-mark.fanout,
.workflow-row-mark.runtime {
  background: rgba(116, 214, 201, 0.16);
  color: #9be8df;
}

.workflow-row-mark.triage,
.workflow-row-mark.approval {
  background: rgba(240, 191, 95, 0.16);
  color: #ffd889;
}

.workflow-row-mark.verification {
  background: rgba(187, 160, 242, 0.16);
  color: #cfbef8;
}

.workflow-row-mark.investigation,
.workflow-row-mark.incident {
  background: rgba(240, 123, 103, 0.15);
  color: #ffad9d;
}

.workflow-row-mark.memory,
.workflow-row-mark.people {
  background: rgba(128, 217, 147, 0.15);
  color: #a7e9b4;
}

.workflow-row-mark.tournament,
.workflow-row-mark.creative {
  background: rgba(217, 139, 209, 0.15);
  color: #efb5e9;
}

.workflow-row-mark.migration,
.workflow-row-mark.governance {
  background: rgba(137, 168, 245, 0.15);
  color: #b7c9ff;
}

.workflow-row-mark.routing,
.workflow-row-mark.source {
  background: rgba(155, 184, 198, 0.15);
  color: #c5d7df;
}

.agent-row,
.human-row,
.request-row,
.template-row,
.skill-row {
  cursor: pointer;
}

.skill-row.harness-row {
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
}

.harness-row-edit {
  min-width: 42px;
  border: 1px solid rgba(93, 214, 188, 0.22);
  border-radius: 6px;
  background: rgba(93, 214, 188, 0.09);
  color: #a8f4de;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  padding: 7px 8px;
  text-align: center;
  white-space: nowrap;
}

.capability-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: var(--purple-soft);
  color: #d7c4ff;
  font-size: 13px;
  font-weight: 950;
}

.capability-icon.teal {
  background: var(--teal-soft);
  color: #91f0ea;
}

.capability-icon.yellow {
  background: var(--yellow-soft);
  color: #f5d57e;
}

.capability-icon.purple {
  background: rgba(139, 92, 246, 0.18);
  color: #d9c8ff;
}

.capability-icon.indigo {
  background: rgba(73, 191, 251, 0.16);
  color: #bcecff;
}

.row-copy {
  min-width: 0;
  text-align: left;
}

.row-copy > strong,
.row-copy > span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.row-copy > strong {
  color: #fff;
  font-size: 12px;
}

.row-copy > span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.new-agent-button,
.new-workflow-button,
.run-button,
.settings-button {
  min-height: 30px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 900;
  padding: 0 10px;
}

.new-agent-button,
.new-workflow-button {
  background: var(--purple);
  color: #fff;
}

.new-agent-button.secondary {
  border: 1px solid rgba(76, 199, 192, 0.28);
  background: rgba(76, 199, 192, 0.11);
  color: #b8fffb;
}

.new-agent-button:disabled,
.new-workflow-button:disabled,
.run-button:disabled,
.settings-button:disabled,
.empty-action:disabled,
.profile-actions button:disabled,
.header-actions button:disabled,
.composer-icons button:disabled,
.messenger-dispatch-button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

.projection-lock-copy {
  margin: 0 0 8px;
  color: #ffd99a;
  font-size: 11px;
  line-height: 1.35;
}

.hr-detail-panel {
  display: grid;
  grid-template-rows: auto auto auto auto auto minmax(0, 1fr);
  min-width: 0;
  min-height: 0;
}

.hr-detail-panel:has(.agent-edit-panel) {
  grid-template-rows: auto auto auto auto auto auto minmax(0, 1fr);
}

.hr-selection-context,
.hr-section-focus {
  display: grid;
  grid-template-columns: 150px 180px minmax(0, 1fr) max-content;
  gap: 9px;
  align-items: center;
  min-width: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  padding: 8px 12px;
}

.hr-section-focus {
  background: rgba(104, 203, 190, 0.055);
}

.hr-selection-context span,
.hr-selection-context small,
.hr-selection-context strong,
.hr-section-focus span,
.hr-section-focus small,
.hr-section-focus strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hr-selection-context span,
.hr-section-focus span {
  color: var(--muted-2);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.hr-selection-context strong,
.hr-section-focus strong {
  color: #fff;
  font-size: 12px;
}

.hr-selection-context small,
.hr-section-focus small {
  color: var(--muted);
  font-size: 11px;
}

.hr-selection-context button {
  min-height: 27px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(135, 83, 201, 0.2);
  color: #f5efff;
  font-size: 11px;
  font-weight: 850;
  padding: 0 9px;
}

.worker-goal-panel {
  display: grid;
  gap: 10px;
  min-width: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(15, 22, 33, 0.74);
  padding: 10px 12px;
}

.worker-goal-panel.expanded {
  gap: 12px;
  background: linear-gradient(180deg, rgba(76, 199, 192, 0.09), rgba(255, 255, 255, 0.025));
}

.worker-goal-panel.compact {
  grid-template-columns: minmax(0, 1.1fr) minmax(240px, 0.9fr);
  align-items: start;
}

.worker-goal-head {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr) max-content;
  gap: 8px;
  align-items: center;
  min-width: 0;
}

.worker-goal-head strong,
.worker-goal-head small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.worker-goal-head strong {
  color: #fff;
  font-size: 12px;
}

.worker-goal-head small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.worker-goal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  gap: 10px;
  min-width: 0;
}

.worker-goal-primary {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.worker-goal-field,
.worker-current-step,
.worker-verification-result {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.035);
  padding: 8px;
}

.worker-goal-field span,
.worker-current-step span,
.worker-verification-result span,
.worker-goal-meta small {
  display: block;
  color: var(--muted-2);
  font-size: 9px;
  font-weight: 950;
  text-transform: uppercase;
}

.worker-goal-field p {
  margin: 4px 0 0;
  color: #dbe6f0;
  font-size: 12px;
  line-height: 1.4;
}

.worker-goal-meta,
.worker-goal-status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
}

.worker-goal-meta span {
  min-width: 0;
  border: 1px solid rgba(76, 199, 192, 0.16);
  border-radius: 7px;
  background: rgba(76, 199, 192, 0.055);
  padding: 8px;
}

.worker-goal-meta strong,
.worker-current-step strong,
.worker-verification-result strong {
  display: block;
  min-width: 0;
  margin-top: 4px;
  overflow: hidden;
  color: #f5fffe;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.worker-checklist,
.worker-activity {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.worker-checklist-item,
.worker-activity span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 24px;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: #dfe8f2;
  font-size: 11px;
  font-weight: 760;
  line-height: 1.2;
  padding: 4px 8px;
}

.worker-checklist-item.done {
  border-color: rgba(53, 192, 131, 0.28);
  background: rgba(53, 192, 131, 0.1);
}

.worker-checklist-item.pending {
  border-color: rgba(224, 179, 65, 0.28);
  background: rgba(224, 179, 65, 0.1);
}

.worker-checklist-item b {
  color: #fff;
  font-size: 9px;
  text-transform: uppercase;
}

.worker-goal-panel.compact .worker-goal-grid,
.worker-goal-panel.compact .worker-checklist,
.worker-goal-panel.compact .worker-goal-field[data-worker-goal-field="context"],
.worker-goal-panel.compact .worker-activity {
  display: none;
}

.agent-edit-panel {
  display: grid;
  gap: 10px;
  min-width: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(135, 83, 201, 0.07);
  padding: 10px 12px 12px;
}

.agent-edit-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.agent-edit-header strong {
  color: #fff;
  font-size: 12px;
}

.agent-edit-header span {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.new-agent-design-panel {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.new-agent-design-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 0 12px 12px;
}

.new-agent-design-card {
  display: grid;
  gap: 7px;
  min-height: 158px;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  color: #edf4fb;
  padding: 14px;
  text-align: left;
}

.new-agent-design-card:hover,
.new-agent-design-card:focus-visible {
  border-color: rgba(76, 199, 192, 0.42);
  background: rgba(76, 199, 192, 0.12);
}

.new-agent-design-card span,
.new-agent-design-card small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 760;
  line-height: 1.35;
}

.new-agent-design-card strong {
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.2;
}

.agent-design-builder {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.agent-design-palette {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  min-width: 0;
}

.agent-design-palette button {
  display: grid;
  gap: 3px;
  min-width: 0;
  min-height: 54px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.22);
  color: #edf4fb;
  cursor: grab;
  padding: 7px;
  text-align: left;
}

.agent-design-palette button:hover,
.agent-design-palette button:focus-visible {
  border-color: rgba(255, 190, 96, 0.42);
  background: rgba(255, 190, 96, 0.11);
}

.agent-design-palette button strong {
  overflow: hidden;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agent-design-palette button small {
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 720;
  line-height: 1.2;
}

.agent-design-dropzone {
  display: grid;
  gap: 3px;
  min-height: 58px;
  border: 1px dashed rgba(76, 199, 192, 0.42);
  border-radius: 8px;
  background: rgba(76, 199, 192, 0.075);
  color: #b8fffb;
  padding: 10px;
}

.agent-design-dropzone strong {
  font-size: 12px;
  font-weight: 900;
}

.agent-design-dropzone span {
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 720;
}

.agent-edit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
}

.agent-edit-grid label {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.agent-edit-grid label.wide {
  grid-column: span 1;
}

.agent-edit-grid label.full {
  grid-column: 1 / -1;
}

.agent-edit-grid span {
  overflow: hidden;
  color: var(--muted-2);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agent-edit-grid input,
.agent-edit-grid select,
.agent-edit-grid textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.24);
  color: #edf4fb;
  font-size: 11px;
  font-weight: 760;
}

.agent-edit-grid input,
.agent-edit-grid select {
  height: 30px;
  padding: 0 8px;
}

.agent-edit-grid textarea {
  height: 58px;
  resize: vertical;
  padding: 8px;
}

.agent-edit-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.agent-edit-actions button {
  min-height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: #edf4fb;
  font-size: 11px;
  font-weight: 850;
  padding: 0 10px;
}

.agent-edit-actions button:first-child {
  border-color: rgba(76, 199, 192, 0.34);
  background: rgba(76, 199, 192, 0.14);
  color: #b8fffb;
}

.workflow-agent-editor-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  align-items: center;
  justify-items: center;
  padding: 18px;
  background: rgba(3, 8, 15, 0.72);
  backdrop-filter: blur(8px);
}

.workflow-agent-editor-window {
  display: grid;
  width: min(980px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: #101923;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.48);
  color: #edf4fb;
}

.workflow-agent-editor-header {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(16, 25, 35, 0.96);
  padding: 14px 16px;
}

.workflow-agent-editor-header div {
  min-width: 0;
}

.workflow-agent-editor-header span,
.workflow-agent-editor-header small,
.workflow-agent-editor-grid span {
  color: var(--muted-2);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.workflow-agent-editor-header h2 {
  overflow: hidden;
  margin: 3px 0;
  color: #fff;
  font-size: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workflow-agent-editor-close {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: #edf4fb;
  font-size: 12px;
  font-weight: 900;
}

.workflow-agent-editor-tabs {
  display: flex;
  gap: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px 16px 0;
}

.workflow-agent-editor-tabs button {
  min-height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 0;
  border-radius: 6px 6px 0 0;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  padding: 0 12px;
}

.workflow-agent-editor-tabs button.active {
  background: rgba(76, 199, 192, 0.13);
  color: #b8fffb;
}

.workflow-agent-editor-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  min-width: 0;
  padding: 14px 16px;
}

.workflow-agent-editor-grid label {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.workflow-agent-editor-grid label.wide {
  grid-column: span 2;
}

.workflow-agent-editor-grid label.full {
  grid-column: 1 / -1;
}

.workflow-agent-editor-grid input,
.workflow-agent-editor-grid select,
.workflow-agent-editor-grid textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.24);
  color: #edf4fb;
  font-size: 12px;
  font-weight: 760;
}

.workflow-agent-editor-grid input,
.workflow-agent-editor-grid select {
  height: 34px;
  padding: 0 9px;
}

.workflow-agent-editor-grid textarea {
  min-height: 76px;
  resize: vertical;
  padding: 9px;
}

.workflow-agent-editor-actions {
  position: sticky;
  bottom: 0;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(16, 25, 35, 0.96);
  padding: 12px 16px;
}

.workflow-agent-editor-actions button {
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: #edf4fb;
  font-size: 11px;
  font-weight: 850;
  padding: 0 12px;
}

.workflow-agent-editor-actions button:first-child {
  border-color: rgba(76, 199, 192, 0.34);
  background: rgba(76, 199, 192, 0.14);
  color: #b8fffb;
}

.workflow-agent-graphic-editor {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 10px;
  min-width: 0;
  padding: 14px 16px;
}

.workflow-agent-graphic-card {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  padding: 12px;
}

.workflow-agent-graphic-card.identity,
.workflow-agent-graphic-card.contracts {
  grid-row: span 2;
}

.workflow-agent-graphic-card.resources,
.workflow-agent-graphic-card.contracts {
  grid-column: span 2;
}

.workflow-agent-graphic-card h3 {
  margin: 0;
  color: #fff;
  font-size: 12px;
}

.workflow-agent-graphic-node {
  display: grid;
  place-items: center;
  gap: 5px;
  min-height: 126px;
  border: 1px solid rgba(76, 199, 192, 0.24);
  border-radius: 8px;
  background: radial-gradient(circle at 50% 10%, rgba(76, 199, 192, 0.16), rgba(255, 255, 255, 0.035) 64%);
  text-align: center;
}

.workflow-agent-graphic-node span {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(76, 199, 192, 0.18);
  color: #b8fffb;
  font-size: 18px;
  font-weight: 950;
}

.workflow-agent-graphic-node strong,
.workflow-agent-graphic-node small {
  max-width: 100%;
  overflow: hidden;
  padding: 0 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workflow-agent-graphic-node strong {
  color: #fff;
  font-size: 13px;
}

.workflow-agent-graphic-node small {
  color: var(--muted-2);
  font-size: 10px;
  font-weight: 850;
}

.workflow-agent-graphic-card label,
.workflow-agent-toml-editor {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.workflow-agent-graphic-card label span {
  color: var(--muted-2);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.workflow-agent-graphic-card input,
.workflow-agent-graphic-card select,
.workflow-agent-graphic-card textarea,
.workflow-agent-toml-editor textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.24);
  color: #edf4fb;
  font-size: 12px;
  font-weight: 760;
}

.workflow-agent-graphic-card input,
.workflow-agent-graphic-card select {
  height: 34px;
  padding: 0 9px;
}

.workflow-agent-graphic-card textarea {
  min-height: 82px;
  resize: vertical;
  padding: 9px;
}

.workflow-agent-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.workflow-agent-chip-row.compact {
  max-height: 84px;
  overflow: auto;
}

.workflow-agent-chip {
  min-height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  padding: 0 9px;
}

.workflow-agent-chip.active {
  border-color: rgba(76, 199, 192, 0.38);
  background: rgba(76, 199, 192, 0.15);
  color: #b8fffb;
}

.workflow-agent-metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.workflow-agent-toml-editor {
  padding: 14px 16px;
}

.workflow-agent-toml-editor header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.workflow-agent-toml-editor strong {
  color: #fff;
  font-size: 12px;
}

.workflow-agent-toml-editor span {
  overflow: hidden;
  color: var(--muted-2);
  font-size: 10px;
  font-weight: 900;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.workflow-agent-toml-editor textarea {
  min-height: min(480px, 54vh);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 11px;
  line-height: 1.55;
  resize: vertical;
  padding: 12px;
}

.workflow-agent-raw-error {
  margin: 0;
  border: 1px solid rgba(244, 107, 107, 0.35);
  border-radius: 6px;
  background: rgba(244, 107, 107, 0.1);
  color: #ffd1d1;
  font-size: 11px;
  font-weight: 800;
  padding: 9px 10px;
}

.profile-hero {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) max-content;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 14px;
}

.profile-avatar {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 9px;
  background: linear-gradient(135deg, rgba(135, 83, 201, 0.9), rgba(76, 199, 192, 0.75));
  color: #fff;
  font-size: 29px;
  font-weight: 900;
}

.profile-title {
  min-width: 0;
}

.profile-title h2 {
  margin: 0;
  color: #fff;
  font-size: 18px;
}

.profile-title p {
  max-width: 780px;
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.profile-notice {
  display: inline-flex;
  max-width: min(760px, 100%);
  min-height: 24px;
  margin-top: 8px;
  align-items: center;
  border: 1px solid rgba(76, 199, 192, 0.28);
  border-radius: 999px;
  background: rgba(76, 199, 192, 0.08);
  color: #9af0eb;
  font-size: 11px;
  font-weight: 760;
  line-height: 1.25;
  overflow: hidden;
  padding: 0 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.runtime-upgrade-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.runtime-review-strip {
  display: grid;
  grid-template-columns: 0.9fr 1.35fr 1.2fr 1fr;
  gap: 6px;
  max-width: min(820px, 100%);
  margin-top: 8px;
}

.runtime-review-strip span {
  min-width: 0;
  border: 1px solid rgba(76, 199, 192, 0.18);
  border-radius: 7px;
  background: rgba(76, 199, 192, 0.06);
  padding: 6px 8px;
}

.runtime-review-strip small,
.runtime-review-strip strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.runtime-review-strip small {
  color: #91d8d4;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.runtime-review-strip strong {
  margin-top: 3px;
  color: #f5fffe;
  font-size: 11px;
}

.profile-actions {
  display: flex;
  align-items: start;
  gap: 7px;
}

.profile-actions button {
  min-height: 29px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.045);
  color: #e8eff7;
  font-size: 11px;
  font-weight: 850;
  padding: 0 9px;
}

.profile-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 12px;
  min-width: 0;
  min-height: 0;
  overflow: auto;
  padding: 12px;
}

.profile-card,
.deployment-box,
.mini-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  padding: 12px;
}

.profile-card h3,
.deployment-box h3,
.mini-card h3 {
  margin: 0 0 9px;
  color: #fff;
  font-size: 12px;
}

.profile-card p,
.mini-card p,
.deployment-box p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.profile-content > .profile-grid:last-child {
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
}

.profile-content > .profile-grid:last-child .live-gate-card {
  order: -3;
}

.profile-content > .profile-grid:last-child .deployment-box {
  order: -2;
}

.profile-content > .profile-grid:last-child > .mini-card:not(.live-gate-card) {
  order: -1;
}

.messenger-workforce-card {
  display: grid;
  order: -4;
  gap: 10px;
}

.messenger-workforce-card ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.messenger-worker-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  min-width: 0;
}

.messenger-worker-button {
  min-width: 0;
  min-height: 32px;
  border: 1px solid rgba(122, 142, 169, 0.2);
  border-radius: 7px;
  background: rgba(11, 20, 32, 0.72);
  color: #cbd8e6;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.1;
  overflow-wrap: anywhere;
  padding: 7px 8px;
}

.messenger-worker-button.primary {
  border-color: rgba(76, 199, 192, 0.34);
  background: rgba(31, 91, 88, 0.34);
  color: #d8fffb;
}

.messenger-worker-button:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

.messenger-workforce-evidence {
  display: grid;
  grid-template-columns: repeat(4, minmax(58px, 1fr));
  gap: 6px;
  min-width: 0;
}

.hr-accountability-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(72px, 1fr));
  gap: 6px;
  min-width: 0;
  border: 1px solid rgba(122, 142, 169, 0.16);
  border-radius: 7px;
  background: rgba(7, 13, 22, 0.48);
  padding: 7px;
}

.hr-accountability-strip span,
.messenger-workforce-evidence span {
  display: grid;
  gap: 2px;
  min-width: 0;
  border: 1px solid rgba(122, 142, 169, 0.16);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.04);
  padding: 6px 7px;
}

.hr-accountability-strip b,
.hr-accountability-strip small,
.messenger-workforce-evidence b,
.messenger-workforce-evidence small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hr-accountability-strip b,
.messenger-workforce-evidence b {
  color: #f6fbff;
  font-size: 10.5px;
  font-weight: 900;
}

.hr-accountability-strip small,
.messenger-workforce-evidence small {
  color: #8ea4bf;
  font-size: 9px;
  font-weight: 850;
}

.projection-summary-chip {
  border-color: rgba(76, 199, 192, 0.28) !important;
  background: rgba(76, 199, 192, 0.08) !important;
}

.messenger-program-board {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.messenger-program-goal,
.messenger-initiative-list,
.messenger-work-queue,
.messenger-dispatch-log,
.messenger-health-list {
  display: grid;
  gap: 6px;
  min-width: 0;
  border: 1px solid rgba(122, 142, 169, 0.16);
  border-radius: 7px;
  background: rgba(9, 16, 26, 0.38);
  padding: 8px;
}

.messenger-program-goal > span {
  color: #8ea4bf;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.messenger-program-goal strong,
.messenger-program-goal p,
.messenger-program-goal small {
  overflow-wrap: anywhere;
}

.messenger-program-goal strong {
  color: #f6fbff;
  font-size: 11px;
  line-height: 1.25;
}

.messenger-program-goal p {
  margin: 0;
  color: #b7c5d5;
  font-size: 10px;
  line-height: 1.35;
}

.messenger-program-goal small {
  color: #8ea4bf;
  font-size: 9px;
  font-weight: 850;
}

.messenger-initiative-list span,
.messenger-work-queue span,
.messenger-dispatch-log span,
.messenger-health-list span {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  gap: 3px 6px;
  align-items: center;
  min-width: 0;
}

.messenger-initiative-list span {
  grid-template-columns: minmax(0, 1fr);
}

.messenger-initiative-list b,
.messenger-initiative-list small,
.messenger-work-queue b,
.messenger-work-queue small,
.messenger-work-queue strong,
.messenger-dispatch-log b,
.messenger-dispatch-log small,
.messenger-health-list b,
.messenger-health-list small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.messenger-initiative-list b,
.messenger-work-queue b,
.messenger-dispatch-log b,
.messenger-health-list b {
  color: #eef5fb;
  font-size: 10px;
  font-weight: 900;
}

.messenger-initiative-list small,
.messenger-work-queue small,
.messenger-dispatch-log small,
.messenger-health-list small {
  color: #8ea4bf;
  font-size: 9px;
  font-weight: 800;
}

.messenger-health-list strong {
  border: 1px solid rgba(76, 199, 192, 0.22);
  border-radius: 999px;
  color: #a6eee8;
  font-size: 8.5px;
  font-weight: 900;
  line-height: 1;
  padding: 4px 5px;
}

.messenger-work-queue strong {
  color: #f5cf72;
  font-size: 8.5px;
  font-weight: 900;
}

.messenger-dispatch-button {
  width: 100%;
  min-height: 30px;
  border: 1px solid rgba(76, 199, 192, 0.36);
  border-radius: 7px;
  background: rgba(76, 199, 192, 0.1);
  color: #c9fffa;
  font-size: 10px;
  font-weight: 900;
}

.messenger-workforce-card li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content max-content;
  align-items: center;
  gap: 8px;
  min-width: 0;
  border: 1px solid rgba(122, 142, 169, 0.18);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.035);
  padding: 8px;
}

.messenger-workforce-card li.active {
  border-color: rgba(76, 199, 192, 0.34);
  background: rgba(76, 199, 192, 0.08);
}

.messenger-workforce-card li span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.messenger-workforce-card li b,
.messenger-workforce-card li small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.messenger-workforce-card li b {
  color: #f2f7fd;
  font-size: 11px;
  font-weight: 900;
}

.messenger-workforce-card li small {
  color: #8ea4bf;
  font-size: 10px;
}

.messenger-workforce-card li em {
  border: 1px solid rgba(122, 142, 169, 0.2);
  border-radius: 999px;
  color: #cbd9e6;
  font-size: 9px;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
  padding: 5px 6px;
}

.messenger-workforce-card li strong {
  color: #a6eee8;
  font-size: 10px;
  font-weight: 900;
}

.detail-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.detail-list.compact {
  gap: 6px;
}

.detail-list li {
  display: grid;
  grid-template-columns: minmax(96px, 0.85fr) minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 12px;
  padding-bottom: 7px;
}

.detail-list li > span,
.detail-list li > strong {
  min-width: 0;
}

.detail-list.compact li {
  font-size: 11px;
  padding-bottom: 5px;
}

.detail-list strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: #fff;
  font-weight: 850;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 23px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: #dfe8f1;
  font-size: 11px;
  font-weight: 760;
  padding: 0 8px;
}

.chip.teal {
  color: #8ff0ea;
  background: var(--teal-soft);
}

.chip.yellow {
  color: #f3d37a;
  background: var(--yellow-soft);
}

.runtime-stack-card,
.migration-review-card {
  grid-column: 1 / -1;
}

.runtime-stack-grid,
.migration-review-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 9px;
}

.migration-review-summary {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.runtime-stack-grid span,
.migration-review-summary span {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.04);
  padding: 8px;
}

.runtime-stack-grid small,
.runtime-stack-grid strong,
.migration-review-summary small,
.migration-review-summary strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.runtime-stack-grid small,
.migration-review-summary small {
  color: var(--muted-2);
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.runtime-stack-grid strong,
.migration-review-summary strong {
  margin-top: 4px;
  color: #fff;
  font-size: 12px;
}

.migration-comparison-table {
  display: grid;
  gap: 1px;
  margin-top: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
}

.migration-row {
  display: grid;
  grid-template-columns: 0.9fr 1.25fr 1.25fr 1fr;
  gap: 8px;
  background: rgba(255, 255, 255, 0.035);
  padding: 8px;
}

.migration-row.header {
  background: rgba(135, 83, 201, 0.18);
}

.migration-row span {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
  text-overflow: ellipsis;
}

.migration-row.header span {
  color: #eee6ff;
  font-weight: 900;
  text-transform: uppercase;
}

.deployment-cards {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(156px, 1fr);
  overflow-x: auto;
  gap: 10px;
  padding-bottom: 2px;
}

.deployment-target-card {
  display: grid;
  gap: 6px;
  min-height: 72px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
  cursor: pointer;
  padding: 10px;
  text-align: left;
}

.deployment-target-card.active {
  border-color: rgba(76, 199, 192, 0.45);
  background: rgba(76, 199, 192, 0.09);
}

.deployment-target-card strong {
  color: #fff;
  font-size: 12px;
}

.deployment-target-card span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.deployment-target-card:hover,
.deployment-target-card:focus-visible {
  border-color: rgba(76, 199, 192, 0.5);
}

.runtime-provider-card,
.runtime-provider-role-card {
  grid-column: 1 / -1;
}

.runtime-provider-grid,
.runtime-provider-role-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.runtime-provider-grid span,
.runtime-provider-role-grid span {
  display: grid;
  gap: 4px;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.04);
  padding: 8px;
}

.runtime-provider-grid strong,
.runtime-provider-grid small,
.runtime-provider-grid em,
.runtime-provider-role-grid strong,
.runtime-provider-role-grid small,
.runtime-provider-role-grid em,
.runtime-provider-role-grid b {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.runtime-provider-grid strong,
.runtime-provider-role-grid strong {
  color: #fff;
  font-size: 12px;
}

.runtime-provider-grid small,
.runtime-provider-role-grid small {
  color: #8ff0ea;
  font-size: 10px;
  font-style: normal;
  font-weight: 850;
  text-transform: uppercase;
}

.runtime-provider-grid em,
.runtime-provider-role-grid em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  line-height: 1.35;
}

.runtime-provider-role-grid b {
  color: #f3d37a;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.live-gate-card {
  grid-column: 1 / -1;
}

.workspace-action-card {
  border-color: rgba(76, 199, 192, 0.16);
  background: rgba(76, 199, 192, 0.045);
}

.workspace-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.live-gate-list {
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
}

.live-gate-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  align-items: start;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.035);
  padding: 9px;
}

.live-gate-row strong,
.live-gate-row span {
  display: block;
  min-width: 0;
}

.live-gate-row strong {
  overflow: hidden;
  color: #fff;
  font-size: 11.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-gate-row div > span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.35;
}

.live-gate-coordinator {
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
  border: 1px solid rgba(224, 179, 65, 0.2);
  border-radius: 7px;
  background: rgba(224, 179, 65, 0.06);
  padding: 9px;
}

.live-gate-coordinator > strong {
  color: #fff;
  font-size: 11.5px;
}

.live-gate-coordinator code {
  overflow: hidden;
  color: #f5d57e;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gate-order {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.gate-order span {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  border: 1px solid rgba(224, 179, 65, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  color: #dce3eb;
  font-size: 10px;
  font-weight: 760;
  padding: 0 7px;
}

.live-gate-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin-bottom: 10px;
}

.live-env-editor {
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.035);
  padding: 9px;
}

.live-env-editor > strong {
  color: #fff;
  font-size: 11px;
}

.live-env-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.live-env-grid label {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.live-env-grid label:nth-child(5),
.live-env-grid label.wide {
  grid-column: 1 / -1;
}

.live-env-grid span {
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-env-grid input,
.live-env-grid select,
.live-env-grid textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.24);
  color: #edf4fb;
  font-size: 11px;
  font-weight: 750;
}

.live-env-grid input,
.live-env-grid select {
  height: 30px;
  padding: 0 8px;
}

.live-env-grid textarea {
  min-height: 92px;
  resize: vertical;
  line-height: 1.35;
  padding: 8px;
}

.live-env-grid input::placeholder,
.live-env-grid textarea::placeholder {
  color: rgba(162, 174, 190, 0.62);
}

.evidence-ingest-button {
  min-height: 30px;
  border: 1px solid rgba(76, 199, 192, 0.28);
  border-radius: 6px;
  background: rgba(76, 199, 192, 0.13);
  color: #dffdfa;
  font-size: 11px;
  font-weight: 900;
}

.live-gate-confirm-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 8px;
}

.live-gate-confirm-grid label {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 820;
}

.live-gate-confirm-grid input {
  flex: 0 0 auto;
  width: 13px;
  height: 13px;
  accent-color: var(--purple);
}

.live-gate-confirm-grid span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-env-hint {
  margin: 0;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.45;
}

.live-env-hint code {
  color: #dffdfa;
  font-size: 10px;
}

.live-gate-actions button {
  min-height: 30px;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  color: #edf4fb;
  cursor: pointer;
  font-size: 10.5px;
  font-weight: 850;
  overflow: hidden;
  padding: 0 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-gate-actions button:hover {
  border-color: rgba(161, 103, 207, 0.58);
  background: rgba(161, 103, 207, 0.18);
}

.live-gate-actions button:disabled {
  cursor: wait;
  opacity: 0.55;
}

.runpod-action-result,
.workspace-action-result {
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.035);
  padding: 9px;
}

.runpod-action-result.pass,
.runpod-action-result.ready,
.workspace-action-result.pass,
.workspace-action-result.ready {
  border-color: rgba(76, 199, 192, 0.34);
  background: rgba(76, 199, 192, 0.07);
}

.runpod-action-result.blocked,
.workspace-action-result.blocked {
  border-color: rgba(224, 179, 65, 0.34);
  background: rgba(224, 179, 65, 0.07);
}

.runpod-action-result.running,
.workspace-action-result.running {
  border-color: rgba(161, 103, 207, 0.4);
  background: rgba(161, 103, 207, 0.09);
}

.runpod-action-result strong,
.runpod-action-result span,
.workspace-action-result strong,
.workspace-action-result span {
  display: block;
  min-width: 0;
}

.runpod-action-result strong,
.workspace-action-result strong {
  color: #fff;
  font-size: 11.5px;
}

.runpod-action-result span,
.runpod-action-result li,
.workspace-action-result span,
.workspace-action-result li {
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.35;
}

.runpod-action-result ul,
.workspace-action-result ul {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.runpod-action-result li,
.workspace-action-result li {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.operator-sequence-block {
  display: grid;
  gap: 5px;
}

.operator-sequence-block strong {
  color: #dffdfa;
}

.runpod-action-result .operator-sequence {
  display: grid;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.runpod-action-result .operator-sequence li {
  color: #d6e4f0;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
}

.live-evidence-command-block {
  display: grid;
  gap: 6px;
}

.live-evidence-command-block strong,
.provider-alternative-block strong {
  color: #dffdfa;
}

.provider-alternative-block {
  display: grid;
  gap: 6px;
}

.live-env-status-block {
  display: grid;
  gap: 6px;
  border: 1px solid rgba(126, 211, 218, 0.18);
  border-radius: 7px;
  background: rgba(126, 211, 218, 0.06);
  padding: 8px;
}

.live-env-status-block strong {
  color: #dffdfa;
}

.live-env-status-row {
  display: grid;
  grid-template-columns: minmax(136px, 1fr) minmax(78px, 0.55fr) minmax(0, 1.4fr);
  gap: 5px 8px;
  align-items: center;
  min-width: 0;
}

.live-env-status-row b,
.live-env-status-row span,
.live-env-status-row code,
.live-env-status-row small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-env-status-row b {
  color: #f1f6fb;
  font-size: 10.5px;
}

.live-env-status-row span {
  color: #ffe1a6;
  font-size: 10.5px;
  font-weight: 850;
}

.live-env-status-row code {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 5px;
  background: rgba(10, 14, 22, 0.56);
  padding: 3px 5px;
}

.live-env-status-row small {
  grid-column: 1 / -1;
  color: var(--muted);
}

.live-evidence-command-group {
  display: grid;
  grid-template-columns: minmax(82px, 110px) minmax(0, 1fr);
  gap: 5px 8px;
  align-items: start;
}

.live-evidence-command-group span,
.provider-alternative-group > span {
  grid-column: 1 / -1;
  color: #d6e4f0;
}

.provider-alternative-group {
  display: grid;
  gap: 7px;
}

.provider-alternative-row {
  display: grid;
  grid-template-columns: minmax(82px, 110px) minmax(0, 1fr);
  gap: 4px 8px;
  align-items: start;
}

.provider-alternative-row b {
  grid-column: 1 / -1;
  color: #f1f6fb;
  font-size: 10.5px;
  line-height: 1.35;
}

.provider-alternative-row small {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
}

.provider-alternative-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.provider-alternative-actions button {
  justify-self: start;
  border: 1px solid rgba(169, 122, 255, 0.45);
  border-radius: 5px;
  background: rgba(169, 122, 255, 0.16);
  padding: 4px 8px;
  color: #f4edff;
  font-size: 10px;
  font-weight: 700;
}

.live-evidence-command-group label,
.provider-alternative-row label {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
}

.live-evidence-command-group code,
.provider-alternative-row code {
  display: block;
  min-width: 0;
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 5px;
  background: rgba(10, 14, 22, 0.62);
  padding: 4px 6px;
  color: #f1f6fb;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  line-height: 1.35;
  white-space: nowrap;
}

.readiness-blockers {
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
}

.readiness-blockers > strong {
  color: #fff;
  font-size: 11px;
}

.blocker-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.blocker-chip {
  display: grid;
  min-width: 0;
  gap: 3px;
  border: 1px solid rgba(241, 111, 105, 0.22);
  border-radius: 7px;
  background: rgba(241, 111, 105, 0.08);
  padding: 7px 8px;
}

.blocker-chip small,
.blocker-chip b {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.blocker-chip small {
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 850;
}

.blocker-chip b {
  color: #ffc5c0;
  font-size: 10.5px;
}

.completion-contract {
  display: grid;
  gap: 7px;
  margin-bottom: 10px;
  border: 1px solid rgba(224, 179, 65, 0.18);
  border-radius: 7px;
  background: rgba(224, 179, 65, 0.06);
  padding: 8px 9px;
}

.completion-contract > strong {
  color: #fff;
  font-size: 11px;
}

.completion-contract ul {
  display: grid;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.completion-contract li {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 10.5px;
}

.completion-contract span,
.completion-contract b {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.completion-contract span {
  color: var(--muted);
  font-weight: 800;
}

.completion-contract b {
  color: #f5d57e;
  font-weight: 900;
}

.workflow-panel {
  --workflow-library-width: 320px;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
}

.workflow-panel.workflow-graph-active {
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  overflow: hidden;
}

.workflow-panel:has(.workflow-stage-map-editor) {
  grid-template-columns: minmax(0, 1fr) 210px;
  gap: 8px;
  padding: 8px;
}

.workflow-panel.creating-workflow {
  grid-template-columns: minmax(0, 1fr);
}

.workflow-list-panel {
  position: relative;
}

.workflow-library-resize-handle {
  position: absolute;
  z-index: 8;
  top: 0;
  right: 0;
  width: 12px;
  height: 100%;
  border: 0;
  background: transparent;
  cursor: col-resize;
  padding: 0;
}

.workflow-library-resize-handle::before {
  content: "";
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 5px;
  width: 2px;
  border-radius: 999px;
  background: rgba(76, 199, 192, 0.24);
  opacity: 0;
}

.workflow-library-resize-handle:hover::before,
.workflow-library-resize-handle:focus-visible::before,
body.resizing-workflow-library .workflow-library-resize-handle::before {
  opacity: 1;
  background: rgba(88, 211, 204, 0.72);
}

.workflow-library-resize-handle:focus-visible {
  outline: 2px solid rgba(88, 211, 204, 0.78);
  outline-offset: -3px;
}

body.resizing-workflow-library,
body.resizing-workflow-library * {
  cursor: col-resize !important;
  user-select: none !important;
}

.workflow-canvas-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(280px, 0.75fr);
  grid-template-rows: auto auto minmax(86px, max-content) minmax(0, 1fr);
  column-gap: 8px;
}

.workflow-canvas-panel.settings-open {
  grid-template-rows: auto auto minmax(86px, max-content) auto minmax(0, 1fr);
}

.workflow-canvas-panel.codeboarding-mode {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto minmax(0, 1fr);
}

.workflow-canvas-panel.codeboarding-mode.settings-open {
  grid-template-rows: auto auto minmax(0, 1fr) auto;
}

.workflow-canvas-panel.blank-canvas {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto minmax(0, 1fr);
}

.workflow-canvas-panel.blank-canvas.settings-open {
  grid-template-rows: auto auto auto minmax(0, 1fr);
}

.workflow-canvas-panel.workflow-stage-map-editor {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto minmax(0, 1fr);
  background: #070d18;
}

.workflow-canvas-panel.workflow-stage-map-editor.settings-open {
  grid-template-rows: auto auto auto minmax(0, 1fr);
}

.workflow-toolbar,
.workflow-runtime-strip,
.workflow-settings-panel,
.workflow-diagram {
  grid-column: 1 / -1;
}

.workflow-create-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.workflow-create-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
  border-bottom: 1px solid var(--line);
  padding: 0 14px;
}

.workflow-create-header h2,
.workflow-create-header span {
  display: block;
  margin: 0;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workflow-create-header h2 {
  color: #fff;
  font-size: 16px;
}

.workflow-create-header span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.workflow-create-body {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 10px;
  min-width: 0;
  min-height: 0;
  overflow: auto;
  padding: 12px;
}

.workflow-create-start-options {
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
}

.workflow-create-workbench {
  display: grid;
  grid-template-columns: minmax(300px, 0.72fr) minmax(320px, 1fr);
  gap: 10px;
  min-width: 0;
  min-height: 0;
}

.workflow-create-source,
.workflow-create-preview {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.035);
  padding: 11px;
}

.workflow-create-source {
  border-color: rgba(76, 199, 192, 0.18);
  background: rgba(76, 199, 192, 0.04);
}

.workflow-create-kicker,
.workflow-create-source h3,
.workflow-create-source p,
.workflow-create-preview h3,
.workflow-create-source-status,
.workflow-create-relation-summary {
  display: block;
  margin: 0;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.workflow-create-kicker {
  color: #9ff0ea;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.workflow-create-source h3,
.workflow-create-preview h3 {
  color: #fff;
  font-size: 14px;
  white-space: nowrap;
}

.workflow-create-source-status,
.workflow-create-relation-summary {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.workflow-create-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
}

.workflow-create-fields label {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.workflow-create-fields small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
}

.workflow-create-fields input {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(6, 10, 18, 0.72);
  color: #f4f8fb;
  font-size: 11px;
  padding: 8px;
}

.workflow-create-mode-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 7px;
  background: rgba(6, 10, 18, 0.36);
  padding: 4px;
}

.workflow-create-mode-row button {
  min-width: 0;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  padding: 6px 7px;
  text-transform: uppercase;
}

.workflow-create-mode-row button.active {
  background: rgba(76, 199, 192, 0.18);
  color: #dff8f5;
}

.workflow-create-mode-row button:focus-visible {
  outline: 2px solid rgba(76, 199, 192, 0.45);
  outline-offset: 1px;
}

.workflow-create-pipeline-strip {
  display: grid;
  grid-template-columns: repeat(7, minmax(46px, 1fr));
  gap: 5px;
  min-width: 0;
}

.workflow-create-pipeline-strip span {
  display: grid;
  grid-template-rows: 18px 1fr;
  min-width: 0;
  min-height: 58px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  padding: 6px;
}

.workflow-create-pipeline-strip strong,
.workflow-create-pipeline-strip small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.workflow-create-pipeline-strip strong {
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 50%;
  background: rgba(76, 199, 192, 0.2);
  color: #dff8f5;
  font-size: 10px;
}

.workflow-create-pipeline-strip small {
  color: #c9d8de;
  font-size: 9px;
  font-weight: 850;
  line-height: 1.2;
}

.workflow-create-source-actions,
.workflow-create-preview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.workflow-create-source-actions button {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.06);
  color: #dff8f5;
  font-size: 11px;
  font-weight: 850;
  padding: 7px 9px;
}

.workflow-create-source-actions button:hover,
.workflow-create-source-actions button:focus-visible {
  border-color: rgba(76, 199, 192, 0.48);
  outline: none;
}

.workflow-create-preview-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.workflow-create-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(52px, 1fr));
  gap: 6px;
}

.workflow-create-metrics span {
  display: grid;
  justify-items: center;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.045);
  padding: 6px 8px;
}

.workflow-create-metrics strong,
.workflow-create-metrics small {
  display: block;
  margin: 0;
  min-width: 0;
}

.workflow-create-metrics strong {
  color: #fff;
  font-size: 13px;
}

.workflow-create-metrics small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 850;
}

.workflow-create-component-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
}

.workflow-create-map-shell {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.workflow-create-stage-row {
  display: grid;
  grid-template-columns: repeat(7, minmax(86px, 1fr));
  gap: 6px;
  min-width: 0;
  overflow-x: auto;
  padding-bottom: 2px;
}

.workflow-create-stage-card {
  position: relative;
  display: grid;
  grid-template-rows: 20px auto 1fr;
  gap: 5px;
  min-width: 86px;
  min-height: 116px;
  border: 1px solid rgba(76, 199, 192, 0.22);
  border-radius: 7px;
  background: rgba(9, 13, 22, 0.62);
  padding: 8px;
}

.workflow-create-stage-row b {
  display: none;
}

.workflow-create-stage-card i {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 50%;
  background: rgba(76, 199, 192, 0.2);
  color: #c9fff9;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
}

.workflow-create-stage-card strong,
.workflow-create-stage-card small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.workflow-create-stage-card strong {
  color: #fff;
  font-size: 11px;
  line-height: 1.2;
}

.workflow-create-stage-card small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.28;
}

.workflow-create-artifact-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
}

.workflow-create-artifact-row span {
  display: grid;
  gap: 3px;
  min-width: 0;
  border: 1px solid rgba(224, 179, 65, 0.22);
  border-radius: 7px;
  background: rgba(224, 179, 65, 0.055);
  padding: 8px;
}

.workflow-create-artifact-row strong,
.workflow-create-artifact-row small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.workflow-create-artifact-row strong {
  color: #f4d77f;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.workflow-create-artifact-row small {
  color: #d8d0b0;
  font-size: 10px;
  line-height: 1.3;
}

.workflow-create-component-grid span,
.workflow-create-preview-empty {
  display: grid;
  gap: 3px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(9, 13, 22, 0.5);
  padding: 8px;
}

.workflow-create-component-grid strong,
.workflow-create-component-grid small,
.workflow-create-preview-empty strong,
.workflow-create-preview-empty span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.workflow-create-component-grid strong,
.workflow-create-preview-empty strong {
  color: #fff;
  font-size: 11px;
  white-space: nowrap;
}

.workflow-create-component-grid small,
.workflow-create-preview-empty span {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.3;
}

.workflow-template-picker {
  display: grid;
  gap: 10px;
  min-width: 0;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.workflow-template-picker summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  max-width: 100%;
  cursor: pointer;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  list-style: none;
}

.workflow-template-picker summary::-webkit-details-marker {
  display: none;
}

.workflow-template-picker summary::before {
  content: "+";
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: #9ff0ea;
  font-size: 12px;
  line-height: 1;
}

.workflow-template-picker[open] summary::before {
  content: "-";
}

.workflow-template-picker summary small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
}

.workflow-template-grid {
  display: flex;
  gap: 6px;
  min-width: 0;
  overflow-x: auto;
}

.workflow-create-card {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 220px;
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.035);
  color: inherit;
  padding: 0 9px;
  text-align: left;
}

.workflow-create-card:hover,
.workflow-create-card:focus-visible {
  border-color: rgba(76, 199, 192, 0.45);
  outline: none;
}

.workflow-create-card.blank {
  min-height: 112px;
  border-color: rgba(224, 179, 65, 0.26);
  background: rgba(224, 179, 65, 0.065);
}

.workflow-create-card.codeboarding-source {
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: 176px;
  border-color: rgba(76, 199, 192, 0.28);
  background: rgba(76, 199, 192, 0.06);
  padding: 0;
  overflow: hidden;
}

.workflow-create-card-main {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 13px;
  text-align: left;
}

.workflow-create-card-main:focus-visible {
  outline: 2px solid rgba(76, 199, 192, 0.48);
  outline-offset: -2px;
}

.workflow-create-card-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  border-top: 1px solid var(--line);
  padding: 10px;
}

.workflow-create-card-actions button {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.06);
  color: #dff8f5;
  font-size: 11px;
  font-weight: 850;
  padding: 8px 6px;
}

.workflow-create-card-actions button:hover,
.workflow-create-card-actions button:focus-visible {
  border-color: rgba(76, 199, 192, 0.48);
  outline: none;
}

.workflow-create-card.template {
  min-height: 30px;
}

.workflow-create-icon {
  display: grid;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-items: center;
  border: 1px solid rgba(76, 199, 192, 0.26);
  border-radius: 7px;
  background: rgba(76, 199, 192, 0.13);
  color: #bdf5ef;
  font-size: 15px;
  font-weight: 900;
}

.workflow-create-card.blank .workflow-create-icon {
  border-color: rgba(224, 179, 65, 0.34);
  background: rgba(224, 179, 65, 0.13);
  color: #f4d77f;
}

.workflow-create-card strong,
.workflow-create-card small,
.workflow-create-card em {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.workflow-create-card strong {
  color: #fff;
  font-size: 11px;
  white-space: nowrap;
}

.workflow-create-card small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.workflow-create-card em {
  align-self: auto;
  color: #9ff0ea;
  font-size: 10px;
  font-style: normal;
  font-weight: 850;
  white-space: nowrap;
}

.workflow-create-preview-actions button:disabled {
  cursor: default;
  opacity: 0.45;
}

.workflow-create-body.workflow-create-starter {
  grid-template-columns: minmax(300px, 380px) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  align-items: stretch;
  gap: 12px;
  overflow: hidden;
}

.workflow-format-library,
.workflow-format-preview {
  min-width: 0;
  min-height: 0;
}

.workflow-format-library {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 10px;
  border-right: 1px solid var(--line);
  padding-right: 12px;
  overflow: hidden;
}

.workflow-format-library-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 8px;
  align-items: end;
  min-width: 0;
}

.workflow-format-library-header .workflow-create-kicker {
  grid-column: 1 / -1;
}

.workflow-format-library-header h3,
.workflow-format-library-header small {
  display: block;
  margin: 0;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workflow-format-library-header h3 {
  color: #f6fbff;
  font-size: 14px;
}

.workflow-format-library-header small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
}

.workflow-scratch-card,
.workflow-create-card.template {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.035);
  color: inherit;
  text-align: left;
}

.workflow-scratch-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 3px 10px;
  align-items: center;
  min-height: 76px;
  padding: 10px;
}

.workflow-scratch-card:hover,
.workflow-scratch-card:focus-visible,
.workflow-create-card.template:hover,
.workflow-create-card.template:focus-visible,
.workflow-create-card.template.selected {
  border-color: rgba(76, 199, 192, 0.52);
  background: rgba(76, 199, 192, 0.075);
  outline: none;
}

.workflow-scratch-grid {
  grid-row: 1 / span 2;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5px;
  width: 48px;
  height: 48px;
  border: 1px dashed rgba(224, 179, 65, 0.42);
  border-radius: 7px;
  padding: 6px;
}

.workflow-scratch-grid i {
  display: block;
  border-radius: 4px;
  background: rgba(224, 179, 65, 0.18);
}

.workflow-scratch-card strong,
.workflow-scratch-card small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.workflow-scratch-card strong {
  color: #fff;
  font-size: 12px;
  white-space: nowrap;
}

.workflow-scratch-card small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.3;
}

.workflow-format-list {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
  overflow: auto;
  padding-right: 2px;
}

.workflow-create-card.template {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 10px;
  min-height: 92px;
  max-width: none;
  padding: 9px;
}

.workflow-create-card.template .workflow-template-diagram {
  align-self: stretch;
}

.workflow-create-card-copy {
  display: grid;
  align-content: center;
  gap: 4px;
  min-width: 0;
}

.workflow-create-card-copy strong,
.workflow-create-card-copy small,
.workflow-create-card-copy em {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.workflow-create-card-copy strong {
  color: #fff;
  font-size: 12px;
  white-space: nowrap;
}

.workflow-create-card-copy small {
  color: #c9d8de;
  font-size: 10px;
  line-height: 1.28;
}

.workflow-create-card-copy em {
  color: #9ff0ea;
  font-size: 10px;
  font-style: normal;
  font-weight: 850;
  white-space: nowrap;
}

.workflow-format-preview {
  display: grid;
  min-width: 0;
  overflow: auto;
}

.workflow-format-preview-card {
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
  min-height: 0;
}

.workflow-format-preview-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  min-width: 0;
}

.workflow-format-preview-header h3,
.workflow-format-preview-header p {
  display: block;
  margin: 0;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.workflow-format-preview-header h3 {
  color: #fff;
  font-size: 18px;
  line-height: 1.15;
}

.workflow-format-preview-header p {
  margin-top: 5px;
  color: #c9d8de;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.35;
}

.workflow-template-diagram {
  display: block;
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(76, 199, 192, 0.2);
  border-radius: 7px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    rgba(5, 10, 18, 0.58);
  background-size: 12px 12px;
}

.workflow-template-diagram.compact {
  height: 72px;
}

.workflow-template-diagram.preview {
  aspect-ratio: 16 / 8.5;
  min-height: 300px;
  max-height: 520px;
}

.workflow-template-diagram line {
  stroke: rgba(190, 211, 224, 0.54);
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}

.workflow-template-diagram circle {
  fill: rgba(18, 42, 65, 0.96);
  stroke: rgba(76, 199, 192, 0.92);
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}

.workflow-template-diagram g.human circle {
  fill: rgba(83, 54, 115, 0.96);
  stroke: rgba(197, 151, 255, 0.9);
}

.workflow-template-diagram g.tool circle {
  fill: rgba(78, 65, 25, 0.98);
  stroke: rgba(245, 205, 95, 0.92);
}

.workflow-template-diagram text {
  fill: #dff8f5;
  font-weight: 900;
  text-anchor: middle;
  paint-order: stroke;
  stroke: rgba(5, 10, 18, 0.88);
  stroke-width: 1.1px;
}

.workflow-template-diagram text.node-number {
  font-size: 2px;
}

.workflow-template-diagram text.node-label {
  font-size: 1.55px;
}

.workflow-format-contract-row,
.workflow-format-fit-row {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.workflow-format-contract-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.workflow-format-fit-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.workflow-format-contract-row span,
.workflow-format-fit-row span {
  display: grid;
  gap: 3px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.035);
  padding: 9px;
}

.workflow-format-contract-row strong,
.workflow-format-fit-row strong,
.workflow-format-contract-row small,
.workflow-format-fit-row small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.workflow-format-contract-row strong,
.workflow-format-fit-row strong {
  color: #9ff0ea;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.workflow-format-contract-row small,
.workflow-format-fit-row small {
  color: #dce8ee;
  font-size: 11px;
  line-height: 1.32;
}

.workflow-create-repository-controls {
  display: grid;
  gap: 8px;
  min-width: 0;
  border: 1px solid rgba(76, 199, 192, 0.18);
  border-radius: 7px;
  background: rgba(76, 199, 192, 0.045);
  padding: 10px;
}

.workflow-create-repository-controls small {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 980px) {
  .workflow-create-workbench {
    grid-template-columns: minmax(0, 1fr);
  }

  .workflow-create-body.workflow-create-starter {
    grid-template-columns: minmax(0, 1fr);
    overflow: auto;
  }

  .workflow-format-library {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding-right: 0;
    padding-bottom: 12px;
  }

  .workflow-create-pipeline-strip,
  .workflow-create-stage-row {
    grid-template-columns: repeat(7, minmax(90px, 1fr));
    overflow-x: auto;
  }

  .workflow-create-artifact-row,
  .workflow-format-contract-row,
  .workflow-format-fit-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .workflow-template-diagram.preview {
    min-height: 220px;
  }
}

.workflow-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  border-bottom: 1px solid var(--line);
  padding: 0 12px;
}

.workflow-title h2 {
  margin: 0;
  color: #fff;
  font-size: 15px;
}

.workflow-title span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.workflow-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
}

.run-button {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.workflow-toolbar-create {
  display: none;
}

.settings-button {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.045);
  color: #dfe7ef;
}

.workflow-runtime-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  padding: 9px 10px;
}

.workflow-runtime-strip > span {
  display: grid;
  gap: 3px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.035);
  padding: 8px;
}

.workflow-runtime-strip strong,
.workflow-runtime-strip small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workflow-runtime-strip strong {
  color: #fff;
  font-size: 11px;
}

.workflow-runtime-strip small {
  color: var(--muted);
  font-size: 10px;
}

.workflow-stage-map-editor .workflow-runtime-strip {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  border-bottom-color: rgba(54, 74, 99, 0.72);
  background: #0b1320;
  padding: 0;
}

.workflow-stage-map-editor .workflow-runtime-strip > span {
  align-items: baseline;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 8px;
  border: 0;
  border-right: 1px solid rgba(54, 74, 99, 0.72);
  border-radius: 0;
  background: transparent;
  padding: 10px 12px;
}

.workflow-stage-map-editor .workflow-runtime-strip > span:last-child {
  border-right: 0;
}

.workflow-stage-map-editor .workflow-runtime-strip strong {
  color: #f3f7fb;
  font-size: 13px;
  line-height: 1;
}

.workflow-stage-map-editor .workflow-runtime-strip small {
  color: #8494a8;
  font-size: 10px;
  font-weight: 720;
  letter-spacing: 0;
  line-height: 1;
  text-transform: uppercase;
}

.workflow-accountability-chip {
  border-color: rgba(76, 199, 192, 0.26) !important;
  background: rgba(76, 199, 192, 0.06) !important;
}

.workflow-accountability-chip strong {
  color: #d8fffb;
}

.workflow-settings-panel {
  grid-row: 4;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  border-bottom: 1px solid var(--line);
  background: rgba(251, 190, 54, 0.055);
  padding: 9px 10px;
}

.workflow-settings-panel label,
.workflow-settings-panel span {
  display: grid;
  gap: 3px;
  min-width: 0;
  border: 1px solid rgba(251, 190, 54, 0.18);
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.18);
  padding: 8px;
}

.workflow-settings-panel strong,
.workflow-settings-panel small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workflow-settings-panel strong {
  color: #fff;
  font-size: 11px;
}

.workflow-settings-panel small {
  color: var(--muted);
  font-size: 10px;
}

.workflow-settings-panel input,
.workflow-settings-panel select {
  width: 100%;
  min-width: 0;
  height: 24px;
  border: 1px solid rgba(251, 190, 54, 0.22);
  border-radius: 5px;
  background: rgba(9, 12, 17, 0.92);
  color: #f5d57e;
  font-size: 10.5px;
  font-weight: 800;
  padding: 0 7px;
  outline: none;
}

.workflow-settings-panel input:focus,
.workflow-settings-panel select:focus {
  border-color: rgba(251, 190, 54, 0.48);
  box-shadow: 0 0 0 2px rgba(251, 190, 54, 0.12);
}

.watchdog-judgement-pane {
  grid-row: 3;
  grid-column: 1;
  display: grid;
  gap: 8px;
  align-self: stretch;
  max-height: 104px;
  min-width: 0;
  overflow-x: hidden;
  overflow-y: auto;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  background: rgba(76, 199, 192, 0.045);
  padding: 9px 10px 10px;
}

.watchdog-pane-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.watchdog-pane-header h3 {
  margin: 0;
}

.workflow-panel.codeboarding-section {
  grid-template-columns: clamp(260px, 20vw, 288px) minmax(0, 1fr);
  gap: 0;
  padding: 0;
  background: #070c18;
}

body[data-active-tab="workflow"] .workflow-panel.codeboarding-section {
  position: fixed;
  z-index: 30;
  top: calc(var(--topbar-height) + var(--safe-top));
  right: var(--safe-right);
  bottom: var(--safe-bottom);
  left: calc(var(--rail-width) + var(--safe-left));
}

.workflow-empty-canvas {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
}

.workflow-empty-state {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 0;
  padding: 24px;
  text-align: center;
}

.workflow-empty-state h2,
.workflow-empty-state p {
  margin: 0;
}

.workflow-empty-state h2 {
  color: #fff;
  font-size: 18px;
}

.workflow-empty-state p {
  max-width: 360px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.workspace-empty-side-panel {
  display: grid;
  align-content: start;
  padding: 14px;
}

.workspace-empty-side {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.workspace-empty-side h3,
.workspace-empty-side p {
  margin: 0;
}

.workspace-empty-side h3 {
  color: #fff;
  font-size: 14px;
  line-height: 1.2;
}

.workspace-empty-side p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.codeboarding-explorer-sidebar {
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr) auto;
  gap: 16px;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  border-right: 1px solid rgba(54, 74, 99, 0.9);
  background: #111a28;
  padding: 20px 18px 16px;
}

.codeboarding-explorer-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.codeboarding-brand-lockup {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  color: #f4f8fb;
  letter-spacing: 0.18em;
  font-size: 11px;
  font-weight: 900;
}

.codeboarding-brand-mark {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(79, 190, 255, 0.78);
  border-radius: 6px;
  color: #7cd4ff;
  font-size: 9px;
  letter-spacing: 0;
}

.codeboarding-sidebar-switch {
  flex: 0 0 auto;
  min-height: 26px;
  border: 1px solid rgba(71, 91, 118, 0.7);
  border-radius: 7px;
  background: rgba(10, 17, 29, 0.74);
  color: #c3d4e7;
  cursor: pointer;
  font-size: 10px;
  font-weight: 850;
  padding: 0 8px;
}

.codeboarding-repo-heading {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.codeboarding-repo-heading h3,
.codeboarding-repo-heading p {
  margin: 0;
}

.codeboarding-repo-heading h3 {
  color: #f6f8fb;
  font-size: 16px;
}

.codeboarding-repo-heading p {
  color: #8292a8;
  font-size: 12px;
  line-height: 1.45;
}

.codeboarding-repo-search {
  display: grid;
  gap: 5px;
}

.codeboarding-repo-search span {
  color: #6f7f96;
  font-size: 9px;
  font-weight: 850;
}

.codeboarding-repo-search input {
  width: 100%;
  height: 38px;
  border: 1px solid rgba(70, 89, 115, 0.45);
  border-radius: 10px;
  background: #101b2a;
  color: #d9e4f0;
  padding: 0 12px;
}

.codeboarding-repo-list {
  display: grid;
  align-content: start;
  gap: 4px;
  min-height: 0;
  overflow: auto;
}

.codeboarding-repo-list button {
  display: grid;
  gap: 3px;
  min-width: 0;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  padding: 8px;
  text-align: left;
}

.codeboarding-repo-list button.active,
.codeboarding-repo-list button.selected {
  border-color: rgba(55, 173, 236, 0.34);
  background: rgba(19, 117, 172, 0.12);
}

.codeboarding-repo-list strong,
.codeboarding-repo-list small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.codeboarding-repo-list strong {
  color: #dfe8f2;
  font-size: 12px;
}

.codeboarding-repo-list small {
  color: #6e7d94;
  font-size: 10px;
  font-weight: 780;
}

.codeboarding-add-repo {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  border: 0;
  border-top: 1px solid rgba(54, 74, 99, 0.8);
  background: transparent;
  color: #dce8f4;
  cursor: pointer;
  padding: 8px 0 0;
  text-align: left;
}

.codeboarding-explorer {
  grid-column: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(300px, 24vw, 340px);
  grid-template-rows: minmax(0, 1fr) 118px;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #070c18;
  box-shadow: none;
  color: #d6e1ed;
}

.codeboarding-flow-surface,
.workflow-insertion-surface {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: #070c18;
}

.codeboarding-flow-toolbar,
.workflow-insertion-toolbar {
  position: absolute;
  z-index: 8;
  top: 16px;
  right: 16px;
  left: 16px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  pointer-events: none;
}

.codeboarding-flow-toolbar > span,
.workflow-insertion-toolbar > span {
  position: absolute;
  left: 0;
  border-radius: 999px;
  background: rgba(18, 31, 49, 0.94);
  color: #d7e7f7;
  padding: 5px 12px;
  font-size: 10px;
  font-weight: 850;
}

.codeboarding-flow-toolbar > button,
.codeboarding-flow-toolbar > div,
.workflow-insertion-toolbar > button,
.workflow-insertion-toolbar > div {
  position: absolute;
  pointer-events: auto;
}

.codeboarding-flow-toolbar > button,
.workflow-insertion-toolbar > button {
  left: 0;
  min-height: 28px;
  border: 1px solid rgba(73, 191, 251, 0.5);
  border-radius: 8px;
  background: rgba(11, 20, 34, 0.9);
  color: #dff4ff;
}

.codeboarding-flow-toolbar > div,
.workflow-insertion-toolbar > div {
  right: 0;
  display: flex;
  overflow: hidden;
  border: 1px solid rgba(73, 191, 251, 0.7);
  border-radius: 10px;
}

.codeboarding-flow-toolbar > div button,
.workflow-insertion-toolbar > div button {
  width: 34px;
  height: 32px;
  border: 0;
  border-left: 1px solid rgba(73, 191, 251, 0.22);
  background: rgba(18, 31, 49, 0.94);
  color: #d7e7f7;
  cursor: pointer;
  font-weight: 900;
}

.codeboarding-flow-toolbar > div button:first-child,
.workflow-insertion-toolbar > div button:first-child {
  border-left: 0;
}

.codeboarding-flow-hint {
  position: absolute;
  z-index: 6;
  left: 16px;
  bottom: 14px;
  border-radius: 999px;
  background: rgba(10, 17, 29, 0.72);
  color: #7f92aa;
  font-size: 10px;
  font-weight: 800;
  padding: 5px 10px;
  pointer-events: none;
}

.codeboarding-flow-canvas,
.workflow-insertion-canvas {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  transform: scale(var(--codeboarding-graph-scale, 1));
  transform-origin: center;
  transition: transform 160ms ease;
}

.codeboarding-flow-canvas.fit,
.workflow-insertion-canvas.fit {
  --codeboarding-graph-scale: 0.94;
}

.codeboarding-flow-edges,
.workflow-insertion-edges {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.codeboarding-flow-group {
  position: absolute;
  z-index: 0;
  overflow: hidden;
  border: 1px solid rgba(90, 166, 225, 0.9);
  border-radius: 7px;
  background: rgba(18, 30, 47, 0.82);
  box-shadow: inset 0 1px 0 rgba(180, 220, 255, 0.08);
  pointer-events: none;
  transition:
    height 160ms ease,
    opacity 160ms ease;
}

.codeboarding-flow-group.collapsed {
  opacity: 0.92;
}

.codeboarding-flow-group header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 28px;
  border-bottom: 1px solid rgba(90, 166, 225, 0.66);
  background: rgba(16, 27, 43, 0.96);
  color: #dbe8f5;
  padding: 0 10px;
  pointer-events: auto;
}

.codeboarding-flow-group strong {
  flex: 1;
  overflow: hidden;
  cursor: pointer;
  font-size: 10px;
  font-weight: 860;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.codeboarding-flow-group button {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(116, 208, 255, 0.76);
  border-radius: 999px;
  background: rgba(9, 18, 31, 0.62);
  color: #74d0ff;
  cursor: pointer;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  padding: 0;
}

.codeboarding-flow-group button:hover,
.codeboarding-flow-group button:focus-visible {
  border-color: #9be2ff;
  color: #dff6ff;
  outline: none;
}

.codeboarding-flow-edge-path,
.workflow-insertion-edge-path {
  fill: none;
  stroke: rgba(210, 216, 222, 0.72);
  stroke-width: 0.32;
  stroke-linecap: round;
  stroke-linejoin: round;
  marker-end: url(#codeboardingExplorerArrow);
}

.codeboarding-flow-edges g,
.workflow-insertion-edges g {
  transition: opacity 150ms ease;
}

.codeboarding-flow-edges g.active .codeboarding-flow-edge-path,
.workflow-insertion-edges g.active .workflow-insertion-edge-path {
  stroke: rgba(226, 236, 246, 0.94);
  stroke-width: 0.46;
}

.codeboarding-flow-edges g.active text,
.workflow-insertion-edges g.active text {
  fill: rgba(226, 238, 255, 0.94);
}

.codeboarding-flow-edges g.faded,
.workflow-insertion-edges g.faded {
  opacity: 0.16;
}

.codeboarding-flow-edges g.synthetic .codeboarding-flow-edge-path,
.workflow-insertion-edges g.synthetic .workflow-insertion-edge-path {
  stroke: rgba(176, 187, 199, 0.58);
  stroke-dasharray: 1.2 1.15;
  stroke-width: 0.24;
}

.codeboarding-flow-edges g.synthetic.active .codeboarding-flow-edge-path,
.workflow-insertion-edges g.synthetic.active .workflow-insertion-edge-path {
  stroke: rgba(218, 230, 242, 0.88);
  stroke-width: 0.36;
}

.codeboarding-flow-edges text,
.workflow-insertion-edges text {
  fill: rgba(194, 206, 219, 0.72);
  font-size: 2.2px;
  text-anchor: middle;
}

.codeboarding-flow-edges marker path,
.workflow-insertion-edges marker path {
  fill: rgba(226, 236, 246, 0.94);
}

.codeboarding-flow-node {
  position: absolute;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  width: min(182px, calc(100% - 48px));
  min-height: 58px;
  border: 1px solid rgba(54, 183, 245, 0.9);
  border-radius: 7px;
  background: #0d1928;
  color: #dbe6ef;
  cursor: pointer;
  padding: 0 10px;
  text-align: center;
  touch-action: none;
  transform: translate(-50%, -50%);
  transition:
    opacity 150ms ease,
    box-shadow 150ms ease,
    background 150ms ease,
    border-color 150ms ease;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.2);
  user-select: none;
}

.codeboarding-flow-node.dragging {
  cursor: grabbing;
  box-shadow:
    0 0 0 2px rgba(74, 192, 250, 0.24),
    0 18px 44px rgba(0, 0, 0, 0.35);
}

.codeboarding-flow-node.selected,
.codeboarding-flow-node:hover,
.codeboarding-flow-node:focus-visible {
  background: #102236;
  border-color: #50c8ff;
  outline: none;
}

.codeboarding-flow-node.selected {
  z-index: 9;
  box-shadow:
    0 0 0 3px rgba(80, 200, 255, 0.24),
    0 18px 42px rgba(0, 0, 0, 0.32);
}

.codeboarding-flow-node.faded {
  opacity: 0.28;
}

.codeboarding-flow-node.related {
  opacity: 1;
}

.codeboarding-flow-node span,
.codeboarding-flow-node small {
  grid-column: 1;
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.codeboarding-flow-node span {
  align-self: center;
  color: #e2ebf3;
  font-size: 10.5px;
  font-weight: 780;
  line-height: 1.18;
  white-space: normal;
}

.codeboarding-flow-node small {
  align-self: start;
  color: #7f92aa;
  font-size: 10px;
  font-weight: 760;
  white-space: nowrap;
}

.codeboarding-flow-node i {
  grid-row: 1 / span 2;
  grid-column: 2;
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border: 1px solid rgba(78, 203, 255, 0.86);
  border-radius: 0;
  clip-path: polygon(25% 5%, 75% 5%, 100% 50%, 75% 95%, 25% 95%, 0 50%);
  color: #6dd8ff;
  cursor: zoom-in;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  pointer-events: auto;
}

.codeboarding-flow-node i:hover,
.codeboarding-flow-node i:focus-visible {
  background: rgba(78, 203, 255, 0.18);
  color: #e4f8ff;
  outline: none;
}

.codeboarding-architecture-summary {
  display: grid;
  align-content: start;
  gap: 16px;
  min-width: 0;
  min-height: 0;
  overflow: auto;
  border-left: 1px solid rgba(54, 74, 99, 0.9);
  background: #111a28;
  padding: 22px 20px;
}

.codeboarding-architecture-summary h2,
.codeboarding-architecture-summary h3,
.codeboarding-architecture-summary p,
.codeboarding-architecture-summary ul,
.codeboarding-architecture-summary dl {
  margin: 0;
}

.codeboarding-architecture-summary h2 {
  color: #f0f5fa;
  font-size: 17px;
}

.codeboarding-architecture-summary h3 {
  color: #cfe2f4;
  font-size: 12px;
}

.codeboarding-architecture-summary p,
.codeboarding-architecture-summary li {
  color: #c4ceda;
  font-size: 13px;
  line-height: 1.75;
}

.codeboarding-architecture-summary ul {
  display: grid;
  gap: 6px;
  padding-left: 16px;
}

.codeboarding-architecture-summary button {
  justify-self: start;
  min-height: 30px;
  border: 1px solid rgba(73, 191, 251, 0.5);
  border-radius: 8px;
  background: rgba(29, 115, 166, 0.16);
  color: #dff4ff;
  cursor: pointer;
  font-size: 11px;
  font-weight: 850;
  padding: 0 10px;
}

.codeboarding-summary-section-button {
  display: block;
  width: 100%;
  min-height: 34px;
  border-color: rgba(54, 74, 99, 0.8) !important;
  background: rgba(9, 16, 28, 0.5) !important;
  color: #dbe8f5 !important;
  text-align: left;
}

.codeboarding-architecture-summary dl {
  display: grid;
  gap: 8px;
  border-top: 1px solid rgba(54, 74, 99, 0.9);
  padding-top: 12px;
}

.codeboarding-architecture-summary dl div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.codeboarding-architecture-summary dt {
  color: #7f92aa;
  font-size: 10px;
  font-weight: 850;
}

.codeboarding-architecture-summary dd {
  margin: 0;
  color: #dbe8f5;
  font-size: 11px;
  font-weight: 850;
}

.codeboarding-flow-overview,
.workflow-insertion-overview {
  grid-column: 1 / -1;
  display: grid;
  gap: 6px;
  min-width: 0;
  border-top: 1px solid rgba(54, 74, 99, 0.9);
  background: #070d19;
  padding: 9px 16px 11px;
}

.codeboarding-flow-overview svg,
.workflow-insertion-overview svg {
  width: 100%;
  height: 68px;
  border: 1px solid rgba(54, 74, 99, 0.78);
  border-radius: 18px;
  background: #0d1728;
  box-shadow: inset 0 -8px 0 rgba(242, 231, 202, 0.17);
}

.codeboarding-flow-overview .codeboarding-overview-guide,
.workflow-insertion-overview .workflow-insertion-overview-guide {
  stroke: rgba(108, 127, 154, 0.22);
  stroke-dasharray: 0.55 1.45;
  stroke-linecap: round;
  stroke-width: 0.16;
}

.codeboarding-flow-overview path,
.workflow-insertion-overview path {
  fill: none;
  stroke: rgba(99, 170, 255, 0.82);
  stroke-linecap: round;
  stroke-width: 0.22;
}

.codeboarding-flow-overview path.synthetic,
.workflow-insertion-overview path.synthetic {
  stroke: rgba(238, 139, 43, 0.82);
  stroke-width: 0.24;
}

.codeboarding-flow-overview circle,
.workflow-insertion-overview circle {
  fill: #63aaff;
  stroke: #0d1728;
  stroke-width: 0.28;
}

.codeboarding-flow-overview span,
.workflow-insertion-overview span {
  justify-self: center;
  color: #6f7f96;
  font-size: 11px;
}

.codeboarding-explorer-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #7f92aa;
  font-size: 13px;
}

.codeboarding-vanilla-view {
  grid-column: 2 / -1;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: #f8f9fa;
  color: #495057;
}

.codeboarding-vanilla-frame {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
  background: #f8f9fa;
}

.codeboarding-generated-page {
  min-height: 100%;
  margin: 0 auto;
  padding: 20px;
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.codeboarding-generated-page h1,
.codeboarding-generated-page h2,
.codeboarding-generated-page h3,
.codeboarding-generated-page h4,
.codeboarding-generated-page p {
  margin-top: 0;
}

.codeboarding-generated-page h1 {
  color: #212529;
  font-size: 24px;
  line-height: 1.2;
  margin-bottom: 14px;
}

.codeboarding-generated-page h2 {
  color: #343a40;
  font-size: 20px;
  margin: 18px 0 8px;
}

.codeboarding-generated-page h3 {
  color: #495057;
  font-size: 16px;
}

.codeboarding-generated-page p {
  color: #495057;
  font-size: 13px;
}

.codeboarding-generated-page code {
  border-radius: 3px;
  background-color: #e9ecef;
  color: #343a40;
  font-family: monospace;
  font-size: 12px;
  padding: 2px 4px;
}

.codeboarding-generated-page .badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}

.codeboarding-generated-page .badge {
  display: inline-block;
  border-radius: 3px;
  background: #e9ecef;
  color: #495057;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 8px;
  text-decoration: none;
}

.codeboarding-generated-page .badge:first-child {
  background: #d8f3dc;
}

.codeboarding-generated-page .badge:nth-child(2) {
  background: #dbeafe;
}

.codeboarding-generated-page .diagram-controls {
  margin: 10px 0;
  text-align: center;
}

.codeboarding-generated-page .diagram-controls button {
  margin: 0 5px;
  min-height: 32px;
  border: 0;
  border-radius: 4px;
  background: #6c757d;
  color: white;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 16px;
}

.codeboarding-generated-page .diagram-controls button:hover {
  background: #495057;
}

.codeboarding-vanilla-cy {
  position: relative;
  width: 100%;
  height: 600px;
  overflow: hidden;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  background-color: #ffffff;
  margin: 20px 0;
}

.codeboarding-vanilla-cy.fit {
  height: min(720px, calc(100vh - 210px));
}

.codeboarding-vanilla-cy.empty {
  display: grid;
  place-items: center;
  color: #666;
  font-size: 13px;
  text-align: center;
}

.codeboarding-vanilla-edges {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.codeboarding-vanilla-edges line {
  stroke: #adb5bd;
  stroke-width: 0.32;
  marker-end: url(#codeboardingVanillaArrow);
}

.codeboarding-vanilla-edges marker path {
  fill: #adb5bd;
}

.codeboarding-vanilla-edge-labels {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.codeboarding-vanilla-edge-labels span {
  position: absolute;
  max-width: 120px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: #6c757d;
  font-size: 10px;
  padding: 1px 5px;
  text-overflow: ellipsis;
  white-space: nowrap;
  transform: translate(-50%, -50%);
}

.codeboarding-vanilla-node {
  position: absolute;
  z-index: 3;
  display: grid;
  place-items: center;
  min-width: 118px;
  max-width: 190px;
  min-height: 44px;
  border: 2px solid #dee2e6;
  border-radius: 8px;
  background: #f8f9fa;
  color: #495057;
  cursor: pointer;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.2;
  padding: 12px 14px;
  text-align: center;
  transform: translate(-50%, -50%);
  white-space: normal;
}

.codeboarding-vanilla-node.has-link {
  border-color: #6c757d;
  border-width: 3px;
  background: #e9ecef;
}

.codeboarding-vanilla-node:hover,
.codeboarding-vanilla-node:focus-visible,
.codeboarding-vanilla-node.active {
  border-color: #495057;
  border-width: 3px;
  background: #dee2e6;
  outline: none;
}

.codeboarding-generated-page .component {
  border-left: 3px solid #6c757d;
  border-radius: 8px;
  background: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
  padding: 15px 15px 15px 18px;
}

.codeboarding-generated-page .component.active {
  border-left-color: #495057;
  box-shadow: 0 0 0 2px rgba(73, 80, 87, 0.12), 0 2px 4px rgba(0, 0, 0, 0.1);
}

.codeboarding-generated-page .component h3 {
  color: #495057;
  margin-top: 0;
}

.codeboarding-generated-page .component h3 a {
  color: #495057;
  font-size: 13px;
  text-decoration: underline;
}

.codeboarding-generated-page .references {
  list-style: none;
  margin: 10px 0;
  padding-left: 0;
}

.codeboarding-generated-page .references li {
  margin: 4px 0;
}

.codeboarding-native-shell {
  grid-template-rows: auto auto minmax(0, 1fr);
  min-height: 0;
  overflow: hidden;
}

.codeboarding-native-header,
.codeboarding-run-panel {
  grid-column: 1 / -1;
}

.codeboarding-native-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(11, 17, 27, 0.95);
  padding: 12px 14px;
}

.codeboarding-native-header > div:first-child {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.codeboarding-product-mark {
  width: max-content;
  border: 1px solid rgba(245, 207, 114, 0.26);
  border-radius: 999px;
  background: rgba(245, 207, 114, 0.1);
  color: #f5d57e;
  font-size: 9px;
  font-weight: 900;
  padding: 3px 7px;
}

.codeboarding-native-header h2,
.codeboarding-native-header p {
  margin: 0;
  min-width: 0;
}

.codeboarding-native-header h2 {
  overflow: hidden;
  color: #fff;
  font-size: 17px;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.codeboarding-native-header p {
  color: #b7c4d2;
  font-size: 11px;
  line-height: 1.35;
}

.codeboarding-native-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.codeboarding-run-panel {
  display: grid;
  gap: 9px;
  min-width: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 11, 18, 0.86);
  padding: 10px 14px 12px;
}

.codeboarding-run-fields {
  display: grid;
  grid-template-columns: minmax(170px, 1.2fr) minmax(150px, 1fr) minmax(130px, 0.8fr);
  gap: 8px;
  min-width: 0;
}

.codeboarding-run-fields.secondary {
  grid-template-columns: repeat(2, minmax(130px, 1fr));
}

.codeboarding-run-fields label {
  display: grid;
  align-content: start;
  gap: 4px;
  min-width: 0;
}

.codeboarding-run-fields small {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.codeboarding-run-fields input,
.codeboarding-run-fields select {
  width: 100%;
  min-width: 0;
  height: 30px;
  border: 1px solid rgba(143, 240, 234, 0.2);
  border-radius: 6px;
  background: rgba(4, 8, 14, 0.9);
  color: #eef7fb;
  font-size: 11px;
  font-weight: 800;
  padding: 0 9px;
  outline: none;
}

.codeboarding-run-fields input:focus,
.codeboarding-run-fields select:focus {
  border-color: rgba(245, 207, 114, 0.52);
  box-shadow: 0 0 0 2px rgba(245, 207, 114, 0.12);
}

.codeboarding-run-fields .codeboarding-checkbox-field {
  grid-template-columns: max-content minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 30px;
  border: 1px solid rgba(143, 240, 234, 0.13);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.035);
  padding: 0 9px;
}

.codeboarding-checkbox-field input {
  width: 14px;
  height: 14px;
  padding: 0;
}

.codeboarding-checkbox-field span {
  min-width: 0;
  overflow: hidden;
  color: #dce7f0;
  font-size: 10.5px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.codeboarding-mode-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  min-width: 0;
}

.codeboarding-mode-row button,
.codeboarding-diagram-controls button {
  min-width: 0;
  min-height: 30px;
  border: 1px solid rgba(222, 231, 242, 0.13);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  color: #c7d4e0;
  font-size: 10px;
  font-weight: 900;
}

.codeboarding-mode-row button:hover,
.codeboarding-diagram-controls button:hover,
.codeboarding-mode-row button.active {
  border-color: rgba(245, 207, 114, 0.46);
  background: rgba(245, 207, 114, 0.12);
  color: #f5d57e;
}

.codeboarding-command-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  gap: 8px;
  align-items: center;
  min-width: 0;
}

.codeboarding-command-row code {
  display: block;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(143, 240, 234, 0.13);
  border-radius: 7px;
  background: rgba(4, 8, 14, 0.82);
  color: #b9f2ed;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 10px;
  line-height: 1.35;
  padding: 8px 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.codeboarding-run-status {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(222, 231, 242, 0.1);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.035);
  color: #b7c4d2;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.35;
  padding: 7px 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.codeboarding-run-status.loading {
  border-color: rgba(245, 207, 114, 0.3);
  color: #f5d57e;
}

.codeboarding-run-status.started {
  border-color: rgba(100, 210, 137, 0.32);
  color: #a8efc0;
}

.codeboarding-run-status.blocked,
.codeboarding-run-status.error {
  border-color: rgba(255, 138, 128, 0.32);
  color: #ffb3ab;
}

.codeboarding-native-shell > .codeboarding-artifact-empty {
  grid-row: 3;
  grid-column: 1 / -1;
}

.codeboarding-artifact-workbench {
  grid-row: 3;
  grid-column: 1 / -1;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: rgba(9, 14, 22, 0.92);
}

.codeboarding-artifact-header {
  display: grid;
  grid-template-columns: minmax(170px, 0.55fr) minmax(0, 1fr) max-content;
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 52px;
  border-bottom: 1px solid rgba(222, 231, 242, 0.1);
  padding: 9px 10px;
}

.codeboarding-artifact-header > div:first-child {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.codeboarding-artifact-header h3,
.codeboarding-artifact-header > div:first-child > span {
  display: block;
  margin: 0;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.codeboarding-artifact-header h3 {
  color: #fff;
  font-size: 13px;
}

.codeboarding-artifact-header > div:first-child > span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
}

.codeboarding-artifact-metrics,
.codeboarding-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  min-width: 0;
}

.codeboarding-artifact-metrics {
  padding: 0;
}

.codeboarding-artifact-metrics span,
.codeboarding-summary-grid span {
  display: grid;
  gap: 2px;
  min-width: 0;
  border: 1px solid rgba(222, 231, 242, 0.11);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.035);
  padding: 6px 7px;
}

.codeboarding-artifact-metrics small,
.codeboarding-artifact-metrics strong,
.codeboarding-summary-grid small,
.codeboarding-summary-grid strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.codeboarding-artifact-metrics small,
.codeboarding-summary-grid small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 850;
}

.codeboarding-artifact-metrics strong,
.codeboarding-summary-grid strong {
  color: #f6d575;
  font-size: 10.5px;
}

.codeboarding-workbench-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) minmax(190px, 0.48fr);
  gap: 10px;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  padding: 10px;
}

.codeboarding-artifact-workbench.graph-fit .codeboarding-workbench-body {
  grid-template-rows: minmax(320px, 1.2fr) minmax(150px, 0.35fr);
}

.codeboarding-graph-panel,
.codeboarding-artifact-detail,
.codeboarding-tab-pane,
.codeboarding-component-detail {
  display: grid;
  min-width: 0;
  min-height: 0;
}

.codeboarding-graph-panel {
  grid-template-rows: auto minmax(0, 1fr);
  border: 1px solid rgba(222, 231, 242, 0.11);
  border-radius: 8px;
  overflow: hidden;
}

.codeboarding-diagram-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  min-width: 0;
  border-bottom: 1px solid rgba(222, 231, 242, 0.1);
  background: rgba(10, 15, 23, 0.92);
  padding: 7px;
}

.codeboarding-graph-panel.fit .codeboarding-graph-node {
  width: clamp(138px, 16%, 184px);
}

.codeboarding-graph-canvas {
  position: relative;
  min-height: 0;
  overflow: hidden;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    rgba(6, 10, 16, 0.92);
  background-size: 24px 24px;
}

.codeboarding-graph-edges {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.codeboarding-graph-edges line {
  stroke: rgba(143, 240, 234, 0.42);
  stroke-width: 0.34;
  marker-end: url(#codeboardingArrow);
}

.codeboarding-graph-edges marker path {
  fill: rgba(143, 240, 234, 0.72);
}

.codeboarding-graph-labels {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.codeboarding-graph-labels span {
  position: absolute;
  max-width: 118px;
  overflow: hidden;
  border: 1px solid rgba(245, 207, 114, 0.22);
  border-radius: 999px;
  background: rgba(8, 13, 20, 0.88);
  color: #f4d77f;
  font-size: 8.5px;
  font-weight: 850;
  padding: 2px 6px;
  text-overflow: ellipsis;
  white-space: nowrap;
  transform: translate(-50%, -50%);
}

.codeboarding-graph-node {
  position: absolute;
  z-index: 3;
  display: grid;
  align-content: center;
  gap: 4px;
  width: clamp(126px, 20%, 168px);
  min-width: 0;
  min-height: 64px;
  border: 1px solid rgba(143, 240, 234, 0.28);
  border-radius: 8px;
  background: rgba(19, 27, 41, 0.94);
  color: #edf8fb;
  padding: 9px 10px;
  text-align: left;
  transform: translate(-50%, -50%);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

.codeboarding-graph-node:hover,
.codeboarding-graph-node:focus-visible,
.codeboarding-graph-node.active {
  border-color: rgba(245, 207, 114, 0.6);
  background: rgba(245, 207, 114, 0.1);
  outline: none;
}

.codeboarding-graph-node strong,
.codeboarding-graph-node small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.codeboarding-graph-node strong {
  font-size: 11px;
}

.codeboarding-graph-node small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
}

.codeboarding-edge-list,
.codeboarding-file-list,
.codeboarding-health-list,
.codeboarding-entity-list {
  display: grid;
  gap: 6px;
  min-width: 0;
  min-height: 0;
  overflow: auto;
  margin: 0;
  padding: 0;
  list-style: none;
}

.codeboarding-edge-list li,
.codeboarding-file-list li,
.codeboarding-health-list li,
.codeboarding-entity-list li {
  display: grid;
  gap: 2px;
  min-width: 0;
  border: 1px solid rgba(222, 231, 242, 0.1);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.035);
  padding: 6px 7px;
}

.codeboarding-edge-list strong,
.codeboarding-edge-list small,
.codeboarding-file-list strong,
.codeboarding-file-list span,
.codeboarding-health-list strong,
.codeboarding-health-list span,
.codeboarding-entity-list strong,
.codeboarding-entity-list small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.codeboarding-edge-list strong,
.codeboarding-file-list strong,
.codeboarding-health-list strong,
.codeboarding-entity-list strong {
  color: #eaf5fb;
  font-size: 10px;
}

.codeboarding-edge-list small,
.codeboarding-file-list span,
.codeboarding-health-list span,
.codeboarding-entity-list small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
}

.codeboarding-artifact-detail {
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
}

.codeboarding-artifact-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 5px;
  min-width: 0;
  margin-bottom: 8px;
}

.codeboarding-artifact-tabs button {
  min-width: 0;
  min-height: 28px;
  border: 1px solid rgba(222, 231, 242, 0.12);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
}

.codeboarding-artifact-tabs button.active {
  border-color: rgba(76, 199, 192, 0.48);
  background: rgba(76, 199, 192, 0.14);
  color: #aef7f1;
}

.codeboarding-tab-pane {
  align-content: start;
  gap: 8px;
  overflow: auto;
}

.codeboarding-summary-grid.compact {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.codeboarding-tab-pane p,
.codeboarding-component-detail p {
  margin: 0;
  color: #d4dee9;
  font-size: 10.5px;
  line-height: 1.45;
}

.codeboarding-component-detail {
  gap: 8px;
}

.codeboarding-component-detail h4 {
  margin: 0;
  color: #fff;
  font-size: 12.5px;
}

.codeboarding-mermaid-preview,
.codeboarding-doc-preview {
  min-height: 0;
  max-height: 112px;
  overflow: auto;
  border: 1px solid rgba(222, 231, 242, 0.11);
  border-radius: 7px;
  background: rgba(4, 8, 14, 0.72);
  color: #b9f2ed;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 9.5px;
  line-height: 1.42;
  margin: 0;
  padding: 8px;
  white-space: pre-wrap;
}

.codeboarding-doc-preview {
  max-height: 96px;
  color: #dce7f0;
}

.codeboarding-artifact-empty {
  display: grid;
  align-items: center;
  min-height: 150px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  padding: 18px;
}

.workflow-artifact-editor {
  display: grid;
  grid-template-columns: minmax(190px, 0.8fr) minmax(0, 1.2fr);
  gap: 8px;
  max-height: 190px;
  min-height: 0;
  overflow: auto;
  border-bottom: 1px solid var(--line);
  background: rgba(76, 199, 192, 0.055);
  padding: 9px 10px;
}

.workflow-artifact-editor h3,
.workflow-artifact-editor p {
  margin: 0;
}

.workflow-artifact-editor h3 {
  color: #fff;
  font-size: 12px;
}

.watchdog-pane-header span {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.watchdog-judgement-list {
  display: grid;
  gap: 6px;
}

.watchdog-judgement-row {
  display: grid;
  grid-template-columns: minmax(92px, 0.8fr) minmax(112px, 0.9fr) minmax(0, 1.35fr) minmax(0, 1.45fr);
  gap: 7px;
  min-width: 0;
  border: 1px solid rgba(76, 199, 192, 0.18);
  border-radius: 7px;
  background: rgba(8, 13, 20, 0.38);
  padding: 7px;
}

.watchdog-judgement-row span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.watchdog-judgement-row small,
.watchdog-judgement-row strong {
  display: block;
}

.workflow-repair-panel {
  grid-row: 3;
  grid-column: 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  align-self: stretch;
  max-height: 104px;
  min-width: 0;
  overflow-x: hidden;
  overflow-y: auto;
  border-bottom: 1px solid var(--line);
  background: rgba(76, 199, 192, 0.045);
  padding: 9px 10px;
}

.workflow-repair-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  align-items: center;
  gap: 8px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.035);
  padding: 8px;
}

.workflow-repair-card.escalation-maxed {
  border-color: rgba(241, 111, 105, 0.28);
  background: rgba(241, 111, 105, 0.075);
}

.workflow-repair-card.repair-decision {
  grid-column: 1 / -1;
}

.workflow-repair-copy,
.workflow-repair-actions {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.workflow-repair-actions {
  justify-items: end;
}

.workflow-repair-actions.repair-decision-actions {
  grid-template-columns: repeat(3, minmax(0, 86px));
  justify-content: end;
  align-items: center;
}

.workflow-repair-actions.repair-decision-actions .repair-state {
  grid-column: 1 / -1;
}

.hr-repair-decision-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  align-items: center;
  gap: 10px;
  min-width: 0;
  border-color: rgba(245, 196, 83, 0.28);
  background: rgba(245, 196, 83, 0.07);
}

.hr-repair-decision-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.workflow-repair-copy strong,
.workflow-repair-copy small,
.hr-repair-decision-copy h3,
.hr-repair-decision-copy p,
.hr-repair-decision-copy small,
.repair-kicker,
.repair-state,
.workflow-repair-actions button {
  display: block;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.watchdog-judgement-row small {
  color: var(--muted);
  font-size: 8.5px;
}

.repair-kicker {
  color: #9ff0ea;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.watchdog-judgement-row strong {
  color: #dff7f5;
  font-size: 10px;
  font-weight: 820;
}

.watchdog-judgement-row span:nth-child(n + 3) strong {
  line-height: 1.25;
  overflow-wrap: anywhere;
  white-space: normal;
}

.workflow-artifact-editor p {
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.35;
}

.workflow-artifact-editor > .run-preview-grid:first-of-type {
  align-self: start;
  margin-top: 0;
}

.workflow-artifact-editor > [data-artifact-dag-rows] {
  grid-column: 2;
  grid-row: 2 / span 2;
  max-height: 116px;
  min-height: 0;
  overflow: auto;
  margin: 0;
}

.workflow-artifact-editor > [aria-label="Selected artifact dependency draft"] {
  grid-column: 1 / -1;
}

.workflow-artifact-editor input,
.workflow-artifact-editor select {
  width: 100%;
  min-width: 0;
  height: 24px;
  border: 1px solid rgba(76, 199, 192, 0.28);
  border-radius: 5px;
  background: rgba(9, 12, 17, 0.92);
  color: #b8f1ed;
  font-size: 10.5px;
  font-weight: 800;
  padding: 0 7px;
  outline: none;
}

.workflow-artifact-editor input:focus,
.workflow-artifact-editor select:focus {
  border-color: rgba(76, 199, 192, 0.58);
  box-shadow: 0 0 0 2px rgba(76, 199, 192, 0.12);
}

.workflow-repair-copy strong {
  color: #fff;
  font-size: 11px;
}

.workflow-repair-copy small {
  color: var(--muted);
  font-size: 10px;
}

.repair-state {
  color: var(--muted);
  font-size: 9px;
  font-weight: 900;
  text-align: right;
}

.repair-state.ready {
  color: #9ff0ea;
}

.repair-state.maxed {
  color: #ffaaa5;
}

.workflow-repair-actions button {
  max-width: 142px;
  min-height: 26px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  font-size: 10px;
  font-weight: 850;
  padding: 0 8px;
}

.workflow-link-notice {
  position: absolute;
  z-index: 5;
  top: 10px;
  left: 12px;
  right: 12px;
  min-width: 0;
  border: 1px solid rgba(224, 179, 65, 0.18);
  border-radius: 7px;
  background: rgba(24, 29, 39, 0.94);
  color: #f2d47e;
  font-size: 11px;
  font-weight: 760;
  line-height: 1.2;
  overflow: hidden;
  padding: 8px 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workflow-run-preview {
  position: absolute;
  z-index: 6;
  left: 12px;
  bottom: 14px;
  width: min(390px, calc(100% - 138px));
  border: 1px solid rgba(224, 179, 65, 0.24);
  border-radius: 8px;
  background: rgba(18, 24, 33, 0.96);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
  padding: 10px;
}

.workflow-agent-palette .workflow-run-preview {
  position: static;
  z-index: auto;
  width: auto;
  margin: 0 10px 10px;
  box-shadow: none;
}

.workflow-run-preview h3,
.workflow-run-preview p {
  margin: 0;
}

.workflow-run-preview h3 {
  color: #fff;
  font-size: 12px;
}

.workflow-run-preview p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.35;
}

.orchestrator-turn-feed {
  position: absolute;
  z-index: 7;
  left: 12px;
  bottom: 14px;
  display: grid;
  align-content: start;
  gap: 8px;
  width: min(360px, calc(100% - 154px));
  max-height: min(340px, calc(100% - 88px));
  overflow: auto;
  border: 1px solid rgba(76, 199, 192, 0.24);
  border-radius: 8px;
  background: rgba(15, 21, 31, 0.96);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.3);
  padding: 9px;
  pointer-events: none;
}

.workflow-agent-palette .orchestrator-turn-feed {
  position: static;
  z-index: auto;
  width: auto;
  margin: 10px 10px 0;
  box-shadow: none;
  pointer-events: auto;
}

.workflow-agent-palette .orchestrator-turn-feed {
  max-height: 168px;
  overflow: auto;
}

.orchestrator-turn-feed-header,
.orchestrator-turn-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.orchestrator-turn-feed-header {
  position: sticky;
  top: -9px;
  z-index: 1;
  margin: -9px -9px 0;
  border-bottom: 1px solid var(--line);
  background: rgba(15, 21, 31, 0.98);
  padding: 8px 9px;
}

.orchestrator-turn-feed-header strong {
  color: #fff;
  font-size: 12px;
}

.orchestrator-turn-feed-header span,
.orchestrator-turn-card-header time {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 9.5px;
  font-weight: 850;
}

.orchestrator-turn-card {
  display: grid;
  gap: 8px;
  min-width: 0;
  border: 1px solid rgba(222, 231, 242, 0.14);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.045);
  padding: 9px;
}

.orchestrator-turn-card-header strong {
  overflow: hidden;
  color: #eafffc;
  font-size: 11.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.orchestrator-turn-card p {
  margin: 0;
  color: #e8eef5;
  font-size: 10.5px;
  line-height: 1.35;
}

.orchestrator-turn-section {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.orchestrator-turn-section > span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0;
}

.orchestrator-turn-task-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  min-width: 0;
}

.orchestrator-turn-task-list small {
  max-width: 100%;
  overflow: hidden;
  border: 1px solid rgba(76, 199, 192, 0.18);
  border-radius: 999px;
  background: rgba(76, 199, 192, 0.12);
  color: #aaf5ee;
  font-size: 9px;
  font-weight: 800;
  padding: 3px 6px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.orchestrator-turn-section code {
  min-width: 0;
  overflow-wrap: anywhere;
  border: 1px solid rgba(224, 179, 65, 0.16);
  border-radius: 6px;
  background: rgba(224, 179, 65, 0.08);
  color: #f5d57e;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 9.5px;
  line-height: 1.35;
  padding: 6px;
}

.run-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-top: 9px;
}

.run-preview-grid span {
  display: grid;
  min-width: 0;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  padding: 6px 7px;
}

.run-preview-grid small,
.run-preview-grid strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.run-preview-grid small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 850;
}

.run-preview-grid strong {
  color: #f5d57e;
  font-size: 10px;
}

.workflow-diagram {
  position: relative;
  grid-row: 4;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: var(--canvas);
  cursor: grab;
  touch-action: none;
}

.workflow-diagram.panning {
  cursor: grabbing;
}

.workflow-virtual-stage {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  width: var(--workflow-virtual-width, 1900px);
  height: var(--workflow-virtual-height, 1300px);
  min-width: 1200px;
  min-height: 900px;
  overflow: visible;
  background:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    var(--canvas);
  background-size: 22px 22px;
  transform:
    translate(-50%, -50%)
    translate(var(--workflow-pan-x, 0px), var(--workflow-pan-y, 0px))
    scale(var(--workflow-canvas-zoom, 0.72));
  transform-origin: center;
  will-change: transform;
}

.workflow-diagram.panning .workflow-virtual-stage {
  cursor: grabbing;
}

.workflow-canvas-controls {
  position: absolute;
  z-index: 28;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid rgba(92, 210, 255, 0.46);
  border-radius: 7px;
  background: rgba(8, 14, 24, 0.86);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
  padding: 4px;
}

.workflow-canvas-controls button {
  min-width: 30px;
  height: 28px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #d7e6f4;
  font-size: 12px;
  font-weight: 850;
  padding: 0 8px;
}

.workflow-canvas-controls button:hover,
.workflow-canvas-controls button:focus-visible {
  background: rgba(83, 210, 255, 0.14);
  color: #ffffff;
}

.workflow-canvas-panel.settings-open .workflow-diagram {
  grid-row: 5;
}

.workflow-canvas-panel.codeboarding-mode .workflow-diagram {
  grid-row: 4;
}

.workflow-canvas-panel.codeboarding-mode.settings-open .workflow-diagram {
  grid-row: 5;
}

.workflow-canvas-panel.blank-canvas .workflow-diagram {
  grid-row: 3;
}

.workflow-canvas-panel.blank-canvas.settings-open .workflow-diagram {
  grid-row: 4;
}

.workflow-canvas-panel.workflow-stage-map-editor .workflow-diagram {
  grid-row: 3;
  background: #070d18;
}

.workflow-canvas-panel.workflow-stage-map-editor .workflow-virtual-stage {
  background:
    linear-gradient(rgba(201, 213, 226, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 213, 226, 0.045) 1px, transparent 1px),
    #070d18;
  background-size: 22px 22px;
}

.workflow-canvas-panel.workflow-stage-map-editor .workflow-link-notice {
  display: none;
}

.workflow-canvas-panel.workflow-stage-map-editor.settings-open .workflow-diagram {
  grid-row: 4;
}

.workflow-diagram.drag-over {
  box-shadow: inset 0 0 0 2px rgba(224, 179, 65, 0.42);
}

.workflow-edge-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.workflow-edge {
  fill: none;
  stroke: rgba(145, 163, 186, 0.58);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.workflow-edge.user-created {
  stroke: rgba(224, 179, 65, 0.92);
  stroke-dasharray: 5 4;
}

.workflow-status-dag {
  position: absolute;
  z-index: 7;
  top: 52px;
  left: 12px;
  pointer-events: auto;
  display: grid;
  gap: 8px;
  width: min(286px, calc(100% - 24px));
  max-height: calc(100% - 84px);
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(222, 231, 242, 0.16);
  border-radius: 8px;
  background: rgba(15, 21, 30, 0.94);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.24);
  padding: 9px;
}

.workflow-right-panel > .workflow-status-dag {
  position: static;
  z-index: auto;
  width: auto;
  max-height: 142px;
  overflow: auto;
  border-width: 0 0 1px;
  border-radius: 0;
  background: rgba(76, 199, 192, 0.035);
  box-shadow: none;
}

.workflow-right-panel > .workflow-status-dag .status-dag-list {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0 10px;
}

.workflow-right-panel > .workflow-status-dag .status-dag-node {
  min-height: 46px;
  border-top: 0;
  border-left: 1px solid rgba(222, 231, 242, 0.1);
  padding: 6px 8px;
}

.workflow-right-panel > .workflow-status-dag .status-dag-node:first-child {
  border-left: 0;
}

.status-dag-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.status-dag-heading span,
.status-dag-heading strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-dag-heading span {
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}

.status-dag-heading strong {
  color: var(--muted);
  font-size: 9px;
  font-weight: 820;
}

.status-dag-list {
  display: grid;
  min-width: 0;
}

.status-dag-node {
  position: relative;
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) max-content;
  align-items: center;
  gap: 7px;
  min-width: 0;
  min-height: 50px;
  border-top: 1px solid rgba(222, 231, 242, 0.1);
  background: transparent;
  color: inherit;
  padding: 7px 0;
  text-align: left;
}

.status-dag-node:first-child {
  border-top: 0;
}

.status-dag-node:focus-visible,
.status-dag-node.active {
  outline: 2px solid rgba(76, 199, 192, 0.52);
  outline-offset: -2px;
}

.status-dag-rail {
  position: relative;
  display: block;
  width: 10px;
  height: 100%;
}

.status-dag-rail::before,
.status-dag-rail::after {
  position: absolute;
  left: 4px;
  content: "";
}

.status-dag-rail::before {
  top: -18px;
  bottom: -18px;
  width: 2px;
  background: rgba(145, 163, 186, 0.34);
}

.status-dag-node:first-child .status-dag-rail::before {
  top: 50%;
}

.status-dag-rail::after {
  top: calc(50% - 4px);
  width: 8px;
  height: 8px;
  border: 2px solid rgba(145, 163, 186, 0.9);
  border-radius: 50%;
  background: #151b26;
  transform: translateX(-3px);
}

.status-dag-copy,
.status-dag-copy strong,
.status-dag-copy small,
.status-dag-copy em {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-dag-copy strong {
  color: #f5f8fb;
  font-size: 10.5px;
  font-style: normal;
}

.status-dag-copy small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 9.5px;
}

.status-dag-copy em {
  margin-top: 2px;
  color: var(--muted-2);
  font-size: 9px;
  font-style: normal;
}

.status-dag-node b {
  align-self: start;
  min-width: 54px;
  border: 1px solid rgba(145, 163, 186, 0.2);
  border-radius: 999px;
  background: rgba(145, 163, 186, 0.12);
  color: #dce5ef;
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
  padding: 5px 7px;
  text-align: center;
  text-transform: uppercase;
}

.status-dag-node.ready .status-dag-rail::after,
.status-dag-node.ready b {
  border-color: rgba(53, 192, 131, 0.58);
  background: rgba(53, 192, 131, 0.16);
  color: #aef0cf;
}

.status-dag-node.running .status-dag-rail::after,
.status-dag-node.running b {
  border-color: rgba(79, 156, 249, 0.64);
  background: rgba(79, 156, 249, 0.16);
  color: #bdd9ff;
}

.status-dag-node.blocked .status-dag-rail::after,
.status-dag-node.blocked b {
  border-color: rgba(241, 111, 105, 0.64);
  background: rgba(241, 111, 105, 0.17);
  color: #ffc5c2;
}

.status-dag-node.waiting .status-dag-rail::after,
.status-dag-node.waiting b {
  border-color: rgba(224, 179, 65, 0.58);
  background: rgba(224, 179, 65, 0.15);
  color: #f7d983;
}

.status-dag-node.collapsed {
  min-height: 44px;
}

.status-dag-node.collapsed .status-dag-rail::after {
  border-color: rgba(162, 173, 186, 0.62);
  background: rgba(162, 173, 186, 0.15);
}

.workflow-canvas-node {
  position: absolute;
  display: grid;
  gap: 4px;
  min-width: 136px;
  min-height: 58px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 7px;
  background: #202838;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
  cursor: grab;
  padding: 9px 12px;
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    box-shadow 160ms ease,
    opacity 160ms ease,
    transform 180ms ease;
  user-select: none;
}

.workflow-canvas-node.dragging {
  opacity: 0.72;
}

.workflow-canvas-node.connection-source {
  border-color: rgba(224, 179, 65, 0.96);
  box-shadow:
    0 0 0 2px rgba(224, 179, 65, 0.22),
    0 12px 30px rgba(0, 0, 0, 0.22);
}

.workflow-canvas-node.selected {
  outline: 2px solid rgba(76, 199, 192, 0.68);
  outline-offset: 2px;
}

.workflow-canvas-node.resource-drop-target {
  border-color: rgba(224, 179, 65, 0.96);
  box-shadow:
    0 0 0 3px rgba(224, 179, 65, 0.22),
    0 12px 30px rgba(0, 0, 0, 0.24);
}

.workflow-canvas-node.leader,
.workflow-canvas-node.release {
  border-color: rgba(135, 83, 201, 0.8);
  background: linear-gradient(180deg, rgba(108, 62, 164, 0.9), rgba(45, 36, 63, 0.96));
}

.workflow-canvas-node.human {
  border-color: rgba(76, 199, 192, 0.72);
  background: linear-gradient(180deg, rgba(45, 83, 80, 0.92), rgba(28, 39, 45, 0.96));
}

.workflow-canvas-node strong {
  color: #fff;
  font-size: 12px;
}

.workflow-canvas-node span {
  color: var(--muted);
  font-size: 10px;
}

.node-resource-strip {
  display: flex !important;
  flex-wrap: wrap;
  gap: 3px;
  max-width: 126px;
}

.node-resource-strip b {
  max-width: 58px;
  overflow: hidden;
  border: 1px solid rgba(224, 179, 65, 0.32);
  border-radius: 4px;
  background: rgba(224, 179, 65, 0.11);
  color: #f7d983;
  padding: 1px 4px;
  font-size: 8.5px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workflow-stage-wrapper-node[data-workflow-stage-wrapper] {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 14px;
  grid-template-rows: max-content max-content minmax(0, 1fr);
  align-content: start;
  align-items: start;
  column-gap: 8px;
  row-gap: 6px;
  width: 164px;
  min-height: 104px;
  border-color: rgba(224, 179, 65, 0.38);
  border-radius: 7px;
  background:
    linear-gradient(rgba(222, 231, 242, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(222, 231, 242, 0.035) 1px, transparent 1px),
    #151d2b;
  background-size: 18px 18px, 18px 18px, auto;
  padding: 8px;
  text-align: left;
}

.workflow-stage-wrapper-node[data-workflow-stage-wrapper].leader,
.workflow-stage-wrapper-node[data-workflow-stage-wrapper].release {
  border-color: rgba(151, 112, 222, 0.68);
  background:
    linear-gradient(rgba(222, 231, 242, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(222, 231, 242, 0.035) 1px, transparent 1px),
    #1b2032;
  background-size: 18px 18px, 18px 18px, auto;
}

.workflow-stage-wrapper-node[data-workflow-stage-wrapper].human {
  border-color: rgba(76, 199, 192, 0.62);
  background:
    linear-gradient(rgba(222, 231, 242, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(222, 231, 242, 0.035) 1px, transparent 1px),
    #142526;
  background-size: 18px 18px, 18px 18px, auto;
}

.workflow-stage-wrapper-node[data-workflow-stage-wrapper] .workflow-graph-node-index {
  grid-column: 1;
  grid-row: 1 / span 2;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid rgba(224, 179, 65, 0.42);
  border-radius: 999px;
  background: rgba(8, 13, 22, 0.84);
  color: #f2cf78;
  font-size: 10px;
  font-weight: 860;
  line-height: 1;
}

.workflow-stage-wrapper-node[data-workflow-stage-wrapper] .workflow-insertion-stage {
  grid-column: 2 / -1;
  grid-row: 1;
  display: grid;
  gap: 3px;
  min-width: 0;
}

.workflow-stage-wrapper-node[data-workflow-stage-wrapper] .workflow-insertion-stage b,
.workflow-stage-wrapper-node[data-workflow-stage-wrapper] .workflow-graph-agent-slot b,
.workflow-stage-wrapper-node[data-workflow-stage-wrapper] .workflow-graph-handoff-slot b,
.workflow-stage-wrapper-node[data-workflow-stage-wrapper] .workflow-graph-io-port b,
.workflow-stage-wrapper-node[data-workflow-stage-wrapper] .workflow-graph-tool-slot b {
  color: #f2cf78;
  font-size: 9px;
  font-weight: 820;
  line-height: 1;
  text-transform: uppercase;
}

.workflow-stage-wrapper-node[data-workflow-stage-wrapper] .workflow-insertion-stage strong {
  display: -webkit-box;
  min-width: 0;
  overflow: hidden;
  color: #f6f8fb;
  font-size: 11px;
  font-weight: 760;
  line-height: 1.18;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.workflow-stage-wrapper-node[data-workflow-stage-wrapper] .workflow-insertion-stage small {
  min-width: 0;
  overflow: hidden;
  color: #8999ad;
  font-size: 9px;
  font-weight: 620;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workflow-stage-wrapper-node[data-workflow-stage-wrapper] .workflow-graph-node-summary {
  grid-column: 1 / -1;
  grid-row: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(58px, max-content);
  gap: 5px;
  min-width: 0;
}

.workflow-stage-wrapper-node[data-workflow-stage-wrapper] .workflow-graph-node-atom-grid {
  grid-column: 1 / -1;
  grid-row: 3;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 5px;
  min-width: 0;
}

.workflow-stage-wrapper-node[data-workflow-stage-wrapper] .workflow-graph-agent-slot,
.workflow-stage-wrapper-node[data-workflow-stage-wrapper] .workflow-graph-handoff-slot,
.workflow-stage-wrapper-node[data-workflow-stage-wrapper] .workflow-graph-io-port,
.workflow-stage-wrapper-node[data-workflow-stage-wrapper] .workflow-graph-tool-slot {
  display: grid;
  gap: 4px;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(222, 231, 242, 0.13);
  border-radius: 5px;
  background: rgba(8, 13, 22, 0.52);
  padding: 5px 6px;
}

.workflow-stage-wrapper-node[data-workflow-stage-wrapper] .workflow-graph-io-port {
  display: none;
}

.workflow-stage-wrapper-node[data-workflow-stage-wrapper] .workflow-graph-tool-slot {
  grid-column: 1;
  border-color: rgba(224, 179, 65, 0.24);
}

.workflow-stage-wrapper-node[data-workflow-stage-wrapper] .workflow-graph-agent-slot small,
.workflow-stage-wrapper-node[data-workflow-stage-wrapper] .workflow-graph-handoff-slot small,
.workflow-stage-wrapper-node[data-workflow-stage-wrapper] .workflow-graph-io-port small,
.workflow-stage-wrapper-node[data-workflow-stage-wrapper] .workflow-graph-tool-slot small {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(222, 231, 242, 0.12);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.035);
  color: #c7d0dc;
  font-size: 9.5px;
  font-weight: 610;
  line-height: 1.12;
  padding: 3px 5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workflow-stage-wrapper-node[data-workflow-stage-wrapper] .workflow-graph-tool-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  min-width: 0;
  overflow: hidden;
}

.workflow-stage-wrapper-node[data-workflow-stage-wrapper] {
  grid-template-columns: 22px minmax(0, 1fr);
  grid-template-rows: max-content max-content;
  column-gap: 6px;
  row-gap: 4px;
  width: 124px;
  min-width: 124px;
  max-width: 124px;
  min-height: 60px;
  padding: 6px;
}

.workflow-stage-wrapper-node[data-workflow-stage-wrapper] .workflow-graph-node-index {
  grid-column: 1;
  grid-row: 1;
  width: 20px;
  height: 20px;
  font-size: 8px;
}

.workflow-stage-wrapper-node[data-workflow-stage-wrapper] .workflow-insertion-stage {
  grid-column: 2;
  grid-row: 1;
  gap: 1px;
}

.workflow-stage-wrapper-node[data-workflow-stage-wrapper] .workflow-insertion-stage b {
  display: none;
}

.workflow-stage-wrapper-node[data-workflow-stage-wrapper] .workflow-insertion-stage strong {
  display: block;
  overflow: hidden;
  font-size: 10.5px;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workflow-stage-wrapper-node[data-workflow-stage-wrapper] .workflow-insertion-stage small {
  font-size: 8px;
  line-height: 1;
}

.workflow-stage-wrapper-node[data-workflow-stage-wrapper] .workflow-graph-node-summary {
  grid-column: 1 / -1;
  grid-row: 2;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3px;
}

.workflow-stage-wrapper-node[data-workflow-stage-wrapper] .workflow-graph-node-atom-grid {
  display: none !important;
}

.workflow-stage-wrapper-node[data-workflow-stage-wrapper] .workflow-graph-agent-slot,
.workflow-stage-wrapper-node[data-workflow-stage-wrapper] .workflow-graph-handoff-slot,
.workflow-stage-wrapper-node[data-workflow-stage-wrapper] .workflow-graph-tool-slot {
  grid-column: auto;
  gap: 2px;
  min-height: 0;
  padding: 3px 4px;
}

.workflow-stage-wrapper-node[data-workflow-stage-wrapper] .workflow-graph-agent-slot b,
.workflow-stage-wrapper-node[data-workflow-stage-wrapper] .workflow-graph-handoff-slot b,
.workflow-stage-wrapper-node[data-workflow-stage-wrapper] .workflow-graph-tool-slot b {
  overflow: hidden;
  font-size: 6.8px;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workflow-stage-wrapper-node[data-workflow-stage-wrapper] .workflow-graph-agent-slot small,
.workflow-stage-wrapper-node[data-workflow-stage-wrapper] .workflow-graph-handoff-slot small,
.workflow-stage-wrapper-node[data-workflow-stage-wrapper] .workflow-graph-tool-slot small {
  border: 0;
  background: transparent;
  font-size: 8px;
  line-height: 1;
  padding: 0;
}

.workflow-stage-wrapper-node[data-workflow-stage-wrapper] .workflow-graph-tool-chip-row {
  flex-wrap: nowrap;
  gap: 2px;
}

.workflow-stage-map-editor .workflow-stage-wrapper-node[data-workflow-stage-wrapper] {
  width: 110px;
  min-width: 110px;
  max-width: 110px;
  min-height: 64px;
  border-color: rgba(120, 142, 170, 0.44);
  background: #0d1725;
  box-shadow: none;
}

.workflow-stage-map-editor .workflow-stage-wrapper-node[data-workflow-stage-wrapper].selected {
  border-color: rgba(104, 214, 255, 0.9);
  background: #102033;
  outline: 2px solid rgba(104, 214, 255, 0.22);
  outline-offset: 2px;
}

.workflow-stage-map-editor .workflow-stage-wrapper-node[data-workflow-stage-wrapper] .workflow-graph-node-index {
  border-color: rgba(230, 184, 79, 0.54);
  color: #f1cd78;
}

.workflow-stage-map-editor .workflow-stage-wrapper-node[data-workflow-stage-wrapper] .workflow-insertion-stage strong {
  color: #edf3f8;
  font-size: 11px;
  font-weight: 720;
}

.workflow-stage-map-editor .workflow-stage-wrapper-node[data-workflow-stage-wrapper] .workflow-insertion-stage small {
  color: #7d8da1;
}

.workflow-stage-map-editor .workflow-stage-wrapper-node[data-workflow-stage-wrapper] .workflow-graph-node-summary {
  gap: 4px;
}

.workflow-stage-map-editor .workflow-stage-wrapper-node[data-workflow-stage-wrapper] .workflow-graph-agent-slot,
.workflow-stage-map-editor .workflow-stage-wrapper-node[data-workflow-stage-wrapper] .workflow-graph-handoff-slot,
.workflow-stage-map-editor .workflow-stage-wrapper-node[data-workflow-stage-wrapper] .workflow-graph-tool-slot {
  border-color: rgba(120, 142, 170, 0.16);
  background: rgba(5, 10, 18, 0.58);
}

.workflow-stage-map-editor .workflow-stage-wrapper-node[data-workflow-stage-wrapper] .workflow-graph-agent-slot b,
.workflow-stage-map-editor .workflow-stage-wrapper-node[data-workflow-stage-wrapper] .workflow-graph-handoff-slot b,
.workflow-stage-map-editor .workflow-stage-wrapper-node[data-workflow-stage-wrapper] .workflow-graph-tool-slot b {
  color: #9aaabd;
}

.workflow-stage-map-editor .workflow-stage-wrapper-node[data-workflow-stage-wrapper] .workflow-graph-agent-slot small,
.workflow-stage-map-editor .workflow-stage-wrapper-node[data-workflow-stage-wrapper] .workflow-graph-handoff-slot small,
.workflow-stage-map-editor .workflow-stage-wrapper-node[data-workflow-stage-wrapper] .workflow-graph-tool-slot small {
  color: #d8e2ec;
  font-size: 8.2px;
  font-weight: 660;
}

.workflow-graph-pipeline-shell {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: max-content max-content minmax(0, 1fr);
  min-height: 0;
  overflow: hidden;
  background: #070c18;
}

.workflow-panel.workflow-graph-active .workflow-graph-pipeline-shell {
  align-self: stretch;
  height: 100%;
  min-height: 0;
}

.workflow-graph-pipeline-shell.settings-open {
  grid-template-rows: max-content max-content max-content minmax(0, 1fr);
}

.workflow-graph-pipeline-shell.has-loop-status {
  grid-template-rows: max-content max-content max-content minmax(0, 1fr);
}

.workflow-graph-pipeline-shell.has-loop-status.settings-open {
  grid-template-rows: max-content max-content max-content max-content minmax(0, 1fr);
}

.workflow-graph-toolbar {
  min-height: 58px;
  background: #0d1624;
}

.workflow-graph-kicker {
  display: inline-block !important;
  margin: 0 0 3px !important;
  color: #7f92aa !important;
  font-size: 9px !important;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.workflow-graph-metrics {
  background: #0a111d;
}

.workflow-graph-metrics > span {
  border-color: rgba(76, 199, 192, 0.18);
  background: #101a2a;
}

.workflow-graph-repository-sidebar {
  grid-column: 1;
  grid-row: 1;
  grid-template-rows: auto auto auto auto minmax(0, 1fr) auto;
  border-right-color: rgba(54, 74, 99, 0.96);
}

.workflow-graph-repository-sidebar .codeboarding-explorer-brand {
  align-items: flex-start;
  flex-direction: column;
  gap: 8px;
}

.workflow-graph-repository-sidebar .codeboarding-brand-lockup {
  max-width: 100%;
  letter-spacing: 0.12em;
  font-size: 10px;
}

.workflow-graph-repository-sidebar .codeboarding-sidebar-switch {
  justify-self: start;
}

.workflow-graph-repo-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.workflow-graph-repo-stats span {
  display: grid;
  gap: 2px;
  min-width: 0;
  border: 1px solid rgba(54, 74, 99, 0.7);
  border-radius: 8px;
  background: rgba(8, 15, 27, 0.45);
  padding: 7px 8px;
}

.workflow-graph-repo-stats b,
.workflow-graph-repo-stats small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workflow-graph-repo-stats b {
  color: #eef6ff;
  font-size: 12px;
  font-weight: 900;
}

.workflow-graph-repo-stats small {
  color: #74869d;
  font-size: 9px;
  font-weight: 820;
}

.workflow-graph-stage-repo-list {
  gap: 5px;
}

.workflow-graph-sidebar-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  border-top: 1px solid rgba(54, 74, 99, 0.84);
  padding-top: 10px;
}

.workflow-graph-sidebar-actions button {
  min-width: 0;
  min-height: 32px;
  overflow: hidden;
  border: 1px solid rgba(73, 191, 251, 0.34);
  border-radius: 8px;
  background: rgba(12, 22, 37, 0.82);
  color: #dce8f4;
  cursor: pointer;
  font-size: 10px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workflow-graph-sidebar-actions button:first-child {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-start;
  border-color: transparent;
  background: transparent;
  font-size: 13px;
  text-align: left;
}

.workflow-graph-sidebar-actions button:first-child span {
  color: #7cd4ff;
  font-size: 15px;
}

.workflow-graph-loop-status {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.4fr);
  gap: 8px 12px;
  min-width: 0;
  max-height: 76px;
  overflow: hidden;
  align-items: center;
  border-top: 1px solid rgba(54, 74, 99, 0.8);
  border-bottom: 1px solid rgba(54, 74, 99, 0.8);
  background: #0a111d;
  padding: 10px 14px;
}

.workflow-graph-loop-status > div:first-child {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.workflow-graph-loop-status > div:first-child span,
.workflow-graph-loop-status > div:first-child small,
.workflow-loop-evidence small,
.workflow-loop-stage small {
  overflow: hidden;
  color: #8ea4bf;
  font-size: 10px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workflow-graph-loop-status > div:first-child strong {
  overflow: hidden;
  color: #f0f6fc;
  font-size: 13px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workflow-loop-evidence {
  display: grid;
  grid-template-columns: repeat(4, minmax(64px, 1fr));
  gap: 6px;
  min-width: 0;
}

.workflow-loop-evidence span {
  display: grid;
  gap: 2px;
  min-width: 0;
  border: 1px solid rgba(122, 142, 169, 0.16);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.035);
  padding: 6px 8px;
}

.workflow-loop-evidence b {
  overflow: hidden;
  color: #edf5ff;
  font-size: 11px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workflow-loop-stages {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(9, minmax(52px, 1fr));
  gap: 5px;
  min-width: 0;
}

.workflow-loop-stage {
  display: grid;
  gap: 2px;
  min-width: 0;
  border: 1px solid rgba(122, 142, 169, 0.16);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
  padding: 5px 6px;
}

.workflow-loop-stage.done {
  border-color: rgba(76, 199, 192, 0.28);
  background: rgba(76, 199, 192, 0.08);
}

.workflow-loop-stage.active {
  border-color: rgba(224, 179, 65, 0.42);
  background: rgba(224, 179, 65, 0.09);
}

.workflow-loop-stage.failed {
  border-color: rgba(255, 112, 91, 0.42);
  background: rgba(255, 112, 91, 0.1);
}

.workflow-loop-stage b {
  overflow: hidden;
  color: #e4edf5;
  font-size: 10px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workflow-graph-explorer {
  grid-row: auto;
  grid-column: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) 118px;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border-top: 0;
  background: #070c18;
}

.workflow-graph-flow-surface {
  min-width: 0;
  min-height: 0;
  border-right: 0;
}

.workflow-graph-flow-canvas {
  background: #070c18;
}

.workflow-graph-flow-canvas .workflow-link-notice {
  display: none;
}

.workflow-graph-flow-toolbar > span {
  left: 50%;
  transform: translateX(-50%);
  background: rgba(16, 27, 43, 0.96);
}

.workflow-graph-flow-hint {
  right: auto;
  left: 16px;
  display: block;
  border: 1px solid rgba(73, 191, 251, 0.55);
  color: #9eacbc;
}

.flow-flow-editor-explorer {
  grid-template-rows: minmax(0, 1fr);
}

.flow-flow-editor-shell {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(92, 122, 153, 0.22);
  border-radius: 8px;
  background: #101010;
}

.flow-flow-editor-shell.flow-flow-editor-frameless {
  grid-template-rows: minmax(0, 1fr);
  border: 0;
  border-radius: 0;
  background: #111;
}

.flow-flow-editor-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  background: #171717;
  padding: 9px 12px;
}

.flow-flow-editor-header div,
.flow-flow-editor-header small {
  min-width: 0;
}

.flow-flow-editor-header span,
.flow-flow-editor-header small {
  color: #9ca3af;
  font-size: 10px;
  font-weight: 850;
  line-height: 1.2;
}

.flow-flow-editor-header span {
  display: block;
  margin-bottom: 2px;
  text-transform: uppercase;
}

.flow-flow-editor-header strong {
  display: block;
  color: #fafafa;
  font-size: 13px;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.flow-flow-editor-header small {
  text-align: right;
  overflow-wrap: anywhere;
}

.flow-flow-editor-frame {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 0;
  background: #111;
}

.flow-flow-editor-frameless .flow-flow-editor-frame {
  min-height: clamp(620px, 78vh, 920px);
}

.workflow-flow-editor-primary {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  gap: 0;
  min-height: 0;
  overflow: hidden;
  padding: 0;
}

.workflow-canvas-panel.workflow-flow-editor-primary {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  gap: 0;
}

.workflow-flow-editor-primary > .flow-flow-editor-shell {
  grid-column: 1;
  grid-row: 1;
  width: 100%;
  height: 100%;
  min-height: clamp(620px, 78vh, 920px);
  margin: 0;
}

.workflow-flow-editor-warming {
  min-height: clamp(620px, 78vh, 920px);
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    #101820;
  background-size: 16px 16px;
}

.workflow-flow-editor-warming .workflow-empty-state {
  align-self: center;
  justify-self: center;
  min-width: min(360px, calc(100% - 48px));
  border: 1px solid rgba(137, 215, 255, 0.22);
  border-radius: 8px;
  background: rgba(16, 29, 42, 0.82);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.2);
}

.workflow-flow-editor-toolbar {
  margin-bottom: 0;
}

.hr-flow-editor-profile {
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  gap: 0;
  min-height: 0;
  overflow: hidden;
}

.hr-flow-editor-hero {
  margin-bottom: 0;
}

.hr-flow-editor-primary-body {
  min-width: 0;
  min-height: clamp(620px, 78vh, 920px);
  padding: 0;
}

.hr-flow-editor-primary-body > .flow-flow-editor-shell {
  height: 100%;
  margin: 0;
}

.hr-flow-editor-primary-body .flow-flow-editor-frame {
  min-height: clamp(620px, 78vh, 920px);
}

.hr-detail-panel > .flow-flow-editor-shell {
  height: min(520px, 54vh);
  margin: 0 12px 12px;
}

.workflow-graph-stage-group {
  border-color: rgba(90, 166, 225, 0.58);
  background: rgba(18, 30, 47, 0.46);
}

.workflow-graph-stage-group header {
  min-height: 25px;
  border-bottom-color: rgba(90, 166, 225, 0.34);
  background: rgba(16, 27, 43, 0.78);
}

.workflow-graph-edge-layer {
  z-index: 2;
}

.workflow-graph-edge-path {
  marker-end: url(#workflowGraphPipelineArrow);
  stroke: rgba(216, 224, 232, 0.72);
  stroke-width: 0.34;
}

.workflow-graph-node.workflow-canvas-node {
  z-index: 4;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 10px;
  row-gap: 4px;
  width: min(138px, calc(100% - 42px));
  min-width: 0;
  min-height: 62px;
  border: 1px solid rgba(54, 183, 245, 0.84);
  border-radius: 7px;
  background: #0d1928;
  color: #dbe6ef;
  padding: 8px 10px;
  text-align: center;
  transform: none;
  touch-action: none;
}

.workflow-graph-node.workflow-canvas-node.human {
  border-color: rgba(76, 199, 192, 0.78);
  background: #102826;
}

.workflow-graph-node.workflow-canvas-node.leader,
.workflow-graph-node.workflow-canvas-node.release {
  border-color: rgba(130, 158, 247, 0.78);
  background: #172139;
}

.workflow-graph-node.workflow-canvas-node.selected,
.workflow-graph-node.workflow-canvas-node:hover,
.workflow-graph-node.workflow-canvas-node:focus-visible {
  border-color: #50c8ff;
  background: #102236;
  outline: none;
  box-shadow:
    0 0 0 3px rgba(80, 200, 255, 0.18),
    0 18px 42px rgba(0, 0, 0, 0.32);
}

.workflow-graph-node.workflow-canvas-node.stage-done {
  border-color: rgba(76, 199, 192, 0.7);
  background: #0f2026;
}

.workflow-graph-node.workflow-canvas-node.stage-active {
  border-color: rgba(224, 179, 65, 0.9);
  background: #201d16;
}

.workflow-graph-node.workflow-canvas-node.stage-failed {
  border-color: rgba(255, 112, 91, 0.84);
  background: #261714;
}

.workflow-graph-node.workflow-canvas-node.faded {
  opacity: 0.28;
}

.workflow-graph-node.workflow-canvas-node.related {
  opacity: 1;
}

.workflow-graph-node .workflow-graph-node-index {
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(122, 142, 169, 0.34);
  border-radius: 999px;
  background: rgba(9, 15, 25, 0.78);
  color: #8ea4bf;
  font-size: 10px;
  font-weight: 900;
}

.workflow-graph-node.workflow-canvas-node span {
  grid-column: 1;
  display: -webkit-box;
  overflow: hidden;
  color: #e2ebf3;
  font-size: 10.5px;
  font-weight: 850;
  line-height: 1.2;
  text-overflow: clip;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.workflow-graph-node.workflow-canvas-node strong {
  grid-column: 1;
  display: -webkit-box;
  overflow: hidden;
  color: #7f92aa;
  font-size: 8.5px;
  font-weight: 780;
  line-height: 1.2;
  text-overflow: clip;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.workflow-graph-node.workflow-canvas-node .workflow-graph-node-state {
  display: none;
}

.workflow-graph-node.workflow-canvas-node.stage-done .workflow-graph-node-state {
  border-color: rgba(76, 199, 192, 0.28);
  color: #a6eee8;
}

.workflow-graph-node.workflow-canvas-node.stage-active .workflow-graph-node-state {
  border-color: rgba(224, 179, 65, 0.3);
  color: #f7d983;
}

.workflow-graph-node.workflow-canvas-node.stage-failed .workflow-graph-node-state {
  border-color: rgba(255, 112, 91, 0.36);
  color: #ffb0a3;
}

.workflow-graph-node.workflow-canvas-node .node-resource-strip {
  grid-column: 1 / -1;
  max-width: 100%;
}

.workflow-graph-node.workflow-canvas-node i {
  grid-row: 1 / span 3;
  grid-column: 2;
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  border: 1px solid rgba(78, 203, 255, 0.86);
  border-radius: 0;
  clip-path: polygon(25% 5%, 75% 5%, 100% 50%, 75% 95%, 25% 95%, 0 50%);
  color: #6dd8ff;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.workflow-graph-summary {
  grid-row: 1;
  grid-column: 3;
  display: grid;
  align-content: start;
  gap: 14px;
  min-width: 0;
  min-height: 0;
  overflow: auto;
  border-left: 1px solid rgba(54, 74, 99, 0.9);
  background: #111a28;
  padding: 18px 18px 16px;
}

.workflow-graph-summary h3,
.workflow-graph-summary p,
.workflow-graph-summary dl,
.workflow-graph-summary ol {
  margin: 0;
}

.workflow-graph-summary h3 {
  color: #f0f5fa;
  font-size: 16px;
}

.workflow-graph-summary p {
  color: #c4ceda;
  font-size: 12px;
  line-height: 1.6;
}

.workflow-graph-selected-contract {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  border: 1px solid rgba(54, 74, 99, 0.8);
  border-radius: 7px;
  background: #09111d;
  padding: 8px 12px;
}

.workflow-graph-selected-contract span,
.workflow-graph-summary dt {
  color: #7f92aa;
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
}

.workflow-graph-selected-contract .workflow-graph-contract-io {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.workflow-graph-selected-contract small {
  border: 1px solid rgba(76, 199, 192, 0.22);
  border-radius: 999px;
  background: rgba(76, 199, 192, 0.1);
  color: #b7efe8;
  font-size: 9px;
  font-weight: 850;
  padding: 3px 7px;
}

.workflow-graph-selected-contract b {
  color: #dbe8f5;
  font-size: 11px;
}

.workflow-graph-selected-contract strong {
  color: #8ea2ba;
  font-size: 10px;
  font-weight: 850;
}

.workflow-graph-done-list {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.workflow-graph-done-list li {
  border: 1px solid rgba(224, 179, 65, 0.2);
  border-radius: 6px;
  background: rgba(224, 179, 65, 0.08);
  color: #dbe8f5;
  font-size: 10px;
  font-weight: 760;
  line-height: 1.35;
  padding: 6px 7px;
}

.workflow-graph-summary dl {
  display: grid;
  gap: 8px;
  border-top: 1px solid rgba(54, 74, 99, 0.9);
  padding-top: 12px;
}

.workflow-graph-summary dl div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.workflow-graph-summary dd {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: #dbe8f5;
  font-size: 11px;
  font-weight: 850;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workflow-graph-stage-list {
  display: grid;
  gap: 7px;
  padding: 0;
  list-style: none;
}

.workflow-graph-stage-list li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 3px 8px;
  min-width: 0;
  border: 1px solid rgba(54, 74, 99, 0.76);
  border-radius: 7px;
  background: rgba(9, 16, 28, 0.5);
  padding: 8px;
}

.workflow-graph-stage-list li.active {
  border-color: rgba(80, 200, 255, 0.54);
  background: rgba(29, 115, 166, 0.16);
}

.workflow-graph-stage-list small {
  grid-row: 1 / span 2;
  color: #7f92aa;
  font-size: 10px;
  font-weight: 900;
}

.workflow-graph-stage-list strong,
.workflow-graph-stage-list span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workflow-graph-stage-list strong {
  color: #dbe8f5;
  font-size: 11px;
}

.workflow-graph-stage-list span {
  color: #7f92aa;
  font-size: 10px;
}

.workflow-graph-overview {
  grid-column: 1 / -1;
  background: #070d19;
}

.workflow-graph-summary .workflow-graph-loop-status {
  grid-template-columns: minmax(0, 1fr);
  border: 1px solid rgba(54, 74, 99, 0.8);
  border-radius: 7px;
  padding: 10px;
}

.workflow-graph-summary .workflow-loop-evidence {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.workflow-graph-summary .workflow-loop-stages {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.workflow-graph-summary .workflow-settings-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  border: 1px solid rgba(54, 74, 99, 0.8);
  border-radius: 7px;
  background: #09111d;
  padding: 10px;
}

.node-port {
  position: absolute;
  top: calc(50% - 5px);
  width: 10px;
  height: 10px;
  border: 2px solid #3d4657;
  border-radius: 50%;
  background: #151b26;
}

.node-port.in {
  left: -6px;
}

.node-port.out {
  right: -6px;
}

.minimap {
  position: absolute;
  z-index: 30;
  right: 18px;
  bottom: 18px;
  width: 106px;
  height: 66px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.045);
  overflow: hidden;
}

.minimap-edge-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.minimap-edge {
  fill: none;
  stroke: rgba(145, 163, 186, 0.45);
  stroke-width: 1.2;
  vector-effect: non-scaling-stroke;
}

.minimap-edge.user-created {
  stroke: rgba(224, 179, 65, 0.8);
}

.minimap-node {
  position: absolute;
  width: 9px;
  height: 7px;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 2px;
  background: #4b5a72;
  padding: 0;
  transform: translate(-50%, -50%);
}

.minimap-node.leader,
.minimap-node.release {
  background: #8753c9;
}

.minimap-node.human {
  background: #4cc7c0;
}

.minimap-node.active {
  border-color: #fff;
  box-shadow: 0 0 0 2px rgba(76, 199, 192, 0.32);
}

.workflow-right-panel {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  min-height: 0;
  overflow: hidden;
}

.workflow-right-panel.codeboarding-right-panel {
  grid-template-rows: minmax(0, 1fr);
}

.workflow-right-panel.workflow-graph-context-right-panel {
  grid-template-rows: minmax(0, 1fr);
}

.workflow-right-panel.workflow-graph-stage-builder-right-panel {
  grid-template-rows: minmax(0, 1fr);
  background: #0b1320;
}

.workflow-graph-stage-builder-panel {
  display: grid;
  grid-template-rows: max-content max-content minmax(0, 1fr) max-content;
  gap: 12px;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  padding: 14px;
}

.workflow-graph-stage-builder-panel [data-workflow-stage-atom-palette] {
  position: relative;
  z-index: 2;
}

.workflow-graph-stage-builder-panel header {
  display: grid;
  gap: 3px;
  min-width: 0;
  border-bottom: 1px solid rgba(120, 142, 170, 0.18);
  padding-bottom: 10px;
}

.workflow-graph-stage-builder-panel header span {
  color: #8196af;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.workflow-graph-stage-builder-panel header h3 {
  overflow: hidden;
  color: #f4f8ff;
  font-size: 15px;
  font-weight: 880;
  line-height: 1.18;
  margin: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workflow-graph-stage-builder-panel header small {
  overflow: hidden;
  color: #8ea0b5;
  font-size: 10.5px;
  font-weight: 620;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workflow-graph-stage-builder-panel .workflow-graph-palette-bridge {
  gap: 8px;
  min-height: 0;
  overflow: auto;
  border: 1px solid rgba(120, 142, 170, 0.18);
  border-radius: 7px;
  background: #0e1827;
  padding: 10px;
}

.workflow-graph-stage-builder-empty-body {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
  border: 1px solid rgba(120, 142, 170, 0.18);
  border-radius: 7px;
  background: #0e1827;
  padding: 10px;
}

.workflow-graph-stage-builder-empty-body > span {
  color: #8196af;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.workflow-graph-stage-builder-empty-body p {
  margin: 0;
  color: #a8b8ca;
  font-size: 11px;
  font-weight: 560;
  line-height: 1.45;
}

.workflow-graph-context-panel {
  display: grid;
  grid-template-rows: max-content max-content max-content minmax(0, 1fr) max-content max-content;
  gap: 10px;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  color: #d6e1ed;
  padding: 10px;
}

.workflow-graph-context-panel header {
  display: grid;
  gap: 3px;
  min-width: 0;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.workflow-graph-context-panel header span,
.workflow-graph-context-panel header small,
.workflow-graph-context-metrics small,
.workflow-graph-context-contracts span,
.workflow-graph-palette-bridge > span {
  overflow: hidden;
  color: #7f94ad;
  font-size: 9.5px;
  font-weight: 820;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.workflow-graph-context-panel header h3 {
  overflow: hidden;
  color: #f0f6fc;
  font-size: 14px;
  font-weight: 780;
  line-height: 1.2;
  margin: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workflow-graph-context-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.workflow-graph-context-metrics span {
  display: grid;
  gap: 2px;
  min-width: 0;
  border: 1px solid rgba(122, 142, 169, 0.16);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.035);
  padding: 7px 8px;
}

.workflow-graph-context-metrics strong {
  overflow: hidden;
  color: #e5eef7;
  font-size: 12px;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workflow-graph-context-selection {
  display: grid;
  gap: 6px;
  min-width: 0;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.workflow-graph-context-selection span {
  color: #7f94ad;
  font-size: 9.5px;
  font-weight: 820;
  text-transform: uppercase;
}

.workflow-graph-context-selection p {
  display: -webkit-box;
  overflow: hidden;
  color: #a3b2c4;
  font-size: 11px;
  font-weight: 540;
  line-height: 1.45;
  margin: 0;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
}

.workflow-graph-context-contracts {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.workflow-graph-context-contracts div,
.workflow-graph-palette-bridge {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.workflow-graph-context-contracts p {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  min-width: 0;
  margin: 0;
}

.workflow-graph-context-contracts small,
.workflow-graph-palette-bridge small {
  border: 1px solid rgba(73, 191, 251, 0.28);
  border-radius: 5px;
  background: rgba(35, 103, 146, 0.14);
  color: #cfe7f8;
  font-size: 10px;
  font-weight: 620;
  padding: 2px 6px;
}

.workflow-graph-context-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.workflow-graph-context-actions button,
.workflow-graph-palette-bridge .workflow-graph-choice-row button,
.workflow-graph-context-stage-list button {
  min-width: 0;
  border: 1px solid rgba(73, 191, 251, 0.28);
  border-radius: 6px;
  background: rgba(16, 28, 45, 0.82);
  color: #d8edf9;
  cursor: pointer;
  font-size: 10px;
  font-weight: 760;
}

.workflow-graph-context-actions button {
  min-height: 30px;
  overflow: hidden;
  padding: 4px 7px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workflow-graph-palette-bridge {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}

.workflow-graph-palette-bridge .workflow-graph-choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.workflow-graph-palette-bridge .workflow-graph-choice-row button {
  min-height: 25px;
  padding: 3px 7px;
}

.workflow-graph-palette-bridge .workflow-graph-choice-row button[draggable="true"] {
  cursor: grab;
}

.workflow-graph-palette-bridge .workflow-graph-choice-row button.active,
.workflow-graph-context-actions button:hover,
.workflow-graph-palette-bridge .workflow-graph-choice-row button:hover,
.workflow-graph-context-stage-list li.active button,
.workflow-graph-context-stage-list button:hover {
  border-color: rgba(103, 216, 255, 0.72);
  background: rgba(73, 191, 251, 0.14);
  color: #f0fbff;
}

.workflow-right-panel.workflow-graph-context-right-panel {
  background: #0b1320;
}

.workflow-right-panel.workflow-graph-context-right-panel .workflow-graph-context-panel {
  grid-template-rows: max-content max-content max-content minmax(0, 1fr) max-content max-content;
  gap: 12px;
  padding: 14px;
}

.workflow-right-panel.workflow-graph-context-right-panel .workflow-graph-empty-context {
  align-content: start;
  grid-template-rows: max-content max-content max-content max-content;
}

.workflow-right-panel.workflow-graph-context-right-panel .workflow-graph-context-panel header {
  border-bottom-color: rgba(120, 142, 170, 0.24);
}

.workflow-right-panel.workflow-graph-context-right-panel .workflow-graph-context-panel header h3 {
  font-size: 16px;
}

.workflow-right-panel.workflow-graph-context-right-panel .workflow-graph-context-metrics {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border: 1px solid rgba(120, 142, 170, 0.18);
  border-radius: 7px;
  overflow: hidden;
}

.workflow-right-panel.workflow-graph-context-right-panel .workflow-graph-context-metrics span {
  border: 0;
  border-right: 1px solid rgba(120, 142, 170, 0.18);
  border-bottom: 1px solid rgba(120, 142, 170, 0.18);
  border-radius: 0;
  background: #0e1827;
  padding: 8px 7px;
}

.workflow-right-panel.workflow-graph-context-right-panel .workflow-graph-context-metrics span:last-child {
  border-right: 0;
}

.workflow-right-panel.workflow-graph-context-right-panel .workflow-graph-context-metrics span:nth-child(2n) {
  border-right: 0;
}

.workflow-right-panel.workflow-graph-context-right-panel .workflow-graph-context-metrics span:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.workflow-right-panel.workflow-graph-context-right-panel .workflow-graph-context-contracts {
  gap: 9px;
  border: 1px solid rgba(120, 142, 170, 0.18);
  border-radius: 7px;
  background: #0e1827;
  padding: 10px;
}

.workflow-right-panel.workflow-graph-context-right-panel .workflow-graph-palette-bridge {
  gap: 8px;
  border: 1px solid rgba(120, 142, 170, 0.18);
  border-radius: 7px;
  background: #0e1827;
  padding: 10px;
}

.workflow-hierarchy-editor {
  align-content: start;
  min-height: 0;
  overflow: auto;
}

.workflow-hierarchy-section {
  display: grid;
  gap: 7px;
  min-width: 0;
  border-bottom: 1px solid rgba(120, 142, 170, 0.16);
  padding-bottom: 8px;
}

.workflow-hierarchy-section:last-of-type {
  border-bottom: 0;
  padding-bottom: 0;
}

.workflow-hierarchy-toggle {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  gap: 8px;
  min-width: 0;
  min-height: 28px;
  border: 0;
  background: transparent;
  color: #e9f1f8;
  cursor: pointer;
  font: inherit;
  padding: 0;
  text-align: left;
}

.workflow-hierarchy-toggle::before {
  content: "";
  align-self: center;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid #7f94ad;
  border-bottom: 1.5px solid #7f94ad;
  transform: rotate(-45deg);
  transition: transform 140ms ease;
}

.workflow-hierarchy-toggle[aria-expanded="true"]::before {
  transform: rotate(45deg);
}

.workflow-hierarchy-toggle strong {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  overflow: hidden;
  padding-left: 14px;
  font-size: 11px;
  font-weight: 840;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workflow-hierarchy-toggle span {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  max-width: 82px;
  overflow: hidden;
  color: #7f94ad;
  font-size: 9.5px;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workflow-hierarchy-body {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.workflow-hierarchy-current,
.workflow-hierarchy-group-summary {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.workflow-hierarchy-current strong,
.workflow-hierarchy-group-summary strong {
  overflow: hidden;
  color: #f2f8ff;
  font-size: 11px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workflow-hierarchy-current span,
.workflow-hierarchy-group-summary span {
  display: -webkit-box;
  overflow: hidden;
  color: #8ea0b5;
  font-size: 10.5px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.workflow-hierarchy-current-agent {
  grid-template-columns: minmax(0, 1fr) max-content;
  align-items: start;
}

.workflow-hierarchy-current-agent strong,
.workflow-hierarchy-current-agent span {
  grid-column: 1;
}

.workflow-hierarchy-current-agent button {
  grid-column: 2;
  grid-row: 1 / span 2;
  min-height: 26px;
  border: 1px solid rgba(248, 113, 113, 0.34);
  border-radius: 6px;
  background: rgba(248, 113, 113, 0.1);
  color: #ffd9d9;
  cursor: pointer;
  font-size: 10px;
  font-weight: 820;
  padding: 0 8px;
  white-space: nowrap;
}

.workflow-hierarchy-current-agent button:hover {
  border-color: rgba(248, 113, 113, 0.66);
  background: rgba(248, 113, 113, 0.16);
}

.workflow-hierarchy-stage-list {
  display: grid;
  gap: 5px;
  max-height: 188px;
  margin: 0;
  overflow: auto;
  padding: 0;
  list-style: none;
}

.workflow-hierarchy-stage-list button {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 5px 7px;
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(120, 142, 170, 0.18);
  border-radius: 6px;
  background: #121e2f;
  color: #d8edf9;
  cursor: pointer;
  padding: 6px 7px;
  text-align: left;
}

.workflow-hierarchy-stage-list li.active button,
.workflow-hierarchy-stage-list button:hover {
  border-color: rgba(103, 216, 255, 0.72);
  background: rgba(73, 191, 251, 0.14);
}

.workflow-hierarchy-stage-list small {
  grid-row: span 2;
  border: 0;
  background: transparent;
  color: #76d5ff;
  font-size: 9.5px;
  font-weight: 900;
  padding: 0;
}

.workflow-hierarchy-stage-list strong,
.workflow-hierarchy-stage-list span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workflow-hierarchy-stage-list strong {
  color: #eef7ff;
  font-size: 10.5px;
  font-weight: 780;
}

.workflow-hierarchy-stage-list span {
  color: #8fa4ba;
  font-size: 9.5px;
  font-weight: 700;
}

.workflow-resource-choice-row button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.workflow-resource-choice-row button small {
  border: 0;
  background: transparent;
  color: #76d5ff;
  font-size: 8.5px;
  font-weight: 920;
  padding: 0;
}

.workflow-hierarchy-empty {
  display: block;
  border: 0;
  background: transparent;
  color: #8fa4ba;
  line-height: 1.4;
  padding: 0;
}

.workflow-agent-manual-row,
.workflow-agent-access-manual-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  gap: 6px;
  min-width: 0;
}

.workflow-agent-access-manual-row {
  grid-template-columns: 82px minmax(0, 1fr) max-content;
}

.workflow-agent-manual-row input,
.workflow-agent-access-manual-row input,
.workflow-agent-access-manual-row select {
  min-width: 0;
  height: 28px;
  border: 1px solid rgba(120, 142, 170, 0.24);
  border-radius: 6px;
  background: #0c1725;
  color: #eaf5ff;
  font-size: 10px;
  font-weight: 720;
  padding: 0 8px;
}

.workflow-agent-manual-row button,
.workflow-agent-access-manual-row button {
  min-width: 0;
  min-height: 28px;
  border: 1px solid rgba(73, 191, 251, 0.34);
  border-radius: 6px;
  background: rgba(73, 191, 251, 0.12);
  color: #dff6ff;
  cursor: pointer;
  font-size: 10px;
  font-weight: 820;
  padding: 0 8px;
  white-space: nowrap;
}

.workflow-agent-access-editor {
  display: grid;
  gap: 9px;
  min-width: 0;
}

.workflow-agent-access-diagram {
  position: relative;
  display: grid;
  gap: 9px;
  min-width: 0;
  border: 1px solid rgba(73, 191, 251, 0.22);
  border-radius: 7px;
  background:
    linear-gradient(rgba(73, 191, 251, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(73, 191, 251, 0.05) 1px, transparent 1px),
    #0b1725;
  background-size: 18px 18px;
  padding: 10px;
}

.workflow-agent-access-diagram::before {
  content: "";
  position: absolute;
  top: 54px;
  right: 22px;
  left: 22px;
  height: 1px;
  background: rgba(166, 190, 214, 0.45);
}

.workflow-agent-access-node {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2px;
  justify-self: center;
  width: min(100%, 188px);
  min-width: 0;
  border: 1px solid rgba(73, 191, 251, 0.72);
  border-radius: 6px;
  background: #102236;
  color: #eaf7ff;
  padding: 8px 10px;
  text-align: center;
}

.workflow-agent-access-node small,
.workflow-agent-access-block small,
.workflow-agent-access-lane > span {
  color: #7fd8ff;
  font-size: 8.5px;
  font-weight: 900;
  text-transform: uppercase;
}

.workflow-agent-access-node strong,
.workflow-agent-access-block strong {
  min-width: 0;
  overflow: hidden;
  font-size: 10.5px;
  font-weight: 820;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workflow-agent-access-node span {
  min-width: 0;
  overflow: hidden;
  color: #8fa4ba;
  font-size: 9px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workflow-agent-access-lanes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
}

.workflow-agent-access-lane {
  position: relative;
  display: grid;
  gap: 5px;
  min-width: 0;
}

.workflow-agent-access-lane::before {
  content: "";
  position: absolute;
  top: -9px;
  left: 50%;
  width: 1px;
  height: 9px;
  background: rgba(166, 190, 214, 0.42);
}

.workflow-agent-access-lane > div {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.workflow-agent-access-lane em {
  display: block;
  min-height: 28px;
  border: 1px dashed rgba(120, 142, 170, 0.28);
  border-radius: 6px;
  color: #71869c;
  font-size: 9px;
  font-style: normal;
  font-weight: 740;
  padding: 7px;
  text-align: center;
}

.workflow-agent-access-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18px;
  gap: 2px 6px;
  align-items: center;
  min-width: 0;
  border: 1px solid rgba(73, 191, 251, 0.42);
  border-radius: 6px;
  background: rgba(13, 33, 53, 0.94);
  color: #e9f7ff;
  padding: 6px;
}

.workflow-agent-access-block small {
  grid-column: 1;
  color: #91a7bd;
  text-transform: none;
}

.workflow-agent-access-block button {
  grid-column: 2;
  grid-row: 1 / span 2;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(120, 142, 170, 0.32);
  border-radius: 50%;
  background: #101c2b;
  color: #b9ccdc;
  cursor: pointer;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  padding: 0;
}

.workflow-agent-access-block button:hover,
.workflow-agent-manual-row button:hover,
.workflow-agent-access-manual-row button:hover {
  border-color: rgba(103, 216, 255, 0.78);
  background: rgba(73, 191, 251, 0.18);
  color: #f0fbff;
}

.workflow-hierarchy-handoff-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
}

.workflow-hierarchy-handoff-summary span {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(120, 142, 170, 0.18);
  border-radius: 6px;
  background: #121e2f;
  color: #9fb1c6;
  font-size: 9.5px;
  font-weight: 760;
  padding: 5px 6px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scandump-builder-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  min-width: 0;
}

.scandump-builder-list {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.scandump-builder-list header,
.scandump-builder-row-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.scandump-builder-list header strong,
.scandump-builder-row-header strong,
.scandump-builder-row-header small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scandump-builder-list header strong {
  color: #f8fbff;
  font-size: 11px;
}

.scandump-builder-list header span,
.scandump-builder-row > small,
.scandump-builder-row p {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
}

.scandump-builder-row {
  display: grid;
  gap: 6px;
  min-width: 0;
  border: 1px solid rgba(120, 142, 170, 0.18);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.035);
  padding: 8px;
}

.scandump-builder-row.handoff {
  border-color: rgba(76, 199, 192, 0.2);
  background: rgba(76, 199, 192, 0.055);
}

.scandump-builder-row.reference {
  border-color: rgba(96, 165, 250, 0.2);
  background: rgba(96, 165, 250, 0.05);
}

.scandump-builder-row.reference.exists {
  opacity: 0.68;
}

.scandump-builder-row.readiness.blocked {
  border-color: rgba(248, 113, 113, 0.28);
  background: rgba(248, 113, 113, 0.06);
}

.scandump-builder-row.readiness.review {
  border-color: rgba(251, 191, 36, 0.3);
  background: rgba(251, 191, 36, 0.06);
}

.scandump-builder-row-header > span {
  min-width: 0;
}

.scandump-builder-row-header strong {
  color: #edf4fb;
  font-size: 11px;
}

.scandump-builder-row-header small {
  margin-top: 2px;
  color: #91a1b5;
  font-size: 9px;
}

.scandump-builder-row-header button {
  flex: 0 0 auto;
  min-height: 24px;
  border: 1px solid rgba(120, 142, 170, 0.25);
  border-radius: 6px;
  background: #121e2f;
  color: #dce8f6;
  font-size: 10px;
  font-weight: 850;
  padding: 0 8px;
}

.scandump-builder-row-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 4px;
}

.scandump-builder-add-handoff,
.scandump-builder-add-stage,
.scandump-builder-contract-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  min-width: 0;
}

.scandump-builder-reference-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.scandump-builder-reference-actions button {
  min-height: 28px;
  border: 1px solid rgba(120, 142, 170, 0.24);
  border-radius: 6px;
  background: #121e2f;
  color: #dce8f6;
  font-size: 10px;
  font-weight: 850;
  padding: 0 8px;
}

.scandump-builder-reference-actions button[data-scandump-builder-reset-reference] {
  border-color: rgba(251, 191, 36, 0.3);
  background: rgba(251, 191, 36, 0.1);
  color: #fff1c2;
}

.scandump-builder-reference-list {
  display: grid;
  max-height: 280px;
  gap: 6px;
  overflow: auto;
  padding-right: 2px;
}

.workflow-hierarchy-handoff-summary .readiness.ready,
.scandump-builder-readiness.ready {
  border-color: rgba(74, 222, 128, 0.28);
  background: rgba(74, 222, 128, 0.08);
  color: #d7ffe5;
}

.workflow-hierarchy-handoff-summary .readiness.review,
.scandump-builder-readiness.review {
  border-color: rgba(251, 191, 36, 0.32);
  background: rgba(251, 191, 36, 0.08);
  color: #fff1c2;
}

.workflow-hierarchy-handoff-summary .readiness.blocked,
.scandump-builder-readiness.blocked {
  border-color: rgba(248, 113, 113, 0.32);
  background: rgba(248, 113, 113, 0.08);
  color: #ffe0e0;
}

.scandump-builder-readiness {
  display: grid;
  gap: 6px;
  min-width: 0;
  border: 1px solid rgba(120, 142, 170, 0.18);
  border-radius: 7px;
  padding: 8px;
}

.scandump-builder-readiness strong {
  color: #f8fbff;
  font-size: 11px;
}

.scandump-builder-readiness > span {
  color: var(--muted);
  font-size: 10px;
}

.scandump-builder-add-handoff,
.scandump-builder-add-stage {
  align-items: end;
  border: 1px dashed rgba(120, 142, 170, 0.24);
  border-radius: 7px;
  background: rgba(8, 14, 22, 0.42);
  padding: 8px;
}

.scandump-builder-add-handoff button,
.scandump-builder-add-stage button {
  min-height: 28px;
  border: 1px solid rgba(76, 199, 192, 0.34);
  border-radius: 6px;
  background: rgba(76, 199, 192, 0.12);
  color: #dffefa;
  font-size: 10px;
  font-weight: 850;
}

.scandump-builder-add-handoff label,
.scandump-builder-add-stage label,
.scandump-builder-contract-grid label {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.scandump-builder-contract-grid label.wide,
.scandump-builder-contract-grid label.checkbox {
  grid-column: 1 / -1;
}

.scandump-builder-contract-grid label.checkbox {
  display: flex;
  align-items: center;
  gap: 7px;
}

.scandump-builder-add-handoff label span,
.scandump-builder-add-stage label span,
.scandump-builder-contract-grid label span {
  color: #8ca2ba;
  font-size: 9px;
  font-weight: 850;
  text-transform: uppercase;
}

.scandump-builder-add-handoff input,
.scandump-builder-add-handoff select,
.scandump-builder-add-stage input,
.scandump-builder-add-stage select,
.scandump-builder-contract-grid input,
.scandump-builder-contract-grid select,
.scandump-builder-contract-grid textarea {
  min-width: 0;
  width: 100%;
  border: 1px solid rgba(120, 142, 170, 0.2);
  border-radius: 6px;
  background: #0c1522;
  color: #e7f1fc;
  font: inherit;
  font-size: 10px;
  padding: 7px 8px;
}

.scandump-builder-contract-grid textarea {
  min-height: 52px;
  resize: vertical;
}

.scandump-builder-contract-grid input[type="checkbox"] {
  width: 14px;
  height: 14px;
  padding: 0;
}

.scandump-builder-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  min-width: 0;
}

.scandump-builder-tags span {
  max-width: 100%;
  overflow: hidden;
  border: 1px solid rgba(120, 142, 170, 0.16);
  border-radius: 999px;
  background: #121e2f;
  color: #a9bdd4;
  font-size: 9px;
  font-weight: 760;
  line-height: 1;
  padding: 5px 7px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scandump-builder-tags button {
  border: 1px solid rgba(131, 243, 214, 0.26);
  border-radius: 6px;
  background: rgba(26, 99, 88, 0.42);
  color: #bdf7eb;
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
  padding: 5px 7px;
}

.scandump-builder-runtime-modes,
.scandump-builder-runtime-scopes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 6px;
  min-width: 0;
}

.scandump-builder-runtime-mode,
.scandump-builder-runtime-scopes span {
  display: grid;
  gap: 4px;
  min-width: 0;
  border: 1px solid rgba(120, 142, 170, 0.16);
  border-radius: 7px;
  background: rgba(8, 14, 22, 0.46);
  padding: 8px;
}

.scandump-builder-runtime-mode.selected {
  border-color: rgba(76, 199, 192, 0.34);
  background: rgba(76, 199, 192, 0.08);
}

.scandump-builder-runtime-mode strong,
.scandump-builder-runtime-scopes b {
  overflow: hidden;
  color: #edf4fb;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scandump-builder-runtime-mode code,
.scandump-builder-runtime-scopes small {
  min-width: 0;
  overflow-wrap: anywhere;
  color: #9fb1c6;
  font-size: 9px;
  line-height: 1.35;
}

.scandump-builder-row.branch,
.scandump-builder-row.dispatch {
  gap: 8px;
}

.scandump-builder-row.branch .scandump-builder-tags span,
.scandump-builder-row.dispatch .scandump-builder-tags span {
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  overflow-wrap: anywhere;
}

.scandump-builder-row.dispatch code {
  display: block;
  max-width: 100%;
  min-width: 0;
  padding: 6px 8px;
  border: 1px solid rgba(120, 142, 170, 0.16);
  border-radius: 6px;
  background: rgba(8, 14, 22, 0.46);
  color: #9fb1c6;
  font-size: 9px;
  line-height: 1.35;
  overflow-wrap: anywhere;
  white-space: normal;
}

.scandump-builder-badge {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  max-width: 100%;
  padding: 2px 7px;
  border: 1px solid rgba(120, 142, 170, 0.16);
  border-radius: 999px;
  color: #a9bdd4;
  background: rgba(8, 14, 22, 0.46);
  font-size: 9px;
  font-weight: 850;
  line-height: 1;
  overflow-wrap: anywhere;
}

.scandump-builder-row.branch.covered .scandump-builder-badge {
  color: #8ff0c8;
  border-color: rgba(83, 218, 158, 0.42);
}

.scandump-builder-row.branch.missing_agent .scandump-builder-badge,
.scandump-builder-row.branch.partial .scandump-builder-badge {
  color: #f0d58f;
  border-color: rgba(231, 181, 80, 0.42);
}

.scandump-builder-json {
  min-width: 0;
}

.scandump-builder-json summary {
  cursor: pointer;
  color: #dce8f6;
  font-size: 10px;
  font-weight: 850;
}

.scandump-builder-import {
  display: grid;
  gap: 6px;
}

.scandump-builder-import button {
  min-height: 28px;
  border: 1px solid rgba(76, 199, 192, 0.34);
  border-radius: 6px;
  background: rgba(76, 199, 192, 0.12);
  color: #dffefa;
  font-size: 10px;
  font-weight: 850;
}

.scandump-builder-import button + button {
  margin-top: 4px;
}

.scandump-builder-import-error {
  margin: 0;
  border: 1px solid rgba(248, 113, 113, 0.3);
  border-radius: 6px;
  background: rgba(248, 113, 113, 0.08);
  color: #ffe0e0;
  font-size: 10px;
  padding: 7px 8px;
}

.workflow-right-panel.workflow-graph-context-right-panel .workflow-graph-palette-bridge .workflow-graph-choice-row button,
.workflow-right-panel.workflow-graph-context-right-panel .workflow-graph-context-actions button {
  border-color: rgba(120, 142, 170, 0.22);
  background: #121e2f;
}

.workflow-right-panel.workflow-graph-context-right-panel .workflow-graph-palette-bridge .workflow-graph-choice-row button.active {
  border-color: rgba(104, 214, 255, 0.8);
  background: rgba(64, 173, 223, 0.18);
}

.workflow-right-panel.workflow-graph-context-right-panel .workflow-graph-context-actions {
  grid-template-columns: minmax(0, 1fr);
}

.workflow-right-panel.workflow-graph-context-right-panel .workflow-graph-empty-context .workflow-graph-context-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.workflow-right-panel.workflow-graph-context-right-panel .workflow-graph-context-selection {
  min-height: 0;
  overflow: hidden;
}

.workflow-graph-context-stage-list {
  display: grid;
  align-content: start;
  gap: 6px;
  min-width: 0;
  min-height: 0;
  overflow: auto;
  margin: 0;
  padding: 0;
  list-style: none;
}

.workflow-graph-context-stage-list button {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 2px 7px;
  width: 100%;
  min-height: 48px;
  padding: 7px;
  text-align: left;
}

.workflow-graph-context-stage-list small {
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(122, 142, 169, 0.28);
  border-radius: 999px;
  color: #8da2ba;
  font-size: 9px;
  font-weight: 860;
}

.workflow-graph-context-stage-list strong,
.workflow-graph-context-stage-list span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workflow-graph-context-stage-list strong {
  color: #e4edf6;
  font-size: 11px;
  font-weight: 760;
}

.workflow-graph-context-stage-list span {
  color: #7f92aa;
  font-size: 9.5px;
  font-weight: 620;
}

.codeboarding-side-panel {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.codeboarding-side-panel header {
  display: grid;
  gap: 3px;
  min-width: 0;
  border-bottom: 1px solid var(--line);
  padding: 10px;
}

.codeboarding-side-panel h3,
.codeboarding-side-panel header span {
  display: block;
  margin: 0;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.codeboarding-side-panel h3 {
  color: #fff;
  font-size: 13px;
}

.codeboarding-side-panel header span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
}

.codeboarding-side-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  border-bottom: 1px solid var(--line);
  padding: 8px 10px;
}

.codeboarding-side-metrics span {
  display: grid;
  gap: 2px;
  min-width: 0;
  border: 1px solid rgba(222, 231, 242, 0.11);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.035);
  padding: 7px;
}

.codeboarding-side-metrics small,
.codeboarding-side-metrics strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.codeboarding-side-metrics small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 850;
}

.codeboarding-side-metrics strong {
  color: #f6d575;
  font-size: 11px;
}

.codeboarding-pipeline-list {
  display: grid;
  align-content: start;
  gap: 7px;
  min-height: 0;
  overflow: auto;
  margin: 0;
  padding: 10px;
  list-style: none;
}

.codeboarding-pipeline-list li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 8px;
  min-width: 0;
  border: 1px solid rgba(222, 231, 242, 0.11);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.035);
  cursor: pointer;
  padding: 8px;
}

.codeboarding-pipeline-list li.active {
  border-color: rgba(143, 240, 234, 0.52);
  background: rgba(76, 199, 192, 0.1);
}

.codeboarding-pipeline-list small {
  grid-row: 1 / span 2;
  display: grid;
  align-items: center;
  justify-items: center;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: rgba(76, 199, 192, 0.13);
  color: #aef7f1;
  font-size: 9px;
  font-weight: 900;
}

.codeboarding-pipeline-list strong,
.codeboarding-pipeline-list span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.codeboarding-pipeline-list strong {
  color: #edf6fb;
  font-size: 10.5px;
}

.codeboarding-pipeline-list span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
}

.codeboarding-doc-list {
  display: grid;
  gap: 6px;
  max-height: 160px;
  overflow: auto;
  border-top: 1px solid var(--line);
  padding: 10px;
}

.codeboarding-doc-list button {
  display: grid;
  gap: 2px;
  min-width: 0;
  border: 1px solid rgba(245, 207, 114, 0.18);
  border-radius: 7px;
  background: rgba(245, 207, 114, 0.065);
  color: inherit;
  padding: 7px;
  text-align: left;
}

.codeboarding-doc-list strong,
.codeboarding-doc-list small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.codeboarding-doc-list strong {
  color: #f6d575;
  font-size: 10px;
}

.codeboarding-doc-list small {
  color: var(--muted);
  font-size: 9px;
}

.workflow-contract-panel {
  display: grid;
  gap: 8px;
  min-width: 0;
  max-height: 432px;
  overflow: auto;
  border-bottom: 1px solid var(--line);
  background: rgba(76, 199, 192, 0.028);
  padding: 9px;
}

.workflow-contract-panel header,
.contract-lane,
.handoff-contract-list,
.handoff-contract-row {
  display: grid;
  min-width: 0;
}

.workflow-canvas-handoff-editor {
  position: absolute;
  z-index: 30;
  top: 54px;
  right: 12px;
  display: grid;
  width: min(360px, calc(100% - 24px));
  max-height: min(320px, calc(100% - 92px));
  gap: 8px;
  overflow: auto;
  border: 1px solid rgba(73, 191, 251, 0.32);
  border-radius: 7px;
  background: rgba(7, 14, 25, 0.94);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.32);
  padding: 10px;
}

.workflow-canvas-handoff-editor header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.workflow-canvas-handoff-editor header > div {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.workflow-canvas-handoff-editor strong,
.workflow-canvas-handoff-editor small,
.workflow-canvas-handoff-editor p {
  min-width: 0;
}

.workflow-canvas-handoff-editor header strong {
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
}

.workflow-canvas-handoff-editor header span,
.workflow-canvas-handoff-editor small,
.workflow-canvas-handoff-editor p {
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
}

.workflow-canvas-handoff-editor p {
  margin: 0;
  line-height: 1.35;
}

.workflow-canvas-handoff-list {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.workflow-canvas-handoff-editor .handoff-contract-row {
  gap: 6px;
  border: 1px solid rgba(222, 231, 242, 0.12);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.035);
  padding: 8px;
}

.workflow-canvas-handoff-editor .handoff-contract-row strong {
  font-size: 11px;
}

.workflow-canvas-handoff-editor .handoff-contract-row small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workflow-canvas-handoff-more {
  display: block;
}

.handoff-attachment-toggle {
  border-color: rgba(245, 196, 83, 0.34);
}

.handoff-attachment-toggle.active {
  border-color: rgba(245, 196, 83, 0.64);
  background: rgba(245, 196, 83, 0.14);
  color: #ffe49e;
}

.workflow-contract-panel header {
  gap: 2px;
}

.workflow-contract-panel h3,
.workflow-contract-panel span,
.handoff-contract-row strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workflow-contract-panel h3 {
  margin: 0;
  color: #fff;
  font-size: 13px;
}

.workflow-contract-panel span,
.contract-lane small,
.handoff-contract-list > small,
.contract-empty {
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
}

.contract-lane,
.handoff-contract-list {
  gap: 5px;
}

.contract-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  min-width: 0;
}

.contract-chip {
  min-height: 24px;
  border: 1px solid rgba(222, 231, 242, 0.16);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  color: #dbe4ee;
  padding: 3px 7px;
  font-size: 10px;
  font-weight: 900;
}

.contract-chip.active {
  border-color: rgba(76, 199, 192, 0.55);
  background: rgba(76, 199, 192, 0.16);
  color: #b9fff7;
}

.workflow-stage-detail-diagram {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: repeat(5, minmax(44px, auto));
  gap: 7px;
  min-height: 272px;
  overflow: hidden;
  border: 1px solid rgba(73, 191, 251, 0.24);
  border-radius: 7px;
  background: #07101c;
  padding: 12px 9px;
}

.workflow-stage-detail-arrows {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.workflow-stage-detail-arrows path {
  fill: none;
  marker-end: url(#workflowStageDetailArrow);
  stroke: rgba(205, 216, 228, 0.48);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.2;
  vector-effect: non-scaling-stroke;
}

.workflow-stage-detail-arrows marker path {
  fill: rgba(210, 222, 235, 0.68);
}

.workflow-stage-detail-card {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
  gap: 5px;
  min-width: 0;
  min-height: 58px;
  border: 1px solid rgba(73, 191, 251, 0.28);
  border-radius: 6px;
  background: #101b2b;
  padding: 8px;
}

.workflow-stage-detail-card.accepts {
  grid-column: 1;
  grid-row: 1;
}

.workflow-stage-detail-card.agent {
  grid-column: 1;
  grid-row: 2;
  border-color: rgba(103, 216, 255, 0.66);
}

.workflow-stage-detail-card.produces {
  grid-column: 1;
  grid-row: 4;
}

.workflow-stage-detail-card.tools {
  grid-column: 1;
  grid-row: 3;
  border-color: rgba(139, 112, 224, 0.42);
}

.workflow-stage-detail-card.handoffs {
  grid-column: 1;
  grid-row: 5;
}

.workflow-stage-detail-card span,
.workflow-stage-detail-card strong,
.workflow-stage-detail-card small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.workflow-stage-detail-card span {
  color: #8294ab;
  font-size: 8.5px;
  font-weight: 900;
  text-transform: uppercase;
}

.workflow-stage-detail-card strong {
  display: -webkit-box;
  color: #e7eef7;
  font-size: 10.5px;
  font-weight: 850;
  line-height: 1.2;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.workflow-stage-detail-card small {
  display: -webkit-box;
  color: #8ea4bf;
  font-size: 9px;
  font-weight: 650;
  line-height: 1.2;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.handoff-contract-row {
  gap: 5px;
  border-top: 1px solid rgba(222, 231, 242, 0.11);
  padding-top: 7px;
}

.handoff-contract-row strong {
  color: #eef4fb;
  font-size: 10.5px;
  font-weight: 900;
}

.handoff-contract-row strong span {
  display: inline;
  color: #f5cf72;
}

.workflow-agent-palette {
  display: grid;
  grid-template-rows: auto auto auto auto minmax(0, 1fr) auto auto;
  min-height: 0;
  overflow: hidden;
}

.workflow-agent-palette.workflow-agent-palette-compact {
  grid-template-rows: auto auto minmax(150px, 1fr);
  min-height: 260px;
  margin-top: 10px;
  border-top: 1px solid var(--line);
  padding-top: 8px;
}

.palette-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  border-bottom: 1px solid var(--line);
  padding: 9px;
}

.palette-tabs button {
  flex: 1 1 70px;
  min-height: 28px;
  min-width: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  padding: 0 7px;
}

.palette-tabs button.active {
  background: var(--purple-soft);
  color: #dbcaff;
}

.palette-list {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 0;
  overflow: auto;
  padding: 10px;
}

.palette-item {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 8px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.04);
  cursor: grab;
  padding: 8px;
  user-select: none;
}

.palette-item.resource {
  border-color: rgba(76, 199, 192, 0.28);
}

.palette-item.selected {
  border-color: rgba(76, 199, 192, 0.78);
  background: rgba(76, 199, 192, 0.1);
  box-shadow: inset 0 0 0 1px rgba(76, 199, 192, 0.16);
}

.palette-item strong,
.palette-item span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.palette-item strong {
  color: #fff;
  font-size: 11px;
}

.palette-item span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.clone-policy {
  border-top: 1px solid var(--line);
  padding: 10px;
}

.clone-policy h4 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 11px;
}

.clone-policy p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.hidden {
  display: none !important;
}

@media (max-width: 1180px) {
  :root {
    --sidebar-width: 230px;
  }

  .topbar {
    grid-template-columns: minmax(132px, 180px) minmax(220px, 1fr) max-content;
    gap: 12px;
  }

  .server-auth-status {
    display: none !important;
  }

  .chat-panel {
    grid-template-columns: minmax(0, 1fr);
  }

  .chat-panel .info-panel {
    display: none;
  }

  .profile-content {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .runtime-review-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hr-panel {
    grid-template-columns: 250px minmax(0, 1fr);
  }

  .worker-goal-panel.expanded {
    gap: 8px;
  }

  .worker-goal-panel.expanded .worker-goal-grid,
  .worker-goal-panel.expanded .worker-goal-status-grid,
  .worker-goal-panel.expanded .worker-checklist,
  .worker-goal-panel.expanded .worker-activity {
    display: none;
  }

  .workflow-panel {
    grid-template-columns: minmax(0, 1fr);
  }

  .workflow-panel.workflow-graph-active {
    grid-template-columns: minmax(0, 1fr);
  }

  .workflow-panel.codeboarding-section {
    grid-template-columns: 248px minmax(0, 1fr);
  }

  .codeboarding-explorer {
    grid-template-columns: minmax(0, 1fr) 292px;
  }

  .workflow-graph-explorer {
    grid-template-columns: minmax(0, 1fr);
  }

  .codeboarding-flow-node {
    width: min(178px, calc(100% - 40px));
  }

  .workflow-graph-node.workflow-canvas-node {
    width: min(136px, calc(100% - 40px));
  }

  .workflow-canvas-panel {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto minmax(92px, max-content) minmax(92px, max-content) minmax(0, 1fr);
    column-gap: 0;
  }

  .workflow-canvas-panel.settings-open {
    grid-template-rows: auto auto minmax(92px, max-content) minmax(92px, max-content) auto minmax(0, 1fr);
  }

  .workflow-canvas-panel.codeboarding-mode {
    grid-template-rows: auto auto minmax(0, 1fr);
  }

  .workflow-canvas-panel.codeboarding-mode.settings-open {
    grid-template-rows: auto auto minmax(0, 1fr) auto;
  }

  .workflow-graph-pipeline-shell {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: max-content max-content minmax(0, 1fr);
  }

  .workflow-panel.workflow-graph-active .workflow-graph-pipeline-shell {
    height: 100%;
    min-height: 0;
  }

  .workflow-graph-pipeline-shell.settings-open {
    grid-template-rows: max-content max-content max-content minmax(0, 1fr);
  }

  .workflow-graph-pipeline-shell.has-loop-status {
    grid-template-rows: max-content max-content max-content minmax(0, 1fr);
  }

  .workflow-graph-pipeline-shell.has-loop-status.settings-open {
    grid-template-rows: max-content max-content max-content max-content minmax(0, 1fr);
  }

  .codeboarding-native-header {
    align-items: stretch;
    flex-direction: column;
  }

  .codeboarding-native-actions {
    justify-content: flex-start;
  }

  .codeboarding-run-fields,
  .codeboarding-run-fields.secondary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .codeboarding-command-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .workflow-canvas-panel.blank-canvas {
    grid-template-rows: auto auto minmax(0, 1fr);
  }

  .workflow-canvas-panel.blank-canvas.settings-open {
    grid-template-rows: auto auto auto minmax(0, 1fr);
  }

  .watchdog-judgement-pane {
    grid-row: 3;
    grid-column: 1;
    max-height: 104px;
    border-right: 0;
  }

  .workflow-repair-panel {
    grid-row: 4;
    grid-column: 1;
    max-height: 104px;
  }

  .hr-repair-decision-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .hr-repair-decision-actions {
    justify-content: stretch;
  }

  .workflow-settings-panel {
    grid-row: 5;
  }

  .workflow-diagram {
    grid-row: 5;
  }

  .workflow-canvas-panel.settings-open .workflow-diagram {
    grid-row: 6;
  }

  .workflow-canvas-panel.codeboarding-mode .workflow-diagram {
    grid-row: 4;
  }

  .workflow-canvas-panel.codeboarding-mode.settings-open .workflow-diagram {
    grid-row: 5;
  }

  .workflow-canvas-panel.blank-canvas .workflow-diagram {
    grid-row: 3;
  }

  .workflow-canvas-panel.blank-canvas.settings-open .workflow-diagram {
    grid-row: 4;
  }

  .workflow-repair-panel,
  .workflow-repair-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .workflow-repair-actions {
    justify-items: start;
  }

  .codeboarding-workbench-body {
    grid-template-columns: minmax(0, 1fr);
    overflow: auto;
  }

  .codeboarding-graph-panel {
    min-height: 190px;
  }

  .codeboarding-generated-page {
    padding: 16px;
  }

  .workflow-status-dag {
    display: none;
  }

  .orchestrator-turn-feed {
    display: none;
  }

  .workflow-right-panel,
  .workflow-agent-palette {
    display: none;
  }

  .watchdog-judgement-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .workflow-create-body {
    grid-template-columns: minmax(0, 1fr);
  }

  .workflow-template-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .workflow-create-fields,
  .workflow-create-component-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 860px) {
  :root {
    --sidebar-width: 0px;
  }

  .topbar {
    grid-template-columns: minmax(150px, 1fr) minmax(120px, 1fr) max-content;
  }

  .workspace-sidebar,
  .server-auth-status {
    display: none;
  }

  .app-shell {
    grid-template-columns: var(--rail-width) minmax(0, 1fr);
  }

  .rail-mobile-tabs {
    display: grid;
    gap: 8px;
    justify-items: center;
    margin-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 12px;
  }

  .workspace-button {
    width: 44px;
    height: 44px;
  }

  .rail-mobile-tabs button {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.72);
    font-size: 9px;
    font-weight: 900;
  }

  .rail-mobile-tabs button.active {
    background: var(--purple-strong);
    color: #fff;
  }

  .hr-panel,
  .workflow-panel {
    grid-template-columns: minmax(0, 1fr);
  }

  .chat-main {
    grid-template-rows: auto auto minmax(0, 1fr) auto;
  }

  .chat-main.has-loop-summary,
  .chat-main.has-accountability-summary {
    grid-template-rows: auto auto minmax(0, 1fr) auto;
  }

  .chat-main:not(.has-loop-summary):not(.has-accountability-summary) {
    grid-template-rows: auto auto minmax(0, 1fr) auto;
  }

  .chat-main.has-loop-summary.has-accountability-summary {
    grid-template-rows: auto auto minmax(0, 1fr) auto;
  }

  .channel-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    min-height: 0;
    align-items: stretch;
    padding: 10px 12px;
  }

  .channel-title {
    display: grid;
    grid-template-columns: minmax(0, 1fr) max-content;
    align-items: start;
    gap: 4px 8px;
  }

  .room-control-strip {
    grid-column: auto;
    display: flex;
    justify-content: flex-start;
    gap: 8px;
    min-width: 0;
    overflow-x: auto;
    padding-bottom: 1px;
    scrollbar-width: none;
  }

  .room-control-strip::-webkit-scrollbar {
    display: none;
  }

  .room-control-chip {
    flex: 0 0 184px;
    max-width: 184px;
    min-height: 40px;
  }

  .channel-title h2,
  .channel-title span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .channel-title span {
    grid-column: 1 / -1;
    font-size: 11px;
  }

  .chat-sync-pill {
    min-height: 24px;
  }

  .header-actions {
    grid-column: auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-self: stretch;
    gap: 8px;
  }

  .header-actions button,
  .small-action {
    min-width: 44px;
    min-height: 44px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.055);
  }

  .messenger-thread {
    padding: 14px 12px 16px;
  }

  .messenger-message {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 9px;
    margin-bottom: 18px;
  }

  .message-avatar {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    font-size: 11px;
  }

  .message-meta {
    gap: 5px 7px;
  }

  .message-action-bar {
    position: static;
    flex-wrap: wrap;
    justify-self: start;
    max-width: 100%;
    margin: 0 0 6px;
    opacity: 1;
    transform: none;
  }

  .message-action-bar button {
    min-height: 34px;
  }

  .message-thread-parent {
    grid-template-columns: minmax(0, 1fr);
    gap: 3px;
  }

  .message-copy p,
  .message-body p,
  .message-copy li {
    font-size: 14px;
    line-height: 1.55;
  }

  .decision-trace-card,
  .handoff-trace-card,
  .working-group-trace-card {
    width: 100%;
    max-height: 260px;
    overflow: auto;
    padding: 10px;
  }

  .decision-trace-grid div,
  .handoff-chat-route,
  .handoff-atom-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .decision-trace-grid dd,
  .handoff-trace-card p {
    font-size: 12.5px;
    line-height: 1.48;
  }

  .decision-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .decision-action,
  .empty-action,
  .messenger-loop-actions button {
    min-height: 44px;
  }

  .composer {
    grid-template-rows: 44px auto;
    gap: 8px;
    padding: 8px 12px 10px;
  }

  .chat-reply-target {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .chat-reply-target button {
    justify-self: start;
    min-height: 34px;
  }

  .composer-input {
    min-height: 44px;
    font-size: 16px;
  }

  .composer-toolbar {
    grid-template-columns: minmax(0, 1fr) minmax(54px, max-content);
    grid-template-areas:
      "persona send"
      "status status"
      "tools tools";
    align-items: center;
    gap: 8px;
  }

  .composer-persona {
    grid-area: persona;
  }

  .composer-persona > span {
    display: none;
  }

  .composer-persona select {
    width: 100%;
    max-width: none;
    height: 44px;
    font-size: 12px;
  }

  .composer-status-row {
    grid-area: status;
    grid-template-columns: minmax(0, 1fr) max-content;
  }

  .composer-status {
    font-size: 11px;
  }

  .composer-icons {
    grid-area: tools;
    display: grid;
    grid-template-columns: repeat(4, minmax(44px, max-content));
    gap: 8px;
  }

  .composer-icons button {
    min-width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.04);
  }

  .send-button {
    grid-area: send;
    width: 54px;
    height: 44px;
    border: 1px solid rgba(135, 83, 201, 0.42);
    background: rgba(135, 83, 201, 0.16);
    color: #f4ecff;
  }

  .workflow-panel.codeboarding-section,
  .codeboarding-vanilla-view {
    grid-template-columns: minmax(0, 1fr);
    grid-column: 1;
  }

  .workflow-panel.codeboarding-section {
    grid-template-rows: 182px minmax(0, 1fr);
  }

  .codeboarding-explorer-sidebar {
    grid-template-rows: auto auto auto minmax(0, 1fr);
    gap: 10px;
    border-right: 0;
    border-bottom: 1px solid rgba(54, 74, 99, 0.9);
    padding: 12px;
  }

  .codeboarding-repo-heading p {
    display: none;
  }

  .codeboarding-repo-list {
    display: flex;
    gap: 6px;
    overflow: auto hidden;
  }

  .codeboarding-repo-list button {
    flex: 0 0 168px;
  }

  .codeboarding-add-repo {
    display: none;
  }

  .codeboarding-explorer {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) 96px auto;
  }

  .workflow-graph-explorer {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(360px, 1fr) 84px auto;
  }

  .messenger-loop-main,
  .workflow-graph-loop-status {
    grid-template-columns: minmax(0, 1fr);
  }

  .messenger-loop-metrics,
  .messenger-workforce-evidence,
  .workflow-loop-evidence {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .codeboarding-flow-surface {
    overflow: auto hidden;
  }

  .workflow-graph-flow-surface {
    overflow: auto hidden;
    border-right: 0;
  }

  .workflow-panel.workflow-graph-active .workflow-graph-pipeline-shell {
    height: auto;
    min-height: 0;
  }

  .workflow-graph-pipeline-shell,
  .workflow-graph-pipeline-shell.settings-open,
  .workflow-graph-pipeline-shell.has-loop-status,
  .workflow-graph-pipeline-shell.has-loop-status.settings-open {
    grid-template-columns: minmax(0, 1fr);
  }

  .workflow-graph-pipeline-shell {
    grid-template-rows: max-content max-content minmax(360px, 1fr);
  }

  .workflow-graph-pipeline-shell.settings-open,
  .workflow-graph-pipeline-shell.has-loop-status {
    grid-template-rows: max-content max-content max-content minmax(360px, 1fr);
  }

  .workflow-graph-pipeline-shell.has-loop-status.settings-open {
    grid-template-rows: max-content max-content max-content max-content minmax(360px, 1fr);
  }

  .workflow-graph-repository-sidebar {
    grid-column: 1;
    grid-row: 1;
  }

  .workflow-graph-repo-stats {
    display: none;
  }

  .workflow-graph-sidebar-actions {
    grid-template-columns: repeat(4, minmax(84px, 1fr));
    overflow: auto hidden;
  }

  .workflow-graph-sidebar-actions button:first-child {
    grid-column: auto;
    justify-content: center;
    font-size: 10px;
  }

  .workflow-graph-explorer {
    grid-column: 1;
    grid-row: 2;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(360px, 1fr) 84px;
  }

  .codeboarding-flow-canvas {
    width: 680px;
    min-width: 680px;
  }

  .workflow-graph-flow-canvas {
    width: 680px;
    min-width: 680px;
  }

  .codeboarding-architecture-summary {
    grid-column: 1;
    grid-row: 3;
    max-height: 210px;
    border-top: 1px solid rgba(54, 74, 99, 0.9);
    border-left: 0;
  }

  .workflow-graph-summary {
    grid-column: 1;
    grid-row: 3;
    max-height: 220px;
    border-top: 1px solid rgba(54, 74, 99, 0.9);
    border-left: 0;
  }

  .codeboarding-flow-overview {
    grid-column: 1;
    grid-row: 2;
  }

  .workflow-graph-overview {
    grid-column: 1;
    grid-row: 2;
  }

  .hr-list-panel,
  .workflow-list-panel {
    display: none;
  }

  .profile-content,
  .profile-grid,
  .deployment-cards,
  .workflow-canvas-panel,
  .runtime-provider-grid,
  .runtime-provider-role-grid,
  .runtime-review-strip,
  .runtime-stack-grid,
  .worker-goal-grid,
  .worker-goal-meta,
  .worker-goal-panel.compact,
  .worker-goal-status-grid,
  .migration-review-summary,
  .migration-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .worker-goal-panel.expanded {
    gap: 8px;
  }

  .worker-goal-panel.expanded .worker-goal-grid,
  .worker-goal-panel.expanded .worker-goal-status-grid,
  .worker-goal-panel.expanded .worker-checklist,
  .worker-goal-panel.expanded .worker-activity {
    display: none;
  }

  .worker-goal-panel.compact .worker-goal-status-grid {
    display: none;
  }

  .worker-goal-panel {
    padding: 8px 10px;
  }

  .worker-goal-head {
    grid-template-columns: max-content minmax(0, 1fr);
  }

  .worker-goal-head small {
    display: none;
  }

  .profile-content > .profile-grid:last-child {
    order: -1;
  }

  .live-gate-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .watchdog-judgement-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .workflow-toolbar-create {
    display: inline-block;
  }

  .workflow-canvas-panel {
    grid-template-rows: auto auto minmax(82px, max-content) minmax(82px, max-content) minmax(0, 1fr);
    column-gap: 0;
  }

  .workflow-canvas-panel.settings-open {
    grid-template-rows: auto auto minmax(82px, max-content) minmax(82px, max-content) auto minmax(0, 1fr);
  }

  .workflow-canvas-panel.codeboarding-mode {
    grid-template-rows: auto auto minmax(0, 1fr);
  }

  .workflow-canvas-panel.codeboarding-mode.settings-open {
    grid-template-rows: auto auto minmax(0, 1fr) auto;
  }

  .workflow-graph-pipeline-shell {
    grid-template-rows: max-content max-content max-content minmax(0, 1fr);
  }

  .workflow-graph-pipeline-shell.settings-open {
    grid-template-rows: max-content max-content max-content max-content minmax(0, 1fr);
  }

  .workflow-graph-pipeline-shell,
  .workflow-graph-pipeline-shell.settings-open,
  .workflow-graph-pipeline-shell.has-loop-status,
  .workflow-graph-pipeline-shell.has-loop-status.settings-open {
    grid-template-columns: minmax(0, 1fr);
  }

  .workflow-graph-pipeline-shell {
    grid-template-rows: max-content max-content minmax(320px, 1fr);
  }

  .workflow-graph-pipeline-shell.settings-open,
  .workflow-graph-pipeline-shell.has-loop-status {
    grid-template-rows: max-content max-content max-content minmax(320px, 1fr);
  }

  .workflow-graph-pipeline-shell.has-loop-status.settings-open {
    grid-template-rows: max-content max-content max-content max-content minmax(320px, 1fr);
  }

  .workflow-graph-selected-contract {
    grid-template-columns: minmax(0, 1fr);
  }

  .workflow-graph-done-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .codeboarding-native-header {
    align-items: stretch;
    flex-direction: column;
  }

  .codeboarding-native-actions,
  .codeboarding-diagram-controls {
    justify-content: flex-start;
  }

  .codeboarding-run-fields,
  .codeboarding-run-fields.secondary,
  .codeboarding-command-row,
  .codeboarding-mode-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .workflow-canvas-panel.blank-canvas {
    grid-template-rows: auto auto minmax(0, 1fr);
  }

  .workflow-canvas-panel.blank-canvas.settings-open {
    grid-template-rows: auto auto auto minmax(0, 1fr);
  }

  .watchdog-judgement-pane {
    grid-row: 3;
    grid-column: 1;
    max-height: 92px;
    border-right: 0;
  }

  .workflow-repair-panel {
    grid-row: 4;
    grid-column: 1;
    max-height: 92px;
  }

  .hr-repair-decision-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .hr-repair-decision-actions {
    justify-content: stretch;
  }

  .workflow-settings-panel {
    grid-row: 5;
  }

  .workflow-diagram {
    grid-row: 5;
  }

  .workflow-canvas-panel.settings-open .workflow-diagram {
    grid-row: 6;
  }

  .workflow-canvas-panel.codeboarding-mode .workflow-diagram {
    grid-row: 4;
  }

  .workflow-canvas-panel.codeboarding-mode.settings-open .workflow-diagram {
    grid-row: 5;
  }

  .workflow-canvas-panel.blank-canvas .workflow-diagram {
    grid-row: 3;
  }

  .workflow-canvas-panel.blank-canvas.settings-open .workflow-diagram {
    grid-row: 4;
  }

  .workflow-repair-panel,
  .workflow-repair-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .workflow-repair-actions {
    justify-items: start;
  }

  .codeboarding-artifact-metrics,
  .codeboarding-summary-grid,
  .codeboarding-artifact-tabs,
  .codeboarding-graph-nodes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .workflow-canvas-node {
    width: clamp(86px, 24vw, 122px);
    min-width: 0;
    min-height: 52px;
    padding: 7px 8px;
  }

  .workflow-canvas-node strong,
  .workflow-canvas-node span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .workflow-agent-editor-backdrop {
    padding: 10px;
  }

  .workflow-agent-editor-window {
    width: calc(100vw - 20px);
    max-height: calc(100vh - 20px);
  }

  .workflow-agent-editor-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .workflow-agent-graphic-editor {
    grid-template-columns: minmax(0, 1fr);
  }

  .workflow-agent-graphic-card.identity,
  .workflow-agent-graphic-card.resources,
  .workflow-agent-graphic-card.contracts {
    grid-column: 1;
    grid-row: auto;
  }

  .workflow-agent-metric-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .workflow-agent-editor-grid label.wide,
  .workflow-agent-editor-grid label.full {
    grid-column: 1;
  }

  .workflow-agent-editor-actions {
    flex-wrap: wrap;
  }

  .profile-hero {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .profile-actions {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .topbar {
    grid-template-columns: minmax(0, 1fr) max-content;
    gap: 6px;
    padding: 0 8px;
  }

  .global-search {
    display: none;
  }

  .topbar-actions {
    grid-column: 2;
    gap: 4px;
  }

  .topbar-actions .icon-button {
    width: 28px;
    height: 28px;
  }

  .room-control-strip {
    display: flex;
    flex-wrap: wrap;
    justify-content: stretch;
    overflow: visible;
    padding-bottom: 0;
  }

  .room-control-chip {
    flex: 1 1 132px;
    max-width: none;
  }

}

/* Flow-integrated, Codeboarding-inspired insertion map for ACME workflow graph mode. */
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) {
  background: var(--bg-deep);
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .flow-app {
  grid-template-rows: var(--topbar-height) minmax(0, 1fr);
  padding: var(--safe-top) var(--safe-right) var(--safe-bottom) var(--safe-left);
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .app-shell {
  grid-template-columns: var(--rail-width) var(--sidebar-width) minmax(0, 1fr);
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .rail-mobile-tabs {
  display: none;
  gap: 8px;
  justify-items: center;
  margin-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 12px;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .rail-mobile-tabs button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 34px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.72);
  font-size: 9px;
  font-weight: 900;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .rail-mobile-tabs button.active {
  background: var(--purple-strong);
  color: #fff;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .main-area {
  grid-column: 3;
  grid-template-columns: minmax(0, 1fr);
  background: rgba(9, 14, 21, 0.64);
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .semantic-tasker-view {
  grid-column: 1;
  background: rgba(9, 14, 21, 0.64);
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-panel.workflow-graph-active {
  grid-template-columns: minmax(0, 1fr) 280px;
  align-items: stretch;
  gap: 10px;
  overflow: hidden;
  padding: 10px;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active .breakdown-open) .workflow-panel.workflow-graph-active {
  grid-template-columns: minmax(0, 1fr);
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-panel.workflow-graph-active .workflow-graph-pipeline-shell {
  align-self: stretch;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: max-content max-content minmax(0, 1fr);
  background: #060a13;
  box-shadow: none;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-pipeline-shell.settings-open {
  grid-template-rows: max-content max-content max-content minmax(0, 1fr);
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-pipeline-shell.has-loop-status {
  grid-template-rows: max-content max-content max-content minmax(0, 1fr);
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-pipeline-shell.has-loop-status.settings-open {
  grid-template-rows: max-content max-content max-content max-content minmax(0, 1fr);
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-integrated-toolbar {
  grid-row: 1;
  grid-column: 1;
  min-width: 0;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-insertion-strip {
  grid-row: 2;
  grid-column: 1;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-loop-status {
  grid-row: 3;
  grid-column: 1;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-pipeline-shell > .workflow-settings-panel {
  grid-row: 3;
  grid-column: 1;
  align-self: start;
  align-items: start;
  grid-auto-rows: max-content;
  grid-template-columns: repeat(5, minmax(112px, 1fr));
  max-height: 104px;
  overflow: visible;
  padding: 8px 10px;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-pipeline-shell > .workflow-settings-panel label {
  align-self: start;
  min-height: 0;
  padding: 7px 8px;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-pipeline-shell > .workflow-settings-panel input,
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-pipeline-shell > .workflow-settings-panel select {
  height: 26px;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-pipeline-shell.has-loop-status > .workflow-settings-panel {
  grid-row: 4;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-explorer {
  position: relative;
  grid-row: 3;
  grid-column: 1;
  grid-template-rows: minmax(0, 1fr) 118px;
  border: 0;
  background: #060a13;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-pipeline-shell.settings-open .workflow-graph-explorer {
  grid-row: 4;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-pipeline-shell.has-loop-status .workflow-graph-explorer {
  grid-row: 4;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-pipeline-shell.has-loop-status.settings-open .workflow-graph-explorer {
  grid-row: 5;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-flow-surface,
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-flow-canvas {
  background: #060a13;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-flow-surface {
  position: relative;
  z-index: 2;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-flow-canvas {
  transform: none;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-empty-state {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  width: min(420px, calc(100% - 48px));
  gap: 10px;
  min-width: 0;
  border: 1px solid rgba(76, 199, 192, 0.24);
  border-radius: 7px;
  background: rgba(11, 18, 30, 0.9);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.24);
  padding: 16px;
  transform: translate(-50%, -50%);
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-empty-state h3,
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-empty-state p {
  display: block;
  margin: 0;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-empty-state h3 {
  color: #fff;
  font-size: 15px;
  line-height: 1.2;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-empty-state p {
  color: #c9d8de;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.4;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-empty-state div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-flow-toolbar {
  top: 16px;
  right: 16px;
  left: 16px;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-flow-toolbar > span {
  left: 50%;
  border-radius: 999px;
  background: rgba(19, 32, 53, 0.92);
  color: #b7c7d7;
  font-size: 10px;
  font-weight: 640;
  padding: 4px 11px;
  transform: translateX(-50%);
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-flow-toolbar > span::after {
  position: absolute;
  left: calc(50% - 4px);
  top: 100%;
  color: #6fc9ff;
  content: "";
  width: 0;
  height: 0;
  border: 4px solid transparent;
  border-top-color: #6fc9ff;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-flow-toolbar > div {
  display: none;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-insertion-legend {
  display: none;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-insertion-legend small {
  min-width: 54px;
  border-left: 1px solid rgba(73, 191, 251, 0.18);
  color: #8fa4bb;
  font-size: 10px;
  font-weight: 680;
  line-height: 1;
  padding: 8px 9px;
  text-align: center;
  text-transform: uppercase;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-insertion-legend small:first-child {
  border-left: 0;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-flow-toolbar > div button {
  width: 40px;
  height: 40px;
  background: #111d30;
  color: #aab7c8;
  font-size: 16px;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-flow-hint {
  left: 16px;
  bottom: 20px;
  border: 1px solid rgba(76, 199, 255, 0.78);
  background: rgba(10, 17, 29, 0.78);
  color: #9aa8ba;
  font-size: 11px;
  padding: 4px 9px;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-edge-path {
  marker-end: url(#workflowGraphPipelineArrow);
  stroke: rgba(198, 207, 218, 0.58);
  stroke-width: 0.24;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-edge-layer marker path {
  fill: rgba(220, 226, 232, 0.92);
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-edge-layer g.faded {
  opacity: 0.34;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-edge-layer g.active .workflow-graph-edge-path {
  stroke: rgba(238, 244, 250, 0.86);
  stroke-width: 0.32;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-edge-label {
  display: none;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-edge-layer g.faded .workflow-graph-edge-label {
  opacity: 0.35;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-node.workflow-canvas-node {
  grid-template-columns: minmax(0, 1fr) 17px;
  grid-template-rows: minmax(0, 1fr) max-content;
  align-content: center;
  row-gap: 7px;
  width: clamp(140px, 10.2vw, 150px);
  min-width: 0;
  min-height: 74px;
  border: 1px solid rgba(57, 187, 244, 0.78);
  border-radius: 5px;
  background: #0f1a2a;
  box-shadow: none;
  color: #dbe6ef;
  column-gap: 10px;
  padding: 10px 10px 9px 11px;
  text-align: left;
  transform: translate(-50%, -50%);
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-node.workflow-canvas-node.human,
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-node.workflow-canvas-node.leader,
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-node.workflow-canvas-node.release,
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-node.workflow-canvas-node.stage-done,
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-node.workflow-canvas-node.stage-active,
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-node.workflow-canvas-node.stage-failed {
  border-color: rgba(65, 196, 255, 0.86);
  background: #0f1a2a;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-node.workflow-canvas-node.selected,
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-node.workflow-canvas-node:hover,
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-node.workflow-canvas-node:focus-visible {
  border-color: #65d7ff;
  background: #122235;
  box-shadow: 0 0 0 2px rgba(73, 191, 251, 0.18);
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-node.workflow-canvas-node.faded {
  opacity: 0.58;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-node.workflow-canvas-node.related {
  opacity: 1;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-stage-wrapper-node[data-workflow-stage-wrapper]:not([data-workflow-expanded-stage]),
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-node.workflow-canvas-node[data-workflow-stage-wrapper]:not([data-workflow-expanded-stage]) {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 152px;
  min-width: 0;
  max-width: 152px;
  min-height: 50px;
  border-color: rgba(60, 184, 238, 0.72);
  border-radius: 6px;
  background: rgba(10, 19, 32, 0.96);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.34);
  padding: 8px 30px 8px 12px;
  text-align: center;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-stage-wrapper-node[data-workflow-stage-wrapper]:not([data-workflow-expanded-stage])::after,
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-node.workflow-canvas-node[data-workflow-stage-wrapper]:not([data-workflow-expanded-stage])::after {
  position: absolute;
  top: 50%;
  right: 8px;
  display: block;
  box-sizing: border-box;
  width: 16px;
  height: 16px;
  border: 1px solid rgba(93, 205, 255, 0.65);
  border-radius: 999px;
  background: rgba(7, 18, 31, 0.88);
  content: "";
  pointer-events: none;
  transform: translateY(-50%);
  z-index: 2;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-stage-wrapper-node[data-workflow-stage-wrapper]:not([data-workflow-expanded-stage])::before,
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-node.workflow-canvas-node[data-workflow-stage-wrapper]:not([data-workflow-expanded-stage])::before {
  position: absolute;
  top: 50%;
  right: 12px;
  width: 8px;
  height: 8px;
  background:
    linear-gradient(#72d7ff, #72d7ff) center / 8px 1.5px no-repeat,
    linear-gradient(#72d7ff, #72d7ff) center / 1.5px 8px no-repeat;
  content: "";
  pointer-events: none;
  transform: translateY(-50%);
  z-index: 3;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-stage-wrapper-node[data-workflow-stage-wrapper] .workflow-graph-node-index,
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-node.workflow-canvas-node[data-workflow-stage-wrapper] .workflow-graph-node-index,
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-stage-wrapper-node[data-workflow-stage-wrapper] .workflow-graph-node-summary,
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-node.workflow-canvas-node[data-workflow-stage-wrapper] .workflow-graph-node-summary,
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-stage-wrapper-node[data-workflow-stage-wrapper] .workflow-graph-node-atom-grid,
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-node.workflow-canvas-node[data-workflow-stage-wrapper] .workflow-graph-node-atom-grid,
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-stage-wrapper-node[data-workflow-stage-wrapper] .workflow-graph-node-state,
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-node.workflow-canvas-node[data-workflow-stage-wrapper] .workflow-graph-node-state,
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-stage-wrapper-node[data-workflow-stage-wrapper] .workflow-insertion-connector,
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-node.workflow-canvas-node[data-workflow-stage-wrapper] .workflow-insertion-connector,
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-stage-wrapper-node[data-workflow-stage-wrapper] .node-port,
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-node.workflow-canvas-node[data-workflow-stage-wrapper] .node-port {
  display: none;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-stage-wrapper-node[data-workflow-stage-wrapper] .workflow-insertion-stage,
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-node.workflow-canvas-node[data-workflow-stage-wrapper] .workflow-insertion-stage {
  display: flex;
  width: 100%;
  min-width: 0;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  text-align: center;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-stage-wrapper-node[data-workflow-stage-wrapper] .workflow-insertion-stage b,
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-node.workflow-canvas-node[data-workflow-stage-wrapper] .workflow-insertion-stage b,
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-stage-wrapper-node[data-workflow-stage-wrapper] .workflow-insertion-stage small,
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-node.workflow-canvas-node[data-workflow-stage-wrapper] .workflow-insertion-stage small {
  display: none;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-stage-wrapper-node[data-workflow-stage-wrapper] .workflow-insertion-stage strong,
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-node.workflow-canvas-node[data-workflow-stage-wrapper] .workflow-insertion-stage strong {
  display: block;
  color: #dcebf7;
  font-size: 11px;
  font-weight: 720;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-stage-wrapper-node[data-workflow-expanded-stage] .workflow-insertion-stage,
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-node.workflow-canvas-node[data-workflow-expanded-stage] .workflow-insertion-stage {
  min-height: 34px;
  border-bottom: 1px solid rgba(73, 191, 251, 0.18);
  padding-bottom: 6px;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-node.workflow-canvas-node span {
  grid-column: 1;
  color: #dce7f2;
  font-size: 11px;
  font-weight: 560;
  line-height: 1.18;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-node.workflow-canvas-node .workflow-insertion-stage,
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-node.workflow-canvas-node .workflow-graph-agent-slot,
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-node.workflow-canvas-node .workflow-graph-tool-slot,
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-node.workflow-canvas-node .workflow-graph-io-port {
  position: relative;
  grid-column: 1;
  min-width: 0;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-node.workflow-canvas-node .workflow-insertion-stage {
  display: grid;
  grid-row: 1;
  align-content: center;
  gap: 0;
  border: 0;
  background: transparent;
  padding: 0;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-node.workflow-canvas-node .workflow-insertion-stage b,
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-node.workflow-canvas-node .workflow-graph-agent-slot b,
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-node.workflow-canvas-node .workflow-graph-tool-slot b,
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-node.workflow-canvas-node .workflow-graph-io-port b {
  color: #6dd8ff;
  font-size: 8.5px;
  font-weight: 820;
  line-height: 1;
  text-transform: uppercase;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-node.workflow-canvas-node .workflow-insertion-stage strong {
  display: -webkit-box;
  min-width: 0;
  overflow: hidden;
  color: #e6eef7;
  font-size: 12.2px;
  font-weight: 650;
  line-height: 1.18;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-node.workflow-canvas-node .workflow-insertion-stage small {
  display: none;
  overflow: hidden;
  color: #7690aa;
  font-size: 9px;
  font-weight: 620;
  letter-spacing: 0;
  line-height: 1;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-node.workflow-canvas-node .workflow-insertion-connector {
  display: none;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-node.workflow-canvas-node .workflow-insertion-connector::before,
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-node.workflow-canvas-node .workflow-insertion-connector::after {
  position: absolute;
  left: -3px;
  width: 7px;
  height: 7px;
  border: 1px solid rgba(78, 190, 244, 0.7);
  border-radius: 999px;
  background: #101b2c;
  content: "";
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-node.workflow-canvas-node .workflow-insertion-connector::before {
  top: 18px;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-node.workflow-canvas-node .workflow-insertion-connector::after {
  bottom: 18px;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-node.workflow-canvas-node .workflow-graph-node-summary {
  display: flex;
  grid-row: 2;
  align-items: center;
  gap: 6px;
  min-width: 0;
  overflow: hidden;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-node.workflow-canvas-node .workflow-graph-agent-slot,
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-node.workflow-canvas-node .workflow-graph-tool-slot,
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-node.workflow-canvas-node .workflow-graph-node-summary .workflow-graph-agent-slot,
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-node.workflow-canvas-node .workflow-graph-node-summary .workflow-graph-tool-slot {
  display: inline-flex;
  align-items: center;
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-node.workflow-canvas-node .workflow-graph-agent-slot small,
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-node.workflow-canvas-node .workflow-graph-tool-slot small,
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-node.workflow-canvas-node .workflow-graph-io-port small {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(65, 196, 255, 0.24);
  border-radius: 3px;
  background: transparent;
  border-color: transparent;
  color: #829ab3;
  font-size: 9.5px;
  font-weight: 570;
  line-height: 1;
  padding: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-node.workflow-canvas-node .workflow-graph-agent-slot::after {
  color: #3d526b;
  content: "/";
  font-size: 9px;
  margin-left: 6px;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-node.workflow-canvas-node .workflow-graph-agent-slot small {
  max-width: 76px;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-node.workflow-canvas-node .workflow-graph-tool-slot small {
  flex: 0 1 auto;
  max-width: 46px;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-node.workflow-canvas-node .workflow-graph-io-port {
  display: none;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-node.workflow-canvas-node i {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  width: 17px;
  height: 17px;
  border-color: rgba(87, 211, 255, 0.9);
  color: #6dd8ff;
  font-size: 11px;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-node.workflow-canvas-node[data-workflow-stage-wrapper] {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 16px;
  grid-template-rows: max-content max-content minmax(0, 1fr);
  align-content: start;
  align-items: start;
  column-gap: 9px;
  row-gap: 8px;
  width: clamp(184px, 15vw, 212px);
  min-height: 142px;
  border-color: rgba(72, 195, 244, 0.82);
  background:
    linear-gradient(rgba(122, 142, 169, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(122, 142, 169, 0.045) 1px, transparent 1px),
    #0d1828;
  background-size: 18px 18px, 18px 18px, auto;
  cursor: grab;
  padding: 10px;
  text-align: left;
  transform: translate(-50%, -50%);
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-node.workflow-canvas-node[data-workflow-stage-wrapper].dragging {
  cursor: grabbing;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-node.workflow-canvas-node[data-workflow-stage-wrapper] .workflow-graph-node-index {
  grid-column: 1;
  grid-row: 1 / span 2;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid rgba(105, 215, 255, 0.54);
  border-radius: 999px;
  background: rgba(7, 14, 24, 0.86);
  color: #a9dff5;
  font-size: 10px;
  font-weight: 860;
  line-height: 1;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-node.workflow-canvas-node[data-workflow-stage-wrapper] .workflow-insertion-stage {
  grid-column: 2;
  grid-row: 1;
  display: grid;
  align-content: start;
  gap: 3px;
  min-width: 0;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-node.workflow-canvas-node[data-workflow-stage-wrapper] .workflow-insertion-stage b,
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-node.workflow-canvas-node[data-workflow-stage-wrapper] .workflow-graph-agent-slot b,
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-node.workflow-canvas-node[data-workflow-stage-wrapper] .workflow-graph-handoff-slot b,
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-node.workflow-canvas-node[data-workflow-stage-wrapper] .workflow-graph-io-port b,
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-node.workflow-canvas-node[data-workflow-stage-wrapper] .workflow-graph-tool-slot b {
  color: #76d9ff;
  font-size: 9px;
  font-weight: 820;
  line-height: 1;
  text-transform: uppercase;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-node.workflow-canvas-node[data-workflow-stage-wrapper] .workflow-insertion-stage strong {
  display: -webkit-box;
  min-width: 0;
  overflow: hidden;
  color: #edf6ff;
  font-size: 12.5px;
  font-weight: 740;
  line-height: 1.18;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-node.workflow-canvas-node[data-workflow-stage-wrapper] .workflow-insertion-stage small,
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-node.workflow-canvas-node[data-workflow-stage-wrapper] .workflow-graph-node-state {
  min-width: 0;
  overflow: hidden;
  color: #7f93ad;
  font-size: 9.5px;
  font-weight: 620;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-node.workflow-canvas-node[data-workflow-stage-wrapper] .workflow-graph-node-state {
  grid-column: 3;
  grid-row: 1;
  display: inline-grid;
  justify-self: end;
  min-width: 0;
  border: 1px solid rgba(122, 142, 169, 0.24);
  border-radius: 999px;
  background: rgba(8, 14, 24, 0.86);
  color: #9eb1c7;
  padding: 3px 6px;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-node.workflow-canvas-node[data-workflow-stage-wrapper].stage-done .workflow-graph-node-state {
  border-color: rgba(76, 199, 192, 0.36);
  color: #a6eee8;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-node.workflow-canvas-node[data-workflow-stage-wrapper].stage-active .workflow-graph-node-state {
  border-color: rgba(224, 179, 65, 0.38);
  color: #f7d983;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-node.workflow-canvas-node[data-workflow-stage-wrapper].stage-failed .workflow-graph-node-state {
  border-color: rgba(255, 112, 91, 0.42);
  color: #ffb0a3;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-node.workflow-canvas-node[data-workflow-stage-wrapper] .workflow-graph-node-summary {
  grid-column: 1 / -1;
  grid-row: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(74px, max-content);
  gap: 6px;
  min-width: 0;
  overflow: visible;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-node.workflow-canvas-node[data-workflow-stage-wrapper] .workflow-graph-node-atom-grid {
  grid-column: 1 / -1;
  grid-row: 3;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  min-width: 0;
  overflow: visible;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-node.workflow-canvas-node[data-workflow-stage-wrapper] .workflow-graph-agent-slot,
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-node.workflow-canvas-node[data-workflow-stage-wrapper] .workflow-graph-handoff-slot,
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-node.workflow-canvas-node[data-workflow-stage-wrapper] .workflow-graph-io-port,
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-node.workflow-canvas-node[data-workflow-stage-wrapper] .workflow-graph-tool-slot {
  display: grid;
  align-content: start;
  gap: 4px;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(65, 196, 255, 0.18);
  border-radius: 5px;
  background: rgba(7, 13, 22, 0.68);
  padding: 6px 7px;
  white-space: normal;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-node.workflow-canvas-node[data-workflow-stage-wrapper] .workflow-graph-agent-slot {
  border-color: rgba(103, 216, 255, 0.34);
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-node.workflow-canvas-node[data-workflow-stage-wrapper] .workflow-graph-tool-slot {
  grid-column: 1 / -1;
  border-color: rgba(224, 179, 65, 0.32);
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-node.workflow-canvas-node[data-workflow-stage-wrapper] .workflow-graph-agent-slot::after {
  content: none;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-node.workflow-canvas-node[data-workflow-stage-wrapper] .workflow-graph-agent-slot small,
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-node.workflow-canvas-node[data-workflow-stage-wrapper] .workflow-graph-handoff-slot small,
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-node.workflow-canvas-node[data-workflow-stage-wrapper] .workflow-graph-io-port small,
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-node.workflow-canvas-node[data-workflow-stage-wrapper] .workflow-graph-tool-slot small {
  min-width: 0;
  max-width: none;
  overflow: hidden;
  border: 1px solid rgba(122, 142, 169, 0.18);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.035);
  color: #b9c8d8;
  font-size: 10px;
  font-weight: 610;
  line-height: 1.12;
  padding: 3px 5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-node.workflow-canvas-node[data-workflow-stage-wrapper] .workflow-graph-tool-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  min-width: 0;
  overflow: hidden;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-node.workflow-canvas-node[data-workflow-stage-wrapper] .workflow-insertion-connector {
  position: relative;
  grid-column: 3;
  grid-row: 2 / span 2;
  display: block;
  align-self: stretch;
  width: 12px;
  min-height: 54px;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-node.workflow-canvas-node[data-workflow-stage-wrapper] .workflow-insertion-connector::before,
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-node.workflow-canvas-node[data-workflow-stage-wrapper] .workflow-insertion-connector::after {
  position: absolute;
  left: 2px;
  width: 7px;
  height: 7px;
  border: 1px solid rgba(78, 190, 244, 0.74);
  border-radius: 999px;
  background: #0d1828;
  content: "";
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-node.workflow-canvas-node[data-workflow-stage-wrapper] .workflow-insertion-connector::before {
  top: 10px;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-node.workflow-canvas-node[data-workflow-stage-wrapper] .workflow-insertion-connector::after {
  bottom: 10px;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-integrated-toolbar .settings-button.active {
  border-color: rgba(73, 191, 251, 0.68);
  background: rgba(73, 191, 251, 0.16);
  color: #d8f3ff;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-customize-panel header span,
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-customize-contract-group strong {
  color: #7f94ad;
  font-size: 10px;
  font-weight: 820;
  text-transform: uppercase;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-breakdown-block {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: start;
  gap: 7px;
  min-width: 0;
  min-height: 112px;
  border: 1px solid rgba(73, 191, 251, 0.34);
  border-radius: 7px;
  background: #101b2b;
  color: #dce7f2;
  cursor: pointer;
  padding: 13px 30px 13px 12px;
  text-align: left;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-breakdown-block.io {
  grid-area: io;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-breakdown-block.agent {
  grid-area: agent;
  border-color: rgba(103, 216, 255, 0.72);
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-breakdown-block.tools {
  grid-area: tools;
  border-color: rgba(139, 112, 224, 0.46);
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-breakdown-block.resources {
  grid-area: resources;
  border-color: rgba(116, 214, 174, 0.48);
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-breakdown-block.toolSkill {
  grid-area: toolSkill;
  border-color: rgba(139, 112, 224, 0.52);
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-breakdown-block.handoffs {
  grid-area: handoffs;
  align-content: center;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-breakdown-block::after {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  width: 16px;
  height: 16px;
  place-items: center;
  border: 1px solid rgba(103, 216, 255, 0.68);
  border-radius: 999px;
  color: #67d8ff;
  content: "+";
  font-size: 13px;
  font-weight: 820;
  line-height: 1;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-breakdown-block:hover,
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-breakdown-block.active {
  border-color: rgba(103, 216, 255, 0.78);
  background: rgba(73, 191, 251, 0.12);
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-breakdown-block.active::after {
  background: rgba(103, 216, 255, 0.22);
  content: "↑";
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-drilldown-leaf-node {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
  min-height: 112px;
  border: 1px solid rgba(73, 191, 251, 0.3);
  border-radius: 7px;
  background: rgba(16, 27, 43, 0.92);
  color: #dce7f2;
  padding: 14px;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-drilldown-leaf-node small {
  color: #8da2ba;
  font-size: 10px;
  font-weight: 820;
  text-transform: uppercase;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-drilldown-leaf-node strong {
  overflow: hidden;
  color: #eef6ff;
  font-size: 14px;
  font-weight: 780;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-drilldown-leaf-node span {
  display: -webkit-box;
  overflow: hidden;
  color: #93a6bd;
  font-size: 11px;
  font-weight: 560;
  line-height: 1.38;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-drilldown-leaf-node.active {
  border-color: rgba(103, 216, 255, 0.72);
  background: rgba(73, 191, 251, 0.12);
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-expanded-block.atom-drop-target,
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-nested-flat-group.atom-drop-target,
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-nested-flat-group.atom-drop-target .workflow-graph-expanded-leaf-node {
  border-color: rgba(125, 225, 255, 0.98);
  box-shadow: 0 0 0 2px rgba(65, 196, 255, 0.26);
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-expanded-block.atom-pending-target,
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-nested-flat-group.atom-pending-target {
  border-color: rgba(255, 221, 119, 0.9);
  box-shadow: 0 0 0 2px rgba(255, 221, 119, 0.2);
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-codeboarding-right-panel {
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  min-height: 0;
  overflow: hidden;
  background: #0b1320;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-codeboarding-summary-panel {
  display: grid;
  align-content: start;
  gap: 18px;
  min-width: 0;
  min-height: 0;
  overflow: auto;
  padding: 20px 18px;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-codeboarding-summary-panel header {
  display: grid;
  gap: 7px;
  min-width: 0;
  border-bottom: 1px solid rgba(61, 78, 103, 0.86);
  padding-bottom: 18px;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-codeboarding-summary-panel header span,
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-codeboarding-summary-section > span {
  color: #8da1ba;
  font-size: 10px;
  font-weight: 820;
  text-transform: uppercase;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-codeboarding-summary-panel header h3 {
  margin: 0;
  color: #f0f6fc;
  font-size: 18px;
  font-weight: 780;
  line-height: 1.2;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-codeboarding-summary-panel header small,
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-codeboarding-summary-panel > p,
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-codeboarding-summary-section p {
  margin: 0;
  color: #a8b8ca;
  font-size: 12px;
  font-weight: 540;
  line-height: 1.62;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-codeboarding-summary-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-codeboarding-summary-metrics span {
  display: grid;
  gap: 6px;
  min-width: 0;
  border: 1px solid rgba(73, 191, 251, 0.16);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.035);
  padding: 10px 11px;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-codeboarding-summary-metrics small,
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-codeboarding-summary-metrics strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-codeboarding-summary-metrics small {
  color: #8196af;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-codeboarding-summary-metrics strong {
  color: #edf6ff;
  font-size: 13px;
  font-weight: 820;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-codeboarding-atom-palette {
  position: relative;
  z-index: 8;
  display: grid !important;
  gap: 10px;
  min-width: 0;
  border: 1px solid rgba(73, 191, 251, 0.14);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.025);
  padding: 11px;
  pointer-events: auto;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-empty-atom-palette {
  grid-column: 1 / -1;
  grid-row: 2;
  align-self: stretch;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-codeboarding-atom-palette * {
  pointer-events: auto;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-inline-atom-palette {
  position: absolute;
  top: 44px;
  left: 14px;
  z-index: 120;
  width: min(280px, calc(100% - 28px));
  max-height: min(360px, calc(100% - 88px));
  overflow: auto;
  border: 1px solid rgba(73, 191, 251, 0.24);
  border-radius: 7px;
  background: rgba(8, 17, 29, 0.94);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.34);
  pointer-events: auto;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-inline-atom-palette * {
  pointer-events: auto;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-inline-atom-palette .workflow-graph-codeboarding-atom-palette {
  border: 0;
  border-radius: 0;
  background: transparent;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-codeboarding-atom-palette > span,
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-codeboarding-atom-group > small {
  color: #8da1ba;
  font-size: 10px;
  font-weight: 820;
  text-transform: uppercase;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-codeboarding-atom-palette > small {
  color: #a8b8ca;
  font-size: 11px;
  font-weight: 560;
  line-height: 1.45;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-codeboarding-atom-group {
  display: grid;
  gap: 6px;
  min-width: 0;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-codeboarding-atom-group > div {
  display: flex !important;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-codeboarding-atom-group button {
  min-height: 24px;
  height: auto !important;
  max-width: 100%;
  overflow: hidden;
  border: 1px solid rgba(73, 191, 251, 0.26);
  border-radius: 999px;
  background: rgba(73, 191, 251, 0.08);
  color: #d7ecfb;
  cursor: grab;
  font-size: 10.5px;
  font-weight: 720;
  padding: 4px 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-codeboarding-atom-group button.active {
  border-color: rgba(103, 216, 255, 0.64);
  background: rgba(73, 191, 251, 0.17);
  color: #eff9ff;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-codeboarding-atom-group button.pending {
  border-color: rgba(255, 221, 119, 0.82);
  background: rgba(255, 221, 119, 0.16);
  color: #fff4c5;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-codeboarding-atom-group button:hover,
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-codeboarding-atom-group button:focus-visible {
  border-color: rgba(103, 216, 255, 0.78);
  background: rgba(73, 191, 251, 0.18);
  outline: none;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-codeboarding-summary-section {
  display: grid;
  gap: 9px;
  min-width: 0;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-codeboarding-summary-section > div {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  min-width: 0;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-codeboarding-summary-section button {
  min-height: 25px;
  max-width: 100%;
  overflow: hidden;
  border: 1px solid rgba(73, 191, 251, 0.32);
  border-radius: 999px;
  background: rgba(73, 191, 251, 0.1);
  color: #d8ecfb;
  cursor: pointer;
  font-size: 11px;
  font-weight: 680;
  padding: 5px 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-codeboarding-summary-section button:hover,
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-codeboarding-summary-section button:focus-visible {
  border-color: rgba(103, 216, 255, 0.72);
  background: rgba(73, 191, 251, 0.18);
  outline: none;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-codeboarding-summary-section b {
  color: #72d7ff;
  font-weight: 820;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-in-place-expansion {
  position: relative;
  grid-column: 1 / -1;
  z-index: 8;
  display: block;
  width: 100%;
  min-height: 190px;
  margin-top: 8px;
  pointer-events: auto;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-in-place-expansion.leaf-level {
  min-height: 210px;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-node.workflow-canvas-node[data-workflow-expanded-stage],
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-stage-wrapper-node[data-workflow-expanded-stage] {
  z-index: 9;
  border-color: rgba(115, 224, 255, 0.98);
  background: rgba(9, 18, 31, 0.98);
  box-shadow:
    0 0 0 1px rgba(73, 191, 251, 0.32),
    0 18px 42px rgba(0, 0, 0, 0.42);
  transform-origin: center;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-node.workflow-canvas-node[data-workflow-expanded-stage] {
  width: 252px;
  min-height: 278px;
  padding: 9px;
  transform: translate(-50%, -50%);
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-stage-wrapper-node[data-workflow-expanded-stage] {
  width: 252px;
  min-width: 252px;
  max-width: 252px;
  min-height: 278px;
  padding: 9px;
  transform: none;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-expansion-edge-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-expansion-edge {
  fill: none;
  marker-end: url(#workflowGraphExpansionArrow);
  stroke: rgba(224, 235, 245, 0.72);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 0.34;
  vector-effect: non-scaling-stroke;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-expansion-edge.resource {
  stroke: rgba(116, 214, 174, 0.8);
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-expansion-edge.runtime {
  stroke: rgba(161, 139, 235, 0.78);
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-expansion-edge.handoff,
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-expansion-edge.leaf {
  stroke: rgba(103, 216, 255, 0.78);
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-expansion-edge-layer marker path {
  fill: rgba(226, 240, 250, 0.95);
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-expansion-toolbar {
  position: relative;
  z-index: 11;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  margin: 4px 0 6px;
  transform: none;
  pointer-events: auto;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-expansion-toolbar button,
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-expansion-toolbar span {
  min-height: 24px;
  border: 1px solid rgba(73, 191, 251, 0.34);
  border-radius: 6px;
  background: rgba(8, 15, 26, 0.92);
  color: #cde6f7;
  font-size: 10px;
  font-weight: 780;
  padding: 4px 8px;
  white-space: nowrap;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-expansion-toolbar button {
  cursor: pointer;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-expansion-toolbar span {
  color: #8fb0c6;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-expanded-diagram {
  position: relative;
  display: block;
  width: 100%;
  min-height: 172px;
  border: 1px solid rgba(73, 191, 251, 0.2);
  border-radius: 6px;
  background:
    linear-gradient(rgba(122, 142, 169, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(122, 142, 169, 0.035) 1px, transparent 1px),
    rgba(4, 10, 19, 0.56);
  background-size: 12px 12px, 12px 12px, auto;
  overflow: hidden;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-expanded-diagram.leaf-level {
  min-height: 190px;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-expanded-block.workflow-graph-breakdown-block,
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-expanded-leaf-node.workflow-graph-drilldown-leaf-node {
  position: absolute;
  z-index: 10;
  width: 86px;
  min-height: 34px;
  transform: translate(-50%, -50%);
  pointer-events: auto;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-expanded-block.workflow-graph-breakdown-block {
  align-content: start;
  gap: 2px;
  border-color: rgba(90, 205, 255, 0.62);
  background: rgba(13, 25, 42, 0.96);
  padding: 7px 18px 7px 8px;
  text-align: center;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-expanded-block.workflow-graph-breakdown-block small {
  display: none;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-expanded-block.workflow-graph-breakdown-block strong {
  justify-self: center;
  font-size: 10px;
  line-height: 1.1;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-expanded-block.workflow-graph-breakdown-block span {
  display: none;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-expanded-block.workflow-graph-breakdown-block.resources {
  border-color: rgba(116, 214, 174, 0.62);
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-expanded-block.workflow-graph-breakdown-block.toolSkill {
  border-color: rgba(161, 139, 235, 0.68);
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-expanded-block.workflow-graph-breakdown-block.handoffs {
  width: clamp(144px, 11.5vw, 176px);
  min-height: 96px;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-expanded-block.workflow-graph-breakdown-block strong,
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-expanded-leaf-node.workflow-graph-drilldown-leaf-node strong {
  font-size: 12.5px;
  white-space: normal;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-expanded-block.workflow-graph-breakdown-block span,
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-expanded-leaf-node.workflow-graph-drilldown-leaf-node span {
  font-size: 10px;
  -webkit-line-clamp: 2;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-expanded-leaf-node.workflow-graph-drilldown-leaf-node {
  width: clamp(150px, 12vw, 184px);
  min-height: 86px;
  border-color: rgba(95, 191, 244, 0.56);
  background: rgba(15, 27, 43, 0.94);
  padding: 10px 11px;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-breakdown-block small {
  color: #8da2ba;
  font-size: 10px;
  font-weight: 820;
  text-transform: uppercase;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-breakdown-block strong,
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-breakdown-block span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-breakdown-block strong {
  color: #eef6ff;
  font-size: 14px;
  font-weight: 780;
  white-space: nowrap;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-breakdown-block span {
  display: -webkit-box;
  color: #93a6bd;
  font-size: 11px;
  font-weight: 560;
  line-height: 1.38;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-expanded-diagram .workflow-graph-expanded-block.workflow-graph-breakdown-block,
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-expanded-diagram .workflow-graph-expanded-block.workflow-graph-breakdown-block.handoffs {
  width: 86px;
  min-height: 34px;
  padding: 7px 18px 7px 8px;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-expanded-diagram .workflow-graph-expanded-block.workflow-graph-breakdown-block small,
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-expanded-diagram .workflow-graph-expanded-block.workflow-graph-breakdown-block span {
  display: none;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-expanded-diagram .workflow-graph-expanded-block.workflow-graph-breakdown-block strong {
  justify-self: center;
  color: #eef6ff;
  font-size: 10px;
  font-weight: 740;
  line-height: 1.1;
  text-align: center;
  white-space: normal;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-expanded-diagram .workflow-graph-expanded-leaf-node.workflow-graph-drilldown-leaf-node {
  width: 112px;
  min-height: 42px;
  padding: 7px 8px;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-expanded-diagram .workflow-graph-expanded-leaf-node.workflow-graph-drilldown-leaf-node strong {
  font-size: 10px;
  line-height: 1.12;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-expanded-diagram .workflow-graph-expanded-leaf-node.workflow-graph-drilldown-leaf-node span {
  display: none;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-stage-wrapper-node[data-workflow-stage-wrapper]:not([data-workflow-expanded-stage]),
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-node.workflow-canvas-node[data-workflow-stage-wrapper]:not([data-workflow-expanded-stage]) {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 152px;
  min-width: 0;
  max-width: 152px;
  min-height: 50px;
  border-color: rgba(60, 184, 238, 0.72);
  border-radius: 6px;
  background: rgba(10, 19, 32, 0.96);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.34);
  padding: 8px 30px 8px 12px;
  text-align: center;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-stage-wrapper-node[data-workflow-stage-wrapper]:not([data-workflow-expanded-stage])::after,
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-node.workflow-canvas-node[data-workflow-stage-wrapper]:not([data-workflow-expanded-stage])::after {
  position: absolute;
  top: 50%;
  right: 8px;
  display: block;
  box-sizing: border-box;
  width: 16px;
  height: 16px;
  border: 1px solid rgba(93, 205, 255, 0.65);
  border-radius: 999px;
  background: rgba(7, 18, 31, 0.88);
  content: "";
  pointer-events: none;
  transform: translateY(-50%);
  z-index: 2;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-stage-wrapper-node[data-workflow-stage-wrapper]:not([data-workflow-expanded-stage])::before,
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-node.workflow-canvas-node[data-workflow-stage-wrapper]:not([data-workflow-expanded-stage])::before {
  position: absolute;
  top: 50%;
  right: 12px;
  width: 8px;
  height: 8px;
  background:
    linear-gradient(#72d7ff, #72d7ff) center / 8px 1.5px no-repeat,
    linear-gradient(#72d7ff, #72d7ff) center / 1.5px 8px no-repeat;
  content: "";
  pointer-events: none;
  transform: translateY(-50%);
  z-index: 3;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-stage-wrapper-node[data-workflow-stage-wrapper] .workflow-graph-node-index,
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-node.workflow-canvas-node[data-workflow-stage-wrapper] .workflow-graph-node-index,
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-stage-wrapper-node[data-workflow-stage-wrapper] .workflow-graph-node-summary,
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-node.workflow-canvas-node[data-workflow-stage-wrapper] .workflow-graph-node-summary,
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-stage-wrapper-node[data-workflow-stage-wrapper] .workflow-graph-node-atom-grid,
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-node.workflow-canvas-node[data-workflow-stage-wrapper] .workflow-graph-node-atom-grid,
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-stage-wrapper-node[data-workflow-stage-wrapper] .workflow-graph-node-state,
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-node.workflow-canvas-node[data-workflow-stage-wrapper] .workflow-graph-node-state,
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-stage-wrapper-node[data-workflow-stage-wrapper] .workflow-insertion-connector,
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-node.workflow-canvas-node[data-workflow-stage-wrapper] .workflow-insertion-connector,
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-stage-wrapper-node[data-workflow-stage-wrapper] .node-port,
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-node.workflow-canvas-node[data-workflow-stage-wrapper] .node-port {
  display: none;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-stage-wrapper-node[data-workflow-stage-wrapper] .workflow-insertion-stage,
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-node.workflow-canvas-node[data-workflow-stage-wrapper] .workflow-insertion-stage {
  display: flex;
  width: 100%;
  min-width: 0;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  text-align: center;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-stage-wrapper-node[data-workflow-stage-wrapper] .workflow-insertion-stage b,
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-node.workflow-canvas-node[data-workflow-stage-wrapper] .workflow-insertion-stage b,
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-stage-wrapper-node[data-workflow-stage-wrapper] .workflow-insertion-stage small,
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-node.workflow-canvas-node[data-workflow-stage-wrapper] .workflow-insertion-stage small {
  display: none;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-stage-wrapper-node[data-workflow-stage-wrapper] .workflow-insertion-stage strong,
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-node.workflow-canvas-node[data-workflow-stage-wrapper] .workflow-insertion-stage strong {
  display: block;
  color: #dcebf7;
  font-size: 11px;
  font-weight: 720;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-stage-wrapper-node[data-workflow-expanded-stage] .workflow-insertion-stage,
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-node.workflow-canvas-node[data-workflow-expanded-stage] .workflow-insertion-stage {
  min-height: 34px;
  border-bottom: 1px solid rgba(73, 191, 251, 0.18);
  padding-bottom: 6px;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-customize-panel {
  display: grid;
  grid-template-rows: max-content minmax(0, 1fr);
  align-content: start;
  gap: 12px;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border-left: 1px solid rgba(55, 71, 95, 0.78);
  padding-left: 12px;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-customize-panel header {
  display: grid;
  gap: 4px;
  min-width: 0;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-customize-panel header strong {
  overflow: hidden;
  color: #eef6ff;
  font-size: 16px;
  font-weight: 780;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-customize-panel header small,
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-customize-panel p {
  color: #8fa2b9;
  font-size: 11px;
  font-weight: 560;
  line-height: 1.45;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-customize-panel p {
  margin: 0;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-customize-section {
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
  min-height: 0;
  overflow: auto;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-customize-secondary {
  justify-self: start;
  min-height: 30px;
  border: 1px solid rgba(122, 142, 169, 0.26);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  color: #cde6f7;
  cursor: pointer;
  font-size: 11px;
  font-weight: 760;
  padding: 5px 9px;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-customize-contract-group {
  display: grid;
  gap: 7px;
  min-width: 0;
  border-top: 1px solid rgba(73, 191, 251, 0.14);
  padding-top: 9px;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-customize-handoff-count {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-customize-handoff-count strong {
  border: 1px solid rgba(122, 142, 169, 0.16);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.035);
  color: #e5eef7;
  font-size: 12px;
  font-weight: 760;
  padding: 8px 9px;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-selected-contract {
  gap: 8px;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-selected-contract span {
  color: #8294ab;
  font-size: 10px;
  font-weight: 760;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-contract-row {
  display: grid;
  gap: 5px;
  min-width: 0;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-contract-row strong,
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-contract-io strong {
  color: #8294ab;
  font-size: 10px;
  font-weight: 760;
  text-transform: uppercase;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-contract-row em {
  min-width: 0;
  overflow: hidden;
  color: #dce7f2;
  font-size: 12px;
  font-style: normal;
  font-weight: 620;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-contract-row div,
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-contract-io {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  min-width: 0;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-contract-io strong {
  flex-basis: 100%;
  margin-top: 2px;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-selected-contract b {
  color: #dce7f2;
  font-size: 13px;
  font-weight: 680;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-selected-contract strong {
  color: #8999ad;
  font-size: 11px;
  font-weight: 620;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-selected-contract small {
  border-color: rgba(73, 191, 251, 0.62);
  border-radius: 4px;
  background: rgba(35, 103, 146, 0.32);
  color: #d5ecff;
  font-size: 12px;
  font-weight: 560;
  padding: 2px 7px;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-done-list {
  gap: 5px;
  margin-top: 4px;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-done-list li {
  border: 0;
  border-left: 2px solid rgba(73, 191, 251, 0.44);
  border-radius: 0;
  background: transparent;
  color: #bfcada;
  font-size: 12px;
  font-weight: 520;
  line-height: 1.45;
  padding: 2px 0 2px 9px;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-overview {
  position: relative;
  z-index: 0;
  border-top: 1px solid rgba(55, 71, 95, 0.86);
  background: #060a13;
  pointer-events: none;
  padding: 12px 16px 13px;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-overview svg {
  height: 76px;
  border-color: rgba(55, 71, 95, 0.86);
  border-radius: 22px;
  background: #0d1727;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-overview span {
  color: #718199;
  font-size: 11px;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-pipeline-shell .workflow-graph-explorer {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 330px);
  grid-template-rows: minmax(0, 1fr) 118px;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-pipeline-shell .workflow-graph-flow-surface {
  grid-column: 1;
  grid-row: 1;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-pipeline-shell .workflow-canvas-handoff-editor {
  position: static;
  z-index: 1;
  grid-column: 2;
  grid-row: 1;
  align-self: stretch;
  width: auto;
  max-height: none;
  min-height: 0;
  border-width: 0 0 0 1px;
  border-color: rgba(55, 71, 95, 0.86);
  border-radius: 0;
  background: #08101c;
  box-shadow: none;
  padding: 14px;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-pipeline-shell .workflow-canvas-handoff-list {
  overflow: auto;
  min-height: 0;
  padding-right: 2px;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-pipeline-shell .workflow-canvas-handoff-editor .handoff-contract-row {
  background: rgba(255, 255, 255, 0.028);
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-pipeline-shell .workflow-graph-overview {
  grid-column: 1 / -1;
  grid-row: 2;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-stage-map-editor .workflow-diagram > .workflow-canvas-handoff-editor {
  top: auto;
  right: auto;
  bottom: 16px;
  left: 16px;
  width: min(280px, calc(100% - 32px));
  max-height: 44px;
  min-height: 44px;
  gap: 0;
  overflow: hidden;
  border-color: rgba(93, 214, 188, 0.26);
  border-radius: 8px;
  background: rgba(8, 15, 13, 0.9);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
  opacity: 0.94;
  padding: 8px 10px;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-stage-map-editor .workflow-diagram > .workflow-canvas-handoff-editor:hover,
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-stage-map-editor .workflow-diagram > .workflow-canvas-handoff-editor:focus-within {
  max-height: min(300px, calc(100% - 64px));
  gap: 8px;
  overflow: auto;
  opacity: 1;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-stage-map-editor .workflow-diagram > .workflow-canvas-handoff-editor p,
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-stage-map-editor .workflow-diagram > .workflow-canvas-handoff-editor .workflow-canvas-handoff-list {
  display: none;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-stage-map-editor .workflow-diagram > .workflow-canvas-handoff-editor:hover p,
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-stage-map-editor .workflow-diagram > .workflow-canvas-handoff-editor:focus-within p,
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-stage-map-editor .workflow-diagram > .workflow-canvas-handoff-editor:hover .workflow-canvas-handoff-list,
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-stage-map-editor .workflow-diagram > .workflow-canvas-handoff-editor:focus-within .workflow-canvas-handoff-list {
  display: grid;
}

@media (max-width: 960px) {
  body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .app-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .app-rail,
  body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workspace-sidebar {
    display: none;
  }

  body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .main-area,
  body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .semantic-tasker-view {
    grid-column: 1;
    min-width: 0;
  }

  body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-panel.workflow-graph-active {
    grid-template-columns: minmax(0, 1fr);
    padding: 8px;
  }

  body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-integrated-toolbar {
    align-items: start;
    gap: 8px;
    min-width: 0;
  }

  body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-integrated-toolbar .workflow-title {
    min-width: 0;
  }

  body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-integrated-toolbar .workflow-title h2,
  body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-integrated-toolbar .workflow-title span {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-integrated-toolbar .workflow-actions {
    flex: 0 1 auto;
    justify-content: start;
    max-width: 58%;
    min-width: 0;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-integrated-toolbar .workflow-actions button {
    flex: 0 0 auto;
  }

  body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-panel.workflow-graph-active .workflow-graph-pipeline-shell {
    height: 100%;
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: max-content max-content minmax(320px, 1fr);
  }

  body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-pipeline-shell.has-loop-status {
    grid-template-rows: max-content max-content max-content minmax(320px, 1fr);
  }

  body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-pipeline-shell.settings-open {
    grid-template-rows: max-content max-content max-content minmax(320px, 1fr);
  }

  body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-pipeline-shell.has-loop-status.settings-open {
    grid-template-rows: max-content max-content max-content max-content minmax(320px, 1fr);
  }

  body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-pipeline-shell .workflow-graph-explorer {
    grid-row: 3;
    grid-column: 1;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) minmax(120px, 180px) 84px;
  }

  body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-pipeline-shell .workflow-canvas-handoff-editor {
    grid-column: 1;
    grid-row: 2;
    border-width: 1px 0 0;
    padding: 10px 12px;
  }

  body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-pipeline-shell .workflow-graph-overview {
    grid-column: 1;
    grid-row: 3;
  }

  body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-pipeline-shell.breakdown-open .workflow-graph-explorer {
    grid-template-rows: minmax(0, 1fr);
  }

  body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-pipeline-shell.breakdown-open .workflow-graph-flow-surface,
  body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-pipeline-shell.breakdown-open .workflow-graph-flow-canvas {
    width: 100%;
    min-width: 0;
  }

  body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-pipeline-shell.breakdown-open .workflow-graph-flow-surface {
    overflow: hidden;
  }

}

/* CodeBoarding-style expanded workflow group nodes. */
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-stage-wrapper-node[data-workflow-stage-wrapper]:not([data-workflow-expanded-stage]),
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-node.workflow-canvas-node[data-workflow-stage-wrapper]:not([data-workflow-expanded-stage]) {
  width: 250px;
  min-width: 250px;
  max-width: 250px;
  min-height: 76px;
  border-color: rgba(65, 196, 255, 0.82);
  border-radius: 6px;
  background: #0e1b2c;
  padding: 0 40px 0 20px;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-canvas-panel.workflow-stage-map-editor.breakdown-open .workflow-stage-wrapper-node[data-workflow-stage-wrapper]:not([data-workflow-expanded-stage]) {
  min-height: 76px;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-stage-wrapper-node[data-workflow-stage-wrapper]:not([data-workflow-expanded-stage])::after,
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-node.workflow-canvas-node[data-workflow-stage-wrapper]:not([data-workflow-expanded-stage])::after {
  right: 20px;
  display: block;
  box-sizing: border-box;
  width: 16px;
  height: 16px;
  border-color: rgba(83, 210, 255, 0.92);
  background: rgba(7, 18, 31, 0.88);
  content: "";
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-stage-wrapper-node[data-workflow-stage-wrapper]:not([data-workflow-expanded-stage])::before,
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-node.workflow-canvas-node[data-workflow-stage-wrapper]:not([data-workflow-expanded-stage])::before {
  right: 24px;
  width: 8px;
  height: 8px;
  background:
    linear-gradient(#72d7ff, #72d7ff) center / 8px 1.5px no-repeat,
    linear-gradient(#72d7ff, #72d7ff) center / 1.5px 8px no-repeat;
  content: "";
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-stage-wrapper-node[data-workflow-stage-wrapper] .workflow-insertion-stage strong,
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-node.workflow-canvas-node[data-workflow-stage-wrapper] .workflow-insertion-stage strong {
  color: #cfd8e3;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.25;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-node.workflow-canvas-node[data-workflow-expanded-stage],
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-stage-wrapper-node[data-workflow-expanded-stage] {
  display: block;
  width: var(--workflow-expanded-node-width, 860px);
  min-width: var(--workflow-expanded-node-width, 860px);
  max-width: var(--workflow-expanded-node-width, 860px);
  height: var(--workflow-expanded-node-height, 368px);
  min-height: var(--workflow-expanded-node-height, 368px);
  max-height: var(--workflow-expanded-node-height, 368px);
  border-color: rgba(70, 199, 255, 0.92);
  border-radius: 7px;
  background: #0d1a2a;
  box-shadow: none;
  overflow: hidden;
  padding: 0;
  text-align: left;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-node.workflow-canvas-node[data-workflow-expanded-stage] {
  transform: translate(-50%, -50%);
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-stage-wrapper-node[data-workflow-expanded-stage] {
  margin-top: 0;
  margin-left: 0;
  transform: none;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-stage-wrapper-node[data-workflow-expanded-stage] > .workflow-insertion-stage,
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-node.workflow-canvas-node[data-workflow-expanded-stage] > .workflow-insertion-stage,
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-stage-wrapper-node[data-workflow-expanded-stage] > .workflow-graph-node-index,
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-node.workflow-canvas-node[data-workflow-expanded-stage] > .workflow-graph-node-index,
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-stage-wrapper-node[data-workflow-expanded-stage] > .workflow-graph-node-summary,
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-node.workflow-canvas-node[data-workflow-expanded-stage] > .workflow-graph-node-summary,
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-stage-wrapper-node[data-workflow-expanded-stage] > .workflow-graph-node-atom-grid,
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-node.workflow-canvas-node[data-workflow-expanded-stage] > .workflow-graph-node-atom-grid,
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-stage-wrapper-node[data-workflow-expanded-stage] > .workflow-graph-node-state,
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-node.workflow-canvas-node[data-workflow-expanded-stage] > .workflow-graph-node-state {
  display: none;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-in-place-expansion {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: grid;
  grid-template-rows: 42px minmax(0, 1fr);
  width: 100%;
  min-height: 0;
  margin: 0;
  pointer-events: auto;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-expansion-toolbar {
  position: relative;
  z-index: 11;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 0 repeat(2, 18px);
  align-items: center;
  gap: 8px;
  max-width: none;
  min-height: 42px;
  margin: 0;
  border-bottom: 1px solid rgba(130, 147, 166, 0.58);
  padding: 0 12px;
  pointer-events: auto;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-expansion-toolbar strong {
  min-width: 0;
  overflow: hidden;
  color: #cfd8e3;
  font-size: 13px;
  font-weight: 560;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-expansion-toolbar > span:not(.workflow-graph-title-icon) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-expansion-toolbar .workflow-graph-title-icon {
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border: 1px solid rgba(83, 210, 255, 0.88);
  border-radius: 999px;
  background: transparent;
  color: #69d6ff;
  cursor: default;
  font-size: 11px;
  font-weight: 740;
  line-height: 1;
  padding: 0;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-expansion-toolbar button.workflow-graph-title-icon {
  cursor: pointer;
  font-size: 0;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-expansion-toolbar button.workflow-graph-title-icon::before {
  color: #69d6ff;
  content: "-";
  font-size: 13px;
  font-weight: 760;
  line-height: 1;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-expansion-toolbar button[data-workflow-drilldown-up]::before {
  content: "^";
  font-size: 11px;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-expanded-diagram {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
  border-radius: 0;
  background: #0d1a2a;
  overflow: hidden;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-expanded-diagram.leaf-level {
  min-height: 0;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-expansion-edge {
  marker-end: url(#workflowGraphExpansionArrow);
  stroke: rgba(212, 218, 226, 0.76);
  stroke-linecap: square;
  stroke-linejoin: miter;
  stroke-width: 1.1;
  vector-effect: non-scaling-stroke;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-expansion-edge.resource,
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-expansion-edge.runtime,
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-expansion-edge.handoff,
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-expansion-edge.leaf {
  stroke: rgba(212, 218, 226, 0.76);
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-expansion-edge-layer marker path {
  fill: rgba(212, 218, 226, 0.88);
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-expanded-diagram .workflow-graph-expanded-block.workflow-graph-breakdown-block,
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-expanded-diagram .workflow-graph-expanded-block.workflow-graph-breakdown-block.handoffs,
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-expanded-diagram .workflow-graph-expanded-leaf-node.workflow-graph-drilldown-leaf-node {
  position: absolute;
  z-index: 10;
  display: flex;
  width: 260px;
  min-width: 260px;
  max-width: 260px;
  min-height: 64px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(65, 196, 255, 0.86);
  border-radius: 6px;
  background: #0d1a2a;
  box-shadow: none;
  padding: 0 30px 0 18px;
  text-align: center;
  transform: translate(-50%, -50%);
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-expanded-diagram .workflow-graph-expanded-block.workflow-graph-breakdown-block::after {
  position: absolute;
  top: 50%;
  right: 13px;
  display: grid;
  width: 15px;
  height: 15px;
  place-items: center;
  border: 1px solid rgba(83, 210, 255, 0.9);
  border-radius: 999px;
  color: #69d6ff;
  content: "+";
  font-size: 11px;
  font-weight: 720;
  line-height: 1;
  transform: translateY(-50%);
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-expanded-diagram .workflow-graph-expanded-block.workflow-graph-breakdown-block small,
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-expanded-diagram .workflow-graph-expanded-block.workflow-graph-breakdown-block span,
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-expanded-diagram .workflow-graph-expanded-leaf-node.workflow-graph-drilldown-leaf-node small,
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-expanded-diagram .workflow-graph-expanded-leaf-node.workflow-graph-drilldown-leaf-node span {
  display: none;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-expanded-diagram .workflow-graph-expanded-block.workflow-graph-breakdown-block strong,
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-expanded-diagram .workflow-graph-expanded-leaf-node.workflow-graph-drilldown-leaf-node strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: #cfd8e3;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Final CodeBoarding-style in-place expansion contract. Keep this after older
   workflow graph overrides so expanded groups do not fall back to palette-era
   card sizing. */
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-node.workflow-canvas-node[data-workflow-expanded-stage],
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-stage-wrapper-node[data-workflow-expanded-stage] {
  width: var(--workflow-expanded-node-width, 860px);
  min-width: var(--workflow-expanded-node-width, 860px);
  max-width: var(--workflow-expanded-node-width, 860px);
  height: var(--workflow-expanded-node-height, 340px);
  min-height: var(--workflow-expanded-node-height, 340px);
  max-height: var(--workflow-expanded-node-height, 340px);
  padding: 0;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-node.workflow-canvas-node[data-workflow-expanded-stage]:has(.workflow-graph-in-place-expansion.leaf-level),
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-stage-wrapper-node[data-workflow-expanded-stage]:has(.workflow-graph-in-place-expansion.leaf-level) {
  width: var(--workflow-expanded-node-width, 1040px);
  min-width: var(--workflow-expanded-node-width, 1040px);
  max-width: var(--workflow-expanded-node-width, 1040px);
  height: var(--workflow-expanded-node-height, 520px);
  min-height: var(--workflow-expanded-node-height, 520px);
  max-height: var(--workflow-expanded-node-height, 520px);
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-node.workflow-canvas-node[data-workflow-expanded-stage]:has(.workflow-graph-in-place-expansion.multi-leaf-level),
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-stage-wrapper-node[data-workflow-expanded-stage]:has(.workflow-graph-in-place-expansion.multi-leaf-level) {
  width: var(--workflow-expanded-node-width, 1180px);
  min-width: var(--workflow-expanded-node-width, 1180px);
  max-width: var(--workflow-expanded-node-width, 1180px);
  height: var(--workflow-expanded-node-height, 520px);
  min-height: var(--workflow-expanded-node-height, 520px);
  max-height: var(--workflow-expanded-node-height, 520px);
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-in-place-expansion {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: 34px minmax(0, 1fr);
  width: 100%;
  min-height: 0;
  margin: 0;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-stage-map-editor .workflow-stage-wrapper-node[data-workflow-stage-wrapper] {
  transform: translate(-50%, -50%);
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-expanded-diagram {
  min-height: 0;
  border: 0;
  border-radius: 0;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-expanded-diagram .workflow-graph-expanded-leaf-node.workflow-graph-drilldown-leaf-node {
  width: var(--workflow-leaf-width, 210px);
  min-width: var(--workflow-leaf-width, 210px);
  max-width: var(--workflow-leaf-width, 210px);
  min-height: 46px;
  padding: 0 28px 0 14px;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-expanded-diagram .workflow-graph-expanded-leaf-node.workflow-graph-drilldown-leaf-node strong {
  font-size: 11px;
  line-height: 1.18;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-expansion-edge.leaf {
  stroke: rgba(212, 218, 226, 0.72);
  stroke-width: 0.82;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-expansion-edge.bridge {
  marker-end: none;
  stroke: rgba(226, 238, 246, 0.68);
  stroke-width: 0.78;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-edge-layer g.active .workflow-graph-edge-path {
  stroke: rgba(212, 218, 226, 0.66);
  stroke-width: 0.16;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-expanded-diagram .workflow-graph-nested-expanded-block.workflow-graph-expanded-block {
  z-index: 24;
  display: block !important;
  width: var(--workflow-nested-width, 700px) !important;
  min-width: var(--workflow-nested-width, 700px) !important;
  max-width: var(--workflow-nested-width, 700px) !important;
  height: var(--workflow-nested-height, 300px) !important;
  min-height: var(--workflow-nested-height, 300px) !important;
  max-height: var(--workflow-nested-height, 300px) !important;
  border-color: rgba(92, 210, 255, 0.96);
  background: #0d1a2a;
  box-shadow:
    0 0 0 1px rgba(73, 191, 251, 0.24),
    0 12px 30px rgba(0, 0, 0, 0.34);
  padding: 0 !important;
  overflow: hidden;
  text-align: center;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-expanded-diagram .workflow-graph-nested-expanded-block.workflow-graph-expanded-block.workflow-graph-nested-flat-group {
  inset: auto;
  transform: translate(-50%, -50%);
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-expanded-diagram .workflow-graph-nested-expanded-block.workflow-graph-expanded-block::after {
  display: none;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-nested-expanded-block.workflow-graph-nested-flat-group {
  position: absolute;
  inset: 0;
  z-index: 14;
  overflow: visible;
  pointer-events: auto;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-nested-expanded-block.workflow-graph-nested-flat-group.atom-drop-target,
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-nested-expanded-block.workflow-graph-nested-flat-group.atom-pending-target {
  pointer-events: auto;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-nested-expanded-block.workflow-graph-nested-flat-group .workflow-graph-expanded-leaf-node.workflow-graph-drilldown-leaf-node {
  pointer-events: none;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-nested-expanded-block.workflow-graph-nested-flat-group.atom-drop-target .workflow-graph-expanded-leaf-node.workflow-graph-drilldown-leaf-node,
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-nested-expanded-block.workflow-graph-nested-flat-group.atom-pending-target .workflow-graph-expanded-leaf-node.workflow-graph-drilldown-leaf-node {
  pointer-events: auto;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-nested-expanded-block > header {
  position: relative;
  z-index: 14;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 16px;
  align-items: center;
  height: 26px;
  border-bottom: 1px solid rgba(128, 146, 166, 0.56);
  padding: 0 8px 0 10px;
  text-align: left;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-nested-expanded-block > header small {
  display: none;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-nested-expanded-block > header strong {
  min-width: 0;
  overflow: hidden;
  color: #dcebf7;
  font-size: 12px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-nested-expanded-block > header span {
  display: block;
  width: 12px;
  height: 12px;
  border: 1px solid rgba(83, 210, 255, 0.82);
  border-radius: 999px;
  background:
    linear-gradient(#72d7ff, #72d7ff) center / 7px 1.4px no-repeat,
    linear-gradient(#72d7ff, #72d7ff) center / 1.4px 7px no-repeat;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-nested-expanded-block .workflow-graph-nested-edge-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-expanded-diagram .workflow-graph-nested-expanded-block .workflow-graph-expanded-leaf-node.workflow-graph-drilldown-leaf-node {
  z-index: 12;
  width: var(--workflow-leaf-width, 230px) !important;
  min-width: var(--workflow-leaf-width, 230px) !important;
  max-width: var(--workflow-leaf-width, 230px) !important;
  height: var(--workflow-leaf-height, 48px) !important;
  min-height: var(--workflow-leaf-height, 48px) !important;
  padding: 0 28px 0 14px !important;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-expanded-diagram .workflow-graph-nested-expanded-block .workflow-graph-expanded-leaf-node.workflow-graph-drilldown-leaf-node strong {
  font-size: 10.5px;
  line-height: 1.25;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-in-place-expansion.multi-leaf-level .workflow-graph-expanded-diagram .workflow-graph-nested-expanded-block.workflow-graph-expanded-block {
  width: var(--workflow-nested-width, 500px) !important;
  min-width: var(--workflow-nested-width, 500px) !important;
  max-width: var(--workflow-nested-width, 500px) !important;
  height: var(--workflow-nested-height, 220px) !important;
  min-height: var(--workflow-nested-height, 220px) !important;
  max-height: var(--workflow-nested-height, 220px) !important;
  padding: 0 !important;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-in-place-expansion.multi-leaf-level .workflow-graph-expanded-diagram .workflow-graph-nested-expanded-block .workflow-graph-expanded-leaf-node.workflow-graph-drilldown-leaf-node {
  width: var(--workflow-leaf-width, 178px) !important;
  min-width: var(--workflow-leaf-width, 178px) !important;
  max-width: var(--workflow-leaf-width, 178px) !important;
  height: var(--workflow-leaf-height, 44px) !important;
  min-height: var(--workflow-leaf-height, 44px) !important;
  padding: 0 26px 0 12px !important;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-in-place-expansion.multi-leaf-level .workflow-graph-expanded-diagram .workflow-graph-nested-expanded-block .workflow-graph-expanded-leaf-node.workflow-graph-drilldown-leaf-node strong {
  font-size: 10.5px;
  line-height: 1.2;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-in-place-expansion .workflow-graph-expansion-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) repeat(var(--workflow-toolbar-control-count, 1), 44px);
  min-height: 48px;
  margin: 0;
  border-bottom: 1px solid rgba(130, 147, 166, 0.58);
  padding: 0 8px 0 10px;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-in-place-expansion .workflow-graph-expansion-toolbar > span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-collapse-control {
  display: grid;
  width: 44px;
  height: 44px;
  min-height: 44px;
  place-items: center;
  align-self: center;
  border: 1px solid rgba(125, 225, 255, 0.92);
  border-radius: 7px;
  background: rgba(7, 18, 31, 0.92);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
  color: #d9f8ff;
  cursor: pointer;
  font-size: 24px;
  font-weight: 820;
  line-height: 1;
  padding: 0;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-collapse-control:hover,
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-collapse-control:focus-visible {
  border-color: rgba(125, 225, 255, 0.96);
  background: rgba(83, 210, 255, 0.1);
  outline: none;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-canvas-panel.workflow-stage-map-editor {
  grid-template-rows: max-content max-content minmax(600px, 1fr);
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-canvas-panel.workflow-stage-map-editor.breakdown-open {
  grid-template-rows: max-content max-content minmax(var(--workflow-expanded-canvas-height, 640px), 1fr);
  overflow: auto;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-canvas-panel.workflow-stage-map-editor .workflow-diagram {
  grid-row: 3 !important;
  min-height: 600px;
  height: 100%;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-canvas-panel.workflow-stage-map-editor.breakdown-open .workflow-diagram,
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-flow-canvas.has-in-place-expansion {
  min-height: var(--workflow-expanded-canvas-height, 640px);
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-pipeline-shell.breakdown-open .workflow-graph-explorer {
  align-content: start;
  grid-template-rows: minmax(640px, 720px) 118px;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-flow-canvas.has-in-place-expansion {
  align-self: start;
  height: min(640px, calc(100vh - 190px));
  max-height: 640px;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-canvas-panel.workflow-stage-map-editor.breakdown-open .workflow-diagram {
  align-self: start;
  height: var(--workflow-expanded-canvas-height, 640px);
  max-height: none;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-canvas-panel.workflow-stage-map-editor .workflow-edge-layer {
  overflow: visible;
}

/* Workflow graph responsive contract: the graph is the primary reading surface.
   Secondary builder/detail panels stay out of the default canvas view so labels
   remain legible and wheel/drag gestures belong to canvas zoom/pan. */
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-panel.workflow-graph-active {
  grid-template-columns: minmax(0, 1fr) !important;
  overflow: hidden !important;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active),
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .flow-app,
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .app-shell,
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .main-area,
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .semantic-tasker-view {
  overflow: hidden !important;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) #workflowRightPanel.workflow-right-panel {
  display: none !important;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-canvas-panel.workflow-stage-map-editor {
  min-width: 0;
  overflow: hidden !important;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-canvas-panel.workflow-stage-map-editor.breakdown-open,
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-diagram,
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-flow-canvas.has-in-place-expansion {
  overflow: hidden !important;
}

/* Readable overview graph density. The canvas is pannable/zoomable, so overview
   should preserve legible node labels instead of shrinking the whole graph until
   every edge fits into the first viewport. */
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-canvas-panel.workflow-stage-map-editor:not(.breakdown-open) .workflow-stage-wrapper-node[data-workflow-stage-wrapper]:not([data-workflow-expanded-stage]),
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-canvas-panel.workflow-stage-map-editor:not(.breakdown-open) .workflow-graph-node.workflow-canvas-node[data-workflow-stage-wrapper]:not([data-workflow-expanded-stage]) {
  width: 250px;
  min-width: 250px;
  max-width: 250px;
  min-height: 76px;
  padding: 0 40px 0 20px;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-canvas-panel.workflow-stage-map-editor:not(.breakdown-open) .workflow-stage-wrapper-node[data-workflow-stage-wrapper]:not([data-workflow-expanded-stage])::after,
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-canvas-panel.workflow-stage-map-editor:not(.breakdown-open) .workflow-graph-node.workflow-canvas-node[data-workflow-stage-wrapper]:not([data-workflow-expanded-stage])::after {
  right: 15px;
  width: 18px;
  height: 18px;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-canvas-panel.workflow-stage-map-editor:not(.breakdown-open) .workflow-stage-wrapper-node[data-workflow-stage-wrapper]:not([data-workflow-expanded-stage])::before,
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-canvas-panel.workflow-stage-map-editor:not(.breakdown-open) .workflow-graph-node.workflow-canvas-node[data-workflow-stage-wrapper]:not([data-workflow-expanded-stage])::before {
  right: 20px;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-canvas-panel.workflow-stage-map-editor:not(.breakdown-open) .workflow-stage-wrapper-node[data-workflow-stage-wrapper] .workflow-insertion-stage strong,
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-canvas-panel.workflow-stage-map-editor:not(.breakdown-open) .workflow-graph-node.workflow-canvas-node[data-workflow-stage-wrapper] .workflow-insertion-stage strong {
  font-size: 14px;
  font-weight: 620;
  line-height: 1.24;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-in-place-expansion .workflow-graph-expansion-toolbar {
  grid-template-columns: minmax(0, 1fr) max-content repeat(var(--workflow-toolbar-control-count, 1), 44px);
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-edit-toggle,
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-profile-control {
  display: grid;
  min-width: 44px;
  height: 22px;
  place-items: center;
  border: 1px solid rgba(83, 210, 255, 0.72);
  border-radius: 5px;
  background: rgba(8, 18, 31, 0.92);
  color: #bfeeff;
  cursor: pointer;
  font-size: 11px;
  font-weight: 760;
  line-height: 1;
  padding: 0 8px;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-edit-toggle.active {
  background: rgba(83, 210, 255, 0.16);
  border-color: rgba(125, 225, 255, 0.96);
  color: #e7fbff;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-in-place-expansion.editing .workflow-graph-expanded-block.workflow-graph-breakdown-block::after {
  display: none;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-inner-edit-controls {
  position: absolute;
  top: 5px;
  right: 5px;
  z-index: 30;
  display: inline-flex;
  gap: 4px;
  align-items: center;
  pointer-events: auto;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-expanded-diagram .workflow-graph-expanded-leaf-node.workflow-graph-drilldown-leaf-node .workflow-graph-inner-edit-controls,
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-expanded-diagram .workflow-graph-expanded-block.workflow-graph-breakdown-block .workflow-graph-inner-edit-controls {
  display: inline-flex;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-inner-connect,
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-inner-delete {
  display: grid;
  width: 16px;
  height: 16px;
  place-items: center;
  border: 1px solid rgba(83, 210, 255, 0.86);
  border-radius: 999px;
  background: rgba(7, 18, 31, 0.92);
  color: #69d6ff;
  cursor: pointer;
  font-size: 11px;
  font-weight: 760;
  line-height: 1;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-expanded-diagram .workflow-graph-expanded-leaf-node.workflow-graph-drilldown-leaf-node .workflow-graph-inner-connect,
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-expanded-diagram .workflow-graph-expanded-leaf-node.workflow-graph-drilldown-leaf-node .workflow-graph-inner-delete,
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-expanded-diagram .workflow-graph-expanded-block.workflow-graph-breakdown-block .workflow-graph-inner-connect,
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-expanded-diagram .workflow-graph-expanded-block.workflow-graph-breakdown-block .workflow-graph-inner-delete {
  display: grid;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-inner-connect::before {
  content: "+";
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-inner-delete::before {
  content: "x";
  font-size: 10px;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-inner-connect.active,
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-expanded-leaf-node.inner-connection-source {
  border-color: rgba(255, 215, 128, 0.96);
  box-shadow: 0 0 0 1px rgba(255, 215, 128, 0.28);
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-in-place-expansion.editing .workflow-graph-nested-expanded-block.workflow-graph-nested-flat-group .workflow-graph-expanded-leaf-node.workflow-graph-drilldown-leaf-node {
  pointer-events: auto;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-in-place-expansion.editing .workflow-graph-expansion-edge-layer,
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-in-place-expansion.editing .workflow-graph-nested-edge-layer {
  pointer-events: auto;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-in-place-expansion.editing .workflow-graph-expansion-edge.editable {
  cursor: pointer;
  pointer-events: stroke;
  stroke-width: 1.9;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-in-place-expansion.editing .workflow-graph-expansion-edge-hit {
  fill: rgba(255, 215, 128, 0);
  pointer-events: all;
  cursor: pointer;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-in-place-expansion.editing .workflow-graph-expansion-edge-hit:hover,
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-in-place-expansion.editing .workflow-graph-expansion-edge-hit:focus {
  fill: rgba(255, 215, 128, 0.16);
  outline: none;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-in-place-expansion.editing .workflow-graph-expansion-edge.editable:hover,
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-in-place-expansion.editing .workflow-graph-expansion-edge.editable:focus {
  outline: none;
  stroke: rgba(255, 215, 128, 0.98);
}

/* Final viewport contract: expanded workflow graphs are a pannable canvas, not
   a document-height panel. Keep the visual surface inside the available
   workflow viewport so wheel gestures remain available for zoom/pan. */
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-canvas-panel.workflow-stage-map-editor.breakdown-open {
  grid-template-rows: max-content max-content minmax(0, 1fr) !important;
  overflow: hidden !important;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-canvas-panel.workflow-stage-map-editor.breakdown-open .workflow-diagram,
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-flow-canvas.has-in-place-expansion {
  height: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-flow-canvas {
  position: relative;
  overflow: hidden !important;
  cursor: grab;
  touch-action: none;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-flow-canvas.panning {
  cursor: grabbing;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-flow-canvas .workflow-virtual-stage {
  overflow: visible;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-flow-canvas .workflow-graph-edge-path {
  stroke-width: 1.08;
  stroke-linecap: square;
  stroke-linejoin: miter;
  vector-effect: non-scaling-stroke;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-pipeline-shell.breakdown-open .workflow-graph-explorer {
  grid-template-rows: minmax(0, 1fr) !important;
}

/* Final overlap contract: settings and run preview must be normal layout
   regions, never floating overlays on top of the workflow canvas. */
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-canvas-panel.workflow-stage-map-editor.settings-open {
  grid-template-rows: max-content max-content minmax(0, 1fr) max-content !important;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-canvas-panel.workflow-stage-map-editor.settings-open .workflow-diagram {
  grid-row: 3 !important;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-canvas-panel.workflow-stage-map-editor.settings-open .workflow-settings-panel {
  grid-row: 4 !important;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  align-items: stretch;
  gap: 7px;
  border-top: 1px solid rgba(251, 190, 54, 0.2);
  border-bottom: 0;
  background: rgba(12, 11, 10, 0.96);
  padding: 8px 10px;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-canvas-panel.workflow-stage-map-editor.settings-open .workflow-settings-panel label {
  min-height: 54px;
  padding: 7px 8px;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-canvas-panel.workflow-stage-map-editor.settings-open .workflow-settings-panel input,
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-canvas-panel.workflow-stage-map-editor.settings-open .workflow-settings-panel select {
  height: 25px;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-stage-builder-panel .workflow-run-preview {
  position: static !important;
  z-index: auto;
  width: auto;
  max-height: none;
  margin: 10px 10px 12px;
  box-shadow: none;
  pointer-events: auto;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-stage-builder-panel .workflow-run-preview .run-preview-grid {
  grid-template-columns: minmax(0, 1fr);
}

/* Full-canvas graph contract: workflow graph mode owns a bounded viewport.
   This prevents settings/edit controls from collapsing the graph row to the
   minimap height and keeps drag/drop targets hit-testable. */
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-panel.workflow-graph-active {
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: minmax(0, 1fr) !important;
  height: calc(100vh - var(--topbar-height) - var(--safe-top) - var(--safe-bottom));
  max-height: calc(100vh - var(--topbar-height) - var(--safe-top) - var(--safe-bottom));
  min-height: 0;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-pipeline-shell,
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-canvas-panel.workflow-stage-map-editor {
  grid-row: 1;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: max-content max-content max-content minmax(0, 1fr) !important;
  height: 100%;
  max-height: 100%;
  min-height: 0;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-canvas-panel.workflow-stage-map-editor > * {
  grid-column: 1 / 2 !important;
  min-width: 0;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-canvas-panel.workflow-stage-map-editor > .scandump-builder-manifest-panel,
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-canvas-panel.workflow-stage-map-editor > .watchdog-judgement-pane {
  display: none !important;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-canvas-panel.workflow-stage-map-editor .workflow-diagram {
  grid-column: 1 / 2 !important;
  grid-row: 4 !important;
  justify-self: stretch !important;
  align-self: stretch;
  height: 100% !important;
  min-height: 0 !important;
  width: 100% !important;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-canvas-panel.workflow-stage-map-editor .workflow-repair-panel {
  grid-row: 3 !important;
  grid-column: 1 / 2 !important;
  max-height: 104px;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-canvas-panel.workflow-stage-map-editor.settings-open {
  grid-template-rows: max-content max-content max-content max-content minmax(0, 1fr) !important;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-canvas-panel.workflow-stage-map-editor.settings-open .workflow-settings-panel {
  grid-row: 4 !important;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-canvas-panel.workflow-stage-map-editor.settings-open .workflow-diagram {
  grid-row: 5 !important;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-canvas-panel.workflow-stage-map-editor.breakdown-open {
  grid-template-rows: max-content max-content max-content minmax(0, 1fr) !important;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-canvas-panel.workflow-stage-map-editor.breakdown-open .workflow-diagram {
  grid-row: 4 !important;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-canvas-panel.workflow-stage-map-editor.breakdown-open.settings-open {
  grid-template-rows: max-content max-content max-content max-content minmax(0, 1fr) !important;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-canvas-panel.workflow-stage-map-editor.breakdown-open.settings-open .workflow-settings-panel {
  grid-row: 4 !important;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-canvas-panel.workflow-stage-map-editor.breakdown-open.settings-open .workflow-diagram {
  grid-row: 5 !important;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-pipeline-shell > * {
  grid-column: 1 !important;
  min-width: 0;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-pipeline-shell .workflow-graph-explorer {
  grid-row: 4 !important;
  width: 100%;
  min-width: 0;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-pipeline-shell.has-loop-status.settings-open .workflow-graph-explorer {
  grid-row: 5 !important;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-pipeline-shell .workflow-graph-flow-surface,
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-pipeline-shell .workflow-graph-flow-canvas {
  width: 100%;
  min-width: 0;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-pipeline-shell.settings-open {
  grid-template-rows: max-content max-content max-content minmax(0, 1fr) !important;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-pipeline-shell.has-loop-status {
  grid-template-rows: max-content max-content max-content minmax(0, 1fr) !important;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-pipeline-shell.has-loop-status.settings-open {
  grid-template-rows: max-content max-content max-content max-content minmax(0, 1fr) !important;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-explorer,
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-flow-surface,
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-flow-canvas {
  min-height: 0;
  height: 100%;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-node.workflow-canvas-node,
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-stage-wrapper-node[data-workflow-stage-wrapper],
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-node.workflow-canvas-node[data-workflow-stage-wrapper] {
  pointer-events: auto;
}

/* Workspace shell theme. This layer keeps the existing interaction
   contracts intact while presenting the app as an operator dashboard. */
:root {
  --bg: #101512;
  --bg-deep: #070a08;
  --topbar: #141711;
  --rail: #171c14;
  --sidebar: #111813;
  --panel: #17201a;
  --panel-soft: #20261d;
  --panel-strong: #293024;
  --canvas: #111a14;
  --line: rgba(247, 244, 232, 0.13);
  --line-strong: rgba(247, 244, 232, 0.24);
  --text: #f7f4e8;
  --muted: #b9c3aa;
  --muted-2: #7f8e7a;
  --purple: #e16b4d;
  --purple-strong: #b94e39;
  --purple-soft: rgba(225, 107, 77, 0.18);
  --teal: #5dd6bc;
  --teal-soft: rgba(93, 214, 188, 0.16);
  --yellow: #f5c453;
  --yellow-soft: rgba(245, 196, 83, 0.17);
  --green: #83d86a;
  --blue: #7da9ff;
  --red: #ff665f;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.38);
  --topbar-height: 48px;
  --rail-width: 64px;
  --sidebar-width: 286px;
}

body {
  background: #080b08;
  color: var(--text);
}

.flow-app {
  position: relative;
  isolation: isolate;
}

.flow-app::before {
  display: none;
  content: none;
}

.topbar {
  grid-template-columns:
    minmax(132px, 180px)
    minmax(360px, 1fr)
    minmax(0, max-content)
    max-content;
  gap: 12px;
  min-height: var(--topbar-height);
  border-bottom: 1px solid rgba(247, 244, 232, 0.14);
  background: rgba(13, 18, 14, 0.98);
  box-shadow: none;
  padding: 0 14px;
}

.topbar::after {
  display: none;
  content: none;
}

.brand {
  gap: 12px;
}

.brand-mark {
  width: 30px;
  height: 30px;
  border: 2px solid rgba(247, 244, 232, 0.72);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(247, 244, 232, 0.96), rgba(245, 196, 83, 0.9));
  box-shadow: 0 10px 22px rgba(245, 196, 83, 0.16);
  color: #111711;
  font-size: 18px;
}

.brand-title {
  color: #fff7d7;
  font-size: 16px;
}

.global-search {
  justify-self: stretch;
  height: 38px;
  border-color: rgba(247, 244, 232, 0.16);
  border-radius: 8px;
  background: rgba(7, 10, 8, 0.58);
  box-shadow: inset 0 0 0 1px rgba(93, 214, 188, 0.035);
}

.global-search:focus-within {
  border-color: rgba(93, 214, 188, 0.54);
  box-shadow: 0 0 0 2px rgba(93, 214, 188, 0.14);
}

.topbar-actions .icon-button,
.compose-button {
  border-color: rgba(247, 244, 232, 0.16);
  border-radius: 8px;
  background: rgba(247, 244, 232, 0.08);
  color: #fff2c0;
}

.app-shell {
  background:
    linear-gradient(90deg, rgba(93, 214, 188, 0.045), transparent 30%),
    linear-gradient(180deg, rgba(247, 244, 232, 0.035), transparent 20%);
}

.app-rail {
  border-right-color: rgba(245, 196, 83, 0.24);
  background:
    repeating-linear-gradient(135deg, rgba(247, 244, 232, 0.045) 0 8px, transparent 8px 18px),
    linear-gradient(180deg, #1b2419, #0c110d);
  padding: 11px 9px;
}

.workspace-switcher {
  gap: 10px;
}

.workspace-button {
  width: 46px;
  height: 46px;
  border-color: rgba(247, 244, 232, 0.16);
  border-radius: 8px;
  background: rgba(247, 244, 232, 0.075);
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.22);
  color: #e9eed8;
  font-size: 10.5px;
}

.workspace-button.active {
  border-color: rgba(245, 196, 83, 0.72);
  background: linear-gradient(180deg, rgba(245, 196, 83, 0.28), rgba(225, 107, 77, 0.32));
  box-shadow:
    inset 0 -4px 0 rgba(0, 0, 0, 0.22),
    0 0 0 2px rgba(245, 196, 83, 0.1);
}

.workspace-button.add-workspace {
  border-style: dashed;
  background: rgba(93, 214, 188, 0.08);
  color: #99f0d8;
}

.activity-rail-badge {
  border-color: #121813;
  background: var(--yellow);
  color: #17120a;
}

.workspace-sidebar {
  border-right-color: rgba(245, 196, 83, 0.2);
  background:
    linear-gradient(180deg, rgba(247, 244, 232, 0.055), rgba(247, 244, 232, 0.015)),
    var(--sidebar);
}

.workspace-header {
  min-height: 62px;
  border-bottom-color: rgba(245, 196, 83, 0.18);
  background: rgba(7, 10, 8, 0.28);
}

.company-selector strong {
  color: #fff7d7;
  font-size: 14px;
}

.company-selector span,
.workspace-boundary-notice span,
.source-bridge-label {
  color: #aab99f;
}

.workspace-source-bridge,
.workspace-boundary-notice {
  border-bottom-color: rgba(247, 244, 232, 0.11);
  background: rgba(247, 244, 232, 0.025);
}

.workspace-boundary-notice {
  border-left: 4px solid var(--teal);
}

.workspace-boundary-notice.locked {
  border-left-color: var(--yellow);
}

.primary-nav {
  gap: 6px;
}

.primary-nav button,
.sidebar-item,
.workflow-sidebar-item,
.workflow-section-menu button {
  border: 1px solid rgba(247, 244, 232, 0.08);
  border-radius: 8px;
  background: rgba(247, 244, 232, 0.04);
}

.primary-nav button {
  min-height: 38px;
  color: #e4ead5;
  font-size: 12.5px;
}

.primary-nav button.active {
  border-color: rgba(245, 196, 83, 0.48);
  background: rgba(245, 196, 83, 0.13);
  color: #fff6d5;
}

.sidebar-item.active,
.workflow-sidebar-item.active,
.workflow-section-menu button.active {
  border-color: rgba(247, 244, 232, 0.13);
  background: rgba(247, 244, 232, 0.055);
  color: #eef5df;
}

.workspace-sidebar .sidebar-item[data-sidebar-hr-view].active,
.workspace-sidebar .sidebar-item[data-workflow-section].active {
  border-color: rgba(245, 196, 83, 0.18);
  background: rgba(245, 196, 83, 0.065);
  box-shadow: inset 3px 0 0 rgba(245, 196, 83, 0.68);
  color: #fff6d5;
}

.workspace-sidebar .sidebar-item[data-sidebar-agent].active,
.workspace-sidebar .sidebar-item[data-sidebar-human].active,
.workspace-sidebar .workflow-sidebar-item.active,
.workspace-sidebar .session-item.active {
  border-color: rgba(93, 214, 188, 0.18);
  background: rgba(93, 214, 188, 0.055);
  box-shadow: inset 3px 0 0 rgba(93, 214, 188, 0.58);
  color: #ecfff8;
}

.workspace-sidebar .sidebar-item[data-sidebar-agent].active .session-health,
.workspace-sidebar .sidebar-item[data-sidebar-human].active .session-health,
.workspace-sidebar .session-item.active .session-health {
  background: rgba(93, 214, 188, 0.16);
  color: #bfffee;
}

.sidebar-heading {
  color: #89977f;
  font-size: 10.5px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.main-area {
  background: rgba(7, 10, 8, 0.58);
}

.panel-surface,
.chat-main,
.info-panel,
.workflow-graph-pipeline-shell,
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-panel.workflow-graph-active .workflow-graph-pipeline-shell {
  border-color: rgba(247, 244, 232, 0.14);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: none;
}

.chat-main {
  border-right-color: rgba(247, 244, 232, 0.12);
}

.channel-header,
.panel-header,
.workflow-toolbar,
.workflow-create-header {
  border-bottom-color: rgba(245, 196, 83, 0.18);
  background: rgba(7, 10, 8, 0.2);
}

.channel-title h2,
.panel-header h2,
.panel-header h3,
.workflow-title h2,
.profile-title h2,
.workflow-create-header h2 {
  color: #fff7d7;
}

.channel-title span,
.workflow-title span,
.profile-title p,
.profile-notice {
  color: #aab99f;
}

.room-control-chip,
.workflow-runtime-strip > span,
.messenger-loop-stage,
.profile-card,
.mini-card,
.workflow-create-card,
.workflow-scratch-card,
.workflow-format-preview-card {
  border-color: rgba(247, 244, 232, 0.12);
  border-radius: 8px;
  background: rgba(247, 244, 232, 0.045);
}

.room-control-chip.clear {
  border-color: rgba(93, 214, 188, 0.26);
  background: rgba(93, 214, 188, 0.085);
}

.room-control-chip.blocked {
  border-color: rgba(255, 102, 95, 0.34);
  background: rgba(255, 102, 95, 0.085);
}

.header-actions button,
.new-agent-button,
.new-workflow-button,
.run-button,
.settings-button,
.empty-action,
.workflow-create-source-actions button,
.workflow-create-preview-actions button,
.profile-actions button {
  border: 1px solid rgba(247, 244, 232, 0.15);
  border-radius: 7px;
  background: rgba(247, 244, 232, 0.075);
  color: #fff3c4;
}

.header-actions .primary-action,
.messenger-loop-actions .primary-action,
.new-agent-button,
.new-workflow-button,
.empty-action.primary,
.profile-actions button:first-child,
.workflow-agent-editor-actions button:first-child {
  border-color: rgba(245, 196, 83, 0.48);
  background: linear-gradient(180deg, rgba(245, 196, 83, 0.24), rgba(225, 107, 77, 0.26));
  color: #fff7d7;
}

.new-agent-button.secondary {
  border-color: rgba(93, 214, 188, 0.28);
  background: rgba(93, 214, 188, 0.1);
  color: #a8f4de;
}

.messenger-thread {
  background: rgba(7, 10, 8, 0.3);
  padding: 16px 22px 22px;
}

.messenger-message {
  gap: 12px;
}

.message-avatar,
.capability-icon,
.workflow-row-mark,
.workflow-create-icon,
.profile-avatar {
  border-radius: 8px;
  background: linear-gradient(135deg, var(--teal), #d6ffe4);
  color: #08120e;
}

.messenger-message.human .message-avatar {
  background: linear-gradient(135deg, var(--yellow), #ffe9a3);
  color: #17120a;
}

.message-body {
  border-left: 3px solid rgba(93, 214, 188, 0.42);
  padding-left: 12px;
}

.messenger-message.human .message-body {
  border-left-color: rgba(245, 196, 83, 0.58);
}

.message-meta strong,
.row-copy > strong,
.workflow-library-title-block strong,
.profile-card h3,
.profile-card strong,
.mini-card strong {
  color: #fff7d7;
}

.message-copy,
.row-copy > span,
.workflow-library-title-block small,
.mini-card p,
.profile-card p {
  color: #b9c3aa;
}

.message-action-bar,
.global-search-results,
.settings-tray,
.help-tray,
.activity-panel {
  border-color: rgba(247, 244, 232, 0.16);
  border-radius: 8px;
  background: rgba(13, 18, 14, 0.98);
}

.composer {
  border-top-color: rgba(245, 196, 83, 0.18);
  background: rgba(7, 10, 8, 0.24);
}

.composer-input,
.composer-persona select,
.agent-edit-grid input,
.agent-edit-grid select,
.agent-edit-grid textarea,
.workflow-settings-panel input,
.workflow-settings-panel select,
.workflow-create-fields input,
.workflow-agent-editor-grid input,
.workflow-agent-editor-grid select,
.workflow-agent-editor-grid textarea {
  border-color: rgba(247, 244, 232, 0.16);
  border-radius: 7px;
  background: rgba(7, 10, 8, 0.58);
  color: #fff7d7;
}

.composer-input:focus,
.search-field:focus,
.agent-edit-grid input:focus,
.agent-edit-grid select:focus,
.agent-edit-grid textarea:focus {
  border-color: rgba(93, 214, 188, 0.58);
  box-shadow: 0 0 0 2px rgba(93, 214, 188, 0.14);
}

.send-button {
  border: 1px solid rgba(93, 214, 188, 0.34);
  border-radius: 7px;
  background: rgba(93, 214, 188, 0.1);
  color: #a8f4de;
}

.hr-panel,
.workflow-panel {
  gap: 14px;
  padding: 14px;
}

.hr-list-panel,
.hr-detail-panel,
.workflow-list-panel,
.workflow-canvas-panel,
.workflow-right-panel,
.workflow-agent-palette {
  border-color: rgba(247, 244, 232, 0.14);
}

.hr-list-header {
  min-height: 118px;
}

.tab-strip {
  border-bottom-color: rgba(247, 244, 232, 0.1);
}

.tab-strip button {
  border: 1px solid transparent;
  border-radius: 7px;
}

.tab-strip button.active {
  border-color: rgba(93, 214, 188, 0.38);
  background: rgba(93, 214, 188, 0.12);
  color: #a8f4de;
}

.search-field {
  border-color: rgba(247, 244, 232, 0.12);
  border-radius: 8px;
  background: rgba(7, 10, 8, 0.42);
}

.agent-row,
.human-row,
.request-row,
.template-row,
.skill-row,
.workflow-row,
.workflow-library-item {
  border-color: rgba(247, 244, 232, 0.1);
  border-radius: 8px;
  background: rgba(247, 244, 232, 0.045);
}

.agent-row.active,
.human-row.active,
.request-row.active,
.template-row.active,
.skill-row.active,
.workflow-row.active,
.workflow-library-item.selected {
  border-color: rgba(245, 196, 83, 0.52);
  background: rgba(245, 196, 83, 0.12);
}

.workspace-empty-panel {
  min-height: 0;
}

.workspace-empty-state {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(247, 244, 232, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(rgba(247, 244, 232, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(247, 244, 232, 0.03) 1px, transparent 1px),
    rgba(247, 244, 232, 0.035);
  background-size: 24px 24px;
}

.workspace-empty-state::before {
  display: block;
  width: min(420px, 82%);
  aspect-ratio: 16 / 9;
  margin-bottom: 8px;
  background: url("./assets/startup-board.svg") center / contain no-repeat;
  content: "";
  opacity: 0.38;
}

.workspace-empty-kicker {
  border-color: rgba(93, 214, 188, 0.34);
  border-radius: 6px;
  background: rgba(93, 214, 188, 0.12);
  color: #a8f4de;
}

.workspace-empty-state h2 {
  color: #fff7d7;
  font-size: 22px;
}

.workflow-canvas-panel,
.workflow-canvas-panel.workflow-stage-map-editor,
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-canvas-panel.workflow-stage-map-editor {
  background:
    linear-gradient(rgba(247, 244, 232, 0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(247, 244, 232, 0.026) 1px, transparent 1px),
    #0e150f;
  background-size: 34px 34px;
}

.workflow-diagram,
.workflow-canvas-panel.workflow-stage-map-editor .workflow-diagram {
  background:
    linear-gradient(rgba(245, 196, 83, 0.038) 1px, transparent 1px),
    linear-gradient(90deg, rgba(93, 214, 188, 0.04) 1px, transparent 1px),
    #0b120d;
  background-size: 30px 30px;
}

.workflow-virtual-stage,
.workflow-canvas-panel.workflow-stage-map-editor .workflow-virtual-stage {
  background:
    linear-gradient(rgba(245, 196, 83, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(93, 214, 188, 0.05) 1px, transparent 1px),
    #0b120d;
  background-size: 30px 30px;
}

.workflow-canvas-controls,
.workflow-status-dag,
.workflow-run-preview,
.workflow-repair-panel,
.watchdog-judgement-pane {
  border-color: rgba(247, 244, 232, 0.14);
  border-radius: 8px;
  background: rgba(13, 18, 14, 0.94);
}

.workflow-edge {
  stroke: rgba(245, 196, 83, 0.6);
}

.workflow-edge.user-created {
  stroke: rgba(93, 214, 188, 0.86);
}

.workflow-canvas-node,
.workflow-graph-node.workflow-canvas-node,
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-node.workflow-canvas-node {
  border-color: rgba(247, 244, 232, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(247, 244, 232, 0.1), rgba(247, 244, 232, 0.035)),
    #182019;
  box-shadow:
    0 14px 32px rgba(0, 0, 0, 0.3),
    inset 0 0 0 1px rgba(255, 255, 255, 0.025);
}

.workflow-canvas-node.leader,
.workflow-canvas-node.release,
.workflow-graph-node.workflow-canvas-node.leader,
.workflow-graph-node.workflow-canvas-node.release,
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-node.workflow-canvas-node.leader,
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-node.workflow-canvas-node.release {
  border-color: rgba(245, 196, 83, 0.6);
  background: linear-gradient(180deg, rgba(245, 196, 83, 0.25), rgba(119, 74, 25, 0.24)), #182019;
}

.workflow-canvas-node.human,
.workflow-graph-node.workflow-canvas-node.human,
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-node.workflow-canvas-node.human {
  border-color: rgba(93, 214, 188, 0.54);
  background: linear-gradient(180deg, rgba(93, 214, 188, 0.22), rgba(20, 72, 61, 0.22)), #182019;
}

.workflow-canvas-node.selected,
.workflow-graph-node.workflow-canvas-node.selected,
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-node.workflow-canvas-node.selected {
  outline-color: rgba(245, 196, 83, 0.78);
  box-shadow:
    0 0 0 3px rgba(245, 196, 83, 0.14),
    0 16px 36px rgba(0, 0, 0, 0.35);
}

.workflow-canvas-node strong,
.workflow-graph-node.workflow-canvas-node strong,
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-node.workflow-canvas-node strong {
  color: #fff7d7;
}

.workflow-canvas-node span,
.workflow-graph-node.workflow-canvas-node span,
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-node.workflow-canvas-node span {
  color: #aab99f;
}

.workflow-runtime-strip,
.workflow-stage-map-editor .workflow-runtime-strip {
  border-bottom-color: rgba(245, 196, 83, 0.18);
  background: rgba(7, 10, 8, 0.22);
}

.status-dag-node.ready .status-dag-rail::after,
.status-dag-node.ready b {
  border-color: rgba(131, 216, 106, 0.62);
  background: rgba(131, 216, 106, 0.16);
  color: #c5f6b5;
}

.status-dag-node.running .status-dag-rail::after,
.status-dag-node.running b {
  border-color: rgba(93, 214, 188, 0.62);
  background: rgba(93, 214, 188, 0.14);
  color: #a8f4de;
}

.status-dag-node.waiting .status-dag-rail::after,
.status-dag-node.waiting b {
  border-color: rgba(245, 196, 83, 0.62);
  background: rgba(245, 196, 83, 0.15);
  color: #ffe39b;
}

.status-dag-node.blocked .status-dag-rail::after,
.status-dag-node.blocked b {
  border-color: rgba(255, 102, 95, 0.64);
  background: rgba(255, 102, 95, 0.16);
  color: #ffc7c0;
}

@media (max-width: 1180px) {
  :root {
    --sidebar-width: 246px;
  }

  .topbar {
    grid-template-columns: minmax(0, 1fr) max-content;
  }

  .global-search,
  .server-auth-status {
    display: none !important;
  }
}

@media (max-width: 860px) {
  :root {
    --topbar-height: 58px;
    --rail-width: 58px;
  }

  .topbar {
    grid-template-columns: minmax(0, 1fr) max-content;
  }

  .workspace-button {
    width: 42px;
    height: 42px;
  }
}

@media (max-width: 640px) {
  .topbar {
    grid-template-columns: minmax(0, 1fr) max-content;
  }

  .messenger-thread {
    padding: 14px 12px 18px;
  }

  .workspace-empty-state::before {
    width: 92%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .workflow-canvas-node,
  .workflow-graph-node.workflow-canvas-node,
  .message-action-bar {
    transition: none;
  }
}

.main-area {
  grid-template-rows: minmax(0, 1fr);
  gap: 0;
}

.new-company-start-chooser {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  align-items: center;
  justify-items: center;
  overflow: auto;
  background:
    linear-gradient(135deg, rgba(93, 214, 188, 0.11), rgba(7, 10, 8, 0.72) 36%, rgba(245, 196, 83, 0.09)),
    rgba(3, 5, 4, 0.72);
  padding: 28px;
}

.new-company-start-panel {
  width: min(980px, 100%);
  max-height: calc(100vh - 56px);
  overflow: auto;
  border: 1px solid rgba(245, 196, 83, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(rgba(247, 244, 232, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(247, 244, 232, 0.03) 1px, transparent 1px),
    linear-gradient(180deg, rgba(30, 39, 28, 0.98), rgba(12, 17, 13, 0.98));
  background-size: 26px 26px, 26px 26px, auto;
  box-shadow: 0 28px 88px rgba(0, 0, 0, 0.58);
}

.new-company-start-header {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr) max-content;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid rgba(245, 196, 83, 0.2);
  background: rgba(7, 10, 8, 0.36);
  padding: 16px;
}

.new-company-start-header > span,
.new-company-path-kicker {
  display: inline-flex;
  width: max-content;
  align-items: center;
  border: 1px solid rgba(93, 214, 188, 0.32);
  border-radius: 6px;
  background: rgba(93, 214, 188, 0.12);
  color: #a8f4de;
  font-size: 9px;
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1;
  padding: 5px 7px;
  text-transform: uppercase;
}

.new-company-start-header h2,
.new-company-path h3 {
  margin: 0;
  color: #fff7d7;
  font-weight: 950;
  letter-spacing: 0;
}

.new-company-start-header h2 {
  font-size: 22px;
}

.new-company-start-header p,
.new-company-path p,
.new-company-choice-note {
  margin: 4px 0 0;
  color: #b9c3aa;
  font-size: 12px;
  font-weight: 760;
  line-height: 1.35;
}

.new-company-start-header button,
.new-company-path button {
  min-height: 34px;
  border: 1px solid rgba(247, 244, 232, 0.16);
  border-radius: 7px;
  background: rgba(247, 244, 232, 0.075);
  color: #fff3c4;
  font-size: 11.5px;
  font-weight: 900;
  padding: 8px 11px;
}

.new-company-path-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  padding: 16px;
}

.new-company-path {
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
  border: 1px solid rgba(247, 244, 232, 0.13);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(247, 244, 232, 0.075), rgba(247, 244, 232, 0.025)),
    rgba(7, 10, 8, 0.38);
  padding: 16px;
}

.new-company-path.selected {
  border-color: rgba(245, 196, 83, 0.52);
  background:
    linear-gradient(180deg, rgba(245, 196, 83, 0.14), rgba(93, 214, 188, 0.055)),
    rgba(7, 10, 8, 0.42);
}

.new-company-path.template {
  border-color: rgba(93, 214, 188, 0.2);
}

.new-company-path[role="button"] {
  cursor: pointer;
}

.new-company-path[role="button"]:focus-visible {
  border-color: rgba(93, 214, 188, 0.62);
  outline: 2px solid rgba(93, 214, 188, 0.26);
  outline-offset: 2px;
}

.new-company-path.template.selected {
  border-color: rgba(93, 214, 188, 0.64);
  background:
    linear-gradient(180deg, rgba(93, 214, 188, 0.16), rgba(245, 196, 83, 0.07)),
    rgba(7, 10, 8, 0.42);
}

.new-company-path h3 {
  font-size: 19px;
}

.new-company-path ol,
.new-company-template-options {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.new-company-path li,
.new-company-template-options button {
  display: grid;
  align-items: center;
  gap: 9px;
  min-width: 0;
  border: 1px solid rgba(247, 244, 232, 0.1);
  border-radius: 8px;
  background: rgba(247, 244, 232, 0.045);
  color: #fff7d7;
  font-size: 12px;
  font-weight: 900;
  list-style: none;
  padding: 9px;
}

.new-company-path li {
  grid-template-columns: 34px minmax(0, 1fr);
}

.new-company-path li b {
  display: grid;
  width: 34px;
  height: 30px;
  place-items: center;
  border: 1px solid rgba(245, 196, 83, 0.32);
  border-radius: 7px;
  background: rgba(245, 196, 83, 0.13);
  color: #ffe39b;
  font-size: 10px;
}

.new-company-template-options button {
  grid-template-columns: minmax(0, 1fr);
  text-align: left;
}

.new-company-template-options button.selected {
  border-color: rgba(93, 214, 188, 0.5);
  background:
    linear-gradient(180deg, rgba(93, 214, 188, 0.14), rgba(245, 196, 83, 0.06)),
    rgba(7, 10, 8, 0.42);
}

.new-company-template-options strong,
.new-company-template-options small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.new-company-template-options small {
  margin-top: 2px;
  color: #8f9b88;
  font-size: 10px;
  font-weight: 800;
}

.new-company-path button.primary {
  border-color: rgba(245, 196, 83, 0.5);
  background: linear-gradient(180deg, rgba(245, 196, 83, 0.26), rgba(225, 107, 77, 0.26));
  color: #fff7d7;
}

.new-company-path button:hover,
.new-company-path button:focus-visible,
.new-company-start-header button:hover,
.new-company-start-header button:focus-visible {
  border-color: rgba(93, 214, 188, 0.48);
  outline: none;
}

.new-company-choice-note {
  display: block;
  border: 1px solid rgba(245, 196, 83, 0.22);
  border-radius: 7px;
  background: rgba(245, 196, 83, 0.08);
  color: #ffe39b;
  padding: 9px;
}

.new-company-template-tutorial {
  display: grid;
  gap: 9px;
  border: 1px solid rgba(93, 214, 188, 0.28);
  border-radius: 7px;
  background: rgba(93, 214, 188, 0.075);
  color: #d8fff2;
  padding: 10px;
}

.new-company-template-tutorial strong {
  color: #d8fff2;
  font-size: 12px;
  font-weight: 950;
}

.new-company-template-tutorial small {
  color: #b9c3aa;
  font-size: 11px;
  font-weight: 760;
  line-height: 1.35;
}

.new-company-template-tutorial ol {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
}

.new-company-template-tutorial li {
  grid-template-columns: 34px minmax(0, 1fr);
  border-color: rgba(93, 214, 188, 0.18);
  background: rgba(5, 14, 12, 0.36);
}

.new-company-template-tutorial li b {
  border-color: rgba(93, 214, 188, 0.34);
  background: rgba(93, 214, 188, 0.13);
  color: #a8f4de;
}

.semantic-tasker-view {
  min-height: 0;
}

.workspace-empty-state {
  align-content: center;
  grid-template-rows: auto auto auto auto auto;
  padding: 24px clamp(18px, 4vw, 54px);
}

.tutorial-mission-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: min(920px, 100%);
  margin: 8px 0 2px;
}

.tutorial-step-card {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 8px 10px;
  min-width: 0;
  min-height: 104px;
  border: 1px solid rgba(247, 244, 232, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(247, 244, 232, 0.065), rgba(247, 244, 232, 0.025)),
    rgba(7, 10, 8, 0.36);
  padding: 12px;
  text-align: left;
}

.tutorial-step-card.active {
  border-color: rgba(245, 196, 83, 0.42);
  background:
    linear-gradient(180deg, rgba(245, 196, 83, 0.14), rgba(93, 214, 188, 0.055)),
    rgba(7, 10, 8, 0.38);
}

.tutorial-step-card b {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(245, 196, 83, 0.34);
  border-radius: 8px;
  background: rgba(245, 196, 83, 0.13);
  color: #ffe39b;
  font-size: 11px;
  font-weight: 950;
}

.tutorial-step-card strong,
.tutorial-step-card small {
  min-width: 0;
  overflow: hidden;
}

.tutorial-step-card strong {
  align-self: center;
  color: #fff7d7;
  font-size: 13px;
  font-weight: 950;
  line-height: 1.15;
}

.tutorial-step-card small {
  grid-column: 1 / -1;
  color: #b9c3aa;
  font-size: 11px;
  font-weight: 760;
  line-height: 1.35;
}

.workflow-company-template-shell {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: max-content max-content minmax(0, 1fr);
  gap: 8px;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(32, 43, 34, 0.98), rgba(12, 18, 14, 0.98)),
    var(--panel);
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-company-template-shell {
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: max-content max-content minmax(0, 1fr) !important;
  align-self: stretch;
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 1px solid rgba(245, 196, 83, 0.2);
  border-radius: 8px;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-company-template-shell > * {
  grid-column: 1 / -1 !important;
  min-width: 0;
}

.workflow-company-template-toolbar,
.workflow-company-template-strip,
.workflow-company-template-board {
  grid-column: 1 / -1;
}

.workflow-company-template-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  padding: 0 12px;
}

.workflow-company-template-strip span {
  display: grid;
  gap: 2px;
  min-width: 0;
  border: 1px solid rgba(247, 244, 232, 0.1);
  border-radius: 6px;
  background: rgba(7, 10, 8, 0.36);
  padding: 6px 8px;
}

.workflow-company-template-strip strong,
.workflow-company-template-strip small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workflow-company-template-strip strong {
  color: #fff3bf;
  font-size: 13px;
  font-weight: 950;
}

.workflow-company-template-strip small {
  color: #aeb9a4;
  font-size: 8.5px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.workflow-company-template-board {
  display: grid;
  grid-template-columns: minmax(520px, 1fr) minmax(270px, 320px);
  grid-template-rows: minmax(0, 1fr);
  align-content: stretch;
  align-items: stretch;
  gap: 12px;
  width: 100%;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
  border-top: 1px solid rgba(245, 196, 83, 0.14);
  padding: 12px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    rgba(20, 30, 22, 0.72);
  background-size: 28px 28px;
}

.workflow-company-diagram-pane {
  display: grid;
  grid-column: 1;
  grid-template-rows: max-content max-content minmax(0, 1fr);
  gap: 10px;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(93, 214, 188, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(6, 14, 17, 0.68), rgba(5, 9, 8, 0.7));
  padding: 10px;
}

.workflow-company-diagram-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.workflow-company-diagram-header div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.workflow-company-diagram-header strong,
.workflow-company-diagram-header small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workflow-company-diagram-header strong {
  color: #fff7d7;
  font-size: 15px;
  font-weight: 950;
}

.workflow-company-diagram-header small {
  color: #aeb9a4;
  font-size: 10px;
  font-weight: 820;
}

.workflow-company-stage-lane {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
  min-height: 0;
}

.workflow-company-stage-card {
  position: relative;
  display: grid;
  flex: 1 1 220px;
  grid-template-rows: max-content max-content minmax(40px, 1fr) max-content;
  gap: 8px;
  min-width: 0;
  min-height: 148px;
  border: 1px solid rgba(93, 214, 188, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(35, 54, 45, 0.94), rgba(14, 22, 17, 0.94));
  color: #f7f4e8;
  padding: 12px;
  text-align: left;
}

.workflow-company-stage-card:hover,
.workflow-company-stage-card:focus-visible {
  border-color: rgba(93, 214, 188, 0.7);
  outline: none;
}

.workflow-company-stage-card.selected {
  border-color: rgba(245, 196, 83, 0.62);
  background:
    linear-gradient(180deg, rgba(78, 64, 31, 0.94), rgba(26, 28, 18, 0.96));
  box-shadow: inset 0 0 0 1px rgba(245, 196, 83, 0.12);
}

.workflow-company-stage-number {
  display: grid;
  width: 34px;
  height: 28px;
  place-items: center;
  border: 1px solid rgba(245, 196, 83, 0.38);
  border-radius: 7px;
  background: rgba(245, 196, 83, 0.13);
  color: #ffe6a5;
  font-size: 11px;
  font-weight: 950;
}

.workflow-company-stage-copy,
.workflow-company-stage-meta {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.workflow-company-stage-copy strong {
  color: #fff7d7;
  font-size: 15px;
  font-weight: 950;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.workflow-company-stage-copy small,
.workflow-company-stage-summary,
.workflow-company-stage-meta b {
  min-width: 0;
  overflow-wrap: anywhere;
}

.workflow-company-stage-copy small {
  color: #7fe1d0;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.2;
}

.workflow-company-stage-summary {
  color: #d2dac7;
  font-size: 11px;
  font-weight: 720;
  line-height: 1.35;
}

.workflow-company-stage-meta {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.workflow-company-stage-meta b {
  border: 1px solid rgba(247, 244, 232, 0.1);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.16);
  color: #bfc9b5;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0;
  padding: 5px 6px;
  text-align: center;
  text-transform: uppercase;
}

.workflow-company-stage-arrow {
  position: relative;
  flex: 0 0 34px;
  align-self: center;
  height: 2px;
  border-radius: 999px;
  background: rgba(245, 196, 83, 0.5);
}

.workflow-company-stage-arrow::after {
  position: absolute;
  top: 50%;
  right: -1px;
  width: 8px;
  height: 8px;
  border-top: 2px solid rgba(245, 196, 83, 0.72);
  border-right: 2px solid rgba(245, 196, 83, 0.72);
  content: "";
  transform: translateY(-50%) rotate(45deg);
}

.workflow-company-internal-graph {
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  gap: 0;
  min-width: 0;
  min-height: 0;
  border: 1px solid rgba(93, 214, 188, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(10, 22, 24, 0.72), rgba(7, 12, 10, 0.76));
  padding: 8px;
}

.workflow-company-internal-graph header {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.workflow-company-internal-graph header div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.workflow-company-internal-graph header strong,
.workflow-company-internal-graph header small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workflow-company-internal-graph header strong {
  color: #fff7d7;
  font-size: 14px;
  font-weight: 950;
}

.workflow-company-internal-graph header small {
  color: #aeb9a4;
  font-size: 10px;
  font-weight: 820;
}

.workflow-company-graph-canvas {
  position: relative;
  min-height: clamp(280px, 42vh, 560px);
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(247, 244, 232, 0.09);
  border-radius: 8px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    rgba(4, 10, 12, 0.8);
  background-size: 20px 20px;
}

.workflow-company-graph-edge-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.workflow-company-graph-edge-layer marker path {
  fill: rgba(245, 196, 83, 0.78);
}

.workflow-company-graph-edge {
  fill: none;
  stroke: rgba(245, 196, 83, 0.62);
  stroke-width: 1.15;
  marker-end: url("#workflowCompanyTemplateArrow");
  vector-effect: non-scaling-stroke;
}

.workflow-company-graph-node {
  position: absolute;
  left: var(--graph-x, 50%);
  top: var(--graph-y, 50%);
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 4px 8px;
  width: min(190px, 28%);
  min-width: 142px;
  border: 1px solid rgba(93, 214, 188, 0.38);
  border-radius: 8px;
  background: rgba(13, 31, 29, 0.94);
  color: #f7f4e8;
  padding: 10px;
  text-align: left;
  transform: translate(-50%, -50%);
}

.workflow-company-graph-node:hover,
.workflow-company-graph-node:focus-visible {
  border-color: rgba(93, 214, 188, 0.78);
  outline: none;
}

.workflow-company-graph-node.selected {
  border-color: rgba(245, 196, 83, 0.68);
  background: rgba(51, 43, 22, 0.96);
}

.workflow-company-graph-node b {
  grid-row: 1 / span 2;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid rgba(245, 196, 83, 0.35);
  border-radius: 7px;
  background: rgba(245, 196, 83, 0.11);
  color: #ffe6a5;
  font-size: 10px;
  font-weight: 950;
}

.workflow-company-graph-node strong,
.workflow-company-graph-node small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workflow-company-graph-node strong {
  color: #fff7d7;
  font-size: 12px;
  font-weight: 920;
}

.workflow-company-graph-node small {
  color: #7fe1d0;
  font-size: 9px;
  font-weight: 860;
}

.workflow-company-side-panel {
  display: grid;
  grid-column: 2;
  grid-row: 1;
  align-content: start;
  gap: 12px;
  min-width: 0;
  min-height: 0;
  overflow: auto;
  border: 1px solid rgba(247, 244, 232, 0.1);
  border-radius: 8px;
  background: rgba(9, 14, 11, 0.66);
  padding: 14px;
}

.workflow-company-kicker {
  display: inline-grid;
  width: max-content;
  border: 1px solid rgba(93, 214, 188, 0.32);
  border-radius: 5px;
  color: #9ff0df;
  font-size: 9px;
  font-weight: 950;
  letter-spacing: 0;
  padding: 4px 6px;
  text-transform: uppercase;
}

.workflow-company-side-panel h3 {
  margin: 10px 0 5px;
  color: #fff7d7;
  font-size: 17px;
  line-height: 1.12;
}

.workflow-company-side-panel p {
  margin: 0;
  color: #c4cdbb;
  font-size: 12px;
  font-weight: 720;
  line-height: 1.35;
}

.workflow-company-selected-meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
}

.workflow-company-selected-meta span {
  display: grid;
  gap: 2px;
  min-width: 0;
  border: 1px solid rgba(247, 244, 232, 0.1);
  border-radius: 7px;
  background: rgba(247, 244, 232, 0.045);
  padding: 8px 9px;
}

.workflow-company-selected-meta strong,
.workflow-company-selected-meta small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workflow-company-selected-meta strong {
  color: #fff7d7;
  font-size: 12px;
  font-weight: 900;
}

.workflow-company-selected-meta small {
  color: #aeb9a4;
  font-size: 9px;
  font-weight: 820;
  text-transform: uppercase;
}

.workflow-company-selected-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.workflow-company-selected-skills span {
  max-width: 100%;
  overflow: hidden;
  border: 1px solid rgba(93, 214, 188, 0.18);
  border-radius: 999px;
  background: rgba(93, 214, 188, 0.07);
  color: #a8f4de;
  font-size: 9.5px;
  font-weight: 820;
  padding: 5px 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workflow-company-crew-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.workflow-company-crew-list li {
  display: grid;
  gap: 3px;
  min-width: 0;
  border: 1px solid rgba(93, 214, 188, 0.16);
  border-radius: 7px;
  background: rgba(93, 214, 188, 0.055);
  padding: 10px;
}

.workflow-company-crew-list strong,
.workflow-company-crew-list small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workflow-company-crew-list strong {
  color: #f7f4e8;
  font-size: 12px;
  font-weight: 900;
}

.workflow-company-crew-list small {
  color: #aeb9a4;
  font-size: 10px;
  font-weight: 760;
}

@media (max-width: 1180px) {
  .workflow-company-template-board {
    grid-template-columns: minmax(0, 1fr);
    overflow: auto;
  }

  .workflow-company-diagram-pane,
  .workflow-company-stage-lane,
  .workflow-company-internal-graph,
  .workflow-company-side-panel {
    grid-column: 1;
    grid-row: auto;
  }

}

@media (max-width: 860px) {
  .tutorial-mission-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .new-company-start-chooser {
    align-items: stretch;
    padding: 14px;
  }

  .workflow-company-template-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .workflow-company-stage-lane {
    flex-direction: column;
  }

  .workflow-company-stage-arrow {
    width: 2px;
    height: 28px;
    margin-left: 18px;
  }

  .workflow-company-stage-arrow::after {
    top: auto;
    right: 50%;
    bottom: -1px;
    transform: translateX(50%) rotate(135deg);
  }

  .new-company-start-header,
  .new-company-path-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .main-area {
    grid-template-rows: minmax(0, 1fr);
  }

  .tutorial-mission-board {
    grid-template-columns: minmax(0, 1fr);
  }

  .new-company-start-panel {
    max-height: calc(100vh - 28px);
  }

  .workflow-company-template-strip {
    grid-template-columns: minmax(0, 1fr);
  }

.new-company-start-header,
.new-company-path-grid,
.new-company-path {
    padding: 12px;
  }
}

/* Stage internals readout. Keep this after the older CodeBoarding graph layers:
   the expanded stage is a playable board detail, not a clipped debug card. */
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-node.workflow-canvas-node[data-workflow-expanded-stage]:has(.workflow-graph-in-place-expansion.root-level),
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-stage-wrapper-node[data-workflow-expanded-stage]:has(.workflow-graph-in-place-expansion.root-level) {
  width: max(var(--workflow-expanded-node-width, 760px), 760px);
  min-width: max(var(--workflow-expanded-node-width, 760px), 760px);
  max-width: max(var(--workflow-expanded-node-width, 760px), 760px);
  height: max(var(--workflow-expanded-node-height, 420px), 420px);
  min-height: max(var(--workflow-expanded-node-height, 420px), 420px);
  max-height: max(var(--workflow-expanded-node-height, 420px), 420px);
  overflow: hidden;
  border-color: rgba(245, 196, 83, 0.58);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(247, 244, 232, 0.07), rgba(247, 244, 232, 0.022)),
    #101913;
  box-shadow:
    0 24px 58px rgba(0, 0, 0, 0.38),
    inset 0 0 0 1px rgba(247, 244, 232, 0.035);
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-in-place-expansion.root-level {
  grid-template-rows: 46px minmax(0, 1fr);
  background:
    linear-gradient(rgba(247, 244, 232, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(247, 244, 232, 0.02) 1px, transparent 1px),
    rgba(11, 18, 13, 0.96);
  background-size: 28px 28px, 28px 28px, auto;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-in-place-expansion.root-level .workflow-graph-expansion-toolbar {
  grid-template-columns: minmax(0, 1fr) max-content max-content repeat(var(--workflow-toolbar-control-count, 1), 24px);
  min-height: 46px;
  border-bottom: 1px solid rgba(245, 196, 83, 0.22);
  background:
    linear-gradient(90deg, rgba(93, 214, 188, 0.08), transparent 42%),
    rgba(7, 10, 8, 0.32);
  padding: 0 12px;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-in-place-expansion.root-level .workflow-graph-expansion-toolbar strong {
  color: #fff7d7;
  font-size: 13px;
  font-weight: 900;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-in-place-expansion.root-level .workflow-graph-expansion-toolbar > span:not(.workflow-graph-title-icon) {
  position: static;
  display: inline-grid;
  width: auto;
  height: 24px;
  max-width: 180px;
  place-items: center;
  overflow: hidden;
  clip: auto;
  border: 1px solid rgba(93, 214, 188, 0.26);
  border-radius: 6px;
  background: rgba(93, 214, 188, 0.09);
  color: #a8f4de;
  font-size: 9px;
  font-weight: 950;
  line-height: 1;
  padding: 0 8px;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-in-place-expansion.root-level .workflow-graph-edit-toggle,
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-in-place-expansion.root-level .workflow-graph-profile-control,
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-in-place-expansion.root-level .workflow-graph-collapse-control {
  min-width: 44px;
  width: 44px;
  height: 44px;
  min-height: 44px;
  border-color: rgba(247, 244, 232, 0.18);
  border-radius: 6px;
  background: rgba(247, 244, 232, 0.065);
  color: #fff3c4;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-in-place-expansion.root-level .workflow-graph-edit-toggle,
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-in-place-expansion.root-level .workflow-graph-profile-control {
  width: auto;
  min-width: 52px;
  padding: 0 10px;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-in-place-expansion.root-level .workflow-graph-expanded-diagram {
  margin: 10px;
  width: calc(100% - 20px);
  height: calc(100% - 20px);
  overflow: hidden;
  border: 1px solid rgba(247, 244, 232, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(rgba(245, 196, 83, 0.038) 1px, transparent 1px),
    linear-gradient(90deg, rgba(93, 214, 188, 0.034) 1px, transparent 1px),
    rgba(8, 14, 10, 0.92);
  background-size: 24px 24px, 24px 24px, auto;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-in-place-expansion.root-level .workflow-graph-expanded-diagram .workflow-graph-expanded-block.workflow-graph-breakdown-block,
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-in-place-expansion.root-level .workflow-graph-expanded-diagram .workflow-graph-expanded-block.workflow-graph-breakdown-block.handoffs {
  width: 168px;
  min-width: 168px;
  max-width: 168px;
  min-height: 58px;
  border-color: rgba(245, 196, 83, 0.42);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(245, 196, 83, 0.14), rgba(247, 244, 232, 0.04)),
    #172019;
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.24);
  padding: 0 30px 0 14px;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-in-place-expansion.root-level .workflow-graph-expanded-diagram .workflow-graph-expanded-block.workflow-graph-breakdown-block::after {
  right: 10px;
  border-color: rgba(93, 214, 188, 0.58);
  background: rgba(93, 214, 188, 0.1);
  color: #a8f4de;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-in-place-expansion.root-level .workflow-graph-expanded-diagram .workflow-graph-expanded-block.workflow-graph-breakdown-block strong {
  color: #fff7d7;
  font-size: 11.5px;
  font-weight: 860;
  line-height: 1.2;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-in-place-expansion.root-level .workflow-graph-expansion-edge,
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-in-place-expansion.root-level .workflow-graph-expansion-edge.resource,
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-in-place-expansion.root-level .workflow-graph-expansion-edge.runtime,
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-in-place-expansion.root-level .workflow-graph-expansion-edge.handoff,
body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-in-place-expansion.root-level .workflow-graph-expansion-edge.leaf {
  stroke: rgba(245, 196, 83, 0.62);
  stroke-width: 1;
}

body[data-active-tab="workflow"]:has(.workflow-panel.workflow-graph-active) .workflow-graph-in-place-expansion.root-level .workflow-graph-expansion-edge-layer marker path {
  fill: rgba(245, 196, 83, 0.9);
}

/* Fallback contract for already-rendered graph states. These selectors avoid
   depending on the body/tab state so every root stage expansion keeps the same
   venture-board treatment after reloads, cache swaps, or embedded previews. */
.workflow-graph-in-place-expansion.root-level {
  grid-template-rows: 46px minmax(0, 1fr) !important;
  border: 1px solid rgba(245, 196, 83, 0.5) !important;
  border-radius: 8px !important;
  background:
    linear-gradient(rgba(247, 244, 232, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(247, 244, 232, 0.02) 1px, transparent 1px),
    rgba(11, 18, 13, 0.96) !important;
  background-size: 28px 28px, 28px 28px, auto !important;
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.34) !important;
}

.workflow-graph-in-place-expansion.root-level .workflow-graph-expansion-toolbar {
  min-height: 46px !important;
  border-bottom-color: rgba(245, 196, 83, 0.22) !important;
  background:
    linear-gradient(90deg, rgba(93, 214, 188, 0.08), transparent 42%),
    rgba(7, 10, 8, 0.32) !important;
}

.workflow-graph-in-place-expansion.root-level .workflow-graph-expansion-toolbar strong {
  color: #fff7d7 !important;
}

.workflow-graph-in-place-expansion.root-level .workflow-graph-expanded-diagram {
  border-color: rgba(247, 244, 232, 0.1) !important;
  background:
    linear-gradient(rgba(245, 196, 83, 0.038) 1px, transparent 1px),
    linear-gradient(90deg, rgba(93, 214, 188, 0.034) 1px, transparent 1px),
    rgba(8, 14, 10, 0.92) !important;
  background-size: 24px 24px, 24px 24px, auto !important;
}

.workflow-graph-in-place-expansion.root-level .workflow-graph-expanded-diagram .workflow-graph-expanded-block.workflow-graph-breakdown-block {
  border-color: rgba(245, 196, 83, 0.42) !important;
  background:
    linear-gradient(180deg, rgba(245, 196, 83, 0.14), rgba(247, 244, 232, 0.04)),
    #172019 !important;
}

.workflow-graph-in-place-expansion.root-level .workflow-graph-expanded-diagram .workflow-graph-expanded-block.workflow-graph-breakdown-block strong {
  color: #fff7d7 !important;
}

/* Slack-style sidebar simplification. Keep the Flow data model and actions,
   but remove default sidebar noise so channel navigation reads like a work list. */
:root {
  --rail: #3b0b3d;
  --sidebar: #552553;
  --sidebar-deep: #431642;
  --sidebar-hover: rgba(255, 255, 255, 0.105);
  --sidebar-muted: rgba(255, 255, 255, 0.68);
  --sidebar-soft: rgba(255, 255, 255, 0.84);
  --sidebar-active: #f3e8f7;
  --sidebar-active-text: #35113f;
  --sidebar-divider: rgba(255, 255, 255, 0.15);
}

.app-shell {
  background: var(--canvas);
}

.app-rail {
  border-right-color: rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, #451047 0%, #2e092f 100%);
  padding: 8px 6px;
}

.workspace-switcher {
  gap: 6px;
}

.workspace-button {
  width: 38px;
  height: 38px;
  border-color: transparent;
  border-radius: 9px;
  background: transparent;
  box-shadow: none;
  color: rgba(255, 255, 255, 0.78);
  font-size: 10px;
}

.workspace-button:hover,
.workspace-button:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  outline: none;
}

.workspace-button.active {
  border-color: transparent;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 3px 0 0 rgba(255, 255, 255, 0.95);
  color: #fff;
}

.workspace-button.add-workspace {
  margin-top: 8px;
  border-style: solid;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: none;
  color: rgba(255, 255, 255, 0.88);
}

.activity-rail {
  margin-top: 14px;
  padding-top: 12px;
  border-top-color: rgba(255, 255, 255, 0.13);
}

.activity-rail-button {
  width: 44px;
  min-height: 50px;
  border-color: transparent;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.78);
}

.activity-rail-button:hover,
.activity-rail-button:focus-visible,
.activity-rail-button.active {
  border-color: transparent;
  background: rgba(255, 255, 255, 0.13);
  color: #fff;
}

.activity-rail-icon {
  background: transparent;
  color: inherit;
}

.activity-rail-badge {
  top: 0;
  right: 0;
  border-color: #3b0b3d;
  background: #36c5f0;
  color: #071018;
}

.topbar-actions .activity-topbar {
  margin: 0;
  padding: 0;
  border: 0;
}

.topbar-actions .activity-topbar .activity-rail-button {
  width: 30px;
  min-height: 30px;
  height: 30px;
  border: 1px solid rgba(247, 244, 232, 0.16);
  border-radius: 8px;
  background: rgba(247, 244, 232, 0.08);
  color: #fff2c0;
}

.topbar-actions .activity-topbar .activity-rail-button:hover,
.topbar-actions .activity-topbar .activity-rail-button:focus-visible,
.topbar-actions .activity-topbar .activity-rail-button.active {
  border-color: rgba(93, 214, 188, 0.48);
  background: rgba(93, 214, 188, 0.13);
  color: #c8fff0;
}

.topbar-actions .activity-topbar .activity-rail-icon {
  width: 16px;
  height: 16px;
  background: transparent;
  font-size: 13px;
}

.topbar-actions .activity-topbar .activity-rail-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.topbar-actions .activity-topbar .activity-rail-badge {
  top: -7px;
  right: -7px;
  border-color: #11170f;
}

.workspace-sidebar {
  grid-template-rows: auto minmax(0, 1fr) auto;
  border-right-color: rgba(255, 255, 255, 0.16);
  background: linear-gradient(180deg, var(--sidebar) 0%, var(--sidebar-deep) 100%);
}

.workspace-header {
  min-height: 50px;
  border-bottom-color: var(--sidebar-divider);
  background: transparent;
  padding: 0 9px 0 13px;
}

.workspace-title-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: auto;
  max-width: 190px;
  min-height: 32px;
  padding: 0 6px;
}

.company-selector {
  display: inline-flex;
  align-items: center;
}

.company-selector strong {
  color: #fff;
  font-size: 15px;
  font-weight: 850;
  line-height: 1.1;
}

.company-selector span {
  display: none;
}

.compose-button {
  min-width: 34px;
  height: 28px;
  border-color: transparent;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: none;
  color: #fff;
  font-size: 11px;
  font-weight: 850;
  padding: 0 8px;
}

.workspace-source-bridge,
.workspace-boundary-notice {
  display: none !important;
}

.sidebar-scroll {
  grid-row: 2;
  padding: 8px 7px 12px;
}

.primary-nav {
  gap: 2px;
  margin-bottom: 13px;
}

.primary-nav button {
  min-height: 31px;
  border-radius: 6px;
  color: var(--sidebar-soft);
  font-size: 13px;
  font-weight: 680;
  padding: 0 9px;
}

.primary-nav button:hover,
.primary-nav button:focus-visible {
  background: var(--sidebar-hover);
  color: #fff;
}

.primary-nav button.active {
  background: var(--sidebar-active);
  color: var(--sidebar-active-text);
}

.sidebar-quick-nav {
  gap: 1px;
  margin: 0 0 14px;
}

.sidebar-quick-nav button {
  grid-template-columns: 21px minmax(0, 1fr);
  gap: 8px;
  min-height: 29px;
  border-radius: 6px;
  color: var(--sidebar-soft);
  font-size: 13px;
  font-weight: 640;
  padding: 0 8px;
}

.sidebar-quick-nav button::before {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 760;
}

.sidebar-quick-nav button[data-chat-sidebar-jump="threads"]::before {
  content: "@";
}

.sidebar-quick-nav button[data-chat-sidebar-jump="drafts"]::before {
  content: ">";
}

.sidebar-quick-nav button[data-chat-sidebar-jump="files"]::before {
  content: "[]";
  font-size: 9px;
}

.sidebar-quick-nav button:hover,
.sidebar-quick-nav button:focus-visible {
  background: var(--sidebar-hover);
  color: #fff;
}

.sidebar-quick-nav small {
  display: none;
}

.sidebar-group {
  margin-top: 14px;
}

.sidebar-heading {
  height: 24px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 11px;
  font-weight: 760;
  padding: 0 8px;
}

.sidebar-heading button {
  color: rgba(255, 255, 255, 0.66);
}

.sidebar-heading button:hover {
  background: var(--sidebar-hover);
}

.sidebar-heading-title > span {
  text-transform: none;
}

.sidebar-list {
  gap: 0;
}

.sidebar-item {
  min-height: 29px;
  border-radius: 6px;
  color: var(--sidebar-soft);
  font-size: 13px;
  font-weight: 610;
  padding: 0 8px;
}

.sidebar-item:hover,
.sidebar-item:focus-visible {
  background: var(--sidebar-hover);
  color: #fff;
  outline: none;
}

.session-item {
  min-height: 29px;
  padding-top: 0;
  padding-bottom: 0;
}

.session-row {
  gap: 0;
}

.session-title {
  color: inherit;
  font-weight: 610;
}

.workspace-sidebar .session-health,
.workspace-sidebar .session-summary {
  display: none;
}

.sidebar-item.active {
  background: var(--sidebar-active);
  color: var(--sidebar-active-text);
}

.sidebar-item.active .session-title {
  color: var(--sidebar-active-text);
  font-weight: 760;
}

.workspace-sidebar .chat-room-row.active .session-item.active {
  border: 1px solid rgba(151, 226, 255, 0.3);
  background: #2c2158;
  box-shadow: inset 3px 0 0 #36c5f0;
  color: #ffffff;
}

.workspace-sidebar .chat-room-row.active .session-item.active .session-title {
  color: #ffffff;
  font-weight: 820;
}

.workspace-sidebar .chat-room-row.active .session-item.active:hover,
.workspace-sidebar .chat-room-row.active .session-item.active:focus-visible {
  border-color: rgba(151, 226, 255, 0.5);
  background: #35266a;
  color: #ffffff;
}

.sidebar-item.locked {
  color: rgba(255, 255, 255, 0.54);
}

.draft-pill {
  height: 16px;
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 8px;
}

.sidebar-empty {
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  padding: 6px 9px;
}

.workspace-profile-dock {
  grid-row: 3;
  border-top-color: var(--sidebar-divider);
  background: rgba(0, 0, 0, 0.08);
  padding: 7px;
}

.workspace-profile-button {
  min-height: 32px;
  border-radius: 6px;
}

.workspace-profile-icon:hover,
.workspace-profile-icon:focus-visible {
  background: var(--sidebar-hover);
}

.workspace-profile-avatar {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: #36c5f0;
  color: #061016;
}

.workspace-profile-copy strong {
  color: #fff;
  font-size: 12px;
}

.workspace-profile-copy small {
  color: rgba(255, 255, 255, 0.58);
}

.workspace-profile-icon {
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
}
