/* Public role examples are illustrations, never member or invitation data. */
.role-guide { --role-burgundy: #704452; --role-blue: #eaf3fb; --role-blue-ink: #3c657d; --role-green: #eaf4e9; --role-green-ink: #476c55; --role-line: #d6c5ca; padding-top: 76px; min-width: 0; }
.role-guide-heading { margin-bottom: 32px; }
.role-guide-heading .landing-eyebrow { margin-bottom: 8px; }
.role-guide-heading h2 { font-size: 25px; letter-spacing: -.04em; }
.role-guide-heading > p:last-child { margin-top: 12px; font-size: 14px; color: var(--muted); word-break: keep-all; }
.role-tree { max-width: 1060px; margin-inline: auto; }
.role-host { position: relative; display: flex; align-items: center; gap: 14px; width: max-content; max-width: 100%; margin-inline: auto; padding: 17px 21px; border: 1px solid #e5ced5; border-radius: 20px; background: #fff1f4; box-shadow: 0 4px 14px #70445208; color: var(--role-burgundy); }
.role-node-icon { display: inline-flex; flex: none; align-items: center; justify-content: center; }
.role-node-icon svg { width: 27px; height: 27px; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.role-host > .role-node-icon { width: 40px; height: 40px; border-radius: 14px; background: #f8dfe7; }
.role-host > div { display: grid; gap: 3px; }
.role-host strong { font-size: 19px; }
.role-host > div > span { font-size: 11px; }
.role-match-badge { display: inline-block; flex: none; white-space: nowrap; color: inherit; font-size: 10px; font-weight: 650; line-height: 1.5; }
.role-host > .role-match-badge { align-self: flex-start; padding: 3px 7px; border-radius: 6px; background: #fff9fb; }
.role-branches { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding-top: 42px; }
.role-branches::before { content: ''; position: absolute; top: 20px; left: calc(12.5% - 9px); right: calc(12.5% - 9px); height: 1px; background: var(--role-line); }
.role-branches::after { content: ''; position: absolute; top: 0; left: 50%; width: 1px; height: 20px; background: var(--role-line); }
.role-branch { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; align-content: start; min-width: 0; }
.role-branch::before { content: ''; position: absolute; top: -22px; left: 50%; height: 22px; width: 1px; background: var(--role-line); }
.role-branch::after { content: ''; position: absolute; top: -4px; left: calc(50% - 3px); border: 3px solid transparent; border-top-color: var(--role-line); }
.role-branch-head { display: grid; justify-items: center; gap: 5px; width: 100%; min-height: 94px; padding: 13px 10px; border-radius: 16px; background: var(--role-blue); color: var(--role-blue-ink); }
.role-branch-head .role-node-icon svg { width: 24px; height: 24px; }
.role-branch-head strong { font-size: 14px; line-height: 1.5; text-align: center; word-break: keep-all; }
.role-direct .role-branch-head { grid-template-columns: auto minmax(0, 1fr); align-content: center; align-items: center; gap: 9px; background: #faf0ef; color: var(--role-burgundy); }
.role-direct .role-branch-head strong { font-size: 13px; }
.role-to-participants { display: grid; place-items: center; height: 32px; color: var(--role-line); }
.role-to-participants svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.role-participants { display: flex; justify-content: center; align-items: center; gap: 10px; min-width: 0; }
.role-participant { display: grid; justify-items: center; gap: 7px; font-size: 11px; color: var(--role-green-ink); }
.role-avatar { display: grid; place-items: center; width: 47px; height: 47px; border-radius: 50%; background: var(--role-green); }
.role-avatar svg { width: 31px; height: 31px; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.role-many { color: var(--role-green-ink); align-self: flex-start; padding-top: 10px; font-size: 18px; line-height: 1; letter-spacing: 1px; }
.role-branch-caption { margin-top: 12px; font-size: 11px; color: var(--muted); }
.role-key { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px 28px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.role-key p { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 9px; font-size: 13px; color: var(--role-burgundy); }
.role-key p + p { color: var(--role-green-ink); }
.role-key p > span::after { content: ' ='; color: var(--muted); }
.role-key strong { font-weight: 700; }
.role-key small { font-size: 10px; padding: 3px 6px; border: 1px solid currentColor; border-radius: 5px; }
.role-guide-note { margin-top: 15px; text-align: center; color: var(--muted); font-size: 11px; line-height: 1.7; word-break: keep-all; }
.usage-role-dialog { width: min(940px, calc(100vw - 32px)); }
.usage-role-content { padding: 0 30px 28px; }
.usage-role-content .role-guide { padding-top: 6px; }
.usage-role-content .role-guide-heading { margin-bottom: 24px; }
.usage-role-content .role-guide-heading h2 { font-size: 24px; }
.usage-role-content .role-guide-heading .landing-eyebrow { display: none; }
.usage-role-content .role-guide-note { margin-bottom: 24px; }
.usage-role-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.usage-role-actions > button { min-height: 46px; }
.tutorial-role-shortcut { padding-inline: 30px; }
.tutorial-role-link { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; margin-bottom: 8px; font-size: 12px; color: var(--muted); text-decoration: underline; text-underline-offset: 4px; }
.invite-recipient-role.invitation-context { margin: 0 0 24px; padding: 0 0 0 12px; border-left: 2px solid var(--accent); }
.invite-recipient-role > strong { display: block; color: var(--ink); font-size: 16px; line-height: 1.5; overflow-wrap: anywhere; }
.invite-recipient-role > .invitation-context-label { margin-bottom: 4px; word-break: keep-all; }
@media (min-width: 768px) and (max-width: 1100px) {
  .role-branches { gap: 14px; }
  .role-branches::before { left: calc(12.5% - 5px); right: calc(12.5% - 5px); }
  .role-participants { gap: 5px; }
  .role-avatar { width: 38px; height: 38px; }
  .role-avatar svg { width: 27px; height: 27px; }
  .usage-role-content { padding-inline: 20px; }
}
@media (max-width: 767px) {
  .role-guide { padding-top: 48px; }
  .role-guide-heading { margin-bottom: 24px; }
  .role-guide-heading h2 { font-size: 22px; }
  .role-guide-heading > p:last-child { max-width: 290px; font-size: 12px; line-height: 1.8; }
  .role-host { margin-left: 0; padding: 15px 13px; gap: 10px; border-radius: 16px; }
  .role-host > .role-node-icon { width: 35px; height: 35px; }
  .role-host strong { font-size: 17px; }
  .role-host > div > span { font-size: 11px; }
  .role-host > .role-match-badge { padding-inline: 5px; font-size: 11px; }
  .role-host::after { content: ''; position: absolute; left: 16px; top: 100%; height: 24px; width: 1px; background: var(--role-line); }
  .role-branches { grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 0 0 0 16px; margin: 24px 0 0 16px; border-left: 1px solid var(--role-line); }
  .role-branches::before, .role-branches::after { display: none; }
  .role-branch { grid-template-columns: minmax(100px, 1fr) 18px minmax(0, 1fr); gap: 6px; align-items: center; }
  .role-branch::before { top: 34px; left: -16px; height: 1px; width: 16px; }
  .role-branch::after { top: 31px; left: -4px; border-top-color: transparent; border-left-color: var(--role-line); }
  .role-branch-head { min-height: 78px; gap: 2px; padding: 8px 6px; border-radius: 12px; }
  .role-branch-head .role-node-icon svg { width: 20px; height: 20px; }
  .role-branch-head strong { font-size: 12px; white-space: nowrap; }
  .role-branch-head .role-match-badge { font-size: 11px; }
  .role-direct .role-branch-head { grid-template-columns: minmax(0, 1fr); gap: 3px; }
  .role-direct .role-branch-head strong { font-size: 12px; }
  .role-to-participants { height: 22px; width: 18px; transform: rotate(-90deg); }
  .role-participants { gap: 4px; }
  .role-participant { gap: 5px; font-size: 11px; }
  .role-avatar { width: 34px; height: 34px; }
  .role-avatar svg { width: 25px; height: 25px; }
  .role-many { padding-top: 7px; font-size: 14px; letter-spacing: 0; }
  .role-branch-caption { grid-column: 3; margin-top: -9px; font-size: 11px; }
  .role-key { display: grid; justify-content: stretch; gap: 12px; margin-top: 25px; padding-top: 21px; }
  .role-key p { gap: 4px 7px; font-size: 12px; }
  .role-key small { font-size: 11px; }
  .role-guide-note { text-align: left; font-size: 11px; }
  .tutorial-role-shortcut { padding-inline: 20px; }
  .usage-role-dialog { width: calc(100vw - 20px); }
  .usage-role-content { padding: 0 17px 20px; }
  .usage-role-content .role-guide-heading h2 { font-size: 21px; }
  .usage-role-content .role-guide-heading > p:last-child { font-size: 11px; }
  .usage-role-actions { display: grid; }
  .usage-role-actions > button { width: 100%; font-size: 12px; }
}
