.registration-flow-overlay[hidden], .registration-flow-dialog [hidden] { display: none !important; }
.registration-flow-overlay { position: fixed; inset: 0; z-index: 21000000; background: rgba(0,0,0,.5); display: flex; align-items: center; justify-content: center; padding: 20px; box-sizing: border-box; }
.registration-flow-dialog { width: 440px; max-width: 100%; max-height: calc(100vh - 40px); overflow-y: auto; padding: 28px; border-radius: 12px; background: #fff; color: #333; box-sizing: border-box; }
.registration-flow-dialog h2 { margin: 0 0 12px; font-size: 22px; line-height: 1.4; }
.registration-flow-intro, .registration-flow-note { color: #666; font-size: 13px; line-height: 1.7; margin: 10px 0; }
.registration-flow-steps { display: flex; list-style: none; padding: 0; gap: 12px; margin: 20px 0; font-size: 13px; }
.registration-flow-steps li { color: #777; border-bottom: 2px solid #ddd; padding-bottom: 10px; flex: 1; }
.registration-flow-steps li.is-current { color: #167ef5; border-color: #167ef5; font-weight: 600; }
.registration-flow-steps li.is-done { color: #23824c; border-color: #23824c; }
.registration-flow-dialog label { display: block; font-size: 14px; margin: 16px 0 7px; }
.registration-flow-dialog input { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid #ccc; border-radius: 5px; font-size: 15px; box-sizing: border-box; }
.registration-flow-dialog input[readonly] { background: #f5f7fa; }
.registration-flow-dialog input:focus-visible, .registration-flow-dialog button:focus-visible, .registration-flow-dialog a:focus-visible { outline: 2px solid #167ef5; outline-offset: 2px; }
.registration-flow-code-row { display: flex; gap: 10px; }
.registration-flow-code-row input { min-width: 0; flex: 1; }
.registration-flow-dialog button { cursor: pointer; min-height: 44px; border-radius: 5px; font-size: 14px; }
.registration-flow-code-row button { flex-shrink: 0; padding: 0 12px; background: #fff; border: 1px solid #167ef5; color: #167ef5; }
.registration-flow-primary { width: 100%; margin-top: 20px; background: #167ef5; border: 0; color: #fff; }
.registration-flow-dismiss, .registration-flow-secondary { width: 100%; margin-top: 16px; background: transparent; color: #666; border: 0; }
.registration-flow-dialog button:disabled { opacity: .6; cursor: wait; }
.registration-flow-message { min-height: 20px; color: #b42318; font-size: 14px; line-height: 1.5; text-align: center; }
.registration-flow-account { font-weight: 600; margin-bottom: 16px; }
.registration-upgrade-description { margin: 0 0 18px; font-size: 14px; line-height: 1.7; }
.registration-upgrade-accounts { margin: 0; padding: 16px; background: #f5f7fa; border-radius: 6px; }
.registration-upgrade-accounts dt { color: #666; font-size: 13px; }
.registration-upgrade-accounts dd { margin: 5px 0 16px; font-size: 17px; font-weight: 600; overflow-wrap: anywhere; }
.registration-upgrade-accounts dd:last-child { margin-bottom: 0; color: #167ef5; }
.registration-upgrade-notes { margin: 18px 0 0; padding-left: 20px; font-size: 13px; line-height: 1.8; color: #666; }
.registration-upgrade-notes li + li { margin-top: 8px; }
.registration-flow-dialog.is-upgrade-notice .registration-flow-message:empty { display: none; }
#registration-wechat-qr { min-height: 20px; text-align: center; }
#registration-wechat-qr iframe { max-width: 100%; }
.registration-flow-note a { color: #167ef5; }
@media (max-width: 480px) { .registration-flow-overlay { padding: 12px; } .registration-flow-dialog { padding: 22px 18px; max-height: calc(100dvh - 24px); } .registration-flow-steps { gap: 6px; font-size: 12px; } }
@media (prefers-reduced-motion: no-preference) { .registration-flow-dialog { animation: registration-flow-enter .16s ease-out; } @keyframes registration-flow-enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } } }
