/* Perfil: estrutura própria; a moldura ilustra o cartão sem governar o texto. */
html #modal-overlay #modal-profile[data-profile-layout=compact].hidden{display:none!important}
html #modal-overlay:has(>#modal-profile[data-profile-layout=compact]:not(.hidden)){
 display:flex!important;align-items:center!important;justify-content:center!important;
 padding:calc(var(--wc-titlebar-height,0px) + 24px) 16px 24px!important;box-sizing:border-box!important;
 background:#03080db8!important;backdrop-filter:none!important;overflow:hidden!important;
}
html #modal-overlay #modal-profile[data-profile-layout=compact]{position:relative!important;inset:auto!important;display:block!important;width:min(440px,calc(100vw - 32px))!important;
 height:auto!important;min-height:0!important;max-height:calc(100dvh - var(--wc-titlebar-height,0px) - 48px)!important;
 max-width:none!important;padding:0!important;margin:0!important;background:transparent!important;border:0!important;
 box-shadow:none!important;clip-path:none!important;filter:none!important;backdrop-filter:none!important;
 transform:none!important;translate:none!important;animation:none!important;will-change:auto!important;contain:none!important;overflow:visible!important}
html #modal-overlay #modal-profile[data-profile-layout=compact]::before,html #modal-overlay #modal-profile[data-profile-layout=compact]::after,html #modal-overlay #modal-profile[data-profile-layout=compact]>.modal-actions{display:none!important}
html #modal-overlay #modal-profile[data-profile-layout=compact]>.mobile-profile-back{display:grid!important;place-items:center!important;position:fixed!important;
 inset:calc(var(--wc-titlebar-height,0px) + 12px) 12px auto auto!important;width:44px!important;height:44px!important;
 min-height:44px!important;margin:0!important;padding:0!important;border:1px solid #ffffff24!important;border-radius:50%!important;
 background:#17252f!important;color:#edf4f6!important;font:400 28px/1 Inter,system-ui,sans-serif!important;
 box-shadow:none!important;clip-path:none!important;z-index:60!important;-webkit-app-region:no-drag!important}
html #modal-overlay #modal-profile[data-profile-layout=compact] #profile-card.wc-composed-profile{--profile-inset:24px;position:relative!important;isolation:isolate;container-type:inline-size;
 display:grid!important;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:86px 32px auto!important;
 width:100%!important;min-width:0!important;max-width:none!important;height:auto!important;min-height:0!important;max-height:none!important;
 aspect-ratio:auto!important;margin:0!important;padding:12px var(--profile-inset) 22px!important;gap:0!important;box-sizing:border-box!important;
 background:#141f29!important;color:#e7edf2!important;border:0!important;border-radius:18px!important;box-shadow:0 20px 60px #0006!important;overflow:visible!important}
html #modal-overlay #modal-profile[data-profile-layout=compact] #profile-card::before,html #modal-overlay #modal-profile[data-profile-layout=compact] #profile-card::after{display:none!important}
html #modal-overlay #modal-profile[data-profile-layout=compact] #profile-card[data-has-border=true]{
 --frame-width:min(440px,calc(100vw - 32px),calc((100dvh - var(--wc-titlebar-height,0px) - 64px)*var(--wc-frame-ratio,.666666667)));
 --profile-inset:11%;width:var(--frame-width)!important;height:calc(var(--frame-width)/var(--wc-frame-ratio,.666666667))!important;
 aspect-ratio:var(--wc-frame-ratio,.666666667)!important;background:transparent!important;box-shadow:none!important;margin-inline:auto!important;
 padding:18px var(--profile-inset) 20%!important;grid-template-rows:56px 24px minmax(0,1fr)!important}
html #modal-overlay #modal-profile[data-profile-layout=compact] #profile-card[data-has-border=true]::before{content:''!important;display:block!important;position:absolute!important;inset:0!important;
 width:auto!important;height:auto!important;background:var(--wc-border-source) center/100% 100% no-repeat!important;
 border:0!important;border-image:none!important;mask-image:none!important;filter:var(--wc-border-filter,none)!important;
 border-radius:0!important;box-shadow:none!important;transform:none!important;pointer-events:none!important;z-index:30!important}
html #modal-overlay #modal-profile[data-profile-layout=compact] #profile-card[data-has-border=true]::after{content:''!important;display:block!important;position:absolute!important;inset:3% 3.4%!important;
 width:auto!important;height:auto!important;min-height:0!important;max-height:none!important;max-width:none!important;
 background:#141f29!important;border:0!important;border-image:none!important;border-radius:10px!important;
 mask-image:none!important;filter:none!important;transform:none!important;opacity:1!important;z-index:0!important;pointer-events:none!important}
html #modal-overlay #modal-profile[data-profile-layout=compact] #profile-card>.wc-profile-border{display:none!important}
html #modal-overlay #modal-profile[data-profile-layout=compact] #profile-card .wc-banner-anchor{grid-column:1;grid-row:1;position:relative!important;inset:auto!important;display:block!important;
 width:100%!important;height:86px!important;max-height:86px!important;min-height:0!important;aspect-ratio:auto!important;margin:0!important;
 background-size:cover!important;background-position:center!important;border:0!important;border-radius:12px!important;box-shadow:none!important;overflow:hidden!important;z-index:1!important}
html #modal-overlay #modal-profile[data-profile-layout=compact] #profile-card[data-has-border=true] .wc-banner-anchor{height:56px!important;max-height:56px!important}
html #modal-overlay #modal-profile[data-profile-layout=compact] #profile-card .wc-avatar-anchor{grid-column:1;grid-row:2;position:relative!important;inset:auto!important;transform:none!important;
 width:64px!important;height:64px!important;min-width:64px!important;min-height:64px!important;max-width:64px!important;max-height:64px!important;
 padding:0!important;margin:-32px auto 0!important;background:transparent!important;border:0!important;border-radius:50%!important;box-shadow:none!important;overflow:visible!important;z-index:6!important}
html #modal-overlay #modal-profile[data-profile-layout=compact] #profile-card .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 #modal-overlay #modal-profile[data-profile-layout=compact] #profile-card .wc-avatar-anchor .avatar-fallback{display:grid!important;place-items:center!important;font-size:26px!important;line-height:1!important}
html #modal-overlay #modal-profile[data-profile-layout=compact] #profile-card .wc-body-anchor{grid-column:1;grid-row:3;position:relative!important;display:grid!important;
 grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;align-content:start!important;gap:5px 14px!important;
 width:100%!important;min-width:0!important;height:auto!important;min-height:0!important;max-height:none!important;
 padding:8px 0 0!important;margin:0!important;border:0!important;border-radius:0!important;background:none!important;overflow:visible!important;z-index:5!important}
html #modal-overlay #modal-profile[data-profile-layout=compact] #profile-card .profile-identity-row{grid-column:1/-1;display:block!important;min-width:0!important;margin:0!important}
html #modal-overlay #modal-profile[data-profile-layout=compact] #profile-card .profile-identity{text-align:center!important;min-width:0!important}
html #modal-overlay #modal-profile[data-profile-layout=compact] #profile-card #profile-name{width:100%!important;min-height:0!important;margin:0!important;
 font-size:min(var(--name-size,23px),23px)!important;line-height:1.25!important;letter-spacing:normal!important;text-transform:none!important;overflow-wrap:anywhere}
html #modal-overlay #modal-profile[data-profile-layout=compact] #profile-card .wc-has-nameplate{padding:6px 9px!important;min-height:34px!important;box-sizing:border-box!important;border-radius:9px!important;background:none!important}
html #modal-overlay #modal-profile[data-profile-layout=compact] #profile-card .wc-nameplate-art{object-fit:cover!important;opacity:1!important;mask-image:none!important}
html #modal-overlay #modal-profile[data-profile-layout=compact] #profile-card #profile-username{display:block;margin-top:4px!important;font:400 12px/1.4 Inter,system-ui,sans-serif!important;color:#99aebc!important}
html #modal-overlay #modal-profile[data-profile-layout=compact] #profile-card .profile-pronouns:empty{display:none}
html #modal-overlay #modal-profile[data-profile-layout=compact] #profile-card .profile-actions{display:flex!important;align-items:start!important;justify-content:center!important;gap:7px!important;width:100%!important;min-width:0!important;margin:10px 0 2px!important;flex-wrap:wrap!important}
html #modal-overlay #modal-profile[data-profile-layout=compact] #profile-card .profile-actions :is(button,summary){min-height:36px!important;width:auto!important;min-width:0!important;box-sizing:border-box!important;
 padding:8px 12px!important;border:1px solid #ffffff1c!important;border-radius:10px!important;background:#22333f!important;color:#d4e7ec!important;
 font:600 12px/1.35 Inter,system-ui,sans-serif!important;text-transform:none!important;clip-path:none!important;box-shadow:none!important;
 white-space:normal!important;transition:background-color .16s,transform .16s;cursor:pointer}
html #modal-overlay #modal-profile[data-profile-layout=compact] #profile-card .profile-actions>.btn-primary{background:#9edce5!important;color:#132c33!important;border-color:transparent!important}
html #modal-overlay #modal-profile[data-profile-layout=compact] #profile-card .profile-more-actions{position:relative;min-width:0;z-index:40}
html #modal-overlay #modal-profile[data-profile-layout=compact] #profile-card .profile-more-actions summary{display:flex!important;align-items:center;list-style:none;gap:6px}
html #modal-overlay #modal-profile[data-profile-layout=compact] #profile-card .profile-more-actions summary::after{content:'';display:block;flex:0 0 6px;width:6px;height:6px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg);align-self:center;margin-top:-3px}
html #modal-overlay #modal-profile[data-profile-layout=compact] #profile-card .profile-more-actions summary::-webkit-details-marker{display:none}
html #modal-overlay #modal-profile[data-profile-layout=compact] #profile-card .profile-more-items{position:absolute;right:0;top:calc(100% + 6px);display:grid;gap:5px;width:180px;padding:7px;border:1px solid #ffffff20;border-radius:12px;background:#1a2934;box-shadow:0 12px 32px #0008}
html #modal-overlay #modal-profile[data-profile-layout=compact] #profile-card .profile-more-items>button{width:100%!important;text-align:left}
html #modal-overlay #modal-profile[data-profile-layout=compact] #profile-card :is(button,summary):focus-visible{outline:2px solid #9edce5;outline-offset:3px}
html #modal-overlay #modal-profile[data-profile-layout=compact] #profile-card .profile-badges{grid-column:1;display:flex;flex-wrap:wrap;gap:4px!important;align-items:center;margin:0!important}
html #modal-overlay #modal-profile[data-profile-layout=compact] #profile-card .profile-badges span{padding:2px 5px!important;font-size:10px!important}
html #modal-overlay #modal-profile[data-profile-layout=compact] #profile-card .profile-status-line{grid-column:2;margin:0!important;padding:0!important;border:0!important;background:none!important;align-self:center;font:400 11px/1.45 Inter,system-ui,sans-serif!important;color:#a9c0cb!important;overflow-wrap:anywhere}
html #modal-overlay #modal-profile[data-profile-layout=compact] #profile-card .profile-activity{grid-column:1/-1;padding:7px 9px!important;margin:0!important;font-size:11px!important;border-radius:10px!important;background:#ffffff05!important;border:1px solid #ffffff0b!important}
html #modal-overlay #modal-profile[data-profile-layout=compact] #profile-card .profile-activity :is(span,strong,small){font-size:11px!important;line-height:1.4!important}
html #modal-overlay #modal-profile[data-profile-layout=compact] #profile-card .profile-about{grid-column:1}
html #modal-overlay #modal-profile[data-profile-layout=compact] #profile-card .profile-info-grid{grid-column:2;display:flex!important;flex-direction:column!important;gap:4px!important}
html #modal-overlay #modal-profile[data-profile-layout=compact] #profile-card .wc-body-anchor>.profile-section-block:not(.profile-about){grid-column:1/-1}
html #modal-overlay #modal-profile[data-profile-layout=compact] #profile-card .profile-section-block{min-width:0!important;padding:6px 0!important;margin:0!important;border-bottom:1px solid #ffffff0b!important;background:none!important}
html #modal-overlay #modal-profile[data-profile-layout=compact] #profile-card .profile-section-block:has(.profile-empty){display:none!important}
html #modal-overlay #modal-profile[data-profile-layout=compact] #profile-card .profile-section-label{font:650 9px/1.4 Inter,system-ui,sans-serif!important;letter-spacing:.08em!important;color:#90a8b7!important}
html #modal-overlay #modal-profile[data-profile-layout=compact] #profile-card #profile-bio{font:400 12px/1.5 Inter,system-ui,sans-serif!important;margin:5px 0 0!important;color:#dee7ed!important;white-space:pre-wrap;overflow-wrap:anywhere}
html #modal-overlay #modal-profile[data-profile-layout=compact] #profile-card :is(.profile-chips,.profile-common-servers){display:flex;flex-wrap:wrap;gap:4px!important;margin-top:5px!important}
html #modal-overlay #modal-profile[data-profile-layout=compact] #profile-card :is(.profile-role,.profile-server-chip){padding:4px 6px!important;font:500 10px/1.4 Inter,system-ui,sans-serif!important;background:#ffffff05!important;border-radius:7px!important}
html #modal-overlay #modal-profile[data-profile-layout=compact] #profile-card .profile-server-chip img{width:14px!important;height:14px!important}
html #modal-overlay #modal-profile[data-profile-layout=compact] #profile-card :is(.profile-meta,.profile-stats){grid-column:1/-1;margin:0!important;padding:0!important;font:400 10px/1.5 Inter,system-ui,sans-serif!important;text-align:center!important;justify-content:center!important;color:#92a8b6!important}
html #modal-overlay #modal-profile[data-profile-layout=compact] #profile-card .profile-stats>span{background:none!important;border:0!important;padding:0!important}
html #modal-overlay #modal-profile[data-profile-layout=compact] #profile-card #profile-effect-layer{position:absolute;inset:0;pointer-events:none;z-index:1}
html #modal-overlay #modal-profile[data-profile-layout=compact] #profile-card .wc-profile-scene{position:relative;grid-column:1;grid-row:4;display:flex!important;flex-direction:column;min-height:0!important;height:96px!important;margin:8px 0 0!important;padding:0!important;z-index:5}
html #modal-overlay #modal-profile[data-profile-layout=compact] #profile-card .wc-scene-label{font:600 9px/1.5 Inter,system-ui,sans-serif;letter-spacing:.08em;color:#93aab8}
html #modal-overlay #modal-profile[data-profile-layout=compact] #profile-card .wc-scene-stage{height:auto!important;min-height:0;flex:1;margin-top:3px!important}
html #modal-overlay #modal-profile[data-profile-layout=compact] #profile-card[data-has-border=true] .wc-profile-scene{grid-row:1;justify-self:end;align-self:start;width:64px!important;height:64px!important;margin:0!important;z-index:7}
html #modal-overlay #modal-profile[data-profile-layout=compact] #profile-card[data-has-border=true] .wc-scene-label{display:none}
html #modal-overlay #modal-profile[data-profile-layout=compact] #profile-card .wc-avatar-pet{position:absolute!important;margin:0!important;padding:0!important;width:72px!important;height:72px!important;grid-area:auto!important;left:0!important;top:0!important;right:auto!important;bottom:auto!important;pointer-events:none!important;z-index:35!important}
@media(hover:hover) and (pointer:fine){html #modal-overlay #modal-profile[data-profile-layout=compact] #profile-card .profile-actions :is(button,summary):hover{background:#314956!important}html #modal-overlay #modal-profile[data-profile-layout=compact] #profile-card .profile-actions>.btn-primary:hover{background:#b7eaf0!important}}
@media(max-height:700px),(max-width:380px){
 html #modal-overlay #modal-profile[data-profile-layout=compact] #profile-card.wc-composed-profile{grid-template-rows:60px 26px auto!important;padding-block:12px 20px!important}
 html #modal-overlay #modal-profile[data-profile-layout=compact] #profile-card[data-has-border=true]{grid-template-rows:60px 26px minmax(0,1fr)!important}
 html #modal-overlay #modal-profile[data-profile-layout=compact] #profile-card .wc-banner-anchor{height:60px!important;max-height:60px!important}
 html #modal-overlay #modal-profile[data-profile-layout=compact] #profile-card .wc-avatar-anchor{width:52px!important;height:52px!important;min-width:52px!important;min-height:52px!important;max-width:52px!important;max-height:52px!important;margin-top:-26px!important}
 html #modal-overlay #modal-profile[data-profile-layout=compact] #profile-card .wc-body-anchor{gap:3px 10px!important;padding-top:7px!important}
 html #modal-overlay #modal-profile[data-profile-layout=compact] #profile-card .profile-actions{margin-top:6px!important}
 html #modal-overlay #modal-profile[data-profile-layout=compact] #profile-card .profile-section-block{padding-block:5px!important}
 html #modal-overlay #modal-profile[data-profile-layout=compact] #profile-card .profile-activity{padding:5px 8px!important}
}
@media(prefers-reduced-motion:reduce){html #modal-overlay #modal-profile[data-profile-layout=compact] #profile-card *{transition:none!important}}

/* Área segura: as flores grandes do rodapé não recebem texto por baixo. */
html #modal-overlay #modal-profile[data-profile-layout=compact] #profile-card[data-has-border=true] .wc-body-anchor{gap:3px 10px!important;padding-top:7px!important}
html #modal-overlay #modal-profile[data-profile-layout=compact] #profile-card[data-has-border=true] .profile-section-block{padding-block:4px!important}
html #modal-overlay #modal-profile[data-profile-layout=compact] #profile-card[data-has-border=true] .profile-actions{margin-top:6px!important}
html #modal-overlay #modal-profile[data-profile-layout=compact] #profile-card[data-has-border=true] .profile-actions :is(button,summary){min-height:32px!important;padding:6px 10px!important}
html #modal-overlay #modal-profile[data-profile-layout=compact] #profile-card[data-has-border=true] .profile-activity{padding:5px 8px!important}
html #modal-overlay #modal-profile[data-profile-layout=compact] #profile-card[data-has-border=true] .wc-avatar-anchor{width:52px!important;height:52px!important;min-width:52px!important;min-height:52px!important;max-width:52px!important;max-height:52px!important;margin-top:-28px!important}

/* O editor usa uma composição própria de prévia, sem herdar os recortes antigos da loja. */
html #modal-overlay #modal-settings .wc-profile-live{container-type:inline-size;min-width:0}
html #modal-overlay #modal-settings .wc-profile-live #wc-profile-preview.wc-composed-profile{
 position:relative!important;isolation:isolate;display:grid!important;grid-template-columns:minmax(0,1fr)!important;
 grid-template-rows:54px 24px minmax(0,1fr) auto!important;align-content:start!important;
 width:100%!important;max-width:100%!important;height:auto!important;min-height:0!important;max-height:none!important;
 padding:16px 10% 22px!important;margin:0!important;gap:0!important;box-sizing:border-box!important;
 border:0!important;border-radius:14px!important;background:#141f29!important;overflow:visible!important;
}
html #modal-overlay #modal-settings .wc-profile-live #wc-profile-preview.wc-composed-profile[data-has-border=true]{
 height:calc(100cqw / var(--wc-frame-ratio,.666666667))!important;aspect-ratio:var(--wc-frame-ratio,.666666667)!important;
 background:transparent!important;min-height:0!important;
}
html #modal-overlay #modal-settings .wc-profile-live #wc-profile-preview.wc-composed-profile::before,html #modal-overlay #modal-settings .wc-profile-live #wc-profile-preview.wc-composed-profile::after{display:none!important}
html #modal-overlay #modal-settings .wc-profile-live #wc-profile-preview.wc-composed-profile[data-has-border=true]::before{
 content:''!important;display:block!important;position:absolute!important;inset:0!important;width:auto!important;height:auto!important;
 background:var(--wc-border-source) center/100% 100% no-repeat!important;filter:var(--wc-border-filter,none)!important;
 border:0!important;border-image:none!important;border-radius:0!important;mask-image:none!important;
 pointer-events:none!important;z-index:30!important;transform:none!important;
}
html #modal-overlay #modal-settings .wc-profile-live #wc-profile-preview.wc-composed-profile[data-has-border=true]::after{
 content:''!important;display:block!important;position:absolute!important;inset:3% 3.4%!important;
 width:auto!important;height:auto!important;min-height:0!important;max-height:none!important;background:#141f29!important;
 border:0!important;border-image:none!important;border-radius:9px!important;filter:none!important;mask-image:none!important;
 opacity:1!important;transform:none!important;pointer-events:none!important;z-index:0!important;
}
html #modal-overlay #modal-settings .wc-profile-live #wc-profile-preview>.wc-profile-border{display:none!important}
html #modal-overlay #modal-settings .wc-profile-live #wc-profile-preview .wc-banner-anchor{
 grid-column:1!important;grid-row:1!important;position:relative!important;width:100%!important;height:54px!important;
 max-height:54px!important;min-height:0!important;aspect-ratio:auto!important;margin:0!important;border-radius:9px!important;z-index:1!important;
}
html #modal-overlay #modal-settings .wc-profile-live #wc-profile-preview .wc-avatar-anchor{
 grid-column:1!important;grid-row:2!important;position:relative!important;inset:auto!important;transform:none!important;
 width:48px!important;height:48px!important;min-width:48px!important;min-height:48px!important;max-width:48px!important;max-height:48px!important;
 margin:-24px auto 0!important;padding:0!important;z-index:6!important;
}
html #modal-overlay #modal-settings .wc-profile-live #wc-profile-preview .wc-body-anchor{
 grid-column:1!important;grid-row:3!important;position:relative!important;display:flex!important;flex-direction:column!important;gap:5px!important;
 width:100%!important;min-width:0!important;min-height:0!important;height:auto!important;max-height:none!important;
 margin:0!important;padding:8px 0 0!important;box-sizing:border-box!important;overflow:visible!important;z-index:5!important;
}
html #modal-overlay #modal-settings .wc-profile-live #wc-profile-preview .wc-preview-name-row{min-width:0!important;display:block!important;text-align:center}
html #modal-overlay #modal-settings .wc-profile-live #wc-profile-preview #wc-preview-name{margin:0!important;font-size:min(var(--name-size,22px),22px)!important;line-height:1.3!important;text-transform:none!important}
html #modal-overlay #modal-settings .wc-profile-live #wc-profile-preview .wc-has-nameplate{width:100%!important;padding:5px 7px!important;border-radius:8px!important;box-sizing:border-box!important}
html #modal-overlay #modal-settings .wc-profile-live #wc-profile-preview :is(.wc-preview-username,.wc-preview-bio,.wc-preview-status){margin:0!important;padding:0!important;min-height:0!important;font-size:11px!important;line-height:1.45!important}
html #modal-overlay #modal-settings .wc-profile-live #wc-profile-preview .wc-preview-username{text-align:center;color:#99aebc}
html #modal-overlay #modal-settings .wc-profile-live #wc-profile-preview .wc-preview-badges{display:flex!important;gap:4px!important;margin:0!important}
html #modal-overlay #modal-settings .wc-profile-live #wc-profile-preview .wc-preview-badges span{font-size:10px!important}
html #modal-overlay #modal-settings .wc-profile-live #wc-profile-preview .wc-preview-activity{margin:0!important;padding:6px 8px!important;border-radius:9px!important;background:#ffffff05!important;font-size:11px!important}
html #modal-overlay #modal-settings .wc-profile-live #wc-profile-preview .wc-preview-activity :is(b,strong,small){font-size:11px!important;line-height:1.4!important}
html #modal-overlay #modal-settings .wc-profile-live #wc-profile-preview .wc-profile-scene{
 grid-column:1!important;grid-row:4!important;position:relative!important;width:100%!important;height:76px!important;min-height:0!important;
 margin:5px 0 0!important;padding:0!important;border:0!important;display:flex!important;flex-direction:column!important;z-index:5!important;
}
html #modal-overlay #modal-settings .wc-profile-live #wc-profile-preview .wc-scene-label{text-align:center;font-size:9px!important;line-height:14px!important}
html #modal-overlay #modal-settings .wc-profile-live #wc-profile-preview .wc-scene-stage{flex:1;min-height:0!important;height:0!important;width:100%!important;margin:0!important;overflow:hidden!important}
html #modal-overlay #modal-settings .wc-profile-live #wc-profile-preview .wc-scene-stage canvas{display:block!important;width:100%!important;height:100%!important;object-fit:contain!important}
@media(max-width:760px),(pointer:coarse) and (hover:none){
 html #modal-overlay #modal-settings .wc-profile-live:not(.is-expanded) #wc-profile-preview.wc-composed-profile{height:auto!important;aspect-ratio:auto!important;grid-template-columns:56px minmax(0,1fr)!important;grid-template-rows:36px auto!important;padding:0!important;background:#141f29!important;overflow:hidden!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:not(.is-expanded) #wc-profile-preview .wc-banner-anchor{grid-column:1/-1!important;grid-row:1!important;height:36px!important;max-height:36px!important;border-radius:0!important}
 html #modal-overlay #modal-settings .wc-profile-live:not(.is-expanded) #wc-profile-preview .wc-avatar-anchor{grid-column:1!important;grid-row:2!important;width:40px!important;height:40px!important;min-width:40px!important;min-height:40px!important;max-width:40px!important;max-height:40px!important;margin:8px!important}
 html #modal-overlay #modal-settings .wc-profile-live:not(.is-expanded) #wc-profile-preview .wc-body-anchor{grid-column:2!important;grid-row:2!important;padding:8px!important;min-height:0!important}
 html #modal-overlay #modal-settings .wc-profile-live:not(.is-expanded) #wc-profile-preview :is(.wc-preview-badges,.wc-preview-status,.wc-preview-activity,.wc-preview-connections,.wc-profile-scene){display:none!important}
 html #modal-overlay #modal-settings .wc-profile-live.is-expanded{container-type:normal}
 html #modal-overlay #modal-settings .wc-profile-live.is-expanded #wc-profile-preview.wc-composed-profile{width:min(340px,calc(100vw - 52px))!important;height:auto!important;aspect-ratio:var(--wc-frame-ratio,.666666667)!important;margin:14px auto!important;grid-template-rows:54px 24px minmax(0,1fr) auto!important;max-height:none!important}
}

@media(max-width:760px),(pointer:coarse) and (hover:none){
 html #modal-overlay #modal-settings .wc-profile-live.is-expanded #wc-profile-preview .wc-banner-anchor{height:54px!important;max-height:54px!important}
 html #modal-overlay #modal-settings .wc-profile-live.is-expanded #wc-profile-preview .wc-avatar-anchor{width:48px!important;height:48px!important;min-width:48px!important;min-height:48px!important;max-width:48px!important;max-height:48px!important;margin:-24px auto 0!important}
 html #modal-overlay #modal-settings .wc-profile-live.is-expanded #wc-profile-preview .wc-body-anchor{padding:8px 0 0!important}
 html #modal-overlay #modal-settings .wc-profile-live.is-expanded #wc-profile-preview .wc-profile-scene{margin:5px 0 0!important}
 html #modal-overlay #modal-settings .wc-profile-live.is-expanded #wc-profile-preview .wc-scene-stage{height:0!important;min-height:0!important}
}

/* Cartão comum: a altura vem do conteúdo, sem alongar os ornamentos. */
html #modal-overlay #modal-profile[data-profile-layout=compact]{width:min(500px,calc(100vw - 32px))!important;max-height:calc(100dvh - var(--wc-titlebar-height,0px) - 48px)!important;overflow-y:auto!important;overflow-x:hidden!important;scrollbar-width:thin}
html #modal-overlay #modal-profile[data-profile-layout=compact] #profile-card.wc-composed-profile{width:100%!important;height:auto!important;min-height:0!important;aspect-ratio:auto!important;
 --profile-inset:28px;grid-template-rows:96px 32px auto auto!important;padding:16px var(--profile-inset) 24px!important;border-radius:20px!important}
html #modal-overlay #modal-profile[data-profile-layout=compact] #profile-card[data-has-border=true]{--profile-inset:50px;padding-top:36px!important;padding-bottom:54px!important}
html #modal-overlay #modal-profile[data-profile-layout=compact] #profile-card[data-has-border=true]::before{display:none!important}
html #modal-overlay #modal-profile[data-profile-layout=compact] #profile-card[data-has-border=true]::after{inset:calc(22 * var(--wc-border-unit,.4px))!important;border-radius:20px!important}
html #modal-overlay #modal-profile[data-profile-layout=compact] #profile-card .wc-banner-anchor{height:96px!important;max-height:96px!important;border-radius:13px!important}
html #modal-overlay #modal-profile[data-profile-layout=compact] #profile-card .wc-avatar-anchor{width:64px!important;height:64px!important;min-width:64px!important;min-height:64px!important;max-width:64px!important;max-height:64px!important;margin-top:-32px!important}
html #modal-overlay #modal-profile[data-profile-layout=compact] #profile-card .wc-body-anchor{gap:6px 14px!important;padding-top:10px!important}
html #modal-overlay #modal-profile[data-profile-layout=compact] #profile-card .profile-section-block{padding-block:6px!important}
html #modal-overlay #modal-profile[data-profile-layout=compact] #profile-card.wc-composed-profile .wc-profile-scene{grid-row:4!important;grid-column:1!important;width:100%!important;height:104px!important;justify-self:stretch!important;align-self:auto!important;margin:10px 0 0!important;padding:0!important;border:0!important;display:flex!important}
html #modal-overlay #modal-profile[data-profile-layout=compact] #profile-card.wc-composed-profile .wc-scene-label{display:block!important;text-align:center;font-size:10px!important;line-height:16px!important}
html #modal-overlay #modal-profile[data-profile-layout=compact] #profile-card .wc-scene-stage{height:0!important;min-height:0!important;flex:1!important;overflow:hidden!important}
html #modal-overlay #modal-profile[data-profile-layout=compact] #profile-card .wc-scene-stage canvas{display:block!important;width:100%!important;height:100%!important;object-fit:contain!important}
/* Oito peças mantêm a escala e a identidade; só o fio de ligação acompanha o cartão. */
html .wc-profile-frame{position:absolute!important;inset:0!important;pointer-events:none!important;z-index:30!important;border:0!important;border-radius:20px!important}
html .wc-profile-frame::before{content:'';position:absolute;inset:calc(22 * var(--wc-border-unit,.4px));border:1px solid #9e8854a6;border-radius:18px;pointer-events:none}
html .wc-profile-frame>span{position:absolute!important;display:block!important;background-image:var(--wc-border-source)!important;background-repeat:no-repeat!important;background-size:calc(640 * var(--wc-border-unit,.4px)) calc(960 * var(--wc-border-unit,.4px))!important;filter:var(--wc-border-filter,none);pointer-events:none}
html .wc-profile-frame :is(.wc-frame-tl,.wc-frame-tr,.wc-frame-bl,.wc-frame-br){width:calc(240 * var(--wc-border-unit,.4px));height:calc(280 * var(--wc-border-unit,.4px))}
html .wc-frame-tl{left:0;top:0;background-position:0 0}
html .wc-frame-tr{right:0;top:0;background-position:calc(-400 * var(--wc-border-unit,.4px)) 0}
html .wc-frame-bl{left:0;bottom:0;background-position:0 calc(-680 * var(--wc-border-unit,.4px))}
html .wc-frame-br{right:0;bottom:0;background-position:calc(-400 * var(--wc-border-unit,.4px)) calc(-680 * var(--wc-border-unit,.4px))}
html .wc-profile-frame :is(.wc-frame-top,.wc-frame-bottom){left:50%;transform:translateX(-50%);width:calc(160 * var(--wc-border-unit,.4px));height:calc(280 * var(--wc-border-unit,.4px))}
html .wc-frame-top{top:0;background-position:calc(-240 * var(--wc-border-unit,.4px)) 0}
html .wc-frame-bottom{bottom:0;background-position:calc(-240 * var(--wc-border-unit,.4px)) calc(-680 * var(--wc-border-unit,.4px))}
html .wc-profile-frame :is(.wc-frame-left,.wc-frame-right){top:50%;transform:translateY(-50%);width:calc(240 * var(--wc-border-unit,.4px));height:calc(400 * var(--wc-border-unit,.4px))}
html .wc-frame-left{left:0;background-position:0 calc(-280 * var(--wc-border-unit,.4px))}
html .wc-frame-right{right:0;background-position:calc(-400 * var(--wc-border-unit,.4px)) calc(-280 * var(--wc-border-unit,.4px))}
/* No editor a prévia modular também segue os seus campos, sem quadro 2:3 vazio. */
html #modal-overlay #modal-settings .wc-profile-live #wc-profile-preview.wc-composed-profile[data-has-border=true]{height:auto!important;aspect-ratio:auto!important;min-height:0!important;padding:32px 34px 44px!important}
html #modal-overlay #modal-settings .wc-profile-live #wc-profile-preview.wc-composed-profile[data-has-border=true]::before{display:none!important}
html #modal-overlay #modal-settings .wc-profile-live #wc-profile-preview.wc-composed-profile[data-has-border=true]::after{inset:calc(22 * var(--wc-border-unit,.4px))!important;border-radius:18px!important}
html #modal-overlay #modal-settings .wc-profile-live #wc-profile-preview .wc-profile-frame{z-index:30!important}
@media(max-height:700px),(max-width:760px){
 html #modal-overlay #modal-profile[data-profile-layout=compact] #profile-card.wc-composed-profile{grid-template-rows:60px 26px auto auto!important;padding-top:12px!important}
 html #modal-overlay #modal-profile[data-profile-layout=compact] #profile-card[data-has-border=true]{--profile-inset:40px;padding-top:24px!important;padding-bottom:38px!important}
 html #modal-overlay #modal-profile[data-profile-layout=compact] #profile-card .wc-banner-anchor{height:60px!important;max-height:60px!important}
 html #modal-overlay #modal-profile[data-profile-layout=compact] #profile-card .wc-avatar-anchor{width:52px!important;height:52px!important;min-width:52px!important;min-height:52px!important;max-width:52px!important;max-height:52px!important;margin-top:-26px!important}
 html #modal-overlay #modal-profile[data-profile-layout=compact] #profile-card .wc-body-anchor{gap:3px 10px!important;padding-top:7px!important}
 html #modal-overlay #modal-profile[data-profile-layout=compact] #profile-card.wc-composed-profile .wc-profile-scene{height:82px!important;margin-top:6px!important}
 html #modal-overlay #modal-settings .wc-profile-live:not(.is-expanded) .wc-profile-frame{display:none!important}
 html #modal-overlay #modal-settings .wc-profile-live:not(.is-expanded) #wc-profile-preview.wc-composed-profile[data-has-border=true]{height:auto!important;aspect-ratio:auto!important;padding:0!important}
 html #modal-overlay #modal-settings .wc-profile-live.is-expanded #wc-profile-preview.wc-composed-profile[data-has-border=true]{height:auto!important;aspect-ratio:auto!important;padding:26px 32px 40px!important}
}

/* Jardim Noturno: recortes escolhidos entre os grupos, sem dividir pétalas ou lanternas. */
html .wc-profile-frame>span{mask-image:none!important}
html .wc-profile-frame :is(.wc-frame-tl,.wc-frame-tr){height:calc(330 * var(--wc-border-unit,.4px))}
html .wc-profile-frame :is(.wc-frame-bl,.wc-frame-bottom){height:calc(310 * var(--wc-border-unit,.4px));background-position-y:calc(-650 * var(--wc-border-unit,.4px))}
html .wc-profile-frame .wc-frame-br{height:calc(500 * var(--wc-border-unit,.4px));background-position-y:calc(-460 * var(--wc-border-unit,.4px))}
html .wc-profile-frame .wc-frame-top{height:calc(330 * var(--wc-border-unit,.4px))}
html .wc-profile-frame .wc-frame-left{height:calc(320 * var(--wc-border-unit,.4px));background-position-y:calc(-330 * var(--wc-border-unit,.4px))}
html .wc-profile-frame .wc-frame-right{display:none!important}

/* As peças que atravessam o mesmo ramo ficam contíguas, não flutuando no meio da lateral. */
html .wc-profile-frame .wc-frame-left{top:calc(330 * var(--wc-border-unit,.4px));transform:none}
html .wc-profile-frame :is(.wc-frame-top,.wc-frame-bottom){left:calc(240 * var(--wc-border-unit,.4px));transform:none}

/* As emendas são desenhadas, sem repetir as folhas. */
html .wc-profile-frame .wc-frame-connectors{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;pointer-events:none!important;overflow:visible}
html .wc-frame-connectors .wc-vine-shadow{stroke:#302c1b;stroke-width:3;stroke-linecap:round}
html .wc-frame-connectors .wc-vine-gold{stroke:#a58e56;stroke-width:1.1;stroke-linecap:round}
html .wc-profile-frame .wc-frame-left{mask-image:linear-gradient(#000 calc(100% - 4px),transparent)!important}
html .wc-profile-frame .wc-frame-tr{mask-image:linear-gradient(#000 calc(100% - 4px),transparent)!important}
html .wc-profile-frame .wc-frame-br{mask-image:linear-gradient(transparent,#000 4px)!important}
html .wc-profile-frame :is(.wc-frame-top,.wc-frame-bottom){mask-image:linear-gradient(90deg,#000 calc(100% - 4px),transparent)!important}

/* Arte preparada para adaptação: os recortes centrais contêm somente trilhos retos.
   Flores e lanternas ficam inteiras nos cantos, com escala uniforme. */
html [data-frame-renderer=rails]>.wc-profile-frame>span,
html [data-frame-renderer=rails]>.wc-profile-frame>.wc-frame-connectors{display:none!important}
html [data-frame-renderer=rails]>.wc-profile-frame::before{
 content:''!important;position:absolute!important;inset:0!important;display:block!important;
 border:0 solid transparent!important;border-image-source:var(--wc-border-source)!important;
 border-image-slice:500 360 500 360!important;
 border-image-width:calc(500 * var(--wc-border-unit,.2px)) calc(360 * var(--wc-border-unit,.2px))!important;
 border-image-repeat:stretch!important;border-image-outset:0!important;border-radius:0!important;
 background:none!important;filter:var(--wc-border-filter,none)!important;pointer-events:none!important;
}
html #modal-overlay #modal-profile[data-profile-layout=compact] #profile-card[data-frame-renderer=rails]::after,
html #modal-overlay #modal-settings .wc-profile-live #wc-profile-preview[data-frame-renderer=rails]::after{
 inset:calc(56 * var(--wc-border-unit,.2px)) calc(48 * var(--wc-border-unit,.2px))!important;border-radius:18px!important;
}
