/* Authored workshop skins. Coordinates scale by layout, never by stretching the text. */
#modal#modal .modal-card:has(.equipment-suite) {
 width:100vw!important;height:100dvh!important;max-width:none!important;max-height:none!important;
 border:0!important;border-image:none!important;padding:0!important;margin:0!important;background:#221c1b!important;
}
#modal#modal .modal-card:has(.equipment-suite) #resultStats {padding:0!important;height:100%!important;max-height:none!important;}
#modal#modal .equipment-suite {
 --royal:url('assets/workshop-halls/royal.webp') 29 32 fill / 24px 28px;
 --iron:url('assets/workshop-halls/iron.webp') 24 27 fill / 18px 20px;
 --vellum:url('assets/workshop-halls/vellum.webp') 23 28 fill / 18px 19px;
 --steel:url('assets/workshop-halls/steel.webp') 13 27 fill / 10px 16px;
 --gold:url('assets/workshop-halls/gold.webp') 13 26 fill / 10px 16px;
 --red:url('assets/workshop-halls/red.webp') 13 23 fill / 10px 16px;
 display:grid!important;grid-template-rows:54px minmax(0,1fr) 46px;gap:9px;
 width:100%;height:100%;padding:24px 28px 23px;background:#121c2e;
 font:600 14px/1.35 system-ui,sans-serif;
 animation:hall-open 260ms cubic-bezier(.18,.77,.28,1) both;
 &[data-hall=forge]{background:#241b19;}
 & .suite-header {padding:0 6px;align-items:flex-start;}
 & .suite-main-tabs {height:46px;gap:8px;}
 & .suite-main-tabs button {width:190px;height:46px;}
 & .suite-close {min-width:48px;width:48px;height:48px;position:static!important;padding:0!important;border:0!important;background:none!important;border-image:none!important;}
 & .suite-button:not(.suite-bag-item,.suite-equipped,.suite-close,.suite-lock,.inventory-stack), & .equipment-forge button:not(.forge-slot,.forge-stone,.forge-feed-seat,.forge-socket,.reforge-item,.salvage-item) {
  border:0 solid transparent!important;border-image:var(--steel)!important;background:transparent!important;
  padding:8px 15px!important;line-height:1.23;letter-spacing:0;
 }
 & :is(.suite-button.selected,.suite-button.gold,.equipment-forge .forge-primary,.equipment-forge button.selected,.suite-main-tabs [aria-selected=true]) {border-image:var(--gold)!important;}
 & .suite-button.red {border-image:var(--red)!important;}
 & .suite-library {grid-template-columns:minmax(0,382fr) minmax(0,410fr) minmax(0,576fr)!important;gap:8px;}
 & :is(.suite-character,.suite-backpack,.suite-detail,.forge-bag,.forge-main,.forge-equipment,.forge-tabs) {
  background:transparent!important;border:0 solid transparent!important;border-radius:0!important;border-image:var(--royal)!important;
  padding:20px 24px!important;min-height:0;min-width:0;
 }
 & .suite-detail {border-image:var(--vellum)!important;display:flex;flex-direction:column;gap:8px;overflow:hidden!important;padding:18px 19px!important;}
 & .suite-detail-head {flex:none;min-height:54px;}
 & .hall-appraisal-body {overflow:auto;min-height:0;flex:1;}
 & .suite-detail-actions {position:static!important;display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:3px;padding:0!important;margin:0!important;flex:none;}
 & .suite-detail-actions .suite-button {font-size:12px!important;padding:8px 4px!important;min-height:43px;}
 & .suite-detail-actions small {grid-column:1/-1;}
 & .suite-character {display:flex;flex-direction:column;gap:4px;}
 & .suite-paperdoll {flex:1 1 auto;min-height:185px;height:auto;max-height:340px;background:url('assets/workshop-halls/dais.webp') center/auto 100% no-repeat;}
 & .suite-actor {height:75%;top:6%;max-height:none;}
 & .suite-equipped {height:24%;width:auto;aspect-ratio:.9;}
 & :is(.suite-equipped-shoulders,.suite-equipped-waist){top:25%;}
 & :is(.suite-equipped-chest,.suite-equipped-legs){top:50%;}
 & :is(.suite-equipped-wrist,.suite-equipped-feet){top:75%;}
 & .suite-equipped-mainhand{left:50%;transform:translateX(-50%);height:23%;bottom:0;}
 & .suite-item-frame {background-image:url('assets/workshop-halls/cell.webp');}
 & .suite-item-frame.frame-selected {background-image:url('assets/workshop-halls/lit.webp');}
 & .suite-core-stats {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:3px 8px;}
 & .suite-core-stats h4 {grid-column:1/-1;}
 & .suite-extra-links {display:grid;grid-template-columns:repeat(3,1fr);gap:4px;margin:4px 0 0;}
 & .suite-extra-links .suite-button {font-size:12px;padding:6px 4px!important;}
 & .suite-wallet {min-height:0;height:46px;position:static!important;border:0!important;border-image:var(--iron)!important;background:none!important;display:flex;align-items:center;justify-content:space-evenly;padding:4px 22px!important;gap:5px;}
 & .suite-wallet img {max-height:27px;max-width:30px;}
 & .suite-status {position:absolute;right:48px;top:28px;pointer-events:none;}
 & .suite-status:empty,& .forge-notice:empty {display:none!important;}
 & .suite-inventory-tabs {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:3px;position:static!important;}
 & .suite-inventory-tabs .suite-button {min-width:0;white-space:nowrap;font-size:12px!important;padding:8px 4px!important;}
 & .suite-backpack {display:flex;flex-direction:column;gap:7px;overflow:visible!important;}
 & .suite-filters {display:flex;gap:5px;flex:none;z-index:4;}
 & .hall-filter {position:relative;min-width:0;flex:1;}
 & .hall-filter summary {cursor:pointer;border-image:var(--steel);border-style:solid;border-width:0;padding:8px 10px;text-align:center;}
 & .hall-options {position:absolute;top:100%;left:0;width:max-content;max-height:35vh;overflow:auto;padding:6px;background:#362d28;display:grid;}
 & .hall-options button {min-height:30px;}
 & :is(.suite-bag-grid,.suite-unified-grid) {display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;align-content:start;gap:5px;min-height:0;flex:1;max-height:none!important;overflow:auto!important;}
 & .suite-unified-grid {min-height:300px;}
 & .suite-bag-item {min-width:0;width:100%;text-align:center;}
 & .suite-bag-item .suite-item-frame {width:min(100%,72px);margin:auto;}
 & .inventory-stack {min-width:0;min-height:72px;max-width:none;padding:6px!important;}
 & .inventory-stack small {white-space:normal;line-height:1.18;overflow-wrap:anywhere;}
 & .hall-hover {padding:10px 17px;border-image:var(--vellum);border-style:solid;border-width:0;display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;min-height:58px;color:#ffedc6;}
 & .hall-hover b {flex-basis:100%;} & .hall-hover .up{color:#91dc8d;} & .hall-hover .down{color:#fd9b91;}
 & .suite-pager {flex:none;}
 & .equipment-forge {position:relative;display:grid!important;grid-template-columns:156px minmax(0,1fr)!important;grid-template-rows:auto minmax(0,1fr) auto;gap:8px!important;min-height:0;overflow:hidden!important;}
 & .forge-tabs {grid-column:1;grid-row:1/4;display:flex!important;flex-direction:column!important;align-items:stretch;justify-content:flex-start;gap:8px;padding:18px 12px!important;border-image:var(--iron)!important;}
 & .forge-tabs button {width:100%!important;min-height:56px;flex:none;font-size:13px;}
 & .forge-tabs button img {width:24px;height:24px;}
 & .suite-gem-tabs {grid-column:2;grid-row:1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;}
 & .forge-layout {grid-column:2;grid-row:2;display:grid!important;grid-template-columns:minmax(110px,.44fr) minmax(0,1.74fr) minmax(180px,.84fr)!important;gap:8px;min-height:0;max-height:none!important;height:100%;}
 & .forge-layout.forge-workshop-layout {grid-template-columns:minmax(0,1.85fr) minmax(0,1fr)!important;}
 & .forge-notice {grid-column:2;grid-row:3;max-height:34px;padding:0;margin:0;}
 & :is(.forge-main,.forge-bag,.forge-equipment) {border-image:var(--iron)!important;overflow:auto!important;padding:18px 20px!important;}
 & .forge-equipment {display:flex;flex-direction:column;gap:3px;}
 & .forge-equipment .forge-slot {width:100%;min-height:38px;flex:1;}
 & .hall-scene {width:100%;height:clamp(75px,15vh,150px);flex:none;background:var(--scene) center/contain no-repeat;image-rendering:pixelated;}
 & [data-station=enhance]{--scene:url('assets/workshop-halls/anvil.webp');}
 & [data-station=socket]{--scene:url('assets/workshop-halls/socket.webp');}
 & :is([data-station=soul],[data-station=temper]){--scene:url('assets/workshop-halls/crucible.webp');}
 & [data-station=salvage]{--scene:url('assets/workshop-halls/salvage.webp');}
 & [data-station=craft]{--scene:url('assets/workshop-halls/starforge.webp');}
 & [data-station=reforge]{--scene:url('assets/workshop-halls/altar.webp');}
 & .forge-main.forge-enhance-table {display:flex!important;flex-direction:column;gap:6px;overflow:hidden!important;}
 & .hall-enhance-body {flex:1;min-height:0;overflow:auto;}
 & .forge-feed {display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:4px;}
 & .forge-feed-seat {width:100%;min-width:0;max-width:64px;}
 & .forge-enhance-table>.forge-primary {position:static!important;flex:none;min-height:50px;margin:0!important;}
 & .forge-chance {border-image:url('assets/workshop-halls/gauge.webp') 7 14 fill / 7px 11px;border-style:solid;border-width:0;}
 & [data-salvage][aria-pressed=true] {border-image:var(--red)!important;outline:2px solid #e5b65b;outline-offset:-3px;}
 & [data-salvage][aria-pressed=true]::after {content:'';width:24px;height:24px;background:url('assets/workshop-halls/check.webp') center/contain;flex:none;}
 & .reforge-bench {display:flex!important;flex-direction:column!important;justify-content:space-between!important;gap:6px!important;overflow:auto!important;}
 & .reforge-bench .hall-scene {height:clamp(56px,11vh,112px);}
 & .reforge-compare {width:100%;flex:1 1 auto;}
 & .reforge-column {border-image:var(--vellum)!important;border-style:solid;border-width:0;padding:12px!important;gap:5px;}
 & .reforge-affix {min-height:40px;line-height:1.2;}
 & .reforge-actions {flex:none;display:grid;grid-template-columns:repeat(auto-fit,minmax(0,1fr));grid-auto-flow:column;grid-auto-columns:1fr;gap:8px;}
 & .reforge-actions button {width:100%;white-space:nowrap;}
 & .reforge-lock input {appearance:none;width:23px;height:23px;border:0;background:url('assets/equipment-forge/ui-v3/lock-open.png') center/contain no-repeat;}
 & .reforge-lock input:checked {background-image:url('assets/equipment-forge/ui-v3/lock-closed.png');}
 & :is(.gold,.forge-primary) {position:relative;isolation:isolate;overflow:hidden;}
 & :is(.gold,.forge-primary):hover:not(:disabled)::after {content:'';position:absolute;inset:0;background:linear-gradient(110deg,transparent 39%,#ffeabd66 50%,transparent 61%);pointer-events:none;animation:hall-sheen .46s both;}
}
@keyframes hall-open{from{opacity:0;transform:translateY(-8px) scale(.965)}to{opacity:1;transform:none}}
@keyframes hall-page{from{opacity:.35;transform:translateY(4px)}to{opacity:1;transform:none}}
@keyframes hall-sheen{from{transform:translateX(-110%)}to{transform:translateX(110%)}}
@keyframes hall-pulse{50%{opacity:.7;transform:translateY(1px)}}
@media(max-height:760px){
 #modal#modal .equipment-suite {padding-top:20px;grid-template-rows:52px minmax(0,1fr) 46px;}
 #modal#modal .equipment-suite :is(.suite-runes,.suite-resonance,.suite-core-stats h4,.suite-character h3){margin:2px 0;}
 #modal#modal .equipment-suite .suite-character{gap:2px;}
 #modal#modal .equipment-suite .suite-runes img{width:16px;height:16px;}
}
@media(prefers-reduced-motion:reduce){#modal#modal .equipment-suite,#modal#modal .equipment-suite *::after{animation:none!important;}}
#modal#modal .equipment-suite[data-reduced=true],#modal#modal .equipment-suite[data-reduced=true] *::after {animation:none!important;}

#modal#modal .equipment-suite {
 & .suite-header {height:50px;min-height:50px;margin:0!important;}
 & .suite-bag-grid {grid-template-rows:none!important;grid-auto-rows:max-content!important;}
 & .suite-bag-item>small {white-space:normal;overflow:visible;line-height:1.55;overflow-wrap:anywhere;}
 & .inventory-stack {height:auto!important;min-height:98px;border:0!important;border-image:url('assets/workshop-halls/cell.webp') 15 fill / 9px!important;justify-content:flex-start;gap:1px;}
 & .inventory-item-art {width:40px;height:40px;flex:none;}
 & .inventory-stack :is(small,b), & .workshop-gear-label :is(small,b), & .reforge-affix b, & .workshop-soul-seat small {line-height:1.6!important;flex:none;}
 & .inventory-stack small {width:100%;}
 & .forge-equipment {display:flex!important;flex-flow:column nowrap!important;align-items:stretch!important;}
 & .forge-equipment button.forge-slot {display:grid!important;grid-template-columns:42px minmax(0,1fr);gap:4px!important;align-items:center!important;min-height:42px!important;height:auto!important;width:100%!important;}
 & .forge-equipment button.forge-slot .forge-slot-picture {width:40px!important;height:40px!important;padding:5px!important;}
 & .forge-equipment button.forge-slot .forge-slot-picture>:is(img,.pixel-icon){width:30px!important;height:30px!important;}
 & .forge-equipment button.forge-slot .forge-slot-name {font-size:11px!important;line-height:16px;white-space:normal;height:auto;}
 & .reforge-lock {width:22px;height:25px;}
 & .reforge-lock input {position:static;opacity:1;cursor:pointer;}
 & .reforge-lock span {display:none;}
 & .reforge-affix-bar {height:6px;border-radius:2px;box-shadow:0 1px #d1a767,0 -1px #7d5435;}
 & .reforge-affix.affix-quality-rainbow .reforge-affix-bar:after{content:'';position:absolute;right:0;bottom:-3px;width:24px;height:12px;background:url('assets/workshop-halls/full-glint.webp') center/contain;}
 & .reforge-bench .reforge-actions button,& .forge-enhance-table>.forge-primary {max-width:none!important;align-self:center;width:88%!important;}
 & .hall-hover .gain {color:#a8f59d;} & .hall-hover .loss {color:#ffac9b;}
 & .hall-scene {background-size:auto 100%;background-position:center;}
 & .forge-main .hall-scene {grid-column:1/-1;}
 & .suite-main-tabs .selected, & .suite-inventory-tabs [aria-selected=true] {border-image:var(--gold)!important;color:#fff4d2!important;text-shadow:1px 1px #472810;}
}
#modal#modal .equipment-suite .workshop-refine-seat small{line-height:1.6!important;height:auto;white-space:normal;}
#modal#modal .equipment-suite .forge-enhance-table .hall-scene{height:clamp(75px,18vh,180px);}
#modal#modal .equipment-suite .workshop-salvage-item{display:grid!important;grid-template-columns:44px minmax(0,1fr)!important;position:relative;text-align:left;}
#modal#modal .equipment-suite .workshop-salvage-item::after{position:absolute;right:5px;bottom:5px;}
#modal#modal .equipment-suite .forge-bag button.forge-stone>.forge-material-name {white-space:normal;font-size:11px!important;line-height:16px;min-height:32px;background:none!important;padding:0;}
#modal#modal .equipment-suite .forge-bag button.forge-stone {height:auto!important;min-height:104px;gap:2px!important;}
#modal#modal .equipment-suite .reforge-item-list button.reforge-item {display:grid!important;grid-template-columns:42px minmax(0,1fr);align-content:center;justify-content:start;gap:10px;min-height:59px;flex:none;padding:7px 14px!important;text-align:left;border:0!important;border-image:var(--steel)!important;}
#modal#modal .equipment-suite .reforge-item:disabled {opacity:.8;}
#modal#modal .equipment-suite .reforge-item-copy {align-items:flex-start;}
#modal#modal .equipment-suite .reforge-item-copy strong {line-height:1.55;color:#fff2cd;}
#modal#modal .equipment-suite .hall-hover::before {content:'';height:16px;width:16px;background:url('assets/workshop-halls/compare-tip.webp') center/contain no-repeat;}
#modal#modal .equipment-suite .hall-hover b {flex:1 1 75%;}
#modal#modal .equipment-suite .suite-header {padding-top:1px;}
#modal#modal .equipment-suite .suite-main-tabs button:first-child {width:195px;}
#modal#modal .equipment-suite .suite-main-tabs button:last-child {width:183px;}
#modal#modal .equipment-suite .hall-filter summary {list-style:none;}
#modal#modal .equipment-suite .hall-filter summary::after {content:'';display:inline-block;width:10px;height:10px;margin-left:5px;background:url('assets/workshop-halls/crest.webp') center/contain;transform:rotate(180deg);}
#modal#modal .equipment-suite :is(.affix-roll-bar,.reforge-affix-bar) {border:0 solid transparent;border-image:url('assets/workshop-halls/gauge.webp') 7 14 fill / 2px 4px;height:6px;}
@media(max-height:760px){
 #modal#modal .equipment-suite{padding-top:25px;gap:13px;}
 #modal#modal .equipment-suite .suite-library {grid-template-columns:minmax(0,334fr) minmax(0,360fr) minmax(0,514fr)!important;}
}
@media(max-height:760px){
 html:lang(en) #modal#modal .equipment-suite .suite-equipped-mainhand>small {
   left:50%;right:auto;width:max-content;transform:translateX(-50%);white-space:nowrap;
 }
}

#modal#modal .equipment-suite .workshop-refine-seat[data-refine-role=fodder]:has(>span)>b {
  align-self:center;
  padding:2px 8px;
  color:#fff2d5!important;
  background:#3c2a1fe8;
  text-shadow:0 1px 1px #23170f;
  border-radius:2px;
}
