/* Portfolio Light & Pastel Card Studio — Matching Attached Reference UI */

:root {
  --app-outer-bg: #e3e6f0;
  --app-shell-bg: #f3f6fd;
  --main-card-bg: #ffffff;
  --text-dark: #1f1c2e;
  --text-secondary: #4a4a68;
  --text-muted: #8a8aa3;
  --navy-primary: #1f1c2e;
  --border-light: #e9edf7;
  --row-height: 42px;
  --header-height: 50px;
  --font-sans: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", Consolas, monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: var(--app-outer-bg);
  color: var(--text-dark);
  font-family: var(--font-sans);
  min-height: 100vh;
  padding: 22px 28px;
  display: flex;
  justify-content: center;
  align-items: stretch;
}

.hidden {
  display: none !important;
}

/* Rounded Outer App Shell matching the reference mockup */
.portfolio-app-container {
  width: 100%;
  max-width: 1680px;
  height: calc(100vh - 44px);
  background: var(--app-shell-bg);
  border-radius: 34px;
  box-shadow: 0 24px 60px rgba(31, 28, 46, 0.12);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Top Header */
.portfolio-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 34px;
  flex-shrink: 0;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 24px;
}

.menu-bars-btn {
  background: transparent;
  border: none;
  width: 26px;
  height: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  padding: 2px 0;
}

.menu-bars-btn span {
  display: block;
  height: 2.5px;
  background: var(--text-dark);
  border-radius: 2px;
}

.menu-bars-btn span:nth-child(1) {
  width: 14px;
  margin-left: 5px;
}

.menu-bars-btn span:nth-child(2) {
  width: 24px;
}

.menu-bars-btn span:nth-child(3) {
  width: 14px;
  margin-left: 5px;
}

.app-brand-title {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: -0.02em;
}

.portfolio-select {
  background: #ffffff;
  border: 1px solid #e2e8f5;
  border-radius: 999px;
  padding: 9px 18px;
  font-family: var(--font-sans);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-dark);
  box-shadow: 0 2px 8px rgba(31, 28, 46, 0.04);
  cursor: pointer;
  outline: none;
  max-width: 310px;
}

.search-box {
  background: #ffffff;
  border-radius: 999px;
  padding: 9px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 320px;
  box-shadow: 0 2px 10px rgba(31, 28, 46, 0.04);
}

.search-icon {
  width: 17px;
  height: 17px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.search-box input {
  border: none;
  background: transparent;
  width: 100%;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  color: var(--text-dark);
  outline: none;
}

.search-box input::placeholder {
  color: #a0a5ba;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.pill-action-btn {
  background: #ffffff;
  border: 1px solid #e1e6f4;
  color: var(--text-dark);
  border-radius: 999px;
  padding: 8px 15px;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(31, 28, 46, 0.04);
  transition: all 0.15s ease;
}

.pill-action-btn:hover {
  background: var(--navy-primary);
  color: #ffffff;
  border-color: var(--navy-primary);
}

.add-circle-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--navy-primary);
  color: #ffffff;
  border: none;
  font-size: 1.25rem;
  font-weight: 600;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 12px rgba(31, 28, 46, 0.22);
  transition: transform 0.15s ease;
}

.add-circle-btn:hover {
  transform: scale(1.06);
}

.notif-btn {
  position: relative;
  background: transparent;
  border: none;
  color: var(--text-dark);
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 4px;
}

.notif-dot {
  position: absolute;
  top: 3px;
  right: 4px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff4d6d;
}

.profile-divider {
  width: 1px;
  height: 28px;
  background: #dce1ef;
  margin: 0 4px;
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
}

.user-name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-dark);
}

/* Main 3-Column Portfolio Body */
.portfolio-body {
  flex: 1;
  display: flex;
  min-height: 0;
  padding: 0 16px 20px 0;
}

/* Left Icon Navigation Rail */
.icon-rail {
  width: 84px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 28px;
  gap: 22px;
  flex-shrink: 0;
}

.rail-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: #7b7f9e;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.18s ease;
}

.rail-btn:hover {
  color: var(--navy-primary);
  background: rgba(31, 28, 46, 0.06);
}

.rail-btn.active {
  background: var(--navy-primary);
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(31, 28, 46, 0.25);
}

/* Center White Rounded Card Section */
.projects-main-section {
  flex: 1;
  background: var(--main-card-bg);
  border-radius: 34px;
  padding: 28px 32px 20px 32px;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  box-shadow: 0 8px 30px rgba(31, 28, 46, 0.04);
}

.projects-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  flex-shrink: 0;
}

.projects-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.projects-section-header h2 {
  font-size: 1.38rem;
  font-weight: 700;
  color: var(--text-dark);
}

.projects-header-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.current-month-label {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
}

.btn-outline-pill {
  background: #f5f7fc;
  border: 1px solid #e1e6f4;
  color: var(--text-dark);
  border-radius: 999px;
  padding: 6px 14px;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-outline-pill:hover {
  background: var(--navy-primary);
  color: #ffffff;
}

.btn-dark-pill {
  background: var(--navy-primary);
  color: #ffffff;
  border: none;
  border-radius: 999px;
  padding: 8px 18px;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

.btn-dark-pill:hover {
  background: #322d49;
}

/* Master / Child Navigation Strip */
.mc-nav-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.mc-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f4f6fc;
  border: 1px solid #e4e9f7;
  color: var(--text-secondary);
  padding: 6px 14px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.mc-tab:hover {
  background: #e9eefb;
  color: var(--text-dark);
}

.mc-tab.active {
  background: var(--navy-primary);
  border-color: var(--navy-primary);
  color: #ffffff;
}

.mc-tab-meta {
  font-size: 0.7rem;
  opacity: 0.8;
}

/* Soft Alert Banners */
.soft-banner {
  border-radius: 18px;
  padding: 12px 18px;
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.soft-banner-amber {
  background: #fff5e5;
  border: 1px solid #ffd599;
  color: #7c4a03;
}

.soft-banner-rose {
  background: #ffe8ee;
  border: 1px solid #ffb3c6;
  color: #881337;
}

.soft-banner-content {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.82rem;
}

.soft-banner-icon {
  font-size: 1.3rem;
}

.cycle-quick-fixes {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.cycle-fix-btn {
  background: #e11d48;
  color: #ffffff;
  border: none;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
}

/* Status Counters & View Switcher Row */
.projects-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
  flex-shrink: 0;
}

.status-counters {
  display: flex;
  align-items: center;
  gap: 34px;
}

.status-counter {
  display: flex;
  flex-direction: column;
  position: relative;
}

.status-counter:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -19px;
  bottom: 5px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  border: 1.5px solid #b5b9ce;
}

.counter-number {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.15;
}

.counter-type {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}

.view-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mini-agent-dots {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-right: 10px;
  cursor: pointer;
}

.agent-stage-chip {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f1f4fb;
  color: var(--text-secondary);
}

.agent-stage-chip.PASSED {
  background: #d8f8e5;
  color: #157347;
}

.agent-stage-chip.HALTED,
.agent-stage-chip.FAILED {
  background: #ffd8e2;
  color: #b02a37;
}

.agent-stage-chip.AWAITING_INPUT {
  background: #ffe8cc;
  color: #b45309;
}

.view-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.view-btn.active,
.view-btn:hover {
  background: #f0f3fb;
  color: var(--text-dark);
}

/* Pastel Project Cards Grid (Exact match to reference image) */
.project-boxes-grid {
  flex: 1;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
  padding: 4px 6px 18px 2px;
  align-content: start;
}

.pastel-card-wrap {
  position: relative;
  padding-bottom: 10px;
}

/* Decorative stacked lines underneath card like in the mockup */
.pastel-card-wrap::before,
.pastel-card-wrap::after {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  height: 4px;
  border-radius: 4px;
  opacity: 0.55;
}

.pastel-card-wrap::before {
  bottom: 4px;
  background: var(--card-accent-soft, #fbd3b0);
}

.pastel-card-wrap::after {
  bottom: 0;
  left: 28%;
  right: 28%;
  background: var(--card-accent-soft, #fbd3b0);
  opacity: 0.35;
}

.project-box {
  border-radius: 28px;
  padding: 20px 22px;
  background: var(--card-bg, #eef7fe);
  box-shadow: 0 10px 26px rgba(31, 28, 46, 0.05);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.project-box:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(31, 28, 46, 0.09);
}

/* Pastel Card Color Themes */
.theme-blue {
  --card-bg: #eef7fe;
  --card-bar: #00a8e8;
  --card-pill-bg: #d9f0ff;
  --card-pill-text: #0077b6;
  --card-accent-soft: #cde8fe;
}

.theme-peach {
  --card-bg: #fee4cb;
  --card-bar: #ff8533;
  --card-pill-bg: #ffffff;
  --card-pill-text: #ff7b24;
  --card-accent-soft: #fbd0a7;
}

.theme-mint {
  --card-bg: #baf3d2;
  --card-bar: #1eb960;
  --card-pill-bg: #ffffff;
  --card-pill-text: #199c50;
  --card-accent-soft: #96e8b8;
}

.theme-pink {
  --card-bg: #ffd3e2;
  --card-bar: #ec407a;
  --card-pill-bg: #ffffff;
  --card-pill-text: #d81b60;
  --card-accent-soft: #f9b4cc;
}

.theme-lavender {
  --card-bg: #e9e7fd;
  --card-bar: #5a4ad1;
  --card-pill-bg: #ffffff;
  --card-pill-text: #4f3ff0;
  --card-accent-soft: #cfc9fa;
}

.theme-yellow {
  --card-bg: #fff3c4;
  --card-bar: #f59e0b;
  --card-pill-bg: #ffffff;
  --card-pill-text: #d97706;
  --card-accent-soft: #fde68a;
}

.box-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.box-date {
  font-size: 0.78rem;
  color: #5c5f78;
  font-weight: 500;
}

.box-more-btn {
  background: transparent;
  border: none;
  color: var(--text-dark);
  font-size: 1.15rem;
  font-weight: 700;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 6px;
}

.box-content-header {
  text-align: center;
  margin-bottom: 16px;
}

.box-content-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 3px;
}

.box-content-subtitle {
  font-size: 0.82rem;
  color: #555870;
  font-weight: 500;
}

.box-agent-caption {
  display: inline-block;
  margin-top: 5px;
  font-size: 0.69rem;
  font-weight: 600;
  color: #3f4259;
  background: rgba(255, 255, 255, 0.55);
  padding: 2px 10px;
  border-radius: 999px;
}

.box-progress-wrapper {
  margin-bottom: 14px;
}

.box-progress-header {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 7px;
}

.box-progress-bar {
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.75);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 6px;
}

.box-progress {
  display: block;
  height: 100%;
  background: var(--card-bar, #00a8e8);
  border-radius: 999px;
}

.box-progress-percentage {
  text-align: right;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-dark);
}

.project-box-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.65);
}

.participants {
  display: flex;
  align-items: center;
}

.participants img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--card-bg, #ffffff);
  margin-left: -6px;
}

.participants img:first-child {
  margin-left: 0;
}

.add-participant {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: none;
  background: var(--card-bar, #00a8e8);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  margin-left: 5px;
  cursor: pointer;
}

.days-left-pill {
  background: var(--card-pill-bg, #ffffff);
  color: var(--card-pill-text, #0077b6);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.76rem;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(31, 28, 46, 0.04);
}

/* Right Sidebar: Client & Agent Workflow Messages Feed */
.messages-section {
  width: 360px;
  padding: 20px 10px 10px 24px;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.messages-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 12px 18px 4px;
  border-bottom: 1px solid #e1e6f4;
}

.messages-header h2 {
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--text-dark);
}

.messages-header-actions {
  display: flex;
  gap: 8px;
}

.icon-circle-sm {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: #ffffff;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(31, 28, 46, 0.06);
}

.messages-list {
  flex: 1;
  overflow-y: auto;
  padding: 6px 6px 12px 0;
}

.message-box {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 14px;
  border-bottom: 1px solid #e4e8f5;
  transition: all 0.18s ease;
  cursor: pointer;
}

/* Elevated Floating Card Effect matching Stephanie's card in the reference image */
.message-box.featured,
.message-box:hover {
  background: #ffffff;
  border-radius: 20px;
  border-bottom-color: transparent;
  box-shadow: 0 12px 28px rgba(31, 28, 46, 0.08);
  margin: 6px 0;
}

.message-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.message-content {
  flex: 1;
  min-width: 0;
}

.message-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
}

.message-name {
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--text-dark);
}

.star-btn {
  background: transparent;
  border: none;
  font-size: 0.95rem;
  color: var(--text-dark);
  cursor: pointer;
}

.message-line {
  font-size: 0.8rem;
  color: #5c5f78;
  line-height: 1.42;
}

.message-line.time {
  text-align: right;
  font-size: 0.72rem;
  color: #969ab0;
  margin-top: 6px;
}

/* Embedded Interactive WBS + Gantt Timeline View inside the White Main Card */
.gantt-embedded-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  border: 1px solid var(--border-light);
  border-radius: 20px;
  overflow: hidden;
  background: #fafbfe;
}

.gantt-controls-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: #f3f6fd;
  border-bottom: 1px solid var(--border-light);
  flex-shrink: 0;
}

.segmented-control {
  display: inline-flex;
  background: #ffffff;
  border: 1px solid #dce2f2;
  border-radius: 999px;
  overflow: hidden;
}

.seg-btn {
  background: transparent;
  border: none;
  padding: 5px 13px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
}

.seg-btn.active {
  background: var(--navy-primary);
  color: #ffffff;
}

.soft-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
}

.gantt-workspace {
  flex: 1;
  display: grid;
  grid-template-columns: 520px 1fr;
  min-height: 0;
  overflow: hidden;
}

.wbs-pane {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--border-light);
  background: #ffffff;
  min-height: 0;
}

.wbs-header-row {
  height: var(--header-height);
  display: grid;
  grid-template-columns: 52px 1fr 54px 76px 52px 56px 46px 50px;
  align-items: center;
  background: #f6f8fd;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0 8px;
  flex-shrink: 0;
}

.wbs-body {
  flex: 1;
  overflow-y: auto;
}

.wbs-row {
  height: var(--row-height);
  display: grid;
  grid-template-columns: 52px 1fr 54px 76px 52px 56px 46px 50px;
  align-items: center;
  border-bottom: 1px solid #f0f3fa;
  padding: 0 8px;
  font-size: 0.78rem;
}

.wbs-row:hover {
  background: #f8faff;
}

.wbs-row.is-project-group {
  background: #f0edfe;
  font-weight: 700;
}

.wbs-row.is-conflict {
  background: #ffe8ee;
}

.wbs-cell-name {
  display: flex;
  align-items: center;
  gap: 5px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.wbs-toggle-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 0.7rem;
  color: var(--text-secondary);
}

.task-id-pill {
  font-family: var(--font-mono);
  font-size: 0.69rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 6px;
  background: #eef2fb;
  color: #3b5bdb;
}

.task-id-pill.critical {
  background: #ffe0e9;
  color: #d6336c;
}

.inline-input {
  width: 92%;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 4px;
  padding: 2px 4px;
  font-size: 0.75rem;
  color: var(--text-dark);
}

.inline-input:hover,
.inline-input:focus {
  border-color: #cbd5e1;
  background: #ffffff;
}

.pert-val {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.icon-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 0.78rem;
  padding: 2px 4px;
}

/* Gantt Canvas Right Pane */
.canvas-pane {
  display: flex;
  flex-direction: column;
  overflow: auto;
  background: #ffffff;
  position: relative;
}

.canvas-header {
  height: var(--header-height);
  position: sticky;
  top: 0;
  z-index: 12;
  background: #f6f8fd;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.canvas-header-top,
.canvas-header-bottom {
  display: flex;
  height: 25px;
  align-items: center;
}

.time-cell-top {
  font-size: 0.69rem;
  font-weight: 700;
  color: var(--text-secondary);
  padding-left: 8px;
  border-right: 1px solid var(--border-light);
  height: 100%;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.time-cell-bottom {
  font-size: 0.65rem;
  color: var(--text-muted);
  border-right: 1px solid #f0f3fa;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.canvas-body {
  position: relative;
  flex: 1;
}

.canvas-grid-lines {
  position: absolute;
  inset: 0;
  display: flex;
  pointer-events: none;
}

.grid-col-line {
  height: 100%;
  border-right: 1px solid #f2f4fb;
  flex-shrink: 0;
}

.grid-col-line.weekend {
  background: rgba(243, 246, 253, 0.65);
}

.canvas-connectors {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
}

.canvas-rows {
  position: relative;
  z-index: 5;
}

.canvas-row {
  height: var(--row-height);
  border-bottom: 1px solid #f0f3fa;
  position: relative;
  display: flex;
  align-items: center;
}

.gantt-bar-group {
  position: absolute;
  height: 24px;
  top: 9px;
  display: flex;
  align-items: center;
  cursor: pointer;
}

.gantt-rollup-bar {
  position: absolute;
  height: 12px;
  top: 15px;
  background: #e9e7fd;
  border: 1.5px solid #6c5ce7;
  border-radius: 999px;
  z-index: 3;
}

.gantt-core-bar {
  position: absolute;
  top: 0;
  bottom: 0;
  border-radius: 999px;
  background: #00a8e8;
  overflow: hidden;
  display: flex;
  align-items: center;
  z-index: 5;
}

.gantt-core-bar.critical {
  background: #ff6b8b;
}

.gantt-progress-fill {
  height: 100%;
  background: rgba(255, 255, 255, 0.35);
}

.gantt-buffer-bar {
  position: absolute;
  top: 2px;
  bottom: 2px;
  border-radius: 0 999px 999px 0;
  background: repeating-linear-gradient(
    -45deg,
    #fee4cb,
    #fee4cb 5px,
    #ffd1a6 5px,
    #ffd1a6 10px
  );
  border: 1px dashed #ff8533;
  z-index: 4;
}

.gantt-bar-label {
  position: absolute;
  left: 10px;
  font-size: 0.69rem;
  font-weight: 700;
  color: var(--text-dark);
  white-space: nowrap;
  z-index: 6;
  pointer-events: none;
}

.footer-caption {
  font-size: 0.74rem;
  color: var(--text-muted);
  padding-top: 10px;
  flex-shrink: 0;
}

/* Badges */
.type-badge {
  font-size: 0.67rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
}

.type-master {
  background: #e9e7fd;
  color: #4f3ff0;
}

.type-new-impl {
  background: #d9f0ff;
  color: #0077b6;
}

.type-close-cleanse {
  background: #c8f7dc;
  color: #199c50;
}

.type-migration {
  background: #fee4cb;
  color: #d96b1f;
}

.type-enhancement {
  background: #ffd3e2;
  color: #d81b60;
}

.type-cloud-devops {
  background: #cffafe;
  color: #0e7490;
}

.type-ai-ml {
  background: #ede9fe;
  color: #6d28d9;
}

.type-security {
  background: #fef3c7;
  color: #b45309;
}

.type-ma-carveout {
  background: #fce7f3;
  color: #be185d;
}

.type-erp-rollout {
  background: #e0e7ff;
  color: #3730a3;
}

.type-dr-cutover {
  background: #ffe4e6;
  color: #be123c;
}

.type-unidentified {
  background: #ffe8cc;
  color: #b45309;
}

/* Slide-Over Inspector Drawer & Modals (Clean Light Theme) */
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 560px;
  background: #ffffff;
  border-left: 1px solid var(--border-light);
  z-index: 90;
  display: flex;
  flex-direction: column;
  box-shadow: -16px 0 40px rgba(31, 28, 46, 0.14);
}

.drawer-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.drawer-subtitle {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.drawer-tabs {
  display: flex;
  gap: 8px;
  padding: 12px 24px;
  background: #f6f8fd;
  border-bottom: 1px solid var(--border-light);
}

.drawer-tab {
  border: none;
  background: transparent;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
}

.drawer-tab.active {
  background: var(--navy-primary);
  color: #ffffff;
}

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

.drawer-pane {
  display: none;
}

.drawer-pane.active {
  display: block;
}

.trace-card,
.risk-card {
  background: #f7f9fe;
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 10px;
  font-size: 0.8rem;
}

.json-viewer {
  background: #1f1c2e;
  color: #e2e8f0;
  border-radius: 16px;
  padding: 16px;
  font-size: 0.74rem;
  overflow: auto;
  max-height: calc(100vh - 200px);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(31, 28, 46, 0.42);
  backdrop-filter: blur(4px);
  display: grid;
  place-items: center;
  z-index: 100;
}

.modal {
  background: #ffffff;
  border-radius: 28px;
  width: 520px;
  max-width: 94vw;
  box-shadow: 0 24px 60px rgba(31, 28, 46, 0.22);
  overflow: hidden;
}

.modal.modal-wide {
  width: 820px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 26px;
  border-bottom: 1px solid var(--border-light);
}

.modal-subtitle {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.modal-close-btn {
  background: #f3f6fd;
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  font-weight: 700;
}

.modal-form {
  padding: 20px 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.modal-form label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 5px;
}

.modal-form input,
.modal-form select {
  width: 100%;
  background: #f6f8fd;
  border: 1px solid #dde3f3;
  border-radius: 12px;
  padding: 10px 14px;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--text-dark);
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-row-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}

.pert-fieldset {
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 12px;
}

.pert-fieldset legend {
  font-size: 0.72rem;
  color: var(--text-muted);
  padding: 0 6px;
}

.form-help {
  display: block;
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-top: 6px;
  line-height: 1.45;
}

.modal-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
}

.modal-footer-right {
  display: flex;
  gap: 10px;
}

.btn-danger-soft {
  background: #ffe3e8;
  color: #c92a2a;
  border: none;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}

/* Sub-Project Type Resolution Table */
.resolve-table-wrap {
  max-height: 340px;
  overflow-y: auto;
  border: 1px solid var(--border-light);
  border-radius: 16px;
}

.resolve-subprojects-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.resolve-subprojects-table th,
.resolve-subprojects-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-light);
  text-align: left;
}

.resolve-subprojects-table th {
  background: #f6f8fd;
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--text-muted);
}

.resolve-actions-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.resolve-validation-msg {
  font-size: 0.78rem;
  color: #e11d48;
  font-weight: 600;
}

/* =========================================================================
   COLOR-CODED TASK MANAGEMENT TIMELINE, 4-COLUMN STAGE CARDS & ANALYTICS
   ========================================================================= */

/* 1. Color Code Palette (Streams A, B, C, D, E) */
.color-code-a {
  --cc-solid: #1868db;
  --cc-soft: #9bc2fb;
  --cc-bg: #eef5ff;
  --cc-text: #1868db;
}

.color-code-b {
  --cc-solid: #8352f5;
  --cc-soft: #c7b2fc;
  --cc-bg: #f3eeff;
  --cc-text: #8352f5;
}

.color-code-c {
  --cc-solid: #df469e;
  --cc-soft: #f5add8;
  --cc-bg: #fdf0f7;
  --cc-text: #df469e;
}

.color-code-d {
  --cc-solid: #eea81b;
  --cc-soft: #fae09e;
  --cc-bg: #fff9eb;
  --cc-text: #d99000;
}

.color-code-e {
  --cc-solid: #10b981;
  --cc-soft: #a7f3d0;
  --cc-bg: #ecfdf5;
  --cc-text: #059669;
}

/* 2. Two-Tone Stadium Timeline Graph (.color-timeline-section) */
.color-timeline-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow-y: auto;
  padding-right: 4px;
}

.color-timeline-card {
  background: #f8faff;
  border-radius: 26px;
  padding: 22px 24px;
  margin-bottom: 22px;
  border: 1px solid #edf1fb;
}

.ct-grid-header {
  display: grid;
  grid-template-columns: 230px 1fr;
  align-items: center;
  margin-bottom: 14px;
}

.ct-day-ticks {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  text-align: center;
  font-size: 0.76rem;
  font-weight: 700;
  color: #7b819a;
}

.ct-rows-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ct-vlines {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 230px;
  right: 0;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  pointer-events: none;
}

.ct-vline {
  border-left: 1px dashed #e2e8f6;
  height: 100%;
}

.ct-row {
  display: grid;
  grid-template-columns: 230px 1fr;
  align-items: center;
  gap: 16px;
  position: relative;
  z-index: 2;
}

/* Left Floating White Label Pill (.ct-label-card) */
.ct-label-card {
  background: #ffffff;
  border-radius: 999px;
  padding: 8px 14px 8px 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 6px 18px rgba(31, 28, 46, 0.05);
  cursor: pointer;
  transition: transform 0.15s ease;
}

.ct-label-card:hover {
  transform: translateY(-1px);
}

.ct-letter-badge {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--cc-solid);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.9rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

.ct-label-copy {
  flex: 1;
  min-width: 0;
}

.ct-label-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: #1f1c2e;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ct-label-sub {
  font-size: 0.66rem;
  color: #8a8aa3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Right Stadium Two-Tone Pill Track (.ct-bar-track) */
.ct-bar-track {
  position: relative;
  height: 46px;
  width: 100%;
}

.ct-pill-outer {
  position: absolute;
  top: 1px;
  bottom: 1px;
  border-radius: 999px;
  background: var(--cc-soft);
  display: flex;
  align-items: center;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(31, 28, 46, 0.08);
  transition: transform 0.15s ease;
}

.ct-pill-outer:hover {
  transform: translateY(-2px);
}

.ct-pill-inner {
  height: 100%;
  border-radius: 999px;
  background: var(--cc-solid);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px 0 10px;
  min-width: 110px;
  color: #ffffff;
  position: relative;
  z-index: 2;
  transition: width 0.3s ease;
}

.ct-pill-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.ct-pill-avatars {
  display: flex;
  align-items: center;
}

.ct-pill-avatars img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.85);
  margin-left: -7px;
  object-fit: cover;
}

.ct-pill-avatars img:first-child {
  margin-left: 0;
}

.ct-pill-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.15;
}

.ct-pill-name {
  font-size: 0.74rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ct-pill-meta {
  font-size: 0.63rem;
  color: rgba(255, 255, 255, 0.82);
  white-space: nowrap;
}

.ct-pill-pct {
  font-size: 0.96rem;
  font-weight: 800;
  color: #ffffff;
  margin-left: 10px;
  flex-shrink: 0;
}

.ct-pill-pert-tag {
  position: absolute;
  right: 12px;
  font-size: 0.68rem;
  font-weight: 700;
  color: #1f1c2e;
  opacity: 0.75;
  z-index: 1;
  pointer-events: none;
}

/* 3. Bottom 4-Column Stage Cards (.stage-kanban-grid — DRAFT / IN PROGRESS / EDITING / DONE) */
.stage-kanban-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 8px;
}

.stage-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stage-col-title {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: #5c5f78;
  text-transform: uppercase;
}

.stage-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 16px;
  box-shadow: 0 8px 24px rgba(31, 28, 46, 0.05);
  border: 1px solid #edf1fb;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stage-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.84rem;
  font-weight: 700;
  color: #1f1c2e;
}

.stage-mini-item {
  background: #f6f8fd;
  border-radius: 12px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.stage-mini-item::after {
  content: "";
  position: absolute;
  right: 0;
  top: 4px;
  bottom: 4px;
  width: 3.5px;
  border-radius: 4px;
  background: var(--cc-solid, #1868db);
}

.stage-mini-badge {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--cc-solid, #1868db);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.stage-mini-name {
  font-size: 0.73rem;
  font-weight: 600;
  color: #3f4259;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

/* 4. Right Sidebar Analytics: Plan Slots, Efficiency Donut Rings & Completed Tasks Paired Pill Chart */
.analytics-widget {
  background: #ffffff;
  border-radius: 22px;
  padding: 16px 18px;
  margin-bottom: 14px;
  box-shadow: 0 8px 22px rgba(31, 28, 46, 0.04);
}

.analytics-widget-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #1f1c2e;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.plan-slot-item {
  background: #f6f8fd;
  border-radius: 14px;
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  border-right: 4px solid #00a8e8;
}

.plan-slot-dots {
  display: flex;
  align-items: center;
}

.plan-slot-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  color: #fff;
  font-size: 0.6rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  margin-left: -4px;
  border: 1.5px solid #fff;
}

.efficiency-rings-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  text-align: center;
}

.eff-ring-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.eff-ring-svg {
  width: 58px;
  height: 58px;
  transform: rotate(-90deg);
}

.eff-ring-label {
  font-size: 0.76rem;
  font-weight: 800;
  color: #4a4a68;
}

.paired-bars-chart {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  align-items: end;
  height: 120px;
  padding-top: 12px;
}

.bar-pair-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  height: 100%;
  justify-content: flex-end;
}

.bar-pair-sticks {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 82px;
}

.bar-stick-solid {
  width: 11px;
  border-radius: 999px;
  background: var(--cc-solid);
  transition: height 0.3s ease;
}

.bar-stick-soft {
  width: 11px;
  border-radius: 999px;
  background: var(--cc-soft);
  transition: height 0.3s ease;
}

.bar-pair-val {
  font-size: 0.75rem;
  font-weight: 800;
  color: #1f1c2e;
  line-height: 1;
}

.bar-pair-sub {
  font-size: 0.62rem;
  color: #8a8aa3;
}

/* =========================================================================
   AUTHENTICATED USER PROFILE, LOGIN/REGISTER GATE & GRANULAR RBAC STUDIO
   ========================================================================= */

.user-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 4px 10px 4px 6px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #e2e8f5;
  box-shadow: 0 2px 8px rgba(31, 28, 46, 0.04);
  transition: all 0.15s ease;
}

.user-profile:hover {
  border-color: #c8d2ec;
  transform: translateY(-1px);
}

.user-avatar-badge {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #1868db;
  color: #ffffff;
  font-weight: 800;
  font-size: 0.8rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 3px 8px rgba(24, 104, 219, 0.25);
}

.user-meta-stack {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.user-meta-stack .user-name {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text-dark);
}

.user-role-badge {
  font-size: 0.65rem;
  font-weight: 700;
  color: #5a4ad1;
}

.rbac-header-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #eef2ff;
  border-color: #d6defc;
  color: #2b3a8a;
}

.db-status-pill {
  background: #ecfdf5;
  border-color: #bbf7d0;
  color: #065f46;
}

.pending-users-badge {
  background: #e11d48;
  color: #ffffff;
  font-size: 0.66rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 999px;
  line-height: 1.1;
}

.logout-icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid #e2e8f5;
  background: #ffffff;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 0.9rem;
  transition: all 0.15s ease;
}

.logout-icon-btn:hover {
  background: #ffe3e8;
  border-color: #ffa8b8;
}

.rbac-locked {
  opacity: 0.42 !important;
  cursor: not-allowed !important;
  filter: grayscale(0.4);
}

/* Full-Screen Pastel Login & Registration Gate */
.auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 250;
  background: rgba(227, 230, 240, 0.86);
  backdrop-filter: blur(10px);
  display: grid;
  place-items: center;
  padding: 20px;
}

.auth-card {
  width: 520px;
  max-width: 95vw;
  background: #ffffff;
  border-radius: 32px;
  padding: 30px 34px;
  box-shadow: 0 28px 70px rgba(31, 28, 46, 0.18);
  border: 1px solid #e6ebf7;
}

.auth-card-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.auth-logo-circle {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(135deg, #1f1c2e, #5a4ad1);
  color: #ffffff;
  font-size: 1.4rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 20px rgba(90, 74, 209, 0.28);
}

.auth-title {
  font-size: 1.28rem;
  font-weight: 800;
  color: var(--text-dark);
}

.auth-subtitle {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  background: #f3f6fd;
  padding: 5px;
  border-radius: 999px;
}

.auth-tab {
  border: none;
  background: transparent;
  padding: 9px 14px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
}

.auth-tab.active {
  background: var(--navy-primary);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(31, 28, 46, 0.18);
}

.auth-submit-btn {
  width: 100%;
  padding: 11px 18px;
  font-size: 0.86rem;
  margin-top: 4px;
}

.auth-alert {
  border-radius: 14px;
  padding: 11px 14px;
  font-size: 0.78rem;
  line-height: 1.45;
  font-weight: 600;
}

.auth-alert-error {
  background: #ffe8ee;
  border: 1px solid #ffb3c6;
  color: #9f1239;
}

.auth-alert-success {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}

.auth-alert-pending {
  background: #fff8eb;
  border: 1px solid #fde68a;
  color: #92400e;
}

.superuser-credentials-box {
  margin-top: 20px;
  background: linear-gradient(135deg, #f5f3ff, #eef6ff);
  border: 1px solid #d9d6fe;
  border-radius: 20px;
  padding: 14px 16px;
}

.superuser-box-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.superuser-badge {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #4f3ff0;
}

.btn-quick-fill {
  background: #4f3ff0;
  color: #ffffff;
  border: none;
  border-radius: 999px;
  padding: 5px 12px;
  font-family: var(--font-sans);
  font-size: 0.73rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(79, 63, 240, 0.22);
}

.btn-quick-fill:hover {
  background: #3d2fd0;
}

.superuser-cred-grid {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 0.78rem;
  margin-bottom: 8px;
}

.superuser-cred-grid code {
  background: #ffffff;
  padding: 2px 7px;
  border-radius: 6px;
  border: 1px solid #e0e7ff;
  font-weight: 700;
  color: #1f1c2e;
}

.cred-label {
  font-weight: 600;
  color: #4a4a68;
  margin-right: 4px;
}

.cred-muted {
  font-size: 0.72rem;
  color: #8a8aa3;
}

.superuser-hint {
  font-size: 0.71rem;
  color: #5c5f78;
  line-height: 1.4;
}

/* RBAC Control Center Modal (.modal-xl) */
.modal.modal-xl {
  width: 1060px;
  max-width: 96vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.rbac-tabs-bar {
  display: flex;
  gap: 8px;
  padding: 12px 26px;
  background: #f3f6fd;
  border-bottom: 1px solid var(--border-light);
  flex-wrap: wrap;
}

.rbac-tab-btn {
  border: none;
  background: #ffffff;
  border: 1px solid #e1e6f4;
  padding: 7px 15px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.rbac-tab-btn.active {
  background: var(--navy-primary);
  border-color: var(--navy-primary);
  color: #ffffff;
}

.rbac-modal-body {
  padding: 20px 26px;
  overflow-y: auto;
  flex: 1;
}

.rbac-tab-pane {
  display: none;
}

.rbac-tab-pane.active {
  display: block;
}

.rbac-self-summary-box {
  background: #f8faff;
  border: 1px solid #e4eaf8;
  border-radius: 18px;
  padding: 14px 18px;
  margin-bottom: 18px;
}

.rbac-section-block {
  margin-bottom: 18px;
}

.rbac-section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.rbac-pending-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(440px, 1fr));
  gap: 12px;
}

.rbac-pending-card {
  background: #fffbeb;
  border: 1.5px solid #fcd34d;
  border-radius: 18px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rbac-pending-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.rbac-pending-actions select {
  flex: 1;
  background: #ffffff;
  border: 1px solid #e2e8f5;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.76rem;
  font-weight: 600;
}

.btn-approve-pill {
  background: #10b981;
  color: #ffffff;
  border: none;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
}

.btn-approve-pill:hover {
  background: #059669;
}

.btn-reject-pill {
  background: #ffe3e8;
  color: #e11d48;
  border: none;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
}

.rbac-override-panel {
  margin-top: 14px;
  background: #f5f3ff;
  border: 1px solid #d9d6fe;
  border-radius: 18px;
  padding: 16px;
}

.perm-chip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.perm-chip-item {
  background: #ffffff;
  border: 1px solid #e2e8f5;
  border-radius: 12px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.74rem;
}

.rbac-matrix-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.rbac-save-toast {
  background: #d8f8e5;
  color: #157347;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 999px;
}

.db-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}

.db-stat-card {
  background: #f8faff;
  border: 1px solid #e4eaf8;
  border-radius: 18px;
  padding: 16px;
}

.db-stat-val {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-top: 4px;
}

.db-stat-label {
  font-size: 0.74rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* =========================================================================
   MULTI-FORMAT PROJECT & SUB-PROJECT EXPORT STUDIO MODAL
   ========================================================================= */

.export-header-btn {
  background: linear-gradient(135deg, #f0f4ff 0%, #ede9fe 100%);
  border-color: #c7d2fe;
  color: #3730a3;
  font-weight: 700;
}

.export-header-btn:hover {
  background: var(--navy-primary);
  color: #ffffff;
  border-color: var(--navy-primary);
}

.export-studio-modal {
  width: 1180px;
  max-width: 96vw;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
}

.export-modal-header {
  background: linear-gradient(135deg, #f8faff 0%, #f3f0ff 100%);
}

.export-modal-body {
  padding: 18px 26px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.export-step-section {
  background: #fafbfe;
  border: 1px solid #e6ebf7;
  border-radius: 22px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.export-step-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-dark);
}

.export-step-badge {
  background: var(--navy-primary);
  color: #ffffff;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 3px 10px;
  border-radius: 999px;
}

/* Step 1: Scope Selector Pills */
.export-scope-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.export-scope-pill {
  background: #ffffff;
  border: 1.5px solid #e1e6f4;
  border-radius: 18px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: all 0.16s ease;
}

.export-scope-pill:hover {
  border-color: #a5b4fc;
  background: #f8faff;
}

.export-scope-pill.active {
  background: linear-gradient(135deg, #eef2ff 0%, #f5f3ff 100%);
  border-color: #4f3ff0;
  box-shadow: 0 6px 18px rgba(79, 63, 240, 0.12);
}

.scope-icon {
  font-size: 1.45rem;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #f3f6fd;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.export-scope-pill.active .scope-icon {
  background: #4f3ff0;
  color: #ffffff;
}

.scope-title {
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--text-dark);
}

.scope-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Sub-Projects Interactive Checklist */
.export-subprojects-panel {
  background: #ffffff;
  border: 1px solid #e4e9f7;
  border-radius: 16px;
  padding: 12px 14px;
}

.export-subprojects-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.export-subprojects-label {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.export-subprojects-actions {
  display: flex;
  gap: 6px;
}

.btn-xs {
  padding: 4px 11px !important;
  font-size: 0.72rem !important;
}

.export-subprojects-checklist {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(245px, 1fr));
  gap: 10px;
}

.export-subproj-check-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1.5px solid #e6ebf7;
  background: #fafbfe;
  cursor: pointer;
  transition: all 0.15s ease;
}

.export-subproj-check-card:hover {
  border-color: #b4c2f8;
  background: #ffffff;
}

.export-subproj-check-card.checked {
  border-color: #4f3ff0;
  background: #f5f3ff;
  box-shadow: 0 3px 10px rgba(79, 63, 240, 0.08);
}

.export-subproj-check-card input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: #4f3ff0;
  cursor: pointer;
}

.export-subproj-card-meta {
  flex: 1;
  min-width: 0;
}

.export-subproj-card-name {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.export-subproj-card-sub {
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-top: 3px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

/* Step 2: 6 Format Cards (3 columns x 2 rows) */
.export-format-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

@media (max-width: 900px) {
  .export-format-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

.export-format-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f5;
  border-radius: 18px;
  padding: 14px 16px;
  cursor: pointer;
  transition: all 0.16s ease;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.export-format-card:hover {
  transform: translateY(-2px);
  border-color: #a5b4fc;
  box-shadow: 0 8px 20px rgba(31, 28, 46, 0.06);
}

.export-format-card.active {
  background: linear-gradient(135deg, #1f1c2e 0%, #322b4f 100%);
  border-color: #1f1c2e;
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(31, 28, 46, 0.2);
}

.format-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.format-card-icon {
  font-size: 1.4rem;
}

.format-ext-pill {
  font-family: var(--font-mono);
  font-size: 0.67rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: #eef2fb;
  color: #3b5bdb;
}

.export-format-card.active .format-ext-pill {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

.format-card-title {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--text-dark);
}

.export-format-card.active .format-card-title {
  color: #ffffff;
}

.format-card-desc {
  font-size: 0.7rem;
  line-height: 1.4;
  color: var(--text-muted);
}

.export-format-card.active .format-card-desc {
  color: rgba(255, 255, 255, 0.78);
}

.export-format-card.active code {
  color: #c4b5fd;
}

/* Mermaid Sub-Options Strip */
.mermaid-variant-strip {
  background: #f3f0ff;
  border: 1px solid #d8b4fe;
  border-radius: 14px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.mermaid-variant-label {
  font-size: 0.76rem;
  font-weight: 800;
  color: #5b21b6;
}

.mermaid-variant-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.mermaid-variant-btn {
  background: #ffffff;
  border: 1px solid #d8b4fe;
  color: #4c1d95;
  border-radius: 999px;
  padding: 5px 13px;
  font-family: var(--font-sans);
  font-size: 0.73rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.mermaid-variant-btn.active {
  background: #5b21b6;
  border-color: #5b21b6;
  color: #ffffff;
}

/* UHD 4K Image Variant Strip */
.uhd-variant-strip {
  background: linear-gradient(135deg, #eff6ff 0%, #f0fdf4 100%);
  border-color: #93c5fd;
}

.uhd-variant-strip .mermaid-variant-label {
  color: #1e40af;
}

.uhd-variant-btn {
  background: #ffffff;
  border: 1px solid #93c5fd;
  color: #1e3a8a;
  border-radius: 999px;
  padding: 5px 14px;
  font-family: var(--font-sans);
  font-size: 0.73rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.uhd-variant-btn:hover {
  background: #dbeafe;
}

.uhd-variant-btn.active {
  background: linear-gradient(135deg, #1868db 0%, #4f3ff0 100%);
  border-color: #1868db;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(24, 104, 219, 0.25);
}

/* Step 3: Live Task-Wise & Graph Preview */
.export-filename-pill {
  background: #eef2ff;
  color: #3730a3;
  border: 1px solid #c7d2fe;
  padding: 4px 10px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
}

.export-preview-subprojects-strip {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.export-subproj-summary-pill {
  background: #ffffff;
  border: 1px solid #e2e8f5;
  border-radius: 12px;
  padding: 6px 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.73rem;
}

.export-excel-sheets-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 12px;
  padding: 8px 12px;
}

.excel-sheet-tab {
  background: #ffffff;
  border: 1px solid #6ee7b7;
  color: #065f46;
  padding: 4px 10px;
  border-radius: 8px 8px 2px 2px;
  font-size: 0.71rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.excel-sheet-tab.master-tab {
  background: #059669;
  color: #ffffff;
  border-color: #059669;
}

.export-preview-split-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 14px;
  align-items: stretch;
}

.export-task-table-card,
.export-code-card {
  background: #ffffff;
  border: 1px solid #e4e9f7;
  border-radius: 16px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.export-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--text-dark);
}

.export-tasks-scroll {
  max-height: 290px;
  overflow: auto;
}

.export-task-preview-table th,
.export-task-preview-table td {
  padding: 7px 9px;
  font-size: 0.72rem;
  white-space: nowrap;
}

.export-code-viewer {
  max-height: 260px;
  font-size: 0.71rem;
  line-height: 1.45;
  margin: 0;
  flex: 1;
}

.export-mermaid-visual-preview {
  background: #f8faff;
  border: 1.5px solid #dde3f3;
  border-radius: 16px;
  padding: 14px;
  max-height: 390px;
  overflow: auto;
  box-shadow: inset 0 2px 6px rgba(31, 28, 46, 0.03);
}

/* Interactive Mermaid Live Editor Textarea */
.export-mermaid-editor-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.mermaid-editor-HintBar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.69rem;
  color: #4c1d95;
  background: #f5f3ff;
  border: 1px solid #ddd6fe;
  padding: 5px 10px;
  border-radius: 8px;
}

.mermaid-syntax-badge {
  background: #dcfce7;
  color: #166534;
  font-weight: 800;
  font-size: 0.66rem;
  padding: 2px 8px;
  border-radius: 999px;
}

.mermaid-syntax-badge.warn {
  background: #fef3c7;
  color: #92400e;
}

.export-mermaid-editor-input {
  width: 100%;
  min-height: 220px;
  max-height: 270px;
  resize: vertical;
  font-family: "JetBrains Mono", "Fira Code", Consolas, monospace;
  font-size: 0.73rem;
  line-height: 1.5;
  background: #0f172a;
  color: #e2e8f0;
  border: 1.5px solid #4f3ff0;
  border-radius: 12px;
  padding: 12px 14px;
  outline: none;
}

.export-mermaid-editor-input:focus {
  border-color: #8b5cf6;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.18);
}

/* Excel Spreadsheet Visual Gantt Grid Preview */
.excel-gantt-preview-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.excel-gantt-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.excel-gantt-legend {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 0.69rem;
  font-weight: 700;
  color: #334155;
}

.excel-legend-swatch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.excel-legend-box {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  display: inline-block;
}

.excel-grid-scroll {
  overflow-x: auto;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #ffffff;
}

.excel-gantt-grid-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.68rem;
  font-family: "DM Sans", sans-serif;
}

.excel-gantt-grid-table th,
.excel-gantt-grid-table td {
  border: 1px solid #e2e8f0;
  padding: 4px 6px;
  white-space: nowrap;
}

.excel-col-letters th {
  background: #f1f5f9;
  color: #475569;
  font-family: monospace;
  font-size: 0.64rem;
  font-weight: 700;
  text-align: center;
  padding: 2px 4px;
}

.excel-header-row th {
  background: #1f1c2e;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.66rem;
  text-align: left;
}

.excel-header-row th.excel-day-col {
  text-align: center;
  min-width: 34px;
  font-size: 0.62rem;
  background: #28243d;
}

.excel-row-num {
  background: #f1f5f9;
  color: #64748b;
  font-family: monospace;
  font-weight: 700;
  text-align: center;
  width: 26px;
}

.excel-day-cell {
  text-align: center;
  padding: 2px !important;
  min-width: 34px;
  font-size: 0.6rem;
  font-weight: 800;
}

.excel-bar-pill {
  height: 16px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.excel-bar-pert {
  height: 16px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.56rem;
  font-weight: 800;
  border: 1px dashed rgba(31, 28, 46, 0.35);
}

/* 16:9 Landscape PowerPoint (.pptx) Slide Deck Preview */
.pptx-deck-preview-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pptx-deck-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.pptx-slide-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.pptx-slide-tab-btn {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #1e293b;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.7rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.pptx-slide-tab-btn.active {
  background: #1f1c2e;
  border-color: #1f1c2e;
  color: #ffffff;
}

.pptx-slides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 14px;
}

.pptx-slide-16x9 {
  aspect-ratio: 16 / 9;
  background: #ffffff;
  border-radius: 14px;
  border: 2px solid #cbd5e1;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}

.pptx-slide-banner {
  background: linear-gradient(135deg, #1f1c2e 0%, #312e81 100%);
  color: #ffffff;
  padding: 10px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pptx-slide-body {
  padding: 12px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
  background: #f8fafc;
}

.pptx-kpi-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.pptx-kpi-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 6px 10px;
}

.pptx-slide-footer {
  background: #f1f5f9;
  border-top: 1px solid #e2e8f0;
  padding: 4px 14px;
  display: flex;
  justify-content: space-between;
  font-size: 0.6rem;
  color: #64748b;
  font-weight: 600;
}

.export-modal-footer {
  padding: 14px 26px;
  background: #ffffff;
}

.export-footer-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.export-status-toast {
  background: #d8f8e5;
  color: #157347;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
}

.export-download-primary-btn {
  background: linear-gradient(135deg, #1f1c2e 0%, #4f3ff0 100%);
  box-shadow: 0 6px 16px rgba(79, 63, 240, 0.25);
}

.export-download-primary-btn:hover {
  background: linear-gradient(135deg, #322b4f 0%, #3d2fd0 100%);
}

/* Quick Export Button on Sub-Project Cards & Breadcrumbs */
.card-quick-export-btn {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(31, 28, 46, 0.12);
  color: var(--text-dark);
  border-radius: 999px;
  padding: 4px 10px;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.card-quick-export-btn:hover {
  background: var(--navy-primary);
  color: #ffffff;
  border-color: var(--navy-primary);
}

/* =========================================================================
   AUTOMATED PROJECT PLAN DISTRIBUTION STUDIO & 10-TYPE PHASE ALLOCATION UI
   ========================================================================= */

.modal.modal-distributor {
  width: 1140px;
  max-width: 96vw;
}

.modal.modal-child-studio {
  width: 680px;
  max-width: 95vw;
}

.plan-distributor-bar {
  background: linear-gradient(135deg, #f5f7ff 0%, #eef2ff 100%);
  border: 1px solid #d7dffe;
  border-radius: 18px;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.plan-distributor-bar-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.plan-distributor-title {
  font-size: 0.86rem;
  font-weight: 800;
  color: #1f1c2e;
  display: flex;
  align-items: center;
  gap: 8px;
}

.plan-distributor-controls {
  display: grid;
  grid-template-columns: 1.5fr 180px auto;
  gap: 10px;
  align-items: end;
}

.plan-distributor-controls label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #4a4a68;
  margin-bottom: 4px;
}

.plan-distributor-controls select,
.plan-distributor-controls input {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 0.78rem;
  font-weight: 600;
}

.btn-distribute-gradient {
  background: linear-gradient(135deg, #1f1c2e 0%, #4f3ff0 100%);
  color: #ffffff;
  border: none;
  border-radius: 999px;
  padding: 9px 18px;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(79, 63, 240, 0.24);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}

.btn-distribute-gradient:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(79, 63, 240, 0.34);
}

.dist-status-banner {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  border-radius: 12px;
  padding: 8px 12px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* Horizontal Stacked Phase Allocation Bar */
.phase-allocation-bar {
  display: flex;
  width: 100%;
  height: 18px;
  border-radius: 999px;
  overflow: hidden;
  background: #eef2ff;
  border: 1px solid rgba(31, 28, 46, 0.08);
  margin: 5px 0 4px 0;
}

.phase-seg {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.58rem;
  font-weight: 800;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  padding: 0 3px;
  transition: width 0.25s ease;
}

.phase-seg-0 { background: #1868db; }
.phase-seg-1 { background: #8352f5; }
.phase-seg-2 { background: #df469e; }
.phase-seg-3 { background: #eea81b; color: #1f1c2e; }
.phase-seg-4 { background: #10b981; }

.phase-legend-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.phase-legend-chip {
  font-size: 0.63rem;
  font-weight: 600;
  color: #3f4259;
  background: #f4f6fc;
  border: 1px solid #e2e8f5;
  border-radius: 6px;
  padding: 1px 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.phase-legend-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}

.resolve-dur-inp {
  width: 78px !important;
  text-align: center;
  font-weight: 700;
  padding: 6px 8px !important;
}

/* Live Plan Distribution Preview Card inside Add Sub-Project Modal */
.dist-preview-card {
  background: #f8faff;
  border: 1px solid #dce4f7;
  border-radius: 16px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dist-preview-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.dist-preview-tasks-list {
  max-height: 145px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-right: 4px;
}

.dist-preview-task-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
  border: 1px solid #e9edf7;
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 0.71rem;
}




