/* Selected character detail only; entry and team art retain their sizes. */
body:is([data-studio-page=wutheringwave],[data-studio-page=endfield],[data-studio-page=zzz],[data-studio-page=outlanders]) .sgrowth-entry{display:none!important}
body[data-studio-page=wutheringwave] .ca-home-head{display:none!important}
body[data-studio-page=wutheringwave] #combatArchive{padding-top:0!important;margin-top:12px!important}
body[data-studio-page=wutheringwave] .ca-home-grid{margin-top:0!important}
.studio-inline-values{display:block!important;column-count:1!important;padding-left:18px;margin:6px 0;font-size:13px;line-height:1.45}
.studio-inline-values li{display:list-item!important;margin:3px 0;break-inside:avoid}
.studio-inline-lower{padding:9px 10px;border-top:1px solid #8aa3b344;margin-top:8px;color:inherit}
.studio-inline-lower h4{font-size:12px;margin:0 0 6px}
.studio-inline-ranks{display:flex;gap:4px;flex-wrap:wrap}
.studio-inline-ranks button{flex:1;min-width:28px;padding:6px 3px;background:transparent;color:inherit;border:1px solid #8aa3b366;border-radius:3px;font-size:11px}
.studio-inline-ranks button[aria-pressed=true]{background:#bcdbe4;color:#102638}
.studio-inline-lower details{font-size:11px;line-height:1.5}
body[data-studio-page=endfield] #efCharacterDetails.ef-fit-detail .ef-cd-scroll{overflow:auto!important;display:block!important}
body[data-studio-page=endfield] #efCharacterDetails.ef-fit-detail .ef-cd-inner{display:block!important;overflow:visible!important}
body[data-studio-page=endfield] .studio-ef-detail-art{display:block;width:100%;height:27svh;min-height:150px;object-fit:contain;object-position:50% 40%;margin:0 auto 6px}
body[data-studio-page=endfield] #efCharacterRecordPager{min-height:120px;max-height:35svh;overflow:auto}
body[data-studio-page=endfield] .dupe-card>img{width:100%!important;height:33svh!important;object-fit:contain!important}
body[data-studio-page=endfield] .studio-potential-summary{overflow:visible!important;max-height:none!important}
body[data-studio-page=zzz] .modal-cast-card .modal-cast-image-wrap{aspect-ratio:auto!important;height:30svh!important;min-height:180px!important}
body[data-studio-page=zzz] .modal-cast-card .modal-cast-image{object-fit:contain!important;object-position:50% 45%!important;transform:scale(1.17)!important;max-width:none!important}
/* Vivian's source has wider transparent margins than the other mindscapes. */
body[data-studio-page=zzz] .modal-cast-card:has(.modal-cast-image.base[src*="zzz-vivian-mindscape"]) .modal-cast-image.base{transform:scale(1.4)!important;object-position:50% 45%!important}
body[data-studio-page=zzz] .studio-zzz-chain-values{display:block!important;column-count:1!important;grid-template-columns:1fr!important;max-height:none!important;overflow:visible!important;font-size:13px!important}
body[data-studio-page=zzz] .studio-zzz-chain-values li{display:list-item!important;margin:4px 0!important;line-height:1.4!important}
body[data-studio-page=zzz] .studio-zzz-chain-result{max-height:none!important;overflow:visible!important}
body[data-studio-page=outlanders] #adventurerProfile .profile-portrait:not(.profile-landscape){width:min(100%,360px);height:38svh;min-height:240px;object-fit:contain}
.studio-endgame-entry{display:block;box-sizing:border-box;margin:12px 0;padding:16px 18px;border:1px solid #8ca6b766;border-radius:5px;text-decoration:none;background:#132837;color:#eff7fa;text-shadow:none}
.studio-endgame-entry small{display:block;font-size:10px;letter-spacing:.13em;color:#a8d5df}
.studio-endgame-entry b{font-size:19px;display:block;margin:4px 0}
.studio-endgame-entry span{font-size:12px;color:#c5dbe2}
/* A single profile layout. Image and upper original text always stay present. */
html body[data-studio-page=wutheringwave] #caProfile .ca-profile-head{padding:6px 74px 6px 10px!important;flex:none!important;gap:4px!important}
html body[data-studio-page=wutheringwave] #caProfile .ca-profile-head h2{font-size:21px!important;line-height:1.2!important;margin:2px 0!important}
html body[data-studio-page=wutheringwave] #caProfile .ca-profile-head small{font-size:8px!important}
html body[data-studio-page=wutheringwave] #caProfile .ca-profile-head p{font-size:10px!important;margin:2px 0!important}
html body[data-studio-page=wutheringwave] #caProfile .ca-profile-head :is(.ca-btn,[data-growth-shortcut],.studio-character-url){font-size:10px!important;padding:5px 7px!important}
html body[data-studio-page=wutheringwave] #caProfile #caProfileArt{display:flex!important;flex:none!important;height:var(--inline-art-height,28dvh)!important;max-height:var(--inline-art-height,28dvh)!important;min-height:24px!important;overflow:hidden!important}
html body[data-studio-page=wutheringwave] #caProfile #caProfileArt .ca-art{width:min(100%,calc(var(--inline-art-height,28dvh) * var(--ca-art-ratio)))!important;max-height:none!important}
html body[data-studio-page=wutheringwave] #caProfile .ca-profile-bottom{flex:1!important;min-height:0!important;padding:6px 10px!important;gap:5px!important;overflow:visible!important}
html body[data-studio-page=wutheringwave] #caProfile #caChainTabs{display:grid!important;flex:none!important}
html body[data-studio-page=wutheringwave] #caProfile #caChainTabs button{padding:5px 1px!important}
html body[data-studio-page=wutheringwave] #caProfile #caChainText{display:block!important;flex:1 1 44px!important;min-height:44px!important;padding:6px 8px!important;overflow:auto!important}
html body[data-studio-page=wutheringwave] #caProfile #caChainText .ca-profile-intro{gap:7px!important}
html body[data-studio-page=wutheringwave] #caProfile #caChainText .ca-profile-intro img{width:36px!important;height:36px!important}
html body[data-studio-page=wutheringwave] #caProfile #chainProgress{display:flex!important;flex-direction:column!important;flex:none!important;min-height:0!important;height:auto!important;max-height:none!important;overflow:visible!important;padding:6px!important}
html body[data-studio-page=wutheringwave] #caProfile .chain-progress-title{font-size:11px!important;line-height:1.3!important;gap:4px!important;margin:0 0 3px!important}
html body[data-studio-page=wutheringwave] #caProfile .chain-progress-title small{display:none!important}
html body[data-studio-page=wutheringwave] #caProfile .studio-lower-chain-tabs{margin:3px 0!important;gap:3px!important;flex:none!important}
html body[data-studio-page=wutheringwave] #caProfile .studio-lower-chain-tabs button{padding:5px 0!important;font-size:10px!important}
html body[data-studio-page=wutheringwave] #caProfile .studio-lower-chain-values{flex:none!important;height:auto!important;max-height:none!important;overflow:visible!important}
html body[data-studio-page=wutheringwave] #caProfile .studio-lower-chain-values>small:first-child{display:none!important}
html body[data-studio-page=wutheringwave] #caProfile .studio-lower-chain-values ul{display:grid!important;grid-template-columns:repeat(var(--inline-metric-columns,1),minmax(0,1fr))!important;gap:3px!important;align-items:start;align-content:start;margin:3px 0!important}
html body[data-studio-page=wutheringwave] #caProfile .studio-lower-chain-values li{font-size:var(--inline-metric-font,14px)!important;line-height:1.2!important;padding:2px 3px!important;min-width:0!important;overflow-wrap:anywhere!important}
html body[data-studio-page=wutheringwave] #caProfile .studio-lower-chain-notes{font-size:10px!important;line-height:1.3!important;margin:3px 0 0!important}
html body[data-studio-page=wutheringwave] #caProfile footer{display:flex!important;flex:none!important;padding:5px 10px!important}
html body[data-studio-page=wutheringwave] #caProfile footer .ca-btn{padding:6px 8px!important;font-size:11px!important}
html body[data-studio-page=wutheringwave] #genshinAboutTitle,html body[data-studio-page=wutheringwave] #genshinAboutTitle~p{color:#352d21!important;-webkit-text-fill-color:#352d21!important;text-shadow:none!important}
html body[data-studio-page=wutheringwave] #genshinAboutTitle~p a{color:#174b68!important;-webkit-text-fill-color:#174b68!important;text-shadow:none!important}

/* Flow columns avoid empty grid cells while preserving every complete effect row. */
html body[data-studio-page=wutheringwave] #caProfile .studio-lower-chain-values ul{display:block!important;column-count:var(--inline-metric-columns,1)!important;column-gap:3px!important;column-fill:balance!important}
html body[data-studio-page=wutheringwave] #caProfile .studio-lower-chain-values li{break-inside:avoid!important;margin:0 0 3px!important;display:block!important}
@media(max-height:620px){html body[data-studio-page=wutheringwave] #caProfile .ca-profile-head small{display:none!important}html body[data-studio-page=wutheringwave] #caProfile .ca-profile-head h2{font-size:18px!important}html body[data-studio-page=wutheringwave] #caProfile .ca-profile-head :is(.ca-btn,[data-growth-shortcut],.studio-character-url){font-size:9px!important;padding:3px 5px!important}html body[data-studio-page=wutheringwave] #caProfile #caChainTabs button{padding:3px 1px!important}html body[data-studio-page=wutheringwave] #caProfile #caChainText{min-height:32px!important;flex-basis:32px!important;padding:4px 6px!important}html body[data-studio-page=wutheringwave] #caProfile footer{padding:3px 10px!important}html body[data-studio-page=wutheringwave] #caProfile footer .ca-btn{padding:3px 5px!important;font-size:10px!important}}

@media(max-height:620px){html body[data-studio-page=wutheringwave] #caProfile .studio-lower-chain-values li{padding:0 3px!important;line-height:1.1!important;margin-bottom:1px!important}html body[data-studio-page=wutheringwave] #caProfile #chainProgress{padding:4px!important}html body[data-studio-page=wutheringwave] #caProfile .studio-lower-chain-tabs button{padding:3px 0!important}html body[data-studio-page=wutheringwave] #caProfile .studio-lower-chain-tabs{margin:1px 0!important}}

/* Latest request: one column in original top-to-bottom effect order. */
html body[data-studio-page=wutheringwave] #caProfile .studio-lower-chain-values ul{display:block!important;column-count:1!important;grid-template-columns:minmax(0,1fr)!important}


.studio-endgame-wide{grid-column:1/-1!important;width:100%!important}body[data-studio-page=zzz]>.studio-endgame-entry{width:calc(100% - 32px);max-width:1120px;margin:12px auto}body[data-studio-page=endfield] .studio-endgame-entry{margin-bottom:0!important}

body[data-studio-page=wutheringwave] #caProfileArt>img{width:100%!important;height:100%!important;max-height:none!important;object-fit:contain!important;transform:scale(1.14)!important}
/* Keep the new ZZZ entrance above the background layer and below its fixed brand bar. */
body[data-studio-page=zzz]>.studio-endgame-entry{position:relative!important;z-index:3!important;margin-top:calc(var(--topbar-h,76px) + 12px)!important;margin-bottom:0!important}
body[data-studio-page=zzz]>.studio-endgame-entry+#worksWrap{padding-top:0!important}
body[data-studio-page=zzz]>.studio-endgame-entry+#worksWrap>.work-section:first-child>.split{padding-top:12px!important}
