.dashboard-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 28px;
  margin-bottom: 18px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 24px;
  background: radial-gradient(circle at top right, rgba(255,255,255,.18), transparent 32%), linear-gradient(125deg,#081f48 0%,#0b3475 58%,#145fce 100%);
  box-shadow: 0 18px 46px rgba(8,31,72,.16);
}

.dashboard-hero .eyebrow {
  color: #a9c8ff;
}

.dashboard-hero h2 {
  max-width: 780px;
  margin: 8px 0;
  color: #fff;
  font-size: 32px;
  line-height: 1.04;
  letter-spacing: -.05em;
}

.dashboard-hero p {
  max-width: 720px;
  margin: 0;
  color: #d6e5ff;
  font-size: 13px;
  line-height: 1.55;
}

.dashboard-hero .button.secondary {
  border-color: rgba(255,255,255,.28);
  background: rgba(255,255,255,.1);
  color: #fff;
}

.dashboard-hero .button.secondary:hover {
  background: rgba(255,255,255,.16);
}

.dashboard-hero-actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.dashboard-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.dashboard-priority-panel {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
}

.dashboard-priority-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  border: 1px solid #bdd7ff;
  border-radius: 20px;
  background: linear-gradient(135deg, #fff, #f4f8ff);
  box-shadow: 0 12px 32px rgba(11,31,68,.06);
}

.dashboard-priority-summary.stage-blank,
.dashboard-priority-summary.stage-setup {
  border-color: #dfe8f4;
  background: #fff;
}

.dashboard-priority-summary small,
.dashboard-priority-summary strong,
.dashboard-priority-summary span,
.dashboard-priority-group-head strong,
.dashboard-priority-group-head small,
.dashboard-priority-item strong,
.dashboard-priority-item small,
.dashboard-priority-item em {
  display: block;
}

.dashboard-priority-summary small {
  color: var(--blue);
  font-size: 9px;
  font-weight: 950;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.dashboard-priority-summary strong {
  margin-top: 5px;
  color: var(--navy);
  font-size: 18px;
  line-height: 1.18;
}

.dashboard-priority-summary span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.dashboard-priority-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.dashboard-priority-group {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 14px;
  border: 1px solid #e2ebf6;
  border-radius: 18px;
  background: #fff;
}

.dashboard-priority-group.blocked {
  border-color: #ffc7a3;
  background: #fffaf6;
}

.dashboard-priority-group.ready {
  border-color: #bdd7ff;
  background: #f8fbff;
}

.dashboard-priority-group.setup {
  border-color: #dfe8f4;
  background: #fbfcff;
}

.dashboard-priority-group-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dashboard-priority-group-head span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 11px;
  background: #eef3fa;
  color: #61728a;
  font-weight: 950;
}

.dashboard-priority-group.blocked .dashboard-priority-group-head span {
  background: #fff0e6;
  color: #b65b19;
}

.dashboard-priority-group.ready .dashboard-priority-group-head span {
  background: #eaf2ff;
  color: var(--blue);
}

.dashboard-priority-group-head strong {
  color: var(--navy);
  font-size: 12px;
}

.dashboard-priority-group-head small {
  color: var(--muted);
  font-size: 9px;
  margin-top: 2px;
}

.dashboard-priority-list {
  display: grid;
  gap: 8px;
}

.dashboard-priority-item {
  width: 100%;
  padding: 12px;
  border: 1px solid rgba(226,235,246,.9);
  border-radius: 14px;
  background: rgba(255,255,255,.82);
  cursor: pointer;
  text-align: left;
  transition: .18s ease;
}

.dashboard-priority-item:hover,
.dashboard-priority-item:focus-visible {
  border-color: #9fc3ff;
  transform: translateY(-1px);
  outline: none;
}

.dashboard-priority-item strong {
  color: var(--navy);
  font-size: 11px;
  line-height: 1.25;
}

.dashboard-priority-item small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.4;
}

.dashboard-priority-item em {
  margin-top: 8px;
  color: var(--blue);
  font-size: 9px;
  font-style: normal;
  font-weight: 900;
}

.dashboard-priority-empty {
  padding: 12px;
  border: 1px dashed #dfe8f4;
  border-radius: 14px;
  color: var(--muted);
  font-size: 10px;
  text-align: center;
}

.onboarding-panel {
  padding: 20px;
  margin-bottom: 18px;
  overflow: hidden;
}

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

.onboarding-progress {
  height: 8px;
  border-radius: 999px;
  background: #edf3fb;
  margin: 4px 0 16px;
  overflow: hidden;
}

.onboarding-progress span {
  display: block;
  width: var(--onboarding-progress, 0%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  transition: width .2s ease;
}

.onboarding-panel.collapsed .onboarding-progress {
  margin-bottom: 0;
}

.onboarding-panel.collapsed .onboarding-list {
  display: none;
}

.onboarding-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.onboarding-step {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: start;
  gap: 3px 10px;
  min-height: 116px;
  padding: 13px;
  border: 1px solid #e5edf8;
  border-radius: 16px;
  background: #fff;
  cursor: pointer;
  text-align: left;
}

.onboarding-step:hover {
  border-color: #bfd4f3;
  transform: translateY(-1px);
}

.onboarding-step.done {
  background: #f7fcf9;
  border-color: #cfeedd;
}

.onboarding-step.current {
  background: linear-gradient(135deg, #fff, #f3f8ff);
  border-color: #9fc3ff;
  box-shadow: 0 10px 26px rgba(20,99,255,.09);
}

.onboarding-step.locked {
  background: #f7f9fc;
  cursor: not-allowed;
  opacity: .68;
}

.onboarding-step-icon {
  display: grid;
  grid-row: 1 / span 2;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 11px;
  background: #eaf2ff;
  color: var(--blue);
  font-size: 12px;
  font-weight: 950;
}

.onboarding-step.done .onboarding-step-icon {
  background: #e5f7ec;
  color: var(--green);
}

.onboarding-step.locked .onboarding-step-icon {
  background: #eceff4;
  color: #8a98aa;
}

.onboarding-step strong,
.onboarding-step small,
.onboarding-step em {
  display: block;
}

.onboarding-step strong {
  color: var(--navy);
  font-size: 11px;
  line-height: 1.25;
}

.onboarding-step small {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.4;
  margin-top: 4px;
}

.onboarding-step em {
  grid-column: 2;
  align-self: end;
  color: var(--blue);
  font-size: 9px;
  font-style: normal;
  font-weight: 900;
  margin-top: 9px;
}

.onboarding-step.locked em {
  color: #8a98aa;
}

.dashboard-metric {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(11,31,68,.04);
  cursor: pointer;
  transition: .18s ease;
}

.dashboard-metric:hover,
.dashboard-metric:focus-visible {
  border-color: #88b1fb;
  transform: translateY(-1px);
  outline: none;
}

.dashboard-metric div {
  min-width: 0;
}

.dashboard-metric small,
.dashboard-metric strong,
.dashboard-metric em {
  display: block;
}

.dashboard-metric small {
  color: #7a8ba3;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.dashboard-metric strong {
  overflow: hidden;
  color: var(--navy);
  font-size: 24px;
  line-height: 1.12;
  margin: 3px 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-metric em {
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, .75fr);
  gap: 18px;
  margin-bottom: 18px;
}

.dashboard-panel {
  padding: 20px;
}

.pipeline-list,
.action-list,
.activity-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pipeline-item,
.action-card,
.activity-item {
  width: 100%;
  border: 1px solid #e6edf7;
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  text-align: left;
}

.pipeline-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 14px;
}

.pipeline-item strong,
.pipeline-item small,
.action-card strong,
.action-card span,
.action-card em,
.activity-item strong,
.activity-item small {
  display: block;
}

.pipeline-item strong,
.action-card strong,
.activity-item strong {
  color: var(--navy);
  font-size: 12px;
}

.pipeline-item small,
.action-card span,
.activity-item small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
  margin-top: 3px;
}

.pipeline-item b {
  display: grid;
  place-items: center;
  min-width: 38px;
  height: 32px;
  border-radius: 11px;
  background: #eaf2ff;
  color: var(--blue);
  font-size: 15px;
}

.action-card {
  padding: 14px;
}

.action-card em {
  color: var(--blue);
  font-size: 10px;
  font-style: normal;
  font-weight: 850;
  margin-top: 9px;
}

.workflow-command-centre {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.workflow-command-row {
  display: grid;
  grid-template-columns: minmax(170px, .65fr) minmax(0, 1.35fr) minmax(210px, .8fr);
  gap: 12px;
  align-items: stretch;
  padding: 13px;
  border: 1px solid #e6edf7;
  border-radius: 16px;
  background: #fff;
}

.workflow-command-row.issue {
  border-color: #ffc7a3;
  background: #fffaf6;
}

.workflow-command-row.action {
  border-color: #bdd7ff;
  background: #f8fbff;
}

.workflow-command-row.clear {
  border-color: #d9eadf;
  background: #fbfffc;
}

.workflow-command-main small,
.workflow-command-main strong,
.workflow-command-main span,
.workflow-command-action strong,
.workflow-command-action small,
.workflow-command-stage small,
.workflow-command-stage strong {
  display: block;
}

.workflow-command-main small {
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

.workflow-command-main strong {
  display: flex;
  gap: 7px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 5px;
  font-size: 15px;
  color: var(--navy);
}

.workflow-command-main em {
  padding: 4px 7px;
  border-radius: 999px;
  background: #eef3fa;
  color: #61728a;
  font-size: 8px;
  font-style: normal;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.workflow-command-row.issue .workflow-command-main em {
  background: #fff0e6;
  color: #b65b19;
}

.workflow-command-row.action .workflow-command-main em {
  background: #eaf2ff;
  color: var(--blue);
}

.workflow-command-row.clear .workflow-command-main em {
  background: #e8f7ee;
  color: var(--green);
}

.workflow-command-main span {
  margin-top: 4px;
  font-size: 10px;
  color: var(--muted);
  line-height: 1.4;
}

.workflow-command-meta {
  margin-top: 9px;
  padding-top: 9px;
  border-top: 1px solid #edf1f6;
  color: #6f7f94;
  font-size: 9px;
  font-weight: 800;
  line-height: 1.45;
}

.workflow-command-stages {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
}

.workflow-command-stage,
.workflow-command-action {
  border: 1px solid #e6edf7;
  border-radius: 12px;
  background: #fbfcff;
  text-align: left;
  cursor: pointer;
}

.workflow-command-stage {
  min-width: 0;
  padding: 9px 10px;
}

.workflow-command-stage:disabled {
  cursor: not-allowed;
}

.workflow-command-stage small {
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #789;
}

.workflow-command-stage strong {
  overflow: hidden;
  margin-top: 4px;
  color: var(--navy);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workflow-command-stage.complete {
  border-color: #bde8cc;
  background: #f4fbf6;
}

.workflow-command-stage.current {
  border-color: #9cc3ff;
  background: #f3f8ff;
}

.workflow-command-stage.issue {
  border-color: #ffc7a3;
  background: #fff5ed;
}

.workflow-command-stage.missing {
  color: #8a98aa;
  background: #f7f9fc;
}

.workflow-command-stage.missing strong {
  color: #9aa6b5;
}

.workflow-command-action {
  padding: 11px 12px;
}

.workflow-command-action:hover {
  border-color: #9cc3ff;
  background: #f3f8ff;
}

.workflow-command-action strong {
  color: var(--blue);
  font-size: 11px;
}

.workflow-command-action small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.35;
}

.workflow-command-trail {
  min-width: 0;
  align-self: center;
}

.workflow-command-trail .workflow-trail-steps {
  gap: 4px;
  padding-bottom: 0;
}

.workflow-command-trail .workflow-trail-step {
  min-width: 104px;
  padding: 9px 10px 9px 17px;
}

.workflow-command-trail .workflow-trail-step:first-child {
  padding-left: 10px;
}

.workflow-command-trail .workflow-trail-step span {
  width: 20px;
  height: 20px;
  margin-bottom: 4px;
  font-size: 9px;
}

.workflow-command-trail .workflow-trail-step strong {
  font-size: 10px;
}

.workflow-command-trail .workflow-trail-step small {
  overflow: hidden;
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workflow-trail {
  margin: 14px 0 16px;
  padding: 14px;
  border-radius: 16px;
  background: linear-gradient(180deg, #fbfcff, #f7faff);
}

.workflow-trail-heading {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.workflow-trail-heading small {
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #6b7c93;
}

.workflow-trail-heading strong {
  font-size: 12px;
  color: var(--navy);
}

.workflow-trail-heading span {
  font-size: 9px;
  color: var(--muted);
}

.workflow-trail-steps {
  display: flex;
  align-items: stretch;
  gap: 5px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.workflow-trail-step {
  position: relative;
  min-width: 126px;
  border: 0;
  padding: 11px 12px 11px 19px;
  background: #eef3fa;
  color: #405674;
  cursor: pointer;
  text-align: left;
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 50%, calc(100% - 18px) 100%, 0 100%, 14px 50%);
}

.workflow-trail-step:first-child {
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 50%, calc(100% - 18px) 100%, 0 100%);
  border-radius: 12px 0 0 12px;
  padding-left: 12px;
}

.workflow-trail-step:last-child {
  border-radius: 0 12px 12px 0;
}

.workflow-trail-step span,
.workflow-trail-step strong,
.workflow-trail-step small {
  display: block;
}

.workflow-trail-step span {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  margin-bottom: 5px;
  border-radius: 999px;
  background: rgba(255,255,255,.75);
  font-size: 10px;
  font-weight: 950;
}

.workflow-trail-step strong {
  font-size: 11px;
  color: inherit;
}

.workflow-trail-step small {
  margin-top: 2px;
  font-size: 9px;
  line-height: 1.3;
  color: inherit;
  opacity: .82;
}

.workflow-trail-step.available {
  background: #eaf2ff;
  color: var(--blue);
}

.workflow-trail-step.neutral {
  background: #f0f2f5;
  color: #8794a6;
}

.workflow-trail-step.complete {
  background: #e5f7ec;
  color: var(--green);
}

.workflow-trail-step.current {
  background: linear-gradient(135deg, var(--blue), #66a3ff);
  color: #fff;
  box-shadow: 0 8px 18px rgba(20,99,255,.22);
}

.workflow-trail-step.missing {
  background: #f0f2f5;
  color: #8794a6;
  cursor: not-allowed;
}

.workflow-trail-step.issue {
  background: #fff1dc;
  color: #9c5c00;
}

.workflow-trail-step.issue span {
  background: #ff8a00;
  color: #fff;
}

.workflow-trail-step.complete span {
  background: var(--green);
  color: #fff;
}

.workflow-trail-step.current span {
  background: #fff;
  color: var(--blue);
}

.workflow-trail-step:not(:disabled):hover {
  filter: brightness(.98);
  transform: translateY(-1px);
}

@media(min-width:1051px) {
  .decision-detail .workflow-trail-steps {
    overflow-x: visible;
  }

  .decision-detail .workflow-trail-step {
    flex: 1 1 0;
    min-width: 0;
  }
}

@media(max-width:650px) {
  .workflow-trail-step {
    min-width: 112px;
  }
}

.activity-item {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 13px 14px;
}

.activity-item > span {
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-top: 4px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
}

.pipeline-item:hover,
.action-card:hover,
.activity-item:hover {
  border-color: #bfd4f3;
  transform: translateY(-1px);
}

@media (max-width: 1050px) {
  .dashboard-priority-groups {
    grid-template-columns: 1fr;
  }

  .dashboard-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .onboarding-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .workflow-command-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .dashboard-hero {
    align-items: stretch;
    flex-direction: column;
  }

  .dashboard-priority-summary {
    align-items: stretch;
    flex-direction: column;
  }

  .dashboard-hero h2 {
    font-size: 26px;
  }

  .dashboard-hero-actions,
  .dashboard-metrics {
    grid-template-columns: 1fr;
  }

  .onboarding-list {
    grid-template-columns: 1fr;
  }

  .onboarding-heading-actions {
    align-items: flex-end;
    flex-direction: column;
    gap: 6px;
  }

  .workflow-command-trail .workflow-trail-step {
    min-width: 96px;
  }
}

.activity-panel {
  padding: 20px;
}

.activity-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.activity-filter {
  border: 0;
  border-radius: 999px;
  background: #f0f3f8;
  color: #63748c;
  cursor: pointer;
  font-size: 9px;
  font-weight: 900;
  padding: 7px 10px;
  text-transform: uppercase;
}

.activity-filter.active {
  background: #eaf2ff;
  color: var(--blue);
}

.activity-timeline {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.activity-log-item {
  display: grid;
  grid-template-columns: 34px minmax(0,1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 13px;
  border: 1px solid #e6edf7;
  border-radius: 15px;
  background: #fff;
  cursor: pointer;
  text-align: left;
}

.activity-log-item:hover {
  border-color: #cfe0f5;
  background: #f9fbff;
}

.activity-log-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 11px;
  background: #eef4ff;
  color: #315178;
  font-weight: 900;
}

.activity-log-icon.imports { background: #eaf2ff; color: var(--blue); }
.activity-log-icon.buying { background: #f1ebff; color: var(--purple); }
.activity-log-icon.operations { background: #e7f7ed; color: var(--green); }
.activity-log-icon.finance { background: #fff4df; color: var(--amber); }
.activity-log-icon.team { background: #eef4ff; color: #315178; }

.activity-log-item strong,
.activity-log-item small,
.activity-log-item em {
  display: block;
}

.activity-log-item strong {
  color: var(--navy);
  font-size: 12px;
}

.activity-log-item small {
  color: var(--muted);
  font-size: 10px;
  margin-top: 3px;
}

.activity-log-item em {
  color: #9aa7b8;
  font-size: 9px;
  font-style: normal;
  margin-top: 5px;
}

.activity-log-item b {
  border-radius: 999px;
  background: #f0f3f8;
  color: #63748c;
  font-size: 9px;
  padding: 6px 8px;
  text-transform: uppercase;
}

@media(max-width:850px) {
  .activity-log-item {
    grid-template-columns: 34px minmax(0,1fr);
  }

  .activity-log-item b {
    grid-column: 2;
    justify-self: start;
  }
}
