.pair-device-overlay {position:fixed;inset:0;z-index:24000;display:flex;align-items:center;justify-content:center;background:#0b1d35bb;padding:20px;color:#152d48;font:17px/1.45 Arial,sans-serif}
.pair-device-dialog {display:flex;flex-direction:column;width:620px;max-width:100%;max-height:calc(100vh - 40px);background:#fff;border-radius:16px;box-shadow:0 16px 60px #0005;overflow:hidden}
.pair-device-dialog header {padding:18px 24px;border-bottom:1px solid #d6dfeb}
.pair-device-dialog h2 {margin:0;font-size:26px}
.pair-device-body {padding:20px 24px;overflow:auto;min-height:0}
.pair-device-body p {margin:0 0 16px}
.pair-device-target {font-weight:700;font-size:20px}
.pair-device-qr {display:block;background:#fff;width:272px;height:272px;max-width:100%;object-fit:contain;margin:16px auto;image-rendering:pixelated}
.pair-device-code {text-align:center;font:700 34px monospace;letter-spacing:3px}
.pair-device-body label {display:block;font-weight:700;margin:16px 0 8px}
.pair-device-body input {box-sizing:border-box;width:100%;padding:12px;border:1px solid #64748b;border-radius:8px;font:inherit}
.pair-device-body dt {font-weight:700;margin-top:12px}
.pair-device-body dd {margin:4px 0;word-break:break-all;font-family:monospace;font-size:14px}
.pair-device-dialog footer {display:flex;flex-wrap:wrap;gap:10px;padding:16px 24px;border-top:1px solid #d6dfeb}
.pair-device-dialog footer button {min-height:56px;flex:1;min-width:130px;font:inherit;font-weight:700;padding:10px 16px;border-radius:10px;border:1px solid #64748b;background:#fff;color:#152d48;cursor:pointer}
.pair-device-dialog footer .primary-button {background:#123454;color:#fff;border-color:#123454}
.pair-device-dialog button:disabled {opacity:.55;cursor:wait}
.pair-device-error {padding:12px;background:#fff2d2;border:1px solid #bc8b18;border-radius:8px}
@media(max-width:600px){.pair-device-overlay{padding:0}.pair-device-dialog{border-radius:0;max-height:100vh;height:100%;width:100%}.pair-device-body{flex:1}.pair-device-dialog footer{padding:12px 16px}.pair-device-body{padding:16px}}
