/* Portfolio View — HW builds + feature readiness */

.portfolio-view {
  display: none;
  flex-direction: column;
  height: 100vh;
  max-height: 100vh;
  overflow: hidden;
  background: #f3f6f9;
  font-family: var(--font-stack, "Segoe UI", sans-serif);
}

body.app-view-portfolio {
  overflow: hidden;
}

body.app-view-portfolio .dashboard {
  display: none !important;
}

body.app-view-portfolio .portfolio-view {
  display: flex;
}

body.app-view-portfolio .tooltip {
  z-index: 2000;
}

.portfolio-view[hidden] {
  display: none !important;
}

.portfolio-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 28px 10px;
  background: #fff;
  border-bottom: 1px solid #d8e0ea;
  flex-shrink: 0;
}

.portfolio-header__controls {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.portfolio-feature-bar__rail,
.portfolio-feature-bar__badge {
  display: none;
}

.portfolio-header h1 {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 800;
  color: #17365d;
}

.portfolio-subtitle {
  margin: 4px 0 0;
  font-size: 0.9rem;
  color: #5a6b7d;
  font-weight: 600;
}

.portfolio-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  padding: 12px 28px;
  background: #fff;
  border-bottom: 1px solid #e5eaf1;
  flex-shrink: 0;
}

.portfolio-toolbar__left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

/* Toolbar lock control only — never put this class on body (pill radius clips the viewport). */
label.portfolio-concept-team-lock {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 2px 10px 2px 11px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #f8fafc;
  color: #475569;
  font-size: 0.78rem;
  font-weight: 750;
  user-select: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

label.portfolio-concept-team-lock:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #334155;
}

label.portfolio-concept-team-lock input {
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: #eab308;
  cursor: pointer;
}

label.portfolio-concept-team-lock input:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.portfolio-concept-team-lock__label {
  line-height: 1.2;
}

.portfolio-canvas {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 0 24px 32px;
  -webkit-overflow-scrolling: touch;
}

.portfolio-empty {
  margin: 24px auto;
  max-width: 520px;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid #d8e0ea;
  border-radius: 10px;
  color: #5a6b7d;
  line-height: 1.45;
}

.portfolio-board {
  background: #fff;
  border: 1px solid #d8e0ea;
  border-radius: 12px;
  box-shadow: 0 4px 18px rgba(23, 54, 93, 0.06);
  /* visible so .portfolio-months can stick while scrolling .portfolio-canvas */
  overflow: visible;
}

.portfolio-months,
.portfolio-project__head,
.portfolio-project__features,
.portfolio-feature-lane {
  display: grid;
  grid-template-columns: 280px minmax(640px, 1fr);
  align-items: stretch;
}

.portfolio-months {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #eaf3fb;
  border: 1px solid #bfd1e3;
  border-bottom: 1px solid #bfd1e3;
  border-radius: 12px 12px 0 0;
  min-height: 40px;
  box-shadow: 0 2px 8px rgba(23, 54, 93, 0.08);
}

.portfolio-months__label,
.portfolio-project__name,
.portfolio-project__features-label {
  display: flex;
  align-items: center;
  padding: 10px 12px;
  font-weight: 800;
  color: #1f4e79;
  border-right: 1px solid #d8e0ea;
  background: inherit;
}

.portfolio-months__label {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.portfolio-months__timeline {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.portfolio-years__track {
  position: relative;
  width: 100%;
  height: 24px;
  background: #e3eef8;
  border-bottom: 1px solid #c9d9ea;
}

.portfolio-years__track--single {
  background: #eaf3fb;
}

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

.portfolio-years__track--single .portfolio-years__cell {
  justify-content: flex-start;
  padding-left: 10px;
  font-size: 0.72rem;
  opacity: 0.9;
}

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

.portfolio-months__track,
.portfolio-project__builds,
.portfolio-project__features-track {
  position: relative;
  min-height: 40px;
}

.portfolio-months__cell {
  position: absolute;
  top: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #1f4e79;
  /* Borders come from shared .portfolio-month-line so they align with body gridlines */
  border-right: none;
}

.portfolio-project {
  border-bottom: 1px solid #e5eaf1;
}

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

.portfolio-project__head {
  background: #fff;
  min-height: 64px;
}

.portfolio-project--content-hidden .portfolio-build {
  display: none;
}

.portfolio-project--content-hidden .portfolio-project__builds {
  min-height: 0 !important;
}

/* Keep project name + builds visible while scrolling open feature lists. */
.portfolio-project--sidebar-features:not(.portfolio-project--content-hidden) .portfolio-project__head {
  position: sticky;
  top: var(--portfolio-sticky-months-offset, 65px);
  z-index: 12;
  background: #fff;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.08);
}

.portfolio-project__name {
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 8px;
  min-width: 0; /* let Drops chips wrap inside the fixed name column */
  font-size: 1rem;
  color: #2563eb;
  background: #eaf3fb;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.portfolio-project--open .portfolio-project__name,
.portfolio-project__name--open {
  background: #d7e8f8;
  box-shadow: inset 3px 0 0 #3b82f6;
}

.portfolio-project__title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 8px;
  min-width: 0;
}

.portfolio-project__title {
  font-size: 1rem;
  font-weight: 800;
  color: #2563eb;
  line-height: 1.2;
}

.portfolio-project__name .draft-plan-badge {
  display: inline-block;
  flex-shrink: 0;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.35;
  color: #64748b;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  white-space: nowrap;
}

.portfolio-project__title--ado-link {
  text-decoration: none;
  cursor: pointer;
}

.portfolio-project__title--ado-link:hover,
.portfolio-project__title--ado-link:focus-visible {
  text-decoration: underline;
  color: #1d4ed8;
}

.portfolio-project--sidebar-features .portfolio-project__name {
  padding-top: 12px;
  padding-bottom: 12px;
}

.portfolio-feature-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  min-width: 0;
}

.portfolio-feature-list__toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  align-self: flex-start;
  margin: 0;
  padding: 4px 10px 4px 11px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 0.8rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: none;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease,
    box-shadow 0.15s ease;
}

.portfolio-feature-list__toggle-label {
  line-height: 1.2;
}

.portfolio-feature-list__chevron {
  flex-shrink: 0;
  display: block;
}

.portfolio-feature-legend {
  display: none;
}

.portfolio-toolbar .portfolio-feature-legend {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  justify-self: end;
  margin-left: 0;
  min-width: 0;
  color: #000000;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.2;
}

.portfolio-feature-legend__clone-swatch {
  display: inline-flex;
  width: 24px;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(180deg, #f1f3f6 0%, #d8dde5 100%);
  box-shadow: inset 0 0 0 1px rgba(100, 116, 139, 0.35);
}

/* Expanded — active / pressed */
.portfolio-feature-list__toggle--open {
  background: linear-gradient(180deg, #f3eefe 0%, #e8ddf8 100%);
  border-color: #d4c4ef;
  color: #5b3d8a;
  font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 1px 3px rgba(91, 61, 138, 0.08);
}

.portfolio-feature-list__toggle--open:hover {
  background: linear-gradient(180deg, #ebe0fb 0%, #ddd0f3 100%);
  border-color: #c4b0e6;
  color: #4a2f73;
}

/* Collapsed — passive */
.portfolio-feature-list__toggle--closed {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #475569;
  font-weight: 500;
  box-shadow: none;
}

.portfolio-feature-list__toggle--closed:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #334155;
}

.portfolio-feature-lane {
  border-top: 1px solid #d8e0ea;
  background: #ffffff;
}

.portfolio-feature-lane--alt {
  background: #f1f5f9;
}

.portfolio-feature-lane--alt .portfolio-feature-lane__label {
  background: #e8eef5;
}

.portfolio-feature-lane--alt .portfolio-feature-lane__track {
  background: #f1f5f9;
}

.portfolio-feature-lane--empty {
  min-height: 40px;
}

.portfolio-feature-lane__label {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 6px;
  padding: 8px 12px;
  background: #f1f5f9;
  border-right: 1px solid #d8e0ea;
}

.portfolio-feature-lane__label.is-clone,
.portfolio-feature-lane--alt .portfolio-feature-lane__label.is-clone {
  background: #d1d5db;
}

.portfolio-feature-lane__name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.portfolio-feature-clone {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  margin: 0;
  font-size: 0.68rem;
  font-weight: 650;
  color: #475569;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}

.portfolio-feature-clone__input {
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: #64748b;
  cursor: pointer;
}

.portfolio-feature-clone__text {
  line-height: 1;
}

.portfolio-feature-lane__controls {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 8px;
  min-width: 0;
}

.portfolio-feature-lane__controls .feature-involvement--portfolio {
  flex-shrink: 0;
}

.portfolio-feature-lane__controls .portfolio-phase-select,
.portfolio-feature-lane__controls .portfolio-feature-list__srd-link,
.portfolio-feature-lane__controls .portfolio-feature-list__comment {
  align-self: flex-end;
  margin-bottom: 0;
}

.portfolio-feature-list__name {
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.84rem;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.3;
}

.portfolio-feature-list__srd-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-shrink: 0;
  min-height: 24px;
  padding: 3px 7px;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: #e2e8f0;
  color: #475569;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  line-height: 1.35;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.portfolio-feature-list__srd-link:hover {
  background: #cbd5e1;
  border-color: #94a3b8;
}

.portfolio-feature-list__srd-link.is-linked {
  background: #dcfce7;
  border-color: #86efac;
  color: #166534;
}

.portfolio-feature-list__srd-link.is-linked:hover {
  background: #bbf7d0;
  border-color: #4ade80;
}

.portfolio-feature-list__srd-link svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.portfolio-feature-list__comment {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: #e2e8f0;
  color: #64748b;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.portfolio-feature-list__comment:hover {
  background: #cbd5e1;
  border-color: #94a3b8;
  color: #475569;
}

.portfolio-feature-list__comment.has-comment {
  background: #fef9c3;
  border-color: #facc15;
  color: #a16207;
}

.portfolio-feature-list__comment.has-comment:hover {
  background: #fde68a;
  border-color: #eab308;
  color: #854d0e;
}

.portfolio-feature-list__comment svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.portfolio-feature-list__comment.has-comment svg {
  fill: currentColor;
  stroke: currentColor;
}

.portfolio-feature-list__comment-dot {
  display: none;
  position: absolute;
  top: 2px;
  right: 2px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ca8a04;
  border: 1px solid #fffbeb;
  pointer-events: none;
}

.portfolio-feature-list__comment.has-comment .portfolio-feature-list__comment-dot {
  display: block;
}

.portfolio-feature-comment-dialog {
  background: #fffbeb;
}

.portfolio-feature-comment-dialog__panel {
  background: #fffbeb;
}

.portfolio-feature-comment-dialog .portfolio-srd-dialog__field textarea {
  width: 100%;
  min-height: 120px;
  padding: 9px 11px;
  border: 1px solid #fcd34d;
  border-radius: 8px;
  outline: none;
  color: #0f172a;
  background: #fefce8;
  font: inherit;
  font-weight: 500;
  line-height: 1.45;
  resize: vertical;
}

.portfolio-feature-comment-dialog .portfolio-srd-dialog__field textarea:focus {
  border-color: #eab308;
  box-shadow: 0 0 0 3px rgba(234, 179, 8, 0.22);
  background: #fffbeb;
}

.portfolio-srd-dialog {
  width: min(460px, calc(100vw - 32px));
  padding: 0;
  border: none;
  border-radius: 14px;
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.28);
}

.portfolio-srd-dialog::backdrop {
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(2px);
}

.portfolio-srd-dialog__panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 22px;
}

.portfolio-srd-dialog__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.portfolio-srd-dialog__header h2 {
  margin: 0;
  color: #0f172a;
  font-size: 1.1rem;
  line-height: 1.3;
}

.portfolio-srd-dialog__header p,
.portfolio-srd-dialog__message {
  margin: 4px 0 0;
  color: #64748b;
  font-size: 0.82rem;
  line-height: 1.45;
}

.portfolio-srd-dialog__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: #f1f5f9;
  color: #475569;
  font-size: 1.2rem;
  cursor: pointer;
}

.portfolio-srd-dialog__field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: #334155;
  font-size: 0.78rem;
  font-weight: 700;
}

.portfolio-srd-dialog__field input {
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  outline: none;
  color: #0f172a;
  background: #ffffff;
  font: inherit;
  font-weight: 500;
}

/* Plain free-text Name — never look like a <select> / datalist chevron field. */
.portfolio-drop-dialog__name {
  appearance: none;
  -webkit-appearance: none;
  background-image: none !important;
  background-position: unset !important;
  padding-inline-end: 11px;
}

.portfolio-srd-dialog__field input:focus {
  border-color: #0d9488;
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.14);
}

.portfolio-srd-dialog__error {
  margin: -10px 0 0;
  color: #b91c1c;
  font-size: 0.75rem;
  font-weight: 650;
}

.portfolio-srd-dialog__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.portfolio-srd-dialog__primary,
.portfolio-srd-dialog__secondary {
  min-height: 36px;
  padding: 7px 13px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 750;
  cursor: pointer;
}

.portfolio-srd-dialog__primary {
  border: 1px solid #0f766e;
  background: #0f766e;
  color: #ffffff;
}

.portfolio-srd-dialog__secondary {
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
}

.portfolio-feature-lane__label .feature-involvement--portfolio {
  width: auto;
  flex-shrink: 0;
  gap: 3px;
}

.portfolio-feature-lane__label .feature-involvement--portfolio .feature-involvement__labels,
.portfolio-feature-lane__label .feature-involvement--portfolio .feature-involvement__cells {
  grid-template-columns: repeat(4, 18px);
  gap: 3px;
}

.portfolio-feature-lane__label .feature-involvement--portfolio .feature-involvement__label {
  font-size: 0.58rem;
}

.portfolio-feature-lane__label .feature-involvement--portfolio .feature-involvement__cell {
  width: 18px;
  height: 18px;
}

.portfolio-feature-lane__label .feature-involvement--portfolio .feature-involvement__cell.is-active {
  background: #bfdbfe;
  border-color: #60a5fa;
}

.portfolio-feature-lane__track {
  position: relative;
  min-height: 44px;
  background: #fbfcfe;
}

.portfolio-feature-bar {
  position: absolute;
  top: 8px;
  height: 28px;
  box-sizing: border-box;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(22, 163, 74, 0.7);
  color: #1f4e79;
  border: 1px solid rgba(21, 128, 61, 0.4);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  z-index: 1;
}

.portfolio-feature-bar__label {
  font-family: Calibri, Candara, "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1;
  white-space: nowrap;
  color: #1f4e79;
}

.portfolio-feature-bar__label--start {
  flex-shrink: 0;
}

.portfolio-feature-bar__label--end {
  flex-shrink: 0;
  margin-left: auto;
  text-align: right;
}

.portfolio-feature-bar-missing {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.72rem;
  font-weight: 600;
  color: #94a3b8;
  z-index: 1;
}

.portfolio-feature-bar--clone {
  justify-content: center;
  background: linear-gradient(180deg, #eceff3 0%, #d5d9e0 100%);
  border: 1px solid #c0c6d0;
  color: #4b5563;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.portfolio-feature-bar__clone-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #4b5563;
  white-space: nowrap;
}

.portfolio-feature-list__empty {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 500;
  color: #94a3b8;
  line-height: 1.3;
}

.portfolio-project__builds {
  min-height: 64px;
  background: #fff;
}

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

.portfolio-today-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 0;
  border-left: 2px dotted #d94f3d;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 2;
}

.portfolio-today-line__label {
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  background: #d94f3d;
  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;
}

.portfolio-months__track > .portfolio-month-line {
  z-index: 1;
}

.portfolio-build {
  position: absolute;
  top: 14px;
  height: 36px;
  box-sizing: border-box;
  padding: 0 10px;
  border-radius: 999px;
  background: linear-gradient(180deg, #38bdf8 0%, #0284c7 100%);
  color: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.18);
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.14);
  overflow: hidden;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  z-index: 1;
}

.portfolio-build[data-tone="1"] { background: linear-gradient(180deg, #38bdf8 0%, #0284c7 100%); }
.portfolio-build[data-tone="2"] { background: linear-gradient(180deg, #2dd4bf 0%, #0f766e 100%); }
.portfolio-build[data-tone="3"] { background: linear-gradient(180deg, #a78bfa 0%, #6d28d9 100%); }
.portfolio-build[data-tone="4"] { background: linear-gradient(180deg, #fb923c 0%, #c2410c 100%); }
.portfolio-build[data-tone="5"] { background: linear-gradient(180deg, #f472b6 0%, #be185d 100%); }
.portfolio-build[data-tone="6"] { background: linear-gradient(180deg, #94a3b8 0%, #334155 100%); }

.portfolio-build__name {
  font-family: Calibri, Candara, "Trebuchet MS", "Segoe UI", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1;
  color: #ffffff;
  text-shadow: 0 1px 1px rgba(15, 23, 42, 0.25);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.portfolio-project__features {
  background: #f8fafc;
  border-top: 1px dashed #d8e0ea;
}

.portfolio-project__features-label {
  font-size: 0.68rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #64748b;
  background: #f1f5f9;
  align-items: flex-start;
  padding-top: 14px;
  line-height: 1.35;
  white-space: normal;
}

.portfolio-project__features-track {
  min-height: 56px;
  padding: 10px 8px 14px;
}

.portfolio-features-empty {
  color: #94a3b8;
  font-size: 0.82rem;
  padding: 8px 4px;
}

.portfolio-feature {
  position: absolute;
  top: calc(6px + var(--feature-level, 0) * 26px);
  /* Anchor diamond on the date mark; text grows to the right so diamonds stay aligned */
  transform: translateX(-6px);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 220px;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  z-index: 1;
}

.portfolio-feature--unlist {
  position: relative;
  top: auto;
  left: auto;
  transform: none;
  display: inline-flex;
  margin: 4px 12px 4px 0;
}

.portfolio-feature__icon {
  flex-shrink: 0;
  width: 11px;
  height: 11px;
  margin-left: 0;
  background: #0f766e;
  transform: rotate(45deg);
  border-radius: 1px;
  box-shadow: 0 0 0 1px rgba(15, 118, 110, 0.25);
}

.portfolio-feature__text {
  min-width: 0;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  white-space: nowrap;
}

.portfolio-feature__name {
  font-size: 0.84rem;
  font-weight: 700;
  color: #152238;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
}

.portfolio-feature__date {
  font-size: 0.78rem;
  font-weight: 650;
  color: #0f766e;
  line-height: 1.2;
}

/* ═══════════════════════════════════════════════════════════
   Upgraded Design — only when .portfolio-design-upgraded
   ═══════════════════════════════════════════════════════════ */

.portfolio-design-upgraded .portfolio-board {
  border-color: #e2e8f0;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.05);
  border-radius: 16px;
  overflow: visible;
}

.portfolio-design-upgraded .portfolio-months,
.portfolio-design-upgraded .portfolio-project__head,
.portfolio-design-upgraded .portfolio-project__features,
.portfolio-design-upgraded .portfolio-feature-lane {
  grid-template-columns: 300px minmax(640px, 1fr);
}

.portfolio-design-upgraded .portfolio-months {
  background: #f8fafc;
  border-color: #e2e8f0;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.08);
}

.portfolio-design-upgraded .portfolio-months__label {
  color: #64748b; /* slate-500 */
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(241, 245, 249, 0.9);
  border-right-color: #e2e8f0;
}

.portfolio-design-upgraded .portfolio-years__track {
  background: rgba(241, 245, 249, 0.95);
  border-bottom-color: #e2e8f0;
}

.portfolio-design-upgraded .portfolio-years__cell {
  color: #475569;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.portfolio-design-upgraded .portfolio-years__sep {
  background: #cbd5e1;
}

.portfolio-design-upgraded .portfolio-months__cell {
  color: #64748b; /* slate-500 */
  font-size: 0.6875rem; /* ~11px */
  font-weight: 600;
  letter-spacing: 0.08em; /* tracking-wider */
  text-transform: uppercase;
  border-right: none;
}

.portfolio-design-upgraded .portfolio-month-line {
  background: #e2e8f0; /* slate-200 */
}

.portfolio-design-upgraded .portfolio-project {
  border-bottom-color: #f1f5f9;
  transition: background 0.18s ease;
}

.portfolio-design-upgraded .portfolio-project:hover,
.portfolio-design-upgraded .portfolio-project:hover .portfolio-project__head,
.portfolio-design-upgraded .portfolio-project:hover .portfolio-project__builds {
  background: rgba(248, 250, 252, 0.9);
}

.portfolio-design-upgraded .portfolio-project:hover .portfolio-project__name {
  background: #f1f5f9;
}

.portfolio-design-upgraded .portfolio-project--open:hover .portfolio-project__name,
.portfolio-design-upgraded .portfolio-project:hover .portfolio-project__name--open {
  background: #dceaf8;
  border-right-color: #93c5fd;
  box-shadow: inset 3px 0 0 #3b82f6;
}

.portfolio-design-upgraded .portfolio-project:hover .portfolio-feature-lane:not(.portfolio-feature-lane--alt),
.portfolio-design-upgraded .portfolio-project:hover .portfolio-feature-lane:not(.portfolio-feature-lane--alt) .portfolio-feature-lane__track {
  background: #ffffff;
}

.portfolio-design-upgraded .portfolio-project:hover .portfolio-feature-lane--alt,
.portfolio-design-upgraded .portfolio-project:hover .portfolio-feature-lane--alt .portfolio-feature-lane__track {
  background: #f1f5f9;
}

.portfolio-design-upgraded .portfolio-project:hover .portfolio-feature-lane:not(.portfolio-feature-lane--alt) .portfolio-feature-lane__label:not(.is-clone) {
  background: #fafbfc;
}

.portfolio-design-upgraded .portfolio-project:hover .portfolio-feature-lane--alt .portfolio-feature-lane__label:not(.is-clone) {
  background: #e8eef5;
}

.portfolio-design-upgraded .portfolio-project__name {
  background: #f8fafc;
  border-right-color: #e2e8f0;
  color: #2563eb;
}

/* Open state: features + builds visible — tint the project/drops name card. */
.portfolio-design-upgraded .portfolio-project--open .portfolio-project__name,
.portfolio-design-upgraded .portfolio-project__name--open {
  background: #e8f1fb;
  border-right-color: #93c5fd;
  box-shadow: inset 3px 0 0 #3b82f6;
}

.portfolio-design-upgraded .portfolio-project--open .portfolio-project__title,
.portfolio-design-upgraded .portfolio-project__name--open .portfolio-project__title {
  color: #1d4ed8;
}

.portfolio-design-upgraded .portfolio-project--open .portfolio-drop-manager {
  background: #f5f9ff;
  border-color: #bfdbfe;
}

.portfolio-design-upgraded .portfolio-project__title {
  color: #2563eb;
  font-weight: 750;
  letter-spacing: -0.01em;
}

.portfolio-design-upgraded .portfolio-project__builds {
  background: #fff;
}

.portfolio-design-upgraded .portfolio-project--sidebar-features:not(.portfolio-project--content-hidden) .portfolio-project__head {
  background: #fff;
}

.portfolio-design-upgraded .portfolio-project--sidebar-features:not(.portfolio-project--content-hidden) .portfolio-project__name {
  background: #e8f1fb;
  border-right-color: #93c5fd;
  box-shadow: inset 3px 0 0 #3b82f6;
}

.portfolio-design-upgraded .portfolio-project--sidebar-features:not(.portfolio-project--content-hidden) .portfolio-project__builds {
  background: #fff;
}

.portfolio-design-upgraded .portfolio-build {
  top: var(--build-top, 8px);
  height: 28px; /* h-7 */
  min-width: max-content;
  width: auto;
  padding: 0 12px; /* px-3 */
  border: 1px solid transparent;
  box-shadow: none;
  justify-content: center;
  align-items: center;
  overflow: visible;
  background: #f8fafc;
  color: #334155;
  border-color: #e2e8f0;
}

/* Soft pastel phase palette (matches icon-chip language) */
.portfolio-design-upgraded .portfolio-build[data-phase="evt"] {
  background: #f0f9ff; /* sky-50 */
  border-color: #bae6fd; /* sky-200 */
  color: #0369a1; /* sky-700 */
}

.portfolio-design-upgraded .portfolio-build[data-phase="dvt"] {
  background: #f0fdfa; /* teal-50 */
  border-color: #99f6e4; /* teal-200 */
  color: #0f766e; /* teal-700 */
}

.portfolio-design-upgraded .portfolio-build[data-phase="pvt"] {
  background: #fff1f2; /* rose-50 */
  border-color: #fecdd3; /* rose-200 */
  color: #be123c; /* rose-700 */
}

.portfolio-design-upgraded .portfolio-build[data-phase="mp"] {
  background: #eef2ff; /* indigo-50 */
  border-color: #c7d2fe; /* indigo-200 */
  color: #4338ca; /* indigo-700 */
}

.portfolio-design-upgraded .portfolio-build[data-phase="other"] {
  background: #fffbeb; /* amber-50 */
  border-color: #fde68a; /* amber-200 */
  color: #b45309; /* amber-700 */
}

.portfolio-design-upgraded .portfolio-build__name {
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-shadow: none;
  text-align: center;
  color: inherit;
  width: auto;
  max-width: none;
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
}

.portfolio-design-upgraded .portfolio-feature-lane {
  border-top: 1px solid #e2e8f0;
  background: #ffffff;
}

.portfolio-design-upgraded .portfolio-feature-lane--alt {
  background: #f8fafc;
}

.portfolio-design-upgraded .portfolio-feature-lane__label {
  background: #fafbfc;
  border-right-color: #e2e8f0;
  gap: 10px;
  padding: 10px 12px;
}

.portfolio-design-upgraded .portfolio-feature-lane--alt .portfolio-feature-lane__label {
  background: #eef2f7;
}

.portfolio-design-upgraded .portfolio-feature-lane__label.is-clone,
.portfolio-design-upgraded .portfolio-feature-lane--alt .portfolio-feature-lane__label.is-clone {
  background: #d1d5db;
}

.portfolio-design-upgraded .portfolio-project:hover .portfolio-feature-lane__label.is-clone {
  background: #d1d5db;
}

.portfolio-design-upgraded .portfolio-feature-lane__track {
  background: #fff;
  min-height: 48px;
}

.portfolio-design-upgraded .portfolio-feature-lane--alt .portfolio-feature-lane__track {
  background: #f8fafc;
}

.portfolio-design-upgraded .portfolio-feature-list__name {
  color: #0f172a;
  font-weight: 700;
  font-size: 0.86rem;
}

.portfolio-design-upgraded .portfolio-feature-lane__label .feature-involvement--portfolio {
  gap: 4px;
}

.portfolio-design-upgraded .portfolio-feature-lane__label .feature-involvement--portfolio .feature-involvement__labels,
.portfolio-design-upgraded .portfolio-feature-lane__label .feature-involvement--portfolio .feature-involvement__cells {
  grid-template-columns: repeat(4, 20px);
  gap: 5px;
}

.portfolio-design-upgraded .portfolio-feature-lane__label .feature-involvement--portfolio .feature-involvement__label {
  font-size: 0.66rem;
  font-weight: 650;
  color: #475569;
}

.portfolio-design-upgraded .portfolio-feature-lane__label .feature-involvement--portfolio .feature-involvement__cell {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  border: 1.5px solid #cbd5e1;
  background: transparent;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.15);
}

.portfolio-design-upgraded .portfolio-feature-lane__label .feature-involvement--portfolio .feature-involvement__cell.is-active {
  background: #bfdbfe;
  border-color: #60a5fa;
  box-shadow: none;
}

.portfolio-design-upgraded .portfolio-feature-legend {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: #000000;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.2;
}

.portfolio-design-upgraded .portfolio-toolbar .portfolio-feature-legend {
  justify-self: end;
  margin-left: 0;
}

.portfolio-design-upgraded .portfolio-feature-legend__title {
  color: #000000;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.portfolio-design-upgraded .portfolio-feature-legend__sep {
  color: #000000;
  font-weight: 700;
}

.portfolio-design-upgraded .portfolio-feature-legend__track {
  display: inline-flex;
  align-items: center;
  gap: 0;
  min-width: 148px;
  padding: 3px 4px;
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
}

.portfolio-design-upgraded .portfolio-feature-legend__phase {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}

.portfolio-design-upgraded .portfolio-feature-legend__caption {
  font-size: 0.6rem;
  font-weight: 650;
  color: #475569;
  white-space: nowrap;
  line-height: 1.1;
}

.portfolio-design-upgraded .portfolio-feature-legend__rail {
  display: block;
  flex: 1 1 auto;
  min-width: 28px;
  width: 36px;
  height: 3px;
  margin: 0 4px;
  margin-bottom: 12px; /* optically align with icon centers above captions */
  border-radius: 999px;
  background: rgba(22, 163, 74, 0.35);
}

.portfolio-design-upgraded .portfolio-feature-bar,
.portfolio-design-upgraded .portfolio-feature-bar--icons {
  top: 10px;
  height: 28px;
  padding: 0 2px;
  gap: 4px;
  border: none;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.1);
  box-shadow: inset 0 0 0 1px rgba(22, 163, 74, 0.14);
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.portfolio-design-upgraded .portfolio-feature-bar--clone {
  justify-content: center;
  padding: 0 10px;
  background: linear-gradient(180deg, #f1f3f6 0%, #d8dde5 100%);
  box-shadow: inset 0 0 0 1px rgba(100, 116, 139, 0.28);
  overflow: hidden;
}

.portfolio-design-upgraded .portfolio-feature-bar__rail {
  display: block;
  flex: 1 1 auto;
  min-width: 8px;
  height: 3px;
  margin: 0 2px;
  border-radius: 999px;
  background: rgba(22, 163, 74, 0.35);
}

.portfolio-design-upgraded .portfolio-feature-bar__chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #ecfdf5; /* emerald-50 */
  color: #047857; /* emerald-700 */
  border: 1px solid #6ee7b7; /* emerald-300 */
  cursor: default;
}

.portfolio-design-upgraded .portfolio-feature-bar__chip .portfolio-phase-icon {
  display: block;
  width: 13px;
  height: 13px;
  stroke: currentColor;
}

.portfolio-design-upgraded .portfolio-feature-legend__phase .portfolio-feature-bar__chip {
  width: 22px;
  height: 22px;
}

.portfolio-design-upgraded .portfolio-feature-legend__phase .portfolio-phase-icon {
  width: 12px;
  height: 12px;
}

.portfolio-design-upgraded .portfolio-feature-bar__label {
  display: none;
}

.portfolio-design-upgraded .portfolio-feature-list__toggle--open {
  background: linear-gradient(180deg, #f3eefe 0%, #e8ddf8 100%);
  border-color: #d4c4ef;
  color: #5b3d8a;
  font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 1px 3px rgba(91, 61, 138, 0.08);
}

.portfolio-design-upgraded .portfolio-feature-list__toggle--closed {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #475569;
  font-weight: 500;
  box-shadow: none;
}

/* Concept / Doron portfolio legend */
.portfolio-feature-legend__hint {
  font-size: 0.72rem;
  font-weight: 550;
  color: #64748b;
}

.feature-involvement--concept .feature-involvement__cell {
  cursor: pointer;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  transition: background 0.12s ease, border-color 0.12s ease;
}

.feature-involvement--concept .feature-involvement__cell:hover {
  border-color: #94a3b8;
}

.feature-involvement--concept .feature-involvement__cell.is-active {
  box-shadow: none;
}

.feature-involvement--concept-locked {
  cursor: not-allowed;
}

.feature-involvement--concept-locked .feature-involvement__cell {
  cursor: not-allowed;
  pointer-events: none;
  opacity: 0.95;
}

.portfolio-feature-lane__track--concept {
  display: block;
  position: relative;
  min-height: 96px;
  padding: 0 8px;
  overflow: visible;
}

.portfolio-phase-select {
  display: inline-flex;
  flex-shrink: 0;
  width: 118px;
  max-width: 118px;
}

.portfolio-phase-select__control {
  width: 100%;
  min-width: 0;
  max-width: 118px;
  height: 26px;
  padding: 0 6px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #fff;
  color: #334155;
  font-size: 0.68rem;
  font-weight: 650;
  line-height: 1.2;
  cursor: pointer;
}

.portfolio-phase-select__control:hover,
.portfolio-phase-select__control:focus {
  border-color: #94a3b8;
  outline: none;
}

/* Concept test: drops / App Rel. per project */
.portfolio-drop-manager {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 6px 7px;
  border: 1px solid #dbe3ec;
  border-radius: 8px;
  background: #fff;
}

.portfolio-drop-manager__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-width: 0;
}

.portfolio-drop-manager__title {
  font-size: 0.64rem;
  font-weight: 750;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #64748b;
}

.portfolio-drop-manager__add {
  flex-shrink: 0;
  padding: 2px 7px;
  border: 1px solid #bfdbfe;
  border-radius: 6px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 0.66rem;
  font-weight: 700;
  line-height: 1.4;
  cursor: pointer;
}

.portfolio-drop-manager__add:hover {
  background: #dbeafe;
  border-color: #93c5fd;
}

.portfolio-drop-manager__list {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 4px;
  width: 100%;
  min-width: 0;
  /* Height grows with wrapped chips — do not clip */
}

.portfolio-drop-manager__empty {
  font-size: 0.66rem;
  font-weight: 550;
  color: #94a3b8;
}

.portfolio-drop-chip {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3px 5px;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 3px 8px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #f8fafc;
  cursor: pointer;
  overflow: hidden; /* never paint outside the rounded card */
  vertical-align: top;
  text-align: left;
  line-height: 1.3;
}

.portfolio-drop-chip:hover {
  border-color: #94a3b8;
  background: #f1f5f9;
}

.portfolio-drop-chip--release {
  border-color: #c4b5fd;
  background: #f5f3ff;
}

.portfolio-drop-chip--release:hover {
  border-color: #a78bfa;
  background: #ede9fe;
}

.portfolio-drop-chip__name {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  font-size: 0.68rem;
  font-weight: 700;
  color: #1e293b;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.portfolio-drop-chip__meta {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3px 5px;
  flex: 0 1 auto;
  min-width: 0;
  max-width: 100%;
}

.portfolio-drop-chip__date {
  flex: 0 1 auto;
  min-width: 0;
  font-size: 0.62rem;
  font-weight: 600;
  color: #64748b;
  white-space: nowrap;
}

.portfolio-drop-chip--delayed {
  border-color: #fca5a5;
  background: #fef2f2;
}

.portfolio-drop-chip--delayed:hover {
  border-color: #f87171;
  background: #fee2e2;
}

.portfolio-drop-chip__delayed {
  flex: 0 0 auto;
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #dc2626;
  white-space: nowrap;
}

.portfolio-feature-drop {
  display: inline-flex;
  flex-shrink: 0;
  width: 108px;
  max-width: 108px;
}

.portfolio-feature-drop__control {
  width: 100%;
  min-width: 0;
  height: 26px;
  padding: 0 6px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #fff;
  color: #334155;
  font-size: 0.68rem;
  font-weight: 650;
  line-height: 1.2;
  cursor: pointer;
}

.portfolio-feature-drop__control:hover,
.portfolio-feature-drop__control:focus {
  border-color: #94a3b8;
  outline: none;
}

.portfolio-feature-drop__control:disabled {
  background: #f1f5f9;
  color: #94a3b8;
  cursor: not-allowed;
}

.portfolio-concept-test .portfolio-feature-lane__controls {
  flex-wrap: wrap;
  row-gap: 6px;
}

.portfolio-concept-test .portfolio-feature-lane__controls .portfolio-feature-drop {
  align-self: flex-end;
}

.portfolio-phase-markers {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.portfolio-phase-marker {
  --marker-stack: 0;
  --marker-stack-mid: 0;
  --marker-pitch: 58px;
  --label-row: 0;
  --label-side: 0;
  --label-row-pitch: 1.2em;
  position: absolute;
  top: 50%;
  left: 0;
  transform: translate(-50%, -50%)
    translateY(calc((var(--marker-stack) - var(--marker-stack-mid)) * var(--marker-pitch)));
  display: block;
  pointer-events: auto;
  z-index: 3;
}

.portfolio-phase-marker__circle {
  display: block;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 3px solid #16a34a;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.18);
  padding: 0;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.portfolio-phase-marker__circle:hover {
  transform: scale(1.06);
  box-shadow: 0 0 0 5px rgba(34, 197, 94, 0.26);
}

.portfolio-phase-marker--qa .portfolio-phase-marker__circle {
  width: 34px;
  height: 34px;
  margin: 5px;
  border-radius: 5px;
  border-color: #ca8a04;
  background: #eab308;
  box-shadow: 0 0 0 4px rgba(234, 179, 8, 0.22);
  transform: rotate(45deg);
}

.portfolio-phase-marker--qa .portfolio-phase-marker__circle:hover {
  transform: rotate(45deg) scale(1.06);
  box-shadow: 0 0 0 5px rgba(234, 179, 8, 0.3);
}

.portfolio-phase-marker__label {
  position: absolute;
  top: calc(100% + 4px + var(--label-row) * var(--label-row-pitch));
  left: 50%;
  transform: translateX(calc(-50% + var(--label-side) * 44px));
  font-size: 0.82rem;
  font-weight: 750;
  letter-spacing: 0.02em;
  color: #334155;
  white-space: nowrap;
  line-height: 1.1;
  pointer-events: auto;
  cursor: default;
}

.portfolio-phase-marker__label--above {
  top: auto;
  bottom: calc(100% + 4px + var(--label-row) * var(--label-row-pitch));
}

.portfolio-phase-marker__label--compact {
  font-size: 0.76rem;
  letter-spacing: 0.01em;
}

.portfolio-phase-marker--qa .portfolio-phase-marker__label {
  color: #a16207;
}

.portfolio-srd-dialog__danger {
  color: #b91c1c;
  border-color: #fecaca;
}

.portfolio-srd-dialog__danger:hover {
  background: #fef2f2;
  border-color: #fca5a5;
}

/* Legacy pipeline styles kept inert if any old markup appears */
.portfolio-phase-pipeline {
  display: none;
}
