@layer pokeidle-brand {
:root{--mw-safe-left:env(safe-area-inset-left,0px);--mw-safe-right:env(safe-area-inset-right,0px);--mw-safe-top:env(safe-area-inset-top,0px);--mw-safe-bottom:env(safe-area-inset-bottom,0px)}
/* Geometry is owned by the mobile controller; these rules only style content. */
html:root.ui-mobile-windows body #pio-main-menu{z-index:90000!important}
html:root.ui-mobile-windows body .pio-menu-dropdown{z-index:90001!important}
html:root.ui-mobile-windows body :is(#ha-panel,[data-mobile-window])[data-mobile-window]{box-sizing:border-box!important;border:1px solid #2f6fae!important;border-radius:10px!important;background:linear-gradient(150deg,#10263b,#071522)!important;color:#edf7ff!important;box-shadow:0 5px 20px #0006!important;scrollbar-width:thin!important;scrollbar-color:#367caa #0b1b2e!important;overscroll-behavior:contain!important;container-type:inline-size!important;pointer-events:auto!important}
html:root.ui-mobile-windows body :is(#ha-panel,[data-mobile-window])[data-mobile-window] *{box-sizing:border-box!important;min-width:0}
html:root.ui-mobile-windows body :is(#ha-panel,[data-mobile-window])[data-mobile-window][data-mobile-hidden],html.ui-mobile-windows body [data-mobile-window-root][data-mobile-hidden]{display:none!important;pointer-events:none!important}
html:root.ui-mobile-windows body :is(#ha-panel,[data-mobile-window])[data-mobile-window] :is(header,.panel-title,.auto-helper-head,.team-header,.chat-topbar){min-width:0!important;max-width:100%!important}
html.ui-mobile-windows body [data-mobile-handle]{position:sticky!important;top:0!important;z-index:4!important;touch-action:none!important;cursor:grab!important;user-select:none!important;background:#10263b!important;border-bottom:1px solid #2c4960!important}
html.ui-mobile-windows body [data-mobile-handle]:before{content:'';position:absolute;top:3px;left:calc(50% - 13px);width:26px;height:3px;border-radius:3px;background:#819fb4;opacity:.7;pointer-events:none}
html:root.ui-mobile-windows body :is(#ha-panel,[data-mobile-window])[data-mobile-window].mw-dragging{cursor:grabbing!important;will-change:translate!important;opacity:.94!important;user-select:none!important}
html:root.ui-mobile-windows body :is(#ha-panel,[data-mobile-window])[data-mobile-window] :is(h1,h2){font-size:14px!important;line-height:1.25!important;letter-spacing:.2px!important;overflow-wrap:anywhere!important}
html:root.ui-mobile-windows body :is(#ha-panel,[data-mobile-window])[data-mobile-window] :is(h3,h4){font-size:13px!important;line-height:1.3!important;overflow-wrap:anywhere!important}
html:root.ui-mobile-windows body :is(#ha-panel,[data-mobile-window])[data-mobile-window] :is(p,small,label){line-height:1.4!important;overflow-wrap:anywhere}
html:root.ui-mobile-windows body :is(#ha-panel,[data-mobile-window])[data-mobile-window] > header{padding:10px 8px 6px!important;min-height:46px!important;gap:6px!important}
html:root.ui-mobile-windows body :is(#ha-panel,[data-mobile-window])[data-mobile-window] > header p{display:none!important}
html:root.ui-mobile-windows body :is(#ha-panel,[data-mobile-window])[data-mobile-window] > header small{font-size:10px!important;letter-spacing:.3px!important}
html:root.ui-mobile-windows body :is(#ha-panel,[data-mobile-window])[data-mobile-window] > header img{max-height:28px!important;width:auto!important}
html:root.ui-mobile-windows body :is(#ha-panel,[data-mobile-window])[data-mobile-window] :is(input:not([type=checkbox]):not([type=radio]),select,textarea){max-width:100%!important;font-size:16px!important;min-height:38px!important}
html:root.ui-mobile-windows body :is(#ha-panel,[data-mobile-window])[data-mobile-window] :is(button,[role=button]):focus-visible,html.ui-mobile-windows body [data-mobile-handle]:focus-visible{outline:2px solid #73ceff!important;outline-offset:-2px!important}
html:root.ui-mobile-windows body :is(#ha-panel,[data-mobile-window])[data-mobile-window] > header button{flex:none!important;min-width:36px!important;min-height:40px!important;font-size:16px!important}
html:root.ui-mobile-windows body :is(#ha-panel,[data-mobile-window])[data-mobile-window] .mobile-window-reset{display:none!important}
html:root.ui-mobile-windows body :is(#ha-panel,[data-mobile-window])[data-mobile-window] :is(.client-tabs,.inventory-categories,.market-tabs,.capture-tabs,.ranking-scope-tabs,.legacy-tabs,.chat-tabs){display:flex!important;flex-wrap:nowrap!important;overflow-x:auto!important;min-height:40px!important;max-width:100%!important;gap:4px!important;scrollbar-width:thin!important}
html:root.ui-mobile-windows body :is(#ha-panel,[data-mobile-window])[data-mobile-window] :is(.client-tabs,.inventory-categories,.market-tabs,.capture-tabs,.ranking-scope-tabs,.legacy-tabs,.chat-tabs) button{min-height:38px!important;flex:0 0 auto!important;padding:6px 8px!important;font-size:11px!important}
html:root.ui-mobile-windows body :is(#ha-panel,[data-mobile-window])[data-mobile-window] :is(canvas,img){max-width:100%}
html:root.ui-mobile-windows body :is(#ha-panel,[data-mobile-window])[data-mobile-window] :is(.system-summary,.houses-tools,.ranking-toolbar,.capture-tools,.pokelog-tools,.mailbox-tools){padding:6px 8px!important;gap:6px!important}
html.ui-mobile-windows body #ha-panel.ha-final[data-mobile-window] .hdr{min-height:46px!important;height:46px!important;max-height:46px!important;flex-basis:46px!important;padding:2px 5px!important}
html.ui-mobile-windows body #ha-panel.ha-final[data-mobile-window] .hdr h1{font-size:12px!important}
html.ui-mobile-windows body #ha-panel.ha-final[data-mobile-window] .hdr .ib,html.ui-mobile-windows body #ha-panel.ha-final[data-mobile-window] #minimize-hunt-analyzer{min-width:40px!important;width:40px!important;max-width:40px!important;min-height:40px!important;height:40px!important;max-height:40px!important}
html.ui-mobile-windows body #ha-panel.ha-final[data-mobile-window] .minstrip{padding:4px 8px!important}
html.ui-mobile-windows body #ha-panel.ha-final[data-mobile-window] .ms .k{font-size:10.5px!important;line-height:12px!important}
html.ui-mobile-windows body #ha-panel.ha-final[data-mobile-window] .ms b{font-size:13px!important;line-height:16px!important}
html.ui-mobile-windows body #ha-panel.ha-final[data-mobile-window] .ms b.big{font-size:15px!important;line-height:17px!important}
html.ui-mobile-windows body #ha-panel.ha-final[data-mobile-window] .spc{margin-top:4px!important}
html.ui-mobile-windows body #ha-panel.ha-final[data-mobile-window] .chip{font-size:10.5px!important;padding:2px!important}
html.ui-mobile-windows body #ha-panel.ha-final[data-mobile-window] .sub{display:none!important}
html.ui-mobile-windows body #ha-panel.ha-final[data-mobile-window] .tools{padding:4px 6px!important;gap:4px!important}
html.ui-mobile-windows body #ha-panel.ha-final[data-mobile-window] .hero{padding:8px!important}
html.ui-mobile-windows body #ha-panel.ha-final[data-mobile-window] .collapsible{flex:1 1 auto!important;min-height:0!important;overflow:auto!important;scrollbar-gutter:stable!important}
html.ui-mobile-windows body #ha-panel.ha-final[data-mobile-window]::before,html.ui-mobile-windows body #ha-panel.ha-final[data-mobile-window]::after{border-radius:9px!important;clip-path:none!important}
html.ui-mobile-windows body #auto-helper-panel[data-mobile-window] .auto-helper-head{padding:5px!important;min-height:44px!important}
html.ui-mobile-windows body #auto-helper-panel[data-mobile-window] :is(.helper-hunt-module,.helper-care-module){padding:7px!important;gap:6px!important}
html.ui-mobile-windows body #auto-helper-panel[data-mobile-window] :is(.helper-capture-grid,.helper-renew-grid,.helper-config){gap:5px!important}
html:root.ui-mobile-windows body #stage #pokemon-team-bar[data-mobile-window] .team-header{position:relative!important;inset:0!important;width:100%!important;min-height:44px!important;height:44px!important;padding:8px!important;display:flex!important;align-items:center!important}
html:root.ui-mobile-windows body #stage #pokemon-team-bar[data-mobile-window]{padding:0!important}
html:root.ui-mobile-windows body #stage #pokemon-team-bar[data-mobile-window] .team-header .player-summary{display:none!important}
html:root.ui-mobile-windows body #stage #pokemon-team-bar[data-mobile-window] .team-header .team-minimize{position:absolute!important;inset:4px 4px auto auto!important;width:36px!important;height:36px!important}
html.ui-mobile-windows body #stage #pokemon-team-bar[data-mobile-window] .team-header :is(h1,h2){font-size:12px!important}
html.ui-mobile-windows body #stage #pokemon-team-bar[data-mobile-window] :is(.team-list,.team-slots){max-height:none!important;overflow:auto!important}
html.ui-mobile-windows body #stage #pokemon-skills-window[data-mobile-window] .skills-bar{padding:6px 38px!important;border-radius:10px!important}
html.ui-mobile-windows body #stage #pokemon-skills-window[data-mobile-window] .skills-bar:before{top:1px!important}
html.ui-mobile-windows body #game-chat[data-mobile-window]:not(.minimized){display:flex!important;flex-direction:column!important}
html.ui-mobile-windows body #game-chat[data-mobile-window] .chat-panel{min-height:0!important;overflow:auto!important;flex:1!important}
html.ui-mobile-windows body #game-chat[data-mobile-window] #chat-messages{max-height:none!important;overflow:auto!important}
html.ui-mobile-windows body #pio-main-menu.pio-mobile{width:min(360px,calc(100dvw - 16px))!important}
html.ui-mobile-windows body #pio-main-menu.pio-mobile .pio-menu-scroll{max-height:min(410px,calc(100dvh - 76px))!important;border-radius:10px!important;box-shadow:0 8px 26px #0008!important}
html.ui-mobile-windows body #pio-main-menu.pio-mobile .pio-menu-slot{min-height:64px!important;padding:6px 3px!important;gap:4px!important;border-radius:7px!important}
html.ui-mobile-windows body #pio-main-menu.pio-mobile .pio-menu-icon,html.ui-mobile-windows body #pio-main-menu.pio-mobile .pio-menu-icon img{width:25px!important;height:25px!important}
html.ui-mobile-windows body #pio-main-menu.pio-mobile .pio-menu-label{font-size:9.5px!important}
html.ui-mobile-windows body #pio-main-menu.pio-mobile .pio-menu-bar{gap:4px!important}
html.ui-mobile-windows body #mainbar-buff-tray{max-width:60px!important;opacity:.9!important}
html.ui-mobile-windows body .game-tooltip{max-width:min(240px,calc(100dvw - 20px))!important}
html:root.ui-mobile-windows body .player-market-panel[data-mobile-window] .panel-title{width:100%!important;max-width:100%!important;display:flex!important;gap:5px!important;padding:6px!important}
html:root.ui-mobile-windows body .player-market-panel[data-mobile-window] .player-market-tools,html:root.ui-mobile-windows body .player-market-panel[data-mobile-window] .player-market-advanced-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important;width:100%!important;min-width:0!important}
html:root.ui-mobile-windows body .player-market-panel[data-mobile-window] .market-search-field{grid-column:1/-1!important}
html:root.ui-mobile-windows body .player-market-panel[data-mobile-window] .player-market-tools>label{width:auto!important;min-width:0!important;max-width:100%!important}
html:root.ui-mobile-windows body #referral-system [data-mobile-window] .referral-stats{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important}
html:root.ui-mobile-windows body #referral-system [data-mobile-window] .referral-tiers{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:4px!important}
html:root.ui-mobile-windows body #referral-system [data-mobile-window] .referral-tiers>span{min-width:0!important;width:auto!important;padding:6px 3px!important}
@container(max-width:480px){
 html:root.ui-mobile-windows body :is(#ha-panel,[data-mobile-window])[data-mobile-window] :is(.friends-layout,.live-trade-layout,.guild-layout,.referral-layout,.settings-layout,.settings-sections,.house-shop-layout,.profession-craft-flow,.pokemon-broker-layout,.terminal-cp-layout,.trainer-layout,.pokelog-log-layout,.mailbox-layout){display:grid!important;grid-template-columns:minmax(0,1fr)!important;min-width:0!important;width:100%!important;gap:8px!important}
 html:root.ui-mobile-windows body :is(#ha-panel,[data-mobile-window])[data-mobile-window] :is(.settings-grid,.guild-grid,.houses-tools,.ranking-toolbar,.house-shop-grid,.profession-choices,.profession-recipe-grid,.legacy-grid,.diamond-offers,.daily-gift-grid){grid-template-columns:repeat(auto-fit,minmax(min(136px,100%),1fr))!important;gap:6px!important}
 html:root.ui-mobile-windows body :is(#ha-panel,[data-mobile-window])[data-mobile-window] :is(.pokemon-grid,.inventory-grid,.depot-grid,.market-grid,.live-trade-inventory,.terminal-cp-grid){grid-template-columns:repeat(auto-fill,minmax(58px,1fr))!important;gap:4px!important}
 html:root.ui-mobile-windows body :is(#ha-panel,[data-mobile-window])[data-mobile-window] :is(.market-toolbar,.map-filters,.map-tabs-row,.capture-tools,.house-shop-tools,.live-trade-tools){display:flex!important;flex-wrap:wrap!important;gap:5px!important;max-width:100%!important}
 html:root.ui-mobile-windows body :is(#ha-panel,[data-mobile-window])[data-mobile-window] :is(.map-search,.map-lvl){min-width:0!important;width:auto!important;max-width:100%!important;flex:1 1 120px!important}
 html:root.ui-mobile-windows body :is(#ha-panel,[data-mobile-window])[data-mobile-window] :is(.trainer-profile-card,.trainer-summary-card,.inventory-summary,.market-summary){padding:8px!important}
 html:root.ui-mobile-windows body :is(#ha-panel,[data-mobile-window])[data-mobile-window] :is(table){max-width:100%!important;font-size:11px!important}
 html:root.ui-mobile-windows body :is(#ha-panel,[data-mobile-window])[data-mobile-window] :is(th,td){white-space:normal!important;overflow-wrap:anywhere!important;padding:5px!important}
 html:root.ui-mobile-windows body :is(#ha-panel,[data-mobile-window])[data-mobile-window] :is(.worldmap-panel,.map-viewport){width:100%!important;max-width:100%!important;min-width:0!important}
}
#mobile-window-dock[hidden],#mobile-window-list[hidden],#mobile-window-hint[hidden]{display:none!important}
html:root.ui-mobile-windows body #shiny-global-next[data-mobile-window]{padding:6px!important;gap:2px!important;font-size:10px!important;white-space:normal!important;grid-template-columns:18px minmax(0,1fr)!important}
html:root.ui-mobile-windows body #shiny-global-next[data-mobile-window] :is(span,b,strong){font-size:10px!important;white-space:normal!important;overflow-wrap:anywhere!important}
html:root.ui-mobile-windows body #world-atlas[data-mobile-window]{display:block!important}
.mw-atlas-filter-toggle{display:none!important}
html:root.ui-mobile-windows body #world-atlas[data-mobile-window]>.mw-atlas-filter-toggle{display:block!important;min-height:36px!important;margin:4px 8px!important;padding:5px 9px!important;border:1px solid #3b6888!important;border-radius:6px!important;background:#15334a!important;font-size:12px!important}
html:root.ui-mobile-windows body #world-atlas[data-mobile-window]:not([data-mobile-filters-open])>:is(.atlas-types,.atlas-clan-filters){display:none!important}
html:root.ui-mobile-windows body #world-atlas[data-mobile-window] .atlas-types button{flex:0 0 auto!important;min-height:34px!important}
html:root.ui-mobile-windows body #world-atlas[data-mobile-window] #atlas-profile small{white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
html:root.ui-mobile-windows body #world-atlas[data-mobile-window] .atlas-layout{position:relative!important;display:block!important;height:260px!important;min-height:260px!important;width:100%!important}
html:root.ui-mobile-windows body #world-atlas[data-mobile-window] .atlas-stage{height:260px!important;width:100%!important}
html:root.ui-mobile-windows body #world-atlas[data-mobile-window] .atlas-sidebar{display:none!important}
html:root.ui-mobile-windows body #world-atlas[data-mobile-window] .atlas-region-tabs{overflow:auto!important;flex-wrap:nowrap!important;justify-content:flex-start!important}
html:root.ui-mobile-windows body #world-atlas[data-mobile-window] .atlas-region-tabs button{flex:0 0 68px!important;min-height:40px!important}
html:root.ui-mobile-windows body #world-atlas[data-mobile-window] .atlas-top{display:grid!important;grid-template-columns:minmax(65px,1fr) 30px 30px minmax(65px,90px) 30px!important;min-height:90px!important}
html:root.ui-mobile-windows body #world-atlas[data-mobile-window] .atlas-searchbox{grid-column:1/-1!important;grid-row:2!important;min-width:0!important;width:100%!important}
html:root.ui-mobile-windows body #world-atlas[data-mobile-window] .atlas-details{position:absolute!important;inset:auto 0 0!important;max-height:240px!important;transform:translateY(101%)!important}
html:root.ui-mobile-windows body #world-atlas[data-mobile-window].details-open .atlas-details{transform:none!important}
html:root.ui-mobile-windows body #world-atlas[data-mobile-window] :is(.atlas-mobile-details,.atlas-collapse,.atlas-mobile-nav){display:flex!important}
html:root.ui-mobile-windows body #world-atlas[data-mobile-window] #atlas-results{min-width:0!important;max-height:210px!important}
html:root.ui-mobile-windows body #settings-system [data-mobile-window]{display:block!important}
html:root.ui-mobile-windows body #settings-system [data-mobile-window] :is(.settings-content,.settings-footer){height:auto!important;max-height:none!important;min-height:0!important;flex:none!important;overflow:visible!important;width:100%!important}
html:root.ui-mobile-windows body #settings-system [data-mobile-window] .settings-content{display:block!important;padding:8px!important}
html:root.ui-mobile-windows body #settings-system [data-mobile-window] .settings-content>.settings-section{margin-bottom:8px!important}
html:root.ui-mobile-windows body #settings-system [data-mobile-window] .settings-section{min-width:0!important;width:100%!important;max-width:100%!important}
html:root.ui-mobile-windows body #settings-system [data-mobile-window] .settings-language-card{display:grid!important;grid-template-columns:40px minmax(0,1fr)!important;gap:8px!important;padding:8px!important;width:100%!important}
html:root.ui-mobile-windows body #settings-system [data-mobile-window] .settings-language-card select{grid-column:1/-1!important;width:100%!important;min-width:0!important}
html:root.ui-mobile-windows body #settings-system [data-mobile-window] #entry-notices-manual{padding:8px!important;display:flex!important;flex-wrap:wrap!important;gap:6px!important}
html:root.ui-mobile-windows body #settings-system [data-mobile-window] #entry-notices-manual h3{flex-basis:100%!important}
html:root.ui-mobile-windows body #settings-system [data-mobile-window] #entry-notices-manual button{min-height:40px!important;max-width:100%!important;padding:7px!important;border:1px solid #3b6888!important;border-radius:6px!important;background:#15334a!important;color:#edf7ff!important;white-space:normal!important}
#mobile-window-dock{position:fixed;left:max(8px,env(safe-area-inset-left));bottom:max(8px,env(safe-area-inset-bottom));z-index:2147482000;font:13px/1.3 'Segoe UI',Arial,sans-serif;color:#edf7ff;pointer-events:auto}
#mobile-window-dock button{font:inherit;color:inherit;min-height:44px;border:1px solid #3c789e;border-radius:8px;background:#102b40;padding:7px 9px;cursor:pointer;touch-action:manipulation}
#mobile-window-toggle{min-width:96px;box-shadow:0 3px 16px #0007}
#mobile-window-list{position:fixed;inset:auto auto max(60px,env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left));margin:0;width:min(350px,calc(100dvw - 16px));max-height:min(430px,calc(100dvh - 84px));box-sizing:border-box;padding:10px;overflow:auto;overscroll-behavior:contain;border:1px solid #4c90ba;border-radius:12px;background:#081a2b;box-shadow:0 8px 32px #0009;color:#edf7ff;font:13px/1.4 'Segoe UI',Arial,sans-serif}
#mobile-window-list::backdrop{background:transparent}
#mobile-window-list header{display:flex;align-items:center;justify-content:space-between;gap:10px}
#mobile-window-list header strong{font-size:16px}
#mobile-window-list header button{min-width:44px;font-size:20px}
#mobile-window-list p{font-size:12px;color:#b4c8d6;margin:6px 0 10px}
#mobile-window-list .mw-dock-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:5px;align-items:center;padding:6px 0;border-top:1px solid #254059}
#mobile-window-list .mw-dock-row span{overflow-wrap:anywhere}
#mobile-window-list button:focus-visible,#mobile-window-toggle:focus-visible{outline:2px solid #6fd0ff;outline-offset:2px}
#mobile-window-hint{position:fixed;left:50%;bottom:72px;transform:translateX(-50%);z-index:2147482001;pointer-events:none;width:max-content;max-width:calc(100dvw - 24px);padding:10px 16px;border:1px solid #3c789e;border-radius:20px;background:#081a2bef;color:#dceef8;font:13px 'Segoe UI',Arial,sans-serif;text-align:center}
#mobile-window-hint.ready{border-color:#68d49c;color:#8fecb7;background:#102e25ef}
.mw-sr-only{position:fixed!important;width:1px!important;height:1px!important;overflow:hidden!important;clip-path:inset(50%)!important;white-space:nowrap!important;pointer-events:none!important}
@media(prefers-reduced-motion:reduce){html:root.ui-mobile-windows body :is(#ha-panel,[data-mobile-window])[data-mobile-window]{transition:none!important;animation:none!important}}
}

@layer pokeidle-brand {
/* Mobile content participates in the layout instead of using desktop absolute coordinates. */
html:root.ui-mobile-windows body #stage #pokemon-team-bar[data-mobile-window]{display:flex!important;flex-direction:column!important;gap:0!important;touch-action:pan-y!important}
html:root.ui-mobile-windows body #stage #pokemon-team-bar[data-mobile-window] .team-header{flex:0 0 46px!important;min-height:46px!important;width:100%!important}
html:root.ui-mobile-windows body #stage #pokemon-team-bar[data-mobile-window] .team-minimize{width:44px!important;height:44px!important;min-height:44px!important;inset:0 0 auto auto!important;touch-action:manipulation!important}
html:root.ui-mobile-windows body #stage #pokemon-team-bar[data-mobile-window] .team-list{position:relative!important;inset:auto!important;display:flex!important;flex-direction:column!important;flex:1 1 0!important;width:100%!important;height:auto!important;min-height:0!important;max-height:none!important;padding:5px!important;gap:6px!important;overflow:auto!important;touch-action:pan-y!important}
html:root.ui-mobile-windows body #stage #pokemon-team-bar[data-mobile-window]:is(.collapsed,.is-minimized) .team-list{display:none!important}
html:root.ui-mobile-windows body #stage #pokemon-team-bar[data-mobile-window] .team-slot{width:100%!important;max-width:100%!important;min-height:76px!important;height:76px!important;max-height:76px!important;flex:0 0 76px!important}
html:root.ui-mobile-windows body #stage #pokemon-team-bar[data-mobile-window] .team-slot :is(.team-held-x,.team-held-y){touch-action:manipulation!important}
html:root.ui-mobile-windows body #game-chat[data-mobile-window]:not(.minimized){display:flex!important;flex-direction:column!important;padding:0!important;gap:0!important;touch-action:pan-y!important}
html:root.ui-mobile-windows body #game-chat[data-mobile-window]:not(.minimized) .chat-topbar{position:relative!important;inset:auto!important;display:flex!important;flex:0 0 44px!important;align-items:center!important;width:100%!important;height:44px!important;min-height:44px!important;padding:0 46px 0 8px!important;gap:4px!important}
html:root.ui-mobile-windows body #game-chat[data-mobile-window] .chat-view-switcher{position:static!important;display:flex!important;flex:1!important;min-width:0!important;overflow:visible!important;gap:4px!important}
html:root.ui-mobile-windows body #game-chat[data-mobile-window] .chat-view-switcher button{flex:0 0 auto!important;min-height:40px!important;font-size:11px!important}
html:root.ui-mobile-windows body #game-chat[data-mobile-window] #minimize-chat{position:absolute!important;inset:0 0 auto auto!important;width:44px!important;height:44px!important;min-height:44px!important;margin:0!important;font-size:20px!important}
html:root.ui-mobile-windows body #game-chat[data-mobile-window]:not(.minimized) .chat-panel{position:relative!important;inset:auto!important;display:flex!important;flex-direction:column!important;flex:1 1 0!important;width:100%!important;height:auto!important;min-height:0!important;padding:0 8px 6px!important;gap:6px!important;overflow:hidden!important;background:#071a2b!important}
html:root.ui-mobile-windows body #game-chat[data-mobile-window] .chat-tabs{position:relative!important;inset:auto!important;flex:0 0 40px!important;width:100%!important;margin:0!important;white-space:nowrap!important}
html:root.ui-mobile-windows body #game-chat[data-mobile-window] .chat-tabs .chat-tab{width:auto!important;min-width:52px!important;max-width:110px!important;flex:0 0 auto!important;min-height:38px!important;padding:6px!important;position:relative!important}
html:root.ui-mobile-windows body #game-chat[data-mobile-window] .chat-tabs .tab-image{max-width:80px!important;width:auto!important;height:20px!important;object-fit:contain!important}
html:root.ui-mobile-windows body #game-chat[data-mobile-window] .chat-activity-view{position:relative!important;inset:auto!important;width:100%!important;height:auto!important;min-height:0!important;flex:1 1 0!important;overflow:hidden!important}
html:root.ui-mobile-windows body #game-chat[data-mobile-window].chat-view-activity .chat-panel{display:none!important}
html:root.ui-mobile-windows body #game-chat[data-mobile-window] .ui-resize-handle{display:none!important}
html:root.ui-mobile-windows body #game-chat[data-mobile-window] #chat-messages{position:relative!important;inset:auto!important;flex:1 1 0!important;width:100%!important;height:auto!important;min-height:48px!important;max-height:none!important;padding:6px!important;overflow:auto!important;touch-action:pan-y!important}
html:root.ui-mobile-windows body #game-chat[data-mobile-window] #chat-message-list{position:static!important;width:100%!important;min-width:0!important;font-size:12px!important;line-height:1.4!important;overflow-wrap:anywhere!important}
html:root.ui-mobile-windows body #game-chat[data-mobile-window] .chat-composer{position:relative!important;inset:auto!important;display:flex!important;flex:0 0 44px!important;align-items:stretch!important;width:100%!important;height:44px!important;gap:6px!important;margin:0!important}
html:root.ui-mobile-windows body #game-chat[data-mobile-window] .chat-input-frame{position:relative!important;inset:auto!important;flex:1 1 0!important;width:auto!important;height:44px!important;min-width:0!important;padding:0!important;background:#041321!important;border:1px solid #34799e!important;border-radius:6px!important}
html:root.ui-mobile-windows body #game-chat[data-mobile-window] #chat-input{position:static!important;inset:auto!important;width:100%!important;height:100%!important;min-height:44px!important;padding:8px!important;transform:none!important;background:transparent!important}
html:root.ui-mobile-windows body #game-chat[data-mobile-window] #chat-send{position:static!important;inset:auto!important;width:64px!important;height:44px!important;min-height:44px!important;flex:0 0 64px!important;font-size:11px!important}
html:root.ui-mobile-windows body #game-chat[data-mobile-window] .chat-scale-controls{display:none!important}
html:root.ui-mobile-windows body #game-chat[data-mobile-window].minimized{overflow:visible!important;border-radius:12px!important}
html:root.ui-mobile-windows body #game-chat[data-mobile-window]:not(.minimized) .chat-restore{display:none!important}
html:root.ui-mobile-windows body #game-chat[data-mobile-window].minimized .chat-restore{inset:0!important;width:44px!important;height:44px!important;min-width:44px!important;max-width:44px!important;min-height:44px!important;max-height:44px!important}
html:root.ui-mobile-windows body #mailbox-floating-letter{padding:4px!important;border-radius:10px!important;clip-path:none!important}
html:root.ui-mobile-windows body #mailbox-floating-letter em{display:none!important}
html:root.ui-mobile-windows.ui-mobile-chat-open body :is(#mobile-joystick,#mailbox-floating-letter){visibility:hidden!important;pointer-events:none!important}

/* Breed confirmation/reveal are siblings of the movable window. The mobile
   container deliberately ignores pointers; these modal layers must receive them. */
html.ui-mobile-windows body #breed-system > :is(#breed-confirm-dialog,#breed-hatch-overlay){pointer-events:auto!important}
}

@layer pokeidle-brand {
html:root.ui-mobile-windows body #stage #pokemon-team-bar[data-mobile-window]{transition:none!important}
html:root.ui-mobile-windows body #ha-panel.ha-final[data-mobile-window] .hdr{min-height:40px!important;height:40px!important;max-height:40px!important;flex-basis:40px!important;gap:3px!important;padding:2px 4px!important}
html:root.ui-mobile-windows body #ha-panel.ha-final[data-mobile-window] .hdr h1{font-size:11px!important}
html:root.ui-mobile-windows body #ha-panel.ha-final[data-mobile-window] .hdr .ib{min-width:34px!important;width:34px!important;max-width:34px!important;min-height:36px!important;height:36px!important;max-height:36px!important;font-size:16px!important}
html:root.ui-mobile-windows body #ha-panel.ha-final[data-mobile-window] #ha-move{display:grid!important;place-items:center!important;flex:0 0 20px!important;width:20px!important;min-width:20px!important;height:36px!important;touch-action:none!important;cursor:grab!important;font-size:18px!important;color:#89c8e4!important}
html:root.ui-mobile-windows body #ha-panel.ha-final[data-mobile-window] .minstrip{padding:4px 7px!important}
html:root.ui-mobile-windows body #ha-panel.ha-final[data-mobile-window] .ms-row.two{margin-top:3px!important;padding-top:3px!important}
html:root.ui-mobile-windows body #ha-panel.ha-final[data-mobile-window] .spc{margin-top:3px!important}
html:root.ui-mobile-windows body .auto-helper-panel[data-mobile-window].collapsed{padding:2px 5px!important}
html:root.ui-mobile-windows body .auto-helper-panel[data-mobile-window].collapsed .auto-helper-head{min-height:40px!important;max-height:40px!important;gap:4px!important;padding:2px!important}
html:root.ui-mobile-windows body .auto-helper-panel[data-mobile-window].collapsed .auto-helper-compact{display:flex!important;flex:1!important;gap:3px!important;min-width:0!important}
html:root.ui-mobile-windows body .auto-helper-panel[data-mobile-window].collapsed .auto-helper-compact>span{flex:1 1 0!important;min-width:0!important;width:auto!important;height:28px!important;padding:2px!important}
html:root.ui-mobile-windows body .auto-helper-panel[data-mobile-window].collapsed .auto-helper-compact :is(img,.helper-compact-ball-host){width:18px!important;height:18px!important;min-width:18px!important;max-width:18px!important;max-height:18px!important}
html:root.ui-mobile-windows body .auto-helper-panel[data-mobile-window].collapsed .auto-helper-compact b{font-size:10px!important}
}

/* Modern Market owns its content; legacy headers must remain hidden. */
@layer pokeidle-brand {
html:root.ui-mobile-windows body :is(#ha-panel,.player-market-panel).player-market-panel.market-v69[data-mobile-window]:not(.show-character-market){padding:0!important;resize:none!important;border-radius:0!important;clip-path:none!important}
html:root.ui-mobile-windows body :is(#ha-panel,.player-market-panel).player-market-panel.market-v69[data-mobile-window]:not(.show-character-market)>:not(.mk69){display:none!important}
html:root.ui-mobile-windows body .player-market-panel.market-v69[data-mobile-window]>.mk69{width:100%!important;height:100%!important;max-height:100%!important;min-height:0!important}
html:root.ui-mobile-windows body .player-market-panel.market-v69[data-mobile-window] .mk69-head{cursor:default}
}
