/* 1.84.491/492 — System roles (“System role”) in ONE visual language, always apart from public titles.
 * Color = the site accent (teal), mixed with the surface text color so it reads on dark and light themes.
 * The shield and the boxed shape keep it distinct from the blue “verified” tick. */
:root{--ecm-sysrole:var(--forma-accent,#1e7b8d)}
.ecm-sysrole-chips{display:flex;flex-wrap:wrap;gap:5px}
.ecm-sysrole-chip{display:inline-flex;align-items:center;min-height:22px;padding:2px 9px;border:1px solid color-mix(in srgb,var(--ecm-sysrole) 70%,transparent);border-radius:6px;background:color-mix(in srgb,var(--ecm-sysrole) 16%,transparent);color:color-mix(in srgb,var(--ecm-sysrole) 45%,currentColor);font-size:11px;font-weight:800;line-height:1.5;white-space:nowrap}
.ecm-sysrole-chip.is-scoped{background:transparent;border-style:dashed}
.ecm-sysrole-empty{opacity:.55}
.ecm-sysrole-shield{flex:0 0 auto;vertical-align:-2px}
.ecm-sysrole-box{display:flex;flex-direction:column;gap:7px;margin-top:12px;padding-top:11px;border-top:1px solid color-mix(in srgb,currentColor 14%,transparent)}
.ecm-sysrole-box__head{display:flex;align-items:center;gap:6px;font-size:10px;font-weight:800;color:color-mix(in srgb,var(--ecm-sysrole) 45%,currentColor)}
.ecm-sysrole-box .ecm-sysrole-chip{font-size:10px;min-height:20px;padding:1px 8px}
.forma-hub-role-card .ecm-sysrole-chips,.ecm-member-edit .ecm-sysrole-chips{margin-top:4px}

/* Public profile */
.forma-profile-dashboard-socials .forma-sysrole-badge{width:auto!important;gap:6px;padding:0 11px;border-color:color-mix(in srgb,var(--fpd-accent,#1e7b8d) 70%,transparent)!important;background:color-mix(in srgb,var(--fpd-accent,#1e7b8d) 14%,transparent)!important;color:color-mix(in srgb,var(--fpd-accent,#1e7b8d) 45%,var(--fpd-text,#151515))!important;font-size:11px;font-weight:800;text-decoration:none}
.forma-profile-dashboard-socials .forma-sysrole-badge+a,.forma-profile-dashboard-socials a+.forma-sysrole-badge{margin-inline-start:6px}
.forma-profile-dashboard-stack{display:flex;flex-direction:column;gap:14px;min-width:0}
.forma-profile-dashboard-stack>.forma-profile-dashboard-professional{flex:1 1 auto}
.forma-sysrole-card{border-color:color-mix(in srgb,var(--fpd-accent,#1e7b8d) 55%,transparent)!important;background-image:linear-gradient(color-mix(in srgb,var(--fpd-accent,#1e7b8d) 7%,transparent),color-mix(in srgb,var(--fpd-accent,#1e7b8d) 7%,transparent))!important}
.forma-sysrole-card h2{display:flex;align-items:center;gap:8px;color:var(--fpd-text,#151515)!important;font-size:16px!important}
.forma-sysrole-card h2 .ecm-sysrole-shield{color:color-mix(in srgb,var(--fpd-accent,#1e7b8d) 55%,var(--fpd-text,#151515))}
.forma-sysrole-card__list{list-style:none;margin:6px 0 0;padding:0;display:flex;flex-direction:column}
.forma-sysrole-card__list li{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 0;border-top:1px solid var(--fpd-border,#d8d8d2)}
.forma-sysrole-card__list li:first-child{border-top:0;padding-top:4px}
.forma-sysrole-card__list strong{color:var(--fpd-text,#151515);font-size:13px;font-weight:800}
.forma-sysrole-card__list strong a{color:var(--fpd-accent,#1e7b8d)!important}
.forma-sysrole-card__list small{color:var(--fpd-muted,#777);font-size:11px;white-space:nowrap}
@media (max-width:640px){.forma-profile-dashboard-stack{margin-bottom:12px}}
