/* Benutzerrollen (6.11): roles show as a round chip with a person mark in tables; in diagrams
   they use the normal system box. Own object colour (olive) next to systems (blue), functions
   (green) and locations (ochre); the kind always shows in shape, mark and text as well.
   The --scs-kind-role tokens live in tokens.css (light and dark). */
.role-glyph {
  width: 14px;
  height: 14px;
  flex: none;
  fill: var(--scs-kind-role);
}
.role-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 100%;
  padding: 1px 9px 1px 5px;
  border: 1px solid var(--scs-kind-role-line);
  border-radius: 999px;
  background: var(--scs-kind-role-soft);
  color: var(--scs-kind-role-ink);
  line-height: 1.5;
}
.role-chip > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.role-partner {
  display: inline-block;
  margin: 0 4px 2px 0;
  padding: 0 6px;
  border: 1px solid var(--scs-line);
  border-radius: var(--scs-radius-s, 4px);
  color: var(--scs-ink-2, inherit);
  white-space: nowrap;
}
.role-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 8px;
  padding: 6px 10px;
  border: 1px solid var(--scs-kind-role-line);
  border-radius: var(--scs-radius-s, 6px);
  background: var(--scs-kind-role-soft);
  color: var(--scs-kind-role-ink);
}
.role-notice > span {
  flex: 1;
  min-width: 0;
}
.role-notice button {
  flex: none;
}
#roles-view > span svg,
#rail-roles svg {
  stroke: currentColor;
}
.role-detect {
  width: 100%;
  border-collapse: collapse;
}
.role-detect th {
  text-align: left;
  font-weight: 600;
  color: var(--scs-ink-2, inherit);
  border-bottom: 1px solid var(--scs-line-strong);
  padding: 6px 8px;
}
.role-detect td {
  padding: 7px 8px;
  border-bottom: 1px solid var(--scs-line);
  vertical-align: top;
}
.role-detect .role-detect-check {
  width: 28px;
}
.role-detect small,
.role-detect .role-detect-why {
  color: var(--scs-ink-3, inherit);
}
.picker-grid tr.picker-group th {
  padding: 10px 8px 4px;
  text-align: left;
  font-weight: 500;
  color: var(--scs-ink-3, inherit);
  background: none;
}
.picker-grid tr.picker-group b {
  margin-left: 8px;
  font-weight: 400;
}
.role-hidden-note {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--scs-kind-role-ink);
}
