/* v0.10.7.66 — equipment and chest are distinct views, using the game's real sprites. */
#hudInventory{display:none!important}
#shopModal.tcq-wood-wardrobe{--slot:52px;--slot-gap:5px;--stage-height:354px;}
#shopModal.tcq-wood-wardrobe .shop-primary-nav{display:flex!important;gap:5px!important}
#shopModal.tcq-wood-wardrobe .shop-primary-nav button{flex:1;min-width:0;white-space:normal;line-height:1.2;font-size:12px!important}
#shopModal.tcq-wood-wardrobe .shop-primary-nav [hidden]{display:none!important}
#shopModal.tcq-wood-wardrobe .shop-content-layout{grid-template-columns:minmax(0,3fr) minmax(300px,2fr)!important;grid-template-rows:minmax(0,1fr)!important}
#shopModal.tcq-wood-wardrobe .shop-browser{grid-column:1;grid-row:1}
#shopModal.tcq-wood-wardrobe .shop-detail{grid-column:2;grid-row:1;display:flex!important;overflow:auto!important}
#shopModal.tcq-wood-wardrobe .shop-detail-preview{display:none!important}
#shopModal.tcq-wood-wardrobe .shop-grid{grid-template-columns:repeat(auto-fill,minmax(64px,1fr))!important;grid-auto-rows:80px!important;gap:4px!important}
#shopModal.tcq-wood-wardrobe .shop-card{height:80px!important;padding:3px!important}
#shopModal.tcq-wood-wardrobe .shop-thumb{height:48px!important;flex-basis:48px!important}
#shopModal.tcq-wood-wardrobe .shop-card-state{display:none!important}
#shopModal.tcq-wood-wardrobe .fashion-item-copy strong{font-size:9px!important}
#shopModal.tcq-wood-wardrobe .shop-detail-copy{flex:1 1 auto!important;overflow:auto!important;min-height:100px!important}
#shopModal.tcq-wood-wardrobe .tcq-chest-selected-icon{display:block;width:76px;height:76px;margin:8px auto;image-rendering:pixelated}
#shopModal.tcq-wood-wardrobe .wardrobe-equipped-list,#shopModal.tcq-wood-wardrobe .wardrobe-equipped-head,#shopModal.tcq-wood-wardrobe .wardrobe-preview-state{display:none!important}
#shopModal.tcq-wood-wardrobe .wardrobe-selected-line b{font-size:14px!important;line-height:1.4}
#shopModal.tcq-wood-wardrobe .wardrobe-selected-line small{font-size:11px!important;line-height:1.5}
#shopModal.tcq-wood-wardrobe .tcq-wood-item-desc,#shopModal.tcq-wood-wardrobe .tcq-item-combat-stats{font-size:12px!important;line-height:1.5}
#shopModal.tcq-equipment-view .shop-content-layout{display:block!important;overflow:auto!important}
#shopModal.tcq-equipment-view .shop-browser{display:none!important}
#shopModal.tcq-equipment-view .shop-detail{width:min(100%,560px)!important;height:auto!important;min-height:100%!important;margin:auto!important;max-height:none!important}
#shopModal.tcq-equipment-view .shop-detail-preview{display:block!important;flex:0 0 auto!important;height:auto!important;max-height:none!important;padding:6px!important;background:#43230f!important}
#shopModal.tcq-equipment-view .tcq-chest-selected-icon{display:none}
#shopModal.tcq-equipment-view .shop-detail-copy{flex:0 0 auto!important;overflow:visible!important}
#shopModal.tcq-wood-wardrobe .shop-detail-preview-frame,.tcq-bag-avatar-stage{position:relative!important;display:block!important;height:var(--stage-height,354px)!important;min-height:var(--stage-height,354px)!important;width:100%!important;border:2px solid #ad7e43;background:#342b20!important;overflow:hidden;box-sizing:border-box}
#shopModal.tcq-wood-wardrobe #shopDetailPreview,#tcqBagPortrait{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:168px!important;height:168px!important;max-width:calc(100% - 128px)!important;max-height:none!important;object-fit:contain;image-rendering:pixelated}
#shopModal.tcq-wood-wardrobe .shop-preview-hint{display:block!important;min-height:22px;padding:5px;color:#ffe5b6;font-size:11px!important;text-align:center}
.shop-equipment-slots,.tcq-bag-equipment-ring{position:absolute;inset:6px;display:grid;grid-template-columns:var(--slot,52px) minmax(0,1fr) var(--slot,52px);grid-template-rows:repeat(6,var(--slot,52px));gap:var(--slot-gap,5px);pointer-events:none}
#shopModal .shop-equip-slot,#shopModal .tcq-bag-equip{position:relative!important;inset:auto!important;transform:none!important;width:100%!important;height:100%!important;min-width:0;min-height:0;padding:3px!important;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;pointer-events:auto;border:1px solid #b58b51;border-radius:0;background:#26352b;box-shadow:inset 0 0 0 2px #151f1b;color:#ffe6ac;overflow:hidden}
#shopModal .shop-equip-slot.is-active{border:2px solid #ffe6ac;background:#51442b}
#shopModal .shop-equip-slot.is-empty,#shopModal .tcq-bag-equip.is-empty{color:#a29a7b;background:#202a23}
#shopModal .shop-equip-slot-name,#shopModal .tcq-bag-equip-label{font-size:9px!important;line-height:1.1;white-space:nowrap}
#shopModal .shop-equip-slot-art,#shopModal .tcq-bag-equip i{display:grid;place-items:center;min-height:0;font-style:normal}
#shopModal .shop-equip-slot canvas,#shopModal .tcq-bag-equip canvas{width:30px!important;height:30px!important;image-rendering:pixelated;object-fit:contain}
#shopModal .tcq-bag-equip b{display:none}
/* Six rows on each side, one centered bottom slot: thirteen non-overlapping hit targets. */
#shopModal .is-top-left{grid-column:1;grid-row:1}#shopModal .is-top-center{grid-column:3;grid-row:1}
#shopModal .is-top-right{grid-column:3;grid-row:2}#shopModal .is-left-1{grid-column:1;grid-row:2}
#shopModal .is-left-2{grid-column:1;grid-row:3}#shopModal .is-left-3{grid-column:1;grid-row:4}
#shopModal .is-left-4{grid-column:1;grid-row:5}#shopModal .is-right-1{grid-column:3;grid-row:3}
#shopModal .is-right-2{grid-column:3;grid-row:4}#shopModal .is-right-3{grid-column:3;grid-row:5}
#shopModal .is-right-4{grid-column:3;grid-row:6}#shopModal .is-bottom-left{grid-column:1;grid-row:6}
#shopModal .is-bottom-right{grid-column:2;grid-row:6;justify-self:center;width:var(--slot,52px)!important}
#shopModal.tcq-wood-bag .shop-content-layout{display:block!important}
#shopModal.tcq-wood-bag .shop-detail,#shopModal.tcq-wood-bag .shop-browser{display:none!important}
#shopBagPanel[hidden]{display:none!important}
#shopModal.tcq-wood-bag #shopBagPanel,#shopModal.tcq-wood-bag #inventorySheetBody{height:100%;min-height:0}
#shopModal.tcq-wood-bag .tcq-bag-layout{height:100%!important;grid-template-columns:minmax(280px,40%) minmax(0,1fr)!important;gap:8px!important}
#shopModal.tcq-wood-bag .tcq-bag-character{display:flex!important;flex-direction:column!important;padding:7px!important;overflow:auto!important;min-height:0}
#shopModal.tcq-wood-bag .tcq-bag-avatar-box{display:block!important;flex:none;min-height:354px!important;padding:0!important;background:none!important;border:0!important}
#shopModal.tcq-wood-bag .tcq-bag-content{min-width:0;min-height:0;overflow:hidden}
#shopModal.tcq-wood-bag .tcq-bag-grid{overflow:auto;min-height:0;grid-template-columns:repeat(auto-fill,minmax(64px,1fr))!important;grid-auto-rows:80px!important}
#shopModal.tcq-wood-bag .tcq-bag-tile{position:relative;height:80px!important;min-width:0}
#shopModal.tcq-wood-bag .tcq-bag-tile-count{position:absolute;top:2px;right:3px}
#shopModal.tcq-wood-bag .tcq-bag-notice{white-space:normal;overflow-wrap:anywhere}
@media(max-width:760px){
 #shopModal.tcq-wood-wardrobe{--slot:44px;--slot-gap:4px;--stage-height:300px}
 #shopModal.tcq-wood-wardrobe .shop-content-layout{grid-template-columns:minmax(0,1.1fr) minmax(0,1fr)!important;grid-template-rows:minmax(0,1fr)!important;gap:4px!important}
 #shopModal.tcq-wood-wardrobe .shop-detail{grid-column:2!important;grid-row:1!important;display:flex!important;max-height:none!important;padding:4px!important;gap:5px!important}
 #shopModal.tcq-wood-wardrobe .shop-detail-copy,#shopModal.tcq-wood-wardrobe .shop-detail-actions{grid-column:auto!important;grid-row:auto!important}
 #shopModal.tcq-wood-wardrobe .shop-detail-actions{flex-direction:column!important}
 #shopModal.tcq-wood-wardrobe .shop-detail-actions button{height:auto!important;min-height:40px!important;font-size:11px!important;white-space:normal}
 #shopModal.tcq-wood-wardrobe .shop-primary-nav button{font-size:11px!important}
 #shopModal.tcq-wood-wardrobe .shop-tab-icon{display:none}
 #shopModal.tcq-wood-wardrobe .shop-grid{grid-template-columns:repeat(auto-fill,minmax(44px,1fr))!important;grid-auto-rows:66px!important;gap:3px!important}
 #shopModal.tcq-wood-wardrobe .shop-card{height:66px!important;padding:2px!important}
 #shopModal.tcq-wood-wardrobe .shop-thumb{height:38px!important;flex-basis:38px!important}
 #shopModal.tcq-wood-wardrobe .shop-query{display:flex!important;height:auto!important;flex-wrap:wrap}
 #shopModal.tcq-wood-wardrobe .shop-search-wrap{width:100%!important}
 #shopModal.tcq-wood-wardrobe #shopSort{width:100%!important}
 #shopModal.tcq-wood-wardrobe .shop-toolbar{grid-template-rows:26px 26px auto!important}
 #shopModal.tcq-equipment-view .shop-detail{width:min(100%,420px)!important;min-height:100%!important}
 #shopModal .shop-equip-slot-name,#shopModal .tcq-bag-equip-label{font-size:8px!important}
 #shopModal .shop-equip-slot canvas,#shopModal .tcq-bag-equip canvas{width:26px!important;height:26px!important}
 #shopModal.tcq-wood-wardrobe #shopDetailPreview,#tcqBagPortrait{width:144px!important;height:144px!important;max-width:calc(100% - 108px)!important}
 #shopModal.tcq-wood-bag .tcq-bag-layout{display:block!important;overflow:auto!important}
 #shopModal.tcq-wood-bag .tcq-bag-character{width:100%;max-width:420px;margin:auto;display:flex!important;height:auto!important}
 #shopModal.tcq-wood-bag .tcq-bag-avatar-box{min-height:300px!important}
 #shopModal.tcq-wood-bag .tcq-bag-content{min-height:360px!important;height:440px!important}
 #shopModal.tcq-wood-bag .tcq-bag-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}
}
#shopModal.tcq-wood-wardrobe[hidden]{display:none!important}
#shopModal.tcq-wood-wardrobe #shopDetailPreview,#shopModal #tcqBagPortrait{position:absolute!important;left:50%!important;top:50%!important;transform:translate(-50%,-50%)!important;}
#shopModal.tcq-wood-wardrobe .wardrobe-selected-line{display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:5px!important;white-space:normal!important;overflow-wrap:anywhere}
#shopModal.tcq-wood-wardrobe .wardrobe-selected-line :is(span,b,small){display:block!important;width:auto!important;position:static!important;white-space:normal!important;max-width:100%!important;text-overflow:clip!important}
#shopModal.tcq-wood-wardrobe #shopDetailPreview,#shopModal #tcqBagPortrait{background:transparent!important;border:0!important;box-shadow:none!important}
#shopModal.tcq-wood-wardrobe .shop-equip-slot:focus-visible,#shopModal.tcq-wood-wardrobe .tcq-bag-equip:focus-visible{outline:2px solid #ffe6ac;outline-offset:-3px}
#shopModal.tcq-wood-wardrobe button,#shopModal.tcq-wood-wardrobe .shop-card{touch-action:manipulation}
