
.erp-role-bridge {
  position: fixed;
  right: 22px;
  top: 22px;
  z-index: 99998;
  width: min(370px, calc(100vw - 32px));
  border-radius: 28px;
  border: 1px solid rgba(199,215,238,.98);
  background:
    radial-gradient(circle at 100% 0%, rgba(37,99,235,.10), transparent 38%),
    rgba(255,255,255,.96);
  box-shadow: 0 24px 70px rgba(15,23,42,.18);
  backdrop-filter: blur(18px);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #07142f;
  overflow: hidden;
}

.erp-role-bridge.minimized .erp-role-body {
  display: none;
}

.erp-role-head {
  padding: 16px;
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 12px;
  align-items: center;
  cursor: pointer;
}

.erp-role-logo {
  width: 42px;
  height: 42px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--role-accent, #2563eb);
  color: white;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 14px 30px rgba(37,99,235,.22);
}

.erp-role-head strong {
  display: block;
  font-size: 15px;
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -.04em;
}

.erp-role-head span {
  display: block;
  margin-top: 4px;
  color: #63738c;
  font-size: 11px;
  font-weight: 700;
}

.erp-role-toggle {
  width: 36px;
  height: 36px;
  border-radius: 14px;
  border: 1px solid #d8e5f4;
  background: #f8fafc;
  color: #07142f;
  cursor: pointer;
  font-weight: 900;
}

.erp-role-body {
  padding: 0 16px 16px;
  display: grid;
  gap: 12px;
}

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

.erp-role-chip {
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #dbeafe;
  font-size: 10px;
  font-weight: 850;
}

.erp-role-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.erp-role-actions a,
.erp-role-actions button {
  min-height: 40px;
  border-radius: 15px;
  border: 1px solid #c6dbff;
  background: linear-gradient(180deg,#f8fbff,#eef6ff);
  color: #1d4ed8;
  text-decoration: none;
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 11px;
  font-weight: 850;
}

.erp-role-actions a.primary {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: white;
  border-color: transparent;
}

@media (max-width: 720px) {
  .erp-role-bridge {
    top: auto;
    bottom: 90px;
    right: 16px;
  }
}
