.profiles-section{padding:42px 0;scroll-margin-top:110px}
.profile-note{color:#a8b5c7;max-width:850px;font-size:14px;line-height:1.6}
.profile-layout{display:grid;grid-template-columns:minmax(260px,340px) minmax(0,1fr);gap:24px;align-items:start;margin-top:24px}
.profile-editor{scroll-margin-top:110px}.profile-editor h3{font-size:25px;margin:12px 0 20px}
.profile-editor>label,.profile-filters label{display:block;font-weight:700;margin:16px 0 8px}
.profile-editor input:not([type=checkbox]),.profile-editor select,.profile-filters select{width:100%;background:#090f18;color:#f4f7fb;border:1px solid #36506f;border-radius:10px;padding:12px;font:inherit}
.profile-editor fieldset{border:0;padding:0;margin:22px 0}.profile-editor legend{font-weight:700;margin-bottom:12px}
.profile-editor small{font-size:12px;color:#a8b5c7;font-weight:400}.profile-editor legend small{display:block}
.genre-choices,.profile-tags{display:flex;flex-wrap:wrap;gap:8px}
.genre-choice{display:inline-flex;align-items:center;gap:7px;background:#111e30;border:1px solid #36506f;border-radius:22px;padding:8px 11px;font-size:13px;cursor:pointer}
.genre-choice:has(input:checked){background:#203e66;border-color:#88baff}.genre-choice input,.open-genres input{accent-color:#76b3ff;width:17px;height:17px}
.profile-editor .open-genres{display:flex;align-items:center;gap:8px;font-size:14px;margin:20px 0}.profile-editor .btn{width:100%}
.profile-summary{border-top:1px solid #223349;margin-top:20px;padding-top:16px}.profile-summary h4{margin:0 0 6px;font-size:20px}
.profile-filters{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:18px}.profile-filters label{margin-top:0;font-size:14px}
.profile-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.creator-profile{overflow:hidden;border-radius:18px;background:#0f1621;border:1px solid #28384e}
.profile-photo{width:100%;height:140px;object-fit:cover;display:block}.profile-body{padding:18px}.profile-body h3{margin:7px 0;font-size:23px}.profile-role{color:#88baff;font-size:12px;letter-spacing:1px;text-transform:uppercase;font-weight:800}
.profile-tags{margin:14px 0}.profile-tag{border:1px solid #36506f;color:#cfe4ff;background:#11213a;border-radius:18px;padding:5px 10px;font-size:12px}.profile-open{color:#9de3c4;font-size:13px}
.profile-rating{padding:12px 0;border-top:1px solid #223349;display:flex;justify-content:space-between;gap:8px;font-size:13px}.profile-score{color:#f4cd75;text-align:right}
.creator-profile details{border-top:1px solid #223349;padding-top:14px;margin-top:6px}.creator-profile summary{color:#a8ccff;font-weight:700;cursor:pointer;padding:8px 0}
.rating-trial{font-size:12px;color:#a8b5c7;line-height:1.5}.rating-form fieldset{border:0;padding:0;margin:16px 0}.rating-form legend{font-size:14px;font-weight:700}.star-choices{display:flex;gap:3px;margin-top:10px;flex-wrap:wrap}.star-choice{display:flex;align-items:center;gap:3px;padding:7px 5px;border:1px solid #36506f;border-radius:8px;cursor:pointer;font-size:14px}.star-choice input{accent-color:#ffd374;margin:0}.star-choice:has(input:checked){color:#ffd374;border-color:#ffd374;background:#332a19}
.profile-body .rating-form .btn{width:100%;font-size:14px;padding:12px}.rating-status,#profile-save-status,#profile-count{font-size:13px;color:#b8d6ff;min-height:20px}.profile-editor input:focus-visible,.profile-editor select:focus-visible,.profile-filters select:focus-visible,.star-choice:focus-within,.genre-choice:focus-within{outline:2px solid #88baff;outline-offset:3px}
@media(max-width:1000px){.profile-layout{grid-template-columns:1fr}.genre-choices{max-width:750px}.profile-editor{max-width:none}}
@media(max-width:600px){.profile-cards{grid-template-columns:1fr}.profile-filters{gap:10px}.profiles-section .split-head{align-items:start;flex-direction:column}.profile-photo{height:180px}}

/* Signed-in profile picture demo. */
.profile-photo-editor{margin:0 0 24px;padding:20px;border:1px solid #355477;border-radius:18px;background:radial-gradient(circle at 100% 0,#17416a55,transparent 75%),#0b1422;text-align:center}
.profile-photo-editor h4{font-size:17px;margin:0 0 18px}
.profile-avatar-preview{display:grid;place-items:center;width:124px;height:124px;margin:0 auto 20px;border-radius:50%;border:3px solid #63adff;outline:5px solid #2e8bff16;background:linear-gradient(145deg,#24446b,#122139);box-shadow:0 0 24px #2e8bff2a;overflow:hidden}
.profile-avatar-preview>span{font-size:48px;color:#bcdfff}
.profile-avatar-preview img{display:block;width:100%;height:100%;object-fit:cover}
.profile-photo-editor [hidden]{display:none!important}
.profile-photo-editor .btn{white-space:normal;min-height:48px}
.profile-avatar-remove{display:block;margin:12px auto 0;padding:8px;border:0;background:none;color:#ffabb5;font:inherit;font-size:13px;cursor:pointer}
.profile-avatar-remove:focus-visible{outline:2px solid #88baff;outline-offset:3px}
.profile-photo-storage{font-size:11px;line-height:1.6;color:#9eafc4;margin:12px 0 0}
.profile-photo-editor .profile-note{font-size:12px}
.member-avatar{width:76px;height:76px;display:grid;place-items:center;flex-shrink:0;overflow:hidden;border-radius:50%;border:2px solid #508dca;background:linear-gradient(135deg,#244570,#101d32);color:#b9d9ff;font-size:23px;font-weight:900}
.member-avatar img{width:100%;height:100%;object-fit:cover;display:block}
.creator-profile>.member-avatar{margin:20px 18px 0}
.profile-summary>.member-avatar{margin-bottom:12px}

/* Basic photo positioning and zoom editor. */
.profile-crop-dialog{width:min(94vw,460px);max-height:92dvh;overflow-y:auto;background:#0d1726;color:#f4f7fb;border:1px solid #4d8ac5;border-radius:22px;padding:24px;box-shadow:0 24px 80px #0008}
.profile-crop-dialog::backdrop{background:#030812dd}
.profile-crop-dialog h2{margin:0 0 8px;font-size:25px}
.profile-crop-dialog>p{color:#adbed2;font-size:13px;line-height:1.5}
.profile-crop-frame{width:min(100%,280px);aspect-ratio:1;margin:20px auto;position:relative;border:1px solid #45658a;border-radius:14px;overflow:hidden}
#profile-crop-canvas{display:block;width:100%;height:100%;touch-action:none;cursor:grab}
#profile-crop-canvas:active{cursor:grabbing}
.profile-crop-guide{position:absolute;inset:0;pointer-events:none;border:2px solid #b7e2ff;border-radius:50%;box-shadow:0 0 0 60px #03081299}
.profile-crop-dialog label{display:flex;justify-content:space-between;font-size:13px;font-weight:700;margin:14px 0 6px}
.profile-crop-dialog input[type=range]{display:block;width:100%;height:28px;accent-color:#4da6ff;cursor:pointer}
.profile-crop-tools{display:flex;gap:8px;flex-wrap:wrap;margin-top:20px}
.profile-crop-tools .btn{flex:1;padding:12px 10px;font-size:13px;min-height:44px}
.profile-crop-dialog button:focus-visible,.profile-crop-dialog input:focus-visible{outline:2px solid #9ed5ff;outline-offset:3px}
#profile-avatar-adjust,#profile-avatar-migrate{margin-top:10px}
@media(max-width:520px){.profile-crop-dialog{padding:18px}.profile-crop-frame{width:min(100%,240px)}}


/* Approved RMS badge artwork, displayed as a sprite without redrawing it. */
.profile-uploads-button{display:inline-flex;align-items:center;gap:12px;padding:10px 16px!important;max-width:100%;text-decoration:none;text-align:left;border-radius:14px!important;background:linear-gradient(135deg,#19232f,#080d14)!important;box-shadow:inset 0 1px 0 #ffffff18}
.profile-uploads-button:hover{border-color:#90c7ff;box-shadow:0 0 16px #349dff26}
.profile-uploads-button:focus-visible{outline:3px solid #90c7ff;outline-offset:4px}
.profile-uploads-badge{flex:0 0 58px;width:58px;height:58px;border-radius:50%;background-image:url('/assets/account-badges.webp');background-repeat:no-repeat;background-size:267.13px 178.09px;background-position:-23.3px -17.4px}
.profile-uploads-badge-premium{background-position:-104.9px -17.4px}
.profile-uploads-badge-gold{background-position:-185.9px -17.4px}
.profile-uploads-badge-admin{background-size:318.09px 212.06px;background-position:-86.5px -132px}
.profile-uploads-badge-owner{background-image:url('/assets/owner-white-red-blue-transparent.webp');background-size:contain;background-position:center;border-radius:0}
.profile-uploads-copy{display:flex;flex-direction:column;gap:4px;min-width:0}
.profile-uploads-title{font-family:Impact,'Arial Black',sans-serif;font-size:20px;font-style:italic;letter-spacing:.045em;color:#f4f7fc;text-shadow:1px 2px 0 #16334f}
.profile-uploads-membership{font-size:11px;letter-spacing:.09em;text-transform:uppercase;color:#b8c9dc}
.profile-uploads-arrow{font-size:22px;color:#cbdced;margin-left:auto}

/* Keep injected profile controls inside the editor's grid cell. */
.profile-layout>div{min-width:0}
.profile-cards{grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr))}
.profile-body{min-width:0}
.profile-body .btn{max-width:100%;white-space:normal;overflow-wrap:anywhere}
.profile-uploads-button{box-sizing:border-box;white-space:normal;min-width:0}
.profile-uploads-title,.profile-uploads-membership{overflow-wrap:anywhere}
.profile-recordings .profile-uploads-button{width:100%;margin-top:12px}
.profile-editor>.profile-uploads-button{margin-bottom:18px}

/* Standalone membership badge: captions below, with no enclosing frame. */
.profile-uploads-button{
 display:inline-flex;flex-direction:column;align-items:center;gap:8px;
 width:fit-content;max-width:100%;padding:10px 4px!important;
 border:0!important;border-radius:0!important;background:transparent!important;
 box-shadow:none!important;text-align:center;white-space:normal;
}
.profile-uploads-button:hover{border:0!important;background:transparent!important;box-shadow:none!important}
.profile-uploads-copy{align-items:center;max-width:100%}
.profile-uploads-title{white-space:normal;overflow-wrap:anywhere;font-size:18px}
.profile-uploads-membership{white-space:normal;overflow-wrap:anywhere}
.profile-uploads-arrow{display:none}
.profile-recordings .profile-uploads-button{width:fit-content;max-width:100%;margin-top:12px}
.profile-editor>.profile-uploads-button{width:fit-content;max-width:100%}

/* Full-width creator directory and landscape desktop profile cards. */
@media(min-width:1001px){
 .profile-layout{grid-template-columns:minmax(0,1fr)}
 .profile-layout>.profile-editor{grid-row:2;width:100%;max-width:900px;box-sizing:border-box}
 .profile-layout>div{grid-row:1}
 .profile-cards{grid-template-columns:repeat(auto-fill,minmax(420px,1fr));gap:22px;align-items:start}
 .creator-profile{display:grid;grid-template-columns:100px minmax(0,1fr);align-items:start}
 .creator-profile>.member-avatar{width:76px;height:76px;margin:22px 0 0 18px}
 .creator-profile>.profile-body{padding:20px 20px 20px 16px}
 .creator-profile .profile-body h3{overflow-wrap:anywhere}
 .creator-profile .profile-score{text-align:left}
 .creator-profile .profile-tags{margin:10px 0}
 .creator-profile .profile-body>.btn{margin:6px 8px 0 0}
 .creator-profile .rating-form label{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
}


/* Centre the upload action and make its purpose explicit. */
.profile-recordings{text-align:center}
.profile-recordings .profile-uploads-button,.profile-editor>.profile-uploads-button{display:flex;margin:18px auto 10px;align-items:center;min-height:44px;cursor:pointer}
.profile-uploads-badge{transform:scale(1.35);margin:12px}
.profile-uploads-button::after{content:'View uploads →';font-family:Arial,sans-serif;font-size:13px;font-weight:700;letter-spacing:.02em;color:#b8dcff;border-bottom:1px solid #719bc4;padding:3px 0}
.profile-uploads-button:hover::after{color:#fff;border-color:#fff}
.profile-recordings>div{text-align:left}
.profile-staff-contact{margin:16px 0;padding-top:12px;border-top:1px solid #2c4059;text-align:left}
.profile-staff-contact input{display:block;box-sizing:border-box;width:100%;min-width:0;margin:10px 0;padding:10px;background:#0a1423;color:#dcecff;border:1px solid #426589;border-radius:8px;font:inherit}
.profile-staff-contact .btn{font-size:13px;min-height:44px;margin:4px 6px 4px 0}

/* Membership metal finishes use the verified badge tier already returned by the server. */
:is(.creator-profile,.profile-editor)[data-account-badge="gold"]{
 --metal-edge:#e8c76f;--metal-ink:#241705;--metal-muted:#4d3815;
 --metal-shine:linear-gradient(112deg,#70440e 0%,#ba8330 8%,#f5da83 23%,#fff0b9 30%,#c19136 42%,#f1d580 57%,#fff2bf 65%,#b17a26 82%,#e2be62 94%,#8f5c18 100%);
}
:is(.creator-profile,.profile-editor)[data-account-badge="premium"]{
 --metal-edge:#d4deea;--metal-ink:#111e2c;--metal-muted:#334457;
 --metal-shine:linear-gradient(112deg,#596673 0%,#a0afbd 8%,#e0e7ee 23%,#f9fcff 30%,#a1afbd 42%,#d8e1e9 57%,#f8fcff 65%,#8a99aa 82%,#cdd9e3 94%,#677887 100%);
}
:is(.creator-profile,.profile-editor):is([data-account-badge="gold"],[data-account-badge="premium"]){
 position:relative;isolation:isolate;color:var(--metal-ink);border:1px solid var(--metal-edge);border-radius:18px;
 background:repeating-linear-gradient(0deg,#fff0 0px,#fff0 2px,#ffffff16 3px,#0000000a 4px),var(--metal-shine);
 box-shadow:inset 0 1px 0 #ffffffd0,inset 0 -2px 0 #0006,0 12px 32px #0005;
}
:is(.creator-profile,.profile-editor):is([data-account-badge="gold"],[data-account-badge="premium"])::before{
 content:"";position:absolute;inset:5px;z-index:-1;pointer-events:none;border:1px solid #ffffff55;border-radius:13px;
 box-shadow:inset 0 0 0 1px #00000018;
}
:is(.creator-profile,.profile-editor):is([data-account-badge="gold"],[data-account-badge="premium"]) :is(h3,h4,.profile-role,.profile-score,.profile-note,.profile-open,.profile-uploads-title,.profile-uploads-membership,.rating-status,label,legend,summary){
 color:var(--metal-ink);text-shadow:0 1px 0 #ffffff60;
}
:is(.creator-profile,.profile-editor):is([data-account-badge="gold"],[data-account-badge="premium"]) :is(.profile-note,.profile-uploads-membership,small){color:var(--metal-muted)}
:is(.creator-profile,.profile-editor):is([data-account-badge="gold"],[data-account-badge="premium"]) .profile-body h3{font-weight:900;letter-spacing:.015em}
:is(.creator-profile,.profile-editor):is([data-account-badge="gold"],[data-account-badge="premium"]) .member-avatar{border-color:var(--metal-edge);box-shadow:0 0 0 3px #0002,0 2px 10px #0005}
:is(.creator-profile,.profile-editor):is([data-account-badge="gold"],[data-account-badge="premium"]) .profile-tag{
 color:var(--metal-ink);background:#ffffff50;border-color:#0004;box-shadow:inset 0 1px 0 #fff9;
}
:is(.creator-profile,.profile-editor):is([data-account-badge="gold"],[data-account-badge="premium"]) :is(.btn:not(.profile-uploads-button),select,input:not([type=checkbox]),.genre-choice){
 background:#111923;color:#f3f7fc;border-color:#ffffff70;text-shadow:none;box-sizing:border-box;
}
:is(.creator-profile,.profile-editor):is([data-account-badge="gold"],[data-account-badge="premium"]) .genre-choice{color:#f3f7fc;text-shadow:none}
:is(.creator-profile,.profile-editor):is([data-account-badge="gold"],[data-account-badge="premium"]) :is(.profile-summary,.profile-rating,.profile-staff-contact,details){border-color:#0003}
:is(.creator-profile,.profile-editor):is([data-account-badge="gold"],[data-account-badge="premium"]) .profile-uploads-button::after{color:var(--metal-ink);border-color:var(--metal-muted)}
:is(.creator-profile,.profile-editor):is([data-account-badge="gold"],[data-account-badge="premium"]) :is(button,a,input,select,summary):focus-visible{outline:3px solid #182b49;outline-offset:3px}

:is(.creator-profile,.profile-editor):is([data-account-badge="gold"],[data-account-badge="premium"]) .profile-photo-editor{background:#ffffff30;border-color:#0003}
:is(.creator-profile,.profile-editor):is([data-account-badge="gold"],[data-account-badge="premium"]) :is(.profile-photo-storage,.profile-photo-editor p){color:var(--metal-muted)}

/* Carry the membership material through inset panels and controls. */
:is(.creator-profile,.profile-editor):is([data-account-badge="gold"],[data-account-badge="premium"]) :is(.rating-form,.profile-recordings,.profile-summary,.profile-photo-editor,.profile-staff-contact){padding:14px;margin-top:16px;border:1px solid #00000038;border-radius:12px;background:linear-gradient(155deg,#ffffff50,#ffffff08 45%,#00000012),var(--metal-shine);box-shadow:inset 0 1px 0 #ffffffb0,inset 0 -1px 0 #0003,0 3px 9px #0002;box-sizing:border-box;min-width:0}
:is(.creator-profile,.profile-editor):is([data-account-badge="gold"],[data-account-badge="premium"]) .account-media-card{background:linear-gradient(145deg,#ffffff66,#00000010),var(--metal-shine);border:1px solid #0004;box-shadow:inset 0 1px 0 #fffb,0 4px 10px #0002;color:var(--metal-ink)}
:is(.creator-profile,.profile-editor):is([data-account-badge="gold"],[data-account-badge="premium"]) :is(.btn:not(.profile-uploads-button),select,input:not([type=checkbox]),.genre-choice){background:linear-gradient(180deg,#ffffff80,#ffffff08 48%,#00000016 52%,#ffffff40),var(--metal-shine);border:1px solid #0005;color:var(--metal-ink);box-shadow:inset 0 1px 0 #ffffffdc,inset 0 -1px 0 #0004,0 2px 4px #0002;text-shadow:0 1px 0 #fff6;min-height:44px}
:is(.creator-profile,.profile-editor):is([data-account-badge="gold"],[data-account-badge="premium"]) select option{background:#f2e7ce;color:#211b11}
.creator-profile[data-account-badge="premium"] select option,.profile-editor[data-account-badge="premium"] select option{background:#e2e8ee;color:#14212f}
:is(.creator-profile,.profile-editor):is([data-account-badge="gold"],[data-account-badge="premium"]) .btn:not(.profile-uploads-button):hover{filter:brightness(1.08);border-color:var(--metal-ink)}
:is(.creator-profile,.profile-editor):is([data-account-badge="gold"],[data-account-badge="premium"]) :is(.profile-tag,.profile-role){background:linear-gradient(180deg,#ffffff80,#00000010),var(--metal-shine);border:1px solid #0004;box-shadow:inset 0 1px 0 #fff9;color:var(--metal-ink)}
:is(.creator-profile,.profile-editor):is([data-account-badge="gold"],[data-account-badge="premium"]) .profile-role{display:inline-block;border-radius:6px;padding:5px 9px}
:is(.creator-profile,.profile-editor):is([data-account-badge="gold"],[data-account-badge="premium"]) :is(.account-media-artist,.account-media-description,.account-media-meta,.account-media-text,.genre-choice,.profile-avatar-remove,.profile-photo-storage,.rating-trial){color:var(--metal-ink);text-shadow:0 1px 0 #fff5}
:is(.creator-profile,.profile-editor):is([data-account-badge="gold"],[data-account-badge="premium"]) .genre-choice:has(input:checked){outline:2px solid var(--metal-ink);outline-offset:1px;background:linear-gradient(180deg,#fff8,#0002),var(--metal-shine)}
:is(.creator-profile,.profile-editor):is([data-account-badge="gold"],[data-account-badge="premium"]) :is(input[type=checkbox],input[type=range]){accent-color:var(--metal-ink)}
:is(.creator-profile,.profile-editor):is([data-account-badge="gold"],[data-account-badge="premium"]) .account-media-player{border:1px solid #0004;border-radius:9px;background:#10151d}
:is(.creator-profile,.profile-editor):is([data-account-badge="gold"],[data-account-badge="premium"]) .profile-uploads-button{filter:none}
:is(.creator-profile,.profile-editor):is([data-account-badge="gold"],[data-account-badge="premium"]) .profile-uploads-button:hover{transform:translateY(-1px)}
:is(.creator-profile,.profile-editor):is([data-account-badge="gold"],[data-account-badge="premium"]) :is(.profile-recordings,.profile-summary) [role=status]{color:var(--metal-muted)}
:is(.creator-profile,.profile-editor):is([data-account-badge="gold"],[data-account-badge="premium"]) input::placeholder{color:var(--metal-muted);opacity:1}
:is(.creator-profile,.profile-editor):is([data-account-badge="gold"],[data-account-badge="premium"]) :is(.profile-rating,.rating-form) label{color:var(--metal-ink)}

/* Detailed membership rings belong to the picture, including Owner and Admin. */
.rms-membership-ring{
 --avatar-metal:conic-gradient(from var(--rms-ring-angle,25deg),#073385,#88dcff 12%,#1963d5 23%,#effaff 28%,#12509e 39%,#173aa1 57%,#83dfff 72%,#fff 76%,#1249a6 89%,#073385);
 --avatar-glow:#278cff50;
}
.rms-membership-ring[data-avatar-tier="gold"]{
 --avatar-metal:conic-gradient(from var(--rms-ring-angle,25deg),#704009,#e0b74c 9%,#fff5bb 16%,#a26915 25%,#ffdf77 34%,#fffbed 38%,#b57d22 47%,#69400c 55%,#efc858 65%,#fff8d1 73%,#c08a2c 83%,#ffdf7b 91%,#704009);
 --avatar-glow:#f5bc4355;
}
.rms-membership-ring[data-avatar-tier="premium"]{
 --avatar-metal:conic-gradient(from var(--rms-ring-angle,25deg),#465463,#acbac7 9%,#fff 16%,#77899a 25%,#e7f0f7 34%,#fff 38%,#9baab8 47%,#3d4b5a 55%,#d6e2eb 65%,#fff 73%,#8c9ba9 83%,#edf6ff 91%,#465463);
 --avatar-glow:#d4e9ff45;
}
.rms-membership-ring[data-avatar-tier="admin"]{
 --avatar-metal:conic-gradient(from var(--rms-ring-angle,25deg),#174e73,#9ce7ff 12%,#fff 19%,#548eae 29%,#dcfaff 38%,#276783 51%,#b5f3ff 65%,#fff 75%,#458daa 88%,#174e73);
 --avatar-glow:#79e5ff65;
}
.rms-membership-ring[data-avatar-tier="owner"]{
 --avatar-metal:conic-gradient(from var(--rms-ring-angle,20deg),#06172f,#1167ef 12%,#b5e4ff 18%,#fff 26%,#c5d4e7 34%,#fff 40%,#ff848f 48%,#c1132b 57%,#ff405a 66%,#330b21 73%,#2867d8 84%,#e3f8ff 92%,#06172f);
 --avatar-glow:#9d94ff65;
}
.member-avatar.rms-membership-ring,.profile-avatar-preview.rms-membership-ring{
 box-sizing:border-box;flex-shrink:0;padding:2px;border:6px solid transparent!important;border-radius:50%;
 background:linear-gradient(145deg,#192a40,#080f1c) padding-box,var(--avatar-metal) border-box!important;
 box-shadow:0 0 0 1px #0a0c12,0 0 0 2px #ffffff65,0 3px 9px #0009,0 0 20px var(--avatar-glow),inset 0 0 0 1px #ffffff90!important;
 outline:0;color:#edf7ff;
}
.member-avatar.rms-membership-ring img,.profile-avatar-preview.rms-membership-ring img{border-radius:50%;width:100%;height:100%;object-fit:cover;min-width:0;min-height:0}
.profile-avatar-preview.rms-membership-ring{border-width:8px!important;padding:3px}


/* Distinct directory and editor backings, selected by the verified server badge. */
:is(.creator-profile,.profile-editor)[data-account-badge="owner"]{
 --tier-edge:#839abb;--tier-light:#d8eaff;--tier-glow:#397dff40;
 --tier-panel:linear-gradient(155deg,#ffffff15,#ffffff03 35%,#03050bd9 65%),#0b101a;
 position:relative;isolation:isolate;overflow:hidden;color:#edf4ff;border:1px solid var(--tier-edge);
 background:radial-gradient(ellipse at 0% 10%,#dd173c55,transparent 48%),radial-gradient(ellipse at 100% 85%,#1269ff66,transparent 50%),linear-gradient(125deg,#02040a 5%,#333c49 22%,#080c13 34%,#010307 58%,#202936 78%,#05080e);
 box-shadow:inset 0 1px 0 #ffffff80,inset 0 -2px 0 #000,0 12px 35px #0008,0 0 22px #507ee51a;
}
:is(.creator-profile,.profile-editor)[data-account-badge="owner"]::before{
 content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;border-radius:inherit;
 background:linear-gradient(115deg,transparent 10%,#ff244c30 18%,transparent 23%,transparent 45%,#ffffff24 49%,transparent 53%,transparent 74%,#368bff38 80%,transparent 88%);
 background-size:180% 100%;animation:rms-owner-lights 16s ease-in-out infinite alternate;
}
:is(.creator-profile,.profile-editor)[data-account-badge="admin"]{
 --tier-edge:#87ddf1;--tier-light:#b6f3ff;--tier-glow:#51d5ff40;
 --tier-panel:linear-gradient(145deg,#b5f1ff16,#062335b3 65%),#0b1b2b;
 position:relative;isolation:isolate;overflow:hidden;color:#e6f8ff;border:1px solid var(--tier-edge);
 background:radial-gradient(ellipse at 95% 0%,#80e8ff45,transparent 52%),linear-gradient(135deg,#071321,#18435b 40%,#0b2033 60%,#030c17);
 box-shadow:inset 0 1px 0 #d9faff99,inset 0 -2px 0 #0008,0 12px 35px #0006,0 0 24px #56dcff20;
}
:is(.creator-profile,.profile-editor)[data-account-badge="admin"]::before{
 content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;border-radius:inherit;
 background:repeating-linear-gradient(120deg,transparent 0px,transparent 72px,#97eeff0d 73px,#97eeff0d 74px,transparent 75px,transparent 145px),radial-gradient(ellipse at 20% 35%,#72e9ff28,transparent 50%);
 background-size:200% 200%;animation:rms-admin-aurora 18s ease-in-out infinite alternate;
}
:is(.creator-profile,.profile-editor):is([data-account-badge="owner"],[data-account-badge="admin"]) :is(.rating-form,.profile-recordings,.profile-summary,.profile-photo-editor,.profile-staff-contact){
 padding:14px;margin-top:16px;box-sizing:border-box;min-width:0;border:1px solid #b0d6ff38;border-radius:12px;background:var(--tier-panel);box-shadow:inset 0 1px 0 #ffffff26,0 4px 12px #0004;
}
:is(.creator-profile,.profile-editor):is([data-account-badge="owner"],[data-account-badge="admin"]) :is(h3,h4,.profile-uploads-title){color:#f3f8ff;text-shadow:0 2px 5px #0009}
:is(.creator-profile,.profile-editor):is([data-account-badge="owner"],[data-account-badge="admin"]) :is(.profile-role,.profile-score,summary,.profile-open,.profile-uploads-button::after){color:var(--tier-light)}
:is(.creator-profile,.profile-editor):is([data-account-badge="owner"],[data-account-badge="admin"]) :is(.profile-note,.profile-uploads-membership,.rating-trial,.profile-photo-storage,small){color:#bfd2e5}
:is(.creator-profile,.profile-editor):is([data-account-badge="owner"],[data-account-badge="admin"]) :is(.profile-tag,.genre-choice,.account-media-card){
 color:#e3f1ff;border-color:#a2d0ef55;background:var(--tier-panel);box-shadow:inset 0 1px 0 #ffffff26;
}
:is(.creator-profile,.profile-editor):is([data-account-badge="owner"],[data-account-badge="admin"]) :is(input:not([type=checkbox]),select,.btn:not(.profile-uploads-button)){
 background:linear-gradient(#ffffff10,#ffffff00),#0b1625;color:#eef7ff;border:1px solid #90b3d580;box-sizing:border-box;min-height:44px;
}
:is(.creator-profile,.profile-editor):is([data-account-badge="owner"],[data-account-badge="admin"]) select option{color:#eef7ff;background:#0b1625}
:is(.creator-profile,.profile-editor):is([data-account-badge="owner"],[data-account-badge="admin"]) :is(a,button,input,select,summary):focus-visible{outline:3px solid var(--tier-light);outline-offset:3px}
:is(.creator-profile,.profile-editor):is([data-account-badge="owner"],[data-account-badge="admin"]) .btn:not(.profile-uploads-button):hover{border-color:var(--tier-edge);box-shadow:0 0 14px var(--tier-glow)}
:is(.creator-profile,.profile-editor)[data-account-badge="premium"]{
 background:repeating-linear-gradient(0deg,transparent 0px,transparent 2px,#ffffff28 3px,#0000000a 4px),radial-gradient(ellipse at 8% 0%,#fff9,transparent 42%),var(--metal-shine);
 box-shadow:inset 0 1px 0 #fff,inset 0 -2px 0 #526174,0 12px 32px #0005,0 0 20px #cce6ff18;
}
:is(.creator-profile,.profile-editor)[data-account-badge="free"]{
 border-color:#374e6a;background:radial-gradient(ellipse at 100% 0%,#20477650,transparent 65%),linear-gradient(145deg,#152335,#0c131f 70%);box-shadow:inset 0 1px 0 #ffffff12,0 8px 22px #0003;
}
@keyframes rms-owner-lights{from{background-position:0% 50%}to{background-position:100% 50%}}
@keyframes rms-admin-aurora{from{background-position:0% 0%;opacity:.55}to{background-position:100% 70%;opacity:1}}
@media(prefers-reduced-motion:reduce){
 :is(.creator-profile,.profile-editor):is([data-account-badge="owner"],[data-account-badge="admin"])::before{animation:none;background-position:50% 50%}
}

/* Aurora ice and slowly travelling metallic highlights. Content stays still. */
:is(.creator-profile,.profile-editor)[data-account-badge="admin"]{
 --tier-panel:linear-gradient(145deg,#c0faff1f,#061b35e8 70%),#0a1b30;
 border-color:#adf3ff;
 background:radial-gradient(ellipse at 10% 15%,#3bdfff52,transparent 55%),radial-gradient(ellipse at 90% 75%,#8770ff38,transparent 55%),linear-gradient(135deg,#071326,#174760 40%,#0a213c 70%,#060e23);
 box-shadow:inset 0 1px 0 #e5ffffbb,inset 0 0 24px #83e8ff20,0 12px 35px #0006,0 0 28px #56dcff45;
}
:is(.creator-profile,.profile-editor)[data-account-badge="admin"]::before{
 inset:-15%;
 background:radial-gradient(ellipse at 15% 30%,#7effed60,transparent 42%),radial-gradient(ellipse at 78% 70%,#8875ff55,transparent 40%),linear-gradient(120deg,transparent 25%,#8deaff38 40%,#efffff40 44%,transparent 52%,#63baff30 70%,transparent 80%);
 background-size:160% 160%;animation:rms-ice-magic 14s ease-in-out infinite alternate;
}
:is(.creator-profile,.profile-editor)[data-account-badge="admin"]::after{
 content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;border-radius:inherit;
 background:radial-gradient(circle at 12% 18%,#fff 0 1px,#a5f5ff70 2px,transparent 7px),radial-gradient(circle at 83% 12%,#fff 0 1px,#b5eaff60 2px,transparent 6px),radial-gradient(circle at 68% 78%,#fff 0 1px,#97eeff70 2px,transparent 8px),radial-gradient(circle at 24% 85%,#c7faff 0 1px,transparent 5px),radial-gradient(circle at 93% 46%,#fff 0 1px,transparent 5px);
 animation:rms-ice-stars 7s ease-in-out infinite alternate;
}
:is(.creator-profile,.profile-editor):is([data-account-badge="premium"],[data-account-badge="gold"]){overflow:hidden}
:is(.creator-profile,.profile-editor):is([data-account-badge="premium"],[data-account-badge="gold"])::before{
 background:linear-gradient(115deg,transparent 15%,#ffffff00 30%,#ffffff45 44%,#ffffff80 48%,#ffffff20 53%,transparent 65%);
 background-size:250% 100%;animation:rms-metal-glimmer 12s ease-in-out infinite alternate;
}
:is(.creator-profile,.profile-editor)[data-account-badge="gold"]::before{animation-duration:15s;animation-delay:-4s}
@keyframes rms-ice-magic{
 from{background-position:0% 0%;transform:translate(-2%,-1%) rotate(-3deg);opacity:.65}
 to{background-position:100% 70%;transform:translate(2%,1%) rotate(3deg);opacity:1}
}
@keyframes rms-ice-stars{from{opacity:.25;transform:translateY(3px)}to{opacity:.9;transform:translateY(-3px)}}
@keyframes rms-metal-glimmer{from{background-position:100% 50%}to{background-position:0% 50%}}
@media(prefers-reduced-motion:reduce){
 :is(.creator-profile,.profile-editor):is([data-account-badge="owner"],[data-account-badge="admin"],[data-account-badge="premium"],[data-account-badge="gold"])::before,
 :is(.creator-profile,.profile-editor)[data-account-badge="admin"]::after{animation:none;transform:none;opacity:.7;background-position:50% 50%}
}


/* Owner portrait and badge: quiet light radiates out, then disappears. */
.rms-membership-ring[data-avatar-tier="owner"]{position:relative;isolation:isolate;overflow:hidden}
.rms-membership-ring[data-avatar-tier="owner"]::before,
.rms-membership-ring[data-avatar-tier="owner"]::after{content:none}
.rms-membership-ring[data-avatar-tier="owner"] img{position:relative;z-index:1}
.rms-owner-inner-wave{position:absolute;inset:3px;width:calc(100% - 6px);height:calc(100% - 6px);border-radius:50%;z-index:2;pointer-events:none}
@media(prefers-reduced-motion:reduce){.rms-owner-inner-wave{display:none}}
.profile-uploads-badge-owner{
 position:relative;isolation:isolate;overflow:visible;margin:24px 30px;
 filter:drop-shadow(0 0 5px rgba(171,222,255,.24));
}
.profile-uploads-badge-owner::before,
.profile-uploads-badge-owner::after{
 content:"";position:absolute;inset:-5px;z-index:-1;pointer-events:none;border-radius:50%;
 border:1px solid rgba(190,230,255,.24);
 background:radial-gradient(circle,rgba(174,224,255,.12),rgba(105,185,255,.07) 48%,transparent 72%);
 box-shadow:0 0 10px rgba(132,208,255,.12);
 animation:rms-owner-soft-radiance 8s ease-out infinite;
}
.profile-uploads-badge-owner::after{animation-delay:-4s}
@keyframes rms-owner-soft-radiance{
 0%{transform:scale(.96);opacity:0}
 15%{opacity:.42}
 55%{opacity:.16}
 100%{transform:scale(1.48);opacity:0}
}
@media(prefers-reduced-motion:reduce){
 .rms-membership-ring[data-avatar-tier="owner"]::before,
 .profile-uploads-badge-owner::before{animation:none;transform:scale(1.02);opacity:.22}
 .rms-membership-ring[data-avatar-tier="owner"]::after,
 .profile-uploads-badge-owner::after{animation:none;display:none}
}

/* The metallic finish turns independently of the portrait and its inner water. */
@property --rms-ring-angle{syntax:'<angle>';inherits:false;initial-value:25deg}
.rms-membership-ring{
 animation:rms-avatar-metal-turn 28s linear infinite;
}
.rms-membership-ring[data-avatar-tier="owner"]{animation-duration:24s}
.rms-membership-ring[data-avatar-tier="admin"]{animation-duration:30s;animation-direction:normal}
.rms-membership-ring[data-avatar-tier="gold"]{animation-duration:34s}
.rms-membership-ring[data-avatar-tier="premium"]{animation-duration:32s;animation-direction:normal}
.rms-membership-ring[data-avatar-tier="free"]{animation-duration:40s}
.member-avatar.rms-membership-ring,.profile-avatar-preview.rms-membership-ring{
 background:linear-gradient(145deg,#192a40,#080f1c) padding-box,
 conic-gradient(from var(--rms-ring-angle),transparent 0deg,transparent 42deg,#ffffff90 49deg,transparent 59deg,transparent 212deg,#ffffff55 223deg,transparent 235deg) border-box,
 var(--avatar-metal) border-box!important;
}
@keyframes rms-avatar-metal-turn{from{--rms-ring-angle:25deg}to{--rms-ring-angle:385deg}}

/* A fine lit upper bevel and shaded lower lip lift the complete profile. */
:is(.creator-profile,.profile-editor)[data-account-badge]{
 border-width:1px;border-style:solid;
 border-color:var(--tier-edge,var(--metal-edge,#4a6380));
 box-shadow:
 inset 0 2px 1px #ffffff70,
 inset 2px 0 1px #ffffff24,
 inset 0 -3px 2px #00000080,
 inset -2px 0 1px #00000050,
 0 1px 0 #ffffff20,
 0 5px 0 #030812,
 0 7px 0 #02050a80,
 0 16px 28px #00000055,
 0 0 16px var(--tier-glow,#9eb9d910);
}
@media(prefers-reduced-motion:reduce){.rms-membership-ring{animation:none}}

/* Refined smoked-metal profile family, approved October 2026. */
@property --rms-profile-angle{syntax:'<angle>';inherits:false;initial-value:20deg}
:is(.creator-profile,.profile-editor)[data-account-badge][data-account-badge]{
 --tier-edge:#86909c;--tier-light:#edf0f4;--tier-glow:#ffffff18;
 --profile-perimeter:conic-gradient(from var(--rms-profile-angle),#b82e40,#f0f2f5 30%,#3277c9 65%,#b82e40);
 --metal-ink:#edf0f4;--metal-muted:#b9bec7;
 --tier-panel:linear-gradient(155deg,#ffffff09,#ffffff02),#101115;
 position:relative;isolation:isolate;overflow:hidden;min-width:0;box-sizing:border-box;
 border:3px solid transparent;border-radius:18px;color:#edf0f4;
 background:linear-gradient(130deg,#25272b 0%,#141519 30%,#0b0c0f 70%,#17191d) padding-box,var(--profile-perimeter) border-box;
 box-shadow:inset 0 1px 0 #ffffff45,inset 0 -2px 1px #000,0 4px 0 #030405,0 14px 28px #0008,0 0 16px var(--tier-glow);
 animation:rms-profile-perimeter 32s linear infinite;
}
:is(.creator-profile,.profile-editor)[data-account-badge="premium"][data-account-badge]{
 --tier-edge:#bac4cf;--tier-light:#e6edf5;--tier-glow:#e5efff18;
 --profile-perimeter:conic-gradient(from var(--rms-profile-angle),#57606b,#c0c9d3 15%,#fff 23%,#626d79 40%,#dbe2e9 65%,#fff 73%,#57606b);
}
:is(.creator-profile,.profile-editor)[data-account-badge="gold"][data-account-badge]{
 --tier-edge:#b79b69;--tier-light:#e3cca2;--tier-glow:#c9a96b20;
 --profile-perimeter:conic-gradient(from var(--rms-profile-angle),#675134,#b99b69 15%,#f0dfbe 23%,#85704d 40%,#c4ab7d 65%,#f3e6cb 73%,#675134);
}
:is(.creator-profile,.profile-editor)[data-account-badge="admin"][data-account-badge]{
 --tier-edge:#d4545c;--tier-light:#ffbdc2;--tier-glow:#f52b4540;
 --profile-perimeter:conic-gradient(from var(--rms-profile-angle),#61121d,#e5354e 15%,#ffd0d4 23%,#981d31 40%,#ef3b54 65%,#ffbcc5 73%,#61121d);
}
:is(.creator-profile,.profile-editor)[data-account-badge="owner"][data-account-badge]{
 --tier-edge:#d9dde3;--tier-light:#fff;--tier-glow:#eef5ff30;
 --profile-perimeter:conic-gradient(from var(--rms-profile-angle),#16181b,#747a83 15%,#fff 23%,#373b42 40%,#c3cbd5 65%,#fff 73%,#16181b);
}
:is(.creator-profile,.profile-editor)[data-account-badge][data-account-badge]::before{
 content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;border-radius:inherit;
 background:linear-gradient(115deg,transparent 25%,#ffffff06 40%,#ffffff12 48%,transparent 60%);
 background-size:240% 100%;transform:none;opacity:.8;
 animation:rms-metal-glimmer 18s ease-in-out infinite alternate;
}
:is(.creator-profile,.profile-editor)[data-account-badge][data-account-badge]::after{content:none}
:is(.creator-profile,.profile-editor)[data-account-badge][data-account-badge] :is(h3,h4,.profile-uploads-title){
 color:#f2f1ef;text-shadow:none;font-weight:600;letter-spacing:.025em;
}
:is(.creator-profile,.profile-editor)[data-account-badge][data-account-badge] :is(.profile-role,.profile-score,summary,.profile-open,.profile-uploads-button::after){color:var(--tier-light);text-shadow:none}
:is(.creator-profile,.profile-editor)[data-account-badge][data-account-badge] :is(.profile-note,.profile-uploads-membership,.rating-trial,.profile-photo-storage,small,.account-media-artist,.account-media-description,.account-media-meta,.account-media-text,.profile-avatar-remove,label,legend,[role=status]){color:#bac0ca;text-shadow:none}
:is(.creator-profile,.profile-editor)[data-account-badge][data-account-badge] :is(.rating-form,.profile-recordings,.profile-summary,.profile-photo-editor,.profile-staff-contact,.account-media-card){
 background:var(--tier-panel);border:1px solid #ffffff1c;color:#edf0f4;box-shadow:inset 0 1px 0 #ffffff0c,0 3px 9px #0003;
}
:is(.creator-profile,.profile-editor)[data-account-badge][data-account-badge] :is(.profile-tag,.profile-role,.genre-choice){
 background:#ffffff06;border:1px solid #ffffff26;box-shadow:inset 0 1px 0 #ffffff0b;color:var(--tier-light);text-shadow:none;
}
:is(.creator-profile,.profile-editor)[data-account-badge][data-account-badge] :is(.btn:not(.profile-uploads-button),select,input:not([type=checkbox])){
 background:linear-gradient(#ffffff0a,#ffffff00),#16181d;color:#f1f2f5;border:1px solid #ffffff40;box-shadow:inset 0 1px 0 #ffffff14,0 3px 7px #0004;text-shadow:none;min-height:44px;box-sizing:border-box;
}
:is(.creator-profile,.profile-editor)[data-account-badge][data-account-badge] select option{background:#16181d;color:#f1f2f5}
:is(.creator-profile,.profile-editor)[data-account-badge][data-account-badge] input::placeholder{color:#aeb6c2}
:is(.creator-profile,.profile-editor)[data-account-badge][data-account-badge] :is(button,a,input,select,summary):focus-visible{outline:2px solid var(--tier-light);outline-offset:4px}
:is(.creator-profile,.profile-editor)[data-account-badge][data-account-badge] .genre-choice:has(input:checked){background:#ffffff14;outline:1px solid var(--tier-edge)}
:is(.creator-profile,.profile-editor)[data-account-badge][data-account-badge] :is(input[type=checkbox],input[type=range]){accent-color:var(--tier-edge)}
.rms-membership-ring[data-avatar-tier="free"]{
 --avatar-metal:conic-gradient(from var(--rms-ring-angle),#ac263c,#f4f4f5 30%,#246ac1 65%,#ac263c);--avatar-glow:#7a9cc32b;
}
.rms-membership-ring[data-avatar-tier="gold"]{
 --avatar-metal:conic-gradient(from var(--rms-ring-angle),#675134,#b99b69 15%,#f0dfbe 23%,#85704d 40%,#c4ab7d 65%,#f3e6cb 73%,#675134);--avatar-glow:#c9a96b30;
}
.rms-membership-ring[data-avatar-tier="admin"]{
 --avatar-metal:conic-gradient(from var(--rms-ring-angle),#61121d,#e5354e 15%,#ffd0d4 23%,#981d31 40%,#ef3b54 65%,#ffbcc5 73%,#61121d);--avatar-glow:#ff334d60;
}
.rms-membership-ring[data-avatar-tier="owner"]{
 --avatar-metal:conic-gradient(from var(--rms-ring-angle),#16181b,#747a83 15%,#fff 23%,#373b42 40%,#c3cbd5 65%,#fff 73%,#16181b);--avatar-glow:#f1f6ff70;
}
@keyframes rms-profile-perimeter{from{--rms-profile-angle:20deg}to{--rms-profile-angle:380deg}}
@media(min-width:760px){
 .profile-cards{grid-template-columns:minmax(0,1fr);gap:24px}
 .creator-profile{display:grid;grid-template-columns:116px minmax(0,1fr)}
 .creator-profile>.member-avatar{width:84px;height:84px;margin:26px 0 0 22px}
 .creator-profile>.profile-body{padding:22px}
}
@media(prefers-reduced-motion:reduce){
 :is(.creator-profile,.profile-editor)[data-account-badge][data-account-badge],
 :is(.creator-profile,.profile-editor)[data-account-badge][data-account-badge]::before{animation:none}
}

/* Owner-only obsidian eclipse: luminous arcs, distinct from Premium silver. */
.member-avatar.rms-membership-ring[data-avatar-tier="owner"],
.profile-avatar-preview.rms-membership-ring[data-avatar-tier="owner"]{
 --avatar-glow:#ffffff45;
 position:relative;isolation:isolate;overflow:visible;
 border-color:transparent!important;
 background:linear-gradient(145deg,#08090b,#020203) padding-box,
 conic-gradient(from var(--rms-ring-angle),#08090c 0deg 32deg,#fbfdff 34deg 45deg,#333940 48deg 54deg,#08090c 58deg 188deg,#fff 191deg 203deg,#333940 206deg 212deg,#08090c 216deg 360deg) border-box!important;
 box-shadow:0 0 0 1px #030304,0 0 0 2px #ffffff28,0 4px 10px #000c,0 0 18px #ffffff30,inset 0 0 0 1px #ffffff45!important;
 animation:rms-avatar-metal-turn 36s linear infinite;
}
.rms-membership-ring[data-avatar-tier="owner"]::before{
 content:"";position:absolute;inset:-9px;border:1px solid #ffffff28;border-radius:50%;
 background:none;box-shadow:0 0 12px #ffffff20,inset 0 0 8px #ffffff10;
 pointer-events:none;z-index:0;animation:rms-owner-eclipse-breathe 7s ease-in-out infinite;
}
.rms-membership-ring[data-avatar-tier="owner"]::after{
 content:"";position:absolute;inset:-5px;border:2px solid transparent;border-top-color:#ffffffd9;border-bottom-color:#ffffff50;border-radius:50%;
 background:none;box-shadow:none;pointer-events:none;z-index:0;
 filter:drop-shadow(0 0 3px #ffffff70);animation:rms-owner-eclipse-orbit 24s linear infinite;
}
@keyframes rms-owner-eclipse-orbit{from{transform:rotate(20deg)}to{transform:rotate(380deg)}}
@keyframes rms-owner-eclipse-breathe{0%,100%{opacity:.4;transform:scale(1)}50%{opacity:.85;transform:scale(1.025)}}
@media(prefers-reduced-motion:reduce){
 .member-avatar.rms-membership-ring[data-avatar-tier="owner"],
 .profile-avatar-preview.rms-membership-ring[data-avatar-tier="owner"],
 .rms-membership-ring[data-avatar-tier="owner"]::before,
 .rms-membership-ring[data-avatar-tier="owner"]::after{animation:none}
 .rms-membership-ring[data-avatar-tier="owner"]::after{display:block;transform:rotate(20deg)}
}

/* Owner window: an obsidian eclipse surround, separate from membership metals. */
:is(.creator-profile,.profile-editor)[data-account-badge="owner"][data-account-badge]{
 --tier-edge:#f0f3f7;--tier-light:#fff;--tier-glow:#ffffff24;
 border:3px solid #08090c;border-radius:24px;
 background:radial-gradient(ellipse at 12% 0%,#ffffff12,transparent 48%),linear-gradient(145deg,#292b30 0%,#090a0d 24%,#020203 66%,#111216 100%);
 box-shadow:inset 0 1px 0 #ffffff70,inset 0 -3px 2px #000,0 0 0 1px #ffffff38,0 5px 0 #000,0 17px 34px #000a,0 0 24px #ffffff20;
 animation:rms-profile-perimeter 38s linear infinite;
}
:is(.creator-profile,.profile-editor)[data-account-badge="owner"][data-account-badge]::before{
 content:"";position:absolute;inset:0;z-index:0;border-radius:21px;padding:3px;
 background:conic-gradient(from var(--rms-profile-angle),transparent 0deg 24deg,#ffffff30 29deg,#fff 34deg 43deg,#ffffff20 50deg,transparent 58deg 191deg,#ffffff40 197deg,#fff 204deg 216deg,#ffffff20 223deg,transparent 232deg 360deg);
 background-size:100% 100%;opacity:1;transform:none;pointer-events:none;
 -webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);
 -webkit-mask-composite:xor;mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);mask-composite:exclude;
 animation:rms-profile-perimeter 38s linear infinite;
}
:is(.creator-profile,.profile-editor)[data-account-badge="owner"][data-account-badge]::after{
 content:"";position:absolute;inset:7px;z-index:0;border:1px solid #ffffff28;border-radius:15px;
 background:none;box-shadow:0 0 7px #ffffff0d,inset 0 0 7px #ffffff08;
 opacity:1;transform:none;pointer-events:none;animation:rms-owner-window-halo 9s ease-in-out infinite;
}
@keyframes rms-owner-window-halo{0%,100%{border-color:#ffffff1c;box-shadow:0 0 7px #ffffff0d}50%{border-color:#ffffff50;box-shadow:0 0 14px #ffffff24}}
@media(prefers-reduced-motion:reduce){
 :is(.creator-profile,.profile-editor)[data-account-badge="owner"][data-account-badge],
 :is(.creator-profile,.profile-editor)[data-account-badge="owner"][data-account-badge]::before,
 :is(.creator-profile,.profile-editor)[data-account-badge="owner"][data-account-badge]::after{animation:none}
}

/* Smoked Gold concept: brushed warm metal, generous portrait and quiet controls. */
:is(.creator-profile,.profile-editor)[data-account-badge="gold"][data-account-badge]{
 --tier-edge:#b99b70;--tier-light:#f1d6a6;--tier-glow:#b9925520;
 --metal-ink:#faf1df;--metal-muted:#dccbb1;
 --tier-panel:linear-gradient(145deg,#34291f,#1d1914);
 border:1px solid #b99b70;border-radius:20px;
 background:repeating-linear-gradient(0deg,#ffffff04 0 1px,transparent 1px 3px),
 radial-gradient(ellipse at 42% 0%,#c8a16b50,transparent 65%),
 linear-gradient(155deg,#795e3d 0%,#4c3926 38%,#2b2219 75%,#36291d 100%);
 box-shadow:inset 0 1px 0 #ffe5b9a0,inset 0 -2px 1px #0008,0 4px 0 #140f0a,0 18px 36px #0007;
 animation:none;
}
:is(.creator-profile,.profile-editor)[data-account-badge="gold"][data-account-badge]::before{
 background:linear-gradient(115deg,transparent 30%,#fff1cf0c 48%,transparent 64%);
 opacity:.65;animation:rms-metal-glimmer 24s ease-in-out infinite alternate;
}
:is(.creator-profile,.profile-editor)[data-account-badge="gold"][data-account-badge] :is(h3,h4,.profile-uploads-title){color:#fff5e5;letter-spacing:-.02em;text-shadow:0 1px 2px #0004}
:is(.creator-profile,.profile-editor)[data-account-badge="gold"][data-account-badge] :is(.profile-note,.profile-score,.profile-open,.rating-trial,.profile-photo-storage,small,label,legend,[role=status]){color:#e1d3bf}
:is(.creator-profile,.profile-editor)[data-account-badge="gold"][data-account-badge] :is(.profile-tag,.genre-choice){
 color:#f5dfb8;border:1px solid #af8c59;background:linear-gradient(#3b2e20,#211b15);
 border-radius:999px;box-shadow:inset 0 1px 0 #ffebc230,0 2px 4px #0005;
}
:is(.creator-profile,.profile-editor)[data-account-badge="gold"][data-account-badge] :is(.btn:not(.profile-uploads-button),select,input:not([type=checkbox])){
 color:#f6e5ca;border-color:#b99865;background:linear-gradient(155deg,#392d20,#171410);
 box-shadow:inset 0 1px 0 #f8ddaa40,0 3px 7px #0005;
}
.profile-cards .creator-profile[data-account-badge="gold"]{
 display:grid;grid-template-columns:minmax(145px,.8fr) minmax(0,1.7fr);gap:32px;align-items:center;padding:32px;
}
.creator-profile[data-account-badge="gold"]>.profile-portrait{display:flex;flex-direction:column;align-items:center;gap:18px;min-width:0;padding:6px}
.creator-profile[data-account-badge="gold"] .profile-portrait>.member-avatar{
 width:100%;height:auto;aspect-ratio:1;max-width:230px;margin:0;font-size:48px;
}
.profile-membership-label{
 display:block;max-width:100%;padding:7px 15px;border:1px solid #b99865;border-radius:9px;
 background:linear-gradient(#8a6c4755,#49342180);color:#f4d8a5;text-transform:uppercase;
 font-size:12px;letter-spacing:.18em;line-height:1.4;text-align:center;
 box-shadow:inset 0 1px 0 #ffe6b740,0 3px 6px #0004;
}
.profile-cards .creator-profile[data-account-badge="gold"]>.profile-body{
 padding:0;display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);column-gap:14px;row-gap:14px;
}
.creator-profile[data-account-badge="gold"] .profile-body>h3{grid-column:1/-1;grid-row:1;font-size:clamp(25px,3vw,38px);line-height:1.15;margin:0;overflow-wrap:anywhere}
.creator-profile[data-account-badge="gold"] .profile-body>.profile-role{grid-column:1/-1;grid-row:2;padding:0;background:none;border:0;box-shadow:none;letter-spacing:.18em;font-size:12px}
.creator-profile[data-account-badge="gold"] .profile-body>.profile-tags{grid-column:1/-1;grid-row:3;margin:0;gap:9px}
.creator-profile[data-account-badge="gold"] .profile-tag{padding:8px 14px}
.creator-profile[data-account-badge="gold"] .profile-body>:is(.profile-score,.profile-open,.profile-note){grid-column:1/-1;margin:0;text-align:left}
.creator-profile[data-account-badge="gold"] .profile-body>.rating-form{grid-column:1/-1;min-width:0;margin:0;padding:12px}
.creator-profile[data-account-badge="gold"] .profile-body>.dm-profile-button{grid-column:2;grid-row:7;margin:0;width:100%;white-space:normal}
.creator-profile[data-account-badge="gold"] .profile-recordings{display:contents}
.creator-profile[data-account-badge="gold"] .profile-recordings>.profile-uploads-button{
 grid-column:1;grid-row:7;align-self:stretch;display:flex;align-items:center;justify-content:center;
 width:100%;margin:0;padding:12px 16px!important;min-height:48px;border:1px solid #c4a16c!important;
 border-radius:12px!important;background:linear-gradient(155deg,#362b1e,#171410)!important;
 box-shadow:inset 0 1px 0 #ffe7bf40,0 3px 7px #0005!important;
}
.creator-profile[data-account-badge="gold"] .profile-uploads-badge{display:none}
.creator-profile[data-account-badge="gold"] .profile-uploads-title{font:600 15px/1.4 Inter,system-ui,sans-serif;letter-spacing:0}
.creator-profile[data-account-badge="gold"] .profile-uploads-membership,
.creator-profile[data-account-badge="gold"] .profile-uploads-button::after{display:none}
.creator-profile[data-account-badge="gold"] .profile-recordings>:is(.profile-note,.account-media-grid){grid-column:1/-1;margin:0;min-width:0}
.creator-profile[data-account-badge="gold"] .profile-recordings>.profile-note{grid-row:8}
.creator-profile[data-account-badge="gold"] .profile-recordings>.profile-note:empty{display:none}
.creator-profile[data-account-badge="gold"] .profile-recordings>.account-media-grid{grid-row:9}
@media(max-width:640px){
 .profile-cards .creator-profile[data-account-badge="gold"]{grid-template-columns:minmax(0,1fr);padding:24px 20px;gap:24px}
 .creator-profile[data-account-badge="gold"]>.profile-portrait{max-width:176px;margin:auto;width:100%}
 .creator-profile[data-account-badge="gold"] .profile-body>h3{text-align:center}
 .creator-profile[data-account-badge="gold"] .profile-body>.profile-role{text-align:center}
 .creator-profile[data-account-badge="gold"] .profile-body>.profile-tags{justify-content:center}
}
@media(prefers-reduced-motion:reduce){
 :is(.creator-profile,.profile-editor)[data-account-badge="gold"][data-account-badge]::before{animation:none}
}

.creator-profile[data-account-badge="gold"] .profile-body>.rating-form{grid-row:6}

.creator-profile[data-account-badge="gold"] .profile-body>.dm-profile-button{padding:12px 10px;min-width:0}
@media(max-width:640px){.profile-cards .creator-profile[data-account-badge="gold"]>.profile-body{grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:10px}}


/* Gold alone uses a restrained dark finish; every tier keeps its animated frame. */
:is(.creator-profile,.profile-editor)[data-account-badge="gold"][data-account-badge]{
 --tier-edge:#b99b69;--tier-light:#e3cca2;--tier-glow:#c9a96b20;
 --tier-panel:linear-gradient(145deg,#27231d,#141414);
 --profile-perimeter:conic-gradient(from var(--rms-profile-angle),#675134,#b99b69 15%,#f0dfbe 23%,#85704d 40%,#c4ab7d 65%,#f3e6cb 73%,#675134);
 border:3px solid transparent;
 background:radial-gradient(ellipse at 0% 0%,#bd965e16,transparent 70%) padding-box,linear-gradient(145deg,#24221e,#111214 80%) padding-box,var(--profile-perimeter) border-box;
 box-shadow:inset 0 1px 0 #ffffff35,inset 0 -2px 1px #000,0 4px 0 #030405,0 14px 28px #0007;
 animation:rms-profile-perimeter 32s linear infinite;
}
:is(.creator-profile,.profile-editor)[data-account-badge="gold"][data-account-badge] :is(.profile-tag,.genre-choice){
 color:#dfd3bd;background:#ffffff06;border-color:#b99b6945;box-shadow:none;
}
:is(.creator-profile,.profile-editor)[data-account-badge="gold"][data-account-badge] :is(.btn:not(.profile-uploads-button),select,input:not([type=checkbox])){
 color:#ece2d2;background:linear-gradient(#ffffff06,#ffffff00),#17181b;border-color:#b99b6960;box-shadow:inset 0 1px 0 #ffffff14;
}
.creator-profile[data-account-badge="gold"] .profile-recordings>.profile-uploads-button{
 background:linear-gradient(#ffffff06,#ffffff00),#17181b!important;border-color:#b99b6980!important;box-shadow:inset 0 1px 0 #ffffff14!important;
}
.creator-profile[data-account-badge="gold"] .profile-membership-label{background:#b9965710;border-color:#b99b6955;box-shadow:none;color:#e3cca2}
@media(prefers-reduced-motion:reduce){
 :is(.creator-profile,.profile-editor)[data-account-badge="gold"][data-account-badge]{animation:none}
}


/* Portraits stay above decorative surfaces, including the circular editor. */
.member-avatar>img,.profile-avatar-preview>img{position:relative;z-index:2;grid-area:1/1;opacity:1;visibility:visible}
.rms-owner-inner-wave{z-index:3}
:is(.creator-profile,.profile-editor)[data-account-badge="gold"]{--glint-rgb:244,213,151}
:is(.creator-profile,.profile-editor)[data-account-badge="premium"]{--glint-rgb:218,234,255}
:is(.creator-profile,.profile-editor):is([data-account-badge="gold"],[data-account-badge="premium"]) :is(.profile-photo-editor,.profile-summary,.rating-form,.account-media-card){position:relative}
.rms-premium-sparkle{
 position:absolute;width:16px;height:16px;pointer-events:none;z-index:4;
 opacity:0;transform:translate(-50%,-50%) scale(var(--glint-size,1));
 background:radial-gradient(circle,rgba(var(--glint-rgb),.85) 0 .65px,rgba(var(--glint-rgb),.16) 1.6px,transparent 7px);
 animation:rms-refined-glint 12s ease-in-out infinite;
}
.rms-premium-sparkle::before,.rms-premium-sparkle::after{
 content:"";position:absolute;inset:7.5px 3px;
 background:linear-gradient(90deg,transparent,rgba(var(--glint-rgb),.7),transparent);
}
.rms-premium-sparkle::after{transform:rotate(90deg);inset:7.5px 5px}
@keyframes rms-refined-glint{
 0%,25%,65%,100%{opacity:0}
 40%{opacity:.2}
 47%{opacity:.65}
 56%{opacity:.12}
}
@media(prefers-reduced-motion:reduce){.rms-premium-sparkle{display:none}}

/* Explicit portrait geometry avoids percentage-height grid failures on mobile. */
.member-avatar,.profile-avatar-preview{position:relative}
/* Keep the bitmap in normal flow, outside grid-area/absolute sizing.
   This also gives Safari a stable paint layer inside the metallic surround. */
.member-avatar.rms-membership-ring,.profile-avatar-preview.rms-membership-ring{
 display:flex;align-items:center;justify-content:center;
}
.member-avatar.rms-membership-ring>img,.profile-avatar-preview.rms-membership-ring>img{
 position:relative!important;inset:auto!important;grid-area:auto;
 width:100%!important;height:100%!important;flex:0 0 auto;
 max-width:none;max-height:none;min-width:0;min-height:0;
 object-fit:cover;display:block;border-radius:50%;z-index:2;
}
/* iOS WebKit: avoid repainting an animated gradient on the photo's clipping
   ancestor. Retain the tier finish; other profile effects remain animated. */
@supports (-webkit-touch-callout:none){
 .member-avatar.rms-membership-ring,.profile-avatar-preview.rms-membership-ring{
  animation:none!important;--rms-ring-angle:25deg;
 }
}
.member-avatar>img[hidden],.profile-avatar-preview>img[hidden]{display:none!important}
.creator-profile[data-account-badge="gold"] .profile-portrait>.member-avatar{
 width:176px;height:176px;max-width:100%;aspect-ratio:1;
}
@media(max-width:640px){
 .creator-profile[data-account-badge="gold"] .profile-portrait>.member-avatar{width:152px;height:152px}
}

/* Dedicated account editor: one centred form, with no directory column. */
#top[data-page="my-profile"] .profile-layout{display:block}
#top[data-page="my-profile"] #my-profile{
 width:100%;max-width:900px;margin:0 auto;box-sizing:border-box;
}
#top[data-page="profiles"] .profile-layout{grid-template-columns:minmax(0,1fr)}
.profile-editor-back{display:inline-block;position:relative;z-index:1;margin-bottom:18px}

/* Stronger tier-coloured main outlines; keep the existing panel layouts. */
:is(.creator-profile,.profile-editor)[data-account-badge][data-account-badge]{
 border-width:5px;
 box-shadow:inset 0 1px 0 #ffffff70,inset 0 -2px 1px #000,
 0 0 0 1px var(--tier-edge),0 4px 0 #030405,0 14px 28px #0008,
 0 0 22px var(--tier-glow);
}
:is(.creator-profile,.profile-editor)[data-account-badge="premium"][data-account-badge]{
 --tier-edge:#d6e1f0;--tier-glow:#cfe4ff45;
 --profile-perimeter:conic-gradient(from var(--rms-profile-angle),#566575,#d6e2ef 12%,#fff 20%,#8295a9 30%,#edf5ff 43%,#687b90 56%,#fff 70%,#bdcedf 82%,#566575);
}
:is(.creator-profile,.profile-editor)[data-account-badge="admin"][data-account-badge]{
 --tier-edge:#ff5269;--tier-glow:#ff294b55;
 --profile-perimeter:conic-gradient(from var(--rms-profile-angle),#8f122b,#ff304f 14%,#ffe0e4 23%,#bb1735 38%,#ff526b 58%,#fff0f2 73%,#ed2346 85%,#8f122b);
}
:is(.creator-profile,.profile-editor)[data-account-badge="free"][data-account-badge]{--tier-glow:#548eff38}
:is(.creator-profile,.profile-editor)[data-account-badge="owner"][data-account-badge]::before{padding:5px}
:is(.creator-profile,.profile-editor)[data-account-badge="gold"][data-account-badge]{
 --tier-edge:#edbd55;--tier-light:#ffe5a1;--tier-glow:#ffc64b55;
 --glint-rgb:255,225,145;
 --profile-perimeter:conic-gradient(from var(--rms-profile-angle),
 #835111 0%,#e6ad34 10%,#fff5cc 18%,#ffffff 20%,#d79620 27%,
 #8f5b12 38%,#f2c95b 50%,#fff5cb 63%,#ffffff 66%,#e8b23a 73%,#a16a15 86%,#835111 100%);
}
:is(.creator-profile,.profile-editor)[data-account-badge="gold"][data-account-badge]::before{
 background:linear-gradient(112deg,transparent 32%,#ffe6a20a 43%,#fff3ce30 49%,#ffffff20 51%,transparent 62%);
 background-size:260% 100%;opacity:.9;
 animation:rms-metal-glimmer 11s ease-in-out infinite alternate;
}
:is(.creator-profile,.profile-editor)[data-account-badge="gold"] .rms-premium-sparkle{
 filter:drop-shadow(0 0 3px #ffd36b99);
 animation-name:rms-gold-jewel-glint;
}
:is(.creator-profile,.profile-editor)[data-account-badge="gold"] .rms-premium-sparkle::before{
 inset:7px 1px;background:linear-gradient(90deg,transparent,#fff6d6,transparent);
}
:is(.creator-profile,.profile-editor)[data-account-badge="gold"] .rms-premium-sparkle::after{
 inset:7px 3px;background:linear-gradient(90deg,transparent,#fff3be,transparent);
}
@keyframes rms-gold-jewel-glint{
 0%,20%,60%,100%{opacity:0}
 32%{opacity:.28}
 40%{opacity:1}
 45%{opacity:.35}
 50%{opacity:.8}
 57%{opacity:0}
}
@media(prefers-reduced-motion:reduce){
 :is(.creator-profile,.profile-editor)[data-account-badge="gold"][data-account-badge]::before{animation:none;background-position:50% 50%}
}

/* Paid portrait jewellery: small perimeter glints; photo layer stays untouched. */
.rms-membership-ring[data-avatar-tier="gold"]{
 --avatar-metal:conic-gradient(from var(--rms-ring-angle,25deg),#805319,#e7b84e 14%,#fff2c4 22%,#af7727 34%,#f5d27b 49%,#fff9df 62%,#cc963b 76%,#805319);
 --avatar-glow:#edbd5545;--rms-jewel:#fff0bc;--rms-jewel-glow:#eec26780;
}
.rms-membership-ring[data-avatar-tier="premium"]{
 --rms-jewel:#f3faff;--rms-jewel-glow:#b8daff80;
}
.rms-membership-ring:is([data-avatar-tier="gold"],[data-avatar-tier="premium"]){
 overflow:visible;isolation:isolate;
}
.rms-membership-ring:is([data-avatar-tier="gold"],[data-avatar-tier="premium"])::before,
.rms-membership-ring:is([data-avatar-tier="gold"],[data-avatar-tier="premium"])::after{
 content:"";position:absolute;z-index:3;width:11px;height:11px;
 pointer-events:none;opacity:0;transform:translate(-50%,-50%) scale(.65);
 background:
 linear-gradient(90deg,transparent 39%,var(--rms-jewel) 50%,transparent 61%) center/100% 1px no-repeat,
 linear-gradient(transparent 39%,var(--rms-jewel) 50%,transparent 61%) center/1px 100% no-repeat,
 radial-gradient(circle,var(--rms-jewel) 0 .8px,transparent 2px);
 filter:drop-shadow(0 0 3px var(--rms-jewel-glow));
 animation:rms-portrait-jewel 13s ease-in-out infinite;
}
.rms-membership-ring:is([data-avatar-tier="gold"],[data-avatar-tier="premium"])::before{
 left:87%;top:13%;animation-delay:var(--rms-jewel-delay,-2s);
}
.rms-membership-ring:is([data-avatar-tier="gold"],[data-avatar-tier="premium"])::after{
 left:13%;top:87%;width:8px;height:8px;
 animation-duration:17s;animation-delay:var(--rms-jewel-delay,-8s);
}
.creator-profile:nth-child(3n+2){--rms-jewel-delay:-6s}
.creator-profile:nth-child(3n){--rms-jewel-delay:-10s}
@keyframes rms-portrait-jewel{
 0%,28%,48%,100%{opacity:0;transform:translate(-50%,-50%) scale(.65)}
 36%{opacity:.7;transform:translate(-50%,-50%) scale(1)}
 41%{opacity:.18;transform:translate(-50%,-50%) scale(.8)}
}
/* Reduced motion retains the metallic finish without flashing. */
@media(prefers-reduced-motion:reduce){
 .rms-membership-ring:is([data-avatar-tier="gold"],[data-avatar-tier="premium"])::before,
 .rms-membership-ring:is([data-avatar-tier="gold"],[data-avatar-tier="premium"])::after{
 animation:none;opacity:.25;transform:translate(-50%,-50%) scale(.7);
 }
}

/* Shared light pass: diagonal panel sheen and an independent rotating ring. */
@property --rms-paid-flare{syntax:'<number>';inherits:true;initial-value:0}
:is(.creator-profile,.profile-editor):is([data-account-badge="gold"],[data-account-badge="premium"])[data-account-badge]{
 animation:rms-profile-perimeter 32s linear infinite,rms-paid-light-pass 12s ease-in-out infinite;
}
:is(.creator-profile,.profile-editor):is([data-account-badge="gold"],[data-account-badge="premium"])[data-account-badge]::before{
 background:linear-gradient(112deg,transparent 32%,#fff2ce0a 43%,#ffffff24 49%,#ffffff14 51%,transparent 62%);
 background-size:260% 100%;opacity:.8;
 animation:rms-paid-panel-sweep 12s ease-in-out infinite;
}
/* Animate only the decorative layer, including in Safari. */
.rms-membership-ring:is([data-avatar-tier="gold"],[data-avatar-tier="premium"])::before{
 inset:-7px;left:-7px;top:-7px;width:auto;height:auto;padding:3px;border-radius:50%;
 background:conic-gradient(from 0deg,transparent 0deg 30deg,var(--rms-jewel) 47deg,transparent 66deg 211deg,var(--rms-jewel) 229deg,transparent 247deg 360deg);
 -webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);
 -webkit-mask-composite:xor;
 mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);mask-composite:exclude;
 opacity:calc(.32 + var(--rms-paid-flare,0)*.48);
 transform:rotate(0deg);
 filter:drop-shadow(0 0 2px var(--rms-jewel-glow));
 animation:rms-paid-ring-orbit 12s linear infinite;
}
.rms-membership-ring:is([data-avatar-tier="gold"],[data-avatar-tier="premium"])::after{
 animation:rms-paid-ring-catch 12s ease-in-out infinite;
 animation-delay:0s;left:87%;top:13%;
}
@keyframes rms-paid-ring-orbit{to{transform:rotate(360deg)}}
@keyframes rms-paid-panel-sweep{
 0%,12%{background-position:100% 50%}
 72%,100%{background-position:0% 50%}
}
@keyframes rms-paid-light-pass{
 0%,26%,58%,100%{--rms-paid-flare:0}
 40%{--rms-paid-flare:1}
}
@keyframes rms-paid-ring-catch{
 0%,28%,52%,100%{opacity:0;transform:translate(-50%,-50%) scale(.65)}
 40%{opacity:.85;transform:translate(-50%,-50%) scale(1.15)}
 46%{opacity:.12;transform:translate(-50%,-50%) scale(.8)}
}
@media(prefers-reduced-motion:reduce){
 :is(.creator-profile,.profile-editor):is([data-account-badge="gold"],[data-account-badge="premium"])[data-account-badge],
 :is(.creator-profile,.profile-editor):is([data-account-badge="gold"],[data-account-badge="premium"])[data-account-badge]::before,
 .rms-membership-ring:is([data-avatar-tier="gold"],[data-avatar-tier="premium"])::before,
 .rms-membership-ring:is([data-avatar-tier="gold"],[data-avatar-tier="premium"])::after{animation:none}
 .rms-membership-ring:is([data-avatar-tier="gold"],[data-avatar-tier="premium"])::before{transform:rotate(25deg);opacity:.35}
 .rms-membership-ring:is([data-avatar-tier="gold"],[data-avatar-tier="premium"])::after{opacity:.2}
}

/* Every membership gets the same clockwise portrait glimmer. */
.rms-membership-ring[data-avatar-tier="free"]{--rms-jewel:#e0efff;--rms-jewel-glow:#74adff70}
.rms-membership-ring[data-avatar-tier="admin"]{--rms-jewel:#ffe0e5;--rms-jewel-glow:#ff526970}
.rms-membership-ring[data-avatar-tier="owner"]{--rms-jewel:#ffffff;--rms-jewel-glow:#dceaff70}
.rms-membership-ring[data-avatar-tier]{
 position:relative;overflow:visible;isolation:isolate;
}
.rms-membership-ring[data-avatar-tier]::before{
 content:"";position:absolute;inset:-7px;width:auto;height:auto;
 box-sizing:border-box;padding:3px;border:0;border-radius:50%;
 z-index:3;pointer-events:none;box-shadow:none;
 background:conic-gradient(from 0deg,transparent 0deg 30deg,var(--rms-jewel,#e0efff) 47deg,transparent 66deg 211deg,var(--rms-jewel,#e0efff) 229deg,transparent 247deg 360deg);
 -webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);
 -webkit-mask-composite:xor;
 mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);mask-composite:exclude;
 opacity:calc(.32 + var(--rms-paid-flare,0)*.48);
 filter:drop-shadow(0 0 2px var(--rms-jewel-glow,#74adff70));
 transform:rotate(0deg);
 animation:rms-paid-ring-orbit 12s linear infinite;
 animation-delay:0s;animation-direction:normal;
}
@media(prefers-reduced-motion:reduce){
 .rms-membership-ring[data-avatar-tier]::before{
 animation:none;transform:rotate(25deg);opacity:.35;
 }
}

/* Admin badge: map every source colour to ruby, including the centre.
   Desaturate first so original red cannot become green during a hue shift. */
.profile-uploads-badge-admin{
 position:relative;
 filter:grayscale(1) sepia(1) saturate(4) hue-rotate(310deg) drop-shadow(0 0 4px #ff354b45);
}
/* Apply one colour treatment to the complete sprite; no masked tint overlay. */
.profile-uploads-badge-admin::before{content:none}

/* Approved layout A: portrait, details/actions, then a larger uploads badge. */
.profile-cards .creator-profile.rms-profile-layout-a[data-account-badge]{
 display:grid;grid-template-columns:176px minmax(0,1fr) 184px;
 gap:22px 30px;align-items:start;padding:28px;
}
.profile-cards .creator-profile.rms-profile-layout-a[data-account-badge]>.profile-portrait{
 grid-column:1;grid-row:1;min-width:0;padding:0;margin:0;align-self:center;
}
.profile-cards .creator-profile.rms-profile-layout-a[data-account-badge]>.member-avatar{
 grid-column:1;grid-row:1;width:100px;height:100px;margin:10px auto;align-self:center;
}
.profile-cards .creator-profile.rms-profile-layout-a[data-account-badge]>.profile-body{
 display:flex;flex-direction:column;gap:12px;grid-column:2;grid-row:1;
 min-width:0;padding:0;
}
.profile-cards .creator-profile.rms-profile-layout-a[data-account-badge] .profile-body>h3{
 order:-2;font-size:clamp(25px,2.5vw,36px);line-height:1.2;margin:0;overflow-wrap:anywhere;
}
.profile-cards .creator-profile.rms-profile-layout-a[data-account-badge] .profile-body>.profile-role{order:-1;align-self:start}
.profile-cards .creator-profile.rms-profile-layout-a[data-account-badge] .profile-body>:is(.profile-tags,.profile-score,.profile-note,.profile-open){margin:0;text-align:left}
.profile-cards .creator-profile.rms-profile-layout-a[data-account-badge] .profile-actions{
 display:flex;flex-wrap:wrap;align-items:start;gap:12px;margin-top:8px;min-width:0;
}
.profile-cards .creator-profile.rms-profile-layout-a[data-account-badge] .profile-actions>.rating-form{
 flex:1 1 210px;min-width:0;margin:0;padding:12px;
}
.profile-cards .creator-profile.rms-profile-layout-a[data-account-badge] .profile-actions .btn{
 min-height:44px;max-width:100%;padding:11px 20px;white-space:normal;
 border-radius:10px;border:1px solid var(--tier-edge,#7c9fc9);
 background:linear-gradient(175deg,#ffffff12,#ffffff00 48%),#11151d;
 box-shadow:inset 0 1px 0 #ffffff35,0 3px 0 #030509,0 6px 12px #0005;
 color:var(--tier-light,#e2edff);
}
.profile-cards .creator-profile.rms-profile-layout-a[data-account-badge] .profile-actions .btn:active{transform:translateY(2px);box-shadow:inset 0 1px 0 #ffffff20,0 1px 0 #030509}
.profile-cards .creator-profile.rms-profile-layout-a[data-account-badge] .profile-recordings{
 display:contents;border:0;background:none;box-shadow:none;
}
.profile-cards .creator-profile.rms-profile-layout-a[data-account-badge] .profile-recordings>.profile-uploads-button{
 grid-column:3;grid-row:1;align-self:end;justify-self:center;
 display:flex;flex-direction:column;align-items:center;gap:10px;
 width:100%;max-width:184px;min-width:0;min-height:0;margin:0;
 padding:10px 4px!important;border:0!important;border-radius:0!important;
 background:transparent!important;box-shadow:none!important;text-align:center;
}
.profile-cards .creator-profile.rms-profile-layout-a[data-account-badge] .profile-uploads-badge{
 display:block;flex:0 0 58px;width:58px;height:58px;margin:22px 24px;
 transform:scale(1.65);transform-origin:center;
}
.profile-cards .creator-profile.rms-profile-layout-a[data-account-badge] .profile-uploads-copy{display:flex;align-items:center;gap:6px;max-width:100%}
.profile-cards .creator-profile.rms-profile-layout-a[data-account-badge] .profile-uploads-title{
 display:block;font:600 16px/1.35 Inter,system-ui,sans-serif;
 letter-spacing:0;color:var(--tier-light,#e2edff);overflow-wrap:anywhere;
}
.profile-cards .creator-profile.rms-profile-layout-a[data-account-badge] .profile-uploads-membership{display:block;font-size:10px;letter-spacing:.08em}
.profile-cards .creator-profile.rms-profile-layout-a[data-account-badge] .profile-uploads-button::after{
 content:'View uploads →';display:block;color:var(--tier-light,#e2edff);font-size:12px;
}
.profile-cards .creator-profile.rms-profile-layout-a[data-account-badge] .profile-recordings>.profile-note{
 grid-column:2/-1;grid-row:2;margin:0;min-width:0;
}
.profile-cards .creator-profile.rms-profile-layout-a[data-account-badge] .profile-recordings>.profile-note:empty{display:none}
.profile-cards .creator-profile.rms-profile-layout-a[data-account-badge] .profile-recordings>.account-media-grid{
 grid-column:1/-1;grid-row:3;min-width:0;margin:0;
}
@media(max-width:900px){
 .profile-cards .creator-profile.rms-profile-layout-a[data-account-badge]{grid-template-columns:152px minmax(0,1fr);gap:22px;padding:24px}
 .profile-cards .creator-profile.rms-profile-layout-a[data-account-badge] .profile-recordings>.profile-uploads-button{grid-column:2;grid-row:2;justify-self:end}
 .profile-cards .creator-profile.rms-profile-layout-a[data-account-badge] .profile-recordings>.profile-note{grid-column:1/-1;grid-row:3}
 .profile-cards .creator-profile.rms-profile-layout-a[data-account-badge] .profile-recordings>.account-media-grid{grid-row:4}
}
@media(max-width:520px){
 .profile-cards .creator-profile.rms-profile-layout-a[data-account-badge]{grid-template-columns:minmax(0,1fr);padding:24px 18px;gap:20px}
 .profile-cards .creator-profile.rms-profile-layout-a[data-account-badge]>.profile-portrait,
 .profile-cards .creator-profile.rms-profile-layout-a[data-account-badge]>.member-avatar{grid-column:1;grid-row:1;justify-self:center}
 .profile-cards .creator-profile.rms-profile-layout-a[data-account-badge]>.profile-body{grid-column:1;grid-row:2}
 .profile-cards .creator-profile.rms-profile-layout-a[data-account-badge] .profile-recordings>.profile-uploads-button{grid-column:1;grid-row:3;justify-self:end}
 .profile-cards .creator-profile.rms-profile-layout-a[data-account-badge] .profile-recordings>.profile-note{grid-column:1;grid-row:4}
 .profile-cards .creator-profile.rms-profile-layout-a[data-account-badge] .profile-recordings>.account-media-grid{grid-column:1;grid-row:5}
}

/* Approved red Admin artwork with independent silver RMS lettering. */
.profile-uploads-badge-admin{
 background-image:url('/assets/admin-red-silver.webp');
 background-size:contain;background-position:center;
 filter:drop-shadow(0 0 4px #ff354b45);
}

/* Use the approved Gold portrait size consistently for every membership. */
.profile-cards .creator-profile.rms-profile-layout-a[data-account-badge]>.member-avatar,
.profile-cards .creator-profile.rms-profile-layout-a[data-account-badge]>.profile-portrait>.member-avatar{
 width:176px;height:176px;max-width:100%;aspect-ratio:1;box-sizing:border-box;
 margin:0 auto;font-size:48px;
}
.profile-summary>.member-avatar,.profile-avatar-preview{
 width:176px;height:176px;max-width:100%;aspect-ratio:1;box-sizing:border-box;
}
@media(min-width:641px) and (max-width:900px){
 .profile-cards .creator-profile.rms-profile-layout-a[data-account-badge]{grid-template-columns:176px minmax(0,1fr)}
}
@media(max-width:640px){
 .profile-cards .creator-profile.rms-profile-layout-a[data-account-badge]>.member-avatar,
 .profile-cards .creator-profile.rms-profile-layout-a[data-account-badge]>.profile-portrait>.member-avatar,
 .profile-summary>.member-avatar,.profile-avatar-preview{width:152px;height:152px}
}

/* Align the portrait with the member name at the upper left. */
.profile-cards .creator-profile.rms-profile-layout-a[data-account-badge]>.profile-portrait,
.profile-cards .creator-profile.rms-profile-layout-a[data-account-badge]>.member-avatar{
 align-self:start;justify-self:start;margin:0;
}
@media(max-width:520px){
 .profile-cards .creator-profile.rms-profile-layout-a[data-account-badge]{
 grid-template-columns:minmax(0,1fr);gap:16px;
 }
 .profile-cards .creator-profile.rms-profile-layout-a[data-account-badge]>.profile-portrait,
 .profile-cards .creator-profile.rms-profile-layout-a[data-account-badge]>.member-avatar{justify-self:start;margin:0}
 .profile-cards .creator-profile.rms-profile-layout-a[data-account-badge] .profile-body>h3,
 .profile-cards .creator-profile.rms-profile-layout-a[data-account-badge] .profile-body>.profile-role{text-align:left}
 .profile-cards .creator-profile.rms-profile-layout-a[data-account-badge] .profile-body>.profile-tags{justify-content:flex-start}
}

/* Account outline follows the same authoritative badge used by member profiles. */
#account-menu > summary[data-account-tier]{position:relative;isolation:isolate}
#account-menu > summary[data-account-tier]::before{
 content:"";position:absolute;inset:-2px;padding:2px;border-radius:12px;pointer-events:none;
 background:var(--account-metal);box-shadow:none;
 -webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);
 -webkit-mask-composite:xor;mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);mask-composite:exclude;
 filter:drop-shadow(0 0 3px var(--account-glow));
}
#account-menu > summary[data-account-tier="free"]{
 --account-metal:conic-gradient(from 25deg,#ac263c,#f4f4f5 30%,#246ac1 65%,#ac263c);--account-glow:#7a9cc32b;
}
#account-menu > summary[data-account-tier="premium"]{
 --account-metal:conic-gradient(from var(--rms-ring-angle,25deg),#465463,#acbac7 9%,#fff 16%,#77899a 25%,#e7f0f7 34%,#fff 38%,#9baab8 47%,#3d4b5a 55%,#d6e2eb 65%,#fff 73%,#8c9ba9 83%,#edf6ff 91%,#465463);--account-glow:#d4e9ff45;
}
#account-menu > summary[data-account-tier="gold"]{
 --account-metal:conic-gradient(from var(--rms-ring-angle,25deg),#805319,#e7b84e 14%,#fff2c4 22%,#af7727 34%,#f5d27b 49%,#fff9df 62%,#cc963b 76%,#805319);--account-glow:#c9a96b55;
}
#account-menu > summary[data-account-tier="admin"]{
 --account-metal:conic-gradient(from var(--rms-ring-angle,25deg),#61121d,#e5354e 15%,#ffd0d4 23%,#981d31 40%,#ef3b54 65%,#ffbcc5 73%,#61121d);--account-glow:#ff334d80;
}
#account-menu > summary[data-account-tier="owner"]{
 --account-metal:conic-gradient(from var(--rms-ring-angle,25deg),#08090c 0deg 32deg,#fbfdff 34deg 45deg,#333940 48deg 54deg,#08090c 58deg 188deg,#fff 191deg 203deg,#333940 206deg 212deg,#08090c 216deg 360deg);--account-glow:#ffffff70;
}
@media(prefers-reduced-motion:no-preference){
 #account-menu > summary[data-account-tier]:not([data-account-tier="free"]){animation:rms-avatar-metal-turn 28s linear infinite}
}
