.role-custom-color { --role-start:#c4b5fd; background:color-mix(in srgb,var(--role-start) 12%,var(--surface)); border:1px solid color-mix(in srgb,var(--role-start) 35%,transparent); color:var(--role-start); }
.nexus-preview .chip.role-custom-color { background:color-mix(in srgb,var(--role-start) 12%,var(--surface));border-color:color-mix(in srgb,var(--role-start) 35%,transparent);color:var(--role-start); }
.role-custom-color .role-label { background:var(--role-gradient); background-size:100% 100%; background-clip:text; -webkit-background-clip:text; color:transparent; -webkit-text-fill-color:transparent; }
.role-motion-flow .role-label { background-size:220% 100%; animation:role-color-flow var(--role-duration,6s) ease-in-out infinite alternate; }
.role-motion-shimmer .role-label { background-image:linear-gradient(105deg,transparent 35%,#ffffffc9 50%,transparent 65%),var(--role-gradient);background-size:250% 100%,100% 100%;background-repeat:no-repeat;animation:role-color-shimmer var(--role-duration,6s) linear infinite; }
@keyframes role-color-flow { from { background-position:0% 50%; } to { background-position:100% 50%; } }
@keyframes role-color-shimmer { 0% { background-position:150% 50%,0 0; } 100% { background-position:-150% 50%,0 0; } }
.role-designer { padding:24px; border:1px solid var(--hairline); border-radius:14px; background:var(--surface); min-width:0; }
.role-designer-heading { margin-bottom:20px; }.role-designer .panel-sub { margin-top:6px; line-height:1.6; }
.role-mode { display:flex; gap:4px; padding:4px; background:var(--fill); border:1px solid var(--hairline); border-radius:12px; margin:0 0 24px; min-width:0; }
.role-mode label { flex:1; position:relative; cursor:pointer; text-align:center; }.role-mode input { position:absolute; opacity:0; width:1px; height:1px; }
.role-mode span { display:block; padding:11px 12px; border-radius:9px; color:var(--text-2); font-size:14px; font-weight:600; }
.role-mode input:checked+span { background:var(--accent-soft); color:var(--accent-text); }.role-mode input:focus-visible+span { outline:2px solid var(--accent);outline-offset:2px; }
.role-designer-layout { display:grid; grid-template-columns:minmax(0,1fr) minmax(220px,.7fr); align-items:start; gap:24px; }
.role-designer-controls { min-width:0; }.role-designer-controls>[data-role-custom] { display:grid; gap:22px; }.role-designer [hidden] { display:none!important; }
.role-stop-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }.role-stop { padding:12px; border:1px solid var(--hairline); border-radius:10px; min-width:0; }.role-stop:focus-within { border-color:var(--accent); }
.role-stop>label { display:block; margin-bottom:8px; font-size:13px; font-weight:600; }.role-stop-inputs { display:flex; align-items:center; gap:8px; }
.role-stop.is-active { border-color:color-mix(in srgb,var(--accent) 65%,var(--hairline)); }.role-designer-heading+.role-mode { clear:both; }.role-hero-actions { margin-top:18px; }
.role-designer input[type=color] { appearance:none; flex:0 0 38px; width:38px; height:38px; padding:3px; border:1px solid var(--hairline); background:transparent; border-radius:8px; cursor:pointer; }.role-designer input[type=color]::-webkit-color-swatch-wrapper { padding:0; }.role-designer input[type=color]::-webkit-color-swatch { border:0;border-radius:4px; }
.role-stop input[data-role-hex] { min-width:0; width:100%; padding:9px 8px; font-size:13px; font-family:ui-monospace,monospace; }.role-stop input[aria-invalid=true] { border-color:var(--danger,#f87171); }
.role-swatch-palette,.role-preset-list { border:0; padding:0; margin:0; min-width:0; }.role-swatch-palette legend,.role-preset-list legend { margin-bottom:10px; }.role-swatch-palette>div { display:flex;flex-wrap:wrap;gap:8px; }
.role-swatch-palette button { width:28px;height:28px;flex:0 0 28px;border-radius:50%;background:var(--swatch);border:2px solid #ffffff30;cursor:pointer; }.role-swatch-palette button:hover { outline:2px solid var(--text-2);outline-offset:2px; }
.role-gradient-settings { display:grid;gap:18px; }.role-designer .field { margin:0; }.role-designer input[type=range] { width:100%;accent-color:var(--accent);padding:0;min-height:28px;cursor:pointer; }.role-designer output { float:right;color:var(--text-2);font-size:13px;font-weight:500; }
.role-preset-list>div { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px; }.role-preset-list button { display:flex;align-items:center;gap:9px;min-height:40px;padding:8px 10px;background:var(--fill);border:1px solid var(--hairline);border-radius:9px;font-size:13px;color:var(--text);cursor:pointer; }.role-preset-list button:hover { border-color:var(--accent); }.role-preset-list button span { width:28px;height:20px;border-radius:5px;background:var(--preset);flex-shrink:0; }
.role-live-preview { display:grid;gap:18px;padding:22px;border:1px solid var(--hairline);border-radius:12px;background:var(--fill);min-width:0;position:sticky;top:24px; }.role-preview-context { display:flex;align-items:center;gap:12px;min-width:0; }.role-preview-context>div { display:flex;align-items:flex-start;flex-direction:column;gap:9px;min-width:0; }.role-preview-context b { font-size:15px;overflow-wrap:anywhere; }.role-preview-context .chip { font-size:13px;white-space:normal;overflow-wrap:anywhere; }.role-preview-avatar { display:grid;place-items:center;width:42px;height:42px;flex-shrink:0;border-radius:50%;background:var(--accent-soft);color:var(--accent-text);font-weight:700;font-size:14px; }
.role-live-preview p { font-size:14px;line-height:1.7;color:var(--text-2); }.role-live-preview small { color:var(--text-3,var(--text-2));font-size:12px;line-height:1.6; }.role-preview-strip { height:8px;border-radius:20px; }
.member-role-badges { display:flex;flex-wrap:wrap;gap:6px;margin-top:9px; }.admin-role-form { align-items:flex-start; }.multi-role-options .check { align-items:center; }.multi-role-options .check .chip { white-space:normal; }.admin-account-list form { flex-wrap:wrap;gap:8px; }.account-unlink { padding:5px 9px;border-radius:8px;border:1px solid var(--hairline);background:var(--fill);color:var(--text-2);font:inherit;font-size:12px;cursor:pointer; }.account-unlink:hover { border-color:#fb7185;color:#fda4af; }
.mod-member-search { display:flex;gap:10px;align-items:center;padding:22px 24px 12px; }.mod-member-search input { flex:1;min-width:0; }.mod-member-search .btn { flex-shrink:0; }.mod-members-panel .mod-member-row { margin-inline:24px; }
@media(max-width:1150px) { .role-designer-layout { grid-template-columns:minmax(0,1fr); }.role-live-preview { position:static; } }
@media(max-width:600px) { .role-designer { padding:16px; }.role-mode span { font-size:12px;padding:10px 6px; }.role-stop-list { grid-template-columns:minmax(0,1fr); }.role-live-preview { padding:18px; }.mod-member-search { padding:18px 16px 8px; }.mod-members-panel .mod-member-row { margin-inline:16px; } }
@media(prefers-reduced-motion:reduce) { .role-motion-flow .role-label,.role-motion-shimmer .role-label { animation:none; } }

.role-inline.role-custom-color { background:none;border:0; }
.role-mode .sr-only { position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0; }
