/**
 * hub-next · Theater styles
 * Lenses workbench + ops pack surface + node inspector
 * ARCH: shell → shared → pack → active
 */

.hub-next-theater-wb {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  width: 100%;
  box-sizing: border-box;
}

.th-wb-head {
  padding: 8px 10px 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}
.th-wb-title {
  font: 700 12px/1.2 system-ui, sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #e2e8f0;
}
.th-wb-sub {
  font: 500 11px/1.3 system-ui, sans-serif;
  color: #64748b;
  margin-top: 2px;
}

/* Lens menu = workbench primary */
.th-lens-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
  flex: 0 1 auto;
  max-height: 55%;
  min-height: 0;
  overflow: auto;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.th-lens-row {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 8px;
  align-items: center;
  width: 100%;
  text-align: left;
  padding: 10px 10px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(14, 20, 28, 0.72);
  color: #e2e8f0;
  cursor: pointer;
  box-sizing: border-box;
  font: inherit;
}
.th-lens-row:hover {
  border-color: rgba(251, 191, 36, 0.35);
}
.th-lens-row.is-active {
  border-color: rgba(251, 191, 36, 0.65);
  box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.35), inset 3px 0 0 #fbbf24;
  background: rgba(30, 24, 12, 0.85);
}
.th-lens-row.is-later {
  opacity: 0.78;
}
.th-lens-code {
  font: 800 11px/1 ui-monospace, monospace;
  letter-spacing: 0.04em;
  color: #fbbf24;
}
.th-lens-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.th-lens-label {
  font: 700 13px/1.25 system-ui, sans-serif;
  color: #f8fafc;
}
.th-lens-purpose {
  font: 500 10px/1.3 system-ui, sans-serif;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.th-lens-phase {
  font: 600 9px/1 ui-monospace, monospace;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #94a3b8;
  flex-shrink: 0;
}

/* Per-lens workbench body */
.th-lens-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 10px;
}
.th-lens-body-lab {
  font: 700 10px/1.2 system-ui, sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 8px;
}
.th-lens-hint {
  margin: 10px 0 0;
  font-size: 11px;
  line-height: 1.4;
}
.th-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.th-filter-chip {
  appearance: none;
  cursor: pointer;
  font: 600 11px/1.2 system-ui, sans-serif;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.5);
  color: #94a3b8;
}
.th-filter-chip.is-on {
  color: #e0f2fe;
  border-color: rgba(56, 189, 248, 0.5);
  background: rgba(14, 165, 233, 0.15);
}
.th-filter-chip.is-stub {
  opacity: 0.75;
}
.th-stub-tag {
  font-size: 9px;
  opacity: 0.8;
  margin-left: 2px;
}
.th-kind-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.th-kind-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  font: 600 12px/1.2 system-ui, sans-serif;
  color: #94a3b8;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid transparent;
}
.th-kind-toggle.is-on {
  color: #e2e8f0;
  border-color: rgba(148, 163, 184, 0.15);
  background: rgba(15, 23, 42, 0.45);
}
.th-kind-toggle input {
  accent-color: #5b8def;
}
.th-kind-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  flex-shrink: 0;
  display: inline-block;
}
.th-tool-btn {
  appearance: none;
  cursor: pointer;
  min-width: 32px;
  height: 28px;
  padding: 0 10px;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.65);
  color: #e2e8f0;
  font: 700 13px/1 system-ui, sans-serif;
}
.th-tool-btn:hover {
  border-color: rgba(251, 191, 36, 0.45);
  color: #fde68a;
}
.th-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  padding: 6px 16px;
  flex-shrink: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.th-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 600 11px/1 system-ui, sans-serif;
  color: #94a3b8;
}
/* Cytoscape container */
.th-stage--graph {
  min-height: 280px;
}
.th-stage--graph .th-stage-empty {
  position: absolute;
  inset: 0;
}

/* ── Ops pack surface · Builder Ontology graph layout (explore only) ── */
.hub-next-theater-ops {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  position: relative;
  box-sizing: border-box;
  background: #0a0e14;
}
.th-ops-chrome {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  padding: 10px 16px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
  background: rgba(10, 12, 16, 0.92);
  z-index: 2;
}
.th-ops-chrome--builder {
  justify-content: space-between;
}
.th-ops-left {
  min-width: 0;
}
.th-ops-title {
  font: 700 15px/1.3 system-ui, sans-serif;
  color: #f1f5f9;
  margin: 0;
}
.th-ops-accent {
  color: #38bdf8;
}
.th-ops-sub {
  margin: 2px 0 0;
  font-size: 11px;
}
.th-ops-right {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-left: auto;
}
/* Stage source tabs — Builder Ontology / Flow / Missions style */
.th-stage-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.12);
}
.th-stage-tab {
  appearance: none;
  cursor: pointer;
  font: 600 12px/1.2 system-ui, sans-serif;
  padding: 7px 14px;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: #94a3b8;
}
.th-stage-tab.is-on {
  background: #0ea5e9;
  color: #0b1220;
  font-weight: 700;
}
.th-stage-tab.is-stub {
  opacity: 0.55;
}
.th-stage-tab em {
  font-style: normal;
  font-size: 9px;
  opacity: 0.75;
  margin-left: 2px;
}
.th-pill-live {
  color: #a7f3d0 !important;
  border-color: rgba(52, 211, 153, 0.4) !important;
}
.hub-next-pill {
  font: 700 10px/1 ui-monospace, monospace;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  color: #94a3b8;
  background: rgba(15, 23, 42, 0.6);
}

/* Checkerboard stage (Builder chess board) */
.th-stage--checker,
.th-graph-container {
  flex: 1 1 auto;
  min-height: 0;
  position: relative;
  overflow: hidden;
  /* Chess board — dark theme */
  background-color: #0c0e12;
  background-image:
    linear-gradient(45deg, #12151c 25%, transparent 25%),
    linear-gradient(-45deg, #12151c 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #12151c 75%),
    linear-gradient(-45deg, transparent 75%, #12151c 75%);
  background-size: 40px 40px;
  background-position: 0 0, 0 20px, 20px -20px, -20px 0;
}
.th-graph-canvas {
  width: 100%;
  height: 100%;
  min-height: 280px;
}
.th-stage--stub {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 28px 24px;
  max-width: 520px;
}
.th-stage--stub h3 {
  margin: 0 0 8px;
  color: #e2e8f0;
  font: 650 16px/1.3 system-ui, sans-serif;
}
.th-stage-empty {
  display: grid;
  place-items: center;
  height: 100%;
  padding: 24px;
  font-size: 13px;
  color: #94a3b8;
}
.th-ops-msg {
  padding: 8px 16px;
  margin: 0;
  flex-shrink: 0;
}
.th-pack-audit-fail {
  color: #fecaca !important;
  background: rgba(127, 29, 29, 0.35);
  border-bottom: 1px solid rgba(248, 113, 113, 0.45);
  font: 600 11px/1.35 system-ui, sans-serif;
}
.th-honesty {
  flex-shrink: 0;
  margin: 0;
  padding: 6px 16px;
  font-size: 10px;
  font-family: ui-monospace, monospace;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: #64748b;
}

/* Builder graph-controls — bottom left */
.th-graph-controls {
  position: absolute;
  bottom: 20px;
  left: 20px;
  display: flex;
  gap: 8px;
  z-index: 6;
}
.th-graph-control-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(22, 26, 34, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 10px;
  color: #94a3b8;
  cursor: pointer;
  font: 700 16px/1 system-ui, sans-serif;
  transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}
.th-graph-control-btn:hover {
  background: #0078d4;
  color: #fff;
  border-color: #0078d4;
}

/* Builder graph-legend — bottom right entity types */
.th-ms-panel {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 7;
  width: 228px;
  background: rgba(22, 26, 34, 0.96);
  border: 1px solid rgba(251, 191, 36, 0.28);
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
}
.th-ms-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 8px 0 10px;
}
.th-ms-chip {
  appearance: none;
  cursor: pointer;
  border: 1px solid rgba(251, 191, 36, 0.28);
  background: rgba(15, 23, 42, 0.7);
  color: #fde68a;
  font: 600 11px/1.2 system-ui, sans-serif;
  padding: 5px 8px;
  border-radius: 999px;
}
.th-ms-chip.is-on {
  background: #fbbf24;
  color: #1c1406;
  border-color: #fbbf24;
}
.th-ms-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin-bottom: 8px;
}
.th-ms-crumb {
  appearance: none;
  cursor: pointer;
  border: 0;
  background: transparent;
  color: #cbd5e1;
  font: 600 11px/1.2 system-ui, sans-serif;
  padding: 0;
}
.th-ms-crumb.is-on {
  color: #fbbf24;
}
.th-ms-sep {
  color: #64748b;
  font-size: 11px;
}
.th-ms-up {
  appearance: none;
  cursor: pointer;
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(15, 23, 42, 0.7);
  color: #e2e8f0;
  font: 600 11px/1.2 system-ui, sans-serif;
  padding: 6px 8px;
  border-radius: 8px;
}
.th-ms-up:hover,
.th-ms-chip:hover {
  border-color: #fbbf24;
}
.th-ms-hint {
  margin: 0;
  font-size: 10px;
  color: #94a3b8;
  line-height: 1.35;
}
.th-ms-open {
  appearance: none;
  cursor: pointer;
  margin: 10px 0 8px;
  width: 100%;
  border: 1px solid rgba(251, 191, 36, 0.4);
  background: rgba(251, 191, 36, 0.12);
  color: #fde68a;
  font: 700 12px/1.2 system-ui, sans-serif;
  padding: 8px 10px;
  border-radius: 8px;
}
.th-ms-open:hover {
  background: #fbbf24;
  color: #1c1406;
}
.th-graph-legend {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: rgba(22, 26, 34, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 12px;
  padding: 12px 14px;
  min-width: 200px;
  max-width: 280px;
  max-height: min(50vh, 360px);
  overflow-y: auto;
  z-index: 6;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
}
.th-graph-legend .legend-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 2px;
}
.th-graph-legend .legend-subtitle {
  font-size: 10px;
  color: #64748b;
  margin-bottom: 10px;
  line-height: 1.3;
}
.th-legend-family {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 6px 4px;
  margin: 0 0 2px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #e2e8f0;
  cursor: pointer;
  font: 600 12px/1.2 system-ui, sans-serif;
  text-align: left;
}
.th-legend-family:hover {
  background: rgba(255, 255, 255, 0.06);
}
.th-legend-family.is-off {
  opacity: 0.4;
}
.th-legend-family .legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}
.th-legend-family .legend-family-label {
  flex: 1;
  min-width: 0;
}
.th-legend-family .legend-family-count {
  font-size: 10px;
  color: #64748b;
  font-weight: 500;
}
.th-rel-title { margin-top: 12px; }
html[data-theater-lens="graph"] .th-rel-chip.is-on .legend-family-label {
  font-weight: 700;
}

.th-lens-points {
  margin: 10px 0 0;
  padding-left: 18px;
  font-size: 11px;
  line-height: 1.45;
}

/* Inspector */
#shell-inspector .msp-insp {
  height: 100%;
  min-height: 0;
}
.th-actor-fallback .hub-next-insp-dl {
  margin: 0;
}
.hub-next-theater-insp {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}
.th-insp {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}
.th-insp-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}
.th-insp-chip {
  font: 700 9px/1 ui-monospace, monospace;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 999px;
  border: 1px solid rgba(251, 191, 36, 0.4);
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.1);
}
.th-insp-scope {
  font-size: 11px;
}
.th-insp-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}
.th-insp-tab {
  appearance: none;
  cursor: pointer;
  font: 600 11px/1.2 system-ui, sans-serif;
  padding: 7px 12px;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.4);
  color: #94a3b8;
  writing-mode: horizontal-tb !important;
  width: auto !important;
  height: auto !important;
  white-space: nowrap;
}
.th-insp-tab.is-on {
  color: #f1f5f9;
  border-color: rgba(251, 191, 36, 0.45);
  background: rgba(251, 191, 36, 0.12);
}
.th-insp-head {
  padding: 10px 12px 8px;
  flex-shrink: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.th-insp-title {
  margin: 0 0 4px;
  font: 700 13px/1.3 system-ui, sans-serif;
  color: #f1f5f9;
}
.th-insp-seid {
  font: 500 10px/1.35 ui-monospace, monospace;
  color: #64748b;
  word-break: break-all;
  display: block;
}
.th-insp-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 12px;
}
.th-insp-body .hub-next-insp-dl {
  margin: 0;
  display: grid;
  grid-template-columns: minmax(72px, 100px) 1fr;
  gap: 8px 12px;
  font-size: 12px;
}
.th-insp-body .hub-next-insp-dl dt {
  color: #64748b;
  font-weight: 600;
}
.th-insp-body .hub-next-insp-dl dd {
  margin: 0;
  color: #e2e8f0;
  word-break: break-word;
}
.th-dims {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.th-dim {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.1);
  font-size: 12px;
}
.th-dim-k {
  color: #64748b;
  font-weight: 600;
}
.th-dim-v {
  color: #e2e8f0;
  word-break: break-word;
}
.th-fact-log {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
}
.th-fact-log li {
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.1);
  background: rgba(15, 23, 42, 0.4);
}
.hub-next-json {
  margin: 0;
  font: 11px/1.4 ui-monospace, monospace;
  white-space: pre-wrap;
  word-break: break-word;
  color: #cbd5e1;
}
.insp-empty {
  padding: 8px 0;
}

/* ── Twin DT1 · product Hub TwinProcessCanvas parity ── */
.twin-process-wrap {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 12px 16px 16px;
  box-sizing: border-box;
  background:
    radial-gradient(ellipse 80% 50% at 30% 20%, rgba(34, 211, 238, 0.07) 0%, transparent 60%),
    radial-gradient(ellipse at 50% 40%, rgba(14, 30, 50, 0.45) 0%, #080c12 72%);
}
.twin-process-chrome {
  flex-shrink: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  padding: 0 4px;
}
.twin-process-kicker {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #22d3ee;
  margin-bottom: 2px;
}
.twin-rail {
  stroke: rgba(34, 211, 238, 0.22);
  stroke-width: 6;
  stroke-linecap: round;
}
.twin-seq {
  fill: #0f172a;
  stroke: #22d3ee;
  stroke-width: 1.5;
}
.twin-seq-n {
  fill: #e2e8f0;
  font-size: 10px;
  font-weight: 800;
  font-family: ui-monospace, monospace;
}
.twin-now-lab {
  fill: #22d3ee;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  font-family: ui-sans-serif, system-ui, sans-serif;
}
.twin-stage-kind {
  fill: #67e8f9;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  font-family: ui-monospace, monospace;
}
.twin-stage-g.is-now .twin-stage-card {
  stroke: #22d3ee;
  stroke-width: 2.5;
}
.twin-stage-g.is-selected .twin-stage-card {
  stroke: #e2e8f0;
  stroke-width: 3;
  filter: drop-shadow(0 0 10px rgba(34, 211, 238, 0.45));
}
.twin-process-title strong {
  font-size: 1.05rem;
  color: #f1f5f9;
}
.twin-process-ref {
  display: block;
  font-size: 11px;
  margin-top: 2px;
  font-family: ui-monospace, monospace;
  color: #64748b;
}
.twin-process-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  font-size: 10px;
}
.tpl-state {
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.tpl-state--idle { background: rgba(100,116,139,0.25); color: #94a3b8; }
.tpl-state--active { background: rgba(0,229,143,0.18); color: #00e58f; }
.tpl-state--blocked { background: rgba(251,191,36,0.2); color: #fbbf24; }
.tpl-state--done { background: rgba(100,116,139,0.2); color: #94a3b8; }
.tpl-state--failed { background: rgba(239,68,68,0.2); color: #f87171; }
.tpl-heat-note { color: #64748b; margin-left: 4px; }
.twin-process-scroll {
  flex: 1;
  min-height: 0;
  overflow: auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.twin-process-scroll--h {
  overflow-x: auto;
  overflow-y: hidden;
  padding: 8px 12px 16px;
}
.twin-process-svg {
  max-width: none;
  height: auto;
  display: block;
}
.twin-edge {
  stroke: #64748b;
  stroke-width: 2;
  opacity: 0.85;
}
.twin-edge--rework {
  stroke: #fb923c;
  stroke-dasharray: 6 4;
  stroke-width: 2;
}
.twin-edge--next { stroke: #22d3ee; opacity: 0.65; }
.twin-edge-label {
  fill: #fb923c;
  font-size: 10px;
  font-weight: 700;
}
.twin-stage-card {
  stroke-width: 2;
  transition: stroke 0.15s, fill 0.15s;
}
.twin-stage--idle .twin-stage-card { fill: #1e293b; stroke: #475569; }
.twin-stage--active .twin-stage-card { fill: #0f2e24; stroke: #00e58f; }
.twin-stage--blocked .twin-stage-card { fill: #2a2410; stroke: #fbbf24; }
.twin-stage--done .twin-stage-card { fill: #1a2332; stroke: #64748b; }
.twin-stage--failed .twin-stage-card { fill: #2a1212; stroke: #f87171; }
.twin-stage-heat--cool .twin-stage-heat-bar { fill: #67e8f9; opacity: 0.45; }
.twin-stage-heat--normal .twin-stage-heat-bar { fill: #22d3ee; opacity: 0.9; }
.twin-stage-heat--elevated .twin-stage-heat-bar { fill: #fb923c; }
.twin-stage-heat--critical .twin-stage-heat-bar { fill: #ef4444; }
.twin-stage-heat--critical .twin-stage-card { stroke-width: 3; }
.twin-stage-id {
  fill: #94a3b8;
  font-size: 10px;
  font-weight: 700;
  font-family: ui-monospace, monospace;
}
.twin-stage-label {
  fill: #f1f5f9;
  font-size: 12px;
  font-weight: 700;
}
.twin-stage-state {
  fill: #94a3b8;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.twin-stage-counts {
  fill: #64748b;
  font-size: 9px;
  font-family: ui-monospace, monospace;
}
.twin-stage-heat-val {
  fill: #e2e8f0;
  font-size: 11px;
  font-weight: 700;
  font-family: ui-monospace, monospace;
}
.twin-contour { pointer-events: none; }
.twin-process-hint {
  flex-shrink: 0;
  font-size: 11px;
  margin: 8px 4px 0;
  text-align: center;
  color: #64748b;
}
/* Twin entity bar — Graph-style family picker (Client · Mission · Motion) */
.th-twin-entity-bar {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
}
.th-twin-entity {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(14, 20, 28, 0.65);
  color: #e2e8f0;
  cursor: pointer;
  font: inherit;
  text-align: left;
}
.th-twin-entity:hover {
  border-color: rgba(56, 189, 248, 0.3);
}
.th-twin-entity.is-on {
  border-color: rgba(56, 189, 248, 0.55);
  background: rgba(8, 24, 40, 0.9);
  box-shadow: inset 3px 0 0 #38bdf8;
}
.th-twin-entity .legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  flex-shrink: 0;
}
.th-twin-entity-lab {
  flex: 1;
  font: 600 12px/1.2 system-ui, sans-serif;
  min-width: 0;
}
.th-twin-entity-n {
  font: 600 10px/1 ui-monospace, monospace;
  color: #64748b;
}
.th-twin-span {
  font: 600 9px/1 ui-monospace, monospace;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #a78bfa;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid rgba(167, 139, 250, 0.3);
  background: rgba(167, 139, 250, 0.1);
  flex-shrink: 0;
}
.th-twin-client-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 200px;
  overflow: auto;
}
.th-twin-client {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  text-align: left;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(14, 20, 28, 0.7);
  color: #e2e8f0;
  cursor: pointer;
  font: inherit;
}
.th-twin-client:hover { border-color: rgba(56, 189, 248, 0.35); }
.th-twin-client.is-on {
  border-color: rgba(56, 189, 248, 0.55);
  box-shadow: inset 3px 0 0 #38bdf8;
  background: rgba(8, 20, 32, 0.9);
}
.th-twin-client-code {
  font: 800 10px/1 ui-monospace, monospace;
  color: #38bdf8;
  min-width: 3.2em;
  flex-shrink: 0;
}
.th-twin-client-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}
.th-twin-client-name {
  font: 600 12px/1.25 system-ui, sans-serif;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.th-twin-assoc-client {
  font: 500 10px/1.2 system-ui, sans-serif;
  color: #94a3b8;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── Mission deep dive · SOP → BPaaS (not a twin) ── */
.mis-stage {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 12px 16px 20px;
  box-sizing: border-box;
}
.mis-deep-head h2 {
  margin: 4px 0 6px;
  font: 700 18px/1.25 system-ui, sans-serif;
  color: #f8fafc;
}
.mis-kicker {
  display: block;
  font: 700 10px/1.2 system-ui, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fbbf24;
}
.mis-scope { margin: 0 0 6px; font-size: 12px; line-height: 1.4; }
.mis-client {
  margin: 0 0 14px;
  font-size: 12px;
  color: #94a3b8;
}
.mis-client strong { color: #e2e8f0; }
.mis-path {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 4px;
  padding: 10px 12px;
  margin-bottom: 16px;
  border-radius: 12px;
  border: 1px solid rgba(251, 191, 36, 0.28);
  background: rgba(251, 191, 36, 0.06);
}
.mis-path-step {
  font: 700 11px/1.2 system-ui, sans-serif;
  color: #fde68a;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(251, 191, 36, 0.25);
  background: rgba(15, 23, 42, 0.5);
}
.mis-path-arrow {
  color: #64748b;
  font-size: 12px;
  padding: 0 2px;
}
.mis-section {
  margin-bottom: 16px;
}
.mis-section h3 {
  margin: 0 0 8px;
  font: 700 11px/1.2 system-ui, sans-serif;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #94a3b8;
}
.mis-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.mis-chip {
  appearance: none;
  cursor: pointer;
  font: 600 11px/1.2 system-ui, sans-serif;
  padding: 7px 10px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.55);
  color: #e2e8f0;
  text-align: left;
}
.mis-chip.is-on {
  border-color: rgba(251, 191, 36, 0.55);
  box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.25);
}
.mis-chip-kind {
  font: 800 9px/1 ui-monospace, monospace;
  color: #fbbf24;
  margin-right: 4px;
}
.mis-chip-st {
  font-size: 10px;
  color: #64748b;
  margin-left: 4px;
}
.mis-motion {
  margin-bottom: 10px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(14, 20, 28, 0.65);
  overflow: hidden;
}
.mis-motion.is-on {
  border-color: rgba(56, 189, 248, 0.45);
}
.mis-motion-head {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: none;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
}
.mis-motion-role {
  font: 700 9px/1 ui-monospace, monospace;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #a78bfa;
  flex-shrink: 0;
}
.mis-motion-title {
  flex: 1;
  font: 700 13px/1.25 system-ui, sans-serif;
  color: #f1f5f9;
  min-width: 0;
}
.mis-motion-st {
  font-size: 10px;
  color: #64748b;
  flex-shrink: 0;
}
.mis-fact-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 10px 10px 28px;
}
.mis-fact {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 8px;
  align-items: center;
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(2, 6, 23, 0.4);
  color: #e2e8f0;
  cursor: pointer;
  font: inherit;
  text-align: left;
}
.mis-fact.is-on {
  border-color: rgba(56, 189, 248, 0.5);
  background: rgba(14, 165, 233, 0.08);
}
.mis-fact--done { opacity: 0.85; }
.mis-fact--active { border-color: rgba(0, 229, 143, 0.35); }
.mis-fact--idle { opacity: 0.75; }
.mis-fact-id {
  font: 700 10px/1 ui-monospace, monospace;
  color: #7dd3fc;
}
.mis-fact-lab { font: 600 12px/1.25 system-ui, sans-serif; }
.mis-fact-st {
  font: 600 9px/1 ui-monospace, monospace;
  color: #64748b;
  text-transform: uppercase;
}
.mis-bpaas-card {
  display: block;
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(167, 139, 250, 0.35);
  background: rgba(76, 29, 149, 0.12);
  color: #e2e8f0;
  cursor: pointer;
  font: inherit;
}
.mis-bpaas-card.is-on {
  border-color: rgba(167, 139, 250, 0.65);
  box-shadow: 0 0 0 1px rgba(167, 139, 250, 0.3);
}
.mis-bpaas-kicker {
  font: 700 10px/1 system-ui, sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #c4b5fd;
  margin-bottom: 4px;
}
.mis-bpaas-card strong {
  font: 700 14px/1.3 ui-monospace, monospace;
  color: #f5f3ff;
}
.mis-bpaas-same {
  margin: 8px 0 0;
  font: 600 11px/1.3 system-ui, sans-serif;
  color: #a78bfa;
}
.mis-honesty {
  margin: 12px 0 0;
  font-size: 10px;
  font-family: ui-monospace, monospace;
}
.mis-entity-note { margin-bottom: 10px; }

/* ── Colony · coral fact stream (brick-by-brick) ── */
.col-stream-bar {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 10px;
}
.col-stream-chip {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 42, 0.45);
  color: #e2e8f0;
  cursor: pointer;
  font: inherit;
  text-align: left;
}
.col-stream-chip:hover {
  border-color: color-mix(in srgb, var(--col-tone, #94a3b8) 45%, transparent);
}
.col-stream-chip.is-on {
  border-color: color-mix(in srgb, var(--col-tone, #f59e0b) 70%, transparent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--col-tone, #f59e0b) 30%, transparent);
  background: color-mix(in srgb, var(--col-tone, #f59e0b) 10%, rgba(15, 23, 42, 0.7));
}
.col-stream-icon { font-size: 14px; line-height: 1; }
.col-stream-lab {
  font: 700 12px/1.2 system-ui, sans-serif;
  min-width: 0;
}
.col-stream-n {
  font: 700 10px/1 ui-monospace, monospace;
  color: #64748b;
}

/* Stage: main plate (floor) + right filter sidebar (Graph legend pattern) */
.col-stage {
  flex: 1 1 auto;
  min-height: 0;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  box-sizing: border-box;
}
.col-main {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 10px 12px 8px 14px;
  box-sizing: border-box;
}
.col-coral-head--float {
  flex-shrink: 0;
  margin-bottom: 6px;
}
.col-coral-head h2 {
  margin: 4px 0 6px;
  font: 700 18px/1.25 system-ui, sans-serif;
  color: #f8fafc;
}
.col-kicker {
  display: block;
  font: 700 10px/1.2 system-ui, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f59e0b;
}
.col-coral-sub {
  margin: 4px 0 0;
  font-size: 11px;
  line-height: 1.35;
  max-width: 40rem;
}
/* Floor: stacks sit at the bottom of the plate */
.col-plate-floor {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: auto;
  padding: 8px 4px 4px;
}
.col-plate {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 18px 22px;
  min-height: 0;
  width: 100%;
  padding: 0 4px 4px;
}
/* Filter sidebar — same chrome family as .th-graph-legend */
.col-sidebar--filters {
  position: relative;
  bottom: auto;
  right: auto;
  flex: 0 0 228px;
  width: 228px;
  max-width: 228px;
  max-height: none;
  height: auto;
  align-self: stretch;
  margin: 12px 12px 12px 0;
  overflow-y: auto;
  z-index: 6;
}
.col-side-types {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 4px;
}
.col-side-type {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 6px 4px;
  margin: 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #e2e8f0;
  cursor: pointer;
  font: 600 12px/1.2 system-ui, sans-serif;
  text-align: left;
}
.col-side-type:hover {
  background: rgba(255, 255, 255, 0.06);
}
.col-side-type.is-off {
  opacity: 0.4;
}
.col-side-type.is-on {
  background: color-mix(in srgb, var(--col-tone, #f59e0b) 12%, transparent);
}
.col-side-type-lab {
  flex: 1;
  min-width: 0;
}
.col-side-type-n {
  font: 700 10px/1 ui-monospace, monospace;
  color: #64748b;
}
.col-side-hint {
  margin: 10px 0 0;
  font-size: 10px;
  line-height: 1.35;
}
.col-column {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 132px;
  flex: 0 0 auto;
  --col-tone: #f59e0b;
}
.col-column.is-on .col-base {
  border-color: color-mix(in srgb, var(--col-tone) 75%, #fff);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--col-tone) 35%, transparent);
}
.col-stack {
  display: flex;
  flex-direction: column-reverse;
  gap: 3px;
  margin-bottom: 6px;
  min-height: 48px;
}
.col-brick {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 4px;
  width: 100%;
  min-height: 28px;
  padding: 5px 6px;
  border-radius: 6px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-left: 3px solid #94a3b8;
  background: linear-gradient(
    180deg,
    rgba(30, 41, 59, 0.95) 0%,
    rgba(15, 23, 42, 0.92) 100%
  );
  color: #e2e8f0;
  cursor: pointer;
  font: inherit;
  text-align: left;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
}
.col-brick:hover {
  border-color: color-mix(in srgb, var(--col-tone) 50%, transparent);
  transform: translateY(-1px);
}
.col-brick.is-on {
  border-color: color-mix(in srgb, var(--col-tone) 80%, #fff);
  background: color-mix(in srgb, var(--col-tone) 14%, rgba(15, 23, 42, 0.95));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--col-tone) 40%, transparent);
}
.col-brick--pass { border-left-color: #4ade80; }
.col-brick--fail { border-left-color: #f87171; }
.col-brick--human { border-left-color: #fbbf24; }
.col-brick--neutral { border-left-color: #94a3b8; }
.col-brick-day {
  font: 700 8px/1.15 ui-monospace, monospace;
  color: #7dd3fc;
  min-width: 36px;
}
.col-brick-lab {
  font: 600 10px/1.15 system-ui, sans-serif;
  color: #f1f5f9;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.col-brick--instance {
  grid-template-columns: 42px 1fr auto;
  min-height: 40px;
  align-items: start;
  padding: 6px;
}
.col-brick-main {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.col-brick-amt {
  font: 700 9px/1.1 ui-monospace, monospace;
  color: color-mix(in srgb, var(--col-tone, #f59e0b) 80%, #fff);
}
.col-brick-client {
  font: 600 9px/1.1 system-ui, sans-serif;
  color: #64748b;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.col-brick-score {
  font: 800 8px/1 ui-monospace, monospace;
  letter-spacing: 0.02em;
  color: #64748b;
  text-transform: uppercase;
  align-self: center;
}
.col-stack-empty {
  font-size: 10px;
  padding: 12px 6px;
  text-align: center;
}
.col-base-icon {
  font-size: 14px;
  line-height: 1;
  margin-bottom: 2px;
}
.col-column--type {
  width: 148px;
}
.col-filt-block {
  margin: 8px 0 6px;
}
.col-filt-lab {
  font: 700 9px/1.2 system-ui, sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 4px;
}
.col-filt-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.col-filt-chip {
  appearance: none;
  cursor: pointer;
  font: 600 10px/1 system-ui, sans-serif;
  padding: 5px 8px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.5);
  color: #94a3b8;
}
.col-filt-chip.is-on {
  border-color: rgba(245, 158, 11, 0.55);
  color: #fde68a;
  background: rgba(245, 158, 11, 0.1);
}
.col-brick--pass .col-brick-score { color: #4ade80; }
.col-brick--fail .col-brick-score { color: #f87171; }
.col-brick--human .col-brick-score { color: #fbbf24; }

.col-base {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: 100%;
  padding: 10px 8px 8px;
  border-radius: 0 0 12px 12px;
  border: 1px solid color-mix(in srgb, var(--col-tone) 40%, transparent);
  border-top: 3px solid var(--col-tone);
  background:
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--col-tone) 18%, transparent) 0%,
      rgba(15, 23, 42, 0.9) 100%
    );
  color: #e2e8f0;
  cursor: pointer;
  font: inherit;
  text-align: left;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
}
.col-base:hover {
  border-color: color-mix(in srgb, var(--col-tone) 65%, transparent);
}
.col-base-label {
  font: 800 12px/1.2 ui-monospace, monospace;
  color: #f8fafc;
}
.col-base-amt {
  font: 700 10px/1.2 system-ui, sans-serif;
  color: color-mix(in srgb, var(--col-tone) 85%, #fff);
}
.col-base-client {
  font: 600 10px/1.2 system-ui, sans-serif;
  color: #94a3b8;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.col-base-count {
  font: 600 9px/1 ui-monospace, monospace;
  color: #64748b;
  margin-top: 2px;
}
.col-honesty {
  flex-shrink: 0;
  margin: 6px 0 0;
  font-size: 10px;
  font-family: ui-monospace, monospace;
}
.col-empty {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 32px 16px;
  text-align: center;
}

/* ── Per-lens visual identity (hub-next Theater only) ── */
html[data-theater-lens="graph"] { --th-lens-accent: #94a3b8; --th-lens-accent-rgb: 148, 163, 184; }
html[data-theater-lens="graph"] .th-stage-tab.is-on {
  background: #94a3b8;
  color: #0b1220;
}
html[data-theater-lens="graph"] .th-stage-tab.is-on[data-gfilter="missions"] {
  background: #fbbf24;
  color: #1c1406;
}
html[data-theater-lens="graph"] .th-stage-tab.is-on[data-gfilter="bpaas"] {
  background: #c6a15b;
  color: #1c1406;
}
#th-graph-host[data-graph-source="missions"] {
  box-shadow: inset 0 0 0 2px rgba(251, 191, 36, 0.28);
}
#th-graph-host[data-graph-source="bpaas"] {
  box-shadow: inset 0 0 0 2px rgba(198, 161, 91, 0.28);
}
html[data-theater-lens="graph"] .th-graph-container {
  background-color: #080b10;
  background-image:
    radial-gradient(ellipse 70% 55% at 38% 32%, rgba(148, 163, 184, 0.07) 0%, transparent 70%),
    linear-gradient(rgba(148, 163, 184, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.04) 1px, transparent 1px);
  background-size: auto, 48px 48px, 48px 48px;
}
html[data-theater-lens="graph"] .th-graph-control-btn:hover {
  background: #475569;
  color: #f8fafc;
  border-color: #94a3b8;
}
html[data-theater-lens="graph"] .th-legend-family.is-on .legend-family-label {
  color: #e2e8f0;
}
html[data-theater-lens="graph"] #th-graph-host[data-graph-layer] {
  outline: 1px dashed rgba(148, 163, 184, 0.35);
  outline-offset: -10px;
}
html[data-theater-lens="digital_twin"] { --th-lens-accent: #22d3ee; --th-lens-accent-rgb: 34, 211, 238; }
html[data-theater-lens="client_mission"] { --th-lens-accent: #fbbf24; --th-lens-accent-rgb: 251, 191, 36; }
html[data-theater-lens="colony"] { --th-lens-accent: #fb7185; --th-lens-accent-rgb: 251, 113, 133; }
html[data-theater-lens="registry"] { --th-lens-accent: #a78bfa; --th-lens-accent-rgb: 167, 139, 250; }

.th-lens-row { --th-row-accent: var(--th-lens-accent, #fbbf24); }
.th-lens-row[data-lens="graph"] { --th-row-accent: #94a3b8; }
.th-lens-row[data-lens="digital_twin"] { --th-row-accent: #22d3ee; }
.th-lens-row[data-lens="client_mission"] { --th-row-accent: #fbbf24; }
.th-lens-row[data-lens="colony"] { --th-row-accent: #fb7185; }
.th-lens-row[data-lens="registry"] { --th-row-accent: #a78bfa; }
.th-lens-row:hover { border-color: color-mix(in srgb, var(--th-row-accent) 55%, transparent); }
.th-lens-row.is-active {
  border-color: color-mix(in srgb, var(--th-row-accent) 80%, transparent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--th-row-accent) 40%, transparent), inset 3px 0 0 var(--th-row-accent);
  background: rgba(12, 16, 24, 0.9);
}
.th-lens-row.is-active .th-lens-code,
.th-lens-row[data-lens] .th-lens-code { color: var(--th-row-accent); }
.th-ops-accent { color: var(--th-lens-accent, #38bdf8); }
.th-wb-title { color: var(--th-lens-accent, #e2e8f0); }

.th-stage-tab.is-layer em { font-style: normal; color: var(--th-lens-accent); opacity: 0.85; }
#th-graph-host[data-graph-layer="missions"] { box-shadow: inset 0 0 0 2px rgba(251, 191, 36, 0.35); }
#th-graph-host[data-graph-layer="motions"] { box-shadow: inset 0 0 0 2px rgba(167, 139, 250, 0.4); }
#th-graph-host[data-graph-layer="hot"] { box-shadow: inset 0 0 0 2px rgba(248, 113, 113, 0.45); }
#th-graph-host[data-graph-layer="ontology"] { box-shadow: inset 0 0 0 2px rgba(45, 212, 191, 0.4); }
#th-graph-host.is-highlight .th-cy-ready,
html[data-theater-highlight="1"] #th-graph-host {
  animation: th-pulse-set 1.4s ease-in-out 2;
}
@keyframes th-pulse-set {
  0%, 100% { filter: none; }
  50% { filter: saturate(1.4) brightness(1.12); }
}

.twin-window-bar { display: flex; gap: 4px; margin-left: 8px; }
.twin-window-chip {
  font: 700 10px/1 system-ui, sans-serif;
  padding: 4px 7px;
  border-radius: 6px;
  border: 1px solid rgba(34, 211, 238, 0.3);
  background: transparent;
  color: #67e8f9;
  cursor: pointer;
}
.twin-window-chip.is-on {
  background: rgba(34, 211, 238, 0.18);
  border-color: rgba(34, 211, 238, 0.6);
}
.twin-process-wrap[data-twin-window="7"] .twin-stage-heat-bar { opacity: 0.72; }
.twin-process-wrap[data-twin-window="14"] .twin-stage-heat-bar { opacity: 0.55; }
.twin-process-wrap[data-twin-window="30"] .twin-stage-heat-bar { opacity: 0.38; }
.twin-process-wrap.is-scenario .twin-contour { stroke-dasharray: 6 4; opacity: 0.85; }

.mis-path-step.is-current {
  color: #fbbf24;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Actions dock — same grammar as Work / Builder Book */
.hub-next-theater-ops--action-open { overflow: hidden; }
.hub-next-theater-ops .sig-action-slider {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  z-index: 14;
  display: flex;
  flex-direction: row-reverse;
  align-items: stretch;
  pointer-events: none;
}
.hub-next-theater-ops .sig-action-slider > * { pointer-events: auto; }
.hub-next-theater-ops .sig-action-slider-tab {
  align-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 28px;
  padding: 12px 4px;
  margin: 0;
  border: 1px solid rgba(251, 191, 36, 0.45);
  border-right: none;
  border-radius: 8px 0 0 8px;
  background: var(--space-900, #1c1c1b);
  color: #fbbf24;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}
.hub-next-theater-ops .sig-action-slider-tab-label {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}
.hub-next-theater-ops .sig-action-slider-body {
  width: 280px;
  max-width: min(280px, 42vw);
  height: 100%;
  overflow-y: auto;
  padding: 12px 12px 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-right: none;
  border-radius: 12px 0 0 12px;
  background: var(--space-900, #1c1c1b);
  box-sizing: border-box;
}
.hub-next-theater-ops .sig-action-list { list-style: none; margin: 0; padding: 0; }
.hub-next-theater-ops .sig-action-row {
  display: flex;
  gap: 8px;
  width: 100%;
  text-align: left;
  margin: 0 0 8px;
  padding: 8px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 12px;
  background: var(--surface-800, #262624);
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.hub-next-theater-ops .sig-action-row-label { display: block; font-size: 13px; font-weight: 700; }
.hub-next-theater-ops .sig-action-row-hint { display: block; font-size: 10px; color: #94a3b8; }
.hub-next-theater-ops .sig-action-section-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
  margin: 0 0 8px;
}
.hub-next-theater-ops .sig-action-selection { margin: 0 0 12px; font-size: 12px; line-height: 1.4; }
.hub-next-theater-ops .sig-action-q {
  display: block;
  width: 100%;
  text-align: left;
  margin: 0 0 6px;
  padding: 6px 8px;
  border-radius: 6px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: transparent;
  color: #e2e8f0;
  font: inherit;
  font-size: 11px;
  cursor: pointer;
}
.hub-next-theater-ops .sig-action-q:hover {
  border-color: var(--th-lens-accent, #a78bfa);
}
.th-lens-flash {
  margin: 8px 16px 0;
  padding: 6px 8px;
  border-radius: 6px;
  border: 1px solid color-mix(in srgb, var(--th-lens-accent, #a78bfa) 40%, transparent);
  color: #e2e8f0;
  font-size: 11px;
}
