/* One inventory board with details for the selected item. */
#game-shell .bag-summary{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 14px}
#game-shell .bag-summary span{padding:7px 10px;border:1px solid #6e805c;border-radius:6px;background:#243629;color:#e7ddbb;font-size:12px;font-variant-numeric:tabular-nums}
#game-shell .bag-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(230px,.8fr);gap:14px;align-items:stretch}
#game-shell .bag-contents,#game-shell .bag-selected{min-width:0;padding:12px;border:1px solid #526848;border-radius:8px;background:#12261f}
#game-shell .bag-layout h3{display:flex;justify-content:space-between;gap:10px;margin:0 0 10px;color:#e5d8ae;font-size:15px}
#game-shell .bag-layout h3 small{color:#a7bea7;font-size:12px;font-weight:400}
#game-shell .bag-slots{display:grid;grid-template-columns:repeat(auto-fill,minmax(64px,1fr));align-content:start;gap:8px;height:clamp(240px,42vh,390px);overflow:auto;overscroll-behavior:contain;padding:3px;scrollbar-gutter:stable}
#game-shell .bag-slot{position:relative;display:grid;place-items:center;min-width:0;min-height:64px;aspect-ratio:1;padding:5px;border:2px solid #657154;border-radius:7px;background:linear-gradient(145deg,#344738,#1c2f25);cursor:pointer}
#game-shell .bag-slot:hover,#game-shell .bag-slot:focus-visible{border-color:#d9c589;background:#3b503b;outline:2px solid #d9c589;outline-offset:1px}
#game-shell .bag-slot[aria-pressed=true]{border-color:var(--rarity);background:#4b593c;box-shadow:inset 0 0 0 2px #e1d3a4,0 0 9px #d4bc7466}
#game-shell .bag-slot .item-image{display:block;width:100%;height:100%;max-width:54px;max-height:54px;object-fit:contain;image-rendering:pixelated}
#game-shell .bag-slot-count{position:absolute;right:2px;bottom:1px;padding:1px 3px;border-radius:3px;background:#091912e8;color:#f3e6bf;font-size:11px;font-weight:700;line-height:1.2}
#game-shell .bag-slot-lock{position:absolute;left:2px;top:1px;padding:1px 3px;border-radius:3px;background:#091912e8;font-size:12px;line-height:1.2}
#game-shell #drawer.field-bag-drawer .bag-slots{contain:paint}
#game-shell #drawer.field-bag-drawer .bag-slot .item-image{filter:none!important;animation:none!important}
#game-shell .bag-pages{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:7px;
  padding:3px 6px;border:1px solid #7b835e;border-radius:8px;background:#24382d;color:#e8d8aa;
  font-size:12px;font-variant-numeric:tabular-nums}
#game-shell .bag-pages[hidden]{display:none}
#game-shell .bag-pages button{min-width:44px;min-height:36px;padding:1px 6px;border:1px solid #a49365;
  border-radius:6px;background:#3c4d37;color:#f4e2b4;font:700 20px/1 Tahoma,sans-serif;cursor:pointer}
#game-shell .bag-pages button:disabled{opacity:.48;cursor:default}
#game-shell .bag-pages button:focus-visible{outline:2px solid #f3d58c;outline-offset:2px}
@media(max-height:430px) and (orientation:landscape){
  #game-shell #drawer.field-bag-drawer #drawer-content .bag-categories button{min-height:30px;padding-block:3px}
  #game-shell #drawer.field-bag-drawer #drawer-content .bag-search input{min-height:32px;padding-block:4px}
  #game-shell #drawer.field-bag-drawer #drawer-content .bag-pages{margin-bottom:5px;padding-block:2px}
  #game-shell #drawer.field-bag-drawer #drawer-content .bag-pages button{min-height:28px}
  #game-shell #drawer.field-bag-drawer #drawer-content .bag-contents .bag-slots{
    grid-template-columns:repeat(auto-fill,44px);gap:5px;min-height:58px;max-height:111px}
  #game-shell #drawer.field-bag-drawer #drawer-content .bag-contents .bag-slot{width:44px;height:44px;min-height:44px}
  #game-shell #drawer.field-bag-drawer #drawer-content .bag-contents .bag-slot .item-image{max-width:36px;max-height:36px}
}
#game-shell .bag-selected-body{height:clamp(240px,42vh,390px);overflow:auto;overscroll-behavior:contain}
#game-shell .bag-selected-body .inventory-item{margin:0;min-height:0;padding:12px}
#game-shell .bag-selected-body .inventory-item .item-image{width:56px;height:56px;object-fit:contain}
#game-shell .bag-selected-body .inventory-item button{min-height:36px}
#game-shell .bag-selected-body .inventory-item button:not(.inventory-lock-button){display:inline-flex;align-items:center;justify-content:center;min-height:40px;margin:8px 6px 0 0;padding:8px 13px;border:1px solid #8fa478;border-radius:6px;background:#304633;color:#f0eed2;font-size:12px;font-weight:700;line-height:1.3;box-shadow:0 2px 0 #102318;cursor:pointer}
#game-shell .bag-selected-body .inventory-item button:not(.inventory-lock-button):hover{background:#425d42;border-color:#c1d397}
#game-shell .bag-selected-body .inventory-item button:is([data-drop-item],[data-drop-type]){border-color:#b67d68;background:#51362d;color:#ffe0ce;box-shadow:0 2px 0 #261711}
#game-shell .bag-selected-body .inventory-item button:is([data-drop-item],[data-drop-type]):hover{border-color:#e8a58b;background:#694335}
#game-shell .bag-selected-body .inventory-slot-actions{display:flex;justify-content:flex-end;align-items:center;gap:8px;margin:8px 0 12px}
#game-shell .bag-selected-body .inventory-slot-actions .inventory-lock-button{margin:0}
#game-shell .bag-selected-body .inventory-item button.inventory-slot-delete-button{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:8px 14px;border:2px solid #d88e87;border-radius:7px;background:#633b3b;color:#ffe3df;font-size:13px;font-weight:700;line-height:1.25;box-shadow:0 3px 0 #2a1717;cursor:pointer;transition:background .15s,border-color .15s,transform .15s}
#game-shell .bag-selected-body .inventory-item button.inventory-slot-delete-button:hover{background:#794747;border-color:#f0aaa2;transform:translateY(-1px)}
#game-shell .bag-selected-body .inventory-item button.inventory-slot-delete-button:focus-visible{outline:3px solid #f5d98e;outline-offset:3px}
#game-shell .bag-selected-body .inventory-item button:disabled{opacity:.45;cursor:not-allowed;box-shadow:none}
#game-shell .bag-selected-body .inventory-item button:focus-visible{outline:3px solid #f5d98e;outline-offset:3px}
#game-shell .bag-selected-body .inventory-lock-button{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:8px 14px;margin:8px 0 12px;border:2px solid #d5b56e;border-radius:7px;background:#504321;color:#fff1c7;font-size:13px;font-weight:700;line-height:1.25;box-shadow:0 3px 0 #211a10,0 0 0 2px #d5b56e24;cursor:pointer;transition:background .15s,border-color .15s,transform .15s}
#game-shell .bag-selected-body .inventory-lock-button:hover{background:#69572a;border-color:#f3d18a;transform:translateY(-1px)}
#game-shell .bag-selected-body .inventory-lock-button[aria-pressed=true]{border-color:#9fc9a4;background:#294b38;color:#e8ffe5;box-shadow:0 3px 0 #11241a,0 0 0 2px #9fc9a424}
#game-shell .bag-selected-body .inventory-lock-button[aria-pressed=true]:hover{background:#356348;border-color:#c2edbd}
#game-shell .bag-selected-body .inventory-lock-button:focus-visible{outline:3px solid #f5d98e;outline-offset:3px}
#game-shell .bag-select-hint{display:grid;place-items:center;min-height:180px;padding:20px;text-align:center}
#game-shell .bag-gear,#game-shell .bag-more{margin-top:10px;border:1px solid #526848;border-radius:7px;background:#1b3026}
#game-shell .bag-gear>summary,#game-shell .bag-more>summary{padding:12px 14px;cursor:pointer;color:#e5d8ae;font-size:13px}
#game-shell .bag-gear[open],#game-shell .bag-more[open]{padding:0 14px 14px}
#game-shell .bag-gear .equipment-preview{margin-top:10px}
@media(min-width:761px){
  #game-shell #drawer:has(.bag-layout){width:min(1000px,calc(100% - 48px))}
}
@media(min-width:761px) and (pointer:coarse){
  #game-shell #drawer:has(.bag-layout){width:min(920px,calc(100% - 32px))}
}
@media(max-width:760px){
  #game-shell .bag-layout{grid-template-columns:1fr}
  #game-shell .bag-slots{height:240px;grid-template-columns:repeat(auto-fill,minmax(58px,1fr))}
  #game-shell .bag-selected-body{height:auto;max-height:360px}
}
