/* Shared selector: a centered dialog on desktop and a bottom sheet on phones. */
.device.device-enhanced,.device-picker.device-enhanced{display:block;padding:0;min-height:0;border:0;background:none;border-radius:24px}
.device-enhanced>.device-icon,.device-enhanced>.device-choice{display:none}
.device-trigger{display:flex;align-items:center;gap:14px;width:100%;min-height:88px;padding:17px 20px;border:1px solid #9467b75e;border-radius:24px;background:linear-gradient(115deg,#322143,#23172f);color:#faf7ff;text-align:left;box-shadow:inset 0 1px #dec0f30b;cursor:pointer;transition:border-color .18s,background .18s}
.device-trigger-icon{display:grid;place-items:center;flex-shrink:0;width:46px;height:46px;border-radius:16px;background:#65428a4d;color:#dfb9ff}
.device-trigger-icon svg{display:block;width:25px;height:25px}
.device-trigger-copy{display:flex;flex-direction:column;align-items:flex-start;flex:1;gap:2px;min-width:0}
.device-trigger-label{font-size:10px;color:#c9b2dd;font-weight:400;line-height:1.5}
.device-trigger-name{font-size:16px;font-weight:650;line-height:1.6;letter-spacing:-.2px}
.device-trigger .detection,.device-trigger .detection-label{font-size:9px;color:#bca3d0;line-height:1.6;text-align:left;white-space:normal}
.device-trigger-action{display:flex;align-items:center;gap:5px;color:#dcb5ff;font-size:10px;flex-shrink:0}
.device-trigger-action svg{width:20px;height:20px}
html.device-sheet-open{overflow:hidden;overscroll-behavior:none}
dialog.device-sheet{position:fixed;inset:0;width:440px;max-width:calc(100% - 40px);height:fit-content;max-height:calc(100vh - 48px);max-height:calc(100dvh - 48px);margin:auto;padding:28px;border:1px solid #a47ac43d;border-radius:32px;background:radial-gradient(ellipse at 20% 0%,#773f9924,transparent 60%),#1c1524;box-shadow:0 24px 90px #0009;color:#faf7ff;text-align:left;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#68467e transparent}
.device-sheet::backdrop{background:#09060cc9;backdrop-filter:blur(9px);-webkit-backdrop-filter:blur(9px)}
.device-sheet-handle{display:none}
.device-sheet-close{position:absolute;top:17px;right:17px;display:grid;place-items:center;width:44px;height:44px;border-radius:50%;border:0;background:#b27bd212;color:#d7c0e8;cursor:pointer}
.device-sheet-close svg{width:19px;height:19px}
.device-sheet-heading{padding-right:28px;margin-bottom:24px}
.device-sheet-eyebrow{display:block;font-size:9px;letter-spacing:1.7px;line-height:1.5;color:#cfa6ed}
.device-sheet .device-sheet-title{font-size:27px;font-weight:600;letter-spacing:-.9px;line-height:1.2;margin:10px 0 9px}
.device-sheet .device-sheet-description{font-size:11px;line-height:1.8;color:#bcacc9;margin:0}
.device-sheet-group+.device-sheet-group{margin-top:20px}
.device-group-label{font-size:10px;font-weight:500;letter-spacing:.2px;line-height:1.5;color:#c3afcf;margin:0 0 10px 2px}
.device-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.device-options-computer{grid-template-columns:repeat(3,minmax(0,1fr))}
.device-option{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;min-width:0;min-height:88px;padding:16px 7px 12px;border:1px solid #aa85c028;border-radius:20px;background:#a77ec309;color:#d0c4db;cursor:pointer;transition:background .16s,border-color .16s,transform .16s}
.device-option-icon{display:grid;place-items:center;color:#bba7ce}
.device-option-icon svg{display:block;width:25px;height:25px}
.device-option-name{font-size:12px;font-weight:550;line-height:1.5;white-space:nowrap}
.device-option-check{position:absolute;top:8px;right:8px;display:grid;place-items:center;width:17px;height:17px;border-radius:50%;background:#d0a0ff;color:#251435;opacity:0;transform:scale(.65);transition:opacity .16s,transform .16s}
.device-option-check svg{width:12px;height:12px;stroke-width:2.8}
.device-option[aria-pressed=true]{border-color:#b983ef;background:linear-gradient(145deg,#794b9c55,#66389640);color:#faf1ff;box-shadow:inset 0 1px #e6c2ff0a}
.device-option[aria-pressed=true] .device-option-icon{color:#e0baff}
.device-option[aria-pressed=true] .device-option-check{opacity:1;transform:scale(1)}
.device-trigger:focus-visible,.device-option:focus-visible,.device-sheet-close:focus-visible{outline:2px solid #ddb9ff;outline-offset:3px}
@media(hover:hover) and (pointer:fine){.device-trigger:hover{border-color:#b783db}.device-option:hover{background-color:#b888d51c;border-color:#976bb65e}.device-option[aria-pressed=true]:hover{border-color:#dbb4ff}.device-sheet-close:hover{background:#b27bd22b}}
@media(max-width:600px){dialog.device-sheet{inset:auto 0 0;width:100%;max-width:100%;max-height:calc(100vh - 24px);max-height:calc(100dvh - max(24px,env(safe-area-inset-top,0px),var(--tg-content-safe-area-inset-top,0px)));margin:0;padding:27px 22px max(24px,env(safe-area-inset-bottom,0px),var(--tg-content-safe-area-inset-bottom,0px));border-radius:30px 30px 0 0;border-bottom:0}.device-sheet-handle{display:block;position:absolute;top:10px;left:50%;transform:translateX(-50%);width:34px;height:4px;border-radius:9px;background:#b999ce42}.device-sheet-close{top:23px;right:14px}.device-sheet-heading{margin-top:10px;margin-bottom:22px}.device-sheet .device-sheet-title{font-size:26px}.device-trigger{gap:12px;padding:16px;min-height:84px}.device-trigger-action>span{display:none}.device-trigger-icon{width:42px;height:44px;border-radius:15px}.device-trigger-name{font-size:15px}.device-trigger-label{font-size:9px}}
@media(max-width:350px){dialog.device-sheet{padding-left:18px;padding-right:18px}.device-trigger{gap:10px;padding:14px}.device-trigger-name{font-size:14px}.device-trigger-label{font-size:8px}.device-trigger-icon{width:38px;height:42px}.device-sheet .device-sheet-title{font-size:24px}.device-option-name{font-size:11px}.device-option{min-height:82px}.device-sheet-group+.device-sheet-group{margin-top:17px}}
@media(prefers-reduced-motion:no-preference){.device-sheet[open]{animation:device-sheet-enter .23s cubic-bezier(.22,1,.36,1) both}.device-sheet[open]::backdrop{animation:device-backdrop-enter .2s ease-out both}@keyframes device-sheet-enter{from{opacity:0;transform:translateY(18px) scale(.985)}to{opacity:1;transform:none}}@keyframes device-backdrop-enter{from{opacity:0}to{opacity:1}}@media(max-width:600px){.device-sheet[open]{animation:device-sheet-slide .28s cubic-bezier(.22,1,.36,1) both}@keyframes device-sheet-slide{from{transform:translateY(100%)}to{transform:none}}}}
@media(prefers-reduced-motion:reduce){.device-sheet,.device-sheet::backdrop,.device-trigger,.device-option,.device-option-check{animation:none!important;transition:none!important}}
