.role-workspace {
  display: grid;
  gap: 1rem;
  margin: 1rem 0;
}

.role-workspace-header {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1rem;
  align-items: end;
  justify-content: space-between;
}

.role-workspace-header h2,
.role-workspace-header h3,
.role-workspace-card h3,
.role-opportunity-card h3 {
  margin: 0;
}

.role-workspace-header p,
.role-workspace-card p,
.role-opportunity-card p {
  margin: 0;
  color: var(--color-text-muted, #64748b);
  line-height: 1.5;
}

.role-command-grid,
.role-opportunity-grid,
.role-performance-grid {
  display: grid;
  gap: .8rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.role-workspace-card,
.role-opportunity-card,
.role-performance-card {
  display: grid;
  gap: .65rem;
  align-content: start;
  padding: 1rem;
  border: 1px solid var(--color-border, rgba(15, 23, 42, .12));
  border-radius: 1rem;
  background: var(--color-surface, #fff);
  box-shadow: 0 14px 32px rgba(15, 23, 42, .05);
}

.role-workspace-card.is-primary {
  background: var(--color-brand-soft, #ecfdf5);
  border-color: color-mix(in srgb, var(--color-brand-strong, #0f766e) 24%, var(--color-border, #d7dde5));
}

.role-workspace-kicker,
.role-opportunity-label,
.role-performance-card span {
  color: var(--color-text-muted, #64748b);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .045em;
  text-transform: uppercase;
}

.role-workspace-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin-top: auto;
}

.role-workspace-actions .button,
.role-workspace-actions button {
  justify-content: center;
}

.role-performance-card strong {
  font-family: var(--font-display, inherit);
  font-size: clamp(1.5rem, 1.15rem + 1vw, 2.25rem);
  line-height: 1;
}

.role-opportunity-card {
  position: relative;
  padding-left: 1.15rem;
}

.role-opportunity-card::before {
  content: "";
  position: absolute;
  inset: .95rem auto .95rem 0;
  width: .22rem;
  border-radius: 999px;
  background: var(--color-brand-strong, #0f766e);
}

.role-opportunity-card.is-positive::before {
  background: #27864a;
}

.role-opportunity-card.is-attention::before {
  background: #b7791f;
}

.role-opportunity-card a {
  width: fit-content;
  font-weight: 800;
}

.network-member-guidance {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .75rem;
  align-items: center;
  padding: .8rem;
  border-radius: .8rem;
  background: var(--color-surface-subtle, #f8fafc);
}

.network-member-guidance p {
  margin: 0;
  color: var(--color-text-muted, #64748b);
  line-height: 1.45;
}

.network-member-guidance strong {
  display: block;
  margin-bottom: .15rem;
  color: var(--color-text, #161616);
}

.network-member-guidance button {
  white-space: nowrap;
}

.role-workspace-note {
  padding: .85rem 1rem;
  border-left: .22rem solid var(--color-brand-strong, #0f766e);
  border-radius: .7rem;
  background: var(--color-surface-subtle, #f8fafc);
  color: var(--color-text-muted, #64748b);
  line-height: 1.5;
}

@media (min-width: 48rem) {
  .role-command-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .role-opportunity-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .role-performance-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 39.99rem) {
  .role-command-grid,
  .role-opportunity-grid,
  .role-performance-grid,
  .network-member-guidance {
    grid-template-columns: 1fr;
  }

  .network-member-guidance button,
  .role-workspace-actions .button,
  .role-workspace-actions button {
    width: 100%;
  }
}
