@layer pokeidle-brand {
html:root body #stage #pokemon-team-bar .team-slot .team-slot-info {display:flex!important;flex-direction:column!important;gap:3px!important;min-height:23px!important;overflow:visible!important;}
html:root body #stage #pokemon-team-bar .team-slot .team-exp {display:block!important;position:relative!important;inset:auto!important;height:9px!important;min-height:9px!important;margin:0!important;border:1px solid #32618c!important;border-radius:3px!important;background:#0a1d36!important;overflow:hidden!important;}
html:root body #stage #pokemon-team-bar .team-slot .team-exp .exp-fill {display:block!important;height:100%!important;background:linear-gradient(90deg,#427ce6,#b18dff)!important;}
html:root body #stage #pokemon-team-bar .team-slot .team-exp img {display:none!important;}
html:root body #stage #pokemon-team-bar .team-slot .team-exp .status-label {display:block!important;position:absolute!important;inset:0!important;color:white!important;text-align:center!important;font:700 8px/8px Arial,sans-serif!important;text-shadow:0 1px 2px #000!important;}
html:root body #stage #pokemon-team-bar .team-slot {min-height:65px!important;}
html:root body #stage #pokemon-team-bar .team-slot.upgrade-ready {border-color:#e7ca67!important;animation:pokemon-upgrade-glow 2s ease-in-out infinite alternate;}
html:root body #stage #pokemon-team-bar .team-slot .team-upgrade-tap {position:absolute!important;left:3px!important;bottom:3px!important;width:24px!important;height:24px!important;display:grid!important;place-items:center!important;background:#644b18!important;color:#fff3ba!important;border:1px solid #f0d078!important;border-radius:5px!important;font:bold 17px/1 Arial!important;z-index:4!important;cursor:pointer;}
@keyframes pokemon-upgrade-glow {from{filter:brightness(1)}to{filter:brightness(1.2)}}
@media(prefers-reduced-motion:reduce){html:root body #stage #pokemon-team-bar .team-slot.upgrade-ready{animation:none!important;box-shadow:inset 0 0 5px #f4dc8370!important;}}
}
.pokemon-upgrade-dialog{box-sizing:border-box;width:min(500px,calc(100vw - 24px));max-height:calc(100dvh - 24px);padding:18px;border:1px solid #258ecb;border-radius:10px;background:#062039;color:#edf7ff;font:14px/1.5 Arial,sans-serif;box-shadow:0 15px 60px #0009;overflow:auto;}
.pokemon-upgrade-dialog::backdrop{background:#00101fbf}
.pokemon-upgrade-dialog header,.pokemon-upgrade-dialog footer{display:flex;align-items:center;justify-content:space-between;gap:12px}
.pokemon-upgrade-dialog h2{font-size:21px;margin:0}.pokemon-upgrade-dialog h3{color:#62d6ff;margin-bottom:4px}
.pokemon-upgrade-dialog button{min-height:40px;border:1px solid #258ecb;background:#0c3958;color:#fff;border-radius:6px;padding:8px 12px;cursor:pointer}.pokemon-upgrade-dialog button:disabled{opacity:.5;cursor:default}
.pokemon-upgrade-dialog table{width:100%;border-collapse:collapse}.pokemon-upgrade-dialog td,.pokemon-upgrade-dialog th{padding:6px;border-bottom:1px solid #28536f;text-align:left;color:#edf7ff!important;background:transparent!important}
.pokemon-upgrade-dialog .upgrade-cost,.pokemon-upgrade-dialog .upgrade-warning{color:#f5d67c}.pokemon-upgrade-dialog .upgrade-consent{display:flex;align-items:flex-start;gap:8px;margin:16px 0}.pokemon-upgrade-dialog input{width:20px;height:20px;flex-shrink:0;accent-color:#53d0c0}
.pokemon-upgrade-dialog :focus-visible{outline:2px solid #f5d67c;outline-offset:3px}.pokemon-upgrade-dialog footer{position:sticky;bottom:-18px;padding:10px 0;background:#062039}
