/* Original BMP sprites and native coordinates; HTML owns live text and input. */
.bottom-bar-overlay[data-window="item-service"]:has(.is-native-npc-service){background:transparent;justify-content:center}
.bottom-bar-overlay[data-window="item-service"] .bottom-bar-dialog.is-native-npc-service{width:auto;max-width:100%;max-height:none;padding:0;border:0;background:transparent;box-shadow:none;overflow:visible}
.is-native-npc-service>h2,.is-native-npc-service>.bottom-bar-close,.is-native-npc-service>.inventory-window-handle{display:none}
.is-native-npc-service>.bottom-bar-dialog-content{overflow:visible;font:12px/16px SimSun,"宋体",serif}
.npc-service-root{position:relative;max-width:100%;color:#fff;font:12px/16px SimSun,"宋体",serif}
.npc-service-group{display:flex;width:max-content;align-items:flex-start;gap:12px}
.npc-service-board{width:257px;height:457px;position:relative;flex:none}
.npc-service-background{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;user-select:none}
.npc-service-drag-handle{position:absolute;left:20px;right:30px;top:3px;height:30px;z-index:2;cursor:move;touch-action:none}
.npc-service-drag-handle:focus-visible{outline:1px solid #fff3aa;outline-offset:-2px}
.npc-service-title{position:absolute;left:0;top:5px;width:257px;height:40px;padding:0!important;margin:0!important;display:flex;align-items:center;justify-content:center;font:12px/16px SimSun,"宋体",serif;color:rgba(158,249,228,.7843137255);pointer-events:none}
.npc-service-close,.npc-service-bag-close,.npc-service-count-close{position:absolute;padding:0;border:0;background:transparent;cursor:pointer;z-index:4}
.npc-service-close{left:227px;top:4px;width:18px;height:18px}
.npc-service-close:hover,.npc-service-bag-close:hover,.npc-service-count-close:hover{background:#fff3;outline:1px solid #fff8}
.npc-service-root button:focus-visible{outline:2px solid #fff3aa;outline-offset:-1px}
.npc-service-root button:disabled{cursor:default}
.npc-dialogue-native-text{position:absolute;left:21px;top:54px;width:206px;height:220px;overflow:auto;white-space:pre;overflow-x:hidden;margin:0!important;color:#fff;text-shadow:1px 1px #000c;font:12px/16px SimSun,"宋体",serif;scrollbar-width:thin;scrollbar-color:#7087ba transparent}
.npc-dialogue-native-choice{position:absolute;left:32px;width:193px;height:17px;line-height:17px;border:0;padding:0;background:url('assets/npc-service/npc_box_btn_img.png') center/193px 17px no-repeat;color:rgba(158,249,228,.7843137255);font:12px/17px SimSun,"宋体",serif;cursor:pointer;text-shadow:1px 1px #000c;white-space:nowrap}
.npc-dialogue-native-choice:hover:enabled{filter:brightness(1.5);color:white}.npc-dialogue-native-choice:active:enabled{filter:brightness(.8)}
.npc-dialogue-native-choice:disabled{opacity:.5}
.npc-warehouse-tab{position:absolute;top:50px;width:55px;height:22px;padding:0;border:0;background:transparent;color:transparent;font:12px SimSun,serif;cursor:pointer}
.npc-warehouse-tab:hover:enabled{background:#ffed9015}.npc-warehouse-tab[aria-pressed="true"]{cursor:default}
.npc-warehouse-cell img{width:32px;height:32px}.npc-warehouse-cell .bottom-bar-quantity{font:10px/11px SimSun,serif;text-shadow:1px 1px black}
.npc-warehouse-money{position:absolute;left:48px;top:421px;width:32px;height:32px;padding:0;border:0;background:transparent;cursor:pointer}
.npc-warehouse-money:hover:enabled,.inventory-service-money:hover:enabled{outline:1px solid #fff3af;background:#ffffbb15}
.npc-warehouse-balance{position:absolute;left:81px;top:427px;width:125px;height:16px;padding:0;margin:0!important;color:rgba(158,249,228,.7843137255);text-align:right;font:12px/16px SimSun,"宋体",serif;overflow:hidden;white-space:nowrap}
.npc-service-feedback{position:absolute;left:30px;top:410px;width:198px;max-height:18px;overflow:hidden;margin:0!important;color:#ffd99a;font:10px/16px SimSun,serif;text-align:center;background:#001039b8;z-index:3}
.npc-service-feedback:empty{display:none}
.npc-service-backpack{position:relative;width:295px;height:494px;padding:0;background:transparent;flex:none;color:#9ef9e4}
.npc-service-bag-title{position:absolute;right:0;top:5px;width:295px;height:27px;margin:0!important;padding:0!important;text-align:center;font:12px/27px SimSun,"宋体",serif;z-index:3;pointer-events:none}
.npc-service-bag-close{right:11px;top:3px;width:18px;height:18px;background:url('assets/inventory/web_btn_close.png') center/18px 18px no-repeat}
.npc-service-bag-content{width:100%;position:relative;overflow:visible}
.npc-service-backpack .inventory-money{color:#9ef9e4}
.npc-service-backpack .inventory-cell:disabled{opacity:1}
.inventory-service-money{position:absolute;left:42px;top:465px;width:32px;height:32px;padding:0;border:0;background:transparent;cursor:pointer;z-index:2}
.npc-service-mobile-tabs{display:flex;justify-content:center;gap:12px;margin-bottom:6px}
.npc-service-mobile-tabs button{border:1px solid #bba040;background:#00163dcc;color:rgba(158,249,228,.7843137255);padding:7px 14px;font:14px SimSun,serif;cursor:pointer}
.npc-service-mobile-tabs button[aria-pressed="true"]{color:#ffe273;border-color:#ffe273}
.npc-service-root [hidden]{display:none!important}
.npc-service-amount-layer{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;z-index:12;background:#0002}
.npc-service-amount{position:relative;width:235px;height:258px;flex:none;box-shadow:0 4px 16px #0008;font:12px/16px SimSun,"宋体",serif}
.npc-service-amount-title{position:absolute;left:18px;top:5px;width:195px;height:24px;margin:0!important;padding:0;text-align:center;font:12px/24px SimSun,"宋体",serif;color:rgba(158,249,228,.7843137255);overflow:hidden;white-space:nowrap}
.npc-service-count{position:absolute;left:65px;top:100px;width:120px;height:16px;box-sizing:border-box;margin:0;padding:0;border:0;border-radius:0;background:transparent;color:#fff;text-align:center;font:12px/16px SimSun,"宋体",serif;appearance:textfield}
.npc-service-count::-webkit-inner-spin-button{appearance:none}.npc-service-count:focus{outline:1px solid #ffe385}
.npc-service-count-confirm,.npc-service-count-cancel{position:absolute;top:221px;width:50px;height:20px;padding:0;border:0;background:transparent;cursor:pointer}
.npc-service-count-confirm{left:64px}.npc-service-count-cancel{left:130px}.npc-service-count-confirm:hover,.npc-service-count-cancel:hover{background:#ffffbb19;outline:1px solid #d9e6a4}
.npc-service-count-close{left:214px;top:0;width:18px;height:18px}
.npc-service-count-error{position:absolute;left:20px;top:135px;width:195px;margin:0!important;text-align:center;color:#ffd88f;font:11px/16px SimSun,serif}
@media(prefers-reduced-motion:no-preference){.npc-service-root button:active:enabled{filter:brightness(.8)}}


.npc-service-title,.npc-warehouse-balance,.npc-service-bag-title{text-shadow:1px 1px rgba(0,0,0,.7843137255)}
.npc-shop-cell img{width:32px;height:32px}
.npc-shop-cell.is-unavailable img{filter:grayscale(1);opacity:.45}
.npc-shop-cell .inventory-unknown{font-size:7px}
.npc-shop-pages{position:absolute;left:25px;top:425px;width:210px;height:23px;display:flex;align-items:center;justify-content:space-between;color:#9ef9e4;font:11px SimSun,serif}
.npc-shop-pages button{border:1px solid #829ac0;padding:2px 6px;background:#061330;color:#9ef9e4;cursor:pointer;font:11px SimSun,serif}
.npc-shop-pages button:disabled{opacity:.45}
.is-shop .npc-service-feedback{top:53px;font-size:10px;max-height:17px}
.is-shop-amount .npc-service-count{left:56px;top:76px;width:123px;height:17px;font:12px/17px SimSun,"宋体",serif}
.is-shop-amount .npc-service-count:focus{outline-offset:-1px}
.npc-service-shop-total{position:absolute;left:56px;top:131px;width:123px;height:13px;margin:0!important;text-align:center;font:12px/13px SimSun,"宋体",serif;color:rgba(158,249,228,.7843137255);white-space:nowrap;text-shadow:1px 1px #000c}
.npc-service-shop-price-hint{position:absolute;left:20px;top:164px;width:195px;margin:0!important;text-align:center;font:10px/15px SimSun,serif;color:#9ef9e4}
.npc-service-shop-other-costs{position:absolute;left:20px;top:188px;width:195px;max-height:30px;overflow:auto;margin:0!important;text-align:center;font:10px/13px SimSun,serif;color:#e4dca3}
.is-shop-amount .npc-service-count-error{top:147px;font-size:10px}
.inventory-service-price{white-space:normal}
.npc-synthesis-cell{border:0!important;background:transparent!important;padding:0}
.npc-synthesis-cell img{width:32px;height:32px}
.npc-synthesis-cell:hover:enabled{outline:1px solid #ffe79b;background:#ffe79b22!important}
.npc-synthesis-confirm,.npc-synthesis-cancel{position:absolute;top:411px;width:50px;height:20px;padding:0;border:0;background:transparent;cursor:pointer}
.npc-synthesis-confirm{left:65px}.npc-synthesis-cancel{left:142px}
.npc-synthesis-confirm:hover:enabled,.npc-synthesis-cancel:hover:enabled{background:#ffffbb22;outline:1px solid #fff0a0}
.npc-synthesis-confirm:disabled,.npc-synthesis-cancel:disabled{background:#02051d40}
.npc-synthesis-cost{position:absolute;left:20px;top:351px;width:217px;margin:0!important;text-align:center;font:11px/16px SimSun,serif;color:#9ef9e4;white-space:nowrap}
.is-synthesis .npc-synthesis-feedback{left:15px;top:388px;width:227px;max-height:18px;font-size:10px}
.npc-service-backpack .inventory-cell.is-synthesis-registered img{filter:grayscale(1);opacity:.45}
.npc-service-backpack .inventory-cell.is-synthesis-registered:after{content:'登';position:absolute;left:1px;top:0;color:#ffe48a;font:10px/11px SimSun,serif;text-shadow:1px 1px #000}

