/* A3 Control Room — multi-view shell
   Tokens come from the design-system root. */
@import url("colors_and_type.css");

html, body, #app { height: 100%; background: var(--color-background-primary); }
body { overflow: hidden; }

/* =========================================================
   SHELL — top bar + 3 cols
   ========================================================= */
.shell {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr) 240px;
  grid-template-rows: 48px minmax(0, 1fr);
  height: 100vh;
  height: 100dvh;
  min-height: 100vh;
  width: 100vw;
  overflow: hidden;
  background: var(--color-background-primary);
  transition: grid-template-columns 200ms ease;
}
.shell[data-left="open"][data-right="open"] { grid-template-columns: 200px minmax(0, 1fr) 240px; }
.shell[data-left="collapsed"][data-right="open"] { grid-template-columns: 48px minmax(0, 1fr) 240px; }
.shell[data-left="open"][data-right="collapsed"] { grid-template-columns: 200px minmax(0, 1fr) 48px; }
.shell[data-left="collapsed"][data-right="collapsed"] { grid-template-columns: 48px minmax(0, 1fr) 48px; }
.shell[data-left="hidden"] { grid-template-columns: minmax(0, 1fr); }
.shell[data-left="hidden"] .main { grid-column: 1 / -1; }

/* =========================================================
   HEADER (top app bar)
   ========================================================= */
.topbar {
  grid-column: 1 / -1;
  grid-row: 1;
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  height: 48px;
  padding: 0 12px;
  background: #F0F2F8;
  border-bottom: 1px solid var(--a3-border-soft);
  box-shadow: none;
  gap: 12px;
}
.topbar__left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.topbar__brand {
  width: 28px;
  height: 28px;
  border: none;
  background: #050607;
  color: #FFFFFF;
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  box-shadow: none;
}
.topbar__brand-mark {
  width: 17px;
  height: 17px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  position: relative;
  display: inline-block;
}
.topbar__brand-mark::before,
.topbar__brand-mark::after,
.topbar__brand-mark > span {
  content: '';
  position: absolute;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  border-left-color: transparent;
  border-bottom-color: transparent;
}
.topbar__brand-mark::before { inset: 3px; }
.topbar__brand-mark::after { inset: 6px; }
.topbar__brand-mark > span { inset: 8px; }
.topbar__divider {
  width: 1px;
  height: 22px;
  background: var(--color-border-tertiary);
}
.topbar__client-name {
  min-width: 0;
  border: none;
  background: transparent;
  color: var(--color-text-primary);
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 4px;
  border-radius: var(--a3-radius-input);
  cursor: pointer;
  font-family: inherit;
  font-size: var(--a3-fs-data);
  font-weight: var(--a3-fw-medium);
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 280px;
}
.topbar__client-name:hover {
  background: var(--color-background-secondary);
}

.topbar__right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
}
.topbar__user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 0.5px solid var(--color-border-tertiary);
  background: #0F1523;
  color: #FFFFFF;
  font-family: var(--a3-font-sans);
  font-size: var(--a3-fs-meta);
  font-weight: var(--a3-fw-medium);
  cursor: pointer;
  box-shadow: none;
}

.icon-btn {
  width: 32px; height: 32px;
  border: 0.5px solid transparent;
  background: transparent;
  border-radius: var(--a3-radius-input);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: background var(--a3-duration-fast) var(--a3-ease), color var(--a3-duration-fast) var(--a3-ease);
}
.icon-btn:hover { background: var(--color-background-secondary); color: var(--color-text-primary); }
.icon-btn--active { background: var(--color-background-info); color: var(--color-text-info); }

/* =========================================================
   PANEL SUB-HEADERS (44px row inside each column panel)
   ========================================================= */
.panel-subheader {
  height: 44px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  background: var(--color-background-primary);
  font-size: var(--a3-fs-data);
  font-weight: var(--a3-fw-regular);
  color: var(--color-text-secondary);
  flex-shrink: 0;
  border-bottom: 0.5px solid var(--color-border-tertiary);
}
.lsidebar > .panel-subheader,
.main > .panel-subheader {
  border-right: 0.5px solid var(--color-border-tertiary);
}

/* =========================================================
   LEFT SIDEBAR (Bereiche)
   ========================================================= */
.lsidebar {
  grid-column: 1;
  grid-row: 2;
  width: 100%;
  background: var(--color-background-secondary);
  border-right: 0.5px solid var(--color-border-tertiary);
  border-top: none;
  border-bottom: none;
  border-left: none;
  border-radius: 0;
  padding: var(--a3-space-3) 0;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  min-height: 0;
  height: calc(100vh - 48px);
  height: calc(100dvh - 48px);
  transition: width 200ms ease;
}
.lsidebar__section {
  font-size: var(--a3-fs-label);
  font-weight: var(--a3-fw-semibold);
  color: var(--a3-text-secondary);
  text-transform: uppercase;
  letter-spacing: var(--a3-track-label);
  padding: 0 var(--a3-space-4) var(--a3-space-2);
}
.lsidebar__group { padding-bottom: 12px; }
.lsidebar__group + .lsidebar__group {
  border-top: 1px solid var(--a3-border);
  padding-top: 12px;
  margin-top: 4px;
}
.lsidebar__divider {
  height: 1px;
  background: var(--a3-border);
  margin: 4px 12px 0;
  flex-shrink: 0;
}
.lsidebar__section-label {
  font-size: var(--a3-fs-label);
  font-weight: var(--a3-fw-semibold);
  color: var(--a3-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 10px 12px 4px;
  flex-shrink: 0;
}
.lsidebar__group--bereiche {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
}
.lnav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 36px;
  margin: 0;
  padding: 0 12px;
  cursor: pointer;
  position: relative;
  font-size: var(--a3-fs-data);
  color: var(--a3-text-primary);
  border-radius: 0;
  transition: background 150ms ease;
}
.lnav-item:hover { background: rgba(49, 85, 255, 0.06); }
.lnav-item--selected {
  background: var(--color-background-tertiary);
  font-weight: var(--a3-fw-medium);
}
.lnav-item--selected::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--a3-cobalt);
  display: block;
}
.lnav-item__icon {
  width: 16px; height: 16px;
  flex-shrink: 0;
  color: var(--a3-text-secondary);
}
.lnav-item--selected .lnav-item__icon { color: var(--a3-cobalt); }
.lnav-item__label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lnav-item__count {
  font-family: var(--a3-font-mono);
  font-size: var(--a3-fs-label);
  color: var(--a3-text-secondary);
  font-variant-numeric: tabular-nums;
}
.lnav-item__dot {
  width: 6px; height: 6px; border-radius: 50%;
}

/* Sidebar toggle button */
.lsidebar__toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin: 0;
  flex-shrink: 0;
  border: 0.5px solid var(--color-border-tertiary);
  border-radius: var(--a3-radius-input);
  background: var(--color-background-primary);
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: color var(--a3-duration-fast) var(--a3-ease);
}
.lsidebar__toggle:hover { color: var(--color-text-primary); }

/* Collapsed sidebar — icon rail */
.lsidebar--collapsed {
  width: 48px;
  padding: var(--a3-space-2) 0;
  align-items: center;
}
.lsidebar--collapsed .lsidebar__toggle {
  margin: 0 0 var(--a3-space-2);
}
.lsidebar--collapsed .lsidebar__section,
.lsidebar--collapsed .lsidebar__footer,
.lsidebar--collapsed .lsidebar__divider,
.lsidebar--collapsed .lsidebar__section-label {
  display: none;
}
.lsidebar--collapsed .lsidebar__group {
  padding-bottom: 8px;
}
.lsidebar--collapsed .lnav-item {
  justify-content: center;
  padding: 0;
  gap: 0;
  height: 40px;
}
.lsidebar--collapsed .lnav-item__label,
.lsidebar--collapsed .lnav-item__dot,
.lsidebar--collapsed .lnav-item__count {
  display: none;
}
.lsidebar--collapsed .lnav-item__icon {
  width: 20px;
  height: 20px;
}
.lsidebar--collapsed .lnav-item--selected::before {
  display: block;
}
.lsidebar--collapsed .lnav-bereich,
.lsidebar--collapsed .lsidebar__sheets,
.lsidebar--collapsed nav[aria-label="Prüfbereiche"] {
  display: none;
}
.lnav-item--icon-only {
  justify-content: center;
  padding: 0;
  gap: 0;
}
.lnav-item--icon-only .lnav-item__icon {
  width: 20px;
  height: 20px;
}

/* Bereich mini-card (expanded sidebar) */
.lnav-bereich {
  display: grid;
  grid-template-columns: 7px 28px 1fr auto auto;
  grid-template-rows: auto;
  align-items: center;
  gap: 0 8px;
  height: 40px;
  margin: 0;
  padding: 0 12px;
  cursor: pointer;
  font-size: var(--a3-fs-data);
  color: var(--a3-text-primary);
  border-radius: 0;
  transition: background 150ms ease;
  position: relative;
}
.lnav-bereich:hover { background: var(--color-background-tertiary); }
.lnav-bereich--selected {
  background: var(--color-background-tertiary);
  font-weight: var(--a3-fw-medium);
  border-left: 2px solid var(--a3-cobalt);
}
.lnav-bereich__dot {
  width: 7px; height: 7px; border-radius: 50%;
}
.lnav-bereich__code {
  font-family: var(--a3-font-mono);
  font-size: var(--a3-fs-label);
  color: var(--a3-text-secondary);
  letter-spacing: 0.04em;
  width: 28px;
}
.lnav-bereich__name {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: var(--a3-fs-data);
}
.lnav-bereich__count {
  font-family: var(--a3-font-mono);
  font-size: var(--a3-fs-label);
  color: var(--a3-text-secondary);
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.lnav-bereich__date {
  font-family: var(--a3-font-mono);
  font-size: 10px;
  color: var(--a3-text-secondary);
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.lnav-bereich__date.is-slipping {
  color: var(--a3-status-blocked);
  font-weight: var(--a3-fw-medium);
}

/* Sidebar sheet sub-items */
.lsidebar__sheets {
  padding: 2px 0 4px 28px;
}
.lnav-sheet {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  cursor: pointer;
  font-size: var(--a3-fs-meta);
  color: var(--a3-text-secondary);
  border-radius: 3px;
  transition: background var(--a3-duration-fast) var(--a3-ease), color var(--a3-duration-fast) var(--a3-ease);
}
.lnav-sheet:hover { background: rgba(26, 79, 204, 0.04); color: var(--a3-text-primary); }
.lnav-sheet--selected {
  background: var(--a3-cobalt-tint);
  color: var(--a3-text-primary);
  font-weight: var(--a3-fw-medium);
}
.lnav-sheet__dot { width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0; }
.lnav-sheet__code {
  font-family: var(--a3-font-mono);
  font-size: var(--a3-fs-label);
  color: var(--a3-text-secondary);
  letter-spacing: 0.04em;
}
.lnav-sheet__name {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* Inspector minibar for Aktiv tab */
.inspector__minibar {
  height: 2px;
  background: var(--a3-border-soft);
  border-radius: 1px;
  overflow: hidden;
  margin-top: 6px;
}
.inspector__minibar > span {
  display: block; height: 100%;
  background: var(--a3-cobalt);
}
.inspector__minibar--lg {
  height: 6px;
  border-radius: 3px;
}

.lsidebar__footer {
  margin-top: auto;
  flex-shrink: 0;
  padding: 10px 14px;
  border-top: 1px solid var(--a3-border-soft);
  font-size: var(--a3-fs-label);
  color: var(--a3-text-secondary);
  font-family: var(--a3-font-mono);
  display: flex;
  align-items: center;
  gap: 6px;
}
.lsidebar--collapsed .lsidebar__footer {
  padding: 10px 8px;
  justify-content: center;
  border-top: none;
}

/* =========================================================
   MAIN — content surface
   ========================================================= */
.main {
  grid-column: 2;
  grid-row: 2;
  background: var(--color-background-secondary);
  border-left: 0.5px solid var(--color-border-tertiary);
  border-right: 0.5px solid var(--color-border-tertiary);
  border-radius: 0;
  min-height: 0;
  min-width: 0;
  height: calc(100vh - 48px);
  height: calc(100dvh - 48px);
  overflow-y: auto;
  position: relative;
}
.main__inner {
  max-width: none;
  padding: 24px 32px 64px;
}

/* Status strip across the top of every overview view */
.statstrip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: var(--a3-surface);
  border-bottom: 1px solid var(--a3-border);
}
.statstrip__cell {
  padding: 12px 20px 14px;
  border-right: 1px solid var(--a3-border);
}
.statstrip__cell:last-child { border-right: none; }
.statstrip__cell.is-alert { background: var(--a3-status-blocked-bg); }
.statstrip__label {
  font-size: var(--a3-fs-label);
  font-weight: var(--a3-fw-medium);
  text-transform: uppercase;
  letter-spacing: var(--a3-track-label);
  color: var(--a3-text-secondary);
}
.statstrip__value {
  font-family: var(--a3-font-mono);
  font-size: var(--a3-fs-title);
  font-weight: var(--a3-fw-medium);
  color: var(--a3-text-primary);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  margin-top: 4px;
}
.statstrip__value.is-blocked { color: var(--a3-status-blocked); }
.statstrip__value.is-pending { color: var(--a3-status-paused); }
.statstrip__value.is-running { color: var(--a3-cobalt); }

/* =========================================================
   TYPE — view-level
   ========================================================= */
.eyebrow {
  font-size: var(--a3-fs-label);
  font-weight: var(--a3-fw-medium);
  text-transform: uppercase;
  letter-spacing: var(--a3-track-label);
  color: var(--a3-text-secondary);
  margin: 0;
}
.h1 {
  font-size: 28px;
  font-weight: var(--a3-fw-semibold);
  color: var(--a3-text-primary);
  letter-spacing: -0.01em;
  margin: 4px 0 0;
  line-height: 1.2;
}
.h2 {
  font-size: var(--a3-fs-title);
  font-weight: var(--a3-fw-semibold);
  color: var(--a3-text-primary);
  margin: 0;
}
.h3 {
  font-size: var(--a3-fs-body);
  font-weight: var(--a3-fw-semibold);
  color: var(--a3-text-primary);
  margin: 0;
}
.body { font-size: var(--a3-fs-data); color: var(--a3-text-primary); }
.meta { font-size: var(--a3-fs-meta); color: var(--a3-text-secondary); }

.section {
  margin-top: 32px;
}
.section__head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 12px;
}
.section__eyebrow {
  font-size: var(--a3-fs-label);
  font-weight: var(--a3-fw-medium);
  text-transform: uppercase;
  letter-spacing: var(--a3-track-label);
  color: var(--a3-text-secondary);
}
.section__title {
  font-size: var(--a3-fs-title);
  font-weight: var(--a3-fw-semibold);
  color: var(--a3-text-primary);
}
.section__action {
  margin-left: auto;
  font-size: var(--a3-fs-meta);
  color: var(--a3-cobalt);
  cursor: pointer;
}

/* =========================================================
   PROGRESS CARDS (project / Bereich cards)
   ========================================================= */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.pcard {
  background: var(--a3-surface);
  border: var(--a3-border-width) solid var(--a3-border);
  border-radius: var(--a3-radius-card);
  padding: var(--a3-space-4);
  cursor: pointer;
  transition: border-color var(--a3-duration-fast) var(--a3-ease), transform var(--a3-duration-fast) var(--a3-ease);
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}
.pcard:hover { border-color: var(--a3-text-secondary); transform: translateY(-1px); }
.pcard.is-selected {
  outline: 2px solid var(--a3-cobalt);
  outline-offset: -2px;
  border-color: var(--a3-cobalt);
}
.pcard.is-blocked {
  border-left: var(--a3-border-accent-width) solid var(--a3-status-blocked);
  background: var(--a3-status-blocked-bg);
}
.pcard.is-running {
  border-left: var(--a3-border-accent-width) solid var(--a3-cobalt);
}

.pcard__head {
  display: flex; align-items: center; gap: 8px;
  font-size: var(--a3-fs-label); color: var(--a3-text-secondary);
  font-family: var(--a3-font-mono);
  letter-spacing: 0.04em;
}
.pcard__code {
  text-transform: uppercase;
}
.pcard__head .dot {
  width: 6px; height: 6px; border-radius: 50%;
}
.pcard__name {
  font-size: var(--a3-fs-section);
  font-weight: var(--a3-fw-semibold);
  color: var(--a3-text-primary);
  letter-spacing: -0.005em;
}
.pcard__sub {
  font-size: var(--a3-fs-meta);
  color: var(--a3-text-secondary);
}
.pcard__progress {
  margin-top: 4px;
  display: flex; align-items: center; gap: 10px;
}
.pcard__bar {
  flex: 1;
  height: 4px;
  background: var(--a3-border-soft);
  border-radius: var(--a3-radius-tag);
  overflow: hidden;
}
.pcard__bar > span {
  display: block; height: 100%;
  background: var(--a3-cobalt);
}
.pcard.is-blocked .pcard__bar > span { background: var(--a3-status-blocked); }
.pcard.is-done .pcard__bar > span    { background: var(--a3-status-done); }
.pcard.is-pending .pcard__bar > span { background: var(--a3-text-disabled); }
.pcard__pct {
  font-family: var(--a3-font-mono);
  font-size: var(--a3-fs-label);
  color: var(--a3-text-secondary);
  font-variant-numeric: tabular-nums;
  min-width: 30px;
  text-align: right;
}
.pcard__step {
  font-family: var(--a3-font-mono);
  font-size: var(--a3-fs-label);
  color: var(--a3-text-secondary);
}

/* =========================================================
   MANDANT canvas — graph of Bereiche
   ========================================================= */
.mn-inner {
  max-width: none;
  padding: 24px 32px 32px;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 48px);
  min-height: calc(100dvh - 48px);
}
/* Double class beats the later plain .mn-inner min-height override. Fill the
   main panel exactly; on very short viewports grow past it so .main scrolls
   instead of clipping the timeline + legend. */
.mn-inner.mn-inner--dag-first {
  padding: 0;
  gap: 0;
  height: auto;
  min-height: 100%;
}
.mn-head {
  display: flex; align-items: flex-end;
  gap: 24px;
  margin-bottom: 12px;
  flex-shrink: 0;
}
.mn-toolbar {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  flex-shrink: 0;
}
.mn-inner--dag-first .mn-toolbar {
  margin-bottom: 0;
  padding: 0;
  border-bottom: 1px solid var(--a3-border);
  gap: 0;
}
.mn-inner--dag-first .statstrip {
  border-bottom: none;
  flex: 1 1 0;
  min-width: 0;
}
.mn-toolbar__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  flex-shrink: 0;
}
.mn-meta-strip {
  font-size: var(--a3-fs-data);
  color: var(--color-text-secondary);
}
.mn-status-pill {
  display: inline-block;
  font-size: var(--a3-fs-label);
  text-transform: uppercase;
  background: var(--tile-blue-bg);
  color: var(--tile-blue-fg);
  padding: 2px 8px;
  border-radius: var(--a3-radius-tag);
  font-weight: var(--a3-fw-medium);
  vertical-align: 1px;
}
.mn-progress-bar {
  margin-top: 8px;
  max-width: 320px;
  height: 6px;
  background: var(--color-background-secondary);
  border-radius: 3px;
  overflow: hidden;
}
.mn-progress-bar > span {
  display: block;
  height: 100%;
  background: var(--a3-cobalt);
  border-radius: 3px;
}
.mn-head__viewtoggle {
  display: inline-flex;
  background: var(--a3-canvas);
  border: 1px solid var(--a3-border);
  border-radius: var(--a3-radius-input);
  padding: 2px;
  height: fit-content;
}
.mn-head__viewtoggle button {
  padding: 6px 12px; background: transparent; border: none; border-radius: 3px;
  font-size: var(--a3-fs-meta); color: var(--a3-text-secondary); cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  transition: color var(--a3-duration-fast) var(--a3-ease), background var(--a3-duration-fast) var(--a3-ease);
}
.mn-head__viewtoggle button.active {
  background: var(--a3-surface); color: var(--a3-text-primary);
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}

.mn-canvas-wrap {
  background: var(--a3-surface);
  border: var(--a3-border-width) solid var(--a3-border);
  border-radius: var(--a3-radius-card);
  overflow: hidden;
  width: 100%;
  flex: 1 1 0;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.mn-canvas {
  position: relative;
  background-color: var(--a3-surface);
  background-image: radial-gradient(circle, var(--a3-dot-grid) 1px, transparent 1px);
  background-size: 24px 24px;
  overflow: hidden;
  flex: 1 1 0;
  min-height: 420px;
}
.mn-canvas--pannable {
  cursor: grab;
  touch-action: none;
  user-select: none;
}
.mn-canvas--pannable:active { cursor: grabbing; }
.mn-canvas__inner {
  position: relative;
  will-change: transform;
}
.mn-edges { position: absolute; inset: 0; pointer-events: none; }

.mn-node {
  position: absolute;
  background: var(--a3-surface);
  border: var(--a3-border-width) solid var(--a3-border);
  border-radius: var(--a3-radius-card);
  padding: var(--a3-space-3) var(--a3-space-4);
  box-shadow: var(--a3-shadow-card);
  cursor: pointer;
  display: flex; flex-direction: column; gap: var(--a3-space-2);
  transition: transform var(--a3-duration-fast) var(--a3-ease), box-shadow var(--a3-duration-fast) var(--a3-ease), border-color var(--a3-duration-fast) var(--a3-ease);
}
.mn-node:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  border-color: var(--a3-text-secondary);
}
.mn-node.is-running { border-color: var(--a3-cobalt); }
.mn-node.is-blocked { border-color: var(--a3-status-blocked); background: var(--a3-status-blocked-bg); }
.mn-node.is-done    { border-color: var(--a3-status-done); }
.mn-node.is-pending { border-style: dashed; }
.mn-node.is-dim     { opacity: 0.7; }
.mn-node.is-selected {
  border-color: var(--a3-cobalt);
  box-shadow: 0 0 0 2px rgba(49, 85, 255, 0.18), 0 4px 10px rgba(0,0,0,0.08);
  transform: translateY(-1px);
}
.mn-node.is-pulse { animation: node-pulse 600ms ease-out; }
@keyframes node-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(49, 85, 255, 0.4); }
  50%  { box-shadow: 0 0 0 8px rgba(49, 85, 255, 0.15); }
  100% { box-shadow: 0 0 0 2px rgba(49, 85, 255, 0.18), 0 4px 10px rgba(0,0,0,0.08); }
}

.mn-node__head {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--a3-font-mono);
  font-size: var(--a3-fs-label);
  color: var(--a3-text-secondary);
  letter-spacing: 0.04em;
}
.mn-node__name {
  font-size: var(--a3-fs-body); font-weight: var(--a3-fw-semibold);
  color: var(--a3-text-primary);
  letter-spacing: -0.005em;
  line-height: 1.25;
}
.mn-node__sub {
  font-size: var(--a3-fs-meta);
  color: var(--a3-text-secondary);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mn-node__bar {
  display: flex; align-items: center; gap: 8px;
  margin-top: 2px;
}
.mn-node__bar-track {
  flex: 1; height: 3px;
  background: var(--a3-border-soft);
  border-radius: var(--a3-radius-tag); overflow: hidden;
}
.mn-node__bar-track > span {
  display: block; height: 100%;
  background: var(--a3-cobalt);
}
.mn-node.is-done    .mn-node__bar-track > span { background: var(--a3-status-done); }
.mn-node.is-blocked .mn-node__bar-track > span { background: var(--a3-status-blocked); }
.mn-node.is-pending .mn-node__bar-track > span { background: var(--a3-text-disabled); }
.mn-node__bar-meta {
  font-family: var(--a3-font-mono);
  font-size: var(--a3-fs-label);
  color: var(--a3-text-secondary);
  font-variant-numeric: tabular-nums;
}

/* Node date row */
.mn-node__dates {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--a3-font-mono);
  font-size: var(--a3-fs-label);
  color: var(--a3-text-secondary);
  font-variant-numeric: tabular-nums;
  margin-top: -2px;
}
.mn-node__date-target::before { content: 'Ziel '; font-size: 10px; opacity: 0.65; }
.mn-node__date-projected::before { content: 'Prog. '; font-size: 10px; opacity: 0.65; }
.mn-node.is-slipping .mn-node__date-projected { color: var(--a3-status-blocked); font-weight: var(--a3-fw-medium); }

/* Node slippage tint */
.mn-node.is-slipping {
  border-color: var(--a3-status-blocked);
  background: #FEF2F2;
}

.mn-canvas__legend {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 16px;
  border-top: 1px solid var(--a3-border);
  background: var(--a3-canvas);
  font-size: var(--a3-fs-label);
  color: var(--a3-text-secondary);
  position: sticky;
  bottom: 0;
  z-index: 2;
}
.mn-canvas__legend .lg { display: inline-flex; align-items: center; gap: 5px; }
.mn-canvas__legend .lg .dt { width: 6px; height: 6px; border-radius: 50%; }

.mn-canvas__inner {
  transform-origin: 0 0;
}
.mn-canvas__zoom {
  margin-left: auto;
  font-family: var(--a3-font-mono);
  font-size: var(--a3-fs-label);
  color: var(--a3-text-secondary);
  font-variant-numeric: tabular-nums;
}
.mn-canvas__reset {
  margin-left: auto;
  padding: 4px 10px;
  background: transparent;
  border: 1px solid var(--a3-border);
  border-radius: 3px;
  font-family: var(--a3-font-mono);
  font-size: var(--a3-fs-label);
  color: var(--a3-text-secondary);
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: background var(--a3-duration-fast) var(--a3-ease), color var(--a3-duration-fast) var(--a3-ease);
}
.mn-canvas__reset:hover {
  background: var(--a3-surface);
  color: var(--a3-text-primary);
}
.mn-inner--dag-first .mn-canvas-wrap {
  border: none;
  border-radius: 0;
}

/* Timeline bar */
.timeline-bar {
  border-top: 1px solid var(--a3-border);
  min-height: 48px;
  padding: 8px 16px;
  background: var(--a3-canvas);
  position: relative;
}
.timeline-bar--empty {
  display: flex; align-items: center; justify-content: center;
}
.timeline-bar__empty-msg {
  font-size: var(--a3-fs-meta);
  color: var(--a3-text-secondary);
  font-style: italic;
}
.timeline-bar__track {
  position: relative;
  height: 32px;
}
.timeline-bar__segment {
  position: absolute;
  inset: 0;
  cursor: pointer;
}
.timeline-bar__segment:hover .timeline-bar__mark { opacity: 0.8; }
.timeline-bar__mark {
  position: absolute;
  top: 0;
  width: 2px;
  height: 24px;
  transform: translateX(-1px);
}
.timeline-bar__mark--target {
  background: var(--a3-cobalt);
}
.timeline-bar__mark--projected {
  background: repeating-linear-gradient(
    to bottom,
    var(--a3-cobalt) 0px,
    var(--a3-cobalt) 3px,
    transparent 3px,
    transparent 6px
  );
}
.timeline-bar__mark--projected.is-slipping {
  background: repeating-linear-gradient(
    to bottom,
    var(--a3-status-blocked) 0px,
    var(--a3-status-blocked) 3px,
    transparent 3px,
    transparent 6px
  );
}
.timeline-bar__span {
  position: absolute;
  top: 10px;
  height: 4px;
  background: rgba(49, 85, 255, 0.15);
  border-radius: var(--a3-radius-tag);
}
.timeline-bar__span.is-slipping {
  background: rgba(239, 68, 68, 0.15);
}
.timeline-bar__label {
  position: absolute;
  top: 26px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--a3-font-mono);
  font-size: 10px;
  color: var(--a3-text-secondary);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* Bereiche list view */
.mn-list {
  background: var(--a3-surface);
  border: var(--a3-border-width) solid var(--a3-border);
  border-radius: var(--a3-radius-card);
  overflow: hidden;
  flex: 1 1 0;
  min-height: 0;
}
.mn-list__header {
  display: grid;
  grid-template-columns: 10px 48px 1fr 1fr 120px 48px auto;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: var(--a3-canvas);
  border-bottom: 1px solid var(--a3-border);
  font-size: var(--a3-fs-label);
  font-weight: var(--a3-fw-medium);
  text-transform: uppercase;
  letter-spacing: var(--a3-track-label);
  color: var(--a3-text-secondary);
}
.mn-list__row {
  display: grid;
  grid-template-columns: 10px 48px 1fr 1fr 120px 48px auto;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--a3-border-soft);
  cursor: pointer;
  font-size: var(--a3-fs-data);
  transition: background var(--a3-duration-fast) var(--a3-ease);
}
.mn-list__row:last-child { border-bottom: none; }
.mn-list__row:hover { background: rgba(26, 79, 204, 0.025); }
.mn-list__dot { width: 6px; height: 6px; border-radius: 50%; }
.mn-list__code {
  font-family: var(--a3-font-mono);
  font-size: var(--a3-fs-label);
  color: var(--a3-text-secondary);
  letter-spacing: 0.04em;
}
.mn-list__name {
  font-weight: var(--a3-fw-medium);
  color: var(--a3-text-primary);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mn-list__task {
  font-size: var(--a3-fs-meta);
  color: var(--a3-text-secondary);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mn-list__bar {
  height: 3px;
  background: var(--a3-border-soft);
  border-radius: var(--a3-radius-tag);
  overflow: hidden;
}
.mn-list__bar > span {
  display: block; height: 100%;
  background: var(--a3-cobalt);
}
.mn-list__pct {
  font-family: var(--a3-font-mono);
  font-size: var(--a3-fs-label);
  color: var(--a3-text-secondary);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

/* mn-bottom removed — content moved to Inspector "Aktiv" tab */

/* =========================================================
   QUICKACCESS (sidebar-like list of links)
   ========================================================= */
.qa {
  background: var(--a3-surface);
  border: var(--a3-border-width) solid var(--a3-border);
  border-radius: var(--a3-radius-card);
}
.qa__row {
  display: flex; align-items: center;
  padding: 10px 16px;
  font-size: var(--a3-fs-data);
  border-bottom: 1px solid var(--a3-border-soft);
  cursor: pointer;
}
.qa__row:last-child { border-bottom: none; }
.qa__row { transition: background var(--a3-duration-fast) var(--a3-ease); }
.qa__row:hover { background: var(--a3-canvas); }
.qa__row .label { flex: 1; }
.qa__row .value {
  font-family: var(--a3-font-mono);
  font-variant-numeric: tabular-nums;
  font-size: var(--a3-fs-meta);
  font-weight: var(--a3-fw-semibold);
  color: var(--a3-text-primary);
}
.qa__row .value.is-cobalt { color: var(--a3-cobalt); }
.qa__row .value.is-warn { color: var(--a3-status-paused); }

/* =========================================================
   "Was gerade läuft" running table
   ========================================================= */
.rtable {
  width: 100%;
  border-collapse: collapse;
  background: var(--a3-surface);
  border: var(--a3-border-width) solid var(--a3-border);
  border-radius: var(--a3-radius-card);
  overflow: hidden;
  font-size: var(--a3-fs-data);
}
.rtable thead th {
  font-size: var(--a3-fs-label);
  font-weight: var(--a3-fw-medium);
  text-transform: uppercase;
  letter-spacing: var(--a3-track-label);
  color: var(--a3-text-secondary);
  text-align: left;
  padding: 10px 16px;
  border-bottom: 1px solid var(--a3-border);
  background: var(--a3-canvas);
}
.rtable tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--a3-border-soft);
  vertical-align: middle;
}
.rtable tbody tr:last-child td { border-bottom: none; }
.rtable tbody tr { cursor: pointer; }
.rtable tbody tr:hover td { background: rgba(26, 79, 204, 0.025); }
.rtable .mono {
  font-family: var(--a3-font-mono);
  font-variant-numeric: tabular-nums;
}
.rtable .right { text-align: right; }
.rtable .sheet-code {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 3px;
  background: var(--a3-canvas);
  font-family: var(--a3-font-mono);
  font-size: var(--a3-fs-label);
  color: var(--a3-text-primary);
  margin-right: 8px;
  border: 1px solid var(--a3-border);
}

/* mini progress (running table) */
.minibar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.minibar__bar {
  width: 80px;
  height: 3px;
  background: var(--a3-border-soft);
  border-radius: var(--a3-radius-tag);
  overflow: hidden;
}
.minibar__bar > span {
  display: block;
  height: 100%;
  background: var(--a3-cobalt);
}
.minibar__txt {
  font-family: var(--a3-font-mono);
  font-size: var(--a3-fs-label);
  color: var(--a3-text-secondary);
  font-variant-numeric: tabular-nums;
}

/* =========================================================
   AKTIVITÄT (log feed)
   ========================================================= */
.activity {
  background: var(--a3-surface);
  border: var(--a3-border-width) solid var(--a3-border);
  border-radius: var(--a3-radius-card);
}
.activity__row {
  display: grid;
  grid-template-columns: 64px 140px 1fr;
  gap: 16px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--a3-border-soft);
  align-items: center;
  font-size: var(--a3-fs-data);
}
.activity__row:last-child { border-bottom: none; }
.activity__ts {
  font-family: var(--a3-font-mono);
  font-size: var(--a3-fs-meta);
  color: var(--a3-text-secondary);
}
.activity__src {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--a3-font-mono);
  font-size: var(--a3-fs-meta);
  color: var(--a3-text-primary);
}
.activity__src .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--a3-cobalt);
}
.activity__msg {
  color: var(--a3-text-primary);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.activity__msg em {
  font-style: normal;
  color: var(--a3-text-secondary);
}
.activity__msg .badge--inline {
  display: inline-block;
  padding: 1px 5px;
  margin-left: 6px;
  background: var(--a3-status-blocked-bg);
  color: var(--a3-status-blocked);
  font-size: var(--a3-fs-label);
  font-weight: var(--a3-fw-semibold);
  border-radius: var(--a3-radius-tag);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: 1px;
}
.activity__msg .badge--immat {
  background: var(--a3-status-pending-bg);
  color: var(--a3-text-secondary);
}

/* =========================================================
   STATUS BADGE
   ========================================================= */
.badge {
  display: inline-flex; align-items: center;
  padding: 3px 7px;
  border-radius: var(--a3-radius-tag);
  font-size: var(--a3-fs-label); font-weight: var(--a3-fw-semibold);
  letter-spacing: 0.06em; text-transform: uppercase;
  white-space: nowrap;
}
.badge--running   { background: var(--a3-status-running-bg); color: var(--a3-status-running); }
.badge--done      { background: var(--a3-status-done-bg);    color: var(--a3-status-done); }
.badge--blocked   { background: var(--a3-status-blocked-bg); color: var(--a3-status-blocked); }
.badge--pending   { background: var(--a3-status-pending-bg); color: var(--a3-status-pending); }
.badge--paused    { background: var(--a3-status-paused-bg);  color: var(--a3-status-paused); }
.badge--cobalt    { background: var(--a3-cobalt-tint); color: var(--a3-cobalt); }
.badge--lg { font-size: var(--a3-fs-label); padding: 5px 8px; }

/* dot */
.dot--running { background: var(--a3-status-running); }
.dot--done    { background: #22C55E; }
.dot--blocked { background: #EF4444; }
.dot--pending { background: transparent; border: 1px solid var(--a3-text-secondary); }
.dot--paused  { background: var(--a3-status-paused); }
.dot--skipped { background: transparent; border: 1px dashed var(--a3-text-muted, #9aa3b2); }

/* "skipped" status badge — muted grey, distinct from pending */
.badge--skipped {
  background: rgba(110, 118, 135, 0.12);
  color: var(--a3-text-muted, #6e7687);
}
/* Skipped area nodes/rows read as de-emphasised */
.mn-node[data-status="skipped"], .mn-list__row[data-status="skipped"] { opacity: 0.6; }

/* ---------------------------------------------------------------------------
   GateStack — HITL approval cards stacked inside the audit-unit view.
   Cards themselves reuse the demo .feed-card / .feed-card--approval styling.
   --------------------------------------------------------------------------- */
.gate-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
  max-width: 640px;
}
.gate-stack__header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--a3-text-secondary, #5A6577);
  background: none;
  border: none;
  padding: 2px 0;
  cursor: pointer;
  text-align: left;
  width: 100%;
}
.gate-stack__header:hover { color: var(--a3-text-primary, #1B2433); }
.gate-stack__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--a3-status-blocked, #c82020);
  color: #fff;
  font-size: 11px;
}

/* HITL gate cards reuse the demo BlockerCard look (.demo-blocker); these are
   the stacked-context tweaks + action variants. */
.gate-blocker { margin: 0; }
.gate-blocker__more {
  display: inline; margin-left: 4px; padding: 0; border: none; background: none;
  color: var(--a3-cobalt, #2563eb); font-size: 12px; cursor: pointer; text-decoration: underline;
}
.gate-blocker__actions { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.demo-blocker__action:disabled { opacity: 0.6; cursor: progress; }

/* Live-run progress panel shown in the audit-unit view (no mock sheets yet) */
.vb-liverun { display: flex; flex-direction: column; gap: 16px; margin-top: 8px; }
.vb-liverun__bar { display: flex; align-items: center; gap: 10px; }
.vb-liverun__track {
  flex: 1;
  height: 8px;
  border-radius: 4px;
  background: var(--a3-chrome-panel-2, #eef0f5);
  overflow: hidden;
}
.vb-liverun__track > span {
  display: block;
  height: 100%;
  border-radius: 4px;
  background: var(--a3-status-running, #2563eb);
  transition: width 320ms ease;
}
.vb-liverun__pct {
  font-size: 12px;
  font-weight: 600;
  color: var(--a3-text-primary, #1B2433);
  min-width: 34px;
  text-align: right;
}
.vb-liverun__kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.vb-liverun__kpi {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px;
  border: 1px solid var(--a3-chrome-border, #e3e6ee);
  border-radius: 8px;
  background: var(--a3-chrome-panel, #fff);
}
.vb-liverun__kpi-value { font-size: 20px; font-weight: 600; color: var(--a3-text-primary, #1B2433); }
.vb-liverun__kpi-label { font-size: 11px; color: var(--a3-text-secondary, #5A6577); }

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  font-family: var(--a3-font-sans);
  font-size: var(--a3-fs-data); font-weight: var(--a3-fw-medium); line-height: 1;
  padding: var(--a3-space-2) var(--a3-space-4); border-radius: var(--a3-radius-input); cursor: pointer;
  transition: background var(--a3-duration-fast) var(--a3-ease), border-color var(--a3-duration-fast) var(--a3-ease), color var(--a3-duration-fast) var(--a3-ease);
  border: 1px solid var(--a3-border);
  background: var(--a3-surface);
  color: var(--a3-text-secondary);
  display: inline-flex; align-items: center; gap: 6px;
}
.btn--primary { background: var(--a3-cobalt); color: var(--a3-surface); border-color: var(--a3-cobalt); }
.btn--primary:hover { background: var(--a3-cobalt-hover); border-color: var(--a3-cobalt-hover); }
.btn--ghost:hover { color: var(--a3-text-primary); border-color: var(--a3-text-secondary); }
.btn--danger:hover { color: var(--a3-status-blocked); border-color: var(--a3-status-blocked); }
.btn--sm { padding: 5px 10px; font-size: var(--a3-fs-meta); }

/* =========================================================
   BEREICH (project) view
   ========================================================= */
/* =========================================================
   BEREICH — full project dashboard
   ========================================================= */
.vb-header {
  background: var(--a3-surface);
  border-bottom: 1px solid var(--a3-border);
  padding: 16px 24px;
}
.vb-header__top {
  display: flex; align-items: center; gap: 12px;
}
.vb-header__code {
  font-family: var(--a3-font-mono);
  font-size: var(--a3-fs-meta);
  color: var(--a3-text-secondary);
  letter-spacing: 0.04em;
  background: var(--a3-canvas);
  border: 1px solid var(--a3-border);
  padding: 3px 7px;
  border-radius: 3px;
}
.vb-header__title {
  font-size: 22px; font-weight: var(--a3-fw-semibold);
  color: var(--a3-text-primary);
  margin: 0;
  letter-spacing: -0.005em;
}
.vb-header__pct {
  font-family: var(--a3-font-mono);
  font-size: var(--a3-fs-body);
  color: var(--a3-text-secondary);
  font-variant-numeric: tabular-nums;
}

.vb-body {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 0;
  min-height: 0;
  height: 100%;
}
.vb-left {
  padding: 24px 32px 64px;
  overflow-y: auto;
}
.vb-right {
  border-left: 1px solid var(--a3-border);
  background: var(--a3-surface);
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

/* Worksheet list rows */
.vb-wslist { display: flex; flex-direction: column; gap: 0; }
.vb-wsrow {
  display: grid;
  grid-template-columns: 6px 44px 1fr 80px 48px auto;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--a3-border-soft);
  cursor: pointer;
  font-size: var(--a3-fs-data);
  transition: background var(--a3-duration-fast) var(--a3-ease);
}
.vb-wsrow:hover { background: var(--a3-canvas); }
.vb-wsrow--selected {
  background: var(--a3-cobalt-tint);
}
.vb-wsrow__dot { width: 6px; height: 6px; border-radius: 50%; }
.vb-wsrow__code {
  font-family: var(--a3-font-mono);
  font-size: var(--a3-fs-label);
  color: var(--a3-text-secondary);
  letter-spacing: 0.04em;
}
.vb-wsrow__name {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.vb-wsrow__agent {
  font-family: var(--a3-font-mono);
  font-size: var(--a3-fs-label);
  color: var(--a3-text-secondary);
}
.vb-wsrow__pct {
  font-family: var(--a3-font-mono);
  font-size: var(--a3-fs-label);
  color: var(--a3-text-secondary);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

/* DAG toggle */
.vb-dag-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  padding: 6px 12px;
  background: var(--a3-canvas);
  border: 1px solid var(--a3-border);
  border-radius: var(--a3-radius-input);
  font-size: var(--a3-fs-meta);
  color: var(--a3-text-secondary);
  cursor: pointer;
  transition: color var(--a3-duration-fast) var(--a3-ease);
}
.vb-dag-toggle:hover { color: var(--a3-text-primary); }

/* Agent panel (right column) */
.vb-agent {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--a3-border);
}
.vb-agent__head {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--a3-border);
}
.vb-agent__avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--a3-cobalt-tint);
  color: var(--a3-cobalt);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: var(--a3-fs-label); font-weight: var(--a3-fw-semibold); letter-spacing: 0.05em;
  flex-shrink: 0;
}
.vb-agent__title {
  font-size: var(--a3-fs-data); font-weight: var(--a3-fw-semibold); color: var(--a3-text-primary);
}
.vb-agent__sub {
  font-size: var(--a3-fs-meta); color: var(--a3-text-secondary);
  font-family: var(--a3-font-mono);
}
.vb-agent__live {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: var(--a3-fs-label); color: var(--a3-text-secondary);
  text-transform: uppercase; letter-spacing: var(--a3-track-label);
}
.vb-agent__stream {
  flex: 1;
  min-height: 0;
  padding: 8px 0;
  overflow-y: auto;
}
.vb-agent__composer {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  border-top: 1px solid var(--a3-border-soft);
}
.vb-agent__input {
  flex: 1;
  padding: 8px 10px;
  border: 1px solid var(--a3-border);
  border-radius: var(--a3-radius-input);
  font-size: var(--a3-fs-data);
  font-family: inherit;
  outline: none;
  background: var(--a3-canvas);
}
.vb-agent__input:focus { border-color: var(--a3-cobalt); }

/* Active agents summary */
.vb-active-agents {
  padding: 16px 18px;
}
.vb-active-agents__label {
  font-size: var(--a3-fs-label);
  text-transform: uppercase;
  letter-spacing: var(--a3-track-label);
  color: var(--a3-text-secondary);
  font-weight: var(--a3-fw-medium);
  margin-bottom: 8px;
}
.vb-active-agents__row {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 0;
  font-size: var(--a3-fs-meta);
  color: var(--a3-text-primary);
}
.vb-active-agents__code {
  font-family: var(--a3-font-mono);
  font-size: var(--a3-fs-label);
  color: var(--a3-text-secondary);
}
.vb-active-agents__pct {
  margin-left: auto;
  font-family: var(--a3-font-mono);
  font-size: var(--a3-fs-label);
  color: var(--a3-text-secondary);
  font-variant-numeric: tabular-nums;
}

/* Legacy bereich-head kept minimal for compat */
.bereich-head__viewtoggle {
  margin-left: auto;
  display: inline-flex;
  background: var(--a3-canvas);
  border: 1px solid var(--a3-border);
  border-radius: var(--a3-radius-input);
  padding: 2px;
}
.bereich-head__viewtoggle button {
  padding: 5px 10px;
  background: transparent;
  border: none;
  border-radius: 3px;
  font-size: var(--a3-fs-meta);
  color: var(--a3-text-secondary);
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  transition: color var(--a3-duration-fast) var(--a3-ease), background var(--a3-duration-fast) var(--a3-ease);
}
.bereich-head__viewtoggle button.active {
  background: var(--a3-surface);
  color: var(--a3-text-primary);
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}

/* Worksheet tabs (Excel-workbook bottom tabs vibe, but at the top) */
.wbtabs {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin-top: 20px;
  border-bottom: 1px solid var(--a3-border);
  overflow-x: auto;
  margin-left: -40px; padding-left: 40px;
  margin-right: -40px; padding-right: 40px;
}
.wbtab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 10px;
  border: 1px solid transparent;
  border-bottom: none;
  border-radius: 4px 4px 0 0;
  font-size: var(--a3-fs-data);
  color: var(--a3-text-secondary);
  cursor: pointer;
  white-space: nowrap;
  margin-bottom: -1px;
  position: relative;
  transition: color var(--a3-duration-fast) var(--a3-ease);
}
.wbtab:hover { color: var(--a3-text-primary); }
.wbtab__code {
  font-family: var(--a3-font-mono);
  font-size: var(--a3-fs-label);
  font-weight: var(--a3-fw-semibold);
  color: var(--a3-text-primary);
  background: var(--a3-canvas);
  border: 1px solid var(--a3-border);
  border-radius: 3px;
  padding: 2px 6px;
}
.wbtab--active {
  background: var(--a3-surface);
  border-color: var(--a3-border);
  color: var(--a3-text-primary);
  font-weight: var(--a3-fw-semibold);
}
.wbtab--active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: var(--a3-cobalt);
}
.wbtab .count {
  font-family: var(--a3-font-mono);
  font-size: var(--a3-fs-label);
  color: var(--a3-text-secondary);
}
.wbtab__status {
  width: 6px; height: 6px; border-radius: 50%;
}

/* DAG view */
.dag {
  background: var(--a3-surface);
  border: var(--a3-border-width) solid var(--a3-border);
  border-radius: var(--a3-radius-card);
  position: relative;
  height: 460px;
  overflow: hidden;
  background-image: radial-gradient(circle, var(--a3-dot-grid) 1px, transparent 1px);
  background-size: 24px 24px;
}
.dag--pannable {
  cursor: grab;
  touch-action: none;
  user-select: none;
}
.dag--pannable:active { cursor: grabbing; }
.dag__inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-origin: 0 0;
  will-change: transform;
}
.dag__svg { position: absolute; inset: 0; pointer-events: none; }
.dag__node {
  position: absolute;
  width: 220px;
  background: var(--a3-surface);
  border: var(--a3-border-width) solid var(--a3-border);
  border-radius: var(--a3-radius-card);
  padding: var(--a3-space-3) var(--a3-space-4);
  cursor: pointer;
  box-shadow: var(--a3-shadow-card);
}
.dag__node:hover { border-color: var(--a3-text-secondary); }
.dag__node.is-running { border-left: var(--a3-border-accent-width) solid var(--a3-cobalt); padding-left: 12px; }
.dag__node.is-done    { border-left: var(--a3-border-accent-width) solid var(--a3-status-done); padding-left: 12px; opacity: 0.85; }
.dag__node.is-blocked { border-left: var(--a3-border-accent-width) solid var(--a3-status-blocked); padding-left: 12px; }
.dag__node.is-pending { border-style: dashed; opacity: 0.7; }
.dag__node.is-paused  { border-left: var(--a3-border-accent-width) solid #d97706; padding-left: 12px; }
.dag__node.is-skipped { border-left: var(--a3-border-accent-width) solid var(--a3-text-muted, #9aa3b2); padding-left: 12px; opacity: 0.55; }

/* Live status variants for board cards / focus / consoles / supervision +
   the FREIGABE activity tag (paused = amber, skipped = muted grey) */
.vb-board-card.is-paused, .vb-focus.is-paused, .vb-agent-console.is-paused, .ws-supervision.is-paused {
  border-left: 3px solid #d97706;
}
.vb-board-card.is-skipped, .vb-focus.is-skipped, .vb-agent-console.is-skipped, .ws-supervision.is-skipped {
  border-left: 3px solid var(--a3-text-muted, #9aa3b2); opacity: 0.6;
}
.inspector__activity-tag--freigabe { background: rgba(217, 119, 6, 0.14); color: #b45309; }
.dag__node-head {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--a3-font-mono);
  font-size: var(--a3-fs-label);
  color: var(--a3-text-secondary);
  margin-bottom: 4px;
}
.dag__node-name {
  font-size: var(--a3-fs-data);
  font-weight: var(--a3-fw-semibold);
  color: var(--a3-text-primary);
}
.dag__node-meta {
  font-family: var(--a3-font-mono);
  font-size: var(--a3-fs-label);
  color: var(--a3-text-secondary);
  margin-top: 4px;
}

/* =========================================================
   ARBEITSBLATT (worksheet) — Anthropic-quality agent view
   ========================================================= */
.ws {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding: 28px 40px 64px;
  max-width: 980px;
}

/* Hero — quiet status header */
.ws-hero {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.ws-hero__row1 {
  display: flex;
  align-items: center;
  gap: 12px;
}
.ws-hero__code {
  font-family: var(--a3-font-mono);
  font-size: var(--a3-fs-label);
  color: var(--a3-text-secondary);
  background: var(--a3-canvas);
  border: 1px solid var(--a3-border);
  padding: 3px 7px;
  border-radius: 3px;
}
.ws-hero__title {
  font-size: 24px;
  font-weight: var(--a3-fw-semibold);
  margin: 0;
  letter-spacing: -0.005em;
}
.ws-hero__row2 {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: var(--a3-fs-data);
  color: var(--a3-text-secondary);
}
.ws-hero__row2 strong { color: var(--a3-text-primary); font-weight: var(--a3-fw-medium); }
.ws-hero__row2 .sep { color: var(--a3-text-disabled); }

/* Agent stream — structured timeline, not a raw terminal */
.stream {
  border: var(--a3-border-width) solid var(--a3-border);
  border-radius: var(--a3-radius-card);
  background: var(--a3-surface);
  overflow: hidden;
}
.stream__head {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--a3-border);
  background: var(--a3-surface);
}
.stream__avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--a3-cobalt-tint);
  color: var(--a3-cobalt);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: var(--a3-fs-label); font-weight: var(--a3-fw-semibold); letter-spacing: 0.05em;
}
.stream__title {
  font-size: var(--a3-fs-data); font-weight: var(--a3-fw-semibold); color: var(--a3-text-primary);
}
.stream__sub {
  font-size: var(--a3-fs-meta); color: var(--a3-text-secondary);
  font-family: var(--a3-font-mono);
}
.stream__live {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: var(--a3-fs-label); color: var(--a3-text-secondary);
  text-transform: uppercase; letter-spacing: var(--a3-track-label);
}
.stream__live-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--a3-cobalt);
  display: inline-block;
  animation: live-pulse 2s ease-in-out infinite;
}
@keyframes live-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.stream__body {
  padding: 8px 0;
  max-height: 360px;
  overflow-y: auto;
}
.stream-step {
  display: grid;
  grid-template-columns: 28px 80px 1fr;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 18px;
  position: relative;
  font-size: var(--a3-fs-data);
}
.stream-step__bullet {
  width: 16px; height: 16px;
  display: inline-flex; align-items: center; justify-content: center;
  margin-top: 2px;
  margin-left: 6px;
}
.stream-step__bullet .dot {
  width: 8px; height: 8px; border-radius: 50%;
}
.stream-step__bullet--done .dot { background: var(--a3-status-done); }
.stream-step__bullet--running .dot { background: var(--a3-cobalt); box-shadow: 0 0 0 4px var(--a3-cobalt-tint); }
.stream-step__bullet--warn .dot { background: var(--a3-status-paused); }
.stream-step__ts {
  font-family: var(--a3-font-mono);
  font-size: var(--a3-fs-label);
  color: var(--a3-text-secondary);
  margin-top: 3px;
}
.stream-step__body {
  color: var(--a3-text-primary);
  line-height: 1.55;
}
.stream-step__body code {
  font-family: var(--a3-font-mono);
  font-size: var(--a3-fs-meta);
  background: var(--a3-canvas);
  padding: 1px 5px;
  border-radius: 3px;
  border: 1px solid var(--a3-border-soft);
  color: var(--a3-text-primary);
}
.stream-step__body em {
  font-style: normal;
  color: var(--a3-text-secondary);
}
.stream-step__detail {
  margin-top: 6px;
  background: var(--a3-canvas);
  border: 1px solid var(--a3-border-soft);
  border-radius: var(--a3-radius-input);
  padding: 8px 12px;
  font-family: var(--a3-font-mono);
  font-size: var(--a3-fs-label);
  color: var(--a3-text-secondary);
}
.stream-step__detail b { color: var(--a3-text-primary); font-weight: var(--a3-fw-medium); }

/* Chat composer — Anthropic-style, generous, calm */
.composer {
  border: var(--a3-border-width) solid var(--a3-border);
  border-radius: var(--a3-radius-card);
  background: var(--a3-surface);
  padding: 14px 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.composer__textarea {
  border: none;
  outline: none;
  font-family: var(--a3-font-sans);
  font-size: var(--a3-fs-body);
  resize: none;
  min-height: 56px;
  background: transparent;
  color: var(--a3-text-primary);
  padding: 0;
}
.composer__textarea::placeholder { color: var(--a3-text-disabled); }
.composer__bar {
  display: flex; align-items: center; gap: 8px;
  font-size: var(--a3-fs-meta); color: var(--a3-text-secondary);
}
.composer__chips { display: flex; gap: 6px; }
.composer__chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 8px;
  background: var(--a3-canvas);
  border: 1px solid var(--a3-border);
  border-radius: 3px;
  font-size: var(--a3-fs-label);
  color: var(--a3-text-secondary);
  cursor: pointer;
  transition: color var(--a3-duration-fast) var(--a3-ease), border-color var(--a3-duration-fast) var(--a3-ease);
}
.composer__chip:hover { color: var(--a3-text-primary); border-color: var(--a3-text-secondary); }
.composer__send {
  margin-left: auto;
  background: var(--a3-cobalt);
  color: var(--a3-surface);
  border: none;
  padding: var(--a3-space-2) var(--a3-space-4);
  border-radius: var(--a3-radius-input);
  font-size: var(--a3-fs-meta);
  font-weight: var(--a3-fw-medium);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
  transition: background var(--a3-duration-fast) var(--a3-ease);
}
.composer__send:hover { background: var(--a3-cobalt-hover); }

/* Findings (worksheet body) */
.ws-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.ws-card {
  background: var(--a3-surface);
  border: var(--a3-border-width) solid var(--a3-border);
  border-radius: var(--a3-radius-card);
  padding: 16px 18px;
}
.ws-card__head {
  display: flex; align-items: baseline; gap: 8px;
  margin-bottom: 12px;
}
.ws-card__title {
  font-size: var(--a3-fs-data); font-weight: var(--a3-fw-semibold);
  color: var(--a3-text-primary);
}
.ws-card__count {
  font-family: var(--a3-font-mono);
  font-size: var(--a3-fs-label);
  color: var(--a3-text-secondary);
  margin-left: auto;
}

/* Dependency list inside worksheet detail */
.ws-deps {
  display: flex; flex-direction: column; gap: var(--a3-space-2);
}
.ws-dep {
  display: flex; align-items: center; gap: var(--a3-space-2);
  padding: 6px 0;
  font-size: var(--a3-fs-data);
}
.ws-dep__code {
  font-family: var(--a3-font-mono);
  font-size: var(--a3-fs-label);
  color: var(--a3-text-secondary);
}
.ws-dep__follows {
  border-top: 1px solid var(--a3-border-soft);
  margin-top: var(--a3-space-2);
  padding-top: var(--a3-space-2);
}

.kv {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 6px 12px;
  font-size: var(--a3-fs-data);
}
.kv > .k {
  font-size: var(--a3-fs-label);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--a3-text-secondary);
  padding-top: 3px;
}
.kv > .v {
  color: var(--a3-text-primary);
}
.kv > .v.mono {
  font-family: var(--a3-font-mono);
  font-variant-numeric: tabular-nums;
}

/* =========================================================
   RIGHT PANEL — Studio + Library
   ========================================================= */
.inspector {
  grid-column: 3;
  grid-row: 2;
  width: 100%;
  background: var(--color-background-primary);
  border-left: 0.5px solid var(--color-border-tertiary);
  border-radius: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: calc(100vh - 48px);
  height: calc(100dvh - 48px);
  overflow: hidden;
  transition: width 200ms ease;
}
.inspector--collapsed {
  width: 48px;
  align-items: center;
  padding-top: var(--a3-space-2);
}
.inspector--collapsed .inspector__collapse-toggle {
  margin: 0 0 var(--a3-space-2);
}
.inspector__icon-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 6px 0;
}
.inspector__rail-item {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--a3-text-secondary);
  border-radius: var(--a3-radius-card);
  position: relative;
  transition: background 150ms ease, color 150ms ease;
}
.inspector__rail-item:hover {
  background: rgba(49, 85, 255, 0.06);
  color: var(--a3-text-primary);
}
.inspector__rail-item--active {
  color: var(--a3-cobalt);
  background: transparent;
}
.inspector__rail-item--active::after {
  content: '';
  position: absolute;
  right: 0;
  top: 8px;
  bottom: 8px;
  width: 2px;
  border-radius: 1px;
  background: var(--a3-cobalt);
}
.inspector__head {
  height: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px 0 16px;
  border-bottom: 0.5px solid var(--color-border-tertiary);
  flex-shrink: 0;
  font-size: var(--a3-fs-data);
  font-weight: var(--a3-fw-regular);
  color: var(--color-text-secondary);
}
.inspector__title {
  font-size: var(--a3-fs-section);
  font-weight: var(--a3-fw-semibold);
  color: var(--a3-text-primary);
}
.inspector__subtitle {
  margin-top: 1px;
  font-size: var(--a3-fs-label);
  color: var(--a3-text-secondary);
  white-space: nowrap;
  max-width: 250px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.inspector__close,
.inspector__collapse-toggle {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: transparent;
  border: 0.5px solid transparent;
  color: var(--color-text-secondary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--a3-radius-input);
}
.inspector__close:hover,
.inspector__collapse-toggle:hover { color: var(--color-text-primary); background: var(--color-background-secondary); }
.inspector__switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 10px 12px 8px;
  border-bottom: 1px solid var(--a3-border-soft);
}
.inspector__switch button {
  height: 30px;
  border: 1px solid transparent;
  border-radius: var(--a3-radius-shell);
  background: transparent;
  color: var(--a3-text-secondary);
  font-family: inherit;
  font-size: var(--a3-fs-data);
  font-weight: var(--a3-fw-medium);
  cursor: pointer;
}
.inspector__switch button:hover { background: var(--a3-canvas); color: var(--a3-text-primary); }
.inspector__switch button.is-active {
  background: #F6F8FE;
  color: var(--a3-text-primary);
  border-color: var(--a3-border);
  box-shadow: 0 1px 2px rgba(15, 21, 35, 0.04);
}
.inspector__body {
  flex: 1;
  overflow-y: auto;
  padding: 0 12px 12px;
  min-height: 0;
}
/* Sprint 2: 5-tab inspector layout */
.inspector--expanded {
  flex-direction: row;
}
.inspector__tab-rail {
  width: 44px;
  min-width: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 0;
  border-right: 1px solid var(--color-border-tertiary);
}
.inspector__tab-btn {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: var(--a3-text-secondary);
  cursor: pointer;
  border-radius: var(--a3-radius-input);
  position: relative;
  transition: background 150ms ease, color 150ms ease;
}
.inspector__tab-btn:hover {
  background: rgba(49, 85, 255, 0.06);
  color: var(--a3-text-primary);
}
.inspector__tab-btn--active {
  color: var(--a3-cobalt);
  background: transparent;
}
.inspector__tab-btn--active::after {
  content: '';
  position: absolute;
  right: 0;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: var(--a3-cobalt);
  border-radius: 1px;
}
.inspector__panel {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

/* Freigaben queue items */
.freigaben-item {
  width: 100%;
  text-align: left;
  background: rgba(99, 102, 241, 0.04);
  border: 0;
  border-radius: var(--a3-radius-shell);
  font-family: inherit;
  margin-bottom: 10px;
  transition: background 120ms ease;
  overflow: hidden;
}
.freigaben-item:hover {
  background: rgba(99, 102, 241, 0.07);
}
.freigaben-item--blocker {
  background: rgba(220, 38, 38, 0.045);
}
.freigaben-item--blocker:hover {
  background: rgba(220, 38, 38, 0.08);
}
.freigaben-item--pbc {
  background: rgba(217, 119, 6, 0.045);
}
.freigaben-item--pbc:hover {
  background: rgba(217, 119, 6, 0.08);
}
.freigaben-item--partner {
  background: rgba(124, 58, 237, 0.045);
}
.freigaben-item--partner:hover {
  background: rgba(124, 58, 237, 0.08);
}
.freigaben-item__body { padding: 14px 16px 10px; }
.freigaben-item__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.freigaben-item__kind {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: var(--a3-radius-input);
  background: rgba(99, 102, 241, 0.10);
  color: var(--a3-cobalt);
}
.freigaben-item--blocker .freigaben-item__kind {
  background: rgba(220, 38, 38, 0.10);
  color: #DC2626;
}
.freigaben-item--pbc .freigaben-item__kind {
  background: rgba(217, 119, 6, 0.10);
  color: #B45309;
}
.freigaben-item--disclosure .freigaben-item__kind {
  background: rgba(99, 102, 241, 0.10);
  color: var(--a3-cobalt);
}
.freigaben-item--partner .freigaben-item__kind {
  background: rgba(124, 58, 237, 0.10);
  color: #7C3AED;
}
.freigaben-item__ts {
  font-size: var(--a3-fs-label);
  font-family: var(--a3-ff-mono);
  color: var(--a3-text-secondary);
}
.freigaben-item__title {
  font-size: var(--a3-fs-body);
  font-weight: var(--a3-fw-semibold);
  color: var(--a3-text-primary);
  line-height: 1.35;
  margin-bottom: 4px;
}
.freigaben-item__detail {
  font-size: var(--a3-fs-meta);
  color: var(--a3-text-secondary);
  line-height: 1.5;
  margin-bottom: 6px;
}
.freigaben-item__meta {
  font-size: var(--a3-fs-label);
  font-family: var(--a3-ff-mono);
  color: var(--a3-text-secondary);
  opacity: 0.6;
}

/* Inspector stub placeholder */
.inspector-stub {
  border: 1px dashed var(--color-border-tertiary);
  border-radius: var(--a3-radius-shell);
  padding: 20px 16px;
  text-align: center;
}
.inspector-stub__title {
  font-size: var(--a3-fs-body);
  font-weight: var(--a3-fw-semibold);
  color: var(--a3-text-primary);
  margin-bottom: 6px;
}
.inspector-stub__text {
  font-size: var(--a3-fs-meta);
  color: var(--a3-text-secondary);
  line-height: 1.5;
}

/* Zeitplan milestone rows */
.zeitplan-row {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 0; border-bottom: 1px solid var(--color-border-secondary);
  font-size: var(--a3-fs-meta); color: var(--a3-text-primary);
}
.zeitplan-row:last-child { border-bottom: none; }
.zeitplan-row__icon { display: flex; align-items: center; color: var(--a3-text-secondary); }
.zeitplan-row--done .zeitplan-row__icon { color: var(--a3-status-done); }
.zeitplan-row--running .zeitplan-row__icon { color: var(--a3-cobalt); }
.zeitplan-row--blocked .zeitplan-row__icon { color: var(--a3-status-blocked); }
.zeitplan-row--pending { opacity: 0.6; }
.zeitplan-row__code { font-family: var(--a3-font-mono); font-size: var(--a3-fs-label); min-width: 32px; color: var(--a3-text-secondary); }
.zeitplan-row__name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zeitplan-row__step { font-family: var(--a3-font-mono); font-size: var(--a3-fs-label); color: var(--a3-text-secondary); }
.zeitplan-row__target,
.zeitplan-row__projected {
  font-family: var(--a3-font-mono);
  font-size: var(--a3-fs-label);
  color: var(--a3-text-secondary);
  font-variant-numeric: tabular-nums;
  text-align: right;
  min-width: 68px;
}
.zeitplan-row__delta {
  font-family: var(--a3-font-mono);
  font-size: var(--a3-fs-label);
  color: var(--a3-text-secondary);
  font-variant-numeric: tabular-nums;
  text-align: right;
  min-width: 34px;
}
.zeitplan-row__delta.is-slipping {
  color: var(--a3-status-blocked);
  font-weight: var(--a3-fw-medium);
}
.zeitplan-row--slipping {
  background: rgba(200, 32, 32, 0.04);
  border-radius: var(--a3-radius-input);
}
.zeitplan-sort {
  display: flex;
  gap: 4px;
  margin-bottom: 8px;
}
.zeitplan-sort__btn {
  padding: 3px 10px;
  border: 1px solid var(--a3-border);
  border-radius: 12px;
  background: transparent;
  color: var(--a3-text-secondary);
  font-size: var(--a3-fs-label);
  cursor: pointer;
  transition: background 150ms ease, color 150ms ease;
}
.zeitplan-sort__btn:hover {
  background: var(--a3-surface);
  color: var(--a3-text-primary);
}
.zeitplan-sort__btn--active {
  background: var(--a3-cobalt);
  border-color: var(--a3-cobalt);
  color: #FFFFFF;
}

/* Freigaben action buttons */
.freigaben-item__body {
  all: unset; display: block; width: 100%; cursor: pointer; box-sizing: border-box;
}
.freigaben-item__actions {
  display: flex; gap: 8px; padding: 8px 16px 14px; align-items: center;
}
.freigaben-action {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 14px; border: 0; border-radius: var(--a3-radius-card);
  background: transparent; color: var(--a3-text-secondary); font-size: var(--a3-fs-meta);
  font-weight: var(--a3-fw-medium); cursor: pointer;
  transition: background 100ms, color 100ms, border-color 100ms;
}
.freigaben-action--approve {
  background: var(--a3-cobalt); color: #FFFFFF;
}
.freigaben-action--approve:hover {
  background: var(--a3-cobalt-hover, #2942cc);
}
.freigaben-action--reject {
  border: 1px solid var(--color-border-secondary); padding: 5px 13px;
}
.freigaben-action--reject:hover {
  border-color: var(--a3-status-blocked); color: var(--a3-status-blocked);
}
.freigaben-action--escalate:hover {
  color: var(--a3-cobalt); background: rgba(99, 102, 241, 0.06);
}

/* Freigaben action feedback toast */
.freigaben-feedback {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; border-radius: var(--a3-radius-shell);
  font-size: var(--a3-fs-meta); margin-bottom: 8px;
  animation: feedback-in 200ms ease-out;
}
.freigaben-feedback--approve { background: rgba(0, 128, 62, 0.12); color: var(--a3-status-done); }
.freigaben-feedback--reject { background: rgba(215, 58, 73, 0.12); color: var(--a3-status-blocked); }
.freigaben-feedback--escalate { background: rgba(26, 79, 204, 0.12); color: var(--a3-cobalt); }
@keyframes feedback-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
.inspector__action-btn {
  width: 100%;
  height: 44px;
  background: var(--color-text-primary);
  color: var(--color-background-primary);
  border: none;
  border-radius: var(--a3-radius-pill);
  font-size: var(--a3-fs-data);
  font-weight: var(--a3-fw-medium);
  cursor: pointer;
  margin: 12px 0;
  transition: opacity 150ms ease;
  font-family: inherit;
}
.inspector__action-btn:hover { opacity: 0.85; }

/* =========================================================
   RESIZE HANDLES
   ========================================================= */
.resize-handle {
  position: absolute;
  top: 48px;
  bottom: 0;
  width: 4px;
  cursor: col-resize;
  z-index: 20;
}
.resize-handle::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 1px;
  width: 1px;
  background: transparent;
  transition: background 150ms ease, width 150ms ease;
}
.resize-handle:hover::after {
  background: var(--a3-cobalt);
  width: 2px;
}
.library-panel {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.library-panel__sticky {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--color-background-primary);
  padding: 12px 0 8px;
}
.library-panel__head {
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.library-panel__title {
  font-size: var(--a3-fs-data);
  font-weight: var(--a3-fw-medium);
  color: var(--color-text-primary);
}
.library-panel__add {
  width: 24px;
  height: 24px;
  border: 0.5px solid transparent;
  border-radius: var(--a3-radius-input);
  background: transparent;
  color: var(--color-text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.library-panel__add:hover {
  background: var(--color-background-secondary);
  color: var(--color-text-primary);
}
.library-search {
  width: 100%;
  height: 32px;
  border: 0.5px solid var(--color-border-tertiary);
  border-radius: var(--a3-radius-input);
  background: var(--color-background-secondary);
  padding: 0 9px;
  color: var(--color-text-secondary);
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}
.library-search input {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  color: var(--color-text-primary);
  font-family: inherit;
  font-size: var(--a3-fs-data);
}
.library-search input::placeholder {
  color: var(--color-text-secondary);
}
.source-list {
  display: flex;
  flex-direction: column;
}
.source-row {
  height: 36px;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  padding: 0 2px;
  border-top: 0.5px solid var(--color-border-tertiary);
  border-radius: 0;
  font-size: var(--a3-fs-data);
  color: var(--color-text-primary);
  cursor: pointer;
}
.source-row:last-child {
  border-bottom: 0.5px solid var(--color-border-tertiary);
}
.source-row:hover { background: var(--color-background-secondary); }
.source-row__pdf {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #E1322D;
}
.source-row__label {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: var(--a3-fs-data);
}
/* Downloadable inventory row: a full-width button with a hover-revealed
   download glyph. Resets the native <button> chrome to match the plain row. */
.source-row--action {
  grid-template-columns: 22px minmax(0, 1fr) 18px;
  width: 100%;
  background: none;
  font: inherit;
  text-align: left;
  color: inherit;
}
.source-row__dl {
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--a3-chrome-muted);
  opacity: 0; transition: opacity 0.12s ease;
}
.source-row--action:hover .source-row__dl,
.source-row--action:focus-visible .source-row__dl { opacity: 1; }
.source-row--action:focus-visible { outline: 2px solid var(--a3-cobalt); outline-offset: -2px; }
.imini-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.imini {
  background: #F8FAFF;
  border: 1px solid var(--a3-border-soft);
  border-radius: var(--a3-radius-shell);
  padding: 8px 10px;
}
.imini__label { font-size: var(--a3-fs-label); text-transform: uppercase; letter-spacing: var(--a3-track-label); color: var(--a3-text-secondary); font-weight: var(--a3-fw-medium); }
.imini__value { font-family: var(--a3-font-mono); font-size: var(--a3-fs-title); color: var(--a3-text-primary); margin-top: 2px; font-variant-numeric: tabular-nums; }
.imini.cobalt .imini__value  { color: var(--a3-cobalt); }
.imini.blocked .imini__value { color: var(--a3-status-blocked); }
.imini.paused .imini__value  { color: var(--a3-status-paused); }
.inspector__section + .inspector__section { margin-top: 24px; }
.inspector__label {
  font-size: var(--a3-fs-label);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-secondary);
  font-weight: var(--a3-fw-medium);
  margin-bottom: 8px;
}
.materiality-row {
  display: flex; align-items: baseline; gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--a3-border-soft);
}
.materiality-row:last-child { border-bottom: none; }
.materiality-row .code {
  font-family: var(--a3-font-mono);
  font-size: var(--a3-fs-label);
  font-weight: var(--a3-fw-semibold);
  color: var(--a3-text-primary);
  width: 36px;
}
.materiality-row .desc {
  font-size: var(--a3-fs-meta); color: var(--a3-text-secondary);
  flex: 1;
}
.materiality-row .val {
  font-family: var(--a3-font-mono);
  font-size: var(--a3-fs-meta);
  color: var(--a3-text-primary);
  font-variant-numeric: tabular-nums;
}
.hint-card {
  min-height: 56px;
  border: none;
  box-shadow: none;
  background: transparent;
  padding: 8px 0;
  border-bottom: 0.5px solid var(--color-border-tertiary);
  font-size: var(--a3-fs-meta);
  margin-bottom: 0;
}
.hint-card:last-child { border-bottom: none; }
.hint-card .hint-title {
  font-size: var(--a3-fs-meta); font-weight: var(--a3-fw-semibold); color: var(--a3-text-primary);
  margin-bottom: 2px;
}
.hint-card .hint-meta {
  font-family: var(--a3-font-mono);
  font-size: var(--a3-fs-label);
  color: var(--a3-text-secondary);
}
.hint-card.is-cobalt {
  background: var(--a3-cobalt-tint);
  border-color: var(--a3-cobalt-ring);
}
.action-row {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid var(--a3-border-soft);
  font-size: var(--a3-fs-data);
  cursor: pointer;
  transition: color var(--a3-duration-fast) var(--a3-ease);
}
.action-row:hover { color: var(--a3-cobalt); }
.action-row:last-child { border-bottom: none; }
.action-row .icon { width: 14px; height: 14px; color: var(--a3-text-secondary); }

/* =========================================================
   CLIENTS view — top-level
   ========================================================= */
.clients-hero {
  padding: 48px 40px 32px;
  max-width: 1200px;
}
.clients-grid {
  padding: 0 40px 64px;
  max-width: 1200px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.client-card {
  background: var(--a3-surface);
  border: var(--a3-border-width) solid var(--a3-border);
  border-radius: var(--a3-radius-card);
  padding: var(--a3-space-8) var(--a3-space-10);
  cursor: pointer;
  transition: border-color var(--a3-duration-fast) var(--a3-ease), transform var(--a3-duration-fast) var(--a3-ease);
}
.client-card:hover {
  border-color: var(--a3-text-secondary);
  transform: translateY(-1px);
}
.client-card__head {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 16px;
}
.client-card__avatar {
  width: 40px; height: 40px;
  border-radius: var(--a3-radius-input);
  background: var(--a3-cobalt-tint);
  color: var(--a3-cobalt);
  font-size: var(--a3-fs-body); font-weight: var(--a3-fw-semibold);
  display: inline-flex; align-items: center; justify-content: center;
}
.client-card__name {
  font-size: var(--a3-fs-title); font-weight: var(--a3-fw-semibold);
  letter-spacing: -0.005em;
}
.client-card__sub {
  font-size: var(--a3-fs-meta);
  color: var(--a3-text-secondary);
  margin-top: 2px;
}
.client-card__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--a3-border-soft);
  margin-top: 16px;
  padding-top: 14px;
}
.client-card__stat {
  min-height: 48px;
  display: flex;
  flex-direction: column;
  padding-right: 12px;
}
.client-card__stat .label {
  font-size: var(--a3-fs-label); text-transform: uppercase; letter-spacing: var(--a3-track-label);
  color: var(--a3-text-secondary);
  line-height: 1.4;
  min-height: 28px;
  display: flex;
  align-items: flex-end;
}
.client-card__stat .value {
  font-family: var(--a3-font-mono);
  font-size: var(--a3-fs-title);
  font-weight: var(--a3-fw-medium);
  color: var(--a3-text-primary);
  margin-top: 6px;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}
.client-card__stat .value.is-blocked { color: var(--a3-status-blocked); }
.client-card__stat .value.is-cobalt { color: var(--a3-cobalt); }

.client-card__bar {
  margin-top: 16px;
  height: 4px;
  background: var(--a3-border-soft);
  border-radius: var(--a3-radius-tag);
  overflow: hidden;
  display: flex;
}
.client-card__bar > span { display: block; height: 100%; }
.client-card__bar .seg-done { background: var(--a3-status-done); }
.client-card__bar .seg-running { background: var(--a3-cobalt); }
.client-card__bar .seg-blocked { background: var(--a3-status-blocked); }
.client-card__bar .seg-pending { background: var(--a3-text-disabled); opacity: 0.5; }

.client-card__legend {
  display: flex; gap: 14px;
  margin-top: 8px;
  font-size: var(--a3-fs-label);
  color: var(--a3-text-secondary);
}
.client-card__legend .lg { display: inline-flex; align-items: center; gap: 5px; }
.client-card__legend .lg .dt { width: 6px; height: 6px; border-radius: 50%; }

/* Empty state for queued client */
.client-card.is-queued .client-card__avatar {
  background: var(--a3-canvas);
  color: var(--a3-text-secondary);
}
.client-card.is-queued .client-card__stats { opacity: 0.5; }

/* =========================================================
   MISC
   ========================================================= */
.kbd {
  font-family: var(--a3-font-mono);
  font-size: var(--a3-fs-label);
  border: 1px solid var(--a3-border);
  background: var(--a3-canvas);
  padding: 1px 5px;
  border-radius: 3px;
  color: var(--a3-text-secondary);
}

.scroll-y { overflow-y: auto; }

/* hide scrollbars */
.main::-webkit-scrollbar, .stream__body::-webkit-scrollbar, .inspector__body::-webkit-scrollbar, .wbtabs::-webkit-scrollbar {
  width: 8px; height: 8px;
}
.main::-webkit-scrollbar-thumb, .stream__body::-webkit-scrollbar-thumb, .inspector__body::-webkit-scrollbar-thumb, .wbtabs::-webkit-scrollbar-thumb {
  background: var(--a3-border); border-radius: var(--a3-radius-input);
}

/* =========================================================
   RESPONSIVE — Touch targets (global baseline)
   All interactive elements meet 36px min / 44px tap area.
   ========================================================= */
.icon-btn {
  min-width: 32px;
  min-height: 32px;
}
.lnav-item {
  min-height: 40px;
}
.composer__chip {
  padding: 6px 10px;
  min-height: 32px;
}
.action-row {
  min-height: 44px;
  padding: 12px 0;
}
.wbtab {
  min-height: 40px;
}
/* =========================================================
   NOTEBOOK-STYLE CHROME — dark shell, rounded side panels
   Keeps A3 cobalt/status/tile colors for semantic content.
   ========================================================= */
:root {
  --a3-chrome-bg: #171A20;
  --a3-chrome-panel: #20252A;
  --a3-chrome-panel-2: #1B1F25;
  --a3-chrome-border: rgba(255,255,255,0.08);
  --a3-chrome-border-strong: rgba(255,255,255,0.14);
  --a3-chrome-text: #ECEFF3;
  --a3-chrome-muted: #B7BDC5;
  --a3-chrome-dim: #858D98;
}

html,
body,
#app {
  background: var(--a3-chrome-bg);
}

.shell {
  grid-template-rows: 56px minmax(0, 1fr);
  gap: 8px 12px;
  padding: 0 8px 8px;
  background: var(--a3-chrome-bg);
}

.topbar {
  height: 56px;
  padding: 0 4px 0 2px;
  background: var(--a3-chrome-bg);
  border-bottom: 0;
  color: var(--a3-chrome-text);
  box-shadow: inset 0 -1px 0 rgba(49,85,255,0.22);
}

.topbar__brand {
  width: 34px;
  height: 34px;
  background: #FFFFFF;
  color: #12161C;
}

.topbar__brand:hover {
  background: #F5F7FA;
}

.topbar__divider {
  display: none;
}

.topbar__client-name {
  max-width: 360px;
  color: var(--a3-chrome-text);
  font-size: 18px;
  font-weight: var(--a3-fw-medium);
}

.topbar__client-name:hover {
  background: rgba(255,255,255,0.06);
}

.topbar__right {
  gap: 8px;
}

.topbar__action {
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid var(--a3-chrome-border-strong);
  border-radius: var(--a3-radius-pill);
  background: transparent;
  color: var(--a3-chrome-text);
  font-family: inherit;
  font-size: var(--a3-fs-data);
  font-weight: var(--a3-fw-medium);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 150ms ease, border-color 150ms ease, color 150ms ease;
}

.topbar__action:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.28);
}

.topbar__action--primary {
  background: #FFFFFF;
  border-color: #FFFFFF;
  color: #171A20;
}

.topbar__action--primary:hover {
  background: #F0F2F5;
  border-color: #F0F2F5;
}

.icon-btn {
  color: var(--a3-chrome-muted);
  border-radius: var(--a3-radius-pill);
}

.icon-btn:hover {
  background: rgba(255,255,255,0.08);
  color: var(--a3-chrome-text);
}

.topbar__user-avatar {
  width: 34px;
  height: 34px;
  background: var(--a3-cobalt);
  border: 2px solid var(--a3-status-done);
  color: #FFFFFF;
}

.lsidebar,
.inspector {
  grid-row: 2;
  height: auto;
  min-height: 0;
  background: var(--a3-chrome-panel);
  border: 1px solid var(--a3-chrome-border);
  border-radius: 12px;
  color: var(--a3-chrome-text);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}

.main {
  grid-row: 2;
  height: auto;
  min-height: 0;
  background: var(--a3-chrome-panel-2);
  border: 1px solid var(--a3-chrome-border);
  border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}

.main::before {
  content: '';
  position: sticky;
  top: 0;
  z-index: 4;
  display: block;
  height: 2px;
  background: linear-gradient(90deg, var(--a3-cobalt), transparent 42%);
  pointer-events: none;
}

.lsidebar {
  padding: 0;
}

.lsidebar__head {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 36px;
  padding: 4px 8px;
  flex-shrink: 0;
  color: var(--a3-chrome-text);
  font-size: var(--a3-fs-section);
  font-weight: var(--a3-fw-regular);
}

.lsidebar__toggle,
.inspector__collapse-toggle {
  background: transparent;
  border-color: transparent;
  color: var(--a3-chrome-muted);
}

.lsidebar__toggle:hover,
.inspector__collapse-toggle:hover {
  background: rgba(255,255,255,0.08);
  color: var(--a3-chrome-text);
}

.lsidebar__divider {
  background: var(--a3-chrome-border);
  margin: 8px 16px 0;
}

.lsidebar__section-label {
  color: var(--a3-chrome-dim);
  padding: 12px 16px 6px;
}

.lnav-item {
  height: 42px;
  margin: 6px 12px 0;
  padding: 0 12px;
  border-radius: 10px;
  color: var(--a3-chrome-text);
}

.lnav-item:hover {
  background: rgba(255,255,255,0.07);
}

.lnav-item--selected {
  background: rgba(49,85,255,0.18);
  color: #FFFFFF;
}

.lnav-item--selected::before {
  display: none;
}

.lnav-item__icon {
  color: var(--a3-cobalt);
}

.lsidebar--collapsed {
  padding: 8px 0;
}

.lsidebar--collapsed .lsidebar__toggle {
  margin: 0 auto 8px;
}

.lsidebar--collapsed .lnav-item {
  width: 34px;
  height: 34px;
  min-height: 34px;
  margin: 0 auto;
  padding: 0;
  border-radius: var(--a3-radius-shell);
  justify-content: center;
}

.lsidebar--collapsed .lnav-item--selected {
  background: rgba(49,85,255,0.24);
  box-shadow: none;
}

.lsidebar--collapsed .lnav-item--selected::before {
  display: none !important;
}

.lsidebar--collapsed .lnav-item:focus-visible {
  outline-offset: -2px;
}

.lsidebar__collapsed-divider {
  width: 24px;
  height: 1px;
  margin: 10px auto 8px;
  background: var(--a3-chrome-border);
}

.lsidebar__collapsed-bereiche {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.lnav-mini-bereich {
  width: 34px;
  height: 32px;
  border-radius: var(--a3-radius-shell);
  display: grid;
  grid-template-columns: 6px 1fr;
  align-items: center;
  gap: 4px;
  padding: 0 6px;
  color: var(--a3-chrome-dim);
  cursor: pointer;
}

.lnav-mini-bereich:hover {
  background: rgba(255,255,255,0.07);
  color: var(--a3-chrome-text);
}

.lnav-mini-bereich--selected {
  background: rgba(49,85,255,0.22);
  color: #FFFFFF;
}

.lnav-mini-bereich__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
}

.lnav-mini-bereich__code {
  font-family: var(--a3-font-mono);
  font-size: 9px;
  letter-spacing: 0;
}

.lnav-item__label,
.lnav-bereich__name,
.lnav-sheet__name {
  color: inherit;
}

.lnav-bereich {
  min-height: 38px;
  height: auto;
  margin: 0 10px;
  padding: 0 10px;
  border-radius: var(--a3-radius-shell);
  color: var(--a3-chrome-text);
}

.lnav-bereich:hover {
  background: rgba(255,255,255,0.06);
}

.lnav-bereich--selected {
  background: rgba(49,85,255,0.16);
  border-left: 0;
}

.lnav-bereich__code,
.lnav-bereich__count,
.lnav-sheet__code,
.lsidebar__footer {
  color: var(--a3-chrome-dim);
}

.lsidebar__sheets {
  padding: 4px 10px 8px 32px;
}

.lnav-sheet {
  min-height: 30px;
  border-radius: var(--a3-radius-shell);
  color: var(--a3-chrome-muted);
}

.lnav-sheet:hover {
  background: rgba(255,255,255,0.06);
  color: var(--a3-chrome-text);
}

.lnav-sheet--selected {
  background: rgba(49,85,255,0.18);
  color: #FFFFFF;
}

.lsidebar__footer {
  border-top: 1px solid var(--a3-chrome-border);
}

.lsidebar-progress {
  margin: 0 14px 2px;
  padding: 10px;
  border: 1px solid var(--a3-chrome-border);
  border-radius: 10px;
  background: rgba(255,255,255,0.03);
}

.lsidebar-progress__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--a3-font-mono);
  font-size: var(--a3-fs-meta);
  color: var(--a3-chrome-text);
  font-variant-numeric: tabular-nums;
}

.lsidebar-progress__bar {
  height: 4px;
  margin-top: 8px;
  border-radius: var(--a3-radius-pill);
  background: rgba(255,255,255,0.12);
  overflow: hidden;
}

.lsidebar-progress__bar > span {
  display: block;
  height: 100%;
  background: var(--a3-cobalt);
}

.lsidebar-progress__grid {
  display: grid;
  gap: 6px;
  margin-top: 10px;
  font-family: var(--a3-font-mono);
  font-size: var(--a3-fs-label);
  color: var(--a3-chrome-dim);
}

.lsidebar-progress__grid span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.lsidebar--collapsed .lsidebar-progress {
  display: none;
}

.inspector {
  padding: 0;
}

.inspector__head {
  height: 48px;
  min-height: 48px;
  padding: 0 12px 0 16px;
  border-bottom: 1px solid var(--a3-chrome-border);
  color: var(--a3-chrome-text);
  font-size: var(--a3-fs-section);
}

.inspector__body {
  padding: 14px 16px 16px;
  color: var(--a3-chrome-text);
}

.inspector__label,
.hint-card .hint-meta,
.meta {
  color: var(--a3-chrome-dim);
}

.hint-card {
  border-bottom-color: var(--a3-chrome-border);
  color: var(--a3-chrome-muted);
}

.hint-card.is-cobalt {
  background: rgba(49,85,255,0.16);
  border: 1px solid rgba(49,85,255,0.28);
  border-radius: 10px;
  padding: 10px 12px;
  color: var(--a3-chrome-muted);
}

.hint-card .hint-title,
.h3,
.materiality-row .code,
.materiality-row .val,
.imini__value {
  color: var(--a3-chrome-text);
}

.hint-card.is-cobalt .hint-title {
  color: #FFFFFF;
}

.hint-card.is-cobalt .hint-meta {
  color: var(--a3-chrome-muted);
}

.mn-meta-strip {
  color: var(--a3-chrome-muted);
  margin-top: 0;
}

.mn-toolbar {
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
  min-height: 44px;
  padding: 0 2px;
}

.mn-toolbar__sep {
  color: var(--a3-chrome-dim);
  font-size: var(--a3-fs-body);
  line-height: 1;
}

.mn-overview-status {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.mn-overview-status .mn-progress-bar {
  flex: 0 0 140px;
  margin-top: 0;
  background: rgba(255,255,255,0.22);
}

.mn-list {
  border-radius: 10px;
}

.mn-list__header,
.mn-list__row {
  grid-template-columns: 10px 56px minmax(180px, 1fr) minmax(220px, 1.1fr) 140px 56px 92px;
}

.mn-list__header {
  min-height: 38px;
}

.mn-list__row {
  min-height: 42px;
}

.mn-list__bar {
  width: 100%;
}

.shell[data-theme="dark"] .mn-node.is-blocked {
  background: #3A1F24;
  border-color: rgba(239,68,68,0.48);
}

.shell[data-theme="dark"] .mn-node.is-blocked .mn-node__name,
.shell[data-theme="dark"] .mn-node.is-blocked .mn-node__sub,
.shell[data-theme="dark"] .mn-node.is-blocked .mn-node__bar-meta {
  color: #FFE4E6;
}

.shell[data-theme="dark"] .mn-node.is-blocked .mn-node__code {
  color: #FDA4AF;
}

.shell[data-theme="dark"] .mn-node.is-blocked .badge--blocked {
  background: rgba(239,68,68,0.18);
  color: #FCA5A5;
}

.shell[data-theme="dark"] .mn-node.is-slipping {
  background: #3A1F24;
  border-color: rgba(239,68,68,0.48);
}
.shell[data-theme="dark"] .mn-node.is-slipping .mn-node__date-projected {
  color: #FCA5A5;
}

.shell[data-theme="dark"] .timeline-bar {
  background: #252B34;
  border-top-color: var(--a3-chrome-border);
}
.shell[data-theme="dark"] .timeline-bar__mark--target {
  background: var(--a3-cobalt);
}
.shell[data-theme="dark"] .timeline-bar__empty-msg {
  color: var(--a3-chrome-muted);
}

.mn-head__viewtoggle {
  background: #EEF2FC;
  border-color: #D9E0EF;
}

.mn-head__viewtoggle button.active {
  background: #FFFFFF;
}

.shell[data-theme="dark"] .mn-canvas-wrap,
.shell[data-theme="dark"] .mn-list {
  background: #1F242B;
  border-color: var(--a3-chrome-border);
}

.shell[data-theme="dark"] .mn-list__header {
  background: #252B34;
  border-bottom-color: var(--a3-chrome-border);
  color: var(--a3-chrome-muted);
}

.shell[data-theme="dark"] .mn-list__row {
  border-bottom-color: rgba(255,255,255,0.08);
  color: var(--a3-chrome-text);
}

.shell[data-theme="dark"] .mn-list__row:hover {
  background: rgba(49,85,255,0.10);
}

.shell[data-theme="dark"] .mn-list__name {
  color: var(--a3-chrome-text);
}

.shell[data-theme="dark"] .mn-list__task,
.shell[data-theme="dark"] .mn-list__code,
.shell[data-theme="dark"] .mn-list__pct {
  color: var(--a3-chrome-muted);
}

.shell[data-theme="dark"] .mn-list__bar {
  background: rgba(255,255,255,0.16);
}

.shell[data-theme="dark"] .mn-canvas {
  background-color: #20252C;
  background-image: radial-gradient(circle, rgba(226,229,237,0.18) 1px, transparent 1px);
}

.shell[data-theme="dark"] .mn-canvas__legend {
  background: #252B34;
  border-top-color: var(--a3-chrome-border);
  color: var(--a3-chrome-muted);
}

.shell[data-theme="dark"] .mn-node {
  background: #F8FAFF;
  border-color: #CFD7E8;
}

.shell[data-theme="dark"] .mn-node.is-pending {
  background: rgba(248,250,255,0.86);
}

.shell[data-theme="light"] {
  --a3-chrome-bg: #E8ECF4;
  --a3-chrome-panel: #FFFFFF;
  --a3-chrome-panel-2: #F5F7FC;
  --a3-chrome-border: #CDD5E5;
  --a3-chrome-border-strong: #B8C2D6;
  --a3-chrome-text: var(--a3-text-primary);
  --a3-chrome-muted: var(--a3-text-secondary);
  --a3-chrome-dim: var(--a3-text-disabled);
}

/* topbar stays dark in light mode — styled via later rule at ~5536 */

.shell[data-theme="light"] .topbar__brand {
  background: #F8FAFC;
  color: var(--a3-command-navy);
}

.shell[data-theme="light"] .topbar__client-name {
  color: #F8FAFC;
}

.shell[data-theme="light"] .topbar__action {
  color: #F8FAFC;
  border-color: rgba(226, 232, 240, 0.22);
}

.shell[data-theme="light"] .topbar__action:hover,
.shell[data-theme="light"] .topbar .icon-btn:hover {
  background: rgba(255,255,255,0.12);
}

.shell[data-theme="light"] .icon-btn:hover,
.shell[data-theme="light"] .lsidebar__toggle:hover,
.shell[data-theme="light"] .inspector__collapse-toggle:hover {
  background: rgba(49,85,255,0.06);
}

.shell[data-theme="light"] .topbar__action--primary {
  background: #F8FAFC;
  border-color: #F8FAFC;
  color: var(--a3-command-navy);
}

.shell[data-theme="light"] .topbar__action--primary:hover {
  background: #E2E8F0;
  border-color: #E2E8F0;
}

.shell[data-theme="light"] .icon-btn,
.shell[data-theme="light"] .lsidebar__toggle,
.shell[data-theme="light"] .inspector__collapse-toggle {
  color: var(--a3-text-secondary);
}

.shell[data-theme="light"] .topbar .icon-btn {
  color: rgba(248, 250, 252, 0.8);
}

.shell[data-theme="light"] .main,
.shell[data-theme="light"] .lsidebar,
.shell[data-theme="light"] .inspector {
  background: var(--a3-chrome-panel);
  color: var(--a3-text-primary);
}

.shell[data-theme="light"] .lsidebar {
  border-right: 1px solid #D4DCE8;
}

.shell[data-theme="light"] .inspector {
  border-left: 1px solid #D4DCE8;
}

.shell[data-theme="light"] .hint-card,
.shell[data-theme="light"] .freigaben-item,
.shell[data-theme="light"] .mn-node {
  box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
}

.shell[data-theme="light"] .main::before {
  background: linear-gradient(90deg, var(--a3-cobalt), transparent 42%);
}

.shell[data-theme="light"] .main {
  background: #FAFBFF;
}

.shell[data-theme="light"] .lnav-item,
.shell[data-theme="light"] .lnav-bereich {
  color: var(--a3-text-primary);
}

.shell[data-theme="light"] .lnav-item:hover,
.shell[data-theme="light"] .lnav-bereich:hover,
.shell[data-theme="light"] .lnav-sheet:hover {
  background: rgba(49,85,255,0.06);
}

.shell[data-theme="light"] .lnav-item--selected,
.shell[data-theme="light"] .lnav-bereich--selected,
.shell[data-theme="light"] .lnav-sheet--selected,
.shell[data-theme="light"] .lnav-mini-bereich--selected {
  background: var(--a3-cobalt-tint);
  color: var(--a3-text-primary);
}

.shell[data-theme="light"] .lnav-mini-bereich {
  color: var(--a3-text-secondary);
}

.shell[data-theme="light"] .lnav-mini-bereich:hover {
  background: rgba(49,85,255,0.06);
  color: var(--a3-text-primary);
}

.shell[data-theme="light"] .lsidebar-progress {
  background: #F8FAFF;
}

.shell[data-theme="light"] .lsidebar-progress__bar {
  background: var(--a3-border-soft);
}

.shell[data-theme="light"] .lsidebar-progress__top,
.shell[data-theme="light"] .hint-card .hint-title,
.shell[data-theme="light"] .h3,
.shell[data-theme="light"] .materiality-row .code,
.shell[data-theme="light"] .materiality-row .val,
.shell[data-theme="light"] .imini__value {
  color: var(--a3-text-primary);
}

.shell[data-theme="light"] .lsidebar-progress__grid,
.shell[data-theme="light"] .lnav-mini-bereich__code,
.shell[data-theme="light"] .lnav-bereich__code,
.shell[data-theme="light"] .lnav-bereich__count,
.shell[data-theme="light"] .lnav-sheet__code,
.shell[data-theme="light"] .lsidebar__footer,
.shell[data-theme="light"] .inspector__label,
.shell[data-theme="light"] .hint-card .hint-meta,
.shell[data-theme="light"] .meta,
.shell[data-theme="light"] .mn-meta-strip {
  color: var(--a3-text-secondary);
}

.shell[data-theme="light"] .inspector__action-btn {
  background: #0F1523;
  color: #FFFFFF;
}

.shell[data-theme="light"] .mn-list {
  background: #FFFFFF;
}

.shell[data-theme="light"] .mn-list__header {
  background: #EEF2FC;
}

.shell[data-theme="light"] .mn-list__row {
  background: #FFFFFF;
}

/* Bereich view: audit work queue, not a split terminal/table hybrid */
.vb-header {
  background: transparent;
  border-bottom: 1px solid var(--a3-chrome-border);
  padding: 18px 24px;
}

.vb-header__top {
  min-height: 32px;
}

.vb-header__title {
  color: var(--a3-chrome-text);
  font-size: var(--a3-fs-title);
}

.vb-header__code {
  background: rgba(49,85,255,0.14);
  border-color: rgba(49,85,255,0.28);
  color: var(--a3-cobalt);  /* readable on the light tint; brightened in dark below */
}
.shell[data-theme="dark"] .vb-header__code {
  color: #BFD0FF;
}

.vb-header__pct {
  color: var(--a3-chrome-muted);
}

.vb-body {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 360px);
  gap: 16px;
  padding: 18px 24px 24px;
  height: auto;
  min-height: calc(100% - 69px);
}

.vb-left {
  padding: 0;
  overflow: visible;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.vb-right {
  border: 1px solid var(--a3-chrome-border);
  border-radius: 12px;
  background: #20252A;
  overflow: hidden;
  align-self: start;
  min-height: calc(100vh - 132px);
  max-height: calc(100vh - 132px);
}

.vb-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 0;
}

.vb-summary__item {
  min-height: 72px;
  border: 1px solid var(--a3-chrome-border);
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
  padding: 12px 14px;
}

.vb-summary__label {
  display: block;
  font-size: var(--a3-fs-label);
  text-transform: uppercase;
  letter-spacing: var(--a3-track-label);
  color: var(--a3-chrome-dim);
}

.vb-summary__value {
  display: block;
  margin-top: 8px;
  font-family: var(--a3-font-mono);
  font-size: 22px;
  line-height: 1;
  color: var(--a3-chrome-text);
  font-variant-numeric: tabular-nums;
}

.vb-summary__value.is-running { color: #8EA6FF; }
.vb-summary__value.is-blocked { color: #FCA5A5; }

.vb-workbench {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(520px, 1fr);
  gap: 14px;
  align-items: start;
}

.vb-focus,
.vb-queue,
.vb-deps {
  border: 1px solid var(--a3-chrome-border);
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
  overflow: hidden;
}

.vb-deps--collapsed {
  border: none;
  background: transparent;
  min-height: auto;
  overflow: visible;
}

.vb-deps--collapsed .vb-deps__head {
  padding: 6px 0;
}

.vb-focus {
  padding: 16px;
}

.vb-focus.is-blocked {
  background: rgba(239,68,68,0.10);
  border-color: rgba(239,68,68,0.35);
}

.vb-focus__head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
}

.vb-focus__code {
  font-family: var(--a3-font-mono);
  font-size: var(--a3-fs-label);
  color: #BFD0FF;
  background: rgba(49,85,255,0.14);
  border: 1px solid rgba(49,85,255,0.28);
  border-radius: 5px;
  padding: 4px 6px;
}

.vb-focus__title {
  margin: 0;
  color: var(--a3-chrome-text);
  font-size: 17px;
  line-height: 1.25;
}

.vb-focus__meta {
  margin-top: 3px;
  color: var(--a3-chrome-muted);
  font-family: var(--a3-font-mono);
  font-size: var(--a3-fs-label);
}

.vb-focus__progress {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  font-family: var(--a3-font-mono);
  font-size: var(--a3-fs-label);
  color: var(--a3-chrome-muted);
}

.vb-focus__bar {
  flex: 1;
  height: 5px;
  border-radius: var(--a3-radius-pill);
  background: rgba(255,255,255,0.14);
  overflow: hidden;
}

.vb-focus__bar > span {
  display: block;
  height: 100%;
  background: var(--a3-cobalt);
}

.vb-focus.is-blocked .vb-focus__bar > span {
  background: var(--a3-status-blocked);
}

.vb-focus__facts {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  color: var(--a3-chrome-muted);
  font-size: var(--a3-fs-meta);
}

.vb-focus__facts span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.vb-queue__head,
.vb-deps__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--a3-chrome-border);
}

.vb-queue__eyebrow {
  font-size: var(--a3-fs-label);
  color: var(--a3-chrome-dim);
  text-transform: uppercase;
  letter-spacing: var(--a3-track-label);
}

.vb-queue__title {
  margin: 3px 0 0;
  color: var(--a3-chrome-text);
  font-size: var(--a3-fs-section);
  font-weight: var(--a3-fw-medium);
}

.vb-wslist {
  display: flex;
  flex-direction: column;
}

.vb-wsrow {
  grid-template-columns: 6px 48px minmax(160px, 1fr) 96px 56px 96px;
  min-height: 48px;
  padding: 10px 14px;
  border-bottom-color: var(--a3-chrome-border);
  color: var(--a3-chrome-text);
}

.vb-wsrow:hover {
  background: rgba(49,85,255,0.08);
}

.vb-wsrow--selected {
  background: rgba(49,85,255,0.16);
}

.vb-wsrow__code,
.vb-wsrow__agent,
.vb-wsrow__pct {
  color: var(--a3-chrome-muted);
}

.vb-wsrow__name {
  color: var(--a3-chrome-text);
}

.vb-dag-toggle {
  margin-top: 0;
  background: rgba(255,255,255,0.05);
  border-color: var(--a3-chrome-border);
  color: var(--a3-chrome-muted);
  white-space: nowrap;
}

.vb-dag-toggle:hover {
  color: var(--a3-chrome-text);
  background: rgba(255,255,255,0.08);
}

.vb-deps {
  min-height: 300px;
}

.vb-deps .dag {
  height: 360px;
  border: 0;
  border-radius: 0;
  background-color: #20252C;
  background-image: radial-gradient(circle, rgba(226,229,237,0.16) 1px, transparent 1px);
  background-size: 22px 22px;
}

.vb-deps .dag__inner {
  min-width: 920px;
  height: 320px;
}

.vb-deps .dag__node {
  background: #F8FAFF;
  border-color: #CFD7E8;
}

.vb-deps .dag__node.is-blocked {
  background: #3A1F24;
  border-color: rgba(239,68,68,0.48);
}

.vb-deps .dag__node.is-blocked .dag__node-name,
.vb-deps .dag__node.is-blocked .dag__node-meta {
  color: #FFE4E6;
}

.vb-agent {
  border-bottom: 1px solid var(--a3-chrome-border);
}

.vb-agent__head {
  border-bottom-color: var(--a3-chrome-border);
  padding: 14px 16px;
}

.vb-agent__title {
  color: var(--a3-chrome-text);
}

.vb-agent__sub,
.vb-agent__live {
  color: var(--a3-chrome-muted);
}

.vb-agent__stream {
  padding: 10px 16px;
}

.vb-agent__composer {
  border-top-color: var(--a3-chrome-border);
  padding: 12px 16px;
}

.vb-agent__input {
  background: rgba(255,255,255,0.05);
  border-color: var(--a3-chrome-border);
  color: var(--a3-chrome-text);
}

.vb-agent__input::placeholder {
  color: var(--a3-chrome-dim);
}

.vb-active-agents {
  padding: 14px 16px;
}

.vb-active-agents__label,
.vb-active-agents__code,
.vb-active-agents__pct {
  color: var(--a3-chrome-dim);
}

.vb-active-agents__row {
  color: var(--a3-chrome-text);
}

.shell[data-theme="dark"] .stream-step__body {
  color: var(--a3-chrome-text);
}

.shell[data-theme="dark"] .stream-step__detail {
  background: rgba(255,255,255,0.05);
  color: var(--a3-chrome-muted);
}

.shell[data-theme="dark"] .stream-step__ts {
  color: var(--a3-chrome-dim);
}

/* Arbeitsblatt execution console */
.ws {
  max-width: none;
  width: 100%;
  min-height: 100%;
  box-sizing: border-box;
  padding: 14px 20px 24px;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 12px;
  color: var(--a3-chrome-text);
}

.ws-hero {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 16px;
  border: 1px solid var(--a3-chrome-border);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.018));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.ws-hero.is-blocked {
  border-color: rgba(239, 68, 68, 0.42);
}

.ws-hero__main {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.ws-hero__copy {
  min-width: 0;
}

.ws-hero__code {
  flex: 0 0 auto;
  font-family: var(--a3-font-mono);
  font-size: var(--a3-fs-label);
  color: var(--a3-cobalt);
  background: rgba(47, 85, 255, 0.12);
  border: 1px solid rgba(47, 85, 255, 0.42);
  padding: 4px 8px;
  border-radius: var(--a3-radius-input);
}

.ws-hero__title {
  margin: 0;
  color: var(--a3-chrome-text);
  font-size: var(--a3-fs-section);
  font-weight: var(--a3-fw-semibold);
  letter-spacing: 0;
  line-height: 1.2;
}

.ws-hero__meta {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--a3-chrome-muted);
  font-size: var(--a3-fs-data);
}

.ws-hero__meta .sep {
  color: var(--a3-chrome-dim);
}

.ws-hero__side {
  display: grid;
  align-content: space-between;
  gap: 14px;
  min-width: 0;
}

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

.ws-hero__controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.ws-hero__actions {
  display: flex;
  gap: 8px;
}

.ws-hero__progress {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ws-hero__progress-track {
  width: 100px;
  height: 4px;
  background: rgba(255,255,255,0.14);
  border-radius: 99px;
  overflow: hidden;
}

.ws-hero__progress-track span {
  display: block;
  height: 100%;
  background: var(--a3-cobalt);
}

.ws-hero__progress-pct {
  font-family: var(--a3-font-mono);
  font-size: var(--a3-fs-label);
  color: var(--a3-chrome-text);
}

.ws-progress {
  min-width: 0;
}

.ws-progress__label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  color: var(--a3-chrome-dim);
  font-size: var(--a3-fs-label);
  text-transform: uppercase;
  letter-spacing: var(--a3-track-label);
}

.ws-progress__label strong {
  color: var(--a3-chrome-text);
  font-size: var(--a3-fs-data);
  letter-spacing: 0;
}

.ws-progress__track {
  height: 4px;
  background: rgba(255,255,255,0.14);
  border-radius: 99px;
  overflow: hidden;
}

.ws-progress__track span {
  display: block;
  height: 100%;
  background: var(--a3-cobalt);
}

.ws-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.ws-metric {
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--a3-chrome-border);
  border-radius: 10px;
  background: rgba(255,255,255,0.025);
}

.ws-metric span {
  display: block;
  color: var(--a3-chrome-dim);
  font-size: var(--a3-fs-label);
  letter-spacing: var(--a3-track-label);
  text-transform: uppercase;
}

.ws-metric strong {
  display: block;
  margin-top: 6px;
  color: var(--a3-chrome-text);
  font-size: var(--a3-fs-data);
  font-weight: var(--a3-fw-medium);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ws-run {
  display: grid;
  grid-template-columns: minmax(330px, 390px) minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
}

.ws-agent-status,
.ws-plan {
  min-width: 0;
  border: 1px solid var(--a3-chrome-border);
  border-radius: var(--a3-radius-card);
  background: rgba(255,255,255,0.022);
  box-shadow: none;
}

.ws-agent-status {
  padding: 12px;
  display: grid;
  gap: 10px;
}

.ws-agent-status__head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ws-agent-status__eyebrow,
.ws-plan__eyebrow {
  display: block;
  color: var(--a3-chrome-dim);
  font-size: var(--a3-fs-label);
  letter-spacing: var(--a3-track-label);
  text-transform: uppercase;
}

.ws-agent-status__title {
  margin-top: 3px;
  color: var(--a3-chrome-text);
  font-size: 15px;
  font-weight: var(--a3-fw-semibold);
}

.ws-agent-status__current {
  padding: 10px 12px;
  border: 1px solid rgba(47,85,255,0.34);
  border-radius: var(--a3-radius-card);
  background: rgba(47,85,255,0.10);
}

.ws-agent-status__current span {
  display: block;
  color: #BFD0FF;
  font-size: var(--a3-fs-label);
  text-transform: uppercase;
  letter-spacing: var(--a3-track-label);
}

.ws-agent-status__current strong,
.ws-agent-status__current em {
  display: block;
  margin-top: 7px;
}

.ws-agent-status__current strong {
  color: var(--a3-chrome-text);
  font-size: var(--a3-fs-data);
  line-height: 1.35;
}

.ws-agent-status__current em {
  color: var(--a3-chrome-muted);
  font-style: normal;
  font-family: var(--a3-font-mono);
  font-size: var(--a3-fs-label);
  line-height: 1.45;
}

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

.ws-agent-status__grid > div {
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid var(--a3-chrome-border);
  border-radius: 5px;
  background: rgba(0,0,0,0.10);
}

.ws-agent-status__grid span {
  display: block;
  color: var(--a3-chrome-dim);
  font-size: var(--a3-fs-label);
  letter-spacing: var(--a3-track-label);
  text-transform: uppercase;
}

.ws-agent-status__grid strong {
  display: block;
  margin-top: 6px;
  color: var(--a3-chrome-text);
  font-size: var(--a3-fs-data);
  font-weight: var(--a3-fw-medium);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ws-plan {
  overflow: hidden;
}

.ws-plan__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--a3-chrome-border);
}

.ws-plan__head h2 {
  margin: 3px 0 0;
  color: var(--a3-chrome-text);
  font-size: var(--a3-fs-section);
  font-weight: var(--a3-fw-semibold);
}

.ws-plan__source {
  color: var(--a3-chrome-dim);
  font-family: var(--a3-font-mono);
  font-size: var(--a3-fs-label);
  white-space: nowrap;
}

.ws-plan-table {
  display: grid;
  min-width: 0;
}

.ws-plan-row {
  width: 100%;
  min-height: 42px;
  display: grid;
  grid-template-columns: 92px 56px minmax(160px, 1fr) 90px 120px 92px;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  border: 0;
  border-bottom: 1px solid var(--a3-chrome-border);
  background: transparent;
  color: var(--a3-chrome-muted);
  font-family: inherit;
  font-size: var(--a3-fs-data);
  text-align: left;
}

.ws-plan-row:last-child {
  border-bottom: 0;
}

.ws-plan-row:not(.ws-plan-row--head) {
  cursor: pointer;
}

.ws-plan-row:not(.ws-plan-row--head):hover,
.ws-plan-row.is-current {
  background: rgba(47,85,255,0.10);
}

.ws-plan-row--head {
  min-height: 32px;
  color: var(--a3-chrome-dim);
  font-size: var(--a3-fs-label);
  letter-spacing: var(--a3-track-label);
  text-transform: uppercase;
  cursor: default;
}

.ws-plan-row__role,
.ws-plan-row__code {
  font-family: var(--a3-font-mono);
  color: var(--a3-chrome-dim);
}

.ws-plan-row__name {
  min-width: 0;
  color: var(--a3-chrome-text);
  font-weight: var(--a3-fw-medium);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ws-plan-row__progress {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
  align-items: center;
  gap: 8px;
}

.ws-plan-row__progress::before {
  content: '';
  display: block;
  grid-column: 1;
  grid-row: 1;
  height: 3px;
  border-radius: var(--a3-radius-pill);
  background: rgba(255,255,255,0.14);
}

.ws-plan-row__progress i {
  display: block;
  grid-column: 1;
  grid-row: 1;
  height: 3px;
  border-radius: var(--a3-radius-pill);
  background: var(--a3-cobalt);
}

.ws-plan-row__progress em {
  grid-column: 2;
  color: var(--a3-chrome-dim);
  font-style: normal;
  font-family: var(--a3-font-mono);
  font-size: var(--a3-fs-label);
  text-align: right;
}

.ws-layout {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
}

.ws-agent-panel {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stream,
.composer,
.ws-card {
  background: rgba(255,255,255,0.03);
  border-color: var(--a3-chrome-border);
  border-radius: var(--a3-radius-card);
  color: var(--a3-chrome-text);
}

.stream {
  min-height: 0;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.stream__head {
  background: rgba(255,255,255,0.025);
  border-color: var(--a3-chrome-border);
  padding: 14px 16px;
}

.stream__avatar {
  background: rgba(47, 85, 255, 0.18);
  color: #DDE5FF;
}

.stream__title,
.ws-card__title,
.kv > .v,
.stream-step__body {
  color: var(--a3-chrome-text);
}

.stream__sub,
.stream__live,
.kv > .k,
.ws-dep__code,
.ws-dep__follows,
.stream-step__ts {
  color: var(--a3-chrome-dim);
}

.stream__body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 8px 0 14px;
}

.stream-step {
  grid-template-columns: 28px 82px minmax(0, 1fr);
  padding: 10px 18px;
}

.stream-step__detail,
.stream-step__body code {
  background: rgba(255,255,255,0.045);
  border-color: var(--a3-chrome-border);
  color: var(--a3-chrome-muted);
}

.composer {
  padding: 14px;
}

.composer__label {
  color: var(--a3-chrome-dim);
  font-size: var(--a3-fs-label);
  letter-spacing: var(--a3-track-label);
  text-transform: uppercase;
}

.composer__textarea {
  min-height: 48px;
  color: var(--a3-chrome-text);
}

.composer__textarea::placeholder {
  color: var(--a3-chrome-dim);
}

.composer__bar {
  color: var(--a3-chrome-dim);
}

.composer__chip,
.ws-action {
  background: rgba(255,255,255,0.045);
  border-color: var(--a3-chrome-border);
  color: var(--a3-chrome-muted);
}

.composer__chip:hover,
.ws-action:hover {
  color: var(--a3-chrome-text);
  border-color: rgba(255,255,255,0.28);
}

.ws-card {
  padding: 16px;
}

.ws-card--primary {
  border-color: rgba(47, 85, 255, 0.42);
  background: rgba(47,85,255,0.08);
}

.ws-card__head {
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--a3-chrome-border);
}

.kv {
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 9px 12px;
}

.kv > .v.mono {
  color: var(--a3-chrome-text);
}

.ws-deps {
  gap: 6px;
}

.ws-dep {
  min-width: 0;
  padding: 9px 0;
  color: var(--a3-chrome-text);
}

.ws-dep > span:nth-child(3) {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ws-action-list {
  display: grid;
  gap: 8px;
}

.ws-action {
  width: 100%;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 0 10px;
  border: 1px solid var(--a3-chrome-border);
  border-radius: 7px;
  font-family: inherit;
  font-size: var(--a3-fs-data);
  cursor: pointer;
}

.ws-agent-info {
  display: grid;
  gap: 8px;
}

.ws-agent-info__row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: var(--a3-fs-data);
  color: var(--a3-chrome-text);
  min-width: 0;
}

.ws-agent-info__label {
  flex: 0 0 60px;
  color: var(--a3-chrome-dim);
  font-size: var(--a3-fs-label);
  text-transform: uppercase;
  letter-spacing: var(--a3-track-label);
}

.ws-agent-info__row > span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ws-chain {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ws-chain__item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--a3-chrome-text);
  font-family: inherit;
  font-size: var(--a3-fs-data);
  cursor: pointer;
  text-align: left;
}

.ws-chain__item:hover,
.ws-chain__item.is-current {
  background: rgba(47,85,255,0.10);
}

.ws-chain__code {
  font-family: var(--a3-font-mono);
  color: var(--a3-chrome-dim);
  font-size: var(--a3-fs-label);
  flex: 0 0 auto;
}

.ws-chain__name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ws-chain__role {
  flex: 0 0 auto;
  color: var(--a3-chrome-dim);
  font-size: var(--a3-fs-label);
  text-transform: uppercase;
  letter-spacing: var(--a3-track-label);
}

.shell[data-theme="dark"] .ws .badge--blocked {
  color: #FCA5A5;
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.4);
}

.shell[data-theme="dark"] .main::-webkit-scrollbar,
.shell[data-theme="dark"] .lsidebar::-webkit-scrollbar,
.shell[data-theme="dark"] .lsidebar__group--bereiche::-webkit-scrollbar,
.shell[data-theme="dark"] .stream__body::-webkit-scrollbar,
.shell[data-theme="dark"] .inspector__body::-webkit-scrollbar {
  width: 6px;
}

.shell[data-theme="dark"] .main::-webkit-scrollbar-track,
.shell[data-theme="dark"] .lsidebar::-webkit-scrollbar-track,
.shell[data-theme="dark"] .lsidebar__group--bereiche::-webkit-scrollbar-track,
.shell[data-theme="dark"] .stream__body::-webkit-scrollbar-track,
.shell[data-theme="dark"] .inspector__body::-webkit-scrollbar-track {
  background: transparent;
}

.shell[data-theme="dark"] .main::-webkit-scrollbar-thumb,
.shell[data-theme="dark"] .lsidebar::-webkit-scrollbar-thumb,
.shell[data-theme="dark"] .lsidebar__group--bereiche::-webkit-scrollbar-thumb,
.shell[data-theme="dark"] .stream__body::-webkit-scrollbar-thumb,
.shell[data-theme="dark"] .inspector__body::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.16);
  border-radius: var(--a3-radius-pill);
}

.shell[data-theme="light"] .ws {
  color: var(--a3-text-primary);
}

.shell[data-theme="light"] .ws-hero,
.shell[data-theme="light"] .ws-metric,
.shell[data-theme="light"] .ws-agent-status,
.shell[data-theme="light"] .ws-plan,
.shell[data-theme="light"] .stream,
.shell[data-theme="light"] .composer,
.shell[data-theme="light"] .ws-card {
  background: #FFFFFF;
  border-color: var(--a3-border);
  box-shadow: none;
}

.shell[data-theme="light"] .ws-card--primary {
  background: #F8FAFF;
  border-color: rgba(47, 85, 255, 0.22);
}

.shell[data-theme="light"] .stream__head {
  background: #F8FAFF;
  border-color: var(--a3-border);
}

.shell[data-theme="light"] .ws-agent-status__current {
  background: #F8FAFF;
  border-color: rgba(47, 85, 255, 0.22);
}

.shell[data-theme="light"] .ws-agent-status__grid > div {
  background: var(--a3-canvas);
  border-color: var(--a3-border);
}

.shell[data-theme="light"] .ws-plan__head,
.shell[data-theme="light"] .ws-plan-row,
.shell[data-theme="light"] .ws-card__head {
  border-color: var(--a3-border);
}

.shell[data-theme="light"] .ws-hero__title,
.shell[data-theme="light"] .ws-metric strong,
.shell[data-theme="light"] .ws-agent-status__title,
.shell[data-theme="light"] .ws-agent-status__current strong,
.shell[data-theme="light"] .ws-agent-status__grid strong,
.shell[data-theme="light"] .ws-plan__head h2,
.shell[data-theme="light"] .ws-plan-row__name,
.shell[data-theme="light"] .stream__title,
.shell[data-theme="light"] .stream-step__body,
.shell[data-theme="light"] .ws-card__title,
.shell[data-theme="light"] .ws-dep,
.shell[data-theme="light"] .kv > .v,
.shell[data-theme="light"] .kv > .v.mono,
.shell[data-theme="light"] .composer__textarea {
  color: var(--a3-text-primary);
}

.shell[data-theme="light"] .ws-hero__meta,
.shell[data-theme="light"] .ws-metric span,
.shell[data-theme="light"] .ws-agent-status__eyebrow,
.shell[data-theme="light"] .ws-agent-status__grid span,
.shell[data-theme="light"] .ws-agent-status__current em,
.shell[data-theme="light"] .ws-plan__eyebrow,
.shell[data-theme="light"] .ws-plan__source,
.shell[data-theme="light"] .ws-plan-row,
.shell[data-theme="light"] .ws-plan-row__role,
.shell[data-theme="light"] .ws-plan-row__code,
.shell[data-theme="light"] .ws-plan-row__progress em,
.shell[data-theme="light"] .composer__label,
.shell[data-theme="light"] .stream__sub,
.shell[data-theme="light"] .stream__live,
.shell[data-theme="light"] .stream-step__ts,
.shell[data-theme="light"] .kv > .k,
.shell[data-theme="light"] .ws-dep__code,
.shell[data-theme="light"] .ws-dep__follows {
  color: var(--a3-text-secondary);
}

.shell[data-theme="light"] .ws-agent-info__label,
.shell[data-theme="light"] .ws-chain__code,
.shell[data-theme="light"] .ws-chain__role {
  color: var(--a3-text-secondary);
}

.shell[data-theme="light"] .ws-chain__item {
  color: var(--a3-text-primary);
}

.shell[data-theme="light"] .ws-chain__item:hover,
.shell[data-theme="light"] .ws-chain__item.is-current {
  background: var(--a3-cobalt-tint);
}

.shell[data-theme="light"] .ws-hero__progress-track {
  background: var(--a3-border);
}

.shell[data-theme="light"] .ws-hero__progress-pct {
  color: var(--a3-text-primary);
}

.shell[data-theme="light"] .mn-toolbar__sep {
  color: var(--a3-text-secondary);
}

.shell[data-theme="light"] .mn-overview-status .mn-progress-bar {
  background: var(--a3-border);
}

.shell[data-theme="light"] .stream-step__detail,
.shell[data-theme="light"] .stream-step__body code,
.shell[data-theme="light"] .composer__chip,
.shell[data-theme="light"] .ws-action {
  background: var(--a3-canvas);
  border-color: var(--a3-border);
  color: var(--a3-text-secondary);
}

.shell[data-theme="light"] .vb-header,
.shell[data-theme="light"] .vb-queue__head,
.shell[data-theme="light"] .vb-agent__head,
.shell[data-theme="light"] .vb-agent__composer {
  border-color: var(--a3-border);
}

.shell[data-theme="light"] .vb-header__title,
.shell[data-theme="light"] .vb-focus__title,
.shell[data-theme="light"] .vb-queue__title,
.shell[data-theme="light"] .vb-wsrow__name,
.shell[data-theme="light"] .vb-agent__title,
.shell[data-theme="light"] .vb-active-agents__row {
  color: var(--a3-text-primary);
}

.shell[data-theme="light"] .vb-summary__item,
.shell[data-theme="light"] .vb-focus,
.shell[data-theme="light"] .vb-queue,
.shell[data-theme="light"] .vb-deps,
.shell[data-theme="light"] .vb-right {
  background: #FFFFFF;
  border-color: var(--a3-border);
}

.shell[data-theme="light"] .vb-summary__label,
.shell[data-theme="light"] .vb-focus__meta,
.shell[data-theme="light"] .vb-focus__progress,
.shell[data-theme="light"] .vb-focus__facts,
.shell[data-theme="light"] .vb-queue__eyebrow,
.shell[data-theme="light"] .vb-wsrow__code,
.shell[data-theme="light"] .vb-wsrow__agent,
.shell[data-theme="light"] .vb-wsrow__pct,
.shell[data-theme="light"] .vb-agent__sub,
.shell[data-theme="light"] .vb-agent__live,
.shell[data-theme="light"] .vb-active-agents__label,
.shell[data-theme="light"] .vb-active-agents__code,
.shell[data-theme="light"] .vb-active-agents__pct {
  color: var(--a3-text-secondary);
}

.shell[data-theme="light"] .vb-summary__value {
  color: var(--a3-text-primary);
}

.shell[data-theme="light"] .vb-wsrow {
  border-bottom-color: var(--a3-border-soft);
}

.shell[data-theme="light"] .vb-wsrow:hover {
  background: var(--a3-canvas);
}

.shell[data-theme="light"] .vb-wsrow--selected {
  background: var(--a3-cobalt-tint);
}

.shell[data-theme="light"] .vb-deps .dag {
  background-color: var(--a3-surface);
  background-image: radial-gradient(circle, var(--a3-dot-grid) 1px, transparent 1px);
}

.shell[data-theme="light"] .vb-agent__input {
  background: var(--a3-canvas);
  border-color: var(--a3-border);
  color: var(--a3-text-primary);
}

@media (max-width: 1180px) {
  .vb-body {
    grid-template-columns: 1fr;
  }
  .vb-right {
    max-height: none;
  }
  .ws-run,
  .ws-layout {
    grid-template-columns: 1fr;
  }
  .ws-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stream__body {
    max-height: 520px;
  }
}

@media (max-width: 900px) {
  .vb-workbench,
  .vb-summary {
    grid-template-columns: 1fr;
  }
  .ws-metrics {
    grid-template-columns: 1fr;
  }
  .ws-plan-row {
    grid-template-columns: 76px 44px minmax(120px, 1fr) 70px 96px;
  }
  .ws-plan-row > span:last-child {
    display: none;
  }
}

.imini {
  background: rgba(255,255,255,0.04);
  border-color: var(--a3-chrome-border);
}

.imini__label,
.materiality-row .desc {
  color: var(--a3-chrome-dim);
}

.materiality-row,
.action-row {
  border-bottom-color: var(--a3-chrome-border);
}

.inspector__action-btn {
  background: #FFFFFF;
  color: #171A20;
}

.resize-handle {
  top: 56px;
}

@media (max-width: 1180px) {
  .topbar__action:not(.topbar__action--primary) {
    display: none;
  }
}

@media (max-width: 860px) {
  .topbar__action {
    display: none;
  }
  .topbar__client-name {
    max-width: 180px;
    font-size: 15px;
  }
}

/* =========================================================
   RESPONSIVE — ≤1279px: Hide inspector, 2-column
   Laptop / small desktop. Sidebar stays, inspector goes.
   ========================================================= */
@media (max-width: 1279px) {
  .shell__body[data-left="open"][data-right="open"] {
    grid-template-columns: 292px minmax(0, 1fr);
  }
  .shell__body[data-left="collapsed"][data-right="open"] {
    grid-template-columns: 56px minmax(0, 1fr);
  }
  .inspector {
    display: flex;
  }
  .vb-body {
    grid-template-columns: 1fr;
  }
  .vb-right {
    border-left: none;
    border-top: 1px solid var(--a3-border);
  }

  .mn-inner {
    max-width: none;
    padding: 24px 24px 48px;
  }
  .main__inner {
    padding: 24px 28px 48px;
  }
  .clients-hero {
    padding: 40px 28px 20px;
    max-width: none;
  }
  .clients-grid {
    padding: 0 28px 48px;
    max-width: none;
  }
}

/* =========================================================
   RESPONSIVE — ≤1023px: Collapse sidebar to icon rail
   Tablet landscape. Sidebar becomes 48px icon-only rail.
   ========================================================= */
@media (max-width: 1023px) {
  .shell__body[data-left="open"][data-right="open"],
  .shell__body[data-left="open"][data-right="collapsed"] {
    grid-template-columns: 56px 1fr;
  }

  /* Sidebar → icon rail */
  .lsidebar {
    padding: 8px 0;
    overflow: visible;
  }
  .lsidebar__section {
    display: none;
  }
  .lnav-item {
    padding: 0;
    justify-content: center;
    min-height: 40px;
    gap: 0;
  }
  .lnav-item__label {
    display: none;
  }
  .lnav-item__count {
    display: none;
  }
  .lnav-item__icon {
    width: 20px;
    height: 20px;
  }
  .lnav-item--selected::before {
    width: 2px;
  }
  .lsidebar__footer {
    padding: 10px 8px;
    justify-content: center;
  }
  .lsidebar__footer > span:last-child {
    display: none;
  }

  /* Stat strip: wrap to 3+2 */
  .statstrip {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Canvas scroll */
  .mn-canvas-wrap {
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* mn-bottom removed */

  /* Bereich + Arbeitsblatt tighten */
  .vb-header { padding: 16px 24px; }
  .vb-left { padding: 20px 24px 48px; }
  .ws {
    padding: 20px 24px 48px;
  }

  /* Topbar: compact crumbs */
  .topbar__crumbs {
    overflow: hidden;
    min-width: 0;
    flex: 1;
  }
  .topbar__crumb {
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
  }
  .topbar__pill {
    display: none;
  }
}

/* =========================================================
   RESPONSIVE — ≤767px: Mobile stack
   Tablet portrait / phone. Single column, sidebar hidden.
   ========================================================= */
@media (max-width: 767px) {
  .shell__body,
  .shell__body--noinspector,
  .shell__body[data-left="open"][data-right="open"],
  .shell__body[data-left="open"][data-right="collapsed"],
  .shell__body[data-left="collapsed"][data-right="open"],
  .shell__body[data-left="collapsed"][data-right="collapsed"] {
    grid-template-columns: 1fr;
  }

  /* Sidebar: hidden at mobile */
  .lsidebar {
    display: flex;
  }

  /* Topbar: compact */
  .topbar {
    padding: 0 12px;
    gap: 8px;
  }
  .topbar__subtitle,
  .topbar__crumbs,
  .topbar__create,
  .topbar__pill {
    display: none;
  }
  .topbar__title {
    max-width: 150px;
  }
  .topbar__client-switcher {
    padding-right: 0;
  }

  /* Stat strip: 2 columns */
  .statstrip {
    grid-template-columns: repeat(2, 1fr);
  }
  .statstrip__cell {
    padding: 10px 14px 12px;
  }
  .statstrip__value {
    font-size: var(--a3-fs-section);
  }

  /* Mandant view */
  .mn-inner {
    padding: 16px 16px 40px;
  }
  .mn-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .mn-head__right {
    margin-left: 0;
    width: 100%;
    justify-content: space-between;
  }
  .mn-canvas-wrap {
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -16px;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }
  /* mn-bottom removed */

  /* Activity feed: compact */
  .activity__row {
    grid-template-columns: 48px 1fr;
    gap: 8px;
    padding: 10px 12px;
  }
  .activity__src {
    display: none;
  }
  .activity__msg {
    white-space: normal;
    overflow: visible;
  }

  /* Clients view */
  .clients-hero {
    padding: 24px 16px 16px;
  }
  .clients-grid {
    grid-template-columns: 1fr;
    padding: 0 16px 32px;
    gap: 12px;
  }
  .client-card {
    padding: var(--a3-space-4) var(--a3-space-5);
  }
  .client-card__stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  /* Bereich view */
  .vb-header { padding: 12px 16px; }
  .vb-header__title { font-size: var(--a3-fs-title); }
  .vb-left { padding: 16px 16px 40px; }
  .vb-body { grid-template-columns: 1fr; }
  .vb-right { border-left: none; border-top: 1px solid var(--a3-border); }
  .main__inner {
    padding: 16px 16px 40px;
  }

  /* Arbeitsblatt view */
  .ws {
    padding: 16px 16px 40px;
    max-width: none;
  }
  .ws-hero__title {
    font-size: var(--a3-fs-title);
  }
  .ws-hero__row2 {
    flex-wrap: wrap;
    gap: 8px;
  }
  .ws-hero__row2 > span:last-child {
    margin-left: 0;
    width: 100%;
    justify-content: flex-start;
    margin-top: 8px;
  }
  .ws-grid {
    grid-template-columns: 1fr;
  }
  .kv {
    grid-template-columns: 90px 1fr;
    gap: 4px 8px;
  }

  /* Composer: full width */
  .composer__chips {
    flex-wrap: wrap;
  }
  .composer__bar {
    flex-wrap: wrap;
    gap: 8px;
  }
  .kbd {
    display: none;
  }

  /* Stream: compact */
  .stream-step {
    grid-template-columns: 24px 56px 1fr;
    gap: 8px;
    padding: 8px 12px;
  }

  /* Table: compact */
  .rtable {
    font-size: var(--a3-fs-meta);
  }
  .rtable thead th {
    padding: 8px 10px;
  }
  .rtable tbody td {
    padding: 10px;
  }
  .minibar__bar {
    width: 48px;
  }

  /* Typography scale down */
  .h1 {
    font-size: var(--a3-fs-title);
  }
  .h2 {
    font-size: var(--a3-fs-section);
  }

  /* DAG: scroll container */
  .dag {
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    height: 380px;
  }
}

@media (max-width: 1023px) {
  .lsidebar:not(.lsidebar--collapsed) {
    padding: var(--a3-space-3) 0;
    overflow-y: auto;
    overflow-x: hidden;
  }
  .lsidebar:not(.lsidebar--collapsed) .lsidebar__section {
    display: block;
  }
  .lsidebar:not(.lsidebar--collapsed) .lnav-item {
    justify-content: flex-start;
    padding: 0 10px;
    gap: var(--a3-space-3);
  }
  .lsidebar:not(.lsidebar--collapsed) .lnav-item__label {
    display: inline;
  }
  .lsidebar:not(.lsidebar--collapsed) .lnav-item__icon {
    width: 14px;
    height: 14px;
  }
  .lsidebar:not(.lsidebar--collapsed) .lsidebar__footer {
    padding: 12px 16px;
    justify-content: flex-start;
  }
  .lsidebar:not(.lsidebar--collapsed) .lsidebar__footer > span:last-child {
    display: inline;
  }
}

/* =========================================================
   ACCESSIBILITY — Focus indicators, screen-reader utilities
   ========================================================= */

/* Focus ring — 2px cobalt outline on all interactive elements */
:focus-visible {
  outline: 2px solid var(--a3-cobalt);
  outline-offset: 2px;
  border-radius: 3px;
}

/* Suppress outline on mouse click, keep for keyboard */
:focus:not(:focus-visible) {
  outline: none;
}

/* Specific focus overrides for elements that need tighter rings */
.icon-btn:focus-visible {
  outline-offset: 1px;
}
.wbtab:focus-visible {
  outline-offset: -1px;
}
.mn-node:focus-visible,
.dag__node:focus-visible {
  outline-offset: 0;
  box-shadow: 0 0 0 3px var(--a3-cobalt-ring);
}
.client-card:focus-visible {
  outline-offset: 0;
  box-shadow: 0 0 0 3px var(--a3-cobalt-ring);
}
.lnav-item:focus-visible {
  outline-offset: -2px;
}
.action-row:focus-visible {
  outline-offset: -1px;
  border-radius: 0;
}

/* Skip-to-content link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 9999;
  padding: 8px 16px;
  background: var(--a3-cobalt);
  color: var(--a3-surface);
  font-size: var(--a3-fs-data);
  font-weight: var(--a3-fw-medium);
  border-radius: 0 0 4px 4px;
  text-decoration: none;
  transition: top 120ms;
}
.skip-link:focus {
  top: 0;
  outline: none;
}

/* Screen-reader only — visually hidden but accessible */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* =========================================================
   CONFIRM-ACTION — inline two-step confirmation
   ========================================================= */
.confirm-action {
  padding: 8px 0 4px;
}
.confirm-action__label {
  font-size: var(--a3-fs-sm, 13px);
  font-weight: var(--a3-fw-semibold);
  color: var(--a3-chrome-text, #e2e6ec);
  margin-bottom: 2px;
}
.confirm-action__desc {
  font-size: var(--a3-fs-xs, 11px);
  color: var(--a3-chrome-muted, #858D98);
  margin-bottom: 6px;
  line-height: 1.4;
}
.confirm-action__reason {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 6px 8px;
  border: 1px solid var(--a3-chrome-border, rgba(255,255,255,0.12));
  border-radius: var(--a3-radius-sm, 6px);
  background: var(--a3-chrome-inset, rgba(0,0,0,0.2));
  color: var(--a3-chrome-text, #e2e6ec);
  font-family: inherit;
  font-size: var(--a3-fs-sm, 13px);
  resize: vertical;
  margin-bottom: 6px;
}
.confirm-action__reason:focus {
  outline: none;
  border-color: var(--a3-cobalt, #3155FF);
}
.confirm-action__btns {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
}
.confirm-action__cancel,
.confirm-action__confirm {
  padding: 4px 10px;
  border-radius: var(--a3-radius-sm, 6px);
  font-family: inherit;
  font-size: var(--a3-fs-xs, 11px);
  font-weight: var(--a3-fw-medium);
  border: none;
  cursor: pointer;
}
.confirm-action__cancel {
  background: transparent;
  color: var(--a3-chrome-muted, #858D98);
}
.confirm-action__cancel:hover {
  color: var(--a3-chrome-text, #e2e6ec);
}
.confirm-action__confirm {
  background: var(--a3-cobalt, #3155FF);
  color: #fff;
}
.confirm-action__confirm:hover {
  filter: brightness(1.1);
}
.confirm-action__confirm--reject {
  background: #DC2626;
}
.confirm-action__confirm--escalate {
  background: #D97706;
}
.confirm-action__confirm:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Light theme */
.shell[data-theme="light"] .confirm-action__label { color: var(--a3-text-primary, #1a1c1e); }
.shell[data-theme="light"] .confirm-action__desc { color: var(--a3-text-secondary, #5e6268); }
.shell[data-theme="light"] .confirm-action__reason {
  background: #fff;
  border-color: #D9E0EF;
  color: var(--a3-text-primary, #1a1c1e);
}
.shell[data-theme="light"] .confirm-action__cancel { color: var(--a3-text-secondary, #5e6268); }
.shell[data-theme="light"] .confirm-action__cancel:hover { color: var(--a3-text-primary, #1a1c1e); }

/* =========================================================
   MOCK DATA BANNER — warn about offline/fallback data
   ========================================================= */
.mock-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: #92400E;
  color: #FEF3C7;
  font-size: var(--a3-fs-xs, 11px);
  font-weight: var(--a3-fw-medium);
  z-index: 100;
}
.mock-banner button {
  margin-left: auto;
  padding: 2px 8px;
  border: 1px solid rgba(254,243,199,0.3);
  border-radius: var(--a3-radius-sm, 6px);
  background: transparent;
  color: #FEF3C7;
  font-family: inherit;
  font-size: var(--a3-fs-xs, 11px);
  cursor: pointer;
}
.mock-banner button:hover {
  background: rgba(254,243,199,0.1);
}
.shell[data-theme="light"] .mock-banner {
  background: #FEF3C7;
  color: #92400E;
}
.shell[data-theme="light"] .mock-banner button {
  border-color: rgba(146,64,14,0.3);
  color: #92400E;
}
.shell[data-theme="light"] .mock-banner button:hover {
  background: rgba(146,64,14,0.06);
}

/* =========================================================
   REDUCED MOTION — respect user preference
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .stream__live-dot {
    animation: none;
  }
}

/* =========================================================
   CONTROL ROOM REFINEMENT — enterprise audit cockpit
   ========================================================= */
:root {
  --a3-command-navy: #0F172A;
  --a3-command-ink: #020617;
  --a3-command-blue: #1E3A8A;
  --a3-command-gold: #CA8A04;
}

.topbar {
  height: 56px;
  padding: 0 18px;
  background: var(--a3-surface);
  border-bottom: 1px solid var(--a3-chrome-border);
  color: var(--a3-chrome-text);
}

[data-theme="dark"] .topbar {
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.98), rgba(30, 58, 138, 0.92));
  border-bottom: 1px solid rgba(148, 163, 184, 0.22);
  color: #F8FAFC;
}

.shell {
  grid-template-rows: 56px minmax(0, 1fr);
}

.main,
.lsidebar,
.inspector {
  /* The shell grid row (topbar 56px + 8px gap + 8px bottom padding) sizes
     these panels; a fixed 100vh-based height overshoots the row and clips
     the bottom edge behind the shell's overflow:hidden. */
  height: auto;
  min-height: 0;
}

.mn-inner {
  min-height: 100%;
}

.topbar__brand {
  width: 34px;
  height: 34px;
  border-radius: var(--a3-radius-shell);
  background: #F8FAFC;
  color: var(--a3-command-navy);
}

.topbar__brand:hover {
  background: #FFFFFF;
}

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

.topbar__crumb-sep {
  color: rgba(226, 232, 240, 0.44);
  font-size: var(--a3-fs-data);
}

.topbar__client-name {
  color: #F8FAFC;
  font-family: var(--a3-font-display);
  font-size: 15px;
  font-weight: var(--a3-fw-medium);
  max-width: 320px;
}

.topbar__client-name:hover {
  background: rgba(248, 250, 252, 0.10);
}

.topbar__mission {
  display: none;
  align-items: center;
  gap: 12px;
  min-width: 0;
  margin-left: 6px;
  padding-left: 14px;
  border-left: 1px solid rgba(226, 232, 240, 0.18);
  color: rgba(226, 232, 240, 0.78);
  font-size: var(--a3-fs-meta);
  white-space: nowrap;
}

.lsidebar-client {
  margin: 0 12px 10px;
  padding: 11px 12px;
  border: 1px solid var(--a3-chrome-border);
  border-radius: var(--a3-radius-shell);
  background: rgba(49, 85, 255, 0.07);
}

.lsidebar-client__name {
  color: var(--a3-chrome-text);
  font-family: var(--a3-font-display);
  font-size: var(--a3-fs-data);
  font-weight: var(--a3-fw-semibold);
  line-height: 1.25;
}

.lsidebar-client__meta {
  margin-top: 4px;
  color: var(--a3-chrome-muted);
  font-size: var(--a3-fs-label);
  line-height: 1.3;
}

.lsidebar-client__bar {
  height: 4px;
  margin-top: 10px;
  border-radius: var(--a3-radius-pill);
  overflow: hidden;
  background: rgba(148, 163, 184, 0.22);
}

.lsidebar-client__bar span {
  display: block;
  height: 100%;
  background: var(--a3-cobalt);
}

.topbar__mission span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.topbar__assurance {
  min-width: 104px;
  padding: 4px 10px;
  border: 1px solid rgba(202, 138, 4, 0.38);
  border-radius: 7px;
  background: rgba(202, 138, 4, 0.12);
  color: #FEF3C7;
  line-height: 1.05;
}

.topbar__assurance-label {
  display: block;
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(254, 243, 199, 0.72);
}

.topbar__assurance strong {
  display: block;
  margin-top: 2px;
  font-size: var(--a3-fs-meta);
  font-weight: var(--a3-fw-semibold);
}

.topbar__action {
  min-height: 34px;
  border-radius: 7px;
  border-color: rgba(226, 232, 240, 0.22);
  color: #E2E8F0;
  background: rgba(15, 23, 42, 0.16);
}

.topbar__action:hover {
  background: rgba(248, 250, 252, 0.12);
  border-color: rgba(226, 232, 240, 0.36);
}

.topbar__action--primary,
.shell[data-theme="light"] .topbar__action--primary {
  background: #F8FAFC;
  border-color: #F8FAFC;
  color: var(--a3-command-navy);
}

.topbar__user-avatar {
  border-radius: var(--a3-radius-shell);
  background: #F8FAFC;
  color: var(--a3-command-navy);
  border: 1px solid rgba(226, 232, 240, 0.36);
}

.shell[data-theme="light"] .topbar {
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.98), rgba(30, 58, 138, 0.92));
  color: #F8FAFC;
}

.shell[data-theme="light"] .topbar__client-name,
.shell[data-theme="light"] .topbar__action {
  color: #F8FAFC;
}

.shell[data-theme="light"] .topbar__brand,
.shell[data-theme="light"] .topbar__user-avatar {
  background: #F8FAFC;
  color: var(--a3-command-navy);
}

.shell[data-theme="light"] .topbar__action:not(.topbar__action--primary) {
  border-color: rgba(226, 232, 240, 0.22);
  background: rgba(15, 23, 42, 0.16);
}

.ws {
  padding: 16px 20px 24px;
  gap: 14px;
}

.ws-hero {
  min-height: 84px;
  align-items: center;
  padding: 14px 16px;
  border-radius: var(--a3-radius-shell);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025)), linear-gradient(90deg, rgba(30, 58, 138, 0.18), transparent 62%);
  border-color: var(--a3-chrome-border-strong);
}

.ws-hero__identity {
  align-items: flex-start;
}

.ws-hero__code {
  color: #DBEAFE;
  background: rgba(30, 58, 138, 0.46);
  border-color: rgba(147, 197, 253, 0.46);
}

.ws-hero__title {
  font-family: var(--a3-font-display);
  font-size: 18px;
}

.ws-hero__meta {
  margin-top: 5px;
  flex-wrap: wrap;
}

.ws-hero__progress-track {
  width: 150px;
  height: 3px;
}

.ws-run {
  grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
}

.ws-agent-status,
.ws-plan,
.stream,
.composer,
.ws-card {
  border-radius: var(--a3-radius-shell);
}

.ws-agent-status__title,
.ws-plan__head h2,
.stream__title,
.ws-card__title,
.hint-card .hint-title,
.inspector__action-btn {
  font-family: var(--a3-font-display);
}

.ws-agent-status__head {
  min-height: 36px;
}

.ws-agent-status__current {
  border-left: 3px solid var(--a3-command-gold);
  background: rgba(202, 138, 4, 0.09);
  border-color: rgba(202, 138, 4, 0.24);
}

.ws-plan {
  background: rgba(255, 255, 255, 0.032);
}

.ws-plan__head {
  background: linear-gradient(90deg, rgba(30, 58, 138, 0.16), rgba(30, 58, 138, 0.02));
}

.ws-plan-row {
  min-height: 46px;
  grid-template-columns: 72px 44px minmax(120px, 1fr) 58px 86px 72px;
  gap: 8px;
}

.ws-plan-row__role,
.ws-plan-row__code {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ws-plan-row:not(.ws-plan-row--head):hover,
.ws-plan-row.is-current {
  background: rgba(30, 58, 138, 0.16);
}

.ws-plan-row.is-current {
  box-shadow: inset 3px 0 0 var(--a3-command-gold);
}

.stream__head {
  display: flex;
  align-items: center;
  gap: 11px;
  border-bottom: 1px solid var(--a3-chrome-border);
}

.stream__avatar {
  font-family: var(--a3-font-display);
  border-radius: var(--a3-radius-shell);
}

.stream-step {
  border-bottom: 1px solid rgba(148, 163, 184, 0.10);
}

.stream-step:last-child {
  border-bottom: 0;
}

.composer {
  border-top: 2px solid rgba(30, 58, 138, 0.24);
}

.hint-card {
  min-height: 0;
  margin: 0 0 8px;
  padding: 10px 10px 11px;
  border: 1px solid var(--a3-chrome-border);
  border-radius: var(--a3-radius-shell);
  background: rgba(255, 255, 255, 0.035);
}

.hint-card:last-child {
  border-bottom: 1px solid var(--a3-chrome-border);
}

.hint-card.is-cobalt {
  background: rgba(30, 58, 138, 0.14);
  border-color: rgba(96, 165, 250, 0.34);
}

.hint-card--priority {
  border-left: 3px solid var(--a3-command-gold);
}

.hint-card__topline {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 7px;
  color: var(--a3-chrome-dim);
  font-family: var(--a3-font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hint-card .hint-title {
  font-size: var(--a3-fs-data);
  line-height: 1.25;
}

.hint-card .hint-meta {
  margin-top: 3px;
  font-family: var(--a3-font-sans);
  font-size: var(--a3-fs-meta);
}

.inspector__action-btn {
  border-radius: var(--a3-radius-shell);
  background: var(--a3-command-navy);
  color: #FFFFFF;
}

.shell[data-theme="light"] .ws-hero,
.shell[data-theme="light"] .ws-plan__head {
  background: linear-gradient(180deg, #FFFFFF, #F8FAFC), linear-gradient(90deg, rgba(30, 58, 138, 0.10), transparent 62%);
}

.shell[data-theme="light"] .ws-hero__code {
  color: #1D4ED8;
  background: #EFF6FF;
  border-color: #BFDBFE;
}

.shell[data-theme="light"] .ws-agent-status__current {
  background: #FFFBEB;
  border-color: #FDE68A;
}

.shell[data-theme="light"] .hint-card {
  background: #FFFFFF;
  border-color: var(--a3-border);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.03);
}

.shell[data-theme="light"] .hint-card.is-cobalt {
  background: #EFF6FF;
  border-color: #BFDBFE;
}

@media (max-width: 1180px) {
  .topbar__mission,
  .topbar__assurance {
    display: none;
  }
}

/* =========================================================
   FULLER OPERATIONAL LAYER — workpapers, blockers, command graph
   ========================================================= */
.shell[data-theme="light"] .topbar__action--primary,
.shell[data-theme="dark"] .topbar__action--primary {
  background: #F8FAFC;
  border-color: #F8FAFC;
  color: var(--a3-command-navy);
}

.topbar__right {
  min-width: 0;
}

.topbar__action {
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

.topbar__action--primary {
  min-width: 126px;
  font-weight: var(--a3-fw-semibold);
}

.topbar__assurance {
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

.mn-inner {
  padding: 18px 22px 28px;
  gap: 14px;
}

.mn-command {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(420px, 1.14fr);
  gap: 14px;
  border: 1px solid var(--a3-chrome-border);
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(30,58,138,0.18), rgba(15,23,42,0.04));
  padding: 12px;
}

.mn-command__main {
  min-width: 0;
}

.mn-command__eyebrow {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--a3-chrome-dim);
}

.mn-command__title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 5px;
}

.mn-command__title-row h1 {
  margin: 0;
  font-family: var(--a3-font-display);
  font-size: 19px;
  line-height: 1.15;
  color: var(--a3-chrome-text);
}

.mn-command__main p {
  max-width: 780px;
  margin: 7px 0 0;
  color: var(--a3-chrome-muted);
  font-size: var(--a3-fs-data);
}

.mn-command__progress {
  height: 5px;
  margin-top: 14px;
  border-radius: var(--a3-radius-pill);
  background: rgba(148, 163, 184, 0.20);
  overflow: hidden;
}

.mn-command__progress span {
  display: block;
  height: 100%;
  background: var(--a3-cobalt);
}

.mn-command__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.mn-command-stat {
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid var(--a3-chrome-border);
  border-radius: var(--a3-radius-shell);
  background: rgba(255,255,255,0.04);
}

.mn-command-stat span {
  display: block;
  color: var(--a3-chrome-dim);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.11em;
}

.mn-command-stat strong {
  display: block;
  margin-top: 5px;
  color: var(--a3-chrome-text);
  font-family: var(--a3-font-mono);
  font-size: var(--a3-fs-section);
  font-weight: var(--a3-fw-medium);
}

.mn-command-stat.running strong { color: #93C5FD; }
.mn-command-stat.blocked strong { color: #FCA5A5; }
.mn-command-stat.paused strong { color: #FDE68A; }

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

.mn-side-card {
  min-width: 0;
  border: 1px solid var(--a3-chrome-border);
  border-radius: var(--a3-radius-shell);
  background: rgba(255,255,255,0.04);
  overflow: hidden;
}

.mn-side-card__head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 10px;
  border-bottom: 1px solid var(--a3-chrome-border);
  color: var(--a3-chrome-dim);
  font-size: 10px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}

.mn-side-card__head strong {
  color: var(--a3-chrome-text);
  font-family: var(--a3-font-mono);
  font-weight: var(--a3-fw-medium);
}

.mn-action-row {
  width: 100%;
  min-height: 48px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 2px 8px;
  padding: 9px 10px;
  border: 0;
  border-bottom: 1px solid var(--a3-chrome-border);
  background: transparent;
  color: var(--a3-chrome-text);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}

.mn-action-row:last-child {
  border-bottom: 0;
}

.mn-action-row:hover {
  background: rgba(49, 85, 255, 0.10);
}

.mn-action-row span {
  grid-row: 1 / span 2;
  color: var(--a3-chrome-dim);
  font-family: var(--a3-font-mono);
  font-size: var(--a3-fs-label);
}

.mn-action-row strong,
.mn-action-row em {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mn-action-row strong {
  font-size: var(--a3-fs-meta);
  font-weight: var(--a3-fw-semibold);
}

.mn-action-row em {
  color: var(--a3-chrome-muted);
  font-size: var(--a3-fs-label);
  font-style: normal;
}

.mn-action-row.is-blocked {
  box-shadow: inset 3px 0 0 var(--a3-status-blocked);
}

.mn-action-row.is-pending {
  opacity: 0.82;
}

.mn-empty-line {
  padding: 12px 10px;
  color: var(--a3-chrome-muted);
  font-size: var(--a3-fs-meta);
}

.mn-toolbar {
  margin-bottom: 0;
}

.mn-canvas-wrap {
  /* Let the canvas flex-shrink so the timeline + legend below it stay on
     screen; the DAG auto-fit zoom adapts to whatever height remains. */
  min-height: 0;
}

.mn-canvas {
  min-height: 320px;
}

.vb-left {
  padding: 14px 18px 26px;
}

.vb-body {
  grid-template-columns: minmax(0, 1fr) 360px;
}

.vb-command-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 12px;
  margin-bottom: 12px;
}

.vb-command-card,
.vb-board {
  border: 1px solid var(--a3-chrome-border);
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
}

.vb-command-card {
  padding: 12px 14px;
}

.vb-command-card__head,
.vb-board__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.vb-command-card h3 {
  margin: 8px 0 0;
  font-family: var(--a3-font-display);
  color: var(--a3-chrome-text);
  font-size: 15px;
}

.vb-command-card p {
  margin: 8px 0 0;
  color: var(--a3-chrome-muted);
  font-size: var(--a3-fs-meta);
  line-height: 1.4;
}

.vb-command-card--blocker.has-blocker {
  border-color: rgba(239, 68, 68, 0.40);
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.12), rgba(255,255,255,0.025));
}

.vb-decision-grid {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 7px 10px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--a3-chrome-border);
  font-size: var(--a3-fs-meta);
}

.vb-decision-grid span {
  color: var(--a3-chrome-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 10px;
}

.vb-decision-grid strong {
  color: var(--a3-chrome-text);
  font-weight: var(--a3-fw-medium);
}

.vb-command-card__score {
  color: var(--a3-chrome-text);
  font-family: var(--a3-font-mono);
  font-size: var(--a3-fs-data);
}

.vb-readiness {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.vb-readiness div {
  padding: 9px 10px;
  border-radius: 7px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--a3-chrome-border);
}

.vb-readiness span {
  display: block;
  color: var(--a3-chrome-dim);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.vb-readiness strong {
  display: block;
  margin-top: 4px;
  color: var(--a3-chrome-text);
  font-family: var(--a3-font-mono);
  font-size: var(--a3-fs-section);
  font-weight: var(--a3-fw-medium);
}

.vb-readiness__bar {
  display: flex;
  height: 5px;
  margin-top: 12px;
  overflow: hidden;
  border-radius: var(--a3-radius-pill);
  background: rgba(148, 163, 184, 0.20);
}

.vb-readiness__bar span { display: block; }
.vb-readiness__bar .done { background: var(--a3-status-done); }
.vb-readiness__bar .running { background: var(--a3-cobalt); }
.vb-readiness__bar .blocked { background: var(--a3-status-blocked); }

.vb-board {
  margin-bottom: 12px;
  overflow: hidden;
}

.vb-board__head {
  padding: 13px 14px;
  border-bottom: 1px solid var(--a3-chrome-border);
}

.vb-board__head > span {
  color: var(--a3-chrome-muted);
  font-size: var(--a3-fs-meta);
}

.vb-board__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  padding: 0;
}

.vb-board-card {
  min-width: 0;
  min-height: 46px;
  display: grid;
  grid-template-columns: 22px 58px minmax(150px, 1fr) minmax(150px, 0.8fr) 120px 86px minmax(150px, 0.8fr) 52px;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 0;
  border-bottom: 1px solid var(--a3-chrome-border);
  border-radius: 0;
  background: transparent;
  cursor: pointer;
  transition: background 150ms ease, border-color 150ms ease;
}

.vb-board-card:hover,
.vb-board-card.is-selected {
  background: rgba(49, 85, 255, 0.10);
  border-color: rgba(96, 165, 250, 0.38);
}

.vb-board-card.is-selected {
  box-shadow: inset 3px 0 0 var(--a3-command-gold);
}

.vb-board-card.is-blocked {
  border-color: var(--a3-chrome-border);
  background: rgba(239, 68, 68, 0.08);
}

.vb-board-card__drag {
  color: var(--a3-chrome-dim);
  font-family: var(--a3-font-mono);
  font-size: var(--a3-fs-meta);
  cursor: grab;
}

.vb-board-card__head,
.vb-board-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.vb-board-card__code {
  color: var(--a3-chrome-dim);
  font-family: var(--a3-font-mono);
  font-size: var(--a3-fs-label);
}

.vb-board-card__title {
  color: var(--a3-chrome-text);
  font-family: var(--a3-font-display);
  font-size: var(--a3-fs-data);
  line-height: 1.25;
}

.vb-board-card__meta,
.vb-board-card__foot {
  color: var(--a3-chrome-muted);
  font-size: var(--a3-fs-meta);
}

.vb-board-card__bar {
  height: 4px;
  margin-top: 0;
  border-radius: var(--a3-radius-pill);
  overflow: hidden;
  background: rgba(148, 163, 184, 0.20);
}

.vb-board-card__bar span {
  display: block;
  height: 100%;
  background: var(--a3-cobalt);
}

.vb-board-card.is-blocked .vb-board-card__bar span {
  background: var(--a3-status-blocked);
}

.vb-board-card__open {
  border: 0;
  padding: 0;
  background: transparent;
  color: #93C5FD;
  font: inherit;
  font-weight: var(--a3-fw-semibold);
  cursor: pointer;
}

.vb-board-card__open:hover {
  color: #DBEAFE;
}

.vb-workbench {
  grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
}

.vb-deps .dag {
  height: 300px;
}

.shell[data-theme="light"] .mn-command,
.shell[data-theme="light"] .mn-side-card,
.shell[data-theme="light"] .mn-command-stat,
.shell[data-theme="light"] .vb-command-card,
.shell[data-theme="light"] .vb-board,
.shell[data-theme="light"] .vb-board-card,
.shell[data-theme="light"] .lsidebar-client {
  background: #FFFFFF;
  border-color: var(--a3-border);
  color: var(--a3-text-primary);
}

.shell[data-theme="light"] .mn-command {
  background: linear-gradient(135deg, #FFFFFF, #F6F8FF);
}

.shell[data-theme="light"] .mn-command__title-row h1,
.shell[data-theme="light"] .mn-command-stat strong,
.shell[data-theme="light"] .mn-side-card__head strong,
.shell[data-theme="light"] .mn-action-row,
.shell[data-theme="light"] .lsidebar-client__name,
.shell[data-theme="light"] .vb-command-card h3,
.shell[data-theme="light"] .vb-decision-grid strong,
.shell[data-theme="light"] .vb-command-card__score,
.shell[data-theme="light"] .vb-readiness strong,
.shell[data-theme="light"] .vb-board-card__title {
  color: var(--a3-text-primary);
}

.shell[data-theme="light"] .mn-command__eyebrow,
.shell[data-theme="light"] .mn-command__main p,
.shell[data-theme="light"] .mn-side-card__head,
.shell[data-theme="light"] .mn-action-row span,
.shell[data-theme="light"] .mn-action-row em,
.shell[data-theme="light"] .mn-empty-line,
.shell[data-theme="light"] .lsidebar-client__meta,
.shell[data-theme="light"] .vb-command-card p,
.shell[data-theme="light"] .vb-decision-grid span,
.shell[data-theme="light"] .vb-readiness span,
.shell[data-theme="light"] .vb-board__head > span,
.shell[data-theme="light"] .vb-board-card__code,
.shell[data-theme="light"] .vb-board-card__meta,
.shell[data-theme="light"] .vb-board-card__foot {
  color: var(--a3-text-secondary);
}

.shell[data-theme="light"] .mn-action-row:hover,
.shell[data-theme="light"] .vb-board-card:hover,
.shell[data-theme="light"] .vb-board-card.is-selected {
  background: #EEF3FF;
}

.shell[data-theme="light"] .vb-command-card--blocker.has-blocker,
.shell[data-theme="light"] .vb-board-card.is-blocked {
  background: #FFF1F2;
  border-color: #FECACA;
}

.shell[data-theme="light"] .vb-board-card__open {
  color: var(--a3-cobalt);
}

@media (max-width: 1360px) {
  .mn-command {
    grid-template-columns: 1fr;
  }
  .vb-board-card {
    grid-template-columns: 20px 50px minmax(120px, 1fr) 94px 90px 78px minmax(120px, 0.8fr) 48px;
  }
}

@media (max-width: 1180px) {
  .mn-command__side,
  .vb-command-grid,
  .vb-workbench {
    grid-template-columns: 1fr;
  }
  .vb-board-card {
    grid-template-columns: 20px 48px minmax(140px, 1fr) 82px 72px;
  }
  .vb-board-card__meta,
  .vb-board-card__foot {
    display: none;
  }
}

.mn-list__header,
.mn-list__row {
  grid-template-columns: 54px 48px 1fr 1fr 120px 52px 84px;
}

.mn-list__pct { text-align: right; font-variant-numeric: tabular-nums; }
.mn-list__header > span:last-child { text-align: right; }

.mn-list__order {
  color: var(--a3-text-secondary);
  font-family: var(--a3-font-mono);
  font-size: var(--a3-fs-label);
  cursor: grab;
}

.mn-list__row[draggable="true"] {
  cursor: grab;
}

.inspector-nav-row {
  min-width: 0;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 9px;
  border: 1px solid var(--a3-border);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--a3-text-secondary);
  font: inherit;
  font-size: var(--a3-fs-meta);
  cursor: pointer;
  transition: background 150ms ease, border-color 150ms ease, color 150ms ease;
}

.inspector-nav-row:hover,
.inspector-nav-row--active {
  background: var(--a3-cobalt-tint);
  border-color: var(--a3-cobalt-ring);
  color: var(--a3-cobalt);
}

.action-row {
  width: 100%;
  border-left: 0;
  border-right: 0;
  border-top: 0;
  background: transparent;
  color: inherit;
  font-family: inherit;
  text-align: left;
}

.inspector__notice,
.composer__notice,
.vb-agent__notice {
  border: 1px solid var(--a3-cobalt-ring);
  border-radius: var(--a3-radius-card);
  background: var(--a3-cobalt-tint);
  color: var(--a3-cobalt);
  font-size: var(--a3-fs-meta);
  line-height: 1.45;
}

.inspector__notice {
  margin-top: 10px;
  padding: 8px 10px;
}

.composer__notice {
  padding: 7px 9px;
}

.vb-agent__notice {
  margin: 10px 12px 12px;
  padding: 7px 9px;
}

.composer__chip {
  font-family: inherit;
}

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

.composer__chip:disabled:hover {
  color: var(--a3-chrome-muted);
  border-color: var(--a3-chrome-border);
}

.stream-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--a3-chrome-border);
  background: rgba(34, 197, 94, 0.08);
}

.stream-summary__main {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.stream-summary__icon {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.16);
  color: var(--a3-status-done);
}

.stream-summary strong,
.stream-summary span {
  display: block;
}

.stream-summary strong {
  color: var(--a3-chrome-text);
  font-size: var(--a3-fs-data);
  font-weight: var(--a3-fw-semibold);
}

.stream-summary span {
  margin-top: 3px;
  color: var(--a3-chrome-muted);
  font-size: var(--a3-fs-meta);
  line-height: 1.4;
}

.stream-summary__actions {
  flex: 0 0 auto;
  display: flex;
  gap: 8px;
}

.ws-agent-info__value--wrap,
.ws-agent-info__row > .ws-agent-info__value--wrap {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  line-height: 1.35;
}

.vb-agent__composer {
  gap: 8px;
}

.vb-agent__input {
  min-width: 0;
}

.shell[data-theme="light"] .stream-summary {
  border-color: var(--a3-border);
  background: #F0FDF4;
}

.shell[data-theme="light"] .stream-summary strong {
  color: var(--a3-text-primary);
}

.shell[data-theme="light"] .stream-summary span {
  color: var(--a3-text-secondary);
}

.shell[data-theme="light"] .inspector-nav-row {
  background: #FFFFFF;
  border-color: var(--a3-border);
  color: var(--a3-text-secondary);
}

.shell[data-theme="light"] .inspector-nav-row:hover,
.shell[data-theme="light"] .inspector-nav-row--active {
  background: var(--a3-cobalt-tint);
  border-color: var(--a3-cobalt-ring);
  color: var(--a3-cobalt);
}

@media (max-width: 1180px) {
  .stream-summary {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Agent-supervision refactor */
.lsidebar-agent {
  margin: 0 14px 14px;
  padding: 12px;
  border: 1px solid var(--a3-chrome-border);
  border-radius: var(--a3-radius-shell);
  background: rgba(47, 85, 255, 0.08);
}

.lsidebar-agent.is-blocked {
  background: rgba(47, 85, 255, 0.08);
  border-color: var(--a3-chrome-border);
}

.lsidebar-agent__eyebrow {
  color: var(--a3-chrome-dim);
  font-size: var(--a3-fs-label);
  letter-spacing: var(--a3-track-label);
  text-transform: uppercase;
}

.lsidebar-agent__title {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.lsidebar-agent__title > span {
  font-family: var(--a3-font-mono);
  color: var(--a3-chrome-dim);
  font-size: var(--a3-fs-label);
}

.lsidebar-agent__title strong {
  min-width: 0;
  color: var(--a3-chrome-text);
  font-family: var(--a3-font-display);
  font-size: var(--a3-fs-data);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lsidebar-agent__meta {
  margin-top: 8px;
  color: var(--a3-chrome-muted);
  font-size: var(--a3-fs-meta);
  line-height: 1.4;
}

.lsidebar-agent__bar {
  height: 4px;
  margin-top: 10px;
  overflow: hidden;
  border-radius: var(--a3-radius-pill);
  background: rgba(148, 163, 184, 0.26);
}

.lsidebar-agent__bar span {
  display: block;
  height: 100%;
  background: var(--a3-cobalt);
}

/* inspector context tabs — compact list inside inspector body */
.inspector-context-tabs {
  display: grid;
  gap: 2px;
  margin-top: 4px;
}

.lsidebar-checklist {
  margin-top: 14px;
  padding: 0 14px;
}

.lsidebar-check {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 28px;
  color: var(--a3-chrome-muted);
  font-size: var(--a3-fs-meta);
}

.lsidebar-check span {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--a3-chrome-border);
  color: var(--a3-chrome-dim);
  font-size: 10px;
}

.lsidebar-check em {
  min-width: 0;
  overflow: hidden;
  color: inherit;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lsidebar-check.is-ok span {
  border-color: rgba(34, 197, 94, 0.42);
  background: rgba(34, 197, 94, 0.14);
  color: var(--a3-status-done);
}

.lsidebar-check.is-warn span {
  border-color: rgba(239, 68, 68, 0.42);
  background: rgba(239, 68, 68, 0.14);
  color: var(--a3-status-blocked);
}

.mn-command__brief {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.mn-command__brief span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 9px;
  border: 1px solid var(--a3-chrome-border);
  border-radius: var(--a3-radius-card);
  color: var(--a3-chrome-muted);
  font-size: var(--a3-fs-meta);
}

.mn-toolbar__hint {
  color: var(--a3-chrome-muted);
  font-size: var(--a3-fs-meta);
}

.vb-body {
  padding-top: 20px;
}

.vb-agent-console {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 12px;
  margin-bottom: 12px;
  padding: 16px;
  border: 1px solid var(--a3-chrome-border);
  border-radius: var(--a3-radius-shell);
  background: rgba(255, 255, 255, 0.03);
}

.vb-agent-console.is-blocked {
  border-color: rgba(239, 68, 68, 0.34);
  background: rgba(239, 68, 68, 0.08);
}

.vb-agent-console h1 {
  margin: 5px 0 0;
  color: var(--a3-chrome-text);
  font-family: var(--a3-font-display);
  font-size: var(--a3-fs-title);
}

.vb-agent-console p {
  margin: 8px 0 0;
  color: var(--a3-chrome-muted);
  font-size: var(--a3-fs-data);
  line-height: 1.5;
}

.vb-agent-console__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.vb-agent-console__facts span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border: 1px solid var(--a3-chrome-border);
  border-radius: var(--a3-radius-card);
  color: var(--a3-chrome-muted);
  font-size: var(--a3-fs-meta);
}

.vb-agent-console__decision {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--a3-chrome-border);
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.12);
}

.vb-agent-console__decision strong {
  color: var(--a3-chrome-text);
  font-size: var(--a3-fs-data);
}

.vb-agent-console__decision em {
  color: var(--a3-chrome-muted);
  font-size: var(--a3-fs-meta);
  font-style: normal;
}

.vb-board-card {
  grid-template-columns: 22px 58px minmax(150px, 1fr) minmax(150px, 0.8fr) 86px minmax(150px, 0.8fr) 52px;
}

.ws-supervision,
.ws-review {
  border: 1px solid var(--a3-chrome-border);
  border-radius: var(--a3-radius-shell);
  background: rgba(255, 255, 255, 0.03);
}

.ws-supervision {
  padding: 16px;
}

.ws-supervision.is-blocked {
  border-color: rgba(239, 68, 68, 0.34);
  background: rgba(239, 68, 68, 0.08);
}

.ws-supervision__head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ws-supervision__head h1 {
  margin: 3px 0 0;
  color: var(--a3-chrome-text);
  font-family: var(--a3-font-display);
  font-size: var(--a3-fs-title);
}

.ws-supervision__head .badge {
  margin-left: auto;
}

.ws-supervision__body {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 12px;
  margin-top: 14px;
}

.ws-supervision__body > div,
.ws-review__card {
  padding: 12px;
  border: 1px solid var(--a3-chrome-border);
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.10);
}

.ws-supervision__body span,
.ws-review__card span {
  display: block;
  color: var(--a3-chrome-dim);
  font-size: var(--a3-fs-label);
  letter-spacing: var(--a3-track-label);
  text-transform: uppercase;
}

.ws-supervision__body strong,
.ws-review__card strong {
  display: block;
  margin-top: 7px;
  color: var(--a3-chrome-text);
  font-size: var(--a3-fs-data);
}

.ws-supervision__body em,
.ws-review__card em {
  display: block;
  margin-top: 5px;
  color: var(--a3-chrome-muted);
  font-size: var(--a3-fs-meta);
  font-style: normal;
  line-height: 1.45;
}

.ws-supervision__actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 14px;
}

.ws-review {
  overflow: hidden;
}

.ws-review__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--a3-chrome-border);
}

.ws-review__head h2 {
  margin: 3px 0 0;
  color: var(--a3-chrome-text);
  font-size: 17px;
}

.ws-review__head > span {
  color: var(--a3-chrome-dim);
  font-size: var(--a3-fs-meta);
}

.ws-review__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 12px 16px;
}

.ws-review__done-list {
  display: grid;
  gap: 1px;
  padding: 0 16px 14px;
}

.ws-review__done-item {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--a3-chrome-border);
  background: rgba(255, 255, 255, 0.025);
  color: var(--a3-chrome-text);
  font-size: var(--a3-fs-data);
}

.ws-review__done-item:first-child {
  border-radius: 6px 6px 0 0;
}

.ws-review__done-item:last-child {
  border-radius: 0 0 6px 6px;
}

.ws-review__done-item svg {
  color: var(--a3-status-done);
  flex: 0 0 auto;
}

.ws-review__done-item.is-muted {
  color: var(--a3-chrome-muted);
}

.ws-review-panel {
  display: grid;
  gap: 8px;
}

.ws-review-panel strong {
  color: var(--a3-chrome-text);
}

.ws-review-panel span {
  color: var(--a3-chrome-muted);
  font-size: var(--a3-fs-meta);
  line-height: 1.45;
}

.task-panel-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  padding: 12px;
  border-bottom: 1px solid var(--color-border-tertiary);
}

.task-panel-tab {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 9px;
  border: 1px solid var(--a3-border);
  border-radius: 7px;
  background: var(--a3-surface);
  color: var(--a3-text-secondary);
  font: inherit;
  font-size: var(--a3-fs-meta);
  cursor: pointer;
}

.task-panel-tab--active,
.task-panel-tab:hover {
  background: var(--a3-cobalt-tint);
  border-color: var(--a3-cobalt-ring);
  color: var(--a3-cobalt);
}

.task-trail-row {
  display: grid;
  gap: 4px;
  padding: 10px 0;
  border-bottom: 1px solid var(--a3-border-soft);
}

.task-trail-row span {
  color: var(--a3-text-secondary);
  font-family: var(--a3-font-mono);
  font-size: var(--a3-fs-label);
}

.task-trail-row strong {
  color: var(--a3-text-primary);
  font-size: var(--a3-fs-meta);
}

.task-trail-row em {
  color: var(--a3-text-secondary);
  font-size: var(--a3-fs-label);
  font-style: normal;
  line-height: 1.45;
}

.task-check-list {
  display: grid;
  gap: 8px;
}

.task-check-list span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--a3-text-primary);
  font-size: var(--a3-fs-meta);
}

.shell[data-theme="light"] .lsidebar-agent,
.shell[data-theme="light"] .vb-agent-console,
.shell[data-theme="light"] .ws-supervision,
.shell[data-theme="light"] .ws-review {
  background: #FFFFFF;
  border-color: var(--a3-border);
}

.shell[data-theme="light"] .lsidebar-agent.is-blocked {
  background: #FFFFFF;
  border-color: var(--a3-border);
}

.shell[data-theme="light"] .vb-agent-console.is-blocked,
.shell[data-theme="light"] .ws-supervision.is-blocked {
  background: #FFF1F2;
  border-color: #FECACA;
}

.shell[data-theme="light"] .lsidebar-agent__title strong,
.shell[data-theme="light"] .vb-agent-console h1,
.shell[data-theme="light"] .vb-agent-console__decision strong,
.shell[data-theme="light"] .ws-supervision__head h1,
.shell[data-theme="light"] .ws-supervision__body strong,
.shell[data-theme="light"] .ws-review__head h2,
.shell[data-theme="light"] .ws-review__card strong,
.shell[data-theme="light"] .ws-review__done-item,
.shell[data-theme="light"] .ws-review-panel strong {
  color: var(--a3-text-primary);
}

.shell[data-theme="light"] .lsidebar-agent__meta,
.shell[data-theme="light"] .vb-agent-console p,
.shell[data-theme="light"] .vb-agent-console__facts span,
.shell[data-theme="light"] .vb-agent-console__decision em,
.shell[data-theme="light"] .ws-supervision__body em,
.shell[data-theme="light"] .ws-review__card em,
.shell[data-theme="light"] .ws-review__head > span,
.shell[data-theme="light"] .ws-review-panel span {
  color: var(--a3-text-secondary);
}

.shell[data-theme="light"] .ws-supervision__body > div,
.shell[data-theme="light"] .ws-review__card,
.shell[data-theme="light"] .vb-agent-console__decision,
.shell[data-theme="light"] .ws-review__done-item {
  background: var(--a3-canvas);
  border-color: var(--a3-border);
}

@media (max-width: 1180px) {
  .vb-agent-console,
  .ws-supervision__body,
  .ws-review__grid {
    grid-template-columns: 1fr;
  }
}

.lnav-bereich,
.lnav-sheet {
  display: flex !important;
  align-items: center;
  gap: 8px;
}

.lnav-bereich__name,
.lnav-sheet__name {
  flex: 1 1 auto;
  min-width: 0;
}

/* ─── Floating Composer (Dia-style) ─── */

.floating-composer-pill {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9000;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid var(--a3-chrome-border);
  border-radius: var(--a3-radius-pill);
  background: var(--a3-chrome-panel);
  color: var(--a3-chrome-text);
  font: inherit;
  font-size: var(--a3-fs-data);
  cursor: pointer;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.28);
  transition: background 150ms ease, box-shadow 150ms ease;
}

.floating-composer-pill:hover {
  background: var(--a3-cobalt-tint);
  box-shadow: 0 6px 32px rgba(0, 0, 0, 0.36);
}

.floating-composer {
  position: fixed;
  z-index: 9000;
  width: 400px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--a3-chrome-border);
  border-radius: 12px;
  background: var(--a3-chrome-panel);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.32);
}

.floating-composer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid var(--a3-chrome-border);
  cursor: grab;
  user-select: none;
  font-size: var(--a3-fs-data);
  font-weight: var(--a3-fw-semibold);
  color: var(--a3-chrome-text);
}

.floating-composer.is-dragging .floating-composer__head {
  cursor: grabbing;
}

.floating-composer.is-dragging {
  user-select: none;
}

.floating-composer__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: none;
  border-radius: var(--a3-radius-card);
  background: transparent;
  color: var(--a3-chrome-muted);
  cursor: pointer;
  transition: background 120ms ease;
}

.floating-composer__close:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--a3-chrome-text);
}

.floating-composer__textarea {
  display: block;
  width: 100%;
  min-height: 80px;
  max-height: 200px;
  padding: 12px 14px;
  border: none;
  background: transparent;
  color: var(--a3-chrome-text);
  font: inherit;
  font-size: var(--a3-fs-data);
  line-height: 1.5;
  resize: vertical;
  outline: none;
}

.floating-composer__textarea::placeholder {
  color: var(--a3-chrome-muted);
}

.floating-composer__notice {
  padding: 0 14px 8px;
  color: var(--a3-cobalt);
  font-size: var(--a3-fs-meta);
}

.floating-composer__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-top: 1px solid var(--a3-chrome-border);
}

.floating-composer__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  flex: 1;
}

/* light theme overrides for floating composer */
.shell[data-theme="light"] .floating-composer-pill {
  background: #FFFFFF;
  border-color: var(--a3-border);
  color: var(--a3-text-primary);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.10);
}

.shell[data-theme="light"] .floating-composer-pill:hover {
  background: var(--a3-cobalt-tint);
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.14);
}

.shell[data-theme="light"] .floating-composer {
  background: #FFFFFF;
  border-color: var(--a3-border);
  box-shadow: 0 8px 36px rgba(0, 0, 0, 0.12);
}

.shell[data-theme="light"] .floating-composer__head {
  border-bottom-color: var(--a3-border);
  color: var(--a3-text-primary);
}

.shell[data-theme="light"] .floating-composer__close:hover {
  background: var(--a3-surface);
  color: var(--a3-text-primary);
}

.shell[data-theme="light"] .floating-composer__textarea {
  color: var(--a3-text-primary);
}

.shell[data-theme="light"] .floating-composer__textarea::placeholder {
  color: var(--a3-text-secondary);
}

.shell[data-theme="light"] .floating-composer__bar {
  border-top-color: var(--a3-border);
}


/* ═══════════════════════════════════════════════════════════
   Sprint 4 — Tour Overlay + Engagement Setup
   ═══════════════════════════════════════════════════════════ */

/* ─── Tour Backdrop ─── */

.tour-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9500;
  background: rgba(0, 0, 0, 0.4);
  pointer-events: auto;
}

/* ─── Tour Spotlight ─── */

.tour-spotlight {
  position: fixed;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.4);
  pointer-events: none;
}

/* ─── Tour Tooltip ─── */

.tour-tooltip {
  position: fixed;
  max-width: 340px;
  background: var(--a3-chrome-panel, #1C2128);
  border: 1px solid var(--color-border-secondary);
  border-radius: var(--a3-radius-shell, 8px);
  padding: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  z-index: 9501;
  animation: tour-fade-in 200ms ease-out;
}

@keyframes tour-fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.tour-tooltip__title {
  font-weight: var(--a3-fw-semibold, 600);
  font-size: var(--a3-fs-body, 13px);
  color: var(--a3-chrome-text, #E6EDF3);
  margin-bottom: 8px;
}

.tour-tooltip__body {
  font-size: var(--a3-fs-meta, 12px);
  color: var(--a3-chrome-muted, #8B949E);
  line-height: 1.5;
  margin-bottom: 16px;
}

.tour-tooltip__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tour-tooltip__steps {
  font-size: var(--a3-fs-label);
  font-family: var(--a3-ff-mono, monospace);
  color: var(--a3-chrome-muted, #8B949E);
}

.tour-tooltip__actions {
  display: flex;
  gap: 8px;
}

.tour-tooltip__btn {
  padding: 6px 12px;
  border: none;
  border-radius: var(--a3-radius-input);
  font-size: var(--a3-fs-meta, 12px);
  font-family: inherit;
  cursor: pointer;
  transition: background 120ms ease;
}

.tour-tooltip__btn--primary {
  background: var(--a3-cobalt, #4A90D9);
  color: #FFFFFF;
}

.tour-tooltip__btn--primary:hover {
  opacity: 0.88;
}

.tour-tooltip__btn--skip {
  background: transparent;
  color: var(--a3-chrome-muted, #8B949E);
  padding: 6px 8px;
}

.tour-tooltip__btn--skip:hover {
  text-decoration: underline;
}

/* ─── Tour Arrow ─── */

.tour-tooltip__arrow {
  position: absolute;
  width: 0;
  height: 0;
}

.tour-tooltip__arrow--up {
  top: -8px;
  left: 50%;
  margin-left: -8px;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid var(--a3-chrome-panel, #1C2128);
}

.tour-tooltip__arrow--down {
  bottom: -8px;
  left: 50%;
  margin-left: -8px;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid var(--a3-chrome-panel, #1C2128);
}

.tour-tooltip__arrow--left {
  top: 50%;
  left: -8px;
  margin-top: -8px;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-right: 8px solid var(--a3-chrome-panel, #1C2128);
}

.tour-tooltip__arrow--right {
  top: 50%;
  right: -8px;
  margin-top: -8px;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 8px solid var(--a3-chrome-panel, #1C2128);
}

/* ─── Engagement Setup ─── */

.engagement-setup {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px;
  padding: 40px;
}

.engagement-setup__card {
  max-width: 560px;
  width: 100%;
}

.engagement-setup__heading {
  font-size: 18px;
  font-weight: var(--a3-fw-semibold, 600);
  color: var(--a3-chrome-text, #E6EDF3);
  margin: 0 0 8px;
}

.engagement-setup__subtitle {
  font-size: var(--a3-fs-meta, 12px);
  color: var(--a3-chrome-muted, #8B949E);
  margin: 0 0 24px;
}

.engagement-setup__section-label {
  font-size: var(--a3-fs-label);
  font-weight: var(--a3-fw-semibold, 600);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--a3-chrome-muted, #8B949E);
  margin-bottom: 8px;
}

.engagement-setup__templates {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.template-card {
  border: 1px solid var(--color-border-secondary);
  border-radius: var(--a3-radius-shell, 8px);
  padding: 16px;
  cursor: pointer;
  background: transparent;
  text-align: left;
  font-family: inherit;
  transition: border-color 120ms ease;
  width: 100%;
}

.template-card:hover {
  border-color: var(--a3-cobalt, #4A90D9);
}

.template-card__name {
  font-weight: var(--a3-fw-semibold, 600);
  font-size: var(--a3-fs-body, 13px);
  color: var(--a3-chrome-text, #E6EDF3);
}

.template-card__desc {
  font-size: var(--a3-fs-meta, 12px);
  color: var(--a3-chrome-muted, #8B949E);
  margin-top: 4px;
}

.template-card__count {
  font-size: var(--a3-fs-label);
  font-family: var(--a3-ff-mono, monospace);
  color: var(--a3-chrome-muted, #8B949E);
  margin-top: 8px;
}

.engagement-setup__or {
  text-align: center;
  color: var(--a3-chrome-muted, #8B949E);
  font-size: var(--a3-fs-meta, 12px);
  margin: 16px 0;
}

.engagement-setup__manual {
  text-align: center;
}

/* ─── Dark theme overrides (Sprint 4) ─── */

.shell[data-theme="dark"] .tour-backdrop {
  background: rgba(0, 0, 0, 0.5);
}

.shell[data-theme="dark"] .tour-spotlight {
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.5);
}

/* ─── Light theme overrides (Sprint 4) ─── */

.shell[data-theme="light"] .tour-tooltip {
  background: #FFFFFF;
  border-color: var(--a3-border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.shell[data-theme="light"] .tour-tooltip__title {
  color: var(--a3-text-primary);
}

.shell[data-theme="light"] .tour-tooltip__body {
  color: var(--a3-text-secondary);
}

.shell[data-theme="light"] .tour-tooltip__steps {
  color: var(--a3-text-secondary);
}

.shell[data-theme="light"] .tour-tooltip__arrow--up {
  border-bottom-color: #FFFFFF;
}

.shell[data-theme="light"] .tour-tooltip__arrow--down {
  border-top-color: #FFFFFF;
}

.shell[data-theme="light"] .tour-tooltip__arrow--left {
  border-right-color: #FFFFFF;
}

.shell[data-theme="light"] .tour-tooltip__arrow--right {
  border-left-color: #FFFFFF;
}

.shell[data-theme="light"] .template-card {
  border-color: var(--a3-border);
}

.shell[data-theme="light"] .template-card:hover {
  border-color: var(--a3-cobalt, #4A90D9);
}

.shell[data-theme="light"] .template-card__name {
  color: var(--a3-text-primary);
}

.shell[data-theme="light"] .template-card__desc {
  color: var(--a3-text-secondary);
}

.shell[data-theme="light"] .template-card__count {
  color: var(--a3-text-secondary);
}

.shell[data-theme="light"] .engagement-setup__heading {
  color: var(--a3-text-primary);
}

.shell[data-theme="light"] .engagement-setup__subtitle {
  color: var(--a3-text-secondary);
}

.shell[data-theme="light"] .engagement-setup__section-label {
  color: var(--a3-text-secondary);
}

.shell[data-theme="light"] .engagement-setup__or {
  color: var(--a3-text-secondary);
}

/* Fix pass: stable rails, fixed inspector surfaces, dependency toggle */
.lsidebar--collapsed {
  width: 48px;
  padding: 8px 0;
  align-items: center;
}

.lsidebar--collapsed .lsidebar__toggle,
.lsidebar--collapsed .lnav-item,
.lnav-mini-bereich {
  width: 40px;
  min-width: 40px;
  height: 40px;
  min-height: 40px;
  margin-left: auto;
  margin-right: auto;
  border-radius: 9px;
}

.lsidebar--collapsed .lsidebar__toggle,
.lsidebar--collapsed .lnav-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.lsidebar--collapsed .lnav-item {
  padding: 0;
  gap: 0;
}

.lsidebar--collapsed .lnav-item__icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.lsidebar__collapsed-divider {
  width: 28px;
  margin: 10px auto 8px;
}

.lsidebar__collapsed-bereiche {
  width: 100%;
  display: grid;
  justify-items: center;
  gap: 6px;
}

.lnav-mini-bereich {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: var(--a3-chrome-dim);
}

.lnav-mini-bereich__dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 7px;
  height: 7px;
}

.lnav-mini-bereich__code {
  text-align: center;
  font-size: var(--a3-fs-label);
  font-weight: var(--a3-fw-medium);
  letter-spacing: -0.01em;
  line-height: 1;
}

.inspector {
  position: relative;
  background: var(--a3-chrome-panel-2);
}

.inspector__tab-rail {
  width: 44px;
  min-width: 44px;
  align-items: center;
  background: var(--a3-chrome-panel-2);
}

.inspector__tab-btn {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
}

.inspector__head {
  position: sticky;
  top: 0;
  z-index: 3;
  background: var(--a3-chrome-panel-2);
}

.inspector__body {
  background: var(--a3-chrome-panel-2);
}

.freigaben-item {
  background: rgba(255, 255, 255, 0.035);
  color: var(--a3-chrome-text);
}

.freigaben-item__body {
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.freigaben-item__title {
  color: var(--a3-chrome-text);
}

.freigaben-item__detail,
.freigaben-item__meta,
.freigaben-item__ts,
.freigaben-item__actions {
  color: var(--a3-chrome-muted);
}

.freigaben-action {
  color: var(--a3-chrome-muted);
}

.freigaben-action--approve {
  background: var(--a3-cobalt);
  color: #FFFFFF;
}

.freigaben-action--reject {
  border-color: rgba(255, 255, 255, 0.12);
}

.shell[data-theme="light"] .inspector,
.shell[data-theme="light"] .inspector__head,
.shell[data-theme="light"] .inspector__body,
.shell[data-theme="light"] .inspector__tab-rail {
  background: var(--color-background-primary);
}

.shell[data-theme="light"] .freigaben-item {
  color: var(--a3-text-primary);
}

.shell[data-theme="light"] .freigaben-item__title {
  color: var(--a3-text-primary);
}

.shell[data-theme="light"] .freigaben-item__detail,
.shell[data-theme="light"] .freigaben-item__meta,
.shell[data-theme="light"] .freigaben-item__ts,
.shell[data-theme="light"] .freigaben-item__actions {
  color: var(--a3-text-secondary);
}

.inspector--collapsed .inspector__collapse-toggle,
.inspector__tab-rail .inspector__tab-btn,
.inspector__rail-item {
  width: 36px;
  min-width: 36px;
  height: 36px;
  min-height: 36px;
  margin-left: auto;
  margin-right: auto;
}

.inspector--collapsed .inspector__collapse-toggle {
  margin-top: 0;
  margin-bottom: 8px;
  border-radius: var(--a3-radius-shell);
}

.inspector__tab-rail,
.inspector__icon-rail {
  align-items: center;
}

.inspector__label--sub {
  margin-top: 14px;
}

.inspector-stub--compact {
  padding: 12px;
  text-align: left;
  margin-bottom: 10px;
}

.freigaben-item.is-approve {
  background: rgba(34, 197, 94, 0.08);
}

.freigaben-item.is-reject {
  background: rgba(239, 68, 68, 0.08);
}

.freigaben-item.is-escalate {
  background: rgba(49, 85, 255, 0.08);
}

.freigaben-action:disabled {
  cursor: default;
  opacity: 0.35;
  pointer-events: none;
}

.freigaben-action--approve:disabled {
  background: var(--a3-cobalt);
  color: #FFFFFF;
}

.freigaben-action:disabled:hover {
  background: transparent;
  color: inherit;
}

.zeitplan-sort {
  align-items: center;
}

.zeitplan-sort__label {
  color: var(--a3-text-secondary);
  font-size: var(--a3-fs-label);
  margin-right: 2px;
}

.zeitplan-head,
.zeitplan-row {
  display: grid;
  grid-template-columns: 18px 44px minmax(74px, 1fr) minmax(74px, 1fr) 40px;
  align-items: center;
  gap: 10px;
}

.zeitplan-head {
  padding: 4px 0 8px;
  color: var(--a3-text-secondary);
  font-size: var(--a3-fs-label);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.zeitplan-row {
  min-height: 36px;
  padding: 6px 2px;
}

.zeitplan-row__code {
  min-width: 0;
}

.zeitplan-row__target,
.zeitplan-row__projected,
.zeitplan-row__delta {
  min-width: 0;
  text-align: left;
}

.shell[data-theme="light"] .freigaben-item.is-approve {
  background: rgba(34, 197, 94, 0.04);
}

.shell[data-theme="light"] .freigaben-item.is-reject {
  background: rgba(239, 68, 68, 0.04);
}

.shell[data-theme="light"] .freigaben-item.is-escalate {
  background: rgba(49, 85, 255, 0.04);
}

.vb-left--deps-closed .vb-deps {
  min-height: 40px;
}

.vb-left--deps-closed .vb-deps__head {
  min-height: 40px;
  padding: 0;
  border: 0;
  justify-content: flex-start;
}

.vb-left--deps-closed .vb-dag-toggle {
  margin: 0;
}

/* Focused redesign pass: left nav, Bereich overview, inspector utility */
.lsidebar-client {
  margin: 10px 12px 8px;
  padding: 9px 10px;
  border-radius: var(--a3-radius-shell);
}

.lsidebar-client__name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lsidebar-client__meta {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lsidebar-client__bar {
  margin-top: 8px;
}

.lsidebar nav[aria-label="Mandantenübersicht"] .lsidebar__group {
  padding-bottom: 4px;
}

.lsidebar__divider {
  margin-top: 6px;
}

.lsidebar__section-label {
  padding-top: 10px;
}

.vb-body {
  grid-template-columns: minmax(0, 1fr);
  padding-top: 0;
  height: auto;
  min-height: 0;
  position: relative;
}

/* Content-sized column: the child count varies (loading note, area meta),
   so a fixed 3-row grid misassigns rows and clips the dependency graph.
   The whole view scrolls inside .main instead. */
.vb-left {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
  padding: 14px 18px;
}

.vb-agent-console {
  margin-bottom: 0;
  padding: 14px 16px;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
}

.vb-agent-console h1 {
  font-size: 18px;
}

.vb-agent-console p {
  margin-top: 6px;
}

.vb-agent-console__facts button,
.inspector-relief button,
.inspector-focus__actions button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  border: 1px solid var(--a3-chrome-border);
  border-radius: var(--a3-radius-card);
  background: rgba(255, 255, 255, 0.04);
  color: var(--a3-chrome-muted);
  font: inherit;
  font-size: var(--a3-fs-meta);
  cursor: pointer;
  transition: background 150ms ease, border-color 150ms ease, color 150ms ease;
}

.vb-agent-console__facts button {
  padding: 0 8px;
}

.vb-agent-console__facts button:hover,
.vb-agent-console__facts button.is-active,
.inspector-relief button:hover,
.inspector-focus__actions button:hover {
  background: rgba(49, 85, 255, 0.16);
  border-color: rgba(96, 165, 250, 0.45);
  color: var(--a3-chrome-text);
}

.vb-board,
.vb-deps {
  min-height: 0;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
}

.vb-board__head,
.vb-deps__head {
  min-height: 48px;
  flex-shrink: 0;
}

.vb-board__grid {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

.vb-board-card {
  grid-template-columns: 18px 42px minmax(90px, 1.25fr) minmax(100px, 0.8fr) 88px minmax(64px, 0.4fr) minmax(96px, 0.7fr) 44px;
  gap: 8px;
}

.vb-board-card__bar {
  width: 100%;
}

.vb-deps .dag {
  height: 340px;
  border-left: 0;
  border-right: 0;
  border-bottom: 0;
  border-radius: 0;
}

.vb-agent-fab {
  position: absolute;
  right: 30px;
  bottom: 28px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--a3-chrome-border);
  border-radius: var(--a3-radius-pill);
  background: var(--a3-surface);
  color: var(--a3-text-primary);
  font: inherit;
  font-size: var(--a3-fs-data);
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.18);
  cursor: pointer;
}

.vb-agent-fab:hover {
  border-color: var(--a3-cobalt);
  color: var(--a3-cobalt);
}

.vb-agent-dock {
  position: absolute;
  z-index: 70;
  width: min(420px, calc(100vw - 24px));
  max-height: min(620px, calc(100vh - 88px));
  border: 1px solid var(--a3-chrome-border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--a3-surface);
  box-shadow: 0 18px 54px rgba(15, 23, 42, 0.24);
}

.vb-agent-dock__bar {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px 8px 14px;
  border-bottom: 1px solid var(--a3-border);
  cursor: move;
  user-select: none;
}

.vb-agent-dock__bar > div {
  min-width: 0;
  flex: 1;
}

.vb-agent-dock__bar strong,
.vb-agent-dock__bar span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vb-agent-dock__bar strong {
  color: var(--a3-text-primary);
  font-size: var(--a3-fs-data);
}

.vb-agent-dock__bar span {
  color: var(--a3-text-secondary);
  font-size: var(--a3-fs-meta);
}

.vb-agent-dock .vb-agent {
  max-height: min(572px, calc(100vh - 136px));
  border-bottom: 0;
}

.vb-agent-dock .vb-agent__head {
  display: none;
}

.vb-agent-dock .vb-agent__stream {
  max-height: 360px;
}

.vb-agent-dock .vb-agent__composer {
  padding: 10px 12px;
}

.inspector__body {
  padding: 12px 14px 14px;
}

.inspector-focus {
  padding: 10px;
  border: 1px solid var(--a3-chrome-border);
  border-radius: 9px;
  background: rgba(49, 85, 255, 0.07);
  margin-bottom: 14px;
}

.inspector-focus.is-blocked {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.28);
}

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

.inspector-focus__dot {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.inspector-focus__top strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--a3-chrome-text);
  font-size: var(--a3-fs-data);
}

.inspector-focus__meta {
  margin-top: 7px;
  color: var(--a3-chrome-muted);
  font-family: var(--a3-font-mono);
  font-size: var(--a3-fs-label);
  line-height: 1.35;
}

.inspector-focus__actions,
.inspector-relief {
  display: grid;
  gap: 6px;
}

.inspector-focus__actions {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 10px;
}

.inspector-focus__actions button,
.inspector-relief button {
  justify-content: center;
  padding: 0 8px;
}

.inspector-relief {
  margin-top: 12px;
}

.inspector-context-tabs {
  gap: 5px;
}

.inspector-nav-row {
  min-height: 34px;
}

.shell[data-theme="light"] .vb-agent-console__facts button,
.shell[data-theme="light"] .inspector-relief button,
.shell[data-theme="light"] .inspector-focus__actions button {
  background: #FFFFFF;
  border-color: var(--a3-border);
  color: var(--a3-text-secondary);
}

.shell[data-theme="light"] .vb-agent-console__facts button:hover,
.shell[data-theme="light"] .vb-agent-console__facts button.is-active,
.shell[data-theme="light"] .inspector-relief button:hover,
.shell[data-theme="light"] .inspector-focus__actions button:hover {
  background: var(--a3-cobalt-tint);
  border-color: var(--a3-cobalt-ring);
  color: var(--a3-cobalt);
}

.shell[data-theme="light"] .inspector-focus {
  background: #F7F9FF;
  border-color: var(--a3-border);
}

.shell[data-theme="light"] .inspector-focus.is-blocked {
  background: #FFF1F2;
  border-color: #FECACA;
}

@media (max-width: 1180px) {
  .vb-left {
    grid-template-rows: auto minmax(260px, 1fr) minmax(220px, 0.75fr);
  }

  .vb-agent-console {
    grid-template-columns: minmax(0, 1fr);
  }

  .vb-agent-console__decision {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .vb-board-card {
    grid-template-columns: 20px 48px minmax(140px, 1fr) 82px 72px;
  }

  .vb-board-card__bar,
  .vb-board-card__foot {
    display: none;
  }
}

/* Final overrides for the rail and dependency toggle states. */
.vb-left.vb-left--deps-closed .vb-deps {
  min-height: 40px;
  border: 0;
  background: transparent;
}

.vb-left.vb-left--deps-closed .vb-deps__head {
  min-height: 40px;
  padding: 0;
  justify-content: flex-start;
}

.vb-left.vb-left--deps-closed .vb-dag-toggle {
  margin: 0;
}

.lsidebar.lsidebar--collapsed .lsidebar__toggle,
.lsidebar.lsidebar--collapsed .lnav-item,
.lsidebar.lsidebar--collapsed .lnav-mini-bereich {
  width: 40px;
  min-width: 40px;
  height: 40px;
  min-height: 40px;
  margin-left: auto;
  margin-right: auto;
}

.lsidebar.lsidebar--collapsed .lnav-mini-bereich {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

/* Worksheet and inspector polish overrides. */
.stream__avatar,
.ws-supervision__head .stream__avatar {
  width: 30px;
  height: 30px;
  min-width: 30px;
  border-radius: var(--a3-radius-shell);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--a3-cobalt-tint);
  color: var(--a3-cobalt);
  font-family: var(--a3-font-mono);
  font-size: var(--a3-fs-label);
  font-weight: 700;
  line-height: 1;
}

.ws-action-notice {
  margin-top: 10px;
  padding: 8px 10px;
  border: 1px solid var(--a3-cobalt-ring);
  border-radius: var(--a3-radius-card);
  background: var(--a3-cobalt-tint);
  color: var(--a3-cobalt);
  font-size: var(--a3-fs-meta);
}

.inspector__body {
  padding: 12px 14px 14px;
}

.inspector__section {
  width: 100%;
}

.freigaben-item {
  width: 100%;
  border-radius: var(--a3-radius-shell);
}

.inspector__tab-rail {
  padding-top: 8px;
}

.inspector__collapse-toggle {
  color: var(--a3-cobalt);
}

.shell[data-theme="light"] .stream__avatar,
.shell[data-theme="light"] .ws-supervision__head .stream__avatar {
  background: var(--a3-cobalt-tint);
  color: var(--a3-cobalt);
}

.inspector__panel .inspector__collapse-toggle,
.inspector--collapsed .inspector__collapse-toggle {
  width: 36px;
  min-width: 36px;
  height: 36px;
  min-height: 36px;
  border-radius: var(--a3-radius-shell);
}

.topbar {
  position: relative;
}

.topbar__action.is-active {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.28);
  color: #FFFFFF;
}

.topbar-popover {
  position: absolute;
  top: 50px;
  right: 12px;
  z-index: 80;
  width: 280px;
  padding: 10px;
  border: 1px solid var(--a3-chrome-border);
  border-radius: 10px;
  background: var(--a3-chrome-panel-2);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.28);
  display: grid;
  gap: 7px;
}

.topbar-popover__title {
  color: var(--a3-chrome-text);
  font-size: var(--a3-fs-data);
  font-weight: 700;
  padding: 2px 2px 0;
}

.topbar-popover__meta,
.topbar-popover__notice {
  color: var(--a3-chrome-muted);
  font-size: var(--a3-fs-meta);
  line-height: 1.4;
  padding: 0 2px 4px;
}

.topbar-popover__notice {
  padding: 8px 9px;
  border: 1px solid var(--a3-cobalt-ring);
  border-radius: 7px;
  background: var(--a3-cobalt-tint);
  color: var(--a3-cobalt);
}

.topbar-popover button {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  border: 1px solid var(--a3-chrome-border);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--a3-chrome-text);
  font: inherit;
  font-size: var(--a3-fs-meta);
  cursor: pointer;
  padding: 0 10px;
}

.topbar-popover button:hover {
  border-color: rgba(96, 165, 250, 0.45);
  background: rgba(49, 85, 255, 0.16);
}

.inspector__panel {
  min-width: 0;
}

.inspector__body > .inspector__section {
  margin-left: 0;
  margin-right: 0;
}

.freigaben-item {
  max-width: none;
}

.shell[data-theme="light"] .topbar__action.is-active {
  background: var(--a3-cobalt-tint);
  border-color: var(--a3-cobalt-ring);
  color: var(--a3-cobalt);
}

.shell[data-theme="light"] .topbar-popover {
  background: #FFFFFF;
  border-color: var(--a3-border);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.14);
}

.shell[data-theme="light"] .topbar-popover__title {
  color: var(--a3-text-primary);
}

.shell[data-theme="light"] .topbar-popover__meta {
  color: var(--a3-text-secondary);
}

.shell[data-theme="light"] .topbar-popover button {
  background: #FFFFFF;
  border-color: var(--a3-border);
  color: var(--a3-text-primary);
}

/* ── FreigabeModal — Phase 06 ─────────────────────────── */
.freigabe-modal { position: fixed; inset: 0; background: rgba(0,0,0,0.55); display: flex; align-items: center; justify-content: center; z-index: 200; }
.freigabe-modal__card { background: var(--a3-surface-2, #1a1f2b); border: 1px solid var(--a3-border); border-radius: var(--a3-radius-card); width: 100%; max-width: 480px; padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.freigabe-modal__head { display: flex; align-items: flex-start; gap: 8px; flex-wrap: wrap; }
.freigabe-modal__kind { font-size: var(--a3-fs-label); font-weight: var(--a3-fw-semibold); text-transform: uppercase; letter-spacing: .04em; color: var(--a3-cobalt); }
.freigabe-modal__urgent { font-size: var(--a3-fs-label); font-weight: var(--a3-fw-semibold); color: var(--a3-danger, #e05252); text-transform: uppercase; }
.freigabe-modal__title { flex: 1; font-weight: var(--a3-fw-semibold); font-size: 15px; color: var(--a3-text-primary); min-width: 100%; }
.freigabe-modal__close { margin-left: auto; background: none; border: none; cursor: pointer; font-size: var(--a3-fs-title); color: var(--a3-text-secondary); line-height: 1; padding: 0 4px; }
.freigabe-modal__detail { font-size: var(--a3-fs-data); color: var(--a3-text-primary); line-height: 1.5; }
.freigabe-modal__meta { font-size: var(--a3-fs-meta); color: var(--a3-text-secondary); }
.freigabe-modal__ts { font-size: var(--a3-fs-label); color: var(--a3-text-secondary); }
.freigabe-modal__footer { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.freigabe-modal__btn { padding: 7px 14px; border-radius: var(--a3-radius-input); font-size: var(--a3-fs-data); font-weight: var(--a3-fw-medium); cursor: pointer; border: 1px solid transparent; }
.freigabe-modal__btn--approve { background: var(--a3-cobalt); color: #fff; border-color: var(--a3-cobalt); }
.freigabe-modal__btn--reject { background: var(--a3-danger, #e05252); color: #fff; border-color: var(--a3-danger, #e05252); }
.freigabe-modal__btn--escalate { background: none; border-color: var(--a3-border); color: var(--a3-text-primary); }


/* =========================================================
   v3: GESPRÄCH — full redesign, flat Cowork-style
   ========================================================= */
.gespraech {
  display: flex;
  flex-direction: row;
  padding: 0;
  overflow: hidden;
}

/* Left conversation list */
.gespraech__list {
  width: 240px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  background: var(--a3-chrome-panel);
  border-right: 1px solid var(--a3-chrome-border);
  overflow: hidden;
}

.gespraech__list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px 8px;
  border-bottom: 1px solid var(--a3-chrome-border);
  font-size: var(--a3-fs-label);
  font-weight: var(--a3-fw-medium);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-family: var(--a3-font-sans);
  color: var(--a3-chrome-dim);
  flex-shrink: 0;
}

.gespraech__new {
  width: 22px; height: 22px;
  border: none;
  background: transparent;
  border-radius: 5px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--a3-chrome-dim);
  padding: 0;
  transition: background 100ms, color 100ms;
}
.gespraech__new:hover {
  background: rgba(255,255,255,0.08);
  color: var(--a3-chrome-text);
}

.gespraech__list-search {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-bottom: 1px solid var(--a3-chrome-border);
  flex-shrink: 0;
}
.gespraech__search-input {
  border: none;
  background: transparent;
  outline: none;
  font-size: var(--a3-fs-meta);
  font-family: var(--a3-font-sans);
  color: var(--a3-chrome-text);
  flex: 1;
  min-width: 0;
}
.gespraech__search-input::placeholder { color: var(--a3-chrome-dim); }

.gespraech__list-body {
  flex: 1;
  overflow-y: auto;
  padding: 4px 0;
}

.gespraech__empty {
  padding: 14px 12px;
  font-size: var(--a3-fs-meta);
  color: var(--a3-chrome-dim);
  font-family: var(--a3-font-sans);
}

/* Single-line flat conversation rows */
.gconv-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px 0 12px;
  height: 32px;
  cursor: pointer;
  border-left: 2px solid transparent;
  transition: background 80ms;
  min-width: 0;
}
.gconv-row:hover { background: rgba(255,255,255,0.05); }
.gconv-row--active {
  background: rgba(49,85,255,0.12);
  border-left-color: var(--a3-cobalt);
}

.gconv-row__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.gconv-row__code {
  font-size: 10px;
  font-family: var(--a3-font-mono);
  color: var(--a3-chrome-dim);
  background: rgba(255,255,255,0.06);
  border-radius: 3px;
  padding: 1px 4px;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}
.gconv-row--active .gconv-row__code {
  background: rgba(76,114,255,0.2);
  color: rgba(140,160,255,0.9);
}

.gconv-row__title {
  flex: 1;
  min-width: 0;
  font-size: var(--a3-fs-meta);
  font-weight: var(--a3-fw-regular);
  color: var(--a3-chrome-muted);
  font-family: var(--a3-font-sans);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.gconv-row--active .gconv-row__title {
  color: var(--a3-chrome-text);
  font-weight: var(--a3-fw-medium);
}

.gconv-row__ts {
  font-size: 10px;
  color: var(--a3-chrome-dim);
  font-family: var(--a3-font-sans);
  flex-shrink: 0;
}

.gconv-row__badge {
  width: 15px; height: 15px;
  border-radius: 50%;
  background: var(--a3-cobalt);
  color: #fff;
  font-size: 9px;
  font-weight: var(--a3-fw-semibold);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-family: var(--a3-font-sans);
}

/* Thread area */
.gespraech__thread-wrap {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.gespraech__thread-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 20px;
  height: 44px;
  border-bottom: 1px solid var(--a3-chrome-border);
  flex-shrink: 0;
}
.gespraech__thread-agent {
  font-size: var(--a3-fs-label);
  font-family: var(--a3-font-mono);
  color: var(--a3-chrome-dim);
  flex-shrink: 0;
}
.gespraech__thread-sep {
  color: var(--a3-chrome-dim);
  font-size: var(--a3-fs-label);
  flex-shrink: 0;
}
.gespraech__thread-title-text {
  flex: 1;
  min-width: 0;
  font-size: var(--a3-fs-data);
  font-weight: var(--a3-fw-medium);
  color: var(--a3-chrome-text);
  font-family: var(--a3-font-sans);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gespraech__thread {
  flex: 1;
  overflow-y: auto;
  padding: 28px 28px 16px;
  display: flex;
  flex-direction: column;
}

.gespraech__no-conv {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--a3-fs-data);
  color: var(--a3-chrome-dim);
  font-family: var(--a3-font-sans);
}

/* Chat messages — agent: left-border style, no bubble */
.gchat-msg {
  margin-bottom: 24px;
  padding-left: 14px;
  border-left: 2px solid var(--agent-accent, rgba(255,255,255,0.12));
}
.gchat-msg--user {
  padding-left: 0;
  border-left: none;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin-bottom: 24px;
}

.gchat-msg__meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 5px;
}
.gchat-msg__agent-code {
  font-size: 9px;
  font-family: var(--a3-font-mono);
  font-weight: 700;
  color: var(--agent-accent, var(--a3-chrome-dim));
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.gchat-msg__agent-name {
  font-size: var(--a3-fs-label);
  color: var(--a3-chrome-dim);
  font-family: var(--a3-font-sans);
}
.gchat-msg__agent-ts {
  font-size: 10px;
  color: var(--a3-chrome-dim);
  font-family: var(--a3-font-sans);
  margin-left: auto;
}

.gchat-msg__text {
  font-size: var(--a3-fs-data);
  line-height: 1.62;
  color: var(--a3-chrome-text);
  font-family: var(--a3-font-sans);
}

.gchat-msg__citations {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.gchat-citation {
  font-family: var(--a3-font-mono);
  font-size: 10px;
  color: rgba(140,160,255,0.85);
  background: rgba(49,85,255,0.12);
  border: 1px solid rgba(49,85,255,0.22);
  border-radius: 3px;
  padding: 2px 6px;
  cursor: pointer;
  transition: background 80ms;
}
.gchat-citation:hover { background: rgba(49,85,255,0.22); }

/* User bubble */
.gchat-msg__user-bubble {
  max-width: 68%;
  background: rgba(49,85,255,0.14);
  border: 1px solid rgba(49,85,255,0.22);
  border-radius: 12px 12px 3px 12px;
  padding: 8px 14px;
  font-size: var(--a3-fs-data);
  line-height: 1.55;
  color: var(--a3-chrome-text);
  font-family: var(--a3-font-sans);
}
.gchat-msg__user-ts {
  font-size: 10px;
  color: var(--a3-chrome-dim);
  font-family: var(--a3-font-sans);
  margin-top: 4px;
}

/* Compose — bordered box with inner toolbar */
.gespraech__compose {
  flex-shrink: 0;
  margin: 0 20px 16px;
  border: 1px solid var(--a3-chrome-border-strong);
  border-radius: 10px;
  background: rgba(255,255,255,0.03);
  overflow: hidden;
  transition: border-color 150ms;
}
.gespraech__compose:focus-within {
  border-color: rgba(49,85,255,0.45);
}

.gespraech__compose-input {
  width: 100%;
  border: none;
  background: transparent;
  outline: none;
  font-size: var(--a3-fs-data);
  font-family: var(--a3-font-sans);
  color: var(--a3-chrome-text);
  resize: none;
  padding: 12px 14px 8px;
  min-height: 52px;
  max-height: 140px;
  overflow-y: auto;
  line-height: 1.5;
  display: block;
  box-sizing: border-box;
}
.gespraech__compose-input::placeholder { color: var(--a3-chrome-dim); }

.gespraech__compose-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 8px 6px 12px;
  border-top: 1px solid var(--a3-chrome-border);
}
.gespraech__compose-hint {
  font-size: 10px;
  color: var(--a3-chrome-dim);
  font-family: var(--a3-font-sans);
  user-select: none;
}

.gespraech__compose-send {
  width: 28px; height: 28px;
  border: none;
  border-radius: 7px;
  background: var(--a3-cobalt);
  color: #fff;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  padding: 0;
  transition: background 120ms;
}
.gespraech__compose-send:hover:not(:disabled) { background: var(--a3-cobalt-hover, #3456d8); }
.gespraech__compose-send:disabled {
  background: rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.2);
  cursor: not-allowed;
}

/* =========================================================
   v2: SIDEBAR ACCORDION — Prüfbereiche / Zuletzt (dark-chrome)
   ========================================================= */
.lsidebar__accordion {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.lsidebar__acc-section {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  flex-shrink: 0;
}
.lsidebar__acc-section--active {
  flex: 1;
  overflow: hidden;
}

.lsidebar__acc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 14px 5px;
  cursor: pointer;
  flex-shrink: 0;
  user-select: none;
  border-top: 1px solid var(--a3-chrome-border);
  transition: background 100ms;
}
.lsidebar__acc-head:hover { background: rgba(255,255,255,0.04); }

.lsidebar__acc-head .lsidebar__section-label {
  margin: 0;
  color: var(--a3-chrome-dim);
  font-size: var(--a3-fs-meta);
  font-family: var(--a3-font-sans);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: var(--a3-fw-medium);
}

.lsidebar__acc-content {
  overflow-y: auto;
  flex: 1;
}

/* Zuletzt items */
.lnav-zuletzt {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  margin: 0 10px;
  border-radius: var(--a3-radius-shell);
  cursor: pointer;
  border-left: 2px solid transparent;
  transition: background 100ms;
  color: var(--a3-chrome-muted);
}
.lnav-zuletzt:hover { background: rgba(255,255,255,0.06); }

.lnav-zuletzt__badge {
  width: 22px; height: 22px;
  border-radius: var(--a3-radius-input);
  display: flex; align-items: center; justify-content: center;
  font-size: 8px;
  font-family: var(--a3-font-mono);
  font-weight: var(--a3-fw-medium);
  color: #fff;
  flex-shrink: 0;
}

.lnav-zuletzt__title {
  flex: 1;
  min-width: 0;
  font-size: var(--a3-fs-meta);
  color: var(--a3-chrome-muted);
  font-family: var(--a3-font-sans);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* =========================================================
   v2: INSPECTOR WORKFLOW TAB — mini-DAG (dark-chrome)
   ========================================================= */
.workflow-tab {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.workflow-tab__canvas-wrap {
  flex: 1;
  overflow: auto;
  padding: 8px 12px;
}

.wf-node {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 7px;
  height: 28px;
  border: 1px solid var(--a3-chrome-border-strong);
  border-radius: var(--a3-radius-card);
  background: rgba(255,255,255,0.04);
  font-size: var(--a3-fs-meta);
  font-family: var(--a3-font-sans);
  overflow: hidden;
  color: var(--a3-chrome-muted);
}
.wf-node--running { border-color: rgba(49,85,255,0.4); background: rgba(49,85,255,0.12); color: var(--a3-chrome-text); }
.wf-node--blocked { border-color: rgba(200,32,32,0.4); background: rgba(200,32,32,0.10); }
.wf-node--done    { border-color: rgba(15,155,88,0.4); background: rgba(15,155,88,0.10); }

.wf-node__code {
  font-family: var(--a3-font-mono);
  font-size: 10px;
  color: var(--a3-chrome-dim);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* =========================================================
   v3: LIGHT THEME overrides for Gespräch + Accordion
   ========================================================= */
.shell[data-theme="light"] .gespraech__list {
  background: var(--a3-surface);
  border-right-color: var(--a3-border);
}
.shell[data-theme="light"] .gespraech__list-head {
  color: var(--a3-text-disabled);
  border-bottom-color: var(--a3-border-soft);
}
.shell[data-theme="light"] .gespraech__new { color: var(--a3-text-secondary); }
.shell[data-theme="light"] .gespraech__new:hover {
  background: var(--a3-canvas);
  color: var(--a3-cobalt);
}
.shell[data-theme="light"] .gespraech__list-search { border-bottom-color: var(--a3-border-soft); }
.shell[data-theme="light"] .gespraech__search-input { color: var(--a3-text-primary); }
.shell[data-theme="light"] .gespraech__search-input::placeholder { color: var(--a3-text-disabled); }
.shell[data-theme="light"] .gespraech__empty { color: var(--a3-text-disabled); }
.shell[data-theme="light"] .gconv-row:hover { background: var(--a3-canvas); }
.shell[data-theme="light"] .gconv-row--active {
  background: var(--a3-cobalt-tint);
  border-left-color: var(--a3-cobalt);
}
.shell[data-theme="light"] .gconv-row__code { background: rgba(0,0,0,0.05); color: var(--a3-text-secondary); }
.shell[data-theme="light"] .gconv-row--active .gconv-row__code { background: var(--a3-cobalt-tint); color: var(--a3-cobalt); }
.shell[data-theme="light"] .gconv-row__title { color: var(--a3-text-secondary); }
.shell[data-theme="light"] .gconv-row--active .gconv-row__title { color: var(--a3-text-primary); }
.shell[data-theme="light"] .gconv-row__ts { color: var(--a3-text-disabled); }
.shell[data-theme="light"] .gespraech__thread-head { border-bottom-color: var(--a3-border); }
.shell[data-theme="light"] .gespraech__thread-agent { color: var(--a3-text-secondary); }
.shell[data-theme="light"] .gespraech__thread-sep { color: var(--a3-text-disabled); }
.shell[data-theme="light"] .gespraech__thread-title-text { color: var(--a3-text-primary); }
.shell[data-theme="light"] .gchat-msg { border-left-color: var(--agent-accent, var(--a3-border)); }
.shell[data-theme="light"] .gchat-msg__agent-name { color: var(--a3-text-secondary); }
.shell[data-theme="light"] .gchat-msg__agent-ts { color: var(--a3-text-disabled); }
.shell[data-theme="light"] .gchat-msg__text { color: var(--a3-text-primary); }
.shell[data-theme="light"] .gchat-citation {
  color: var(--a3-cobalt);
  background: var(--a3-cobalt-tint);
  border-color: var(--a3-cobalt-ring, rgba(49,85,255,0.2));
}
.shell[data-theme="light"] .gchat-msg__user-bubble {
  background: var(--a3-cobalt-tint);
  border-color: var(--a3-cobalt-ring, rgba(49,85,255,0.2));
  color: var(--a3-text-primary);
}
.shell[data-theme="light"] .gchat-msg__user-ts { color: var(--a3-text-disabled); }
.shell[data-theme="light"] .gespraech__compose {
  border-color: var(--a3-border);
  background: var(--a3-surface);
}
.shell[data-theme="light"] .gespraech__compose:focus-within { border-color: var(--a3-cobalt); }
.shell[data-theme="light"] .gespraech__compose-input { color: var(--a3-text-primary); }
.shell[data-theme="light"] .gespraech__compose-input::placeholder { color: var(--a3-text-disabled); }
.shell[data-theme="light"] .gespraech__compose-toolbar { border-top-color: var(--a3-border-soft); }
.shell[data-theme="light"] .gespraech__compose-hint { color: var(--a3-text-disabled); }
.shell[data-theme="light"] .gespraech__compose-send:disabled {
  background: var(--a3-border);
  color: var(--a3-text-disabled);
}
.shell[data-theme="light"] .gespraech__no-conv { color: var(--a3-text-disabled); }
/* Accordion light */
.shell[data-theme="light"] .lsidebar__acc-head {
  border-top-color: var(--a3-border-soft);
}
.shell[data-theme="light"] .lsidebar__acc-head:hover { background: var(--a3-canvas); }
.shell[data-theme="light"] .lsidebar__acc-head .lsidebar__section-label {
  color: var(--a3-text-disabled);
}
.shell[data-theme="light"] .lnav-zuletzt {
  color: var(--a3-text-secondary);
}
.shell[data-theme="light"] .lnav-zuletzt:hover { background: var(--a3-canvas); }
.shell[data-theme="light"] .lnav-zuletzt__title { color: var(--a3-text-primary); }

/* =========================================================
   Co-worker nav item (sidebar)
   ========================================================= */
.lnav-item--coworker {
  position: relative;
}
.lnav-item__badge {
  min-width: 16px; height: 16px;
  border-radius: var(--a3-radius-shell);
  background: var(--a3-cobalt);
  color: #fff;
  font-size: 10px;
  font-weight: var(--a3-fw-semibold);
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
  font-family: var(--a3-font-sans);
  margin-left: auto;
  flex-shrink: 0;
}

/* Co-worker inline sub-nav (appears below nav button when active) */
.lnav-coworker-subnav {
  padding: 2px 0 4px;
}
.lnav-coworker-sub-item {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px 6px 34px;
  cursor: pointer;
  border-radius: 5px;
  margin: 1px 6px;
  min-width: 0;
  transition: background 100ms;
}
.lnav-coworker-sub-item:hover { background: rgba(255,255,255,0.05); }
.lnav-coworker-sub-item__code {
  font-size: 9px;
  font-family: var(--a3-font-mono);
  font-weight: 700;
  color: rgba(76,114,255,0.9);
  letter-spacing: 0.04em;
  background: rgba(76,114,255,0.12);
  border-radius: 3px;
  padding: 1px 5px;
  flex-shrink: 0;
}
.lnav-coworker-sub-item__title {
  flex: 1;
  min-width: 0;
  font-size: var(--a3-fs-label);
  font-family: var(--a3-font-sans);
  color: var(--a3-chrome-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lnav-coworker-sub-item__badge {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--a3-cobalt);
  color: #fff;
  font-size: 8px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-family: var(--a3-font-sans);
}

/* Co-worker accordion items (legacy, kept for reference) */
.lnav-coworker-item {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 12px 0 14px;
  height: 30px;
  cursor: pointer;
  border-left: 2px solid transparent;
  transition: background 80ms;
  min-width: 0;
}
.lnav-coworker-item:hover { background: rgba(255,255,255,0.05); }
.lnav-coworker-item--active {
  background: rgba(49,85,255,0.12);
  border-left-color: var(--a3-cobalt);
}
.lnav-coworker-item__code {
  font-size: 9px;
  font-family: var(--a3-font-mono);
  color: var(--a3-chrome-dim);
  background: rgba(255,255,255,0.06);
  border-radius: 3px;
  padding: 1px 4px;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}
.lnav-coworker-item__title {
  flex: 1;
  min-width: 0;
  font-size: var(--a3-fs-label);
  color: var(--a3-chrome-muted);
  font-family: var(--a3-font-sans);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lnav-coworker-item--active .lnav-coworker-item__title { color: var(--a3-chrome-text); }
.lnav-coworker-item__badge {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--a3-cobalt);
  color: #fff;
  font-size: 8px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-family: var(--a3-font-sans);
}
.lsidebar__coworker-empty {
  padding: 10px 14px;
  font-size: var(--a3-fs-label);
  color: var(--a3-chrome-dim);
  font-family: var(--a3-font-sans);
}

/* =========================================================
   Co-worker landing page
   ========================================================= */
.gespraech-landing {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 0 32px;
  overflow: hidden;
  background: #0D1117;
}

/* Animated canvas background */
.glanding__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* Subtle bottom fade so tiles don't float into nothing */
.gespraech-landing::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 120px;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent 0%, rgba(13,17,23,0.6) 100%);
}

.glanding__body {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 640px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 72px 0 52px;
}

.glanding__eyebrow {
  font-size: var(--a3-fs-label);
  font-weight: var(--a3-fw-semibold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(76, 114, 255, 0.9);
  font-family: var(--a3-font-mono);
  margin-bottom: 14px;
}

.glanding__heading {
  font-size: 34px;
  font-weight: 700;
  color: #ECEFF3;
  font-family: var(--a3-font-sans);
  line-height: 1.15;
  margin: 0 0 10px;
  letter-spacing: -0.025em;
  text-shadow: 0 2px 32px rgba(76,114,255,0.25);
}

.glanding__sub {
  font-size: var(--a3-fs-body);
  color: rgba(183, 189, 197, 0.85);
  font-family: var(--a3-font-sans);
  margin: 0 0 32px;
  line-height: 1.6;
}

/* Compose box */
.glanding__compose {
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 12px;
  background: rgba(13, 17, 23, 0.82);
  overflow: hidden;
  transition: border-color 180ms, box-shadow 180ms;
  margin-bottom: 40px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.45), 0 1px 0 rgba(255,255,255,0.04) inset;
}
.glanding__compose:focus-within {
  border-color: rgba(76,114,255,0.55);
  box-shadow: 0 0 0 3px rgba(76,114,255,0.14), 0 8px 40px rgba(0,0,0,0.5);
}

.glanding__compose-input {
  width: 100%;
  border: none;
  background: transparent;
  outline: none;
  font-size: var(--a3-fs-body);
  font-family: var(--a3-font-sans);
  color: var(--a3-chrome-text);
  resize: none;
  padding: 18px 20px 12px;
  min-height: 88px;
  line-height: 1.6;
  display: block;
  box-sizing: border-box;
}
.glanding__compose-input::placeholder { color: rgba(133,141,152,0.7); }

.glanding__compose-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px 8px 16px;
  border-top: 1px solid var(--a3-chrome-border);
  background: rgba(0,0,0,0.15);
}
.glanding__compose-hint {
  font-size: 10px;
  color: var(--a3-chrome-dim);
  font-family: var(--a3-font-sans);
  user-select: none;
}
.glanding__compose-send {
  width: 30px; height: 30px;
  border: none;
  border-radius: 7px;
  background: var(--a3-cobalt);
  color: #fff;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  padding: 0;
  transition: background 120ms, transform 80ms;
}
.glanding__compose-send:hover:not(:disabled) {
  background: var(--a3-cobalt-hover, #3456d8);
  transform: scale(1.05);
}
.glanding__compose-send:disabled {
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.18);
  cursor: not-allowed;
}

/* Drag-over state */
.glanding__compose.is-drag-over {
  border-color: rgba(76,114,255,0.6);
  box-shadow: 0 0 0 3px rgba(76,114,255,0.18), 0 8px 40px rgba(0,0,0,0.5);
}

/* Fixture chip */
.glanding__chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 10px 20px 0;
  padding: 4px 8px 4px 10px;
  background: rgba(76,114,255,0.12);
  border: 1px solid rgba(76,114,255,0.3);
  border-radius: 6px;
  font-size: 11px;
  color: rgba(255,255,255,0.75);
  font-family: var(--a3-font-sans);
}
.glanding__chip--loading {
  color: var(--a3-chrome-dim);
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.08);
}
.glanding__chip-name {
  font-weight: 500;
  color: rgba(255,255,255,0.9);
}
.glanding__chip-meta {
  color: var(--a3-chrome-dim);
}
.glanding__chip-remove {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--a3-chrome-muted);
  padding: 0 2px;
  font-size: 13px;
  line-height: 1;
  margin-left: 2px;
  transition: color 120ms;
}
.glanding__chip-remove:hover { color: rgba(255,255,255,0.9); }

/* Upload error */
.glanding__upload-err {
  margin: 6px 20px 0;
  font-size: 11px;
  color: var(--a3-red, #e05252);
  font-family: var(--a3-font-sans);
}

/* Conversation compose: drop target + upload notice (mirrors landing) */
.gespraech__compose.is-drag-over {
  border-color: rgba(76,114,255,0.6);
  box-shadow: 0 0 0 3px rgba(76,114,255,0.18);
}
.gespraech__compose-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  padding: 5px 10px;
  background: rgba(76,114,255,0.10);
  border: 1px solid rgba(76,114,255,0.28);
  border-radius: 6px;
  font-size: 12px;
  color: var(--a3-text-secondary);
}
.gespraech__compose-note.is-error {
  background: rgba(224,82,82,0.10);
  border-color: rgba(224,82,82,0.35);
  color: var(--a3-danger, #e05252);
}
.gespraech__compose-note-close {
  margin-left: auto;
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
  font-size: 13px;
  line-height: 1;
  padding: 0 2px;
}

/* Drop hint overlay text */
.glanding__drop-hint {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: rgba(76,114,255,0.85);
  pointer-events: none;
  letter-spacing: 0.01em;
}

/* Section divider */
.glanding__convs-label {
  font-size: 10px;
  font-weight: var(--a3-fw-semibold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--a3-chrome-dim);
  font-family: var(--a3-font-sans);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.glanding__convs-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--a3-chrome-border);
}

.glanding__convs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(248px, 1fr));
  gap: 8px;
}

/* Conversation tile cards */
.gconv-tile {
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: var(--a3-radius-shell);
  background: rgba(13,17,23,0.78);
  cursor: pointer;
  transition: background 120ms, border-color 120ms, transform 80ms;
  min-width: 0;
}
.gconv-tile:hover {
  background: rgba(13,17,23,0.90);
  border-color: rgba(255,255,255,0.16);
  transform: translateY(-1px);
}
.gconv-tile--running {
  border-color: rgba(76,114,255,0.3);
  background: rgba(76,114,255,0.04);
}
.gconv-tile--running:hover { border-color: rgba(76,114,255,0.5); }

.gconv-tile__head {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 8px;
}
.gconv-tile__code {
  font-size: 9px;
  font-family: var(--a3-font-mono);
  font-weight: 700;
  color: var(--agent-accent, var(--a3-chrome-dim));
  letter-spacing: 0.06em;
  background: rgba(255,255,255,0.07);
  border-radius: 3px;
  padding: 2px 6px;
}
.gconv-tile__badge {
  min-width: 16px; height: 16px;
  border-radius: var(--a3-radius-shell);
  background: var(--a3-cobalt);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
  font-family: var(--a3-font-sans);
}
.gconv-tile__ts {
  font-size: 10px;
  color: var(--a3-chrome-dim);
  font-family: var(--a3-font-sans);
  margin-left: auto;
}
.gconv-tile__title {
  font-size: var(--a3-fs-data);
  font-weight: var(--a3-fw-medium);
  color: var(--a3-chrome-text);
  font-family: var(--a3-font-sans);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-bottom: 5px;
}
.gconv-tile__last {
  font-size: var(--a3-fs-meta);
  color: var(--a3-chrome-muted);
  font-family: var(--a3-font-sans);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.4;
}

/* Back button in thread head */
.gespraech__back {
  height: 28px;
  width: auto;
  border: none;
  background: transparent;
  border-radius: var(--a3-radius-card);
  cursor: pointer;
  display: flex; align-items: center; gap: 4px;
  color: var(--a3-chrome-dim);
  padding: 0 8px 0 4px;
  margin-right: 2px;
  flex-shrink: 0;
  transition: background 100ms, color 100ms;
}
.gespraech__back:hover {
  background: rgba(255,255,255,0.08);
  color: var(--a3-chrome-text);
}
.gespraech__back-label {
  font-size: var(--a3-fs-label);
  font-family: var(--a3-font-sans);
  font-weight: var(--a3-fw-medium);
  letter-spacing: 0.01em;
}

/* ─── Empty thread state ─── */
.gespraech__thread-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 48px 24px;
  text-align: center;
}
.gespraech__thread-empty-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(76,114,255,0.12);
  border: 1px solid rgba(76,114,255,0.25);
  font-size: var(--a3-fs-label);
  font-family: var(--a3-font-mono);
  font-weight: 700;
  color: var(--agent-accent, var(--a3-cobalt));
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}
.gespraech__thread-empty-name {
  font-size: var(--a3-fs-body);
  font-weight: var(--a3-fw-medium);
  color: var(--a3-chrome-text);
  font-family: var(--a3-font-sans);
}
.gespraech__thread-empty-hint {
  font-size: var(--a3-fs-meta);
  color: var(--a3-chrome-dim);
  font-family: var(--a3-font-sans);
  line-height: 1.5;
  max-width: 280px;
  margin-bottom: 4px;
}

/* ─── User message slide-in animation ─── */
@keyframes gchat-user-in {
  from { opacity: 0; transform: translateX(10px); }
  to   { opacity: 1; transform: translateX(0); }
}
.gchat-msg--user:last-child .gchat-msg__user-bubble {
  animation: gchat-user-in 180ms ease-out;
}

/* Citation chip — show cursor to hint interactivity */
.gchat-citation {
  cursor: help;
}

/* =========================================================
   v3: SIDEBAR REIMAGINED — compact topbar + quicknav + always-visible bereiche
   ========================================================= */

/* Zone 1: topbar — client identity + toggle */
.lsidebar__topbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 10px 11px 16px;
  border-bottom: 1px solid var(--a3-chrome-border);
  flex-shrink: 0;
}

.lsidebar__client-id {
  flex: 1;
  min-width: 0;
}

.lsidebar__client-name {
  font-size: var(--a3-fs-data);
  font-weight: var(--a3-fw-semibold);
  color: var(--a3-chrome-text);
  font-family: var(--a3-font-display);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.2;
}

.lsidebar__progress-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
}

.lsidebar__client-bar {
  flex: 1;
  height: 3px;
  border-radius: 99px;
  background: rgba(148, 163, 184, 0.18);
  overflow: hidden;
}

.lsidebar__client-bar span {
  display: block;
  height: 100%;
  background: var(--a3-cobalt);
  border-radius: 99px;
  transition: width 300ms ease;
}

.lsidebar__client-fraction {
  font-family: var(--a3-font-mono);
  font-size: 10px;
  color: var(--a3-chrome-dim);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}

/* Zone 2: quick nav — Co-worker + Übersicht */
.lsidebar__quicknav {
  padding: 6px 0 4px;
  border-bottom: 1px solid var(--a3-chrome-border);
  flex-shrink: 0;
}

/* Zone 3: bereiche — fills remaining space, scrollable */
.lsidebar__bereiche {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding-bottom: 8px;
}

/* Light theme overrides for new topbar */
.shell[data-theme="light"] .lsidebar__topbar {
  border-bottom-color: var(--a3-border);
}

.shell[data-theme="light"] .lsidebar__client-name {
  color: var(--a3-text-primary);
}

.shell[data-theme="light"] .lsidebar__client-bar {
  background: rgba(100, 116, 139, 0.15);
}

.shell[data-theme="light"] .lsidebar__client-fraction {
  color: var(--a3-text-secondary);
}

.shell[data-theme="light"] .lsidebar__quicknav {
  border-bottom-color: var(--a3-border);
}

/* =========================================================
   v4: SIDEBAR COLUMN TABS — Co-worker | Prüfbereiche
   ========================================================= */

/* Topbar: progress strip only, no client name */
.lsidebar__topbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px 9px 14px;
  border-bottom: 1px solid var(--a3-chrome-border);
  flex-shrink: 0;
  min-height: 40px;
}

.lsidebar__progress-strip {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px 8px;
  min-width: 0;
}

.lsidebar__client-bar {
  flex: 1;
  height: 3px;
  border-radius: 99px;
  background: rgba(148, 163, 184, 0.18);
  overflow: hidden;
}

.lsidebar__client-bar span {
  display: block;
  height: 100%;
  background: var(--a3-cobalt);
  border-radius: 99px;
  transition: width 300ms ease;
}

.lsidebar__client-fraction {
  font-family: var(--a3-font-mono);
  font-size: 10px;
  color: var(--a3-chrome-dim);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}

.lsidebar__blocker-dot {
  flex-shrink: 0;
  min-width: 14px;
  height: 14px;
  border-radius: 7px;
  background: rgba(239, 68, 68, 0.16);
  color: #F87171;
  font-size: 9px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  font-family: var(--a3-font-mono);
}

.lsidebar__topbar-actions {
  display: flex;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
}

.lsidebar__icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: var(--a3-radius-card);
  border: none;
  background: transparent;
  color: var(--a3-chrome-muted);
  cursor: pointer;
  transition: background 100ms, color 100ms;
}
.lsidebar__icon-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--a3-chrome-text);
}
.lsidebar__icon-btn--active {
  color: var(--a3-cobalt);
  background: rgba(49, 85, 255, 0.12);
}

/* Column tab strip */
.lsidebar__tabs {
  display: flex;
  border-bottom: 1px solid var(--a3-chrome-border);
  flex-shrink: 0;
}

.lsidebar__tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 9px 6px 8px;
  border: none;
  background: transparent;
  color: var(--a3-chrome-dim);
  font-size: var(--a3-fs-label);
  font-weight: var(--a3-fw-medium);
  font-family: var(--a3-font-sans);
  cursor: pointer;
  position: relative;
  transition: color 120ms, background 120ms;
  white-space: nowrap;
}

.lsidebar__tab:hover {
  color: var(--a3-chrome-text);
  background: rgba(255, 255, 255, 0.04);
}

.lsidebar__tab--active {
  color: var(--a3-chrome-text);
  font-weight: var(--a3-fw-semibold);
}

.lsidebar__tab--active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 18px;
  right: 18px;
  height: 2px;
  background: var(--a3-cobalt);
  border-radius: 1px 1px 0 0;
}

.lsidebar__tab-icon {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.lsidebar__tab-badge {
  min-width: 14px;
  height: 14px;
  border-radius: 7px;
  background: var(--a3-cobalt);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  margin-left: 1px;
}

/* Tab content panels */
.lsidebar__tab-panel {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 4px 0 8px;
}

.lsidebar__tab-empty {
  padding: 24px 16px;
  font-size: var(--a3-fs-meta);
  color: var(--a3-chrome-dim);
  font-family: var(--a3-font-sans);
  text-align: center;
}

/* Light theme */
.shell[data-theme="light"] .lsidebar__topbar,
.shell[data-theme="light"] .lsidebar__tabs {
  border-bottom-color: var(--a3-border);
}

.shell[data-theme="light"] .lsidebar__client-bar {
  background: rgba(100, 116, 139, 0.15);
}

.shell[data-theme="light"] .lsidebar__client-fraction {
  color: var(--a3-text-secondary);
}

.shell[data-theme="light"] .lsidebar__tab {
  color: var(--a3-text-secondary);
}

.shell[data-theme="light"] .lsidebar__tab--active {
  color: var(--a3-text-primary);
}

.shell[data-theme="light"] .lsidebar__tab:hover {
  background: var(--a3-canvas);
  color: var(--a3-text-primary);
}

.shell[data-theme="light"] .lsidebar__icon-btn {
  color: var(--a3-text-secondary);
}

.shell[data-theme="light"] .lsidebar__icon-btn:hover {
  background: var(--a3-canvas);
  color: var(--a3-text-primary);
}

/* =========================================================
   LEFT SIDEBAR — HORIZONTAL PILL TABS
   ========================================================= */

.lsidebar__pills {
  display: flex;
  gap: 4px;
  padding: 4px 12px 8px;
  flex-shrink: 0;
}

.lsidebar__pill {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 10px;
  border: none;
  background: transparent;
  color: var(--a3-chrome-dim, var(--a3-text-secondary));
  font-size: var(--a3-fs-label, 12px);
  font-weight: var(--a3-fw-medium, 500);
  font-family: var(--a3-font-sans, inherit);
  cursor: pointer;
  border-radius: 8px;
  position: relative;
  transition: background 120ms ease, color 120ms ease;
  white-space: nowrap;
}

.lsidebar__pill:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--a3-chrome-text, var(--a3-text-primary));
}

.lsidebar__pill--active {
  background: rgba(49, 85, 255, 0.14);
  color: var(--a3-cobalt);
  font-weight: var(--a3-fw-semibold, 600);
}

.lsidebar__pill--active:hover {
  background: rgba(49, 85, 255, 0.18);
}

.lsidebar__pill-badge {
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  background: var(--a3-cobalt);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.shell[data-theme="light"] .lsidebar__pill {
  color: var(--a3-text-secondary);
}

.shell[data-theme="light"] .lsidebar__pill:hover {
  background: rgba(49, 85, 255, 0.06);
  color: var(--a3-text-primary);
}

.shell[data-theme="light"] .lsidebar__pill--active {
  background: rgba(49, 85, 255, 0.10);
  color: var(--a3-cobalt);
}

/* =========================================================
   RIGHT SIDEBAR — ACCORDION + STEP CHAIN
   ========================================================= */

.inspector--accordion {
  flex-direction: column;
}

.inspector--accordion .inspector__body {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Accordion */
.accordion {
  border-bottom: 1px solid var(--a3-chrome-border, rgba(255,255,255,0.08));
}

.accordion__header {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 10px 14px;
  border: none;
  background: transparent;
  color: var(--a3-chrome-text, var(--a3-text-primary));
  font-size: var(--a3-fs-label, 12px);
  font-weight: var(--a3-fw-semibold, 600);
  font-family: var(--a3-font-sans, inherit);
  cursor: pointer;
  transition: background 120ms ease;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.accordion__header:hover {
  background: rgba(255, 255, 255, 0.04);
}

.accordion__chevron {
  display: flex;
  align-items: center;
  color: var(--a3-chrome-muted, var(--a3-text-secondary));
  flex-shrink: 0;
}

.accordion__title {
  flex: 1;
  text-align: left;
}

.accordion__count {
  color: var(--a3-chrome-dim, var(--a3-text-disabled));
  font-weight: var(--a3-fw-regular, 400);
  font-size: var(--a3-fs-meta, 11px);
  text-transform: none;
  letter-spacing: 0;
}

.accordion__body {
  padding: 0 14px 12px;
}

/* Step chain */
.step-chain {
  display: flex;
  flex-direction: column;
}

.step-chain__item {
  display: flex;
  gap: 10px;
  min-height: 0;
}

.step-chain__gutter {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 20px;
}

.step-chain__dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  flex-shrink: 0;
  border: 2px solid var(--a3-chrome-border, rgba(255,255,255,0.15));
  background: transparent;
  color: var(--a3-chrome-dim, var(--a3-text-disabled));
}

.step-chain__item--done .step-chain__dot {
  background: var(--a3-cobalt);
  border-color: var(--a3-cobalt);
  color: #fff;
}

.step-chain__item--running .step-chain__dot {
  border-color: var(--a3-cobalt);
  color: var(--a3-cobalt);
  background: rgba(49, 85, 255, 0.12);
}

.step-chain__item--warn .step-chain__dot {
  border-color: var(--a3-orange, #F59E0B);
  color: var(--a3-orange, #F59E0B);
  background: rgba(245, 158, 11, 0.12);
}

.step-chain__line {
  width: 2px;
  flex: 1;
  min-height: 12px;
  background: var(--a3-chrome-border, rgba(255,255,255,0.10));
}

.step-chain__item--done .step-chain__line {
  background: var(--a3-cobalt);
  opacity: 0.4;
}

.step-chain__content {
  flex: 1;
  min-width: 0;
  padding-bottom: 12px;
}

.step-chain__title {
  font-size: var(--a3-fs-data, 13px);
  font-weight: var(--a3-fw-medium, 500);
  color: var(--a3-chrome-text, var(--a3-text-primary));
  line-height: 20px;
}

.step-chain__item--pending .step-chain__title {
  color: var(--a3-chrome-dim, var(--a3-text-disabled));
}

.step-chain__detail {
  font-size: var(--a3-fs-meta, 11px);
  color: var(--a3-chrome-muted, var(--a3-text-secondary));
  margin-top: 2px;
  line-height: 1.4;
}

.step-chain__ts {
  font-size: var(--a3-fs-meta, 11px);
  color: var(--a3-chrome-dim, var(--a3-text-disabled));
  margin-top: 1px;
}

/* Step progress summary */
.step-progress-summary {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 10px;
}

.step-progress-summary__fraction {
  font-size: var(--a3-fs-data, 13px);
  font-weight: var(--a3-fw-semibold, 600);
  color: var(--a3-cobalt);
}

.step-progress-summary__label {
  font-size: var(--a3-fs-meta, 11px);
  color: var(--a3-chrome-muted, var(--a3-text-secondary));
}

/* Light theme accordion */
.shell[data-theme="light"] .accordion {
  border-bottom-color: var(--a3-chrome-border, #CDD5E5);
}

.shell[data-theme="light"] .accordion__header:hover {
  background: rgba(49, 85, 255, 0.04);
}

.shell[data-theme="light"] .step-chain__dot {
  border-color: var(--a3-chrome-border, #CDD5E5);
  color: var(--a3-text-disabled);
}

.shell[data-theme="light"] .step-chain__line {
  background: var(--a3-chrome-border, #CDD5E5);
}

.shell[data-theme="light"] .step-chain__item--done .step-chain__dot {
  background: var(--a3-cobalt);
  border-color: var(--a3-cobalt);
  color: #fff;
}

.shell[data-theme="light"] .step-chain__item--running .step-chain__dot {
  border-color: var(--a3-cobalt);
  color: var(--a3-cobalt);
}

.shell[data-theme="light"] .lsidebar__rail-btn--active {
  color: var(--a3-cobalt);
}

/* =========================================================
   FEED VIEW — chat/feed-first supervision
   ========================================================= */

/* Container */
.feed {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

/* ── Composer ── */
.feed-composer {
  flex: 0 0 auto;
  padding: 12px 16px;
  border-bottom: 1px solid var(--a3-chrome-border);
  background: var(--a3-chrome-panel-2);
  position: sticky;
  top: 0;
  z-index: 2;
}

.feed-composer__input {
  width: 100%;
  padding: 10px 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--a3-chrome-border);
  border-radius: var(--a3-radius-shell);
  color: var(--a3-chrome-text);
  font-family: inherit;
  font-size: var(--a3-fs-data);
  line-height: 1.5;
  resize: none;
  transition: border-color 150ms ease, background 150ms ease;
}

.feed-composer__input:focus {
  outline: none;
  border-color: var(--a3-cobalt, #3155FF);
  background: rgba(255,255,255,0.06);
}

.feed-composer__input::placeholder {
  color: var(--a3-chrome-dim);
}

.feed-composer__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
}

.feed-composer__hint {
  font-size: var(--a3-fs-label);
  color: var(--a3-chrome-dim);
  font-family: var(--a3-font-mono, monospace);
}

.feed-composer__send {
  width: 32px;
  height: 32px;
  border-radius: var(--a3-radius-card);
  border: none;
  background: var(--a3-cobalt, #3155FF);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 120ms ease;
}

.feed-composer__send:disabled {
  opacity: 0.3;
  cursor: default;
}

.feed-composer__send:not(:disabled):hover {
  opacity: 0.85;
}

/* ── Filter bar ── */
.feed-filter {
  flex: 0 0 auto;
  display: flex;
  gap: 6px;
  padding: 8px 16px;
  border-bottom: 1px solid var(--a3-chrome-border);
}

.feed-filter__chip {
  padding: 4px 10px;
  border-radius: 12px;
  border: 1px solid var(--a3-chrome-border);
  background: transparent;
  color: var(--a3-chrome-muted);
  font-size: var(--a3-fs-meta);
  font-weight: var(--a3-fw-medium);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 120ms ease;
}

.feed-filter__chip:hover {
  border-color: var(--a3-chrome-border-strong);
  color: var(--a3-chrome-text);
}

.feed-filter__chip--active {
  background: var(--a3-cobalt, #3155FF);
  border-color: var(--a3-cobalt, #3155FF);
  color: #fff;
}

.feed-filter__count {
  font-size: 10px;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: var(--a3-radius-shell);
  background: rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.feed-filter__chip--active .feed-filter__count {
  background: rgba(255,255,255,0.25);
}

/* ── Timeline ── */
.feed-timeline {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ── Load more ── */
.feed-more {
  flex: 0 0 auto;
  padding: 8px 16px;
  margin: 0 16px 12px;
  border-radius: var(--a3-radius-card);
  border: 1px solid var(--a3-chrome-border);
  background: transparent;
  color: var(--a3-chrome-muted);
  font-size: var(--a3-fs-meta);
  cursor: pointer;
  text-align: center;
  transition: all 120ms ease;
}

.feed-more:hover {
  border-color: var(--a3-chrome-border-strong);
  color: var(--a3-chrome-text);
}

/* ── FeedCard base ── */
.feed-card {
  display: flex;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--a3-chrome-border);
  border-radius: var(--a3-radius-card);
  overflow: hidden;
  transition: background 120ms ease;
}

.feed-card:hover {
  background: rgba(255,255,255,0.05);
}

/* 3px left accent strip */
.feed-card__accent {
  flex: 0 0 3px;
  background: var(--card-accent, var(--a3-chrome-dim));
}

.feed-card__body {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
}

.feed-card__body--inline {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
}

/* ── Card head ── */
.feed-card__head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.feed-card__head-text {
  flex: 1;
  min-width: 0;
}

.feed-card__title {
  font-size: var(--a3-fs-data);
  font-weight: var(--a3-fw-semibold);
  color: var(--a3-chrome-text);
  line-height: 1.35;
  margin-bottom: 2px;
}

.feed-card__subtitle {
  display: block;
  font-size: var(--a3-fs-meta);
  color: var(--a3-chrome-muted);
  line-height: 1.3;
}

.feed-card__detail {
  font-size: var(--a3-fs-meta);
  color: var(--a3-chrome-muted);
  line-height: 1.5;
  margin-top: 4px;
}

.feed-card__meta {
  font-size: var(--a3-fs-label);
  font-family: var(--a3-font-mono, monospace);
  color: var(--a3-chrome-dim);
  margin-top: 4px;
}

.feed-card__ts {
  font-size: var(--a3-fs-label);
  font-family: var(--a3-font-mono, monospace);
  color: var(--a3-chrome-dim);
  margin-left: auto;
  flex-shrink: 0;
}

.feed-card__ts--right {
  text-align: right;
  margin-top: 4px;
}

/* ── Agent avatar ── */
.feed-card__agent {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--agent-accent, var(--a3-cobalt, #3155FF));
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  font-family: var(--a3-font-mono, monospace);
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* ── Toggle expand ── */
.feed-card__toggle {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: var(--a3-radius-input);
  border: none;
  background: transparent;
  color: var(--a3-chrome-dim);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 120ms ease;
}

.feed-card__toggle:hover {
  background: rgba(255,255,255,0.06);
  color: var(--a3-chrome-text);
}

.feed-card__toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.feed-card__toggle svg {
  transition: transform 150ms ease;
}

/* ── Progress bar ── */
.feed-card__progress {
  height: 3px;
  background: rgba(255,255,255,0.06);
  border-radius: var(--a3-radius-tag);
  margin-top: 8px;
  overflow: hidden;
}

.feed-card__progress-fill {
  height: 100%;
  border-radius: var(--a3-radius-tag);
  transition: width 300ms ease;
}

/* ── Expandable stream section ── */
.feed-card__expand {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--a3-chrome-border);
}

/* ── Approval kind badges ── */
.feed-card__kind-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: var(--a3-radius-input);
  background: rgba(217, 119, 6, 0.10);
  color: #B45309;
}

.feed-card__kind-badge--blocker {
  background: rgba(220, 38, 38, 0.10);
  color: #DC2626;
}

.feed-card__kind-badge--pbc {
  background: rgba(217, 119, 6, 0.10);
  color: #B45309;
}

.feed-card__kind-badge--disclosure {
  background: rgba(99, 102, 241, 0.10);
  color: var(--a3-cobalt, #3155FF);
}

.feed-card__kind-badge--partner {
  background: rgba(124, 58, 237, 0.10);
  color: #7C3AED;
}

/* ── Inline action buttons ── */
.feed-card__actions {
  display: flex;
  gap: 6px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--a3-chrome-border);
}

.feed-card__action {
  flex: 1;
  padding: 6px 10px;
  border-radius: 5px;
  border: 1px solid var(--a3-chrome-border);
  background: transparent;
  color: var(--a3-chrome-muted);
  font-size: var(--a3-fs-meta);
  font-weight: var(--a3-fw-medium);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: all 120ms ease;
}

.feed-card__action:hover {
  border-color: var(--a3-chrome-border-strong);
  color: var(--a3-chrome-text);
}

.feed-card__action--approve:hover {
  border-color: #22C55E;
  color: #22C55E;
  background: rgba(34, 197, 94, 0.06);
}

.feed-card__action--reject:hover {
  border-color: #EF4444;
  color: #EF4444;
  background: rgba(239, 68, 68, 0.06);
}

.feed-card__action--escalate:hover {
  border-color: #D4930A;
  color: #D4930A;
  background: rgba(212, 147, 10, 0.06);
}

/* Decision states */
.feed-card.is-approve {
  border-color: rgba(34, 197, 94, 0.25);
  background: rgba(34, 197, 94, 0.04);
}

.feed-card.is-reject {
  border-color: rgba(239, 68, 68, 0.25);
  background: rgba(239, 68, 68, 0.04);
}

.feed-card.is-escalate {
  border-color: rgba(212, 147, 10, 0.25);
  background: rgba(212, 147, 10, 0.04);
}

/* ── Activity card ── */
.feed-card__activity-src {
  font-size: var(--a3-fs-label);
  font-weight: var(--a3-fw-semibold);
  color: var(--a3-chrome-muted);
}

.feed-card__activity-msg {
  font-size: var(--a3-fs-data);
  color: var(--a3-chrome-text);
  line-height: 1.45;
  margin-top: 2px;
}

.feed-card__tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 3px;
  margin-top: 6px;
}

.feed-card__tag--immaterial {
  background: rgba(123, 136, 168, 0.12);
  color: #7B88A8;
}

.feed-card__tag--fail {
  background: rgba(239, 68, 68, 0.10);
  color: #EF4444;
}

/* ── Milestone card (compact) ── */
.feed-card--milestone {
  background: rgba(34, 197, 94, 0.03);
}

.feed-card__milestone-text {
  font-size: var(--a3-fs-data);
  font-weight: var(--a3-fw-medium);
  color: var(--a3-chrome-text);
}

/* ── User message bubble ── */
.feed-card--user {
  background: transparent;
  border: none;
  flex-direction: column;
  align-items: flex-end;
  display: flex;
}

.feed-card--user:hover {
  background: transparent;
}

.feed-card__user-bubble {
  max-width: 75%;
  padding: 10px 14px;
  border-radius: 12px 12px 2px 12px;
  background: var(--a3-cobalt, #3155FF);
  color: #fff;
  font-size: var(--a3-fs-data);
  line-height: 1.45;
}

/* =========================================================
   FEED — Light theme overrides
   ========================================================= */

.shell[data-theme="light"] .feed-composer__input {
  background: rgba(0,0,0,0.03);
  border-color: rgba(0,0,0,0.12);
  color: var(--a3-text-primary);
}

.shell[data-theme="light"] .feed-composer__input:focus {
  background: #fff;
  border-color: var(--a3-cobalt, #3155FF);
}

.shell[data-theme="light"] .feed-composer__input::placeholder {
  color: var(--a3-text-secondary);
}

.shell[data-theme="light"] .feed-composer__hint {
  color: var(--a3-text-secondary);
}

.shell[data-theme="light"] .feed-filter__chip {
  border-color: rgba(0,0,0,0.12);
  color: var(--a3-text-secondary);
}

.shell[data-theme="light"] .feed-filter__chip:hover {
  border-color: rgba(0,0,0,0.2);
  color: var(--a3-text-primary);
}

.shell[data-theme="light"] .feed-filter__count {
  background: rgba(0,0,0,0.06);
}

.shell[data-theme="light"] .feed-card {
  background: rgba(0,0,0,0.02);
  border-color: rgba(0,0,0,0.08);
}

.shell[data-theme="light"] .feed-card:hover {
  background: rgba(0,0,0,0.04);
}

.shell[data-theme="light"] .feed-card__title {
  color: var(--a3-text-primary);
}

.shell[data-theme="light"] .feed-card__detail,
.shell[data-theme="light"] .feed-card__subtitle,
.shell[data-theme="light"] .feed-card__meta,
.shell[data-theme="light"] .feed-card__ts,
.shell[data-theme="light"] .feed-card__activity-src {
  color: var(--a3-text-secondary);
}

.shell[data-theme="light"] .feed-card__activity-msg {
  color: var(--a3-text-primary);
}

.shell[data-theme="light"] .feed-card__milestone-text {
  color: var(--a3-text-primary);
}

.shell[data-theme="light"] .feed-card__toggle {
  color: var(--a3-text-secondary);
}

.shell[data-theme="light"] .feed-card__toggle:hover {
  background: rgba(0,0,0,0.04);
  color: var(--a3-text-primary);
}

.shell[data-theme="light"] .feed-card__action {
  border-color: rgba(0,0,0,0.12);
  color: var(--a3-text-secondary);
}

.shell[data-theme="light"] .feed-card__action:hover {
  border-color: rgba(0,0,0,0.2);
  color: var(--a3-text-primary);
}

.shell[data-theme="light"] .feed-card__progress {
  background: rgba(0,0,0,0.06);
}

.shell[data-theme="light"] .feed-card__expand {
  border-top-color: rgba(0,0,0,0.08);
}

.shell[data-theme="light"] .feed-card__actions {
  border-top-color: rgba(0,0,0,0.08);
}

.shell[data-theme="light"] .feed-card__user-bubble {
  background: var(--a3-cobalt, #3155FF);
  color: #fff;
}

.shell[data-theme="light"] .feed-more {
  border-color: rgba(0,0,0,0.12);
  color: var(--a3-text-secondary);
}

.shell[data-theme="light"] .feed-more:hover {
  border-color: rgba(0,0,0,0.2);
  color: var(--a3-text-primary);
}

.shell[data-theme="light"] .feed-composer {
  border-bottom-color: rgba(0,0,0,0.08);
  background: var(--a3-canvas, #F8FAFC);
}

.shell[data-theme="light"] .feed-filter {
  border-bottom-color: rgba(0,0,0,0.08);
}

.shell[data-theme="light"] .feed-card.is-approve {
  border-color: rgba(34, 197, 94, 0.3);
  background: rgba(34, 197, 94, 0.05);
}

.shell[data-theme="light"] .feed-card.is-reject {
  border-color: rgba(239, 68, 68, 0.3);
  background: rgba(239, 68, 68, 0.05);
}

.shell[data-theme="light"] .feed-card.is-escalate {
  border-color: rgba(212, 147, 10, 0.3);
  background: rgba(212, 147, 10, 0.05);
}

/* =========================================================
   SIDEBAR — "Neue Aufgabe" button
   ========================================================= */
.lsidebar__new-task-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  width: calc(100% - 16px);
  margin: 8px 8px 4px;
  padding: 8px 12px;
  border: 1px dashed var(--a3-chrome-border-strong);
  border-radius: var(--a3-radius-shell);
  background: transparent;
  color: var(--a3-chrome-text);
  font-family: inherit;
  font-size: var(--a3-fs-data);
  font-weight: var(--a3-fw-medium);
  cursor: pointer;
  transition: background 150ms ease, border-color 150ms ease;
}

.lsidebar__new-task-btn:hover {
  background: rgba(255,255,255,0.06);
  border-color: var(--a3-cobalt);
  color: var(--a3-cobalt);
}

.shell[data-theme="light"] .lsidebar__new-task-btn {
  border-color: #C6CEDF;
  color: var(--a3-text-primary);
}

.shell[data-theme="light"] .lsidebar__new-task-btn:hover {
  background: rgba(49,85,255,0.06);
  border-color: var(--a3-cobalt);
  color: var(--a3-cobalt);
}

/* =========================================================
   DASHBOARD VIEW
   ========================================================= */
.dash {
  padding: 24px 32px;
  overflow-y: auto;
}

.dash__header {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 24px;
}

.dash__title {
  font-size: 22px;
  font-weight: var(--a3-fw-semibold);
  color: var(--a3-chrome-text);
  margin: 0;
}

.dash__subtitle {
  font-size: var(--a3-fs-body);
  color: var(--a3-chrome-muted);
}

.dash__kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

@media (min-width: 1200px) {
  .dash__kpi-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

.dash-kpi {
  border: 1px solid var(--a3-chrome-border);
  border-radius: 10px;
  padding: 14px 16px;
  background: rgba(255,255,255,0.03);
}

.dash-kpi__label {
  font-size: 10px;
  font-weight: var(--a3-fw-semibold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--a3-chrome-dim);
  margin-bottom: 8px;
}

.dash-kpi__value {
  font-family: var(--a3-font-mono);
  font-size: 24px;
  line-height: 1;
  color: var(--a3-chrome-text);
}

.dash-kpi--cobalt { border-color: rgba(49,85,255,0.3); }
.dash-kpi--cobalt .dash-kpi__value { color: var(--a3-cobalt); }
.dash-kpi--done { border-color: rgba(34,197,94,0.3); }
.dash-kpi--done .dash-kpi__value { color: var(--a3-status-done); }
.dash-kpi--blocked { border-color: rgba(239,68,68,0.3); }
.dash-kpi--blocked .dash-kpi__value { color: var(--a3-status-blocked); }
.dash-kpi--paused { border-color: rgba(202,138,4,0.3); }
.dash-kpi--paused .dash-kpi__value { color: var(--a3-status-paused); }

.dash__progress-section {
  margin-bottom: 24px;
}

.dash__progress-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: var(--a3-fs-data);
  font-weight: var(--a3-fw-medium);
  color: var(--a3-chrome-text);
  margin-bottom: 8px;
}

.dash__progress-pct {
  font-family: var(--a3-font-mono);
  font-size: 15px;
  color: var(--a3-cobalt);
}

.dash__progress-bar {
  height: 8px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--a3-radius-input);
  overflow: hidden;
}

.dash__progress-fill {
  height: 100%;
  background: var(--a3-cobalt);
  border-radius: var(--a3-radius-input);
  transition: width 300ms ease;
}

.dash__progress-detail {
  margin-top: 6px;
  font-size: var(--a3-fs-meta);
  color: var(--a3-chrome-muted);
}

.dash__timeline-section,
.dash__activity-section {
  margin-bottom: 24px;
}

.dash__section-title {
  font-size: var(--a3-fs-body);
  font-weight: var(--a3-fw-semibold);
  color: var(--a3-chrome-text);
  margin: 0 0 12px;
}

.dash__empty {
  font-size: var(--a3-fs-data);
  color: var(--a3-chrome-muted);
  padding: 12px 0;
}

.dash__activity-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dash__activity-item {
  border: 1px solid var(--a3-chrome-border);
  border-radius: var(--a3-radius-shell);
  padding: 10px 14px;
  background: rgba(255,255,255,0.03);
}

.dash__activity-meta {
  display: flex;
  justify-content: space-between;
  font-size: var(--a3-fs-label);
  color: var(--a3-chrome-dim);
  margin-bottom: 4px;
}

.dash__activity-src {
  font-weight: var(--a3-fw-semibold);
}

.dash__activity-msg {
  font-size: var(--a3-fs-data);
  color: var(--a3-chrome-text);
}

/* Dashboard — light theme */
.shell[data-theme="light"] .dash-kpi {
  background: #FFFFFF;
  border-color: #D9E0EF;
}

.shell[data-theme="light"] .dash-kpi__value {
  color: var(--a3-text-primary);
}

.shell[data-theme="light"] .dash-kpi--cobalt .dash-kpi__value { color: var(--a3-cobalt); }
.shell[data-theme="light"] .dash-kpi--done .dash-kpi__value { color: var(--a3-status-done); }
.shell[data-theme="light"] .dash-kpi--blocked .dash-kpi__value { color: var(--a3-status-blocked); }
.shell[data-theme="light"] .dash-kpi--paused .dash-kpi__value { color: var(--a3-status-paused); }

.shell[data-theme="light"] .dash__progress-bar {
  background: rgba(0,0,0,0.06);
}

.shell[data-theme="light"] .dash__activity-item {
  background: #FFFFFF;
  border-color: #D9E0EF;
}

/* =========================================================
   LIGHT MODE — Inspector component gaps
   ========================================================= */

/* Source rows */
.shell[data-theme="light"] .source-row {
  color: var(--a3-text-primary);
  border-color: #E4E9F2;
}
.shell[data-theme="light"] .source-row:hover {
  background: rgba(0, 0, 0, 0.03);
}
.shell[data-theme="light"] .source-row__pdf {
  color: #C4281C;
}

/* Inspector minibar */
.shell[data-theme="light"] .inspector__minibar {
  background: #D9E0EF;
}
.shell[data-theme="light"] .inspector__minibar > span {
  background: var(--a3-cobalt);
}

/* Step progress summary */
.shell[data-theme="light"] .step-progress-summary__fraction {
  color: var(--a3-cobalt);
}
.shell[data-theme="light"] .step-progress-summary__label {
  color: var(--a3-text-secondary);
}

/* Freigaben variant backgrounds (dark-only rgba too subtle on white) */
.shell[data-theme="light"] .freigaben-item--blocker {
  background: rgba(220, 38, 38, 0.04);
}
.shell[data-theme="light"] .freigaben-item--blocker:hover {
  background: rgba(220, 38, 38, 0.07);
}
.shell[data-theme="light"] .freigaben-item--pbc {
  background: rgba(217, 119, 6, 0.04);
}
.shell[data-theme="light"] .freigaben-item--pbc:hover {
  background: rgba(217, 119, 6, 0.07);
}
.shell[data-theme="light"] .freigaben-item--partner {
  background: rgba(124, 58, 237, 0.04);
}
.shell[data-theme="light"] .freigaben-item--partner:hover {
  background: rgba(124, 58, 237, 0.07);
}

/* Freigaben action buttons */
.shell[data-theme="light"] .freigaben-action--reject {
  border-color: #CDD5E5;
  color: var(--a3-text-secondary);
}
.shell[data-theme="light"] .freigaben-action--reject:hover {
  border-color: var(--a3-status-blocked);
  color: var(--a3-status-blocked);
}

/* Imini stat cards */
.shell[data-theme="light"] .imini {
  background: #F0F3FA;
  border-color: #D9E0EF;
}

/* Materiality rows */
.shell[data-theme="light"] .materiality-row {
  border-bottom-color: #E4E9F2;
}
.shell[data-theme="light"] .materiality-row .desc {
  color: var(--a3-text-secondary);
}

/* Warn dot in step chain (missing from existing light overrides) */
.shell[data-theme="light"] .step-chain__item--warn .step-chain__dot {
  border-color: var(--a3-orange, #F59E0B);
  color: var(--a3-orange, #F59E0B);
}

/* =========================================================
   Agent hierarchy in BereichProgress
   ========================================================= */

.inspector__agent-orch {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  padding: 6px 0;
}

.inspector__agent-orch-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--a3-cobalt);
  flex-shrink: 0;
  animation: blink 1.4s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.inspector__agent-orch-label {
  font-size: var(--a3-fs-data, 13px);
  font-weight: var(--a3-fw-semibold, 600);
  color: var(--a3-chrome-text, var(--a3-text-primary));
}

.inspector__agent-orch-count {
  font-size: var(--a3-fs-meta, 11px);
  color: var(--a3-chrome-muted, var(--a3-text-secondary));
  margin-left: auto;
}

.inspector__agent-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  vertical-align: middle;
  margin-right: 3px;
  flex-shrink: 0;
}

/* =========================================================
   Activity section in Inspector
   ========================================================= */

.inspector__activity-row {
  display: flex;
  gap: 8px;
  padding: 4px 0;
  border-bottom: 1px solid var(--a3-chrome-border, rgba(255,255,255,0.06));
  align-items: flex-start;
}

.inspector__activity-row:last-child {
  border-bottom: none;
}

.inspector__activity-ts {
  font-size: var(--a3-fs-label, 10px);
  font-family: var(--a3-font-mono, monospace);
  color: var(--a3-chrome-dim, var(--a3-text-disabled));
  white-space: nowrap;
  flex-shrink: 0;
  min-width: 36px;
}

.inspector__activity-msg {
  font-size: var(--a3-fs-meta, 11px);
  color: var(--a3-chrome-text, var(--a3-text-primary));
  line-height: 1.4;
}

.inspector__activity-tag {
  display: inline-block;
  font-size: 9px;
  font-family: var(--a3-font-mono, monospace);
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 1px 5px;
  border-radius: var(--a3-radius-input, 4px);
  margin-left: 4px;
  vertical-align: middle;
}

.inspector__activity-tag--fail {
  background: rgba(220, 38, 38, 0.12);
  color: #DC2626;
}

.inspector__activity-tag--immaterial {
  background: rgba(99, 102, 241, 0.10);
  color: var(--a3-cobalt);
}

/* Light mode — agent hierarchy + activity */
.shell[data-theme="light"] .inspector__agent-orch-label {
  color: var(--a3-text-primary);
}

.shell[data-theme="light"] .inspector__agent-orch-count {
  color: var(--a3-text-secondary);
}

.shell[data-theme="light"] .inspector__activity-row {
  border-bottom-color: #E4E9F2;
}

.shell[data-theme="light"] .inspector__activity-ts {
  color: var(--a3-text-disabled);
}

.shell[data-theme="light"] .inspector__activity-msg {
  color: var(--a3-text-primary);
}

/* =========================================================
   LIGHT MODE — Co-work landing page (glanding + gconv-tile)
   All these components were dark-only with hardcoded rgba values.
   ========================================================= */

/* Landing page container — was #0D1117 (dark) */
.shell[data-theme="light"] .gespraech-landing {
  background: var(--a3-chrome-panel-2, #F5F7FC);
}

/* Animated canvas blobs — boost visibility on light background */
.shell[data-theme="light"] .glanding__canvas {
  opacity: 0.6;
}

/* Bottom gradient — adapt to light surface */
.shell[data-theme="light"] .gespraech-landing::after {
  background: linear-gradient(to bottom, transparent 0%, rgba(245,247,252,0.8) 100%);
}

/* Heading: was #ECEFF3 (white) — now dark text */
.shell[data-theme="light"] .glanding__heading {
  color: var(--a3-text-primary);
  text-shadow: none;
}

/* Eyebrow label — cobalt is fine but boost opacity */
.shell[data-theme="light"] .glanding__eyebrow {
  color: var(--a3-cobalt);
}

/* Subtitle — was rgba(183,189,197,0.85) (too light) */
.shell[data-theme="light"] .glanding__sub {
  color: var(--a3-text-secondary);
}

/* Compose box — was rgba(13,17,23,0.82) (dark) */
.shell[data-theme="light"] .glanding__compose {
  border-color: var(--a3-border);
  background: var(--a3-surface);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06), 0 1px 0 rgba(0,0,0,0.03) inset;
}
.shell[data-theme="light"] .glanding__compose:focus-within {
  border-color: var(--a3-cobalt);
  box-shadow: 0 0 0 3px rgba(49,85,255,0.10), 0 2px 12px rgba(0,0,0,0.06);
}

/* Compose input text */
.shell[data-theme="light"] .glanding__compose-input {
  color: var(--a3-text-primary);
}
.shell[data-theme="light"] .glanding__compose-input::placeholder {
  color: var(--a3-text-disabled);
}

/* Compose toolbar — was rgba(0,0,0,0.15) */
.shell[data-theme="light"] .glanding__compose-toolbar {
  border-top-color: var(--a3-border-soft);
  background: rgba(0,0,0,0.02);
}
.shell[data-theme="light"] .glanding__compose-hint {
  color: var(--a3-text-disabled);
}

/* Send button disabled state */
.shell[data-theme="light"] .glanding__compose-send:disabled {
  background: var(--a3-border);
  color: var(--a3-text-disabled);
}

/* Section label ("Aktive Gespräche") */
.shell[data-theme="light"] .glanding__convs-label {
  color: var(--a3-text-secondary);
}
.shell[data-theme="light"] .glanding__convs-label::after {
  background: var(--a3-border-soft);
}

/* Conversation tile cards — was rgba(13,17,23,0.78) (dark) */
.shell[data-theme="light"] .gconv-tile {
  border-color: var(--a3-border);
  background: var(--a3-surface);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.shell[data-theme="light"] .gconv-tile:hover {
  background: #F8FAFF;
  border-color: var(--a3-cobalt-ring);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.shell[data-theme="light"] .gconv-tile--running {
  border-color: rgba(49,85,255,0.25);
  background: rgba(49,85,255,0.02);
}
.shell[data-theme="light"] .gconv-tile--running:hover {
  border-color: rgba(49,85,255,0.4);
}

/* Tile sub-elements */
.shell[data-theme="light"] .gconv-tile__code {
  background: rgba(0,0,0,0.05);
  color: var(--a3-text-secondary);
}
.shell[data-theme="light"] .gconv-tile__title {
  color: var(--a3-text-primary);
}
.shell[data-theme="light"] .gconv-tile__last {
  color: var(--a3-text-secondary);
}
.shell[data-theme="light"] .gconv-tile__ts {
  color: var(--a3-text-disabled);
}

/* =========================================================
   v4: Theme-stable shell + contextual dossier
   ========================================================= */

.shell[data-theme="dark"] {
  --a3-chrome-bg: #0B1018;
  --a3-chrome-panel: #111822;
  --a3-chrome-panel-2: #151E2A;
  --a3-chrome-panel-3: #1B2634;
  --a3-chrome-border: rgba(148, 163, 184, 0.18);
  --a3-chrome-border-strong: rgba(148, 163, 184, 0.30);
  --a3-chrome-text: #E7ECF6;
  --a3-chrome-muted: #A7B0C0;
  --a3-chrome-dim: #6F7A8D;
  --a3-chrome-hover: rgba(148, 163, 184, 0.10);
  --a3-chrome-selected: rgba(49, 85, 255, 0.16);
  --a3-chrome-shadow: rgba(0, 0, 0, 0.26);
}

.shell[data-theme="light"] {
  --a3-chrome-bg: #E8ECF4;
  --a3-chrome-panel: #FFFFFF;
  --a3-chrome-panel-2: #F5F7FC;
  --a3-chrome-panel-3: #EDF2FA;
  --a3-chrome-border: #CDD5E5;
  --a3-chrome-border-strong: #B8C2D6;
  --a3-chrome-text: var(--a3-text-primary);
  --a3-chrome-muted: var(--a3-text-secondary);
  --a3-chrome-dim: var(--a3-text-disabled);
  --a3-chrome-hover: rgba(49, 85, 255, 0.06);
  --a3-chrome-selected: var(--a3-cobalt-tint);
  --a3-chrome-shadow: rgba(15, 23, 42, 0.10);
}

.shell[data-theme] {
  background: var(--a3-chrome-bg);
}

.shell[data-theme] .main {
  background: var(--a3-chrome-panel-2);
  color: var(--a3-chrome-text);
}

.shell[data-theme] .lsidebar,
.shell[data-theme] .inspector {
  background: var(--a3-chrome-panel);
  border-color: var(--a3-chrome-border);
  color: var(--a3-chrome-text);
}

.shell[data-theme] .panel-subheader,
.shell[data-theme] .inspector__head,
.shell[data-theme] .gespraech__thread-head {
  background: var(--a3-chrome-panel);
  border-color: var(--a3-chrome-border);
}

.inspector__heading {
  min-width: 0;
  display: grid;
  gap: 1px;
}

.shell[data-theme] .inspector__title {
  color: var(--a3-chrome-text);
}

.shell[data-theme] .inspector__subtitle {
  color: var(--a3-chrome-muted);
  max-width: 220px;
}

.inspector--accordion .inspector__body {
  gap: 10px;
  padding: 12px;
}

.dossier-hero,
.dossier-action,
.dossier-facts {
  flex-shrink: 0;
}

.dossier-hero {
  padding: 12px;
  border: 1px solid var(--a3-chrome-border);
  border-radius: var(--a3-radius-shell);
  background:
    linear-gradient(135deg, rgba(49, 85, 255, 0.12), transparent 58%),
    var(--a3-chrome-panel-2);
}

.dossier-hero__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.dossier-hero__eyebrow {
  color: var(--a3-chrome-dim);
  font-size: var(--a3-fs-label);
  font-weight: var(--a3-fw-medium);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dossier-hero__title {
  color: var(--a3-chrome-text);
  font-family: var(--a3-font-display);
  font-size: var(--a3-fs-body);
  font-weight: var(--a3-fw-medium);
  line-height: 1.28;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.dossier-hero__meta {
  margin-top: 7px;
  color: var(--a3-chrome-muted);
  font-size: var(--a3-fs-meta);
  line-height: 1.35;
}

.dossier-action {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 30px;
  gap: 9px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--a3-chrome-border);
  border-radius: var(--a3-radius-shell);
  background: var(--a3-chrome-panel-2);
}

.dossier-action__icon,
.dossier-action__button {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--a3-radius-card);
}

.dossier-action__icon {
  color: var(--a3-cobalt);
  background: rgba(49, 85, 255, 0.12);
}

.dossier-action__body {
  min-width: 0;
}

.dossier-action__label {
  color: var(--a3-chrome-text);
  font-size: var(--a3-fs-data);
  font-weight: var(--a3-fw-medium);
  line-height: 1.25;
}

.dossier-action__detail {
  margin-top: 2px;
  color: var(--a3-chrome-muted);
  font-size: var(--a3-fs-meta);
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dossier-action__button {
  border: 1px solid var(--a3-chrome-border);
  background: transparent;
  color: var(--a3-chrome-muted);
  cursor: pointer;
  transition: background var(--a3-duration-fast) var(--a3-ease), color var(--a3-duration-fast) var(--a3-ease), border-color var(--a3-duration-fast) var(--a3-ease);
}

.dossier-action__button:hover {
  border-color: rgba(49, 85, 255, 0.45);
  background: rgba(49, 85, 255, 0.12);
  color: var(--a3-cobalt);
}

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

.dossier-fact {
  min-width: 0;
  padding: 8px 9px;
  border: 1px solid var(--a3-chrome-border);
  border-radius: var(--a3-radius-card);
  background: var(--a3-chrome-panel-2);
}

.dossier-fact span {
  display: block;
  color: var(--a3-chrome-dim);
  font-size: var(--a3-fs-label);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dossier-fact strong {
  display: block;
  min-width: 0;
  margin-top: 3px;
  color: var(--a3-chrome-text);
  font-family: var(--a3-font-mono);
  font-size: var(--a3-fs-meta);
  font-weight: var(--a3-fw-medium);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shell[data-theme] .accordion {
  border: 1px solid var(--a3-chrome-border);
  border-radius: var(--a3-radius-shell);
  background: var(--a3-chrome-panel-2);
  overflow: hidden;
}

.shell[data-theme] .accordion + .accordion {
  margin-top: 0;
}

.shell[data-theme] .accordion__header {
  color: var(--a3-chrome-text);
}

.shell[data-theme] .accordion__header:hover {
  background: var(--a3-chrome-hover);
}

.shell[data-theme] .accordion__chevron,
.shell[data-theme] .accordion__count {
  color: var(--a3-chrome-dim);
}

.shell[data-theme] .accordion__body {
  padding: 0 12px 12px;
}

.shell[data-theme] .source-row,
.shell[data-theme] .materiality-row,
.shell[data-theme] .inspector__activity-row {
  border-color: var(--a3-chrome-border);
}

.shell[data-theme] .source-row:hover {
  background: var(--a3-chrome-hover);
}

.shell[data-theme] .meta,
.shell[data-theme] .step-chain__detail,
.shell[data-theme] .step-chain__ts,
.shell[data-theme] .step-progress-summary__label,
.shell[data-theme] .materiality-row .desc {
  color: var(--a3-chrome-muted);
}

.shell[data-theme] .step-chain__title,
.shell[data-theme] .materiality-row .code,
.shell[data-theme] .materiality-row .val,
.shell[data-theme] .imini__value,
.shell[data-theme] .source-row {
  color: var(--a3-chrome-text);
}

.shell[data-theme] .imini {
  background: var(--a3-chrome-panel-3);
  border-color: var(--a3-chrome-border);
}

.shell[data-theme] .gespraech-landing {
  background: var(--a3-chrome-panel-2);
}

.shell[data-theme="dark"] .gespraech-landing::after {
  background: linear-gradient(to bottom, transparent 0%, rgba(11, 16, 24, 0.72) 100%);
}

.shell[data-theme] .glanding__heading {
  color: var(--a3-chrome-text);
  letter-spacing: 0;
}

.shell[data-theme] .glanding__sub,
.shell[data-theme] .glanding__convs-label {
  color: var(--a3-chrome-muted);
}

.shell[data-theme] .glanding__compose,
.shell[data-theme] .gconv-tile,
.shell[data-theme] .gespraech__compose {
  border-color: var(--a3-chrome-border);
  background: var(--a3-chrome-panel);
  box-shadow: 0 8px 28px var(--a3-chrome-shadow);
}

.shell[data-theme] .glanding__compose-toolbar,
.shell[data-theme] .gespraech__compose-toolbar {
  border-color: var(--a3-chrome-border);
  background: var(--a3-chrome-panel-2);
}

.shell[data-theme] .glanding__compose-input,
.shell[data-theme] .gespraech__compose-input,
.shell[data-theme] .gchat-msg__text,
.shell[data-theme] .gespraech__thread-title-text {
  color: var(--a3-chrome-text);
}

.shell[data-theme] .glanding__compose-input::placeholder,
.shell[data-theme] .gespraech__compose-input::placeholder {
  color: var(--a3-chrome-dim);
}

.shell[data-theme] .gconv-tile:hover {
  background: var(--a3-chrome-panel-3);
  border-color: var(--a3-chrome-border-strong);
  transform: none;
}

.shell[data-theme] .glanding__compose-send:hover:not(:disabled) {
  transform: none;
}

.shell[data-theme] .gconv-tile__title,
.shell[data-theme] .gconv-row--active .gconv-row__title,
.shell[data-theme] .gespraech__thread-empty-name {
  color: var(--a3-chrome-text);
}

.shell[data-theme] .gconv-tile__last,
.shell[data-theme] .gconv-row__title,
.shell[data-theme] .gchat-msg__agent-name,
.shell[data-theme] .gespraech__thread-agent,
.shell[data-theme] .gespraech__thread-empty-hint,
.shell[data-theme] .gespraech__compose-hint {
  color: var(--a3-chrome-muted);
}

.shell[data-theme] .gconv-tile__ts,
.shell[data-theme] .gchat-msg__agent-ts,
.shell[data-theme] .gchat-msg__user-ts,
.shell[data-theme] .gespraech__thread-sep {
  color: var(--a3-chrome-dim);
}

.shell[data-theme] .gchat-msg__user-bubble,
.shell[data-theme] .gchat-citation {
  background: rgba(49, 85, 255, 0.12);
  border-color: rgba(49, 85, 255, 0.24);
}

.shell[data-theme="light"] .gchat-msg__user-bubble,
.shell[data-theme="light"] .gchat-citation {
  background: var(--a3-cobalt-tint);
}

.shell[data-theme] .gespraech__back:hover,
.shell[data-theme] .gespraech__new:hover,
.shell[data-theme] .gconv-row:hover,
.shell[data-theme] .lnav-coworker-sub-item:hover,
.shell[data-theme] .lnav-zuletzt:hover {
  background: var(--a3-chrome-hover);
  color: var(--a3-chrome-text);
}

.shell[data-theme] .gconv-row--active,
.shell[data-theme] .lnav-item--selected,
.shell[data-theme] .lnav-bereich--selected,
.shell[data-theme] .lnav-sheet--selected {
  background: var(--a3-chrome-selected);
}

.shell[data-theme="dark"] .statstrip {
  background: var(--a3-chrome-panel);
  border-bottom-color: var(--a3-chrome-border);
}

.shell[data-theme="dark"] .statstrip__cell {
  border-right-color: var(--a3-chrome-border);
}

.shell[data-theme="dark"] .statstrip__cell.is-alert {
  background: rgba(200, 32, 32, 0.16);
}

.shell[data-theme="dark"] .statstrip__label {
  color: var(--a3-chrome-dim);
}

.shell[data-theme="dark"] .statstrip__value {
  color: var(--a3-chrome-text);
}

.shell[data-theme="dark"] .statstrip__value.is-running {
  color: #7EA0FF;
}

.shell[data-theme="dark"] .statstrip__value.is-blocked {
  color: #F87171;
}

.shell[data-theme="dark"] .statstrip__value.is-pending {
  color: #FBBF24;
}

.shell[data-theme="dark"] .mn-head__viewtoggle {
  background: var(--a3-chrome-panel);
  border-color: var(--a3-chrome-border);
}

.shell[data-theme="dark"] .mn-head__viewtoggle button {
  color: var(--a3-chrome-muted);
}

.shell[data-theme="dark"] .mn-head__viewtoggle button.active {
  background: var(--a3-chrome-panel-3);
  color: var(--a3-chrome-text);
}

.shell[data-theme="dark"] .mn-node {
  background: #172231;
  border-color: rgba(148, 163, 184, 0.26);
  color: var(--a3-chrome-text);
}

.shell[data-theme="dark"] .mn-node:hover,
.shell[data-theme="dark"] .mn-node.is-selected {
  border-color: rgba(126, 160, 255, 0.70);
  box-shadow: 0 0 0 2px rgba(49, 85, 255, 0.18);
}

.shell[data-theme="dark"] .mn-node.is-done {
  border-color: rgba(34, 197, 122, 0.42);
}

.shell[data-theme="dark"] .mn-node.is-running {
  border-color: rgba(126, 160, 255, 0.62);
}

.shell[data-theme="dark"] .mn-node.is-pending {
  background: #131C28;
  border-color: rgba(148, 163, 184, 0.22);
}

.shell[data-theme="dark"] .mn-node__name {
  color: var(--a3-chrome-text);
}

.shell[data-theme="dark"] .mn-node__sub,
.shell[data-theme="dark"] .mn-node__bar-meta,
.shell[data-theme="dark"] .mn-node__dates {
  color: var(--a3-chrome-muted);
}

.shell[data-theme="dark"] .mn-node__code {
  color: #9FB3D8;
}

.shell[data-theme="dark"] .mn-node__bar-track {
  background: rgba(148, 163, 184, 0.20);
}

/* =========================================================
   v5: Co-worker execution provenance + quiet context panel
   ========================================================= */

.gespraech__modebar {
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 20px;
  border-bottom: 1px solid var(--a3-chrome-border);
  background: var(--a3-chrome-panel);
  flex-shrink: 0;
}

.gespraech__mode {
  height: 28px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: var(--a3-radius-card);
  background: transparent;
  color: var(--a3-chrome-muted);
  font: inherit;
  font-size: var(--a3-fs-meta);
  cursor: pointer;
  transition: background var(--a3-duration-fast) var(--a3-ease), color var(--a3-duration-fast) var(--a3-ease), border-color var(--a3-duration-fast) var(--a3-ease);
}

.gespraech__mode:hover {
  background: var(--a3-chrome-hover);
  color: var(--a3-chrome-text);
}

.gespraech__mode--active {
  background: var(--a3-chrome-selected);
  border-color: rgba(49, 85, 255, 0.28);
  color: var(--a3-cobalt);
}

.trace-view,
.result-view {
  width: min(820px, 100%);
  margin: 0 auto;
}

.trace-view__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 12px;
}

.trace-view__eyebrow,
.result-card__status,
.result-note__label {
  display: block;
  color: var(--a3-chrome-dim);
  font-size: var(--a3-fs-label);
  font-weight: var(--a3-fw-medium);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.trace-view h2,
.result-card h2 {
  margin: 4px 0 0;
  color: var(--a3-chrome-text);
  font-family: var(--a3-font-display);
  font-size: var(--a3-fs-section);
  font-weight: var(--a3-fw-medium);
  line-height: 1.3;
}

.trace-view__run,
.result-card__run {
  color: var(--a3-chrome-dim);
  font-family: var(--a3-font-mono);
  font-size: var(--a3-fs-label);
  white-space: nowrap;
}

.trace-view__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding: 8px 10px;
  border: 1px solid var(--a3-chrome-border);
  border-radius: var(--a3-radius-card);
  background: var(--a3-chrome-panel);
  color: var(--a3-chrome-muted);
  font-size: var(--a3-fs-meta);
}

.trace-view__summary strong {
  color: var(--a3-chrome-text);
  font-weight: var(--a3-fw-medium);
}

.trace-lanes {
  display: grid;
  gap: 10px;
}

.trace-lane {
  border: 1px solid var(--a3-chrome-border);
  border-radius: var(--a3-radius-shell);
  background: var(--a3-chrome-panel);
  overflow: hidden;
}

.trace-lane__title {
  padding: 9px 12px;
  border-bottom: 1px solid var(--a3-chrome-border);
  color: var(--a3-chrome-text);
  font-size: var(--a3-fs-meta);
  font-weight: var(--a3-fw-medium);
}

.trace-lane__steps {
  padding: 10px 12px 12px;
}

.trace-step {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 9px;
}

.trace-step + .trace-step {
  margin-top: 12px;
}

.trace-step__dot {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--a3-chrome-border-strong);
  border-radius: 50%;
  color: var(--a3-chrome-dim);
  background: var(--a3-chrome-panel-2);
  font-size: 10px;
  font-weight: var(--a3-fw-medium);
}

.trace-step--done .trace-step__dot {
  border-color: rgba(15, 155, 88, 0.42);
  background: rgba(15, 155, 88, 0.12);
  color: var(--a3-status-done);
}

.trace-step--warn .trace-step__dot {
  border-color: rgba(200, 32, 32, 0.40);
  background: rgba(200, 32, 32, 0.10);
  color: var(--a3-status-blocked);
}

/* Skipped audit areas (whole-workflow scope) — muted grey */
.trace-step--skipped .trace-step__dot {
  border-color: rgba(110, 118, 135, 0.35);
  background: rgba(110, 118, 135, 0.10);
  color: var(--a3-text-muted, #6e7687);
}

.trace-step--skipped .trace-step__body {
  opacity: 0.62;
}

/* Run-artifact downloads in the result view */
.result-downloads {
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid var(--a3-chrome-border, #e3e6ee);
  border-radius: 8px;
  background: var(--a3-chrome-panel, #fff);
}

.result-downloads__row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.result-downloads__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border: 1px solid var(--a3-chrome-border, #d6dae4);
  border-radius: 6px;
  background: var(--a3-chrome-panel-2, #f6f7fa);
  font-size: 12px;
  cursor: pointer;
}

.result-downloads__btn:disabled {
  opacity: 0.55;
  cursor: progress;
}

.result-downloads__err {
  margin-top: 8px;
  font-size: 12px;
  color: var(--a3-status-blocked, #c82020);
}

.trace-step__body {
  min-width: 0;
}

.trace-step__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.trace-step__top strong {
  color: var(--a3-chrome-text);
  font-size: var(--a3-fs-data);
  font-weight: var(--a3-fw-medium);
}

.trace-step__top span {
  color: var(--a3-chrome-dim);
  font-family: var(--a3-font-mono);
  font-size: var(--a3-fs-label);
}

.trace-step p,
.result-card p,
.result-note p,
.context-copy,
.context-summary p {
  margin: 4px 0 0;
  color: var(--a3-chrome-muted);
  font-size: var(--a3-fs-meta);
  line-height: 1.45;
}

.result-view {
  display: grid;
  gap: 12px;
}

.result-card,
.result-note {
  border: 1px solid var(--a3-chrome-border);
  border-radius: var(--a3-radius-shell);
  background: var(--a3-chrome-panel);
}

.result-card {
  padding: 14px;
}

.result-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.result-card__evidence {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.result-card__toggle {
  min-height: 30px;
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--a3-chrome-border);
  border-radius: var(--a3-radius-card);
  background: transparent;
  color: var(--a3-chrome-muted);
  font: inherit;
  font-size: var(--a3-fs-meta);
  cursor: pointer;
  padding: 0 10px;
}

.result-card__toggle:hover {
  background: var(--a3-chrome-hover);
  color: var(--a3-chrome-text);
}

.result-lineage {
  margin: 12px 0 0;
  padding-left: 20px;
  color: var(--a3-chrome-muted);
  font-size: var(--a3-fs-meta);
  line-height: 1.55;
}

.result-lineage li + li {
  margin-top: 5px;
}

.result-note {
  padding: 11px 12px;
}

.context-panel {
  display: grid;
  gap: 10px;
}

.context-empty,
.context-summary,
.context-section,
.context-next,
.compact-metric {
  border: 1px solid var(--a3-chrome-border);
  border-radius: var(--a3-radius-shell);
  background: var(--a3-chrome-panel-2);
}

.context-empty {
  padding: 18px 14px;
  text-align: left;
}

.context-empty__icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--a3-radius-card);
  background: rgba(49, 85, 255, 0.12);
  color: var(--a3-cobalt);
}

.context-empty__title {
  margin-top: 12px;
  color: var(--a3-chrome-text);
  font-family: var(--a3-font-display);
  font-size: var(--a3-fs-body);
  font-weight: var(--a3-fw-medium);
}

.context-empty p {
  margin: 6px 0 0;
  color: var(--a3-chrome-muted);
  font-size: var(--a3-fs-meta);
  line-height: 1.45;
}

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

.compact-metric {
  padding: 9px 10px;
}

.compact-metric span {
  display: block;
  color: var(--a3-chrome-dim);
  font-size: var(--a3-fs-label);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.compact-metric strong {
  display: block;
  margin-top: 3px;
  color: var(--a3-chrome-text);
  font-family: var(--a3-font-mono);
  font-size: var(--a3-fs-body);
  font-weight: var(--a3-fw-medium);
}

.compact-metric.cobalt strong { color: var(--a3-cobalt); }
.compact-metric.blocked strong { color: var(--a3-status-blocked); }
.compact-metric.paused strong { color: var(--a3-status-paused); }

.context-next {
  width: 100%;
  min-height: 48px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18px;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  color: var(--a3-chrome-text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.context-next:hover {
  background: var(--a3-chrome-hover);
}

.context-next span {
  min-width: 0;
}

.context-next em,
.context-section__label {
  display: block;
  color: var(--a3-chrome-dim);
  font-size: var(--a3-fs-label);
  font-style: normal;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.context-next strong {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--a3-chrome-text);
  font-size: var(--a3-fs-meta);
  font-weight: var(--a3-fw-medium);
}

.context-summary {
  padding: 12px;
}

.context-summary__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.context-summary__top > span {
  color: var(--a3-chrome-dim);
  font-family: var(--a3-font-mono);
  font-size: var(--a3-fs-label);
  letter-spacing: 0.08em;
}

.context-summary h3 {
  margin: 9px 0 0;
  color: var(--a3-chrome-text);
  font-family: var(--a3-font-display);
  font-size: var(--a3-fs-body);
  font-weight: var(--a3-fw-medium);
  line-height: 1.3;
}

.context-section {
  padding: 10px 12px;
}

.context-copy strong {
  color: var(--a3-chrome-text);
  font-weight: var(--a3-fw-medium);
}

.context-citations {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.context-citations span {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  border: 1px solid rgba(49, 85, 255, 0.24);
  border-radius: var(--a3-radius-input);
  background: rgba(49, 85, 255, 0.10);
  color: var(--a3-cobalt);
  font-family: var(--a3-font-mono);
  font-size: 10px;
  padding: 3px 6px;
}


/* =========================================================
   v6: BOLDER — Hierarchy amplification & spatial confidence
   Personality: Confident Precision (Bloomberg meets Linear)
   ========================================================= */

/* ── 0. CLIENTAUSWAHL — bold card grid ────────────────── */
.clients-hero {
  padding: 56px 40px 36px;
}

.clients-hero .h1 {
  font-family: var(--a3-font-display);
  font-size: 36px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.clients-hero .eyebrow {
  font-size: 12px;
  letter-spacing: 0.16em;
  margin-bottom: 14px;
}

.client-card {
  padding: 28px 28px 24px;
  transition: border-color var(--a3-duration-fast) var(--a3-ease), box-shadow 180ms ease;
}

.client-card:hover {
  transform: none;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.10);
  border-color: var(--a3-cobalt);
}

.client-card__name {
  font-family: var(--a3-font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.client-card__bar {
  height: 6px;
  border-radius: 3px;
}

.client-card__stat .value {
  font-size: 22px;
  font-weight: var(--a3-fw-medium);
}

.client-card__stat .label {
  font-size: 10px;
  letter-spacing: 0.14em;
}

/* Dark-mode client cards */
.shell[data-theme="dark"] .client-card {
  background: var(--a3-chrome-panel);
  border-color: var(--a3-chrome-border);
  color: var(--a3-chrome-text);
}

.shell[data-theme="dark"] .client-card:hover {
  border-color: rgba(126, 160, 255, 0.60);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.24);
}

.shell[data-theme="dark"] .client-card__name {
  color: var(--a3-chrome-text);
}

.shell[data-theme="dark"] .client-card__sub {
  color: var(--a3-chrome-muted);
}

.shell[data-theme="dark"] .client-card__stat .label {
  color: var(--a3-chrome-dim);
}

.shell[data-theme="dark"] .client-card__stat .value {
  color: var(--a3-chrome-text);
}

.shell[data-theme="dark"] .client-card__legend {
  color: var(--a3-chrome-muted);
}

.shell[data-theme="dark"] .client-card__bar {
  background: rgba(255, 255, 255, 0.12);
}

.shell[data-theme="dark"] .client-card .body {
  color: var(--a3-chrome-muted);
}

.shell[data-theme="dark"] .clients-hero .h1 {
  color: var(--a3-chrome-text);
}

.shell[data-theme="dark"] .clients-hero .eyebrow {
  color: var(--a3-chrome-muted);
}

.shell[data-theme="dark"] .clients-hero .meta {
  color: var(--a3-chrome-dim);
}

/* ── 2. LANDING — hero moment with typographic drama ── */
.glanding__heading {
  font-size: 44px;
  font-family: var(--a3-font-display);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.08;
  margin: 0 0 14px;
}

.glanding__sub {
  font-size: 15px;
  letter-spacing: 0.005em;
  margin-bottom: 40px;
}

.glanding__eyebrow {
  font-size: 12px;
  letter-spacing: 0.18em;
  margin-bottom: 18px;
}

.glanding__body {
  padding: 96px 0 64px;
  max-width: 680px;
}

/* Bolder conversation tiles — agent-colored left accent */
.gconv-tile {
  border-left: 3px solid var(--agent-accent, rgba(255, 255, 255, 0.09));
  padding: 16px 18px;
}

.gconv-tile__code {
  font-size: 10px;
  padding: 3px 8px;
  background: rgba(255, 255, 255, 0.10);
}

.gconv-tile__title {
  font-size: var(--a3-fs-body);
  line-height: 1.3;
}

.gconv-tile__last {
  margin-top: 6px;
}

/* ── 3. PROGRESS BARS — from whisper to statement ──── */
.pcard__bar {
  height: 6px;
  border-radius: 3px;
}

.mn-node__bar-track {
  height: 5px;
  border-radius: 3px;
}

.mn-progress-bar {
  height: 8px;
  border-radius: 4px;
}

.inspector__minibar--lg {
  height: 8px;
  border-radius: 4px;
}

.minibar__bar {
  height: 5px;
  border-radius: 3px;
}

.mn-list__bar {
  height: 5px;
  border-radius: 3px;
}

/* ── 4. STATUS BADGES — earned, not whispered ────────── */
.badge {
  padding: 4px 9px;
  font-size: 10px;
  font-weight: var(--a3-fw-medium);
  letter-spacing: 0.07em;
}

.badge--lg {
  padding: 5px 11px;
  font-size: var(--a3-fs-label);
}

/* Running status: subtle breathing pulse */
@keyframes status-breathe {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}
.badge--running {
  animation: status-breathe 2.4s ease-in-out infinite;
}

.dot--running {
  box-shadow: 0 0 0 3px rgba(26, 79, 204, 0.20);
  animation: status-breathe 2.4s ease-in-out infinite;
}

/* Status left-border accents on cards — thicker */
.pcard.is-blocked {
  border-left-width: 4px;
}
.pcard.is-running {
  border-left-width: 4px;
}

/* ── 5. GRAPH NODES — more presence ─────────────────── */
.mn-node {
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  transition: box-shadow 180ms ease, border-color 120ms ease;
}
.mn-node:hover {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}
.mn-node.is-selected {
  box-shadow: 0 0 0 2px rgba(49, 85, 255, 0.24), 0 2px 12px rgba(0, 0, 0, 0.10);
}
.mn-node__name {
  font-size: 14px;
  font-weight: var(--a3-fw-medium);
}

/* ── 6. TRACE VIEW — instrument panel, not a form ──── */
.trace-view h2,
.result-card h2 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.trace-view__summary {
  padding: 10px 14px;
  border-radius: var(--a3-radius-shell);
  font-size: var(--a3-fs-data);
}

.trace-lanes {
  gap: 14px;
}

.trace-lane {
  border-width: 1.5px;
}

.trace-lane__title {
  padding: 10px 14px;
  font-family: var(--a3-font-mono);
  font-size: var(--a3-fs-data);
  font-weight: var(--a3-fw-medium);
  letter-spacing: 0.02em;
}

.trace-step {
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 10px;
}

.trace-step__dot {
  width: 24px;
  height: 24px;
  font-size: 11px;
  border-width: 1.5px;
}

.trace-step + .trace-step {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--a3-chrome-border);
}

.trace-step__top strong {
  font-size: var(--a3-fs-body);
}

.trace-step p {
  font-size: var(--a3-fs-data);
  line-height: 1.5;
}

/* ── 7. RESULT CARD — structured evidence, not a blob ── */
.result-card {
  padding: 18px;
}

.result-card p {
  font-size: var(--a3-fs-data);
  line-height: 1.55;
  margin-top: 8px;
}

.result-card__evidence {
  gap: 8px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--a3-chrome-border);
}

.result-card__toggle {
  min-height: 34px;
  margin-top: 16px;
  font-size: var(--a3-fs-data);
  font-weight: var(--a3-fw-medium);
  letter-spacing: 0.01em;
}

.result-lineage {
  font-size: var(--a3-fs-data);
  line-height: 1.65;
}

.result-lineage li + li {
  margin-top: 8px;
}

.result-lineage li::marker {
  color: var(--a3-cobalt);
}

.result-note {
  padding: 14px 16px;
  border-left: 3px solid var(--a3-cobalt);
}

/* ── 8. CHAT THREAD — bolder agent identity ──────────── */
.gchat-msg {
  border-left-width: 3px;
}

.gchat-msg__agent-code {
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 3px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.gchat-msg__text {
  font-size: var(--a3-fs-body);
  line-height: 1.6;
}

.gchat-msg__user-bubble {
  font-size: var(--a3-fs-body);
  line-height: 1.55;
  padding: 12px 16px;
  border-radius: 14px 14px 4px 14px;
}

.gchat-citation {
  font-size: var(--a3-fs-label);
  padding: 3px 8px;
}

/* ── 9. MODE TABS — confident, not timid ─────────────── */
.gespraech__modebar {
  min-height: 44px;
  gap: 4px;
  padding: 0 16px;
}

.gespraech__mode {
  height: 32px;
  padding: 0 14px;
  font-size: var(--a3-fs-data);
  font-weight: var(--a3-fw-medium);
  border-radius: var(--a3-radius-pill);
  gap: 7px;
}

.gespraech__mode--active {
  background: rgba(49, 85, 255, 0.12);
  border-color: rgba(49, 85, 255, 0.20);
  color: var(--a3-cobalt);
  font-weight: 600;
}

.gespraech__mode--active:hover {
  background: rgba(49, 85, 255, 0.16);
  color: var(--a3-cobalt);
}

/* ── 10. INSPECTOR SIDEBAR — dossier with weight ─────── */
.dossier-hero {
  padding: 14px;
}

.dossier-hero__eyebrow {
  font-size: 10px;
  letter-spacing: 0.12em;
}

.dossier-hero__title {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.dossier-hero__meta {
  margin-top: 8px;
  font-size: var(--a3-fs-data);
}

.dossier-fact strong {
  font-size: var(--a3-fs-data);
  font-weight: var(--a3-fw-medium);
}

.compact-metric strong {
  font-size: 15px;
  font-weight: var(--a3-fw-medium);
}

.context-summary h3 {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.context-empty__title {
  font-size: 15px;
  font-weight: 600;
}

/* ── 11. STEP CHAIN — thicker connectors ─────────────── */
.step-chain__dot {
  width: 22px;
  height: 22px;
}

.step-chain__line {
  width: 2px;
}

.step-chain__title {
  font-weight: var(--a3-fw-medium);
}

.step-progress-summary__fraction {
  font-size: 18px;
  font-weight: 600;
}

/* ── 12. SECTION HEADERS — display font for view titles ─── */
.h1 {
  font-family: var(--a3-font-display);
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.section__title {
  font-family: var(--a3-font-display);
  font-weight: 600;
}

.vb-header__title {
  font-family: var(--a3-font-display);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

/* ── 13. CARDS — subtle hover, no lift ───────────────── */
.pcard {
  transition: border-color 120ms ease, box-shadow 180ms ease;
}

.pcard:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.pcard__name {
  font-family: var(--a3-font-display);
  font-weight: var(--a3-fw-medium);
}

/* ── 14. STATSTRIP — bigger numbers ──────────────────── */
.statstrip__value {
  font-size: 22px;
  font-weight: var(--a3-fw-medium);
}

.statstrip__cell {
  padding: 14px 20px 16px;
}

/* ── 15. THREAD HEADER — bolder agent presence ───────── */
.gespraech__thread-head {
  min-height: 48px;
  padding: 0 16px;
}

.gespraech__thread-agent {
  font-weight: 600;
}

.gespraech__thread-title-text {
  font-weight: var(--a3-fw-medium);
}

/* ── 16. COMPOSE — larger input area ─────────────────── */
.gespraech__compose-input {
  font-size: var(--a3-fs-body);
  padding: 14px 18px 10px;
  min-height: 56px;
}

.glanding__compose-input {
  font-size: 15px;
  padding: 20px 24px 14px;
  min-height: 100px;
}

/* ── 17. ACCORDION — sections with more presence ─────── */
.accordion__header {
  min-height: 40px;
  padding: 0 12px;
}

.accordion__title {
  font-weight: var(--a3-fw-medium);
  font-size: var(--a3-fs-data);
}

/* ── 18. FREIGABEN — bolder approval items ───────────── */
.freigaben-item {
  border-left-width: 3px;
}

.freigaben-item__title {
  font-weight: var(--a3-fw-medium);
}

.freigaben-action {
  font-weight: var(--a3-fw-medium);
}

/* ── 19. THREAD EMPTY — more impactful empty state ───── */
.gespraech__thread-empty-avatar {
  width: 56px;
  height: 56px;
  font-size: 16px;
  font-weight: 700;
}

.gespraech__thread-empty-name {
  font-size: 16px;
  font-weight: var(--a3-fw-medium);
  margin-top: 14px;
}

/* ── 20. LIGHT MODE — topbar stays dark (Slack pattern) ── */

/* Light mode: active mode tab — tinted, not solid */
.shell[data-theme="light"] .gespraech__mode--active {
  background: rgba(49, 85, 255, 0.10);
  border-color: rgba(49, 85, 255, 0.18);
  color: var(--a3-cobalt);
}

/* Light mode: conv tiles get visible agent accent */
.shell[data-theme="light"] .gconv-tile {
  border-left: 3px solid var(--agent-accent, var(--a3-border));
}

/* Light mode: result note keeps left accent */
.shell[data-theme="light"] .result-note {
  border-left: 3px solid var(--a3-cobalt);
}

/* Light mode: landing heading */
.shell[data-theme="light"] .glanding__heading {
  font-size: 44px;
  font-family: var(--a3-font-display);
  font-weight: 600;
  letter-spacing: -0.035em;
}

/* ── v6b: LIGHT MODE FIXES — sidebar/inspector toggles, popover ── */

/* Sidebar & inspector collapse buttons — visible in light mode */
.shell[data-theme="light"] .lsidebar__toggle,
.shell[data-theme="light"] .inspector__collapse-toggle {
  color: var(--a3-text-secondary);
  border-color: var(--a3-border);
  background: var(--a3-chrome-panel);
}

.shell[data-theme="light"] .lsidebar__toggle:hover,
.shell[data-theme="light"] .inspector__collapse-toggle:hover {
  color: var(--a3-text-primary);
  background: var(--a3-canvas);
  border-color: var(--a3-border);
}

/* Popover buttons — proper light-mode treatment */
.shell[data-theme="light"] .topbar-popover button {
  background: #FFFFFF;
  border: 1px solid var(--a3-border);
  color: var(--a3-text-primary);
  border-radius: 7px;
}

.shell[data-theme="light"] .topbar-popover button:hover {
  background: var(--a3-canvas);
  border-color: var(--a3-cobalt);
  color: var(--a3-cobalt);
}

.shell[data-theme="light"] .topbar-popover button img,
.shell[data-theme="light"] .topbar-popover button svg {
  opacity: 0.7;
}

/* Popover title */
.shell[data-theme="light"] .topbar-popover__title {
  color: var(--a3-text-secondary);
  font-weight: var(--a3-fw-medium);
}

/* ── v6c: SIDEBAR & INSPECTOR HEADERS — unified structure ── */

/* Sidebar: position toggle absolutely so head doesn't eat space */
.lsidebar {
  position: relative;
}

.lsidebar__head {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  height: auto;
  min-height: 0;
  padding: 0;
}

.lsidebar__toggle {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  opacity: 0.5;
  transition: opacity 120ms ease;
}

.lsidebar:hover .lsidebar__toggle {
  opacity: 1;
}

/* Pills — full-width segmented control at the very top */
.lsidebar__pills {
  gap: 0;
  padding: 0 34px 0 0;
  border-bottom: 1px solid var(--a3-chrome-border);
  border-radius: 0;
}

.lsidebar__pill {
  padding: 12px 14px 11px;
  font-size: 13px;
  font-weight: var(--a3-fw-medium);
  border-radius: 0;
  border-bottom: 2px solid transparent;
  letter-spacing: 0.005em;
  background: transparent;
  color: var(--a3-chrome-dim);
  transition: color 120ms ease, border-color 120ms ease;
}

.lsidebar__pill:hover {
  color: var(--a3-chrome-text);
  background: transparent;
}

.lsidebar__pill--active {
  color: var(--a3-cobalt);
  font-weight: 600;
  border-bottom-color: var(--a3-cobalt);
  background: transparent;
}

.lsidebar__pill--active:hover {
  background: transparent;
}

.lsidebar__pill-badge {
  min-width: 17px;
  height: 17px;
  border-radius: 9px;
  font-size: 10px;
  font-weight: 700;
  background: var(--a3-cobalt);
  color: #FFFFFF;
}

/* Light mode pills */
.shell[data-theme="light"] .lsidebar__pill {
  color: var(--a3-text-disabled);
}

.shell[data-theme="light"] .lsidebar__pill:hover {
  color: var(--a3-text-primary);
  background: transparent;
}

.shell[data-theme="light"] .lsidebar__pill--active {
  color: var(--a3-cobalt);
  border-bottom-color: var(--a3-cobalt);
  background: transparent;
}

/* Progress strip — tighter, integrated below tabs */
.lsidebar__progress-strip {
  padding: 8px 14px 10px;
  border-bottom: 1px solid var(--a3-chrome-border);
}

.lsidebar__client-bar {
  height: 3px;
  border-radius: 2px;
}

.lsidebar__client-fraction {
  font-size: 13px;
  font-weight: 600;
  font-family: var(--a3-font-mono);
}

.lsidebar__blocker-dot {
  font-size: 11px;
  font-weight: 700;
}

/* ── Inspector header — commanding panel title ── */
.shell .inspector__head {
  min-height: 54px;
  padding: 0 14px 0 18px;
}

.shell[data-theme] .inspector__title {
  font-family: var(--a3-font-display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.shell[data-theme] .inspector__subtitle {
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--a3-chrome-dim);
  margin-top: 1px;
}

/* Inspector collapse toggle — matches sidebar pattern */
.inspector__collapse-toggle {
  opacity: 0.5;
  transition: opacity 120ms ease;
}

.inspector:hover .inspector__collapse-toggle {
  opacity: 1;
}

/* ══════════════════════════════════════════════════════════════
   v7: COMPREHENSIVE REDESIGN
   Issues: sidebar, discussions, inspector scroll, toggles,
           background differentiation, blob visibility
   ══════════════════════════════════════════════════════════════ */

/* ─── FIX 5: MAIN BACKGROUND DIFFERENTIATION ─── */
/* Light mode: main area is a cool blueprint tint, sidebar/inspector stay white */
.shell[data-theme="light"] .main {
  background: #D0DEF0;
}

/* Dark mode: main is distinctly lighter/warmer than chrome panels (#111822) */
.shell[data-theme="dark"] .main {
  background: #1B2130;
}

/* ─── FIX 1: LEFT SIDEBAR — stop being cheap ─── */

/* New task button — subtle, not bordered */
.lsidebar__new-task-btn {
  margin: 10px 10px 6px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 400;
  border-radius: 8px;
  border: none;
  background: rgba(49, 85, 255, 0.06);
  color: var(--a3-cobalt);
}

.lsidebar__new-task-btn:hover {
  background: rgba(49, 85, 255, 0.12);
  border: none;
}

.shell[data-theme="light"] .lsidebar__new-task-btn {
  background: rgba(49, 85, 255, 0.06);
  color: var(--a3-cobalt);
  border: none;
}

.shell[data-theme="light"] .lsidebar__new-task-btn:hover {
  background: rgba(49, 85, 255, 0.12);
  border: none;
}

.shell[data-theme="dark"] .lsidebar__new-task-btn {
  background: rgba(49, 85, 255, 0.10);
  border: none;
  color: rgba(126, 160, 255, 0.9);
}

.shell[data-theme="dark"] .lsidebar__new-task-btn:hover {
  background: rgba(49, 85, 255, 0.18);
  border: none;
}

/* Section labels — lowercase, quiet, small */
.lsidebar__section-label {
  font-size: 11px;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0.01em;
  padding: 20px 14px 6px;
  margin: 0;
}

.shell[data-theme="light"] .lsidebar__section-label {
  color: #8E95A3;
}

.shell[data-theme="dark"] .lsidebar__section-label {
  color: rgba(255, 255, 255, 0.32);
}

/* List items — proper spacing, clear hover */
.lnav-bereich {
  padding: 9px 14px 9px 14px;
  gap: 0 8px;
  min-height: 38px;
  border-radius: 6px;
  margin: 1px 6px;
  border-left: none;
  transition: background 100ms ease;
}

.lnav-bereich:hover {
  background: rgba(0, 0, 0, 0.04);
}

.shell[data-theme="dark"] .lnav-bereich:hover {
  background: rgba(255, 255, 255, 0.05);
}

.lnav-bereich--selected {
  background: rgba(49, 85, 255, 0.08);
  border-left: none;
}

.shell[data-theme="dark"] .lnav-bereich--selected {
  background: rgba(49, 85, 255, 0.14);
}

/* Agent code — quiet */
.lnav-bereich__code {
  font-size: 11px;
  font-weight: 400;
  opacity: 0.5;
}

/* Item name — readable, not heavy */
.lnav-bereich__name {
  font-size: 13px;
  font-weight: 400;
}

.shell[data-theme="light"] .lnav-bereich__name {
  color: #2D3142;
}

.shell[data-theme="dark"] .lnav-bereich__name {
  color: rgba(255, 255, 255, 0.82);
}

/* Count / percentage — recede */
.lnav-bereich__count {
  font-size: 11px;
  font-weight: 400;
  opacity: 0.45;
}

/* Timestamp — very quiet */
.lnav-bereich__date {
  font-size: 10px;
  font-weight: 400;
  opacity: 0.4;
}

/* Section spacing */
.lsidebar__section + .lsidebar__section {
  margin-top: 4px;
}

/* Footer */
.lsidebar__footer {
  padding: 10px 14px;
  font-size: 11px;
  font-weight: 400;
  opacity: 0.5;
}

/* ─── FIX 4: TOGGLE BUTTONS — visible, not hidden ─── */

/* Sidebar toggle — always visible, proper button */
.lsidebar__head {
  position: relative;
  height: auto;
  min-height: 0;
  padding: 8px 8px 0;
  display: flex;
  justify-content: flex-end;
}

.lsidebar__toggle {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  opacity: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 100ms ease;
}

.lsidebar:hover .lsidebar__toggle {
  opacity: 1;
}

.shell[data-theme="light"] .lsidebar__toggle {
  color: #8E95A3;
  background: transparent;
}

.shell[data-theme="light"] .lsidebar__toggle:hover {
  background: rgba(0, 0, 0, 0.06);
  color: #2D3142;
}

.shell[data-theme="dark"] .lsidebar__toggle {
  color: rgba(255, 255, 255, 0.40);
  background: transparent;
}

.shell[data-theme="dark"] .lsidebar__toggle:hover {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.75);
}

/* Inspector collapse toggle — always visible */
.inspector__collapse-toggle {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  opacity: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 100ms ease;
}

.inspector:hover .inspector__collapse-toggle {
  opacity: 1;
}

.shell[data-theme="light"] .inspector__collapse-toggle {
  color: #8E95A3;
  background: transparent;
}

.shell[data-theme="light"] .inspector__collapse-toggle:hover {
  background: rgba(0, 0, 0, 0.06);
  color: #2D3142;
}

.shell[data-theme="dark"] .inspector__collapse-toggle {
  color: rgba(255, 255, 255, 0.40);
  background: transparent;
}

.shell[data-theme="dark"] .inspector__collapse-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.75);
}

/* ─── FIX 3: INSPECTOR — scrollable, usable ─── */

.inspector__body {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.inspector--accordion .inspector__body {
  gap: 12px;
  padding: 14px;
}

.inspector .inspector__head {
  min-height: 54px;
  padding: 0 14px 0 18px;
  flex-shrink: 0;
}

/* Stat cards */
.dossier-hero {
  padding: 14px 16px;
  border-radius: 10px;
}

.dossier-hero__eyebrow {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  opacity: 0.55;
}

.dossier-hero__title {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
}

.dossier-hero__meta {
  font-size: 12px;
  font-weight: 400;
  line-height: 1.45;
  opacity: 0.6;
}

.dossier-facts {
  gap: 10px;
}

.dossier-fact {
  padding: 12px 14px;
  border-radius: 10px;
}

.dossier-fact span {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  opacity: 0.5;
}

.dossier-fact strong {
  font-size: 22px;
  font-weight: 600;
  font-family: var(--a3-font-display);
  margin-top: 4px;
  letter-spacing: -0.02em;
}

.dossier-action {
  padding: 12px 14px;
  border-radius: 10px;
  gap: 12px;
}

.shell[data-theme] .accordion {
  border-radius: 10px;
}

/* Light mode cards */
.shell[data-theme="light"] .dossier-fact {
  background: #F0F1F4;
  border-color: #E0E3EA;
}

.shell[data-theme="light"] .dossier-fact strong {
  color: #2D3142;
}

.shell[data-theme="light"] .dossier-hero {
  background:
    linear-gradient(135deg, rgba(49, 85, 255, 0.05), transparent 58%),
    #F0F1F4;
  border-color: #E0E3EA;
}

.shell[data-theme="light"] .dossier-action {
  background: #F0F1F4;
  border-color: #E0E3EA;
}

.shell[data-theme="light"] .accordion {
  border-color: #E0E3EA;
  background: #F0F1F4;
}

/* ─── FIX 2: DISCUSSIONS — actual message classes ─── */

/* Agent messages: remove banned side-stripe border, use subtle bg tint */
.gchat-msg {
  border-left: none !important;
  padding-left: 0;
  padding: 14px 18px;
  border-radius: 10px;
  margin-bottom: 20px;
}

.shell[data-theme="light"] .gchat-msg {
  background: #FFFFFF;
  border: 1px solid #E0E3EA;
}

.shell[data-theme="dark"] .gchat-msg {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* User bubbles — keep existing style, just tighten */
.gchat-msg--user {
  border: none !important;
  background: none !important;
  padding: 0;
  border-radius: 0;
}

/* Citation tags */
.gchat-citation {
  font-size: 11px;
  border-radius: 4px;
  padding: 3px 8px;
  font-weight: 500;
}

.shell[data-theme="light"] .gchat-citation {
  background: rgba(49, 85, 255, 0.08);
  color: var(--a3-cobalt);
  border-color: rgba(49, 85, 255, 0.15);
}

.shell[data-theme="dark"] .gchat-citation {
  background: rgba(49, 85, 255, 0.12);
  color: rgba(126, 160, 255, 0.9);
  border-color: rgba(49, 85, 255, 0.20);
}

/* Conversation tiles: remove banned side-stripe, use bg tint */
.gconv-tile {
  border-left: none !important;
  border-radius: 10px;
  padding: 16px 18px;
}

.shell[data-theme="light"] .gconv-tile {
  border-left: none !important;
}

/* Conversation mode tabs — underline, not pills */
.gespraech__mode-tabs {
  gap: 0;
}

.gespraech__mode {
  font-size: 13px;
  font-weight: 400;
  padding: 10px 16px;
  border-bottom: 2px solid transparent;
  background: transparent;
}

.gespraech__mode--active {
  font-weight: 500;
  border-bottom-color: var(--a3-cobalt);
  color: var(--a3-cobalt);
  background: transparent !important;
  border-radius: 0;
  border-left: none;
  border-right: none;
  border-top: none;
}

/* Override conflicting light mode mode-tab from earlier section */
.shell[data-theme="light"] .gespraech__mode--active {
  background: transparent !important;
  border-color: transparent;
  border-bottom-color: var(--a3-cobalt);
  color: var(--a3-cobalt);
}

/* Message composer */
.gespraech__composer {
  border-radius: 12px;
}

.shell[data-theme="light"] .gespraech__composer {
  background: #FFFFFF;
  border-color: #D4D8E2;
}

/* ─── FIX 7: STOP SCREAMING — lowercase all section labels ─── */

/* Accordion headers — no uppercase */
.shell[data-theme] .accordion__header {
  text-transform: none;
  letter-spacing: 0.01em;
  font-size: 12px;
  font-weight: 600;
}

/* Inspector subtitle — sentence case, not ENGAGEMENTKONTEXT */
.shell[data-theme] .inspector__subtitle {
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.06em;
  opacity: 0.45;
}

/* Context section labels — not WAS HIERHER GEHÖRT */
.context-section__label {
  text-transform: none !important;
  letter-spacing: 0.01em !important;
  font-size: 11px;
  font-weight: 500;
}

/* Dossier hero eyebrow — quiet, not screaming */
.dossier-hero__eyebrow {
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.06em;
  opacity: 0.45;
}

/* Dossier fact labels — quiet */
.dossier-fact span {
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.06em;
  opacity: 0.40;
}

/* =========================================================
   v8: control-room polish pass — typography, chrome, interactivity
   ========================================================= */

.shell[data-theme="light"] {
  --a3-chrome-bg: #E9EEF5;
  --a3-chrome-panel: #FFFFFF;
  --a3-chrome-panel-2: #F5F7FA;
  --a3-chrome-panel-3: #EEF2F7;
  --a3-chrome-border: #D6DEEA;
  --a3-chrome-border-strong: #B8C3D4;
  --a3-chrome-text: #111827;
  --a3-chrome-muted: #596579;
  --a3-chrome-dim: #8B95A7;
  --a3-chrome-hover: rgba(37, 99, 235, 0.07);
  --a3-chrome-selected: rgba(37, 99, 235, 0.11);
}

.shell[data-theme="dark"] {
  --a3-chrome-bg: #0B1016;
  --a3-chrome-panel: #111821;
  --a3-chrome-panel-2: #161E29;
  --a3-chrome-panel-3: #1D2734;
  --a3-chrome-border: rgba(162, 175, 196, 0.18);
  --a3-chrome-border-strong: rgba(162, 175, 196, 0.32);
  --a3-chrome-text: #EEF3F8;
  --a3-chrome-muted: #A8B2C2;
  --a3-chrome-dim: #758195;
  --a3-chrome-hover: rgba(162, 175, 196, 0.10);
  --a3-chrome-selected: rgba(96, 165, 250, 0.15);
}

.shell[data-theme] {
  font-family: var(--a3-font-sans);
  background: var(--a3-chrome-bg);
}

.shell[data-theme] .main {
  background: var(--a3-chrome-panel-2);
}

.shell[data-theme="light"] .main {
  background: #F4F6FA;
}

.shell[data-theme] .h1,
.shell[data-theme] .h2,
.shell[data-theme] .h3,
.shell[data-theme] .dossier-hero__title,
.shell[data-theme] .glanding__heading,
.shell[data-theme] .clients-hero .h1,
.shell[data-theme] .inspector__title,
.shell[data-theme] .lsidebar__title,
.shell[data-theme] .trace-view h2,
.shell[data-theme] .result-card h2 {
  font-family: var(--a3-font-sans);
  letter-spacing: 0;
}

.shell[data-theme] button,
.shell[data-theme] input,
.shell[data-theme] textarea {
  font-family: inherit;
}

.shell[data-theme] :focus-visible {
  outline: 2px solid rgba(37, 99, 235, 0.55);
  outline-offset: 2px;
}

.shell[data-theme] .topbar {
  background: var(--a3-chrome-panel);
  background-image: none;
  border-bottom-color: var(--a3-chrome-border);
  color: var(--a3-chrome-text);
}

.shell[data-theme="light"] .topbar {
  background: #FFFFFF;
  background-image: none;
  color: #111827;
}

.shell[data-theme="light"] .topbar__client-name,
.shell[data-theme="light"] .topbar__assurance,
.shell[data-theme="light"] .icon-btn {
  color: #374151;
}

.shell[data-theme="light"] .topbar .icon-btn {
  color: #596579;
  background: transparent;
}

.shell[data-theme="light"] .topbar .icon-btn:hover {
  color: #111827;
  background: #EEF2F7;
}

.shell[data-theme="light"] .topbar__assurance {
  border-color: #D6DEEA;
  background: #F6F8FB;
}

.shell[data-theme="light"] .topbar__assurance-label {
  color: #7A8496;
}

.shell[data-theme="light"] .topbar__assurance strong {
  color: #111827;
}

.topbar__theme-switch {
  width: 54px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--a3-chrome-border);
  border-radius: var(--a3-radius-pill);
  background: var(--a3-chrome-panel-2);
  color: var(--a3-chrome-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 120ms ease, background 120ms ease, color 120ms ease;
}

.topbar__theme-switch:hover {
  border-color: var(--a3-chrome-border-strong);
  background: var(--a3-chrome-hover);
  color: var(--a3-chrome-text);
}

.topbar__theme-switch-track {
  position: relative;
  width: 38px;
  height: 20px;
  border-radius: var(--a3-radius-pill);
  background: rgba(17, 24, 39, 0.12);
}

.shell[data-theme="dark"] .topbar__theme-switch-track {
  background: rgba(255, 255, 255, 0.14);
}

.topbar__theme-switch-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #FFFFFF;
  color: #2563EB;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.22);
  transition: transform 160ms ease;
}

.topbar__theme-switch[aria-checked="true"] .topbar__theme-switch-thumb {
  transform: translateX(18px);
  color: #60A5FA;
  background: #0F172A;
}

.topbar-popover {
  border-color: var(--a3-chrome-border);
  background: var(--a3-chrome-panel);
  color: var(--a3-chrome-text);
}

.lsidebar,
.inspector {
  background: var(--a3-chrome-panel);
  border-color: var(--a3-chrome-border);
}

.lsidebar__head,
.inspector .inspector__head {
  min-height: 56px;
  height: 56px;
  padding: 0 10px 0 14px;
  border-bottom: 1px solid var(--a3-chrome-border);
  background: var(--a3-chrome-panel);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  position: relative;
  top: auto;
  right: auto;
  z-index: 4;
}

.lsidebar__heading,
.inspector__heading {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.lsidebar__title,
.inspector__title {
  color: var(--a3-chrome-text);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
}

.lsidebar__subtitle,
.inspector__subtitle {
  color: var(--a3-chrome-dim);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.2;
  text-transform: none;
  letter-spacing: 0;
  opacity: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lsidebar__toggle,
.inspector__collapse-toggle {
  width: 32px;
  height: 32px;
  border: 1px solid transparent;
  border-radius: var(--a3-radius-card);
  color: var(--a3-chrome-muted);
  background: transparent;
  opacity: 1;
}

.lsidebar__toggle:hover,
.inspector__collapse-toggle:hover {
  color: var(--a3-chrome-text);
  background: var(--a3-chrome-hover);
  border-color: var(--a3-chrome-border);
}

.lsidebar--collapsed .lsidebar__head {
  height: auto;
  min-height: 0;
  padding: 8px 0;
  justify-content: center;
  border-bottom: 0;
}

.lsidebar--collapsed .lsidebar__heading {
  display: none;
}

.lsidebar__pills {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  padding: 8px;
  border-bottom: 1px solid var(--a3-chrome-border);
  background: var(--a3-chrome-panel);
}

.lsidebar__pill {
  min-width: 0;
  height: 34px;
  padding: 0 8px;
  border: 1px solid transparent;
  border-radius: var(--a3-radius-card);
  background: transparent;
  color: var(--a3-chrome-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
}

.lsidebar__pill:hover {
  background: var(--a3-chrome-hover);
  color: var(--a3-chrome-text);
}

.lsidebar__pill--active,
.shell[data-theme="light"] .lsidebar__pill--active {
  border-color: rgba(37, 99, 235, 0.24);
  background: var(--a3-chrome-selected);
  color: var(--a3-cobalt);
  border-bottom-color: rgba(37, 99, 235, 0.24);
  font-weight: 600;
}

.lsidebar__progress-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-bottom-color: var(--a3-chrome-border);
}

.lsidebar__client-bar {
  min-width: 0;
  background: rgba(148, 163, 184, 0.22);
}

.lnav-bereich,
.lnav-sheet,
.source-row,
.context-next,
.freigaben-item,
.accordion__header {
  cursor: pointer;
}

.lnav-bereich:hover,
.lnav-sheet:hover,
.context-next:hover {
  background: var(--a3-chrome-hover);
}

.inspector__tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  border-bottom: 1px solid var(--a3-chrome-border);
  background: var(--a3-chrome-panel);
}

.inspector__tab {
  min-width: 0;
  height: 46px;
  padding: 0 4px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--a3-chrome-muted);
  cursor: pointer;
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  align-content: center;
  gap: 2px;
  font-size: 10px;
  line-height: 1;
}

.inspector__tab svg {
  width: 14px;
  height: 14px;
}

.inspector__tab span {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inspector__tab em {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.inspector__tab:hover {
  background: var(--a3-chrome-hover);
  color: var(--a3-chrome-text);
}

.inspector__tab--active {
  color: var(--a3-cobalt);
  border-bottom-color: var(--a3-cobalt);
  background: var(--a3-chrome-selected);
}

.inspector--accordion .inspector__body,
.inspector__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px;
  background: var(--a3-chrome-panel-2);
}

.context-panel,
.context-panel--quiet {
  border: 1px solid var(--a3-chrome-border);
  border-radius: var(--a3-radius-shell);
  background: var(--a3-chrome-panel);
}

.dossier-hero,
.dossier-action,
.dossier-fact,
.shell[data-theme] .accordion {
  border-color: var(--a3-chrome-border);
  background: var(--a3-chrome-panel);
  border-radius: var(--a3-radius-shell);
}

.dossier-hero {
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.08), transparent 62%),
    var(--a3-chrome-panel);
}

.dossier-fact strong {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0;
}

.freigaben-action,
.dossier-action__button,
.topbar-popover button {
  border-radius: var(--a3-radius-card);
}

@media (max-width: 900px) {
  .inspector__tabs {
    grid-template-columns: repeat(5, 44px);
    overflow-x: auto;
  }

  .inspector__tab span {
    display: none;
  }

  .lsidebar__subtitle {
    display: none;
  }
}

@media (max-width: 760px) {
  .shell[data-left][data-right] {
    grid-template-columns: 48px minmax(0, 1fr) 48px !important;
  }

  .topbar {
    padding: 0 8px;
    gap: 8px;
  }

  .topbar__client-name {
    max-width: 170px;
  }

  .topbar__assurance,
  .topbar__action--primary {
    display: none;
  }

  .topbar__theme-switch {
    width: 46px;
  }

  .lsidebar,
  .inspector {
    width: 48px;
  }

  .lsidebar__head,
  .inspector .inspector__head {
    height: 48px;
    min-height: 48px;
    padding: 8px 0;
    justify-content: center;
  }

  .lsidebar__heading,
  .lsidebar__pills,
  .lsidebar__progress-strip,
  .lsidebar__tab-panel,
  .lsidebar__footer,
  .inspector__heading,
  .inspector__body {
    display: none;
  }

  .inspector--accordion .inspector__body {
    display: none;
  }

  .inspector__tabs {
    display: flex;
    flex-direction: column;
    border-bottom: 0;
    border-top: 1px solid var(--a3-chrome-border);
  }

  .inspector__tab {
    width: 48px;
    height: 42px;
    border-bottom: 0;
    border-left: 2px solid transparent;
  }

  .inspector__tab span {
    display: none;
  }

  .inspector__tab--active {
    border-left-color: var(--a3-cobalt);
  }
}

/* v9: Inspector density pass based on sidebar screenshot review */
.inspector .inspector__head {
  height: 54px;
  min-height: 54px;
  padding: 0 12px 0 16px;
}

.inspector__title {
  font-size: 16px;
  font-weight: 600;
}

.inspector__subtitle {
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.inspector__collapse-toggle {
  border-color: var(--a3-chrome-border);
  background: var(--a3-chrome-panel);
}

.inspector__tabs {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(64px, 1fr);
  grid-template-columns: none;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  padding: 6px;
  gap: 3px;
}

.inspector__tabs::-webkit-scrollbar {
  display: none;
}

.inspector__tab {
  height: 34px;
  border: 1px solid transparent;
  border-radius: var(--a3-radius-card);
  padding: 0 2px;
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  align-content: center;
  gap: 2px;
  font-size: 10.5px;
  line-height: 1;
}

.inspector__tab svg {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
}

.inspector__tab--active {
  border-color: rgba(37, 99, 235, 0.24);
  border-bottom-color: rgba(37, 99, 235, 0.24);
  background: var(--a3-chrome-selected);
}

.inspector--accordion .inspector__body,
.inspector__body {
  padding: 10px 12px 12px;
}

.inspector .context-panel {
  padding: 10px;
}

.inspector__agent-orch {
  margin: 0 0 8px;
  padding: 0 0 8px;
  border-bottom: 1px solid var(--a3-chrome-border);
}

.inspector__agent-orch-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inspector__agent-orch-count {
  white-space: nowrap;
}

.inspector .step-progress-summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 2px 8px;
  align-items: center;
  margin: 0 0 10px;
}

.inspector .step-progress-summary__fraction {
  font-size: 12px;
}

.inspector .step-progress-summary__label {
  font-size: 11px;
  white-space: nowrap;
}

.step-progress-summary__bar {
  grid-column: 1 / -1;
  height: 4px;
  border-radius: var(--a3-radius-pill);
  background: rgba(148, 163, 184, 0.22);
  overflow: hidden;
}

.step-progress-summary__bar > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--a3-cobalt);
}

.inspector .step-chain {
  gap: 6px;
}

.inspector .step-chain__item {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 8px;
  min-height: 0;
  padding: 8px;
  border: 1px solid var(--a3-chrome-border);
  border-radius: var(--a3-radius-card);
  background: var(--a3-chrome-panel);
}

.inspector .step-chain__gutter {
  width: 18px;
}

.inspector .step-chain__dot {
  width: 18px;
  height: 18px;
  border-width: 1.5px;
}

.inspector .step-chain__line {
  display: none;
}

.inspector .step-chain__content {
  padding-bottom: 0;
}

.inspector .step-chain__title {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-width: 0;
  line-height: 1.25;
}

.inspector .step-chain__title > span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inspector .step-chain__title .badge {
  padding: 2px 5px;
  font-size: 9px;
  letter-spacing: 0.04em;
}

.inspector .step-chain__detail {
  margin-top: 4px;
  font-size: 10px;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.step-chain__bar {
  margin-top: 6px;
  height: 3px;
  border-radius: var(--a3-radius-pill);
  background: rgba(148, 163, 184, 0.22);
  overflow: hidden;
}

.step-chain__bar > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--a3-cobalt);
}

.inspector .step-chain__item--done .step-chain__bar > span {
  background: var(--a3-status-done);
}

.inspector .step-chain__item--warn .step-chain__bar > span {
  background: var(--a3-status-paused);
}

.inspector .step-chain__item--pending {
  opacity: 0.78;
}

.inspector .source-row {
  min-height: 36px;
  padding: 8px 6px;
}

.inspector .source-row__pdf {
  width: 20px;
}

.inspector .source-row__label {
  font-size: 12px;
}

@media (max-width: 760px) {
  .inspector__tabs {
    display: flex;
    padding: 6px 0;
    gap: 0;
    overflow: visible;
  }

  .inspector__tab {
    width: 48px;
    min-width: 48px;
    height: 42px;
    border-radius: 0;
    border: 0;
    border-left: 2px solid transparent;
    padding: 0;
  }
}

/* v10: Inspector spacing normalization */
.inspector .inspector__head {
  height: 52px;
  min-height: 52px;
  padding: 0 10px 0 14px;
}

.inspector__tabs {
  padding: 5px 6px;
}

.inspector__tab {
  height: 32px;
}

.inspector--accordion .inspector__body,
.inspector__body {
  gap: 8px;
  padding: 8px 10px 10px;
}

.inspector .context-panel,
.inspector .context-panel--quiet {
  gap: 8px;
  padding: 8px;
}

.inspector .dossier-hero {
  padding: 11px 12px;
}

.inspector .dossier-hero__top {
  margin-bottom: 7px;
}

.inspector .dossier-hero__title {
  font-size: 14px;
  line-height: 1.3;
}

.inspector .dossier-hero__meta {
  margin-top: 5px;
  font-size: 11px;
}

.inspector .dossier-action {
  min-height: 52px;
  padding: 8px 10px;
  gap: 9px;
}

.inspector .dossier-action__icon,
.inspector .dossier-action__button {
  width: 28px;
  height: 28px;
}

.inspector .dossier-action__label {
  font-size: 12px;
}

.inspector .dossier-action__detail {
  font-size: 11px;
}

.inspector .dossier-facts {
  gap: 8px;
}

.inspector .dossier-fact {
  min-height: 54px;
  padding: 9px 10px;
}

.inspector .dossier-fact strong {
  margin-top: 4px;
  font-size: 15px;
}

.inspector .context-empty {
  padding: 14px;
}

.inspector .context-empty__icon {
  width: 32px;
  height: 32px;
}

.inspector .context-empty__title {
  margin-top: 10px;
  font-size: 14px;
}

.inspector .context-empty p {
  margin-top: 5px;
  font-size: 11px;
  line-height: 1.45;
}

.inspector .compact-metric-grid {
  gap: 8px;
}

.inspector .compact-metric {
  min-height: 52px;
  padding: 8px 10px;
}

.inspector .compact-metric strong {
  margin-top: 4px;
  font-size: 14px;
}

.inspector .materiality-row {
  min-height: 40px;
  padding: 8px 0;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 8px;
}

.inspector .materiality-row .desc {
  font-size: 11px;
}

.inspector .materiality-row .val {
  font-size: 11px;
}

.inspector .inspector__label {
  margin-bottom: 4px;
  font-size: 10px;
  letter-spacing: 0.08em;
}

.inspector .context-panel > .meta:only-child {
  min-height: 72px;
  display: flex;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--a3-chrome-border);
  border-radius: var(--a3-radius-card);
  background: var(--a3-chrome-panel);
  color: var(--a3-chrome-muted);
  line-height: 1.4;
}

.inspector .inspector__activity-row {
  min-height: 42px;
  padding: 8px 0;
}

.inspector .inspector__activity-msg {
  font-size: 11px;
  line-height: 1.35;
}

@media (max-width: 760px) {
  .inspector .inspector__head {
    height: 48px;
    min-height: 48px;
    padding: 8px 0;
  }

  .inspector__tab {
    height: 42px;
  }
}


.cr-subnav {
  padding: 12px 20px 0;
}
.cr-subnav--inset {
  padding: 12px 24px 0;
  border-bottom: 1px solid var(--a3-chrome-border);
}
.topbar__return {
  flex-shrink: 0;
  margin-right: 4px;
}

/* ─── Prüfbereiche home (bh-) ─── */
.bh-inner {
  padding: 0 0 32px;
  overflow: auto;
}
.bh-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 20px 12px;
}
.bh-header__eyebrow {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--a3-chrome-muted);
}
.bh-header__title {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.bh-header__summary {
  margin: 0;
  font-size: 13px;
  color: var(--a3-chrome-muted);
  max-width: 56ch;
  line-height: 1.45;
}
.bh-inner .statstrip {
  margin: 0 20px 16px;
}
.bh-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 0 20px 20px;
}
.bh-kpi {
  padding: 14px 16px;
  border: 1px solid var(--a3-chrome-border);
  border-radius: 8px;
  background: var(--a3-chrome-panel);
}
.bh-kpi--alert {
  border-color: var(--a3-status-blocked-border, rgba(220, 80, 60, 0.35));
  background: var(--a3-status-blocked-bg, rgba(220, 80, 60, 0.06));
}
.bh-kpi__label {
  display: block;
  font-size: 11px;
  color: var(--a3-chrome-muted);
  margin-bottom: 6px;
}
.bh-kpi__value {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.bh-kpi__value.is-blocked {
  color: var(--a3-status-blocked);
}
.bh-charts {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 16px;
  padding: 0 20px 20px;
}
.bh-panel {
  border: 1px solid var(--a3-chrome-border);
  border-radius: 10px;
  background: var(--a3-chrome-panel);
  padding: 16px;
}
.bh-panel__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 600;
}
.bh-chart__bar {
  display: flex;
  height: 12px;
  border-radius: 6px;
  overflow: hidden;
  background: var(--a3-chrome-panel-3);
  margin-bottom: 12px;
}
.bh-chart__seg--done { background: var(--a3-status-done, #2d9d6f); }
.bh-chart__seg--running { background: var(--a3-cobalt, #2563eb); }
.bh-chart__seg--blocked { background: var(--a3-status-blocked, #dc503c); }
.bh-chart__seg--pending { background: var(--a3-chrome-border); }
.bh-chart__seg--paused { background: #d97706; }
.bh-chart__seg--skipped { background: var(--a3-text-muted, #9aa3b2); opacity: 0.5; }
.bh-chart__legend {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.bh-chart__legend li {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}
.bh-chart__legend em {
  font-style: normal;
  color: var(--a3-chrome-dim);
  font-size: 11px;
}
.bh-chart__empty {
  font-size: 12px;
  color: var(--a3-chrome-muted);
  padding: 8px 0;
}
.bh-progress-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 280px;
  overflow-y: auto;
}
.bh-progress-row {
  display: grid;
  grid-template-columns: 44px 1fr minmax(80px, 120px) 36px 10px;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}
.bh-progress-row__code {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.bh-progress-row__name {
  color: var(--a3-chrome-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bh-progress-row__track {
  height: 6px;
  border-radius: 3px;
  background: var(--a3-chrome-panel-3);
  overflow: hidden;
}
.bh-progress-row__fill {
  display: block;
  height: 100%;
  border-radius: 3px;
}
.bh-progress-row__fill.is-done { background: var(--a3-status-done, #2d9d6f); }
.bh-progress-row__fill.is-running { background: var(--a3-cobalt, #2563eb); }
.bh-progress-row__fill.is-blocked { background: var(--a3-status-blocked, #dc503c); }
.bh-progress-row__fill.is-pending { background: var(--a3-chrome-border); }
.bh-progress-row__pct {
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: var(--a3-chrome-muted);
}
.bh-areas {
  padding: 0 20px;
}
.bh-areas__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 12px;
}
.bh-areas__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}
.bh-area-card {
  text-align: left;
  padding: 14px;
  border: 1px solid var(--a3-chrome-border);
  border-radius: 8px;
  background: var(--a3-chrome-panel);
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.bh-area-card:hover {
  border-color: var(--a3-cobalt);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.08);
}
.bh-area-card.is-slipping {
  border-color: var(--a3-status-blocked-border, rgba(220, 80, 60, 0.4));
}
.bh-area-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.bh-area-card__code {
  font-weight: 700;
  font-size: 13px;
}
.bh-area-card__name {
  font-size: 12px;
  color: var(--a3-chrome-muted);
  margin-bottom: 10px;
  line-height: 1.35;
}
.bh-area-card__bar {
  height: 4px;
  border-radius: 2px;
  background: var(--a3-chrome-panel-3);
  margin-bottom: 8px;
  overflow: hidden;
}
.bh-area-card__fill {
  display: block;
  height: 100%;
  border-radius: 2px;
}
.bh-area-card__fill.is-done { background: var(--a3-status-done, #2d9d6f); }
.bh-area-card__fill.is-running { background: var(--a3-cobalt, #2563eb); }
.bh-area-card__fill.is-blocked { background: var(--a3-status-blocked, #dc503c); }
.bh-area-card__fill.is-pending { background: var(--a3-chrome-border); }
.bh-area-card__meta {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--a3-chrome-dim);
}

@media (max-width: 1100px) {
  .bh-kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .bh-charts { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .bh-kpi-grid { grid-template-columns: 1fr; }
  .bh-header { flex-direction: column; }
}

/* ═══════════════════════════════════════════════════════════════
   Eingabe-Arbeitsblatt (Input Worksheet) + Belegpaket-Upload (B1/B2)
   ═══════════════════════════════════════════════════════════════ */

.vb-belegpaket-btn { margin: 8px 0; }

/* ── DocumentDropzone ── */
.docdrop {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 24px 20px;
  border: 1.5px dashed #C7CDDD;
  border-radius: 6px;
  background: var(--a3-chrome-panel, #fff);
  color: #5A6172;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.12s ease, background 0.12s ease;
}
.docdrop:hover { border-color: #A8B0C2; }
.docdrop:focus-visible { outline: 2px solid #4C6FFF; outline-offset: 2px; }
.docdrop--dragover {
  border-color: #4C6FFF;
  border-style: solid;
  background: #F2F5FF;
  color: #2E3650;
}
.docdrop--busy { cursor: progress; opacity: 0.85; }
.docdrop__hint { font-size: 13px; font-weight: 500; color: #2E3650; }
.docdrop__status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  font-size: 12px;
  color: #2E7D49;
}
.docdrop__status--error { color: #C0392B; }
.docdrop--compact {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: none;
  background: none;
  cursor: default;
  text-align: left;
}
.docdrop--compact .docdrop__status { margin-top: 0; }

/* ── ViewInputWorksheet ── */
.iws { padding: 20px 32px; display: flex; flex-direction: column; gap: 20px; }
.iws__filter {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--a3-chrome-muted);
  cursor: pointer; user-select: none; align-self: flex-start;
}
.iws__filter input { accent-color: var(--a3-status-done); }
.iws__section { display: flex; flex-direction: column; gap: 10px; }
.iws__section-head { display: flex; align-items: baseline; gap: 10px; }
.iws__section-title { font-size: 15px; font-weight: 600; margin: 0; color: var(--a3-chrome-text); }
.iws__row {
  border: 1px solid var(--a3-chrome-border);
  border-radius: 6px; padding: 12px 14px;
  display: flex; flex-direction: column; gap: 10px;
  background: var(--a3-chrome-panel);
  color: var(--a3-chrome-text);
}
.iws__row--complete { border-color: rgba(15, 155, 88, 0.45); }
.iws__row-head { display: flex; align-items: center; gap: 10px; }
.iws__asset { font-weight: 600; font-size: 13px; color: var(--a3-chrome-text); }
.iws__row-label { font-size: 12px; color: var(--a3-chrome-muted); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.iws__row-date { font-size: 12px; color: var(--a3-chrome-muted); font-variant-numeric: tabular-nums; }
.iws__row-amount { margin-left: auto; font-size: 12px; color: var(--a3-chrome-text); font-variant-numeric: tabular-nums; }
.iws__row-error { font-size: 12px; color: var(--a3-status-blocked); }
.iws__cells { display: flex; flex-wrap: wrap; gap: 6px; }
.iws__cell {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 8px; border-radius: 4px; font-size: 12px;
  border: 1px solid transparent;
}
/* Translucent status tints sit legibly on both the light card and the dark
   panel; the text colour is brightened for dark mode below. */
.iws__cell--present {
  background: rgba(15, 155, 88, 0.12); color: var(--a3-status-done);
  border-color: rgba(15, 155, 88, 0.30);
}
.iws__cell--missing {
  background: rgba(184, 124, 0, 0.14); color: var(--a3-status-paused);
  border-color: rgba(184, 124, 0, 0.32);
}
.iws__cell-key { font-variant-numeric: tabular-nums; }
.iws__editors { display: flex; flex-direction: column; gap: 6px; }
.iws__editor { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.iws__editor-key { font-size: 12px; color: var(--a3-chrome-muted); min-width: 90px; }
.iws__editor-input {
  flex: 1 1 200px; min-width: 160px;
  padding: 5px 8px; font-size: 12px;
  border: 1px solid var(--a3-chrome-border); border-radius: 4px;
  background: var(--a3-chrome-panel); color: var(--a3-chrome-text);
}
.iws__editor-input:disabled { opacity: 0.6; }
.iws__more { align-self: flex-start; }

/* Dark mode: brighten the status chip text so it clears the dark panel. */
.shell[data-theme="dark"] .iws__cell--present { color: #4ED393; }
.shell[data-theme="dark"] .iws__cell--missing { color: #E8B765; }
.shell[data-theme="dark"] .iws__row-error { color: #FF8A8A; }

/* ── Gate-card inline upload (B3) ── */
.gate-blocker__upload {
  margin: 8px 0 4px;
  padding-top: 8px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}
.gate-blocker__upload-notice {
  margin-top: 6px;
  font-size: 12px;
  color: #2E7D49;
}

/* ── HITL gate cards ──
   Inline at the top of the unit view (placement as designed), card design
   identical to the demo BlockerCard. The inset aligns the cards with the
   content column; :empty collapses it when GateStack renders nothing. */
.vb-gates-inset { padding: 14px 18px 0; }
.vb-gates-inset:empty { display: none; }
.vb-gates-inset .gate-stack { margin-bottom: 0; }

/* Quiet secondary action — the demo card has a single solid button, so the
   reject affordance stays out of the visual hierarchy as a text link. */
.gate-blocker__reject {
  margin-top: 10px;
  padding: 8px 10px;
  border: none;
  background: none;
  color: #8a6d00;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: underline;
}
.gate-blocker__reject:hover { color: #6b5500; }
.gate-blocker__reject:disabled { opacity: 0.6; cursor: progress; }

/* The demo card is designed light-amber; pin its text colors so theme
   variables can't bleed light text onto the light card. */
.gate-blocker .demo-blocker__title { color: #0F1523; }
.gate-blocker .demo-blocker__cause { color: #5A6480; }
.gate-blocker .demo-blocker__label { color: #5A6480; }
.gate-blocker .demo-blocker__value { color: #0F1523; }

/* Dark mode: adapt the card instead of glaring light-amber. */
.shell[data-theme="dark"] .gate-blocker {
  background: #231D10;
  border-color: #8A6D1F;
}
.shell[data-theme="dark"] .gate-blocker .demo-blocker__badge {
  background: rgba(212, 160, 23, 0.16);
  color: #E8C868;
}
.shell[data-theme="dark"] .gate-blocker .demo-blocker__title { color: #F2F4F8; }
.shell[data-theme="dark"] .gate-blocker .demo-blocker__cause {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(212, 160, 23, 0.25);
  color: #C2C9D6;
}
.shell[data-theme="dark"] .gate-blocker .demo-blocker__label { color: #9AA3B5; }
.shell[data-theme="dark"] .gate-blocker .demo-blocker__value { color: #F2F4F8; }
.shell[data-theme="dark"] .gate-blocker .gate-blocker__more { color: #BFD0FF; }
.shell[data-theme="dark"] .gate-blocker__reject { color: #E8C868; }
.shell[data-theme="dark"] .gate-blocker__reject:hover { color: #F4DC9A; }
.shell[data-theme="dark"] .gate-blocker__upload { border-top-color: rgba(255, 255, 255, 0.08); }

/* ── Engagement management on the clients view ── */
.client-card { position: relative; }
.client-card__delete {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: 1px solid transparent;
  border-radius: 50%;
  background: none;
  color: var(--a3-text-secondary);
  cursor: pointer;
  opacity: 0;
  transition: opacity 140ms ease, background 140ms ease, color 140ms ease;
  z-index: 2;
}
.client-card:hover .client-card__delete,
.client-card__delete:focus-visible { opacity: 1; }
.client-card__delete:hover {
  background: rgba(224, 82, 82, 0.12);
  border-color: var(--a3-danger, #e05252);
  color: var(--a3-danger, #e05252);
}

.client-card--add {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 220px;
  border-style: dashed;
  border-width: 1.5px;
  background: transparent;
  color: var(--a3-text-secondary);
  text-align: center;
}
.client-card--add:hover {
  border-color: var(--a3-cobalt);
  color: var(--a3-cobalt);
}
.client-card__add-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid currentColor;
  border-radius: 50%;
}
.client-card__add-label { font-weight: var(--a3-fw-semibold, 600); font-size: 14px; }
.client-card__add-sub { font-size: var(--a3-fs-meta, 12px); }

.clients-form { display: flex; flex-direction: column; gap: 12px; }
.clients-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: var(--a3-fs-label, 11px);
  font-weight: var(--a3-fw-medium, 500);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--a3-text-secondary);
}
.clients-form input {
  height: 34px;
  padding: 0 10px;
  border: 1px solid var(--a3-border);
  border-radius: var(--a3-radius-input, 6px);
  background: var(--a3-surface);
  color: var(--a3-text-primary);
  font: inherit;
  font-size: 13px;
  letter-spacing: normal;
  text-transform: none;
}
.clients-form input:focus-visible { outline: 2px solid var(--a3-cobalt); outline-offset: 1px; }
.clients-form__hint { font-size: 12px; color: var(--a3-text-secondary); }
.clients-form__error { font-size: 12px; font-weight: 500; color: var(--a3-status-blocked, #C82020); }
.freigabe-modal__btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ── Engagement dialogs ──
   Same card language as the rest of the system: surface card, hairline
   border, eyebrow + title head, .btn action row. Danger variant carries a
   red top accent + warning panel (mirrors the statstrip alert palette). */
.eng-dialog {
  width: 100%;
  max-width: 440px;
  background: var(--a3-surface, #F2F6FC);
  border: 1px solid var(--a3-border, #D4D9E5);
  border-radius: var(--a3-radius-card, 10px);
  box-shadow: 0 24px 64px rgba(15, 21, 35, 0.22);
  padding: 20px 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.eng-dialog--danger { border-top: 3px solid var(--a3-status-blocked, #C82020); }
.eng-dialog__head { display: flex; align-items: flex-start; gap: 12px; }
.eng-dialog__eyebrow {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--a3-text-secondary);
}
.eng-dialog--danger .eng-dialog__eyebrow { color: var(--a3-status-blocked, #C82020); }
.eng-dialog__title {
  margin: 4px 0 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--a3-text-primary);
}
.eng-dialog__close {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: none;
  background: none;
  border-radius: 50%;
  color: var(--a3-text-secondary);
  cursor: pointer;
}
.eng-dialog__close:hover { background: rgba(27, 36, 51, 0.06); color: var(--a3-text-primary); }
.eng-dialog__warn {
  padding: 10px 12px;
  background: var(--a3-status-blocked-bg, #FDECEC);
  border: 1px solid rgba(200, 32, 32, 0.25);
  border-radius: var(--a3-radius-card, 8px);
  font-size: 13px;
  line-height: 1.5;
  color: var(--a3-text-primary);
}
.eng-dialog__footer { display: flex; justify-content: flex-end; gap: 8px; margin-top: 2px; }
.eng-dialog .btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn--danger-solid {
  background: var(--a3-status-blocked, #C82020);
  border-color: var(--a3-status-blocked, #C82020);
  color: #FFFFFF;
}
.btn--danger-solid:hover { background: #A91B1B; border-color: #A91B1B; color: #FFFFFF; }

/* Dark theme */
.shell[data-theme="dark"] .eng-dialog {
  background: var(--a3-chrome-panel-2, #161E29);
  border-color: var(--a3-chrome-border, rgba(148, 163, 184, 0.18));
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
}
.shell[data-theme="dark"] .eng-dialog__title { color: var(--a3-chrome-text, #E7ECF6); }
.shell[data-theme="dark"] .eng-dialog__eyebrow { color: var(--a3-chrome-muted, #A7B0C0); }
.shell[data-theme="dark"] .eng-dialog--danger .eng-dialog__eyebrow { color: #F08A8A; }
.shell[data-theme="dark"] .eng-dialog__close { color: var(--a3-chrome-muted, #A7B0C0); }
.shell[data-theme="dark"] .eng-dialog__close:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--a3-chrome-text, #E7ECF6);
}
.shell[data-theme="dark"] .eng-dialog__warn {
  background: rgba(224, 82, 82, 0.10);
  border-color: rgba(224, 82, 82, 0.30);
  color: var(--a3-chrome-text, #E7ECF6);
}
.shell[data-theme="dark"] .eng-dialog .btn {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--a3-chrome-border-strong, rgba(148, 163, 184, 0.30));
  color: var(--a3-chrome-text, #E7ECF6);
}
.shell[data-theme="dark"] .eng-dialog .btn--primary {
  background: var(--a3-cobalt, #3155FF);
  border-color: var(--a3-cobalt, #3155FF);
  color: #FFFFFF;
}
.shell[data-theme="dark"] .eng-dialog .btn--danger-solid {
  background: #C73B3B;
  border-color: #C73B3B;
  color: #FFFFFF;
}
.shell[data-theme="dark"] .clients-form__error { color: #F08A8A; }

/* Dialog surface: --a3-surface-2 was consumed by .freigabe-modal__card but
   never defined, so the card fell back to a dark color while the global
   text vars stay dark — unreadable dialogs in light theme. Define it per
   theme and give the dialog explicit dark-mode text colors. */
.shell[data-theme="light"] { --a3-surface-2: #FFFFFF; }
.shell[data-theme="dark"] { --a3-surface-2: var(--a3-chrome-panel-3, #1B2634); }
.shell[data-theme="dark"] .freigabe-modal__card { border-color: var(--a3-chrome-border); }
.shell[data-theme="dark"] .freigabe-modal__title,
.shell[data-theme="dark"] .freigabe-modal__detail { color: var(--a3-chrome-text, #E7ECF6); }
.shell[data-theme="dark"] .freigabe-modal__meta,
.shell[data-theme="dark"] .freigabe-modal__ts,
.shell[data-theme="dark"] .freigabe-modal__close { color: var(--a3-chrome-muted, #A7B0C0); }
.shell[data-theme="dark"] .freigabe-modal__btn--escalate {
  color: var(--a3-chrome-text, #E7ECF6);
  border-color: var(--a3-chrome-border-strong, rgba(148, 163, 184, 0.30));
}
.shell[data-theme="dark"] .clients-form label { color: var(--a3-chrome-muted, #A7B0C0); }
.shell[data-theme="dark"] .clients-form input {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--a3-chrome-border, rgba(148, 163, 184, 0.18));
  color: var(--a3-chrome-text, #E7ECF6);
}
.shell[data-theme="dark"] .clients-form__hint { color: var(--a3-chrome-muted, #A7B0C0); }

/* ── Client-data workbook (SPEC-client-data-workbook) ── */

/* Agent suggestion chips — operator confirms a proposed action by clicking. */
.gchat-msg__suggestions {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.gchat-suggestion {
  font-family: var(--a3-font-sans);
  font-size: 12px;
  font-weight: 500;
  color: rgba(140, 160, 255, 0.95);
  background: rgba(49, 85, 255, 0.12);
  border: 1px solid rgba(49, 85, 255, 0.30);
  border-radius: 999px;
  padding: 4px 12px;
  cursor: pointer;
  transition: background 100ms, border-color 100ms;
}
.gchat-suggestion:hover { background: rgba(49, 85, 255, 0.24); }
.gchat-suggestion:disabled { opacity: 0.55; cursor: progress; }
.shell[data-theme="light"] .gchat-suggestion {
  color: #2342c8;
  background: rgba(49, 85, 255, 0.08);
  border-color: rgba(49, 85, 255, 0.35);
}

/* Workbook download chip (thread header + chat landing). */
.clientdata-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  min-width: 0;
}
.clientdata-download__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--a3-font-sans);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--a3-chrome-muted, #A7B0C0);
  background: none;
  border: 1px solid var(--a3-chrome-border, rgba(148, 163, 184, 0.22));
  border-radius: 6px;
  padding: 4px 10px;
  cursor: pointer;
  white-space: nowrap;
  transition: color 120ms, border-color 120ms;
}
.clientdata-download__btn:hover {
  color: var(--a3-chrome-text, #E7ECF6);
  border-color: var(--a3-chrome-border-strong, rgba(148, 163, 184, 0.40));
}
.clientdata-download__btn:disabled { opacity: 0.6; cursor: progress; }
.shell[data-theme="light"] .clientdata-download__btn {
  color: #5A6480;
  border-color: var(--a3-border, #d6dae3);
}
.shell[data-theme="light"] .clientdata-download__btn:hover { color: #0F1523; }
.clientdata-download__err {
  font-family: var(--a3-font-sans);
  font-size: 11px;
  color: var(--a3-red, #e05252);
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.glanding__clientdata {
  margin-top: 14px;
  display: flex;
  justify-content: center;
}
.glanding__clientdata .clientdata-download { margin-left: 0; }

/* Gate card: client-data upload + decision note (light-amber card in both
   themes — pin readable colors like the other gate-blocker elements). */
.gate-blocker__clientdata {
  margin: 8px 0 4px;
  padding-top: 8px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}
.gate-blocker__upload-notice.is-error { color: #b3261e; }
.gate-blocker__note {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 7px 9px;
  font-family: var(--a3-font-sans);
  font-size: 12.5px;
  color: #0F1523;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 6px;
  resize: vertical;
  box-sizing: border-box;
}
.gate-blocker__note::placeholder { color: #8a90a3; }
.gate-blocker__note:disabled { opacity: 0.6; }
.shell[data-theme="dark"] .gate-blocker__note {
  color: #F2F4F8;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
}
.shell[data-theme="dark"] .gate-blocker__note::placeholder { color: #9aa3b5; }
.shell[data-theme="dark"] .gate-blocker__clientdata { border-top-color: rgba(255, 255, 255, 0.08); }

/* Review fixes (client-data workbook) */

/* Attachment chip was white-on-white in light theme. */
.shell[data-theme="light"] .glanding__chip {
  background: rgba(49, 85, 255, 0.07);
  border-color: rgba(49, 85, 255, 0.30);
  color: #5A6480;
}
.shell[data-theme="light"] .glanding__chip-name { color: #0F1523; }
.shell[data-theme="light"] .glanding__chip-meta { color: #5A6480; }
.shell[data-theme="light"] .glanding__chip-remove { color: #5A6480; }
.shell[data-theme="light"] .glanding__chip-remove:hover { color: #0F1523; }

/* Error notice must stay readable on the dark gate card. */
.shell[data-theme="dark"] .gate-blocker__upload-notice.is-error { color: #F2B8B5; }

/* Drag-over feedback on the gate-card client-data drop target. */
.gate-blocker__clientdata.is-drag-over {
  outline: 2px dashed rgba(76, 114, 255, 0.55);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Pointer-target minimums for the new compact controls. */
.gchat-suggestion { min-height: 28px; }
.clientdata-download__btn { min-height: 26px; }
.glanding__chip-remove { padding: 4px 6px; }

/* =========================================================
   LOGIN (WS2-T4) — pilot sign-in, rendered outside the shell.
   Sits directly on the dark chrome page background; the card
   reuses the eng-dialog surface pattern, labels follow the
   11px-uppercase convention, the submit is .btn--primary.
   ========================================================= */
.login {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--a3-space-6);
  font-family: var(--a3-font-sans);
}
.login__card {
  width: 100%;
  max-width: 380px;
  background: var(--a3-surface);
  border: 1px solid var(--a3-border);
  border-radius: var(--a3-radius-card);
  box-shadow: 0 24px 64px rgba(15, 21, 35, 0.22);
  padding: var(--a3-space-6) var(--a3-space-6) var(--a3-space-5);
  display: flex;
  flex-direction: column;
  gap: var(--a3-space-4);
}
.login__eyebrow {
  font-size: var(--a3-fs-label);
  font-weight: var(--a3-fw-semibold);
  text-transform: uppercase;
  letter-spacing: var(--a3-track-label);
  color: var(--a3-text-secondary);
}
.login__title {
  margin: 2px 0 0;
  font-family: var(--a3-font-display);
  font-size: var(--a3-fs-title);
  font-weight: var(--a3-fw-semibold);
  color: var(--a3-text-primary);
}
.login__subtitle {
  margin-top: var(--a3-space-1);
  font-size: var(--a3-fs-data);
  line-height: 1.5;
  color: var(--a3-text-secondary);
}
.login__field {
  display: flex;
  flex-direction: column;
  gap: var(--a3-space-1);
}
.login__label {
  font-size: var(--a3-fs-label);
  font-weight: var(--a3-fw-semibold);
  text-transform: uppercase;
  letter-spacing: var(--a3-track-label);
  color: var(--a3-text-secondary);
}
.login__input {
  min-height: 44px;
  padding: 10px 12px;
  font-family: var(--a3-font-sans);
  font-size: var(--a3-fs-body);
  color: var(--a3-text-primary);
  background: #FFFFFF;
  border: 1px solid var(--a3-border);
  border-radius: var(--a3-radius-input);
  outline: none;
  transition: border-color var(--a3-duration-fast) var(--a3-ease),
              box-shadow var(--a3-duration-fast) var(--a3-ease);
}
.login__input:focus {
  border-color: var(--a3-cobalt);
  box-shadow: 0 0 0 3px var(--a3-cobalt-ring);
}
.login__error {
  font-size: var(--a3-fs-data);
  line-height: 1.45;
  color: var(--a3-status-blocked);
  background: var(--a3-status-blocked-bg);
  border: 1px solid rgba(200, 32, 32, 0.25);
  border-radius: var(--a3-radius-input);
  padding: var(--a3-space-2) var(--a3-space-3);
}
.login__submit {
  justify-content: center;
  min-height: 44px;
  font-size: var(--a3-fs-body);
  margin-top: var(--a3-space-1);
}
.login__submit:disabled {
  opacity: 0.55;
  cursor: wait;
}
