﻿/* v646: fixed design coordinates, uniformly scaled to the available viewport. */
body[data-ui-version="3"] .panel-home.has-quick-bar .player-sheet[data-scene-panel="gear"]:not([hidden]) {position:fixed!important;inset:0!important;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;transform:none!important;margin:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;padding:0!important;background:#e3e8ef!important;overflow:hidden!important}
.player-sheet[data-scene-panel="gear"]>.sheet-head,.player-sheet[data-scene-panel="gear"]>.sheet-handle,.player-sheet[data-scene-panel="gear"]>.v4-system-rail,.player-sheet[data-scene-panel="gear"]>.sheet-environment{display:none!important}
.player-sheet[data-scene-panel="gear"]>.sheet-scroll{position:absolute!important;inset:0!important;padding:0!important;margin:0!important;overflow:hidden!important;max-height:none!important;height:100%!important}
.gear-template-v2.gear-template-v2.gear-template-v2:not([hidden]){display:block!important;position:fixed!important;inset:0!important;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;border:0!important;border-radius:0!important;box-shadow:none!important;padding:0!important;margin:0!important;background:#e3e8ef!important;z-index:5;overflow:hidden!important}
.gear-template-v2.gear-template-v2.gear-template-v2 .gear-equipment-board{position:absolute!important;left:50%!important;top:50%!important;width:1280px!important;height:720px!important;max-width:none!important;margin:0!important;padding:0!important;transform:translate(-50%,-50%) scale(var(--gear-scale,1));border:0!important;border-radius:0!important;overflow:hidden!important;background:linear-gradient(115deg,#c7dff0,#f7e5c9 43%,#aebfd6 72%,#f4d4a3)!important;color:#18334e!important}
.gear-template-v2.gear-template-v2.gear-template-v2 .gear-equipment-board::before{display:none!important}
.gear-template-v2.gear-template-v2.gear-template-v2 .gear-template-hud{position:absolute;left:155px;top:16px;width:1100px;height:78px;font-size:22px}
.gear-template-hud .uk-resource img{width:42px;height:42px;object-fit:contain}.gear-template-hud progress{display:block;width:240px;height:10px;accent-color:#438de0}
.gear-template-v2.gear-template-v2.gear-template-v2 .gear-template-nav{position:absolute;left:22px;top:175px;width:140px;height:520px;gap:4px}
.gear-template-nav .uk-nav-item{font-size:19px;min-height:94px;line-height:1.2;padding:4px;white-space:normal}
.gear-template-v2.gear-template-v2.gear-template-v2 .gear-board-heading{position:absolute!important;left:185px;top:110px;display:flex!important;gap:24px;width:740px;height:66px;margin:0!important;border:0!important;padding:0!important;background:none!important}
.gear-template-v2.gear-template-v2.gear-template-v2 .gear-board-heading h3{font-size:30px!important;color:white!important;margin:0!important}
.gear-template-v2.gear-template-v2.gear-template-v2 .gear-board-heading button{margin-left:auto;background:#fff6db;color:#18334e;border:2px solid white;border-radius:24px;padding:10px 20px;font-size:20px}
.gear-template-v2.gear-template-v2.gear-template-v2 .gear-equipment-layout{display:contents!important}
.gear-template-v2.gear-template-v2.gear-template-v2 .gear-character-stage{position:absolute!important;left:180px;top:190px;width:750px;height:510px;min-height:0!important;background:none!important;border:0!important;padding:0!important;overflow:visible!important}
.gear-template-v2.gear-template-v2.gear-template-v2 .gear-template-hero{position:absolute;left:210px;top:-60px;width:340px;height:570px;object-fit:contain;filter:drop-shadow(0 12px 8px #34465b33)}
.gear-template-v2.gear-template-v2.gear-template-v2 .gear-equipped-slots{display:contents!important}
.gear-template-v2.gear-template-v2.gear-template-v2 [data-gear-slot]{position:absolute!important;width:150px!important;height:155px!important;min-height:0!important;padding:6px!important;display:flex!important;flex-direction:column;align-items:center;gap:2px;border:2px solid white!important;border-radius:20px!important;background:linear-gradient(#fff,#e8edf6)!important;color:#18334e!important;box-shadow:0 4px 12px #243d5a26!important;overflow:hidden!important;transform:none!important}
.gear-template-v2.gear-template-v2.gear-template-v2 [data-gear-slot][aria-pressed="true"]{background:linear-gradient(#fff3bd,#f4c44f)!important;border-color:#b98624!important}
.gear-template-v2.gear-template-v2.gear-template-v2 [data-gear-slot] b{font-size:19px!important;color:#18334e!important;line-height:1.2}.gear-template-v2.gear-template-v2.gear-template-v2 [data-gear-slot] small{font-size:15px!important;color:#18334e!important;line-height:1.2;white-space:normal!important}.gear-template-v2.gear-template-v2.gear-template-v2 [data-gear-slot] img{position:static!important;width:78px!important;height:78px!important;object-fit:contain}.gear-template-v2.gear-template-v2.gear-template-v2 [data-gear-slot]>span{font-size:54px;line-height:78px;color:#526274}.gear-template-v2.gear-template-v2.gear-template-v2 .gear-slot-lv{position:absolute!important;right:5px;top:31px;bottom:auto!important;font-size:12px!important;color:#493513!important;background:#fff0b2!important}
.gear-template-v2.gear-template-v2.gear-template-v2 [data-pos="head"]{left:135px!important;top:0!important}.gear-template-v2.gear-template-v2.gear-template-v2 [data-pos="left-hand"]{left:135px!important;top:170px!important}.gear-template-v2.gear-template-v2.gear-template-v2 [data-pos="left-foot"]{left:135px!important;top:340px!important}.gear-template-v2.gear-template-v2.gear-template-v2 [data-pos="armor"]{left:590px!important;top:0!important}.gear-template-v2.gear-template-v2.gear-template-v2 [data-pos="weapon"]{left:590px!important;top:170px!important}.gear-template-v2.gear-template-v2.gear-template-v2 [data-pos="right-foot"]{left:590px!important;top:340px!important}.gear-template-v2.gear-template-v2.gear-template-v2 [data-pos="accessory"]{left:0!important;top:0!important;width:120px!important}.gear-template-v2.gear-template-v2.gear-template-v2 [data-pos="wrist"]{left:0!important;top:170px!important;width:120px!important}.gear-template-v2.gear-template-v2.gear-template-v2 [data-pos="waist"]{left:0!important;top:340px!important;width:120px!important}
.gear-template-v2.gear-template-v2.gear-template-v2 .gear-companion-art{position:absolute!important;left:0!important;bottom:0!important;width:130px!important;height:200px!important;object-fit:contain}
.gear-template-v2.gear-template-v2.gear-template-v2 .gear-selected-panel{position:absolute!important;left:955px;top:110px;width:305px;height:590px;display:flex!important;flex-direction:column;gap:10px;overflow:auto!important;background:none!important;padding:0!important;border:0!important}
.gear-template-v2.gear-template-v2.gear-template-v2 .gear-effect-summary{flex:none;margin:0!important;padding:14px!important;background:#fffffff0!important;color:#18334e!important;border:2px solid white!important;border-radius:24px!important}
.gear-template-v2.gear-template-v2.gear-template-v2 .gear-effect-summary summary{font-size:22px!important;color:#18334e!important}.gear-template-v2.gear-template-v2.gear-template-v2 .gear-power{display:flex;align-items:center;justify-content:space-between;margin:8px 0!important;color:#18334e!important}.gear-template-v2.gear-template-v2.gear-template-v2 .gear-power strong{font-size:34px!important;color:#a84b08!important}.gear-template-v2.gear-template-v2.gear-template-v2 .gear-effect-summary small{font-size:13px!important;color:#526274!important;line-height:1.4}.gear-template-v2.gear-template-v2.gear-template-v2 .gear-effect-summary dl{margin:8px 0!important;display:block!important}.gear-template-v2.gear-template-v2.gear-template-v2 .gear-effect-summary dl>div{display:flex!important;justify-content:space-between;border-bottom:1px solid #d8e0e9;padding:3px 0}.gear-template-v2.gear-template-v2.gear-template-v2 .gear-effect-summary dt,.gear-template-v2.gear-template-v2.gear-template-v2 .gear-effect-summary dd{font-size:17px!important;color:#18334e!important;margin:0!important}.gear-template-v2.gear-template-v2.gear-template-v2 .gear-stat-hp{display:flex;justify-content:space-between;font-size:18px;margin:8px 0!important}.gear-template-v2.gear-template-v2.gear-template-v2 h4{font-size:18px!important;color:#18334e!important;margin:6px 0!important}
.gear-template-v2.gear-template-v2.gear-template-v2 .gear-template-sets{padding:12px!important;color:#18334e;background:#fff9ed;flex:none}.gear-template-v2.gear-template-v2.gear-template-v2 .gear-set-list{list-style:none;margin:0!important;padding:0!important}.gear-template-v2.gear-template-v2.gear-template-v2 .gear-set-row{display:flex!important;flex-wrap:wrap;gap:4px;padding:8px!important;background:white!important;border-radius:12px}.gear-template-v2.gear-template-v2.gear-template-v2 .gear-set-row span{width:100%;color:#526274!important;font-size:14px!important}.gear-template-v2.gear-template-v2.gear-template-v2 .gear-set-row .on{color:#975009!important}.gear-template-v2.gear-template-v2.gear-template-v2 .gear-set-empty{font-size:16px;color:#526274!important}
.gear-template-dialog,.gear-gallery-dialog{position:fixed!important;inset:0!important;margin:auto!important;width:min(720px,92vw)!important;max-height:88vh!important;height:max-content!important;overflow:auto!important;padding:20px!important;border:3px solid #e9bf62!important;border-radius:24px!important;background:#fff9ed!important;color:#18334e!important;transform:none!important}
.gear-template-dialog::backdrop,.gear-gallery-dialog::backdrop{background:#18334e88}.gear-template-dialog header{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}.gear-template-dialog .gear-slot{display:block!important;background:white!important;color:#18334e!important;padding:12px!important}.gear-template-dialog .gear-on,.gear-template-dialog .gear-item{display:flex;align-items:center;flex-wrap:wrap;gap:12px;background:#edf1f5!important;color:#18334e!important;padding:12px;margin:8px 0;border-radius:12px}.gear-template-dialog .gear-item-art{width:64px;height:64px;object-fit:contain}.gear-template-dialog button,.gear-gallery-dialog button{background:#ffe5a0!important;color:#18334e!important;border:1px solid #c99b35!important;border-radius:16px;padding:8px 16px}.gear-template-dialog small,.gear-template-dialog span{color:#526274!important}.gear-template-v2.gear-template-v2.gear-template-v2 .staff-msg{position:absolute;left:370px;top:95px;z-index:3;background:#fff0b2;color:#18334e;font-size:16px}
.gear-template-v2.gear-template-v2.gear-template-v2 .gear-effect-summary{line-height:1.35!important}.gear-template-v2.gear-template-v2.gear-template-v2 .gear-effect-summary p{line-height:1.35!important}.gear-template-v2.gear-template-v2.gear-template-v2 .gear-template-notes summary{font-size:14px!important}.gear-template-v2.gear-template-v2.gear-template-v2 .gear-template-notes small{display:block}.gear-template-v2.gear-template-v2.gear-template-v2 [data-gear-slot] img{background:#f8e8bd!important;border-radius:12px}.gear-template-v2.gear-template-v2.gear-template-v2 .gear-template-sets{line-height:1.4!important}.gear-template-v2.gear-template-v2.gear-template-v2 .gear-board-heading h3{letter-spacing:0!important;flex-shrink:0}.gear-template-v2.gear-template-v2.gear-template-v2 .gear-board-heading button{max-width:210px;line-height:1.2;white-space:normal}.gear-template-v2.gear-template-v2.gear-template-v2 .gear-template-hud .uk-round{font-size:30px!important;color:#18334e!important}

.gear-template-v2.gear-template-v2.gear-template-v2 .gear-effect-summary dl>div{flex-direction:row!important;align-items:center!important;grid-template-columns:1fr auto!important}
.gear-template-v2.gear-template-v2.gear-template-v2 [data-gear-slot] b{background:none!important;border:0!important;padding:0!important;max-width:100%!important;min-height:0!important;flex:none!important}
.gear-template-v2.gear-template-v2.gear-template-v2 [data-gear-slot] small{display:block!important;flex:none!important;margin:0!important;padding:0!important}
.gear-template-v2.gear-template-v2.gear-template-v2 .gear-stat-hp,.gear-template-v2.gear-template-v2.gear-template-v2 .gear-power{background:none!important;padding:0!important;min-height:0!important}
.gear-template-v2.gear-template-v2.gear-template-v2 [data-gear-slot] b{font-size:17px!important;line-height:20px!important;height:40px!important;display:flex!important;align-items:center;justify-content:center;width:100%}
.gear-template-v2.gear-template-v2.gear-template-v2 [data-gear-slot] img{width:62px!important;height:62px!important;flex:none!important}
.gear-template-v2.gear-template-v2.gear-template-v2 [data-gear-slot]>span{font-size:42px!important;line-height:62px!important;height:62px!important}
.gear-template-v2.gear-template-v2.gear-template-v2 [data-gear-slot] small{font-size:14px!important;line-height:16px!important;height:32px!important;overflow-wrap:anywhere}
.gear-template-v2.gear-template-v2.gear-template-v2 .gear-slot-lv{top:48px!important;font-size:11px!important}
.gear-template-v2.gear-template-v2.gear-template-v2 .gear-template-sets .uk-button{margin-top:8px;min-height:34px;font-size:16px;padding:4px 12px;background:#fff0b2;color:#18334e;border:1px solid #d9b34a}
.gear-template-dialog .gear-set-row{color:#18334e;background:#fff;font-size:16px;padding:12px}.gear-template-dialog .gear-set-row span{display:block;color:#526274}.gear-template-dialog .gear-set-row .on{color:#975009}
.gear-template-v2.gear-template-v2.gear-template-v2 .gear-template-dialog{padding:12px!important;font-size:16px!important;line-height:1.35!important}
.gear-template-v2.gear-template-v2.gear-template-v2 .gear-template-dialog .gear-slot{border:1px solid #d8e0e9!important;padding:8px!important;border-radius:14px!important}
.gear-template-v2.gear-template-v2.gear-template-v2 .gear-template-dialog .gear-item-art{width:48px!important;height:48px!important;background:#f8e8bd!important;border-radius:10px!important}
.gear-template-v2.gear-template-v2.gear-template-v2 .gear-template-dialog .gear-on,.gear-template-v2.gear-template-v2.gear-template-v2 .gear-template-dialog .gear-item{padding:8px!important;margin:4px 0!important;gap:8px!important;flex-direction:row!important;background:#edf1f5!important;min-height:0!important}
.gear-template-v2.gear-template-v2.gear-template-v2 .gear-template-dialog .gear-item>div{flex:1;min-width:0}.gear-template-v2.gear-template-v2.gear-template-v2 .gear-template-dialog small{display:block;font-size:14px!important}
.gear-template-v2.gear-template-v2.gear-template-v2 .gear-template-dialog button{font-size:16px!important;min-height:34px!important;padding:5px 14px!important;width:auto!important;flex:none!important}
.gear-template-dialog button::after{content:none!important}.gear-template-dialog header{margin-bottom:8px!important}.gear-template-dialog h3{font-size:20px!important}

/* Character portrait: read-only equipment cutout draft. */
.eq-portrait-assembly{position:relative;isolation:isolate;background:none!important;overflow:visible;filter:drop-shadow(0 6px 5px #102c4566)}
.eq-portrait-assembly.eq-portrait-complete{background:var(--eq-complete-image) center/contain no-repeat!important}
.eq-portrait-base{position:absolute;inset:0;background-image:var(--eq-player-sheet,url('../img/player-options-mobile-mobile-v81.webp'));background-position:var(--eq-avatar-position,0%) center;background-size:400% 100%;background-repeat:no-repeat}
.eq-portrait-layer{position:absolute;object-fit:contain;pointer-events:none}
.eq-portrait-layer[data-slot="armor"]{width:72%;height:66%;left:14%;top:27%;z-index:2}
.eq-portrait-layer[data-slot="armor"].eq-chest-piece{width:62%;height:36%;left:19%;top:28%}
.eq-portrait-layer[data-slot="head"]{width:33%;height:19%;left:33%;top:3%;z-index:5}
.eq-portrait-layer[data-slot="left-hand"]{width:15%;height:14%;left:18%;top:38%;z-index:4}
.eq-portrait-layer[data-slot="wrist"]{width:13%;height:11%;left:21%;top:46%;z-index:5}
.eq-portrait-layer[data-slot="waist"]{width:24%;height:11%;left:38%;top:55%;z-index:5}
.eq-portrait-layer[data-slot="left-foot"]{width:19%;height:15%;left:24%;top:80%;z-index:4}
.eq-portrait-layer[data-slot="right-foot"]{width:19%;height:15%;left:57%;top:80%;z-index:4}
.eq-portrait-layer[data-slot="accessory"]{width:11%;height:9%;left:45%;top:38%;z-index:6}
.eq-portrait-layer[data-slot="weapon"]{width:17%;height:14%;left:20%;top:39%;z-index:7;transform:rotate(-24deg)}
.eq-portrait-note{position:absolute;z-index:10;left:50%;bottom:-3px;transform:translateX(-50%);white-space:nowrap;border:1px solid #c4953f;border-radius:6px;background:#fff5d7f2;color:#604916;font:700 11px/1.2 system-ui;padding:3px 5px;pointer-events:none}
.gear-template-v2.gear-template-v2.gear-template-v2 .gear-template-hero.eq-portrait-assembly{background:none!important}
.gear-template-v2.gear-template-v2.gear-template-v2 .gear-template-hero.eq-portrait-complete{background:var(--eq-complete-image) center/contain no-repeat!important}
/* 10-29 3D 立繪：模型載入成功才蓋掉平面圖 */
.has-model-3d{position:relative}.model-3d-canvas{position:absolute;inset:0;width:100%;height:100%;z-index:2;pointer-events:none}
.has-model-3d>.eq-portrait-base,.pet-center-stage.has-model-3d>img{visibility:hidden}
