#browser-handoff[hidden]{display:none!important}
#browser-handoff{position:fixed;inset:0;z-index:10000;background:rgba(0,0,0,.76);display:flex;align-items:center;justify-content:center;padding:16px;overflow:auto;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;line-height:1.6;color:#fff}
#browser-handoff section{position:relative;box-sizing:border-box;width:min(100%,420px);max-height:calc(100vh - 32px);max-height:calc(100dvh - 32px);overflow:auto;background:#292333;border:1px solid #75677e;border-radius:20px;padding:24px;box-shadow:0 16px 60px #0008}
#browser-handoff h2{font-size:21px;line-height:1.4;margin:8px 30px 12px 0}
#browser-handoff p,#browser-handoff li{font-size:14px;text-align:left;overflow-wrap:anywhere}
#handoff-app{font-size:16px!important;font-weight:650;margin:12px 0 8px}
#handoff-reason{margin:10px 0 8px;color:#fff}
#browser-handoff #handoff-help{font-size:12px;margin:8px 0 16px;color:#d9cede}
#browser-handoff .handoff-tip{font-size:12px;color:#d9cede;margin:16px 0 12px}
#browser-handoff button,#browser-handoff a{box-sizing:border-box;display:block;width:100%;min-height:46px;border-radius:10px;border:1px solid #8c7a99;background:#4c3b59;color:#fff;font-size:15px;padding:10px;margin:10px 0;text-decoration:none;text-align:center;cursor:pointer}
#browser-handoff .handoff-primary{background:#74568b}
#browser-handoff .handoff-close{position:absolute;right:12px;top:8px;width:40px;min-height:40px;margin:0;padding:0;font-size:28px;background:transparent;border:0}
#browser-handoff details{font-size:12px;text-align:left;color:#d9cede}
#browser-handoff summary{cursor:pointer;padding:6px 0;min-height:24px}
#browser-handoff textarea{box-sizing:border-box;width:100%;resize:none;font-size:12px;line-height:1.5;color:#fff;background:#19161f;border:1px solid #75677e;border-radius:8px;padding:8px;overflow-wrap:anywhere}
#browser-handoff :focus-visible{outline:3px solid #e0b8ff;outline-offset:3px}
#browser-handoff section:focus-visible{outline:none}
#handoff-status{color:#f0d2ff;margin:12px 0 0}
#handoff-status:empty{display:none}
