:root {
  --product-body-size: 13px;
  --product-meta-size: 12px;
  --product-control-size: 13px;
  --product-chart-label-size: 12px;
}

.side .nav-text {
  font-size: 14px;
}

.side .brand-copy small,
.side .user-info span,
.workspace-toolbar .role-switcher-wrap > span {
  font-size: 12px;
}

.workspace-toolbar .role-switcher {
  font-size: 13px;
}

#moduleHost,
#agentWorkbench,
#dmpDrawerHost,
.enterprise-action-dialog,
.quick-modal,
.insight-modal {
  font-size: 14px;
}

#moduleHost p,
#moduleHost li,
#moduleHost td,
#moduleHost th,
#moduleHost label,
#moduleHost input,
#moduleHost textarea,
#moduleHost select,
#agentWorkbench p,
#agentWorkbench li,
#agentWorkbench td,
#agentWorkbench th,
#agentWorkbench label,
#dmpDrawerHost p,
#dmpDrawerHost li,
#dmpDrawerHost td,
#dmpDrawerHost th,
#dmpDrawerHost label,
#dmpDrawerHost input,
#dmpDrawerHost textarea,
#dmpDrawerHost select {
  font-size: var(--product-body-size);
  line-height: 1.55;
}

#moduleHost button,
#agentWorkbench button,
#dmpDrawerHost button,
.enterprise-action-dialog button,
.quick-modal button,
.insight-modal button,
.composer button,
.composer textarea {
  font-size: var(--product-control-size);
}

#moduleHost small,
#agentWorkbench small,
#dmpDrawerHost small,
.enterprise-action-dialog small,
.quick-modal small,
.insight-modal small {
  font-size: var(--product-meta-size);
  line-height: 1.45;
}

#moduleHost h1 {
  font-size: 24px;
  line-height: 1.3;
}

#moduleHost h2,
#dmpDrawerHost h2 {
  font-size: 18px;
  line-height: 1.35;
}

#moduleHost h3,
#dmpDrawerHost h3 {
  font-size: 15px;
  line-height: 1.4;
}

#moduleHost .btn,
#moduleHost .dmp-btn,
#moduleHost .system-nav-item,
#moduleHost .product-primary-nav > button,
#dmpDrawerHost .dmp-btn {
  min-height: 34px;
  font-size: var(--product-control-size);
}

#moduleHost .status,
#moduleHost .dmp-status,
#moduleHost .system-status,
#moduleHost .five-status,
#moduleHost .dmp-badge,
#dmpDrawerHost .status,
#dmpDrawerHost .dmp-status,
#dmpDrawerHost .dmp-badge {
  font-size: 12px;
}

#moduleHost .dmp-table th,
#moduleHost .dmp-table td,
#moduleHost .dataset-table th,
#moduleHost .dataset-table td,
#moduleHost .system-result-table th,
#moduleHost .system-result-table td,
#dmpDrawerHost .dmp-table th,
#dmpDrawerHost .dmp-table td {
  font-size: 13px;
  line-height: 1.5;
}

#moduleHost .dmp-table-action,
#moduleHost .admin-link,
#dmpDrawerHost .dmp-table-action,
#dmpDrawerHost .dmp-inline-action {
  font-size: 12px;
}

#moduleHost .dmp-cycle-workbench-head small,
#moduleHost .dmp-stage-control small,
#moduleHost .dmp-stage-control span,
#moduleHost .dmp-task-group > header p,
#moduleHost .dmp-cycle-card-progress > em,
#moduleHost .dmp-project-name small,
#moduleHost .dmp-project-owner small,
#moduleHost .dmp-project-owner span,
#moduleHost .dmp-project-decision span,
#moduleHost .dmp-project-progress small,
#moduleHost .dmp-project-progress em,
#dmpDrawerHost .dmp-project-workflow-strip small,
#dmpDrawerHost .dmp-project-baselines small,
#dmpDrawerHost .dmp-project-decision-list span,
#dmpDrawerHost .dmp-project-decision-list time,
#dmpDrawerHost .dmp-project-linkage small,
#dmpDrawerHost .dmp-project-definition dt,
#dmpDrawerHost .dmp-project-detail-side small,
#dmpDrawerHost .dmp-project-detail-side span,
#dmpDrawerHost .dmp-project-metric-bar span,
#dmpDrawerHost .dmp-project-metric-bar b,
#dmpDrawerHost .dmp-project-metric-bar small,
#dmpDrawerHost .dmp-project-milestone span,
#dmpDrawerHost .dmp-project-milestone em,
#dmpDrawerHost .dmp-project-finance-grid small,
#dmpDrawerHost .dmp-project-finance-grid span,
#dmpDrawerHost .dmp-project-benefit-grid small,
#dmpDrawerHost .dmp-project-benefit-grid span {
  font-size: 12px;
}

#moduleHost .dmp-stage-control b,
#moduleHost .dmp-task-group > header h3,
#moduleHost .dmp-project-name b,
#moduleHost .dmp-project-owner b,
#moduleHost .dmp-project-decision b,
#dmpDrawerHost .dmp-project-workflow-strip b,
#dmpDrawerHost .dmp-project-linkage b,
#dmpDrawerHost .dmp-project-detail-side b,
#dmpDrawerHost .dmp-project-milestone b {
  font-size: 13px;
}

#moduleHost .dmp-cycle-mode-actions button,
#moduleHost .dmp-project-cycle-switch button,
#moduleHost .dmp-project-filters button,
#dmpDrawerHost .dmp-project-drawer-tabs button {
  min-height: 34px;
  font-size: 13px;
}

#moduleHost .foundation-op-toolbar label,
#moduleHost .foundation-op-toolbar input,
#moduleHost .foundation-op-toolbar button,
#moduleHost .foundation-op-table small,
#moduleHost .foundation-op-card small,
#moduleHost .foundation-op-drawer small,
#moduleHost .foundation-lineage small,
#moduleHost .foundation-timeline small {
  font-size: 12px;
}

.dmp-project-analysis[open] > summary {
  background: #f3f7fb;
}

.dmp-project-analysis > summary > span b {
  font-size: 14px;
}

.dmp-project-analysis > summary dt,
.dmp-project-analysis > summary > span small {
  font-size: 12px;
}

.dmp-project-analysis > summary dd {
  font-size: 14px;
}

.dmp-project-analytics-grid {
  display: grid;
  grid-template-columns: minmax(360px, .92fr) minmax(520px, 1.28fr);
  gap: 12px;
}

.dmp-project-analytics-grid .dmp-project-timeline {
  grid-column: 1 / -1;
}

.dmp-project-viz > header {
  min-height: 58px;
  padding: 12px 16px;
}

.dmp-project-viz > header small,
.dmp-project-viz > header > span {
  font-size: 12px;
}

.dmp-project-viz > header h3 {
  font-size: 15px;
}

.dmp-project-matrix-plot {
  position: relative;
  min-height: 275px;
  margin: 14px 18px 20px 58px;
  border: 1px solid #dce5ef;
  background: #f8fafc;
}

.dmp-project-matrix-plot .quadrant {
  position: absolute;
  inset: 0;
}

.dmp-project-matrix-plot .quadrant::before,
.dmp-project-matrix-plot .quadrant::after {
  position: absolute;
  background: #dce5ef;
  content: "";
}

.dmp-project-matrix-plot .quadrant::before {
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
}

.dmp-project-matrix-plot .quadrant::after {
  top: 50%;
  right: 0;
  left: 0;
  height: 1px;
}

.dmp-project-matrix-plot .axis-x,
.dmp-project-matrix-plot .axis-y {
  position: absolute;
  z-index: 1;
  color: #6a788b;
  font-size: 11px;
}

.dmp-project-matrix-plot .axis-x {
  bottom: -20px;
}

.dmp-project-matrix-plot .axis-x.left { left: 0; }
.dmp-project-matrix-plot .axis-x.right { right: 0; }

.dmp-project-matrix-plot .axis-y {
  left: -52px;
  width: 44px;
  line-height: 1.35;
  text-align: right;
}

.dmp-project-matrix-plot .axis-y.top { top: 0; }
.dmp-project-matrix-plot .axis-y.bottom { bottom: 0; }

.dmp-project-matrix-point {
  position: absolute;
  z-index: 2;
  top: var(--y);
  left: var(--x);
  display: grid;
  place-items: center;
  width: var(--size);
  height: var(--size);
  min-height: 0;
  padding: 0;
  border: 3px solid rgba(255, 255, 255, .92);
  border-radius: 50%;
  background: #3f75b3;
  box-shadow: 0 3px 10px rgba(30, 57, 91, .18);
  color: #fff;
  transform: translate(-50%, -50%);
}

.dmp-project-matrix-point.green { background: #2c8a68; }
.dmp-project-matrix-point.amber { background: #c98a24; }
.dmp-project-matrix-point.orange { background: #c86632; }
.dmp-project-matrix-point.red { background: #c34d55; }

.dmp-project-matrix-point > b {
  font-size: 13px;
}

.dmp-project-matrix-point > span {
  display: none;
}

.dmp-project-matrix-legend {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 4px 14px 14px;
}

.dmp-project-matrix-legend-item {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-height: 52px;
  padding: 8px;
  border: 1px solid #e1e8f0;
  border-radius: 4px;
  background: #fff;
  color: #18304f;
  text-align: left;
}

.dmp-project-matrix-legend-item:hover {
  border-color: #9bb8dc;
  background: #f6f9fd;
}

.dmp-project-matrix-legend-item > i {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #3f75b3;
  color: #fff;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.dmp-project-matrix-legend-item > i.green { background: #2c8a68; }
.dmp-project-matrix-legend-item > i.amber { background: #c98a24; }
.dmp-project-matrix-legend-item > i.orange { background: #c86632; }
.dmp-project-matrix-legend-item > i.red { background: #c34d55; }

.dmp-project-matrix-legend-item span,
.dmp-project-matrix-legend-item b,
.dmp-project-matrix-legend-item small {
  display: block;
  min-width: 0;
}

.dmp-project-matrix-legend-item b {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dmp-project-matrix-legend-item small {
  margin-top: 3px;
  overflow: hidden;
  color: #68778a;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dmp-project-value-list,
.dmp-project-timeline-list {
  display: grid;
}

.dmp-project-value-row {
  display: grid;
  grid-template-columns: minmax(170px, .7fr) minmax(330px, 1.3fr);
  align-items: center;
  gap: 16px;
  min-height: 82px;
  padding: 10px 16px;
  border: 0;
  border-bottom: 1px solid #e9eef4;
  background: #fff;
  text-align: left;
}

.dmp-project-value-row:last-child,
.dmp-project-timeline-row:last-child {
  border-bottom: 0;
}

.dmp-project-value-row:hover,
.dmp-project-timeline-row:hover {
  background: #f7f9fc;
}

.dmp-project-value-row > span {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}

.dmp-project-value-row > span i {
  grid-row: 1 / span 2;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3f75b3;
}

.dmp-project-value-row > span i.green { background: #2c8a68; }
.dmp-project-value-row > span i.amber { background: #c98a24; }
.dmp-project-value-row > span i.orange { background: #c86632; }
.dmp-project-value-row > span i.red { background: #c34d55; }

.dmp-project-value-row > span b {
  overflow: hidden;
  color: #132d4f;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dmp-project-value-row > span small {
  grid-column: 2;
  color: #6d7c91;
  font-size: 12px;
}

.dmp-project-value-row > div {
  display: grid;
  gap: 7px;
}

.dmp-project-value-row label {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 40px;
  align-items: center;
  gap: 8px;
  color: #5d6d82;
  font-size: 12px;
}

.dmp-project-value-row label > i {
  height: 7px;
  overflow: hidden;
  border-radius: 4px;
  background: #e8edf3;
}

.dmp-project-value-row label em {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #3f75b3;
}

.dmp-project-value-row label:nth-child(2) em { background: #2c8a68; }
.dmp-project-value-row label:nth-child(3) em { background: #7d8ea5; }

.dmp-project-value-row label strong {
  color: #263a55;
  font-size: 12px;
  text-align: right;
}

.dmp-project-timeline > header > span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.dmp-project-timeline > header > span i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #356aa8;
}

.dmp-project-timeline > header > span i + i {
  margin-left: 8px;
  background: #2c8a68;
}

.dmp-project-timeline-row {
  display: grid;
  grid-template-columns: minmax(210px, .8fr) minmax(420px, 1.5fr) minmax(180px, .7fr);
  align-items: center;
  gap: 16px;
  min-height: 60px;
  padding: 8px 16px;
  border: 0;
  border-bottom: 1px solid #e9eef4;
  background: #fff;
  text-align: left;
}

.dmp-project-timeline-row > span b,
.dmp-project-timeline-row > span small {
  display: block;
}

.dmp-project-timeline-row > span b,
.dmp-project-timeline-row > strong {
  overflow: hidden;
  color: #263a55;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dmp-project-timeline-row > span small {
  margin-top: 3px;
  color: #6d7c91;
  font-size: 11px;
}

.dmp-project-timeline-row > div {
  position: relative;
  height: 34px;
}

.dmp-project-timeline-row > div > i {
  position: absolute;
  top: 15px;
  right: 0;
  left: 0;
  height: 2px;
  background: #dce5ef;
}

.dmp-project-timeline-row em {
  position: absolute;
  top: 8px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #356aa8;
  font-style: normal;
  transform: translateX(-50%);
}

.dmp-project-timeline-row em.milestone {
  background: #2c8a68;
}

.dmp-project-timeline-row em small {
  position: absolute;
  top: 18px;
  left: 50%;
  color: #6d7c91;
  font-size: 10px;
  white-space: nowrap;
  transform: translateX(-50%);
}

.dmp-project-snapshot {
  overflow: hidden;
  border: 1px solid #d9e3ee;
  border-radius: 6px;
  background: #fff;
}

.dmp-project-snapshot > header,
.dmp-project-risk-chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border-bottom: 1px solid #e7edf3;
  background: #f7f9fc;
}

.dmp-project-snapshot > header small,
.dmp-project-snapshot > header h3,
.dmp-project-risk-chart-head small,
.dmp-project-risk-chart-head h3 {
  display: block;
  margin: 0;
}

.dmp-project-snapshot > header small,
.dmp-project-snapshot > header > span,
.dmp-project-risk-chart-head small,
.dmp-project-risk-chart-head > span {
  color: #6d7c91;
  font-size: 12px;
}

.dmp-project-snapshot > header h3,
.dmp-project-risk-chart-head h3 {
  margin-top: 3px;
  color: #102847;
  font-size: 15px;
}

.dmp-project-snapshot-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dmp-project-snapshot-metric {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 14px;
  border-right: 1px solid #e7edf3;
}

.dmp-project-snapshot-metric:last-child {
  border-right: 0;
}

.dmp-project-snapshot-metric span,
.dmp-project-snapshot-metric b,
.dmp-project-snapshot-metric small {
  display: block;
}

.dmp-project-snapshot-metric span,
.dmp-project-snapshot-metric small {
  color: #6d7c91;
  font-size: 12px;
}

.dmp-project-snapshot-metric b {
  margin-top: 4px;
  color: #102847;
  font-size: 16px;
}

.dmp-project-snapshot-metric > i {
  height: 8px;
  overflow: hidden;
  border-radius: 4px;
  background: #e9eef4;
}

.dmp-project-snapshot-metric > i em {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #356aa8;
}

.dmp-project-snapshot-metric > i em.actual { background: #2c8a68; }
.dmp-project-snapshot-metric > i em.forecast { background: #7d8ea5; }
.dmp-project-snapshot-metric > i em.risk { background: #c34d55; }

.dmp-project-snapshot-metric > strong {
  color: #40536c;
  font-size: 12px;
}

.dmp-project-risk-chart {
  overflow: hidden;
  border: 1px solid #d9e3ee;
  border-radius: 6px;
  background: #fff;
}

.dmp-project-risk-bars {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.dmp-project-risk-bars > div {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 10px;
}

.dmp-project-risk-bars span,
.dmp-project-risk-bars strong {
  color: #40536c;
  font-size: 12px;
}

.dmp-project-risk-bars > div > i {
  position: relative;
  height: 12px;
  overflow: hidden;
  border-radius: 6px;
  background: #edf1f5;
}

.dmp-project-risk-bars em,
.dmp-project-risk-bars b {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  border-radius: inherit;
}

.dmp-project-risk-bars em { background: #e9b0b5; }
.dmp-project-risk-bars b { background: #c34d55; }
.dmp-project-risk-bars .medium em { background: #f1d6a8; }
.dmp-project-risk-bars .medium b { background: #c98a24; }
.dmp-project-risk-bars .low em { background: #b9dbc8; }
.dmp-project-risk-bars .low b { background: #2c8a68; }

.dmp-project-risk-chart > footer {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  padding: 0 16px 14px;
  color: #6d7c91;
  font-size: 11px;
}

.dmp-project-risk-chart > footer span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.dmp-project-risk-chart > footer i {
  width: 12px;
  height: 6px;
  border-radius: 3px;
  background: #e9b0b5;
}

.dmp-project-risk-chart > footer span + span i {
  background: #c34d55;
}

@media (max-width: 1280px) {
  .dmp-project-analytics-grid {
    grid-template-columns: 1fr;
  }

  .dmp-project-analytics-grid .dmp-project-timeline {
    grid-column: 1;
  }

  .dmp-project-snapshot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dmp-project-snapshot-metric:nth-child(2) {
    border-right: 0;
  }

  .dmp-project-snapshot-metric:nth-child(-n+2) {
    border-bottom: 1px solid #e7edf3;
  }
}
