/* Reference 1808 x 870. All legacy/mobile UI remains outside this scope. */
#reference-hud,.rh-chat-icon,.rh-mail-icon,.rh-lock-icon,.rh-smile,#rh-boss-art{display:none}
html.reference-hud{
 --rh-ink:#edf7ff;--rh-muted:#a9ddf2;--rh-cyan:#46d3ff;--rh-gold:#ffd04d;--rh-green:#00df59;
 --rh-surface:linear-gradient(120deg,#03172b,#00101f 70%,#062039);
 --rh-frame:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 100' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='g' x2='1' y2='1'%3E%3Cstop stop-color='%23062039'/%3E%3Cstop offset='.65' stop-color='%2300101f'/%3E%3Cstop offset='1' stop-color='%2303172b'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M20 1H380L399 20V80L380 99H20L1 80V20Z' fill='url(%23g)' stroke='%23258ecb' stroke-width='1.4' vector-effect='non-scaling-stroke'/%3E%3Cpath d='M22 5H378L394 21V78L378 94H22L6 78V22Z' fill='none' stroke='%23125a7a' vector-effect='non-scaling-stroke'/%3E%3Cpath d='M4 25L25 3H62M2 73V81L22 97H65M396 23L377 3H350' fill='none' stroke='%2346d3ff' stroke-width='2' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
}
html.reference-hud.reference-hud body #reference-hud{display:block;position:fixed;inset:0;z-index:1240;pointer-events:none;color:var(--rh-ink);font:12px/1.2 'Arial Narrow',Arial,sans-serif}
html.reference-hud.reference-hud body #reference-hud *{box-sizing:border-box}
html.reference-hud.reference-hud body #reference-hud button{font-family:inherit;color:var(--rh-ink);cursor:pointer;pointer-events:auto}
html.reference-hud.reference-hud body #reference-hud svg{width:24px;height:24px;flex:none}
html.reference-hud.reference-hud body .rh-frame{background:var(--rh-frame) center/100% 100% no-repeat;border:0;filter:none;pointer-events:auto}
html.reference-hud.reference-hud body #reference-hud button:focus-visible{outline:2px solid var(--rh-cyan);outline-offset:-3px}
html.reference-hud.reference-hud body #reference-hud button:hover{filter:brightness(1.16)}
html.reference-hud.reference-hud body #reference-hud [hidden]{display:none!important}
html.reference-hud.reference-hud body .rh-top{position:absolute;left:calc(50% - 382.5px * var(--rh-scale));top:calc(10px * var(--rh-scale));width:765px;height:75px;display:flex;padding:3px 19px 5px;transform:scale(var(--rh-scale));transform-origin:top left}
html.reference-hud.reference-hud body .rh-category{position:relative;display:flex;flex:1;min-width:0;align-items:center;justify-content:center;flex-direction:column;gap:6px;border:0;border-right:1px solid #0b3146;background:none;padding:5px 3px;color:var(--rh-ink);font-size:10px;font-weight:700}
html.reference-hud.reference-hud body .rh-category img,html.reference-hud.reference-hud body #reference-hud .rh-category svg{width:30px;height:30px;object-fit:contain}
html.reference-hud.reference-hud body .rh-category.rh-shop{color:var(--rh-cyan)!important;background:linear-gradient(180deg,#0c496233,#0a27401a)}
html.reference-hud.reference-hud body .rh-category.rh-eventos{border:1px solid #bb8c21;border-radius:9px;background:linear-gradient(120deg,#483b19,#1d200f);color:var(--rh-gold)!important}
html.reference-hud.reference-hud body #reference-hud .rh-badge{position:absolute;top:-8px;right:-4px;border-radius:20px;background:#ff3158;color:#fff;padding:4px 7px;font-size:12px}
html.reference-hud.reference-hud body .rh-resources{position:absolute;right:calc(73px * var(--rh-scale));top:calc(13px * var(--rh-scale));height:48px;width:390px;display:flex;align-items:center;padding:8px 12px 8px 17px;transform:scale(var(--rh-scale));transform-origin:top right}
html.reference-hud.reference-hud body .rh-resources button{display:flex;align-items:center;justify-content:center;gap:6px;border:0;border-right:1px solid #285778;background:none;height:27px;padding:0 8px;font-size:11px;white-space:nowrap}
html.reference-hud.reference-hud body .rh-resources button:first-child{padding-left:0}
html.reference-hud.reference-hud body #reference-hud .rh-resources svg,html.reference-hud.reference-hud body .rh-resources img{width:17px;height:17px;object-fit:contain;color:#a9ddf2}
html.reference-hud.reference-hud body .rh-resources .rh-buy{margin-left:auto;padding:0;width:32px;height:30px;border:1px solid #ab8d34;border-radius:6px;background:#333016;color:var(--rh-gold)!important;font:bold 26px/1 Arial!important}
html.reference-hud.reference-hud body .rh-menu{position:absolute;right:calc(13px * var(--rh-scale));top:calc(14px * var(--rh-scale));width:48px;height:46px;display:grid;place-items:center;transform:scale(var(--rh-scale));transform-origin:top right}
html.reference-hud.reference-hud body .rh-dropdown{position:absolute;pointer-events:auto;width:286px;max-height:calc(75vh / var(--rh-scale));overflow:auto;padding:7px;border:1px solid #258ecb;border-radius:4px;background:#03172b;box-shadow:0 8px 20px #000b;transform:scale(var(--rh-scale));transform-origin:top left;scrollbar-width:thin;scrollbar-color:#258ecb #00101f}
html.reference-hud.reference-hud body .rh-dropdown button{display:flex;align-items:center;gap:10px;width:100%;padding:8px;border:1px solid transparent;border-bottom-color:#123144;background:transparent;font-size:12px;text-align:left}
html.reference-hud.reference-hud body .rh-dropdown button:hover{background:#0c304d!important}
html.reference-hud.reference-hud body .rh-dropdown img{width:25px;height:25px;object-fit:contain}
html.reference-hud.reference-hud body .rh-dropdown [aria-disabled=true]{opacity:.48}
html.reference-hud.reference-hud body .rh-mini{position:absolute;left:calc(50% - 353px * var(--rh-scale));top:calc(132px * var(--rh-scale));width:134px;height:37px;display:flex;align-items:center;justify-content:center;gap:4px;padding:6px 10px;transform:scale(var(--rh-scale));transform-origin:top left}
html.reference-hud.reference-hud body .rh-mini button{width:19px;height:23px;padding:1px;border:0;background:none}
html.reference-hud.reference-hud body .rh-mini img{width:17px;height:17px;object-fit:contain}
html.reference-hud.reference-hud body .rh-active{position:absolute;left:50%;bottom:calc(139px * var(--rh-scale));width:333px;height:74px;display:flex;align-items:center;gap:12px;padding:10px 22px;transform:translateX(-50%) scale(var(--rh-scale));transform-origin:center bottom}
html.reference-hud.reference-hud body .rh-pokeball{display:grid;place-items:center;width:47px;height:47px;flex:none;border:3px solid #153654;border-radius:50%;background:#00101f;color:#07243a}
html.reference-hud.reference-hud body #reference-hud .rh-pokeball svg{width:43px;height:43px;stroke-width:1.8}
html.reference-hud.reference-hud body .rh-active-main{flex:1;min-width:0}
html.reference-hud.reference-hud body .rh-active-title{display:flex;justify-content:space-between;align-items:center;gap:6px;padding-bottom:8px;border-bottom:1px solid #173953;white-space:nowrap}
html.reference-hud.reference-hud body .rh-active-title strong{font-size:15px;overflow:hidden;text-overflow:ellipsis}
html.reference-hud.reference-hud body .rh-active-title span{font-size:10px;color:var(--rh-muted)}
html.reference-hud.reference-hud body .rh-active-title b{color:var(--rh-gold);font-size:12px}
html.reference-hud.reference-hud body .rh-hp{position:relative;height:13px;margin-top:5px;border-radius:5px;background:#052a20;overflow:hidden}
html.reference-hud.reference-hud body .rh-hp i{position:absolute;inset:0 auto 0 0;background:linear-gradient(#26f875,#00c94f);border-top:1px solid #75f899;border-radius:4px}
html.reference-hud.reference-hud body .rh-hp b{position:relative;display:block;font-size:11px;line-height:13px;padding-left:7px;text-shadow:0 1px 2px #00251c}
/* Native panels: IDs/listeners are intentionally preserved. */
html.reference-hud.reference-hud body #stage .unified-client-actions.mainbar{visibility:hidden!important;pointer-events:none!important}
html.reference-hud.reference-hud body #stage .unified-client-actions.mainbar #mainbar-buff-tray{visibility:visible!important;pointer-events:auto!important}
html.reference-hud.reference-hud body #stage #pokemon-team-bar.pokemon-team-bar{position:fixed!important;left:calc(14px * var(--rh-scale))!important;top:calc(10px * var(--rh-scale))!important;right:auto!important;bottom:auto!important;width:310px!important;min-width:310px!important;max-width:310px!important;height:305px!important;min-height:0!important;padding:9px 12px!important;margin:0!important;border:0!important;border-radius:0!important;background:var(--rh-frame) center/100% 100% no-repeat!important;box-shadow:none!important;transform:scale(var(--rh-scale))!important;transform-origin:top left!important;filter:none;z-index:1230!important;overflow:visible!important}
html.reference-hud.reference-hud body #stage #pokemon-team-bar .team-header{position:relative!important;height:45px!important;padding:0 0 0 48px!important;min-height:0!important;display:block!important;background:none!important;border:0!important}
html.reference-hud.reference-hud body #pokemon-team-bar .team-header:before{content:'';position:absolute;left:1px;top:2px;width:36px;height:36px;border:1px solid #1d6089;border-radius:50%;background:#03172b url('assets/client-ui/mainmenu/pokemon.png') center/29px no-repeat}
html.reference-hud.reference-hud body #stage #pokemon-team-bar .player-name{font-size:0!important;line-height:21px!important;margin:0!important;padding:0!important}
html.reference-hud.reference-hud body #pokemon-team-bar .player-name:after{content:'PARTY';font:700 15px/21px Arial,sans-serif;color:#edf7ff;letter-spacing:0}
html.reference-hud.reference-hud body #stage #pokemon-team-bar .player-summary{display:block!important;margin:0!important;font:11px/17px Arial,sans-serif!important;color:#a9ddf2!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html.reference-hud.reference-hud body #stage #pokemon-team-bar .team-list{display:flex!important;flex-direction:column!important;gap:5px!important;height:238px!important;max-height:238px!important;overflow:auto!important;margin:0!important;padding:2px!important;scrollbar-width:thin;scrollbar-color:#258ecb #03172b}
html.reference-hud.reference-hud body #stage #pokemon-team-bar .team-slot{position:relative!important;display:block!important;width:100%!important;height:55px!important;min-height:55px!important;flex:0 0 55px!important;margin:0!important;padding:0!important;border:1px solid #164b6f!important;border-radius:6px!important;background:linear-gradient(100deg,#062039,#001222)!important;box-shadow:inset 0 0 0 2px #031321!important;transform:none!important;opacity:1!important;overflow:hidden!important}
html.reference-hud.reference-hud body #stage #pokemon-team-bar .team-slot.active{border-color:#58caff!important;background:linear-gradient(100deg,#0a3048,#001222)!important}
html.reference-hud.reference-hud body #stage #pokemon-team-bar .sprite-frame{position:absolute!important;left:8px!important;top:5px!important;display:grid!important;place-items:center!important;width:44px!important;height:44px!important;border:1px solid #4b8bab!important;border-radius:5px!important;background:#dceff9!important;overflow:hidden!important}
html.reference-hud.reference-hud body #stage #pokemon-team-bar canvas.pokemon-sprite{width:42px!important;height:42px!important;object-fit:contain!important;transform:none!important}
html.reference-hud.reference-hud body #stage #pokemon-team-bar .slot-top{position:absolute!important;left:63px!important;right:10px!important;top:8px!important;display:flex!important;gap:4px!important;align-items:start!important;margin:0!important;padding:0!important;height:18px!important}
html.reference-hud.reference-hud body #stage #pokemon-team-bar .pokemon-name{display:block!important;flex:1!important;min-width:0!important;font:700 12px/15px Arial,sans-serif!important;color:#edf7ff!important;text-align:left!important}
html.reference-hud.reference-hud body #stage #pokemon-team-bar .teamboard-name-row{display:block!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html.reference-hud.reference-hud body #stage #pokemon-team-bar .pokemon-level{position:static!important;font:11px/15px Arial,sans-serif!important;color:#ffd04d!important;white-space:nowrap}
html.reference-hud.reference-hud body #stage #pokemon-team-bar :is(.teamboard-quality-row,.rarity-badge,.team-exp,.team-slot-helds,.team-divider,.ui-resize-handle){display:none!important}
/* The legacy team skin fixes both HP wrappers at 187px. Let the desktop resize geometry and held-slot inset determine their available width. */
html.reference-hud.reference-hud body #stage #pokemon-team-bar .status-bars{position:absolute!important;left:64px!important;right:36px!important;top:40px!important;display:block!important;width:auto!important;min-width:0!important;height:6px!important;padding:0!important;margin:0!important}
html.reference-hud.reference-hud body #stage #pokemon-team-bar .status-bar.hp{position:relative!important;display:block!important;width:100%!important;min-width:0!important;box-sizing:border-box!important;inset:0!important;margin:0!important;height:6px!important;min-height:6px!important;border-radius:4px!important;border:1px solid #087137!important;background:#00331c!important;overflow:visible!important}
html.reference-hud.reference-hud body #stage #pokemon-team-bar .hp-fill{display:block!important;height:100%!important;background:linear-gradient(#68ff84,#00d94c)!important;border-radius:3px!important}
html.reference-hud.reference-hud body #stage #pokemon-team-bar .hp-fill img{display:none!important}
html.reference-hud.reference-hud body #stage #pokemon-team-bar .status-label{position:absolute!important;left:0!important;top:-15px!important;right:0!important;width:auto!important;max-width:100%!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;bottom:auto!important;transform:none!important;font:11px/13px Arial,sans-serif!important;color:#a9ddf2!important;text-shadow:none!important}
html.reference-hud.reference-hud body #stage #pokemon-team-bar .team-slot:after{content:'↻';position:absolute;right:9px;bottom:4px;font:18px Arial;color:#a9ddf2}
html.reference-hud.reference-hud body #stage #pokemon-team-bar .team-minimize{position:absolute!important;right:-5px!important;top:-3px!important;width:20px!important;height:20px!important;min-width:20px!important;min-height:20px!important;padding:0!important;background:none!important;border:0!important;color:#63a7bd!important;font-size:14px!important}
html.reference-hud.reference-hud body #stage #pokemon-team-bar.rh-team-fold{height:63px!important}
html.reference-hud.reference-hud body #stage #pokemon-team-bar.rh-team-fold .team-list{display:none!important}
html.reference-hud.reference-hud body #shiny-global-next{position:fixed!important;left:calc(13px * var(--rh-scale))!important;top:calc(50% - 67px * var(--rh-scale))!important;right:auto!important;bottom:auto!important;width:351px!important;height:90px!important;min-height:90px!important;padding:13px 29px 12px 89px!important;border:0!important;border-radius:0!important;background:var(--rh-frame) center/100% 100% no-repeat!important;box-shadow:none!important;filter:none;transform:scale(var(--rh-scale))!important;transform-origin:top left!important;z-index:1220!important;animation:none!important;text-align:left!important}
html.reference-hud.reference-hud body #shiny-global-next>i{display:none!important}
html.reference-hud.reference-hud body #shiny-global-next>span{display:flex!important;flex-direction:column!important;gap:2px!important}
html.reference-hud.reference-hud body #shiny-global-next small{font:12px/15px Arial,sans-serif!important;color:#8ee6ff!important;letter-spacing:0!important}
html.reference-hud.reference-hud body #shiny-global-next b{font:700 26px/29px Arial,sans-serif!important;color:#ffd04d!important;text-shadow:none!important}
html.reference-hud.reference-hud body #shiny-global-next em{font:11px/15px Arial,sans-serif!important;color:#a9ddf2!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html.reference-hud.reference-hud body #shiny-global-next:after{content:'›'!important;position:absolute;right:19px;top:28px;font:bold 31px/31px Arial;color:#46d3ff;background:none!important;animation:none!important}
html.reference-hud.reference-hud body #rh-boss-art{display:block;position:absolute;left:15px;top:13px;width:64px;height:64px;image-rendering:pixelated}
/* Expanded chat keeps its native channel, message, party and register panels. */
html.reference-hud.reference-hud body #game-chat.game-chat:not(.minimized){position:fixed!important;left:calc(10px * var(--rh-scale))!important;top:auto!important;right:auto!important;bottom:calc(46px * var(--rh-scale))!important;width:396px!important;min-width:396px!important;max-width:396px!important;height:338px!important;min-height:338px!important;max-height:338px!important;padding:12px 13px!important;display:flex!important;flex-direction:column!important;border:0!important;border-radius:0!important;background:var(--rh-frame) center/100% 100% no-repeat!important;box-shadow:none!important;transform:scale(var(--rh-scale))!important;transform-origin:bottom left!important;z-index:1250!important;overflow:visible!important;filter:none!important}
html.reference-hud.reference-hud body #game-chat:not(.minimized):before,html.reference-hud.reference-hud body #game-chat:not(.minimized):after{display:none!important}
html.reference-hud.reference-hud body #game-chat:not(.minimized) #game-chat-handle{position:relative!important;display:flex!important;align-items:center!important;gap:12px!important;min-height:38px!important;height:38px!important;padding:0 4px 5px!important;border:0!important;background:none!important;cursor:default!important}
html.reference-hud.reference-hud body .rh-chat-icon{display:block;width:28px;height:28px;color:#46d3ff}
html.reference-hud.reference-hud body .rh-chat-icon svg{width:28px;height:28px}
html.reference-hud.reference-hud body #game-chat:not(.minimized) .chat-view-switcher{flex:1!important}
html.reference-hud.reference-hud body #game-chat:not(.minimized) #chat-view-menu-toggle{padding:0!important;background:none!important;border:0!important;min-height:26px!important}
html.reference-hud.reference-hud body #game-chat:not(.minimized) #game-chat-handle h1{color:#edf7ff!important;font:bold 15px/20px Arial,sans-serif!important;letter-spacing:0!important;margin:0!important}
html.reference-hud.reference-hud body #game-chat:not(.minimized) #chat-online-members-open{display:flex!important;position:static!important;gap:3px!important;padding:0!important;background:none!important;border:0!important;color:#8ee6ff!important;font:10px Arial!important}
html.reference-hud.reference-hud body #game-chat:not(.minimized) #chat-online-members-open span{display:none!important}
html.reference-hud.reference-hud body #game-chat:not(.minimized) #chat-online-members-count{font:10px Arial!important}
html.reference-hud.reference-hud body #game-chat:not(.minimized) #chat-status{width:5px!important;height:5px!important;min-width:5px!important}
html.reference-hud.reference-hud body #game-chat:not(.minimized) #minimize-chat{width:16px!important;min-width:16px!important;height:20px!important;min-height:20px!important;border:0!important;background:none!important;color:#79bbd5!important}
html.reference-hud.reference-hud body #game-chat:not(.minimized) .chat-panel{display:flex!important;flex-direction:column!important;gap:0!important;flex:1!important;min-height:0!important;padding:0!important;background:none!important;border:0!important}
html.reference-hud.reference-hud body #game-chat.chat-view-activity:not(.minimized) .chat-panel{display:none!important}
html.reference-hud.reference-hud body #game-chat:not(.minimized) .chat-tabs{display:flex!important;flex:none!important;gap:4px!important;padding:3px 0 7px!important;margin:0!important;width:100%!important;height:39px!important;min-height:39px!important;border:0!important;background:none!important;overflow:visible!important}
html.reference-hud.reference-hud body #game-chat:not(.minimized) .chat-tab{display:grid!important;place-items:center!important;flex:1!important;min-width:0!important;width:auto!important;height:29px!important;min-height:29px!important;margin:0!important;padding:0 3px!important;border:1px solid #125a7a!important;border-radius:5px!important;background:#03192c!important;color:#a9ddf2!important;font:700 9px/1 Arial,sans-serif!important;box-shadow:none!important;letter-spacing:0!important}
html.reference-hud.reference-hud body #game-chat:not(.minimized) .chat-tab.active{border-color:#46d3ff!important;background:linear-gradient(#087fc7,#034481)!important;color:#fff!important}
html.reference-hud.reference-hud body #game-chat:not(.minimized) .chat-tab img{display:none!important}
html.reference-hud.reference-hud body #game-chat:not(.minimized) [data-chat-channel=global]:after{content:'GLOBAL'}
html.reference-hud.reference-hud body #game-chat:not(.minimized) [data-chat-channel=party]:after{content:'PARTY'}
html.reference-hud.reference-hud body #game-chat:not(.minimized) [data-chat-channel=guild]:after{content:'GUILDA'}
html.reference-hud.reference-hud body #game-chat:not(.minimized) [data-chat-channel=trade]:after{content:'TRADE'}
html.reference-hud.reference-hud body #game-chat:not(.minimized) #chat-messages{flex:1!important;min-height:0!important;height:auto!important;max-height:none!important;overflow-y:auto!important;padding:3px 5px!important;margin:0 0 9px!important;background:none!important;border:0!important;border-left:1px solid #125a7a!important;scrollbar-width:thin;scrollbar-color:#258ecb #00101f}
html.reference-hud.reference-hud body #game-chat:not(.minimized) #chat-message-list{display:block!important;padding:0!important;margin:0!important;min-height:0!important}
html.reference-hud.reference-hud body #game-chat:not(.minimized) .chat-message{margin:0 0 4px!important;padding:5px 8px!important;border:1px solid #123d5c!important;border-radius:6px!important;background:#03182c!important;box-shadow:none!important;min-height:0!important}
html.reference-hud.reference-hud body #game-chat:not(.minimized) .chat-message-copy{position:relative!important;display:block!important;padding:0!important}
html.reference-hud.reference-hud body #game-chat:not(.minimized) .chat-message-content{display:block!important;font:12px/18px Arial,sans-serif!important;color:#edf7ff!important}
html.reference-hud.reference-hud body #game-chat:not(.minimized) .chat-message-identity{font-size:11px!important}
html.reference-hud.reference-hud body #game-chat:not(.minimized) .chat-message-text{display:block!important;font:12px/18px Arial,sans-serif!important}
html.reference-hud.reference-hud body #game-chat:not(.minimized) .chat-message-meta{font-size:9px!important;color:#a9ddf2!important}
html.reference-hud.reference-hud body #game-chat:not(.minimized) .chat-message-time{position:absolute!important;right:0!important;top:0!important;display:block!important;padding:0!important;font:10px/16px Arial,sans-serif!important;color:#84cce9!important}
html.reference-hud.reference-hud body #game-chat:not(.minimized) .chat-message-name{font:bold 11px/16px Arial,sans-serif!important}
html.reference-hud.reference-hud body #game-chat:not(.minimized) .chat-social-menu{position:absolute;right:0;bottom:0}
html.reference-hud.reference-hud body #game-chat:not(.minimized) #chat-form{display:flex!important;align-items:center!important;gap:7px!important;flex:none!important;padding:0!important;margin:0!important;height:36px!important;border:0!important;background:none!important}
html.reference-hud.reference-hud body #game-chat:not(.minimized) .chat-input-frame{flex:1!important;min-width:0!important;height:36px!important;border:1px solid #258ecb!important;border-radius:5px!important;background:#001426!important;padding:0!important}
html.reference-hud.reference-hud body #game-chat:not(.minimized) #chat-input{width:100%!important;height:34px!important;padding:0 9px!important;border:0!important;background:none!important;color:#edf7ff!important;font:11px Arial,sans-serif!important;box-shadow:none!important}
html.reference-hud.reference-hud body #game-chat:not(.minimized) #chat-send{height:36px!important;min-height:36px!important;width:73px!important;min-width:73px!important;padding:0!important;border:1px solid #46d3ff!important;border-radius:5px!important;background:linear-gradient(#148bea,#004b9f)!important;color:#fff!important;font:bold 11px Arial!important}
html.reference-hud.reference-hud body #game-chat:not(.minimized) .rh-smile{display:grid;place-items:center;width:28px;height:32px;flex:none;padding:0;border:0;background:none;color:#8ee6ff;cursor:pointer}
html.reference-hud.reference-hud body .rh-smile svg{width:24px;height:24px}
html.reference-hud.reference-hud body #game-chat:not(.minimized) :is(.chat-scale,.chat-restore,.chat-resize-handle,.ui-resize-handle){display:none!important}
html.reference-hud.reference-hud body #mailbox-floating-letter{position:fixed!important;left:calc(413px * var(--rh-scale))!important;right:auto!important;top:auto!important;bottom:calc(305px * var(--rh-scale))!important;width:66px!important;height:66px!important;padding:36px 4px 7px!important;border:1px solid #4f9abb!important;border-radius:9px!important;background:var(--rh-surface)!important;box-shadow:0 5px 9px #0009!important;transform:scale(var(--rh-scale))!important;transform-origin:bottom left!important;z-index:1230!important}
html.reference-hud.reference-hud body #mailbox-floating-letter>span:not(.rh-mail-icon){display:none!important}
html.reference-hud.reference-hud body #mailbox-floating-letter .rh-mail-icon{display:block;position:absolute;top:9px;left:19px;color:#ffd04d;width:27px;height:25px}
html.reference-hud.reference-hud body #mailbox-floating-letter em{font:700 10px/18px Arial!important;color:#edf7ff!important}
html.reference-hud.reference-hud body #mailbox-floating-letter b{top:-9px!important;right:-5px!important;background:#ff3158!important;color:white!important;border:0!important;min-width:23px!important;height:23px!important;font:bold 12px/23px Arial!important}
html.reference-hud.reference-hud body #stage #pokemon-skills-window.skills-window{position:fixed!important;left:calc(50% + 21px * var(--rh-scale))!important;right:auto!important;top:auto!important;bottom:calc(21px * var(--rh-scale))!important;width:642px!important;height:90px!important;min-width:0!important;max-width:none!important;padding:0!important;transform:translateX(-50%) scale(var(--rh-scale))!important;transform-origin:bottom center!important;border:0!important;background:none!important;z-index:1230!important;filter:none!important}
html.reference-hud.reference-hud body #stage #pokemon-skills-window.skills-window>.skills-bar{display:flex!important;align-items:center!important;gap:8px!important;width:642px!important;height:90px!important;min-width:0!important;padding:11px 18px!important;margin:0!important;background:var(--rh-frame) center/100% 100% no-repeat!important;border:0!important;box-shadow:none!important;border-radius:0!important}
html.reference-hud.reference-hud body #stage #pokemon-skills-window.skills-window .config-button{width:30px!important;min-width:30px!important;height:35px!important;padding:4px!important;background:#052139!important;border:1px solid #125a7a!important;border-radius:5px!important}
html.reference-hud.reference-hud body #stage #pokemon-skills-window.skills-window .config-button img{width:22px!important;height:22px!important;object-fit:contain!important}
html.reference-hud.reference-hud body #stage #pokemon-skills-window.skills-window #pokemon-moves{display:flex!important;flex:1!important;gap:5px!important;min-width:0!important;width:auto!important;max-width:none!important;height:68px!important;padding:0!important;overflow-x:auto!important;scrollbar-width:thin;scrollbar-color:#258ecb #00101f}
html.reference-hud.reference-hud body #stage #pokemon-skills-window.skills-window .move-slot{position:relative!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:end!important;flex:1 0 60px!important;min-width:60px!important;max-width:94px!important;width:auto!important;height:68px!important;padding:4px 2px!important;border:1px solid #164b6f!important;border-radius:7px!important;background:linear-gradient(130deg,#062039,#001222)!important;box-shadow:inset 0 0 0 2px #00182b!important}
html.reference-hud.reference-hud body #stage #pokemon-skills-window.skills-window .move-icon{position:absolute!important;left:50%!important;top:13px!important;width:29px!important;height:29px!important;object-fit:contain!important;transform:translateX(-50%)!important}
html.reference-hud.reference-hud body #stage #pokemon-skills-window.skills-window .move-name{display:block!important;position:static!important;font:10px/11px Arial,sans-serif!important;color:#edf7ff!important;max-width:100%!important;white-space:normal!important;text-align:center!important;height:21px!important;overflow:hidden!important;text-transform:none!important;letter-spacing:0!important}
html.reference-hud.reference-hud body #stage #pokemon-skills-window.skills-window .move-key{position:absolute!important;left:3px!important;top:2px!important;width:19px!important;height:11px!important;object-fit:contain!important}
html.reference-hud.reference-hud body #stage #pokemon-skills-window.skills-window .move-manual-key{position:absolute!important;left:3px!important;top:2px!important;font:10px Arial!important}
html.reference-hud.reference-hud body #stage #pokemon-skills-window.skills-window .cooldown-number{font:bold 16px/20px Arial!important;text-shadow:0 1px 3px #000!important}
html.reference-hud.reference-hud body #stage #pokemon-skills-window.skills-window :is(.move-type,.skills-minimize,.ui-resize-handle){display:none!important}
html.reference-hud.reference-hud body #stage #pokemon-skills-window #move-priority-panel{position:fixed!important;inset:auto!important;left:50%!important;bottom:110px!important;transform:translateX(-50%)!important;width:min(660px,90vw)!important;max-height:70vh!important;z-index:5000!important}
html.reference-hud.reference-hud body #stage .game-zoom{position:fixed!important;left:auto!important;top:auto!important;right:calc(13px * var(--rh-scale))!important;bottom:calc(46px * var(--rh-scale))!important;width:223px!important;height:37px!important;display:flex!important;align-items:center!important;gap:5px!important;padding:0!important;background:none!important;border:0!important;transform:scale(var(--rh-scale))!important;transform-origin:bottom right!important;z-index:1230!important}
html.reference-hud.reference-hud body #stage .game-zoom>.zoom-lock-label{display:none!important}
html.reference-hud.reference-hud body #stage .game-zoom button{width:35px!important;height:35px!important;min-width:35px!important;min-height:35px!important;padding:0!important;background:var(--rh-frame) center/100% 100% no-repeat!important;border:0!important;color:#edf7ff!important;font:bold 20px Arial!important;box-shadow:none!important}
html.reference-hud.reference-hud body #stage .game-zoom #game-zoom-lock{display:flex!important;align-items:center!important;justify-content:center!important;gap:12px!important;width:145px!important;min-width:145px!important;font-size:0!important}
html.reference-hud.reference-hud body #stage .game-zoom #game-zoom-lock:before{content:'TRAVAR ZOOM';font:bold 10px Arial;color:#edf7ff}
html.reference-hud.reference-hud body #stage .game-zoom #game-zoom-lock[aria-pressed=true]:before{content:'ZOOM TRAVADO'}
html.reference-hud.reference-hud body .rh-lock-icon{display:block;width:19px;height:23px;color:#ffd04d}
html.reference-hud.reference-hud body .rh-lock-icon svg{width:19px;height:23px}
html.reference-hud.reference-hud body #online-members-hud,html.reference-hud.reference-hud body #beta-diamond-card,html.reference-hud.reference-hud body #beta-diamond-hud{display:none!important}
html.reference-hud.reference-hud body #stage .hunt-analyzer-panel:not(.client-open){visibility:hidden!important;pointer-events:none!important}
html.reference-hud.reference-hud body #game-chat:not(.minimized) .chat-panel{position:relative!important;inset:auto!important;width:100%!important;height:auto!important}
html.reference-hud.reference-hud body #game-chat:not(.minimized) .chat-tabs{position:relative!important;inset:auto!important;width:100%!important}
html.reference-hud.reference-hud body #game-chat:not(.minimized) #chat-form{position:relative!important;inset:auto!important;width:100%!important}
html.reference-hud.reference-hud body .hunt-analyzer-panel.collapsed,html.reference-hud.reference-hud body .auto-helper-panel.collapsed{visibility:hidden!important;pointer-events:none!important}
html.reference-hud.reference-hud body #game-chat:not(.minimized) #chat-messages{position:relative!important;inset:auto!important;width:100%!important;box-sizing:border-box!important}
html.reference-hud.reference-hud body #game-chat:not(.minimized) #chat-input{position:relative!important;inset:auto!important;box-sizing:border-box!important}
html.reference-hud.reference-hud body #stage #pokemon-team-bar :is(.player-name,.player-summary){position:static!important;inset:auto!important;height:auto!important;width:auto!important}
html.reference-hud.reference-hud body #shiny-global-next{display:block!important}
html.reference-hud.reference-hud body #shiny-global-next>span{width:100%!important;max-width:none!important;height:auto!important}
html.reference-hud.reference-hud body #shiny-global-next :is(small,em){max-width:none!important}
html.reference-hud.reference-hud body #game-chat .chat-message-identity{padding-right:35px!important}
html.reference-hud.reference-hud body .panel.client-open:not(#pokemon-team-bar):not(.collapsed){z-index:4000}
html.reference-hud.reference-hud body #stage #pokemon-skills-window:has(#move-priority-panel.is-open){z-index:5000!important}
html.reference-hud.reference-hud body .rh-dropdown{z-index:10}
html.reference-hud.reference-hud body #game-chat:not(.minimized) .chat-tabs{gap:3px!important}
html.reference-hud.reference-hud body #game-chat:not(.minimized) #game-chat-handle{min-height:38px!important;flex-shrink:0!important}
html.reference-hud.reference-hud body #mailbox-floating-letter b{position:absolute!important;border-radius:50%!important;text-align:center!important;padding:0!important}
html.reference-hud.reference-hud body #shiny-global-next.settings-banner-hidden,html.reference-hud.reference-hud body #shiny-global-next.hidden{display:none!important}
/* Native renderZoomLock replaces button contents; the frame icon survives that update. */
html.reference-hud.reference-hud body #stage .game-zoom #game-zoom-lock:after{content:'';display:block;width:19px;height:23px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 10V6a4 4 0 0 1 8 0v4' fill='none' stroke='%23ffd04d' stroke-width='2'/%3E%3Crect x='5' y='10' width='14' height='12' rx='2' fill='%23ffd04d'/%3E%3Cpath d='M12 14v4' stroke='%23092037' stroke-width='2'/%3E%3C/svg%3E") center/contain no-repeat}
html.reference-hud.reference-hud body #stage .game-zoom #game-zoom-lock.locked:before{content:'ZOOM TRAVADO'}

/* r47: interactive panel geometry. All rules remain desktop-HUD scoped. */
.rh-drag-grip,#rh-boss-fold,#rh-boss-clock{display:none}
html.reference-hud.reference-hud.reference-hud body .rh-drag-grip{display:grid!important;place-items:center!important;width:20px!important;min-width:20px!important;height:26px!important;min-height:26px!important;padding:2px!important;background:transparent!important;border:0!important;border-radius:3px!important;color:#71bbd7!important;cursor:grab!important;touch-action:none}
html.reference-hud.reference-hud.reference-hud body .rh-drag-grip svg{width:15px!important;height:22px!important}
html.reference-hud.reference-hud.reference-hud body [data-rh-panel]{box-sizing:border-box!important;touch-action:none}
html.reference-hud.reference-hud.reference-hud body .rh-dragging{cursor:grabbing!important;user-select:none!important}
html.reference-hud.reference-hud.reference-hud body [data-rh-panel] button:focus-visible{outline:2px solid #46d3ff!important;outline-offset:1px}
html.reference-hud.reference-hud.reference-hud body #stage #pokemon-team-bar{overflow:hidden!important;padding:10px 12px!important}
html.reference-hud.reference-hud.reference-hud body #stage #pokemon-team-bar:before,html.reference-hud.reference-hud.reference-hud body #stage #pokemon-team-bar:after{display:none!important}
html.reference-hud.reference-hud.reference-hud body #stage #pokemon-team-bar .team-header{height:44px!important;width:100%!important;inset:auto!important;padding:0 26px 0 25px!important;cursor:grab!important}
html.reference-hud.reference-hud.reference-hud body #stage #pokemon-team-bar .team-header:before,html.reference-hud.reference-hud.reference-hud body #stage #pokemon-team-bar .player-name:after{display:none!important}
html.reference-hud.reference-hud.reference-hud body #stage #pokemon-team-bar .team-header .rh-drag-grip{position:absolute;left:0;top:3px}
html.reference-hud.reference-hud.reference-hud body #stage #pokemon-team-bar .player-name{display:block!important;color:#edf7ff!important;font:700 15px/21px Arial!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;text-align:left!important}
html.reference-hud.reference-hud.reference-hud body #stage #pokemon-team-bar .player-summary{font-size:10px!important;text-align:left!important}
html.reference-hud.reference-hud.reference-hud body #stage #pokemon-team-bar .team-list{position:relative!important;inset:auto!important;width:100%!important;box-sizing:border-box!important;height:calc(100% - 46px)!important;max-height:none!important;padding:2px 2px 8px!important;overflow:auto!important}
html.reference-hud.reference-hud.reference-hud body #stage #pokemon-team-bar.is-minimized .team-list{display:none!important}
html.reference-hud.reference-hud.reference-hud body #stage #pokemon-team-bar .team-slot:before,html.reference-hud.reference-hud.reference-hud body #stage #pokemon-team-bar .team-slot:after{display:none!important}
html.reference-hud.reference-hud.reference-hud body #stage #pokemon-team-bar .team-minimize{right:0!important;top:0!important;width:25px!important;height:25px!important;border:1px solid #246280!important;border-radius:4px!important;color:#a9eaff!important;background:#062039!important;font:18px Arial!important}
html.reference-hud.reference-hud.reference-hud body #stage #pokemon-team-bar .status-bars{right:10px!important}
html.reference-hud.reference-hud.reference-hud body #stage #pokemon-team-bar .sprite-frame:before,html.reference-hud.reference-hud.reference-hud body #stage #pokemon-team-bar .sprite-frame:after{display:none!important}
html.reference-hud.reference-hud.reference-hud body #stage #pokemon-team-bar .sprite-frame{background:#dceff9!important}
html.reference-hud.reference-hud.reference-hud body :is(#pokemon-team-bar,#pokemon-skills-window,#game-chat):not([data-rh-folded=true])>.ui-resize-handle{display:block!important;position:absolute!important;inset:auto 3px 3px auto!important;width:17px!important;min-width:17px!important;height:17px!important;min-height:17px!important;transform:none!important;padding:0!important;border:0!important;border-right:2px solid #46d3ff!important;border-bottom:2px solid #46d3ff!important;background:linear-gradient(135deg,transparent 60%,#123c5a 61%)!important;cursor:nwse-resize!important;z-index:10!important;opacity:1!important;touch-action:none}
html.reference-hud.reference-hud.reference-hud body [data-rh-folded=true]>.ui-resize-handle{display:none!important}
html.reference-hud.reference-hud.reference-hud body #stage :is(#pokemon-team-bar,#pokemon-skills-window):not([data-rh-folded=true])>.ui-resize-handle{display:block!important;position:absolute!important;inset:auto 3px 3px auto!important;width:17px!important;min-width:17px!important;height:17px!important;min-height:17px!important;transform:none!important;padding:0!important;border:0!important;border-right:2px solid #46d3ff!important;border-bottom:2px solid #46d3ff!important;background:linear-gradient(135deg,transparent 60%,#123c5a 61%)!important;cursor:nwse-resize!important;z-index:10!important;opacity:1!important;touch-action:none}
html.reference-hud.reference-hud.reference-hud body #shiny-global-next{padding:13px 34px 10px 104px!important;text-align:left!important;cursor:grab!important}
html.reference-hud.reference-hud.reference-hud body #shiny-global-next:before,html.reference-hud.reference-hud.reference-hud body #shiny-global-next:after{display:none!important}
html.reference-hud.reference-hud.reference-hud body #rh-boss-art{width:84px!important;height:84px!important;left:12px!important;top:6px!important;object-fit:contain}
html.reference-hud.reference-hud.reference-hud body #shiny-global-next>span:not(#rh-boss-fold){display:flex!important;justify-content:center!important;height:100%!important;width:100%!important;gap:4px!important}
html.reference-hud.reference-hud.reference-hud body #shiny-global-next small{font-size:10px!important;white-space:normal!important;line-height:13px!important}
html.reference-hud.reference-hud.reference-hud body #shiny-global-next em{white-space:normal!important;max-height:28px!important;line-height:13px!important;font-size:10px!important}
html.reference-hud.reference-hud.reference-hud body #shiny-global-next b{font-size:25px!important;line-height:28px!important}
html.reference-hud.reference-hud.reference-hud body #shiny-global-next #rh-boss-fold{display:grid!important;place-items:center;position:absolute!important;inset:calc(50% - 18px) 8px auto auto!important;width:24px!important;height:36px!important;color:#46d3ff!important;font:700 27px Arial!important;cursor:pointer;border-radius:4px}
html.reference-hud.reference-hud.reference-hud body #rh-boss-fold:focus-visible{outline:2px solid #46d3ff}
html.reference-hud.reference-hud.reference-hud body #shiny-global-next.rh-boss-fold{padding:6px 34px 6px 20px!important}
html.reference-hud.reference-hud.reference-hud body #shiny-global-next.rh-boss-fold :is(#rh-boss-art,small,em){display:none!important}
html.reference-hud.reference-hud.reference-hud body #shiny-global-next.rh-boss-fold b{font-size:23px!important}
html.reference-hud.reference-hud.reference-hud body #shiny-global-next.rh-boss-fold>span:not(#rh-boss-fold){display:none!important}
html.reference-hud.reference-hud.reference-hud body #shiny-global-next.rh-boss-fold>#rh-boss-clock{display:block!important;position:absolute;inset:10px 34px 10px 20px;line-height:30px!important}
html.reference-hud.reference-hud.reference-hud body #game-chat.game-chat{padding:10px 12px 14px!important;background:var(--rh-frame) center/100% 100% no-repeat!important;box-shadow:none!important;border:0!important;filter:none!important;border-radius:0!important;overflow:visible!important}
html.reference-hud.reference-hud.reference-hud body #game-chat:before,html.reference-hud.reference-hud.reference-hud body #game-chat:after{display:none!important}
html.reference-hud.reference-hud.reference-hud body #game-chat #game-chat-handle{position:relative!important;inset:auto!important;display:flex!important;align-items:center!important;gap:5px!important;width:100%!important;height:36px!important;min-height:36px!important;padding:0 0 5px!important;margin:0!important;background:none!important;border:0!important;cursor:grab!important;flex:none!important}
html.reference-hud.reference-hud.reference-hud body #game-chat .rh-chat-icon,html.reference-hud.reference-hud.reference-hud body #game-chat .rh-smile{display:none!important}
html.reference-hud.reference-hud.reference-hud body #game-chat .chat-view-switcher{position:static!important;flex:1!important;min-width:0!important;width:auto!important}
html.reference-hud.reference-hud.reference-hud body #game-chat #chat-view-menu-toggle{position:static!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;width:100%!important;height:28px!important;min-height:28px!important;padding:0!important;background:none!important;border:0!important;transform:none!important}
html.reference-hud.reference-hud.reference-hud body #game-chat #chat-view-menu-toggle h1{position:static!important;display:block!important;inset:auto!important;transform:none!important;text-align:center!important;font:700 13px/20px Arial!important;color:#edf7ff!important;white-space:nowrap!important;width:auto!important;padding:0!important;margin:0!important}
html.reference-hud.reference-hud.reference-hud body #game-chat #chat-view-menu-toggle i{position:static!important;display:block!important;width:6px!important;height:6px!important;flex:none!important;border:solid #ffd04d!important;border-width:0 1px 1px 0!important;transform:rotate(45deg)!important;background:none!important}
html.reference-hud.reference-hud.reference-hud body #game-chat #chat-view-menu{position:absolute!important;left:28px!important;top:35px!important;right:auto!important;width:240px!important;max-width:calc(100% - 30px)!important;background:#03172b!important;border:1px solid #258ecb!important;z-index:20!important;transform:none!important}
html.reference-hud.reference-hud.reference-hud body #game-chat #chat-online-members-open{position:static!important;display:flex!important;width:auto!important;min-width:20px!important;height:auto!important;padding:0!important;gap:2px!important;font:10px Arial!important;transform:none!important;background:none!important;border:0!important}
html.reference-hud.reference-hud.reference-hud body #game-chat #chat-online-members-open.hidden{display:none!important}
html.reference-hud.reference-hud.reference-hud body #game-chat #chat-online-members-open :is(i,span){display:none!important}
html.reference-hud.reference-hud.reference-hud body #game-chat #chat-status{position:static!important;display:block!important;width:5px!important;height:5px!important;min-width:5px!important;margin:0 2px!important;transform:none!important;flex:none!important}
html.reference-hud.reference-hud.reference-hud body #game-chat #minimize-chat{position:static!important;display:block!important;inset:auto!important;transform:none!important;flex:none!important;width:25px!important;min-width:25px!important;height:25px!important;min-height:25px!important;padding:0!important;background:#062039!important;border:1px solid #246280!important;border-radius:4px!important;color:#a9eaff!important;font:18px Arial!important;z-index:2!important}
html.reference-hud.reference-hud.reference-hud body #game-chat .chat-restore,html.reference-hud.reference-hud.reference-hud body #game-chat .chat-minimized-title,html.reference-hud.reference-hud.reference-hud body #game-chat #chat-online-members-compact{display:none!important}
html.reference-hud.reference-hud.reference-hud body #game-chat.minimized{display:flex!important;padding:8px 12px!important}
html.reference-hud.reference-hud.reference-hud body #game-chat.minimized :is(.chat-panel,.chat-activity-view,.ui-resize-handle){display:none!important}
html.reference-hud.reference-hud.reference-hud body #game-chat.minimized #game-chat-handle{height:34px!important;min-height:34px!important;padding:0!important}
html.reference-hud.reference-hud.reference-hud body #game-chat.minimized #chat-view-menu-toggle i{display:none!important}
html.reference-hud.reference-hud.reference-hud body #game-chat #chat-unread-badge{position:absolute!important;top:-6px!important;right:-5px!important;left:auto!important}
html.reference-hud.reference-hud.reference-hud body #game-chat:not(.minimized) .chat-tabs{display:grid!important;grid-template-columns:repeat(7,minmax(0,1fr))!important;gap:3px!important;height:38px!important;overflow:hidden!important}
html.reference-hud.reference-hud.reference-hud body #game-chat:not(.minimized) .chat-tab{font-size:8px!important;padding:0!important;overflow:hidden!important;white-space:nowrap!important}
html.reference-hud.reference-hud.reference-hud body #game-chat .chat-message{position:relative!important;display:block!important;width:100%!important;box-sizing:border-box!important;overflow-wrap:anywhere!important}
html.reference-hud.reference-hud.reference-hud body #game-chat :is(.chat-message-copy,.chat-message-content,.chat-message-text){position:static!important;inset:auto!important;transform:none!important;width:auto!important;max-width:100%!important;white-space:normal!important;overflow-wrap:anywhere!important;text-align:left!important;padding:0!important;margin:0!important}
html.reference-hud.reference-hud.reference-hud body #game-chat .chat-message-identity{display:flex!important;align-items:center!important;flex-wrap:wrap!important;gap:4px!important;position:relative!important;width:auto!important;min-height:18px!important;padding:0 34px 3px 0!important;line-height:16px!important}
html.reference-hud.reference-hud.reference-hud body #game-chat .chat-message-time{position:absolute!important;right:7px!important;top:6px!important;font:9px/14px Arial!important}
html.reference-hud.reference-hud.reference-hud body #game-chat .chat-activity-view{flex:1;min-height:0;overflow:auto;background:none!important}
html.reference-hud.reference-hud.reference-hud body #mailbox-floating-letter{z-index:1400!important;animation:none!important;left:calc(max(350px,396px * max(.8,var(--rh-scale))) + 25px)!important;bottom:34px!important;top:auto!important;transform:none!important;width:58px!important;height:60px!important;pointer-events:auto!important}
html.reference-hud.reference-hud.reference-hud body #mailbox-floating-letter .rh-mail-icon{left:15px!important}
html.reference-hud.reference-hud.reference-hud body .rh-mini{gap:3px!important;padding:6px 10px!important}
html.reference-hud.reference-hud.reference-hud body #reference-hud .rh-mini button{display:grid;place-items:center;width:24px;height:28px;min-width:20px;font-size:20px;border:1px solid #164b6f;border-radius:3px;color:#8ee6ff;background:#052139}
html.reference-hud.reference-hud.reference-hud body #reference-hud .rh-mini img{width:20px;height:20px;object-fit:contain}
html.reference-hud.reference-hud.reference-hud body .rh-active{padding:10px 16px 10px 30px!important}
html.reference-hud.reference-hud.reference-hud body .rh-active>.rh-drag-grip{position:absolute;left:8px;top:26px}
html.reference-hud.reference-hud.reference-hud body #target-card{display:none!important}
html.reference-hud.reference-hud.reference-hud body #stage #pokemon-skills-window>.skills-bar{position:relative!important;width:100%!important;height:100%!important;padding:10px 16px 16px 30px!important;gap:7px!important;box-sizing:border-box!important}
html.reference-hud.reference-hud.reference-hud body #pokemon-skills-window .rh-drag-grip{position:absolute;left:8px;top:calc(50% - 13px)}
html.reference-hud.reference-hud.reference-hud body #stage #pokemon-skills-window #pokemon-moves{height:100%!important;align-items:stretch!important;overflow-x:auto!important;overflow-y:hidden!important}
html.reference-hud.reference-hud.reference-hud body #stage #pokemon-skills-window .move-slot{height:100%!important;min-height:60px!important;min-width:66px!important;max-width:none!important;flex:1 0 66px!important;padding:4px 4px 3px!important}
html.reference-hud.reference-hud.reference-hud body #stage #pokemon-skills-window .move-name{font-size:10px!important;line-height:12px!important;height:25px!important;width:100%!important;overflow-wrap:anywhere!important;white-space:normal!important}
html.reference-hud.reference-hud.reference-hud body #stage #pokemon-skills-window .move-icon{top:13px!important;width:25px!important;height:25px!important}
html.reference-hud.reference-hud.reference-hud body #stage #pokemon-skills-window .config-button{color:#7fd9ff!important}
html.reference-hud.reference-hud.reference-hud body #stage #pokemon-skills-window .config-button svg{display:block;width:22px;height:22px}
html.reference-hud.reference-hud.reference-hud body #move-priority-panel{position:fixed!important;inset:0!important;transform:none!important;width:100vw!important;height:100vh!important;max-height:none!important;display:grid!important;place-items:center!important;z-index:60000!important}
html.reference-hud.reference-hud.reference-hud body #move-priority-panel.hidden{display:none!important}
html.reference-hud.reference-hud.reference-hud body #move-priority-panel .skills-config-backdrop{position:absolute!important;inset:0!important;background:#0008!important}
html.reference-hud.reference-hud.reference-hud body #move-priority-panel .skills-config-dialog{position:relative!important;inset:auto!important;transform:none!important;display:flex!important;flex-direction:column!important;width:min(600px,90vw)!important;max-width:none!important;height:auto!important;max-height:85vh!important;padding:16px!important;border:1px solid #258ecb!important;border-radius:12px!important;background:linear-gradient(130deg,#062039,#00101f)!important;box-shadow:inset 0 0 0 3px #072e48,0 16px 48px #0009!important;color:#edf7ff!important;overflow:hidden!important}
html.reference-hud.reference-hud.reference-hud body #move-priority-panel .skills-config-header{display:flex!important;align-items:center!important;justify-content:space-between!important;position:static!important;padding:0 0 12px!important;margin:0!important;background:none!important;border-bottom:1px solid #1d5572!important}
html.reference-hud.reference-hud.reference-hud body #move-priority-panel .skills-config-header h2{font:700 18px/24px Arial!important;color:#edf7ff!important}
html.reference-hud.reference-hud.reference-hud body #move-priority-panel .skills-config-kicker{font-size:10px!important;color:#8ee6ff!important}
html.reference-hud.reference-hud.reference-hud body #move-priority-panel .skills-config-body{position:static!important;overflow:auto!important;min-height:0!important;padding:12px 0!important}
html.reference-hud.reference-hud.reference-hud body #move-priority-panel .skills-combat-mode{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important}
html.reference-hud.reference-hud.reference-hud body #move-priority-panel button{border:1px solid #246280!important;border-radius:5px!important;background:#062039!important;color:#c3e8fa!important;padding:8px!important;font-size:11px!important;cursor:pointer}
html.reference-hud.reference-hud.reference-hud body #move-priority-panel button.active{border-color:#46d3ff!important;background:#084b70!important;color:#fff!important}
html.reference-hud.reference-hud.reference-hud body #move-priority-panel .skills-config-item{display:flex!important;align-items:center!important;gap:10px!important;min-height:56px!important;height:auto!important;padding:8px!important;margin:5px 0!important;background:#03182c!important;border:1px solid #164b6f!important;border-radius:5px!important}
html.reference-hud.reference-hud.reference-hud body #move-priority-panel .config-move-copy{flex:1!important;min-width:0!important}
html.reference-hud.reference-hud.reference-hud body #move-priority-panel .config-move-name{display:block!important;font:700 13px/18px Arial!important;color:#edf7ff!important;white-space:normal!important;overflow-wrap:anywhere!important}
html.reference-hud.reference-hud.reference-hud body #move-priority-panel .config-move-meta{display:flex!important;gap:4px!important;font:10px/16px Arial!important;flex-wrap:wrap}
html.reference-hud.reference-hud.reference-hud body #move-priority-panel .combat-hotkey-field{display:flex!important;gap:6px!important;align-items:center!important;width:auto!important;font-size:9px!important}
html.reference-hud.reference-hud.reference-hud body #move-priority-panel select{color:#edf7ff!important;background:#062039!important;border:1px solid #246280!important;font:12px Arial!important;padding:5px!important}
html.reference-hud.reference-hud.reference-hud body #move-priority-panel .config-type-icon{width:24px!important;height:24px!important}
html.reference-hud.reference-hud.reference-hud body #move-priority-panel .skills-config-actions{position:static!important;display:flex!important;gap:8px!important;justify-content:flex-end!important;padding:10px 0 0!important;border-top:1px solid #1d5572!important}
html.reference-hud.reference-hud.reference-hud body :is(.auto-helper-panel,.hunt-analyzer-panel).client-open:not(.collapsed){background:linear-gradient(135deg,#062039,#00101f)!important;border:1px solid #258ecb!important;border-radius:10px!important;box-shadow:inset 0 0 0 3px #072e48,0 10px 26px #0008!important;color:#edf7ff!important}
html.reference-hud.reference-hud.reference-hud body :is(.auto-helper-head,.hunt-analyzer-head){background:#03182c!important;border-bottom:1px solid #258ecb!important;color:#a9eaff!important}
html.reference-hud.reference-hud.reference-hud body :is(.helper-module,.hunt-analyzer-card,.analyzer-card){background:#03182c!important;border-color:#164b6f!important;color:#edf7ff!important}
html.reference-hud.reference-hud.reference-hud body :is(.auto-helper-panel,.hunt-analyzer-panel) :is(button,select,input[type=number]){background-color:#062039!important;border-color:#246280!important;color:#c3e8fa!important}
html.reference-hud.reference-hud.reference-hud body .rh-dropdown{transform:none!important;width:286px!important;max-height:min(440px,65vh)!important;box-sizing:border-box!important}
html.reference-hud.reference-hud.reference-hud body .rh-dropdown label{display:flex;justify-content:space-between;gap:10px;align-items:center;padding:8px;color:#8ee6ff}
html.reference-hud.reference-hud.reference-hud body .rh-dropdown select{background:#062039;color:#edf7ff;border:1px solid #258ecb;padding:5px}
html.reference-hud.reference-hud.reference-hud body .rh-category img{width:34px!important;height:34px!important;object-fit:contain!important}
html.reference-hud.reference-hud.reference-hud body #move-priority-panel .skills-config-header h2{margin:3px 0 0!important}
html.reference-hud.reference-hud.reference-hud body #move-priority-panel .skills-config-kicker{display:block!important}
html.reference-hud.reference-hud.reference-hud body #move-priority-panel .skills-config-description{font:12px/18px Arial!important;color:#a9ddf2!important;margin:12px 0!important}
html.reference-hud.reference-hud.reference-hud body #move-priority-panel .skills-config-legend{display:flex!important;align-items:center!important;gap:12px!important;font:10px/16px Arial!important;color:#a9ddf2!important;margin:8px 0!important}
html.reference-hud.reference-hud.reference-hud body #move-priority-panel .skills-config-legend>span{display:flex;align-items:center;gap:5px}
html.reference-hud.reference-hud.reference-hud body #move-priority-panel .legend-drag{margin-left:auto}
html.reference-hud.reference-hud.reference-hud body #move-priority-panel .legend-dot{display:inline-block;width:6px;height:6px;background:#50d8bd;border-radius:50%}
html.reference-hud.reference-hud.reference-hud body #move-priority-panel .legend-dot-inactive{background:#56737e}
html.reference-hud.reference-hud.reference-hud body #move-priority-panel .skills-combat-mode button :is(b,small){display:block!important;text-align:left!important;font:700 12px/18px Arial!important}
html.reference-hud.reference-hud.reference-hud body #move-priority-panel .skills-combat-mode button small{font:10px/16px Arial!important;color:#a9ddf2!important}
html.reference-hud.reference-hud.reference-hud body #move-priority-panel .config-move-key{width:26px!important;height:18px!important;object-fit:contain!important;flex:none!important}
html.reference-hud.reference-hud.reference-hud body #move-priority-panel .skill-active-toggle{accent-color:#41cedc;width:14px;height:14px;flex:none}

/* Native CSS artwork shares the same footprint as the menu image icons. */
html.reference-hud body #reference-hud .rh-action-icon{display:grid;place-items:center;flex:0 0 25px;width:25px;height:25px;padding:0;border:0!important;background:none!important;box-shadow:none!important;pointer-events:none}
html.reference-hud body #reference-hud .rh-action-icon>*{grid-area:1/1;scale:.8;flex:none}
html.reference-hud body #reference-hud .rh-action-icon>.mainbar-vote-icon{width:30px;height:30px}
html.reference-hud body #reference-hud .rh-mini .rh-action-icon{width:20px;height:20px;min-width:0}
html.reference-hud body #reference-hud .rh-mini .rh-action-icon>*{scale:.62}

/* Skills collapse uses the native toggle, positioned at the right tip. */
.rh-skills-label{display:none}
html.reference-hud.reference-hud.reference-hud body #stage #pokemon-skills-window>.skills-bar{padding-right:44px!important}
html.reference-hud.reference-hud.reference-hud body #stage #pokemon-skills-window .skills-minimize{display:grid!important;place-items:center!important;position:absolute!important;left:auto!important;right:9px!important;top:50%!important;bottom:auto!important;width:26px!important;min-width:26px!important;max-width:26px!important;height:28px!important;min-height:28px!important;max-height:28px!important;margin:0!important;padding:0!important;transform:translateY(-50%)!important;border:1px solid #258ecb!important;border-radius:4px!important;background:#052139!important;color:#8ee6ff!important;font:700 20px/1 Arial,sans-serif!important;opacity:1!important;z-index:12!important;cursor:pointer!important}
html.reference-hud.reference-hud.reference-hud body #stage #pokemon-skills-window .skills-minimize::before,html.reference-hud.reference-hud.reference-hud body #stage #pokemon-skills-window .skills-minimize::after{content:none!important}
html.reference-hud.reference-hud.reference-hud body #stage #pokemon-skills-window .skills-minimize:hover{background:#0c3854!important;color:#fff!important}
html.reference-hud.reference-hud.reference-hud body #stage #pokemon-skills-window .skills-minimize:focus-visible{outline:2px solid #8ee6ff!important;outline-offset:2px!important}
html.reference-hud.reference-hud.reference-hud body #stage #pokemon-skills-window.is-minimized{border:0!important;background:none!important;box-shadow:none!important;overflow:visible!important}
html.reference-hud.reference-hud.reference-hud body #stage #pokemon-skills-window.is-minimized>.skills-bar{width:100%!important;min-width:0!important;max-width:none!important;height:100%!important;min-height:0!important;max-height:none!important;padding:6px 44px 6px 30px!important;background:var(--rh-frame) center/100% 100% no-repeat!important}
html.reference-hud.reference-hud.reference-hud body #stage #pokemon-skills-window.is-minimized #pokemon-moves,html.reference-hud.reference-hud.reference-hud body #stage #pokemon-skills-window.is-minimized .config-button,html.reference-hud.reference-hud.reference-hud body #stage #pokemon-skills-window.is-minimized>.ui-resize-handle{display:none!important}
html.reference-hud.reference-hud.reference-hud body #stage #pokemon-skills-window.is-minimized .rh-skills-label{display:block;font:700 10px/1 Arial,sans-serif;letter-spacing:.5px;color:#bdeaff;pointer-events:none}
