.devices-overlay{z-index:10050!important;padding:0!important}
.devices-sheet{width:min(100%,560px);height:100dvh;max-height:100%;background:var(--bg-primary,#fff);color:var(--text-primary,#182033);display:flex;flex-direction:column;box-shadow:0 0 70px #0003}
.devices-sheet header{display:flex;align-items:center;justify-content:space-between;padding:calc(16px + env(safe-area-inset-top)) 22px 12px;border-bottom:1px solid #8883}
.devices-sheet header h2{margin:0;font-size:23px}
.devices-sheet header button{width:44px;height:44px;border:0;border-radius:50%;font-size:28px;background:transparent;color:inherit}
.devices-content{overflow:auto;padding:18px 22px calc(24px + env(safe-area-inset-bottom));overscroll-behavior:contain}
.devices-content>button{width:100%;margin:8px 0}
.device-row{padding:18px 0;border-bottom:1px solid #8883}.device-row h3{font-size:16px;margin:0 0 8px}.device-row p{white-space:pre-line;line-height:1.7;opacity:.75;font-size:13px}
#deviceCamera{display:block;width:100%;max-height:45vh;object-fit:cover;border-radius:18px;background:#111}
#deviceApproval button,#deviceScanner button{display:block;width:100%;margin-top:12px}
.pairing-code{display:block;letter-spacing:6px;font-size:27px;text-align:center;margin:14px 0}
.qr-login{border-top:1px solid #8883;margin-top:24px;padding-top:20px;text-align:center}
.qr-login h2{font-size:19px}.qr-login p{font-size:14px;line-height:1.6}.qr-login canvas{max-width:100%;height:auto!important;border-radius:12px}
body.dark-theme .devices-sheet,html[data-theme="dark"] .devices-sheet{background:#171b26;color:#edf1fb}
