/**
 * Portfolio & roadmaps workspace — v2 responsive revamp.
 * Loaded after workspace-modern.css (extends/overrides).
 */

.workspace-panel--v2 {
  --pf-bg: #ffffff;
  --pf-bg-soft: #fffdf8;
  --pf-border: rgba(231, 201, 120, 0.7);
  --pf-text: #3f0f19;
  --pf-text-soft: #7a4b12;
  --pf-accent: #b91c1c;
  --pf-gold: #a16207;
  --pf-radius: 0;
  --pf-shadow: none;

  min-height: 0 !important;
  height: auto !important;
  background: var(--pf-bg) !important;
  border: 1px solid var(--pf-border) !important;
  box-shadow: var(--pf-shadow) !important;
}/* ── Command bar (portfolio header) ─────────────────────── */
.portfolio-command-bar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  padding: 0.9rem 1.1rem !important;
  margin: 0 !important;
  border-bottom: 1px solid rgba(231, 201, 120, 0.38) !important;
  background: #ffffff !important;
  gap: 0.75rem !important;
}.portfolio-command-intro {
  display: flex;
  align-items: stretch;
  min-width: 0;
  flex: 1 1 auto;
}.portfolio-identity {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
  width: 100%;
}.portfolio-identity__avatar {
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #fff;
  background: linear-gradient(145deg, #ea580c 0%, #b91c1c 52%, #9f1239 100%);
  box-shadow: 0 2px 10px rgba(185, 28, 28, 0.16);
  user-select: none;
}.portfolio-identity__avatar--empty {
  background: linear-gradient(145deg, #a8a29e 0%, #78716c 100%);
  box-shadow: none;
  color: rgba(255, 255, 255, 0.92);
}.portfolio-identity--locked .portfolio-identity__avatar {
  filter: saturate(0.72);
}.portfolio-identity__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.12rem;
  min-width: 0;
  flex: 1;
}.portfolio-identity__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  min-width: 0;
}.portfolio-identity__label {
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(122, 75, 18, 0.52);
}.portfolio-identity__title,
.workspace-panel--v2 .portfolio-title,
.workspace-panel--v2 .roadmaps-header-title {
  margin: 0 !important;
  font-size: clamp(1.12rem, 2.1vw, 1.3rem) !important;
  font-weight: 700 !important;
  letter-spacing: -0.03em !important;
  line-height: 1.2 !important;
  color: var(--pf-text) !important;
  text-transform: none !important;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}.portfolio-identity__subtitle,
.workspace-panel--v2 .portfolio-subtitle,
.workspace-panel--v2 .roadmaps-header-subtitle {
  margin: 0 !important;
  font-size: 0.8125rem !important;
  line-height: 1.4 !important;
  color: rgba(122, 75, 18, 0.68) !important;
  max-width: none !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}.portfolio-subtitle--empty {
  display: none !important;
}.portfolio-badges {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.28rem;
  margin: 0;
}.portfolio-status-badge,
.portfolio-demo-badge,
.portfolio-super-admin-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.1rem 0.42rem;
  border-radius: 5px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.25;
  white-space: nowrap;
}.portfolio-demo-badge {
  color: #b45309;
  background: rgba(254, 243, 199, 0.55);
  border: 1px solid rgba(251, 191, 36, 0.35);
}.portfolio-super-admin-badge {
  color: #6d28d9;
  background: rgba(237, 233, 254, 0.85);
  border: 1px solid rgba(167, 139, 250, 0.4);
}.portfolio-command-controls {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.5rem;
  width: 100%;
}/* View tabs — single-row segmented control with optional overflow menu */
.workspace-panel--v2 .portfolio-view-tabs.view-toggle-group.view-toggle-group--portfolio {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch !important;
  width: 100% !important;
  min-width: 0 !important;
  overflow: visible !important;
  padding: 0.22rem !important;
  gap: 0.22rem !important;
  border-radius: 12px !important;
  border: 1px solid rgba(231, 201, 120, 0.55) !important;
  background: rgba(254, 243, 199, 0.42) !important;
  box-shadow: inset 0 1px 2px rgba(63, 15, 25, 0.04) !important;
}.workspace-panel--v2 .portfolio-view-tabs-overflow[hidden] {
  display: none !important;
}.workspace-panel--v2 .portfolio-view-tabs-track {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0.22rem;
  min-width: 0;
  overflow: hidden;
}.workspace-panel--v2 .portfolio-view-tabs[data-view-tabs-mode="duo"] .portfolio-view-tabs-track,
.workspace-panel--v2 .portfolio-view-tabs .portfolio-view-tabs-track {
  flex: none;
  width: 100%;
  min-width: 0;
}.workspace-panel--v2 .portfolio-view-tabs[data-view-tabs-mode="duo"] .portfolio-view-tabs-track .view-toggle-btn,
.workspace-panel--v2 .portfolio-view-tabs .portfolio-view-tabs-track .view-toggle-btn {
  flex: 1 1 100% !important;
  width: 100% !important;
  min-width: 0 !important;
  justify-content: center !important;
}.workspace-panel--v2 .portfolio-view-tabs[data-view-tabs-mode="duo"] .portfolio-view-tabs-overflow,
.workspace-panel--v2 .portfolio-view-tabs .portfolio-view-tabs-overflow {
  flex: none;
  width: 100%;
  min-width: 0;
}.workspace-panel--v2 .portfolio-view-tabs[data-view-tabs-mode="duo"] .portfolio-view-tabs-more-btn,
.workspace-panel--v2 .portfolio-view-tabs .portfolio-view-tabs-more-btn {
  width: 100% !important;
  min-width: 0 !important;
  justify-content: center !important;
}.workspace-panel--v2 .portfolio-view-tabs-overflow {
  position: relative;
  flex: 0 0 auto;
  display: flex;
  align-items: stretch;
}.workspace-panel--v2 .portfolio-view-tabs-more-btn {
  flex: 0 0 auto !important;
  min-width: 3.35rem !important;
  padding: 0.35rem 0.55rem !important;
  color: var(--pf-text-soft, #7a4b12) !important;
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
}.workspace-panel--v2 .portfolio-view-tabs-more-btn.view-toggle-btn--active,
.workspace-panel--v2 .portfolio-view-tabs-more-btn.portfolio-view-tabs-more-btn--active {
  color: var(--pf-text-soft, #7a4b12) !important;
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
}.workspace-panel--v2 .portfolio-view-tabs--overflow-open .portfolio-view-tabs-more-btn {
  background: rgba(255, 255, 255, 0.72) !important;
  border-color: rgba(231, 201, 120, 0.55) !important;
}.workspace-panel--v2 .portfolio-view-tabs-more-menu {
  position: absolute;
  top: calc(100% + 0.35rem);
  right: 0;
  z-index: 40;
  display: none;
  flex-direction: column;
  gap: 0.28rem;
  min-width: 10.5rem;
  padding: 0.42rem;
  border-radius: 12px;
  border: 1px solid rgba(231, 201, 120, 0.55);
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(63, 15, 25, 0.12);
  animation: portfolio-view-tabs-menu-in 0.18s ease;
}.portfolio-view-tabs-more-menu__title {
  margin: 0;
  padding: 0.12rem 0.42rem 0.22rem;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(122, 75, 18, 0.72);
}.portfolio-view-tabs-more-menu__list {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
}.portfolio-view-tabs-more-chevron {
  display: none;
  flex: 0 0 auto;
}.workspace-panel--v2 .portfolio-view-tabs--overflow-open .portfolio-view-tabs-more-menu:not([hidden]) {
  display: flex;
}

@keyframes portfolio-view-tabs-menu-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}.workspace-panel--v2 .portfolio-view-tabs-more-menu .view-toggle-btn {
  width: 100% !important;
  flex: none !important;
  justify-content: flex-start !important;
  min-height: 40px !important;
  padding: 0.38rem 0.55rem !important;
}.workspace-panel--v2 .portfolio-view-tabs--overflow-open {
  z-index: 35;
}.workspace-panel--v2 .portfolio-view-tabs .view-toggle-btn {
  flex: none !important;
  min-width: 0 !important;
  min-height: 40px !important;
  padding: 0.35rem 0.4rem !important;
  margin: 0 !important;
  border-radius: 9px !important;
  border: 1px solid transparent !important;
  background: transparent !important;
  color: var(--pf-text-soft, #7a4b12) !important;
  font-size: 0.76rem !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.32rem !important;
  box-shadow: none !important;
  transform: none !important;
  filter: none !important;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease !important;
}

@media (hover: hover) and (pointer: fine) {
  .workspace-panel--v2 .portfolio-view-tabs .view-toggle-btn:hover:not(.view-toggle-btn--active):not([aria-selected="true"]) {
    background: rgba(255, 255, 255, 0.65) !important;
    color: var(--pf-text, #3f0f19) !important;
    border-color: rgba(231, 201, 120, 0.45) !important;
    box-shadow: none !important;
    transform: none !important;
    filter: none !important;
  }
}.workspace-panel--v2 .portfolio-view-tabs .view-toggle-btn:focus-visible {
  outline: 2px solid rgba(185, 28, 28, 0.45) !important;
  outline-offset: 2px !important;
  box-shadow: none !important;
}.workspace-panel--v2 .portfolio-view-tabs .view-toggle-btn--active,
.workspace-panel--v2 .portfolio-view-tabs .view-toggle-btn[aria-selected="true"] {
  background: #fff !important;
  color: var(--pf-accent, #b91c1c) !important;
  border-color: rgba(185, 28, 28, 0.18) !important;
  box-shadow: 0 1px 3px rgba(185, 28, 28, 0.12) !important;
  transform: none !important;
  filter: none !important;
}

@media (hover: hover) and (pointer: fine) {
  .workspace-panel--v2 .portfolio-view-tabs .view-toggle-btn--active:hover,
  .workspace-panel--v2 .portfolio-view-tabs .view-toggle-btn[aria-selected="true"]:hover {
    background: #fff !important;
    color: var(--pf-accent, #b91c1c) !important;
    border-color: rgba(185, 28, 28, 0.28) !important;
    box-shadow: 0 2px 6px rgba(185, 28, 28, 0.14) !important;
    transform: none !important;
    filter: none !important;
  }
}.workspace-panel--v2 .portfolio-view-tabs .view-toggle-btn:disabled {
  opacity: 0.45 !important;
  cursor: not-allowed !important;
  background: transparent !important;
  color: var(--pf-text-soft, #7a4b12) !important;
  box-shadow: none !important;
  transform: none !important;
  filter: none !important;
}.workspace-panel--v2 .portfolio-view-tabs .view-tab-icon {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  stroke: currentColor;
  opacity: 0.85;
}.workspace-panel--v2 .portfolio-view-tabs .view-toggle-btn--active .view-tab-icon,
.workspace-panel--v2 .portfolio-view-tabs .view-toggle-btn[aria-selected="true"] .view-tab-icon {
  opacity: 1;
  color: var(--pf-accent, #b91c1c);
}.workspace-panel--v2 .portfolio-view-tabs .view-tab-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}/* Touch devices: prevent sticky hover/focus rings after tap */
@media (hover: none) and (pointer: coarse) {
  .workspace-panel--v2 .portfolio-view-tabs .view-toggle-btn:hover:not(.view-toggle-btn--active):not([aria-selected="true"]) {
    background: transparent !important;
    color: var(--pf-text-soft, #7a4b12) !important;
    border-color: transparent !important;
    box-shadow: none !important;
  }

  .workspace-panel--v2 .portfolio-view-tabs .view-toggle-btn--active:hover,
  .workspace-panel--v2 .portfolio-view-tabs .view-toggle-btn[aria-selected="true"]:hover {
    background: #fff !important;
    color: var(--pf-accent, #b91c1c) !important;
  }

  .workspace-panel--v2 .portfolio-view-tabs .view-toggle-btn:focus:not(.view-toggle-btn--active):not([aria-selected="true"]) {
    background: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
  }
}

@media (max-width: 480px) {
  .workspace-panel--v2 .portfolio-view-tabs-more-menu {
    left: 0;
    right: 0;
    min-width: 0;
  }
}/* Fullscreen: keep view tabs tappable; suppress stuck hover/focus on touch */
html.has-view-fullscreen .workspace-panel--v2 .portfolio-view-tabs,
.roadmaps-view.view-pseudo-fullscreen .portfolio-view-tabs {
  pointer-events: auto;
  position: relative;
  z-index: 3;
}html.has-view-fullscreen .workspace-panel--v2 .portfolio-view-tabs .view-toggle-btn,
.roadmaps-view.view-pseudo-fullscreen .portfolio-view-tabs .view-toggle-btn {
  cursor: pointer;
}

@media (hover: none), (pointer: coarse) {
  html.has-view-fullscreen .workspace-panel--v2 .portfolio-view-tabs .view-toggle-btn:hover:not(.view-toggle-btn--active):not([aria-selected="true"]),
  .roadmaps-view.view-pseudo-fullscreen .portfolio-view-tabs .view-toggle-btn:hover:not(.view-toggle-btn--active):not([aria-selected="true"]) {
    background: transparent !important;
    border-color: transparent !important;
    color: var(--pf-text-soft, #7a4b12) !important;
    box-shadow: none !important;
  }

  html.has-view-fullscreen .workspace-panel--v2 .portfolio-view-tabs .view-toggle-btn:focus:not(.view-toggle-btn--active):not([aria-selected="true"]),
  .roadmaps-view.view-pseudo-fullscreen .portfolio-view-tabs .view-toggle-btn:focus:not(.view-toggle-btn--active):not([aria-selected="true"]) {
    background: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
    outline: none !important;
  }
}html:not(.has-view-fullscreen) .workspace-panel--v2 .portfolio-view-tabs .view-toggle-btn[title] {
  /* Never show native title tooltips on view tabs after fullscreen exit */
  pointer-events: auto;
}/* After fullscreen exit: suppress stuck tap highlight on inactive tabs */
html:not(.has-view-fullscreen):not(.pseudo-view-fullscreen) .workspace-panel--v2 .portfolio-view-tabs .view-toggle-btn:not(.view-toggle-btn--active):not([aria-selected="true"]) {
  background: transparent !important;
  border-color: transparent !important;
  color: var(--pf-text-soft, #7a4b12) !important;
  box-shadow: none !important;
}.portfolio-action-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  width: 100%;
}.workspace-panel--v2 .portfolio-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.35rem !important;
  min-height: 42px !important;
  padding: 0.5rem 0.9rem !important;
  border-radius: 11px !important;
  font-size: 0.84rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.01em !important;
  text-transform: none !important;
  box-shadow: none !important;
  filter: none !important;
  flex: 1 1 8rem;
}.workspace-panel--v2 .portfolio-btn--primary,
.workspace-panel--v2 #addRoadmapBtn.portfolio-btn--primary {
  background: linear-gradient(135deg, #b91c1c, #991b1b) !important;
  color: #fffaf5 !important;
  border: 1px solid rgba(127, 29, 29, 0.2) !important;
  box-shadow: 0 4px 12px rgba(185, 28, 28, 0.22) !important;
}.workspace-panel--v2 .portfolio-btn--primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #991b1b, #7f1d1d) !important;
}.workspace-panel--v2 .portfolio-btn--danger,
.workspace-panel--v2 #bulkDeleteBtn.portfolio-btn--danger {
  background: #fff5f5 !important;
  color: #991b1b !important;
  border: 1px solid rgba(220, 38, 38, 0.35) !important;
}.workspace-panel--v2 .portfolio-btn--danger:hover:not(:disabled) {
  background: #fee2e2 !important;
  border-color: rgba(185, 28, 28, 0.5) !important;
}.workspace-panel--v2 .portfolio-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}/* ── Filters drawer ─────────────────────────────────────── */
.portfolio-filters-drawer {
  border: none !important;
  border-bottom: 1px solid var(--pf-border) !important;
  border-radius: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  background: var(--pf-bg-soft) !important;
}.workspace-panel--v2 .portfolio-filters-drawer.filters-shell {
  padding: 0 !important;
}.portfolio-filters-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.65rem;
  padding: 0.7rem 1.15rem;
  cursor: pointer;
  list-style: none;
  user-select: none;
  background: var(--pf-bg-soft);
  position: relative;
  padding-right: 2.25rem;
  transition: background 0.16s ease;
}.portfolio-filters-summary:hover {
  background: rgba(185, 28, 28, 0.045);
}.portfolio-filters-summary:focus-visible {
  outline: 2px solid var(--pf-accent, #b91c1c);
  outline-offset: -2px;
}.portfolio-filters-summary::-webkit-details-marker {
  display: none;
}.portfolio-filters-summary::after {
  content: "▾";
  position: absolute;
  right: 1.15rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--pf-gold);
  font-size: 0.9rem;
  transition: transform 0.2s ease;
}.portfolio-filters-drawer[open] .portfolio-filters-summary::after {
  transform: translateY(-50%) rotate(180deg);
}.portfolio-filters-drawer[open] .portfolio-filters-summary {
  border-bottom: 1px solid rgba(231, 201, 120, 0.35);
}.portfolio-filters-drawer:not([open]) .portfolio-filters-summary-hint {
  display: inline;
}.portfolio-filters-drawer[open] .portfolio-filters-summary-hint {
  display: none;
}.portfolio-filters-summary-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--pf-text);
}.portfolio-filters-summary-hint {
  font-size: 0.72rem;
  color: var(--pf-text-soft);
  flex: 1 1 auto;
}.portfolio-filters-badge {
  margin-left: auto;
}.portfolio-filters-body {
  padding: 0 1.25rem 1.05rem;
}.portfolio-filters-toolbar {
  margin-bottom: 0.65rem !important;
  padding-top: 0.35rem;
}.workspace-panel--v2 .filters-title {
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  color: var(--pf-gold) !important;
}.workspace-panel--v2 .filters-quick-label {
  font-size: 0.78rem !important;
  color: var(--pf-text-soft) !important;
  margin-top: 0.15rem;
}.workspace-panel--v2 .filters-layout {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}.workspace-panel--v2 .filters-block {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0.55rem 0.65rem 0.65rem;
  border-radius: 12px;
  border: 1px solid rgba(231, 201, 120, 0.38);
  background: linear-gradient(180deg, rgba(255, 253, 248, 0.95) 0%, #ffffff 100%);
  box-shadow: 0 1px 3px rgba(63, 15, 25, 0.04);
}.workspace-panel--v2 .filters-block--search {
  border-color: rgba(217, 119, 6, 0.35);
  background: linear-gradient(180deg, #fffdf8 0%, #ffffff 100%);
  padding: 0.72rem 0.82rem 0.82rem;
}.workspace-panel--v2 .filters-block__title {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pf-gold, #a16207);
}.workspace-panel--v2 .filters-block__title--advanced {
  color: var(--pf-text-soft, #78716c);
}.workspace-panel--v2 .filters-row {
  display: grid !important;
  grid-template-columns: 1fr;
  gap: 0.55rem !important;
  align-items: end !important;
}.workspace-panel--v2 .filters-row--search {
  grid-template-columns: 1fr;
  gap: 0.65rem !important;
}

@media (min-width: 560px) {
  .workspace-panel--v2 .filters-row--search {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}.workspace-panel--v2 .filters-row--quick {
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .workspace-panel--v2 .filters-row--quick {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}.workspace-panel--v2 .filters-row--advanced {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}.workspace-panel--v2 .filters-row--leads {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: flex-end !important;
  gap: 0.5rem !important;
  width: 100% !important;
  margin: 0 0 0.45rem !important;
  box-sizing: border-box;
}.workspace-panel--v2 .filters-row--leads > .filter-group {
  flex: 1 1 0 !important;
  min-width: 0 !important;
  max-width: none !important;
  width: auto !important;
}.workspace-panel--v2 .filters-row--leads .filter-group--compact {
  flex: 1 1 0 !important;
}.workspace-panel--v2 .filters-row--leads .filter-group label {
  display: block;
  width: 100%;
  min-height: 1.35rem;
  margin-bottom: 0.3rem !important;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}.workspace-panel--v2 .filters-row--leads .filter-autocomplete,
.workspace-panel--v2 .filters-row--leads .filter-autocomplete input[type="search"] {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box;
}

@media (min-width: 900px) {
  .workspace-panel--v2 .filters-row--advanced {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .workspace-panel--v2 .filters-row--advanced {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}/* Owner profile filter: only when Super Admin toggle is on (not merely trust profile). */
#filterOwnerProfileGroup,
.super-admin-filter-group {
  display: none !important;
}html.is-super-admin-mode #filterOwnerProfileGroup:not([hidden]),
html.is-super-admin-mode .super-admin-filter-group:not([hidden]) {
  display: flex !important;
  flex-direction: column;
  min-width: 0;
}.workspace-panel--v2 .filter-group--search {
  min-width: 0;
  padding-inline: 0.08rem;
}.workspace-panel--v2 .filter-group--autocomplete {
  min-width: 0;
  padding-inline: 0.08rem;
}.workspace-panel--v2 .filter-group--autocomplete .filter-autocomplete {
  width: 100%;
}.workspace-panel--v2 .filter-group label {
  font-size: 0.72rem !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  color: var(--pf-gold) !important;
  margin-bottom: 0.3rem !important;
}.workspace-panel--v2 .filters-row input,
.workspace-panel--v2 .filters-row select,
.workspace-panel--v2 .filter-countries-toggle {
  min-height: 42px !important;
  border-radius: 10px !important;
  font-size: 0.88rem !important;
}.workspace-panel--v2 .filter-autocomplete__control input[type="search"],
.workspace-panel--v2 .filter-autocomplete__control .filter-autocomplete__input,
.portfolio-filters-body .filter-autocomplete__control input[type="search"],
.portfolio-filters-body .filter-autocomplete__control .filter-autocomplete__input {
  min-height: 0 !important;
  height: auto !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  padding: 0 !important;
}/* Filter combobox (roadmap title, label, RACI leads) */
.filter-autocomplete {
  position: relative;
  width: 100%;
  min-width: 0;
}.filter-autocomplete__control {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.55rem;
  min-height: 42px;
  padding: 0.55rem 0.75rem;
  border-radius: 12px;
  box-sizing: border-box;
  border: 1px solid rgba(212, 175, 55, 0.44);
  background: linear-gradient(180deg, #fffdfb 0%, #ffffff 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 1px 3px rgba(127, 29, 29, 0.06);
  transition:
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    background-color 0.16s ease,
    transform 0.12s ease;
}.filter-autocomplete__control:hover {
  border-color: rgba(185, 28, 28, 0.32);
  background: linear-gradient(180deg, #fffaf4 0%, #ffffff 100%);
}.filter-autocomplete__control--open,
.filter-autocomplete__field--open .filter-autocomplete__control {
  border-color: rgba(217, 119, 6, 0.72);
  background: #ffffff;
  box-shadow:
    0 0 0 3px rgba(251, 191, 36, 0.2),
    0 10px 24px rgba(127, 29, 29, 0.08);
}.filter-autocomplete__icon {
  flex: 0 0 auto;
  width: 1.75rem;
  height: 1.75rem;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(254, 243, 199, 0.58);
  color: #b45309;
}.filter-autocomplete__icon svg {
  display: block;
}.filter-autocomplete input[type="search"],
.filter-autocomplete__input {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  min-height: 0 !important;
  height: auto !important;
  border-radius: 0 !important;
  line-height: 1.25;
  text-align: center;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: normal;
  color: var(--pf-text, #3f0f19) !important;
  -webkit-font-smoothing: antialiased;
  -webkit-appearance: none;
  appearance: none;
}.filter-autocomplete__chevron {
  flex: 0 0 auto;
}.filter-autocomplete--has-value input[type="search"],
.filter-autocomplete--has-value .filter-autocomplete__input {
  font-weight: 650;
  color: #3f0f19 !important;
}.filter-autocomplete input[type="search"]:focus,
.filter-autocomplete__input:focus {
  outline: none !important;
  box-shadow: none !important;
}.filter-autocomplete input[type="search"]::placeholder,
.filter-autocomplete__input::placeholder {
  color: rgba(122, 75, 18, 0.52);
  font-weight: 500;
}.filter-autocomplete input[type="search"]::-webkit-search-cancel-button,
.filter-autocomplete__input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
  display: none;
}.filter-autocomplete__chevron {
  flex: 0 0 auto;
  width: 1.75rem;
  height: 1.75rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.4) !important;
  background: rgba(255, 251, 235, 0.95) !important;
  color: #b45309 !important;
  padding: 0 !important;
  min-height: 0 !important;
  box-shadow: none !important;
  cursor: pointer;
  transition: transform 0.18s ease, background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}.filter-autocomplete__chevron:hover,
.filter-autocomplete__chevron:focus-visible {
  background: rgba(254, 243, 199, 0.95) !important;
  border-color: rgba(217, 119, 6, 0.48) !important;
  color: #c2410c !important;
  outline: none;
  box-shadow: 0 0 0 2px rgba(251, 191, 36, 0.22) !important;
}.filter-autocomplete__field--open .filter-autocomplete__chevron {
  transform: rotate(180deg);
  background: rgba(254, 243, 199, 0.9) !important;
  border-color: rgba(217, 119, 6, 0.45) !important;
  color: #c2410c !important;
}.filter-autocomplete__field--open {
  position: relative;
  z-index: 120;
}.filter-autocomplete__field--open .filter-autocomplete__dropdown {
  z-index: 121;
}.filter-autocomplete__dropdown,
.filter-autocomplete__dropdown--portaled {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}.filter-autocomplete__dropdown {
  position: absolute;
  top: calc(100% + 0.4rem);
  left: 0;
  right: 0;
  z-index: 55;
  max-height: min(280px, 42dvh);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  border: 1px solid rgba(212, 175, 55, 0.58);
  background: linear-gradient(180deg, #ffffff 0%, #fffdf8 100%);
  box-shadow:
    0 22px 48px rgba(127, 29, 29, 0.14),
    0 8px 20px rgba(15, 23, 42, 0.06);
  transform-origin: top center;
  animation: filter-autocomplete-dropdown-in 0.18s cubic-bezier(0.22, 1, 0.36, 1);
}@keyframes filter-autocomplete-dropdown-in {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}.filter-autocomplete__dropdown[hidden] {
  display: none !important;
  animation: none;
}.filter-autocomplete__list {
  list-style: none;
  margin: 0;
  padding: 0.35rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}.filter-autocomplete__option {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  width: 100%;
  padding: 0.52rem 0.58rem;
  border: none !important;
  border-radius: 10px !important;
  background: transparent !important;
  color: var(--pf-text, #3f0f19) !important;
  font-size: 0.84rem !important;
  font-weight: 500 !important;
  letter-spacing: normal !important;
  text-transform: none !important;
  text-align: left;
  box-shadow: none !important;
  cursor: pointer;
  transition: background 0.12s ease, transform 0.12s ease;
}.filter-autocomplete__option:hover,
.filter-autocomplete__option--highlight {
  background: linear-gradient(90deg, rgba(254, 243, 199, 0.72), rgba(254, 226, 226, 0.35)) !important;
  transform: translateX(1px);
}.filter-autocomplete__option mark {
  padding: 0 0.05em;
  border-radius: 2px;
  background: rgba(251, 191, 36, 0.45);
  color: inherit;
  font-weight: 700;
}.filter-autocomplete__option-icon {
  flex-shrink: 0;
  width: 1.4rem;
  height: 1.4rem;
  display: grid;
  place-items: center;
  border-radius: 7px;
  font-size: 0.7rem;
  font-weight: 800;
  background: rgba(254, 243, 199, 0.72);
  color: #b45309;
}.filter-autocomplete__option-text {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}.filter-autocomplete__empty {
  margin: 0;
  padding: 0.65rem 0.75rem 0.75rem;
  font-size: 0.78rem;
  color: #78716c;
  font-style: italic;
}

@media (max-width: 599px) {
  .filter-autocomplete__control {
    min-height: 44px;
    padding: 0.55rem 0.75rem;
    gap: 0.5rem;
  }
  .filter-autocomplete__chevron {
    width: 1.85rem;
    height: 1.85rem;
  }
  .filter-autocomplete__dropdown {
    max-height: min(240px, 38dvh);
  }
}

@media (prefers-reduced-motion: reduce) {
  .filter-autocomplete__dropdown {
    animation: none;
  }
  .filter-autocomplete__option:hover,
  .filter-autocomplete__option--highlight {
    transform: none;
  }
  .filter-autocomplete__chevron {
    transition: background-color 0.16s ease, border-color 0.16s ease;
  }
}.workspace-panel--v2 .portfolio-filter-btn,
.workspace-panel--v2 .filters-reset-btn,
.workspace-panel--v2 .filters-toggle-btn {
  min-height: 38px !important;
  border-radius: 9px !important;
  font-size: 0.78rem !important;
  font-weight: 600 !important;
}/* Super admin toggle: only on workspace trust profile (e.g. Rifqi Tjahyono). */
.super-admin-toggle-slot,
#superAdminToggleWrap {
  display: none !important;
}html.is-workspace-trust-profile .super-admin-toggle-slot:not([hidden]),
html.is-workspace-trust-profile #superAdminToggleWrap:not([hidden]) {
  display: block !important;
}html.is-workspace-trust-profile #superAdminToggleWrap:not([hidden]) {
  display: inline-flex !important;
}.super-admin-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
  user-select: none;
  padding: 0.35rem 0.55rem;
  border-radius: 9px;
  border: 1px solid rgba(217, 119, 6, 0.45);
  background: rgba(255, 251, 235, 0.9);
}.super-admin-toggle[hidden] {
  display: none !important;
}.super-admin-toggle input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}.super-admin-toggle__track {
  width: 2.1rem;
  height: 1.15rem;
  border-radius: 999px;
  background: #e7e5e4;
  border: 1px solid #d6d3d1;
  position: relative;
  flex-shrink: 0;
  transition: background 0.15s ease, border-color 0.15s ease;
}.super-admin-toggle__track::after {
  content: "";
  position: absolute;
  top: 1px;
  left: 1px;
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: transform 0.15s ease;
}.super-admin-toggle input:checked + .super-admin-toggle__track {
  background: #f59e0b;
  border-color: #d97706;
}.super-admin-toggle input:checked + .super-admin-toggle__track::after {
  transform: translateX(0.95rem);
}.super-admin-toggle__label {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #92400e;
}.roadmap-owner-profile-pill,
.roadmaps-table-card__owner-pill {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 650;
  color: #78350f;
  background: #fff7ed;
  border: 1px solid #fdba74;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}.roadmaps-table-card__owner-pill {
  flex-shrink: 0;
  max-width: 42%;
}html.is-super-admin-mode .super-admin-only-column:not([hidden]) {
  display: table-cell !important;
}html.is-super-admin-mode col.super-admin-only-column:not([hidden]) {
  display: table-column !important;
}.roadmap-owner-profile-wrap select {
  width: 100%;
}.scrum-board-card-owner-pill,
.moscow-board-card-owner-pill {
  flex: 0 1 auto;
  max-width: min(48%, 9rem);
  margin-left: auto;
}.scrum-board-card-title-row,
.moscow-board-card-title-row {
  flex-wrap: wrap;
  gap: 0.25rem 0.35rem;
}.super-admin-toggle-slot--mobile {
  margin-top: 0;
  width: auto;
  flex-shrink: 0;
}html.is-compact-layout .super-admin-toggle-slot--mobile {
  display: none !important;
}html.is-compact-layout .super-admin-toggle-slot--actions:not([hidden]) {
  display: flex !important;
  align-items: center;
  width: 100%;
}html.is-desktop-layout .super-admin-toggle-slot--actions {
  display: none !important;
}.super-admin-toggle-slot--mobile .portfolio-super-admin-toggle {
  width: auto;
  justify-content: flex-start;
  padding: 0.35rem 0.5rem;
}

@media (max-width: 1400px) {
  .profile-picker-bar:not([hidden]) {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.35rem;
  }

  .profile-picker-bar:not([hidden]) .profile-picker-bar__label {
    display: none;
  }

  .profile-picker-bar:not([hidden]) .profile-picker {
    flex: 1 1 auto;
    min-width: 0;
  }

  .portfolio-action-group .super-admin-toggle-slot--desktop[hidden] {
    display: none !important;
  }
}html.filters-drawer-collapsed .portfolio-filters-drawer:not([open]) {
  border-bottom-color: rgba(231, 201, 120, 0.45);
}html.filters-drawer-open .portfolio-filters-body {
  animation: portfolio-filters-body-in 0.18s ease-out;
}

@keyframes portfolio-filters-body-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}/* ── Stage (views container) ─────────────────────────────── */
.portfolio-stage {
  flex: 0 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: visible;
  -webkit-overflow-scrolling: touch;
}.workspace-panel--v2 .portfolio-view,
.workspace-panel--v2 .roadmaps-view {
  flex: 1 1 auto;
  min-height: 0;
  overflow: visible;
  padding: 0 1.15rem 1.15rem !important;
}.portfolio-view-bar,
.workspace-panel--v2 .workspace-view-toolbar {
  padding: 0.75rem 0 0.5rem !important;
  border-bottom: 1px dashed rgba(231, 201, 120, 0.45);
  margin-bottom: 0.5rem;
}/* Table scroll hint */
.workspace-panel--v2 .table-wrapper--modern {
  border-radius: 12px !important;
  max-height: min(62vh, 600px);
  box-shadow: inset 0 0 0 1px rgba(231, 201, 120, 0.35);
}.workspace-panel--v2 .table-wrapper--modern::before {
  content: "Swipe horizontally for more columns";
  display: block;
  position: sticky;
  top: 0;
  left: 0;
  z-index: 3;
  padding: 0.35rem 0.65rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--pf-gold);
  background: linear-gradient(180deg, #fffdf8, rgba(255, 253, 248, 0.92));
  border-bottom: 1px solid var(--pf-border);
  pointer-events: none;
}

@media (min-width: 1100px) {
  .workspace-panel--v2 .table-wrapper--modern::before {
    display: none;
  }
}.workspace-panel--v2 .empty-state {
  padding: 2rem 1rem !important;
  font-size: 0.9rem !important;
}/* RACI desktop matrix — scrollable body (matches table shell height) */
@media (min-width: 1025px) {
  html.is-desktop-layout .workspace-panel--v2 .roadmaps-view--raci .raci-matrix-wrap {
    max-height: min(62vh, 600px);
    height: min(62vh, 600px);
  }
}/* Board — mobile horizontal columns */
.workspace-panel--v2 .scrum-board {
  min-height: min(50vh, 480px);
  max-height: min(65vh, 620px);
  padding-bottom: 0.5rem;
}.workspace-panel--v2 .scrum-board-column {
  flex: 0 0 368px;
  width: 368px;
  min-width: 368px;
  max-width: 368px;
}/* Map — fixed height shell; Leaflet fills container (no flex dead space) */
.workspace-panel--v2 .roadmaps-view--map {
  flex: 0 0 auto !important;
  min-height: 0 !important;
  height: auto !important;
  align-self: start !important;
  padding: 0 1.15rem 0.45rem !important;
}.workspace-panel--v2 .roadmaps-map-container {
  flex: 0 0 auto !important;
  position: relative !important;
  width: 100% !important;
  aspect-ratio: 2.05 / 1 !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: min(42vh, 480px) !important;
  border-radius: 12px !important;
  overflow: hidden !important;
}.workspace-panel--v2 .roadmaps-map-container .leaflet-container {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
}.workspace-panel--v2 .roadmaps-map-toolbar {
  flex-wrap: wrap;
  gap: 0.5rem;
}.workspace-panel--v2 .map-metric-picker {
  flex: 1 1 auto;
}/* MoSCoW */
.workspace-panel--v2 .moscow-view-header.view-toolbar {
  display: block !important;
  flex-wrap: unset !important;
  align-items: stretch !important;
  gap: unset !important;
}.workspace-panel--v2 .moscow-grid-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--pf-text);
  flex: 1 1 100%;
}.workspace-panel--v2 .moscow-board-hint {
  flex: 1 1 100%;
  margin: 0;
  font-size: 0.78rem;
  color: var(--pf-text-soft);
}/* ── Profile picker (searchable dropdown,
tablet/phone) ─── */
.profile-picker-bar {
  display: none;
  padding: 0.65rem 0.85rem 0.7rem;
  border-bottom: 1px solid rgba(231, 201, 120, 0.45);
  background: linear-gradient(180deg, #fffdf8 0%, #ffffff 100%);
}.profile-picker-bar__label {
  display: block;
  margin: 0 0 0.35rem;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pf-gold, #a16207);
}.profile-picker {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}.profile-picker__field {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
}.profile-picker__control {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 44px;
  padding: 0.4rem 0.55rem 0.4rem 0.58rem;
  border-radius: 12px;
  border: 1px solid rgba(231, 201, 120, 0.65);
  background: #fff;
  box-shadow: 0 1px 4px rgba(63, 15, 25, 0.05);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}.profile-picker__control:focus-within,
.profile-picker__field--open .profile-picker__control {
  border-color: rgba(185, 28, 28, 0.45);
  box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.1);
}.profile-picker__avatar {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.68rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(145deg, #d97706, #b91c1c 55%, #991b1b);
}.profile-picker__input {
  flex: 1 1 auto;
  min-width: 0;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  min-height: auto !important;
  font-size: 0.88rem !important;
  font-weight: 600 !important;
  letter-spacing: normal !important;
  text-transform: none !important;
  color: var(--pf-text, #3f0f19) !important;
}.profile-picker__input {
  text-align: center !important;
}.profile-picker__input:focus {
  outline: none !important;
  box-shadow: none !important;
}.profile-picker__input::placeholder {
  color: rgba(122, 75, 18, 0.55);
  font-weight: 500;
}.profile-picker__display {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow: none;
}.profile-picker__display-copy {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.06rem;
  align-items: center;
  text-align: center;
}.profile-picker__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 650;
  text-align: center;
}.profile-picker__meta {
  font-size: 0.72rem;
  color: var(--pf-text-soft, #7a4b12);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}.profile-picker__chevron {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--pf-text-soft, #7a4b12);
  transition: transform 0.18s ease;
}.profile-picker__field--open .profile-picker__chevron {
  transform: rotate(180deg);
}.profile-picker__dropdown {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  right: 0;
  z-index: 50;
  max-height: min(320px, 50dvh);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-radius: 14px;
  border: 1px solid rgba(231, 201, 120, 0.65);
  background: #fff;
  box-shadow: 0 12px 40px rgba(63, 15, 25, 0.14), 0 2px 8px rgba(0, 0, 0, 0.06);
}.profile-picker__dropdown[hidden] {
  display: none !important;
}.profile-picker__list {
  list-style: none;
  margin: 0;
  padding: 0.35rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}.profile-picker__option {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  padding: 0.55rem 0.6rem;
  border: none !important;
  border-radius: 10px !important;
  background: transparent !important;
  color: var(--pf-text, #3f0f19) !important;
  font-size: 0.84rem !important;
  font-weight: 500 !important;
  letter-spacing: normal !important;
  text-transform: none !important;
  text-align: left;
  box-shadow: none !important;
  transform: none !important;
  cursor: pointer;
  transition: background 0.12s ease;
}.profile-picker__option:hover,
.profile-picker__option--highlight {
  background: rgba(254, 243, 199, 0.45) !important;
}.profile-picker__option--active {
  background: rgba(254, 243, 199, 0.65) !important;
}.profile-picker__option-avatar {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.68rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(145deg, #d97706, #b91c1c 55%, #991b1b);
}.profile-picker__option-copy {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
}.profile-picker__option-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
}.profile-picker__option-meta {
  font-size: 0.72rem;
  color: var(--pf-text-soft, #7a4b12);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}.profile-picker__option-check {
  flex: 0 0 auto;
  color: var(--pf-accent, #b91c1c);
  opacity: 0;
}.profile-picker__option--active .profile-picker__option-check {
  opacity: 1;
}.profile-picker__option-lock {
  flex: 0 0 auto;
  color: var(--pf-gold, #a16207);
}.profile-picker__empty {
  margin: 0;
  padding: 1rem 0.85rem;
  font-size: 0.82rem;
  color: var(--pf-text-soft, #7a4b12);
  text-align: center;
}.profile-picker__dropdown-footer {
  flex: 0 0 auto;
  padding: 0.35rem;
  border-top: 1px solid rgba(231, 201, 120, 0.45);
  background: linear-gradient(180deg, rgba(255, 253, 248, 0.6), rgba(255, 250, 242, 0.95));
}.profile-picker__dropdown-manage {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  min-height: 42px;
  padding: 0.55rem 0.75rem;
  border: none;
  border-radius: 12px;
  background: transparent;
  color: var(--pf-text-soft, #7a4b12);
  font-size: 0.82rem;
  font-weight: 650;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}.profile-picker__dropdown-manage:hover {
  background: rgba(254, 243, 199, 0.45);
  color: var(--pf-accent, #b91c1c);
}.profile-picker__manage {
  flex: 0 0 auto;
  align-self: stretch;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.35rem !important;
  min-width: 44px !important;
  min-height: 44px !important;
  padding: 0 0.75rem !important;
  border-radius: 12px !important;
  border: 1px solid rgba(231, 201, 120, 0.65) !important;
  background: #fff !important;
  color: var(--pf-text-soft, #7a4b12) !important;
  font-size: 0.76rem !important;
  font-weight: 600 !important;
  letter-spacing: normal !important;
  text-transform: none !important;
  box-shadow: 0 1px 4px rgba(63, 15, 25, 0.05) !important;
  cursor: pointer;
}.profile-picker__manage:hover {
  border-color: rgba(185, 28, 28, 0.35) !important;
  color: var(--pf-accent, #b91c1c) !important;
  background: rgba(254, 243, 199, 0.35) !important;
  transform: none !important;
  filter: none !important;
}/* ── Locked profile unlock panel ─────────────────────────── */
.profile-unlock-panel {
  display: none;
  padding: 1.25rem 1rem 1.5rem;
  background: linear-gradient(180deg, #fffdf8 0%, #ffffff 100%);
}.workspace-panel--profile-locked {
  display: flex;
  flex-direction: column;
  min-height: min(72vh, 720px) !important;
}.workspace-panel--profile-locked .workspace-portfolio-body {
  display: none !important;
}.workspace-panel--profile-locked .portfolio-bottom-bar {
  display: none !important;
}.workspace-panel--profile-locked .profile-unlock-panel {
  display: flex !important;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  width: 100%;
  order: 3;
  min-height: 0;
  padding: 1.5rem 1rem 1.5rem;
  box-sizing: border-box;
}/* Wide layout: toolbar first, unlock card in the content area below */
.workspace-panel--profile-locked > .portfolio-command-bar {
  order: 1;
  margin-top: 0;
  flex-shrink: 0;
}.workspace-panel--profile-locked > .portfolio-filters-drawer {
  order: 2;
  flex-shrink: 0;
}.workspace-panel--profile-locked > .profile-unlock-panel {
  order: 3;
}.profile-unlock-panel__card {
  width: min(100%, 420px);
  margin-inline: auto;
  padding: 1.75rem 1.35rem 1.5rem;
  border-radius: 20px;
  border: 1px solid rgba(231, 201, 120, 0.55);
  background: #fff;
  box-shadow: 0 8px 32px rgba(63, 15, 25, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
  text-align: center;
}.profile-unlock-panel__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: var(--pf-accent, #b91c1c);
  background: linear-gradient(145deg, rgba(254, 243, 199, 0.8), rgba(254, 226, 226, 0.5));
  border: 1px solid rgba(185, 28, 28, 0.12);
}.profile-unlock-panel__title {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--pf-text, #3f0f19);
}.profile-unlock-panel__text {
  margin: 0 0 1.25rem;
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--pf-text-soft, #7a4b12);
}.profile-unlock-panel__form {
  text-align: left;
}.profile-unlock-panel__field-label {
  display: block;
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--pf-gold, #a16207);
}.profile-unlock-panel__field {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}.profile-unlock-panel__password-wrap {
  position: relative;
  display: block;
  width: 100%;
}.profile-unlock-panel__password-wrap input {
  width: 100%;
  min-height: 48px;
  padding: 0.6rem 2.85rem 0.6rem 0.9rem;
  font-size: 0.92rem;
  font-family: inherit;
  color: var(--pf-text, #3f0f19);
  background: #fff;
  border: 1px solid rgba(231, 201, 120, 0.65);
  border-radius: 12px;
  box-sizing: border-box;
}.profile-unlock-panel .profile-password-toggle {
  position: absolute;
  right: 0.4rem;
  top: 0;
  bottom: 0;
  margin: auto 0;
  width: 32px;
  height: 32px;
  min-height: 32px !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: none !important;
  border-radius: 8px !important;
  background: transparent !important;
  color: #7a4b12 !important;
  box-shadow: none !important;
  transform: none !important;
  cursor: pointer;
}.profile-unlock-panel .profile-password-toggle:hover {
  background: rgba(254, 243, 199, 0.55) !important;
  color: #b91c1c !important;
  border: none !important;
  box-shadow: none !important;
  transform: none !important;
}.profile-unlock-panel .profile-password-toggle:focus-visible {
  outline: 2px solid rgba(185, 28, 28, 0.45);
  outline-offset: 1px;
}.profile-unlock-panel .profile-password-toggle svg {
  width: 18px !important;
  height: 18px !important;
  flex-shrink: 0;
}.profile-unlock-panel .profile-password-toggle .icon-eye-off {
  display: none;
}.profile-unlock-panel .profile-password-toggle.is-visible .icon-eye {
  display: none;
}.profile-unlock-panel .profile-password-toggle.is-visible .icon-eye-off {
  display: block;
}.profile-unlock-panel__password-hint {
  margin: 0.35rem 0 0;
  font-size: 0.72rem;
  line-height: 1.35;
  color: var(--pf-text-soft, #7a4b12);
}.profile-unlock-panel__password-wrap input:focus {
  outline: none;
  border-color: rgba(185, 28, 28, 0.45);
  box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.1);
}.profile-unlock-panel__submit {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.45rem !important;
  width: 100%;
  min-height: 48px !important;
  padding: 0.62rem 1rem !important;
  border-radius: 12px !important;
  border: none !important;
  background: linear-gradient(135deg, #b91c1c, #991b1b) !important;
  color: #fff !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  letter-spacing: normal !important;
  text-transform: none !important;
  box-shadow: 0 4px 14px rgba(185, 28, 28, 0.22) !important;
  transform: none !important;
  cursor: pointer;
}.profile-unlock-panel__submit svg {
  display: none !important;
}.profile-unlock-panel__submit:hover {
  filter: brightness(1.03);
  transform: none !important;
}.profile-unlock-panel__error {
  margin: 0.75rem 0 0 !important;
  text-align: center;
  font-size: 0.82rem;
}

@media (max-width: 1400px) {
  .profile-picker-bar:not([hidden]) {
    display: block;
  }

  html.is-compact-layout .workspace-panel--profile-locked {
    min-height: calc(
      100dvh - var(--compact-cockpit-height, 5.5rem) - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 0.75rem
    ) !important;
  }
}

@media (max-width: 640px) {
  .profile-picker-bar {
    padding: 0.55rem 0.65rem 0.6rem;
  }

  .profile-picker__manage-label {
    display: none;
  }

  .profile-picker__manage {
    padding: 0 !important;
    min-width: 44px !important;
  }

  .profile-unlock-panel__card {
    padding: 1.35rem 1rem 1.25rem;
    border-radius: 16px;
  }

  .profile-unlock-panel__icon {
    width: 48px;
    height: 48px;
    margin-bottom: 0.85rem;
  }

  .profile-unlock-panel__title {
    font-size: 1.05rem;
  }
}/* FAB + selection bar — shared bottom dock (compact) */
.portfolio-bottom-bar {
  display: none;
  position: fixed;
  left: max(0.75rem, env(safe-area-inset-left));
  right: max(0.75rem, env(safe-area-inset-right));
  bottom: calc(var(--site-footer-stack-height, 3.25rem) + 0.55rem);
  z-index: 101;
  align-items: stretch;
  gap: 0.5rem;
  pointer-events: none;
  box-sizing: border-box;
  max-width: calc(100vw - 2 * max(0.75rem, env(safe-area-inset-left)));
}.portfolio-bottom-bar > * {
  pointer-events: auto;
}.portfolio-bottom-bar:not(:has(.portfolio-selection-bar--visible:not([hidden]))) {
  justify-content: flex-end;
}/* FAB — mobile/tablet */
.portfolio-fab {
  display: none;
  position: static;
  flex: 0 0 auto;
  align-self: center;
  width: 56px;
  height: 56px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(145deg, #b91c1c, #991b1b);
  color: #fff;
  box-shadow: 0 8px 24px rgba(185, 28, 28, 0.4);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}.portfolio-fab:hover:not(:disabled) {
  transform: scale(1.05);
  box-shadow: 0 10px 28px rgba(185, 28, 28, 0.45);
}.portfolio-fab:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}/* Compact selection bar — phones (header delete hidden; bar appears when rows selected) */
.portfolio-selection-bar {
  display: none;
  position: static;
  flex: 1 1 auto;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.55rem 0.65rem;
  border-radius: 14px;
  border: 1px solid rgba(220, 38, 38, 0.28);
  background: linear-gradient(180deg, #fff 0%, #fff5f5 100%);
  box-shadow: 0 10px 28px rgba(127, 29, 29, 0.18);
}.portfolio-selection-bar[hidden] {
  display: none !important;
}.portfolio-selection-bar--visible:not([hidden]) {
  display: flex;
}.portfolio-selection-bar__count {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--pf-text, #3f0f19);
  min-width: 0;
  flex: 0 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}.portfolio-selection-bar__actions {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  flex-shrink: 1;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}.portfolio-selection-bar__actions::-webkit-scrollbar {
  display: none;
}.portfolio-selection-bar__clear,
.portfolio-selection-bar__delete,
.portfolio-selection-bar__action {
  min-height: 44px;
  padding: 0.45rem 0.75rem;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  touch-action: manipulation;
  text-transform: none;
  letter-spacing: normal;
}html:not(.is-super-admin-mode) .portfolio-selection-bar .super-admin-bulk-action {
  display: none !important;
}.portfolio-selection-bar__clear {
  background: #fff;
  border: 1px solid var(--pf-border, rgba(231, 201, 120, 0.65));
  color: var(--pf-text-soft, #7a4b12);
}.portfolio-selection-bar__delete {
  background: linear-gradient(135deg, #b91c1c, #991b1b) !important;
  border: none !important;
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(185, 28, 28, 0.25);
}.portfolio-selection-bar__duplicate,
.portfolio-selection-bar__move,
.portfolio-selection-bar__edit {
  background: #fff;
  border: 1px solid rgba(180, 83, 9, 0.35);
  color: #92400e;
}.portfolio-selection-bar__duplicate:disabled,
.portfolio-selection-bar__move:disabled,
.portfolio-selection-bar__edit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}.portfolio-selection-bar__delete:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}

@media (min-width: 1401px) {
  .portfolio-bottom-bar {
    display: none !important;
  }

  .portfolio-selection-bar {
    display: none !important;
  }
}

@media (max-width: 1400px) {
  .portfolio-bottom-bar {
    display: flex;
  }

  .portfolio-fab {
    display: inline-flex;
  }

  /* Hide duplicate “New roadmap” on compact — FAB handles create on phone */
  .portfolio-action-group {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    gap: 0.45rem;
  }

  .portfolio-action-group #addRoadmapBtn {
    display: none !important;
  }

  .workspace-panel--v2 {
    min-height: auto !important;
    padding-bottom: 4.5rem;
  }

  .portfolio-command-bar {
    position: sticky;
    top: 0;
  }
}

@media (min-width: 900px) {
  .portfolio-command-bar {
    flex-direction: row !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    padding: 1rem 1.15rem 0.9rem !important;
    gap: 0.85rem 1.25rem !important;
  }

  .portfolio-command-controls {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    width: auto;
    flex: 0 1 auto;
    gap: 0.65rem;
  }

  .workspace-panel--v2 .portfolio-view-tabs.view-toggle-group,
  .workspace-panel--v2 .portfolio-view-tabs.view-toggle-group.view-toggle-group--portfolio {
    width: auto !important;
    flex: 0 0 auto;
    max-width: none;
    min-width: 14.5rem;
  }

  .workspace-panel--v2 .portfolio-view-tabs.view-toggle-group.view-toggle-group--portfolio {
    grid-template-columns: minmax(6.5rem, 1fr) minmax(5.25rem, 0.85fr);
  }

  .workspace-panel--v2 .portfolio-view-tabs .view-toggle-btn {
    min-height: 40px !important;
    padding: 0.4rem 0.65rem !important;
  }

  .workspace-panel--v2 .portfolio-view-tabs-more-menu {
    min-width: 11.5rem;
  }

  .portfolio-action-group {
    flex: 0 0 auto;
    width: auto;
    flex-wrap: nowrap;
  }

  .workspace-panel--v2 .portfolio-btn {
    flex: 0 0 auto;
    min-width: 7.5rem;
  }
}

@media (min-width: 1401px) {
  html.is-desktop-layout .portfolio-command-controls {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 0.65rem !important;
    width: auto !important;
  }

  html.is-desktop-layout .portfolio-action-group {
    flex: 0 0 auto !important;
    width: auto !important;
    flex-wrap: nowrap !important;
  }

  html.is-desktop-layout .workspace-panel--v2 .portfolio-view-tabs.view-toggle-group.view-toggle-group--portfolio {
    width: auto !important;
    flex: 0 0 auto !important;
  }
}

@media (min-width: 1100px) {
  .portfolio-identity__avatar {
    width: 48px;
    height: 48px;
    font-size: 0.84rem;
  }
}/* App layout — stack on tablet/phone (portfolio first) */
@media (max-width: 1400px) {
  .app-layout {
    grid-template-columns: 1fr !important;
    gap: 0.75rem !important;
  }

  .profiles-panel--modern {
    order: 2;
  }

  .workspace-panel--v2 {
    order: 1;
  }

  .workspace-panel.card-plain:not(.workspace-panel--profile-locked) {
    min-height: auto !important;
  }
}

@media (max-width: 1400px) {
  /* Compact portfolio header — stack title above tabs */
  .portfolio-command-bar {
    padding: 0.32rem 0.4rem 0.36rem !important;
    gap: 0.35rem !important;
    flex-direction: column !important;
    align-items: stretch !important;
  }

  /* Hide portfolio identity when profile picker shows context */
  .portfolio-command-bar .portfolio-eyebrow,
  .portfolio-command-bar .workspace-eyebrow {
    display: none !important;
  }

  .profile-picker-bar:not([hidden]) ~ .workspace-portfolio-body .portfolio-identity__body {
    display: none !important;
  }

  .profile-picker-bar:not([hidden]) ~ .workspace-portfolio-body .portfolio-identity__avatar {
    display: none !important;
  }

  .portfolio-command-intro {
    flex: 0 0 auto;
  }

  .portfolio-identity {
    gap: 0.55rem;
  }

  .portfolio-identity__title,
  .workspace-panel--v2 .portfolio-title,
  .workspace-panel--v2 .roadmaps-header-title {
    font-size: 1.02rem !important;
  }

  .portfolio-identity__subtitle,
  .workspace-panel--v2 .portfolio-subtitle,
  .workspace-panel--v2 .roadmaps-header-subtitle {
    font-size: 0.76rem !important;
  }

  .portfolio-command-controls {
    width: 100%;
    order: 2;
  }

  .workspace-panel--v2 .portfolio-view-tabs.view-toggle-group.view-toggle-group--portfolio {
    padding: 0.2rem !important;
    gap: 0.18rem !important;
  }

  .workspace-panel--v2 .portfolio-view-tabs .view-toggle-btn {
    min-height: 42px !important;
  }

  .portfolio-action-group {
    flex-wrap: wrap;
    width: 100%;
  }

  .workspace-panel--v2 .portfolio-btn {
    flex: 1 1 auto;
    min-width: 0;
  }
}

@media (max-width: 640px) {
  .portfolio-command-bar {
    padding: 0.55rem 0.7rem 0.65rem !important;
    gap: 0.45rem !important;
  }

  .workspace-panel--v2 .portfolio-title,
  .workspace-panel--v2 .roadmaps-header-title {
    font-size: 0.98rem !important;
  }

  /* Icon-only tabs on very small screens — keep labels in duo mode */
  .workspace-panel--v2 .portfolio-view-tabs .view-tab-text {
    display: none;
  }

  .workspace-panel--v2 .portfolio-view-tabs .portfolio-view-tabs-track .view-tab-text,
  .workspace-panel--v2 .portfolio-view-tabs .portfolio-view-tabs-more-label {
    display: inline;
  }

  .workspace-panel--v2 .portfolio-view-tabs-more-menu .view-tab-text {
    display: inline;
  }

  .workspace-panel--v2 .portfolio-view-tabs .view-toggle-btn {
    min-height: 44px !important;
    padding: 0.45rem 0.25rem !important;
  }

  .workspace-panel--v2 .portfolio-view-tabs .view-tab-icon {
    width: 18px;
    height: 18px;
  }

  .portfolio-identity {
    gap: 0.65rem;
  }

  .portfolio-identity__avatar {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    font-size: 0.72rem;
  }
}

@media (min-width: 1401px) {
  html.is-desktop-layout .portfolio-identity {
    gap: 0.95rem;
  }

  html.is-desktop-layout .portfolio-identity__avatar {
    width: 50px;
    height: 50px;
    border-radius: 15px;
    font-size: 0.86rem;
  }

  html.is-desktop-layout .portfolio-identity__subtitle,
  html.is-desktop-layout .workspace-panel--v2 .portfolio-subtitle,
  html.is-desktop-layout .workspace-panel--v2 .roadmaps-header-subtitle {
    max-width: 52ch;
  }
}

@media (max-width: 420px) {
  .portfolio-bottom-bar {
    left: max(0.5rem, env(safe-area-inset-left));
    right: max(0.5rem, env(safe-area-inset-right));
    gap: 0.35rem;
    max-width: calc(100vw - 2 * max(0.5rem, env(safe-area-inset-left)));
  }

  .portfolio-bottom-bar .portfolio-fab {
    width: 48px;
    height: 48px;
  }

  .portfolio-selection-bar {
    padding: 0.45rem 0.5rem;
    gap: 0.35rem;
  }

  .portfolio-selection-bar__clear,
  .portfolio-selection-bar__delete,
  .portfolio-selection-bar__action {
    min-height: 40px;
    padding: 0.38rem 0.48rem;
    font-size: 0.74rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .portfolio-fab,
  .portfolio-filters-summary::after {
    transition: none;
  }

  html.filters-drawer-open .portfolio-filters-body {
    animation: none;
  }
}
