body[data-studio-page] .studio-character-actions{display:flex!important;flex-wrap:wrap!important;align-items:center!important;gap:5px!important;margin:7px 0!important;max-width:100%!important;clear:both}
body[data-studio-page] .studio-character-actions>a.studio-character-url,body[data-studio-page] .studio-character-actions>button{position:static!important;display:inline-flex!important;align-items:center;justify-content:center;flex:0 1 auto!important;min-width:0!important;width:auto!important;height:auto!important;min-height:30px!important;margin:0!important;padding:5px 7px!important;border:1px solid currentColor!important;border-radius:4px!important;background:transparent!important;color:inherit!important;font:500 12px/1.4 system-ui,sans-serif!important;letter-spacing:0!important;text-decoration:none!important;white-space:nowrap!important;cursor:pointer}
body[data-studio-page] .studio-character-actions>button[aria-expanded=true]{background:#a4d9f02b!important;box-shadow:inset 0 -2px currentColor}
body[data-studio-page] .studio-recommendation-panel{position:static!important;display:block!important;width:100%!important;max-width:100%!important;padding:12px!important;margin:5px 0 12px!important;border:1px solid #8aa3ad80!important;border-radius:6px!important;font:13px/1.65 system-ui,sans-serif!important;letter-spacing:0!important;overflow-wrap:anywhere!important;text-align:left!important}
body[data-studio-page] .studio-recommendation-panel[hidden]{display:none!important}
body[data-studio-page] .studio-recommendation-panel h3{font:600 14px/1.5 system-ui,sans-serif!important;margin:0 0 7px!important;color:inherit!important}
body[data-studio-page] .studio-recommendation-panel p,body[data-studio-page] .studio-talent-targets p{margin:6px 0!important;color:inherit!important;font-size:12px!important}
body[data-studio-page] .studio-recommendation-panel a,body[data-studio-page] .studio-talent-targets a{color:inherit!important;text-decoration:underline!important}
body[data-studio-page] .studio-talent-targets{margin:14px 0;padding-top:10px;border-top:1px solid #9aabb580}
body[data-studio-page] .studio-talent-targets h4{font:600 14px/1.5 system-ui,sans-serif!important;margin:0 0 7px!important;color:inherit!important}
body[data-studio-page] .studio-decorated-entry{position:relative!important}
body[data-studio-page] .studio-decorated-entry>.studio-entry-emblem{position:absolute!important;inset:10px auto auto 10px!important;display:grid!important;place-items:center!important;width:36px!important;height:36px!important;max-width:none!important;min-width:0!important;margin:0!important;padding:3px!important;border:1px solid #c7e0eb70!important;border-radius:9px!important;background:#102330d9!important;box-shadow:0 2px 8px #0003!important;z-index:5!important;pointer-events:none!important;transform:none!important}
body[data-studio-page] .studio-entry-emblem>svg{position:static!important;display:block!important;width:30px!important;height:30px!important;max-width:none!important;margin:0!important;transform:none!important;filter:none!important}
@media(max-width:360px){body[data-studio-page] .studio-character-actions{gap:4px!important}body[data-studio-page] .studio-character-actions>a.studio-character-url,body[data-studio-page] .studio-character-actions>button{font-size:11px!important;padding:5px!important}}

body[data-studio-page] .studio-actions-host{flex-wrap:wrap!important;gap:6px!important}
body[data-studio-page] .studio-actions-host>div:first-child{flex:1 1 180px!important;min-width:0!important}
body[data-studio-page] .studio-actions-host>.studio-character-actions,body[data-studio-page] .studio-actions-host>.studio-recommendation-panel{flex:1 0 100%!important;box-sizing:border-box!important}
body[data-studio-page] #caProfile .ca-profile-head.studio-actions-host{padding-right:10px!important;gap:6px!important}

body[data-studio-page] .studio-endgame-entry.studio-decorated-entry>.studio-entry-emblem,body[data-studio-page] #genshinStygianEntry .studio-entry-emblem{width:28px!important;height:28px!important;top:8px!important;padding:2px!important}
body[data-studio-page] .studio-endgame-entry .studio-entry-emblem>svg,body[data-studio-page] #genshinStygianEntry .studio-entry-emblem>svg{width:24px!important;height:24px!important}
body[data-studio-page] .studio-endgame-entry.studio-decorated-entry>small,body[data-studio-page] .studio-endgame-entry.studio-decorated-entry>b,body[data-studio-page] #genshinStygianEntry .studio-decorated-entry>strong{margin-left:34px!important}
body[data-studio-page="wutheringwave"] #combatArchive .ca-home-tile[data-rarity="4"] .studio-character-slice,body[data-studio-page="wutheringwave"] #combatArchive .ca-home-tile[data-rarity="4"] .studio-character-slice img{background:#fff!important}
body[data-studio-page] .studio-decorated-entry>.studio-entry-emblem{width:26px!important;height:26px!important;inset:6px auto auto 6px!important;padding:1px!important;border-radius:6px!important;background:#102330bd!important}
body[data-studio-page] .studio-entry-emblem>svg{width:22px!important;height:22px!important}
body[data-studio-page] #efCharacterDetails .ef-cd-head.studio-actions-host{padding-right:14px!important;gap:6px!important}
body[data-studio-page] .studio-actions-host>button{align-self:flex-end!important}

body[data-studio-page="outlanders"] .entry.studio-decorated-entry>.number{margin-left:26px!important}

body[data-studio-page] .ca-home-tile[data-rarity]>.studio-entry-emblem,body[data-studio-page] .rarity-entry>.studio-entry-emblem,body[data-studio-page] .mho-home-entry>.studio-entry-emblem{width:20px!important;height:20px!important;padding:0!important}
body[data-studio-page] .ca-home-tile[data-rarity]>.studio-entry-emblem>svg,body[data-studio-page] .rarity-entry>.studio-entry-emblem>svg,body[data-studio-page] .mho-home-entry>.studio-entry-emblem>svg{width:18px!important;height:18px!important}
body[data-studio-page="zzz"] .work-item>.studio-entry-emblem{width:18px!important;height:18px!important;inset:2px auto auto 2px!important;padding:0!important}
body[data-studio-page="zzz"] .work-item>.studio-entry-emblem>svg{width:16px!important;height:16px!important}

/* The primogem sits directly on the artwork, without a badge or backdrop. */
html body[data-studio-page="genshin"] .studio-decorated-entry>.studio-entry-emblem{background:none!important;border:0!important;border-radius:0!important;box-shadow:none!important;padding:0!important;transform:rotate(-14deg)!important;filter:drop-shadow(0 1px 2px #10233070)}


/* Primogem ornament temporarily removed at the owner’s request. */
html body[data-studio-page="genshin"] .studio-decorated-entry>.studio-entry-emblem{display:none!important}
html body[data-studio-page="genshin"] .studio-endgame-entry.studio-decorated-entry>small,html body[data-studio-page="genshin"] .studio-endgame-entry.studio-decorated-entry>b,html body[data-studio-page="genshin"] #genshinStygianEntry .studio-decorated-entry>strong{margin-left:0!important}

/* Small equipment references; full conditions remain readable in the panel. */
body[data-studio-page] .studio-recommendation-panel{max-height:min(13dvh,100px);overflow-y:auto!important;overscroll-behavior:contain}
.studio-recommendation-media{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px 8px;margin:8px 0}
.studio-recommendation-media figure{display:flex;align-items:center;gap:6px;min-width:0;margin:0;padding:4px;border:1px solid #91a9b33b;background:#83a3b30a}
.studio-recommendation-art{display:grid;place-items:center;flex:none;width:42px;height:42px}
.studio-recommendation-media img{position:static!important;display:block!important;inset:auto!important;width:42px!important;height:42px!important;min-width:0!important;max-width:42px!important;max-height:42px!important;object-fit:contain!important;margin:0!important;transform:none!important;opacity:1!important;filter:none!important}
.studio-recommendation-media figcaption{min-width:0;font:11px/1.45 system-ui,sans-serif;color:inherit;overflow-wrap:anywhere}
.studio-recommendation-sprite{display:block;background-repeat:no-repeat;flex:none}
@media(max-width:360px){.studio-recommendation-media{gap:4px}.studio-recommendation-media figure{gap:4px;padding:3px}.studio-recommendation-media figcaption{font-size:10px}}

.studio-announcement-art{display:block;width:100%;max-width:850px;height:auto;margin:20px 0}.studio-announcement dl>div{display:grid;grid-template-columns:minmax(90px,130px) 1fr;gap:12px;padding:10px 0;border-bottom:1px solid #8399a64a}.studio-announcement dd{margin:0}

#studioCharacterArticle.studio-announcement{margin-top:calc(var(--site-title-height,60px) + 20px)}

@media(max-height:620px){body[data-studio-page] .studio-recommendation-panel{padding:6px 8px!important;margin-bottom:6px!important}.studio-recommendation-panel h3{font-size:12px!important;margin-bottom:3px!important}.studio-recommendation-media{margin:3px 0;gap:3px}.studio-recommendation-media figure{padding:2px}.studio-recommendation-art{width:32px;height:32px}.studio-recommendation-media img{width:32px!important;height:32px!important;max-width:32px!important;max-height:32px!important}.studio-recommendation-sprite{transform:scale(.76)}.studio-recommendation-media figcaption{font-size:10px}}

/* Larger alternative-weapon pictures, retaining compact equipment thumbnails. */
body[data-studio-page] .studio-recommendation-panel[data-recommendation-key="alternative"]{max-height:min(22dvh,170px)}
.studio-recommendation-media--alternative .studio-recommendation-art{width:84px;height:84px}
.studio-recommendation-media--alternative img{width:84px!important;height:84px!important;max-width:84px!important;max-height:84px!important}
@media(max-height:620px){.studio-recommendation-media--alternative .studio-recommendation-art{width:64px;height:64px}.studio-recommendation-media--alternative img{width:64px!important;height:64px!important;max-width:64px!important;max-height:64px!important}.studio-recommendation-media--alternative .studio-recommendation-sprite{transform:scale(.7619048)}}

/* Performance stays visible at the right of the equipment shortcuts. */
body[data-studio-page] .studio-character-actions--performance{flex-wrap:nowrap!important;gap:4px!important;width:100%!important}
body[data-studio-page] .studio-character-actions--performance>a.studio-character-url,body[data-studio-page] .studio-character-actions--performance>button{font-size:11px!important;padding:6px 5px!important;flex:1 1 auto!important}
body[data-studio-page] .studio-character-actions--performance>.studio-performance-action{order:5!important;background:#e9d493!important;border-color:#e9d493!important;color:#102d3d!important;font-weight:700!important;min-height:34px!important;margin-left:auto!important;box-shadow:0 2px 8px #00142130}
#caProfile:has(.studio-character-actions--performance)>footer{display:none!important}

body[data-studio-page] #caProfile .studio-character-actions>.studio-performance-action{background:#e9d493!important;border:1px solid #e9d493!important;color:#102d3d!important;font-weight:700!important}
