dialog.hardware-picker{width:min(94vw,690px);max-height:92dvh;padding:0;border:1px solid #d6dce4;border-radius:14px;color:#172131;background:#fff;box-shadow:0 18px 60px #121a3a52}
.hardware-picker::backdrop{background:#121a2ebf}
.hardware-picker form{padding:clamp(14px,3vw,26px);display:grid;gap:14px}
.hardware-picker header,.hardware-picker footer{display:flex;align-items:center;justify-content:space-between;gap:12px}
.hardware-picker h2,.hardware-picker h3,.hardware-picker p{margin:0}
.hardware-picker h2{font-size:1.4rem}.hardware-picker h3{font-size:1rem}
.hardware-picker header button{font-size:1.35rem;line-height:1}
.hardware-picker .hp-upload{display:grid;gap:6px;font-size:.93rem;font-weight:650}
.hardware-picker .hp-upload input{font:inherit;font-weight:450}
.hardware-picker p,.hardware-picker small{color:#435268;font-size:.875rem;font-weight:450;line-height:1.45}
.hardware-picker .hp-stage{margin-top:12px;background:#e6eaf0;border-radius:7px;padding:14px;display:flex;justify-content:center;align-items:center}
.hardware-picker .hp-surface{position:relative;max-width:100%;line-height:0}
.hardware-picker .hp-surface img{display:block;max-width:100%;width:auto;height:auto;max-height:44dvh;user-select:none;pointer-events:none}
.hardware-picker .hp-surface svg{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.hardware-picker .hp-surface polygon{fill:#066fe824;stroke:#53e6fe;stroke-width:2;vector-effect:non-scaling-stroke}
.hardware-picker button.hp-point{position:absolute;transform:translate(-50%,-50%);width:24px;height:24px;min-width:0;padding:0;border:2px solid white;border-radius:50%;background:#164ac3;color:#fff;font:bold 12px/1 sans-serif;touch-action:none;box-shadow:0 1px 6px #101a2fa8;cursor:grab}
.hardware-picker button.hp-point:focus-visible{outline:3px solid #111;outline-offset:2px}
.hardware-picker .hp-status:empty{display:none}
.hardware-picker footer{justify-content:flex-end}
.hardware-picker footer button{padding:.55rem .9rem}
.hardware-picker .hp-save{background:#2347cd;color:#fff;border:1px solid #2347cd}
.hardware-picker .hp-save:disabled{opacity:.5}
