/* Personal storage keeps its controls local so the normal inventory stays intact. */
#player-storage[hidden]{display:none!important}
#player-storage{position:fixed;z-index:90;inset:50% auto auto 50%;transform:translate(-50%,-50%);width:min(900px,calc(100vw - 32px));max-height:min(760px,calc(100dvh - 40px));display:flex;flex-direction:column;color:#e8e7da;background:#172125;border:1px solid #64726b;border-radius:10px;box-shadow:0 20px 80px #000a;font:13px/1.45 system-ui,sans-serif;overflow:hidden;pointer-events:auto}
#player-storage [hidden]{display:none!important}
#player-storage .ps-approach{margin:8px 20px 0;align-self:flex-start}
#player-storage *{box-sizing:border-box}
#player-storage button,#player-storage input,#player-storage select{font:inherit;color:inherit;border:1px solid #53675f;border-radius:5px;background:#26342e;min-height:38px;touch-action:manipulation}
#player-storage button{cursor:pointer;padding:7px 12px}
#player-storage button:disabled{cursor:default;opacity:.48}
#player-storage :is(button,input,select):focus-visible{outline:2px solid #dbcb99;outline-offset:2px}
#player-storage input,#player-storage select{padding:7px 9px;min-width:0}
#player-storage h2,#player-storage h3,#player-storage p{margin:0}
#player-storage .ps-header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:17px 20px 12px;background:#21302d}
#player-storage .ps-eyebrow{font-size:10px;letter-spacing:1.8px;color:#c2b48b;margin-bottom:3px}
#player-storage h2{font-size:23px;font-weight:600;line-height:1.2}
#player-storage #ps-location{color:#b5c1b9;font-size:12px;margin-top:5px}
#player-storage #ps-close{min-width:40px;font-size:17px;background:transparent}
#player-storage .ps-access{padding:9px 20px;border-block:1px solid #41534a;font-size:12px;background:#283d32;color:#c1dfcc}
#player-storage .ps-access[data-available=false]{background:#3a3026;color:#ecd1ab}
#player-storage .ps-toolbar{display:flex;justify-content:space-between;gap:12px;padding:12px 20px 0}
#player-storage .ps-sides{display:flex;gap:5px}
#player-storage .ps-sides [aria-pressed=true]{background:#c8bb93;color:#1d2923;border-color:#dbcfaa;font-weight:600}
#player-storage .ps-sides span{font-variant-numeric:tabular-nums;margin-left:5px}
#player-storage .ps-filters{display:grid;grid-template-columns:1fr 215px;gap:12px;padding:11px 20px 14px}
#player-storage label{display:grid;gap:4px;color:#bcc7bf;font-size:11px}
#player-storage .ps-content{min-height:180px;display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);overflow:hidden;border-top:1px solid #41534a;flex:1}
#player-storage .ps-inventory{min-height:0;overflow-y:auto;padding:14px 15px 14px 20px;scrollbar-width:thin;max-height:405px}
#player-storage h3{font-size:14px;font-weight:600;margin-bottom:10px}
#player-storage .ps-list{display:grid;gap:6px}
#player-storage .ps-row{display:grid;grid-template-columns:1fr auto;gap:3px 8px;text-align:left;padding:10px 12px;background:#202e2b;border-color:#3f5449;min-height:60px;width:100%}
#player-storage .ps-row[aria-pressed=true]{border-color:#d6c594;box-shadow:inset 3px 0 #d6c594;background:#354038}
#player-storage .ps-row-name{font-weight:600;overflow-wrap:anywhere}
#player-storage .ps-row-meta{font-size:11px;color:#b3c3b7;grid-column:1;overflow-wrap:anywhere}
#player-storage .ps-row-locked{font-size:10px;color:#d6bb96;grid-column:2;grid-row:1/3;align-self:center}
#player-storage .ps-empty{color:#b0beb6;border:1px dashed #4e6157;border-radius:5px;padding:20px 14px;margin-top:10px}
#player-storage .ps-detail{background:#111b1f;border-left:1px solid #41534a;padding:14px 20px;overflow:auto;max-height:405px;scrollbar-width:thin}
#player-storage #ps-selection{overflow-wrap:anywhere;font-size:16px}
#player-storage #ps-help{font-size:12px;color:#afbeb4}
#player-storage dl{display:grid;grid-template-columns:minmax(95px,.8fr) minmax(0,1.2fr);gap:6px 12px;font-size:12px;margin:14px 0}
#player-storage dt{color:#9dab9f}
#player-storage dd{margin:0;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
#player-storage .ps-blocked{color:#e2bf8b;font-size:12px;margin:10px 0}
#player-storage .ps-quantity{display:flex;gap:5px;margin-top:4px}
#player-storage #ps-amount{width:100%;flex:1;font-variant-numeric:tabular-nums}
#player-storage .ps-primary{background:#c8bb93;color:#1d2923;border-color:#dbcfaa;width:100%;margin-top:10px;font-weight:600}
#player-storage .ps-footer{padding:10px 20px;background:#1d2b26;border-top:1px solid #41534a;color:#adbaaf;font-size:11px}
#player-storage #ps-status{color:#cbe6cd;font-size:12px;margin-bottom:5px;overflow-wrap:anywhere}
#player-storage #ps-status:empty{display:none}
#player-storage #ps-status[data-error=true]{color:#f3bd9d}
@media(max-width:640px){
 #player-storage{width:calc(100vw - 12px);max-height:calc(100dvh - 16px);border-radius:8px}
 #player-storage .ps-header{padding:12px 13px 10px}#player-storage h2{font-size:20px}
 #player-storage .ps-access{padding:8px 13px}#player-storage .ps-toolbar{padding:10px 13px 0;gap:5px}
 #player-storage .ps-filters{padding:9px 13px 10px;grid-template-columns:minmax(0,1fr) minmax(130px,.7fr);gap:7px}
 #player-storage .ps-content{grid-template-columns:1fr;overflow:auto;min-height:160px;display:flex;flex-direction:column}
 #player-storage .ps-inventory{max-height:230px;min-height:115px;flex-shrink:0;padding:10px 13px}
 #player-storage .ps-detail{border-left:0;border-top:1px solid #41534a;max-height:none;overflow:visible;padding:12px 13px;flex-shrink:0}
 #player-storage button,#player-storage input,#player-storage select{min-height:44px}#player-storage .ps-row{min-height:60px}
 #player-storage .ps-footer{padding:8px 13px}#player-storage dl{grid-template-columns:110px 1fr}
}
@media(max-height:500px) and (min-width:641px){#player-storage{max-height:calc(100dvh - 12px)}#player-storage .ps-header{padding:8px 16px}#player-storage .ps-header h2{font-size:18px}#player-storage .ps-filters{padding-block:7px}#player-storage .ps-footer{padding-block:6px}}

/* Same visual inventory language, with transfer controls outside the scroll area. */
#player-storage{width:min(1040px,calc(100vw - 28px));height:min(750px,calc(100dvh - 34px));max-height:calc(100dvh - 34px)}
#player-storage .ps-header{padding:12px 16px 10px;flex-shrink:0}#player-storage h2{font-size:21px}
#player-storage .ps-access{padding:7px 16px;flex-shrink:0}#player-storage .ps-toolbar{padding:9px 16px 0;flex-shrink:0}
#player-storage .ps-filters{grid-template-columns:minmax(0,1.5fr) minmax(100px,1fr) minmax(110px,1fr);padding:9px 16px 11px;gap:8px;flex-shrink:0}
#player-storage .ps-content{grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);min-height:0}
#player-storage .ps-inventory{display:flex;flex-direction:column;gap:8px;min-height:0;max-height:none;padding:11px;overflow:hidden}
#player-storage .ps-list-heading{display:flex;justify-content:space-between;align-items:center;gap:7px;flex-shrink:0}
#player-storage .ps-list-heading h3{margin:0;font-size:12px}#player-storage #ps-result-count{font-size:10px;color:#aabdb0;white-space:nowrap}
#player-storage .ps-list{flex:1;min-height:0;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));grid-auto-rows:103px;align-content:start;gap:5px;overflow:auto;scrollbar-width:thin;padding:1px}
#player-storage .ps-row{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:3px;height:103px;min-height:0;padding:5px;min-width:0;text-align:center}
#player-storage .ps-item-icon{display:flex;align-items:center;justify-content:center;width:100%;height:38px;flex-shrink:0;color:#bcc4a4;font-size:26px;line-height:38px}
#player-storage .ps-item-icon img{width:100%;max-width:60px;height:38px;object-fit:contain}
#player-storage .ps-row-name{font-size:10px;line-height:12px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;max-height:24px;overflow-wrap:normal;flex-shrink:0;width:100%}
#player-storage .ps-row-meta{font-size:9px;line-height:11px;max-height:22px;overflow:hidden;color:#b6c6b8}
#player-storage .ps-row-locked{position:absolute;right:3px;top:3px;font-size:8px;max-width:80%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:1px 3px;background:#1a211fe6;border-radius:2px}
#player-storage .ps-row[aria-pressed=true]{box-shadow:inset 0 -2px #d6c594}
#player-storage .ps-empty{margin:0;font-size:11px;padding:12px}
#player-storage .ps-pages{display:flex;align-items:center;justify-content:space-between;gap:6px;flex-shrink:0;border-top:1px solid #43584b;padding-top:7px;font-size:10px;color:#b6c7b9}
#player-storage .ps-pages button{font-size:10px;min-height:32px;padding:5px 9px}
#player-storage .ps-detail{padding:0;display:flex;flex-direction:column;min-height:0;max-height:none;overflow:hidden}
#player-storage .ps-detail-scroll{flex:1;min-height:0;padding:13px 15px;overflow:auto;scrollbar-width:thin}
#player-storage .ps-selected-icon{height:72px;display:flex;align-items:center;justify-content:center;margin-bottom:8px}
#player-storage .ps-selected-icon:empty{display:none}#player-storage .ps-selected-icon img{max-width:100%;width:125px;height:72px;object-fit:contain}
#player-storage #ps-transfer-controls{padding:10px 14px;border-top:1px solid #43584b;background:#21332c;flex-shrink:0}
#player-storage .ps-footer{padding:8px 15px;flex-shrink:0;font-size:10px}
@media(max-width:900px){#player-storage .ps-list{grid-template-columns:repeat(4,minmax(0,1fr))}#player-storage .ps-content{grid-template-columns:minmax(0,1.35fr) minmax(0,1fr)}}
@media(max-width:640px){
 #player-storage{height:calc(100dvh - 14px);max-height:calc(100dvh - 14px);width:calc(100vw - 10px)}
 #player-storage .ps-header{padding:9px 11px}#player-storage h2{font-size:19px}#player-storage #ps-location{font-size:10px;margin-top:3px}
 #player-storage .ps-access{padding:5px 10px;font-size:10px}#player-storage .ps-toolbar{padding:7px 10px 0}
 #player-storage .ps-filters{grid-template-columns:minmax(0,1.1fr) minmax(0,1fr) minmax(0,1fr);padding:6px 10px;gap:5px}
 #player-storage .ps-filters input,#player-storage .ps-filters select{font-size:10px;padding:5px;min-height:34px}#player-storage label{font-size:10px}
 #player-storage .ps-content{display:flex;flex-direction:column;overflow:hidden;min-height:0}
 #player-storage .ps-inventory{flex:0 1 240px;min-height:125px;padding:7px 9px;gap:5px}
 #player-storage .ps-list{grid-template-columns:repeat(4,minmax(0,1fr));grid-auto-rows:78px}
 #player-storage .ps-row{height:78px;min-height:0;padding:3px;gap:2px}.ps-item-icon{font-size:20px}
 #player-storage .ps-item-icon,#player-storage .ps-item-icon img{height:28px;line-height:28px}
 #player-storage .ps-row-name{font-size:9px;line-height:10px;max-height:20px}#player-storage .ps-row-meta{font-size:8px;line-height:10px;max-height:20px}
 #player-storage .ps-pages{padding-top:4px}#player-storage .ps-pages button{min-height:34px}
 #player-storage .ps-detail{flex:1;min-height:150px;padding:0;border-top:1px solid #41534a;overflow:hidden}
 #player-storage .ps-detail-scroll{padding:8px 11px}#player-storage .ps-selected-icon{float:right;width:65px;height:55px;margin:0 0 3px 7px}#player-storage .ps-selected-icon img{height:55px;width:65px}
 #player-storage dl{font-size:11px;margin:9px 0;gap:4px 9px}#player-storage #ps-selection{font-size:14px}#player-storage #ps-help{font-size:11px}
 #player-storage #ps-transfer-controls{padding:6px 10px}#player-storage .ps-quantity{margin:2px 0 0;display:inline-flex;width:58%;vertical-align:top}#player-storage .ps-quantity input{width:50px;min-width:30px}
 #player-storage .ps-primary{display:inline-block;width:39%;margin:2px 0 0 2%;vertical-align:top;min-height:44px}
 #player-storage .ps-footer{padding:6px 10px;font-size:9px}
}
