/* Inventory presentation only. Shares the existing brand layer and actions. */
@layer pokeidle-brand {
html:root body .inventory-panel.inventory-panel.client-open[data-menu-view]:not(.inventory-minimized){
 display:flex!important;flex-direction:column!important;box-sizing:border-box!important;
 width:min(920px,calc(100vw - 32px))!important;max-width:calc(100vw - 32px)!important;
 height:min(780px,calc(100dvh - 40px))!important;max-height:calc(100dvh - 40px)!important;
 min-width:0!important;min-height:0!important;overflow:hidden!important;
 border:1px solid #327e9c!important;border-radius:16px!important;
 background:linear-gradient(150deg,#0d2a3d,#061827 70%)!important;
 box-shadow:0 24px 70px #0009,inset 0 1px #98e7ff24!important;color:#e1edf6!important;
 container-type:inline-size!important;container-name:inventory-layout!important;
}
html:root:not(.ui-mobile-windows) body .inventory-panel.inventory-panel.client-open[data-menu-view]:not(.inventory-minimized){position:fixed!important;left:50%!important;top:50%!important;right:auto!important;bottom:auto!important;transform:translate(-50%,-50%)!important;zoom:1!important}
html:root body .inventory-panel.inventory-panel[data-menu-view]>.inventory-title{
 flex:0 0 auto!important;display:grid!important;grid-template-columns:38px minmax(0,1fr) 40px 40px!important;
 gap:10px!important;align-items:center!important;padding:16px 20px!important;min-height:76px!important;
 border-bottom:1px solid #286079!important;background:linear-gradient(110deg,#133c51,#0b2234)!important;
 border-radius:0!important;position:relative!important;top:auto!important;
}
html:root body .inventory-panel.inventory-panel[data-menu-view].inventory-minimized>.inventory-title{min-height:62px!important;height:62px!important;box-sizing:border-box!important;padding:10px!important;grid-template-columns:28px minmax(0,1fr) 40px 40px!important;gap:6px!important}
html:root body .inventory-panel.inventory-panel[data-menu-view].inventory-minimized>.inventory-title strong{font-size:14px!important}
html:root body .inventory-panel.inventory-panel[data-menu-view].inventory-minimized>.inventory-title small{display:none!important}
html:root body .inventory-panel.inventory-panel[data-menu-view]>.inventory-title strong{font-size:18px!important;line-height:1.3!important;letter-spacing:1px!important;color:#f1f7fb!important}
html:root body .inventory-panel.inventory-panel[data-menu-view]>.inventory-title small{display:block!important;font-size:10px!important;line-height:1.5!important;letter-spacing:1.2px!important;color:#91b8ca!important;margin-top:4px!important}
html:root body .inventory-panel.inventory-panel[data-menu-view]>.inventory-title button{width:40px!important;height:40px!important;min-width:40px!important;border:1px solid #37627a!important;background:#091e2d!important;color:#cfeaff!important;border-radius:9px!important;font-size:22px!important;line-height:1!important;cursor:pointer}
html:root body .inventory-panel.inventory-panel[data-menu-view]>[data-inventory-category-panel]:not(.hidden){flex:1 1 auto!important;min-height:0!important;overflow-y:auto!important;overflow-x:hidden!important;padding:18px!important;scrollbar-gutter:stable;overscroll-behavior:contain}
html:root body .inventory-panel.inventory-panel[data-menu-view]>.inventory-category-tabs{flex:0 0 auto!important;overflow-x:auto!important;gap:8px!important;padding:10px 16px!important}
html:root body .inventory-panel.inventory-panel[data-menu-view="pokemon"] #inventory-category-tabs,html:root body .inventory-panel.inventory-panel[data-menu-view="pokemon"] #ball-total{display:none!important}
html:root body .inventory-panel.inventory-panel[data-menu-view="bag"]>.inventory-title{grid-template-columns:38px minmax(0,1fr) auto 40px 40px!important}
html:root body .inventory-panel.inventory-panel[data-menu-view] .inventory-team-section{margin:0!important;padding:14px!important;border:1px solid #26485d!important;border-radius:12px!important;background:#071d2d!important}
html:root body .inventory-panel.inventory-panel[data-menu-view] .inventory-team-section>header{display:flex!important;flex-wrap:wrap!important;gap:6px 14px!important;align-items:center!important;margin:0 0 12px!important;padding:0!important;position:static!important;background:none!important;border:0!important;font-size:12px!important;letter-spacing:.7px!important;color:#bde7f6!important}
html:root body .inventory-panel.inventory-panel[data-menu-view] .inventory-team-section>header small{font-size:9px!important;letter-spacing:.2px!important;color:#8da9ba!important}
html:root body .inventory-panel.inventory-panel[data-menu-view] #inventory-team-slots{display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:8px!important}
html:root body .inventory-panel.inventory-panel[data-menu-view] .mk105-inventory-pokemon{display:flex!important;flex-direction:column!important;gap:5px!important;min-width:0!important}
html:root body .inventory-panel.inventory-panel[data-menu-view] .inventory-poke-slot{position:relative!important;width:100%!important;height:106px!important;min-height:106px!important;border:1px solid #2b536a!important;border-radius:9px!important;background:linear-gradient(#12334a,#0a2031)!important;overflow:hidden!important;padding:0!important}
html:root body .inventory-panel.inventory-panel[data-menu-view] .inventory-poke-slot.active{border-color:#e4c461!important;box-shadow:inset 0 0 18px #e4c46116!important}
html:root body .inventory-panel.inventory-panel[data-menu-view] .inventory-poke-slot canvas{position:absolute!important;top:7px!important;left:calc(50% - 24px)!important;right:auto!important;width:48px!important;height:48px!important;image-rendering:pixelated!important}
html:root body .inventory-panel.inventory-panel[data-menu-view] .inventory-team-ball{position:absolute!important;left:5px!important;top:5px!important;bottom:auto!important;width:17px!important;height:17px!important}
html:root body .inventory-panel.inventory-panel[data-menu-view] .inventory-poke-slot b{position:absolute!important;left:5px!important;right:5px!important;bottom:7px!important;white-space:normal!important;text-align:center!important;font-size:10px!important;line-height:1.2!important;color:#e3eef8!important}
html:root body .inventory-panel.inventory-panel[data-menu-view] .mk105-inventory-sale{width:100%!important;min-height:32px!important;font-size:9px!important;line-height:1.3!important;white-space:normal!important;border:1px solid #29495e!important;border-radius:6px!important;background:#102638!important;color:#afc9d9!important;padding:5px!important}
html:root body .inventory-panel.inventory-panel[data-menu-view] #inventory-breed-open{width:auto!important;max-width:100%!important;margin:0 0 12px!important;padding:8px 12px!important;min-height:40px!important;border:1px solid #547395!important;border-radius:8px!important;background:#172a44!important}
html:root body .inventory-panel.inventory-panel[data-menu-view] #inventory-pokemon-storage{margin:22px 0 0!important;padding:0!important;border:0!important}
html:root body .inventory-panel.inventory-panel[data-menu-view] #inventory-pokemon-storage h3{font-size:15px!important;line-height:1.4!important;letter-spacing:.4px!important;color:#e3f2fa!important;margin:0 0 12px!important}
html:root body .inventory-panel.inventory-panel[data-menu-view] #inventory-pokemon-storage .pio-storage-filters{display:grid!important;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr) minmax(0,1fr)!important;gap:8px!important;margin:0!important}
html:root body .inventory-panel.inventory-panel[data-menu-view] #inventory-pokemon-storage :is(input,select){width:100%!important;min-width:0!important;min-height:44px!important;height:44px!important;padding:0 12px!important;border:1px solid #34637d!important;border-radius:8px!important;background:#061d2c!important;color:#d9eaf4!important;font-size:13px!important;box-shadow:none!important}
html:root body .inventory-panel.inventory-panel[data-menu-view] #inventory-pokemon-storage-summary{display:block!important;margin:10px 0 14px!important;padding:0!important;font-size:12px!important;line-height:1.5!important;color:#8dabbf!important}
html:root body .inventory-panel.inventory-panel[data-menu-view] #inventory-pokemon-storage-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important;align-items:stretch!important}
html:root body .inventory-panel.inventory-panel[data-menu-view] #inventory-pokemon-storage-grid .terminal-poke-card{
 position:relative!important;display:grid!important;grid-template-columns:76px minmax(0,1fr) 38px!important;
 align-content:start!important;align-items:start!important;gap:12px!important;padding:14px!important;
 min-width:0!important;min-height:0!important;max-height:none!important;height:auto!important;
 border:1px solid #2b536b!important;border-radius:12px!important;background:linear-gradient(125deg,#103149,#0b2335)!important;
 overflow:hidden!important;box-shadow:inset 0 1px #9ce2ff0a!important;
}
html:root body .inventory-panel.inventory-panel[data-menu-view] #inventory-pokemon-storage-grid .terminal-poke-card.locked{border-color:#9c8548!important}
html:root body .inventory-panel.inventory-panel[data-menu-view] #inventory-pokemon-storage-grid .terminal-poke-art{display:grid!important;place-items:center!important;width:76px!important;height:84px!important;border:1px solid #32566a!important;border-radius:10px!important;background:radial-gradient(ellipse at center,#285b6f,#081f30 75%)!important;grid-row:1!important;grid-column:1!important}
html:root body .inventory-panel.inventory-panel[data-menu-view] #inventory-pokemon-storage-grid canvas{width:68px!important;height:68px!important;image-rendering:pixelated!important;max-width:100%!important}
html:root body .inventory-panel.inventory-panel[data-menu-view] #inventory-pokemon-storage-grid .terminal-poke-content{grid-column:2!important;grid-row:1!important;min-width:0!important;padding:0!important}
html:root body .inventory-panel.inventory-panel[data-menu-view] #inventory-pokemon-storage-grid .terminal-poke-name-row{display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:7px!important;position:static!important}
html:root body .inventory-panel.inventory-panel[data-menu-view] #inventory-pokemon-storage-grid .terminal-poke-title{display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:6px!important;min-width:0!important;width:100%!important}
html:root body .inventory-panel.inventory-panel[data-menu-view] #inventory-pokemon-storage-grid .terminal-poke-title strong{display:block!important;white-space:normal!important;overflow-wrap:anywhere!important;text-overflow:clip!important;font-size:14px!important;line-height:1.3!important;color:#eff8ff!important;max-width:100%!important}
html:root body .inventory-panel.inventory-panel[data-menu-view] #inventory-pokemon-storage-grid .terminal-poke-rarity{display:inline-block!important;position:static!important;align-self:flex-start!important;padding:3px 7px!important;border:1px solid #487891!important;border-radius:5px!important;background:#20455b!important;color:#addcef!important;font-size:9px!important;line-height:1.2!important;letter-spacing:.7px!important;font-style:normal!important;white-space:normal!important}
html:root body .inventory-panel.inventory-panel[data-menu-view] #inventory-pokemon-storage-grid .rarity-ancient{color:#f3d992!important;background:#443921!important;border-color:#8c7947!important}
html:root body .inventory-panel.inventory-panel[data-menu-view] #inventory-pokemon-storage-grid .rarity-shiny{color:#efbbff!important;background:#352544!important;border-color:#795086!important}
html:root body .inventory-panel.inventory-panel[data-menu-view] #inventory-pokemon-storage-grid .terminal-poke-quality{display:block!important;position:static!important;font-size:10px!important;line-height:1.4!important;white-space:normal!important;color:#b8d0dc!important}
html:root body .inventory-panel.inventory-panel[data-menu-view] #inventory-pokemon-storage-grid .terminal-poke-meta{font-size:11px!important;line-height:1.5!important;color:#9ebccd!important;white-space:normal!important;margin:8px 0!important}
html:root body .inventory-panel.inventory-panel[data-menu-view] #inventory-pokemon-storage-grid .terminal-poke-stats{display:flex!important;flex-wrap:wrap!important;gap:8px!important;align-items:center!important}
html:root body .inventory-panel.inventory-panel[data-menu-view] #inventory-pokemon-storage-grid .terminal-poke-power{display:flex!important;gap:7px!important;align-items:baseline!important}
html:root body .inventory-panel.inventory-panel[data-menu-view] #inventory-pokemon-storage-grid .terminal-poke-power small{font-size:9px!important;letter-spacing:.5px!important;color:#8aabbd!important}
html:root body .inventory-panel.inventory-panel[data-menu-view] #inventory-pokemon-storage-grid .terminal-poke-power b{font-size:18px!important;line-height:1.2!important;color:#f7d77b!important}
html:root body .inventory-panel.inventory-panel[data-menu-view] #inventory-pokemon-storage-grid .terminal-poke-lock{grid-column:3!important;grid-row:1!important;position:static!important;width:38px!important;min-width:38px!important;height:40px!important;min-height:40px!important;border-radius:8px!important;background:#0c2030!important;border:1px solid #385b70!important;font-size:16px!important}
html:root body .inventory-panel.inventory-panel[data-menu-view] #inventory-pokemon-storage-grid .terminal-poke-actions{grid-column:1/-1!important;display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important;margin:0!important;padding-top:12px!important;border-top:1px solid #28495b!important;width:100%!important}
html:root body .inventory-panel.inventory-panel[data-menu-view] #inventory-pokemon-storage-grid .terminal-poke-actions button{position:static!important;inset:auto!important;grid-column:auto!important;transform:none!important;float:none!important;width:100%!important;min-width:0!important;min-height:40px!important;height:auto!important;padding:8px!important;font-size:10px!important;font-weight:700!important;line-height:1.4!important;white-space:normal!important;overflow-wrap:anywhere!important;border:1px solid #376b89!important;border-radius:7px!important;background:#12394f!important;color:#d8f3ff!important}
html:root body .inventory-panel.inventory-panel[data-menu-view] #inventory-pokemon-storage-grid .terminal-poke-actions .terminal-poke-market{border-color:#73633c!important;background:#332d20!important;color:#f4d992!important}
html:root body .inventory-panel.inventory-panel[data-menu-view] #inventory-pokemon-storage-grid .pokemon-market-reason{grid-column:1/-1!important;font-size:10px!important;line-height:1.4!important;color:#9db0bd!important}
html:root body .inventory-panel.inventory-panel[data-menu-view] button:disabled{opacity:.45!important;cursor:not-allowed!important}
html:root body .inventory-panel.inventory-panel[data-menu-view] :is(button,input,select):focus-visible{outline:2px solid #72d9f5!important;outline-offset:-2px!important}
html:root body .inventory-panel.inventory-panel[data-menu-view] #inventory-pokemon-storage-grid .terminal-cp-pager{grid-column:1/-1!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;padding:16px 0 4px!important;color:#aecbdd!important;font-size:13px!important}
html:root body .inventory-panel.inventory-panel[data-menu-view] #inventory-pokemon-storage-grid .terminal-cp-pager button{min-height:42px!important;padding:8px 16px!important;border:1px solid #356683!important;border-radius:8px!important;background:#112e43!important;color:#dcf2ff!important;font-size:11px!important}
@container inventory-layout (max-width:640px){
 html:root body .inventory-panel.inventory-panel[data-menu-view] #inventory-team-slots{grid-template-columns:repeat(3,minmax(0,1fr))!important}
 html:root body .inventory-panel.inventory-panel[data-menu-view] #inventory-pokemon-storage-grid{grid-template-columns:minmax(0,1fr)!important}
 html:root body .inventory-panel.inventory-panel[data-menu-view] #inventory-pokemon-storage .pio-storage-filters{grid-template-columns:1fr 1fr!important}
 html:root body .inventory-panel.inventory-panel[data-menu-view] #inventory-pokemon-storage-search{grid-column:1/-1!important}
}
@media(max-width:480px){
 html:root body .inventory-panel.inventory-panel[data-menu-view]>.inventory-title{padding:12px!important;gap:8px!important;min-height:68px!important;grid-template-columns:28px minmax(0,1fr) 40px 40px!important}
 html:root body .inventory-panel.inventory-panel[data-menu-view]>.inventory-title strong{font-size:15px!important}
 html:root body .inventory-panel.inventory-panel[data-menu-view]>.inventory-title small{font-size:8px!important;letter-spacing:.4px!important}
 html:root body .inventory-panel.inventory-panel[data-menu-view]>[data-inventory-category-panel]:not(.hidden){padding:10px!important}
 html:root body .inventory-panel.inventory-panel[data-menu-view] #inventory-pokemon-storage-grid .terminal-poke-card{grid-template-columns:60px minmax(0,1fr) 38px!important;padding:12px!important;gap:10px!important}
 html:root body .inventory-panel.inventory-panel[data-menu-view] #inventory-pokemon-storage-grid .terminal-poke-art{width:60px!important;height:76px!important}
 html:root body .inventory-panel.inventory-panel[data-menu-view] #inventory-pokemon-storage-grid canvas{width:56px!important;height:56px!important}
 html:root body .inventory-panel.inventory-panel[data-menu-view] #inventory-pokemon-storage :is(input,select){font-size:16px!important}
}
}
