/* Ref19/52: individual frame slices, material, portraits and isolated item art. */
/* Slots occupy their own grid track; none overlays the portrait or weapon grip. */
html body.pc-redesign #app .r129-hero-inventory .current-portrait{display:grid!important;grid-template-columns:minmax(0,1fr);grid-template-rows:20px minmax(0,1fr) 112px;gap:4px;padding:5px!important}
html body.pc-redesign #app .r129-hero-inventory .current-portrait>.hero-loadout-figure{grid-column:1;grid-row:2;width:100%!important;height:100%!important;min-height:0!important;object-fit:contain!important}
html body.pc-redesign #app .r129-hero-inventory .current-tag{position:static!important;transform:none!important;grid-column:1;grid-row:1;inset:auto!important;display:block!important;text-align:center;padding:2px;font:11px Georgia;margin:0}
html body.pc-redesign #app .r129-hero-inventory .r129-gear-strip{grid-column:1;grid-row:3;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:repeat(2,minmax(44px,1fr));gap:4px;min-height:0;min-width:0}
html body.pc-redesign #app .r129-hero-inventory .r129-gear-strip>.current-gear{position:relative!important;inset:auto!important;transform:none!important;width:100%!important;height:100%!important;min-width:0!important;max-width:none!important;min-height:44px!important;padding:3px!important;margin:0!important;display:flex!important;flex-direction:column;justify-content:center;align-items:center;overflow:hidden;box-sizing:border-box}
html body.pc-redesign #app .r129-hero-inventory .r129-gear-strip>.current-gear :is(svg,img){position:static!important;flex:1;min-height:0!important;width:100%!important;height:calc(100% - 13px)!important;max-height:calc(100% - 13px)!important;object-fit:contain!important}
html body.pc-redesign #app .r129-hero-inventory .r129-gear-strip>.current-gear small{position:static!important;flex:none;min-height:12px;font:10px/12px Georgia!important;max-width:100%;white-space:nowrap}
html body.pc-redesign #app .r129-hero-inventory .r129-gear-strip .current-empty{flex:1;min-height:0;height:auto!important;line-height:25px;font-size:22px}
.r129-item-info-tabs{display:flex;gap:4px;flex:none}
.r129-item-info-tabs button{flex:1}
.r129-item-information{flex:none;font:13px/1.4 Georgia,serif}
.r129-item-information>section{display:none}
.r129-item-information[data-info=stats]>.r129-information-stats,.r129-item-information[data-info=description]>.r129-information-description,.r129-item-information[data-info=effects]>.r129-information-effects{display:block}
.r129-item-information p{margin:4px 0}
html body.pc-redesign #app .r129-hero-inventory .r129-item-info-tabs button{font-size:11px!important;min-height:25px!important;padding:3px!important}
html body.pc-redesign #app .r129-hero-inventory .r129-item-detail:has(.r129-item-information:not([data-info=stats])) .r129-item-pictures{flex:0 1 22%;min-height:25px}
html body.pc-redesign[data-layout=sidebar][data-view=hero] #app .view-content>.r129-hero-inventory{width:100%;max-width:none!important;height:100%!important;min-height:0!important;max-height:100%!important;overflow:hidden!important;display:grid!important;grid-template-columns:minmax(0,.95fr) minmax(0,1.1fr) minmax(0,1fr)!important;grid-template-rows:32px 36px 54px minmax(0,1fr)!important;gap:8px!important;margin:0!important;color:#f3dfaf;box-sizing:border-box}
html body.pc-redesign #app .r129-hero-inventory>*{min-width:0;min-height:0;box-sizing:border-box}
html body.pc-redesign #app .r129-hero-inventory .smith-button-skin{display:none!important}
html body.pc-redesign #app .r129-hero-inventory button:not(.current-gear):not(.current-cell){border:1px solid transparent!important;border-image:url('assets/round2-crafting/frames/button-normal.png') 80 110 / 10px 13.75px / 0 stretch!important;background:#2c1c10 url('assets/round2-crafting/73-craft-leather-tile-v1.png') center/180px!important;border-radius:0!important;box-shadow:none!important;color:#fff0c3!important;min-width:0;min-height:30px;padding:5px 9px;font:14px Georgia,serif;cursor:pointer}
html body.pc-redesign #app .r129-hero-inventory button:not(.current-gear):not(.current-cell):is(:hover,:focus-visible,[aria-pressed=true],.primary){border-image-source:url('assets/round2-crafting/frames/button-hover.png')!important;background-color:#65421a!important}
html body.pc-redesign #app .r129-hero-inventory button:not(.current-gear):not(.current-cell):active{border-image-source:url('assets/round2-crafting/frames/button-pressed.png')!important}
html body.pc-redesign #app .r129-hero-inventory button:not(.current-gear):not(.current-cell):disabled{border-image-source:url('assets/round2-crafting/frames/button-disabled.png')!important;filter:saturate(.3);color:#b5ad97!important;cursor:default}
html body.pc-redesign #app .r129-hero-inventory .current-title{grid-column:1/-1;grid-row:1;margin:0;padding:0 6px}
html body.pc-redesign #app .r129-hero-inventory .current-title h1{font:700 27px Georgia;margin:0}
html body.pc-redesign #app .r129-hero-inventory .current-tabs{grid-column:1/-1;grid-row:2;margin:0;display:flex;gap:6px}
html body.pc-redesign #app .r129-hero-inventory .current-summary{grid-column:1/-1;grid-row:3;padding:5px 12px!important;font-size:14px}
html body.pc-redesign #app .r129-hero-inventory .current-summary>div{margin-top:4px;font-size:13px;justify-content:flex-start;gap:25px}
html body.pc-redesign #app .r129-hero-inventory .current-summary>small{font-size:12px}
html body.pc-redesign #app .r129-hero-inventory .current-portrait{grid-column:1;grid-row:4;height:100%!important;min-height:0!important;padding:0!important}
html body.pc-redesign #app .r129-hero-inventory .current-portrait>.hero-portrait,html body.pc-redesign #app .r129-hero-inventory .current-portrait>svg{width:100%;height:100%;max-height:100%;object-fit:contain}
html body.pc-redesign #app .r129-hero-inventory .current-bag{grid-column:2;grid-row:4;display:grid!important;grid-template-rows:27px 32px minmax(0,1fr) 32px!important;gap:7px!important;padding:10px!important;min-height:0!important;overflow:hidden}
html body.pc-redesign #app .r129-hero-inventory .current-bag h2{font-size:21px}
html body.pc-redesign #app .r129-hero-inventory .current-bag>nav{margin:0!important;gap:5px}
html body.pc-redesign #app .r129-hero-inventory .r129-bag-filters{display:grid!important;grid-template-columns:1fr 1fr 1fr 36px;justify-content:stretch}
html body.pc-redesign #app .r129-hero-inventory .r129-bag-filters button{font-size:13px!important;padding:3px!important}
html body.pc-redesign #app .r129-hero-inventory .current-cells{grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-template-rows:repeat(4,minmax(0,1fr))!important;height:100%!important;min-height:0!important;gap:7px!important;margin:0!important;position:relative}
html body.pc-redesign #app .r129-hero-inventory :is(button.current-cell,span.current-cell){height:100%!important;min-height:0!important;max-height:none!important;padding:5px!important;overflow:hidden}
html body.pc-redesign #app .r129-hero-inventory .current-cell :is(svg,img){height:100%!important;width:100%!important;max-height:100%!important;object-fit:contain!important}
html body.pc-redesign #app .r129-hero-inventory .current-cell.r129-selected{outline:2px solid #f8cd6c!important;outline-offset:-3px;box-shadow:inset 0 0 24px #c18a2744!important}
html body.pc-redesign #app .r129-hero-inventory .r129-bag-empty{grid-column:1/-1;grid-row:1/-1;align-self:center;text-align:center;font-size:15px}
html body.pc-redesign #app .r129-hero-inventory .r129-item-detail{grid-column:3;grid-row:4;display:flex;flex-direction:column;gap:7px;padding:12px!important;overflow:hidden}
html body.pc-redesign #app .r129-hero-inventory .r129-item-detail h2{font:700 23px/1.15 Georgia;margin:0 0 3px;color:#f1d18b}
html body.pc-redesign #app .r129-hero-inventory .r129-item-detail header small{font-size:12px}
html body.pc-redesign #app .r129-hero-inventory .r129-item-pictures{flex:1;min-height:35px;display:grid;grid-template-columns:minmax(0,1fr);gap:8px;overflow:hidden}
html body.pc-redesign #app .r129-hero-inventory .r129-item-pictures.is-comparing{grid-template-columns:repeat(2,minmax(0,1fr))}
html body.pc-redesign #app .r129-hero-inventory .r129-item-pictures figure{display:flex;flex-direction:column;min-height:0;min-width:0;margin:0;text-align:center;overflow:hidden}
html body.pc-redesign #app .r129-hero-inventory .r129-item-pictures figure>div{min-height:0;flex:1;display:flex;align-items:center;justify-content:center}
html body.pc-redesign #app .r129-hero-inventory .r129-item-pictures :is(svg,img){height:100%!important;width:100%!important;object-fit:contain!important;max-height:100%;min-height:0}
html body.pc-redesign #app .r129-hero-inventory .r129-item-pictures :is(figcaption,small){font-size:11px;line-height:1.2;margin:3px 0}
html body.pc-redesign #app .r129-hero-inventory .current-compare{flex:none;width:100%;margin:0;font-size:13px}
html body.pc-redesign #app .r129-hero-inventory .current-compare caption{text-align:left;font-weight:bold;color:#edd293;margin-bottom:3px}
html body.pc-redesign #app .r129-hero-inventory .current-compare :is(td,th){padding:5px 2px}
html body.pc-redesign #app .r129-hero-inventory .r129-item-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;flex:none}
html body.pc-redesign #app .r129-hero-inventory :is(.r129-item-effects,.r129-item-warning){font-size:11px;line-height:1.3;margin:0;flex:none}
html body.pc-redesign #app .r129-hero-inventory .r129-item-warning{color:#f4bc87}
html body.pc-redesign #app .r129-hero-inventory .r129-sale-row{display:flex;align-items:center;justify-content:space-between;gap:6px;flex:none;font-size:11px}
html body.pc-redesign #app .r129-hero-inventory .r129-sale-confirm{flex:none;background:#29170d;border:1px solid #b58b43;padding:5px;font-size:12px}
html body.pc-redesign #app .r129-hero-inventory .r129-sale-confirm>div{display:flex;gap:5px;margin-top:4px}
html body.pc-redesign #app .r129-hero-inventory .r129-sale-confirm button{flex:1}
html body.pc-redesign #app .r129-hero-inventory .r129-inventory-panes{display:none!important}
@media(max-width:1100px){
 html body.pc-redesign[data-layout=sidebar][data-view=hero] #app .view-content>.r129-hero-inventory{grid-template-columns:minmax(0,1fr)!important;grid-template-rows:29px 34px 50px 32px minmax(0,1fr)!important;gap:5px!important}
 html body.pc-redesign #app .r129-hero-inventory .r129-inventory-panes{grid-column:1;grid-row:4;display:flex!important;gap:5px}
 html body.pc-redesign #app .r129-hero-inventory .r129-inventory-panes button{flex:1;padding:3px 6px!important}
 html body.pc-redesign #app .r129-hero-inventory :is(.current-portrait,.current-bag,.r129-item-detail){grid-column:1!important;grid-row:5!important;display:none!important}
 html body.pc-redesign #app .r129-hero-inventory[data-inventory-pane=portrait] .current-portrait{display:grid!important}
 html body.pc-redesign #app .r129-hero-inventory[data-inventory-pane=bag] .current-bag{display:grid!important}
 html body.pc-redesign #app .r129-hero-inventory[data-inventory-pane=detail] .r129-item-detail{display:flex!important}
 html body.pc-redesign #app .r129-hero-inventory .current-title span{display:none}
 html body.pc-redesign #app .r129-hero-inventory .current-title h1{font-size:23px}
 html body.pc-redesign #app .r129-hero-inventory .current-summary{padding:4px 9px!important}
 html body.pc-redesign #app .r129-hero-inventory .current-cells{grid-template-columns:repeat(4,minmax(0,1fr))!important;grid-template-rows:repeat(2,minmax(0,1fr))!important}
 html body.pc-redesign #app .r129-hero-inventory .r129-item-detail{padding:8px!important;gap:5px}
}
@media(max-width:600px){
 html body.pc-redesign #app .r129-hero-inventory .current-tabs button{font-size:12px!important;padding:4px!important}
 html body.pc-redesign #app .r129-hero-inventory .current-cells{grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-template-rows:repeat(4,minmax(0,1fr))!important}
 html body.pc-redesign #app .r129-hero-inventory .current-summary>div{font-size:11px;gap:15px}
 html body.pc-redesign #app .r129-hero-inventory .current-summary>small{font-size:10px}
}
@media(max-height:720px){
 html body.pc-redesign #app .r129-hero-inventory .r129-item-detail:has(.r129-sale-confirm) .r129-item-actions{display:none!important}
 html body.pc-redesign #app .r129-hero-inventory .r129-item-pictures{min-height:75px}
 html body.pc-redesign #app .r129-hero-inventory .current-compare{line-height:1.2!important}
 html body.pc-redesign #app .r129-hero-inventory .r129-item-effects{display:none}
 html body.pc-redesign[data-layout=sidebar][data-view=hero] #app .view-content>.r129-hero-inventory[data-inventory-pane=detail]{grid-template-rows:27px 30px 29px minmax(0,1fr)!important}
 html body.pc-redesign #app .r129-hero-inventory[data-inventory-pane=detail] .current-summary{display:none!important}
 html body.pc-redesign #app .r129-hero-inventory[data-inventory-pane=detail] .r129-inventory-panes{grid-row:3!important}
 html body.pc-redesign #app .r129-hero-inventory[data-inventory-pane=detail] .r129-item-detail{grid-row:4!important}
 html body.pc-redesign #app .r129-hero-inventory .r129-item-information{font-size:11px;line-height:1.25}
 html body.pc-redesign #app .r129-hero-inventory .r129-item-detail{gap:3px;padding:7px!important}
 html body.pc-redesign #app .r129-hero-inventory .r129-item-detail h2{font-size:18px}
 html body.pc-redesign #app .r129-hero-inventory .current-compare :is(td,th){padding:2px;font-size:10px}
 html body.pc-redesign #app .r129-hero-inventory .current-compare caption{font-size:11px;margin:0}
 html body.pc-redesign #app .r129-hero-inventory .r129-item-actions button{font-size:11px!important;min-height:27px!important;padding:4px!important}
 html body.pc-redesign #app .r129-hero-inventory .r129-sale-row button{min-height:27px!important;font-size:11px!important}
 html body.pc-redesign #app .r129-hero-inventory .r129-item-effects{font-size:10px}
}
@media(max-height:460px){
 html body.pc-redesign #app .r129-hero-inventory .current-portrait{grid-template-columns:minmax(0,1fr) minmax(156px,.45fr)!important;grid-template-rows:18px minmax(0,1fr)!important;gap:3px}
 html body.pc-redesign #app .r129-hero-inventory .current-tag{grid-column:1/-1!important}
 html body.pc-redesign #app .r129-hero-inventory .r129-gear-strip{grid-column:2;grid-row:2;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(4,minmax(44px,1fr));gap:3px}
 html body.pc-redesign #app .r129-hero-inventory .r129-item-info-tabs{width:100%;height:25px}
 html body.pc-redesign #app .r129-hero-inventory .r129-item-information{width:48%}
 html body.pc-redesign #app .r129-hero-inventory .r129-item-information .current-compare{width:100%}
 html body.pc-redesign #app .r129-hero-inventory .r129-sale-confirm{display:flex;align-items:center;gap:5px;padding:2px}
 html body.pc-redesign #app .r129-hero-inventory .r129-sale-confirm>div{flex:1;margin:0}
 html body.pc-redesign[data-layout=sidebar][data-view=hero] #app .view-content>.r129-hero-inventory{grid-template-rows:25px 29px 29px minmax(0,1fr)!important;gap:3px!important}
 html body.pc-redesign #app .r129-hero-inventory .current-summary{display:none!important}
 html body.pc-redesign #app .r129-hero-inventory .r129-inventory-panes{grid-row:3!important}
 html body.pc-redesign #app .r129-hero-inventory :is(.current-portrait,.current-bag,.r129-item-detail){grid-row:4!important}
 html body.pc-redesign #app .r129-hero-inventory .r129-item-detail{display:none!important;flex-direction:row;flex-wrap:wrap;align-content:flex-start;position:relative;padding-left:27%!important}
 html body.pc-redesign #app .r129-hero-inventory .r129-item-pictures{position:absolute;left:6px;top:6px;bottom:6px;width:25%;min-height:0}
 html body.pc-redesign #app .r129-hero-inventory .r129-item-detail>header{width:100%}
 html body.pc-redesign #app .r129-hero-inventory .current-compare{width:48%}
 html body.pc-redesign #app .r129-hero-inventory .r129-item-actions{width:48%;margin-left:auto}
 html body.pc-redesign #app .r129-hero-inventory :is(.r129-sale-row,.r129-sale-confirm){width:100%}
 html body.pc-redesign #app .r129-hero-inventory .r129-item-effects{display:none}
 html body.pc-redesign #app .r129-hero-inventory .current-bag{grid-template-rows:22px 28px minmax(0,1fr) 28px!important;gap:3px!important;padding:5px!important}
 html body.pc-redesign #app .r129-hero-inventory .current-cells{grid-template-columns:repeat(4,minmax(0,1fr))!important;grid-template-rows:repeat(2,minmax(0,1fr))!important}
 html body.pc-redesign #app .r129-hero-inventory button{min-height:25px!important;font-size:11px!important}
}
