/* The Pokemon player icon picker (Work-ID 20261105-pokemon-icons-9c3d, reshaped by 20261106-skins-icons-fill-2c9d; Client/app/icon_picker.js).
   It lives in the empty space under the outfit of the SKINS window: on desktop that window is zenux's 1448 x 1086 mockup sheet (ui/theme/mx/skins.css), so there the picker is placed with the sheet's own coordinates
   inside its free panel (nothing crosses the frame, no tab strip); elsewhere (phone layout, the picker's own window) it flows.
   Hover geometry (AGENTS.md): every cell and button has an authored box; hover, focus, pressed and selected only paint (background, inset line, picture filter), never size, spacing or border width. */
.pi-panel{display:flex;flex-direction:column;gap:.6rem;min-width:0;min-height:0;box-sizing:border-box}
.pi-head{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap}
.pi-now{display:flex;align-items:center;gap:.5rem;height:3rem;padding:0 .8rem 0 .3rem;border-radius:.5rem;background:#0b1424;box-shadow:inset 0 0 0 1px #2c3a58}
.pi-now img{width:2.6rem;height:2.6rem;object-fit:contain;image-rendering:pixelated}
.pi-now.none{padding-left:.8rem;color:#9fb0bf}
.pi-now strong{font-size:.85rem;white-space:nowrap}
.pi-count{margin:0;color:#9fb0bf;font-size:.8rem;white-space:nowrap}
.pi-tabs{display:flex;gap:.3rem}
.pi-tab,.pi-shiny,.pi-none,.pi-more,.pi-back{height:2.3rem;padding:0 .8rem;border-radius:.45rem;font-size:.82rem;background:#13203a;color:#dce8f7;border:0;box-shadow:inset 0 0 0 1px #2c3a58;white-space:nowrap}
.pi-tab:hover,.pi-shiny:hover,.pi-none:hover,.pi-more:hover,.pi-back:hover{background:#1b2d50}
.pi-tab.on,.pi-shiny.on{box-shadow:inset 0 0 0 2px #f3c96b}
.pi-tab:focus-visible,.pi-shiny:focus-visible,.pi-none:focus-visible,.pi-more:focus-visible,.pi-back:focus-visible,.pi-cell:focus-visible,.pi-search:focus-visible{outline:2px solid #f3c96b;outline-offset:-3px}
.pi-none:disabled{opacity:.45}
.pi-none{min-width:90px;flex:0 9 auto;overflow:hidden;text-overflow:ellipsis}
.pi-search{flex:1 1 9rem;min-width:7rem;height:2.3rem;padding:0 .7rem;border-radius:.45rem;border:0;background:#0b1424;color:#dce8f7;box-shadow:inset 0 0 0 1px #2c3a58}
.pi-body{flex:1 1 auto;min-height:0;display:flex;flex-direction:column}
.pi-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(5.4rem,5.4rem));gap:.4rem;justify-content:center;align-content:start;flex:1 1 auto;min-height:0;max-height:min(46vh,26rem);overflow-y:auto;overflow-x:hidden;padding:.2rem}
.pi-cell{position:relative;display:grid;grid-template-rows:3.6rem 1.2rem;justify-items:center;align-items:center;width:5.4rem;height:5.5rem;padding:.15rem;border:0;border-radius:.5rem;background:#0f1a2e;color:#dce8f7;box-shadow:inset 0 0 0 1px #243350;overflow:hidden}
.pi-cell img{width:3.6rem;height:3.6rem;object-fit:contain;image-rendering:pixelated}
.pi-cell small{width:100%;text-align:center;font-size:.62rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pi-more-dot{position:absolute;right:.35rem;top:.1rem;font-style:normal;font-size:.8rem;color:#f3c96b}
.pi-cell:not(:disabled):hover{background:#182843}
.pi-cell.on{background:#1f3358;box-shadow:inset 0 0 0 2px #f3c96b}
.pi-cell.locked{opacity:.8;cursor:default}
.pi-cell.locked img{filter:brightness(0) opacity(.38)}
.pi-empty{text-align:center}
.pi-credits{margin:0;color:#7f8ea3;font-size:.68rem;line-height:1.3;text-align:center}
.pi-options-head{display:flex;align-items:center;gap:.8rem;margin:0 0 .4rem}
.pi-options-head strong{font-size:1.1rem}
.pi-options-head small{color:#9fb0bf}
.pi-options-grid{max-height:min(40vh,22rem)}
@media (prefers-reduced-motion:reduce){.pi-cell,.pi-tab,.pi-shiny,.pi-none,.pi-more,.pi-back{transition:none}}

/* ---- the SKINS window of the mockup sheet (1448 x 1086 sheet pixels, zoomed by the window's factor): the picker takes the sheet's free panel under the outfit: its header row beside the sheet's own tab icon, the
   grid in the panel's body (the place of the outfit grid of "Choose outfit": left 62, top 500, 1330 x 520) */
@media screen and (min-width:901px){
 body:not(.mobile-web) #modal#modal[data-view="skins"]:not([data-win-mode="detail"]) .skins-icons-pane .pi-panel{position:absolute!important;left:0!important;top:0!important;width:1448px!important;height:1086px!important;display:block!important;pointer-events:none!important;font-size:15px!important}
 body:not(.mobile-web) #modal#modal[data-view="skins"]:not([data-win-mode="detail"]) .skins-icons-pane .pi-panel :is(button,input,.pi-grid,.pi-grid *){pointer-events:auto!important}
 body:not(.mobile-web) #modal#modal[data-view="skins"]:not([data-win-mode="detail"]) .skins-icons-pane .pi-head{position:absolute!important;left:118px!important;top:410px!important;width:1282px!important;height:56px!important;display:flex!important;flex-wrap:nowrap!important;align-items:center!important;gap:10px!important;box-sizing:border-box!important}
 body:not(.mobile-web) #modal#modal[data-view="skins"]:not([data-win-mode="detail"]) .skins-icons-pane .pi-now{height:52px!important;flex:none!important}
 body:not(.mobile-web) #modal#modal[data-view="skins"]:not([data-win-mode="detail"]) .skins-icons-pane .pi-now img{width:44px!important;height:44px!important}
 body:not(.mobile-web) #modal#modal[data-view="skins"]:not([data-win-mode="detail"]) .skins-icons-pane :is(.pi-tab,.pi-shiny,.pi-none,.pi-back,.pi-more){height:44px!important;font-size:15px!important;padding:0 14px!important}
 body:not(.mobile-web) #modal#modal[data-view="skins"]:not([data-win-mode="detail"]) .skins-icons-pane .pi-search{height:44px!important;font-size:15px!important;min-width:110px!important;flex:1 1 110px!important}
 body:not(.mobile-web) #modal#modal[data-view="skins"]:not([data-win-mode="detail"]) .skins-icons-pane .pi-count{font-size:14px!important}
 body:not(.mobile-web) #modal#modal[data-view="skins"]:not([data-win-mode="detail"]) .skins-icons-pane .pi-body{position:absolute!important;left:62px!important;top:500px!important;width:1330px!important;height:520px!important;display:block!important;box-sizing:border-box!important}
 body:not(.mobile-web) #modal#modal[data-view="skins"]:not([data-win-mode="detail"]) .skins-icons-pane .pi-grid{width:1330px!important;height:520px!important;max-height:none!important;grid-template-columns:repeat(9,140px)!important;grid-auto-rows:150px!important;gap:12px 8px!important;justify-content:start!important;padding:4px!important;box-sizing:border-box!important}
 body:not(.mobile-web) #modal#modal[data-view="skins"]:not([data-win-mode="detail"]) .skins-icons-pane .pi-options{height:520px!important}
 body:not(.mobile-web) #modal#modal[data-view="skins"]:not([data-win-mode="detail"]) .skins-icons-pane .pi-options-head{position:absolute!important;left:0!important;top:0!important;width:1330px!important;height:50px!important;margin:0!important}
 body:not(.mobile-web) #modal#modal[data-view="skins"]:not([data-win-mode="detail"]) .skins-icons-pane .pi-options-grid{position:absolute!important;left:0!important;top:60px!important;height:460px!important}
 body:not(.mobile-web) #modal#modal[data-view="skins"]:not([data-win-mode="detail"]) .skins-icons-pane .pi-cell{width:140px!important;height:150px!important;grid-template-rows:112px 28px!important;border-radius:10px!important}
 body:not(.mobile-web) #modal#modal[data-view="skins"]:not([data-win-mode="detail"]) .skins-icons-pane .pi-cell img{width:104px!important;height:104px!important}
 body:not(.mobile-web) #modal#modal[data-view="skins"]:not([data-win-mode="detail"]) .skins-icons-pane .pi-cell small{font-size:13px!important}
 body:not(.mobile-web) #modal#modal[data-view="skins"]:not([data-win-mode="detail"]) .skins-icons-pane .pi-options-head strong{font-size:22px!important}
 body:not(.mobile-web) #modal#modal[data-view="skins"]:not([data-win-mode="detail"]) .skins-icons-pane .pi-options-head small{font-size:14px!important}
 body:not(.mobile-web) #modal#modal[data-view="skins"]:not([data-win-mode="detail"]) .skins-icons-pane .pi-credits{position:absolute!important;left:62px!important;top:1028px!important;width:1330px!important;height:30px!important;font-size:13px!important;line-height:30px!important;text-align:center!important;pointer-events:none!important}
 body:not(.mobile-web) #modal#modal[data-view="skins"]:not([data-win-mode="detail"]) .skins-icons-pane .pi-empty{position:absolute!important;left:0!important;top:40px!important;width:1330px!important}
}
