.kory-wx-dialog{border:0;padding:0;border-radius:24px;width:min(430px,calc(100vw - 28px));max-height:calc(100dvh - 32px);overflow:auto;color:#172b4d;background:#fff;box-shadow:0 24px 80px #11265035;font-family:Inter,"Microsoft YaHei",sans-serif}.kory-wx-dialog::backdrop{background:#0c1d3e66;backdrop-filter:blur(5px)}.kory-wx-dialog *{box-sizing:border-box}.kory-wx-dialog .wx-card{position:relative;text-align:center;padding:30px 32px 24px}.kory-wx-dialog h2{margin:14px 0 6px;font-size:25px;letter-spacing:-.5px}.wx-logo{width:48px;height:48px;display:grid;place-items:center;margin:auto;border-radius:15px;background:linear-gradient(140deg,#437dff,#2451d4);color:#fff;font-size:28px;font-weight:800;box-shadow:0 6px 18px #3465e82b}.wx-subtitle{color:#8290a9;font-size:14px;margin:0 0 20px}.wx-close{position:absolute;right:14px;top:10px;width:36px;height:36px;border:0;background:transparent;font-size:27px;color:#8994a5;cursor:pointer}.wx-view{display:flex;justify-content:center}.wx-qr{width:220px;height:220px;border:1px solid #e6ecf6;border-radius:15px;padding:10px;object-fit:contain;background:#fff}.wx-placeholder{width:220px;height:220px;display:grid;place-items:center;border-radius:15px;background:#f4f7fd;color:#7b8da9}.wx-status{font-size:14px;line-height:1.65;min-height:22px;margin:14px 0;color:#5d6b82}.wx-error{color:#bc344b}.wx-note{font-size:11px;line-height:1.8;color:#97a0af;margin:18px 0 0}.wx-button,.wx-secondary,.wx-phone,.wx-back{font:inherit;cursor:pointer}.wx-button,.wx-secondary{width:100%;border-radius:10px;min-height:45px;margin:6px 0;font-size:14px;font-weight:600;padding:10px 14px}.wx-button{border:1px solid #2e64e8;background:#2e64e8;color:white}.wx-button:hover{background:#2054d3}.wx-secondary{background:#f5f8ff;color:#3365cf;border:1px solid #e2eafb}.wx-phone{margin-top:17px;background:none;border:0;border-top:1px solid #e9edf4;padding:17px 6px 0;color:#4c6eab;width:100%;font-size:13px}.wx-success{border-radius:50%;width:58px;height:58px;background:#e7f5ee;color:#2a9b68;display:grid;place-items:center;font-size:30px}.wx-help{font-size:13px;line-height:1.7;color:#64728a;margin:4px 0 15px}.wx-field{text-align:left;display:block;font-size:13px;color:#53637d;margin-bottom:13px}.wx-field input{display:block;width:100%;height:43px;margin-top:7px;border:1px solid #dce4ef;border-radius:9px;padding:0 12px;font:inherit;background:#fff;color:#263c61}.wx-field input:focus{outline:2px solid #adc7ff;border-color:#6e9aff}.wx-captcha{width:100%;height:46px;border:1px solid #dce4ef;background:#f7faff;border-radius:9px;cursor:pointer;margin-bottom:12px}.wx-captcha img{height:42px;max-width:100%}.wx-agreement{display:flex;text-align:left;gap:8px;font-size:11px;line-height:1.8;color:#758199;margin:12px 0}.wx-agreement input{flex:none}.wx-back{border:0;background:none;color:#8090a7;font-size:12px;padding:12px}.kory-wx-dialog button:disabled{opacity:.55;cursor:wait}.kory-wx-dialog :focus-visible{outline:2px solid #356df2;outline-offset:3px}@media(max-width:480px){.kory-wx-dialog .wx-card{padding:26px 22px 20px}.kory-wx-dialog h2{font-size:23px}.wx-qr{width:210px;height:210px}}
.kory-wx-dialog{position:fixed;inset:0;margin:auto;height:fit-content}.kory-wx-dialog h2{font-weight:700;line-height:1.3}
/* First WeChat scan creates the account; keep the existing phone login form. */
nav a[href="/register"],.auth-footer:has(a[href="/register"]){display:none!important}
/* Guest navigation has no task history yet; authenticated links remain intact. */
.top-nav .nav-actions:has(.btn-login) a[href="/tasks"],.top-nav .nav-drawer:has(.btn-login) a[href="/tasks"]{display:none!important}
.kory-wx-dialog{width:min(380px,calc(100vw - 28px));border-radius:22px}
.kory-wx-dialog .wx-card{padding:26px 26px 22px}
.kory-wx-dialog .wx-logo{display:block;width:44px;height:44px;object-fit:contain;border-radius:11px;background:none;box-shadow:none}
.kory-wx-dialog h2{font-size:23px;margin:12px 0 6px}
.kory-wx-dialog .wx-subtitle{font-size:13px;margin-bottom:18px}
.kory-wx-dialog .wx-qr,.kory-wx-dialog .wx-placeholder{width:204px;height:204px}
.kory-wx-dialog .wx-status{font-size:13px;min-height:21px;margin:12px 0}
.kory-wx-dialog .wx-phone{margin-top:6px;padding-top:15px;font-size:13px}
.kory-wx-dialog .wx-policy{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:2px;margin:18px 0 0;color:#8792a3;font-size:11px;line-height:1.8}
.kory-wx-dialog .wx-policy a{color:#607ca6;text-decoration:none}
.kory-wx-dialog .wx-policy a:hover{text-decoration:underline}
.kory-wx-dialog .wx-policy-check{display:inline-grid;place-items:center;width:14px;height:14px;margin-right:4px;border-radius:4px;background:#16b881;color:white;font-size:11px;line-height:1}
@media(max-width:480px){.kory-wx-dialog .wx-card{padding:24px 20px 20px}}
