:root {
  --canvas: #f4f5f6;
  --surface: #ffffff;
  --surface-subtle: #f4f5f6;
  --chrome: #181a1c;
  --chrome-raised: #24272b;
  --chrome-line: #30343a;
  --chrome-text: #f7f8fa;
  --chrome-muted: #9aa1aa;
  --ink: #181a1c;
  --muted: #5c636b;
  --line: #dee1e5;
  --line-strong: #c5cbd2;
  --brand: #b81d24;
  --danger: #b81d24;
  --danger-soft: #fdf0f1;
  --warning: #92540c;
  --warning-soft: #fef6e7;
  --positive: #15803d;
  --positive-soft: #edf7f0;
  --focus: #245dab;
  --rail-w: 264px;
  --radius: 6px;
  --shadow-float: 0 12px 28px rgba(24, 26, 28, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--canvas);
  color: var(--ink);
  font-size: 13.5px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}

body.is-dragging-timeline {
  cursor: grabbing !important;
  user-select: none;
  -webkit-user-select: none;
}

/* Slim Obsidian Studio Masthead (54px) */
.masthead {
  background: var(--chrome);
  color: var(--chrome-text);
  border-bottom: 1px solid var(--chrome-line);
  position: sticky;
  top: 0;
  z-index: 400;
}

.masthead-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

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

.brand-bar {
  width: 4px;
  height: 22px;
  border-radius: 2px;
  background: var(--brand);
  flex-shrink: 0;
}

.mast-title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--chrome-text);
  margin: 0;
  white-space: nowrap;
}

.mast-sub {
  font-size: 12px;
  color: var(--chrome-muted);
  border-left: 1px solid var(--chrome-line);
  padding-left: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mast-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.mast-badge {
  font-size: 11.5px;
  color: var(--chrome-muted);
  background: var(--chrome-raised);
  border: 1px solid var(--chrome-line);
  border-radius: 999px;
  padding: 3px 10px;
  white-space: nowrap;
}

.btn-mast {
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  color: var(--chrome-text);
  background: var(--chrome-raised);
  border: 1px solid #35393e;
  border-radius: 6px;
  padding: 5px 10px;
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease;
}

.btn-mast:hover {
  background: #303337;
  border-color: #4c5259;
}

/* Main Workspace Shell */
.wrap {
  max-width: 1400px;
  margin: 0 auto;
  padding: 18px 24px 56px;
}

h2 {
  font-size: 16px;
  font-weight: 650;
  margin: 0;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 14.5px;
  font-weight: 650;
  margin: 0;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 14px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.section-sub {
  color: var(--muted);
  font-size: 12.5px;
  margin: 3px 0 0;
}

.muted {
  color: var(--muted);
}

.ok-txt {
  color: var(--positive);
}

.bad-txt {
  color: var(--danger);
}

.pill-subtle {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  background: var(--surface-subtle);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 1px 8px;
}

/* Buttons & Controls */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  border-radius: 6px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  padding: 6px 12px;
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease;
}

.btn:hover:not(:disabled) {
  background: var(--surface-subtle);
  border-color: #9ea5a1;
}

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.btn-sm {
  font-size: 12px;
  padding: 5px 10px;
}

.btn-xs {
  font-size: 11.5px;
  padding: 3px 8px;
}

.btn-primary {
  background: var(--ink);
  border-color: var(--ink);
  color: #ffffff;
}

.btn-primary:hover:not(:disabled) {
  background: #33383d;
  border-color: #33383d;
}

.btn-outline {
  border-color: var(--line-strong);
  background: var(--surface);
}

.btn-ghost {
  border-color: transparent;
  background: transparent;
  color: var(--muted);
}

.btn-ghost:hover:not(:disabled) {
  background: var(--surface-subtle);
  color: var(--ink);
  border-color: transparent;
}

.btn-danger-text:hover:not(:disabled) {
  color: var(--danger);
  background: var(--danger-soft);
}

.btn-group {
  display: inline-flex;
  gap: 2px;
}

.seg-group {
  display: inline-flex;
  background: var(--surface-subtle);
  border-radius: 6px;
  padding: 2px;
  border: 1px solid var(--line);
}

.seg-btn {
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  border: none;
  background: transparent;
  color: var(--muted);
  padding: 4px 9px;
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
}

.seg-btn.active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.07);
}

.toggle-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  background: var(--surface-subtle);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 4px 10px;
  cursor: pointer;
  user-select: none;
}

.toggle-chip input {
  accent-color: var(--focus);
  margin: 0;
}

.shock-select {
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 5px 8px;
  max-width: 195px;
  cursor: pointer;
}

/* Scenario Bar */
.scenario-bar {
  padding: 12px 18px;
}

.scenario-bar-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 10px;
  border-bottom: 1px solid #ecefec;
}

.scenario-pills-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.bar-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.scenario-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.scenario-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  transition: all 0.12s ease;
}

.scenario-pill:hover {
  border-color: #8f9692;
  background: var(--surface-subtle);
}

.scenario-pill.active {
  background: var(--ink);
  border-color: var(--ink);
  color: #ffffff;
}

.dirty-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f59e0b;
}

.view-switcher {
  display: inline-flex;
  background: var(--surface-subtle);
  padding: 3px;
  border-radius: 7px;
  border: 1px solid var(--line);
}

.view-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 650;
  border: none;
  background: transparent;
  color: var(--muted);
  padding: 5px 13px;
  border-radius: 5px;
  cursor: pointer;
}

.view-tab.active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.tab-badge {
  font-size: 10.5px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 999px;
  background: #e5e7eb;
  color: var(--ink);
}

.tab-badge.high {
  background: var(--danger-soft);
  color: var(--danger);
}

.scenario-bar-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 9px;
}

.scenario-meta-desc {
  font-size: 12.5px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.unsaved-tag {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--warning-soft);
  color: var(--warning);
  border: 1px solid #eed09c;
  border-radius: 999px;
  padding: 1px 7px;
}

.action-buttons {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

/* Executive Answer Banner + Solver Strip */
.exec-banner-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--positive);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 14px;
}

.exec-banner-card.has-breach {
  border-left-color: var(--danger);
}

.exec-banner-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.exec-answer {
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.015em;
  color: var(--ink);
  line-height: 1.3;
}

.exec-detail {
  font-size: 13px;
  color: var(--muted);
  margin-top: 3px;
}

.solver-strip {
  margin-top: 12px;
  padding-top: 11px;
  border-top: 1px solid #ecefec;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.solver-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12.5px;
}

.solver-tag {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: #edf3fb;
  color: var(--focus);
  border: 1px solid #c5daf4;
  border-radius: 4px;
  padding: 2px 7px;
}

.solver-outcome {
  color: var(--muted);
}

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

/* KPI Strip */
.kpi-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.kpi-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 13px 16px;
}

.kpi-card-link {
  cursor: pointer;
  transition: border-color 0.12s ease;
}

.kpi-card-link:hover {
  border-color: var(--focus);
}

.kpi-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
}

.kpi-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.kpi-delta {
  font-size: 11px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 999px;
  white-space: nowrap;
}

.kpi-delta.bad {
  background: var(--danger-soft);
  color: var(--danger);
}

.kpi-delta.ok {
  background: var(--positive-soft);
  color: var(--positive);
}

.kpi-delta.flat {
  background: var(--surface-subtle);
  color: var(--muted);
}

.kpi-num {
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.18;
}

.kpi-num-sm {
  font-size: 18.5px;
}

.kpi-unit {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
}

.kpi-foot {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
  line-height: 1.35;
}

/* Timeline Legend & Toolbar */
.toolbar-controls {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.timeline-legend {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 7px 12px;
  background: var(--surface-subtle);
  border: 1px solid var(--line);
  border-radius: 6px;
  margin-bottom: 10px;
}

.legend-depts {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.legend-dept-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 5px;
  padding: 3px 8px;
  cursor: pointer;
}

.legend-dept-btn:hover {
  background: #e6e8e5;
}

.legend-dept-btn.active {
  background: var(--surface);
  border-color: var(--line-strong);
}

.swatch {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  flex-shrink: 0;
  margin-right: 4px;
  vertical-align: middle;
}

.legend-dept-btn .swatch,
.dept-card-name .swatch {
  margin-right: 0;
}

.legend-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 11.5px;
  color: var(--muted);
  flex-wrap: wrap;
}

.intensity-key,
.conflict-key,
.gate-key {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.intensity-ramp {
  display: inline-flex;
  gap: 2px;
}

.intensity-ramp i {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: #6f4e9c;
}

.conflict-dot {
  display: inline-block;
  width: 12px;
  height: 8px;
  border-radius: 2px;
  background: repeating-linear-gradient(
    -45deg,
    rgba(184, 29, 36, 0.78),
    rgba(184, 29, 36, 0.78) 2px,
    rgba(255, 255, 255, 0.25) 2px,
    rgba(255, 255, 255, 0.25) 4px
  );
  border-top: 2px solid var(--danger);
}

.gate-diamond-key {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--ink);
  transform: rotate(45deg);
}

/* Gantt Board & Sticky 280px Thumbnail Rail */
.gantt-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}

.gantt-board {
  min-width: 960px;
}

.gantt-header {
  display: flex;
  border-bottom: 1px solid var(--line-strong);
  background: var(--surface-subtle);
}

.gantt-left {
  width: 286px;
  flex: 0 0 286px;
  position: sticky;
  left: 0;
  z-index: 20;
  background: var(--surface);
  border-right: 1px solid var(--line);
  padding: 6px 10px;
}

.gantt-header-left {
  background: var(--surface-subtle);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  padding-bottom: 8px;
}

.header-hint {
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
}

.gantt-right {
  flex: 1 1 auto;
  position: relative;
}

.gantt-quarters {
  display: flex;
  border-bottom: 1px solid var(--line);
}

.gantt-q {
  font-size: 11px;
  font-weight: 700;
  color: var(--ink);
  padding: 5px 6px 4px;
  border-left: 1px solid var(--line);
  white-space: nowrap;
}

.gantt-q:first-child {
  border-left: none;
}

.gantt-months {
  display: grid;
  grid-template-columns: repeat(var(--months), minmax(0, 1fr));
  border-bottom: 1px solid #e7eae7;
}

.gantt-m {
  font-size: 10px;
  color: #7c848c;
  text-align: center;
  padding: 2px 0;
  border-left: 1px solid #f0f2f0;
}

.gantt-m.q-start {
  border-left-color: var(--line);
  font-weight: 700;
  color: var(--muted);
}

.gantt-m:first-child {
  border-left: none;
}

.gantt-crunch-strip {
  display: grid;
  grid-template-columns: repeat(var(--months), minmax(0, 1fr));
  height: 13px;
  background: #ffffff;
}

.crunch-cell {
  position: relative;
  border-left: 1px solid #f2f4f2;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 1px 1px 0;
}

.crunch-cell.q-start {
  border-left-color: #e1e5e1;
}

.crunch-cell:first-child {
  border-left: none;
}

.crunch-cell.has-over {
  background: var(--danger-soft);
  cursor: help;
}

.crunch-bar {
  width: 78%;
  background: var(--danger);
  border-radius: 1px 1px 0 0;
}

/* Film Rows */
.gantt-row {
  display: flex;
  border-bottom: 1px solid #eaedea;
}

.gantt-row:last-child {
  border-bottom: none;
}

.gantt-row:hover,
.gantt-row:hover .gantt-left {
  background: #fbfcfb;
}

.gantt-row.is-candidate,
.gantt-row.is-candidate .gantt-left {
  background: #f8faff;
}

.film-meta-cell {
  display: flex;
  align-items: center;
}

.film-rail-layout {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  min-width: 0;
}

.expand-btn {
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  width: 18px;
  height: 22px;
  padding: 0;
  border-radius: 4px;
  font-size: 11px;
  flex-shrink: 0;
}

.expand-btn:hover {
  background: var(--surface-subtle);
  color: var(--ink);
}

.dossier-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
  text-align: left;
  background: transparent;
  border: none;
  padding: 2px 3px;
  border-radius: 5px;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
}

.dossier-trigger:hover {
  background: var(--surface-subtle);
}

.dossier-trigger:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 1px;
}

.rail-thumb {
  width: 28px;
  height: 42px;
  object-fit: cover;
  border-radius: 3px;
  border: 1px solid rgba(23, 24, 25, 0.14);
  flex-shrink: 0;
  display: block;
}

.mini-thumb {
  width: 24px;
  height: 36px;
  object-fit: cover;
  border-radius: 3px;
  border: 1px solid rgba(23, 24, 25, 0.14);
  flex-shrink: 0;
  display: block;
}

.rail-text {
  min-width: 0;
  flex: 1;
}

.rail-title-row {
  display: flex;
  align-items: center;
  gap: 4px;
}

.film-title {
  font-weight: 650;
  font-size: 13px;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rail-sub-row {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  margin-top: 2px;
  font-size: 11px;
  color: var(--muted);
}

.rail-right-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  flex-shrink: 0;
}

.mc-rail-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--surface-subtle);
  color: var(--ink);
  border: 1px solid var(--line);
}

.mc-rail-pill.low {
  background: var(--danger-soft);
  color: var(--danger);
  border-color: #efbfc2;
}

.mc-rail-pill.stale {
  font-weight: 600;
  color: var(--warning);
  background: var(--warning-soft);
  border-color: #eed09c;
}

.candidate-tag {
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 1px 4px;
  border-radius: 3px;
  background: #e8f0fc;
  color: var(--focus);
  border: 1px solid #c3d9f8;
  flex-shrink: 0;
}

.reset-film-btn {
  font-family: inherit;
  font-size: 10.5px;
  font-weight: 600;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--muted);
  border-radius: 4px;
  padding: 1px 5px;
  cursor: pointer;
}

.reset-film-btn:hover {
  color: var(--ink);
  border-color: var(--ink);
}

.delta-pill {
  font-size: 10px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 999px;
  white-space: nowrap;
}

.delta-zero {
  background: var(--surface-subtle);
  color: var(--muted);
}

.delta-late {
  background: var(--danger-soft);
  color: var(--danger);
}

.delta-early,
.delta-new {
  background: #e8f0fc;
  color: var(--focus);
}

.status-pill {
  font-size: 10px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 999px;
  border: 1px solid transparent;
  white-space: nowrap;
}

.status-pill.fits {
  color: var(--positive);
  background: var(--positive-soft);
}

.status-pill.tight {
  color: var(--warning);
  background: var(--warning-soft);
}

.status-pill.over {
  color: var(--danger);
  background: var(--danger-soft);
  border-color: #efbfc2;
}

.status-pill.outside {
  color: var(--muted);
  background: var(--surface-subtle);
  border-color: var(--line-strong);
}

/* Gantt Track */
.gantt-track {
  padding: 6px 0 7px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow: hidden;
}

.gantt-grid-bg {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(var(--months), minmax(0, 1fr));
  pointer-events: none;
}

.grid-col {
  border-left: 1px solid #f2f4f2;
}

.grid-col.q-start {
  border-left-color: #e2e6e2;
}

.grid-col:first-child {
  border-left: none;
}

.film-master-lane {
  position: relative;
  height: 22px;
  z-index: 2;
}

.film-span-bar {
  position: absolute;
  top: 0;
  height: 22px;
  background: #edf0f3;
  border: 1px solid #c6ced6;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 0 7px;
  font-size: 11px;
  font-weight: 600;
  color: #2b3440;
  cursor: grab;
  user-select: none;
  overflow: visible;
  white-space: nowrap;
}

.film-span-bar:hover {
  background: #e2e7ed;
  border-color: #8f9ba8;
}

.film-span-bar:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 1px;
}

.film-span-bar.is-dragging {
  cursor: grabbing;
  border-color: var(--ink);
  box-shadow: 0 4px 12px rgba(23, 24, 25, 0.16);
  z-index: 10;
}

.loaded-spring-cue {
  position: absolute;
  right: -102px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--chrome);
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  pointer-events: none;
  animation: gentleNudge 2.2s ease-in-out infinite;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.18);
}

@keyframes gentleNudge {
  0%, 100% { transform: translate(0, -50%); }
  50% { transform: translate(5px, -50%); }
}

.grip-dots {
  font-size: 10px;
  opacity: 0.55;
  letter-spacing: -1px;
}

.film-span-text {
  overflow: hidden;
  text-overflow: ellipsis;
}

.film-span-peak {
  font-size: 10px;
  opacity: 0.72;
  flex-shrink: 0;
}

/* Phase Lanes */
.phase-lanes {
  display: flex;
  flex-direction: column;
  gap: 3px;
  z-index: 2;
}

.phase-lane {
  position: relative;
  height: 21px;
}

.phase-lane.expanded-lane {
  height: 23px;
}

.lane-tag {
  position: absolute;
  left: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 9.5px;
  font-weight: 700;
  color: #9ba3ab;
  pointer-events: none;
  z-index: 1;
}

.phase-block {
  position: absolute;
  top: 0;
  height: 100%;
  border-radius: 4px;
  border: 1px solid;
  display: flex;
  align-items: center;
  padding: 0 6px;
  font-size: 10.5px;
  font-weight: 700;
  cursor: grab;
  user-select: none;
  overflow: hidden;
  white-space: nowrap;
  z-index: 2;
}

.phase-block:hover {
  filter: brightness(0.95);
  z-index: 5;
}

.phase-block:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 1px;
  z-index: 6;
}

.phase-block.is-dragging {
  cursor: grabbing;
  box-shadow: 0 5px 14px rgba(23, 24, 25, 0.22);
  z-index: 12;
}

.phase-block.clipped-right {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  border-right-style: dashed;
}

.phase-block.clipped-left {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  border-left-style: dashed;
}

.phase-label {
  position: relative;
  z-index: 3;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
}

.phase-intensity-bar {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2.5px;
  opacity: 0.7;
  pointer-events: none;
  z-index: 2;
}

.phase-conflict-slice {
  position: absolute;
  top: 0;
  bottom: 0;
  background: repeating-linear-gradient(
    -45deg,
    rgba(184, 29, 36, 0.34),
    rgba(184, 29, 36, 0.34) 3px,
    rgba(184, 29, 36, 0.08) 3px,
    rgba(184, 29, 36, 0.08) 6px
  );
  border-top: 2.5px solid var(--danger);
  pointer-events: none;
  z-index: 2;
}

.gate-diamond {
  position: absolute;
  right: 4px;
  top: 50%;
  width: 6px;
  height: 6px;
  background: currentColor;
  opacity: 0.72;
  transform: translateY(-50%) rotate(45deg);
  pointer-events: none;
  z-index: 3;
}

.phase-resize-handle {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 8px;
  cursor: ew-resize;
  z-index: 4;
}

.phase-resize-handle::after {
  content: "";
  position: absolute;
  right: 2px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  border-radius: 1px;
  background: currentColor;
  opacity: 0;
  transition: opacity 0.12s ease;
}

.phase-block:hover .phase-resize-handle::after {
  opacity: 0.5;
}

/* Department Strip, Capacity Chart & Pinned Attribution */
.chart-selected-meta {
  font-size: 12.5px;
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.dept-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.dept-card {
  text-align: left;
  font-family: inherit;
  background: var(--surface-subtle);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 9px 11px;
  cursor: pointer;
  transition: border-color 0.12s ease, background 0.12s ease;
}

.dept-card:hover {
  border-color: #9ba29e;
  background: var(--surface);
}

.dept-card.active {
  background: var(--surface);
  border-color: var(--ink);
  box-shadow: 0 0 0 1px var(--ink);
}

.dept-card.is-over:not(.active) {
  border-color: #eab7ba;
  background: #fffafa;
}

.dept-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.dept-card-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dept-card-pct {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

.dept-card.is-over .dept-card-pct {
  color: var(--danger);
}

.dept-meter {
  height: 5px;
  background: #e4e7e4;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 6px;
}

.dept-meter span {
  display: block;
  height: 100%;
  border-radius: 999px;
}

.dept-card-foot {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chart-wrap {
  width: 100%;
}

.chart-wrap canvas {
  width: 100%;
  display: block;
}

.chart-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
}

.pin-panel {
  margin-top: 14px;
  padding: 13px 15px;
  border: 1px solid #c5daf4;
  background: #f7faff;
  border-radius: 7px;
}

.pin-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
  font-size: 13px;
}

.pin-bars {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pin-bar-row {
  display: grid;
  grid-template-columns: 165px 1fr 78px;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
}

.pin-film-link {
  text-align: left;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--focus);
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pin-film-link:hover {
  text-decoration: underline;
}

.pin-bar-track {
  height: 8px;
  background: #e3eaf4;
  border-radius: 999px;
  overflow: hidden;
}

.pin-bar-track span {
  display: block;
  height: 100%;
  border-radius: 999px;
}

.pin-crew-val {
  text-align: right;
  font-weight: 650;
}

.pin-counterfactual {
  margin-top: 11px;
  padding-top: 10px;
  border-top: 1px solid #dbe6f5;
}

.pin-cf-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--focus);
  margin-bottom: 4px;
}

.pin-cf-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 12.5px;
}

/* Direction 3: Risk & Forecast Tab */
.risk-banner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  border-left: 4px solid var(--positive);
}

.risk-banner.is-high {
  border-left-color: var(--danger);
}

.risk-banner.is-med {
  border-left-color: var(--warning);
}

.risk-eyebrow {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 6px;
}

.risk-headline {
  font-size: 18px;
  line-height: 1.35;
  color: var(--ink);
}

.risk-subline {
  margin-top: 5px;
  font-size: 12.5px;
  color: var(--ink);
}

.risk-controls-bar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
  flex-wrap: wrap;
  padding: 11px 18px;
}

.rc-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.heatmap-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.heatmap-table th {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-align: center;
  padding: 6px 4px;
  border-bottom: 1px solid var(--line);
}

.heatmap-table th:first-child {
  text-align: left;
  padding-left: 6px;
}

.heatmap-table td {
  padding: 3px;
  border-bottom: 1px solid #f0f2f0;
}

.hm-dept-cell {
  white-space: nowrap;
  padding-right: 12px !important;
  font-size: 12.5px;
}

.hm-cell {
  width: 100%;
  min-width: 44px;
  height: 30px;
  border: 1px solid transparent;
  border-radius: 5px;
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.08s ease, border-color 0.08s ease;
}

.hm-cell:hover {
  border-color: var(--ink);
}

.hm-cell.focused {
  outline: 2px solid var(--focus);
  outline-offset: 1px;
}

.risk-two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(300px, 1fr);
  gap: 14px;
  margin-bottom: 14px;
}

.risk-two-col > .card {
  margin-bottom: 0;
}

.fan-legend {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 11.5px;
  color: var(--muted);
  margin-bottom: 8px;
}

.fan-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.fl-band-outer {
  width: 14px;
  height: 9px;
  border-radius: 2px;
  opacity: 0.2;
}

.fl-band-inner {
  width: 14px;
  height: 9px;
  border-radius: 2px;
  opacity: 0.42;
}

.fl-line {
  width: 14px;
  height: 3px;
  border-radius: 2px;
}

.fl-sample {
  width: 14px;
  height: 1.5px;
  background: #64748b;
  opacity: 0.55;
}

.fl-cap {
  width: 14px;
  height: 0;
  border-top: 2px dashed #334155;
}

.focus-q-box {
  background: var(--surface-subtle);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px;
  margin-bottom: 14px;
}

.focus-q-box h3 {
  margin-top: 3px;
}

.focus-q-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.fq-num {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.15;
}

.fq-lbl {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}

.tornado-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tornado-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  margin-bottom: 3px;
}

.tornado-rho {
  font-weight: 700;
}

.tornado-rho.pos {
  color: var(--danger);
}

.tornado-rho.neg {
  color: var(--positive);
}

.tornado-bar-bg {
  height: 6px;
  background: #eaedea;
  border-radius: 999px;
  overflow: hidden;
}

.tornado-bar {
  display: block;
  height: 100%;
  border-radius: 999px;
}

.tornado-bar.pos {
  background: var(--danger);
}

.tornado-bar.neg {
  background: var(--positive);
}

.mc-caveat {
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.4;
}

/* Slate Delivery Confidence Strip & 20-Dot Quantile Dot Plots */
.confidence-strip {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.conf-row {
  display: grid;
  grid-template-columns: 230px 96px 1fr;
  align-items: center;
  gap: 14px;
  padding: 9px 12px;
  border: 1px solid #ecefec;
  border-radius: 6px;
  background: var(--surface-subtle);
}

.conf-film-btn {
  display: flex;
  align-items: center;
  gap: 9px;
  background: none;
  border: none;
  padding: 0;
  text-align: left;
  font-family: inherit;
  cursor: pointer;
  color: inherit;
}

.conf-film-btn:hover .conf-film-title {
  color: var(--focus);
  text-decoration: underline;
}

.conf-film-title {
  font-weight: 650;
  font-size: 13px;
}

.conf-film-sub {
  font-size: 11.5px;
  color: var(--muted);
}

.conf-odds {
  text-align: right;
}

.conf-pct {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.1;
}

.conf-freq {
  font-size: 11px;
  color: var(--muted);
}

.qdot-widget {
  margin-top: 10px;
}

.qdot-track {
  position: relative;
  height: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: visible;
}

.qdot-target-line {
  position: absolute;
  top: -3px;
  bottom: -3px;
  width: 2px;
  background: var(--ink);
  z-index: 3;
}

.qdot-target-line span {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
  color: var(--ink);
}

.qdot {
  position: absolute;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.85);
}

.qdot.ontime {
  background: #286447;
}

.qdot.late {
  background: #b81d24;
}

.qdot-axis,
.conf-dates {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 5px;
}

/* Compare View */
.compare-selector-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.compare-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  padding: 5px 12px 5px 6px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}

.compare-chip.selected {
  border-color: var(--ink);
  background: var(--surface-subtle);
}

.slot-dot,
.slot-badge,
.slot-dot-inline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 700;
  border-radius: 50%;
  flex-shrink: 0;
}

.slot-dot {
  width: 20px;
  height: 20px;
  font-size: 11px;
}

.slot-badge {
  width: 24px;
  height: 24px;
  font-size: 12px;
  margin-top: 1px;
}

.slot-dot-inline {
  width: 17px;
  height: 17px;
  font-size: 10px;
  margin-right: 4px;
  vertical-align: text-bottom;
}

.compare-cards-grid {
  display: grid;
  gap: 12px;
}

.compare-cards-grid.cols-1 {
  grid-template-columns: 1fr;
}

.compare-cards-grid.cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.compare-cards-grid.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.compare-card {
  border: 1px solid var(--line);
  border-top: 3px solid var(--slot-color);
  border-radius: 7px;
  padding: 13px;
  background: var(--surface-subtle);
}

.compare-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 11px;
}

.compare-card-title {
  display: flex;
  align-items: flex-start;
  gap: 9px;
}

.compare-card-title p {
  margin: 3px 0 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.35;
}

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

.cm-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 10px;
}

.cm-label {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 3px;
}

.cm-val {
  font-size: 17px;
  font-weight: 700;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 5px;
}

.cm-val-sm {
  font-size: 13.5px;
}

.cm-delta {
  font-size: 10.5px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 999px;
}

.cm-delta.bad {
  background: var(--danger-soft);
  color: var(--danger);
}

.cm-delta.ok {
  background: var(--positive-soft);
  color: var(--positive);
}

.cm-delta.flat {
  background: var(--surface-subtle);
  color: var(--muted);
}

.cm-sub {
  font-size: 11px;
  color: var(--muted);
  margin-top: 3px;
}

/* Diff Tables */
.table-scroll {
  overflow-x: auto;
}

.diff-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.diff-table th,
.diff-table td {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid #ecefec;
  vertical-align: middle;
}

.diff-table th {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--surface-subtle);
}

.diff-show-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  font-size: 13px;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}

.diff-show-btn:hover strong {
  color: var(--focus);
  text-decoration: underline;
}

.diff-cell-stack {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.mini-risk.over {
  font-size: 11.5px;
  color: var(--danger);
  font-weight: 600;
}

.overlay-legend {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 600;
}

.overlay-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.overlay-legend-item i {
  display: inline-block;
  width: 14px;
  height: 3px;
  border-radius: 2px;
}

/* Right-Side Overlay Drawers (Show Dossier & Model Card) */
.drawer-root[hidden] {
  display: none;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(23, 24, 25, 0.38);
  z-index: 800;
}

.drawer-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(520px, 100vw);
  background: var(--surface);
  border-left: 1px solid var(--line);
  box-shadow: var(--shadow-float);
  z-index: 820;
  display: flex;
  flex-direction: column;
}

.drawer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-subtle);
}

.drawer-eyebrow {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 18px 20px 28px;
}

.dossier-hero {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
}

.dossier-poster {
  width: 112px;
  height: 168px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid rgba(23, 24, 25, 0.16);
  flex-shrink: 0;
}

.dossier-hero-info h2 {
  font-size: 20px;
  margin-bottom: 4px;
}

.dossier-meta-line {
  font-size: 12.5px;
  margin-bottom: 3px;
}

.dossier-stat-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 8px 0 10px;
}

.d-chip {
  font-size: 11.5px;
  background: var(--surface-subtle);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 2px 7px;
}

.dossier-delivery-summary {
  font-size: 12.5px;
}

.dossier-section {
  margin-bottom: 18px;
}

.dossier-section h3 {
  margin-bottom: 8px;
  font-size: 13.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.dossier-sec-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dossier-logline {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 6px;
  line-height: 1.45;
}

.dossier-copy {
  font-size: 13px;
  color: #363c42;
  margin: 0 0 8px;
  line-height: 1.55;
}

.dossier-copy code {
  font-size: 12px;
  background: var(--surface-subtle);
  padding: 1px 4px;
  border-radius: 3px;
}

.constraint-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.constraint-row {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 10px;
  font-size: 12.5px;
  line-height: 1.45;
  padding: 7px 9px;
  background: var(--surface-subtle);
  border-radius: 5px;
}

.driver-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 9px;
}

.driver-tag {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink);
  background: #edf0f3;
  border-radius: 999px;
  padding: 2px 9px;
}

.dossier-mc-summary {
  background: var(--surface-subtle);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px;
}

.dossier-mc-big {
  font-size: 24px;
  font-weight: 700;
  margin-right: 6px;
}

.mini-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.mini-table th,
.mini-table td {
  text-align: left;
  padding: 6px 7px;
  border-bottom: 1px solid #ecefec;
}

.mini-table th {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--surface-subtle);
}

.bt-kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.bt-kpi {
  background: var(--surface-subtle);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 9px;
}

.bt-val {
  font-size: 18px;
  font-weight: 700;
}

.bt-lbl {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
  line-height: 1.3;
}

/* Essay & Footer */
.essay {
  font-size: 13.5px;
  line-height: 1.65;
  margin-top: 18px;
}

.essay h3 {
  font-size: 15.5px;
  margin: 0 0 10px;
}

.essay p {
  margin: 0 0 10px;
}

.essay p:last-child {
  margin-bottom: 0;
}

.foot {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.55;
  margin-top: 8px;
}

/* Floating Tooltip */
.floating-tooltip {
  position: fixed;
  z-index: 1000;
  pointer-events: none;
  background: rgba(23, 24, 25, 0.96);
  color: #f4f4f2;
  border-radius: 7px;
  padding: 9px 12px;
  font-size: 12px;
  line-height: 1.4;
  min-width: 195px;
  max-width: 290px;
  box-shadow: var(--shadow-float);
  opacity: 0;
  transform: translateY(3px);
  transition: opacity 0.08s ease;
}

.floating-tooltip.visible {
  opacity: 1;
  transform: translateY(0);
}

.tt-title {
  font-weight: 700;
  margin-bottom: 4px;
  color: #ffffff;
}

.tt-row {
  margin-bottom: 2px;
  color: #dcdfe3;
}

.tt-ok {
  color: #6ee7a8;
  font-weight: 600;
}

.tt-bad {
  color: #fca5a5;
  font-weight: 700;
}

.tt-hint {
  margin-top: 6px;
  font-size: 11px;
  color: #9ba3ab;
}

.tt-divider {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  margin: 6px 0;
}

.tt-contrib {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #e4e7eb;
}

/* Modals (Save/Rename + Briefing Memo) */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(23, 24, 25, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 900;
}

.modal-overlay[hidden] {
  display: none;
}

.modal-box {
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border-radius: 10px;
  border: 1px solid var(--line);
  padding: 20px;
  box-shadow: var(--shadow-float);
}

.modal-box-lg {
  max-width: 680px;
}

.memo-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.memo-pre {
  background: var(--surface-subtle);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 14px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  line-height: 1.55;
  white-space: pre-wrap;
  max-height: 55vh;
  overflow-y: auto;
  margin: 0;
  color: var(--ink);
}

.modal-box h3 {
  margin: 0 0 12px;
  font-size: 16.5px;
}

.field {
  margin-bottom: 12px;
}

.field label {
  display: block;
  font-size: 12px;
  font-weight: 650;
  margin-bottom: 5px;
}

.field input {
  width: 100%;
  font-family: inherit;
  font-size: 13.5px;
  padding: 8px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
}

.field input:focus {
  outline: 2px solid var(--focus);
  outline-offset: -1px;
}

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

/* Toast */
.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 950;
  background: var(--chrome);
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 600;
  padding: 9px 14px;
  border-radius: 7px;
  box-shadow: var(--shadow-float);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.toast.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 1100px) {
  .risk-two-col {
    grid-template-columns: 1fr;
  }
  .kpi-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dept-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .compare-cards-grid.cols-3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .mast-sub,
  .mast-badge {
    display: none;
  }
  .wrap {
    padding: 14px 12px 42px;
  }
  .kpi-strip {
    grid-template-columns: 1fr;
  }
  .dept-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .conf-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .conf-odds {
    text-align: left;
  }
  .compare-cards-grid.cols-2 {
    grid-template-columns: 1fr;
  }
  .pin-bar-row {
    grid-template-columns: 120px 1fr 64px;
  }
}

/* Slice B: executive decisions, money and live planning controls. */
[hidden] { display: none !important; }
.mast-add { background: #f5f5f2; border-color: #f5f5f2; color: #171819; }
.mast-add:hover { background: #dfe3df; color: #171819; }
#assumptions-badge { display: inline-block; padding: 0 5px; margin-left: 3px; background: #414b55; color: #fff; border-radius: 4px; font-size: 10px; }
.exec-money { margin-top: 7px; font-size: 12px; color: var(--ink); }
.eyebrow { display: block; color: var(--muted); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
.release-cadence { padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.cadence-strip { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; }
.cadence-pill { border: 1px solid var(--line); border-radius: 5px; padding: 8px; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.cadence-pill > strong { font-size: 12px; }
.cadence-pill > span { font-size: 10px; color: var(--muted); }
.cadence-pill > small { font-size: 10px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 26px; }
.cadence-pill.dark { border-color: #d6c5a4; background: #fcfaf5; }
.cadence-pill.crowded { border-color: #b4c6d6; background: #eff4f8; }
.carryover-tag { font-size: 9px; padding: 1px 4px; border: 1px solid #bac9cf; border-radius: 3px; color: #465d68; background: #f0f5f5; }
.remove-film-btn { background: transparent; border: 1px solid var(--line); border-radius: 4px; color: var(--danger); font-family: inherit; font-size: 17px; line-height: 1; cursor: pointer; padding: 1px 6px; }
.remove-film-btn:hover { background: var(--danger-soft); }
.hiring-chart-controls, .hiring-costs { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 12px; }
.hiring-chart-controls { padding: 9px 0; }
.hiring-legend { color: #1d7a5f; font-weight: 600; }
.hiring-verdict { border-top: 1px solid var(--line); padding: 12px 0 4px; font-size: 12px; }
.hiring-verdict > strong { margin-right: 8px; }
.hiring-costs { margin-top: 8px; }
.hiring-costs strong { margin-left: 4px; }
.score-summary { display: grid; grid-template-columns: .65fr 1fr 1.8fr 1fr; gap: 18px; align-items: start; }
.score-summary > div:not(.score-health) > strong, .score-summary > div > span { display: block; }
.score-summary p { font-size: 12px; margin: 6px 0 0; }
.score-health { display: flex; gap: 12px; align-items: center; }
.score-health strong, .score-health small { display: block; }
.score-health small { color: var(--muted); font-size: 10px; }
.score-grade { font-size: 48px; line-height: 1; font-weight: 750; }
.score-number { font-size: 27px; letter-spacing: -.04em; }
.score-spend > span:last-child, .score-cadence > span:last-child { font-size: 11px; }
.money-chips { grid-column: 1 / -1; display: flex; gap: 6px 16px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 10px; font-size: 11px; }
.money-chips small { width: 100%; color: var(--muted); }
.feasibility-pill { display: inline-block; color: #445764; background: #eef2f3; border: 1px solid #d0d9dd; font-size: 10px; font-weight: 650; border-radius: 4px; white-space: nowrap; padding: 2px 5px; }
.decision-frontier { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.move-card { display: flex; flex-direction: column; padding: 16px; }
.move-heading { display: flex; align-items: start; justify-content: space-between; gap: 10px; }
.move-heading h3 { margin: 0; font-size: 14px; }
.move-card p { font-size: 11px; color: var(--muted); margin: 6px 0 12px; }
.move-card > button { align-self: start; margin-top: auto; }
.move-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0 8px; }
.move-metrics dt { font-size: 10px; color: var(--muted); }
.move-metrics dd { font-size: 16px; font-weight: 650; margin: 0; }
.move-metrics > div:nth-child(n+3) dd { font-size: 12px; }
.table-scroll { max-width: 100%; overflow-x: auto; }
.score-risk .section-head { margin-bottom: 8px; }
.score-show { display: flex; align-items: center; gap: 8px; font: inherit; text-align: left; border: 0; background: transparent; color: var(--ink); cursor: pointer; padding: 0; }
.score-show:hover strong { text-decoration: underline; color: var(--focus); }
.score-show img { width: 24px; height: 36px; object-fit: cover; border-radius: 2px; }
.score-risk td small { display: block; color: var(--muted); font-size: 10px; }
.score-risk .mini-table td { padding: 5px 8px; }
.greenlight-box { width: min(1080px, calc(100vw - 32px)); max-width: 1080px; max-height: calc(100dvh - 40px); overflow: auto; }
.greenlight-tabs { margin-bottom: 18px; }
.archetype-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 22px; }
.archetype-card { background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 5px; padding: 12px; cursor: pointer; text-align: left; font: inherit; display: flex; flex-direction: column; gap: 4px; align-items: start; }
.archetype-card.selected { border-color: #315f91; box-shadow: inset 0 0 0 1px #315f91; background: #f5f8fb; }
.archetype-card img { object-fit: cover; border-radius: 3px; margin-bottom: 5px; }
.archetype-card > span { font-size: 11px; }
.archetype-card small { font-size: 10px; color: var(--muted); }
.archetype-stats { margin-top: auto; padding-top: 8px; font-weight: 650; }
.slot-strip { display: grid; grid-template-columns: repeat(13, minmax(0, 1fr)); gap: 5px; }
.slot-month { font: inherit; font-size: 10px; padding: 10px 2px; border: 1px solid transparent; border-radius: 4px; cursor: pointer; }
.slot-month.clean { background: #edf6f0; color: #225840; border-color: #bed9c8; }
.slot-month.collision { background: #fff4df; color: #78500f; border-color: #dfcb9f; }
.slot-month.heavy { background: #fbecee; color: #b81d24; border-color: #d6a0a4; }
.slot-month[aria-pressed="true"] { outline: 2px solid #315f91; outline-offset: 1px; }
.slot-legend { font-size: 10px; color: var(--muted); }
.slot-detail { display: flex; gap: 10px 24px; flex-wrap: wrap; padding: 18px 0 0; font-size: 12px; }
.slot-detail small { width: 100%; color: var(--muted); }
.custom-film-form { max-width: 640px; margin: 0 auto; padding: 10px 0; }
.field select, .rc-group input, .rc-group select { font: inherit; color: var(--ink); background: white; border: 1px solid var(--line-strong); border-radius: 4px; padding: 7px; }
.custom-film-form .field { display: flex; flex-direction: column; gap: 6px; }
.custom-film-form input[type="range"] { padding: 0; width: 100%; accent-color: #315f91; }
.assumptions-panel { width: min(560px, 100vw); animation: drawer-enter .16s ease-out; }
.assumptions-panel h2 { margin: 0; font-size: 18px; }
.assumptions-panel h3 { margin: 24px 0 10px; }
.assumptions-panel h3:first-of-type { margin-top: 14px; }
.assumptions-panel #override-count { color: var(--muted); font-size: 11px; }
.assumptions-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; }
.assumptions-grid .field { display: flex; flex-direction: column; gap: 4px; margin: 0; font-size: 11px; }
.assumptions-wide { grid-column: 1 / -1; }
.assumptions-table { font-size: 10px; }
.assumptions-table th { white-space: normal; }
.assumptions-table input { width: 100%; min-width: 57px; padding: 6px 3px; font: inherit; border: 1px solid var(--line-strong); border-radius: 3px; background: white; }
.assumptions-table td, .assumptions-table th { padding: 6px 3px; }
.assumptions-table input:invalid, .assumptions-grid input:invalid { border-color: var(--warning); }
.assumptions-reset { padding-top: 24px; }
.risk-controls-bar { flex-wrap: wrap; }
.rc-group input { width: 116px; }
input[type="checkbox"] { accent-color: #315f91; }
.delta-late { background: var(--warning-soft); color: var(--warning); }
@keyframes drawer-enter { from { transform: translateX(24px); opacity: .7; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .assumptions-panel { animation: none; } }
@media (max-width: 1150px) { .mast-sub { display: none; } .cadence-strip { grid-template-columns: repeat(6, minmax(0, 1fr)); } .score-summary { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) { .masthead-inner { padding: 0 12px; gap: 12px; } .mast-actions { overflow-x: auto; flex-shrink: 1; min-width: 0; } .btn-mast { white-space: nowrap; } .mast-brand { flex-shrink: 0; } .decision-frontier { grid-template-columns: 1fr; } .archetype-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .slot-strip { grid-template-columns: repeat(5, minmax(0, 1fr)); } .cadence-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); } .greenlight-box { padding: 16px; } }

.tornado-rho.pos { color: #315f91; }
.tornado-bar.pos { background: #315f91; }
.score-risk .table-scroll { max-height: 250px; overflow-y: auto; }
.score-risk thead { position: sticky; top: 0; background: white; }


/* ==========================================================================
   Light Pro Studio SPA Workbench (Synthesized 4-Model Architecture)
   ========================================================================== */

body.workbench-body {
  background: var(--surface);
  color: var(--ink);
  overflow-x: hidden;
}

.app-shell {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--surface);
}

/* On desktop Slate tab: fixed-frame viewport SPA so Track 1-3 + Inspector sit above the fold */
@media (min-width: 1024px) {
  body.mode-slate {
    overflow: hidden;
  }
  body.mode-slate .app-shell {
    height: 100dvh;
    overflow: hidden;
  }
  body.mode-slate .wb-main {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  body.mode-slate .slate-pane {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
}

.wb-main {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

/* 52px Light Studio Global Header */
.wb-header {
  height: 52px;
  flex-shrink: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 16px;
  position: sticky;
  top: 0;
  z-index: 450;
}

.wb-header-left,
.wb-header-center,
.wb-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.wb-header-left {
  flex: 1 1 auto;
}

.wb-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding-right: 10px;
  border-right: 1px solid var(--line);
  flex-shrink: 0;
}

.wb-brand-mark {
  width: 4px;
  height: 22px;
  border-radius: 1px;
  background: var(--brand);
}

.wb-brand-title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
  white-space: nowrap;
}

/* Dropdown / Popover Menus */
.wb-menu-wrap {
  position: relative;
}

.wb-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 10px;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 5px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.1s ease, border-color 0.1s ease;
}

.wb-trigger:hover {
  background: var(--surface-subtle);
  border-color: var(--line-strong);
}

.wb-trigger.wb-trigger-ghost {
  border-color: transparent;
  background: transparent;
}

.wb-trigger.wb-trigger-ghost:hover {
  background: var(--surface-subtle);
  border-color: var(--line);
}

.wb-trigger.wb-trigger-dark {
  background: var(--ink);
  border-color: var(--ink);
  color: #ffffff;
}

.wb-trigger.wb-trigger-dark:hover {
  background: #2c3035;
  border-color: #2c3035;
}

.wb-trigger-icon {
  width: 32px;
  padding: 0;
  justify-content: center;
  border-radius: 999px;
  font-weight: 700;
}

.wb-caret {
  font-size: 10px;
  color: var(--muted);
  margin-left: 1px;
}

.wb-trigger-dark .wb-caret {
  color: rgba(255, 255, 255, 0.72);
}

.wb-scenario-name {
  max-width: 195px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wb-dirty-pill {
  font-size: 10px;
  font-weight: 700;
  color: var(--warning);
  background: var(--warning-soft);
  border: 1px solid #e7c994;
  border-radius: 3px;
  padding: 0 5px;
  line-height: 16px;
}

.wb-menu {
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  min-width: 268px;
  max-width: 340px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  box-shadow: var(--shadow-float);
  padding: 5px;
  z-index: 600;
}

.wb-menu-right {
  left: auto;
  right: 0;
  min-width: 220px;
}

.wb-menu-section-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  padding: 6px 8px 4px;
}

.wb-menu-item {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  padding: 7px 9px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--ink);
  font-family: inherit;
  font-size: 12.5px;
  text-align: left;
  cursor: pointer;
}

.wb-menu-item:hover {
  background: var(--surface-subtle);
}

.wb-menu-item.active {
  background: #eff4fb;
}

.wb-menu-item-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.wb-menu-item strong {
  font-weight: 600;
  font-size: 12.5px;
}

.wb-menu-item small {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.3;
}

.wb-menu-item.danger strong {
  color: var(--danger);
}

.wb-menu-divider {
  height: 1px;
  background: var(--line);
  margin: 5px 4px;
}

/* Header Underline Tabs */
.wb-tabs {
  display: flex;
  align-items: stretch;
  gap: 4px;
  height: 52px;
}

.wb-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 11px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 550;
  color: var(--muted);
  background: transparent;
  border: 0;
  cursor: pointer;
  white-space: nowrap;
}

.wb-tab:hover {
  color: var(--ink);
}

.wb-tab.active {
  color: var(--ink);
  font-weight: 650;
}

.wb-tab.active::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 0;
  height: 2px;
  background: var(--ink);
}

.wb-tab-meta {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}

.wb-tab-risk-badge {
  font-size: 10.5px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 3px;
  background: var(--surface-subtle);
  color: var(--ink);
}

.wb-tab-risk-badge.high {
  background: var(--danger-soft);
  color: var(--danger);
}

.wb-override-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--ink);
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
}

/* 44px Borderless 5-Cell Telemetry Strip */
.telemetry-strip {
  min-height: 44px;
  flex-shrink: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1.25fr 1.05fr 0.95fr 1.35fr auto;
  align-items: stretch;
  padding: 0 16px;
}

.tele-cell {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px 6px 0;
  margin-right: 14px;
  border-right: 1px solid var(--line);
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  font-size: 12.5px;
}

.tele-cell:last-child {
  border-right: 0;
  margin-right: 0;
  padding-right: 0;
  justify-content: flex-end;
}

.tele-label {
  color: var(--muted);
  font-weight: 500;
  font-size: 12px;
  flex-shrink: 0;
}

.tele-val {
  font-weight: 700;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
}

.tele-sub {
  font-size: 11.5px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
}

.tele-link {
  border: 0;
  background: transparent;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  text-align: left;
}

.tele-link:hover .tele-val {
  text-decoration: underline;
}

.tele-inspect-btn {
  height: 29px;
  padding: 0 11px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 650;
  border-radius: 5px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.tele-inspect-btn:hover {
  background: var(--surface-subtle);
}

.tele-inspect-btn.active {
  background: var(--ink);
  border-color: var(--ink);
  color: #ffffff;
}

.tele-inspect-btn.has-alert {
  border-color: #d99b9e;
  color: var(--danger);
  background: var(--danger-soft);
}

.tele-inspect-btn.has-alert.active {
  background: var(--danger);
  border-color: var(--danger);
  color: #ffffff;
}

/* 2-Row Command Bar (Row 1 Schedule 38px + Row 2 Analysis 38px) */
.command-bar {
  flex-shrink: 0;
  background: var(--surface-subtle);
  border-bottom: 1px solid var(--line);
}

.cmd-row {
  min-height: 38px;
  padding: 4px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.cmd-row + .cmd-row {
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.cmd-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.cmd-slate-count {
  font-size: 12px;
  color: var(--muted);
  padding-right: 10px;
  border-right: 1px solid var(--line);
}

.cmd-row-label {
  font-size: 11.5px;
  font-weight: 650;
  color: var(--muted);
  margin-right: 2px;
}

.dept-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 27px;
  padding: 0 9px;
  border-radius: 5px;
  border: 1px solid var(--line);
  background: var(--surface-subtle);
  color: var(--ink);
  font-family: inherit;
  font-size: 12px;
  font-weight: 550;
  cursor: pointer;
  transition: background 0.1s ease, border-color 0.1s ease;
}

.dept-pill:hover {
  border-color: var(--line-strong);
  background: #eceff2;
}

.dept-pill.active {
  background: var(--surface);
  border-color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
  font-weight: 650;
}

.dept-pill.is-over {
  background: var(--danger-soft);
  border-color: #e4b5b8;
}

.dept-pill.is-over.active {
  border-color: var(--danger);
  box-shadow: inset 0 0 0 1px var(--danger);
}

.dept-pill-swatch {
  width: 9px;
  height: 9px;
  border-radius: 2px;
  flex-shrink: 0;
}

.dept-pill-pct {
  font-weight: 700;
  font-size: 11.5px;
  color: var(--muted);
}

.dept-pill.is-over .dept-pill-pct {
  color: var(--danger);
}

.cmd-check {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 550;
  color: var(--ink);
  cursor: pointer;
  user-select: none;
}

.cmd-check input {
  margin: 0;
}

.cmd-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 27px;
  padding: 0 8px;
  border-radius: 5px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.cmd-icon-btn:hover:not(:disabled) {
  background: var(--surface-subtle);
  border-color: var(--line-strong);
}

.cmd-icon-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* Workbench Stage: Left Synchronized 3-Track Canvas + Optional 320px Right Inspector */
.workbench-stage {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  overflow: hidden;
  background: var(--surface);
}

.canvas-column {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

.timeline-track-shell {
  flex: 1 1 auto;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-bottom: 1px solid var(--line-strong);
  position: relative;
}

.capacity-track-shell {
  flex: 0 0 182px;
  height: 182px;
  max-height: 182px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  position: relative;
  transition: flex-basis 0.14s ease, height 0.14s ease;
}

.capacity-track-shell.is-collapsed {
  flex: 0 0 42px;
  height: 42px;
  max-height: 42px;
}

/* Synchronized 3-Track Geometry */
.wb-gantt-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  position: relative;
}

.wb-gantt-board {
  min-width: calc(var(--rail-w) + var(--months) * 22px);
  width: 100%;
  position: relative;
}

.wb-sticky-head {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--surface);
  border-bottom: 1px solid var(--line-strong);
}

.wb-axis-row {
  display: flex;
  align-items: stretch;
}

.wb-left-rail {
  width: var(--rail-w);
  flex: 0 0 var(--rail-w);
  position: sticky;
  left: 0;
  z-index: 25;
  background: var(--surface);
  border-right: 1px solid var(--line);
}

.wb-sticky-head .wb-left-rail {
  z-index: 35;
  background: var(--surface-subtle);
}

.wb-track-area {
  flex: 1 1 auto;
  min-width: 0;
  position: relative;
}

/* Track 1: Ruler + Integrated Quarterly Release Cadence + 4px Crunch Strip */
.wb-ruler-left {
  padding: 5px 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
}

.wb-ruler-left-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 650;
  color: var(--ink);
  font-size: 11.5px;
}

.wb-ruler-left-sub {
  font-size: 10.5px;
  color: var(--muted);
}

.wb-quarters-row {
  display: flex;
  height: 22px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-subtle);
}

.wb-q-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink);
  border-right: 1px solid var(--line);
  letter-spacing: 0.01em;
}

.wb-q-cell:last-child {
  border-right: 0;
}

.wb-q-cell.has-breach {
  background: var(--danger-soft);
  color: var(--danger);
}

.wb-months-row {
  display: grid;
  grid-template-columns: repeat(var(--months), minmax(0, 1fr));
  height: 18px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.wb-m-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
  border-left: 1px solid #f0f2f4;
  cursor: pointer;
}

.wb-m-cell.q-start {
  border-left: 1px solid var(--line);
}

.wb-m-cell:hover {
  background: #edf2f7;
  color: var(--ink);
}

.wb-m-cell.is-pinned {
  background: #e6effa;
  color: var(--focus);
  font-weight: 750;
}

.wb-crunch-strip {
  display: grid;
  grid-template-columns: repeat(var(--months), minmax(0, 1fr));
  height: 5px;
  background: var(--surface-subtle);
  border-bottom: 1px solid var(--line);
}

.wb-crunch-cell {
  position: relative;
  cursor: pointer;
}

.wb-crunch-cell.has-over {
  background: var(--danger);
}

/* Integrated Quarterly Cadence Band inside Track 1 */
.wb-cadence-row {
  display: flex;
  align-items: stretch;
  min-height: 26px;
  background: var(--surface);
}

.wb-cadence-rail {
  padding: 4px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 650;
  color: var(--ink);
  background: var(--surface-subtle);
}

.wb-cadence-grid {
  flex: 1 1 auto;
  display: flex;
}

.wb-cadence-cell {
  border: 0;
  border-right: 1px solid var(--line);
  background: var(--surface);
  padding: 2px 4px;
  font-family: inherit;
  font-size: 10px;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 0;
  overflow: hidden;
  transition: background 0.1s ease;
}

.wb-cadence-cell:last-child {
  border-right: 0;
}

.wb-cadence-cell:hover {
  background: #eef2f6;
}

.wb-cadence-cell.healthy {
  background: #fafbfc;
}

.wb-cadence-cell.dark {
  background: repeating-linear-gradient(
    -45deg,
    #fff8eb,
    #fff8eb 4px,
    #fae9c8 4px,
    #fae9c8 8px
  );
  color: var(--warning);
  font-weight: 650;
}

.wb-cadence-cell.crowded {
  background: #fef3dc;
  color: var(--warning);
  font-weight: 650;
}

.wb-cadence-cell.is-selected {
  outline: 2px solid var(--focus);
  outline-offset: -2px;
}

.cadence-pips {
  display: inline-flex;
  gap: 2px;
  align-items: center;
}

.cadence-pip {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #475569;
  flex-shrink: 0;
}

.cadence-pip.shifted {
  background: var(--focus);
}

.cadence-cell-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Track 2: Film Rows inside Workbench */
.wb-gantt-row {
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  transition: background 0.1s ease;
}

.wb-gantt-row:hover {
  background: #fafbfc;
}

.wb-gantt-row.is-selected-film {
  background: #f3f7fc;
}

.wb-gantt-row.is-selected-film .wb-left-rail {
  background: #f3f7fc;
}

.wb-film-rail {
  padding: 5px 8px 5px 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.wb-rail-poster {
  width: 24px;
  height: 36px;
  object-fit: cover;
  border-radius: 3px;
  flex-shrink: 0;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.wb-rail-main {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 0;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: inherit;
  color: inherit;
}

.wb-rail-main:hover .wb-film-title {
  color: var(--focus);
}

.wb-film-title {
  font-size: 12.5px;
  font-weight: 650;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.wb-film-sub {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--muted);
  margin-top: 1px;
  white-space: nowrap;
}

.wb-delta-tag {
  font-size: 10px;
  font-weight: 700;
  padding: 0 4px;
  border-radius: 3px;
}

.wb-delta-tag.late {
  background: var(--warning-soft);
  color: var(--warning);
}

.wb-delta-tag.early {
  background: var(--positive-soft);
  color: var(--positive);
}

.wb-delta-tag.added {
  background: #e7f0fb;
  color: var(--focus);
}

.wb-rail-end {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.wb-odds-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--positive-soft);
  color: var(--positive);
  min-width: 38px;
  text-align: center;
}

.wb-odds-pill.med {
  background: var(--warning-soft);
  color: var(--warning);
}

.wb-odds-pill.low {
  background: var(--danger-soft);
  color: var(--danger);
}

.wb-odds-pill.stale {
  background: var(--surface-subtle);
  color: var(--muted);
}

.wb-row-more {
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.wb-row-more:hover {
  background: var(--surface-subtle);
  color: var(--ink);
}

/* Gantt Track & Ghost Preview Overlay */
.wb-gantt-track {
  padding: 4px 0 5px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.wb-gantt-row .film-master-lane {
  height: 17px;
  margin-bottom: 2px;
}

.wb-gantt-row .film-span-bar {
  height: 15px;
  top: 1px;
  font-size: 10px;
}

.wb-gantt-row .phase-lane.compact-lane {
  height: 22px;
}

.wb-gantt-row .phase-lane.expanded-lane {
  height: 24px;
}

.wb-gantt-row .phase-block {
  height: 18px;
  top: 2px;
  border-radius: 3px;
  font-size: 10.5px;
}

.wb-gantt-row .phase-block.is-selected-phase {
  outline: 2px solid var(--focus);
  outline-offset: 1px;
  z-index: 8;
}

/* Ghost Preview Bar (hover Move in Decision / Month Inspector) */
.ghost-span-bar {
  position: absolute;
  top: 2px;
  bottom: 2px;
  border: 2px dashed var(--focus);
  background: rgba(36, 93, 171, 0.12);
  border-radius: 4px;
  pointer-events: none;
  z-index: 12;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 6px;
}

.ghost-span-tag {
  font-size: 10px;
  font-weight: 700;
  color: var(--focus);
  background: rgba(255, 255, 255, 0.92);
  padding: 0 4px;
  border-radius: 2px;
  white-space: nowrap;
}

/* Bottom Dashed + Greenlight another show (G) Row */
.wb-greenlight-row {
  display: flex;
  align-items: stretch;
  border-bottom: 1px dashed var(--line-strong);
  background: #fafbfc;
}

.wb-greenlight-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}

.wb-greenlight-btn:hover {
  color: var(--ink);
  background: #eef2f6;
}

.wb-kbd {
  font-size: 10px;
  font-weight: 700;
  padding: 1px 5px;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  background: var(--surface);
  color: var(--muted);
}

/* Unified Vertical Hover Crosshair across Track 1, 2, 3 */
.wb-crosshair {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(184, 29, 36, 0.55);
  pointer-events: none;
  z-index: 40;
  display: none;
}

.wb-crosshair.visible {
  display: block;
}

/* Track 3: Synchronized Demand + Hiring Chart Dock */
.wb-chart-row {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: stretch;
  overflow: hidden;
}

.wb-chart-rail {
  width: var(--rail-w);
  flex: 0 0 var(--rail-w);
  border-right: 1px solid var(--line);
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--surface-subtle);
  overflow: hidden;
}

.capacity-track-shell.is-collapsed .wb-chart-rail {
  flex-direction: row;
  align-items: center;
  padding: 4px 12px;
}

.wb-chart-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.wb-chart-collapse-btn {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  border-radius: 4px;
  font-size: 10.5px;
  font-weight: 600;
  padding: 1px 6px;
  cursor: pointer;
}

.wb-chart-collapse-btn:hover {
  color: var(--ink);
  border-color: var(--line-strong);
}

.wb-chart-legend {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 11px;
  color: var(--muted);
  margin: 4px 0;
}

.wb-chart-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.wb-legend-box {
  width: 9px;
  height: 9px;
  border-radius: 2px;
  flex-shrink: 0;
}

.wb-legend-line {
  width: 12px;
  height: 2px;
  flex-shrink: 0;
}

.wb-legend-dash {
  width: 12px;
  border-top: 1.5px dashed #334155;
  flex-shrink: 0;
}

.wb-chart-verdict {
  font-size: 10.5px;
  line-height: 1.35;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 5px;
}

.wb-chart-scroll {
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  position: relative;
}

.wb-chart-canvas-wrap {
  min-width: calc(var(--months) * 22px);
  width: 100%;
  height: 100%;
  position: relative;
}

.wb-chart-canvas-wrap canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

/* 320px Default-Closed Contextual Right Inspector Dock */
.inspector-dock {
  width: 320px;
  flex: 0 0 320px;
  border-left: 1px solid var(--line-strong);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.insp-head {
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-shrink: 0;
}

.insp-head-title {
  min-width: 0;
}

.insp-eyebrow {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  display: block;
}

.insp-head h3 {
  font-size: 13.5px;
  font-weight: 700;
  margin: 1px 0 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.insp-mode-tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  padding: 0 10px;
  gap: 2px;
  flex-shrink: 0;
}

.insp-mode-tab {
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 7px 7px;
  cursor: pointer;
}

.insp-mode-tab.active {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.insp-body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 12px 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.insp-block {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 11px;
  background: var(--surface);
}

.insp-block.is-hoverable:hover {
  border-color: var(--focus);
  background: #f7faff;
}

.insp-block-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.insp-block-head strong {
  font-size: 12.5px;
}

.insp-kv {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin: 6px 0;
  font-size: 11.5px;
}

.insp-kv span {
  display: block;
  font-size: 10px;
  color: var(--muted);
}

.insp-kv strong {
  font-size: 13px;
}

.insp-note {
  font-size: 11.5px;
  color: var(--muted);
  margin: 4px 0 8px;
  line-height: 1.4;
}

.insp-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.insp-field {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}

.insp-field.full {
  grid-column: 1 / -1;
}

.insp-field input,
.insp-field select {
  font-family: inherit;
  font-size: 12.5px;
  padding: 6px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  color: var(--ink);
  background: var(--surface);
}

.insp-phase-row {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface);
  padding: 6px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-family: inherit;
  font-size: 11.5px;
  cursor: pointer;
  text-align: left;
  margin-bottom: 5px;
}

.insp-phase-row:hover {
  border-color: var(--focus);
  background: #f5f9ff;
}

/* Scrollable Light Studio Report Panes (Scorecard, Risk, Compare) */
.report-pane {
  flex: 1 1 auto;
  overflow-y: auto;
  background: var(--canvas);
  padding: 20px 24px 48px;
}

.report-pane > * {
  max-width: 1320px;
  margin-left: auto;
  margin-right: auto;
}

.money-bridge-item {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  padding: 3px 8px;
  background: var(--surface-subtle);
  border: 1px solid var(--line);
  border-radius: 4px;
}

.money-bridge-sep {
  background: #eff4fb;
  border-color: #c5d6eb;
}

.mb-sub {
  font-style: normal;
  font-size: 10px;
  color: var(--muted);
}

.score-footer-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 4px 0;
  font-size: 12px;
}

.essay-in-drawer {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin-top: 14px;
}

.essay-foot-note {
  font-size: 11.5px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 10px;
  margin-top: 12px;
}

/* Mobile Pocket Briefing (< 768px) */
.mobile-briefing {
  display: none;
}

@media (max-width: 1023px) {
  .workbench-stage {
    flex-direction: column;
    overflow: visible;
  }
  .inspector-dock {
    width: 100%;
    flex: 0 0 auto;
    border-left: 0;
    border-top: 1px solid var(--line-strong);
    max-height: 440px;
  }
  .telemetry-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 6px 12px;
  }
  .tele-cell {
    border-right: 0;
    padding: 4px 0;
    margin-right: 0;
  }
}

@media (max-width: 767px) {
  .wb-header {
    height: auto;
    flex-wrap: wrap;
    padding: 8px 12px;
    gap: 6px;
  }
  .wb-header-left {
    width: 100%;
    flex-wrap: wrap;
    gap: 6px;
  }
  .wb-header-right {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 6px;
  }
  .wb-brand {
    border-right: 0;
    padding-right: 4px;
  }
  .wb-scenario-name {
    max-width: 130px;
  }
  .wb-tabs {
    height: 36px;
    order: 3;
    width: 100%;
    overflow-x: auto;
    border-top: 1px solid var(--line);
  }
  .telemetry-strip,
  .command-bar,
  .workbench-stage {
    display: none;
  }
  .mobile-briefing {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 12px;
    background: var(--canvas);
    min-height: calc(100dvh - 96px);
  }
  .mob-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px;
  }
  .mob-verdict-title {
    font-size: 16px;
    font-weight: 700;
    margin: 4px 0 6px;
  }
  .mob-kpi-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 10px;
  }
  .mob-kpi {
    background: var(--surface-subtle);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 8px 10px;
  }
  .mob-kpi span {
    display: block;
    font-size: 10.5px;
    color: var(--muted);
  }
  .mob-kpi strong {
    font-size: 14px;
  }
  .mob-film-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 9px 0;
    border-bottom: 1px solid var(--line);
  }
  .mob-film-row:last-child {
    border-bottom: 0;
  }
  .mob-film-info {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
  }
  .mob-film-info img {
    width: 24px;
    height: 36px;
    object-fit: cover;
    border-radius: 3px;
  }
  .mob-nudge {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
  }
  .mob-spark {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: end;
    gap: 3px;
    height: 56px;
    margin-top: 8px;
  }
  .mob-spark-bar {
    border-radius: 2px 2px 0 0;
    background: #635399;
    min-height: 4px;
  }
  .mob-spark-bar.over {
    background: var(--danger);
  }
}


/* UAT Hardening: Anchors, Pinning, Shared Report Context, Finance Breakdown, Discoverable Resize */
.warn-txt { color: var(--warning); }

.wb-anchor-tag {
  font-size: 9.5px;
  font-weight: 700;
  color: var(--warning);
  background: var(--warning-soft);
  border: 1px solid #e4c385;
  border-radius: 3px;
  padding: 0 4px;
  white-space: nowrap;
}

.wb-pin-tag {
  font-size: 9.5px;
  font-weight: 700;
  color: var(--focus);
  background: #e9f1fc;
  border: 1px solid #bdd4f1;
  border-radius: 3px;
  padding: 0 4px;
}

.wb-pin-chip {
  font-family: inherit;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--focus);
  background: #eff5fd;
  border: 1px solid #bfd4ef;
  border-radius: 999px;
  padding: 1px 7px;
  cursor: pointer;
}

.wb-pin-chip:hover {
  background: #dceafa;
}

.insp-pinned-row {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: 6px;
  font-size: 10.5px;
}

.insp-alert-block {
  border-color: #e4c385 !important;
  background: #fffaf0 !important;
}

.insp-compact {
  padding: 8px 10px;
}

.insp-body {
  gap: 8px;
}

.report-context-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 7px 12px;
  margin-bottom: 14px;
  font-size: 12px;
}

.rcs-left,
.rcs-right {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.rcs-sep {
  color: var(--line-strong);
}

.rcs-link {
  border: 0;
  background: transparent;
  padding: 0;
  font: inherit;
  font-weight: 600;
  color: var(--focus);
  cursor: pointer;
  text-decoration: underline;
}

.finance-two-col {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 16px;
}

@media (max-width: 1024px) {
  .finance-two-col {
    grid-template-columns: 1fr;
  }
}

.slot-month.is-best-slot {
  position: relative;
  font-weight: 700;
}

.best-dot {
  margin-left: 2px;
  font-size: 9px;
  color: var(--focus);
}

/* Discoverable 12px right-edge phase resize handle with visible hover grip ticks */
.phase-block .phase-resize-handle {
  width: 12px;
  right: -2px;
}

.phase-block:hover .phase-resize-handle::after {
  content: "";
  position: absolute;
  right: 4px;
  top: 4px;
  bottom: 4px;
  width: 3px;
  border-left: 1px solid rgba(255, 255, 255, 0.85);
  border-right: 1px solid rgba(24, 26, 28, 0.45);
}
