/* A single profile layout. Image and upper original text always stay present. */
html body[data-studio-page=genshin] #caProfile .ca-profile-head{padding:6px 74px 6px 10px!important;flex:none!important;gap:4px!important}
html body[data-studio-page=genshin] #caProfile .ca-profile-head h2{font-size:21px!important;line-height:1.2!important;margin:2px 0!important}
html body[data-studio-page=genshin] #caProfile .ca-profile-head small{font-size:8px!important}
html body[data-studio-page=genshin] #caProfile .ca-profile-head p{font-size:10px!important;margin:2px 0!important}
html body[data-studio-page=genshin] #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=genshin] #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=genshin] #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=genshin] #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=genshin] #caProfile #caChainTabs{display:grid!important;flex:none!important}
html body[data-studio-page=genshin] #caProfile #caChainTabs button{padding:5px 1px!important}
html body[data-studio-page=genshin] #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=genshin] #caProfile #caChainText .ca-profile-intro{gap:7px!important}
html body[data-studio-page=genshin] #caProfile #caChainText .ca-profile-intro img{width:36px!important;height:36px!important}
html body[data-studio-page=genshin] #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=genshin] #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=genshin] #caProfile .chain-progress-title small{display:none!important}
html body[data-studio-page=genshin] #caProfile .studio-lower-chain-tabs{margin:3px 0!important;gap:3px!important;flex:none!important}
html body[data-studio-page=genshin] #caProfile .studio-lower-chain-tabs button{padding:5px 0!important;font-size:10px!important}
html body[data-studio-page=genshin] #caProfile .studio-lower-chain-values{flex:none!important;height:auto!important;max-height:none!important;overflow:visible!important}
html body[data-studio-page=genshin] #caProfile .studio-lower-chain-values>small:first-child{display:none!important}
html body[data-studio-page=genshin] #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=genshin] #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=genshin] #caProfile .studio-lower-chain-notes{font-size:10px!important;line-height:1.3!important;margin:3px 0 0!important}
html body[data-studio-page=genshin] #caProfile footer{display:flex!important;flex:none!important;padding:5px 10px!important}
html body[data-studio-page=genshin] #caProfile footer .ca-btn{padding:6px 8px!important;font-size:11px!important}
html body[data-studio-page=genshin] #genshinAboutTitle,html body[data-studio-page=genshin] #genshinAboutTitle~p{color:#352d21!important;-webkit-text-fill-color:#352d21!important;text-shadow:none!important}
html body[data-studio-page=genshin] #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=genshin] #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=genshin] #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=genshin] #caProfile .ca-profile-head small{display:none!important}html body[data-studio-page=genshin] #caProfile .ca-profile-head h2{font-size:18px!important}html body[data-studio-page=genshin] #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=genshin] #caProfile #caChainTabs button{padding:3px 1px!important}html body[data-studio-page=genshin] #caProfile #caChainText{min-height:32px!important;flex-basis:32px!important;padding:4px 6px!important}html body[data-studio-page=genshin] #caProfile footer{padding:3px 10px!important}html body[data-studio-page=genshin] #caProfile footer .ca-btn{padding:3px 5px!important;font-size:10px!important}}

@media(max-height:620px){html body[data-studio-page=genshin] #caProfile .studio-lower-chain-values li{padding:0 3px!important;line-height:1.1!important;margin-bottom:1px!important}html body[data-studio-page=genshin] #caProfile #chainProgress{padding:4px!important}html body[data-studio-page=genshin] #caProfile .studio-lower-chain-tabs button{padding:3px 0!important}html body[data-studio-page=genshin] #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=genshin] #caProfile .studio-lower-chain-values ul{display:block!important;column-count:1!important;grid-template-columns:minmax(0,1fr)!important}
