/* Artes locais. Só a camada ornamental da prévia ativa se move. */
.wc-art-avatar{position:relative;display:inline-flex;width:100%;height:100%;isolation:isolate;vertical-align:middle;overflow:visible}
.wc-art-base{display:inline-flex;width:100%;height:100%;border-radius:50%;position:relative;z-index:1}
.wc-art-base>.avatar-decorated,.wc-art-base>.profile-avatar-decorated{width:100%;height:100%}
.wc-art-base .avatar-img,.wc-art-base .avatar-fallback{border-radius:50%;object-fit:cover}
.wc-art-avatar.has-art .avatar-frame-overlay,.wc-art-avatar.has-art .avatar-decoration-overlay{display:none!important}
.wc-art-layers{position:absolute;inset:0;pointer-events:none;z-index:4;overflow:visible}
.wc-art-layers>.wc-art-ornament{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;max-width:none!important;border-radius:0!important;object-fit:contain!important;pointer-events:none;animation:none;filter:none}
.server-member-avatar>.status-dot,.avatar-wrap>.status-dot{z-index:8;position:absolute}
.wc-profile-art{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.24;pointer-events:none;z-index:0}
.profile-card[data-has-cosmetics=true]>:not(.wc-profile-art):not(.profile-effect-layer){position:relative;z-index:1}
.wc-shop{--shop-bg:#12181e;--shop-panel:#1a222a;--shop-text:#edf2f6;--shop-muted:#a5b5c0;--shop-line:#34414c;color:var(--shop-text);background:var(--shop-bg);border:1px solid var(--shop-line);border-radius:18px;box-shadow:0 24px 80px #0007;width:min(1180px,calc(100vw - 32px));max-width:none;max-height:calc(100dvh - 32px);padding:24px;overflow:auto;font:14px/1.5 Inter,system-ui,sans-serif;color-scheme:dark}
.wc-shop::backdrop{background:#05090dba}
.wc-shop *{box-sizing:border-box}
.wc-shop h2,.wc-shop h3,.wc-shop h4{font-family:Inter,system-ui,sans-serif;text-transform:none;letter-spacing:-.02em;color:var(--shop-text)}
.wc-shop button,.wc-shop input,.wc-shop select{font:inherit;color:var(--shop-text);background:var(--shop-panel);border:1px solid var(--shop-line);border-radius:9px;clip-path:none!important;box-shadow:none;text-transform:none;letter-spacing:normal;min-height:40px;padding:9px 12px;cursor:pointer;transition:background-color .15s,transform .15s}
.wc-shop button::before,.wc-shop button::after{display:none!important}
.wc-shop button:hover{background:#26343f;transform:none;filter:none}
.wc-shop button:focus-visible,.wc-shop input:focus-visible,.wc-shop select:focus-visible{outline:2px solid #61d4dc;outline-offset:3px}
.wc-shop button:disabled{opacity:.5;cursor:default}
.wc-shop .wc-primary{background:#76d9dc;color:#102228;border-color:#76d9dc;font-weight:700}
.wc-shop-head{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:20px}
.wc-shop-head h2{font-size:27px;margin:5px 0}.wc-shop-head small{color:var(--shop-muted);font-size:10px;letter-spacing:.14em}
.wc-shop-head>div:last-child{display:flex;gap:16px;align-items:center;white-space:nowrap}
.wc-shop-tools{display:flex;flex-wrap:wrap;gap:12px;align-items:end}.wc-shop-tools label{display:grid;gap:4px;color:var(--shop-muted);font-size:11px}.wc-shop-tools input{width:100%;min-width:160px}.wc-search{flex:1}.wc-shop-tools nav{display:flex;gap:6px;align-self:end}.wc-shop [aria-pressed=true]{border-color:#76d9dc;color:#76d9dc}
#wc-shop-status{min-height:24px;margin:14px 0;color:#a8d8ce}#wc-shop-status[data-error=true]{color:#ffb4ab}
.wc-shop-body{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:24px}.wc-shop-body>main{min-width:0}
#wc-shop-collections{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:22px}#wc-shop-collections[hidden]{display:none}
.wc-shop .wc-collection{padding:0;text-align:left;overflow:hidden}.wc-collection img{width:100%;aspect-ratio:3/1;object-fit:cover;display:block}.wc-collection b,.wc-collection small{display:block;margin:10px 12px}.wc-collection small{color:var(--shop-muted);font-size:12px}
.wc-product-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.wc-shop .wc-product{text-align:left;padding:12px;min-width:0;display:flex;flex-direction:column;gap:6px}.wc-product img{width:100%;aspect-ratio:1;object-fit:contain;border-radius:7px;background:#222d36}.wc-product b{font-size:13px;overflow-wrap:anywhere}.wc-product small{color:var(--shop-muted);font-size:10px}.wc-product span{font-size:12px;color:#9cddda}
.wc-result-count{color:var(--shop-muted);font-size:12px}.wc-shop-empty{padding:40px 12px;text-align:center;color:var(--shop-muted)}
#wc-shop-detail{min-width:0;border-left:1px solid var(--shop-line);padding-left:22px;align-self:start}#wc-shop-detail>button{width:100%;margin:5px 0;text-align:left}#wc-shop-detail>img{width:100%;max-height:200px;object-fit:contain;margin:15px 0;background:#202a34;border-radius:10px}#wc-shop-detail>p{color:var(--shop-muted);font-size:12px}#wc-shop-detail h3{margin:0 0 10px;font-size:19px}.wc-composition-note{border-left:2px solid #738c9a;padding-left:10px}
.wc-preview-controls{display:flex;flex-wrap:wrap;gap:6px;margin:12px 0}.wc-shop .wc-preview-controls button{font-size:11px;padding:5px 8px;min-height:32px}.wc-preview-controls label{font-size:11px;display:flex;align-items:center;gap:4px}.wc-shop input[type=checkbox]{width:16px;min-height:16px}
.wc-preview-card{position:relative;isolation:isolate;overflow:hidden;border-radius:12px;padding-bottom:18px;background:#222b35;color:#f0f4f6}.wc-preview-banner{width:100%;height:83px;object-fit:cover;background:#344758;display:block}.wc-preview-avatar{position:relative;z-index:2;width:76px;height:76px;margin:-10px 0 24px 30px}.wc-preview-card>b,.wc-preview-card>small{display:block;position:relative;z-index:2;padding:0 18px;overflow-wrap:anywhere}.wc-preview-card>small{opacity:.65;font-size:11px}.wc-preview-effect{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.28;pointer-events:none;z-index:1}
.wc-preview-card[data-tone=light]{background:#edf1f3;color:#1c303a}.wc-preview-message{padding:14px 0;display:grid;gap:7px;font-size:12px}.wc-preview-message>img{width:130px;height:130px;object-fit:contain}.wc-preview-message>span{color:var(--shop-muted)}
.wc-shop footer{border-top:1px solid var(--shop-line);padding-top:16px;margin-top:24px;display:flex;gap:16px;align-items:center}.wc-shop footer span{font-size:11px;color:var(--shop-muted)}
.wc-owned-stickers{display:flex;flex-wrap:wrap;gap:6px;padding:10px}.wc-owned-stickers h4{width:100%;margin:0 0 6px}.wc-owned-stickers button{padding:5px;border:0;background:transparent;cursor:pointer}.wc-owned-stickers img{width:54px;height:54px;object-fit:contain}
@media(prefers-reduced-motion:reduce){.wc-shop *,.is-motion .wc-art-ornament{animation:none!important;transition:none!important}}
@media(max-width:760px){.wc-shop{width:calc(100vw - 12px);max-height:calc(100dvh - 12px);padding:16px;border-radius:14px}.wc-shop-head{align-items:start}.wc-shop-head h2{font-size:20px}.wc-shop-head>div:last-child{display:grid;gap:6px;font-size:11px}.wc-shop-tools nav{width:100%}.wc-shop-tools label{flex:1;min-width:100px}.wc-shop-body{display:flex;flex-direction:column}.wc-shop-body main{width:100%}#wc-shop-detail{width:100%;border-left:0;border-top:1px solid var(--shop-line);padding:18px 0 0}.wc-product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}#wc-shop-collections{grid-template-columns:1fr}.wc-shop footer{flex-direction:column;align-items:start}.wc-preview-card{max-width:340px}}

/* Rolagens próprias: o provador não desaparece quando o catálogo é longo. */
.wc-shop[open]{display:flex;flex-direction:column;height:min(900px,calc(100dvh - 32px));overflow:hidden}
.wc-shop-head,.wc-shop-tools,#wc-shop-status,.wc-shop footer{flex-shrink:0}
.wc-shop-body{flex:1;min-height:0;overflow:hidden}
.wc-shop-body>main,#wc-shop-detail{overflow-y:auto;min-height:0;height:100%;overscroll-behavior:contain;scrollbar-width:thin;padding-right:6px}
.wc-shop #wc-shop-detail>.wc-back-to-items{display:none}
@media(max-width:760px){
 .wc-shop[open]{height:calc(100dvh - 12px)}
 .wc-shop-body>main{flex:1}
 #wc-shop-detail{display:none}
 .wc-shop-body[data-selected=true]>main{display:none}
 .wc-shop-body[data-selected=true]>#wc-shop-detail{display:block;border:0;padding-top:0;flex:1}
 .wc-shop #wc-shop-detail>.wc-back-to-items{display:block;margin:0 0 14px}
 .wc-shop footer{margin-top:12px;padding-top:10px;gap:6px}
 .wc-shop footer span{font-size:10px}
 .wc-shop-head{margin-bottom:10px}
 .wc-shop-tools{gap:6px}
 .wc-shop-tools label{font-size:10px}
 .wc-shop-tools input,.wc-shop-tools select{padding:7px;min-height:36px;max-width:100%}
}

/* O CSS antigo recortava qualquer classe de avatar, inclusive o provador. */
.wc-shop .wc-preview-avatar{overflow:visible;display:block;border-radius:0;place-items:normal;font-size:28px}
.wc-shop .wc-preview-card{height:auto;min-height:245px;aspect-ratio:auto;display:block}
.avatar-wrap:has(.wc-art-avatar.has-art),.message-avatar:has(.wc-art-avatar.has-art),
.chat-peer-avatar:has(.wc-art-avatar.has-art),.server-member-avatar:has(.wc-art-avatar.has-art),
.profile-avatar:has(.wc-art-avatar.has-art),.incoming-call-avatar:has(.wc-art-avatar.has-art),
.call-participant-avatar:has(.wc-art-avatar.has-art),.server-call-tile-avatar:has(.wc-art-avatar.has-art),
.channel-voice-avatar:has(.wc-art-avatar.has-art){overflow:visible!important}
[data-cq=off] .wc-profile-art{display:none}
@media(max-width:760px){.wc-shop button,.wc-shop input,.wc-shop select,.wc-shop .wc-preview-controls button{min-height:44px}.wc-shop input[type=checkbox]{min-height:16px}.wc-preview-controls label{min-height:44px}}

/* A circunferência da foto passa pelo meio do aro: metade dentro, metade fora.
   A abertura da arte é 64%; escala 1 / ((1 + .64) / 2) = 1.2195. */
.wc-art-avatar.has-art>.wc-art-base{transform:none}

.wc-preview-banner{
 height:auto!important;aspect-ratio:3/1;min-height:0!important;max-height:220px!important;
 background-size:cover!important;background-position:var(--cosmetic-banner-focus,50% 50%)!important;
 box-shadow:none!important;border-bottom:0!important;
}

/* Catálogo usa o mesmo compositor do perfil, sem avatares pintados nas miniaturas. */
.wc-product-visual{width:100%;aspect-ratio:1;background:#222d36;border-radius:8px;display:grid;place-items:center;overflow:visible}
.wc-catalog-avatar{width:62%;aspect-ratio:1;position:relative;display:block}
.wc-product .wc-art-ornament{background:transparent!important;aspect-ratio:auto!important}
.wc-product .wc-art-base .avatar-img{border-radius:50%;object-fit:cover;background:transparent}
.wc-product-visual>img{width:100%;height:100%;object-fit:contain}
@media(max-width:760px){
 .wc-shop-tools{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
 .wc-shop-tools nav,.wc-shop-tools .wc-search,.wc-shop-tools>label:last-child{grid-column:1/-1}
 .wc-shop .wc-shop-tools label{min-width:0;width:100%}
 .wc-shop .wc-shop-tools input,.wc-shop .wc-shop-tools select{min-width:0;width:100%;max-width:100%}
}

.wc-catalog-avatar .avatar-fallback{font-size:clamp(20px,5vw,36px)}

/* Coleções 3.1: catálogo editorial compacto e provador como uma etapa própria. */
.wc-shop{--shop-bg:#101820;--shop-panel:#182630;--shop-line:#ffffff18;--shop-muted:#9fb2c0;padding:24px;}
.wc-shop-head h2{font-size:30px;letter-spacing:-1px;margin:2px 0}
#wc-shop-balance{font-size:13px;background:#78d8dc10;border:1px solid #78d8dc28;border-radius:24px;padding:8px 12px;color:#b5e9e9}
.wc-shop-head{padding-bottom:18px;border-bottom:1px solid var(--shop-line)}
#wc-shop-tabs{padding:4px;background:#ffffff06;border:1px solid var(--shop-line);border-radius:13px}
.wc-shop #wc-shop-tabs button{background:transparent;border-color:transparent;border-radius:9px;color:var(--shop-muted);font-weight:600}
.wc-shop #wc-shop-tabs button[aria-pressed=true]{background:#2a414e;color:#eaf5fa;border-color:#ffffff0c}
.wc-shop .wc-product{border:1px solid #ffffff12;background:#17232d;border-radius:16px;padding:10px;gap:7px;transition:border-color .16s,background-color .16s}
.wc-shop .wc-product:hover{background:#1d2e39;border-color:#96d7df55}
.wc-shop .wc-product:active{background:#28414d}
.wc-shop .wc-product-visual{border-radius:11px;background:radial-gradient(ellipse at 50% 45%,#304758,#17232d 80%);overflow:hidden}
.wc-shop .wc-product b{font-size:13px;line-height:1.4;font-weight:650;letter-spacing:-.1px}
.wc-shop .wc-product small{font-size:10px;letter-spacing:.04em}
.wc-shop .wc-product span{font-size:12px;color:#b3e0df}
#wc-shop-collections{display:flex;gap:12px;overflow-x:auto;scroll-snap-type:x proximity;padding-bottom:8px;scrollbar-width:thin}
#wc-shop-collections[hidden]{display:none}
.wc-shop .wc-collection{flex:0 0 240px;border-radius:14px;scroll-snap-align:start;background:#17232d;border-color:#ffffff18;position:relative}
.wc-shop .wc-collection img{aspect-ratio:2.5/1;opacity:.9}
.wc-shop .wc-collection b{font-size:13px;margin:10px 12px}
.wc-shop .wc-collection small{display:none}
.wc-shop footer{margin-top:12px;padding-top:12px;justify-content:space-between}
.wc-shop footer button{background:transparent;font-size:12px;min-height:36px}
.wc-filter-toggle{display:none}
#wc-shop-detail .wc-primary{min-height:48px;text-align:center;border-radius:13px}
#wc-shop-detail>.wc-back-to-items{border:0;background:transparent;color:#9edce3}
@media(max-width:760px){
 .wc-shop[open]{width:100vw!important;height:100dvh!important;max-height:100dvh!important;max-width:100vw!important;border:0!important;border-radius:0!important;margin:0!important;padding:max(14px,env(safe-area-inset-top)) 16px max(12px,env(safe-area-inset-bottom))!important;inset:0!important}
 .wc-shop-head{gap:8px;margin-bottom:12px;padding-bottom:12px;align-items:center}
 .wc-shop-head h2{font-size:25px!important;line-height:1.2}
 .wc-shop-head small{font-size:9px;letter-spacing:.1em}
 .wc-shop-head>div:last-child{display:flex;gap:8px;font-size:11px}
 .wc-shop #wc-shop-close{font-size:0;width:40px;height:40px;padding:0;border-radius:50%;min-height:40px;background:#ffffff08}
 .wc-shop #wc-shop-close::after{content:'×';display:block!important;font:24px/1 Inter,system-ui,sans-serif;position:static!important;background:none!important;transform:none!important}
 #wc-shop-balance{font-size:11px;padding:7px 9px}
 .wc-shop-tools{display:grid!important;grid-template-columns:minmax(0,1fr) 70px!important;gap:8px!important;margin-bottom:0}
 #wc-shop-tabs{grid-column:1/-1!important;display:grid!important;grid-template-columns:1fr 1fr;gap:3px;width:100%}
 .wc-shop .wc-filter-toggle{display:block;grid-column:2;grid-row:2;min-height:44px;padding:8px;font-size:12px}
 .wc-shop-tools .wc-search{grid-column:1!important;grid-row:2!important;font-size:0!important;gap:0}
 .wc-shop-tools .wc-search input{min-height:44px!important;font-size:16px!important;width:100%;min-width:0;background:#ffffff06}
 .wc-shop-tools>label:not(.wc-search){display:none!important}
 .wc-shop[data-filters=true] .wc-shop-tools>label:not(.wc-search){display:grid!important;grid-column:1/-1!important;grid-template-columns:74px minmax(0,1fr);align-items:center;font-size:12px;gap:8px}
 .wc-shop[data-filters=true] .wc-filter-toggle{color:#b5eeed;border-color:#8cdcd877}
 .wc-shop-tools select{min-height:42px!important;width:100%;font-size:14px!important}
 #wc-shop-status{font-size:11px;line-height:1.4;margin:9px 0;min-height:0}
 #wc-shop-collections{gap:10px;margin-bottom:8px}
 .wc-shop .wc-collection{flex-basis:190px}
 .wc-product-grid{gap:10px;grid-template-columns:repeat(2,minmax(0,1fr))}
 .wc-shop .wc-product{padding:8px;border-radius:14px;gap:5px}
 .wc-result-count{margin:4px 0 10px}
 .wc-shop footer{flex-direction:row;align-items:center;margin-top:10px;padding-top:8px}
 .wc-shop footer span{display:none}
 .wc-shop footer button{width:100%;min-height:40px}
 .wc-shop[data-detail=true] .wc-shop-tools,.wc-shop[data-detail=true] footer{display:none!important}
 .wc-shop #wc-shop-detail{padding:0 0 14px;height:100%;scroll-padding-bottom:20px}
 #wc-shop-detail>h3{font-size:23px;line-height:1.25;margin-top:12px}
 #wc-shop-detail>.wc-back-to-items{min-height:44px!important;margin:0!important;padding-left:0;text-align:left}
 #wc-shop-detail>img{display:none}
 #wc-shop-detail>small{display:none}
 .wc-preview-card{max-width:none;margin:8px 0;border:1px solid #ffffff14;border-radius:18px}
 .wc-preview-banner{height:auto;aspect-ratio:3/1}
 .wc-preview-avatar{width:82px;height:82px;margin-top:-24px}
 .wc-preview-message{padding:12px 16px;background:#ffffff04;border-radius:12px;margin-top:10px}
 .wc-shop #wc-shop-detail>.wc-primary{position:sticky;bottom:0;z-index:3;box-shadow:0 -10px 20px #101820d9;min-height:50px;font-size:14px}
}
@media(prefers-reduced-motion:no-preference){.wc-shop[open]{animation:wc-shop-enter .2s cubic-bezier(.2,.8,.2,1)}#wc-shop-detail:not(:empty){animation:wc-shop-enter .16s ease-out}}
@keyframes wc-shop-enter{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
/* Coleções v2: todas as camadas preservam proporção; só a arte recebe cor. */
.wc-nameplate-art{position:absolute!important;inset:0;width:100%!important;height:100%!important;object-fit:cover!important;border-radius:7px!important;opacity:.6;pointer-events:none!important;z-index:-1!important}
.wc-has-nameplate{position:relative;isolation:isolate;min-height:30px;display:block;padding:6px 10px!important;border-radius:8px;background:#111c28;color:#fff!important;text-shadow:0 1px 3px #000;overflow:hidden}
.wc-profile-border{position:absolute!important;inset:0;width:100%!important;height:100%!important;object-fit:contain!important;pointer-events:none!important;z-index:4!important;border-radius:0!important;opacity:.85}
.profile-card[data-has-border=true],.wc-preview-card[data-has-border=true]{aspect-ratio:2/3;min-height:0!important}
.profile-card[data-has-border=true] .profile-card-body{padding-inline:14%!important}
.wc-preview-card[data-has-border=true]>b,.wc-preview-card[data-has-border=true]>small{margin-inline:10%}
.wc-profile-art{object-fit:contain!important;z-index:0!important;opacity:.32!important}
.wc-variants{border:1px solid var(--shop-line);padding:10px;margin:12px 0;border-radius:12px;display:flex;flex-wrap:wrap;gap:6px}
.wc-variants legend{padding:0 5px;color:var(--shop-muted);font-size:11px}
.wc-shop .wc-variants button{min-height:40px;font-size:12px}
.wc-bundle{padding:16px;border:1px solid #8bd6d633;border-radius:14px;background:#82d7d808;margin-bottom:16px}
.wc-bundle h3{margin:0 0 8px}.wc-bundle p{color:var(--shop-muted);font-size:12px}
.wc-owned-stickers{display:flex;flex-wrap:wrap;max-height:250px;overflow:auto;gap:8px;border-bottom:1px solid #ffffff20}
.wc-owned-stickers>h4,.wc-owned-stickers>.wc-sticker-grid{width:100%}
.wc-owned-stickers input,.wc-owned-stickers select{min-width:0;max-width:100%;min-height:40px;border:1px solid #ffffff20;border-radius:8px;padding:8px;color:inherit;background:#ffffff08;font:inherit}
.wc-owned-stickers input{flex:1 1 140px}.wc-owned-stickers select{flex:1 1 90px}
.wc-sticker-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px}
.wc-sticker-grid button{min-height:64px!important;clip-path:none!important;border:0!important;background:transparent!important}
.wc-sticker-grid img{width:60px!important;height:60px!important;object-fit:contain}
.wc-sticker-grid p{grid-column:1/-1;font-size:12px}
.is-motion .wc-art-ornament{animation:none!important}
@media(max-width:760px){.wc-shop-tools>label:has(#wc-shop-ownership){grid-column:1/-1}}
/* Perfil: áreas de leitura separadas da arte, com composição comum ao provador.
   A borda original é dividida em duas metades proporcionais; sem miniaturas,
   repetição ou alongamento. O intervalo extra recebe só uma linha de união. */
#wc-live-preview{container-type:inline-size}
html .wc-preview-card.wc-composed-profile{
 position:relative!important;isolation:isolate;container-type:inline-size;
 display:flex!important;flex-direction:column!important;box-sizing:border-box!important;
 width:100%!important;max-width:100%!important;height:auto!important;min-height:0!important;
 aspect-ratio:auto!important;padding:0!important;border:0!important;border-radius:18px!important;
 overflow:hidden!important;background:#121b23!important;box-shadow:none!important;
}
html .wc-preview-card.wc-composed-profile[data-has-border=true]{
 min-height:150cqw!important;aspect-ratio:auto!important;padding:36px 0 38px!important;overflow:visible!important;
}
html .wc-composed-profile[data-has-border=true]::before{
 content:'';position:absolute;inset:0;pointer-events:none;z-index:0;
 border:1px solid #a1b7ad25;border-radius:12px;background:none!important;box-shadow:none!important;
}
html .wc-preview-card.wc-composed-profile>.wc-profile-border{
 position:absolute!important;inset:0 auto auto 0!important;display:block!important;
 width:100%!important;max-width:none!important;max-height:none!important;height:81cqw!important;object-fit:cover!important;object-position:top!important;
 opacity:1!important;pointer-events:none!important;z-index:4!important;border-radius:0!important;
}
html .wc-composed-profile[data-has-border=true]::after{
 content:'';position:absolute;inset:auto auto 0 0;display:block;width:100%;height:81cqw;
 background-image:var(--wc-border-source)!important;background-size:100% 162cqw!important;
 background-position:bottom!important;background-repeat:no-repeat!important;
 filter:var(--wc-border-filter,none);pointer-events:none;z-index:4;
 border:0!important;border-image:none!important;box-shadow:none!important;transform:none!important;
}
html .wc-preview-card.wc-composed-profile .wc-banner-anchor{
 position:relative!important;display:block!important;flex:0 0 auto!important;z-index:1!important;
 width:100%!important;height:auto!important;aspect-ratio:3/1!important;min-height:0!important;
 max-height:160px!important;object-fit:cover!important;border:0!important;box-shadow:none!important;
}
html .wc-preview-card.wc-composed-profile[data-has-border=true] .wc-banner-anchor{
 width:80%!important;margin:0 auto!important;border-radius:10px!important;
}
html .wc-preview-card.wc-composed-profile .wc-avatar-anchor{
 position:relative!important;top:auto!important;left:auto!important;transform:none!important;
 display:block!important;flex:0 0 auto!important;width:76px!important;height:76px!important;
 min-width:76px!important;min-height:76px!important;max-width:76px!important;max-height:76px!important;
 margin:-18px auto 20px!important;padding:0!important;overflow:visible!important;
 border:0!important;border-radius:50%!important;box-shadow:none!important;z-index:6!important;
}
html .wc-preview-card.wc-composed-profile .wc-avatar-anchor :is(.profile-avatar-decorated,.avatar-decorated,.avatar-fallback,.avatar-img,.wc-art-base){
 width:100%!important;height:100%!important;min-width:0!important;min-height:0!important;
 max-width:100%!important;max-height:100%!important;box-sizing:border-box!important;
}
html .wc-composed-profile .wc-avatar-anchor .avatar-fallback{display:flex!important;align-items:center!important;justify-content:center!important;font-size:28px!important}
html .wc-preview-card.wc-composed-profile :is(.profile-card-body,.wc-preview-body).wc-body-anchor{
 position:relative!important;z-index:5!important;display:block!important;box-sizing:border-box!important;
 flex:0 0 auto!important;width:100%!important;max-width:100%!important;min-width:0!important;
 height:auto!important;max-height:none!important;min-height:0!important;overflow:visible!important;
 margin:0!important;padding:0 24px 22px!important;align-self:stretch!important;
 background:none!important;border:0!important;border-radius:0!important;
}
html .wc-preview-card.wc-composed-profile[data-has-border=true] :is(.profile-card-body,.wc-preview-body).wc-body-anchor{padding-inline:16%!important}
.wc-profile-scene{position:relative!important;flex:0 0 auto;z-index:5!important;margin:0 24px 26px;padding-top:18px;border-top:1px solid #ffffff0c}
.wc-composed-profile[data-has-border=true]>.wc-profile-scene{margin:0 16% 8%}
.wc-scene-label{display:block;font:600 10px/1.5 Inter,system-ui,sans-serif;letter-spacing:.09em;text-transform:uppercase;color:#8fa5b4}
.wc-scene-stage{position:relative;height:220px;margin-top:12px;overflow:hidden;isolation:isolate}
html .wc-composed-profile .wc-scene-stage :is(.wc-profile-art,.wc-preview-effect){
 position:relative!important;inset:auto!important;display:block!important;
 width:100%!important;height:100%!important;object-fit:contain!important;object-position:center!important;
 opacity:1!important;mask-image:none!important;clip-path:none!important;pointer-events:none!important;
}
.wc-preview-body>b,.wc-preview-body>small{display:block;position:relative;margin:0;text-align:center;font-size:20px;line-height:1.35;overflow-wrap:anywhere}
.wc-preview-body>small,.wc-preview-caption{font-size:12px;line-height:1.5;color:#a4b6c5;margin:5px 0;text-align:center}
.wc-preview-body .wc-has-nameplate{padding:8px 10px!important;border-radius:8px}
.wc-preview-card[data-tone=light]{background:#edf3f6!important;color:#213442}
.wc-preview-card[data-tone=light] .wc-preview-body :is(small,p){color:#526978}
.wc-shop .wc-preview-mode{flex-basis:100%;font-size:12px;min-height:40px;color:#b5e9e9}
.wc-shop #wc-shop-detail>.wc-primary{position:static!important;box-shadow:none!important}
html .wc-preview-card.wc-composed-profile>.wc-profile-border{mask-image:linear-gradient(#000 82%,transparent)}
html .wc-composed-profile[data-has-border=true]::after{mask-image:linear-gradient(transparent,#000 18%)}

/* Reserva para a parte externa do aro também dentro do provador rolável. */
html .wc-shop .wc-preview-card.wc-composed-profile[data-has-border=true]{width:calc(100% - 32px)!important;max-width:calc(100% - 32px)!important;margin:18px 16px 22px!important}

/* O companheiro se move por trechos e repousa. O sprite não escorrega no chão. */
.wc-avatar-pet.wc-pet-reactive{background:none!important;animation:none!important;width:72px;height:72px;pointer-events:none!important}
.wc-pet-reactive .wc-pet-sprite{display:block;width:72px;height:72px;background-repeat:no-repeat;background-size:432px 72px;image-rendering:pixelated;transform:scaleX(var(--pet-facing,1));transform-origin:center 70%}
.wc-pet-reactive.is-cat .wc-pet-sprite{background-image:url('/assets/avatarfx-cat.png')}
.wc-pet-reactive.is-bird .wc-pet-sprite{background-image:url('/assets/avatarfx-bird.png')}
.wc-pet-reactive[data-behavior=pouncing] .wc-pet-sprite{animation:avatarPetCatFrames .42s steps(6) infinite}
.wc-pet-reactive[data-behavior=flying] .wc-pet-sprite{animation:avatarPetBirdFrames .38s steps(6) infinite}
.wc-pet-reactive[data-behavior=watching] .wc-pet-sprite{scale:1.04 .94}
.wc-pet-reactive[data-behavior=landing] .wc-pet-sprite{scale:1.07 .91}
@media(prefers-reduced-motion:reduce){.wc-pet-reactive .wc-pet-sprite{animation:none!important;scale:1!important}}
.wc-preview-expand{display:none}
@media(max-width:760px),(pointer:coarse) and (hover:none){
 html #modal-overlay #modal-settings .wc-profile-editor{display:flex!important;flex-direction:column;gap:18px}
 html #modal-overlay #modal-settings .wc-profile-controls{width:100%}
 html #modal-overlay #modal-settings .wc-profile-live{order:-1;position:sticky!important;top:52px!important;z-index:15;width:100%;background:var(--m-bg,#10171f);padding:8px 14px;box-sizing:border-box;border-bottom:1px solid #ffffff18}
 html #modal-overlay #modal-settings .wc-profile-live .wc-live-label,html #modal-overlay #modal-settings .wc-profile-live .wc-live-hint{display:none}
 html #modal-overlay #modal-settings .wc-preview-expand{display:block;margin:0 0 8px auto;min-height:36px;padding:6px 10px;border:1px solid #ffffff25;border-radius:9px;background:var(--m-surface,#17222c);color:var(--m-text,#edf3f7)}
 html #modal-overlay #modal-settings #wc-profile-preview.wc-composed-profile{width:100%!important;min-height:0!important;padding:0!important;margin:0!important;overflow:hidden!important;display:grid!important;grid-template-columns:64px minmax(0,1fr)!important;grid-template-rows:40px auto!important;border-radius:12px!important}
 html #modal-overlay #modal-settings #wc-profile-preview .wc-banner-anchor{grid-column:1/-1;grid-row:1;width:100%!important;height:40px!important;max-height:40px!important;margin:0!important;border-radius:0!important;aspect-ratio:auto!important}
 html #modal-overlay #modal-settings #wc-profile-preview .wc-avatar-anchor{grid-column:1;grid-row:2;width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;max-width:44px!important;max-height:44px!important;margin:8px 10px!important}
 html #modal-overlay #modal-settings #wc-profile-preview .wc-body-anchor{grid-column:2;grid-row:2;padding:8px!important;min-height:62px!important}
 html #modal-overlay #modal-settings #wc-profile-preview .wc-preview-name-row{display:block!important}
 html #modal-overlay #modal-settings #wc-profile-preview #wc-preview-name{font-size:min(var(--name-size,22px),22px)!important;text-transform:none!important;line-height:1.4!important;max-width:100%;overflow-wrap:anywhere}
 html #modal-overlay #modal-settings #wc-profile-preview .wc-preview-bio{min-height:0;margin:3px 0!important;font-size:12px;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}
 html #modal-overlay #modal-settings .wc-profile-live:not(.is-expanded) #wc-profile-preview :is(.wc-preview-status,.wc-preview-activity,.wc-preview-badges,.wc-preview-connections,.wc-profile-scene,.wc-profile-border){display:none!important}
 html #modal-overlay #modal-settings .wc-profile-live:not(.is-expanded) #wc-profile-preview::before,html #modal-overlay #modal-settings .wc-profile-live:not(.is-expanded) #wc-profile-preview::after{display:none!important}
 html #modal-overlay #modal-settings .wc-profile-live.is-expanded{position:fixed!important;inset:0!important;z-index:100!important;overflow-y:auto!important;padding:16px 26px!important}
 html #modal-overlay #modal-settings .wc-profile-live.is-expanded #wc-profile-preview{display:flex!important;flex-direction:column!important;min-height:0!important;max-width:360px!important;margin:20px auto!important;padding:22px 0!important}
 html #modal-overlay #modal-settings .wc-profile-live.is-expanded #wc-profile-preview .wc-banner-anchor{height:100px!important;max-height:100px!important}
 html #modal-overlay #modal-settings .wc-profile-live.is-expanded #wc-profile-preview .wc-avatar-anchor{margin:-16px auto 14px!important;width:64px!important;height:64px!important;min-width:64px!important;min-height:64px!important;max-width:64px!important;max-height:64px!important}
 html #modal-overlay #modal-settings .wc-profile-live.is-expanded #wc-profile-preview .wc-body-anchor{padding:0 18px 12px!important}
 html #modal-overlay #modal-settings .wc-profile-live.is-expanded #wc-profile-preview .wc-profile-scene{margin:0 24px 20px!important}
 html #modal-overlay #modal-settings .wc-profile-live.is-expanded #wc-profile-preview .wc-scene-stage{height:230px}
}
/* A tipografia personalizada não herda a fonte nem as maiúsculas do tema. */
:is(.profile-card,.wc-preview-card)[data-font=modern]{--wc-name-face:Inter,system-ui,sans-serif}
:is(.profile-card,.wc-preview-card)[data-font=elegant]{--wc-name-face:"Cormorant Garamond",Georgia,serif}
:is(.profile-card,.wc-preview-card)[data-font=pixel]{--wc-name-face:"Press Start 2P",monospace}
:is(.profile-card,.wc-preview-card)[data-font=retro]{--wc-name-face:Oswald,"Arial Narrow",sans-serif}
:is(.profile-card,.wc-preview-card)[data-font=cyber]{--wc-name-face:Orbitron,"Space Grotesk",sans-serif}
:is(.profile-card,.wc-preview-card)[data-font=gothic]{--wc-name-face:"UnifrakturCook",serif}
:is(.profile-card,.wc-preview-card)[data-font=bold]{--wc-name-face:Inter,system-ui,sans-serif}
:is(.profile-card,.wc-preview-card)[data-font=rounded]{--wc-name-face:Nunito,system-ui,sans-serif}
html #modal-overlay :is(#profile-name,#wc-preview-name){font-family:var(--wc-name-face,Inter,system-ui,sans-serif)!important;text-transform:none!important}
html #modal-overlay #modal-settings #wc-profile-preview #wc-preview-name{font-size:min(var(--name-size,24px),26px)!important;font-weight:var(--name-weight,700)!important;line-height:1.3!important;letter-spacing:normal!important}
html #modal-overlay #modal-settings #wc-profile-preview[data-font=pixel] #wc-preview-name{font-size:min(var(--name-size,22px),17px)!important;line-height:1.55!important}
html #modal-overlay #modal-settings #wc-profile-preview .wc-preview-name-row{display:block;min-width:0}
html #modal-overlay #modal-settings #wc-profile-preview .wc-preview-body .wc-has-nameplate{padding:6px 8px;box-sizing:border-box;overflow:hidden}
@media(max-width:760px),(pointer:coarse) and (hover:none){
 html #modal-overlay #modal-settings .wc-profile-editor{padding-top:24px}
 html #modal-overlay #modal-settings .profile-editor-head{display:none}
 html #modal-overlay #modal-settings .wc-profile-live{position:fixed!important;top:52px!important;left:18px!important;right:18px!important;width:auto!important;margin:0!important;padding:8px 14px!important}
 html #modal-overlay #modal-settings .wc-profile-live.is-expanded{inset:0!important;padding:16px 26px!important}
}
@media(max-width:760px),(pointer:coarse) and (hover:none){
 html #modal-overlay #modal-settings :is(.settings-layout,.settings-content,.settings-pane,.wc-profile-editor){transform:none!important;translate:none!important;filter:none!important;perspective:none!important;animation:none!important;contain:none!important}
}
#profile-wfna:empty,#wc-preview-nameplate:empty,#profile-nameplate:empty{display:none!important}

/* Os cantos usam a arte na proporção original; o miolo não estica folhas e flores. */
@media(min-width:761px) and (hover:hover) and (pointer:fine){
 html #modal-overlay #modal-settings .wc-profile-live{width:100%;max-width:300px;justify-self:center}
 html #modal-overlay #modal-settings #wc-profile-preview.wc-composed-profile{width:100%!important;max-width:280px!important;margin-inline:auto!important}
}
/* Nine-slice: fonte 640×960; cantos escalam uniformemente, só as arestas adaptam.
   Centro transparente, sem fill, recortes soltos ou imagem alongada inteira. */
html :is(#wc-profile-preview,.wc-preview-card).wc-composed-profile[data-has-border=true]{--wc-slice-scale:.30;--wc-border-slice:280 240 280 240;--wc-border-width:84px 72px 84px 72px;overflow:visible!important}
html :is(#wc-profile-preview,.wc-preview-card).wc-composed-profile[data-has-border=true]::before{
 content:''!important;position:absolute!important;inset:-20px!important;z-index:4!important;pointer-events:none!important;
 border:0 solid transparent!important;border-image-source:var(--wc-border-source)!important;
 border-image-slice:var(--wc-border-slice)!important;border-image-width:var(--wc-border-width)!important;
 border-image-repeat:round repeat!important;border-image-outset:0!important;filter:var(--wc-border-filter,none)!important;
 border-radius:0!important;background:none!important;box-shadow:none!important;mask-image:none!important;
}
html :is(#wc-profile-preview,.wc-preview-card).wc-composed-profile[data-has-border=true]::after{display:none!important}
html :is(#wc-profile-preview,.wc-preview-card).wc-composed-profile>.wc-profile-border{display:none!important}
html #modal-overlay #modal-settings #wc-profile-preview.wc-composed-profile{min-height:0!important;height:auto!important;aspect-ratio:auto!important}
@media(min-width:761px) and (hover:hover) and (pointer:fine){
 html #modal-overlay #modal-settings #wc-profile-preview.wc-composed-profile{padding:18px 0!important;max-height:calc(100dvh - 210px)!important;overflow-y:auto!important;scrollbar-width:thin}
 html #modal-overlay #modal-settings #wc-profile-preview .wc-banner-anchor{height:70px!important;max-height:70px!important}
 html #modal-overlay #modal-settings #wc-profile-preview .wc-body-anchor{padding:0 18px 10px!important}
 html #modal-overlay #modal-settings #wc-profile-preview .wc-avatar-anchor{margin-bottom:10px!important;width:54px!important;height:54px!important;min-width:54px!important;min-height:54px!important}
 html #modal-overlay #modal-settings #wc-profile-preview .wc-profile-scene{margin:10px 18px!important;padding-top:10px}
 html #modal-overlay #modal-settings #wc-profile-preview .wc-scene-stage{height:140px}
 html #modal-overlay #modal-settings #wc-profile-preview .wc-preview-bio{min-height:0;margin-block:6px}
 html #modal-overlay #modal-settings #wc-profile-preview .wc-preview-status,html #modal-overlay #modal-settings #wc-profile-preview .wc-preview-activity{padding:5px 8px;margin-top:5px}
}
/* A faixa pertence à linha inteira; nome e avatar mantêm suas medidas. */
html :is(.friend-item,.server-member-row).wc-row-nameplate{position:relative;isolation:isolate;overflow:hidden!important;border-radius:10px!important}
html :is(.friend-item,.server-member-row).wc-row-nameplate>.wc-nameplate-art{z-index:-1!important;opacity:.45!important;object-fit:cover!important;mask-image:linear-gradient(90deg,transparent,#000 70%)}
html .friend-item.wc-row-nameplate .friend-meta{min-width:0!important;flex:1!important}
html .friend-item.wc-row-nameplate .friend-name{display:block!important;width:auto!important;max-width:100%!important;min-height:0!important;padding:0!important;background:none!important;border-radius:0!important;text-shadow:none}
@media(max-width:760px),(pointer:coarse) and (hover:none){
 html :is(#wc-profile-preview,.wc-preview-card).wc-composed-profile[data-has-border=true]{--wc-border-width:56px 48px 56px 48px}
}
html :is(#wc-profile-preview,.wc-preview-card).wc-composed-profile[data-has-border=true]::before{border-image-width:var(--wc-nine-width)!important;z-index:30!important}
@media(max-width:760px),(pointer:coarse) and (hover:none){html :is(#wc-profile-preview,.wc-preview-card).wc-composed-profile[data-has-border=true]{--wc-slice-scale:.20}}

@media(min-width:761px) and (hover:hover) and (pointer:fine){html #modal-overlay #modal-settings #wc-profile-preview.wc-composed-profile{overflow:visible!important}}

/* O fechar do perfil fica abaixo da barra do Electron. */

/* Moldura original inteira, proporcional também nas prévias. */
html :is(#wc-profile-preview,.wc-preview-card).wc-composed-profile[data-has-border=true]::before{
 inset:0!important;border:0!important;border-image:none!important;
 background:var(--wc-border-source) center/contain no-repeat!important;
}

