:root {
  --pm-heading: #111827;
  --pm-text: #263244;
  --pm-muted: #697a8d;
  --pm-line: #e4e7ee;
  --pm-soft: #f7f8fb;
  --pm-surface: #ffffff;
  --pm-shadow: 0 .35rem 1.2rem rgba(34, 48, 62, .075);
}

body { background: #f4f6f8; color: var(--pm-text); }
.pm-login { position: fixed; inset: 0; z-index: 1080; overflow-y: auto; background: #f5f5f9; }
.pm-logo img { display: block; width: 220px; max-width: 100%; height: auto; }
.pm-logo-menu img { width: 180px; }
.layout-menu .app-brand { min-height: 72px; }
.layout-page, .content-wrapper { min-width: 0; }
.layout-navbar.pm-navbar,
.pm-content,
.pm-footer { width: 100%; max-width: none; margin-right: 0; margin-left: 0; }
.layout-navbar.pm-navbar { position: relative; inset: auto; width: auto; max-width: none; margin: 1rem 1.5rem 0; }
.layout-navbar.pm-navbar .navbar-nav-right { min-width: 0; overflow: hidden; }
.layout-navbar.pm-navbar .navbar-nav,
.layout-navbar.pm-navbar .navbar-nav .nav-item { min-width: 0; }
.layout-navbar.pm-navbar .navbar-nav:first-child { overflow: hidden; }
.layout-navbar.pm-navbar .text-heading,
.layout-navbar.pm-navbar .text-muted { display: block; overflow: hidden; max-width: 48vw; text-overflow: ellipsis; white-space: nowrap; }
.layout-navbar.pm-navbar .navbar-nav.ms-auto { flex: 0 0 auto; min-width: 0; }
.layout-navbar.pm-navbar .badge { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pm-content { padding: 1.5rem 1.5rem 2rem !important; }
.pm-footer { padding-right: 1.5rem; padding-left: 1.5rem; }
#main { max-width: none; }

.pm-page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
  padding: 1.35rem 1.5rem;
  border: 1px solid var(--pm-line);
  border-radius: .6rem;
  background: linear-gradient(180deg, #fff, #fbfcfe);
  box-shadow: var(--pm-shadow);
}
.pm-page-head h2 { margin: 0 0 .3rem; color: var(--pm-heading); font-size: 1.5rem; font-weight: 700; line-height: 1.18; }
.pm-page-head p { max-width: 900px; margin: 0; color: var(--pm-muted); font-size: .95rem; }
.pm-eyebrow { margin-bottom: .25rem; color: #7b8798; font-size: .72rem; font-weight: 700; letter-spacing: 0; text-transform: uppercase; }
.pm-head-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .5rem; }
.pm-muted { color: var(--pm-muted) !important; }
.pm-name { color: var(--pm-heading); font-weight: 650; }

.pm-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(185px, 1fr)); gap: 1rem; margin-bottom: 1.25rem; }
.pm-card { min-height: 124px; padding: 1.15rem; border: 1px solid var(--pm-line); border-radius: .6rem; background: var(--pm-surface); box-shadow: var(--pm-shadow); }
.pm-card .k { color: var(--pm-muted); font-size: .78rem; font-weight: 700; line-height: 1.25; }
.pm-card .v { margin-top: .45rem; color: var(--pm-heading); font-size: clamp(1.35rem, 1.6vw, 1.8rem); font-weight: 750; line-height: 1.15; overflow-wrap: anywhere; }

.pm-form-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: .85rem;
  align-items: center;
  margin-bottom: 1.15rem;
  padding: 1rem;
  border: 1px solid var(--pm-line);
  border-radius: .6rem;
  background: var(--pm-surface);
  box-shadow: var(--pm-shadow);
}
.pm-form-row .btn { min-height: 38px; }
.pm-full { grid-column: 1 / -1; min-height: 104px; }
.pm-check { min-height: 38px; padding: .45rem .25rem; }

.pm-section-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 1.25rem; }
.pm-section { grid-column: span 6; min-width: 0; }
.pm-section-wide { grid-column: 1 / -1; }
.pm-section h5 { margin: 0 0 .75rem; color: var(--pm-heading); font-size: 1rem; font-weight: 700; }

.pm-table { overflow: auto; border: 1px solid var(--pm-line); border-radius: .6rem; background: #fff; box-shadow: var(--pm-shadow); }
.table { min-width: 760px; margin-bottom: 0; }
.table th { color: #566a7f; font-size: .72rem; font-weight: 800; text-transform: uppercase; white-space: nowrap; }
.table td { vertical-align: middle; }
.pm-empty { padding: 2rem; color: #a1acb8; text-align: center; }

.pm-note-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1rem; }
.pm-note { min-height: 170px; padding: 1rem; border: 1px solid var(--pm-line); border-radius: .6rem; box-shadow: var(--pm-shadow); }
.pm-note p { margin: .85rem 0 0; color: #3f4b5f; white-space: pre-wrap; }

.pm-link-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; }
.pm-link-card { display: block; min-height: 132px; padding: 1.1rem; color: inherit; border: 1px solid var(--pm-line); border-radius: .6rem; background: #fff; text-decoration: none; box-shadow: var(--pm-shadow); transition: transform .12s ease, border-color .12s ease, box-shadow .12s ease; }
.pm-link-card:hover { transform: translateY(-1px); border-color: var(--bs-primary); color: inherit; box-shadow: 0 .5rem 1.5rem rgba(34, 48, 62, .11); }
.pm-link-title { margin-bottom: .45rem; color: var(--pm-heading); font-weight: 750; }
.pm-link-meta { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .85rem; }
.pm-grafana-panel { margin-bottom: 1.25rem; padding: 1rem; border: 1px solid var(--pm-line); border-radius: .6rem; background: #fff; box-shadow: var(--pm-shadow); }
.pm-grafana-panel h5 { margin: 0 0 .85rem; color: var(--pm-heading); font-weight: 750; }
.pm-report { min-height: 430px; resize: vertical; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9rem; line-height: 1.5; }

@media (min-width: 1600px) {
  .pm-content { padding-right: 2rem !important; padding-left: 2rem !important; }
  .layout-navbar.pm-navbar { margin-right: 2rem; margin-left: 2rem; }
}
@media (max-width: 1399.98px) { .pm-cards { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); } }
@media (max-width: 1199.98px) {
  .pm-form-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pm-section { grid-column: 1 / -1; }
}
@media (max-width: 991.98px) {
  .layout-navbar.pm-navbar { margin-right: 1rem; margin-left: 1rem; }
  .pm-content { padding-right: 1rem !important; padding-left: 1rem !important; }
  .pm-footer { padding-right: 1rem; padding-left: 1rem; }
  .pm-page-head { align-items: flex-start; flex-direction: column; padding: 1rem; }
  .pm-head-actions, .pm-head-actions .btn { width: 100%; }
  .pm-form-row { grid-template-columns: 1fr; }
  .pm-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575.98px) {
  .pm-content { padding: .85rem !important; }
  .layout-navbar.pm-navbar { margin-right: .85rem; margin-left: .85rem; }
  .pm-cards, .pm-link-grid, .pm-note-grid { grid-template-columns: 1fr; }
  .pm-page-head h2 { font-size: 1.25rem; }
  .pm-card { min-height: 108px; }
}


.pm-health {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .75rem;
  align-items: center;
  margin-bottom: 1.25rem;
  padding: .9rem 1rem;
  border: 1px solid #d8e2ff;
  border-radius: .6rem;
  background: #f6f8ff;
  color: #344767;
  box-shadow: var(--pm-shadow);
}
.pm-health strong { color: var(--pm-heading); }
.pm-health code { color: #5166d6; }
.pm-health-warning { border-color: #ffe0b2; background: #fff8ec; }
@media (max-width: 575.98px) {
  .layout-navbar.pm-navbar .text-heading,
  .layout-navbar.pm-navbar .text-muted { max-width: 54vw; }
  .layout-navbar.pm-navbar .badge { max-width: 112px; }
  .pm-health { grid-template-columns: 1fr; }
}

.layout-navbar.pm-navbar .badge.bg-label-primary,
.layout-navbar.pm-navbar .avatar,
.layout-navbar.pm-navbar .avatar-initial {
  width: 42px;
  min-width: 42px;
  height: 42px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: .5rem;
  line-height: 1;
}
.layout-navbar.pm-navbar .badge.bg-label-primary {
  width: auto;
  min-width: 42px;
  max-width: 42px;
  padding: 0;
}
.layout-navbar.pm-navbar .badge.bg-label-primary span,
.layout-navbar.pm-navbar .badge.bg-label-primary i + * { display: none; }
.layout-navbar.pm-navbar .nav-item.me-3 { margin-right: .5rem !important; }
.layout-navbar.pm-navbar .avatar { flex: 0 0 42px; }

.pm-toast {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 2000;
  max-width: min(420px, calc(100vw - 2rem));
  padding: .85rem 1rem;
  border-radius: .55rem;
  background: #fff;
  color: #1f2937;
  border: 1px solid #ffd6d6;
  box-shadow: 0 .75rem 2rem rgba(34, 48, 62, .18);
}
.pm-toast-success { border-color: #bce8d0; }
.pm-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1900;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(23, 30, 45, .38);
}
.pm-modal {
  width: min(720px, 100%);
  max-height: min(780px, calc(100vh - 2rem));
  overflow: auto;
  border-radius: .7rem;
  background: #fff;
  box-shadow: 0 1rem 3rem rgba(23, 30, 45, .28);
}
.pm-modal-head,
.pm-modal-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: 1rem 1.15rem;
  border-bottom: 1px solid var(--pm-line);
}
.pm-modal-head h5 { margin: 0; font-weight: 750; color: var(--pm-heading); }
.pm-modal-body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; padding: 1.15rem; }
.pm-modal-foot { justify-content: flex-end; border-top: 1px solid var(--pm-line); border-bottom: 0; }
.pm-modal-body .pm-full { grid-column: 1 / -1; }

.pm-overview-hero .pm-cards { margin-bottom: 1.25rem; }
.pm-report-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 1rem;
  align-items: stretch;
}
.pm-report-preview,
.pm-report-side {
  padding: 1rem;
  border: 1px solid var(--pm-line);
  border-radius: .6rem;
  background: #fff;
  box-shadow: var(--pm-shadow);
}
.pm-report { min-height: 68vh; resize: vertical; }
.pm-report-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .75rem 0;
  border-bottom: 1px solid var(--pm-line);
  text-transform: capitalize;
}
.pm-link-card.active { border-color: var(--bs-primary); background: #f7f9ff; }
.pm-notion {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 1rem;
  min-height: 620px;
}
.pm-notion-list,
.pm-notion-editor {
  border: 1px solid var(--pm-line);
  border-radius: .6rem;
  background: #fff;
  box-shadow: var(--pm-shadow);
}
.pm-notion-list { overflow: auto; padding: .5rem; }
.pm-notion-item {
  display: block;
  padding: .85rem;
  border-radius: .45rem;
  border: 1px solid transparent;
}
.pm-notion-item:hover { border-color: var(--pm-line); background: #f8f9fb; }
.pm-notion-item strong { display: block; color: var(--pm-heading); }
.pm-notion-item span { display: block; margin-top: .25rem; color: var(--pm-muted); font-size: .82rem; }
.pm-notion-editor { padding: 1.25rem; }
.pm-notion-editor h4 { color: var(--pm-heading); font-weight: 750; }

@media (max-width: 991.98px) {
  .pm-report-layout,
  .pm-notion { grid-template-columns: 1fr; }
  .pm-report { min-height: 520px; }
  .pm-modal-body { grid-template-columns: 1fr; }
}
@media (max-width: 575.98px) {
  .layout-navbar.pm-navbar .badge.bg-label-primary,
  .layout-navbar.pm-navbar .avatar,
  .layout-navbar.pm-navbar .avatar-initial {
    width: 38px;
    min-width: 38px;
    height: 38px;
    min-height: 38px;
  }
}

.pm-data-browser {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}
.pm-data-tables,
.pm-data-preview {
  border: 1px solid var(--pm-line);
  border-radius: .6rem;
  background: #fff;
  box-shadow: var(--pm-shadow);
}
.pm-data-tables { overflow: auto; max-height: 72vh; padding: .5rem; }
.pm-data-table {
  display: block;
  padding: .8rem;
  border-radius: .45rem;
  color: inherit;
  text-decoration: none;
  border: 1px solid transparent;
}
.pm-data-table.active,
.pm-data-table:hover { border-color: var(--bs-primary); background: #f7f9ff; color: inherit; }
.pm-data-table strong { display: block; color: var(--pm-heading); }
.pm-data-table span { display: block; margin-top: .25rem; color: var(--pm-muted); font-size: .8rem; }
.pm-data-preview { min-width: 0; padding: 1rem; }
.pm-data-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.pm-data-search { display: flex; gap: .5rem; min-width: min(440px, 100%); }
.pm-data-search .form-control { min-width: 0; }
.pm-row-actions { display: flex; flex-wrap: wrap; gap: .4rem; }
.pm-filter-tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
@media (max-width: 991.98px) {
  .pm-data-browser { grid-template-columns: 1fr; }
  .pm-data-toolbar { align-items: stretch; flex-direction: column; }
  .pm-data-search { min-width: 0; }
}

.pm-project-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1rem; }
.pm-project-card { background: #fff; border: 1px solid rgba(67, 89, 113, .12); border-radius: 8px; padding: 1rem; min-width: 0; box-shadow: 0 1px 2px rgba(67, 89, 113, .06); }
.pm-project-card h5, .pm-section h5 { margin: 0; overflow-wrap: anywhere; }
.pm-project-card p { color: #697a8d; margin: .75rem 0 0; }
.pm-project-top, .pm-project-meta, .pm-rate-row, .pm-report-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; min-width: 0; }
.pm-project-top span, .pm-project-meta, .pm-rate-row span { color: #697a8d; font-size: .875rem; }
.pm-project-meta, .pm-rate-row { margin-top: .85rem; flex-wrap: wrap; }
.pm-rate-row strong { font-size: 1.05rem; }
.pm-filter-tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.pm-assets-filter { grid-template-columns: minmax(220px, 1fr) auto; align-items: center; }
.pm-invoice-form { grid-template-columns: minmax(150px, 1fr) minmax(150px, 1fr) minmax(260px, 2fr) minmax(110px, .6fr) auto; align-items: center; }
.pm-kanban { display: grid; grid-template-columns: repeat(3, minmax(220px, 1fr)); gap: 1rem; }
.pm-kanban-col { background: #fff; border: 1px solid rgba(67, 89, 113, .12); border-radius: 8px; padding: 1rem; min-width: 0; }
.pm-task-card { border: 1px solid rgba(67, 89, 113, .10); border-radius: 8px; padding: .8rem; margin-top: .75rem; background: #f8f9fb; }
.pm-task-card label { display: flex; gap: .5rem; align-items: flex-start; margin: 0 0 .35rem; }
.pm-task-card div { color: #697a8d; font-size: .85rem; }
.pm-report-card { border: 1px solid rgba(67, 89, 113, .12); border-radius: 8px; padding: 1rem; background: #fff; margin-bottom: 1rem; }
.pm-report-card-head h5 { margin: 0; }
.pm-report-card-head span { width: 2rem; height: 2rem; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; background: #eef2ff; color: #3045b6; font-weight: 700; }
.pm-report-product { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr); gap: 1rem; border-top: 1px solid rgba(67, 89, 113, .1); padding-top: .75rem; margin-top: .75rem; }
.pm-report-product span { color: #697a8d; }
.pm-note-compose { display: grid; gap: .75rem; }
.pm-note-compose textarea { min-height: 420px; font-size: 1rem; line-height: 1.65; }
.pm-editor-toolbar { display: flex; gap: .4rem; border-bottom: 1px solid rgba(67, 89, 113, .12); padding-bottom: .75rem; margin-bottom: 1rem; }
.pm-notion-item.active { border-color: #696cff; background: #f2f3ff; }
@media (max-width: 1100px) { .pm-invoice-form { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pm-kanban { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .pm-project-top, .pm-report-product { display: block; } .pm-assets-filter, .pm-invoice-form { grid-template-columns: 1fr; } .pm-row-actions { flex-wrap: wrap; } }

.pm-data-tabs { display: flex; gap: .55rem; overflow-x: auto; padding: .15rem .05rem .85rem; margin-bottom: .35rem; }
.pm-data-tabs .btn { flex: 0 0 auto; display: inline-flex; align-items: center; gap: .5rem; min-height: 42px; border-radius: 8px; }
.pm-data-tabs .btn span { opacity: .72; font-size: .78rem; font-weight: 500; }
.pm-cell-one { display: inline-block; max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: middle; }
.pm-cell-note { color: #697a8d; font-size: .78rem; margin-top: .15rem; white-space: normal; }
.pm-report-layout-single { grid-template-columns: minmax(0, 1fr); }
.pm-project-card { transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.pm-project-card:hover { border-color: rgba(105,108,255,.35); box-shadow: 0 .75rem 1.65rem rgba(67, 89, 113, .11); transform: translateY(-1px); }
.pm-project-card-link { display: block; color: inherit; text-decoration: none; }
.pm-project-card-link:hover { color: inherit; }
.pm-project-detail { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.pm-detail-line { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .75rem 0; border-bottom: 1px solid rgba(67,89,113,.1); }
.pm-detail-line span { color: #697a8d; }
.pm-timeline { display: grid; gap: .75rem; }
.pm-timeline article { border-left: 3px solid #696cff; padding-left: .85rem; }
.pm-timeline article span { display: block; color: #697a8d; font-size: .8rem; }
.pm-timeline article strong { display: block; color: #233446; margin-top: .15rem; }
.pm-timeline article p { margin: .35rem 0 0; color: #697a8d; }
.pm-notion-title { padding: .75rem .85rem .35rem; color: #697a8d; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; font-weight: 700; }
.pm-notion-item { width: 100%; text-align: left; background: transparent; cursor: pointer; }
.pm-modal { border-radius: 8px; }
.pm-modal-head { background: #fbfbfd; }
.pm-modal-head .pm-eyebrow { display: block; font-size: .72rem; color: #697a8d; text-transform: uppercase; font-weight: 700; margin-bottom: .2rem; }
@media (max-width: 991.98px) { .pm-project-detail { grid-template-columns: 1fr; } .pm-cell-one { max-width: 180px; } }

.pm-select-wrap { position: relative; display: block; min-width: 0; }
.pm-select-wrap::after {
  content: '';
  position: absolute;
  right: .95rem;
  top: 50%;
  width: .55rem;
  height: .55rem;
  border-right: 2px solid #697a8d;
  border-bottom: 2px solid #697a8d;
  transform: translateY(-65%) rotate(45deg);
  pointer-events: none;
}
.pm-select-wrap .form-select {
  appearance: none;
  min-height: 42px;
  padding-right: 2.4rem;
  border: 1px solid var(--pm-line);
  border-radius: 8px;
  background-color: #fff;
  color: var(--pm-text);
  box-shadow: 0 1px 2px rgba(67, 89, 113, .04);
}
.pm-select-wrap .form-select:focus { border-color: #696cff; box-shadow: 0 0 0 .2rem rgba(105, 108, 255, .14); }
.pm-user-create { grid-template-columns: minmax(160px, 1fr) minmax(160px, 1fr) minmax(150px, .7fr) auto; }
.pm-check-card {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  min-height: 68px;
  margin: 0;
  padding: .85rem .95rem;
  border: 1px solid var(--pm-line);
  border-radius: 8px;
  background: #fbfcfe;
}
.pm-check-card .form-check-input { flex: 0 0 auto; margin: .15rem 0 0; }
.pm-check-card strong { display: block; color: var(--pm-heading); line-height: 1.25; }
.pm-check-card small { display: block; margin-top: .2rem; color: var(--pm-muted); line-height: 1.35; }
.pm-freelancer-grid, .pm-quote-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; }
.pm-freelancer-card, .pm-quote-card {
  min-width: 0;
  padding: 1rem;
  border: 1px solid var(--pm-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--pm-shadow);
}
.pm-freelancer-head { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: .8rem; align-items: center; }
.pm-freelancer-head h5, .pm-quote-card h5 { margin: 0; color: var(--pm-heading); font-size: 1rem; font-weight: 750; overflow-wrap: anywhere; }
.pm-freelancer-head span { color: var(--pm-muted); font-size: .85rem; }
.pm-avatar-sm { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; background: #eef2ff; color: #3045b6; font-weight: 800; }
.pm-freelancer-rate, .pm-quote-price { display: flex; align-items: baseline; justify-content: space-between; gap: .75rem; margin-top: 1rem; padding-top: .85rem; border-top: 1px solid rgba(67, 89, 113, .1); }
.pm-freelancer-rate span, .pm-quote-price span, .pm-freelancer-meta { color: var(--pm-muted); font-size: .85rem; }
.pm-freelancer-rate strong, .pm-quote-price strong { color: var(--pm-heading); font-size: 1.15rem; }
.pm-freelancer-meta { display: flex; justify-content: space-between; gap: .75rem; margin-top: .55rem; }
.pm-freelancer-card p, .pm-quote-card p { margin: .9rem 0 0; color: #3f4b5f; line-height: 1.45; }
@media (max-width: 991.98px) { .pm-user-create { grid-template-columns: 1fr; } .pm-freelancer-head { grid-template-columns: 40px minmax(0, 1fr); } .pm-freelancer-head .badge { grid-column: 2; justify-self: start; } }

.pm-data-tabs { scrollbar-width: none; }
.pm-data-tabs::-webkit-scrollbar { display: none; }
.pm-data-tabs .btn { white-space: nowrap; }
.pm-data-tabs .btn span { display: none; }
.pm-data-search { max-width: 520px; }
.pm-project-grid { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); align-items: stretch; }
.pm-project-card { display: flex; flex-direction: column; gap: 1rem; padding: 1.1rem; }
.pm-project-card-link { flex: 1; }
.pm-project-card-head { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: .8rem; align-items: start; }
.pm-project-card-head h5 { margin: 0; color: var(--pm-heading); font-size: 1.05rem; font-weight: 780; line-height: 1.25; }
.pm-project-card-head span { display: block; margin-top: .2rem; color: var(--pm-muted); font-size: .84rem; overflow-wrap: anywhere; }
.pm-project-icon { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; background: #eef2ff; color: #3045b6; font-weight: 800; }
.pm-project-stat-row { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-top: 1rem; padding-top: .9rem; border-top: 1px solid rgba(67, 89, 113, .1); }
.pm-project-stat-row > span:last-child { color: var(--pm-muted); font-size: .84rem; }
.pm-project-contributors { display: flex; align-items: flex-start; gap: .5rem; margin-top: .85rem; color: #4f5f74; font-size: .88rem; line-height: 1.4; }
.pm-project-contributors i { margin-top: .08rem; color: #697a8d; }
.pm-project-actions { padding-top: .85rem; border-top: 1px solid rgba(67, 89, 113, .1); }
.pm-project-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, .9fr); gap: 1.25rem; align-items: stretch; margin-bottom: 1.25rem; padding: 1.25rem; border: 1px solid var(--pm-line); border-radius: 8px; background: #fff; box-shadow: var(--pm-shadow); }
.pm-project-hero h3 { margin: 0 0 .45rem; color: var(--pm-heading); font-size: 1.35rem; font-weight: 780; }
.pm-project-hero p { margin: 0; color: #4f5f74; line-height: 1.55; }
.pm-project-hero-pills { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.pm-project-hero-stats .pm-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; }
.pm-project-hero-stats .pm-card { min-height: 94px; padding: .9rem; }
.pm-task-stack { display: grid; gap: .75rem; }
.pm-kanban { grid-template-columns: repeat(4, minmax(240px, 1fr)); align-items: start; overflow-x: auto; padding-bottom: .35rem; }
.pm-kanban-col { min-height: 360px; background: #fbfcfe; }
.pm-kanban-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: .8rem; }
.pm-kanban-head h5 { margin: 0; color: var(--pm-heading); font-weight: 760; }
.pm-kanban-head span { min-width: 1.8rem; height: 1.8rem; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; background: #eef2ff; color: #3045b6; font-weight: 750; font-size: .82rem; }
.pm-task-card { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; background: #fff; box-shadow: 0 1px 2px rgba(67, 89, 113, .05); }
.pm-task-card.done { opacity: .66; }
.pm-task-card label { flex: 1; min-width: 0; }
.pm-task-card label span { min-width: 0; }
.pm-task-card strong { display: block; color: var(--pm-heading); overflow-wrap: anywhere; }
.pm-task-card small { display: block; margin-top: .2rem; color: var(--pm-muted); line-height: 1.35; }
.pm-pager { display: flex; align-items: center; justify-content: flex-end; gap: .65rem; }
.pm-pager span { color: var(--pm-muted); font-size: .86rem; white-space: nowrap; }
.pm-notion { grid-template-columns: 300px minmax(0, 1fr); align-items: stretch; }
.pm-notion-list { max-height: calc(100vh - 240px); }
.pm-notion-editor { display: grid; grid-template-rows: auto minmax(220px, 1fr) auto; gap: 1rem; padding: 1.35rem; }
.pm-note-page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; border-bottom: 1px solid rgba(67, 89, 113, .1); padding-bottom: 1rem; }
.pm-note-page-head h3 { margin: 0 0 .3rem; color: var(--pm-heading); font-size: 1.5rem; font-weight: 780; }
.pm-note-page-head span { color: var(--pm-muted); font-size: .86rem; }
.pm-note-document { color: #2f3a4a; line-height: 1.7; font-size: .98rem; }
.pm-note-document p { margin: 0 0 .75rem; }
.pm-note-compose { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(160px, .7fr) minmax(140px, .5fr) auto; gap: .75rem; align-items: start; padding-top: 1rem; border-top: 1px solid rgba(67, 89, 113, .1); }
.pm-note-compose textarea { grid-column: 1 / -1; min-height: 160px; }
.pm-modal-body > .form-control,
.pm-modal-body > .pm-select-wrap { width: 100%; }
.pm-modal-body textarea.form-control { min-height: 120px; }
.pm-freelancer-card { display: grid; grid-template-rows: auto auto 1fr; gap: .85rem; }
.pm-freelancer-head { align-items: start; }
.pm-freelancer-rate { margin-top: 0; }
@media (max-width: 1199.98px) { .pm-kanban { grid-template-columns: repeat(2, minmax(240px, 1fr)); } .pm-project-hero { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .pm-project-card-head { grid-template-columns: 40px minmax(0, 1fr); } .pm-project-card-head .badge { grid-column: 2; justify-self: start; } .pm-note-compose { grid-template-columns: 1fr; } .pm-pager { justify-content: flex-start; flex-wrap: wrap; } .pm-kanban { grid-template-columns: 1fr; overflow: visible; } .pm-project-hero-stats .pm-cards { grid-template-columns: 1fr; } }
.pm-select-custom {
  position: relative;
  min-width: 0;
  width: 100%;
}
.pm-select-custom input[type="hidden"] { display: none; }
.pm-select-button {
  width: 100%;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .55rem .8rem;
  border: 1px solid var(--pm-line);
  border-radius: 8px;
  background: #fff;
  color: var(--pm-text);
  font: inherit;
  line-height: 1.35;
  text-align: left;
  box-shadow: 0 1px 2px rgba(67, 89, 113, .04);
}
.pm-select-button span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pm-select-button i {
  color: #697a8d;
  transition: transform .15s ease;
}
.pm-select-custom.open .pm-select-button {
  border-color: #696cff;
  box-shadow: 0 0 0 .2rem rgba(105, 108, 255, .14);
}
.pm-select-custom.open .pm-select-button i { transform: rotate(180deg); }
.pm-select-menu {
  position: absolute;
  z-index: 2100;
  top: calc(100% + .35rem);
  right: 0;
  left: 0;
  display: none;
  max-height: 240px;
  overflow: auto;
  padding: .35rem;
  border: 1px solid rgba(67, 89, 113, .14);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 .75rem 2rem rgba(23, 30, 45, .16);
}
.pm-select-custom.open .pm-select-menu { display: grid; gap: .15rem; }
.pm-select-option {
  width: 100%;
  min-height: 36px;
  padding: .5rem .65rem;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--pm-text);
  font: inherit;
  line-height: 1.3;
  text-align: left;
}
.pm-select-option:hover,
.pm-select-option.active {
  background: #f2f3ff;
  color: #3045b6;
}
.pm-modal-body > .pm-select-custom,
.pm-form-row > .pm-select-custom,
.pm-note-compose > .pm-select-custom { width: 100%; }
/* Panel polish: mobile drawer, wrapped content and richer work surfaces. */
.pm-content, .pm-card, .pm-project-card, .pm-section, .pm-table td, .pm-notion, .pm-freelancer-card, .pm-quote-card { min-width: 0; }
.pm-project-card, .pm-project-card *, .pm-project-hero, .pm-project-hero *, .pm-section, .pm-section *, .pm-note-document, .pm-note-document *, .pm-freelancer-card, .pm-freelancer-card *, .pm-quote-card, .pm-quote-card * { overflow-wrap: anywhere; word-break: normal; }
.pm-link-pill { display: inline-flex; align-items: center; min-height: 28px; padding: .25rem .55rem; border: 1px solid rgba(105,108,255,.25); border-radius: 999px; background: #f4f5ff; color: #3045b6; font-weight: 700; font-size: .8rem; }
.pm-mobile-menu-btn { width: 40px; height: 40px; flex: 0 0 auto; }
.layout-overlay { cursor: pointer; }
.pm-menu-open { overflow: hidden; }
@media (max-width: 1199.98px) {
  .layout-menu { position: fixed !important; top: 0; bottom: 0; left: 0; z-index: 2001; transform: translateX(-108%); visibility: visible !important; transition: transform .22s ease; box-shadow: 1rem 0 2rem rgba(23,30,45,.18); }
  .pm-menu-open .layout-menu { transform: translateX(0); }
  .pm-menu-open .layout-overlay { display: block !important; position: fixed; inset: 0; z-index: 2000; background: rgba(23,30,45,.42); opacity: 1 !important; }
  .layout-page { padding-left: 0 !important; }
  .pm-navbar { margin-inline: .75rem; }
}
.pm-update-grid { display: grid; gap: .75rem; }
.pm-update-grid article, .pm-contributor-mini, .pm-detail-task, .pm-session-card { border: 1px solid rgba(67,89,113,.12); border-radius: 8px; background: #fff; box-shadow: 0 1px 2px rgba(67,89,113,.04); }
.pm-update-grid article { padding: .9rem; }
.pm-update-grid article > div { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; }
.pm-update-grid strong, .pm-contributor-mini strong, .pm-detail-task-main strong, .pm-session-card h5 { display: block; color: var(--pm-heading); font-weight: 760; }
.pm-update-grid span, .pm-contributor-mini span, .pm-detail-task-main small, .pm-session-card span, .pm-quote-meta { color: var(--pm-muted); font-size: .84rem; }
.pm-update-grid p { margin: .65rem 0 0; color: #3f4b5f; line-height: 1.5; }
.pm-contributor-mini-grid { display: grid; gap: .75rem; }
.pm-contributor-mini { display: grid; grid-template-columns: 44px minmax(0, 1fr) 42px auto; align-items: center; gap: .75rem; padding: .8rem; }
.pm-score-ring { width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; border: 3px solid #71dd37; background: #f2fff0; color: #256b14; font-weight: 800; font-size: .82rem; }
.pm-detail-task { display: grid; grid-template-columns: 28px minmax(0, 1fr) minmax(260px, .72fr); align-items: center; gap: .75rem; padding: .75rem; }
.pm-detail-task.done { opacity: .68; }
.pm-task-check { display: inline-flex; align-items: center; justify-content: center; margin: 0; }
.pm-detail-task-controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; }
.pm-detail-task-controls .pm-select-button { min-height: 36px; padding: .42rem .6rem; font-size: .86rem; }
.pm-task-toolbar { display: grid; grid-template-columns: minmax(240px, 1fr) minmax(190px, .4fr) minmax(190px, .4fr); gap: .75rem; padding: .9rem; margin-bottom: 1rem; }
.pm-kanban-list { display: grid; gap: .75rem; min-height: 260px; }
.pm-kanban-col { border: 1px solid rgba(67,89,113,.12); border-radius: 8px; padding: .85rem; }
.pm-kanban-col[data-task-drop] { transition: background .15s ease, border-color .15s ease; }
.pm-task-card[draggable="true"] { cursor: grab; }
.pm-task-card-foot { display: flex; align-items: center; justify-content: space-between; gap: .5rem; width: 100%; margin-top: .6rem; color: var(--pm-muted); font-size: .8rem; }
.pm-note-block { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: .5rem; padding: .28rem 0; }
.pm-note-block > span { color: #b6beca; font-weight: 800; user-select: none; }
.pm-note-block p { margin: 0; min-height: 1.6rem; }
.pm-note-block.empty p { color: var(--pm-muted); }
.pm-notion-search { margin: .75rem 0; }
.pm-freelancer-card { border: 1px solid rgba(67,89,113,.12); }
.pm-freelancer-head { grid-template-columns: 44px minmax(0,1fr) 42px; }
.pm-freelancer-notes { min-height: 72px; padding: .75rem; border-radius: 8px; background: #f8f9fb; color: #3f4b5f; line-height: 1.45; }
.pm-session-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; }
.pm-session-card { display: grid; gap: .8rem; padding: 1rem; }
.pm-session-metrics { display: flex; align-items: baseline; justify-content: space-between; padding-top: .75rem; border-top: 1px solid rgba(67,89,113,.1); }
.pm-session-metrics strong { color: var(--pm-heading); font-size: 1.35rem; }
.pm-session-meta { display: grid; gap: .25rem; }
.pm-quote-head { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; }
.pm-quote-meta { display: flex; justify-content: space-between; gap: .75rem; padding-top: .65rem; border-top: 1px solid rgba(67,89,113,.1); }
@media (max-width: 840px) {
  .pm-task-toolbar, .pm-detail-task { grid-template-columns: 1fr; }
  .pm-detail-task { align-items: stretch; }
  .pm-detail-task-controls { grid-template-columns: 1fr; }
  .pm-contributor-mini { grid-template-columns: 40px minmax(0,1fr); }
  .pm-contributor-mini .pm-score-ring, .pm-contributor-mini .badge { grid-column: 2; justify-self: start; }
}
@media (max-width: 575.98px) {
  .pm-navbar .text-heading { font-size: .95rem; }
  .pm-navbar .text-muted.small { display: none; }
  .pm-page-head { gap: .75rem; }
  .pm-head-actions { width: 100%; justify-content: flex-start; flex-wrap: wrap; }
}
/* Final panel refinements */
.pm-kanban { display: grid !important; grid-template-columns: repeat(4, minmax(300px, 1fr)) !important; gap: 1rem; align-items: start; overflow-x: auto; }
.pm-kanban-col { min-width: 300px; background: #f7f8fb !important; }
.pm-task-card, .pm-task-card * { overflow-wrap: normal !important; word-break: normal !important; white-space: normal; }
.pm-task-card { display: grid !important; grid-template-columns: 1fr; gap: .75rem; padding: .9rem; margin-top: .75rem; border: 1px solid rgba(67,89,113,.12); border-radius: 8px; background: #fff; box-shadow: 0 4px 14px rgba(23,30,45,.05); }
.pm-task-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; }
.pm-task-card label { display: flex; gap: .55rem; align-items: flex-start; min-width: 0; margin: 0; }
.pm-task-card strong { display: block; max-width: 100%; color: var(--pm-heading); line-height: 1.35; }
.pm-task-card small, .pm-task-people, .pm-task-progress { color: var(--pm-muted); font-size: .84rem; line-height: 1.35; }
.pm-task-people { padding: .55rem .65rem; border-radius: 8px; background: #f6f7fb; }
.pm-task-progress { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.pm-detail-task { grid-template-columns: 28px minmax(0,1fr) minmax(320px,.8fr); }
.pm-detail-task-controls { grid-template-columns: repeat(2, minmax(0,1fr)) auto; align-items: center; }
.pm-check-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: .55rem; width: 100%; }
.pm-check-chip { display: flex; align-items: center; gap: .5rem; min-height: 38px; padding: .5rem .65rem; border: 1px solid rgba(67,89,113,.14); border-radius: 8px; background: #fff; cursor: pointer; }
.pm-check-chip span { min-width: 0; color: var(--pm-text); font-size: .88rem; }
.pm-modal-label { grid-column: 1 / -1; color: var(--pm-muted); font-size: .78rem; font-weight: 800; text-transform: uppercase; }
.pm-task-modal-head h4 { margin: 0 0 .25rem; color: var(--pm-heading); font-weight: 800; }
.pm-task-checklist { display: grid; gap: .45rem; width: 100%; }
.pm-task-checkline { display: flex; align-items: center; gap: .55rem; padding: .55rem .65rem; border-radius: 8px; background: #f8f9fb; }
.pm-asset-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 1rem; }
.pm-asset-card { display: grid; gap: .9rem; padding: 1rem; border: 1px solid rgba(67,89,113,.12); border-radius: 8px; background: #fff; box-shadow: 0 6px 18px rgba(23,30,45,.05); min-width: 0; }
.pm-asset-head { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; }
.pm-asset-head h5 { margin: 0; color: var(--pm-heading); font-weight: 800; line-height: 1.3; }
.pm-asset-head span { color: var(--pm-muted); font-size: .84rem; }
.pm-asset-money { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .75rem; }
.pm-asset-money > div { padding: .75rem; border-radius: 8px; background: #f6f7fb; }
.pm-asset-money span, .pm-asset-meta span { display: block; color: var(--pm-muted); font-size: .76rem; text-transform: uppercase; font-weight: 800; }
.pm-asset-money strong { display: block; margin-top: .2rem; color: var(--pm-heading); font-size: 1.05rem; }
.pm-asset-meta { display: grid; grid-template-columns: 90px minmax(0,1fr); gap: .35rem .75rem; }
.pm-asset-meta strong { min-width: 0; color: #3f4b5f; font-size: .88rem; }
.pm-listing-row { display: flex; flex-wrap: wrap; gap: .35rem; }
.pm-mini-badge { display: inline-flex; align-items: center; min-height: 24px; padding: .18rem .5rem; border-radius: 999px; background: #eef7ff; color: #1769aa; font-weight: 750; font-size: .75rem; }
.pm-slash-toolbar { display: flex; flex-wrap: wrap; gap: .45rem; padding: .5rem; border-radius: 8px; background: #f6f7fb; }
.pm-note-document h1 { margin: .4rem 0 .6rem; color: var(--pm-heading); font-size: 1.65rem; font-weight: 850; }
.pm-note-document h2 { margin: .35rem 0 .5rem; color: var(--pm-heading); font-size: 1.28rem; font-weight: 800; }
.pm-note-todo { display: flex; align-items: center; gap: .55rem; margin: .35rem 0; }
.pm-freelancer-hero { display: grid; grid-template-columns: minmax(0,.8fr) minmax(360px,1fr); gap: 1rem; margin-bottom: 1rem; padding: 1.15rem; border: 1px solid rgba(67,89,113,.12); border-radius: 8px; background: #fff; }
.pm-avatar-lg { width: 64px; height: 64px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; background: #eef2ff; color: #3045b6; font-weight: 900; font-size: 1.1rem; }
.pm-mini-grid { display: grid; gap: .65rem; }
.pm-mini-card { display: grid; gap: .35rem; padding: .75rem; border: 1px solid rgba(67,89,113,.12); border-radius: 8px; background: #fff; }
.pm-session-grid-compact { grid-template-columns: 1fr; }
.pm-quote-card, .pm-session-card { border: 1px solid rgba(67,89,113,.12); box-shadow: 0 6px 18px rgba(23,30,45,.05); }
@media (max-width: 900px) { .pm-kanban { grid-template-columns: 1fr !important; overflow: visible; } .pm-kanban-col { min-width: 0; } .pm-detail-task { grid-template-columns: 1fr; } .pm-detail-task-controls { grid-template-columns: 1fr; } .pm-asset-money, .pm-freelancer-hero { grid-template-columns: 1fr; } }.pm-quote-board { display: grid; grid-template-columns: repeat(3, minmax(280px, 1fr)); gap: 1rem; align-items: start; }
.pm-quote-lane { display: grid; gap: .75rem; min-height: 320px; padding: .85rem; border: 1px solid rgba(67,89,113,.12); border-radius: 8px; background: #f7f8fb; }
.pm-session-card-readable { grid-template-columns: 1fr; }
.pm-session-title { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; }
.pm-session-title h5 { margin: 0; }
@media (max-width: 980px) { .pm-quote-board { grid-template-columns: 1fr; } }
/* Stability fixes: note editor, task modal and enriched asset cards. */
.pm-note-editor-card,
.pm-note-modal {
  gap: .8rem;
}
.pm-note-tools {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  padding: .6rem;
  border: 1px solid rgba(67,89,113,.1);
  border-radius: 8px;
  background: #f8f9fb;
}
.pm-note-tool {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-height: 34px;
  padding: .38rem .65rem;
  border: 1px solid rgba(67,89,113,.14);
  border-radius: 7px;
  background: #fff;
  color: #3f4b5f;
  font-weight: 750;
  font-size: .84rem;
}
.pm-note-tool span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 22px;
  border-radius: 5px;
  background: #eef2ff;
  color: #3045b6;
  font-size: .72rem;
}
.pm-note-actions {
  display: flex;
  justify-content: flex-end;
}
.pm-note-compose textarea,
.pm-note-modal textarea {
  min-height: 220px;
  line-height: 1.65;
  font-size: .95rem;
}
.pm-task-editor {
  display: grid;
  gap: 1rem;
  min-width: min(760px, calc(100vw - 3rem));
}
.pm-task-editor-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: .9rem;
  border-bottom: 1px solid rgba(67,89,113,.1);
}
.pm-task-editor-head h4 {
  margin: .15rem 0 .25rem;
  color: var(--pm-heading);
  font-weight: 850;
  line-height: 1.25;
}
.pm-task-editor-head p {
  margin: 0;
  color: var(--pm-muted);
}
.pm-task-editor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .8rem;
}
.pm-field-label {
  display: grid;
  gap: .38rem;
  color: var(--pm-muted);
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
}
.pm-task-done-toggle {
  display: flex;
  align-items: center;
  gap: .55rem;
  min-height: 42px;
  padding: .6rem .75rem;
  border: 1px solid rgba(67,89,113,.12);
  border-radius: 8px;
  background: #f8f9fb;
  color: #3f4b5f;
  font-weight: 750;
}
.pm-task-checklist-card {
  display: grid;
  gap: .7rem;
  padding: .85rem;
  border: 1px solid rgba(67,89,113,.12);
  border-radius: 8px;
  background: #fff;
}
.pm-task-checklist-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
}
.pm-task-checklist-head strong {
  color: var(--pm-heading);
}
.pm-task-checklist-head span {
  color: var(--pm-muted);
  font-size: .84rem;
}
.pm-mini-badge-warn {
  background: #fff4e5;
  color: #a15c00;
}
.pm-asset-notes {
  margin: 0;
  padding: .7rem .8rem;
  border-radius: 8px;
  background: #f8f9fb;
  color: #3f4b5f;
  line-height: 1.45;
}
@media (max-width: 760px) {
  .pm-task-editor { min-width: 0; }
  .pm-task-editor-grid { grid-template-columns: 1fr; }
  .pm-task-editor-head { display: grid; }
}
.pm-founder-intel { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 1rem; margin: 1.25rem 0; }
.pm-exec-chart-card { grid-column: span 6; background: #fff; border: 1px solid var(--pm-border); border-radius: 8px; padding: 1rem; box-shadow: 0 14px 30px rgba(25, 35, 54, .06); min-width: 0; }
.pm-exec-chart-card.pm-site-card { grid-column: span 12; }
.pm-chart-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: .75rem; }
.pm-chart-head span { display: block; color: var(--pm-muted); font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0; }
.pm-chart-head h5 { margin: .12rem 0 0; color: var(--pm-heading); font-size: 1.05rem; font-weight: 800; }
.pm-chart-legend { display: flex; align-items: center; gap: .38rem; color: var(--pm-muted); font-size: .82rem; white-space: nowrap; }
.pm-chart-legend b { width: .72rem; height: .72rem; border-radius: 999px; display: inline-block; }
.pm-chart-legend b.current { background: #2563eb; }
.pm-chart-legend b.previous { background: #94a3b8; }
.pm-chart-wrap { width: 100%; aspect-ratio: 3.05 / 1; min-height: 190px; overflow: hidden; }
.pm-chart-wrap svg { width: 100%; height: 100%; display: block; }
.pm-chart-grid line { stroke: #e8edf4; stroke-width: 1; }
.pm-chart-line { fill: none; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.pm-chart-line.current { stroke: #2563eb; filter: drop-shadow(0 8px 12px rgba(37, 99, 235, .18)); }
.pm-chart-line.previous { stroke: #94a3b8; stroke-dasharray: 7 8; }
.pm-chart-bar.current { fill: #2563eb; rx: 5; }
.pm-chart-bar.previous { fill: #cbd5e1; rx: 5; }
.pm-chart-wrap text { fill: #64748b; font-size: 13px; text-anchor: middle; }
.pm-chart-insight { margin: .85rem 0 0; color: #334155; font-size: .92rem; line-height: 1.55; }
.pm-site-bars { display: grid; gap: .85rem; padding: .3rem 0 .15rem; }
.pm-site-bar { display: grid; gap: .45rem; }
.pm-site-bar > div { display: flex; justify-content: space-between; gap: 1rem; color: #475569; font-size: .9rem; }
.pm-site-bar strong { color: var(--pm-heading); font-weight: 800; }
.pm-site-bar i { display: block; height: .72rem; border-radius: 999px; background: linear-gradient(90deg, #2563eb, #14b8a6); box-shadow: 0 8px 18px rgba(20, 184, 166, .16); }
@media (max-width: 991px) {
  .pm-exec-chart-card, .pm-exec-chart-card.pm-site-card { grid-column: 1 / -1; }
  .pm-chart-head { flex-direction: column; }
  .pm-chart-wrap { min-height: 170px; }
}
.pm-chart-actions { display: flex; align-items: flex-end; flex-direction: column; gap: .55rem; min-width: 0; }
.pm-chart-tabs { display: inline-flex; align-items: center; gap: .25rem; padding: .2rem; border: 1px solid #e2e8f0; border-radius: 8px; background: #f8fafc; max-width: 100%; overflow-x: auto; }
.pm-chart-tabs button { border: 0; background: transparent; color: #64748b; font-size: .78rem; font-weight: 800; padding: .38rem .62rem; border-radius: 6px; white-space: nowrap; }
.pm-chart-tabs button.active { background: #fff; color: #1d4ed8; box-shadow: 0 4px 12px rgba(15, 23, 42, .08); }
.pm-chart-dot { fill: #2563eb; stroke: #fff; stroke-width: 2; }
.pm-market-donut-wrap { display: grid; grid-template-columns: minmax(180px, 260px) minmax(0, 1fr); align-items: center; gap: 1.2rem; }
.pm-market-donut { width: min(240px, 100%); aspect-ratio: 1; border-radius: 999px; display: grid; place-items: center; box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .06), 0 18px 38px rgba(15, 23, 42, .08); }
.pm-market-donut > div { width: 62%; aspect-ratio: 1; border-radius: 999px; background: #fff; display: grid; place-items: center; align-content: center; text-align: center; padding: .75rem; box-shadow: 0 8px 22px rgba(15, 23, 42, .08); }
.pm-market-donut strong { display: block; color: var(--pm-heading); font-size: clamp(1rem, 2vw, 1.45rem); font-weight: 900; line-height: 1.1; }
.pm-market-donut span { display: block; margin-top: .25rem; color: var(--pm-muted); font-size: .78rem; font-weight: 700; }
.pm-market-list { display: grid; gap: .55rem; min-width: 0; }
.pm-market-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: .8rem; padding: .68rem .8rem; border: 1px solid #e2e8f0; border-radius: 8px; background: #f8fafc; }
.pm-market-row span { display: flex; align-items: center; gap: .45rem; min-width: 0; color: #334155; font-weight: 800; overflow-wrap: anywhere; }
.pm-market-row span i { width: .72rem; height: .72rem; border-radius: 999px; flex: 0 0 auto; }
.pm-market-row strong { color: var(--pm-heading); font-weight: 900; white-space: nowrap; }
.pm-market-row em { color: var(--pm-muted); font-style: normal; font-size: .78rem; white-space: nowrap; }
@media (max-width: 767px) {
  .pm-chart-actions { align-items: flex-start; width: 100%; }
  .pm-market-donut-wrap { grid-template-columns: 1fr; }
  .pm-market-donut { margin: 0 auto; max-width: 220px; }
  .pm-market-row { grid-template-columns: 1fr; gap: .25rem; }
}
.pm-growth { display: inline-flex; align-items: center; font-weight: 800; font-size: .82rem; }
.pm-growth.up { color: #047857; }
.pm-growth.down { color: #b91c1c; }
.pm-data-state { display: inline-flex; align-items: center; padding: .28rem .5rem; border-radius: 6px; background: #fff7ed; color: #c2410c; font-size: .78rem; font-weight: 800; white-space: nowrap; }
.pm-section-head-row { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: .75rem; }
.pm-report-product { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .85rem 0; border-bottom: 1px solid #edf2f7; min-width: 0; }
.pm-report-product:last-child { border-bottom: 0; }
.pm-report-product strong, .pm-report-product span { overflow-wrap: anywhere; }
.pm-report-product > div:first-child { min-width: 0; }
.pm-report-meta { display: flex; align-items: center; justify-content: flex-end; gap: .5rem; flex-wrap: wrap; color: var(--pm-muted); font-size: .82rem; white-space: nowrap; }
.pm-discord-report { margin: 1rem 0 0; padding: 1rem; border: 1px solid #e2e8f0; border-radius: 8px; background: #0f172a; color: #e2e8f0; font-size: .86rem; line-height: 1.55; white-space: pre-wrap; overflow-x: auto; }
@media (max-width: 767px) {
  .pm-section-head-row, .pm-report-product { align-items: flex-start; flex-direction: column; }
  .pm-report-meta { justify-content: flex-start; white-space: normal; }
}