@layer pokeidle-brand {
/* r164: one visual vocabulary; sprites, rarity and gameplay states stay native. */
:root{--ui-bg:#03172b;--ui-deep:#00101f;--ui-card:#062039;--ui-raised:#0b2c49;--ui-edge:#258ecb;--ui-line:#205373;--ui-cyan:#46d3ff;--ui-text:#edf7ff;--ui-muted:#a9cde2;--ui-gold:#ffd04d;--ui-vh:100dvh;--ui-vw:100dvw;--ui-vx:0px;--ui-vy:0px;--ui-safe-top:max(8px,env(safe-area-inset-top));--ui-safe-bottom:max(8px,env(safe-area-inset-bottom));--ui-safe-left:max(8px,env(safe-area-inset-left));--ui-safe-right:max(8px,env(safe-area-inset-right))}
html body :is(#wiki-system,#settings-system,#pokelog-system,#tcg-system,#hunt-boss-crafts-system,#legacy-system,#pokemon-helds-modal,#profession-system,#profession-workstation-system,#boss-forge-system,#friends-system,#houses-system,#house-shop-system,#diamond-shop-system,#diamond-history-system,#daily-gift-system,#weekly-battle-pass,#topidle-vote-system,#referral-system,.boss-forge-modal,.market-panel,.player-market-panel){color:var(--ui-text);font-family:Arial,sans-serif;--pokelog-cyan:var(--ui-cyan);--pokelog-gold:var(--ui-gold);--pokelog-panel:var(--ui-card);--pokelog-line:var(--ui-line);--profession-bg:var(--ui-bg);--profession-panel:var(--ui-card);--profession-cyan:var(--ui-cyan);--profession-gold:var(--ui-gold)}
html body :is(#wiki-system,#settings-system,#pokelog-system,#tcg-system,#hunt-boss-crafts-system,#legacy-system,#pokemon-helds-modal,#profession-system,#profession-workstation-system,#boss-forge-system,#friends-system,#houses-system,#house-shop-system,#diamond-shop-system,#diamond-history-system,#daily-gift-system,#weekly-battle-pass,#topidle-vote-system,#referral-system,.boss-forge-modal,.market-panel,.player-market-panel):is(.modal,.tcg-modal,.boss-forge-modal,.weekly-pass-modal){box-sizing:border-box!important;padding:12px!important;background:rgba(0,10,23,.76)!important;backdrop-filter:blur(4px);align-items:center!important;place-items:center!important;inset:var(--ui-vy) auto auto var(--ui-vx)!important;width:var(--ui-vw)!important;height:var(--ui-vh)!important}
html body :is(#wiki-system,#settings-system,#pokelog-system,#tcg-system,#hunt-boss-crafts-system,#legacy-system,#pokemon-helds-modal,#profession-system,#profession-workstation-system,#boss-forge-system,#friends-system,#houses-system,#house-shop-system,#diamond-shop-system,#diamond-history-system,#daily-gift-system,#weekly-battle-pass,#topidle-vote-system,#referral-system,.boss-forge-modal,.market-panel,.player-market-panel) :is(.system-window,.tcg-shell,.boss-forge-shell,.weekly-pass-window){box-sizing:border-box!important;min-width:0!important;min-height:0!important;max-width:calc(var(--ui-vw) - 24px)!important;max-height:calc(var(--ui-vh) - 24px)!important;border:2px solid var(--ui-edge)!important;border-radius:5px 18px 5px 18px!important;background:linear-gradient(145deg,var(--ui-card),var(--ui-bg) 55%,var(--ui-deep))!important;color:var(--ui-text)!important;box-shadow:inset 0 0 0 3px #0b304c,0 18px 55px #0008!important;scrollbar-width:thin;scrollbar-color:var(--ui-edge) var(--ui-deep)}
html body :is(#wiki-system,#settings-system,#pokelog-system,#tcg-system,#hunt-boss-crafts-system,#legacy-system,#pokemon-helds-modal,#profession-system,#profession-workstation-system,#boss-forge-system,#friends-system,#houses-system,#house-shop-system,#diamond-shop-system,#diamond-history-system,#daily-gift-system,#weekly-battle-pass,#topidle-vote-system,#referral-system,.boss-forge-modal,.market-panel,.player-market-panel) :is(.system-window>header,.tcg-head,.boss-forge-shell>header,.weekly-pass-window>header,.panel-title){min-width:0!important;gap:12px;border-bottom:1px solid var(--ui-edge)!important;background:linear-gradient(100deg,#103653,var(--ui-bg))!important;color:var(--ui-text)!important;text-shadow:none!important}
html body :is(#wiki-system,#settings-system,#pokelog-system,#tcg-system,#hunt-boss-crafts-system,#legacy-system,#pokemon-helds-modal,#profession-system,#profession-workstation-system,#boss-forge-system,#friends-system,#houses-system,#house-shop-system,#diamond-shop-system,#diamond-history-system,#daily-gift-system,#weekly-battle-pass,#topidle-vote-system,#referral-system,.boss-forge-modal,.market-panel,.player-market-panel) :is(.system-window>header,.tcg-head,.boss-forge-shell>header,.weekly-pass-window>header,.panel-title) :is(h2,strong){font-family:Arial,sans-serif!important;color:var(--ui-text)!important;text-shadow:none!important;letter-spacing:.4px;overflow-wrap:anywhere}
html body :is(#wiki-system,#settings-system,#pokelog-system,#tcg-system,#hunt-boss-crafts-system,#legacy-system,#pokemon-helds-modal,#profession-system,#profession-workstation-system,#boss-forge-system,#friends-system,#houses-system,#house-shop-system,#diamond-shop-system,#diamond-history-system,#daily-gift-system,#weekly-battle-pass,#topidle-vote-system,#referral-system,.boss-forge-modal,.market-panel,.player-market-panel) :is(.system-window>header,.tcg-head,.boss-forge-shell>header,.weekly-pass-window>header,.panel-title) h2{font-size:clamp(18px,2.1vw,26px)!important;line-height:1.2!important}
html body :is(#wiki-system,#settings-system,#pokelog-system,#tcg-system,#hunt-boss-crafts-system,#legacy-system,#pokemon-helds-modal,#profession-system,#profession-workstation-system,#boss-forge-system,#friends-system,#houses-system,#house-shop-system,#diamond-shop-system,#diamond-history-system,#daily-gift-system,#weekly-battle-pass,#topidle-vote-system,#referral-system,.boss-forge-modal,.market-panel,.player-market-panel) :is(.system-window>header,.tcg-head,.boss-forge-shell>header,.weekly-pass-window>header,.panel-title) small{color:var(--ui-cyan)!important;font:700 10px/1.4 Arial,sans-serif!important;letter-spacing:1.2px}
html body :is(#wiki-system,#settings-system,#pokelog-system,#tcg-system,#hunt-boss-crafts-system,#legacy-system,#pokemon-helds-modal,#profession-system,#profession-workstation-system,#boss-forge-system,#friends-system,#houses-system,#house-shop-system,#diamond-shop-system,#diamond-history-system,#daily-gift-system,#weekly-battle-pass,#topidle-vote-system,#referral-system,.boss-forge-modal,.market-panel,.player-market-panel) :is(.legacy-card,.legacy-hero,.legacy-summary,.legacy-note,.legacy-token-machine,.legacy-token-packages,.settings-section,.settings-menu-option,.settings-toggle-row,.pokelog-species-card,.pokelog-stage,.pokelog-slot,.pokelog-gem,.pokelog-loadout,.pokelog-gem-catalog,.tcg-panel,.tcg-deck-row,.tcg-shop-item,.profession-choice,.profession-recipe,.profession-output,.profession-tools,.profession-active,.profession-rank-road,.profession-coverage>span,.profession-material-list>span,.boss-forge-card,.hunt-boss-craft-card,.friends-row,.friend-card,.house-card,.house-shop-card,.diamond-offer,.diamond-recharge-copy,.daily-gift-card,.daily-gift-day,.referral-promo-card,.referral-hero,.referral-stats>div,.topidle-vote-card,.weekly-pass-day,.weekly-pass-summary,.weekly-pass-special,.market-row,.market-offer-card,.market-summary-card){background:linear-gradient(130deg,var(--ui-card),var(--ui-bg))!important;border-color:var(--ui-line)!important;border-radius:4px 10px!important;color:var(--ui-text)!important;box-shadow:inset 0 1px #46d3ff0d!important;min-width:0;box-sizing:border-box}
html body :is(#wiki-system,#settings-system,#pokelog-system,#tcg-system,#hunt-boss-crafts-system,#legacy-system,#pokemon-helds-modal,#profession-system,#profession-workstation-system,#boss-forge-system,#friends-system,#houses-system,#house-shop-system,#diamond-shop-system,#diamond-history-system,#daily-gift-system,#weekly-battle-pass,#topidle-vote-system,#referral-system,.boss-forge-modal,.market-panel,.player-market-panel) :is(.legacy-card,.legacy-hero,.legacy-summary,.legacy-note,.legacy-token-machine,.legacy-token-packages,.settings-section,.settings-menu-option,.settings-toggle-row,.pokelog-species-card,.pokelog-stage,.pokelog-slot,.pokelog-gem,.pokelog-loadout,.pokelog-gem-catalog,.tcg-panel,.tcg-deck-row,.tcg-shop-item,.profession-choice,.profession-recipe,.profession-output,.profession-tools,.profession-active,.profession-rank-road,.profession-coverage>span,.profession-material-list>span,.boss-forge-card,.hunt-boss-craft-card,.friends-row,.friend-card,.house-card,.house-shop-card,.diamond-offer,.diamond-recharge-copy,.daily-gift-card,.daily-gift-day,.referral-promo-card,.referral-hero,.referral-stats>div,.topidle-vote-card,.weekly-pass-day,.weekly-pass-summary,.weekly-pass-special,.market-row,.market-offer-card,.market-summary-card) :is(h3,h4){color:var(--ui-text)!important;font-family:Arial,sans-serif!important;text-shadow:none!important}
html body :is(#wiki-system,#settings-system,#pokelog-system,#tcg-system,#hunt-boss-crafts-system,#legacy-system,#pokemon-helds-modal,#profession-system,#profession-workstation-system,#boss-forge-system,#friends-system,#houses-system,#house-shop-system,#diamond-shop-system,#diamond-history-system,#daily-gift-system,#weekly-battle-pass,#topidle-vote-system,#referral-system,.boss-forge-modal,.market-panel,.player-market-panel) :is(.legacy-card,.legacy-hero,.legacy-summary,.legacy-note,.legacy-token-machine,.legacy-token-packages,.settings-section,.settings-menu-option,.settings-toggle-row,.pokelog-species-card,.pokelog-stage,.pokelog-slot,.pokelog-gem,.pokelog-loadout,.pokelog-gem-catalog,.tcg-panel,.tcg-deck-row,.tcg-shop-item,.profession-choice,.profession-recipe,.profession-output,.profession-tools,.profession-active,.profession-rank-road,.profession-coverage>span,.profession-material-list>span,.boss-forge-card,.hunt-boss-craft-card,.friends-row,.friend-card,.house-card,.house-shop-card,.diamond-offer,.diamond-recharge-copy,.daily-gift-card,.daily-gift-day,.referral-promo-card,.referral-hero,.referral-stats>div,.topidle-vote-card,.weekly-pass-day,.weekly-pass-summary,.weekly-pass-special,.market-row,.market-offer-card,.market-summary-card) :is(p,small){color:var(--ui-muted);line-height:1.45}
html body :is(#wiki-system,#settings-system,#pokelog-system,#tcg-system,#hunt-boss-crafts-system,#legacy-system,#pokemon-helds-modal,#profession-system,#profession-workstation-system,#boss-forge-system,#friends-system,#houses-system,#house-shop-system,#diamond-shop-system,#diamond-history-system,#daily-gift-system,#weekly-battle-pass,#topidle-vote-system,#referral-system,.boss-forge-modal,.market-panel,.player-market-panel) :is(.legacy-card,.legacy-hero,.legacy-summary,.legacy-note,.legacy-token-machine,.legacy-token-packages,.settings-section,.settings-menu-option,.settings-toggle-row,.pokelog-species-card,.pokelog-stage,.pokelog-slot,.pokelog-gem,.pokelog-loadout,.pokelog-gem-catalog,.tcg-panel,.tcg-deck-row,.tcg-shop-item,.profession-choice,.profession-recipe,.profession-output,.profession-tools,.profession-active,.profession-rank-road,.profession-coverage>span,.profession-material-list>span,.boss-forge-card,.hunt-boss-craft-card,.friends-row,.friend-card,.house-card,.house-shop-card,.diamond-offer,.diamond-recharge-copy,.daily-gift-card,.daily-gift-day,.referral-promo-card,.referral-hero,.referral-stats>div,.topidle-vote-card,.weekly-pass-day,.weekly-pass-summary,.weekly-pass-special,.market-row,.market-offer-card,.market-summary-card):is(.selected,.active,.ready,.today){border-color:var(--ui-cyan)!important;box-shadow:inset 3px 0 var(--ui-cyan)!important}
html body :is(#wiki-system,#settings-system,#pokelog-system,#tcg-system,#hunt-boss-crafts-system,#legacy-system,#pokemon-helds-modal,#profession-system,#profession-workstation-system,#boss-forge-system,#friends-system,#houses-system,#house-shop-system,#diamond-shop-system,#diamond-history-system,#daily-gift-system,#weekly-battle-pass,#topidle-vote-system,#referral-system,.boss-forge-modal,.market-panel,.player-market-panel) :is(.legacy-tabs,.settings-menu-layout,.pokelog-tabs,.tcg-tabs,.profession-tabs,.diamond-tabs,.client-tabs,.npc-buy-categories,.player-market-sections,.houses-tabs,.house-shop-tabs,.daily-gift-tabs){gap:6px;border-color:var(--ui-line)!important;background:var(--ui-deep)!important;min-width:0;scrollbar-width:thin;scrollbar-color:var(--ui-edge) var(--ui-deep)}
html body :is(#wiki-system,#settings-system,#pokelog-system,#tcg-system,#hunt-boss-crafts-system,#legacy-system,#pokemon-helds-modal,#profession-system,#profession-workstation-system,#boss-forge-system,#friends-system,#houses-system,#house-shop-system,#diamond-shop-system,#diamond-history-system,#daily-gift-system,#weekly-battle-pass,#topidle-vote-system,#referral-system,.boss-forge-modal,.market-panel,.player-market-panel) :is(.legacy-tabs,.settings-menu-layout,.pokelog-tabs,.tcg-tabs,.profession-tabs,.diamond-tabs,.client-tabs,.npc-buy-categories,.player-market-sections,.houses-tabs,.house-shop-tabs,.daily-gift-tabs) button{border:1px solid var(--ui-line)!important;border-radius:4px!important;background:var(--ui-card)!important;color:var(--ui-muted)!important;text-shadow:none!important;min-height:36px;padding:8px 12px;font-family:Arial,sans-serif!important;line-height:1.2}
html body :is(#wiki-system,#settings-system,#pokelog-system,#tcg-system,#hunt-boss-crafts-system,#legacy-system,#pokemon-helds-modal,#profession-system,#profession-workstation-system,#boss-forge-system,#friends-system,#houses-system,#house-shop-system,#diamond-shop-system,#diamond-history-system,#daily-gift-system,#weekly-battle-pass,#topidle-vote-system,#referral-system,.boss-forge-modal,.market-panel,.player-market-panel) :is(.legacy-tabs,.settings-menu-layout,.pokelog-tabs,.tcg-tabs,.profession-tabs,.diamond-tabs,.client-tabs,.npc-buy-categories,.player-market-sections,.houses-tabs,.house-shop-tabs,.daily-gift-tabs) button:is(.active,.selected,[aria-selected=true]){border-color:var(--ui-cyan)!important;color:var(--ui-gold)!important;background:#0b3453!important;box-shadow:inset 0 -2px var(--ui-cyan)!important}
html body :is(#wiki-system,#settings-system,#pokelog-system,#tcg-system,#hunt-boss-crafts-system,#legacy-system,#pokemon-helds-modal,#profession-system,#profession-workstation-system,#boss-forge-system,#friends-system,#houses-system,#house-shop-system,#diamond-shop-system,#diamond-history-system,#daily-gift-system,#weekly-battle-pass,#topidle-vote-system,#referral-system,.boss-forge-modal,.market-panel,.player-market-panel) :is(header>button,.wiki-client-actions>button,.pokelog-close,.profession-close,.tcg-head button,.system-button,.legacy-action,.tcg-btn,.profession-tools button,.profession-recipe>footer button,.boss-forge-card>button,.weekly-pass-actions button,.weekly-pass-header-actions button,.weekly-pass-purchase button,.referral-share-actions button,.topidle-vote-actions button,.market-buy-button,.market-sell-button,.diamond-offer button,.diamond-toolbar button,.daily-gift-claim,.client-panel-close){border:1px solid var(--ui-edge)!important;border-radius:4px 8px!important;background:linear-gradient(#12547b,#07304d)!important;color:var(--ui-text)!important;min-height:36px;text-shadow:none!important;box-shadow:none!important;font-family:Arial,sans-serif!important;line-height:1.25;cursor:pointer}
html body :is(#wiki-system,#settings-system,#pokelog-system,#tcg-system,#hunt-boss-crafts-system,#legacy-system,#pokemon-helds-modal,#profession-system,#profession-workstation-system,#boss-forge-system,#friends-system,#houses-system,#house-shop-system,#diamond-shop-system,#diamond-history-system,#daily-gift-system,#weekly-battle-pass,#topidle-vote-system,#referral-system,.boss-forge-modal,.market-panel,.player-market-panel) :is(button,input,select,textarea,a):focus-visible{outline:2px solid var(--ui-gold)!important;outline-offset:2px}
html body :is(#wiki-system,#settings-system,#pokelog-system,#tcg-system,#hunt-boss-crafts-system,#legacy-system,#pokemon-helds-modal,#profession-system,#profession-workstation-system,#boss-forge-system,#friends-system,#houses-system,#house-shop-system,#diamond-shop-system,#diamond-history-system,#daily-gift-system,#weekly-battle-pass,#topidle-vote-system,#referral-system,.boss-forge-modal,.market-panel,.player-market-panel) :is(header>button,.wiki-client-actions>button,.pokelog-close,.profession-close,.tcg-head button,.system-button,.legacy-action,.tcg-btn,.profession-tools button,.profession-recipe>footer button,.boss-forge-card>button,.weekly-pass-actions button,.weekly-pass-header-actions button,.weekly-pass-purchase button,.referral-share-actions button,.topidle-vote-actions button,.market-buy-button,.market-sell-button,.diamond-offer button,.diamond-toolbar button,.daily-gift-claim,.client-panel-close):hover:not(:disabled):not([aria-disabled=true]){border-color:var(--ui-cyan)!important;background:#12547b!important}
html body :is(#wiki-system,#settings-system,#pokelog-system,#tcg-system,#hunt-boss-crafts-system,#legacy-system,#pokemon-helds-modal,#profession-system,#profession-workstation-system,#boss-forge-system,#friends-system,#houses-system,#house-shop-system,#diamond-shop-system,#diamond-history-system,#daily-gift-system,#weekly-battle-pass,#topidle-vote-system,#referral-system,.boss-forge-modal,.market-panel,.player-market-panel) :is(button:disabled,button[aria-disabled=true]){cursor:not-allowed!important;opacity:.5;filter:saturate(.35)}
html body :is(#wiki-system,#settings-system,#pokelog-system,#tcg-system,#hunt-boss-crafts-system,#legacy-system,#pokemon-helds-modal,#profession-system,#profession-workstation-system,#boss-forge-system,#friends-system,#houses-system,#house-shop-system,#diamond-shop-system,#diamond-history-system,#daily-gift-system,#weekly-battle-pass,#topidle-vote-system,#referral-system,.boss-forge-modal,.market-panel,.player-market-panel) :is(input:not([type=checkbox]):not([type=radio]):not([type=range]),select,textarea){box-sizing:border-box;min-width:0;max-width:100%;border:1px solid var(--ui-line)!important;border-radius:4px!important;background:var(--ui-deep)!important;color:var(--ui-text)!important;accent-color:var(--ui-cyan);font-family:Arial,sans-serif!important}
html body :is(#wiki-system,#settings-system,#pokelog-system,#tcg-system,#hunt-boss-crafts-system,#legacy-system,#pokemon-helds-modal,#profession-system,#profession-workstation-system,#boss-forge-system,#friends-system,#houses-system,#house-shop-system,#diamond-shop-system,#diamond-history-system,#daily-gift-system,#weekly-battle-pass,#topidle-vote-system,#referral-system,.boss-forge-modal,.market-panel,.player-market-panel) :is(input,textarea)::placeholder{color:#87aac1!important;opacity:1}
html body :is(#wiki-system,#settings-system,#pokelog-system,#tcg-system,#hunt-boss-crafts-system,#legacy-system,#pokemon-helds-modal,#profession-system,#profession-workstation-system,#boss-forge-system,#friends-system,#houses-system,#house-shop-system,#diamond-shop-system,#diamond-history-system,#daily-gift-system,#weekly-battle-pass,#topidle-vote-system,#referral-system,.boss-forge-modal,.market-panel,.player-market-panel) :is(.system-message,.legacy-note,.daily-gift-note){color:var(--ui-muted);line-height:1.5}
html body :is(#wiki-system,#settings-system,#pokelog-system,#tcg-system,#hunt-boss-crafts-system,#legacy-system,#pokemon-helds-modal,#profession-system,#profession-workstation-system,#boss-forge-system,#friends-system,#houses-system,#house-shop-system,#diamond-shop-system,#diamond-history-system,#daily-gift-system,#weekly-battle-pass,#topidle-vote-system,#referral-system,.boss-forge-modal,.market-panel,.player-market-panel) :is(.settings-content,.legacy-content,.pokelog-body,.profession-body,.tcg-body,.friends-content,.house-list,.house-shop-content){min-height:0;min-width:0;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:var(--ui-edge) var(--ui-bg)}
html body :is(#wiki-system,#settings-system,#pokelog-system,#tcg-system,#hunt-boss-crafts-system,#legacy-system,#pokemon-helds-modal,#profession-system,#profession-workstation-system,#boss-forge-system,#friends-system,#houses-system,#house-shop-system,#diamond-shop-system,#diamond-history-system,#daily-gift-system,#weekly-battle-pass,#topidle-vote-system,#referral-system,.boss-forge-modal,.market-panel,.player-market-panel) :is(h2,h3,h4){font-family:Arial,sans-serif!important;text-shadow:none!important}
html body :is(#wiki-system,#settings-system,#pokelog-system,#tcg-system,#hunt-boss-crafts-system,#legacy-system,#pokemon-helds-modal,#profession-system,#profession-workstation-system,#boss-forge-system,#friends-system,#houses-system,#house-shop-system,#diamond-shop-system,#diamond-history-system,#daily-gift-system,#weekly-battle-pass,#topidle-vote-system,#referral-system,.boss-forge-modal,.market-panel,.player-market-panel):not(#tcg-system) article{background:linear-gradient(130deg,var(--ui-card),var(--ui-bg))!important;border-color:var(--ui-line)!important;color:var(--ui-text)!important;border-radius:4px 10px!important}
html body :is(#wiki-system,#settings-system,#pokelog-system,#tcg-system,#hunt-boss-crafts-system,#legacy-system,#pokemon-helds-modal,#profession-system,#profession-workstation-system,#boss-forge-system,#friends-system,#houses-system,#house-shop-system,#diamond-shop-system,#diamond-history-system,#daily-gift-system,#weekly-battle-pass,#topidle-vote-system,#referral-system,.boss-forge-modal,.market-panel,.player-market-panel):not(#tcg-system) :is(article button,.legacy-card button,.held-vault button,.held-upgrade button){border-color:var(--ui-edge)!important;background:linear-gradient(#12547b,#07304d)!important;color:var(--ui-text)!important;min-height:36px;line-height:1.3}
html body :is(#wiki-system,#settings-system,#pokelog-system,#tcg-system,#hunt-boss-crafts-system,#legacy-system,#pokemon-helds-modal,#profession-system,#profession-workstation-system,#boss-forge-system,#friends-system,#houses-system,#house-shop-system,#diamond-shop-system,#diamond-history-system,#daily-gift-system,#weekly-battle-pass,#topidle-vote-system,#referral-system,.boss-forge-modal,.market-panel,.player-market-panel):not(#tcg-system) p{font-size:12px!important;line-height:1.5!important}
html body :is(#wiki-system,#settings-system,#pokelog-system,#tcg-system,#hunt-boss-crafts-system,#legacy-system,#pokemon-helds-modal,#profession-system,#profession-workstation-system,#boss-forge-system,#friends-system,#houses-system,#house-shop-system,#diamond-shop-system,#diamond-history-system,#daily-gift-system,#weekly-battle-pass,#topidle-vote-system,#referral-system,.boss-forge-modal,.market-panel,.player-market-panel) :is(.held-vault,.held-vault>header,.held-upgrade,.held-upgrade>header,.held-upgrade-actions,.held-balances>div,.tcg-kpi,.tcg-queue,.referral-dashboard,.referral-progress,.referral-stat,.weekly-pass-free-summary){background:var(--ui-card)!important;border-color:var(--ui-line)!important;color:var(--ui-text)!important}
/* Page-specific surfaces: no recoloring of sprites, cards' elements or terrain. */
html body #profession-system{z-index:490000!important}
html body #world-atlas :is(input,select){background:var(--ui-deep)!important}
html body #world-atlas :is(.atlas-search-row,.atlas-search-summary,.atlas-clan-filters){background:var(--ui-card)!important;border-color:var(--ui-line)!important;color:var(--ui-text)!important}
html body :is(.market-row,.market-item,.npc-trade-card) button,html body .pio-profile-extras button{border:1px solid var(--ui-edge)!important;border-radius:4px 8px!important;background:linear-gradient(#12547b,#07304d)!important;color:var(--ui-text)!important;min-height:38px!important;padding:7px 10px!important}
html.reference-hud.ui-paired-tools body #ha-panel.expanded{width:min(940px,calc(100dvw - 456px))!important}
html body :is(.market-panel,.player-market-panel).client-open{border:2px solid var(--ui-edge)!important;border-radius:5px 16px!important;background:var(--ui-bg)!important;color:var(--ui-text)!important;max-width:calc(var(--ui-vw) - 24px)!important;max-height:calc(var(--ui-vh) - 24px)!important;box-sizing:border-box!important}
html body :is(.market-panel,.player-market-panel) :is(.player-market-discovery,.market-filter-row,.market-advanced-filters,.market-section-title,.npc-buy-categories,.npc-sell-tools){background:var(--ui-card)!important;border-color:var(--ui-line)!important;color:var(--ui-text)!important}
html body #settings-system :is(.settings-content,.settings-footer),html body #pokelog-system :is(.pokelog-types,.pokelog-records,.pokelog-detail),html body #profession-system :is(.profession-body,.profession-recipe>header,.profession-recipe>footer),html body #boss-forge-system :is(.boss-forge-regions,footer),html body #tcg-system :is(.tcg-tabs,.tcg-body:not(.tcg-body-match)){background-color:var(--ui-bg)!important;border-color:var(--ui-line)!important}
html body #settings-system :is(.settings-header-icon,.settings-row-icon){background:var(--ui-card)!important;color:var(--ui-cyan)!important;border-color:var(--ui-line)!important}
html body #legacy-system :is(.legacy-card small,.legacy-note,.legacy-card p,.legacy-source){font-size:12px!important;line-height:1.45!important}
html body #legacy-system .legacy-content{max-height:none!important;overflow:auto!important}
html body #wiki-system{padding:12px!important;align-items:center!important}
html body #wiki-system .wiki-client-window{height:min(820px,calc(var(--ui-vh) - 24px))!important;display:flex!important;flex-direction:column!important}
html body #wiki-system .wiki-client-window>header{padding:12px!important;display:flex!important;justify-content:space-between;align-items:center;flex:none;gap:12px}
html body #wiki-client-frame{width:100%!important;min-width:0!important;min-height:0!important;height:auto!important;flex:1!important;border:0;background:var(--ui-bg)}
html body #world-atlas{--atlas-ink:var(--ui-text);--atlas-muted:var(--ui-muted);--atlas-gold:var(--ui-gold);--atlas-line:var(--ui-line);background:var(--ui-bg)!important;font-family:Arial,sans-serif!important}
html body #world-atlas :is(.atlas-top,.atlas-sidebar,.atlas-details,.atlas-region-tabs,.atlas-search-area,.atlas-professor,.atlas-controls,.atlas-map-caption){background:linear-gradient(135deg,var(--ui-card),var(--ui-bg))!important;border-color:var(--ui-edge)!important;color:var(--ui-text)!important}
html body #world-atlas :is(.atlas-region-card,.atlas-pokemon,.atlas-hunt,.atlas-searchbox,.atlas-legend){background:var(--ui-card)!important;border-color:var(--ui-line)!important;color:var(--ui-text)!important}
html body #world-atlas :is(button,input,select){border-color:var(--ui-line)!important;color:var(--ui-text)!important}
html body #world-atlas :is(.atlas-go,.atlas-search-go,.atlas-region-tabs button.active,.atlas-hunt.selected){background:#104469!important;border-color:var(--ui-cyan)!important;color:var(--ui-gold)!important}
html body #world-atlas :is(button,input,select):focus-visible{outline:2px solid var(--ui-gold)!important;outline-offset:2px}
html body #world-atlas .atlas-brand b{font-family:Arial,sans-serif!important;color:var(--ui-text)!important;text-shadow:none!important}
/* AutoHelper shares the frame vocabulary; existing supply aura remains untouched. */
html body #auto-helper-panel{border:2px solid var(--ui-edge)!important;border-radius:4px 14px!important;background:var(--ui-bg)!important;color:var(--ui-text)!important;padding:0!important;box-sizing:border-box!important;isolation:isolate;max-width:calc(var(--ui-vw) - 16px)!important}
html body #auto-helper-panel:not(.collapsed) .auto-helper-head{display:flex!important;flex-wrap:wrap!important;align-items:center!important;gap:8px!important;min-height:48px!important;padding:10px!important;background:linear-gradient(100deg,#103653,var(--ui-bg))!important;border-bottom:1px solid var(--ui-edge)!important}
html body #auto-helper-panel .auto-helper-brand{min-width:0!important;flex:1 1 150px!important;color:var(--ui-text)!important}
html body #auto-helper-panel .auto-helper-brand b{font:700 13px/1.3 Arial,sans-serif!important;letter-spacing:.5px!important;color:var(--ui-text)!important}
html body #auto-helper-panel:not(.collapsed) .auto-helper-brand b{display:block!important}
html body #auto-helper-panel:not(.collapsed) .auto-helper-compact>span{display:flex!important;align-items:center!important;gap:3px!important;min-width:0!important}
html body #auto-helper-panel:not(.collapsed) .auto-helper-compact b{display:block!important}
html body #auto-helper-panel .auto-helper-brand small{font:10px/1.4 Arial,sans-serif!important;color:var(--ui-cyan)!important}
html body #auto-helper-panel:not(.collapsed) .auto-helper-compact{position:static!important;order:3!important;display:flex!important;justify-content:space-between;flex:1 0 100%!important;min-width:0!important;gap:5px!important}
html body #auto-helper-panel .auto-helper-compact b{font-size:11px!important;overflow-wrap:anywhere}
html body #auto-helper-panel:not(.collapsed) .auto-helper-body{min-height:0!important;flex:1 1 auto!important;overflow:auto!important;overscroll-behavior:contain;padding:10px!important;display:flex!important;flex-direction:column!important;gap:10px!important;max-height:none!important;scrollbar-width:thin;scrollbar-color:var(--ui-edge) var(--ui-bg)}
html body #auto-helper-panel .helper-module{background:var(--ui-card)!important;border:1px solid var(--ui-line)!important;border-radius:4px 9px!important;padding:8px!important;min-width:0!important;flex-shrink:0!important}
html body #auto-helper-panel :is(.helper-capture-grid,.helper-quick-grid,.helper-renew-grid){gap:8px!important;min-width:0!important;flex-shrink:0!important}
html body #auto-helper-panel :is(.helper-switch,.helper-inline-check){min-height:38px!important;color:var(--ui-text)!important;line-height:1.3!important}
html body #auto-helper-panel .helper-switch>b{font:700 12px/1.4 Arial,sans-serif!important}
html body #auto-helper-panel :is(.helper-switch>small,.helper-config,.helper-config>b,.helper-inline-check,.helper-profession-section p){font-size:11px!important;color:var(--ui-muted)!important}
html body #auto-helper-panel :is(select,input[type=number]){min-height:34px!important;background:var(--ui-deep)!important;border:1px solid var(--ui-line)!important;color:var(--ui-text)!important;max-width:100%!important;min-width:0!important;font-size:12px!important}
html body #auto-helper-panel :is(input[type=checkbox],input[type=radio]){accent-color:var(--ui-cyan);width:16px!important;height:16px!important;flex:none!important}
html body #auto-helper-panel .helper-ball-options{display:flex!important;flex-wrap:wrap!important;gap:8px!important;padding:6px!important;overflow:visible!important}
html body #auto-helper-panel .helper-ball{flex:0 0 44px!important;min-width:44px!important;min-height:44px!important;box-sizing:border-box!important}
html body #auto-helper-panel .helper-profession-section{border-color:var(--ui-line)!important;background:var(--ui-card)!important;color:var(--ui-text)!important;flex-shrink:0!important}
html body #auto-helper-panel #minimize-auto-helper{flex:none!important;width:36px!important;height:36px!important;position:static!important;border:1px solid var(--ui-edge)!important;border-radius:4px!important;background:var(--ui-deep)!important;color:var(--ui-cyan)!important}
html body #auto-helper-panel :is(button,select,input):focus-visible{outline:2px solid var(--ui-gold)!important;outline-offset:2px}
/* Compact navigation: reflow the existing twelve commands into usable tiles. */
html body #pio-main-menu:not(.pio-mobile) .pio-menu-label{font-size:12px!important;line-height:1.25!important}
html body #pio-main-menu.pio-mobile{top:var(--ui-safe-top)!important;left:var(--ui-safe-left)!important;width:calc(var(--ui-vw) - var(--ui-safe-left) - var(--ui-safe-right))!important;max-width:540px!important}
html body #pio-main-menu.pio-mobile .pio-menu-scroll{height:auto!important;max-height:calc(var(--ui-vh) - 74px)!important;overflow:auto!important;overscroll-behavior:contain;background:var(--ui-bg);border:2px solid var(--ui-edge);border-radius:4px 14px;margin-top:8px}
html body #pio-main-menu.pio-mobile .pio-menu-reserve{width:100%!important;height:auto!important;padding:8px!important}
html body #pio-main-menu.pio-mobile .pio-menu-bar{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;position:relative!important;inset:auto!important;width:100%!important;height:auto!important;padding:0!important;gap:6px!important;transform:none!important}
html body #pio-main-menu.pio-mobile .pio-menu-frame{display:none!important}
html body #pio-main-menu.pio-mobile .pio-menu-slot{width:100%!important;height:auto!important;min-height:86px!important;padding:10px 4px 18px!important;border:1px solid var(--ui-line)!important;border-radius:4px 9px!important;background:var(--ui-card)!important;gap:7px!important;justify-content:center!important}
html body #pio-main-menu.pio-mobile .pio-menu-slot:after,html body #pio-main-menu.pio-mobile .pio-menu-hero:before{display:none!important}
html body #pio-main-menu.pio-mobile .pio-menu-icon{position:static!important;width:32px!important;height:32px!important;border:0!important;border-radius:0!important;box-shadow:none!important;background:transparent!important}
html body #pio-main-menu.pio-mobile .pio-menu-icon img{width:32px!important;height:32px!important}
html body #pio-main-menu.pio-mobile .pio-menu-label{font:700 10px/1.25 Arial,sans-serif!important;max-width:none!important;color:var(--ui-text)!important}
html.ui-compact body .pio-menu-dropdown button{min-height:44px!important;white-space:normal!important}
/* Responsive mode is shared by the menu and the HUD owner. */
html.ui-compact body #stage #pokemon-team-bar{position:fixed!important;left:var(--ui-safe-left)!important;top:calc(var(--ui-safe-top) + 56px)!important;right:auto!important;bottom:auto!important;width:min(280px,calc(var(--ui-vw) - 80px))!important;min-width:0!important;max-width:calc(var(--ui-vw) - 80px)!important;max-height:calc(var(--ui-vh) * .42)!important;transform:none!important;zoom:1!important;background:var(--ui-bg)!important;border:1px solid var(--ui-edge)!important;border-radius:4px 12px!important;box-sizing:border-box!important;padding:6px!important}
html.ui-compact body #stage #pokemon-team-bar.team-bar:is(.is-minimized,.collapsed){width:min(280px,calc(var(--ui-vw) - 80px))!important;height:48px!important;min-height:48px!important}
html.ui-compact body #stage #pokemon-team-bar .team-header{min-height:34px!important;gap:8px!important;align-items:center!important}
html.ui-compact body #stage #pokemon-team-bar .team-header :is(h1,h2,h3){font:700 14px/1.3 Arial!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html.ui-compact body #stage #pokemon-team-bar .team-header button{min-width:36px!important;min-height:36px!important}
html.ui-compact body #stage #pokemon-team-bar :is(.team-list,.team-slots){min-height:0!important;overflow:auto!important}
html.ui-compact body #stage #pokemon-skills-window{position:fixed!important;left:var(--ui-safe-left)!important;right:auto!important;bottom:var(--ui-safe-bottom)!important;top:auto!important;width:calc(var(--ui-vw) - var(--ui-safe-left) - var(--ui-safe-right))!important;max-width:640px!important;height:64px!important;min-width:0!important;min-height:0!important;max-height:64px!important;transform:none!important;zoom:1!important}
html.ui-compact body #stage #pokemon-skills-window.is-minimized{width:132px!important;height:44px!important}
html.ui-compact body #stage #pokemon-skills-window>.skills-bar{position:relative!important;display:block!important;padding:6px 42px!important;width:100%!important;min-width:0!important;max-width:none!important;height:100%!important;box-sizing:border-box!important;background:var(--ui-bg)!important;border:1px solid var(--ui-edge)!important;border-radius:4px 12px!important}
html.ui-compact body #stage #pokemon-moves{position:static!important;inset:auto!important;transform:none!important;width:100%!important;height:100%!important;margin:0!important;display:flex!important;gap:6px!important;overflow-x:auto!important;overflow-y:hidden!important;padding:0!important;touch-action:pan-x;scrollbar-width:thin}
html.ui-compact body #stage #pokemon-moves .move-slot{min-width:46px!important;width:46px!important;height:46px!important;flex:0 0 46px!important}
html.ui-compact body #stage #pokemon-skills-window :is(.config-button,.skills-minimize){min-width:34px!important;width:34px!important;min-height:40px!important;height:40px!important;transform:none!important}
html.ui-compact body #stage #pokemon-skills-window>.skills-bar{height:64px!important;max-height:64px!important;min-height:64px!important}
html.ui-compact body #stage #pokemon-skills-window .config-button{position:absolute!important;left:5px!important;top:8px!important;right:auto!important;bottom:auto!important}
html.ui-compact body #stage #pokemon-moves{min-height:46px!important;max-height:50px!important}
html.ui-compact body #stage #pokemon-skills-window .rh-drag-grip{display:none!important}
html.ui-compact body #online-members-hud{position:fixed!important;top:var(--ui-safe-top)!important;right:var(--ui-safe-right)!important;left:auto!important;bottom:auto!important;width:104px!important;height:44px!important;min-height:0!important;padding:5px 9px!important;transform:none!important;zoom:1!important;border:1px solid var(--ui-edge)!important;border-radius:4px 12px!important;background:var(--ui-bg)!important}
html.ui-compact body #online-members-hud :is(small,.online-members-label){font-size:8px!important}
html.ui-compact body #mailbox-floating-letter{position:fixed!important;left:var(--ui-safe-left)!important;bottom:calc(var(--ui-safe-bottom) + 78px)!important;top:auto!important;right:auto!important;transform:none!important;zoom:1!important;width:50px!important;height:50px!important;min-width:0!important;min-height:0!important}
html.ui-compact body #discord-voice-button{top:calc(var(--ui-safe-top) + 56px)!important;right:var(--ui-safe-right)!important;left:auto!important;bottom:auto!important;width:44px!important;height:44px!important;transform:none!important;zoom:1!important}
html.ui-compact body #shiny-global-next{position:fixed!important;left:auto!important;right:var(--ui-safe-right)!important;top:calc(var(--ui-safe-top) + 108px)!important;bottom:auto!important;max-width:150px!important;transform:none!important;zoom:1!important}
html.ui-compact body #mainbar-buff-tray{position:fixed!important;top:calc(var(--ui-safe-top) + 156px)!important;right:var(--ui-safe-right)!important;left:auto!important;bottom:auto!important;max-height:calc(var(--ui-vh) - 320px)!important;max-width:80px!important;overflow:auto!important;transform:none!important}
html.ui-compact body #game-chat.minimized{position:fixed!important;left:calc(var(--ui-safe-left) + 58px)!important;bottom:calc(var(--ui-safe-bottom) + 82px)!important;top:auto!important;right:auto!important;width:44px!important;height:44px!important;min-width:0!important;min-height:0!important;transform:none!important;zoom:1!important}
html.ui-compact body #game-chat.minimized :is(.chat-minimized-title,.chat-minimized-meta){display:none!important}
html.ui-compact body #game-chat.minimized .chat-restore{display:grid!important;place-items:center;width:42px!important;height:42px!important}
html.ui-compact body #game-chat:not(.minimized){position:fixed!important;left:var(--ui-safe-left)!important;bottom:calc(var(--ui-safe-bottom) + 76px)!important;top:auto!important;width:calc(var(--ui-vw) - var(--ui-safe-left) - var(--ui-safe-right))!important;max-width:540px!important;height:min(420px,calc(var(--ui-vh) - 150px))!important;min-width:0!important;min-height:0!important;transform:none!important;zoom:1!important}
html.ui-compact body :is(#ha-panel,#auto-helper-panel,#party-panel)[data-ui-tool]{position:fixed!important;left:calc(var(--ui-vx) + var(--ui-safe-left))!important;top:var(--ui-tool-top)!important;right:auto!important;bottom:auto!important;width:calc(var(--ui-vw) - var(--ui-safe-left) - var(--ui-safe-right))!important;min-width:0!important;max-width:540px!important;height:var(--ui-tool-height)!important;min-height:0!important;max-height:var(--ui-tool-height)!important;transform:none!important;zoom:1!important;box-sizing:border-box!important;overflow:hidden!important;z-index:24000!important}
html.ui-compact body :is(#ha-panel,#auto-helper-panel,#party-panel)[data-ui-tool]:not(.collapsed){display:flex!important;flex-direction:column!important}
html.ui-compact body #ha-panel :is(.hdr,.tools),html.ui-compact body #party-panel .pa-header{flex-shrink:0!important}
html.ui-compact body #ha-panel .hdr{padding:6px 8px!important}
html.ui-compact body :is(#ha-panel,#party-panel) :is(.ib,.pa-btn){min-width:40px!important;min-height:40px!important}
html.ui-compact body #ha-panel .collapsible,html.ui-compact body #party-panel .pa-body{min-height:0!important;flex:1 1 auto!important;overflow:auto!important;overscroll-behavior:contain}
html.ui-compact body #ha-panel .rsz{display:none!important}
html.ui-compact body #ha-panel .cols{grid-template-columns:minmax(0,1fr)!important}
html.ui-compact body #ha-panel .kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important}
html.ui-compact body #auto-helper-panel :is(.helper-hunt-module,.helper-care-module){display:flex!important;flex-direction:column!important;gap:8px!important}
html.ui-compact body #auto-helper-panel :is(.helper-capture-grid,.helper-renew-grid){display:grid!important;grid-template-columns:minmax(0,1fr)!important}
html.ui-compact body #auto-helper-panel .helper-switch{min-height:44px!important}
html.ui-compact body #auto-helper-panel :is(select,input[type=number]){font-size:16px!important;min-height:40px!important}
html.ui-compact body #auto-helper-panel .helper-config{display:flex!important;flex-wrap:wrap!important;gap:8px!important;min-width:0!important}
html.ui-compact body #auto-helper-panel .helper-config>label{min-width:0!important;flex:1 1 110px!important}
html.ui-compact body #auto-helper-panel .helper-target-priority{display:flex!important;flex-direction:column!important;gap:6px!important}
html.ui-compact body #auto-helper-panel .helper-hunt-modes{display:flex!important;flex-wrap:wrap!important;gap:8px!important}
html.ui-compact body #auto-helper-panel #minimize-auto-helper{width:40px!important;height:40px!important}
html.ui-compact body #auto-helper-panel.collapsed .auto-helper-head{height:100%!important;min-height:0!important;padding:5px!important}
html.ui-compact body #auto-helper-panel.collapsed .auto-helper-head{display:flex!important;align-items:center!important;gap:6px!important}
html.ui-compact body #auto-helper-panel.collapsed .auto-helper-head:before{content:'AH';color:var(--ui-cyan);font:700 11px Arial;flex:none}
html.ui-compact body #auto-helper-panel.collapsed .auto-helper-brand{display:none!important}
html.ui-compact body #auto-helper-panel.collapsed .auto-helper-compact{display:flex!important;align-items:center!important;justify-content:space-around;position:static!important;flex:1!important;min-width:0!important;gap:4px!important}
html.ui-compact body #auto-helper-panel.collapsed .auto-helper-compact>span{display:flex!important;flex-direction:column!important;gap:2px!important;min-width:0!important;padding:0!important;align-items:center!important}
html.ui-compact body #auto-helper-panel.collapsed .auto-helper-compact b{display:block!important;font:700 10px/1.2 Arial!important}
html.ui-compact body #auto-helper-panel.collapsed .auto-helper-head,html.ui-compact body #ha-panel.collapsed .hdr{width:100%!important;max-width:none!important;height:50px!important;min-height:50px!important;max-height:50px!important;box-sizing:border-box!important}
html.ui-compact body #ha-panel.collapsed .hdr .ttl{flex:1!important}
/* On small devices the native dialogs become readable sheets, not scaled desktop pages. */
@media(max-width:1099px),(max-height:560px),(hover:none) and (pointer:coarse){
 html body :is(#settings-system,#legacy-system,#pokelog-system,#profession-system,#wiki-system,#tcg-system,#boss-forge-system,#friends-system,#houses-system,#house-shop-system,#diamond-shop-system,#daily-gift-system,#weekly-battle-pass,#topidle-vote-system,#referral-system,#hunt-boss-crafts-system) :is(.system-window,.tcg-shell,.boss-forge-shell,.weekly-pass-window){width:calc(var(--ui-vw) - 16px)!important;max-width:calc(var(--ui-vw) - 16px)!important;max-height:calc(var(--ui-vh) - 16px)!important;border-radius:4px 12px!important}
 html body :is(#settings-system,#legacy-system,#pokelog-system,#profession-system,#wiki-system,#tcg-system,#boss-forge-system,#friends-system,#houses-system,#diamond-shop-system,#daily-gift-system,#weekly-battle-pass,#topidle-vote-system,#referral-system,#hunt-boss-crafts-system){padding:8px!important}
 html body :is(#settings-system,#legacy-system,#pokelog-system,#profession-system,#friends-system,#houses-system,#diamond-shop-system,#daily-gift-system,#topidle-vote-system,#referral-system,#hunt-boss-crafts-system) :is(input:not([type=checkbox]):not([type=radio]),select,textarea){font-size:16px!important;min-height:40px}
 html body :is(#settings-system,#legacy-system,#pokelog-system,#profession-system,#tcg-system,#boss-forge-system,#friends-system,#houses-system,#diamond-shop-system,#daily-gift-system,#weekly-battle-pass,#topidle-vote-system,#referral-system,#hunt-boss-crafts-system) :is(nav button,header>button,.client-tabs button){min-height:44px!important;min-width:44px!important}
 html body #pokelog-system .pokelog-log-layout{grid-template-columns:minmax(0,1fr)!important;display:block!important;height:auto!important}
 html body #pokelog-system .pokelog-body{overflow:auto!important;min-height:0!important}
 html body #pokelog-system .pokelog-types>div{display:flex!important;flex-wrap:wrap!important;height:auto!important;max-height:140px!important;overflow:auto!important}
 html body #pokelog-system .pokelog-types button{min-height:40px!important;flex:1 0 100px!important}
 html body #pokelog-system .pokelog-records{display:block!important;overflow:visible!important}
 html body #pokelog-system .pokelog-species-grid{grid-template-columns:repeat(auto-fit,minmax(min(170px,100%),1fr))!important;max-height:420px!important}
 html body #pokelog-system :is(.pokelog-gem-view,.pokelog-tools){grid-template-columns:minmax(0,1fr)!important}
 html body #profession-system :is(.profession-choices,.profession-recipe-grid,.profession-utility-view,.profession-tools){grid-template-columns:minmax(0,1fr)!important}
 html body #profession-system .profession-header{display:grid!important;grid-template-columns:minmax(0,1fr) 44px!important;gap:8px!important;padding:10px!important}
 html body #profession-system .profession-header>aside{grid-row:2!important;grid-column:1/-1!important;min-width:0!important;width:100%!important}
 html body #profession-system .profession-header .profession-profile-xp{min-width:0!important}
 html body #profession-system .profession-close{grid-column:2!important;grid-row:1!important}
 html body #profession-system .profession-craft-flow{grid-template-columns:minmax(0,1fr)!important}
 html body #profession-system .profession-flow-arrow{transform:rotate(90deg);justify-self:center}
 html body #profession-system .profession-recipe>footer{display:flex!important;flex-wrap:wrap!important;gap:8px!important}
 html body #profession-system :is(.profession-recipe small,.profession-tools,.profession-coverage small){font-size:11px!important;line-height:1.4!important}
 html body #legacy-system :is(.legacy-token-inventory,.legacy-catalog-tools){grid-template-columns:minmax(0,1fr)!important}
 html body #legacy-system .legacy-token-actions{min-width:0!important}
 html body #legacy-system .legacy-grid{grid-template-columns:repeat(auto-fit,minmax(min(240px,100%),1fr))!important}
 html body #boss-forge-system main{grid-template-columns:repeat(auto-fit,minmax(min(280px,100%),1fr))!important;padding:12px!important;min-height:0!important}
 html body #boss-forge-system .boss-forge-shell>header{padding:12px!important;gap:10px!important}
 html body #wiki-system .wiki-client-title p{display:none!important}
 html body #wiki-system .wiki-client-title img{width:32px!important;height:32px!important}
 html body #wiki-system .wiki-client-actions{position:static!important;display:flex!important;flex:none!important;gap:6px!important}
 html body #wiki-system .wiki-client-actions button{min-width:40px!important;min-height:40px!important}
 html body :is(.market-panel,.player-market-panel).client-open{position:fixed!important;left:calc(var(--ui-vx) + 8px)!important;top:calc(var(--ui-vy) + 8px)!important;right:auto!important;bottom:auto!important;width:calc(var(--ui-vw) - 16px)!important;height:calc(var(--ui-vh) - 16px)!important;max-height:calc(var(--ui-vh) - 16px)!important;transform:none!important;zoom:1!important}
 html body #world-atlas :is(.atlas-collapse,.atlas-back,.atlas-exit,.atlas-search-go){min-width:40px!important;min-height:40px!important}
}
@media(max-width:600px){
 html body #settings-system .settings-header,html body #topidle-vote-system .topidle-vote-header{display:grid!important;grid-template-columns:36px minmax(0,1fr) 44px!important;gap:10px!important;padding:12px!important}
 html body :is(#settings-system,#topidle-vote-system) header>[data-system-close]{position:static!important;inset:auto!important;width:44px!important;height:44px!important;grid-column:3!important;grid-row:1!important}
 html body #settings-system .settings-header-icon,html body #topidle-vote-system .topidle-vote-brand{width:36px!important;height:36px!important;min-width:0!important}
 html body #daily-gift-system .daily-gift-header{display:grid!important;grid-template-columns:40px minmax(0,1fr) 44px!important;gap:10px!important;padding:12px!important}
 html body #daily-gift-system .daily-gift-title-art{width:40px!important;height:40px!important}
 html body #daily-gift-system .daily-gift-header>[data-system-close]{position:static!important;grid-column:3!important;grid-row:1!important;width:44px!important;height:44px!important}
 html body #daily-gift-system #daily-gift-day-badge{grid-column:1/-1!important;grid-row:2!important;justify-self:start;position:static!important}
 html body #daily-gift-system .daily-gift-window{overflow-x:hidden!important}
 html body #pokelog-system .pokelog-wallet{position:static!important;inset:auto!important;transform:none!important;display:flex!important;width:100%!important;min-width:0!important;gap:8px!important}
 html body #pokelog-system .pokelog-wallet>span{flex:1!important;min-width:0!important;padding:6px 10px!important;background:var(--ui-card)!important;border-color:var(--ui-line)!important}
 html body #legacy-system .held-free-rolls{display:flex!important;flex-wrap:wrap!important;gap:8px!important;min-width:0!important;background:#102c43!important;border-color:var(--ui-gold)!important}
 html body #legacy-system .held-free-rolls button{max-width:100%!important;white-space:normal!important;flex:1 1 150px!important}
 html body #diamond-shop-system .diamond-store>header{display:flex!important;align-items:center!important;flex-wrap:wrap!important;min-height:64px!important;padding:12px!important;gap:8px!important}
 html body #diamond-shop-system .diamond-store>header>div{flex:1 1 200px!important;min-width:0!important}
 html body #diamond-shop-system .diamond-store>header :is(#diamond-history-open,[data-system-close]){position:static!important;inset:auto!important;width:auto!important;min-width:44px!important;min-height:44px!important;flex:0 0 auto!important;padding:6px 9px!important}
 html body #diamond-shop-system #diamond-history-open b{font-size:10px!important;white-space:normal!important}
 html.ui-compact body .mobile-window-reset{display:none!important}
 html body #tcg-system :is(.tcg-builder,.tcg-shop,.tcg-lobby,.tcg-collection-layout){grid-template-columns:minmax(0,1fr)!important}
 html body #pokelog-system .pokelog-header{grid-template-columns:minmax(0,1fr) 44px!important;gap:8px!important;padding:10px!important}
 html body #pokelog-system .pokelog-wallet{grid-column:1/-1!important;grid-row:2!important;flex-wrap:wrap!important}
 html body #pokelog-system .pokelog-close{grid-column:2!important;grid-row:1!important}
 html body #pokelog-system .pokelog-detail>header{grid-template-columns:minmax(0,1fr)!important}
 html body #diamond-shop-system .diamond-layout{grid-template-columns:minmax(0,1fr)!important}
 html body #diamond-shop-system .diamond-offers{grid-template-columns:repeat(auto-fit,minmax(min(240px,100%),1fr))!important}
 html body #diamond-shop-system .diamond-toolbar{display:flex!important;flex-wrap:wrap!important;gap:8px!important}
 html body #diamond-shop-system .diamond-toolbar>*{min-width:0!important;max-width:100%!important;flex:1 1 130px}
 html body :is(#daily-gift-system,#topidle-vote-system,#referral-system) :is(.daily-gift-grid,.referral-stats,.referral-tiers,.topidle-vote-grid){grid-template-columns:minmax(0,1fr)!important}
 html body #weekly-battle-pass .weekly-pass-window>header{padding:12px!important;gap:10px!important;flex-wrap:wrap!important}
 html body #weekly-battle-pass .weekly-pass-header-actions{display:flex!important;flex-wrap:wrap!important;min-width:0!important}
}
@media(max-height:560px){
 html body #pio-main-menu.pio-mobile .pio-menu-bar{grid-template-columns:repeat(4,minmax(0,1fr))!important}
 html body #pio-main-menu.pio-mobile .pio-menu-slot{min-height:72px!important}
 html.ui-compact body #stage #pokemon-team-bar{top:var(--ui-safe-top)!important;left:88px!important;width:230px!important;max-height:calc(var(--ui-vh) - 150px)!important}
 html.ui-compact body #shiny-global-next{top:calc(var(--ui-safe-top) + 56px)!important}
}
@media(prefers-reduced-motion:reduce){html body #pio-main-menu .pio-menu-icon{transition:none!important}}

/* Collapsed AutoHelper: fixed compact strip, independent of expanded geometry. */
html:root body #auto-helper-panel.collapsed{width:min(280px,calc(var(--ui-vw) - 16px))!important;min-width:0!important;max-width:280px!important;height:40px!important;min-height:40px!important;max-height:40px!important;padding:0!important;overflow:hidden!important;box-sizing:border-box!important}
html:root body #auto-helper-panel.collapsed>.auto-helper-head{position:relative!important;inset:auto!important;display:flex!important;flex:0 0 auto!important;flex-wrap:nowrap!important;align-items:center!important;justify-content:flex-start!important;width:100%!important;min-width:0!important;max-width:none!important;height:36px!important;min-height:36px!important;max-height:36px!important;box-sizing:border-box!important;gap:3px!important;padding:1px 3px!important;margin:0!important;border:0!important}
html:root body #auto-helper-panel.collapsed>.auto-helper-head:before{display:none!important}
html:root body #auto-helper-panel.collapsed .auto-helper-brand{display:none!important}
html:root body #auto-helper-panel.collapsed .rh-drag-grip{flex:0 0 12px!important;min-width:12px!important;max-width:12px!important;width:12px!important;height:30px!important;margin:0!important;padding:0!important}
html:root body #auto-helper-panel.collapsed .auto-helper-compact{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;position:static!important;flex:1 1 0!important;order:0!important;align-items:center!important;align-self:center!important;justify-content:normal!important;gap:0!important;min-width:0!important;width:auto!important;height:32px!important;min-height:32px!important;max-height:32px!important;margin:0!important;padding:0!important;border:0!important;overflow:visible!important}
html:root body #auto-helper-panel.collapsed .auto-helper-compact>span{display:flex!important;position:relative!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:1px!important;min-width:0!important;width:auto!important;height:32px!important;min-height:0!important;max-height:32px!important;margin:0!important;padding:0!important;border:0!important;border-right:1px solid #205373!important;background:transparent!important;overflow:visible!important}
html:root body #auto-helper-panel.collapsed .auto-helper-compact :is(.helper-compact-ball-host,.helper-compact-ball-host>canvas,.helper-compact-ball-host>.ball-sheet-frame,span>img){display:block!important;flex:0 0 16px!important;min-width:16px!important;width:16px!important;max-width:16px!important;min-height:16px!important;height:16px!important;max-height:16px!important;margin:0!important;object-fit:contain!important;image-rendering:pixelated!important}
html:root body #auto-helper-panel.collapsed .auto-helper-compact>span b{display:block!important;position:static!important;inset:auto!important;transform:none!important;font:700 10px/1.1 Arial,sans-serif!important;font-variant-numeric:tabular-nums!important;letter-spacing:0!important;white-space:nowrap!important;min-width:0!important;margin:0!important;padding:0!important;background:transparent!important;color:#edf7ff!important;text-align:center!important;overflow:visible!important}
html:root body #auto-helper-panel.collapsed .auto-helper-compact>span.resource-empty b{color:#ff8792!important}
html:root body #auto-helper-panel.collapsed .auto-helper-compact>span.resource-empty:after{width:9px!important;height:9px!important;top:0!important;right:2px!important;font-size:8px!important;box-shadow:none!important}
html:root body #auto-helper-panel.collapsed #minimize-auto-helper{position:relative!important;inset:auto!important;display:grid!important;place-items:center!important;flex:0 0 32px!important;order:1!important;min-width:32px!important;width:32px!important;max-width:32px!important;min-height:32px!important;height:32px!important;max-height:32px!important;box-sizing:border-box!important;padding:0!important;margin:0!important;border:1px solid #58dcff!important;border-radius:4px!important;background:linear-gradient(#155880,#08304e)!important;color:#fff0ad!important;font:800 26px/1 Arial,sans-serif!important;text-align:center!important;text-indent:0!important;opacity:1!important;visibility:visible!important;box-shadow:inset 0 0 0 1px #58dcff30,0 0 5px #46d3ff35!important;text-shadow:0 1px 2px #00101f!important;transform:none!important;z-index:5!important;pointer-events:auto!important;touch-action:manipulation}
html:root body #auto-helper-panel.collapsed #minimize-auto-helper:before,html:root body #auto-helper-panel.collapsed #minimize-auto-helper:after{display:none!important}
html:root body #auto-helper-panel.collapsed #minimize-auto-helper:hover{background:#16648e!important;border-color:#fff0ad!important}
html:root body #auto-helper-panel.collapsed #minimize-auto-helper:focus-visible{outline:2px solid #ffd04d!important;outline-offset:-3px!important}
html:root body #auto-helper-panel.collapsed>:is(.rh-panel-resize,.ui-resize-handle){display:none!important;pointer-events:none!important}


}
