/* Executive Product & R&D Roadmap — compact meeting view */

:root {
  --font-stack: "Segoe UI", "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --color-navy: #1e3a5f;
  --color-brand-navy: #0b1f3a;
  --color-brand-orange: #f15a22;
  --color-project: #c2410c;
  --color-project-soft: #fff7ed;
  --color-project-text: #7c2d12;
  --color-rd: #0f766e;
  --color-rd-text: #115e59;
  --color-rd-muted: #3f6f6a;
  --color-rd-soft: #f0fdfa;
  --color-rd-border: #5eead4;
  --color-rd-accent: #0d9488;
  --color-bg: #f6f8fb;
  --color-surface: #ffffff;
  --color-lane-alt: #f2f5f9;
  --color-text: #16324f;
  --color-muted: #6b7280;
  --color-border: #e5eaf1;
  --color-month-divider: #cbd5e1;
  --color-week-divider: #e5eaf1;
  --color-today: #d94f3d;

  --project-col-width: 140px;
  /* Keep just enough inset so end milestone cards are not clipped */
  --timeline-edge-pad: 56px;
  --month-count: 9;
  --month-min-width: 112px;
  --month-header-height: 78px;
  --year-band-height: 26px;
  --month-row-height: 48px;
  --line-thickness: 4px;
  --pin-size: 9px;
  --card-width: 118px;
  --rd-label-width: 128px;
  --level-step: 42px;
  --connector-base: 4px;

  --shadow-sm: 0 1px 3px rgba(23, 54, 93, 0.07);
  --shadow-card: 0 1px 4px rgba(23, 54, 93, 0.09);
  --shadow-header: 0 2px 6px rgba(23, 54, 93, 0.08);
  --radius: 8px;
  --radius-sm: 6px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  font-family: var(--font-stack);
  font-size: 14px;
  color: var(--color-text);
  background: var(--color-surface);
  -webkit-font-smoothing: antialiased;
}

body {
  overflow: hidden;
  overflow-x: hidden;
}

.dashboard {
  display: flex;
  flex-direction: column;
  height: 100vh;
  width: 100%;
  max-width: none !important;
  margin: 0;
  padding: 6px 8px 4px;
  gap: 6px;
  background: var(--color-surface);
  box-sizing: border-box;
}

/* ── Header ── */
.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-shrink: 0;
  height: 108px;
  min-height: 108px;
  padding: 0 28px;
  margin: -6px -8px 0;
  border-bottom: 1px solid #e2e8f0;
  background: var(--color-surface);
  flex-wrap: nowrap;
  overflow: visible;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex: 0 1 auto;
  overflow: visible;
}

.header-logo-link {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  text-decoration: none;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  line-height: 0;
}

/* Crop baked-in bottom wordmark; show cyclist only */
.header-logo-wrap {
  position: relative;
  overflow: hidden;
  width: 88px;
  height: 88px;
  flex-shrink: 0;
}

.header-logo {
  display: block;
  width: 88px;
  height: 88px;
  max-width: none;
  object-fit: cover;
  object-position: top center;
  transform: scale(1.18);
  transform-origin: top center;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
}

.header-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}

.dashboard-header h1,
.brand-wordmark {
  margin: 0;
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.brand-wordmark__dash {
  color: var(--color-brand-navy);
}

.brand-wordmark__do {
  color: var(--color-brand-orange);
}

.brand-tagline {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #64748b;
  line-height: 1.25;
}

.header-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 0;
  flex: 0 0 auto;
  min-width: 0;
  align-self: center;
}

.header-meta__row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: nowrap;
}

.header-meta__row--controls {
  gap: 14px;
}

.view-toggle-group {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

.clean-layout-controls {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding-left: 2px;
}

.clean-grid-control select {
  min-height: 30px;
  padding: 3px 24px 3px 8px;
  border: 1px solid #d8e0ea;
  border-radius: 7px;
  background-color: #ffffff;
  color: #4b5d73;
  font: 600 0.72rem var(--font-stack);
}

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

.view-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 8px;
  background: #f1f5f9;
  border: none;
}

.view-toggle__btn {
  border: none;
  background: transparent;
  color: #64748b;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.view-toggle__btn:hover:not(.view-toggle__btn--active-projects):not(.view-toggle__btn--active-teams):not(.view-toggle__btn--active-portfolio) {
  color: var(--color-brand-navy);
  background: rgba(255, 255, 255, 0.65);
}

.view-toggle__btn.view-toggle__btn--active-projects,
.view-toggle__btn.view-toggle__btn--active-teams,
.view-toggle__btn.view-toggle__btn--active-portfolio {
  background: #ffffff;
  color: var(--color-brand-navy);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.1), 0 1px 2px rgba(15, 23, 42, 0.06);
}

.view-toggle__btn.view-toggle__btn--active-projects:hover,
.view-toggle__btn.view-toggle__btn--active-teams:hover,
.view-toggle__btn.view-toggle__btn--active-portfolio:hover {
  color: var(--color-brand-navy);
}

.legend-swatch {
  width: 11px;
  height: 11px;
  border-radius: 2px;
  flex-shrink: 0;
  box-sizing: border-box;
}

.legend-swatch--project {
  background: var(--color-project);
}

.legend-swatch--rd {
  background: var(--color-rd);
  border-radius: 50%;
}

/* ── Toolbar ── */
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-shrink: 0;
  padding: 8px 12px;
  background: var(--color-surface);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  flex-wrap: wrap;
}

.toolbar-filters {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  flex: 1 1 auto;
  min-width: 0;
}

.toolbar-field {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 0.72rem;
  color: var(--color-muted);
}

.toolbar-field--search {
  min-width: 160px;
}

.toolbar-label {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.toolbar select,
.toolbar input[type="search"] {
  height: 30px;
  padding: 0 8px;
  border: 1px solid var(--color-border);
  border-radius: 5px;
  font: inherit;
  font-size: 0.82rem;
  color: var(--color-text);
  background: var(--color-surface);
  min-width: 120px;
}

.toolbar-field--multiselect {
  position: relative;
  min-width: 140px;
}

.multi-select {
  position: relative;
}

.multi-select__trigger {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-width: 140px;
  max-width: 220px;
  height: 30px;
  padding: 0 8px;
  border: 1px solid var(--color-border);
  border-radius: 5px;
  font: inherit;
  font-size: 0.82rem;
  color: var(--color-text);
  background: var(--color-surface);
  cursor: pointer;
  text-align: left;
}

.multi-select__trigger:hover {
  border-color: #c5d0de;
}

.multi-select__trigger[aria-expanded="true"] {
  border-color: var(--color-navy);
  box-shadow: 0 0 0 1px rgba(30, 58, 95, 0.12);
}

.multi-select__trigger--active {
  border-color: #9eb0c7;
  background: #f3f6fa;
}

.multi-select__summary {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  flex: 1 1 auto;
}

.multi-select__caret {
  flex: 0 0 auto;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--color-muted);
}

.multi-select__panel {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  z-index: 40;
  min-width: 100%;
  width: max-content;
  max-width: min(280px, 70vw);
  max-height: min(320px, 50vh);
  overflow: auto;
  padding: 6px 0;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  box-shadow: 0 8px 20px rgba(23, 54, 93, 0.14);
}

.multi-select__option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  font-size: 0.82rem;
  color: var(--color-text);
  font-weight: 500;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}

.multi-select__option:hover {
  background: var(--color-bg);
}

.multi-select__option--all {
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 2px;
  padding-bottom: 8px;
  font-weight: 600;
}

.multi-select__option input[type="checkbox"] {
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: var(--color-navy);
  cursor: pointer;
  flex: 0 0 auto;
}

.multi-select__list {
  display: flex;
  flex-direction: column;
}

.toolbar-field--checkbox {
  min-width: auto;
}

.toolbar-field--show {
  flex: 0 0 auto;
  min-width: 0;
}

.toolbar-field--show .toolbar-checkboxes {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-height: 0;
}

.toolbar-checkboxes {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  min-height: 30px;
}

.toolbar-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8rem;
  color: var(--color-text);
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
}

.toolbar-checkbox input[type="checkbox"] {
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: var(--color-navy);
  cursor: pointer;
}

.toolbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex: 0 0 auto;
  flex-wrap: wrap;
  margin-left: auto;
}

.btn {
  height: 30px;
  padding: 0 12px;
  border-radius: 5px;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn--primary {
  background: var(--color-navy);
  color: #fff;
}

.btn--primary:hover {
  background: #1e4a7a;
}

.btn--secondary {
  background: var(--color-surface);
  border-color: var(--color-border);
  color: var(--color-navy);
}

.btn--secondary:hover {
  background: var(--color-bg);
}

.btn--contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  margin-top: 0;
  height: 36px;
  padding: 0 14px;
  background: #0e7490;
  border-color: #0a5c72;
  color: #fff;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 8px;
}

.btn--contact:hover {
  background: #0c667f;
  color: #fff;
}

#btn-exec-summary {
  background: #0e7490;
  border-color: #0a5c72;
  color: #fff;
  font-weight: 700;
}

#btn-exec-summary:hover {
  background: #0c667f;
  border-color: #0a5c72;
  color: #fff;
}

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

.btn--ghost:hover {
  color: var(--color-navy);
  background: var(--color-bg);
}

/* ── Scroll shell ── */
.roadmap-shell {
  flex: 1;
  min-height: 0;
  width: 100%;
  max-width: none;
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.roadmap-frozen-header {
  display: block;
  flex-shrink: 0;
  z-index: 30;
  box-sizing: border-box;
  background: var(--color-bg);
  border-bottom: none;
}

.roadmap-frozen-header[hidden] {
  display: none;
}

/* Month bar only over the timeline — not over the project/team label column */
.roadmap-frozen-header__months {
  box-sizing: border-box;
  margin-left: var(--project-col-width);
  width: calc(100% - var(--project-col-width));
  height: var(--month-header-height);
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  background: #eaf3fb;
  border-bottom: 1px solid #bfd1e3;
}

.timeline-inner--months {
  min-height: var(--month-header-height);
}

.month-header-block {
  position: relative;
  width: 100%;
}

.year-header-track {
  position: relative;
  width: 100%;
  height: var(--year-band-height);
  background: #e3eef8;
  border-bottom: 1px solid #c9d9ea;
}

.year-header-track--single {
  background: #eaf3fb;
}

.year-header-cell {
  position: absolute;
  top: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #1f4e79;
  overflow: hidden;
  white-space: nowrap;
  padding: 0 6px;
}

.year-header-track--single .year-header-cell {
  justify-content: flex-start;
  padding-left: 10px;
  font-size: 0.75rem;
  font-weight: 800;
  opacity: 0.9;
}

.year-header-sep {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  margin-left: -1px;
  background: #bfd1e3;
  pointer-events: none;
  z-index: 1;
}

.dashboard-teams-view .roadmap-frozen-header {
  background: #f5f9fa;
}

.dashboard-teams-view .roadmap-shell {
  background: #f5f9fa;
}

.dashboard-teams-view .roadmap-labels-col {
  background: #f5f9fa;
}

.dashboard-teams-view .month-label-spacer {
  background: #eaf3fb;
  border-bottom: 1px solid #bfd1e3;
}

.dashboard-teams-view .lane-label-cell {
  position: relative;
  display: block;
  border-bottom: none;
  margin-bottom: 120px;
}

.dashboard-teams-view .lane-label-stack {
  position: absolute;
  top: var(--lane-axis-y, 50%);
  left: 8px;
  width: calc(100% - 16px);
  transform: translateY(var(--team-label-offset, -50%));
}

.dashboard-teams-view .lane-label-cell:last-child {
  margin-bottom: 0;
}

.dashboard-teams-view .lane-track {
  background: #f8fbfb;
  border-bottom: none;
  margin-bottom: 120px;
}

.dashboard-teams-view .lane-track:last-child {
  margin-bottom: 0;
}

.dashboard-projects-view .lane-label-cell,
.dashboard-projects-view .lane-track {
  margin-bottom: 120px;
}

.dashboard-projects-view .lane-label-cell {
  position: relative;
  display: block;
}

.dashboard-projects-view .lane-label-stack {
  position: absolute;
  top: var(--lane-axis-y, 50%);
  left: 8px;
  width: calc(100% - 16px);
  transform: translateY(-50%);
  gap: 6px;
}

.dashboard-projects-view .lane-label-card {
  position: relative;
  top: auto;
  left: auto;
  width: 100%;
  transform: none;
}

.dashboard-projects-view .lane-label-cell:last-child,
.dashboard-projects-view .lane-track:last-child {
  margin-bottom: 0;
}

.dashboard-teams-view .lane-track--alt {
  background: #f1f7f7;
}

.dashboard-teams-view .month-header-track {
  background: #eaf3fb;
}

.dashboard-teams-view .month-header-cell {
  color: #1f4e79;
}

.dashboard-teams-view .month-header-sep {
  background: #c9d9ea;
}

.dashboard-teams-view .timeline-grid__line--month {
  background: #b9cdd1;
}

.dashboard-teams-view .timeline-grid__line--week {
  background: #d8e4e6;
}

.roadmap-scroll {
  flex: 1;
  min-height: 0;
  height: auto;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-gutter: auto;
  background: var(--color-surface);
}

/* ── Two-column layout ── */
.roadmap-layout {
  display: flex;
  align-items: stretch;
  width: 100%;
  min-height: 100%;
}

.roadmap-labels-col {
  width: var(--project-col-width);
  flex-shrink: 0;
  position: sticky;
  left: 0;
  z-index: 25;
  background: var(--color-bg);
}

.month-label-spacer {
  height: var(--month-header-height);
  background: #eaf3fb;
  border-bottom: 1px solid #bfd1e3;
}

.lane-label-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 8px;
  border-bottom: none;
}

.lane-label-card {
  width: 100%;
  padding: 10px 8px;
  background: #0e7490;
  color: #ffffff;
  border: 1px solid #0a5c72;
  font-weight: 700;
  font-size: 1.0625rem;
  text-align: center;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  line-height: 1.25;
  word-break: break-word;
  transition: background 0.15s ease;
}

.lane-label-card:hover {
  background: #0c667f;
}

.lane-label-card--team {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 12px 10px 11px;
  box-shadow: var(--shadow-sm);
}

.dashboard-teams-view .lane-label-card--team {
  background: var(--team-card-bg, #ecfdf5);
  border: 2px solid var(--team-card-color, #5f8f7b);
  color: var(--team-card-text, #365f4e);
}

.dashboard-teams-view .lane-label-card--team:hover {
  background: color-mix(in srgb, var(--team-card-color, #5f8f7b) 15%, #ffffff);
}

.dashboard-teams-view .lane-label-card--team .lane-label-card__name {
  color: var(--team-card-text, #365f4e);
}

.dashboard-teams-view .lane-label-card--team .lane-label-card__count {
  color: color-mix(in srgb, var(--team-card-text, #365f4e) 76%, transparent);
}

.lane-label-card__name {
  font-weight: 700;
  font-size: 1.0625rem;
  line-height: 1.2;
  color: #ffffff;
  letter-spacing: 0.02em;
}

.lane-label-card .draft-plan-badge {
  display: inline-block;
  margin-top: 4px;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  white-space: nowrap;
}

.lane-label-card__count {
  font-size: 0.72rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.72);
}

.lane-label-stack {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 7px;
  width: 100%;
}

.lane-label-card__features {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 28px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid #b8cfdf;
  background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
  color: #334155;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.lane-label-card__features:hover {
  background: linear-gradient(180deg, #ffffff 0%, #e8eef5 100%);
  border-color: #94a3b8;
  color: #0f172a;
}

.lane-label-card__email {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  min-height: 34px;
  padding: 6px 9px;
  border-radius: 999px;
  border: 1px solid #b8cfdf;
  background: linear-gradient(180deg, #eef6fb 0%, #dbeaf3 100%);
  color: #173b59;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 3px 8px rgba(23, 59, 89, 0.16);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.lane-label-card__email:hover {
  transform: translateY(-1px);
  border-color: #86acc5;
  background: linear-gradient(180deg, #f5faff 0%, #d4e7f2 100%);
  color: #102f49;
  box-shadow: 0 5px 12px rgba(23, 59, 89, 0.2);
}

.lane-label-card__email-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: rgba(96, 139, 166, 0.22);
  stroke: #648da8;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.app-email-report-dialog {
  border: none;
  padding: 0;
  max-width: min(760px, calc(100vw - 32px));
  width: 100%;
  background: transparent;
}

.app-email-report-dialog::backdrop {
  background: rgba(15, 23, 42, 0.45);
}

.app-email-report-dialog__panel {
  background: #ffffff;
  border: 1px solid #d8e0ea;
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(23, 43, 68, 0.18);
  overflow: hidden;
}

.app-email-report-dialog__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px 10px;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
}

.app-email-report-dialog__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
}

.app-email-report-dialog__hint {
  margin: 4px 0 0;
  font-size: 0.8rem;
  color: #64748b;
  line-height: 1.35;
}

.app-email-report-dialog__x {
  border: none;
  background: transparent;
  font-size: 1.4rem;
  line-height: 1;
  color: #64748b;
  cursor: pointer;
  padding: 0 4px;
}

.app-email-report-dialog__preview {
  max-height: min(60vh, 520px);
  overflow: auto;
  background: #ffffff;
}

.app-email-report-dialog__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  padding: 12px 16px;
  border-top: 1px solid #e2e8f0;
  background: #f8fafc;
}

.milestone-project-badge {
  display: inline-block;
  max-width: 100%;
  margin: 0;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--badge-bg, rgba(30, 58, 95, 0.08));
  color: var(--badge-text, var(--color-project-text));
  border: 1px solid var(--badge-border, rgba(30, 58, 95, 0.14));
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
}

.dashboard--teams .milestone-project-badge {
  display: block;
  width: 100%;
  box-sizing: border-box;
  font-size: 10px;
  padding: 1px 6px;
  text-align: center;
  line-height: 1.3;
}

.dashboard--teams .lane-track .lane-line {
  background: #5b7fa6;
}

.dashboard--teams .milestone-card--team {
  background: #fff;
  color: var(--color-navy);
  border-left: 3px solid var(--color-project);
  border-radius: 999px;
  padding: 8px 14px;
  box-shadow: 0 1px 4px rgba(23, 54, 93, 0.1);
}

.dashboard--teams .milestone-card--team-project .milestone-title {
  color: #16324f;
}

.dashboard--teams .milestone-label--team {
  background: #fff;
  color: #16324f;
  border-top: 2px solid var(--color-rd);
  box-shadow: 0 1px 4px rgba(23, 54, 93, 0.1);
}

.dashboard--teams .milestone--project .milestone-pin {
  color: var(--color-project);
}

.dashboard--teams .milestone--rd .milestone-pin {
  color: var(--color-rd);
}

.dashboard--teams .milestone-card--team .milestone-meta--badge,
.dashboard--teams .milestone-label--team .rd-label-meta--badge {
  margin: 2px 0 1px;
  line-height: 1.2;
}

.dashboard--teams .milestone-card--team .milestone-meta--flow,
.dashboard--teams .milestone-label--team .rd-label-meta--flow {
  font-size: 13px;
  line-height: 1.35;
  color: var(--color-muted);
}

.dashboard--teams .milestone-card--team .milestone-title,
.dashboard--teams .milestone-label--team .rd-label-title {
  color: #16324f;
  font-weight: 600;
}

.dashboard--teams .milestone-card--team .milestone-date,
.dashboard--teams .milestone-label--team .milestone-date {
  color: #334155;
  font-weight: 600;
}

.dashboard--teams .milestone--rd .rd-flow-line {
  color: var(--color-muted);
}

.milestone-card--team .milestone-title {
  -webkit-line-clamp: 2;
}

.milestone-delayed-badge {
  display: inline-block;
  margin-top: 4px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #dc2626;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.milestone-card--grouped .milestone-delayed-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  margin-top: 0;
}

.milestone-date--change {
  font-weight: 700;
  white-space: nowrap;
}

.tooltip-delayed {
  margin-top: 5px;
  font-size: 0.76rem;
  font-weight: 700;
  color: #b42318;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.tooltip .tooltip-row {
  margin-top: 4px;
  font-size: 0.78rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.92);
}

.tooltip.tooltip--teams .tooltip-row {
  color: #475569;
}

.tooltip.tooltip--teams .tooltip-delayed {
  color: #b42318;
}

.tooltip.tooltip--teams {
  background: #fff;
  color: #1e293b;
  border: 1px solid #e2e8f0;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.16);
  z-index: 1200;
  border-radius: 8px;
  padding: 10px 12px;
}

.tooltip.tooltip--teams strong {
  color: #0f172a;
  font-size: 0.86rem;
  font-weight: 700;
}

.tooltip.tooltip--teams .tooltip-row {
  margin-top: 4px;
  font-size: 0.78rem;
  color: #475569;
  line-height: 1.45;
}

.tooltip.tooltip--teams .tooltip-scope {
  margin-top: 6px;
  font-size: 0.76rem;
  color: #0f766e;
  line-height: 1.45;
  opacity: 1;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.roadmap-timeline-col {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  overflow-x: auto;
  overflow-y: visible;
  scrollbar-width: thin;
}

.timeline-inner {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  min-width: max(100%, calc(var(--month-count) * var(--month-min-width)));
}

.timeline-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.timeline-grid__line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  margin-left: -0.5px;
}

.timeline-grid__line--month {
  width: 2px;
  margin-left: -1px;
  background: var(--color-month-divider);
}

.timeline-grid__line--week {
  background: var(--color-week-divider);
}

/* Month header — same date fractions as timeline grid / milestones */
.month-header-track {
  position: relative;
  display: block;
  width: 100%;
  height: var(--month-row-height);
  background: #eaf3fb;
}

.month-header-cell {
  position: absolute;
  top: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #1f4e79;
  text-transform: uppercase;
  overflow: visible;
  white-space: nowrap;
  padding: 0 8px;
  border: none;
  min-width: 48px;
}

.month-header-cell:first-child {
  justify-content: flex-start;
  padding-left: 10px;
}

.month-header-sep {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  margin-left: -1px;
  background: #c9d9ea;
  pointer-events: none;
  z-index: 1;
}

/* Today line */
.today-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 0;
  background: transparent;
  border-left: 2px dotted var(--color-today);
  z-index: 2;
  pointer-events: none;
  transform: translateX(-50%);
}

/* Label lives in the frozen month header — never overlaps lane milestone pills. */
.today-line--header {
  z-index: 6;
}

.today-line--header .today-line__label {
  top: 50%;
  transform: translate(-50%, -50%);
}

.today-line--body {
  z-index: 2;
}

.today-line__label {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-today);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 3px;
  white-space: nowrap;
  pointer-events: auto;
  cursor: default;
}

.today-line__label[data-date]:hover::after {
  content: attr(data-date);
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: #172b44;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
  padding: 4px 8px;
  border-radius: 4px;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
  z-index: 12;
}

/* Project lane */
.lane-track {
  position: relative;
  border-bottom: none;
  background: var(--color-surface);
  /* Keep Doron drop cards readable near JUN/MAY — do not clip under the label column. */
  overflow: visible;
}

.lane-track--alt {
  background: var(--color-lane-alt);
}

.lane-track > .timeline-grid {
  z-index: 0;
}

.lane-line {
  position: absolute;
  left: var(--timeline-edge-pad, 56px);
  right: var(--timeline-edge-pad, 56px);
  top: var(--lane-axis-y, 50%);
  transform: translateY(-50%);
  height: var(--line-thickness);
  background: var(--color-navy);
  border-radius: calc(var(--line-thickness) / 2);
  z-index: 1;
}

/* Milestones — pin on timeline line, short stem to card */
.milestone {
  position: absolute;
  top: var(--lane-axis-y, 50%);
  z-index: 5;
  width: 0;
  height: 0;
  transform: translateX(-50%);
  pointer-events: none;
}

.milestone-pin {
  position: absolute;
  left: 0;
  width: var(--pin-size);
  height: var(--pin-size);
  border-radius: 50%;
  background: currentColor;
  border: 2px solid var(--color-surface);
  box-shadow: 0 0 0 1px currentColor;
  z-index: 4;
  pointer-events: none;
}

.milestone--below .milestone-pin {
  top: 0;
  transform: translate(-50%, -50%);
}

.milestone--above .milestone-pin {
  bottom: 0;
  transform: translate(-50%, 50%);
}

.milestone-lead {
  position: absolute;
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: var(--card-width);
  transform: translateX(-50%);
  pointer-events: none;
}

.milestone-hit {
  pointer-events: auto;
  cursor: pointer;
  position: relative;
}

.milestone--below .milestone-lead {
  top: 0;
  margin-top: calc(var(--pin-size) / 2 - 1px);
}

.milestone--above .milestone-lead {
  bottom: 0;
  margin-bottom: calc(var(--pin-size) / 2);
  flex-direction: column-reverse;
}

.milestone:hover,
.milestone:has(.milestone-hit:hover) {
  z-index: 15;
}

.milestone-hit:hover {
  z-index: 1;
}

.dashboard--teams .milestone:has(.milestone-hit:hover) {
  z-index: 40;
}

.milestone-stem {
  width: 1.5px;
  background: currentColor;
  opacity: 0.5;
  flex-shrink: 0;
  border-radius: 1px;
  pointer-events: none;
}

/* ── Optional clean timeline layout (Projects + Teams) ── */
.dashboard--clean-layout .lane-track > .timeline-grid {
  display: none;
}

.dashboard--clean-layout .lane-track > .timeline-grid .timeline-grid__line {
  opacity: 0.08;
}

.dashboard--clean-layout .lane-track > .timeline-grid .timeline-grid__line--month {
  width: 1px;
  margin-left: -0.5px;
  background: #64748b;
}

.dashboard--clean-layout .lane-track > .timeline-grid .timeline-grid__line--week {
  background: repeating-linear-gradient(
    to bottom,
    rgba(100, 116, 139, 0.85) 0,
    rgba(100, 116, 139, 0.85) 2px,
    transparent 2px,
    transparent 6px
  );
}

.dashboard--clean-layout.dashboard--clean-grid-hidden .lane-track > .timeline-grid {
  display: none;
}

.clean-milestone-connector,
.clean-milestone-connector-arm {
  display: none;
}

/*
 * Clean Layout uses a dedicated connector layer. The original stem remains
 * invisible as a layout spacer, while this direct milestone child renders
 * below every lead/card stacking layer.
 */
.dashboard--clean-layout .milestone {
  z-index: auto !important;
  transform: none;
}

.dashboard--clean-layout .milestone:hover,
.dashboard--clean-layout .milestone:has(.milestone-hit:hover) {
  z-index: auto;
}

.dashboard--clean-layout .milestone-stem {
  visibility: hidden;
}

.dashboard--clean-layout .clean-milestone-connector {
  position: absolute;
  display: block;
  left: -0.75px;
  width: 1.5px;
  border-radius: 1px;
  background: currentColor;
  opacity: 0.28;
  z-index: 1;
  pointer-events: none;
}

.dashboard--clean-layout .clean-milestone-connector-arm {
  position: absolute;
  display: block;
  height: 1.5px;
  border-radius: 1px;
  background: currentColor;
  opacity: 0.28;
  z-index: 1;
  pointer-events: none;
}

.dashboard--clean-layout .milestone--below > .clean-milestone-connector {
  top: calc(var(--pin-size) / 2 - 1px);
}

.dashboard--clean-layout .milestone--above > .clean-milestone-connector {
  bottom: calc(var(--pin-size) / 2);
}

.dashboard--clean-layout .milestone-pin {
  z-index: 2;
}

.dashboard--clean-layout .milestone-lead {
  z-index: 3;
}

.dashboard--clean-layout .milestone:has(.milestone-hit:hover) .milestone-lead {
  z-index: 10;
}

.dashboard--clean-layout .milestone-hit {
  position: relative;
  z-index: 1;
}

.dashboard--clean-layout .today-line {
  z-index: 2;
}

.milestone-card {
  width: 100%;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  border-left: 3px solid currentColor;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--color-surface);
}

.milestone--project { color: var(--color-project); }
.milestone--project .milestone-card {
  background: var(--color-project-soft);
  border-left: 4px solid var(--color-project);
  border-radius: 999px;
  padding: 8px 14px;
  box-shadow: 0 2px 8px rgba(194, 65, 12, 0.14);
}

.milestone--project .milestone-lead:hover .milestone-card,
.milestone--project .milestone-card:focus-within {
  background: #c2410c;
  border-left-color: #9a3412;
  box-shadow: 0 4px 12px rgba(194, 65, 12, 0.35);
}

.milestone--project .milestone-lead:hover .milestone-title,
.milestone--project .milestone-card:focus-within .milestone-title,
.milestone--project .milestone-lead:hover .milestone-group-summary,
.milestone--project .milestone-card:focus-within .milestone-group-summary,
.milestone--project .milestone-lead:hover .milestone-meta,
.milestone--project .milestone-card:focus-within .milestone-meta,
.milestone--project .milestone-lead:hover .milestone-date,
.milestone--project .milestone-card:focus-within .milestone-date {
  color: #ffffff;
}

.milestone--project .milestone-lead:hover .milestone-count-badge,
.milestone--project .milestone-card:focus-within .milestone-count-badge {
  background: #fff7ed;
  color: #c2410c;
}

.milestone--project .milestone-lead:hover .milestone-card--grouped::before,
.milestone--project .milestone-card--grouped:focus-within::before {
  background: rgba(255, 255, 255, 0.9);
  border-color: #ffffff;
  box-shadow: 2px 2px 0 rgba(154, 52, 18, 0.35);
}

.milestone-card--grouped {
  position: relative;
  padding-right: 26px;
}

.milestone-title--stacked {
  margin-top: 2px;
  font-size: 11.5px;
  -webkit-line-clamp: 1;
}

.milestone-group-summary {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-project-text);
}

.milestone-count-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--color-project);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  box-shadow: 0 1px 2px rgba(30, 58, 95, 0.2);
}

.milestone-card--grouped::before {
  content: "";
  position: absolute;
  top: 5px;
  right: 28px;
  width: 10px;
  height: 12px;
  border: 1.5px solid var(--color-project);
  border-radius: 2px;
  background: rgba(234, 242, 255, 0.85);
  box-shadow: 2px 2px 0 rgba(59, 130, 246, 0.25);
  opacity: 0.85;
}

.milestone--rd { color: var(--color-rd); }

.milestone-lead--rd {
  width: var(--rd-label-width, 112px);
}

.milestone-label {
  width: 100%;
  padding: 1px 4px;
  background: transparent;
  box-shadow: none;
  border: none;
  text-align: center;
  flex-shrink: 0;
}

.rd-label-title {
  margin: 0;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-rd-text);
  word-break: break-word;
}

.milestone-meta,
.milestone-date {
  color: #000000;
  font-size: 13.5px;
  font-weight: 500;
}

.rd-label-title .milestone-date {
  font-size: 13.5px;
  font-weight: 700;
  color: #000000;
}

.rd-label-meta {
  margin: 2px 0 0;
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--color-rd-muted);
  white-space: normal;
  overflow: visible;
  word-break: break-word;
}

.rd-label-meta .milestone-date {
  display: inline-block;
  font-size: 13.5px;
  font-weight: 700;
  color: #000000;
  white-space: nowrap;
}

.rd-label-flow {
  display: block;
  margin-bottom: 2px;
}

.rd-flow-line {
  margin: 1px 0 0;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--color-rd-muted);
}

.rd-more-link {
  margin: 3px 0 0;
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-rd);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.rd-more-link:hover {
  color: #c45a1a;
}

.milestone-lead:hover .milestone-card {
  box-shadow: 0 3px 10px rgba(23, 54, 93, 0.14);
}

.milestone-lead--rd:hover .rd-label-title {
  color: var(--color-rd);
}

.rd-detail-flows {
  margin: 4px 0 0;
  padding-left: 18px;
  font-size: 0.86rem;
  color: var(--color-text);
}

.rd-detail-flows li {
  margin: 2px 0;
}

.milestone-title {
  margin: 0;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-project-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

.milestone-meta {
  margin: 4px 0 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.milestone--hidden { display: none; }

/* ── Tooltip ── */
.tooltip {
  position: fixed;
  z-index: 1000;
  max-width: min(340px, calc(100vw - 24px));
  padding: 10px 12px;
  background: var(--color-navy);
  color: #fff;
  font-size: 0.78rem;
  line-height: 1.45;
  border-radius: var(--radius-sm);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
  pointer-events: none;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  box-sizing: border-box;
}

.tooltip strong {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0;
}

.tooltip .tooltip-scope {
  margin-top: 6px;
  font-size: 0.78rem;
  line-height: 1.4;
  color: #22d3ee;
  opacity: 1;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.tooltip .tooltip-scope__list {
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
}

.tooltip .tooltip-scope__list li {
  margin: 0;
  padding: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.tooltip .tooltip-item + .tooltip-item {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.detail-group-divider {
  grid-column: 1 / -1;
  height: 1px;
  margin: 4px 0 8px;
  background: var(--color-border);
}

.tooltip .tooltip-row { opacity: 0.88; }

/* ── Detail dialog ── */
.detail-dialog {
  border: none;
  border-radius: var(--radius);
  padding: 0;
  max-width: 420px;
  width: 90vw;
  box-shadow: 0 12px 40px rgba(23, 54, 93, 0.22);
  font-family: var(--font-stack);
}

.detail-dialog::backdrop {
  background: rgba(23, 54, 93, 0.35);
}

.detail-dialog__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px 10px;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}

.detail-dialog__header h2 {
  margin: 0;
  font-size: 1.02rem;
  color: var(--color-navy);
  line-height: 1.35;
  word-break: break-word;
}

.detail-dialog__close {
  background: none;
  border: none;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--color-muted);
  cursor: pointer;
  padding: 0 4px;
  border-radius: 4px;
}

.detail-dialog__close:hover {
  color: var(--color-navy);
  background: var(--color-border);
}

.detail-dialog__body {
  margin: 0;
  padding: 14px 18px 18px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 16px;
}

.detail-dialog__body dt {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.detail-dialog__body dd {
  margin: 0;
  font-size: 0.86rem;
  color: var(--color-text);
}

.detail-dialog__body dd.detail-scope {
  color: #0f766e;
  font-weight: 600;
}

.feature-involvement {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  width: 150px;
}

.feature-involvement__labels,
.feature-involvement__cells {
  display: grid;
  grid-template-columns: repeat(4, 28px);
  gap: 6px;
  justify-content: center;
}

.feature-involvement__label {
  text-align: center;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: #1e293b;
  line-height: 1;
}

.feature-involvement__cell {
  box-sizing: border-box;
  width: 28px;
  height: 28px;
  border: 1.5px solid #1f2937;
  border-radius: 2px;
  background: #fff;
}

.feature-involvement__cell.is-active {
  background: #b8e0c8;
  border-color: #1f2937;
}

.error-message {
  padding: 40px;
  text-align: center;
  color: #c0392b;
}

.dashboard-data-warning {
  margin: 0 20px 12px;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid #f0c36d;
  background: #fff8e6;
  color: #7a5b14;
  font-size: 0.875rem;
  line-height: 1.4;
}

/* Compact density for many projects */
.dashboard--compact {
  --card-width: 110px;
  --level-step: 38px;
}

.dashboard--dense {
  --card-width: 105px;
  --level-step: 36px;
}

.milestone-label--chip {
  width: 100%;
  padding: 5px 7px 5px 8px;
  border-radius: 10px;
  background: var(--owner-bg, var(--color-rd-soft));
  border: 1px solid var(--owner-border, var(--color-rd-border));
  border-left: 3px solid var(--owner-accent, var(--color-rd-accent));
  box-shadow: 0 1px 4px rgba(15, 118, 110, 0.1);
  text-align: left;
  box-sizing: border-box;
}

.rd-chip-name {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--owner-text, var(--color-rd-text));
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

.rd-chip-foot {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 6px;
  margin-top: 3px;
}

.rd-chip-date {
  font-size: 11px;
  font-weight: 600;
  color: #334155;
  white-space: nowrap;
}

.rd-chip-count {
  font-size: 10px;
  font-weight: 700;
  color: var(--owner-text, var(--color-rd-text));
  background: color-mix(in srgb, var(--owner-accent, var(--color-rd-accent)) 12%, #fff);
  border-radius: 999px;
  padding: 1px 6px;
  line-height: 1.4;
}

.rd-chip-owner {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--owner-text, var(--color-rd-text));
  background: color-mix(in srgb, var(--owner-accent, var(--color-rd-accent)) 14%, #fff);
  border: 1px solid color-mix(in srgb, var(--owner-accent, var(--color-rd-accent)) 35%, #fff);
  border-radius: 999px;
  padding: 1px 6px;
  line-height: 1.35;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.milestone-label--multi-owner {
  --owner-accent: #0d9488;
  --owner-bg: #f0fdfa;
  --owner-border: #99f6e4;
  --owner-text: #115e59;
}

.milestone-delayed-badge--compact {
  margin-top: 3px;
  padding: 0;
  font-size: 0.68rem;
  letter-spacing: 0.02em;
}

.milestone-lead--rd {
  width: 118px;
}

.milestone-lead--portfolio-drop {
  width: 176px;
}

.milestone--portfolio-drop .milestone-label,
.milestone--portfolio-drop .portfolio-drop-card {
  overflow: visible;
}

.portfolio-drop-card {
  width: 100%;
  padding: 6px 8px;
  border-radius: 10px;
  background: #f0fdfa;
  border: 1px solid #99f6e4;
  border-left: 3px solid #0d9488;
  box-shadow: 0 1px 4px rgba(15, 118, 110, 0.1);
  text-align: left;
  box-sizing: border-box;
}

.milestone--portfolio-drop-release .portfolio-drop-card {
  background: #f5f3ff;
  border-color: #c4b5fd;
  border-left-color: #7c3aed;
  box-shadow: 0 1px 4px rgba(124, 58, 237, 0.1);
}

.milestone--portfolio-drop-fw-release .portfolio-drop-card {
  background: #fff1f2;
  border-color: #fda4af;
  border-left-color: #e11d48;
  box-shadow: 0 1px 4px rgba(225, 29, 72, 0.1);
}

.portfolio-drop-card__name {
  margin: 0;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.25;
  color: #115e59;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  /* Prefer wrapping over mid-glyph clipping of long Name · Type suffixes */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.milestone--portfolio-drop-release .portfolio-drop-card__name {
  color: #5b21b6;
}

.milestone--portfolio-drop-fw-release .portfolio-drop-card__name {
  color: #9f1239;
}

.portfolio-drop-card__note {
  margin: 2px 0 0;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #0f766e;
}

.portfolio-drop-card__foot {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 6px;
  margin-top: 4px;
}

.portfolio-drop-card__date {
  font-size: 11px;
  font-weight: 650;
  color: #334155;
  white-space: nowrap;
}

.portfolio-drop-card__count {
  font-size: 10px;
  font-weight: 700;
  color: #0f766e;
  background: rgba(13, 148, 136, 0.1);
  border-radius: 999px;
  padding: 1px 6px;
  line-height: 1.4;
}

.milestone--portfolio-drop-release .portfolio-drop-card__count {
  color: #6d28d9;
  background: rgba(124, 58, 237, 0.1);
}

.milestone--portfolio-drop-fw-release .portfolio-drop-card__count {
  color: #be123c;
  background: rgba(225, 29, 72, 0.1);
}

.portfolio-drop-card__teams {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  margin-top: 5px;
}

.portfolio-drop-card__teams-empty {
  font-size: 10px;
  font-weight: 600;
  color: #94a3b8;
}

.portfolio-drop-card__team {
  display: inline-flex;
  align-items: center;
  padding: 1px 5px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  font-size: 9.5px;
  font-weight: 750;
  line-height: 1.35;
  letter-spacing: 0.01em;
}

/* Teams View: Doron drops across projects — project badge on the card */
.dashboard-teams-view .milestone-lead--portfolio-drop {
  width: 176px;
}

.dashboard-teams-view .portfolio-drop-card__project {
  margin: 3px 0 0;
}

.dashboard-teams-view .portfolio-drop-card__project .milestone-project-badge {
  max-width: 100%;
}

.drop-feature-map-dialog {
  width: min(1120px, 94vw);
  max-width: none;
  max-height: 90vh;
  padding: 0;
  border: none;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 22px 60px rgba(15, 23, 42, 0.28);
  color: #1e293b;
  font-family: var(--font-stack);
  overflow: hidden;
}

.drop-feature-map-dialog::backdrop {
  background: rgba(15, 23, 42, 0.46);
  backdrop-filter: blur(2px);
}

.drop-feature-map-dialog__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 22px 16px;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
}

.drop-feature-map-dialog__eyebrow,
.drop-feature-map-dialog__subtitle {
  margin: 0;
  color: #64748b;
}

.drop-feature-map-dialog__eyebrow {
  margin-bottom: 3px;
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.drop-feature-map-dialog__header h2 {
  margin: 0;
  color: #0f172a;
  font-size: 1.15rem;
  line-height: 1.3;
}

.drop-feature-map-dialog__subtitle {
  margin-top: 4px;
  font-size: 0.8rem;
  font-weight: 600;
}

.drop-feature-map-dialog__date {
  font-size: 1rem;
  font-weight: 700;
  color: #475569;
}

.drop-feature-map-dialog__delayed {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #dc2626;
}

.drop-feature-map-dialog__close {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  border-radius: 7px;
  background: transparent;
  color: #64748b;
  font-size: 1.55rem;
  line-height: 1;
  cursor: pointer;
}

.drop-feature-map-dialog__close:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.drop-feature-map-dialog__body {
  max-height: calc(90vh - 92px);
  padding: 22px;
  overflow: auto;
}

.drop-feature-map {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, 1.45fr) minmax(110px, 0.55fr) minmax(150px, 0.7fr);
  grid-template-rows: repeat(var(--feature-rows), minmax(76px, auto));
  align-items: center;
  gap: 14px 86px;
  min-width: 780px;
  /* Room for Ready-for-QA badge straddling the right-edge gate line */
  padding-right: 64px;
}

.drop-feature-map__connectors {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}

.drop-feature-map__connector {
  fill: none;
  stroke: #94a3b8;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.drop-feature-map__connector.is-dashed {
  stroke: #1e293b;
  stroke-width: 3;
  stroke-dasharray: 8 4;
}

.drop-feature-map__feature,
.drop-feature-map__integration,
.drop-feature-map__gate {
  position: relative;
  z-index: 1;
}

.drop-feature-map__feature {
  grid-column: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 58px;
  padding: 9px 12px;
  border: 1px solid #cbd5e1;
  border-left: 3px solid #3b82f6;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.drop-feature-map__feature.is-clone {
  border-color: #94a3b8;
  border-left: 4px solid #334155;
  background: #eef2f7;
  box-shadow: 0 1px 3px rgba(30, 41, 59, 0.1);
}

.drop-feature-map__feature-content {
  min-width: 0;
}

.drop-feature-map__feature-name {
  margin: 0;
  color: #1e3a5f;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.drop-feature-map__clone-badge {
  display: inline-flex;
  margin-top: 4px;
  padding: 2px 8px;
  border: 1px solid #64748b;
  border-radius: 999px;
  background: #334155;
  color: #f8fafc;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.drop-feature-map__teams {
  display: grid;
  grid-template-columns: repeat(4, 24px);
  gap: 4px;
  flex: 0 0 auto;
}

.drop-feature-map__team-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.drop-feature-map__team-label {
  color: #475569;
  font-size: 0.55rem;
  font-weight: 750;
  line-height: 1;
}

.drop-feature-map__team-square {
  box-sizing: border-box;
  width: 20px;
  height: 20px;
  border: 1.5px solid #cbd5e1;
  border-radius: 4px;
  background: #fff;
}

.drop-feature-map__team-square.is-active {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.42);
}

.drop-feature-map__integration {
  grid-column: 2;
  justify-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border: 2px solid #f59e0b;
  border-radius: 50%;
  background: #fffbeb;
  color: #92400e;
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.14);
}

.drop-feature-map__integration strong {
  font-size: 0.85rem;
  line-height: 1;
}

.drop-feature-map__integration span {
  margin-top: 4px;
  font-size: 0.62rem;
  font-weight: 650;
  white-space: nowrap;
}

.drop-feature-map__gate {
  position: relative;
  grid-column: 3;
  align-self: stretch;
  justify-self: stretch;
  width: 100%;
  min-height: 100%;
  pointer-events: none;
}

.drop-feature-map__gate-label {
  /* Plain text overlay sitting on top of the green line — not a flow node */
  position: absolute;
  top: 0;
  left: calc(100% - 2px);
  right: auto;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  width: max-content;
  max-width: 140px;
  padding: 2px 6px;
  border: none;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.92);
  color: #065f46;
  text-align: center;
  box-shadow: none;
  transform: translateX(-50%);
  pointer-events: none;
  white-space: nowrap;
}

.drop-feature-map__gate-line {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  width: 4px;
  border-radius: 2px;
  background: linear-gradient(180deg, #34d399 0%, #10b981 48%, #059669 100%);
  box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.22);
}

.drop-feature-map__gate-label strong {
  font-size: 0.72rem;
  font-weight: 750;
  line-height: 1.15;
  letter-spacing: 0.01em;
}

.drop-feature-map__gate-label > span {
  color: #047857;
  font-size: 0.65rem;
  font-weight: 650;
  line-height: 1.15;
}

.drop-feature-map__empty {
  padding: 38px 20px;
  border: 1px dashed #cbd5e1;
  border-radius: 10px;
  background: #f8fafc;
  color: #64748b;
  text-align: center;
  font-size: 0.88rem;
}

.project-features-per-drop-dialog {
  width: min(980px, 94vw);
}

.project-fpd__body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.project-fpd__legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.project-fpd__legend-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
  margin-right: 2px;
}

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

.project-fpd__card {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
}

.project-fpd__card--app-rel {
  grid-column: 1 / -1;
  background: #f8fafc;
}

.project-fpd__card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px 0;
}

.project-fpd__card-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 750;
  color: #0f172a;
}

.project-fpd__badge {
  flex: 0 0 auto;
  font-size: 0.68rem;
  font-weight: 700;
  color: #1e4d7b;
  border: 1px solid #b8c9db;
  background: #f0f5fa;
  border-radius: 999px;
  padding: 2px 8px;
  white-space: nowrap;
}

.project-fpd__card-date {
  padding: 4px 14px 8px;
  font-size: 0.75rem;
  color: #64748b;
}

.project-fpd__card-body {
  padding: 0 14px 14px;
  flex: 1;
}

.project-fpd__features {
  margin: 0;
  padding: 0 0 0 18px;
}

.project-fpd__features li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 5px 0;
  border-bottom: 1px solid #eef1f4;
  font-size: 0.84rem;
  color: #1e293b;
}

.project-fpd__features li:last-child {
  border-bottom: none;
}

.project-fpd__fname {
  flex: 1;
  min-width: 0;
}

.project-fpd__chips {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: flex-end;
}

.project-fpd__chip {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 750;
  letter-spacing: 0.02em;
  padding: 1px 6px;
  border: 1px solid;
  border-radius: 3px;
  line-height: 1.35;
}

.project-fpd__empty-section {
  margin: 4px 0 0;
  color: #94a3b8;
  font-size: 0.8rem;
}

@media (max-width: 850px) {
  .drop-feature-map-dialog__body {
    padding: 16px;
  }

  .drop-feature-map {
    gap: 12px 70px;
  }

  .project-fpd__grid {
    grid-template-columns: 1fr;
  }
}

@media print {
  body { overflow: visible; }
  .toolbar { display: none; }
  .dashboard { max-width: none; height: auto; padding: 0; }
  .roadmap-shell { box-shadow: none; }
  .roadmap-scroll { overflow: visible; height: auto; }
  .roadmap-timeline-col { overflow: visible; }
}

@media (max-height: 900px) {
  .dashboard { padding: 4px 6px 4px; }
  .dashboard-header {
    height: 100px;
    min-height: 100px;
    margin: -4px -6px 0;
    padding: 0 20px;
  }
  .dashboard-header h1,
  .brand-wordmark { font-size: 1.95rem; }
  .brand-tagline { font-size: 0.74rem; }
  .header-logo-wrap {
    width: 80px;
    height: 80px;
  }
  .header-logo {
    width: 80px;
    height: 80px;
  }
}

@media (max-width: 720px) {
  .dashboard-header {
    height: auto;
    min-height: 100px;
    padding: 12px 16px;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
  }

  .header-meta,
  .header-meta__row--controls {
    width: 100%;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .view-toggle {
    flex-wrap: wrap;
  }
}
