/* BioStudio AI - Projects operations console */

.pm-app,
.pm-frame {
  height: 100%;
  min-height: 0;
  color: #20242a;
  background: #f4f5f7;
  font: 14px/1.45 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.pm-frame {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.pm-topbar {
  height: 56px;
  flex: 0 0 56px;
  display: grid;
  grid-template-columns: 42px auto minmax(260px, 620px) auto auto;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  color: #f6f7f9;
  background: #25272b;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.pm-icon,
.pm-create,
.pm-refresh,
.pm-nav-btn,
.pm-project-link,
.pm-filter-chip,
.pm-clear,
.pm-primary,
.pm-chip,
.pm-card-click,
.pm-project-card-main,
.pm-row.clickable,
.pm-deadline,
.pm-back,
.pm-tab,
.pm-add-task,
.pm-secondary,
.pm-modal-x {
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
}

.pm-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  font-size: 22px;
}

.pm-icon:hover,
.pm-refresh:hover,
.pm-nav-btn:hover,
.pm-project-link:hover,
.pm-tab:hover,
.pm-chip:hover {
  background: rgba(255, 255, 255, 0.1);
}

.pm-create {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 7px 14px 7px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-weight: 750;
}

.pm-create span {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 999px;
  background: #ff625a;
  color: #fff;
  font-size: 20px;
  line-height: 1;
}

.pm-search {
  height: 38px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border-radius: 999px;
  background: #55585f;
  color: #e9ebef;
}

.pm-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-weight: 650;
}

.pm-search input::placeholder {
  color: #d7dbe2;
}

.pm-scope {
  justify-self: end;
  max-width: 220px;
  overflow: hidden;
  color: #d7dbe2;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 700;
}

.pm-refresh {
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-weight: 750;
}

.pm-body {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
}

.pm-sidebar {
  flex: 0 0 var(--pm-sidebar-w, 260px);
  min-width: 0;
  width: var(--pm-sidebar-w, 260px);
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 16px 12px;
  color: #dfe3e8;
  background: #2b2e33;
  border-right: 1px solid #d9dde4;
}
.pm-pane-resizer {
  flex: 0 0 6px;
  cursor: col-resize;
  background: transparent;
  z-index: 2;
}
.pm-pane-resizer:hover,
.pm-pane-resizer.is-dragging {
  background: color-mix(in srgb, #4a90e2 40%, transparent);
}

.pm-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 8px 18px;
}

.pm-brand strong,
.pm-brand span {
  display: block;
}

.pm-brand span {
  color: #aeb6c2;
  font-size: 12px;
}

.pm-logo {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: #7c5cff;
  color: #fff;
  font-weight: 900;
}

.pm-nav {
  display: grid;
  gap: 4px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.pm-nav-btn,
.pm-project-link {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 36px;
  padding: 7px 10px;
  border-radius: 8px;
  text-align: left;
  color: #dfe3e8;
  font-weight: 720;
}

.pm-nav-btn.active,
.pm-project-link.active {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.pm-filter-empty,
.pm-filter-box {
  margin: 14px 0;
  padding: 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #bfc7d3;
  font-size: 12px;
}

.pm-filter-box {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.pm-filter-chip,
.pm-clear {
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.pm-clear {
  background: transparent;
  color: #ffb7b2;
}

.pm-side-section {
  min-height: 0;
  overflow: auto;
}

.pm-side-title {
  padding: 0 10px 8px;
  color: #aeb6c2;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.pm-project-link span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pm-sidebar-foot {
  margin-top: auto;
  padding: 12px 10px 0;
  color: #aeb6c2;
  font-size: 12px;
}

.pm-main {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  overflow: auto;
}

.pm-view {
  display: grid;
  gap: 18px;
  padding: 24px;
}

.pm-view-head,
.pm-room-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.pm-view-head h1,
.pm-room-title h1 {
  margin: 0;
  color: #1d2026;
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: 0;
}

.pm-view-head p,
.pm-panel header p,
.pm-chart-card header p,
.pm-project-card p {
  margin: 5px 0 0;
  color: #68717f;
}

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

.pm-primary {
  min-height: 36px;
  padding: 8px 13px;
  border-radius: 8px;
  background: #346df1;
  color: #fff;
  font-weight: 800;
}

.pm-primary:disabled,
.pm-create:disabled,
.pm-plan-column header button:disabled,
.pm-room-actions select:disabled,
.pm-add-member select:disabled {
  cursor: not-allowed;
  opacity: .5;
}

.pm-access-banner {
  padding: 10px 13px;
  border: 1px solid #cbd8ee;
  border-radius: 8px;
  background: #eef4ff;
  color: #385273;
  font-size: 12px;
  font-weight: 700;
}

.pm-kpis {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.pm-kpis.compact {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.pm-kpi {
  min-height: 86px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #dde2ea;
  box-shadow: 0 10px 30px rgba(35, 42, 52, 0.04);
}

button.pm-kpi {
  width: 100%;
  border: 1px solid #dde2ea;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.pm-kpi.clickable:hover {
  transform: translateY(-1px);
  border-color: #b8c6dd;
  box-shadow: 0 14px 34px rgba(35, 42, 52, 0.08);
}

.pm-kpi.clickable:focus-visible {
  outline: 3px solid rgba(52, 109, 241, 0.28);
  outline-offset: 2px;
}

.pm-kpi span {
  color: #667080;
  font-size: 12px;
  font-weight: 750;
}

.pm-kpi strong {
  color: #191d23;
  font-size: 28px;
  line-height: 1;
}

.pm-kpi.good { border-left: 4px solid #28a978; }
.pm-kpi.warn { border-left: 4px solid #e5a72f; }
.pm-kpi.bad { border-left: 4px solid #e55959; }
.pm-kpi.info { border-left: 4px solid #3a78ff; }
.pm-kpi.neutral { border-left: 4px solid #8b93a2; }

.pm-home-grid,
.pm-room-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.pm-home-grid > .pm-panel:last-child {
  grid-column: 1 / -1;
}

.pm-panel,
.pm-project-card,
.pm-person-card,
.pm-chart-card,
.pm-day {
  border-radius: 8px;
  background: #fff;
  border: 1px solid #dde2ea;
  box-shadow: 0 12px 32px rgba(35, 42, 52, 0.045);
}

.pm-panel,
.pm-chart-card {
  min-width: 0;
  padding: 16px;
}

.pm-panel header,
.pm-chart-card header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.pm-panel h2,
.pm-chart-card h2,
.pm-project-card h2 {
  margin: 0;
  color: #1e2229;
  font-size: 17px;
  line-height: 1.25;
  letter-spacing: 0;
}

.pm-list,
.pm-timeline-list,
.pm-progress-stack {
  display: grid;
  gap: 8px;
}

.pm-row,
.pm-deadline {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  padding: 9px 10px;
  border-radius: 8px;
  color: #20242a;
  text-align: left;
  background: #f8fafc;
  border: 1px solid #edf0f4;
}

.pm-row.clickable:hover,
.pm-deadline:hover,
.pm-project-card-main:hover,
.pm-card-click:hover {
  background: #f1f5fb;
}

.pm-row strong,
.pm-deadline strong,
.pm-card-click strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pm-row small,
.pm-deadline small,
.pm-muted,
.pm-card-click small {
  display: block;
  color: #6d7684;
  font-size: 12px;
}

.pm-row-side {
  display: grid;
  justify-items: end;
  gap: 4px;
}

.pm-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #8b93a2;
}

.pm-dot.good,
.pm-pill.good,
.pm-mini-stat.good { background: #d9f3e8; color: #176746; }
.pm-dot.good { background: #28a978; }
.pm-dot.warn,
.pm-pill.warn,
.pm-mini-stat.warn { background: #fff0c7; color: #825d0b; }
.pm-dot.warn { background: #e5a72f; }
.pm-dot.bad,
.pm-pill.bad,
.pm-mini-stat.bad { background: #ffe0e0; color: #a02222; }
.pm-dot.bad { background: #e55959; }
.pm-dot.info,
.pm-pill.info,
.pm-mini-stat.info { background: #dce8ff; color: #224fb2; }
.pm-dot.info { background: #3a78ff; }
.pm-dot.neutral,
.pm-pill.neutral { background: #eceff3; color: #515966; }

.pm-pill {
  display: inline-flex;
  align-items: center;
  max-width: 160px;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #eceff3;
  color: #515966;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.pm-avatar {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: #bcaaff;
  color: #35256d;
  font-weight: 850;
}

.pm-avatar.small {
  width: 30px;
  height: 30px;
  font-size: 12px;
}

.pm-avatar.tiny {
  width: 24px;
  height: 24px;
  font-size: 10px;
}

.pm-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.pm-chip {
  min-height: 32px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #505968;
  background: #fff;
  border: 1px solid #dce2eb;
  font-weight: 750;
}

.pm-chip.active {
  color: #173b91;
  border-color: #abc2ff;
  background: #eaf0ff;
}

.pm-chip.bad.active {
  color: #a02222;
  border-color: #ffc1c1;
  background: #ffeaea;
}

.pm-project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 14px;
}

.pm-project-card {
  overflow: hidden;
}

.pm-project-card-main {
  display: grid;
  gap: 13px;
  width: 100%;
  padding: 16px;
  color: #20242a;
  text-align: left;
}

.pm-project-card header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.pm-card-meta,
.pm-room-meta,
.pm-room-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.pm-progress,
.pm-room-progress {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e9edf4;
}

.pm-progress span,
.pm-room-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #3a78ff, #20b985);
}

.pm-project-card footer {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: #697485;
  font-size: 12px;
}

.pm-people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

.pm-person-card {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.pm-card-click {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 0;
  color: #20242a;
  text-align: left;
}

.pm-person-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.pm-mini-stat {
  display: grid;
  gap: 1px;
  min-width: 0;
  padding: 8px;
  border-radius: 8px;
  background: #f3f5f8;
  text-align: center;
}

.pm-mini-stat strong {
  color: #1e2229;
}

.pm-mini-stat small {
  color: #6a7482;
  font-size: 11px;
}

.pm-person-projects {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pm-person-projects button,
.pm-person-projects span {
  max-width: 100%;
  padding: 5px 8px;
  border: 1px solid #dce2eb;
  border-radius: 999px;
  background: #fff;
  color: #4f5c6c;
  font: inherit;
  font-size: 12px;
}

/* Project-scoped reporting hierarchy */
.pm-org-shell {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.pm-org-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border: 1px solid #dce2eb;
  border-radius: 8px;
  background: #fff;
}

.pm-org-toolbar label {
  display: grid;
  gap: 5px;
  color: #68717f;
  font-size: 12px;
  font-weight: 800;
}

.pm-org-toolbar select {
  min-width: 240px;
  padding: 8px 10px;
  border: 1px solid #cfd6e1;
  border-radius: 7px;
  background: #fff;
  color: #242a33;
}

.pm-org-legend {
  display: flex;
  gap: 14px;
  color: #68717f;
  font-size: 12px;
}

.pm-org-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.pm-org-legend i {
  display: inline-block;
  width: 26px;
  border-top: 2px solid #8794a7;
}

.pm-org-legend i.secondary { border-top-style: dashed; }

.pm-org-viewport {
  min-height: 420px;
  overflow: auto;
  padding: 28px 20px 48px;
  border: 1px solid #dce2eb;
  border-radius: 8px;
  background-color: #f8fafc;
  background-image: radial-gradient(#dce3ed 1px, transparent 1px);
  background-size: 18px 18px;
}

.pm-org-tree,
.pm-org-tree ul {
  display: flex;
  justify-content: center;
  gap: 18px;
  position: relative;
  min-width: max-content;
  margin: 0;
  padding: 24px 0 0;
  list-style: none;
}

.pm-org-tree { align-items: flex-start; padding-top: 0; }

.pm-org-branch {
  position: relative;
  display: grid;
  justify-items: center;
  padding: 24px 8px 0;
}

.pm-org-tree > .pm-org-branch { padding-top: 0; }

.pm-org-branch::before,
.pm-org-branch::after {
  content: "";
  position: absolute;
  top: 0;
  width: 50%;
  height: 24px;
  border-top: 2px solid #aab4c2;
}

.pm-org-branch::before { right: 50%; }
.pm-org-branch::after { left: 50%; border-left: 2px solid #aab4c2; }
.pm-org-tree > .pm-org-branch::before,
.pm-org-tree > .pm-org-branch::after { display: none; }
.pm-org-branch:only-child::before { border-top: 0; }
.pm-org-branch:only-child::after { border-top: 0; }
.pm-org-branch:first-child::before { border-top: 0; }
.pm-org-branch:last-child::after { border-top: 0; border-left: 0; }

.pm-org-branch > ul::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  height: 24px;
  border-left: 2px solid #aab4c2;
}

.pm-org-node {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 250px;
  min-height: 92px;
  padding: 13px;
  border: 1px solid #d3dae5;
  border-top: 4px solid #5e79d8;
  border-radius: 10px;
  background: #fff;
  color: #20242a;
  text-align: left;
  box-shadow: 0 10px 26px rgba(31, 42, 62, .08);
}

.pm-org-node:hover { border-color: #91a5cf; transform: translateY(-1px); }
.pm-org-node.needs-attention { border-top-color: #e55959; }
.pm-org-node.context-only { border-top-color: #9aa4b2; background: #f7f8fa; }
.pm-org-node-main { display: grid; gap: 3px; min-width: 0; }
.pm-org-node-main strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pm-org-node-main small { color: #697485; font-size: 11px; }
.pm-org-node-main .pm-org-secondary { color: #785c9b; }

.pm-org-badges,
.pm-plan-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.pm-org-badges em,
.pm-plan-tags span {
  padding: 3px 6px;
  border-radius: 999px;
  background: #edf2fb;
  color: #48617f;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
}

.pm-org-badges em.bad { background: #ffe3e3; color: #a02222; }

/* Milestones, dependencies, and RAID */
.pm-plan-shell { display: grid; gap: 16px; }
.pm-plan-summary { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.pm-plan-summary .pm-kpi { min-height: 76px; }

.pm-plan-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.pm-plan-toolbar h2 { margin: 0; font-size: 19px; }
.pm-plan-toolbar p { margin: 4px 0 0; color: #68717f; }

.pm-plan-board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: start;
  gap: 12px;
}

.pm-plan-column {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid #dce2eb;
  border-radius: 9px;
  background: #eef1f5;
}

.pm-plan-column > header,
.pm-plan-column > header > div,
.pm-plan-item footer,
.pm-plan-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.pm-plan-column > header span {
  margin-left: 7px;
  padding: 2px 6px;
  border-radius: 999px;
  background: #dce2eb;
  color: #596575;
  font-size: 11px;
}

.pm-plan-column > header button,
.pm-plan-quick button {
  border: 1px solid #cdd6e3;
  border-radius: 7px;
  background: #fff;
  color: #315fae;
  font: inherit;
  font-weight: 800;
}

.pm-plan-item {
  display: grid;
  gap: 9px;
  padding: 12px;
  border: 1px solid #dce2eb;
  border-left: 4px solid #8290a4;
  border-radius: 8px;
  background: #fff;
}

.pm-plan-item.bad,
.pm-plan-item.critical { border-left-color: #e55959; }
.pm-plan-item.warn { border-left-color: #e5a72f; }
.pm-plan-item.info { border-left-color: #3a78ff; }
.pm-plan-item.good { border-left-color: #28a978; }
.pm-plan-item p { margin: 0; color: #5f6875; font-size: 12px; }
.pm-plan-rationale { padding: 7px; border-radius: 6px; background: #f6f3fb; }
.pm-plan-related { color: #5c4b8e; font-size: 11px; font-weight: 750; }
.pm-plan-item footer { color: #68717f; font-size: 11px; }
.pm-plan-item select { max-width: 130px; padding: 5px; border: 1px solid #d2d9e3; border-radius: 6px; background: #fff; }

.pm-plan-empty { display: grid; gap: 12px; }
.pm-plan-quick { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pm-plan-quick button { padding: 8px 11px; }

.pm-calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(132px, 1fr));
  gap: 10px;
  min-width: 960px;
}

.pm-calendar-shell {
  display: grid;
  gap: 10px;
  overflow: auto;
}

.pm-calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(132px, 1fr));
  gap: 10px;
  min-width: 960px;
  color: #68717f;
  font-size: 12px;
  font-weight: 850;
}

.pm-calendar-weekdays span {
  padding: 0 4px;
}

.pm-overdue-lane {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 8px;
  background: #fff0f0;
  border: 1px solid #ffc9c9;
}

.pm-overdue-lane > header {
  display: flex;
  justify-content: space-between;
  color: #9d2626;
  font-weight: 850;
}

.pm-overdue-lane > div {
  display: grid;
  gap: 8px;
}

.pm-day {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 156px;
  padding: 10px;
}

.pm-day.today {
  border-color: #346df1;
  box-shadow: inset 0 0 0 1px #346df1, 0 12px 32px rgba(35, 42, 52, 0.045);
}

.pm-day.has-items {
  background: #fbfcff;
}

.pm-day > header {
  display: flex;
  justify-content: space-between;
  color: #68717f;
  font-size: 12px;
}

.pm-more-day {
  min-height: 28px;
  border: 0;
  border-radius: 7px;
  background: #edf3ff;
  color: #244ea5;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
}

.pm-date {
  color: #3b4656;
  font-weight: 800;
  white-space: nowrap;
}

.pm-date.bad {
  color: #bd2d2d;
}

.pm-chart-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.pm-chart {
  min-height: 230px;
  overflow: hidden;
}

.pm-chart svg {
  width: 100%;
  max-width: 100%;
  height: auto;
}

.pm-chart-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.pm-room-head {
  align-items: center;
}

.pm-back {
  flex: 0 0 auto;
  padding: 8px 10px;
  border-radius: 8px;
  color: #506071;
  background: #fff;
  border: 1px solid #dce2eb;
  font-weight: 750;
}

.pm-room-title {
  min-width: 0;
  flex: 1 1 auto;
}

.pm-room-title h1 {
  overflow-wrap: anywhere;
}

.pm-room-actions select,
.pm-form-grid select,
.pm-form-grid input,
.pm-add-member select {
  min-height: 36px;
  border: 1px solid #d3dae5;
  border-radius: 8px;
  background: #fff;
  color: #20242a;
  font: inherit;
  padding: 7px 10px;
}

.pm-room-progress {
  height: 10px;
}

.pm-tabs {
  display: flex;
  gap: 6px;
  border-bottom: 1px solid #dce2eb;
}

.pm-tab {
  padding: 10px 12px;
  color: #566272;
  border-radius: 8px 8px 0 0;
  font-weight: 800;
}

.pm-tab.active {
  color: #1e2229;
  background: #fff;
  box-shadow: inset 0 -2px 0 #346df1;
}

.pm-board {
  display: grid;
  grid-template-columns: repeat(5, minmax(220px, 1fr));
  gap: 12px;
  min-width: 960px;
}

.pm-column {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 420px;
  padding: 10px;
  border-radius: 8px;
  background: #eef2f7;
  border: 1px solid #dce2eb;
}

.pm-column > header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #374151;
  font-weight: 850;
}

.pm-column > header span {
  display: grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #fff;
  color: #68717f;
  font-size: 12px;
}

.pm-task-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #dce2eb;
  box-shadow: 0 8px 20px rgba(35, 42, 52, 0.05);
  cursor: grab;
}

.pm-task-card:active {
  cursor: grabbing;
}

.pm-task-card header,
.pm-task-card footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.pm-task-card p {
  margin: 0;
  color: #5f6b7a;
  font-size: 13px;
}

.pm-task-card footer {
  justify-content: flex-start;
  color: #68717f;
  font-size: 12px;
}

.pm-add-task {
  min-height: 36px;
  padding: 8px;
  border-radius: 8px;
  color: #566272;
  background: rgba(255, 255, 255, 0.65);
  border: 1px dashed #b9c4d2;
  font-weight: 750;
}

.pm-room-panel {
  display: grid;
  gap: 14px;
}

.pm-add-member {
  display: flex;
  justify-content: flex-end;
}

.assign-target {
  outline: 1px dashed transparent;
}

.assign-target:hover {
  outline-color: #346df1;
}

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

.pm-form-grid label {
  display: grid;
  gap: 6px;
  color: #5f6b7a;
  font-weight: 750;
}

.pm-empty,
.pm-loading,
.pm-error {
  display: grid;
  place-items: center;
  min-height: 120px;
  padding: 18px;
  border-radius: 8px;
  color: #667080;
  background: #fff;
  border: 1px dashed #cbd4df;
}

.pm-loading,
.pm-error {
  position: sticky;
  top: 12px;
  z-index: 2;
  min-height: auto;
  margin: 12px;
}

.pm-error {
  color: #9d2626;
  border-color: #ffc1c1;
  background: #fff0f0;
}

.pm-modal-backdrop {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(18, 24, 33, 0.46);
  backdrop-filter: blur(2px);
}

.pm-modal {
  width: min(560px, 100%);
  max-height: min(760px, calc(100% - 20px));
  overflow: auto;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #d9e0ea;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.28);
}

.pm-modal-form {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.pm-modal-form header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 4px;
}

.pm-modal-form h2 {
  margin: 0;
  color: #1d2026;
  font-size: 21px;
  letter-spacing: 0;
}

.pm-modal-form p {
  margin: 5px 0 0;
  color: #68717f;
}

.pm-modal-x {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  color: #68717f;
  background: #f2f5f8;
  font-size: 22px;
  line-height: 1;
}

.pm-modal-x:hover {
  background: #e7ecf3;
}

.pm-modal-form label {
  display: grid;
  gap: 6px;
  color: #4e5968;
  font-size: 13px;
  font-weight: 800;
}

.pm-modal-form input,
.pm-modal-form select,
.pm-modal-form textarea {
  width: 100%;
  min-width: 0;
  min-height: 38px;
  border: 1px solid #cfd8e5;
  border-radius: 8px;
  background: #fff;
  color: #1f2530;
  font: inherit;
  padding: 8px 10px;
  outline: 0;
}

.pm-modal-form textarea {
  resize: vertical;
}

.pm-modal-form input:focus,
.pm-modal-form select:focus,
.pm-modal-form textarea:focus {
  border-color: #346df1;
  box-shadow: 0 0 0 3px rgba(52, 109, 241, 0.14);
}

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

.pm-modal-form footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 6px;
}

.pm-secondary {
  min-height: 36px;
  padding: 8px 13px;
  border-radius: 8px;
  color: #475465;
  background: #f2f5f8;
  border: 1px solid #d8e0eb;
  font-weight: 800;
}

.pm-secondary:hover {
  background: #e8edf4;
}

.pm-layer-switch {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px;
  border-radius: 8px;
  background: #e8edf4;
  border: 1px solid #d4dce8;
}

.pm-layer-btn {
  min-height: 30px;
  padding: 5px 9px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #526070;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
}

.pm-layer-btn.active {
  background: #fff;
  color: #173b91;
  box-shadow: 0 1px 4px rgba(35, 42, 52, 0.12);
}

.pm-subtoolbar {
  display: flex;
  justify-content: flex-end;
}

.pm-table-wrap {
  min-width: 0;
  overflow: auto;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #dde2ea;
  box-shadow: 0 12px 32px rgba(35, 42, 52, 0.045);
}

.pm-data-table {
  width: 100%;
  min-width: 780px;
  border-collapse: collapse;
  font-size: 13px;
}

.pm-data-table th,
.pm-data-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #edf0f4;
  text-align: left;
  vertical-align: middle;
}

.pm-data-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f6f8fb;
  color: #5e6877;
  font-size: 12px;
  font-weight: 850;
}

.pm-data-table tbody tr {
  cursor: pointer;
}

.pm-data-table tbody tr:hover {
  background: #f4f7fb;
}

.pm-data-table input,
.pm-data-table select {
  min-height: 32px;
  border: 1px solid #d3dae5;
  border-radius: 7px;
  background: #fff;
  color: #20242a;
  font: inherit;
  padding: 5px 8px;
}

.pm-inline-bar {
  position: relative;
  display: flex;
  align-items: center;
  width: 130px;
  height: 20px;
  overflow: hidden;
  border-radius: 999px;
  background: #e9edf4;
}

.pm-inline-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #3a78ff, #20b985);
}

.pm-inline-bar em {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #172033;
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
}

.pm-status-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(230px, 1fr));
  gap: 12px;
  min-width: 900px;
}

.pm-status-column {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 360px;
  padding: 10px;
  border-radius: 8px;
  background: #eef2f7;
  border: 1px solid #dce2eb;
}

.pm-status-column > header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 850;
  color: #374151;
}

.pm-status-column > header span {
  display: grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #fff;
  color: #68717f;
  font-size: 12px;
}

.pm-project-mini-card {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #dce2eb;
  box-shadow: 0 8px 20px rgba(35, 42, 52, 0.05);
  cursor: grab;
}

.pm-project-mini-card:active,
.pm-project-card:active,
.pm-timeline-row:active {
  cursor: grabbing;
}

.pm-project-mini-card div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.pm-project-mini-card small {
  color: #68717f;
}

.pm-timeline {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #dde2ea;
  box-shadow: 0 12px 32px rgba(35, 42, 52, 0.045);
}

.pm-timeline-row {
  display: grid;
  grid-template-columns: auto minmax(140px, 240px) minmax(220px, 1fr) minmax(100px, auto);
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: #f8fafc;
  color: #20242a;
  text-align: left;
  font: inherit;
  cursor: grab;
}

.pm-timeline-row:hover {
  background: #f1f5fb;
}

.pm-timeline-row em {
  color: #68717f;
  font-style: normal;
  font-size: 12px;
  text-align: right;
}

.pm-timeline-track {
  position: relative;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ffe0e0, #fff0c7 35%, #d9f3e8 72%, #dce8ff);
}

.pm-timeline-track span {
  position: absolute;
  top: 50%;
  width: 14px;
  height: 14px;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: #20242a;
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(35, 42, 52, 0.25);
}

.pm-matrix {
  min-width: 860px;
  overflow: auto;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #dde2ea;
}

.pm-matrix-head,
.pm-matrix-row {
  display: grid;
  grid-template-columns: 180px repeat(12, minmax(72px, 1fr));
  min-width: 860px;
}

.pm-matrix-head {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f6f8fb;
  border-bottom: 1px solid #dfe5ee;
}

.pm-matrix-head span,
.pm-matrix-head strong,
.pm-matrix-row > strong {
  padding: 9px 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}

.pm-matrix-row {
  border-bottom: 1px solid #edf0f4;
}

.pm-matrix-row > strong {
  color: #27303b;
}

.pm-matrix-cell {
  min-height: 38px;
  border: 0;
  border-left: 1px solid #edf0f4;
  background: #fff;
  color: #4f5c6c;
  font: inherit;
  font-weight: 850;
}

.pm-matrix-cell.info {
  background: #dce8ff;
  color: #224fb2;
}

.pm-matrix-cell.bad {
  background: #ffe0e0;
  color: #a02222;
}

.pm-matrix-cell.heat {
  background: #f8fafc;
  box-shadow: inset 0 0 0 999px rgba(58, 120, 255, var(--load));
  color: #172033;
}

.pm-load-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
}

.pm-load-cell {
  min-height: 92px;
  display: grid;
  align-content: space-between;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #dde2ea;
  background: #fff;
  box-shadow: inset 0 0 0 999px rgba(58, 120, 255, var(--load));
  color: #172033;
}

.pm-load-cell span {
  font-size: 28px;
  font-weight: 900;
}

.drop-day:hover,
.pm-load-cell:hover,
.assign-target:hover,
.pm-status-column:hover,
.pm-matrix-cell:hover {
  outline: 2px solid rgba(52, 109, 241, 0.45);
  outline-offset: -2px;
}

.pm-analytics-tables,
.pm-heatmap-panel {
  display: grid;
  gap: 16px;
}

.pm-app-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pm-app-bubble {
  min-width: var(--size);
  min-height: var(--size);
  display: grid;
  place-items: center;
  gap: 2px;
  padding: 10px;
  border: 0;
  border-radius: 999px;
  background: #dce8ff;
  color: #173b91;
  font: inherit;
  text-align: center;
}

.pm-app-bubble strong {
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}

.pm-app-bubble span {
  font-size: 11px;
  font-weight: 850;
}

.pm-donut {
  --pct: 0%;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  background:
    radial-gradient(circle at center, #fff 0 55%, transparent 56%),
    conic-gradient(#3a78ff var(--pct), #e8edf4 0);
}

.pm-donut.good {
  background:
    radial-gradient(circle at center, #fff 0 55%, transparent 56%),
    conic-gradient(#28a978 var(--pct), #e8edf4 0);
}

.pm-donut.warn {
  background:
    radial-gradient(circle at center, #fff 0 55%, transparent 56%),
    conic-gradient(#e5a72f var(--pct), #e8edf4 0);
}

.pm-donut.bad {
  background:
    radial-gradient(circle at center, #fff 0 55%, transparent 56%),
    conic-gradient(#e55959 var(--pct), #e8edf4 0);
}

.pm-donut strong {
  color: #1f2530;
  font-size: 12px;
}

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

.pm-project-snapshot > div {
  min-width: 0;
  padding: 9px;
  border-radius: 8px;
  background: #f6f8fb;
  border: 1px solid #edf0f4;
}

.pm-project-snapshot span,
.pm-project-snapshot strong {
  display: block;
}

.pm-project-snapshot span {
  color: #68717f;
  font-size: 11px;
  font-weight: 800;
}

.pm-project-snapshot strong {
  overflow: hidden;
  color: #20242a;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}

.pm-task-mix {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
}

.pm-task-mix span {
  display: grid;
  place-items: center;
  min-height: 16px;
  border-radius: 999px;
  background: #e9edf4;
  color: #1f2530;
  font-size: 10px;
  font-weight: 900;
}

.pm-task-mix span.good { background: #d9f3e8; color: #176746; }
.pm-task-mix span.warn { background: #fff0c7; color: #825d0b; }
.pm-task-mix span.bad { background: #ffe0e0; color: #a02222; }
.pm-task-mix span.info { background: #dce8ff; color: #224fb2; }

.pm-avatar-row {
  display: flex;
  align-items: center;
  min-height: 24px;
}

.pm-avatar-row .pm-avatar {
  margin-right: -6px;
  border: 2px solid #fff;
}

.pm-assignment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
}

.pm-assignment-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #dde2ea;
  box-shadow: 0 12px 32px rgba(35, 42, 52, 0.045);
}

.pm-assignment-card.needs-attention {
  border-left: 4px solid #e55959;
}

.pm-assignment-card > header,
.pm-assignment-card > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.pm-assignment-score {
  display: grid;
  place-items: center;
  min-width: 56px;
  min-height: 48px;
  border-radius: 8px;
  background: #eef4ff;
  color: #173b91;
}

.pm-assignment-score strong {
  font-size: 20px;
  line-height: 1;
}

.pm-assignment-score span {
  font-size: 11px;
  font-weight: 850;
}

.pm-assigned-task-list {
  display: grid;
  gap: 7px;
}

.pm-assigned-task-list button {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px;
  border: 1px solid #edf0f4;
  border-radius: 8px;
  background: #f8fafc;
  color: #20242a;
  font: inherit;
  text-align: left;
}

.pm-assigned-task-list button:hover {
  background: #f1f5fb;
}

.pm-assigned-task-list strong,
.pm-assigned-task-list small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pm-assignment-card > footer {
  justify-content: flex-start;
  flex-wrap: wrap;
}

.pm-assignment-card > footer button,
.pm-assignment-card > footer span {
  max-width: 100%;
  padding: 5px 8px;
  border: 1px solid #dce2eb;
  border-radius: 999px;
  background: #fff;
  color: #4f5c6c;
  font: inherit;
  font-size: 12px;
}

.pm-load-people {
  display: grid;
  gap: 10px;
}

.pm-person-load {
  --load: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 10px;
  border: 1px solid #dde2ea;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(52, 109, 241, 0.16) calc(var(--load) * 100%), transparent 0),
    #fff;
  color: #20242a;
  font: inherit;
  text-align: left;
}

.pm-person-load.warn {
  background:
    linear-gradient(90deg, rgba(229, 167, 47, 0.22) calc(var(--load) * 100%), transparent 0),
    #fff;
}

.pm-person-load.bad {
  background:
    linear-gradient(90deg, rgba(229, 89, 89, 0.22) calc(var(--load) * 100%), transparent 0),
    #fff;
}

.pm-person-load strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pm-person-load em {
  color: #68717f;
  font-size: 12px;
  font-style: normal;
}

.pm-detail-text {
  margin: 0;
  color: #3f4a59;
  line-height: 1.55;
}

.pm-drawer {
  position: absolute;
  top: 56px;
  right: 0;
  bottom: 0;
  z-index: 15;
  display: flex;
  flex-direction: column;
  width: min(560px, 44vw);
  min-width: 420px;
  background: #f8fafc;
  border-left: 1px solid #d5dde8;
  box-shadow: -24px 0 60px rgba(15, 23, 42, 0.16);
}

.pm-drawer > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  background: #fff;
  border-bottom: 1px solid #dde2ea;
}

.pm-drawer h2 {
  margin: 0;
  color: #1d2026;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: 0;
}

.pm-drawer p {
  margin: 5px 0 0;
  color: #68717f;
}

.pm-drawer-body {
  display: grid;
  align-content: start;
  gap: 14px;
  min-height: 0;
  overflow: auto;
  padding: 16px;
}

.pm-drawer .pm-kpis.compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 980px) {
  .pm-topbar {
    grid-template-columns: 36px auto 1fr;
  }

  .pm-scope,
  .pm-refresh {
    display: none;
  }

  .pm-sidebar {
    flex-basis: var(--pm-sidebar-w, 220px);
    min-width: 0;
    width: var(--pm-sidebar-w, 220px);
  }

  .pm-kpis,
  .pm-kpis.compact,
  .pm-plan-summary,
  .pm-home-grid,
  .pm-room-grid,
  .pm-chart-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pm-board {
    overflow-x: auto;
  }

  .pm-drawer {
    width: min(620px, 68vw);
  }
}

@media (max-width: 760px) {
  .pm-body {
    flex-direction: column;
  }

  .pm-sidebar {
    min-height: auto;
    flex: 0 0 auto;
    min-width: 0;
    width: 100%;
  }

  .pm-pane-resizer {
    display: none;
  }

  .pm-nav {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .pm-nav-btn {
    justify-content: center;
    font-size: 12px;
  }

  .pm-side-section,
  .pm-filter-empty,
  .pm-filter-box,
  .pm-sidebar-foot {
    display: none;
  }

  .pm-view {
    padding: 16px;
  }

  .pm-kpis,
  .pm-kpis.compact,
  .pm-home-grid,
  .pm-room-grid,
  .pm-chart-grid,
  .pm-form-grid,
  .pm-modal-grid {
    grid-template-columns: 1fr;
  }

  .pm-view-head,
  .pm-room-head {
    flex-direction: column;
  }

  .pm-org-toolbar,
  .pm-plan-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .pm-org-toolbar select { min-width: 0; width: 100%; }

  .pm-drawer {
    top: 0;
    width: 100%;
    min-width: 0;
  }

  .pm-calendar,
  .pm-calendar-weekdays {
    min-width: 840px;
    grid-template-columns: repeat(7, minmax(116px, 1fr));
  }
}

/* People picker (multi-select search + filters + role/note before adding) */

.people-picker {
  display: grid;
  gap: 10px;
  border: 1px solid #dde2ea;
  border-radius: 10px;
  background: #fff;
  padding: 12px;
}

.people-picker-filters {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 8px;
}

.people-picker-search,
.people-picker-team,
.people-picker-dept,
.people-picker-reports-input {
  width: 100%;
  padding: 7px 10px;
  border: 1px solid #d6dbe3;
  border-radius: 7px;
  font: inherit;
  background: #fff;
  color: #20242a;
}

.people-picker-reports-to {
  position: relative;
  display: flex;
  align-items: center;
}

.people-picker-reports-clear {
  position: absolute;
  right: 6px;
  border: none;
  background: none;
  color: #697485;
  font-size: 14px;
  cursor: pointer;
  line-height: 1;
}

.people-picker-reports-suggest {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 20;
  background: #fff;
  border: 1px solid #d6dbe3;
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(35, 42, 52, 0.14);
  max-height: 200px;
  overflow: auto;
  display: grid;
}

.people-picker-reports-option {
  text-align: left;
  border: none;
  background: none;
  padding: 8px 10px;
  cursor: pointer;
  font: inherit;
  color: #20242a;
}

.people-picker-reports-option:hover {
  background: #f0f2f6;
}

.people-picker-results {
  display: grid;
  gap: 4px;
  max-height: 220px;
  overflow: auto;
  border-top: 1px solid #eceff3;
  padding-top: 8px;
}

.people-picker-empty {
  color: #8790a0;
  font-size: 13px;
  padding: 10px 4px;
}

.people-picker-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: none;
  background: none;
  border-radius: 8px;
  padding: 6px 8px;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: #20242a;
}

.people-picker-row:hover {
  background: #f0f2f6;
}

.people-picker-row-body {
  display: grid;
  gap: 1px;
  flex: 1;
  min-width: 0;
}

.people-picker-row-body strong {
  font-size: 13px;
}

.people-picker-row-body small {
  color: #8790a0;
  font-size: 11.5px;
}

.people-picker-add {
  color: #346df1;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.people-picker-avatar {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: #bcaaff;
  color: #35256d;
  font-weight: 850;
  font-size: 12px;
  flex-shrink: 0;
}

.people-picker-avatar.small {
  width: 26px;
  height: 26px;
  font-size: 11px;
}

.people-picker-pending {
  display: grid;
  gap: 8px;
  border-top: 1px solid #eceff3;
  padding-top: 10px;
}

.people-picker-pending-title {
  font-size: 12px;
  font-weight: 700;
  color: #515966;
}

.people-picker-pending-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #f8f9fb;
  border-radius: 8px;
  padding: 8px;
}

.people-picker-pending-body {
  display: grid;
  gap: 6px;
  flex: 1;
  min-width: 0;
}

.people-picker-pending-controls {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 6px;
}

.people-picker-pending-role,
.people-picker-pending-note {
  padding: 5px 8px;
  border: 1px solid #d6dbe3;
  border-radius: 6px;
  font: inherit;
  font-size: 12.5px;
  background: #fff;
  color: #20242a;
}

.people-picker-pending-remove {
  border: none;
  background: none;
  color: #8790a0;
  font-size: 16px;
  cursor: pointer;
  line-height: 1;
  padding: 0 2px;
}

.people-picker-pending-remove:hover {
  color: #d94b4b;
}

.pm-member-card-controls {
  display: grid;
  gap: 6px;
  margin-top: 6px;
}

.pm-member-role-select {
  padding: 5px 8px;
  border: 1px solid #d6dbe3;
  border-radius: 6px;
  font: inherit;
  font-size: 12.5px;
}

.pm-member-note-input {
  padding: 5px 8px;
  border: 1px solid #d6dbe3;
  border-radius: 6px;
  font: inherit;
  font-size: 12.5px;
}

.pm-member-remove {
  justify-self: start;
  border: none;
  background: none;
  color: #8790a0;
  font-size: 12px;
  cursor: pointer;
  padding: 2px 0;
}

.pm-member-remove:hover {
  color: #d94b4b;
}

.pm-add-people {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #dde2ea;
}

.pm-add-people h3 {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
}

.pm-add-people-actions {
  display: flex;
  justify-content: flex-end;
}

@media (max-width: 900px) {
  .people-picker-filters {
    grid-template-columns: 1fr;
  }
}
