/* Native M2 bitmap dimensions. The reference capture scales these by about 1.16. */
:root{--shell-scale:1.16}
.window-drag-handle{cursor:grab;touch-action:none;user-select:none}.window-dragging .window-drag-handle{cursor:grabbing}.window-dragging{user-select:none}.window-drag-handle:focus-visible{outline:1px dotted #fff2ba;outline-offset:-2px}
#game-tooltip{position:fixed;z-index:150;padding:8px 10px;max-width:min(320px,90vw);border:1px solid #c4a263;background:#11120bf2;color:#eee5cd;font:13px/1.6 'Microsoft JhengHei',sans-serif;white-space:pre-line;pointer-events:none;text-shadow:1px 1px #000;box-shadow:2px 3px 6px #0008}
#game-tooltip[hidden]{display:none}
/* Backpacks use the original six by ten grid, with no oversized name cards. */
#inventory-panel[data-view=bag][data-mode=inventory]{zoom:var(--shell-scale);inset:calc(100dvh / var(--shell-scale) * .285) auto auto calc(100vw / var(--shell-scale) * .15);width:180px;height:342px;max-width:none;max-height:none;padding:0;border:0;border-radius:0;background:transparent url('../../assets/interface/compact/bag.png') 0 16px/180px 326px no-repeat;box-shadow:0 2px 4px #0009;overflow:visible;color:#eee;font:11px 'Microsoft JhengHei',sans-serif}
/* 標題字避開左邊的鉚釘（2026-10-27）：bag-title.png（320 寬，鉚釘在 x 7～17）拉成 180 寬後鉚釘到 x 10，標題字從 x 13 開始。 */
#inventory-panel[data-view=bag][data-mode=inventory] .inventory-heading{position:absolute;inset:0 0 auto;height:16px;padding:0 4px 0 13px;margin:0;display:flex;gap:2px;background:url('../../assets/interface/compact/bag-title.png') center/100% 100%;border:0;box-sizing:border-box}
#inventory-panel[data-view=bag][data-mode=inventory] .inventory-heading>div:first-child{flex:1}
#inventory-panel[data-view=bag][data-mode=inventory] h2{font:12px/16px 'Microsoft JhengHei';letter-spacing:0;color:#32240b;text-shadow:none;margin:0}
#inventory-panel[data-view=bag][data-mode=inventory] #inventory-close{width:16px;height:16px;font-size:0;padding:0;background:transparent url('../../assets/interface/close.png') center/16px no-repeat;border:0;flex:none}
#inventory-panel #bag-filter-toggle{display:none}
#inventory-panel[data-view=bag][data-mode=inventory] #bag-filter-toggle{display:block;background:transparent;border:0;padding:0;width:14px;height:16px;color:#593b0c;font:bold 17px/14px serif}
#inventory-panel[data-view=bag][data-mode=inventory] .commerce-layout{display:block;margin:0;padding:0;border:0}
#inventory-panel[data-view=bag][data-mode=inventory] .inventory-body{display:block;margin:0;padding:0}
#inventory-panel[data-view=bag][data-mode=inventory] :is(.commerce-tabs,.bag-view-tabs,.inventory-summary,.item-detail,.inventory-wallet,.inventory-help){display:none}
#inventory-panel[data-view=bag][data-mode=inventory] .weapon-filters{display:none;position:absolute;left:0;right:0;top:35px;background:#151812f5;z-index:5;border:1px solid #aa9360;padding:5px;gap:4px}
#inventory-panel[data-view=bag][data-mode=inventory].bag-filter-open .weapon-filters{display:flex}
#inventory-panel[data-view=bag][data-mode=inventory] .weapon-filters select{padding:3px;width:100%;font-size:10px}
#inventory-panel[data-view=bag][data-mode=inventory] .weapon-filters #weapon-unequip{display:none}
#inventory-panel[data-view=bag][data-mode=inventory] #inventory-slots{position:absolute;left:6px;top:36px;display:grid;grid-template-columns:repeat(6,28px);grid-template-rows:repeat(10,28px);gap:0;width:168px;height:280px;max-height:none;min-height:0;padding:0;margin:0;overflow:hidden;align-content:start}
#inventory-panel[data-view=bag][data-mode=inventory] .inventory-slot{position:relative;box-sizing:border-box;display:block;min-width:0;width:28px;height:28px;min-height:0;margin:0;padding:0!important;border:0!important;border-radius:0;box-shadow:none;background:transparent!important;overflow:visible;color:#fff}
#inventory-panel[data-view=bag][data-mode=inventory] .inventory-slot img{position:absolute;inset:0;display:block;width:28px;height:28px;max-width:28px;max-height:28px;object-fit:contain;filter:none;border:0;border-radius:0;pointer-events:none;image-rendering:auto}
#inventory-panel[data-view=bag][data-mode=inventory] .inventory-slot :is(span,svg){display:none}
#inventory-panel[data-view=bag][data-mode=inventory] .inventory-slot b{position:absolute;inset:auto 1px 0 auto;margin:0;padding:0;background:none;border:0;border-radius:0;font:bold 10px/11px Arial,sans-serif;text-shadow:1px 1px #000,-1px -1px #000;pointer-events:none}
#inventory-panel[data-view=bag][data-mode=inventory] .inventory-slot .equipped-mark{position:absolute;inset:0 auto auto 1px;color:#f4da79;font:7px/8px sans-serif;pointer-events:none;text-shadow:1px 1px #000}
#inventory-panel[data-view=bag][data-mode=inventory] .inventory-slot:hover,#inventory-panel[data-view=bag][data-mode=inventory] .inventory-slot[aria-current=true]{outline:1px solid #d5b36d;outline-offset:-1px;background:#ffe19513!important}
#inventory-panel .bag-drop-preview{position:relative;z-index:3;box-sizing:border-box;pointer-events:none;border:1px solid #8fe08a;background:#8fe08a2e;box-shadow:inset 0 0 0 1px #10301a99}#inventory-panel .bag-drop-preview.blocked{border-color:#ff7060;background:#ff70602e}
.bag-pages{display:none}#inventory-panel[data-view=bag][data-mode=inventory] .bag-pages{position:absolute;top:16px;left:6px;right:6px;height:20px;display:flex;justify-content:space-between;gap:2px}
#inventory-panel .bag-pages button{width:26px;height:20px;flex:none;border:0;padding:0;font:11px serif;color:transparent;background:transparent center/26px 20px no-repeat}
#inventory-panel .bag-pages button[data-sprite="1"]{background-image:url('../../assets/interface/compact/bag-tab-1-normal.png')}#inventory-panel .bag-pages button[data-sprite="2"]{background-image:url('../../assets/interface/compact/bag-tab-2-normal.png')}#inventory-panel .bag-pages button[data-sprite="3"]{background-image:url('../../assets/interface/compact/bag-tab-3-normal.png')}#inventory-panel .bag-pages button[data-sprite="4"]{background-image:url('../../assets/interface/compact/bag-tab-4-normal.png')}#inventory-panel .bag-pages button[data-sprite="5"]{background-image:url('../../assets/interface/compact/bag-tab-5-normal.png')}#inventory-panel .bag-pages button[data-sprite="6"]{background-image:url('../../assets/interface/compact/bag-tab-6-normal.png')}
#inventory-panel .bag-pages button[aria-pressed=true][data-sprite="1"]{background-image:url('../../assets/interface/compact/bag-tab-1-selected.png')}#inventory-panel .bag-pages button[aria-pressed=true][data-sprite="2"]{background-image:url('../../assets/interface/compact/bag-tab-2-selected.png')}#inventory-panel .bag-pages button[aria-pressed=true][data-sprite="3"]{background-image:url('../../assets/interface/compact/bag-tab-3-selected.png')}#inventory-panel .bag-pages button[aria-pressed=true][data-sprite="4"]{background-image:url('../../assets/interface/compact/bag-tab-4-selected.png')}#inventory-panel .bag-pages button[aria-pressed=true][data-sprite="5"]{background-image:url('../../assets/interface/compact/bag-tab-5-selected.png')}#inventory-panel .bag-pages button[aria-pressed=true][data-sprite="6"]{background-image:url('../../assets/interface/compact/bag-tab-6-selected.png')}
#inventory-panel .bag-pages button:hover{filter:brightness(1.3)}#inventory-panel[data-extra-pages=true] .bag-pages button{color:#fff;text-shadow:1px 1px #000;background-image:none;border:1px ridge #b2ab88;background-color:#27291f}
#inventory-panel[data-view=bag][data-mode=inventory] .inventory-pagination{display:none}
#inventory-panel[data-view=bag][data-mode=inventory][data-extra-pages=true] .inventory-pagination{position:absolute;left:5px;right:5px;bottom:3px;display:flex;height:14px;margin:0;font-size:8px;gap:0}
#inventory-panel[data-view=bag][data-mode=inventory] .inventory-pagination button{padding:0 2px!important;font-size:8px}
#inventory-panel[data-view=bag][data-mode=inventory] #commerce-message{position:absolute;top:100%;left:0;right:0;background:#10130be8;color:#e3ce9d;font-size:10px;padding:3px 5px;min-height:0;border:0}
#inventory-panel[data-view=bag][data-mode=inventory] #commerce-message:empty{display:none}
/* Compact skill book uses its existing original frame and can be freely moved. */
#game-systems[data-mode=skill]{zoom:calc(var(--shell-scale) * .65);inset:90px 160px auto auto}
.player-panel.classic-hud{zoom:calc(var(--shell-scale) * .48);left:8px;top:8px}
#attributes-panel{zoom:calc(var(--shell-scale) * .65);inset:165px auto auto 8px}
/* Original minimap artwork, followed by icon-only status effects. */
.right-hud{zoom:var(--shell-scale);position:fixed;right:3px;top:3px;width:130px;gap:0}
.right-hud .minimap-widget{position:relative;width:130px;padding:0;background:url('../../assets/interface/compact/minimap.png') center/100% 100%;border:0}
.right-hud #minimap-toggle{position:relative;height:16px;width:130px;margin:0;border:0;padding:0 21px;background:transparent;border-radius:0;color:#463211;font:10px/16px 'Microsoft JhengHei';display:flex;align-items:center;justify-content:space-between}
/* 標題列顯示目前地圖名稱，文字限制在框圖的橘色底條內（原圖 x 19～110），左右鉚釘與收合符號維持原位；放不下時由 main.js 縮字、最後才省略。 */
.right-hud #minimap-title{flex:1;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;text-align:left}
.right-hud #minimap-toggle svg{display:none}.right-hud #minimap-toggle .hud-chevron{position:absolute;right:6px;top:0;font:13px/16px serif}
.right-hud #map-button{display:block;background:transparent;border:0;border-radius:0;padding:0;margin:0;width:130px;height:143px;min-height:0;box-shadow:none;overflow:hidden}
.right-hud #map-button[hidden]{display:none}.right-hud #minimap{position:absolute;top:18px;left:6px;width:118px;height:118px;opacity:1}.right-hud .map-caption{position:absolute;bottom:1px;left:0;right:0;padding:0;color:#ddd;font-size:0;line-height:14px;background:#0008}.right-hud .map-caption span{font:9px/14px monospace}.right-hud .map-north,.right-hud .map-key,.right-hud .quest-widget{display:none}
body:has(#game-systems[data-mode=skill][open]) .right-hud{visibility:visible}
#active-statuses{zoom:var(--shell-scale);top:166px;right:4px;width:60px;max-height:calc(100dvh / var(--shell-scale) - 225px);display:flex;flex-flow:column wrap;align-content:flex-end;align-items:flex-end;gap:1px;overflow:visible;z-index:27;padding:0;pointer-events:none}
#active-statuses .status-chip{display:block;position:relative;flex:none;width:28px;height:28px;padding:0;margin:0;border:0;border-radius:0;background:transparent url('../../assets/interface/compact/status-slot.png') center/100% 100%;pointer-events:auto;cursor:help}
#active-statuses .status-chip img{display:block;width:26px;height:26px;object-fit:contain;image-rendering:pixelated;margin:1px}.status-chip.harmful{outline:1px solid #c45451;outline-offset:-1px}
#active-statuses .status-chip .status-count{position:absolute;right:1px;bottom:0;font:700 9px/1 sans-serif;color:#fff;text-shadow:0 0 2px #000,0 0 2px #000,0 0 1px #000;pointer-events:none}
/* Two independent bottom-left toolbars. Chat starts above them with a clear gap. */
#combat-dock,body:has(#attributes-panel[open]) #combat-dock{zoom:var(--shell-scale);position:fixed;left:2px;top:auto;bottom:0;width:368px;height:80px;display:flex;flex-direction:column;gap:0;opacity:1;z-index:25;pointer-events:none}
#combat-dock nav{box-sizing:border-box;position:relative;display:flex;align-items:center;justify-content:space-between;gap:0;height:40px;padding:11px 25px 3px 17px;background:url('../../assets/interface/compact/toolbar.png') center bottom/100% 48px no-repeat;pointer-events:auto}
#combat-dock .main-actions{width:368px}#combat-dock .extra-actions{width:239px;padding-left:16px;padding-right:20px}
#combat-dock .original-action,#combat-dock #gear-button{position:relative;inset:auto;transform:none;display:block;width:25px;height:25px;flex:none;padding:0;border:0;border-radius:50%;background:transparent;color:transparent;cursor:pointer;box-shadow:none;font-size:0}
#combat-dock .original-action img{width:25px;height:25px;display:block;pointer-events:none;image-rendering:auto}#combat-dock .original-action:hover{filter:brightness(1.4)}#combat-dock .original-action:focus-visible{outline:1px solid #fff0a4}
#classic-chat{zoom:var(--shell-scale);position:fixed;left:14px;bottom:94px;width:338px;height:106px;padding:0 2px 0 16px;box-sizing:border-box;border:0;border-radius:0;background:#10100ce0;box-shadow:none;font:11px/1.2 'Microsoft JhengHei';display:flex;flex-direction:column;pointer-events:auto;z-index:24}
#classic-chat .chat-drag-handle{display:flex;justify-content:space-between;align-items:center;position:relative;height:10px;min-height:10px;background:url('../../assets/interface/compact/chat-frame.png') center top/100% 60px no-repeat;color:#c1ae79;font:8px/10px sans-serif;padding:0 4px}
#classic-chat .chat-drag-handle button{width:10px;height:10px;padding:0;border:0;background:transparent url('../../assets/interface/minimize.png') center/10px no-repeat;cursor:pointer}
#classic-chat .chat-tabs{position:absolute;left:0;top:10px;bottom:19px;width:15px;height:auto;margin:0;display:flex;flex-direction:column;gap:2px;background:transparent;border:0}
/* 直排頁籤：兩個字直排需 18px（9px × 2），頁籤高 23px 扣框線剩 21px；三個頁籤 73px 仍在頁籤欄 77px 內。直排時行高是欄寬，設成框內寬 13px 讓字置中。英文（Map）轉 90 度直排，不再拆成兩行。 */
#classic-chat .chat-tabs button{min-width:0;width:15px;height:23px;padding:0;border:1px ridge #8a865b;border-radius:1px;background:#25291d;color:#8fd19e;font-size:9px;line-height:13px;writing-mode:vertical-rl}
#classic-chat .chat-tabs button[aria-pressed=true]{color:#f8eabe;background:#424b36}
#classic-chat #chat-log{height:auto;flex:1;min-height:0;padding:2px 3px;overflow-y:auto;font:11px/1.18 'Microsoft JhengHei';scrollbar-width:thin;scrollbar-color:#8c8359 #171913}
#chat-log p{margin:0;line-height:1.18}#chat-log p[data-channel=system]{color:#62d5a0}
#classic-chat form{box-sizing:border-box;flex:none;height:19px;gap:2px;padding:0 2px;border:1px ridge #9e895d;background:#11150be8}
#classic-chat :is(input,select){height:16px;padding:0;font:10px/16px 'Microsoft JhengHei';background:transparent}#classic-chat select{width:40px;color:#ddcfaa}#classic-chat option{background:#20251b;color:#eee}#classic-chat #chat-target{width:55px}
#classic-chat form .chat-send{width:14px;height:15px;flex:none;background:transparent url('../../assets/interface/compact/button-chat-normal.png') center/14px no-repeat}
#classic-chat #chat-error{bottom:21px;left:18px;font-size:10px;background:#111e}
#classic-chat.chat-collapsed{height:29px}#classic-chat.chat-collapsed #chat-log,#classic-chat.chat-collapsed .chat-tabs{display:none}
/* Ten bindings and four directly clickable page tabs at the lower right. */
.bottom-center{zoom:var(--shell-scale);left:auto;right:2px;bottom:0;width:370px;height:48px;transform:none;z-index:25}
.bottom-center .skillbar{position:relative;display:grid;grid-template-columns:repeat(10,28px);align-items:center;justify-content:start;gap:5px;width:370px;height:48px;padding:15px 0 3px 25px;border:0;border-radius:0;background:transparent url('../../assets/interface/hires/hotbar-ten.png') center/370px 48px no-repeat;box-shadow:none}
.skillbar .skill{display:block;width:28px;height:28px;min-width:0;min-height:0;padding:0;border:0;border-radius:50%;background:transparent url('../../assets/interface/hires/shortcut-empty.png') center/28px 28px no-repeat;box-shadow:none;overflow:visible}
.skillbar .skill kbd{position:absolute;inset:0 auto auto 0;width:8px;height:9px;padding:0;background:#171a14aa;color:#d4ddbc;font:9px/9px Georgia,serif;text-align:center;z-index:3}
.skillbar .skill>img{inset:0;width:28px;height:28px;max-width:28px;max-height:28px;filter:none;object-fit:contain;border-radius:0;image-rendering:auto}.skillbar .skill>svg{width:23px;height:23px;margin:2px}.skillbar .skill>strong{right:0;bottom:0;font-size:9px;line-height:10px}.skillbar .cd-text{top:0;line-height:28px;font-size:11px;pointer-events:none}.skillbar .cooldown{border-radius:50%;max-height:28px}
.hotbar-pages{position:absolute;right:8px;top:-2px;height:15px;padding:0;gap:0;display:flex}
.hotbar-pages>span,.hotbar-pages>button{display:none}.hotbar-pages .hotbar-dots{display:flex;gap:1px;align-items:center}
.hotbar-dots button{display:block;width:26px;height:18px;min-width:0;padding:0;border:0;border-radius:0;background:transparent url('../../assets/interface/hires/bag-tab-1-normal.png') center/26px 20px no-repeat;color:transparent;font-size:0}
.hotbar-dots button:nth-child(2){background-image:url('../../assets/interface/hires/bag-tab-2-normal.png')}.hotbar-dots button:nth-child(3){background-image:url('../../assets/interface/hires/bag-tab-3-normal.png')}.hotbar-dots button:nth-child(4){background-image:url('../../assets/interface/hires/bag-tab-4-normal.png')}
.hotbar-dots button[aria-pressed=true]:nth-child(1){background-image:url('../../assets/interface/hires/bag-tab-1-selected.png')}.hotbar-dots button[aria-pressed=true]:nth-child(2){background-image:url('../../assets/interface/hires/bag-tab-2-selected.png')}.hotbar-dots button[aria-pressed=true]:nth-child(3){background-image:url('../../assets/interface/hires/bag-tab-3-selected.png')}.hotbar-dots button[aria-pressed=true]:nth-child(4){background-image:url('../../assets/interface/hires/bag-tab-4-selected.png')}
/* 高解析頁籤圖為 104x80：選中頁籤被 style-combat-ui.css 的 background 簡寫改回原尺寸（auto），須明訂 26x20，位置維持左上對齊與原本相同。 */
.hotbar-dots button[aria-pressed=true]{background-size:26px 20px}
.hotbar-dots button:hover{filter:brightness(1.3)}.bottom-center #buff-status{display:none}
/* 小地圖隱藏地名文字的空行不佔高度，座標列仍由 span 的 14px 行高顯示；避免覆蓋南側出口。 */
.right-hud{transform:none}.right-hud .minimap-widget{gap:0;margin:0}.right-hud #minimap-toggle{min-height:16px;box-shadow:none}.right-hud #map-button{height:128px;backdrop-filter:none}.right-hud #minimap{top:2px;background:transparent}.right-hud .map-caption{bottom:0;line-height:0}#active-statuses{top:150px}
#combat-dock nav{background-image:url('../../assets/interface/compact/toolbar-empty.png')}
#combat-dock .original-action,#combat-dock #gear-button{background:transparent url('../../assets/interface/compact/shortcut-empty.png') center/25px 25px no-repeat}
#combat-dock .original-action img{width:24px;height:24px;margin:.5px}
#combat-dock,body:has(#attributes-panel[open]) #combat-dock{zoom:calc(var(--shell-scale) * .82)}
/* Original frames, circular artwork and edge controls. */
#combat-dock nav{height:40px;display:grid;grid-template-columns:repeat(10,24px);gap:9px;justify-content:start;padding:8px 0 0 18px;background-image:url('../../assets/interface/hires/actions-main.png');background-size:368px 48px}
#combat-dock .extra-actions{width:236px;padding:8px 0 0 18px;grid-template-columns:repeat(6,24px);background-image:url('../../assets/interface/hires/actions-extra.png');background-size:236px 48px}
#combat-dock .original-action,#combat-dock #gear-button{width:24px;height:24px;background:url('../../assets/interface/hires/round-slot.png') center/28px 28px}
#combat-dock .original-action img{width:24px;height:24px;margin:0;border-radius:50%}
#combat-dock .bar-toggle,.bottom-center>.bar-toggle{position:absolute;z-index:5;right:0;top:0;display:block!important;width:18px;height:40px;padding:0;border:0;border-radius:0;background:transparent url('../../assets/interface/refined/arrow-right.png') center/18px 36px no-repeat;cursor:pointer;pointer-events:auto}
.bottom-center>.bar-toggle{left:0;right:auto;top:7px;background-image:url('../../assets/interface/refined/arrow-left.png')}
#combat-dock nav.bar-collapsed{width:18px;padding:0;background:none}
#combat-dock nav.bar-collapsed>.original-action,.bottom-center.bar-collapsed>:not(.bar-toggle){display:none!important}
#combat-dock nav.bar-collapsed .bar-toggle,.bottom-center.bar-collapsed>.bar-toggle{transform:rotate(180deg)}
.bottom-center.bar-collapsed{width:18px}
.skillbar .skill>img{border-radius:50%;clip-path:circle(48%);object-fit:contain;background:#272414}
.skillbar .skill>kbd{inset:-5px auto auto -2px;background:none;text-shadow:1px 1px #000}
/* 2026-09-29：圖示對準槽圖的古銅圓盤（按鈕內 x 4～27、y 3～26，不在按鈕正中）：SVG 略加粗、加暗影且不再碰到外圈；道具／技能圖縮進圓盤，露出原版槽框亮邊；鍵位與數量字加黑邊。 */
.skillbar .skill>svg{position:absolute;left:5px;top:4px;width:21px;height:21px;margin:0;stroke-width:2;filter:drop-shadow(0 1px 0 #2b1d0bcc)}
.skillbar .skill>img{inset:3px auto auto 4px;width:24px;height:24px;max-width:24px;max-height:24px;clip-path:circle(50%)}
.skillbar .skill>kbd,.skillbar .skill>strong{text-shadow:0 0 1px #000,0 0 1px #000,1px 1px #000}
/* 冷卻遮罩與秒數也對準古銅圓盤（直徑 24px，下緣離按鈕底 1px）。遮罩高度仍由 src/hotbar.js 寫成按鈕高度 28px 的百分比：
   scaleY(24/28) 以下緣為準換成圓盤高度的比例；橢圓縱半徑 14px 縮完正好 12px，遮罩是圓盤由下往上的弓形。 */
.skillbar .cooldown{left:4px;right:auto;bottom:1px;width:24px;border-radius:0;transform:scaleY(.857143);transform-origin:50% 100%;clip-path:ellipse(12px 14px at 50% calc(100% - 14px))}
.skillbar .cd-text{left:4px;width:24px;top:3px;line-height:24px}
#inventory-panel[data-view=bag][data-mode=inventory] .inventory-slot{width:100%;height:100%;background:transparent!important}
#inventory-panel[data-view=bag][data-mode=inventory] .inventory-slot img{width:100%;height:100%;max-width:none;max-height:none}
.player-panel.classic-hud.status-expanded{height:564px}
.classic-hud>#attributes-panel{position:absolute;inset:143px 0 auto;zoom:1;width:100%;height:385px;max-height:none;margin:0;padding:0;border:0;border-radius:0;background:none;box-shadow:none;overflow:visible;font:20px/1.35 'Microsoft JhengHei'}
.classic-hud>#attributes-panel[hidden]{display:none!important}
.classic-hud>#attributes-panel>:is(.attributes-heading,.classic-form-tabs){display:none!important}
.classic-hud #attributes-panel .reference-overview{position:absolute;inset:0 9px auto;height:247px;display:block;font-size:19px}
.classic-hud .reference-overview .status-combat,.classic-hud .reference-overview .reference-identity{display:grid;grid-template-columns:1fr 1fr;gap:0 24px;padding:0;border:0}
.classic-hud .reference-overview .reference-identity{margin-top:6px}
/* 戰鬥細項（2026-10-09，src/attribute-panel.js combatDetails()）：與身分欄同一塊位置切換；列多時捲動。 */
.classic-hud .reference-overview .status-details{margin-top:6px;display:grid;grid-template-columns:1fr 1fr;gap:0 24px;max-height:118px;overflow-y:auto}
.classic-hud .reference-overview .status-details[hidden],.classic-hud .reference-overview .reference-identity[hidden]{display:none}
.classic-hud .reference-overview .status-details p{height:23px;font-size:15px;justify-content:space-between}
.classic-hud .reference-overview .status-details-toggle{position:absolute;right:0;bottom:0;font-size:13px;padding:1px 6px;cursor:pointer}
.classic-hud .reference-overview p{height:29px;font-size:19px}
.classic-hud .reference-overview .reference-identity p{justify-content:space-between}
.classic-hud #attributes-editor{top:251px;padding-top:20px}
.classic-hud #attributes-panel .allocation-top{top:-2px;right:0}
.classic-hud #attributes-panel .points-badge{font-size:14px}
.classic-hud #attributes-panel .attribute-row>div{flex-basis:48px}
.classic-hud #attributes-panel .attribute-row button:last-of-type{background:transparent url('../../assets/interface/refined/attribute-plus.png') center/25px 18px no-repeat;border:0;border-radius:0;box-shadow:none;font-size:0}
.classic-hud>.classic-form-tabs button[aria-pressed=true]{filter:brightness(1.45)}
.recovery-number img{height:26px;width:auto;image-rendering:auto}
#combat-dock nav,#combat-dock .extra-actions{align-items:start;padding-top:10px}

.ui-equipment-skill{width:26px;height:22px;padding:0;border:0;background:transparent url('../../assets/interface/refined/equipment-skill-tab.png') center/100% 100%;cursor:pointer}
/* Original human / mech paperdoll artwork, with the original slot coordinates. */
/* 裝備另成一個視窗（2026-10-27，使用者：「裝備介面跟背包介面可以同時開啟」）：src/inventory-panel.js 的 #equipment-panel，和背包各自開關、各自拖曳。
   以前是背包視窗的「裝備」分頁（#inventory-panel[data-view=equipment]，開一個另一個就關）；版面、框圖與欄位位置照舊。 */
#equipment-panel{zoom:calc(var(--shell-scale) * .72);position:fixed;inset:80px 20px auto auto;z-index:32;margin:0;width:424px;height:472px;max-height:none;padding:0;border:0;border-radius:0;color:#eee6ca;background:transparent url('../../assets/interface/refined/equipment-human.png') 0 0/424px 472px;overflow:visible;box-shadow:none}
#equipment-panel[data-equipment-form=mech]{background-image:url('../../assets/interface/refined/equipment-mech.png')}
#equipment-panel .inventory-help>p{display:none}
/* 裝備視窗的框圖原尺寸，左鉚釘在 x 10～20；標題字從 x 24 開始（2026-10-27）。 */
#equipment-panel .equipment-heading{position:absolute;left:14px;right:14px;top:0;height:20px;padding:0 0 0 10px;z-index:3;display:flex;align-items:center;border:0;background:none}
#equipment-panel h2{font:13px/20px 'Microsoft JhengHei';letter-spacing:0;color:#32240b;margin:0}
#equipment-panel #equipment-close{position:absolute;right:0;top:0;width:18px;height:18px;padding:0;font-size:0;border:0;background:transparent url('../../assets/interface/close.png') center/18px no-repeat}
#equipment-panel .inventory-help{position:absolute;inset:0;display:block;height:472px;padding:0;margin:0;border:0;background:none}
#equipment-panel .equipment-mode{position:absolute;left:15px;top:23px;gap:4px;z-index:3}
#equipment-panel .equipment-mode button{width:26px;height:22px;padding:0;border:0;border-radius:0;background-color:transparent!important}
#equipment-panel .equipment-mode .ui-human{background-image:url('../../assets/interface/human.png')!important}
#equipment-panel .equipment-mode .ui-mech{background-image:url('../../assets/interface/mech.png')!important}
#equipment-panel .equipment-column-labels{position:absolute;top:49px;left:14px;right:14px;display:flex;justify-content:space-between;font:12px 'Microsoft JhengHei';color:#eee}
#equipment-panel .paperdoll{position:absolute;inset:0;min-height:0}
#equipment-panel .paperdoll canvas{left:128px;top:43px;transform:none;width:166px;height:248px;z-index:2}
#equipment-panel #equipped-slots{position:absolute;inset:0;display:block;max-height:none;overflow:visible;padding:0}
#equipment-panel .equipped-slot{position:absolute;z-index:3;min-width:0;background:transparent;border:0;border-radius:0}
#equipment-panel .equipped-slot>button:first-child{position:relative;height:100%;padding:0!important;display:block;background:transparent;border:0;border-radius:0}
#equipment-panel .equipped-slot :is(span,small,svg){display:none}
#equipment-panel .equipped-slot img{width:100%;height:100%;object-fit:contain;image-rendering:auto}
#equipment-panel .equipped-slot b{position:absolute;inset:auto 1px 0 auto;margin:0;padding:0;font:bold 10px/11px Arial,sans-serif;color:#fff;text-shadow:1px 1px #000,-1px -1px #000;pointer-events:none}
#equipment-panel .equipped-slot:has(img):hover{outline:1px solid #ffe1a1;background:#ffdf6622}
#equipment-panel .equipped-slot:has(img):focus-within{outline:1px solid #ffe1a1}
#equipment-panel .equipped-slot:is(:hover,:focus-within){z-index:6}
#inventory-panel .inventory-slot .durability,#inventory-panel .shop-row .durability{position:absolute;left:2px;bottom:1px;height:2px;max-width:calc(100% - 4px);background:#8fc56b;pointer-events:none}
#inventory-panel .inventory-slot .durability.low,#inventory-panel .shop-row .durability.low{background:#e0533d}
/* 帶言靈的那一件的名稱（2026-10-27 照原版參考圖，src/kotodama.js kotodamaItemName()）：物品說明的標題、出售頁選到的那一件與地上的名稱是紅字「鳳帝 翔 赤皮外衣 +15」；
   背包與商店的格子上不再標精煉值與「言」。 */
.item-description-name strong.kotodama-name,#inventory-panel[data-mode=shop] #shop-item-title.kotodama-name,#loot-labels .loot-label.kotodama-name{color:#ff4b3e}
/* 按住 Alt 時畫面外的道具名稱（2026-10-27，src/encounter-visuals.js edgeLayout()）：排在畫面邊緣、道具所在的方向，每件一行，名稱旁的箭頭指向那一件；只顯示、不能點。
   z-index 29：在角色資訊（28）、小地圖、聊天與快捷列之上，所有視窗（30 起）之下；地上道具的名稱標籤 #loot-labels（12）照舊在介面底下。
   箭頭是「→」（7 px 的箭身＋6 px 的箭頭），照道具的方向旋轉。行高 17 px、左右各 5 px、箭頭 12 px＋間隔 4 px 要和 edgeLayout() 的 EDGE_LINE、EDGE_PAD、EDGE_ARROW 一致。 */
#loot-edge-labels{position:fixed;inset:0;z-index:29;pointer-events:none}
#loot-edge-labels[hidden],#loot-edge-labels .loot-edge[hidden]{display:none}
#loot-edge-labels .loot-edge{position:absolute;left:0;top:0;background:#0e1a15b8;border-radius:3px}
#loot-edge-labels .loot-edge-line{display:flex;align-items:center;gap:4px;height:17px;padding:0 5px;white-space:nowrap;font:600 11px "Microsoft JhengHei",sans-serif;color:#fff1c2;text-shadow:0 1px 2px #000,1px 0 2px #000,-1px 0 2px #000}
#loot-edge-labels .loot-edge[data-side=right] .loot-edge-line{flex-direction:row-reverse}
#loot-edge-labels .loot-edge-arrow{flex:none;position:relative;width:12px;height:8px;filter:drop-shadow(0 0 1px #000)}
#loot-edge-labels .loot-edge-arrow::before{content:"";position:absolute;left:0;top:3px;width:7px;height:2px;background:currentColor}
#loot-edge-labels .loot-edge-arrow::after{content:"";position:absolute;right:0;top:0;border-left:6px solid currentColor;border-top:4px solid transparent;border-bottom:4px solid transparent}
#loot-edge-labels .loot-edge-more{color:#d8cfae;font-weight:400}
#loot-edge-labels .loot-edge-line.kotodama-name{color:#ff4b3e}
/* 出售頁帶言靈的那一件不能賣（原版規則）：變灰，滑鼠提示寫原因。 */
#inventory-panel .shop-row.locked{opacity:.5;filter:grayscale(.7);cursor:not-allowed}
#equipped-slots [data-slot=ring]{left:298px;top:70px;width:28px;height:28px}
#equipped-slots [data-slot=ammo]{left:326px;top:70px;width:28px;height:28px}
#equipped-slots [data-slot=charm]{left:354px;top:70px;width:28px;height:28px}
#equipped-slots [data-slot=head]{left:326px;top:98px;width:56px;height:56px}
#equipped-slots [data-slot=body]{left:298px;top:154px;width:56px;height:84px}
#equipped-slots [data-slot=hands]{left:354px;top:154px;width:56px;height:84px}
#equipped-slots [data-slot=legs]{left:326px;top:238px;width:56px;height:84px}
#equipped-slots [data-slot=waist]{left:290px;top:308px;width:28px;height:28px}
#equipped-slots [data-slot=feet]{left:348px;top:322px;width:56px;height:56px}
#equipped-slots [data-slot=weapon]{left:234px;top:350px;width:56px;height:112px}
#equipped-slots [data-slot=shield]{left:290px;top:350px;width:56px;height:112px}
#equipped-slots [data-slot=face]{left:14px;top:98px;width:56px;height:56px}
#equipped-slots [data-slot=back]{left:42px;top:238px;width:56px;height:84px}
[data-equipment-form=mech] #equipped-slots [data-slot=head]{left:326px;top:126px}
[data-equipment-form=mech] #equipped-slots [data-slot=body]{left:326px;top:182px}
[data-equipment-form=mech] #equipped-slots [data-slot=hands]{left:354px;top:266px}
[data-equipment-form=mech] #equipped-slots [data-slot=legs]{left:18px;top:182px;width:82px}
[data-equipment-form=mech] #equipped-slots [data-slot=feet]{left:18px;top:266px;height:84px}
[data-equipment-form=mech] #equipped-slots [data-slot=weapon]{left:241px;top:322px}
[data-equipment-form=mech] #equipped-slots [data-slot=shield]{left:297px;top:350px;width:28px;height:84px}
[data-equipment-form=mech] #equipped-slots [data-slot=ring]{left:382px;top:98px}
[data-equipment-form=mech] #equipped-slots [data-slot=core]{left:382px;top:70px;width:28px;height:28px}
[data-equipment-form=mech] #equipped-slots [data-slot=charm]{left:241px;top:294px}
[data-equipment-form=mech] #equipped-slots [data-slot=waist]{left:269px;top:294px}
/* Expanded frames already contain the single original arrow. Only the hit area
   overlays them; a collapsed bar uses a standalone original 14x30 sprite. */
#combat-dock nav:not(.bar-collapsed)>.bar-toggle,.bottom-center:not(.bar-collapsed)>.bar-toggle{background:none}
#combat-dock nav.bar-collapsed>.bar-toggle{background-image:url('../../assets/interface/hires/arrow-single-right.png');background-size:14px 30px}
.bottom-center.bar-collapsed{background:none}
.bottom-center.bar-collapsed>.bar-toggle{background-image:url('../../assets/interface/hires/arrow-single-left.png');background-size:14px 30px}
/* 原圖每個像素畫不到 1.1 個裝置像素時（src/compact-interface.js 在 <html> 加 dock-native-art／hotbar-native-art，例如 1280x720、DPR 1 的左下按鈕），
   4 倍圖縮回原尺寸比原圖軟，改回修改前的原圖與畫法；尺寸與位置照上面的規則。收合時 nav 的 background:none 不能蓋掉；選中頁籤要比一般頁籤優先。 */
:root.dock-native-art #combat-dock .original-action img{image-rendering:pixelated}
:root.dock-native-art #combat-dock nav:not(.bar-collapsed){background-image:url('../../assets/interface/refined/actions-main.png')}
:root.dock-native-art #combat-dock .extra-actions:not(.bar-collapsed){background-image:url('../../assets/interface/refined/actions-extra.png')}
:root.dock-native-art #combat-dock .original-action,:root.dock-native-art #combat-dock #gear-button{background-image:url('../../assets/interface/refined/round-slot.png')}
:root.dock-native-art #combat-dock nav.bar-collapsed>.bar-toggle{background-image:url('../../assets/interface/refined/arrow-single-right.png')}
:root.hotbar-native-art .bottom-center .skillbar{background-image:url('../../assets/interface/compact/hotbar-ten.png')}
:root.hotbar-native-art .skillbar .skill{background-image:url('../../assets/interface/compact/shortcut-empty.png')}
:root.hotbar-native-art .hotbar-dots button:nth-child(1){background-image:url('../../assets/interface/compact/bag-tab-1-normal.png')}:root.hotbar-native-art .hotbar-dots button:nth-child(2){background-image:url('../../assets/interface/compact/bag-tab-2-normal.png')}:root.hotbar-native-art .hotbar-dots button:nth-child(3){background-image:url('../../assets/interface/compact/bag-tab-3-normal.png')}:root.hotbar-native-art .hotbar-dots button:nth-child(4){background-image:url('../../assets/interface/compact/bag-tab-4-normal.png')}
:root.hotbar-native-art .hotbar-dots button[aria-pressed=true]:nth-child(1){background-image:url('../../assets/interface/compact/bag-tab-1-selected.png')}:root.hotbar-native-art .hotbar-dots button[aria-pressed=true]:nth-child(2){background-image:url('../../assets/interface/compact/bag-tab-2-selected.png')}:root.hotbar-native-art .hotbar-dots button[aria-pressed=true]:nth-child(3){background-image:url('../../assets/interface/compact/bag-tab-3-selected.png')}:root.hotbar-native-art .hotbar-dots button[aria-pressed=true]:nth-child(4){background-image:url('../../assets/interface/compact/bag-tab-4-selected.png')}
:root.hotbar-native-art .bottom-center.bar-collapsed>.bar-toggle{background-image:url('../../assets/interface/refined/arrow-single-left.png')}

/* 物品說明視窗固定位置（2026-10-27）：預設在背包、商店與裝備視窗中間的空檔（1440×900 時約 x 739～1039），不跟著點的道具移動；拖曳後照拖曳的位置。 */
#item-description-window{position:fixed;z-index:70;left:min(calc(18vw + 480px),calc(100vw - 316px));top:160px;width:300px;min-height:392px;max-height:calc(100vh - 16px);padding:0 17px 18px;background:url('../../assets/interface/refined/item-description.png') 0 0/100% 100% no-repeat;color:#eee;box-sizing:border-box;font:14px/1.4 'Microsoft JhengHei';filter:drop-shadow(1px 3px 4px #0008)}
#item-description-window[hidden]{display:none}
/* 物品說明的框圖 item-description.png（246 寬，鉚釘在 x 0～10）拉成 300 寬後鉚釘到 x 13；標題列從 x 10 開始，左內距 8px 讓字從 x 18 開始（2026-10-27）。 */
#item-description-window header{height:20px;margin:0 -7px;padding-left:8px;display:flex;align-items:center;justify-content:space-between;color:#30200a;font-size:13px}
#item-description-window header button{border:0;border-radius:0;padding:0;width:18px;height:18px;background:url('../../assets/interface/close.png') center/18px no-repeat;cursor:pointer}
.item-description-content{max-height:calc(100vh - 60px);overflow:auto;padding-top:10px}
.item-description-name{display:flex;gap:7px;align-items:center;margin-bottom:30px;min-height:32px}.item-description-name img{width:34px;height:34px;object-fit:contain}.item-description-name strong{font-weight:normal}.item-granted-skill{margin-bottom:18px}.item-granted-skill>b{font-weight:normal}.item-granted-skill>div{display:flex;gap:5px;margin-top:3px}.item-granted-skill img{width:38px;height:38px;object-fit:contain;flex-shrink:0;border:1px solid #b2a474}.item-granted-skill p{margin:0}.item-granted-skill small{display:block;color:#d2c09a;margin-top:5px}.item-description-bonus{color:#57ef56;margin-top:20px;white-space:pre-line}.item-description-note{margin-top:22px;white-space:pre-wrap}.item-description-data{margin-top:12px}
/* 原版穿戴條件（需求等級、可裝備職業、性別）目前角色不符合時以紅字標示（src/item-description.js）。 */
.item-description-data .unmet{color:#ff6a5c}


/* The original elm*.lbi icons and slim HP artwork appear only on the clicked monster. */
button.enemy-label.selected-monster{left:0;top:0;padding:0;border:0;background:none;font:12px/16px "Microsoft JhengHei",sans-serif;color:#75f368;filter:none;text-shadow:1px 1px 1px #172516,-1px -1px 1px #172516;pointer-events:auto}
button.enemy-label.selected-monster[data-aggressive=true]{color:#ff5146}
.selected-monster .monster-caption{display:flex;align-items:center;justify-content:center;gap:3px;white-space:nowrap}
.selected-monster .monster-caption img{width:16px;height:16px;object-fit:contain;image-rendering:pixelated}
.selected-monster .monster-health{display:block;width:64px;height:6px;margin:0 auto 2px;background:url('../../assets/interface/monster/hp-empty.png') center/100% 100%;overflow:hidden}
.selected-monster .monster-health i{display:block;width:100%;height:100%;background:url('../../assets/interface/monster/hp-fill.png') center/100% 100%}
#toast{display:none!important}
#death-error:empty{display:none}

/* 大地圖出口名稱；不接收滑鼠事件，不遮擋原點選。 */
.map-dialog{position:relative}
.map-portal-tooltip{position:absolute;z-index:3;pointer-events:none;padding:6px 9px;border:1px solid #c1a66b;border-radius:3px;background:#10231ef5;color:#fff1ce;font:13px/1.4 "Microsoft JhengHei",sans-serif;overflow-wrap:anywhere;box-shadow:0 2px 6px #0008}
