.role-page {
  min-height: 100vh;
  margin: 0;
  background: #eef2f6;
  color: #17202a;
  font-family: Arial, Helvetica, sans-serif;
}

.role-shell {
  max-width: 980px;
  margin: 0 auto;
  padding: 16px;
}

.role-hero {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}

.role-hero h1 {
  margin: 0;
  font-size: clamp(26px, 7vw, 42px);
  line-height: 1.05;
}

.role-subtitle {
  color: #667085;
  font-size: 14px;
  line-height: 1.45;
}

.role-card-grid {
  display: grid;
  gap: 12px;
}

.role-card {
  display: grid;
  gap: 10px;
  border: 1px solid #d7dde5;
  border-radius: 12px;
  background: #ffffff;
  padding: 14px;
  box-shadow: 0 10px 26px rgba(24, 32, 44, .08);
}

.role-card-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.role-card-title strong {
  font-size: 18px;
}

.role-meta {
  color: #667085;
  font-size: 13px;
  line-height: 1.45;
}

.role-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.role-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  background: #eaf4ff;
  color: #1f4d78;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 800;
}

.role-next {
  border-left: 4px solid #b94b24;
  border-radius: 8px;
  background: #fff8f4;
  padding: 10px;
}

.role-next strong {
  display: block;
  color: #943818;
  font-size: 12px;
  text-transform: uppercase;
}

.role-next span {
  display: block;
  margin-top: 3px;
  font-size: 18px;
  font-weight: 800;
}

.role-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.role-actions a,
.role-actions button {
  min-height: 44px;
  border: 1px solid #b9c3cf;
  border-radius: 10px;
  background: #ffffff;
  color: #17202a;
  padding: 10px 12px;
  cursor: pointer;
  font: 800 14px/1.1 Arial, Helvetica, sans-serif;
  text-decoration: none;
}

.role-actions .primary,
.role-actions a.primary {
  color: #ffffff;
  background: #1f4d78;
  border-color: #1f4d78;
}

.role-empty {
  border: 1px dashed #b9c3cf;
  border-radius: 12px;
  background: #ffffff;
  padding: 24px;
  color: #667085;
  text-align: center;
}

.role-status {
  min-height: 22px;
  color: #667085;
  font-size: 13px;
}

.role-status[data-tone="success"] { color: #087443; }
.role-status[data-tone="error"] { color: #b42318; }

@media (min-width: 900px) {
  .role-card-grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .role-shell {
    padding: 12px 12px calc(86px + env(safe-area-inset-bottom, 0));
  }

  .role-card {
    border-radius: 14px;
    padding: 14px;
  }

  .role-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}
