.wear-launch,.wear-dialog button,.wear-dialog select{min-height:44px;border:1px solid #6f6048;border-radius:6px;background:#1b2937;color:#f5dfad;padding:0 12px;cursor:pointer}
.wear-catalog-actions{display:flex;gap:8px;margin-inline-end:auto}
.wear-catalog-actions[hidden]{display:none}
.wear-catalog-actions .wear-launch{min-height:48px;padding:0 14px;border-color:#c5a15c;border-radius:8px;background:#624722;color:#fff2d1;font-size:14px;font-weight:700;white-space:nowrap}
.wear-catalog-actions .wear-launch[data-catalog-compare]{border-color:#ab8950;background:#43331f;color:#ffebbf}
.wear-catalog-actions .wear-launch:hover:not(:disabled){border-color:#ecc574;background:#78572b}
.wear-catalog-actions .wear-launch:disabled{opacity:.6;cursor:wait}
@media(max-width:480px){
 .wear-catalog-actions{flex:1 0 100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
 .wear-catalog-actions .wear-launch{padding-inline:6px;font-size:13px}
}
.wear-dialog{box-sizing:border-box;width:min(520px,calc(100% - 20px));max-height:92dvh;padding:12px;border:1px solid #967743;border-radius:12px;background:#14181f;color:#ecedf3;overflow:auto}
.wear-dialog::backdrop{background:#060a10ba}
.wear-head,.wear-picker-class{margin:6px 0 0;color:#f3d68b;font-size:12px}
.wear-footer{display:flex;align-items:center;justify-content:space-between;gap:10px}
.wear-head h2{margin:0;font-size:20px;color:#fae3ab}
.wear-head-actions{display:flex;gap:5px;flex-shrink:0}
.wear-head-actions button:first-child{background:#503e25;border-color:#967743}
.wear-head-actions button:disabled{opacity:.6;cursor:wait}
.wear-export-status{margin:8px 0 0;color:#ffd39a;font-size:13px}
@media(max-width:420px){.wear-head h2{font-size:17px}.wear-head-actions button{padding-inline:7px;font-size:12px}}
.wear-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:10px 0}
.wear-tabs button{padding-inline:4px}
.wear-tabs button[aria-pressed=true]{background:#503e25;border-color:#d0ad68}
.wear-stage{display:grid;grid-template-columns:clamp(44px,14vw,62px) minmax(0,1fr) clamp(44px,14vw,62px);gap:6px;align-items:center;padding:9px;border:1px solid #544836;border-radius:8px;background:radial-gradient(ellipse at 50% 42%,#6c4821,#1a1919 65%,#101216)}
.wear-slots{display:grid;align-content:start;gap:5px;align-self:start}
.wear-dialog .wear-slot{position:relative;min-width:0;width:100%;min-height:0;aspect-ratio:1;display:grid;place-items:center;padding:2px;border-color:#504e4b;background:#111820;color:#b9c6d1;font-size:10px}
.wear-dialog .wear-slot.is-equipped{background:#121114}
.wear-dialog .wear-slot.is-empty{border-color:#63563f;background:radial-gradient(ellipse at 50% 35%,#29251e,#141310 72%);color:#b5aa96}
.wear-slot.is-equipped{touch-action:pan-y pinch-zoom;user-select:none;-webkit-touch-callout:none}
.wear-slot.is-equipped img{pointer-events:none}
@media(prefers-reduced-motion:no-preference){
 .wear-slot.is-holding::after{content:"";position:absolute;inset:1px;pointer-events:none;border:2px solid #ffe2a0;border-radius:5px;animation:wear-hold .5s linear both}
 @keyframes wear-hold{from{opacity:0}to{opacity:1}}
}
.wear-slot.is-empty .wear-slot-placeholder{position:absolute;inset:8% 21% auto;width:58%;height:58%}
.wear-slot-label{position:absolute;inset:auto 1px 7%;line-height:1.2;white-space:nowrap}
.wear-dialog .wear-slot.is-empty:hover:not(:disabled){border-color:#c49e5c;color:#f5dfad}
.wear-dialog .wear-slot:disabled{cursor:default}
.wear-slot img{width:100%;height:100%;object-fit:contain}
.wear-dialog .wear-slot.mythic{border-color:#dfae54}
.wear-dialog .wear-slot.legendary{border-color:#a980d7}
.wear-dialog .wear-slot.heroic{border-color:#c46872}
.wear-dialog .wear-slot[aria-pressed=true]{outline:2px solid #ffe2a0;outline-offset:1px}
.wear-level{position:absolute;right:2px;bottom:2px;padding:0 2px;border-radius:3px;background:#0b1524;color:#73ccff;font-size:12px;line-height:1.2}
.wear-character{display:grid;justify-items:center;align-content:center;gap:10px;min-width:0}
.wear-character img{width:100%;height:clamp(110px,35vh,270px);object-fit:contain}
.wear-character select{max-width:100%;padding:0 6px;font-size:12px}
.wear-footer{margin-top:8px;min-height:44px;flex-wrap:wrap}
.wear-slot-actions{display:flex;flex-wrap:wrap;gap:6px;margin-inline-start:auto}
.wear-slot-actions[hidden]{display:none}
.wear-slot-actions button{white-space:nowrap}
.wear-slot-actions button:first-child{border-color:#aa884d;background:#3b3020}
@media(max-width:480px){
 .wear-footer .wear-status{flex-basis:100%}
 .wear-slot-actions button{padding-inline:8px}
}
.wear-status{margin:0;font-size:13px;overflow-wrap:anywhere}
.wear-dialog :focus-visible,.wear-launch:focus-visible{outline:2px solid #ffe2a0;outline-offset:2px}
.wear-detail-launch{min-height:44px;margin:0 0 10px;padding:0 12px;border:1px solid #967743;border-radius:6px;background:#3b3020;color:#f5dfad;cursor:pointer}
.wear-equip-action{display:inline-flex;align-items:center;justify-content:center;gap:8px;margin:0 0 0 auto;border-color:#e0bc76;background:#624720;color:#fff1cc;font:inherit;font-weight:700;white-space:nowrap}
.wear-equip-action:hover{background:#78582a}
.wear-equip-action:focus-visible{outline:2px solid #ffe2a0;outline-offset:2px}
.wear-equip-level{padding:3px 6px;border:1px solid #ad8a4e;border-radius:4px;background:#34291b;color:#ffe298;font-variant-numeric:tabular-nums}
.sg-catalog-detail .sg-item-detail > .wear-item-header{gap:8px}
.sg-item-detail .wear-item-header h2{overflow-wrap:anywhere;word-break:keep-all}
.sg-item-detail .wear-item-header > .wear-item-actions{display:flex;align-items:center;flex:none;gap:6px}
.sg-item-detail .wear-item-header .wear-item-actions button{align-self:center;margin:0;padding:0 10px;border:1px solid #aa884d;border-radius:6px;background:#3b3020;color:#f5dfad;font:700 13px/1.25 "Malgun Gothic",sans-serif;white-space:nowrap}
.sg-item-detail .wear-item-header .wear-item-actions button:hover{background:#594322}
.sg-item-detail .wear-item-header .wear-item-actions button:focus-visible{outline:2px solid #ffe2a0;outline-offset:2px}
@media(max-width:480px){
 .sg-catalog-detail .sg-item-detail > .wear-item-header{display:grid;grid-template-columns:auto minmax(0,1fr) auto;padding-inline:10px;gap:6px 8px}
 .sg-item-detail .wear-item-header > .wear-item-actions{grid-column:1/-1;grid-row:2;justify-content:flex-end}
 .sg-item-detail .wear-item-header > button{grid-column:3;grid-row:1}
}
@media(max-width:480px){.wear-equip-action{flex:1 0 auto;margin-inline-start:0;padding-inline:8px}}
.wear-dialog .wear-slot.is-incompatible{border-style:dashed}
.wear-slot.is-incompatible img{opacity:.45}
.wear-picker{margin-top:8px;padding:10px;border:1px solid #6f6048;border-radius:7px;background:#192431}
.wear-picker h3{margin:0 0 8px;color:#fae3ab;font-size:15px}
.wear-picker input{box-sizing:border-box;width:100%;min-height:44px;margin-bottom:8px;padding:0 8px;border:1px solid #566e82;border-radius:6px;background:#111b26;color:#ecedf3;font-size:16px}
.wear-picker-fields{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:4px}
.wear-picker-fields :is(select,button){min-width:0;padding-inline:5px;font-size:13px}
.wear-picker-fields button{background:#503e25}
.wear-stage.wear-special-stage{grid-template-columns:minmax(0,1fr);justify-items:center;gap:20px;padding:24px 10px;background:radial-gradient(ellipse at 50% 22%,#67502e,#142433 54%,#10151d)}
.wear-special-stage .wear-character[hidden]{display:none}
.wear-special-stage .wear-slots{grid-template-columns:repeat(3,clamp(48px,16vw,65px));gap:8px}
.wear-special-stage .wear-slots:last-child{grid-template-columns:repeat(2,clamp(48px,16vw,65px));gap:12px 22px}
.wear-special-stage .wear-slots:first-child .wear-slot:nth-child(2){box-shadow:0 0 12px #e8b55780;border-color:#ce9f50}

.wear-choice-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:6px;max-height:340px;overflow:auto;overscroll-behavior:contain}.wear-choice-grid .wear-choice-card{display:flex;align-items:center;gap:7px;min-height:54px;padding:7px;text-align:left;font-size:13px;color:#e8edf4}.wear-choice-card img{width:34px;height:34px;object-fit:contain}.wear-choice-card[aria-pressed=true]{border-color:#e8c17a;background:#503e25}.wear-choice-count{font-size:13px;color:#b8cad8}.sg-compare-choice-search{box-sizing:border-box;width:100%;min-height:44px;margin:10px 0;padding:8px 12px;border:1px solid #566e82;border-radius:8px;background:#111b26;color:#ecedf3;font-size:16px}

.wear-dialog.has-stat-panel{width:min(1160px,calc(100% - 24px))}.catalog-wear-workspace{display:grid;grid-template-columns:minmax(0,1fr);gap:16px;align-items:start}.catalog-wear-fitting,.catalog-wear-stats{min-width:0}.catalog-wear-stats{border:1px solid #476171;border-radius:10px;background:#101d28;overflow:hidden}.catalog-wear-stats iframe{display:block;width:100%;height:620px;border:0}.catalog-wear-fitting .wear-stage{max-width:440px;margin-inline:auto}.catalog-wear-fitting .wear-tabs{max-width:460px;margin-inline:auto}@media(min-width:900px){.catalog-wear-workspace{grid-template-columns:minmax(300px,440px) minmax(0,1fr)}.catalog-wear-fitting{max-height:calc(92dvh - 86px);overflow:auto;overscroll-behavior:contain}.catalog-wear-stats iframe{height:calc(92dvh - 90px);min-height:420px}}

.wear-picker-fields.has-blessing{grid-template-columns:minmax(0,1fr) 54px 82px 48px}
.wear-blessing-select{border-color:#b69759;color:#ffdf9b;font-weight:700}
.wear-blessing-select[hidden]{display:none!important}
@media(max-width:520px){.wear-picker-fields.has-blessing{grid-template-columns:1fr 1fr auto}.wear-picker-fields.has-blessing>select:first-child{grid-column:1/-1}}
