.roles {
  background: #fff;
}
.role-tabs {
  display: flex;
  gap: 8px;
  padding: 6px;
  border-radius: 15px;
  background: #f2f5fa;
  width: max-content;
  margin-bottom: 18px;
}
.role-tab {
  border: 0;
  background: transparent;
  border-radius: 10px;
  padding: 11px 15px;
  font-size: 12px;
  font-weight: 850;
  color: #5a6780;
}
.role-tab span {
  color: #9aa5b7;
  margin-right: 7px;
}
.role-tab.active {
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.role-panel {
  display: none;
  grid-template-columns: 0.85fr 1.15fr;
  min-height: 500px;
  border: 1px solid var(--line);
  border-radius: 25px;
  overflow: hidden;
}
.role-panel.active {
  display: grid;
}
.role-copy {
  padding: 52px;
}
.role-tag {
  display: inline-block;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--blue);
  font-weight: 900;
}
.role-copy h3 {
  font-size: 37px;
  line-height: 1.12;
  letter-spacing: -0.045em;
  margin: 14px 0;
}
.role-copy p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}
.role-copy ul {
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  margin: 22px 0;
}
.role-copy li {
  font-size: 12px;
}
.role-copy li:before {
  content: "✓";
  color: var(--green);
  font-weight: 900;
  margin-right: 9px;
}
.role-visual {
  display: grid;
  place-items: center;
  padding: 40px;
  background: linear-gradient(145deg, #edf3ff, #fafcff);
}
.agency-visual {
  background: linear-gradient(145deg, #f3efff, #fbfaff);
}
.auditor-visual {
  background: linear-gradient(145deg, #edf9f4, #fbfffd);
}
.role-dashboard,
.assignment-board,
.solo-card {
  width: min(500px, 100%);
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 20px;
}
.role-top,
.board-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--line);
}
.role-top span,
.board-head span {
  font-size: 9px;
  color: var(--muted);
}
.role-metrics,
.solo-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin: 14px 0;
}
.role-metrics div,
.solo-stats div {
  padding: 12px;
  border-radius: 11px;
  background: var(--bg-muted);
}
.role-metrics b,
.solo-stats b {
  display: block;
}
.role-metrics span,
.solo-stats span {
  font-size: 8px;
  color: var(--muted);
}
.risk-list {
  display: grid;
  gap: 8px;
}
.risk-list div {
  display: grid;
  grid-template-columns: 9px 1fr auto;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  font-size: 10px;
}
.risk-list i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.candidate {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  margin-top: 10px;
}
.candidate b {
  font-size: 10px;
  display: block;
}
.candidate small {
  font-size: 8px;
  color: var(--muted);
}
.candidate em {
  font-size: 8px;
  color: var(--green);
  font-style: normal;
  font-weight: 900;
}
.job-chip {
  margin-top: 13px;
  padding: 11px;
  border-radius: 11px;
  background: var(--soft);
  color: var(--blue);
  font-size: 9px;
  font-weight: 850;
}
.solo-head {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 10px;
  align-items: center;
}
.solo-head strong {
  font-size: 11px;
  display: block;
}
.solo-head span {
  font-size: 8px;
  color: var(--muted);
}
.next-audit {
  padding: 14px;
  border-radius: 12px;
  background: #0f1b35;
  color: #fff;
}
.next-audit small {
  font-size: 7px;
  color: #bdd7ff;
}
.next-audit strong,
.next-audit span {
  display: block;
}
.next-audit strong {
  font-size: 12px;
  margin-top: 5px;
}
.next-audit span {
  font-size: 8px;
  color: #cbd5e1;
}
.next-audit button {
  margin-top: 10px;
  border: 0;
  border-radius: 8px;
  padding: 8px 10px;
  background: #fff;
  color: var(--blue);
  font-size: 8px;
  font-weight: 900;
}
