.ew-exchange{position:fixed;inset:0;z-index:100100;background:#061216b8;display:grid;place-items:center;padding:14px;color:#e6dec4;box-sizing:border-box}.ex-panel{box-sizing:border-box;width:min(1100px,95vw);max-height:90dvh;background:#183036;border:2px solid #b7a16c;box-shadow:0 0 0 4px #172021,0 18px 70px #0009;display:flex;flex-direction:column;min-height:0;padding:12px;gap:8px}.ew-exchange button,.ew-exchange select,.ew-exchange input,.ex-confirm button{font:inherit;font-size:14px;color:#e7dcba;background:#243c3b;border:1px solid #8f815a;padding:8px;box-sizing:border-box;min-width:0}.ew-exchange button,.ex-confirm button{cursor:pointer;box-shadow:inset 0 1px #647466,inset 0 -3px #122325}.ew-exchange button.active{background:#655639;color:#ffe1a0}.ew-exchange button:disabled{opacity:.45;cursor:default}.ex-panel>header,.ex-main-tabs,.ex-tabs,.ex-between,.ex-actions{display:flex;gap:6px;align-items:center}.ex-panel>header{flex:none;border-bottom:1px solid #8f815a;padding-bottom:8px}.ex-main-tabs{margin-right:auto}.ex-main-tabs button{min-width:90px}.ex-close{font-size:22px!important}.ex-equipment{display:flex;flex-direction:column;gap:8px;min-height:0}.ew-exchange [hidden]{display:none!important}.ex-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(79px,1fr));grid-auto-rows:max-content;align-content:start;gap:6px;overflow:auto;padding:3px;min-height:0;flex:1;scrollbar-gutter:stable}.ex-level,.ex-quality,.ex-upgrade,.ex-price{position:absolute;font-size:10px;line-height:1.2;background:#061016dd;text-shadow:1px 1px #000;pointer-events:none;padding:0 2px;white-space:nowrap}.ex-level{top:2px;left:2px}.ex-quality{bottom:2px;left:2px;color:var(--quality)}.ex-upgrade{top:2px;right:2px}.ex-price{bottom:2px;right:2px;font-size:11px;color:#f3d28b;max-width:65%;overflow:hidden;text-overflow:ellipsis}.ex-detail{padding:12px;background:#1b3033;border:1px solid #62756d;overflow:auto;min-width:0;min-height:0;line-height:1.55;overscroll-behavior:contain;scrollbar-gutter:stable}.ex-trade-info{border-top:1px solid #657369;margin-top:10px;padding-top:10px}.ex-seller{display:flex;align-items:center;gap:10px;font-size:13px}.ew-exchange .ex-seller-link{padding:2px 5px;border:0;box-shadow:none;background:none;text-decoration:underline;text-underline-offset:3px;color:#e2c779}.ex-exact-price{color:#f1d08e}.ex-list-price{display:flex;align-items:center;gap:10px;font-size:13px}.ex-list-price input{flex:1;max-width:180px}.ex-detail-actions{display:flex;gap:8px;padding:10px 0 2px}.ex-detail-actions button{flex:1}.ex-panel>footer{display:flex;align-items:center;gap:8px;font-size:11px;flex:none}.ex-panel>footer button{font-size:12px;padding:5px 8px}.ex-muted{font-size:12px;color:#aebdab}.ex-empty{grid-column:1/-1;text-align:center;padding:24px}.ex-resources{overflow:auto;min-height:180px;max-height:68dvh}.ex-transfer{border:1px solid #9b895d;background:#0e2229;padding:14px;overflow:auto;max-height:65dvh;min-height:0}.ex-between{justify-content:space-between;margin-bottom:12px}.ex-transfer-fields{display:flex;gap:6px;flex-wrap:wrap}.ex-transfer-fields input{width:150px}.ex-transfer-history{font-size:12px;max-height:40dvh;overflow:auto}.ex-confirm-overlay{position:fixed;inset:0;z-index:100600;display:grid;place-items:center;background:#000a;padding:16px;color:#e9ddbe}.ex-confirm{box-sizing:border-box;width:min(450px,94vw);max-height:85dvh;overflow:auto;padding:22px;background:#173138;border:2px solid #ad9760;box-shadow:0 0 0 4px #142327}.ex-confirm p{overflow-wrap:anywhere;font-size:14px}.ex-actions button{flex:1}.ex-panel input{font-size:16px}.ex-confirm-overlay h3{margin:0 0 10px}
@media(max-width:600px) and (orientation:portrait){.ew-exchange{padding:6px}.ex-panel{width:96vw;max-height:92dvh;padding:8px;gap:6px}.ex-main-tabs button{min-width:60px;padding:8px}.ex-list{grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;padding:3px}.ex-detail{flex:1;padding:10px}.ex-tabs button{flex:1;padding:6px 3px;font-size:12px}.ex-transfer-fields>*{flex:1 1 120px}.ex-panel>footer{font-size:10px}.ex-panel>footer button{max-width:95px}}
@media(orientation:landscape) and (max-height:600px){.ew-exchange{padding:5px}.ex-panel{max-height:94dvh;padding:6px;gap:4px}.ex-panel>header{padding-bottom:3px}.ex-panel button,.ex-panel select{padding:5px}.ex-tabs button{padding:4px 10px;font-size:12px}.ex-list{grid-template-columns:repeat(auto-fill,minmax(64px,1fr));gap:5px}.ex-detail{padding:8px}.ex-resources,.ex-transfer{max-height:65dvh}.ex-panel>footer{font-size:10px}}

/* Same compact square artwork as preparation; the price has its own row. */
.ew-exchange .ex-list{grid-template-columns:repeat(auto-fill,58px);justify-content:start;gap:6px}
@media(max-width:600px) and (orientation:portrait){.ew-exchange .ex-list{grid-template-columns:repeat(auto-fill,48px);gap:5px}}

body.ew-trade-shop #service-modal .ws-nav>.ws-tabs{display:none!important}.ex-shop-tabs{display:flex;gap:5px;flex:none;padding:0 45px 8px 0;border-bottom:1px solid #786c47}.ex-shop-tabs button{padding:7px 10px;color:#ead7a4;background:#233a3c;border:1px solid #7c775a}.ex-shop-tabs button.active{background:#5b5032;border-color:#d2b571}body.ew-trade-shop #service-modal .ex-shop-tabs{border-bottom:0;margin:0;padding:0 44px 0 0;min-width:0;flex-wrap:nowrap;overflow:auto}body.ew-trade-shop #service-modal .ex-shop-tabs button{white-space:nowrap;min-width:0}body.ew-trade-shop #service-modal .ws-nav{position:relative}.ew-exchange[hidden]{display:none!important}

body.ew-trade-shop #service-modal .ws-nav{display:block}body.ew-trade-shop #service-modal .ws-title-row{position:absolute;right:0;top:0;margin:0;padding:0}body.ew-trade-shop #service-modal .ex-shop-tabs{width:100%;box-sizing:border-box}

.ex-confirm-overlay[popover]{inset:0!important;margin:0!important;width:100vw!important;height:100dvh!important;max-width:none!important;max-height:none!important;border:0;padding:16px;box-sizing:border-box;color:#eee3c6}.ex-confirm-overlay[popover]:popover-open{display:flex;align-items:center;justify-content:center}.ex-confirm-overlay::backdrop{background:transparent}.ew-list-batch{width:min(640px,100%)!important;max-height:85dvh;display:flex;flex-direction:column}.ew-list-rows{min-height:0;overflow:auto}.ew-list-row{display:grid;grid-template-columns:56px minmax(0,1fr) 110px;gap:10px;align-items:center;padding:8px 0;border-bottom:1px solid #52605a}.ew-list-row>div{min-width:0;overflow-wrap:anywhere}.ew-list-row small{display:block;color:#d6bf86}.ew-list-row input{width:100%;min-width:0;box-sizing:border-box}.ew-list-batch .ex-actions button{width:auto;min-height:40px;flex:1}@media(max-width:420px){.ew-list-row{grid-template-columns:44px minmax(0,1fr) 82px;gap:6px;font-size:12px}}

.ex-main-tabs{min-width:0;flex:1;overflow-x:auto;scrollbar-width:none}.ex-main-tabs button{flex:none}.ex-close{flex:none}
.ex-upgrade{top:auto;bottom:2px;right:2px;color:#ffe28b}
/* Same square as preparation. Price is always outside the artwork. */
.ew-exchange{--trade-equip-size:60px}
.ew-exchange .ex-list{grid-template-columns:repeat(auto-fill,var(--trade-equip-size))!important}
.ex-price>img{width:12px;height:12px;object-fit:contain;image-rendering:pixelated}
@media(max-width:700px){.ew-exchange{--trade-equip-size:48px}}
@media(max-width:800px),(pointer:coarse){
 .ew-exchange{padding:4px;padding-top:max(4px,env(safe-area-inset-top));padding-bottom:max(4px,env(safe-area-inset-bottom))}
 .ex-panel{max-height:calc(100dvh - 12px)!important;width:calc(100vw - 12px);padding:6px;gap:5px}
 .ex-detail{display:flex;flex-direction:column;overflow:hidden!important}
 .ex-detail-actions{flex:none;position:sticky;bottom:0;background:#1b3033;z-index:2;margin-top:auto}
}
.ex-detail{display:flex;flex-direction:column;overflow:hidden!important}
.ex-detail-actions{flex:none;margin-top:auto;background:#1b3033}
/* Research account tab keeps the navigation scrollable on narrow screens. */
.ex-panel>header .ex-main-tabs{min-width:0;flex:1;overflow-x:auto;flex-wrap:nowrap}.ex-panel>header .ex-main-tabs button,.ex-panel>header .ex-close{flex-shrink:0}

.ew-exchange,.ex-confirm{font-family:EmberLanternText,"Microsoft YaHei",sans-serif;font-size:14px;line-height:1.4}.ew-exchange :is(button,input,select){font-family:inherit}
/* Preparation-style trading workspace: bounded squares, fixed footer and two filters. */
.ew-exchange{font-family:EmberLanternText,"Microsoft YaHei",sans-serif;--trade-equip-size:60px}
.ex-list{gap:6px!important;padding:5px!important;scrollbar-gutter:auto!important}.ex-selection-mark{position:absolute;top:1px;right:1px;z-index:5;font-size:12px;line-height:15px;padding:0 3px;color:#fff5b2;background:#624b14;border:1px solid #ffe4a3;pointer-events:none}
.ex-detail-footer,.ex-batch-footer{display:flex;align-items:center;justify-content:flex-end;gap:8px;padding:6px 0 2px;flex:none;border-top:1px solid #657369;background:#1b3033;min-width:0}
.ex-detail-footer .ex-trade-info{display:flex;align-items:center;justify-content:flex-end;gap:4px 8px;flex-wrap:wrap;min-width:0;margin:0;padding:0;border:0;font-size:12px}
.ex-detail-footer .ex-price,.ex-batch-footer .ex-price{position:static;display:flex;align-items:center;gap:3px;max-width:none;font-size:13px}
.ex-detail-footer .ex-detail-actions{margin:0;padding:0;flex:none}.ex-detail-footer button:not(.ex-seller-link),.ex-batch-footer>button{flex:none;width:auto!important;min-width:0;white-space:nowrap;padding:6px 12px!important}
.ex-detail-footer input[name=price]{width:92px;padding:5px;font-size:16px}.ex-detail-footer .ex-seller{gap:3px}.ex-detail-footer time{flex-basis:100%;text-align:right;font-size:11px}.ex-detail{scrollbar-gutter:auto}.ex-total-volume{font-size:11px;color:#bfb491}.ex-batch-footer{font-size:12px}
@media(max-width:700px){.ew-exchange{--trade-equip-size:48px}.ex-detail-footer .ex-seller{font-size:12px}}
@media(orientation:portrait) and (max-width:800px){.ew-exchange{padding:0!important}.ex-panel{width:100vw!important;max-height:100dvh!important;height:100dvh;padding:6px;gap:5px}.ex-panel>header{padding-bottom:4px}.ex-equipment{flex:1}.ex-detail{flex:1;min-height:0;padding:8px}.ex-main-tabs button{min-width:0;padding:6px;font-size:13px}.ex-total-volume{font-size:10px}}

/* Equipment structure and typography are shared with preparation in native CSS.
   These rules only adapt the enclosing trade dialog and transaction-specific footer. */
body #game-root #ew-trade-equipment-modal.ew-exchange{position:fixed;inset:0;transform:none;width:auto;height:auto;max-width:none;max-height:none;display:grid;place-items:center;z-index:100100;padding:14px;background:#061216b8}
body #game-root #ew-trade-equipment-modal .ex-panel{position:relative;inset:auto;transform:none;width:min(1100px,95vw);height:min(90dvh,850px);max-height:90dvh;padding:12px;display:flex;flex-direction:column;gap:8px;overflow:hidden}
#game-root #ew-trade-equipment-modal .ex-equipment{flex:1;min-height:0;display:flex;flex-direction:column;gap:8px}
#game-root #ew-trade-equipment-modal .ex-content.gear-desktop{flex:1;min-height:0;height:auto;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:minmax(0,1fr)}
#game-root #ew-trade-equipment-modal .ex-browser>.gear-panel-scroll{height:100%;min-height:0;display:flex;flex-direction:column}
#game-root #ew-trade-equipment-modal .rpg-bag-browser{flex:1;min-height:0;display:flex;flex-direction:column}
#game-root #ew-trade-equipment-modal .bag-storage{flex:1;min-height:0;overflow:auto}
#game-root #ew-trade-equipment-modal #ew-trade-bag-items{overflow:visible;min-height:0;flex:0 0 auto}
#game-root #ew-trade-equipment-modal .ex-detail{display:flex;flex-direction:column;min-height:0;overflow:hidden}
#game-root #ew-trade-equipment-modal .ex-detail-scroll{flex:1;min-height:0;overflow:auto}
#game-root #ew-trade-equipment-modal .ex-detail .rpg-bag-detail{display:block!important;flex:none;min-height:0}
#game-root #ew-trade-equipment-modal .ex-detail .ws-item-comparison{display:block}
#game-root #ew-trade-equipment-modal .ex-detail .ws-gear-comparison{width:100%}
#game-root #ew-trade-equipment-modal .ex-detail .ws-gear-comparison th{text-align:left}
#game-root #ew-trade-equipment-modal .ex-detail .ws-gear-comparison td{text-align:right}
#game-root #ew-trade-equipment-modal .ex-priced-tile{min-width:0;width:var(--ws-equip-size);display:flex;flex-direction:column;gap:2px}
#game-root #ew-trade-equipment-modal .ex-priced-tile>.ex-price{position:static;display:flex;align-items:center;justify-content:center;font-size:10px;line-height:16px;gap:2px;margin:0;background:#11282c}
#game-root #ew-trade-equipment-modal .ex-priced-tile>.ex-price img{width:12px;height:12px;object-fit:contain;image-rendering:pixelated}
#game-root #ew-trade-equipment-modal .ex-detail-footer,#game-root #ew-trade-equipment-modal .ex-batch-footer{margin:0 6px 6px;flex:none}
#game-root #ew-trade-equipment-modal .ex-selection-controls{display:flex;align-items:center;justify-content:center;gap:6px;min-height:0;padding:0;border:0;background:none}
#game-root #ew-trade-equipment-modal .ex-selection-controls>button{width:auto;min-height:22px;height:22px;padding:2px 8px;font-size:12px}
#game-root #ew-trade-equipment-modal .ex-filter-bottom input[type=hidden]{display:none}
#game-root #ew-trade-equipment-modal [hidden]{display:none!important}
@media (orientation:portrait) and (max-width:800px){
 body #game-root #ew-trade-equipment-modal.ew-exchange{padding:0}
 body #game-root #ew-trade-equipment-modal .ex-panel{width:100vw;height:100dvh;max-height:100dvh;padding:6px}
 #game-root #ew-trade-equipment-modal .ex-content.gear-desktop{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) minmax(0,1fr);min-height:0}
 #game-root #ew-trade-equipment-modal .ex-detail{min-height:0}
}
@media (orientation:landscape) and (max-height:600px){body #game-root #ew-trade-equipment-modal .ex-panel{height:96dvh;max-height:96dvh;padding:6px}}

body #game-root.ui-workspace #ew-trade-equipment-modal .ex-detail>.ex-detail-footer,body #game-root.ui-workspace #ew-trade-equipment-modal .ex-detail>.ex-batch-footer{display:flex!important;flex:none!important;position:static!important}
body #game-root.ui-workspace #ew-trade-equipment-modal .ex-detail>footer[hidden]{display:none!important}
body #game-root.ui-workspace #ew-trade-equipment-modal .ex-detail .ew-detail-equipment>img{width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;object-fit:contain}
@media(orientation:portrait) and (max-width:800px){body #game-root.ui-workspace #ew-trade-equipment-modal .ex-panel{width:100vw!important;max-width:100vw!important;height:100dvh!important;max-height:100dvh!important;min-height:0!important}}
/* The market has two navigation rows; bound its panes to the remaining viewport. */
body #game-root.ui-workspace #ew-trade-equipment-modal [data-ws-route=gear] .ex-content.gear-desktop{flex:1 1 0!important;height:auto!important;min-height:0!important;max-height:none!important}
@media(orientation:portrait) and (max-width:800px){
 body #game-root.ui-workspace #ew-trade-equipment-modal [data-ws-route=gear] .ex-content.gear-desktop{grid-template-columns:minmax(0,1fr)!important;grid-template-rows:minmax(0,1fr) minmax(0,1fr)!important}
 body #game-root.ui-workspace #ew-trade-equipment-modal [data-ws-route=gear] :is(#ew-trade-inventory-panel,#ew-trade-character-panel){height:auto!important;min-height:0!important;max-height:none!important}
}

@media (min-width:1000px){body #game-root #ew-trade-equipment-modal .ex-panel{width:min(1240px,97vw)}}

/* Shared compact item rows for listing, batch purchase, repricing and cancellation. */
.ex-confirm.ew-list-batch{width:min(760px,96vw)!important;max-height:90dvh}
.ew-list-batch .ew-list-row{grid-template-columns:60px minmax(60px,1fr) 110px;gap:8px}
.ew-list-batch .ex-duration-row,.ew-list-batch .ex-reprice-row{grid-template-columns:60px minmax(60px,1fr) 90px 120px}
.ew-list-row .ex-item-art{width:60px!important;height:60px!important;min-width:60px!important}
.ew-list-row input,.ex-duration select{box-sizing:border-box;width:100%!important;min-width:0!important}
.ex-duration{display:flex;flex-direction:column;gap:3px;min-width:0}
.ex-duration input[hidden]{display:none!important}
.ex-batch-total{display:flex;gap:8px;align-items:center;justify-content:flex-end;flex-wrap:wrap;margin:8px 0}
.ex-current-price{min-width:0;display:flex;flex-direction:column;gap:4px}.ex-current-price small{white-space:nowrap}
.ex-expiry{font-size:11px;opacity:.85}
@media(max-width:600px){.ew-list-batch .ex-duration-row,.ew-list-batch .ex-reprice-row{grid-template-columns:54px minmax(50px,1fr) 70px 85px;gap:4px}.ew-list-batch .ew-list-row{font-size:12px}.ex-confirm-overlay[popover]{padding:6px}.ew-list-batch .ex-item-art{width:54px!important;height:54px!important;min-width:54px!important}.ew-list-batch .ex-actions{flex-shrink:0}.ew-list-batch .ew-list-rows{overflow:auto}}

/* Confirmation content lives above the game root; keep icon and amount anchors local. */
.ew-list-batch .ex-item-art{position:relative;display:block;box-sizing:border-box;border:1px solid var(--quality,#9a8253);background:#102127;overflow:hidden}
.ew-list-batch .ex-item-art>img{width:100%;height:100%;object-fit:contain;image-rendering:pixelated}
.ew-list-batch .ex-item-art small{position:absolute;font-size:9px;line-height:12px;padding:0 1px;background:#102127de;color:var(--quality,#e7dcba);white-space:nowrap}
.ew-list-batch .ex-level{top:1px;left:1px}.ew-list-batch .ex-quality{left:1px;bottom:1px}.ew-list-batch .ex-upgrade{top:auto;bottom:1px;right:1px}
.ew-list-batch .ex-price{position:static;display:inline-flex;align-items:center;gap:3px;max-width:none;background:none;font-size:12px}
.ew-list-batch :is(input,select){font:inherit;font-size:12px;color:#e7dcba;background:#243c3b;border:1px solid #8f815a;padding:6px 4px;border-radius:0;min-height:30px}
.ew-list-batch .ex-new-price{display:flex;flex-direction:column;gap:4px}.ew-list-batch label>small{font-size:11px;font-weight:normal}

/* Selected equipment uses the preparation inventory's compact summary. */
.ex-batch-summary{flex:1;min-height:0;overflow:auto;display:grid;grid-template-columns:repeat(auto-fill,60px);grid-auto-rows:max-content;gap:8px;align-content:start;padding:8px}
.ex-batch-summary[hidden]{display:none}.ex-summary-tile{width:60px;padding:0!important;border:0!important;background:none!important;display:flex;flex-direction:column;align-items:center;gap:3px}.ex-summary-tile .ex-item-art{width:60px!important;height:60px!important;min-width:60px!important;box-sizing:border-box}.ex-summary-tile .ex-copper-price{font-size:11px}.ex-batch-summary .ex-empty{grid-column:1/-1}.ex-selection-mark{pointer-events:none}

.ex-summary-tile .ex-item-art{position:relative;display:block;border:1px solid var(--quality);background:#102127;overflow:hidden}.ex-summary-tile .ex-item-art>img{width:100%;height:100%;object-fit:contain;image-rendering:pixelated}.ex-summary-tile .ex-item-art small{position:absolute;font-size:9px;line-height:12px;padding:0 1px;background:#102127de;color:var(--quality);white-space:nowrap}.ex-summary-tile .ex-level{top:1px;left:1px}.ex-summary-tile .ex-quality{bottom:1px;left:1px}.ex-summary-tile .ex-upgrade{top:auto;bottom:1px;right:1px}.ex-summary-tile>.ex-price{position:static;display:flex;align-items:center;justify-content:center;font-size:10px;gap:2px;background:#11282c;margin:0}

#game-root #ew-trade-equipment-modal .ex-batch-summary{display:grid!important;grid-template-columns:repeat(auto-fill,var(--ws-equip-size,60px));overflow-y:auto!important;scrollbar-width:thin;scrollbar-color:#aa9260 #102127;box-sizing:border-box}#game-root #ew-trade-equipment-modal .ex-batch-summary[hidden]{display:none!important}#game-root #ew-trade-equipment-modal .ex-summary-tile{width:var(--ws-equip-size,60px)}#game-root #ew-trade-equipment-modal .ex-summary-tile .ex-item-art{width:var(--ws-equip-size,60px)!important;height:var(--ws-equip-size,60px)!important;min-width:0!important}

/* Price occupies the full icon width; no inherited 65% crop or shrinking coin. */
#game-root #ew-trade-equipment-modal .ex-priced-tile>.ex-price,.ex-summary-tile>.ex-price{width:100%;max-width:none;box-sizing:border-box;min-height:18px;flex-shrink:0;overflow:visible;text-overflow:clip;padding:1px 0;line-height:16px}
#game-root #ew-trade-equipment-modal .ex-priced-tile>.ex-price img,.ex-summary-tile>.ex-price img{flex:0 0 12px}

/* Recipe headings retain the equipment-sized art; help stays a quiet inline control. */
#game-root #ew-trade-equipment-modal .ex-detail .item-heading[data-item-kind]:not([data-item-kind="equipment"]){display:grid!important;grid-template-columns:60px minmax(0,1fr);align-items:center;gap:10px}
#game-root #ew-trade-equipment-modal .ex-detail .item-heading[data-item-kind] > div{min-width:0;width:auto}
#game-root #ew-trade-equipment-modal .ex-detail .mg-help{display:inline-flex!important;align-items:center;justify-content:center;width:18px!important;min-width:18px!important;height:18px!important;min-height:18px!important;padding:0!important;margin:0 0 0 4px!important;border:1px solid #69766b!important;border-radius:50%;background:transparent!important;color:#b7b7a0;font-size:11px;line-height:1;font-family:inherit;vertical-align:middle;box-shadow:none!important}

/* Market tabs: native horizontal touch scroll; keep close outside the scroller. */
.ew-exchange .ex-panel>header{min-width:0;overflow:hidden;touch-action:auto}
.ew-exchange .ex-main-tabs{width:0;max-width:100%;flex:1 1 0;overflow-x:auto;overflow-y:hidden;touch-action:pan-x;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;scrollbar-width:thin;scroll-padding-inline:8px;padding-block:4px;min-height:48px}
.ew-exchange .ex-main-tabs button{touch-action:pan-x;flex:0 0 auto;white-space:nowrap}
.ew-exchange .ex-close{flex:0 0 auto}

/* Shop embeds the same tabs outside .ew-exchange: keep native touch inertia. */
body.ew-trade-shop #service-modal .ex-shop-tabs{touch-action:pan-x;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;scrollbar-width:thin;scroll-padding-inline:8px;overflow-x:auto;overflow-y:hidden;min-height:48px}
body.ew-trade-shop #service-modal .ex-shop-tabs button{touch-action:pan-x;flex:0 0 auto;white-space:nowrap}

/* Limited traits use a distinct readable accent; inactive set bonuses stay muted. */
.ew-limited-effect,.ew-limited-effect p,.ew-limited-effect b{color:#ffe49b!important;font-weight:600}.ew-limited-effect{border-left:3px solid #ed8e91;background:#47352766;padding:8px 10px;line-height:1.6;opacity:1!important}

.ex-common-fields{display:flex;gap:8px;align-items:center;flex-wrap:wrap;border:1px solid #a89866;padding:8px;margin:4px 0 8px;flex-shrink:0}.ex-common-fields>button{flex:none;padding:6px 10px}.ex-common-fields>button[aria-pressed=true]{background:#675b36;border-color:#eed895}.ex-common-inputs{display:flex;gap:8px;align-items:center;flex:1;min-width:180px}.ex-common-inputs[hidden]{display:none!important}.ex-common-inputs>input{width:110px;min-width:70px;flex:1}.ex-common-inputs>.ex-duration{flex:1;max-width:200px}.ex-new-price .ex-duration{margin-top:5px}.ex-common-inputs input,.ex-common-inputs select{box-sizing:border-box;max-width:100%}

#game-root.ui-workspace #equipment-modal #bag-detail .ew-limited-effect,#game-root.ui-workspace #equipment-modal #bag-detail .ew-limited-effect :is(p,b),#game-root #codex-modal .ew-limited-effect,#game-root .ew-exchange .ew-limited-effect{color:#ffe49b!important;font-weight:600;opacity:1!important}
