/*
 * Workbench and project center deep polish (2026-08-17)
 *
 * A presentation layer that promotes the next human action, compresses
 * management summaries and keeps the existing audit workflow intact.
 */

/* Workbench: current action first, tools second. */
#view-dashboard .dash-header-compact {
  min-height: 96px;
  margin-bottom: 10px;
  padding: 17px 20px;
  border-color: #dfe4ea;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .025), 0 12px 28px rgba(15, 23, 42, .035);
}

#view-dashboard .dash-header-compact .dash-eyebrow {
  margin-bottom: 5px;
  color: #526173;
  letter-spacing: .04em;
}

#view-dashboard .dash-header-compact .dash-title {
  font-size: 25px !important;
  letter-spacing: -.025em;
}

#view-dashboard .dash-header-compact .dash-subtitle {
  color: #657184 !important;
}

#view-dashboard .dash-access-strip {
  grid-template-columns: minmax(300px, .82fr) minmax(0, 1.38fr);
  gap: 10px;
  margin-bottom: 10px;
}

#view-dashboard .dash-current-step-jump {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  grid-template-areas:
    "icon label label"
    "icon title arrow"
    "icon meta arrow";
  gap: 1px 12px;
  min-height: 92px;
  padding: 13px 16px;
  overflow: hidden;
  border: 1px solid #b9d2f6;
  border-radius: 16px;
  background: linear-gradient(135deg, #eef5ff 0%, #f8fbff 58%, #fff 100%);
  color: #172033;
  text-align: left;
  box-shadow: 0 10px 24px rgba(23, 105, 232, .07);
}

#view-dashboard .dash-current-step-jump::after {
  content: "›";
  grid-area: arrow;
  align-self: center;
  color: #1769e8;
  font-size: 24px;
  font-weight: 500;
}

#view-dashboard .dash-current-step-jump > i {
  grid-area: icon;
  align-self: center;
  width: 32px;
  height: 32px;
  padding: 7px;
  border-radius: 10px;
  background: #1769e8;
  color: #fff;
}

#view-dashboard .dash-current-step-jump > span {
  grid-area: label;
  color: #1769e8;
  font-size: 12px;
  font-weight: 800;
}

#view-dashboard .dash-current-step-jump > strong {
  grid-area: title;
  overflow: hidden;
  font-size: 17px;
  letter-spacing: -.012em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#view-dashboard .dash-current-step-jump > small {
  grid-area: meta;
  overflow: hidden;
  color: #657184;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#view-dashboard .dash-current-step-jump:hover {
  border-color: #8db7f0;
  background: #edf5ff;
  transform: translateY(-1px);
}

#view-dashboard .dash-tool-dock {
  min-height: 92px;
  padding: 11px 13px;
  border-color: #e1e5ea;
  border-radius: 16px;
  box-shadow: none;
}

#view-dashboard .dash-tool-dock-head > div span {
  font-size: 14px;
}

#view-dashboard .dash-tool-dock-head > div small {
  color: #8993a3;
}

#view-dashboard .dash-tool-dock .dash-tool-more {
  min-height: 30px;
  border-color: transparent;
  background: transparent;
}

#view-dashboard .dash-tool-shortcut-list {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

#view-dashboard .dash-tool-dock .dash-tool-shortcut {
  min-height: 38px;
  border-color: transparent;
  border-radius: 9px;
  background: #f5f6f8;
  font-size: 13px;
}

#view-dashboard .dash-tool-dock .dash-tool-shortcut:hover {
  border-color: #cbd9eb;
  background: #edf4ff;
  box-shadow: none;
}

/* Workbench: decisions and current work before summary numbers. */
#view-dashboard .dash-director-command-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(430px, .95fr);
  gap: 10px;
  align-items: stretch;
}

#view-dashboard .dash-director-command-grid > .dash-attention-panel {
  min-width: 0;
  margin: 0;
}

#view-dashboard .dash-director-summary-stack {
  display: grid;
  align-content: start;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #dfe3e8;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .025), 0 10px 28px rgba(15, 23, 42, .035);
}

#view-dashboard .dash-director-summary-stack .dash-management-kpis {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
}

#view-dashboard .dash-director-summary-stack .dash-management-kpi {
  min-height: 112px;
  padding: 14px 15px;
  border: 0;
  border-right: 1px solid #edf0f3;
  border-bottom: 1px solid #edf0f3;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
}

#view-dashboard .dash-director-summary-stack .dash-management-kpi:nth-child(3n) {
  border-right: 0;
}

#view-dashboard .dash-director-summary-stack .dash-management-kpi:nth-last-child(-n + 3) {
  border-bottom: 0;
}

#view-dashboard .dash-director-summary-stack .dash-management-kpi::before {
  display: none;
}

#view-dashboard .dash-director-summary-stack .dash-management-kpi > span {
  color: #6b7687;
  font-size: 12px;
}

#view-dashboard .dash-director-summary-stack .dash-management-kpi > div {
  margin-top: 7px;
}

#view-dashboard .dash-director-summary-stack .dash-management-kpi strong {
  font-size: 27px;
  letter-spacing: -.03em;
}

#view-dashboard .dash-director-summary-stack .dash-management-kpi p {
  margin-top: 7px;
  color: #8a94a3;
  font-size: 11px !important;
}

#view-dashboard .dash-director-summary-stack .dash-kpi-definitions {
  margin: 0;
  border: 0;
  border-top: 1px solid #edf0f3;
  border-radius: 0;
}

#view-dashboard .dash-director-summary-stack .dash-kpi-definitions > summary {
  min-height: 38px;
  padding: 8px 14px;
  color: #667085;
  font-size: 12px;
}

#view-dashboard .dash-management-workbench > .dash-management-projects {
  margin: 0;
}

#view-dashboard .dash-director-context-grid {
  grid-template-columns: minmax(0, 1.35fr) minmax(360px, .65fr);
  align-items: start;
}

#view-dashboard .dash-director-context-grid > :is(.dash-panel, section) {
  min-width: 0;
  margin: 0;
}

#view-dashboard .dash-director-context-grid .dash-portfolio-signal-grid {
  grid-template-columns: 1fr;
}

#view-dashboard .dash-director-context-grid .dash-portfolio-signal-group + .dash-portfolio-signal-group {
  border-top: 1px solid #edf0f3;
  border-left: 0;
}

/* Project center: compress portfolio overview so the command center reaches the first screen. */
#view-history .am-context-entry-compact {
  min-height: 46px !important;
  margin-bottom: 10px !important;
  padding: 7px 12px !important;
  border-radius: 12px !important;
}

#view-history .pt-overview-board {
  display: grid;
  grid-template-columns: minmax(260px, .7fr) minmax(0, 1.3fr);
  align-items: stretch;
  min-height: 92px;
  margin-bottom: 10px;
  overflow: hidden;
}

#view-history .pt-overview-head {
  min-width: 0;
  padding: 14px 16px;
  border-right: 1px solid #e7eaee;
  border-bottom: 0;
}

#view-history .pt-overview-head strong {
  margin-top: 2px;
  font-size: 17px;
  letter-spacing: -.012em;
}

#view-history .pt-overview-head small {
  margin-top: 4px;
  color: #7b8595;
}

#view-history .pt-overview-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  padding: 0;
}

#view-history .pt-overview-metrics .pt-stat-card {
  display: grid;
  align-content: center;
  min-height: 92px;
  padding: 12px 15px;
  border: 0;
  border-right: 1px solid #edf0f3;
  border-radius: 0;
  background: #fff;
}

#view-history .pt-overview-metrics .pt-stat-card:last-child {
  border-right: 0;
}

#view-history .pt-stat-label {
  color: #687486;
  font-size: 12px;
}

#view-history .pt-stat-value {
  margin: 3px 0 1px;
  font-size: 25px;
  letter-spacing: -.03em;
}

#view-history .pt-stat-note {
  overflow: hidden;
  margin-top: 1px;
  color: #929ba9;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#view-history .pt-plan-source-compact {
  display: grid;
  grid-template-columns: minmax(290px, .72fr) minmax(0, 1.28fr);
  min-height: 98px;
  margin-bottom: 8px;
  overflow: hidden;
}

#view-history .pt-plan-source-compact .pt-plan-source-head {
  display: grid;
  grid-template-columns: 1fr;
  align-content: center;
  min-width: 0;
  padding: 13px 16px;
  border-right: 1px solid #e7eaee;
  border-bottom: 0;
}

#view-history .pt-plan-source-compact .pt-plan-source-head h3 {
  margin: 2px 0;
  font-size: 17px;
}

#view-history .pt-plan-source-compact .pt-plan-source-head p {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 3px;
  color: #7b8595;
  font-size: 11px;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

#view-history .pt-plan-source-actions {
  justify-content: flex-start;
  margin-top: 7px;
}

#view-history .pt-plan-source-actions b {
  border: 0;
  background: #edf4ff;
  color: #1769e8;
}

#view-history .pt-plan-projects {
  display: grid;
  align-content: stretch;
  min-width: 0;
}

#view-history .pt-plan-project {
  min-height: 98px;
  padding: 12px 15px;
  border: 0;
  border-bottom: 1px solid #edf0f3;
  background: #fff;
}

#view-history .pt-plan-project:last-child {
  border-bottom: 0;
}

#view-history .pt-plan-project > .btn {
  min-width: 88px;
  white-space: nowrap;
}

#view-history .pt-plan-source-empty {
  display: grid;
  align-content: center;
  min-height: 98px;
  padding: 14px 18px;
  border: 0;
  background: #fff;
}

#view-history .project-danger-zone {
  margin: 0 0 8px;
  border-color: #eceff3;
  border-radius: 10px;
  background: transparent;
}

#view-history .project-danger-zone > summary {
  min-height: 36px;
  padding: 7px 12px;
  color: #8b95a4;
  font-size: 12px;
}

/* Project center: one list, one clear action, supporting data as rails. */
#view-history .pt-portfolio-shell {
  grid-template-columns: minmax(280px, 330px) minmax(0, 1fr);
  min-height: 560px;
  overflow: hidden;
}

#view-history .pt-portfolio-list {
  border-right-color: #e4e8ed;
  background: #fafbfc;
}

#view-history .pt-portfolio-head {
  padding: 14px 15px 10px;
}

#view-history .pt-portfolio-head strong {
  font-size: 14px;
}

#view-history .pt-portfolio-metrics {
  gap: 2px;
  padding: 0 10px 9px;
}

#view-history .pt-filter-pill {
  min-height: 44px;
  border: 0;
  border-radius: 9px;
}

#view-history .pt-filter-pill b {
  font-size: 15px;
}

#view-history .pt-project-search {
  margin: 0 10px 9px;
}

#view-history .pt-project-search > span {
  display: none;
}

#view-history .pt-project-search input {
  min-height: 36px;
  border-radius: 9px;
  background: #fff;
}

#view-history .pt-project-row {
  gap: 7px;
  padding: 12px 14px;
}

#view-history .pt-project-row.is-selected {
  border-left: 0;
  background: #edf4ff;
  box-shadow: inset 3px 0 #1769e8;
}

#view-history .pt-command-center {
  padding: 18px 20px 20px;
  background: #fff;
}

#view-history .pt-command-header {
  align-items: flex-start;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #edf0f3;
}

#view-history .pt-command-header h3 {
  margin-top: 3px;
  font-size: 22px;
  letter-spacing: -.02em;
}

#view-history .pt-command-tags > span:not(.pt-card-source) {
  border: 0;
  background: #f1f3f6;
  color: #5f6b7b;
}

#view-history .pt-focus-panel {
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 108px;
  margin-bottom: 10px;
  padding: 16px 17px;
  border: 1px solid #bed5f5;
  border-left: 1px solid #bed5f5;
  border-radius: 14px;
  background: #f2f7ff;
}

#view-history .pt-focus-panel h4 {
  margin: 3px 0 4px;
  font-size: 20px;
  letter-spacing: -.015em;
}

#view-history .pt-focus-panel .btn {
  min-height: 40px;
  border-radius: 9px;
}

#view-history .pt-implementation-gates {
  display: grid;
  grid-template-columns: minmax(132px, .34fr) repeat(2, minmax(0, 1fr));
  margin: 0 0 10px;
  overflow: hidden;
  border: 1px solid #e2e6eb;
  border-radius: 12px;
  background: #fff;
}

#view-history .pt-gate-strip-label {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  padding: 12px 14px;
  border-right: 1px solid #e7eaee;
  background: #f8fafc;
}

#view-history .pt-gate-strip-label span {
  color: #182230;
  font-size: 13px;
  font-weight: 750;
}

#view-history .pt-gate-strip-label small {
  color: #7b8595;
  font-size: 11px;
}

#view-history .pt-gate-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3px 10px;
  min-width: 0;
  padding: 11px 14px;
  border: 0;
  border-right: 1px solid #edf0f3;
  background: #fff;
  color: #182230;
  text-align: left;
  cursor: pointer;
}

#view-history .pt-gate-item:last-child { border-right: 0; }
#view-history .pt-gate-item:hover { background: #f8fafc; }
#view-history .pt-gate-item span { font-size: 13px; font-weight: 700; }
#view-history .pt-gate-item strong { font-size: 12px; color: #64748b; }
#view-history .pt-gate-item small {
  grid-column: 1 / -1;
  overflow: hidden;
  color: #7b8595;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#view-history .pt-gate-item.is-confirmed { background: #f3faf6; }
#view-history .pt-gate-item.is-confirmed strong { color: #157347; }
#view-history .pt-gate-item.is-ready { background: #edf4ff; }
#view-history .pt-gate-item.is-ready strong { color: #1769e8; }
#view-history .pt-gate-item.is-stale { background: #fff8ed; }
#view-history .pt-gate-item.is-stale strong { color: #b45309; }

.pt-gate-modal {
  width: min(720px, 94vw);
}

.pt-gate-modal .pt-modal-header {
  align-items: flex-start;
  padding-bottom: 14px;
  border-bottom: 1px solid #edf0f3;
}

.pt-gate-modal .pt-modal-header > div { min-width: 0; }
.pt-gate-modal .pt-modal-header p { margin: 5px 0 0; color: #64748b; font-size: 13px; line-height: 1.45; }
.pt-gate-kicker { display: block; margin-bottom: 4px; color: #0f766e; font-size: 11px; font-weight: 750; }
.pt-gate-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
  margin-bottom: 16px;
  border: 1px solid #e2e6eb;
  border-radius: 10px;
}

.pt-gate-summary > div { padding: 11px 12px; border-right: 1px solid #edf0f3; border-bottom: 1px solid #edf0f3; }
.pt-gate-summary > div:nth-child(2n) { border-right: 0; }
.pt-gate-summary > div:nth-last-child(-n+2) { border-bottom: 0; }
.pt-gate-summary span { display: block; margin-bottom: 4px; color: #7b8595; font-size: 11px; }
.pt-gate-summary strong { display: block; color: #182230; font-size: 13px; line-height: 1.45; }
.pt-gate-summary-compact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pt-gate-summary-compact > div { border-bottom: 0; }
.pt-gate-summary-compact > div:nth-child(2) { border-right: 1px solid #edf0f3; }
.pt-gate-checks { display: grid; gap: 9px; margin: 0 0 16px; padding: 13px 14px; border: 1px solid #e2e6eb; border-radius: 10px; }
.pt-gate-checks legend { padding: 0 5px; color: #475569; font-size: 12px; font-weight: 700; }
.pt-gate-checks label { display: flex; align-items: flex-start; gap: 9px; color: #334155; font-size: 13px; line-height: 1.45; }
.pt-gate-checks input { margin-top: 2px; }
.pt-gate-closeout-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.pt-gate-blocked > span { color: #b45309; font-size: 11px; font-weight: 750; }
.pt-gate-blocked > strong { display: block; margin: 4px 0; color: #182230; font-size: 17px; }
.pt-gate-blocked > p { margin: 0 0 12px; color: #64748b; font-size: 13px; }
.pt-gate-blocked ul { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.pt-gate-blocked li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 11px; border: 1px solid #e2e6eb; border-radius: 9px; background: #f8fafc; }
.pt-gate-blocked li div { min-width: 0; }
.pt-gate-blocked li strong { display: block; color: #334155; font-size: 13px; }
.pt-gate-blocked li small { display: block; margin-top: 3px; color: #7b8595; font-size: 11px; }
.pt-gate-programs { margin-top: 14px; }
.pt-gate-programs > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 7px; }
.pt-gate-programs > header strong { color: #334155; font-size: 12px; }
.pt-gate-programs > header span { color: #64748b; font-size: 11px; font-variant-numeric: tabular-nums; }
.pt-gate-blocked .pt-gate-program-row { min-height: 64px; padding: 9px 10px 9px 12px; background: #fff; }
.pt-gate-blocked .pt-gate-program-row > div > span { display: block; margin-bottom: 3px; color: #b45309; font-size: 10px; font-weight: 750; }
.pt-gate-blocked .pt-gate-program-row > div > strong { overflow-wrap: anywhere; color: #243244; font-size: 13px; line-height: 1.45; }
.pt-gate-blocked .pt-gate-program-row > div > small { overflow: hidden; max-width: 65ch; color: #718096; text-overflow: ellipsis; white-space: nowrap; }
.pt-gate-blocked .pt-gate-program-row > button { flex: 0 0 auto; min-width: 72px; }
.pt-gate-other-blockers { margin-top: 10px !important; }

#view-history .pt-capability-strip {
  display: grid;
  grid-template-columns: minmax(150px, .34fr) minmax(0, 1fr);
  margin-bottom: 10px;
  overflow: hidden;
  border: 1px solid #e2e6eb;
  border-radius: 12px;
  background: #fff;
}

#view-history .pt-capability-strip > header {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  border-right: 1px solid #e7eaee;
  background: #f8fafc;
}

#view-history .pt-capability-strip h4 {
  margin: 0;
  color: #182230;
  font-size: 14px;
  letter-spacing: -.012em;
}

#view-history .pt-capability-strip > header p {
  margin: 4px 0 0;
  color: #7b8595;
  font-size: 11px;
  line-height: 1.45;
}

#view-history .pt-capability-rows {
  min-width: 0;
}

#view-history .pt-capability-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  min-height: 70px;
  padding: 10px 13px;
}

#view-history .pt-capability-row + .pt-capability-row {
  border-top: 1px solid #edf0f3;
}

#view-history .pt-capability-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  background: #eef4ff;
  color: #1769e8;
}

#view-history .pt-capability-icon svg {
  width: 17px;
  height: 17px;
  stroke-width: 1.8;
}

#view-history .pt-capability-main {
  min-width: 0;
}

#view-history .pt-capability-main > div {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

#view-history .pt-capability-main strong {
  overflow: hidden;
  color: #223047;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#view-history .pt-capability-main p {
  overflow: hidden;
  margin: 4px 0 0;
  color: #748094;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#view-history .pt-capability-status {
  flex: 0 0 auto;
  padding: 3px 7px;
  border-radius: 999px;
  background: #eef1f5;
  color: #687486;
  font-size: 10px;
  font-weight: 750;
}

#view-history .pt-capability-row.is-active .pt-capability-status {
  background: #e8f7ef;
  color: #17764a;
}

#view-history .pt-capability-row.is-conflict .pt-capability-status {
  background: #fff1e8;
  color: #a34b18;
}

#view-history .pt-capability-row > .btn {
  min-height: 34px;
  border-radius: 9px;
  white-space: nowrap;
}

#view-history .pt-capability-role-note {
  color: #7b8595;
  font-size: 11px;
  white-space: nowrap;
}

#view-history .pt-capability-row > details {
  grid-column: 2 / -1;
  margin-top: -4px;
  color: #687486;
  font-size: 11px;
}

#view-history .pt-capability-row > details summary {
  width: max-content;
  cursor: pointer;
  color: #55708f;
  outline: none;
}

#view-history .pt-capability-row > details summary:focus-visible {
  border-radius: 5px;
  box-shadow: 0 0 0 3px rgba(23, 105, 232, .18);
}

#view-history .pt-capability-row > details > div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  padding: 8px 0 2px;
}

#view-history .pt-capability-row > details p {
  flex-basis: 100%;
  max-width: 72ch;
  margin: 0;
  line-height: 1.55;
}

#view-history .pt-health-grid {
  gap: 0;
  margin-bottom: 10px;
  overflow: hidden;
  border: 1px solid #e2e6eb;
  border-radius: 12px;
  background: #fff;
}

#view-history .pt-health-grid > article {
  min-height: 82px;
  padding: 12px 14px;
  border: 0;
  border-right: 1px solid #edf0f3;
  border-radius: 0;
}

#view-history .pt-health-grid > article:last-child {
  border-right: 0;
}

#view-history .pt-health-grid strong {
  font-size: 20px;
}

#view-history .pt-stage-strip {
  gap: 0;
  margin-bottom: 10px;
  overflow: hidden;
  border: 1px solid #e2e6eb;
  border-radius: 12px;
  background: #f8f9fb;
}

#view-history .pt-stage-strip > article {
  min-height: 62px;
  padding: 10px 12px;
  border: 0;
  border-right: 1px solid #e6eaef;
  border-radius: 0;
  background: transparent;
}

#view-history .pt-stage-strip > article:last-child {
  border-right: 0;
}

#view-history .pt-stage-strip > article.is-done {
  background: #f3faf6;
}

#view-history .pt-stage-strip > article.is-in-progress {
  background: #edf4ff;
}

#view-history .pt-stage-strip b {
  width: 27px;
  height: 27px;
}

#view-history .pt-stage-strip span {
  font-size: 14px;
}

#view-history .pt-secondary-queue {
  margin-bottom: 10px;
  padding: 12px;
  border-color: #e3e7ec;
  border-radius: 12px;
  background: #fafbfc;
}

#view-history .pt-secondary-queue > div:last-child {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

#view-history .pt-mini-work {
  padding: 10px 11px;
  border: 0;
  border-radius: 9px;
  background: #fff;
  box-shadow: inset 0 0 0 1px #e4e8ed;
}

#view-history .pt-command-drawer {
  margin-bottom: 7px;
  border-color: #e4e8ed;
  border-radius: 10px;
}

#view-history .pt-command-drawer > summary {
  min-height: 38px;
  padding: 9px 12px;
  background: #fafbfc;
  color: #5f6b7b;
  font-size: 12px;
}

@media (max-width: 1180px) {
  #view-dashboard .dash-director-command-grid,
  #view-dashboard .dash-director-context-grid {
    grid-template-columns: 1fr;
  }

  #view-dashboard .dash-access-strip {
    grid-template-columns: 1fr;
  }

  #view-history .pt-overview-board,
  #view-history .pt-plan-source-compact,
  #view-history .pt-capability-strip,
  #view-history .pt-implementation-gates {
    grid-template-columns: 1fr;
  }

  #view-history .pt-overview-head,
  #view-history .pt-plan-source-compact .pt-plan-source-head,
  #view-history .pt-capability-strip > header,
  #view-history .pt-gate-strip-label {
    border-right: 0;
    border-bottom: 1px solid #e7eaee;
  }
}

@media (max-width: 820px) {
  #view-dashboard .dash-director-summary-stack .dash-management-kpis,
  #view-dashboard .dash-tool-shortcut-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #view-dashboard .dash-director-summary-stack .dash-management-kpi:nth-child(3n) {
    border-right: 1px solid #edf0f3;
  }

  #view-dashboard .dash-director-summary-stack .dash-management-kpi:nth-child(2n) {
    border-right: 0;
  }

  #view-history .pt-overview-metrics,
  #view-history .pt-health-grid,
  #view-history .pt-stage-strip,
  #view-history .pt-secondary-queue > div:last-child {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #view-history .pt-portfolio-shell {
    grid-template-columns: 1fr;
  }

  .pt-gate-closeout-grid,
  .pt-gate-summary,
  .pt-gate-summary-compact {
    grid-template-columns: 1fr;
  }

  .pt-gate-summary > div,
  .pt-gate-summary-compact > div {
    border-right: 0;
    border-bottom: 1px solid #edf0f3;
  }

  .pt-gate-blocked .pt-gate-program-row { align-items: flex-start; }
  .pt-gate-blocked .pt-gate-program-row > div > small { white-space: normal; }

  #view-history .pt-portfolio-list {
    border-right: 0;
    border-bottom: 1px solid #e4e8ed;
  }

  #view-history .pt-capability-row {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  #view-history .pt-capability-row > :is(.btn, .pt-capability-role-note, details) {
    grid-column: 2;
    justify-self: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  #view-dashboard :is(.dash-current-step-jump, .dash-tool-shortcut),
  #view-history :is(.pt-project-row, .pt-mini-work) {
    transition: none !important;
  }
}

html[data-theme="dark"] #view-dashboard :is(.dash-header-compact, .dash-tool-dock, .dash-director-summary-stack),
html[data-theme="dark"] #view-history :is(.pt-overview-board, .pt-plan-source-compact, .pt-portfolio-shell, .pt-command-center) {
  border-color: #314158;
  background: #172235;
}

html[data-theme="dark"] #view-dashboard .dash-current-step-jump,
html[data-theme="dark"] #view-history .pt-focus-panel {
  border-color: #355d90;
  background: #142944;
}

html[data-theme="dark"] #view-history .pt-capability-strip {
  border-color: #314158;
  background: #172235;
}

html[data-theme="dark"] #view-history .pt-capability-strip > header {
  border-color: #314158;
  background: #132033;
}

html[data-theme="dark"] #view-history .pt-capability-strip h4,
html[data-theme="dark"] #view-history .pt-capability-main strong {
  color: #e8f3f6;
}

html[data-theme="dark"] #view-history .pt-capability-main p,
html[data-theme="dark"] #view-history .pt-capability-strip > header p,
html[data-theme="dark"] #view-history .pt-capability-role-note {
  color: #9dafbd;
}

html[data-theme="dark"] #view-dashboard .dash-director-summary-stack .dash-management-kpi,
html[data-theme="dark"] #view-history :is(.pt-overview-metrics .pt-stat-card, .pt-plan-project, .pt-plan-source-empty, .pt-health-grid, .pt-health-grid > article) {
  border-color: #314158;
  background: #172235;
}

html[data-theme="dark"] #view-history :is(.pt-portfolio-list, .pt-secondary-queue, .pt-command-drawer > summary) {
  border-color: #314158;
  background: #132033;
}

#view-materials .pmat-table tr.is-gate-attention > td {
  background: #fffdf5;
}

#view-materials .pmat-table tr.is-gate-attention > td:first-child {
  box-shadow: inset 3px 0 0 #d59a2d;
}

#view-materials [data-pmat-clear-gate-filter] {
  align-self: end;
  min-height: 40px;
  white-space: nowrap;
}
