html[data-client=mobile] .party-player-invite{width:auto!important;min-width:64px;min-height:36px;padding:4px 9px!important;font-size:11px;transform:none!important}
html[data-client=mobile] #storage-window{width:min(440px,94vw)!important;max-width:94vw!important;height:min(520px,84dvh)!important;max-height:84dvh!important;top:50%!important;left:50%!important;transform:translate(-50%,-50%)!important;z-index:9990!important;overflow:hidden!important;padding:12px!important;border:1px solid #a58b59;border-radius:12px;background:linear-gradient(145deg,#243141,#141e2b)!important;box-shadow:0 12px 40px #0009}
html[data-client=mobile] #storage-window[style*="display: block"]{display:flex!important;flex-direction:column;gap:10px}
html[data-client=mobile] #storage-window .window-header{display:flex;align-items:center;flex:none;margin:0!important;padding:0 0 8px!important;border-bottom:1px solid #a58b5944}
html[data-client=mobile] #storage-window .close-btn{position:static!important;min-width:32px;min-height:32px;width:32px;height:32px;line-height:1;background:#29394a;border:1px solid #7b725c;border-radius:7px;color:#ead6aa;padding:0!important;float:none}
html[data-client=mobile] #storage-window .storage-tabs{display:flex;gap:6px;flex:none}
html[data-client=mobile] #storage-window .storage-tabs button{flex:1;min-height:36px;border:1px solid #526175;border-radius:7px;background:#182331;color:#c1ccd9;font-weight:bold}
html[data-client=mobile] #storage-window .storage-tabs button[aria-pressed=true]{background:#dac08b;color:#202936;border-color:#e6c989}
html[data-client=mobile] #storage-window .storage-mobile-columns{display:block;flex:1;min-height:0;overflow:hidden;height:auto!important}
html[data-client=mobile] #storage-window section{height:100%;overflow:auto;overscroll-behavior:contain;touch-action:pan-y;padding-right:2px;box-sizing:border-box}
html[data-client=mobile] #storage-window section[hidden]{display:none!important}
html[data-client=mobile] #storage-window .storage-main-grid,html[data-client=mobile] #storage-window .storage-mobile-bag{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:7px!important;align-content:start}
html[data-client=mobile] #storage-window .storage-item-cell{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:4px;min-width:0;height:83px;min-height:83px;padding:6px 3px!important;background:#111c29;border:1px solid #475669;border-radius:7px;color:#e0d9ca;touch-action:pan-y;overflow:hidden;-webkit-tap-highlight-color:transparent}
html[data-client=mobile] #storage-window .storage-item-cell:active{border-color:#d4b779;background:#26384b}
html[data-client=mobile] #storage-window .storage-item-art{display:flex;width:40px;height:40px;flex:none;align-items:center;justify-content:center;pointer-events:none;overflow:hidden}
html[data-client=mobile] #storage-window .storage-item-art>*{width:36px!important;height:36px!important;min-width:0!important;max-width:36px!important;max-height:36px!important;object-fit:contain}
html[data-client=mobile] #storage-window .storage-item-name{font:10px/1.3 sans-serif;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere;text-align:center;pointer-events:none}
html[data-client=mobile] #storage-window .storage-item-count{position:absolute;top:30px;right:5px;color:white;font:bold 10px sans-serif;text-shadow:0 1px 3px black;pointer-events:none}
html[data-client=mobile] #storage-window>p{flex:none;margin:0!important;min-height:16px;max-height:32px;overflow:hidden;font-size:11px!important;color:#b7c4d2!important}
html[data-client=mobile] #storage-window .storage-empty{grid-column:1/-1;padding:30px 8px;text-align:center;font-size:12px;color:#a4b2c3}

/* Mobile storage: PC-style slots, warehouse above and bag below. */
html[data-client=mobile] #storage-window{height:min(680px,88dvh)!important;width:min(420px,94vw)!important;max-height:88dvh!important;padding:10px!important;gap:8px!important}
html[data-client=mobile] #storage-window .storage-mobile-columns{display:grid!important;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:minmax(0,1fr) minmax(0,1fr);gap:10px}
html[data-client=mobile] #storage-window section{display:flex;flex-direction:column;min-height:0;height:auto;overflow:hidden;border:1px solid #4c5b6d;border-radius:7px;background:#131e2b;padding:8px}
html[data-client=mobile] #storage-window section h4{flex:none;margin:0 0 7px;padding:0 0 6px;border-bottom:1px solid #a58b5938;color:#ecd7a5;font-size:12px;line-height:18px}
html[data-client=mobile] #storage-window .storage-list-scroll{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;touch-action:pan-y;scrollbar-width:thin;scrollbar-color:#9a8357 #162332;padding-right:4px}
html[data-client=mobile] #storage-window .storage-list-scroll::-webkit-scrollbar{width:5px}
html[data-client=mobile] #storage-window .storage-list-scroll::-webkit-scrollbar-thumb{background:#9a8357;border-radius:5px}
html[data-client=mobile] #storage-window .storage-item-cell{height:54px!important;min-height:54px!important;padding:5px!important;justify-content:center;background:linear-gradient(#253140,#182330);border-color:#627083;border-radius:4px;aspect-ratio:auto}
html[data-client=mobile] #storage-window .storage-item-name{display:none}
html[data-client=mobile] #storage-window .storage-item-count{top:auto;bottom:3px;right:5px}
html[data-client=mobile] #storage-window .storage-empty{margin:0;padding:16px 5px}

html[data-client=mobile] #storage-window .storage-main-grid,html[data-client=mobile] #storage-window .storage-mobile-bag{gap:6px!important}
html[data-client=mobile] #storage-window .storage-item-cell{height:58px!important;min-height:58px!important;border-color:#526173;box-shadow:inset 0 1px #ffffff09;user-select:none;-webkit-touch-callout:none}
html[data-client=mobile] #storage-window section{padding:7px;background:#14202d}
html[data-client=mobile] #storage-window>p{max-height:36px;line-height:1.5}
html[data-client=mobile] .storage-detail-dialog{box-sizing:border-box;width:min(360px,92vw);max-height:80dvh;overflow-y:auto;border:1px solid #9b8457;border-radius:10px;background:#1b2735;color:#eee2c8;padding:14px}
html[data-client=mobile] .storage-detail-dialog::backdrop{background:#070d1680}
html[data-client=mobile] .storage-detail-dialog .mobile-info-copy{display:block!important;position:static!important;max-width:100%!important;width:auto!important;overflow-wrap:anywhere}
