.inventory-category-tabs{grid-template-columns:repeat(6,minmax(0,1fr))!important}

/* Ball sheets have eight horizontal-direction frames. Crop exactly frame zero. */
.ball-sheet-frame{position:relative;display:block;overflow:hidden;image-rendering:pixelated}
.ball-sheet-frame>img{position:absolute;left:0;top:0;width:100%;height:auto;max-width:none;image-rendering:pixelated}
.helper-ball>.ball-sheet-frame{width:23px;height:23px;border:0;background-color:transparent;flex:0 0 23px}
.helper-ball>.ball-fallback{position:relative;display:block;width:23px;height:23px;overflow:hidden;flex:0 0 23px}
.helper-ball>.ball-fallback img{position:absolute;left:0;top:0;width:184px;height:23px;max-width:none;image-rendering:pixelated}
.inventory-poke-slot>.inventory-team-ball{position:absolute;left:3px;bottom:8px;width:22px;height:22px;border:0;border-radius:0;background:transparent;z-index:1}
.inventory-poke-slot>.ball-fallback.inventory-team-ball img{position:absolute;left:0;top:0;width:176px!important;height:22px!important}

.auto-helper-head{gap:7px}
.auto-helper-brand{flex:0 0 auto}
.auto-helper-compact{min-width:0;display:flex;align-items:center;gap:4px;margin-left:auto}
.auto-helper-compact>span{position:relative;display:grid;place-items:center;width:30px;height:30px;overflow:hidden;border:1px solid #344b54;border-radius:5px;background:#0b161c}
.auto-helper-compact>span>img{max-width:25px;max-height:25px;image-rendering:pixelated}
.auto-helper-compact>span>b{position:absolute;right:1px;top:0;min-width:10px;padding:1px 2px;border-radius:6px;background:#d92e3c;color:#fff;font:800 7px/1 system-ui;text-align:center}
.helper-compact-ball-host{display:block;width:27px;height:27px;overflow:hidden}
.helper-compact-ball-host>.ball-sheet-frame{width:27px;height:27px;border:0;background-color:transparent}
.helper-compact-ball-host>canvas{display:block;width:27px;height:27px;image-rendering:pixelated}
.auto-helper-compact .resource-empty{opacity:.45}

.market-ball-visual.ball-sheet-frame{width:42px;height:42px;flex:0 0 42px;background-color:transparent}
.npc-buy-categories{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;padding:7px 8px 0}
.npc-buy-categories button{min-height:30px;border:1px solid #3b5b62;border-radius:5px;background:#0d2027;color:#94b6ba;font-size:8px;font-weight:900;cursor:pointer}
.npc-buy-categories button.active{border-color:#d5b12c;background:#655316;color:#fff2a2;box-shadow:inset 0 0 12px #d5b12c33}
.market-outfit-visual{display:grid!important;place-items:center;overflow:hidden}
.market-outfit-visual>.legacy-sprite{width:46px;height:46px;border:0;background:transparent}

.inventory-house-grid{align-content:start}
.inventory-house-item{grid-template-columns:52px minmax(0,1fr) auto!important}
.inventory-house-item>button{grid-column:1/-1;min-height:29px;border:1px solid #4c9e86;border-radius:5px;background:#19614f;color:#fff;font-size:8px;font-weight:900;cursor:pointer}

#profession-workstation-system{z-index:2180}
.profession-workstation-window{width:min(920px,95vw);height:min(680px,90vh);display:flex;flex-direction:column;overflow:hidden}
.profession-workstation-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(330px,1fr));gap:10px;min-height:0;overflow:auto;padding:12px}
.profession-recipe{display:grid;grid-template-columns:58px minmax(0,1fr);gap:7px 10px;padding:11px;border:1px solid #356164;border-radius:10px;background:#0a2227;color:#d9e8e5}
.profession-recipe>.legacy-sprite{grid-row:1;width:56px;height:56px}
.profession-recipe>span{display:flex;flex-direction:column;gap:5px;min-width:0}
.profession-recipe>span>b{color:#f5e68d;font:700 16px/1.15 Georgia,serif}
.profession-recipe>span>small{color:#9dbab8;font-size:10px}
.profession-recipe-costs{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
.profession-recipe-costs>span{display:grid;grid-template-columns:42px minmax(0,1fr) auto;align-items:center;gap:6px;padding:6px;border:1px solid #365258;border-radius:7px;background:#07161b}
.profession-recipe-costs .legacy-sprite{width:38px;height:38px;border:0}
.profession-recipe-costs small{overflow:hidden;color:#a9bfbd;font-size:8px;text-overflow:ellipsis;white-space:nowrap}
.profession-recipe-costs b{color:#73dfbd;font-size:9px}.profession-recipe-costs .missing b{color:#f18080}
.profession-recipe>button{grid-column:1/-1;min-height:36px;border:1px solid #54af91;border-radius:6px;background:#1f725e;color:#fff;font-size:9px;font-weight:900;cursor:pointer}
.profession-recipe>button:disabled{border-color:#385154;background:#173337;color:#748887;cursor:not-allowed}

@media(max-width:760px){.inventory-category-tabs{grid-template-columns:repeat(3,1fr)!important}.auto-helper-compact{gap:2px}.auto-helper-compact>span{width:26px;height:26px}.profession-workstation-list{grid-template-columns:1fr}.profession-recipe-costs{grid-template-columns:1fr}}
