/* Original palette and panels, fitted to the installed client's real viewport. */
html[data-native-client=true]{-webkit-text-size-adjust:100%;text-size-adjust:100%;}
html[data-native-client=true] body{--app-gap:8px;}
html[data-native-client=true] body #screen #overlay{box-sizing:border-box;}
html[data-native-client=true] body #screen #overlay[data-view=menu]{position:fixed!important;inset:env(safe-area-inset-top,0px) env(safe-area-inset-right,0px) env(safe-area-inset-bottom,0px) env(safe-area-inset-left,0px)!important;padding:8px!important;overflow:hidden!important;}
html[data-native-client=true] body #screen #overlay[data-view=menu] .trainer-menu-shell{width:min(390px,100%)!important;height:100%!important;max-height:100%!important;display:flex!important;flex-direction:column!important;padding:8px!important;overflow:hidden!important;backdrop-filter:none!important;}
html[data-native-client=true] body #screen #overlay[data-view=menu] .trainer-menu-top{flex:none!important;}
html[data-native-client=true] body #screen #overlay[data-view=menu] #menu{position:static!important;flex:1 1 0!important;min-height:0!important;max-height:none!important;overflow:auto!important;overscroll-behavior:contain;touch-action:pan-y;}
html[data-native-client=true] body #screen #overlay[data-view=menu] #menu button{min-height:44px!important;font:600 12px/1.3 system-ui!important;}
html[data-native-client=true] body #screen #overlay[data-view=menu] .trainer-menu-foot{position:static!important;flex:none!important;max-height:30%!important;overflow:auto!important;display:grid!important;grid-template-columns:1fr 1fr;gap:4px;padding:6px 0 0!important;}
html[data-native-client=true] body #screen #overlay[data-view=menu] .trainer-menu-foot :is(a,button){min-height:36px!important;font-size:11px!important;}
html[data-native-client=true] body #screen #overlay[data-view=panel]{position:fixed!important;inset:8px!important;z-index:15010!important;padding:0!important;overflow:hidden!important;}
html[data-native-client=true] body #screen #overlay[data-view=panel]{background:#142d2b!important;}
html[data-native-client=true] body:has(#overlay[data-battle-selection]:not([hidden])) #screen #battle{visibility:hidden!important;}
html[data-native-client=true] body #screen #overlay[data-view=panel] #detail{position:absolute!important;inset:46px 0 0!important;transform:none!important;width:100%!important;height:calc(100% - 46px)!important;max-width:100%!important;max-height:100%!important;margin:0!important;padding:12px!important;overflow:auto!important;overscroll-behavior:contain;font:13px/1.45 system-ui!important;}
html[data-native-client=true] #overlay>.app-classic-back{display:none!important;}
html[data-native-client=true] #overlay[data-view=panel]>.app-classic-back{display:block!important;position:absolute!important;inset:0 0 auto!important;width:100%!important;min-height:40px!important;margin:0!important;padding:8px 12px!important;background:#1c3b3e!important;color:#edf6e9!important;border:1px solid #587c74!important;font:600 12px/1.4 system-ui!important;text-align:left;}
html[data-native-client=true] body dialog button.app-classic-dialog-back{width:auto!important;min-width:68px!important;min-height:36px!important;height:auto!important;padding:6px!important;font:600 12px/1.3 system-ui!important;white-space:nowrap!important;}
html[data-native-client=true] body #notice{box-sizing:border-box;width:min(360px,calc(100vw - 24px));max-width:calc(100vw - 24px);max-height:25dvh;overflow:auto;padding:10px;font:12px/1.4 system-ui;overflow-wrap:anywhere;}
html[data-native-client=true] body #screen #detail :is(h1,h2){font-size:20px!important;line-height:1.2!important;letter-spacing:normal!important;}
html[data-native-client=true] body #screen #detail :is(h3,h4){font-size:15px!important;line-height:1.35!important;}
html[data-native-client=true] body #screen #detail :is(p,small,label,.tp-eyebrow){font-size:12px!important;line-height:1.45!important;letter-spacing:normal!important;}
html[data-native-client=true] body #screen #detail :is(button,input,select,textarea){box-sizing:border-box;max-width:100%;min-width:0;font:inherit!important;min-height:40px;}
html[data-native-client=true] body #screen #detail :is(.tp-panel,.dg-panel,.settings-grid){min-width:0;max-width:100%;}
html[data-native-client=true] body #screen #detail .tp-header{flex-wrap:wrap;gap:8px;}
html[data-native-client=true] body #screen #detail .tp-header>div{min-width:0;}
html[data-native-client=true] body #screen #detail .tp-card{padding:12px!important;}
html[data-native-client=true] body #screen #detail :is(.tp-panel,.tp-header,.tp-header>div){box-sizing:border-box!important;min-width:0!important;max-width:100%!important;}
html[data-native-client=true] body #detail .gtl-tabs{display:flex!important;flex-wrap:nowrap!important;max-width:100%!important;overflow:auto!important;}
html[data-native-client=true] body #detail .gtl-tabs button{flex:0 0 auto!important;min-width:90px!important;white-space:nowrap!important;font-size:11px!important;}
html[data-native-client=true] body #detail .teams-form{display:flex!important;flex-wrap:wrap!important;gap:8px!important;}
html[data-native-client=true] body #detail .teams-form input{flex:1 0 100%!important;width:100%!important;min-height:40px!important;}
html[data-native-client=true] body #detail .teams-form button{flex:1 0 100%!important;width:100%!important;min-height:44px!important;white-space:normal!important;}
/* Grid rows and the footer must remain in normal flow at large system fonts. */
html[data-native-client=true] body #screen #overlay #detail.classic-party{display:block!important;}
html[data-native-client=true] body #screen #overlay #detail.classic-party .classic-team{height:auto!important;display:grid!important;grid-template-columns:1fr!important;grid-template-rows:none!important;gap:8px!important;padding:0!important;}
html[data-native-client=true] body #screen #overlay #detail.classic-party .classic-team .classic-slot{grid-column:auto!important;grid-row:auto!important;grid-template-columns:54px minmax(0,1fr) 78px!important;grid-template-rows:auto auto auto!important;min-height:96px!important;height:auto!important;padding:8px!important;gap:3px 6px!important;}
html[data-native-client=true] body #screen #overlay #detail.classic-party .classic-slot .tp-art{grid-column:1!important;grid-row:1/4!important;width:54px!important;min-height:54px!important;}
html[data-native-client=true] body #screen #overlay #detail.classic-party .classic-slot .tp-art canvas{width:54px!important;height:54px!important;}
html[data-native-client=true] body #screen #overlay #detail.classic-party .classic-slot .mon-name{grid-column:2!important;grid-row:1!important;font-size:13px!important;white-space:normal!important;}
html[data-native-client=true] body #screen #overlay #detail.classic-party .classic-slot .tp-chips{grid-column:2!important;grid-row:2!important;}
html[data-native-client=true] body #screen #overlay #detail.classic-party .classic-slot .mon-level{grid-column:2!important;grid-row:3!important;font-size:11px!important;}
html[data-native-client=true] body #screen #overlay #detail.classic-party .classic-slot .classic-health{grid-column:3!important;grid-row:1!important;}
html[data-native-client=true] body #screen #overlay #detail.classic-party .classic-slot .mon-hp{grid-column:3!important;grid-row:2!important;font-size:11px!important;}
html[data-native-client=true] body #screen #overlay #detail.classic-party .classic-slot .held-dot{position:static!important;grid-column:3!important;grid-row:3!important;font-size:10px!important;}
html[data-native-client=true] body #screen #detail.classic-party .classic-slot .mon-condition{position:static!important;grid-column:2/4!important;grid-row:4!important;font-size:10px!important;}
html[data-native-client=true] body #screen #detail.classic-party .classic-slot :is(.seal-shiny,.seal-super-shiny,.seal-ultra-shiny){grid-column:2/4!important;grid-row:4!important;justify-self:end!important;font-size:10px!important;line-height:1.2!important;white-space:nowrap!important;}
html[data-native-client=true] body #screen #detail.classic-party .classic-slot .mon-condition{grid-row:5!important;}
html[data-native-client=true] body #screen #detail .classic-footer{height:auto!important;display:flex!important;flex-wrap:wrap;gap:8px;}
html[data-native-client=true] body #screen #detail .classic-footer p{flex:1;min-width:100px;}
html[data-native-client=true] body #screen #detail.classic-trainer{display:grid!important;grid-template-columns:minmax(0,1fr) 72px;grid-auto-rows:auto;align-content:start;gap:12px!important;color:#1c4132!important;}
html[data-native-client=true] body #screen #detail.classic-trainer :is(.card-header,.card-information,.card-trainer,.card-mode,.badges-label,.card-badges,.card-back){position:static!important;inset:auto!important;transform:none!important;margin:0!important;width:auto!important;height:auto!important;max-height:none!important;}
html[data-native-client=true] body #screen #detail.classic-trainer .card-header{grid-column:1/-1!important;display:block!important;font-size:12px!important;}
html[data-native-client=true] body #screen #detail.classic-trainer .card-information{grid-column:1!important;}
html[data-native-client=true] body #screen #detail.classic-trainer .card-information p{display:flex!important;flex-direction:column;gap:2px!important;padding:6px 0!important;}
html[data-native-client=true] body #screen #detail.classic-trainer .card-trainer{grid-column:2!important;grid-row:2!important;width:72px!important;height:112px!important;max-width:72px!important;object-fit:contain!important;align-self:center;}
html[data-native-client=true] body #screen #detail.classic-trainer :is(.card-mode,.badges-label,.card-badges,.card-back){grid-column:1/-1!important;}
html[data-native-client=true] body #screen #detail.classic-trainer .card-badges{display:grid!important;grid-template-columns:repeat(8,minmax(0,1fr))!important;gap:4px!important;}
html[data-native-client=true] body #screen #detail.classic-trainer .card-badges>div{height:34px!important;min-width:0!important;}
html[data-native-client=true] body #screen #detail.classic-trainer .card-badges img{width:24px!important;height:24px!important;}
html[data-native-client=true] body #screen #detail.classic-bag{display:grid!important;grid-template-columns:minmax(82px,30%) minmax(0,1fr)!important;grid-template-rows:auto minmax(0,1fr)!important;gap:4px!important;padding:4px!important;}
html[data-native-client=true] body #screen #detail.classic-bag .bag-use-tabs{grid-column:1/-1!important;position:static!important;display:flex!important;gap:4px!important;}
html[data-native-client=true] body #screen #detail.classic-bag .bag-use-tabs button{flex:1;padding:6px 3px!important;font-size:11px!important;}
html[data-native-client=true] body #screen #detail.classic-bag .bag-left{grid-column:1!important;grid-row:2!important;min-height:0!important;}
html[data-native-client=true] body #screen #detail.classic-bag .bag-list{grid-column:2!important;grid-row:2!important;min-height:0!important;height:auto!important;overflow:auto!important;padding:8px 4px!important;}
html[data-native-client=true] body #screen #detail.classic-bag .bag-row{min-height:44px!important;font:12px/1.3 system-ui!important;padding:6px 4px!important;gap:5px!important;}
html[data-native-client=true] body #screen #detail.classic-bag .bag-description{font:11px/1.35 system-ui!important;overflow:auto!important;padding:6px!important;overflow-wrap:anywhere;}
html[data-native-client=true] body #screen #detail.classic-bag .bag-pocket{font-size:13px!important;}
html[data-native-client=true] body:has(#overlay:not([hidden]),dialog[open],#battle:not([hidden]),#pvp:not([hidden])) #touch-controls{visibility:hidden!important;pointer-events:none!important;}
/* Keep the original HUD, with a single bounded row and a wrapping action strip. */
html[data-native-client=true] body #screen #adventure-hud{inset:0 0 auto!important;width:100%!important;max-width:100%!important;height:auto!important;min-height:44px!important;display:flex!important;flex-wrap:wrap!important;gap:2px!important;padding:4px!important;font:11px/1.3 system-ui!important;box-sizing:border-box;}
html[data-native-client=true] body #screen #adventure-hud>*{padding:2px!important;min-width:0!important;}
html[data-native-client=true] body #screen #adventure-hud .hud-trainer{flex:1 1 90px!important;display:grid!important;grid-template-columns:26px minmax(0,1fr)!important;max-width:140px!important;}
html[data-native-client=true] body #screen #adventure-hud .hud-avatar{width:26px!important;height:26px!important;}
html[data-native-client=true] body #screen #adventure-hud .hud-identity :is(strong,small){font-size:10px!important;}
html[data-native-client=true] body #screen #adventure-hud :is(.hud-place,.hud-climate,.hud-money,.hud-zoom){display:none!important;}
html[data-native-client=true] body #screen #adventure-hud .hud-actions{flex:0 0 auto!important;display:flex!important;gap:2px!important;}
html[data-native-client=true] body #screen #adventure-hud .hud-shortcut{width:34px!important;height:36px!important;min-height:36px!important;font-size:19px!important;}
html[data-native-client=true] body #screen #adventure-hud #server-presence{display:flex!important;flex:1 0 100%!important;position:static!important;align-items:center;justify-content:flex-end;flex-wrap:nowrap!important;width:100%!important;max-width:none!important;gap:4px;font-size:10px!important;}
html[data-native-client=true] body #screen #adventure-hud #server-presence>span{width:auto!important;white-space:nowrap;font-size:10px!important;}
html[data-native-client=true] body #screen #adventure-hud #server-presence button{font:10px/1.2 system-ui!important;padding:4px!important;min-height:28px;}
html[data-native-client=true] body #screen #campaign-objective{top:88px!important;left:8px!important;right:8px!important;transform:none!important;translate:none!important;margin:0!important;width:auto!important;max-width:calc(100% - 16px)!important;font:12px/1.35 system-ui!important;pointer-events:none;}
html[data-native-client=true] body #screen #campaign-objective *{font:inherit!important;}
html[data-native-client=true] body #screen #adventure-hud>.hud-benefits{top:auto!important;bottom:3px!important;left:4px!important;right:auto!important;transform:none!important;}
html[data-native-client=true] body #screen #campaign-objective .objective-label{display:none!important;}
html[data-native-client=true] body #screen .party-rail-position{display:none!important;}
html[data-native-client=true] body #screen .party-rail-level{display:block!important;position:static!important;text-align:center!important;font:600 10px/1.3 system-ui!important;}
html[data-native-client=true] body #screen .party-rail-slot{display:grid!important;grid-template-rows:16px 44px 5px!important;gap:2px!important;height:77px!important;min-height:77px!important;padding:4px!important;box-sizing:border-box!important;}
html[data-native-client=true] body #screen .party-rail-slot>.party-rail-level{grid-row:1;grid-column:1;}
html[data-native-client=true] body #screen .party-rail-slot>canvas{grid-row:2;grid-column:1;position:static!important;width:44px!important;height:44px!important;max-width:100%!important;margin:auto!important;}
html[data-native-client=true] body #screen .party-rail-slot>progress{grid-row:3;grid-column:1;position:static!important;width:100%!important;height:5px!important;margin:0!important;}
html[data-native-client=true] body #screen :is(#chat-toggle,#companion-chat-toggle){top:150px!important;bottom:auto!important;font:11px/1.3 system-ui!important;padding:5px 7px!important;min-height:32px!important;}
html[data-native-client=true] body #screen #chat-toggle{left:8px!important;right:auto!important;}
html[data-native-client=true] body #screen #companion-chat-toggle{right:8px!important;left:auto!important;}
html[data-native-client=true] body:has(#overlay:not([hidden]),dialog[open]) #screen #adventure-hud{display:none!important;}
html[data-native-client=true] body #screen .party-rail{top:202px!important;right:8px!important;bottom:auto!important;transform:none!important;max-height:calc(100% - 350px)!important;overflow:auto!important;}
html[data-native-client=true] body #characters :is(h1,h2){font-size:24px!important;line-height:1.2!important;}
html[data-native-client=true] body #characters h2{font-size:18px!important;}
html[data-native-client=true] body #characters :is(p,.journey-card-top,.journey-cta){font-size:12px!important;line-height:1.4!important;}
html[data-native-client=true] body #screen .mount-hud{left:8px!important;right:auto!important;top:auto!important;bottom:140px!important;max-width:calc(100% - 100px);display:flex;gap:4px;align-items:center;padding:4px!important;}
html[data-native-client=true] body #screen .mount-hud[hidden]{display:none!important;}
html[data-native-client=true] body #screen .mount-hud button{font:600 11px/1.3 system-ui!important;min-height:36px!important;padding:6px 9px!important;background:#1c3b3e!important;color:#edf6e9!important;border:1px solid #587c74!important;border-radius:8px!important;}
html[data-native-client=true] body:has(#overlay:not([hidden]),dialog[open],#battle:not([hidden])) #screen .mount-hud{visibility:hidden!important;}
html[data-native-client=true] body dialog[open]{box-sizing:border-box!important;max-width:calc(100vw - 16px)!important;max-height:calc(100dvh - 16px)!important;overflow:auto!important;font:13px/1.45 system-ui!important;}
html[data-native-client=true] body dialog :is(h1,h2){font-size:20px!important;line-height:1.25!important;}
html[data-native-client=true] body dialog :is(h3,h4){font-size:15px!important;}
html[data-native-client=true] body dialog :is(button,input,select,textarea){font:inherit!important;min-width:0;max-width:100%;}
html[data-native-client=true] body dialog:is(.festival-window,.community-window){display:flex!important;flex-direction:column!important;}
html[data-native-client=true] body dialog .festival-heading{height:auto!important;min-height:56px!important;flex:none!important;padding:8px!important;gap:8px!important;}
html[data-native-client=true] body dialog .festival-heading>div{flex:1;min-width:0;}
html[data-native-client=true] body dialog .festival-heading h2{font-size:18px!important;}
html[data-native-client=true] body dialog .festival-heading :is(p,small){font-size:11px!important;letter-spacing:normal!important;line-height:1.35!important;}
html[data-native-client=true] body dialog .festival-heading>.community-icon{width:30px!important;height:34px!important;flex:none;}
html[data-native-client=true] body dialog .festival-heading .festival-close{position:static!important;inset:auto!important;transform:none!important;width:auto!important;min-width:68px!important;min-height:36px!important;padding:6px!important;font:600 12px/1.3 system-ui!important;}
html[data-native-client=true] body dialog .festival-heading:has(>.festival-challenges){display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;}
html[data-native-client=true] body dialog .festival-heading>.festival-challenges{grid-row:2!important;grid-column:1/-1!important;min-height:36px!important;}
html[data-native-client=true] body dialog .festival-heading:has(>.festival-challenges)>.festival-close{grid-row:1!important;grid-column:2!important;}
html[data-native-client=true] body dialog :is(.festival-layout,.mail-layout,.daily-layout){flex:1!important;min-height:0!important;height:auto!important;padding:8px!important;gap:8px!important;overflow:auto!important;}
html[data-native-client=true] body dialog .festival-layout{grid-template-columns:1fr!important;}
html[data-native-client=true] body dialog .festival-list{display:flex!important;flex-direction:column!important;}
html[data-native-client=true] body dialog.festival-window .festival-event{display:grid!important;grid-template-columns:32px minmax(0,1fr) auto!important;flex:none!important;min-height:64px!important;height:auto!important;gap:8px!important;overflow:visible!important;}
html[data-native-client=true] body dialog.festival-window .festival-event-copy strong{font-size:12px!important;line-height:1.3!important;overflow-wrap:anywhere;}
html[data-native-client=true] body dialog.festival-window .festival-event-copy small{font-size:10px!important;}
html[data-native-client=true] body dialog.festival-window .festival-time{font-size:11px!important;}
html[data-native-client=true] body #screen #overlay[data-view=panel]>.panel-back{display:none!important;}
html[data-native-client=true] body dialog .festival-list{min-height:180px!important;max-height:45dvh!important;padding:8px!important;}
html[data-native-client=true] body dialog .mail-sidebar{padding:8px!important;}
html[data-native-client=true] body dialog .mail-detail{padding:12px!important;}
html[data-native-client=true] body dialog .daily-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important;}
html[data-native-client=true] body dialog .rank-nav{display:flex!important;flex-wrap:nowrap!important;overflow:auto!important;gap:6px!important;}
html[data-native-client=true] body dialog .rank-nav button{flex:0 0 110px!important;min-height:48px!important;font-size:12px!important;overflow-wrap:normal!important;word-break:normal!important;}
html[data-native-client=true] body dialog :is(.rank-hero h1,.rank-hero h2){font-size:24px!important;}
html[data-native-client=true] body #detail.rankings-panel .rank-shell{height:auto!important;display:block!important;}
html[data-native-client=true] body #detail.rankings-panel .rank-layout{display:flex!important;flex-direction:column!important;}
html[data-native-client=true] body #detail.rankings-panel .rank-sidebar{width:100%!important;flex:none!important;padding:8px!important;overflow:hidden!important;gap:8px!important;}
html[data-native-client=true] body #detail.rankings-panel .rank-content{padding:12px!important;overflow:visible!important;}
html[data-native-client=true] body #detail .rank-tabs{display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;gap:6px;overflow:auto!important;max-height:100px!important;}
html[data-native-client=true] body #detail .rank-tab{flex:0 0 104px!important;min-width:104px!important;min-height:48px!important;font:600 11px/1.3 system-ui!important;overflow-wrap:normal!important;word-break:normal!important;}
html[data-native-client=true] body #detail .rank-hero h1{font-size:24px!important;line-height:1.15!important;}
html[data-native-client=true] body #detail .rank-hero{min-height:110px!important;}
html[data-native-client=true] body #detail .rank-side-note{margin-top:0!important;padding:6px!important;}
html[data-native-client=true] body #detail .rank-season{position:static!important;display:inline-block;font-size:10px!important;}
html[data-native-client=true] body #detail .rank-hero-crest{right:0!important;opacity:.25!important;}
html[data-native-client=true] body #detail .hoenn-contracts{float:none!important;width:100%!important;max-width:100%!important;height:auto!important;max-height:none!important;margin:12px 0!important;}
html[data-native-client=true] body #detail .quest-hero{padding:12px!important;gap:8px!important;}
html[data-native-client=true] body #detail .quest-hero img{width:52px!important;height:70px!important;}
html[data-native-client=true] body dialog.ach-window{padding:12px!important;}
html[data-native-client=true] body dialog.ach-window .ach-header{display:grid!important;grid-template-columns:32px minmax(0,1fr)!important;gap:8px!important;padding-bottom:10px!important;}
html[data-native-client=true] body dialog.ach-window .ach-header>.ach-medal{width:32px!important;height:32px!important;}
html[data-native-client=true] body dialog.ach-window .ach-header h1{font-size:18px!important;}
html[data-native-client=true] body dialog.ach-window .ach-header p{font-size:12px!important;}
html[data-native-client=true] body dialog.ach-window .ach-overall{grid-column:1/-1!important;min-width:0!important;font-size:11px!important;white-space:nowrap!important;text-align:left!important;}
html[data-native-client=true] body dialog.ach-window .ach-close{grid-column:2!important;justify-self:end;min-height:40px!important;}
html[data-native-client=true] body dialog.ach-window .ach-identity{display:grid!important;grid-template-columns:40px minmax(0,1fr)!important;gap:8px!important;padding:10px!important;margin:10px 0!important;}
html[data-native-client=true] body dialog.ach-window .ach-identity>canvas{width:40px!important;height:40px!important;}
html[data-native-client=true] body dialog.ach-window .ach-identity .ach-clear{grid-column:1/-1!important;min-height:40px!important;}
html[data-native-client=true] body dialog.ach-window .ach-grid{grid-template-columns:1fr!important;}
html[data-native-client=true] body:has(#battle:not([hidden])) #screen #adventure-hud{display:none!important;}
html[data-native-client=true] body #screen #battle .battle-log{font:12px/1.4 system-ui!important;padding:8px!important;}
html[data-native-client=true] body #screen #battle .battle-bottom:not(:has(.battle-move-selection)){grid-template-columns:1fr!important;grid-template-rows:minmax(42px,1fr) auto!important;}
html[data-native-client=true] body #screen #battle .battle-actions:not(.battle-move-selection){display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:4px!important;}
html[data-native-client=true] body #screen #battle .battle-actions:not(.battle-move-selection) button{font:600 12px/1.3 system-ui!important;min-height:40px!important;padding:6px!important;}
html[data-native-client=true] body #screen #battle .health-box{font:11px/1.3 system-ui!important;}
html[data-native-client=true] body #screen #battle .health-box :is(strong,small,span){font-size:11px!important;}
html[data-native-client=true] body #screen #battle.double-battle .double-health{display:grid!important;grid-template-columns:minmax(0,1fr) auto auto!important;gap:1px 3px!important;font:10px/1.2 system-ui!important;}
html[data-native-client=true] body #screen #battle.double-battle .double-health>strong{grid-column:1/-1!important;font:700 11px/1.2 system-ui!important;white-space:normal!important;overflow-wrap:anywhere;}
html[data-native-client=true] body #screen #battle.double-battle .double-health>.pokemon-gender{position:static!important;inset:auto!important;grid-row:2!important;grid-column:1!important;width:12px!important;height:12px!important;}
html[data-native-client=true] body #screen #battle.double-battle .double-health>span:not([class]){grid-row:2!important;grid-column:2!important;font:10px/1.2 system-ui!important;}
html[data-native-client=true] body #screen #battle.double-battle .double-health>.battle-status-icon{grid-row:2!important;grid-column:3!important;position:static!important;}
html[data-native-client=true] body #screen #battle.double-battle .double-health>:is(progress,small,.battle-xp){grid-column:1/-1!important;position:static!important;width:100%!important;margin:1px 0!important;}
html[data-native-client=true] body #screen #battle.double-battle .double-health>small{font:9px/1.2 system-ui!important;}
html[data-native-client=true] body #screen #battle.horde-battle .double-health.double-enemy>strong{font-size:8.5px!important;}
html[data-native-client=true] body #screen #battle.horde-battle .double-health.double-enemy{grid-template-columns:8px minmax(0,1fr) auto!important;padding:2px!important;gap:1px!important;}
html[data-native-client=true] body #screen #battle.horde-battle .double-health.double-enemy>.pokemon-gender{width:8px!important;height:8px!important;}
html[data-native-client=true] body #screen #battle.horde-battle .double-health.double-enemy>span:not([class]){font-size:8px!important;justify-self:end!important;white-space:nowrap!important;}
html[data-native-client=true] body #detail .pc-team-strip{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important;}
html[data-native-client=true] body #detail .pc-team-slot{padding:8px!important;min-height:90px!important;}
html[data-native-client=true] body #detail .pc-team-slot small{font-size:10px!important;line-height:1.35!important;}
html[data-native-client=true] body #detail .pc-toolbar{gap:5px!important;}
html[data-native-client=true] body #detail .pc-toolbar button{padding:6px!important;font-size:11px!important;}
html[data-native-client=true] body #detail .pc-board{display:flex!important;flex-direction:column!important;min-width:0!important;}
html[data-native-client=true] body #detail .pc-grid{order:1;grid-template-columns:repeat(6,minmax(0,1fr))!important;width:100%!important;min-width:0!important;}
html[data-native-client=true] body #detail .pc-inspector{order:2;width:100%!important;min-width:0!important;}
html[data-native-client=true] body #detail .pc-action-menu{position:fixed!important;inset:auto!important;left:50%!important;top:50%!important;transform:translate(-50%,-50%)!important;box-sizing:border-box!important;width:min(280px,calc(100vw - 32px))!important;max-height:calc(100dvh - 96px)!important;overflow:auto!important;z-index:20!important;}
html[data-native-client=true] body #detail .pc-action-menu>*{flex-shrink:0!important;}
html[data-native-client=true] body #detail:has(.pc-action-menu) .pc-mail{visibility:hidden!important;}
html[data-native-client=true] body #detail .dex-device-header{padding:12px!important;gap:8px!important;}
html[data-native-client=true] body #detail .dex-device-header .dex-lens{width:34px!important;height:34px!important;min-width:34px!important;}
html[data-native-client=true] body #detail .dex-count{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;padding:8px!important;gap:4px!important;}
html[data-native-client=true] body #detail .dex-count>div{min-width:0!important;padding:4px!important;}
html[data-native-client=true] body #detail .dex-count strong{font-size:20px!important;}
html[data-native-client=true] body #screen #detail.pokedex-panel .dex-count{margin:10px!important;}
html[data-native-client=true] body #screen #detail.pokedex-panel .dex-count small{font-size:9px!important;white-space:normal!important;letter-spacing:0!important;overflow-wrap:anywhere;}
html[data-native-client=true] body #detail .dex-completion{grid-column:1/-1!important;}
@media(orientation:portrait){
 html[data-native-client=true] body #detail .dg-inhabitants{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;}
 html[data-native-client=true] body #detail .dg-inhabitants>div{min-width:0!important;}
 html[data-native-client=true] body #detail .dg-inhabitants :is(span,small){overflow-wrap:anywhere;white-space:normal!important;}
 html[data-native-client=true] body #detail .breeding-panel .breed-grid{grid-template-columns:minmax(0,1fr)!important;}
 html[data-native-client=true] body #detail .breeding-panel :is(.breed-parent,.breed-preview){grid-column:1!important;min-width:0!important;}
 html[data-native-client=true] body #screen #detail.pokedex-panel .dex-count{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
 html[data-native-client=true] body #screen #detail.pokedex-panel .dex-count small{font-size:10px!important;}
 html[data-native-client=true] body #screen #detail.pokedex-panel .dex-completion{grid-column:auto!important;}
 html[data-native-client=true] body dialog.ach-window .ach-filters{display:grid!important;grid-template-columns:minmax(0,1fr)!important;}
 html[data-native-client=true] body dialog.ach-window .ach-filters :is(input,select){width:100%!important;}
}
html[data-native-client=true] body dialog.pokemon-window .ps-titlebar{padding:6px 8px!important;}
html[data-native-client=true] body dialog.pokemon-window .ps-tabs{padding:6px!important;gap:4px!important;}
html[data-native-client=true] body dialog.pokemon-window .ps-tabs button{flex:1!important;min-width:0!important;min-height:40px!important;padding:5px 3px!important;font-size:10px!important;white-space:normal!important;}
html[data-native-client=true] body dialog.pokemon-window .ps-content{grid-template-columns:1fr!important;}
html[data-native-client=true] body dialog.pokemon-window .ps-portrait{display:grid!important;grid-template-columns:64px minmax(0,1fr)!important;gap:4px!important;padding:8px!important;}
html[data-native-client=true] body dialog.pokemon-window .ps-portrait .tp-art{grid-column:1!important;grid-row:1/5!important;width:64px!important;height:70px!important;min-height:0!important;}
html[data-native-client=true] body dialog.pokemon-window .ps-portrait .tp-art canvas{width:64px!important;height:64px!important;}
html[data-native-client=true] body dialog.pokemon-window .ps-portrait h2{font-size:17px!important;}
html[data-native-client=true] body dialog.pokemon-window .ps-portrait :is(p,small){font-size:11px!important;line-height:1.35!important;}
html[data-native-client=true] body dialog.pokemon-window .ps-data{padding:8px!important;font-size:12px!important;}
html[data-native-client=true] body dialog.pokemon-window .ps-effects{border:1px solid #587c74;border-radius:8px;margin-bottom:10px;padding:8px;}
html[data-native-client=true] body dialog.pokemon-window .ps-effects>summary{min-height:36px;display:list-item;align-content:center;font:600 12px/1.35 system-ui;cursor:pointer;}
html[data-native-client=true] body dialog.pokemon-window .ps-data table{width:100%!important;min-width:0!important;table-layout:fixed;font-size:11px!important;}
html[data-native-client=true] body dialog.pokemon-window .ps-data :is(td,th){padding:4px!important;overflow-wrap:anywhere;}
/* Let the whole market scroll: fixed toolbars must not consume its results area. */
html[data-native-client=true] body #screen #detail:has(.gtl-panel){overflow:auto!important;}
html[data-native-client=true] body #screen #detail .gtl-panel{height:auto!important;min-height:100%!important;overflow:visible!important;}
html[data-native-client=true] body #screen #detail .gtl-panel :is(.gtl-body,.gtl-results,.gtl-list){height:auto!important;max-height:none!important;min-height:0!important;overflow:visible!important;flex:none!important;}
html[data-native-client=true] body #screen #detail .gtl-panel .gtl-body{display:flex!important;flex-direction:column!important;}
html[data-native-client=true] body #screen #detail .gtl-panel .gtl-filters{max-height:none!important;overflow:visible!important;}
html[data-native-client=true] body #screen #detail .gtl-panel .gtl-tabs{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;overflow:visible!important;}
html[data-native-client=true] body #screen #detail .gtl-panel .gtl-tabs button{min-width:0!important;white-space:normal!important;}
html[data-native-client=true] body #screen #detail .gtl-panel .gtl-close{display:none!important;}
html[data-native-client=true] body #detail .dex-filters button{min-width:max-content!important;white-space:nowrap!important;}
@media(orientation:landscape){
 html[data-native-client=true] body #screen #detail .gtl-panel .gtl-tabs{grid-template-columns:repeat(4,minmax(0,1fr))!important;}
 html[data-native-client=true] body dialog .festival-heading:has(.festival-challenges){grid-template-columns:minmax(0,1fr) auto auto!important;}
 html[data-native-client=true] body dialog .festival-heading>.festival-challenges{grid-column:2!important;grid-row:1!important;max-width:180px!important;}
 html[data-native-client=true] body dialog .festival-heading:has(>.festival-challenges)>.festival-close{grid-column:3!important;grid-row:1!important;}
 html[data-native-client=true] body dialog .festival-layout{grid-template-columns:minmax(0,.95fr) minmax(0,1.25fr)!important;grid-template-rows:minmax(0,1fr)!important;overflow:hidden!important;}
 html[data-native-client=true] body dialog .festival-list{min-height:0!important;max-height:none!important;}
 html[data-native-client=true] body dialog .festival-detail{min-height:0!important;min-width:0!important;overflow:auto!important;}
 html[data-native-client=true] body dialog .mail-layout{display:grid!important;grid-template-columns:minmax(0,.95fr) minmax(0,1.25fr)!important;grid-template-rows:minmax(0,1fr)!important;overflow:hidden!important;}
 html[data-native-client=true] body dialog :is(.mail-sidebar,.mail-detail){min-height:0!important;min-width:0!important;overflow:auto!important;}
 html[data-native-client=true] body #screen #battle .battle-bottom:not(:has(.battle-move-selection)){grid-template-columns:minmax(0,34fr) minmax(0,66fr)!important;grid-template-rows:minmax(0,1fr)!important;}
 html[data-native-client=true] body #screen #battle.native-landscape-battle .battle-field .health-box{display:grid!important;grid-template-columns:minmax(0,1fr) 14px auto!important;align-items:center;gap:2px!important;font:10px/1.2 system-ui!important;}
 html[data-native-client=true] body #screen #battle.native-landscape-battle .health-box>strong{grid-column:1!important;grid-row:1!important;white-space:normal!important;font:700 11px/1.2 system-ui!important;overflow:visible!important;}
 html[data-native-client=true] body #screen #battle.native-landscape-battle .health-box>.pokemon-gender{grid-column:2!important;grid-row:1!important;width:12px!important;height:12px!important;}
 html[data-native-client=true] body #screen #battle.native-landscape-battle .health-box>span:not([class]){grid-column:3!important;grid-row:1!important;white-space:nowrap!important;}
 html[data-native-client=true] body #screen #battle.native-landscape-battle .health-box :is(.hp-line,.hp-numbers,.battle-xp){grid-column:1/-1!important;}
 html[data-native-client=true] body #screen #battle.native-landscape-battle .capture-notice{top:3px!important;bottom:auto!important;right:3px!important;max-width:calc(100% - var(--landscape-hud) - 12px)!important;font:10px/1.3 system-ui!important;}
 html[data-native-client=true] body #screen #overlay[data-view=menu] .trainer-menu-shell{width:min(430px,100%)!important;}
 html[data-native-client=true] body #screen #overlay #detail.classic-party .classic-team{grid-template-columns:repeat(2,minmax(0,1fr))!important;}
 html[data-native-client=true] body #screen #adventure-hud #server-presence{flex:0 1 auto!important;}
 html[data-native-client=true] body #screen .party-rail{top:58px!important;max-height:calc(100% - 152px)!important;}
 html[data-native-client=true] body #screen #campaign-objective{top:52px!important;right:100px!important;text-align:left!important;}
 html[data-native-client=true] body #screen :is(#chat-toggle,#companion-chat-toggle){top:auto!important;bottom:90px!important;}
 html[data-native-client=true] body #detail .pc-team-strip{grid-template-columns:repeat(6,minmax(0,1fr))!important;}
 html[data-native-client=true] body dialog.pokemon-window .ps-content{grid-template-columns:140px minmax(0,1fr)!important;}
 html[data-native-client=true] body dialog.pokemon-window .ps-portrait{display:flex!important;flex-direction:column!important;}
}

/* Installed app only. Rows use normal flow so changing labels cannot collide. */
html[data-native-client=true] body #screen #adventure-hud.classic-native-hud{display:flex!important;flex-direction:column!important;gap:3px!important;padding:4px 34px 4px 6px!important;min-height:0!important;filter:none!important;backdrop-filter:none!important;}
html[data-native-client=true] body #screen #adventure-hud.classic-native-hud[hidden]{display:none!important;}
html[data-native-client=true] body #screen #adventure-hud.classic-native-hud>:is(.app-hud-main,.app-hud-status){position:static!important;display:flex!important;align-items:center!important;flex-wrap:wrap!important;gap:4px!important;width:100%!important;min-width:0!important;padding:0!important;}
html[data-native-client=true] body #screen #adventure-hud.classic-native-hud .hud-trainer{flex:1 1 80px!important;max-width:none!important;min-width:70px!important;width:auto!important;padding:0!important;border:0!important;grid-template-columns:24px minmax(0,1fr)!important;gap:0 4px!important;}
html[data-native-client=true] body #screen #adventure-hud.classic-native-hud .hud-avatar{width:24px!important;height:24px!important;}
html[data-native-client=true] body #screen #adventure-hud.classic-native-hud .hud-identity :is(strong,small){font:600 10px/1.15 system-ui!important;letter-spacing:0!important;white-space:nowrap!important;}
html[data-native-client=true] body #screen #adventure-hud.classic-native-hud .hud-xp{height:3px!important;margin:0!important;}
html[data-native-client=true] body #screen #adventure-hud.classic-native-hud :is(.hud-commerce,.hud-actions){display:flex!important;position:static!important;gap:3px!important;flex:0 0 auto!important;padding:0!important;margin:0!important;}
html[data-native-client=true] body #screen #adventure-hud.classic-native-hud :is(.hud-commerce-button,.hud-shortcut){box-sizing:border-box!important;width:28px!important;height:30px!important;min-width:28px!important;min-height:30px!important;padding:3px!important;border-radius:6px!important;transform:none!important;}
html[data-native-client=true] body #screen #adventure-hud.classic-native-hud :is(.hud-commerce-art,.community-icon){width:22px!important;height:22px!important;}
html[data-native-client=true] body #screen #adventure-hud.classic-native-hud .hud-commerce-label{display:none!important;}
html[data-native-client=true] body #screen #adventure-hud.classic-native-hud .hud-commerce{width:auto!important;min-width:0!important;max-width:none!important;}
html[data-native-client=true] body #screen #adventure-hud.classic-native-hud .hud-commerce-button{flex:0 0 28px!important;}
html[data-native-client=true] body #screen #adventure-hud.classic-native-hud .hud-trainer{height:30px!important;grid-template-rows:24px 3px!important;}
html[data-native-client=true] body #screen #adventure-hud.classic-native-hud .hud-avatar{grid-row:1/3!important;grid-column:1!important;}
html[data-native-client=true] body #screen #adventure-hud.classic-native-hud .hud-identity{grid-row:1!important;grid-column:2!important;display:flex!important;align-items:center!important;gap:4px!important;min-width:0!important;}
html[data-native-client=true] body #screen #adventure-hud.classic-native-hud .hud-identity :is(strong,small){margin:0!important;padding:0!important;}
html[data-native-client=true] body #screen #adventure-hud.classic-native-hud .hud-xp{grid-row:2!important;grid-column:2!important;}
html[data-native-client=true] body #screen #adventure-hud.classic-native-hud .hud-switch-icon{font-size:20px!important;}
html[data-native-client=true] body #screen #adventure-hud.classic-native-hud .hud-money{display:block!important;position:static!important;flex:1 1 auto!important;font:600 9px/1.2 system-ui!important;padding:0!important;white-space:nowrap!important;}
html[data-native-client=true] body #screen #adventure-hud.classic-native-hud .hud-zoom{display:flex!important;position:static!important;flex:0 0 auto!important;gap:2px!important;padding:0!important;border:0!important;}
html[data-native-client=true] body #screen #adventure-hud.classic-native-hud .hud-zoom button{font:600 9px/1.2 system-ui!important;min-width:28px!important;min-height:24px!important;padding:3px!important;margin:0!important;}
html[data-native-client=true] body #screen #adventure-hud.classic-native-hud .hud-benefits{position:static!important;display:flex!important;flex:0 0 auto!important;gap:1px!important;transform:none!important;padding:0!important;margin:0!important;}
html[data-native-client=true] body #screen #adventure-hud.classic-native-hud .hud-benefit{width:20px!important;height:24px!important;min-height:24px!important;padding:2px!important;}
html[data-native-client=true] body #screen #adventure-hud.classic-native-hud .hud-benefit>img{width:16px!important;height:16px!important;}
html[data-native-client=true] body #screen #adventure-hud.classic-native-hud #server-presence{position:static!important;display:flex!important;flex:0 1 auto!important;align-items:center!important;justify-content:flex-end!important;gap:3px!important;width:auto!important;max-width:100%!important;padding:0!important;margin:0!important;}
html[data-native-client=true] body #screen #adventure-hud.classic-native-hud #server-presence :is(span,button){font:9px/1.2 system-ui!important;min-height:24px!important;padding:3px!important;}
html[data-native-client=true] body #screen #adventure-hud.classic-native-hud #server-presence button{box-sizing:border-box!important;width:24px!important;min-width:24px!important;max-width:24px!important;font-size:0!important;padding:2px!important;}
html[data-native-client=true] body #screen #adventure-hud.classic-native-hud #server-presence button::before{content:'☷';font:12px/1 system-ui;}
html[data-native-client=true] body #screen #adventure-hud.classic-native-hud #server-presence #game-audio-toggle::before{content:'♪';}
html[data-native-client=true] body #screen #adventure-hud.classic-native-hud #server-presence #game-audio-toggle[aria-pressed=true]::before{content:'🔇';}
html[data-native-client=true] body #screen .hud-visibility-toggle{display:block!important;position:absolute!important;top:4px!important;right:4px!important;left:auto!important;bottom:auto!important;z-index:100!important;width:26px!important;min-width:26px!important;max-width:26px!important;height:30px!important;min-height:30px!important;padding:2px!important;font:700 16px/1 system-ui!important;background:#19343b!important;color:#fff6dc!important;border:1px solid #7da9b3!important;border-radius:6px!important;}
html[data-native-client=true] body:has(#overlay:not([hidden]),dialog[open],#battle:not([hidden])) #screen .hud-visibility-toggle{visibility:hidden!important;}
html[data-native-client=true] body #screen #campaign-objective{top:calc(var(--hud-bottom,64px) + 6px)!important;bottom:auto!important;height:auto!important;min-height:0!important;left:8px!important;right:86px!important;font:11px/1.3 system-ui!important;}
html[data-native-client=true] body #screen #campaign-objective *{font:inherit!important;}
html[data-native-client=true] body #screen .party-rail{top:calc(var(--hud-bottom,64px) + 6px)!important;max-height:calc(100% - var(--hud-bottom,64px) - 154px)!important;right:6px!important;}
html[data-native-client=true] body #screen:has(#adventure-hud[hidden]) .party-rail{top:40px!important;max-height:calc(100% - 194px)!important;}
html[data-native-client=true] body #screen :is(#chat-toggle,#companion-chat-toggle){top:var(--app-objective-bottom,calc(var(--hud-bottom,64px) + 72px))!important;bottom:auto!important;right:auto!important;width:auto!important;min-width:0!important;min-height:28px!important;padding:4px 6px!important;font:10px/1.3 system-ui!important;}
html[data-native-client=true] body #screen #chat-toggle{left:8px!important;}
html[data-native-client=true] body.adventure-layout #screen #companion-chat-toggle{left:62px!important;right:auto!important;width:max-content!important;min-width:0!important;max-width:142px!important;}
@media(orientation:landscape){
 html[data-native-client=true] body #screen .mount-hud{left:220px!important;top:var(--app-objective-bottom,calc(var(--hud-bottom,64px) + 72px))!important;bottom:auto!important;}
}
@media(orientation:landscape) and (min-width:620px){
 html[data-native-client=true] body #screen #adventure-hud.classic-native-hud{flex-direction:row!important;flex-wrap:nowrap!important;align-items:center!important;gap:8px!important;}
 html[data-native-client=true] body #screen #adventure-hud.classic-native-hud>.app-hud-main{width:auto!important;flex:1 1 auto!important;flex-wrap:nowrap!important;}
 html[data-native-client=true] body #screen #adventure-hud.classic-native-hud>.app-hud-status{flex:0 1 auto!important;width:auto!important;flex-wrap:nowrap!important;}
 html[data-native-client=true] body #screen #adventure-hud.classic-native-hud .hud-trainer{max-width:140px!important;}
 html[data-native-client=true] body #screen :is(#chat-toggle,#companion-chat-toggle){top:var(--app-objective-bottom,calc(var(--hud-bottom,64px) + 48px))!important;}
}

/* Native mounting stays in the lower area and remains draggable by touch. */
html[data-native-client=true] body #screen .mount-hud.mount-hud-compact{box-sizing:border-box!important;display:flex!important;align-items:center!important;gap:2px!important;padding:3px!important;width:max-content!important;max-width:calc(100% - 16px)!important;border-radius:8px!important;touch-action:none!important;user-select:none!important;cursor:grab;z-index:90!important;left:50%!important;top:auto!important;bottom:128px!important;transform:translateX(-50%)!important;}
html[data-native-client=true] body #screen .mount-hud.mount-hud-compact[hidden]{display:none!important;}
html[data-native-client=true] body #screen .mount-hud.mount-hud-compact button{font:600 9px/1.2 system-ui!important;min-height:28px!important;min-width:0!important;height:28px!important;padding:4px 6px!important;border-radius:5px!important;touch-action:none!important;white-space:nowrap!important;}
html[data-native-client=true] body #screen .mount-hud.mount-hud-compact button:last-child{min-width:20px!important;padding:3px!important;}
html[data-native-client=true] body #screen .mount-hud[data-dragging=true]{cursor:grabbing;outline:2px solid #80d6df;}
@media(orientation:landscape){html[data-native-client=true] body #screen .mount-hud.mount-hud-compact{bottom:12px!important;}}

/* Compact, translucent feedback in the installed app. */
html[data-native-client=true] body #notice{
 box-sizing:border-box!important;position:fixed!important;inset:auto!important;
 left:50%!important;bottom:calc(164px + env(safe-area-inset-bottom,0px))!important;
 transform:translateX(-50%)!important;width:max-content!important;min-width:0!important;
 max-width:min(250px,calc(100vw - 32px))!important;min-height:0!important;height:auto!important;
 max-height:32dvh!important;overflow:auto!important;padding:6px 10px!important;margin:0!important;
 background:rgba(8,24,28,.42)!important;color:#fff!important;
 border:1px solid #ffffff24!important;border-radius:8px!important;
 box-shadow:none!important;backdrop-filter:none!important;filter:none!important;
 font:500 11px/1.35 system-ui,sans-serif!important;letter-spacing:normal!important;
 text-align:center!important;text-shadow:0 1px 2px #000,0 0 2px #000!important;
 white-space:pre-wrap!important;overflow-wrap:anywhere!important;pointer-events:none!important;
}
html[data-native-client=true] body #notice[hidden]{display:none!important;}
@media(orientation:landscape){html[data-native-client=true] body #notice{bottom:calc(66px + env(safe-area-inset-bottom,0px))!important;max-width:min(320px,calc(100vw - 32px))!important;}}

/* Reserve a separate column for the HUD hide control, including Android text zoom. */
html[data-native-client=true] body #screen:has(#battle:not([hidden])) #game{object-fit:cover!important;}
html[data-native-client=true] body #screen #adventure-hud.classic-native-hud{padding-right:42px!important;}
html[data-native-client=true] body #screen #adventure-hud.classic-native-hud>:is(.app-hud-main,.app-hud-status){border-right:0!important;}
@media(orientation:landscape) and (min-width:620px){
 html[data-native-client=true] body #screen #adventure-hud.classic-native-hud>.app-hud-main{flex:1 1 0!important;}
 html[data-native-client=true] body #screen #adventure-hud.classic-native-hud>.app-hud-status{flex:0 0 auto!important;}
}

/* Animation feedback belongs to the battle's dark action area. */
html[data-native-client=true] body #screen #battle .battle-animation-wait{color:#edf8ed!important;opacity:1!important;overflow-wrap:anywhere;}

/* Conditional player dialogs use the same compact native reading scale. */
html[data-native-client=true] body dialog:is(.invasion-window,.arena-panel,.frontier-coop-window,.event-result){box-sizing:border-box!important;width:calc(100vw - 16px)!important;max-width:900px!important;max-height:calc(100dvh - 16px)!important;margin:auto!important;overflow:auto!important;font:400 12px/1.45 system-ui!important;}
html[data-native-client=true] body dialog:is(.invasion-window,.arena-panel,.frontier-coop-window,.event-result) :is(h1,h2,h3,p,button,strong,small,span,div){min-width:0;overflow-wrap:anywhere;}
html[data-native-client=true] body :is(.invasion-window,.frontier-coop-window,.event-result){padding:12px!important;}
html[data-native-client=true] body :is(.invasion-window,.arena-panel,.frontier-coop-window,.event-result) h1{font-size:18px!important;line-height:1.2!important;}
html[data-native-client=true] body :is(.invasion-window,.arena-panel,.frontier-coop-window,.event-result) h2{font-size:16px!important;line-height:1.3!important;}
html[data-native-client=true] body .invasion-window :is(p,button,.inv-counter,.inv-note,.inv-warning){font-size:11px!important;line-height:1.45!important;}
html[data-native-client=true] body .invasion-window .inv-header{gap:8px;padding:0 0 12px;}
html[data-native-client=true] body .invasion-window .inv-eyebrow{font-size:9px!important;letter-spacing:1px!important;}
html[data-native-client=true] body .invasion-window .inv-card{padding:14px!important;}
html[data-native-client=true] body .invasion-window :is(.inv-fact,.inv-badge){font-size:9px!important;white-space:normal;}
html[data-native-client=true] body .invasion-window :is(.inv-party-grid,.inv-type-grid){grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;}
html[data-native-client=true] body .invasion-window .inv-mon{padding:8px;white-space:normal;}
html[data-native-client=true] body .invasion-window .inv-mon :is(strong,span){font-size:11px!important;}
html[data-native-client=true] body .invasion-window .inv-mon small{font-size:9px!important;}
html[data-native-client=true] body .invasion-window .inv-mon canvas{width:64px;height:64px;max-width:100%;}
html[data-native-client=true] body .invasion-window .inv-type{display:grid;grid-template-columns:22px minmax(0,1fr);gap:6px;padding:8px;clip-path:none;border-radius:7px;white-space:normal;}
html[data-native-client=true] body .invasion-window .inv-candy{width:22px;height:22px;}
html[data-native-client=true] body .invasion-window .inv-type strong{font-size:11px!important;}
html[data-native-client=true] body .invasion-window .inv-type small{font-size:10px!important;}
html[data-native-client=true] body .arena-panel :is(.arena-eyebrow,.arena-wordmark){font-size:9px!important;letter-spacing:1px!important;}
html[data-native-client=true] body .arena-panel :is(.arena-scroll,.arena-topbar){padding:12px!important;}
html[data-native-client=true] body .arena-panel :is(.arena-countdown,.arena-draft-clock,.arena-top-clock){font-size:16px!important;}
html[data-native-client=true] body .arena-panel :is(.arena-pokemon-card strong,.arena-team-tabs button,.arena-primary,.arena-secondary,.arena-versus){font-size:12px!important;white-space:normal;}
html[data-native-client=true] body .arena-panel :is(.arena-muted,.arena-move-description,.arena-build-facts,.arena-level,.arena-types){font-size:10px!important;line-height:1.45!important;}
html[data-native-client=true] body .frontier-coop-window button{font-size:12px!important;white-space:normal;max-width:100%;}
html[data-native-client=true] body .frontier-coop-window button canvas{width:32px;height:32px;max-width:100%;}
html[data-native-client=true] body .event-result :is(.er-header,.er-footer){gap:8px;padding:8px!important;}
html[data-native-client=true] body .event-result .er-place{padding:10px!important;}
html[data-native-client=true] body .event-result :is(.er-place h3,.er-score,.er-close){font-size:12px!important;}
html[data-native-client=true] body .event-result :is(.er-rewards,.er-note,.er-footer p){font-size:10px!important;line-height:1.4!important;}
@media(orientation:portrait){html[data-native-client=true] body .frontier-coop-window>div:has(button canvas){grid-template-columns:minmax(0,1fr)!important;}}

html[data-native-client=true] body .arena-panel .arena-draft-heading{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:8px;align-items:start;}
html[data-native-client=true] body .arena-panel .arena-draft-clock{white-space:nowrap!important;min-width:3.8em!important;padding:6px!important;box-sizing:border-box;}
html[data-native-client=true] body dialog.event-result{display:flex!important;flex-direction:column!important;height:calc(100dvh - 16px)!important;overflow:hidden!important;}
html[data-native-client=true] body .event-result .er-header{flex:0 0 auto;}
html[data-native-client=true] body .event-result .er-podium{flex:1 1 0;min-height:0;overflow:auto;overscroll-behavior:contain;}
html[data-native-client=true] body .event-result :is(.er-note,.er-footer){position:static!important;flex:0 0 auto;}
html[data-native-client=true] body .event-result .er-footer{display:flex;align-items:center;flex-wrap:wrap;}
html[data-native-client=true] body .event-result .er-footer p{flex:1 1 120px;}
html[data-native-client=true] body .event-result .er-close{flex:0 0 auto;min-width:80px!important;width:auto!important;padding:8px 12px!important;white-space:nowrap!important;}

/* Native conditional dialogs keep intrinsic rows so large system fonts cannot overlap. */
html[data-native-client=true] body #screen #battle.boss-battle:not([hidden]){display:grid!important;grid-template-rows:minmax(0,1fr) auto!important;max-height:calc(100dvh - 16px)!important;}
html[data-native-client=true] body #screen #battle.boss-battle .battle-field{min-height:0!important;height:100%!important;overflow:hidden!important;}
html[data-native-client=true] body #screen #battle.boss-battle .boss-arena{display:block!important;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:auto auto auto auto auto!important;align-content:start!important;gap:8px!important;padding:10px!important;overflow:auto!important;overscroll-behavior:contain;touch-action:pan-y;font:12px/1.35 system-ui!important;}
html[data-native-client=true] body #screen #battle.boss-battle .boss-hud{display:grid!important;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:repeat(5,max-content)!important;gap:5px!important;height:auto!important;min-height:0!important;padding:0!important;}
html[data-native-client=true] body #screen #battle.boss-battle .boss-hud>*{position:static!important;grid-column:1!important;grid-row:auto!important;min-width:0!important;max-width:100%!important;}
html[data-native-client=true] body #screen #battle.boss-battle .boss-caption{gap:8px!important;flex-wrap:wrap!important;}
html[data-native-client=true] body #screen #battle.boss-battle .boss-title{font-size:16px!important;line-height:1.3!important;white-space:normal!important;overflow-wrap:anywhere;}
html[data-native-client=true] body #screen #battle.boss-battle :is(.boss-hp-numbers,.boss-subtitle,.boss-eyebrow,.boss-level){font-size:11px!important;line-height:1.35!important;white-space:normal!important;overflow-wrap:anywhere;}
html[data-native-client=true] body #screen #battle.boss-battle .boss-stage{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(100px,1fr)!important;min-height:140px!important;height:auto!important;gap:8px!important;padding:6px!important;overflow:visible!important;}
html[data-native-client=true] body #screen #battle.boss-battle .boss-center{min-height:140px!important;min-width:0!important;}
html[data-native-client=true] body #screen #battle.boss-battle .boss-target{width:100%!important;max-width:140px!important;height:120px!important;filter:none!important;}
html[data-native-client=true] body #screen #battle.boss-battle .boss-target :is(canvas,img){width:100px!important;height:100px!important;max-height:100px!important;animation:none!important;}
html[data-native-client=true] body #screen #battle.boss-battle .boss-species{font-size:10px!important;padding:2px 5px!important;}
html[data-native-client=true] body #screen #battle.boss-battle .boss-ranking{font-size:11px!important;line-height:1.35!important;padding:6px!important;min-width:0!important;max-height:180px!important;overflow:auto!important;}
html[data-native-client=true] body #screen #battle.boss-battle .boss-ranking li{display:flex!important;gap:4px!important;flex-wrap:wrap!important;}
html[data-native-client=true] body #screen #battle.boss-battle .boss-ranking li span{min-width:0!important;white-space:normal!important;overflow-wrap:anywhere;}
html[data-native-client=true] body #screen #battle.boss-battle .boss-members{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important;max-height:none!important;overflow:visible!important;}
html[data-native-client=true] body #screen #battle.boss-battle .boss-member{height:auto!important;min-height:120px!important;min-width:0!important;padding:6px!important;gap:3px!important;overflow:hidden!important;}
html[data-native-client=true] body #screen #battle.boss-battle .boss-member-pose{height:48px!important;min-height:48px!important;}
html[data-native-client=true] body #screen #battle.boss-battle .boss-member-status{position:static!important;font-size:10px!important;line-height:1.3!important;white-space:normal!important;overflow-wrap:anywhere;max-width:100%!important;}
html[data-native-client=true] body #screen #battle.boss-battle :is(.boss-member-name,.boss-member-mon,.boss-member-hp){font-size:11px!important;line-height:1.35!important;white-space:normal!important;overflow-wrap:anywhere;}
html[data-native-client=true] body #screen #battle.boss-battle :is(.boss-feed,.boss-prize){font-size:11px!important;line-height:1.35!important;white-space:normal!important;max-height:none!important;overflow:visible!important;}
html[data-native-client=true] body :is(.game-choice-dialog,.item-use-dialog){box-sizing:border-box!important;width:min(520px,calc(100vw - 16px))!important;max-width:calc(100vw - 16px)!important;max-height:calc(100dvh - 16px)!important;min-width:0!important;overflow:auto!important;padding:14px!important;font:13px/1.4 system-ui!important;}
html[data-native-client=true] body :is(.game-choice-dialog,.item-use-dialog) h2{font:600 17px/1.35 system-ui!important;margin:0 0 10px!important;overflow-wrap:anywhere;}
html[data-native-client=true] body :is(.game-choice-dialog,.item-use-dialog) :is(button,input,p,label){font-size:12px!important;line-height:1.4!important;min-width:0!important;max-width:100%!important;white-space:normal!important;overflow-wrap:anywhere;}
html[data-native-client=true] body :is(.game-choice-dialog,.item-use-dialog) button{min-height:36px!important;padding:8px!important;height:auto!important;}
html[data-native-client=true] body .item-use-dialog .item-use-stage{padding:8px!important;gap:5px!important;}
html[data-native-client=true] body .item-use-dialog .item-use-stage canvas{width:80px!important;height:80px!important;}
html[data-native-client=true] body .item-use-dialog :is(.item-use-stage strong,.item-use-stats){font-size:12px!important;line-height:1.35!important;}
@media(orientation:landscape){
 html[data-native-client=true] body #screen #battle.boss-battle .boss-members{grid-template-columns:repeat(5,minmax(0,1fr))!important;}
 html[data-native-client=true] body .game-choice-dialog[open]{display:grid!important;grid-template-columns:1fr 1fr!important;gap:6px!important;}
 html[data-native-client=true] body .game-choice-dialog :is(h2,form){grid-column:1/-1!important;}
 html[data-native-client=true] body .game-choice-dialog>button{margin:0!important;}
}

html[data-native-client=true] body #screen #battle.boss-battle .boss-arena>*{position:relative!important;inset:auto!important;min-height:min-content!important;max-height:none!important;margin:0 0 8px!important;}
html[data-native-client=true] body #screen #battle.boss-battle .boss-title{display:block!important;}

html[data-native-client=true] body #screen #battle.boss-battle .boss-meter{position:relative!important;}

html[data-native-client=true] body #screen #battle.boss-battle .boss-member{display:flex!important;flex-direction:column!important;align-items:stretch!important;justify-content:flex-start!important;}
html[data-native-client=true] body #screen #battle.boss-battle .boss-member>*{flex-shrink:0!important;}
html[data-native-client=true] body #screen #battle.boss-battle .boss-member-pose :is(canvas:not(.boss-trainer),img){width:44px!important;height:44px!important;}
html[data-native-client=true] body #screen #battle.boss-battle .boss-ranking li{display:grid!important;grid-template-columns:20px minmax(0,1fr)!important;}
html[data-native-client=true] body #screen #battle.boss-battle .boss-ranking li strong{grid-column:2!important;}
@media(orientation:portrait){html[data-native-client=true] body #screen #battle.boss-battle .boss-stage{grid-template-columns:minmax(0,1fr)!important;}}

/* Populated player teams and ready checks must fit the installed viewport. */
html[data-native-client=true] body .gvg-ready{position:fixed!important;inset:0!important;box-sizing:border-box!important;width:100vw!important;height:100dvh!important;max-width:none!important;max-height:none!important;margin:0!important;transform:none!important;display:grid!important;place-items:center!important;padding:8px!important;border:0!important;overflow:auto!important;background:#061b25db!important;z-index:22000!important;}
html[data-native-client=true] body .gvg-ready-card{box-sizing:border-box!important;min-width:0!important;width:min(420px,100%)!important;max-width:100%!important;max-height:calc(100dvh - 16px)!important;padding:16px!important;overflow:auto!important;font:13px/1.4 system-ui!important;}
html[data-native-client=true] body .gvg-ready-card h2{font:700 18px/1.35 system-ui!important;margin:8px 0!important;}
html[data-native-client=true] body .gvg-ready-card :is(p,small,button){font-size:12px!important;line-height:1.4!important;letter-spacing:normal!important;white-space:normal!important;overflow-wrap:anywhere;max-width:100%!important;}
html[data-native-client=true] body .gvg-ready-card .gvg-countdown{font:700 32px/1.2 system-ui!important;white-space:nowrap!important;display:block!important;}
html[data-native-client=true] body .gvg-ready-card button{min-height:40px!important;height:auto!important;padding:8px!important;}
html[data-native-client=true] body #screen #overlay #detail .teams-panel{display:flex!important;flex-direction:column!important;height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important;font:12px/1.4 system-ui!important;}
html[data-native-client=true] body #screen #overlay #detail .teams-panel *{min-width:0;}
html[data-native-client=true] body #screen #overlay #detail .teams-header{display:flex!important;flex-wrap:wrap!important;align-items:center!important;gap:8px!important;height:auto!important;padding:10px!important;}
html[data-native-client=true] body #screen #overlay #detail .teams-header>div{flex:1 1 200px!important;}
html[data-native-client=true] body #screen #overlay #detail .teams-header h2{font:700 17px/1.3 system-ui!important;white-space:normal!important;overflow-wrap:anywhere;}
html[data-native-client=true] body #screen #overlay #detail .teams-panel :is(p,small,button,input,select,blockquote){font-size:12px!important;line-height:1.4!important;max-width:100%!important;}
html[data-native-client=true] body #screen #overlay #detail .teams-panel :is(button,p,blockquote){white-space:normal!important;overflow-wrap:anywhere;}
html[data-native-client=true] body #screen #overlay #detail .teams-columns{display:grid!important;grid-template-columns:minmax(0,1fr)!important;height:auto!important;overflow:visible!important;gap:10px!important;}
html[data-native-client=true] body #screen #overlay #detail :is(.teams-overview,.teams-roster,.teams-details){height:auto!important;max-height:none!important;overflow:visible!important;padding:10px!important;}
html[data-native-client=true] body #screen #overlay #detail .teams-panel :is(h3,h4){font:600 14px/1.35 system-ui!important;white-space:normal!important;overflow-wrap:anywhere;}
html[data-native-client=true] body #screen #overlay #detail :is(.teams-toolbar,.teams-invite){display:flex!important;flex-wrap:wrap!important;gap:6px!important;}
html[data-native-client=true] body #screen #overlay #detail .teams-toolbar input{flex:1 0 100%!important;width:100%!important;}
html[data-native-client=true] body #screen #overlay #detail .teams-invite input{flex:1 1 120px!important;width:auto!important;}
html[data-native-client=true] body #screen #overlay #detail .teams-member-list{max-height:320px!important;height:auto!important;overflow:auto!important;}
html[data-native-client=true] body #screen #overlay #detail .teams-member{display:grid!important;grid-template-columns:24px minmax(0,1fr)!important;gap:4px 8px!important;height:auto!important;padding:8px!important;}
html[data-native-client=true] body #screen #overlay #detail .teams-avatar{width:24px!important;height:24px!important;font-size:14px!important;}
html[data-native-client=true] body #screen #overlay #detail .teams-member-status{grid-column:2!important;text-align:left!important;}
html[data-native-client=true] body #screen #overlay #detail .teams-footer{position:static!important;display:flex!important;flex-wrap:wrap!important;gap:8px!important;padding:10px!important;}
html[data-native-client=true] body .teams-confirm{position:fixed!important;inset:auto!important;left:50%!important;top:50%!important;transform:translate(-50%,-50%)!important;box-sizing:border-box!important;width:min(380px,calc(100vw - 16px))!important;max-height:calc(100dvh - 16px)!important;overflow:auto!important;padding:16px!important;font:13px/1.4 system-ui!important;z-index:22000!important;}
@media(orientation:landscape){html[data-native-client=true] body #screen #overlay #detail .teams-columns{grid-template-columns:minmax(120px,.8fr) minmax(0,1.2fr) minmax(120px,.8fr)!important;}}

html[data-native-client=true] body #screen #overlay #detail .teams-panel>*,html[data-native-client=true] body #screen #overlay #detail .teams-roster>*{flex-shrink:0!important;}
html[data-native-client=true] body #screen #overlay #detail :is(.teams-columns,.teams-member-list){flex:none!important;}

html[data-native-client=true] body .farming-panel:not([hidden]){position:fixed!important;inset:auto!important;left:50%!important;top:50%!important;transform:translate(-50%,-50%)!important;box-sizing:border-box!important;width:min(420px,calc(100vw - 16px))!important;max-width:calc(100vw - 16px)!important;max-height:calc(100dvh - 16px)!important;min-width:0!important;height:auto!important;overflow:auto!important;padding:12px!important;display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:8px!important;z-index:17000!important;font:13px/1.4 system-ui!important;background:#183b38!important;color:#edf8ed!important;}
html[data-native-client=true] body .farming-panel>strong{font:600 16px/1.35 system-ui!important;white-space:normal!important;}
html[data-native-client=true] body .farming-panel>p,html[data-native-client=true] body .farming-panel>button:not(:nth-child(2)){grid-column:1/-1!important;}
html[data-native-client=true] body .farming-panel :is(p,button){font:12px/1.4 system-ui!important;white-space:normal!important;overflow-wrap:anywhere;min-width:0!important;max-width:100%!important;margin:0!important;}
html[data-native-client=true] body .farming-panel button{height:auto!important;min-height:36px!important;padding:8px!important;background:#214b4e!important;color:#edf7ef!important;}
html[data-native-client=true] body dialog.tc-invite[open]{box-sizing:border-box!important;display:flex!important;flex-direction:column!important;width:min(760px,calc(100vw - 16px))!important;max-width:calc(100vw - 16px)!important;max-height:calc(100dvh - 16px)!important;min-width:0!important;overflow:hidden!important;padding:12px!important;gap:6px!important;font:12px/1.35 system-ui!important;}
html[data-native-client=true] body dialog.tc-invite> :not(.tc-team){flex:none!important;}
html[data-native-client=true] body dialog.tc-invite :is(p,h2,header,footer){margin:0!important;}
html[data-native-client=true] body dialog.tc-invite h2{font:600 18px/1.3 system-ui!important;}
html[data-native-client=true] body dialog.tc-invite :is(p,small,span,button){font-size:12px!important;line-height:1.35!important;letter-spacing:normal!important;white-space:normal!important;overflow-wrap:anywhere;}
html[data-native-client=true] body dialog.tc-invite .tc-countdown{font:700 28px/1.2 system-ui!important;}
html[data-native-client=true] body dialog.tc-invite .tc-team{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px!important;min-height:0!important;overflow:auto!important;max-height:none!important;}
html[data-native-client=true] body dialog.tc-invite .tc-choice{min-width:0!important;padding:6px!important;height:auto!important;display:flex!important;flex-direction:column!important;align-items:center!important;gap:3px!important;}
html[data-native-client=true] body dialog.tc-invite .tc-choice :is(strong,small){font-size:11px!important;line-height:1.3!important;max-width:100%!important;overflow-wrap:anywhere;}
html[data-native-client=true] body dialog.tc-invite .tc-choice .tp-art{width:48px!important;height:48px!important;min-height:48px!important;flex:none!important;padding:0!important;margin:0!important;}
html[data-native-client=true] body dialog.tc-invite .tc-choice .tp-art canvas{width:48px!important;height:48px!important;max-width:100%!important;max-height:100%!important;}
html[data-native-client=true] body dialog.tc-invite footer{position:static!important;inset:auto!important;display:grid!important;grid-template-columns:1fr 1fr!important;gap:6px!important;padding:6px 0 0!important;}
html[data-native-client=true] body dialog.tc-invite footer button{min-height:36px!important;height:auto!important;padding:8px!important;min-width:0!important;}
@media(orientation:landscape){html[data-native-client=true] body dialog.tc-invite .tc-team{grid-template-columns:repeat(6,minmax(0,1fr))!important;}}

html[data-native-client=true] body dialog.tc-invite header{padding:0!important;}
html[data-native-client=true] body dialog.tc-invite>progress{margin:0!important;height:4px!important;min-height:4px!important;}
html[data-native-client=true] body dialog.tc-invite[open]{gap:4px!important;padding:10px!important;}
html[data-native-client=true] body dialog.tc-invite .tc-muted{font-size:10px!important;}

html[data-native-client=true] body #screen #overlay[data-view=panel]{width:auto!important;height:auto!important;min-width:0!important;max-width:calc(100vw - 16px)!important;max-height:calc(100dvh - 16px)!important;}

html[data-native-client=true] body:has(.farming-panel:not([hidden]),.gvg-ready) :is(#touch-controls,.mount-hud){visibility:hidden!important;pointer-events:none!important;}

@media(orientation:landscape){
 html[data-native-client=true] body dialog.tc-invite .tc-countdown{font-size:22px!important;}
 html[data-native-client=true] body dialog.tc-invite h2{font-size:16px!important;}
 html[data-native-client=true] body dialog.tc-invite>p{font-size:11px!important;}
 html[data-native-client=true] body dialog.tc-invite .tc-choice .tp-art,html[data-native-client=true] body dialog.tc-invite .tc-choice .tp-art canvas{width:40px!important;height:40px!important;min-height:40px!important;}
}

/* Mobile commerce panels own their layout; generic classic-window sizing must not consume their viewport. */
html[data-native-client=true] body #screen #overlay[data-view=panel]:has(.gtl-panel){position:fixed!important;inset:max(6px,env(safe-area-inset-top)) max(6px,env(safe-area-inset-right)) max(6px,env(safe-area-inset-bottom)) max(6px,env(safe-area-inset-left))!important;width:auto!important;height:auto!important;max-width:none!important;max-height:none!important;display:block!important;padding:0!important;border:0!important;background:transparent!important;overflow:hidden!important;}
html[data-native-client=true] body #screen #overlay[data-view=panel]:has(.gtl-panel)>:is(.app-classic-back,.trainer-menu-shell,.panel-back){display:none!important;}
html[data-native-client=true] body #screen #overlay[data-view=panel]:has(.gtl-panel) #detail{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;max-height:none!important;min-height:0!important;padding:0!important;margin:0!important;border:0!important;background:transparent!important;overflow:hidden!important;}
html[data-native-client=true] body #screen #overlay #detail .gtl-panel{font:12px/1.35 system-ui!important;}
html[data-native-client=true] body #screen #overlay #detail .gtl-panel :is(p,small,label,h3,h4){font-size:11px!important;line-height:1.35!important;overflow-wrap:anywhere;}
html[data-native-client=true] body #screen #overlay #detail .gtl-panel h2{font-size:16px!important;}
html[data-native-client=true] body #screen #overlay #detail .gtl-panel :is(button,input,select,textarea){font:600 11px/1.25 system-ui!important;min-height:32px!important;height:auto!important;min-width:0!important;padding:6px 7px!important;white-space:normal!important;overflow-wrap:anywhere;}
html[data-native-client=true] body #screen #overlay #detail .gtl-panel .gtl-header{display:flex!important;flex:none!important;flex-wrap:nowrap!important;padding:5px 8px!important;gap:6px!important;min-height:36px!important;}
html[data-native-client=true] body #screen #overlay #detail .gtl-panel .gtl-header>div{font-size:11px!important;flex:1;min-width:0;overflow-wrap:anywhere;}
html[data-native-client=true] body #screen #overlay #detail .gtl-panel .gtl-balance{font-size:11px!important;margin-left:0;}
html[data-native-client=true] body #screen #overlay #detail .gtl-panel .gtl-close{display:block!important;flex:none!important;width:32px!important;min-width:32px!important;font-size:18px!important;}
html[data-native-client=true] body #screen #overlay #detail .gtl-panel .gtl-tabs{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;padding:4px!important;gap:4px!important;overflow:visible!important;}
html[data-native-client=true] body #screen #overlay #detail .gtl-panel .gtl-tabs button{min-width:0!important;width:100%!important;min-height:34px!important;flex:none!important;font-size:10px!important;white-space:normal!important;}
html[data-native-client=true] body #screen #overlay #detail .gtl-panel .gtl-body:not(.gtl-single){display:flex!important;flex-direction:column!important;flex:1 1 0!important;min-height:0!important;padding:4px!important;gap:4px!important;overflow:hidden!important;}
html[data-native-client=true] body #screen #overlay #detail .gtl-panel .gtl-results{flex:1 1 0!important;min-height:0!important;height:auto!important;max-height:none!important;}
html[data-native-client=true] body #screen #overlay #detail .gtl-panel .gtl-browse-controls{display:flex!important;flex-wrap:wrap!important;gap:4px!important;padding:4px!important;flex:none!important;}
html[data-native-client=true] body #screen #overlay #detail .gtl-panel .gtl-browse-controls>strong{font-size:10px!important;flex:1 1 80px;}
html[data-native-client=true] body #screen #overlay #detail .gtl-panel .gtl-browse-controls>select{flex:1 1 150px;width:auto!important;max-width:100%!important;}
html[data-native-client=true] body #screen #overlay #detail .gtl-panel .gtl-view-switch{display:flex;flex:none;gap:3px;}
html[data-native-client=true] body #screen #overlay #detail .gtl-panel .gtl-pagination{flex:none!important;flex-wrap:wrap!important;gap:4px!important;padding:3px!important;font-size:10px!important;}
html[data-native-client=true] body #screen #overlay #detail .gtl-panel .gtl-pagination .gtl-button{min-height:30px!important;font-size:10px!important;}
html[data-native-client=true] body #screen #overlay #detail .gtl-panel .gtl-list{flex:1 1 0!important;min-height:0!important;overflow:auto!important;overscroll-behavior:contain;}
html[data-native-client=true] body #screen #overlay #detail .gtl-panel[data-layout=cards] .gtl-list{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important;padding:5px!important;}
html[data-native-client=true] body #screen #overlay #detail .gtl-panel[data-layout=cards] .gtl-row{min-height:0!important;display:flex!important;flex-direction:column!important;align-items:stretch!important;padding:0!important;gap:0!important;}
html[data-native-client=true] body #screen #overlay #detail .gtl-panel[data-layout=cards] .gtl-card-art{height:96px!important;flex:0 0 96px!important;}
html[data-native-client=true] body #screen #overlay #detail .gtl-panel[data-layout=cards] .gtl-card-art>:is(img,canvas){width:80px!important;height:80px!important;}
html[data-native-client=true] body #screen #overlay #detail .gtl-panel .gtl-row-name{padding:6px!important;gap:3px!important;}
html[data-native-client=true] body #screen #overlay #detail .gtl-panel .gtl-card-meta{padding:5px 6px!important;gap:3px!important;}
html[data-native-client=true] body #screen #overlay #detail .gtl-panel[data-layout=cards] .gtl-row>.gtl-price{font-size:16px!important;padding:3px 6px!important;white-space:normal!important;}
html[data-native-client=true] body #screen #overlay #detail .gtl-panel .gtl-card-time{padding:3px 6px 6px!important;}
html[data-native-client=true] body #screen #overlay #detail .gtl-panel[data-layout=list] .gtl-row{display:grid!important;grid-template-columns:40px minmax(0,1fr) auto!important;gap:5px!important;padding:6px!important;min-height:52px!important;}
html[data-native-client=true] body #screen #overlay #detail .gtl-panel[data-layout=list] .gtl-row-name{padding:0!important;}
html[data-native-client=true] body #screen #overlay #detail .gtl-panel[data-layout=list] :is(.gtl-card-meta,.gtl-card-time){display:none!important;}
html[data-native-client=true] body #screen #overlay #detail .gtl-panel[data-layout=list] .gtl-price{max-width:100px!important;font-size:12px!important;white-space:normal!important;}
html[data-native-client=true] body #screen #overlay #detail .gtl-panel .gtl-filters{flex:0 1 auto!important;max-height:34%!important;min-height:0!important;padding:6px!important;gap:6px!important;overflow:auto!important;}
html[data-native-client=true] body #screen #overlay #detail .gtl-panel[data-filters=false] .gtl-filters{display:none!important;}
html[data-native-client=true] body #screen #overlay #detail .gtl-panel .gtl-selected{display:none!important;}
html[data-native-client=true] body #screen #overlay #detail .gtl-panel[data-details=true] .gtl-selected{display:flex!important;position:absolute!important;inset:0!important;z-index:8!important;min-height:0!important;max-height:none!important;overflow:auto!important;padding:10px!important;background:#111f2c!important;}
html[data-native-client=true] body #screen #overlay #detail .gtl-panel .gtl-details-back{display:block!important;flex:none;}
html[data-native-client=true] body #screen #overlay #detail .gtl-panel .gtl-body.gtl-single{display:flex!important;flex:1 1 0!important;flex-direction:column!important;min-height:0!important;overflow:auto!important;gap:6px!important;padding:6px!important;}
html[data-native-client=true] body #screen #overlay #detail .gtl-panel .gtl-create{flex:none!important;width:100%!important;max-width:520px!important;margin:0 auto!important;padding:10px!important;gap:9px!important;}
html[data-native-client=true] body #screen #overlay #detail .gtl-panel .gtl-create-preview{padding:7px!important;gap:7px!important;}
html[data-native-client=true] body #screen #overlay #detail .gtl-panel .gtl-mail{flex:none!important;flex-wrap:wrap!important;gap:6px!important;padding:9px!important;}
html[data-native-client=true] body #screen #overlay #detail .gtl-panel .gtl-mail>div{flex:1 0 100%!important;overflow-wrap:anywhere;}
html[data-native-client=true] body #screen #overlay #detail .gtl-panel .gtl-confirm{padding:10px!important;overflow:auto!important;}
html[data-native-client=true] body #screen #overlay #detail .gtl-panel .gtl-confirm-card{width:min(100%,360px)!important;max-height:100%!important;overflow:auto!important;padding:14px!important;display:flex!important;flex-wrap:wrap!important;gap:8px!important;}
html[data-native-client=true] body #screen #overlay #detail .gtl-panel .gtl-confirm-card h3{flex-basis:100%;}
html[data-native-client=true] body #screen #overlay #detail .gtl-panel .gtl-confirm-card button{flex:1 1 100px;}
@media(max-width:420px){html[data-native-client=true] body #screen #overlay #detail .gtl-panel .gtl-tabs{grid-template-columns:repeat(2,minmax(0,1fr))!important;}html[data-native-client=true] body #screen #overlay #detail .gtl-panel .gtl-header>div{max-width:145px;}}
@media(orientation:landscape){html[data-native-client=true] body #screen #overlay #detail .gtl-panel[data-layout=cards] .gtl-list{grid-template-columns:repeat(3,minmax(0,1fr))!important;}html[data-native-client=true] body #screen #overlay #detail .gtl-panel[data-filters=true] .gtl-body:not(.gtl-single){display:grid!important;grid-template-columns:minmax(160px,32%) minmax(0,1fr)!important;}html[data-native-client=true] body #screen #overlay #detail .gtl-panel .gtl-filters{max-height:100%!important;height:100%!important;}}
/* Pokéloja: compact touch controls, readable cards, one scrolling content region. */
html[data-native-client=true] body dialog.pokeshop-window{position:fixed!important;inset:6px!important;width:auto!important;height:auto!important;max-width:none!important;max-height:none!important;min-width:0!important;margin:0!important;padding:0!important;display:flex;flex-direction:column;overflow:hidden!important;box-sizing:border-box!important;}
html[data-native-client=true] body dialog.pokeshop-window:not([open]){display:none!important;}
html[data-native-client=true] body dialog.pokeshop-window .festival-heading{position:relative!important;top:auto!important;flex:none!important;display:flex!important;align-items:center!important;gap:8px!important;padding:7px 10px!important;min-height:42px!important;}
html[data-native-client=true] body dialog.pokeshop-window .festival-heading>div{flex:1;min-width:0;}
html[data-native-client=true] body dialog.pokeshop-window .festival-heading h2{font:700 17px/1.2 system-ui!important;letter-spacing:normal!important;margin:2px 0!important;}
html[data-native-client=true] body dialog.pokeshop-window .festival-heading :is(small,p){font:11px/1.25 system-ui!important;margin:2px 0!important;}
html[data-native-client=true] body dialog.pokeshop-window :is(button,.app-classic-dialog-back){min-height:32px!important;height:auto!important;min-width:0!important;width:auto!important;padding:6px 9px!important;font:600 11px/1.3 system-ui!important;white-space:normal!important;overflow-wrap:anywhere;}
html[data-native-client=true] body dialog.pokeshop-window .festival-close{flex:none!important;min-width:58px!important;}
html[data-native-client=true] body dialog.pokeshop-window .pokeshop-body{flex:1 1 0!important;min-height:0!important;overflow:auto!important;padding:8px!important;overscroll-behavior:contain;}
html[data-native-client=true] body dialog.pokeshop-window .shop-benefits{padding:8px!important;gap:6px!important;}
html[data-native-client=true] body dialog.pokeshop-window .shop-benefit{font:700 14px/1.3 system-ui!important;}
html[data-native-client=true] body dialog.pokeshop-window .shop-vip-mark{font-size:22px!important;}
html[data-native-client=true] body dialog.pokeshop-window .shop-explainer{font:11px/1.4 system-ui!important;margin:5px 0!important;overflow-wrap:anywhere;}
html[data-native-client=true] body dialog.pokeshop-window .shop-group{margin-top:14px!important;}
html[data-native-client=true] body dialog.pokeshop-window .shop-group-title{font:700 15px/1.3 system-ui!important;}
html[data-native-client=true] body dialog.pokeshop-window .shop-plans{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important;margin-top:8px!important;}
html[data-native-client=true] body dialog.pokeshop-window .shop-plan{padding:9px!important;gap:6px!important;min-width:0!important;overflow-wrap:anywhere;}
html[data-native-client=true] body dialog.pokeshop-window .shop-plan h4{font:700 14px/1.3 system-ui!important;}
html[data-native-client=true] body dialog.pokeshop-window .plan-description{font:11px/1.4 system-ui!important;}
html[data-native-client=true] body dialog.pokeshop-window .plan-badge{font:10px/1.2 system-ui!important;letter-spacing:.03em!important;}
html[data-native-client=true] body dialog.pokeshop-window .plan-price{font:700 18px/1.3 system-ui!important;margin-top:3px!important;}
html[data-native-client=true] body dialog.pokeshop-window .shop-item-art{width:56px!important;height:56px!important;}
html[data-native-client=true] body dialog.pokeshop-window .festival-primary{width:100%!important;margin-top:auto!important;}
html[data-native-client=true] body dialog.pokeshop-window .shop-status{flex:none!important;max-height:25%!important;overflow:auto!important;margin:6px 8px 0!important;padding:7px!important;font:11px/1.4 system-ui!important;}
html[data-native-client=true] body dialog.pokeshop-window .shop-status[hidden]{display:none!important;}
html[data-native-client=true] body dialog.pokeshop-window .shop-aura-preview{height:105px!important;}
html[data-native-client=true] body dialog.pokeshop-window .shop-aura-preview~.shop-item-art{width:25px!important;height:25px!important;right:10px!important;top:10px!important;}
html[data-native-client=true] body dialog.pokeshop-window .shop-footer{font:10px/1.4 system-ui!important;margin:12px 0 0!important;}
@media(orientation:landscape){html[data-native-client=true] body dialog.pokeshop-window .shop-plans{grid-template-columns:repeat(3,minmax(0,1fr))!important;}html[data-native-client=true] body dialog.pokeshop-window .festival-heading p{display:none!important;}}
html[data-native-client=true] body dialog.pokeshop-window .shop-benefits{display:grid!important;grid-template-columns:24px minmax(0,1fr)!important;min-height:0!important;padding:7px!important;gap:4px!important;}
html[data-native-client=true] body dialog.pokeshop-window .shop-vip-mark{display:grid!important;place-items:center!important;width:24px!important;height:24px!important;min-height:0!important;margin:0!important;padding:0!important;border:0!important;background:none!important;transform:none!important;font-size:20px!important;}
html[data-native-client=true] body dialog.pokeshop-window .shop-benefits .shop-explainer{grid-column:1/-1!important;font-size:10px!important;margin:0!important;}
html[data-native-client=true] body dialog.pokeshop-window .plan-description{font-size:10px!important;line-height:1.35!important;}
html[data-native-client=true] body #screen #overlay #detail .gtl-panel .gtl-row-name strong{font:700 12px/1.25 system-ui!important;}
html[data-native-client=true] body #screen #overlay #detail .gtl-panel .gtl-card-meta :is(span,strong,small){font-size:10px!important;line-height:1.3!important;}
html[data-native-client=true] body #screen #overlay #detail .gtl-panel[data-layout=cards] .gtl-row>.gtl-price{font-size:13px!important;line-height:1.3!important;overflow-wrap:normal!important;word-break:normal!important;}
html[data-native-client=true] body #screen #overlay #detail .gtl-panel .gtl-close{font-size:14px!important;line-height:1!important;min-height:32px!important;}
@media(max-height:230px){html[data-native-client=true] body #screen #overlay #detail .gtl-panel .gtl-header{min-height:30px!important;padding:2px 6px!important;}html[data-native-client=true] body #screen #overlay #detail .gtl-panel .gtl-header>div{display:none!important;}html[data-native-client=true] body #screen #overlay #detail .gtl-panel .gtl-tabs .gtl-button{min-height:28px!important;padding:4px!important;font-size:9px!important;}}
html[data-native-client=true] body.adventure-layout dialog.pokeshop-window[open]{inset:max(6px,env(safe-area-inset-top)) max(6px,env(safe-area-inset-right)) max(6px,env(safe-area-inset-bottom)) max(6px,env(safe-area-inset-left))!important;width:calc(100vw - max(6px,env(safe-area-inset-left)) - max(6px,env(safe-area-inset-right)))!important;height:calc(100dvh - max(6px,env(safe-area-inset-top)) - max(6px,env(safe-area-inset-bottom)))!important;min-width:0!important;min-height:0!important;max-width:none!important;max-height:none!important;box-sizing:border-box!important;transform:none!important;margin:0!important;}
