/* Small-screen/touch compositions use the same independently exported artwork. */
.r124-tabs{display:none!important}
@media(max-width:999px),(max-width:1366px) and (pointer:coarse){
 :root{--r124-vh:100dvh;--r124-gold:#b89252;--r124-ink:#f1e1bd;--r124-button:url('assets/pc-v124/ui/button-normal.webp');--r124-button-hover:url('assets/pc-v124/ui/button-hover.webp')}
 html,body{max-width:100%;overscroll-behavior-x:none}body{background:#171717 url('assets/pc-v124/ui/app-stone.webp') repeat;color:var(--r124-ink)}
 *,*:before,*:after{box-sizing:border-box}.view-content,.main-content,.panel,[data-r124-group],.pc-community-body{min-width:0!important;max-width:100%}
 body[data-layout=sidebar] #app{padding-inline-start:env(safe-area-inset-left)!important;padding-inline-end:env(safe-area-inset-right)!important;height:var(--r124-vh)!important}
 body[data-layout=sidebar] .main-content{overflow-x:clip!important;overflow-y:auto!important;scroll-padding-block:12px;max-height:none!important;min-height:0!important}
 body[data-layout=sidebar] .view-content{height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important;padding-bottom:8px}
 body[data-layout=sidebar] .layout-footer{padding-bottom:max(6px,env(safe-area-inset-bottom))!important}
 [data-r124-group]{display:grid!important;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:auto auto!important;align-items:start!important;align-content:start!important;height:auto!important;min-height:0!important;gap:9px!important;overflow:visible!important}
 [data-r124-group]>.r124-tabs{grid-column:1/-1;display:flex!important;flex-wrap:wrap;gap:5px;position:relative;z-index:2;margin:0;padding:0;min-width:0}
 .r124-tabs button{flex:1 1 90px;max-width:100%;min-width:0;min-height:42px;padding:7px 10px;color:var(--r124-ink);font:14px/1.2 Georgia,serif;background:#392413 var(--r124-button) center/100% 100%;border:1px solid #b89252;border-radius:4px;overflow-wrap:anywhere;touch-action:manipulation}
 .r124-tabs button[aria-selected=true]{background-image:var(--r124-button-hover);color:#ffe5a5;box-shadow:inset 0 0 0 1px #f4d38a}.r124-tabs button:focus-visible{outline:3px solid #ffdf8f;outline-offset:2px}
 [data-r124-panel]{width:100%!important;min-width:0!important;max-width:100%!important;height:auto!important;max-height:none!important;grid-column:1!important;grid-row:auto!important;overflow:visible!important}
 [data-r124-panel][data-r124-inactive=true]{display:none!important}
 .main-content button:not(.icon-button):not(.inventory-cell):not(.hh-gear):not(.inventory-cell button),dialog button:not(.icon-button){min-height:42px;touch-action:manipulation}
 .main-content .panel,.pc-community{background-color:#24180f;background-image:url('assets/pc-v124/ui/panel.webp');background-size:cover;color:var(--r124-ink)}
 input,select,textarea{max-width:100%;min-width:0;font-size:16px!important}.main-content h1,.main-content h2,dialog h1,dialog h2{overflow-wrap:anywhere}.main-content img,dialog img{max-width:100%}
 .pc-community{inset:0!important;margin:0!important;width:100%!important;max-width:100%!important;height:var(--r124-vh)!important;max-height:var(--r124-vh)!important;border-width:5px!important;border-image-width:5px!important;border-radius:0!important;padding:calc(9px + env(safe-area-inset-top)) calc(10px + env(safe-area-inset-right)) calc(9px + env(safe-area-inset-bottom)) calc(10px + env(safe-area-inset-left))!important;overflow:auto!important;overscroll-behavior:contain}
 .pc-community[open]{grid-template-rows:auto auto minmax(0,1fr) auto!important;gap:7px!important}.pc-community{font-size:14px!important}.pc-community header{align-items:center}.pc-community h2{font-size:20px!important}.pc-community header button{flex:none}.pc-community-tabs{gap:5px!important;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))}.pc-community-tabs button{min-width:0;font-size:12px;padding:6px!important;overflow-wrap:anywhere}.pc-community-body{overflow:auto!important;overscroll-behavior:contain}.pc-community-person{padding:8px!important;gap:7px!important}.pc-community-person>div{max-width:100%;min-width:0}.pc-community-actions{display:flex;flex-wrap:wrap;gap:5px}.pc-community input,.pc-community textarea{min-width:0!important;max-width:100%!important;width:100%}.pc-community form{display:flex;flex-wrap:wrap;min-width:0}.pc-community form button{flex:0 0 auto}.pc-community-chat article{max-width:95%}.pc-community footer{flex-wrap:wrap}.pc-community-badge{flex:none}
 .inventory-grid,.market-grid{min-width:0!important;grid-template-columns:repeat(2,minmax(0,1fr))!important}.inventory-grid>*{min-width:0!important}.inventory-cell{overflow-wrap:anywhere}.page-controls,.local-tabs,.slot-tabs,.hh-menu nav{display:flex!important;flex-wrap:wrap!important;gap:5px!important}.page-controls>*{min-width:0}.hh-menu nav>button{flex:1 1 90px!important}.hh-live .hh-portrait-scene{height:clamp(180px,28dvh,330px)!important}.hh-live .hh-figure{max-width:100%}.item-detail .item-workbench{max-height:none!important;height:auto!important}.item-detail .item-workbench>.isolated-equipment-svg{height:190px!important}.item-detail .actions{display:flex!important;flex-wrap:wrap!important}.main-content .panel{max-width:100%!important}
 .main-content table{max-width:100%;font-size:clamp(11px,2.9vw,15px)}.main-content th,.main-content td{overflow-wrap:anywhere}.main-content pre,.main-content code{white-space:pre-wrap;overflow-wrap:anywhere}
}
@media(min-width:768px) and (max-width:1366px) and (pointer:coarse){.r124-tabs button{flex:0 1 190px;font-size:16px}.pc-community-tabs{grid-template-columns:repeat(4,minmax(0,1fr))}.inventory-grid,.market-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media(max-width:999px) and (max-height:500px){body[data-layout=sidebar] .layout-footer .layout-footer-resources{display:none!important}.r124-tabs button{min-height:36px;font-size:12px;flex-basis:100px}.pc-community-tabs{grid-template-columns:repeat(5,minmax(0,1fr))}.pc-community-tabs button{font-size:11px;min-height:34px!important}}
@media(prefers-reduced-motion:reduce){.r124-tabs *,[data-r124-panel]{animation:none!important;transition:none!important}}
