/* Actual membership material, independent from the equipped achievement tier. */
.rank-material-c { --rank-ink:linear-gradient(125deg,#fff,#dce1e7 48%,#fff 60%,#bac4ce); }
.rank-material-n { --rank-ink:linear-gradient(125deg,#e5ffd1,#7dbe85 36%,#f3ffe3 48%,#54a67a 65%,#b5ebaf); }
.rank-material-r { --rank-ink:linear-gradient(135deg,#e9c1ff,#9370b0 35%,#ead9ff 48%,#74448c 64%,#c399da); }
.rank-material-sr { --rank-ink:linear-gradient(125deg,#fff0bf,#ffb45d 32%,#fff2cf 45%,#d96e22 62%,#ffc383); }
.rank-material-ssr { --rank-ink:linear-gradient(165deg,#fff5c6 8%,#bf8b2e 26%,#ffe9a0 35%,#fffad5 44%,#a77a24 52%,#f4d471 71%,#fff3b7); }
.rank-material-ur { --rank-ink:repeating-conic-gradient(from 22deg at 35% 40%,#e8f8ff 0deg 22deg,#8794c0 26deg 44deg,#fff 48deg 62deg,#bedbf1 66deg 90deg); }
.rank-material-lr { --rank-ink:linear-gradient(115deg,#ffb6db,#ffe69c,#b7ffd1,#9beaff,#a6aeff,#e5afff,#ffb6db); }
:is(.profile-tier-slide,.participant-member-card) .profile-card-level.rank-material {
  color:#e7eaf0; background-image:var(--rank-ink); background-clip:text; -webkit-background-clip:text;
  -webkit-text-fill-color:transparent; -webkit-text-stroke:.35px #ffffff48;
  filter:drop-shadow(0 1px 1px #07162460); text-shadow:none;
}
.profile-card-level.rank-material-lr { background-size:260% 100%; animation:rank-letter-flow 5s ease-in-out infinite alternate; }
@keyframes rank-letter-flow { from{background-position:0% 50%}to{background-position:100% 50%} }

/* The fill follows the measured inner silhouette of its equipped frame. */
:is(.slot-cell,.member-slot-preview,.room-participant-seat,.order-entry-pass):has(> .cosmetic-fill-layer) { background:transparent!important; }
.basic-fill-layer { opacity:1; }
.order-entry-pass > .basic-fill-layer { inset:0; height:100%; aspect-ratio:auto; }
.order-entry-pass[class*="member-lock-frame-bf"]:not(:has(> .cosmetic-frame-layer))::after { inset:0; border:0; border-image:none; background:var(--booking-outline) center/100% 100% no-repeat; z-index:2; }
:is(.slot-cell,.member-slot-preview,.room-participant-seat,.order-entry-pass):has(> .cosmetic-frame-layer):has(> .cosmetic-fill-layer) { background:transparent; }
:is(.slot-cell,.member-slot-preview,.room-participant-seat,.order-entry-pass):has(> .cosmetic-frame-layer) > .cosmetic-fill-layer { clip-path:inset(5px round 6px); border-radius:0; }
.slot-cell .slot-feature-icons,.slot-cell .slot-group-icon { z-index:5; }
:is(.slot-cell,.dressing-booking-slot) :is(.slot-feature-icon,.slot-group-icon) {
  filter:drop-shadow(0 0 1px #fff) drop-shadow(0 0 3px #fff) drop-shadow(0 0 5px #fff);
}
:is(.slot-cell,.dressing-booking-slot) .slot-feature-icon.live.approved { opacity:1; }
:is(.slot-cell,.dressing-booking-slot) .slot-feature-icon.live.pending { opacity:.85; }
:is(.slot-cell,.dressing-booking-slot) .slot-feature-icon.audience { color:#214961; }
.slot-cell.slot-ended :is(.slot-feature-icon,.slot-group-icon) { opacity:.65; }

/* A thin gradient edge plus a diffused breathing light behind the card. */
.participant-member-card { isolation:isolate; overflow:visible; }
/* Every card has an opaque substrate, including basic fills without a material token. */
.participant-member-card:has(.cosmetic-fill-layer):not(:has(.route-fill-layer)) { background:var(--member-surface,linear-gradient(110deg,#101824,#26354a 70%,#405372)); }
/* Keep basic vector corners at a physical size; stretching the 100×80 artwork
   across a landscape card used to turn corner curves into lines through text. */
.participant-member-card[class*="member-lock-frame-bf"]:not(:has(> .cosmetic-frame-layer)) { border-radius:12px; border:0; }
.participant-member-card[class*="member-lock-frame-bf"]:not(:has(> .cosmetic-frame-layer))::after {
  inset:-7px; width:auto; height:auto; border:18px solid transparent; border-radius:0;
  background:none; border-image:var(--booking-outline) 24 stretch; z-index:4;
}
.participant-member-card.member-lock-frame-bf06 { --booking-outline:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20100%2080%22%20fill%3D%22none%22%20stroke%3D%22%23c19478%22%20stroke-width%3D%221.5%22%3E%3Cpath%20d%3D%22M3%2015Q3%203%2015%203H97V65Q97%2077%2085%2077H3Z%22%2F%3E%3Cpath%20d%3D%22M7%2019Q7%207%2019%207M81%2073Q93%2073%2093%2061%22%2F%3E%3C%2Fsvg%3E"); }
.participant-floating-badge summary { position:relative; isolation:isolate; }
.participant-floating-badge summary::before { content:""; position:absolute; inset:7%; z-index:-1; border-radius:50%; background:#eef5f8b3; filter:blur(10px); pointer-events:none; }
.participant-floating-badge .participant-badge-medal { filter:drop-shadow(0 0 2px #fffffff0) drop-shadow(0 3px 3px #0b203cb3) drop-shadow(0 7px 7px #10243e66); }
.member-card-rim { position:absolute; inset:-1px; z-index:5; padding:1.25px; border-radius:inherit; pointer-events:none;
  background:linear-gradient(120deg,#92e9ec,#c4b9fa,#f1cca6,#92e9ec); background-size:220% 100%;
  mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0); mask-composite:exclude;
  -webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0); -webkit-mask-composite:xor;
  animation:card-rim-flow 9s ease-in-out infinite alternate;
}
.member-card-backlight { position:absolute; z-index:-1; pointer-events:none; left:9%; width:82%; top:92%; height:30px;
  border-radius:50%; background:linear-gradient(100deg,#9ee9dc99,#aca0fa99,#f4c6a899); filter:blur(19px);
  transform-origin:center; animation:card-backlight-breathe 5.5s ease-in-out infinite alternate;
}
@keyframes card-rim-flow { from{background-position:0% 0}to{background-position:100% 0} }
@keyframes card-backlight-breathe { from{opacity:.4;filter:blur(16px);transform:translateY(1px) scale(.88,.8)}to{opacity:.82;filter:blur(24px);transform:translateY(6px) scale(1.06,1.18)} }

/* One stationary avatar, with a surface expanding out from the same position. */
body.dressing-open { position:fixed; top:var(--dressing-scroll-top,0px); left:0; width:calc(100% - var(--dressing-scrollbar,0px)); overflow:hidden; }
.profile-tier-area.dressing-active { z-index:35; }
.profile-tier-area.dressing-active > .profile-tier-carousel { pointer-events:none; }
.profile-tier-area.dressing-active > .profile-tier-carousel .profile-avatar-button,
.profile-tier-area.dressing-active > .profile-floating-status { visibility:hidden; }
.member-inline-editor.dressing-panel {
  position:absolute; top:0; left:0; right:auto; display:grid; grid-template-rows:var(--dressing-header-height,134px) minmax(0,1fr);
  width:100%; height:620px; max-height:none; gap:0; margin:0; padding:0; overflow:visible;
  background:transparent; border:0; border-radius:26px; box-shadow:none; animation:none; transform:none; isolation:isolate;
}
.member-editor-surface { position:absolute; z-index:-1; inset:0; border-radius:26px; background:#fcfdfe; border:1px solid #c7d7e080; box-shadow:0 22px 60px #0c273d30; pointer-events:none; }
.dressing-panel .member-editor-close { top:-4px; left:2px; right:auto; width:44px; height:44px; z-index:5; color:#536a77; }
.member-editor-preview { position:relative; min-height:0; }
.dressing-panel .dressing-avatar-anchor {
  left:var(--dressing-avatar-x); top:var(--dressing-avatar-y); right:auto;
  width:var(--dressing-avatar-w); height:var(--dressing-avatar-h); pointer-events:none;
}
.member-booking-live-preview { position:absolute; left:22px; top:calc(var(--dressing-avatar-y) + 4px); width:112px; text-align:center; }
.member-booking-live-preview > small { display:block; margin-top:9px; font-size:9px; color:#536a77; }
.dressing-panel .dressing-booking-slot { position:relative; display:block; isolation:isolate; width:112px; height:66px; margin:0; padding:0; border:0; overflow:visible; }
.dressing-booking-slot > strong { position:absolute!important; z-index:5!important; top:50%; left:50%; transform:translate(-50%,-50%); font-size:10px; white-space:nowrap; color:#163b50; background:none; text-shadow:0 0 3px #fff,0 0 6px #fff,0 0 10px #fff; }
.dressing-booking-slot > .slot-feature-icons { position:absolute!important; inset:0; z-index:5!important; }
.dressing-booking-slot > .slot-group-icon { position:absolute!important; top:4px; left:50%; width:23px; height:15px; z-index:5!important; }
.dressing-booking-slot .slot-feature-icon { bottom:4px; }
.dressing-booking-slot .slot-feature-icon.audience-left { left:8px; }
.dressing-booking-slot .slot-feature-icon.audience-right { right:8px; }
.dressing-booking-slot > .route-authored-frame { --frame-corner:13px; }
.dressing-route-anchor { position:absolute; left:var(--dressing-focus-x,50%); top:calc(var(--dressing-avatar-y) - 5px); transform:translateX(-50%); width:84px; min-height:90px; display:grid; place-items:center; }
.dressing-preview-caption { font-size:10px; color:#80929d; letter-spacing:.12em; }
.dressing-route-anchor .cosmetic-route-stack { width:84px; height:100px; min-height:0; padding:3px 0; background:transparent; gap:6px; }
.dressing-route-anchor .cosmetic-route-stack > strong { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; font-size:9px; line-height:1.4; }
.dressing-route-anchor .cosmetic-stack-meta { display:none; }
.member-editor-body { display:grid; grid-template-rows:42px minmax(0,1fr); min-height:0; padding:0 14px 10px; }
.dressing-panel .member-editor-tabs { min-height:0; padding:0; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); border-bottom:1px solid #dce5e8; gap:4px; }
.dressing-panel .member-editor-tabs button { padding:8px 2px; font-size:11px; min-width:0; border:0; border-radius:10px 10px 0 0; color:#6a7c88; background:transparent; }
.dressing-panel .member-editor-tabs button.active { color:#174a73; background:#e8f0f5; box-shadow:inset 0 -2px #174a73; }
.dressing-panel .member-editor-content { min-height:0; max-height:none; height:100%; padding:0 2px; border-radius:0 0 20px 20px; scroll-behavior:auto; overflow-x:hidden; }
.dressing-panel .member-editor-section { padding:12px 3px 0; display:flex; flex-direction:column; min-height:100%; }
.dressing-panel .member-editor-heading { display:flex; position:relative; width:auto; height:auto; clip-path:none; overflow:visible; flex-wrap:wrap; gap:5px 10px; align-items:baseline; margin:0; }
.dressing-panel .member-editor-heading h2 { font-size:14px; margin:0; }
.dressing-panel .member-editor-heading > span { font-size:9px; color:#768791; margin-left:auto; }
.dressing-panel .member-editor-intro { font-size:10px; line-height:1.6; color:#7b8890; margin:5px 0 12px; }
.dressing-panel .cosmetic-source-group > h3 { font-size:11px; margin:12px 0 10px; color:#5b717e; }
.dressing-panel .member-style-picker-grid { grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px 6px; }
.dressing-panel .cosmetic-route-stack { min-height:100px; justify-content:flex-start; padding-top:10px; }
.dressing-panel .cosmetic-route-stack > strong { font-size:9px; min-height:26px; line-height:1.45; display:flex; align-items:center; text-align:center; }
.dressing-panel .cosmetic-stack-meta { font-size:9px; }
.dressing-panel .member-style-detail { margin-top:auto; flex-shrink:0; min-height:76px; bottom:0; padding:12px 4px; background:#fcfdfef5; box-shadow:0 -8px 14px #fcfdfeec; }
.dressing-panel .member-style-detail-copy { display:grid; gap:4px; }
.dressing-panel .member-style-detail-copy > strong { font-size:12px; }
.dressing-panel .member-style-detail-copy :is(button,span,small) { font-size:10px; line-height:1.5; }
.dressing-panel .dressing-catalog-body { flex:1; transform-origin:50% 0; padding-bottom:18px; }
.dressing-panel .cosmetic-route-variants { border:0; background:transparent; padding:16px 0; margin:0; }
.dressing-panel .cosmetic-route-stage-grid { gap:12px 8px; }
.dressing-panel .cosmetic-route-stage-grid .member-style-option { min-height:128px; justify-content:center; border-radius:14px; background:#f0f4f6; }
.dressing-panel .cosmetic-route-stage-grid .member-style-option.previewed { background:#e1edf3; box-shadow:inset 0 0 0 1px #b1cbdc; }
.dressing-panel .cosmetic-route-stage-grid .member-avatar-preview { width:48px; height:48px; }
.dressing-panel .cosmetic-route-stage-grid .member-slot-preview { width:76px; height:38px; }
.deferred-member-art { display:grid; place-items:center; width:36px; height:36px; }
.deferred-member-art[data-art-type="bookingFrame"], .deferred-member-art[data-art-type="slotStyle"] { width:72px; height:36px; }
.cosmetic-route-stage-grid .deferred-member-art { width:48px; height:48px; }
.cosmetic-route-stage-grid .deferred-member-art[data-art-type="bookingFrame"], .cosmetic-route-stage-grid .deferred-member-art[data-art-type="slotStyle"] { width:76px; height:38px; }
.cosmetic-stack-sheet .deferred-member-art { width:27px; height:27px; }
.cosmetic-stack-sheet .deferred-member-art[data-art-type="bookingFrame"], .cosmetic-stack-sheet .deferred-member-art[data-art-type="slotStyle"] { width:48px; height:24px; }
.dressing-route-back { width:100%; text-align:left; color:#174a73; border:0; background:none; padding:0 0 12px; min-height:36px; font:inherit; font-size:11px; cursor:pointer; }
.dressing-shared-flight { box-sizing:border-box; display:flex; flex-direction:column; align-items:center; justify-content:center; padding:3px; gap:6px; background:#f2f6f8; border:0; }
.dressing-shared-flight .member-avatar-preview { width:27px; height:27px; }
.dressing-shared-flight .member-slot-preview { width:48px; height:24px; padding:0; }
.dressing-shared-flight > strong { font-size:9px; line-height:1.4; }
.dressing-shared-flight .cosmetic-stack-meta { display:none; }
@media(max-width:380px) {
  .member-booking-live-preview { left:16px; width:100px; }
  .dressing-panel .dressing-booking-slot { width:100px; height:62px; }
  .dressing-route-anchor { width:70px; }
  .dressing-route-anchor .cosmetic-route-stack { width:70px; }
  .member-editor-body { padding-inline:10px; }
}
@media(prefers-reduced-motion:reduce) {
  .profile-card-level.rank-material-lr,.member-card-rim,.member-card-backlight { animation:none; }
  .member-card-backlight { opacity:.5; }
}

/* One representative per route: the highest owned material, without a card stack. */
.cosmetic-single-art { display:grid; place-items:center; width:100%; height:66px; }
.member-inline-editor .cosmetic-single-art .deferred-member-art { display:grid; place-items:center; width:100%; height:66px; }
.member-inline-editor .cosmetic-single-art .member-avatar-preview { width:48px; height:48px; }
.member-inline-editor .cosmetic-single-art .member-slot-preview { width:72px; height:36px; min-height:0; padding:0; }
.cosmetic-route-single > small { color:var(--muted); font-size:10px; }
.member-inline-editor .cosmetic-source-group { margin-top:0; }
.member-inline-editor .member-style-picker-grid { row-gap:12px; column-gap:12px; }
.dressing-route-focus .cosmetic-single-art { height:50px; }
.member-inline-editor .dressing-route-focus .cosmetic-single-art .member-avatar-preview { width:38px; height:38px; }
.member-inline-editor .dressing-route-focus .cosmetic-single-art .member-slot-preview { width:64px; height:32px; }

/* Every choice uses one optical size; rarity belongs in the expanded route. */
.member-inline-editor .member-style-picker-grid > :is(.member-style-option,.cosmetic-route-single) { min-height:64px; padding:8px 2px; gap:0; }
.member-inline-editor .member-style-picker-grid > .cosmetic-route-single > small { display:none; }
.member-inline-editor .member-style-picker-grid > .cosmetic-route-single .cosmetic-single-art,
.member-inline-editor .member-style-picker-grid > .cosmetic-route-single .deferred-member-art { height:48px; }
.member-inline-editor .member-style-picker-grid > .cosmetic-route-single .member-avatar-preview { width:36px; height:36px; }
