/* Public participant presentation. Native renderers own data, order and actions. */
@media (min-width: 721px) {
  body:has(#message-form[data-composer-theme="neon-space"]) #participants-modal {
    padding: 16px;
    overflow: auto;
    align-items: safe center;
    justify-content: safe center;
  }
  body:has(#message-form[data-composer-theme="neon-space"]) #participants-modal .participants-card {
    --pm-unit: calc(100cqw / 1157);
    position: relative;
    isolation: isolate;
    container-type: inline-size;
    flex: 0 0 auto;
    width: min(864px, calc(100vw - 32px), calc((100dvh - 32px) * 1157 / 1360));
    aspect-ratio: 1157 / 1360;
    max-height: none;
    margin: 0;
    padding: 0;
    gap: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    clip-path: polygon(1.4% 6.6%,7.1% 2.4%,13.8% 2.4%,14.4% 3%,18% 3%,18.6% 3.5%,81.9% 3.5%,82.7% 2.8%,86.5% 2.8%,87% 2.3%,93% 2.3%,98.5% 6.8%,98.5% 14.5%,97.9% 15.1%,97.9% 84.8%,98.5% 85.4%,98.5% 92.7%,93% 97.2%,86.6% 97.2%,86.1% 96.6%,14.7% 96.6%,14.1% 97.2%,7.1% 97.2%,1.4% 92.6%,1.4% 85.5%,2% 84.8%,2% 15.1%,1.4% 14.5%);
    font-family: Arial, sans-serif;
  }
  body:has(#message-form[data-composer-theme="neon-space"]) #participants-modal .participants-card::before,
  body:has(#message-form[data-composer-theme="neon-space"]) #participants-modal .participants-card::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
  }
  body:has(#message-form[data-composer-theme="neon-space"]) #participants-modal .participants-card::before {
    z-index: -2;
    clip-path: polygon(7% 5%,93% 5%,96% 8%,96% 92%,92% 95%,8% 95%,4% 92%,4% 8%);
    background: linear-gradient(115deg,#02112c,#030b23 55%,#070921);
  }
  body:has(#message-form[data-composer-theme="neon-space"]) #participants-modal .participants-card::after {
    z-index: -1;
    background: url("assets/participants/reference-art.png") center / 100% 100% no-repeat;
    /* Only frame/stars/panel remain; no reference identities or raster controls. */
    mask: url("assets/participants/art-mask.svg") center / 100% 100% no-repeat;
  }
  body:has(#message-form[data-composer-theme="neon-space"]) #participants-modal .self-profile-title {
    position: absolute;
    top: calc(var(--pm-unit) * 95);
    left: calc(var(--pm-unit) * 325);
    width: calc(var(--pm-unit) * 510);
    margin: 0;
    color: #fbfbff;
    font: 800 calc(var(--pm-unit) * 40)/1.1 Arial, sans-serif;
    letter-spacing: calc(var(--pm-unit) * .7);
    text-align: center;
    text-transform: uppercase;
    transform: scaleX(.9);
    text-shadow: calc(var(--pm-unit) * -2) 0 calc(var(--pm-unit) * 4.5) #009dff, calc(var(--pm-unit) * 2) 0 calc(var(--pm-unit) * 4.5) #d52aff;
  }
  body:has(#message-form[data-composer-theme="neon-space"]) #participants-modal .self-profile-title::first-line {
    font-size: calc(var(--pm-unit) * 48);
    letter-spacing: calc(var(--pm-unit) * -.6);
  }
  body:has(#message-form[data-composer-theme="neon-space"]) #participants-close {
    position: absolute;
    top: calc(var(--pm-unit) * 94);
    right: calc(var(--pm-unit) * 69);
    width: calc(var(--pm-unit) * 72);
    height: calc(var(--pm-unit) * 72);
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    box-shadow: none;
    font-size: 0;
    transform: none;
  }
  body:has(#message-form[data-composer-theme="neon-space"]) #participants-close::before,
  body:has(#message-form[data-composer-theme="neon-space"]) #participants-close::after {
    content: "";
    position: absolute;
    top: 47%;
    left: 24%;
    width: 52%;
    height: calc(var(--pm-unit) * 5);
    border-radius: calc(var(--pm-unit) * 1);
    background: #fff;
    transform: rotate(45deg);
    pointer-events: none;
  }
  body:has(#message-form[data-composer-theme="neon-space"]) #participants-close::after { transform: rotate(-45deg); }
  body:has(#message-form[data-composer-theme="neon-space"]) #participants-close:hover { filter: brightness(1.2); }
  body:has(#message-form[data-composer-theme="neon-space"]) #participants-close:focus-visible {
    outline: calc(var(--pm-unit) * 3) solid #fff;
    outline-offset: calc(var(--pm-unit) * 3);
  }
  body:has(#message-form[data-composer-theme="neon-space"]) #participants-list {
    position: absolute;
    top: calc(var(--pm-unit) * 217);
    left: calc(var(--pm-unit) * 101);
    width: calc(var(--pm-unit) * 957);
    height: calc(var(--pm-unit) * 987);
    max-height: none;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: calc(var(--pm-unit) * 10);
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: calc(var(--pm-unit) * 29);
    background: transparent;
    box-shadow: none;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-gutter: auto;
    scrollbar-width: thin;
    scrollbar-color: #7565b5 transparent;
  }
  body:has(#message-form[data-composer-theme="neon-space"]) #participants-list > li:not(.users-empty) {
    position: relative;
    display: flex;
    align-items: center;
    align-self: stretch;
    flex: 0 0 calc(var(--pm-unit) * 89);
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    min-height: 0;
    max-width: none;
    margin: 0;
    padding: 0 calc(var(--pm-unit) * 15) 0 calc(var(--pm-unit) * 18);
    gap: calc(var(--pm-unit) * 29);
    border: calc(var(--pm-unit) * 1.5) solid #657dba !important;
    border-radius: calc(var(--pm-unit) * 29);
    background: linear-gradient(100deg,#06172f,#07142a 55%,#0a112b);
    box-shadow: inset 0 0 calc(var(--pm-unit) * 13) #5976c024 !important;
    font: 700 calc(var(--pm-unit) * 31)/1.2 Arial, sans-serif;
    letter-spacing: 0;
  }
  body:has(#message-form[data-composer-theme="neon-space"]) #participants-list > li.is-self {
    background: linear-gradient(100deg,#06335a,#06213e 45%,#0a112b);
  }
  body:has(#message-form[data-composer-theme="neon-space"]) #participants-list > li.is-clickable:hover {
    background: linear-gradient(100deg,#0a2a4c,#0c1d38 55%,#121533);
  }
  body:has(#message-form[data-composer-theme="neon-space"]) #participants-list .user-avatar {
    width: calc(var(--pm-unit) * 89);
    height: calc(var(--pm-unit) * 89);
    box-sizing: border-box;
    flex: 0 0 calc(var(--pm-unit) * 89);
    margin: 0;
    border: calc(var(--pm-unit) * 4) solid var(--avatar-border);
    padding: calc(var(--pm-unit) * 2);
    border-radius: 50%;
    background: #08142c;
    box-shadow: 0 0 calc(var(--pm-unit) * 10) var(--avatar-glow), inset 0 0 0 calc(var(--pm-unit) * 1) #03112c;
    object-fit: cover;
  }
  body:has(#message-form[data-composer-theme="neon-space"]) #participants-list .user-main {
    flex: 1 1 auto;
    min-width: 0;
  }
  body:has(#message-form[data-composer-theme="neon-space"]) #participants-list .user-name-row { gap: calc(var(--pm-unit) * 16); }
  body:has(#message-form[data-composer-theme="neon-space"]) #participants-list .user-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font: inherit;
    color: inherit;
    text-shadow: none;
  }
  body:has(#message-form[data-composer-theme="neon-space"]) #participants-list .user-tag {
    flex: 0 0 auto;
    margin-left: auto;
    padding: calc(var(--pm-unit) * 4) calc(var(--pm-unit) * 16);
    border: calc(var(--pm-unit) * 2) solid #20b6ff;
    border-radius: calc(var(--pm-unit) * 22);
    background: linear-gradient(#0a3778,#0a1741);
    color: #fff;
    font: 700 calc(var(--pm-unit) * 21)/1.2 Arial, sans-serif;
    letter-spacing: 0;
    box-shadow: inset 0 0 calc(var(--pm-unit) * 6) #67a7ff77;
  }
  body:has(#message-form[data-composer-theme="neon-space"]) #participants-list .user-status {
    position: static;
    flex: 0 0 calc(var(--pm-unit) * 19);
    width: calc(var(--pm-unit) * 19);
    height: calc(var(--pm-unit) * 19);
    margin: 0 calc(var(--pm-unit) * -6) 0 calc(var(--pm-unit) * -10);
    border: 0;
    border-radius: 50%;
    background: #8194b4;
    box-shadow: none;
  }
  body:has(#message-form[data-composer-theme="neon-space"]) #participants-list .user-status.is-online {
    background: #00eb8f;
    box-shadow: 0 0 calc(var(--pm-unit) * 18) #00ef8f99;
  }
  body:has(#message-form[data-composer-theme="neon-space"]) #participants-list .participants-role-badge {
    --role-color: #acbeff;
    --role-bg: #162446;
    --role-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cg fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='24' cy='13' r='8'/%3E%3Cpath d='M9 42v-4a15 15 0 0 1 30 0v4Z'/%3E%3C/g%3E%3C/svg%3E");
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    gap: calc(var(--pm-unit) * 18);
    flex: 0 0 auto;
    min-width: calc(var(--pm-unit) * 205);
    height: calc(var(--pm-unit) * 58);
    margin: 0;
    padding: 0 calc(var(--pm-unit) * 14);
    border: calc(var(--pm-unit) * 2.5) solid var(--role-color);
    border-radius: calc(var(--pm-unit) * 26);
    color: #f4f2ff;
    background: linear-gradient(110deg,var(--role-bg),#0b1128);
    box-shadow: inset 0 0 calc(var(--pm-unit) * 7) #7789ef44;
    font: 400 calc(var(--pm-unit) * 25)/1 Arial, sans-serif;
    letter-spacing: calc(var(--pm-unit) * -.6);
    white-space: nowrap;
  }
  body:has(#message-form[data-composer-theme="neon-space"]) #participants-list .participants-role-badge::before {
    content: "";
    display: block;
    flex: 0 0 calc(var(--pm-unit) * 37);
    width: calc(var(--pm-unit) * 37);
    height: calc(var(--pm-unit) * 40);
    background: currentColor;
    mask: var(--role-icon) center / contain no-repeat;
    filter: drop-shadow(0 0 calc(var(--pm-unit) * 3) var(--role-color));
  }
  body:has(#message-form[data-composer-theme="neon-space"]) #participants-list .participants-role-badge:is(.is-owner,.is-admin,[data-participant-role="moderator"],[data-participant-role="editor"]) {
    box-shadow: 0 0 calc(var(--pm-unit) * 16) color-mix(in srgb,var(--role-color) 55%,transparent), inset 0 0 calc(var(--pm-unit) * 10) color-mix(in srgb,var(--role-color) 35%,transparent);
  }
  body:has(#message-form[data-composer-theme="neon-space"]) #participants-list .participants-role-badge.is-owner {
    --role-color: #ffd64a;
    --role-bg: #3b2b00;
    --role-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cg fill='none' stroke='white' stroke-width='3' stroke-linejoin='round'%3E%3Cpath d='m5 14 8 24h22l8-24-12 9-7-15-7 15Z'/%3E%3Cpath d='M13 42h22'/%3E%3Ccircle cx='5' cy='11' r='2'/%3E%3Ccircle cx='24' cy='5' r='2'/%3E%3Ccircle cx='43' cy='11' r='2'/%3E%3C/g%3E%3C/svg%3E");
    color: #fff7d6;
  }
  body:has(#message-form[data-composer-theme="neon-space"]) #participants-list .participants-role-badge.is-admin {
    --role-color: #00dcff;
    --role-bg: #00315b;
    --role-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cg fill='none' stroke='white' stroke-width='3.2' stroke-linejoin='round'%3E%3Cpath d='M24 3c6 5 11 6 18 7v15c0 9-8 15-18 21C14 40 6 34 6 25V10c7-1 12-2 18-7Z'/%3E%3Cpath d='m24 13 3 7 8 1-6 5 2 8-7-4-7 4 2-8-6-5 8-1Z'/%3E%3C/g%3E%3C/svg%3E");
    color: #81e7ff;
  }
  body:has(#message-form[data-composer-theme="neon-space"]) #participants-list .participants-role-badge[data-participant-role="moderator"] {
    --role-color: #e14cff;
    --role-bg: #32035c;
    --role-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cg fill='none' stroke='white' stroke-width='3.2' stroke-linejoin='round'%3E%3Cpath d='M24 3c6 5 11 6 18 7v15c0 9-8 15-18 21C14 40 6 34 6 25V10c7-1 12-2 18-7Z'/%3E%3Cpath d='m15 23 6 6 12-13'/%3E%3C/g%3E%3C/svg%3E");
  }
  body:has(#message-form[data-composer-theme="neon-space"]) #participants-list .participants-role-badge[data-participant-role="editor"] {
    --role-color: #ff47b3;
    --role-bg: #41072e;
    --role-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cg fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 36C9 20 25 6 43 4c-4 18-15 30-29 30M5 44l29-29M13 31l12-1M21 22l10-1'/%3E%3C/g%3E%3C/svg%3E");
  }
  body:has(#message-form[data-composer-theme="neon-space"]) #participants-list > .users-empty {
    margin: 0;
    padding: calc(var(--pm-unit) * 40);
    background: transparent;
    border: 0;
    box-shadow: none;
    color: #d4dcff;
    font: 400 calc(var(--pm-unit) * 28)/1.4 Arial, sans-serif;
    text-align: center;
    align-self: stretch;
  }
}
