      :root {
        --surface-muted: #f1f5f9;
        --brand-rgb: 37, 99, 235;
        --gradient-brand: linear-gradient(90deg, #2563eb 0%, #3b82f6 100%);
      }
      /* 与主站账密「登录」一致：独立 tailwind 构建未扫到此 class 时需本地定义 */
      .btn-brand-gradient {
        background: var(--gradient-brand) !important;
        color: #fff !important;
        box-shadow: 0 4px 14px rgba(var(--brand-rgb), 0.22);
      }
      .btn-brand-gradient:hover:not(:disabled) {
        filter: brightness(1.06);
      }
      .btn-brand-gradient:focus-visible {
        outline: none;
        box-shadow: 0 0 0 3px rgba(var(--brand-rgb), 0.35), 0 4px 14px rgba(var(--brand-rgb), 0.22);
      }
      .btn-brand-gradient:disabled {
        filter: none;
        opacity: 0.55;
      }
      html, body { height: 100%; }
      body {
        margin: 0;
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial,
          "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", sans-serif;
      }

      /* 语言切换（分段控件） */
      .locale-switch{
        display:inline-flex;align-items:center;gap:0;padding:2px;border-radius:10px;
        border:1px solid rgb(226 232 240);background:#fff;box-shadow:0 1px 2px rgba(15,23,42,0.04);
      }
      .locale-segment{
        border:0;background:transparent;padding:4px 10px;border-radius:8px;
        font-size:12px;font-weight:500;line-height:1.25;color:rgb(100 116 139);cursor:pointer;
        transition:background-color 150ms ease,color 150ms ease,box-shadow 150ms ease;
      }
      .locale-segment[data-active="true"]{
        background:rgb(241 245 249);color:rgb(15 23 42);box-shadow:0 1px 2px rgba(15,23,42,0.06);
      }
      .locale-segment[data-active="false"]:hover{
        color:rgb(51 65 85);background:rgba(241,245,249,0.65);
      }

      /* 轻微进入动画 */
      .fade-in{opacity:0;transform:translateY(8px);transition:opacity 200ms ease,transform 200ms ease;}
      .fade-in.loaded{opacity:1;transform:translateY(0);}

      /* 钉钉内首屏：JS 执行前避免登录表单闪现 */
      html.dt-sso-auto-login #mainLoginBlock { display: none !important; }
      html.dt-sso-auto-login #dingAutoLoginBlock { display: flex !important; }
      html.dt-sso-auto-login #dingAutoLoginLoading { display: flex !important; }
      html.dt-sso-auto-login .sso-page-bottom { display: none !important; }

      .sso-page-bottom {
        margin-top: 1.5rem;
        padding-top: 1.25rem;
        border-top: 1px solid rgb(241 245 249);
        text-align: center;
      }
      .sso-auth-switch { margin-bottom: 0.875rem; }
      .sso-auth-switch p {
        margin: 0;
        font-size: 0.8125rem;
        line-height: 1.625;
        color: rgb(100 116 139);
      }
      .sso-auth-switch-link {
        margin-left: 0.125rem;
        color: rgb(37 99 235);
        font-weight: 500;
        text-decoration: none;
        transition: color 150ms ease;
      }
      .sso-auth-switch-link:hover {
        color: rgb(29 78 216);
        text-decoration: underline;
        text-underline-offset: 3px;
      }
      .sso-copyright {
        margin: 0;
        font-size: 0.6875rem;
        line-height: 1.5;
        color: rgb(148 163 184);
      }

      .login-tabrow{display:flex;flex-wrap:wrap;gap:8px 16px;justify-content:flex-start;align-items:flex-end;margin-bottom:1.25rem;}
      /* 单种登录方式时 JS 会加 Tailwind 的 .hidden，但本文件在 tailwind 之后定义了 .login-tabrow{display:flex}，会盖掉 .hidden，需单独保证隐藏 */
      #loginTabRow.hidden,#resetChannelTabRow.hidden{display:none !important;}
      .login-tab-underline{
        flex:0 0 auto;padding:10px 4px 8px;font-size:14px;font-weight:600;cursor:pointer;border:0;background:transparent;white-space:nowrap;
        color:rgb(100 116 139);border-bottom:2px solid transparent;margin-bottom:-1px;transition:color .15s ease,border-color .15s ease;
      }
      .login-tab-underline:hover{color:rgb(51 65 85);}
      .login-tab-underline[aria-selected="true"]{color:rgb(37 99 235);border-bottom-color:rgb(37 99 235);}
      .login-tab-underline:focus-visible{outline:2px solid rgb(59 130 246);outline-offset:2px;border-radius:4px;}
      .login-panel{min-height:240px;}

      /* 手机号登录：获取验证码按钮文案单行完整显示（不依赖 tailwind 是否扫描到 whitespace-nowrap） */
      #smsSendBtn,
      #bindPhoneSendBtn,
      #mfaSendBtn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        white-space: nowrap;
        min-width: max-content;
      }
      #smsSendBtnText,
      #bindPhoneSendBtnText,
      #mfaSendBtnText {
        white-space: nowrap;
      }

      /* 邮箱登录：获取验证码按钮文案单行完整显示 */
      #emailSendBtn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        white-space: nowrap;
        min-width: max-content;
      }
      #emailSendBtnText {
        white-space: nowrap;
      }

      .privacy-policy-row {
        display: flex;
        align-items: flex-start;
        gap: 0.5rem;
        margin: 0 0 1.25rem;
        font-size: 0.875rem;
        line-height: 1.375rem;
        color: rgb(51 65 85);
      }
      .privacy-policy-row input[type="checkbox"] {
        margin-top: 0.2rem;
        flex-shrink: 0;
        width: 1rem;
        height: 1rem;
      }
      .privacy-policy-row label {
        margin: 0;
        cursor: pointer;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 0.25rem;
      }
      #privacyPolicyLink {
        border: 0;
        background: transparent;
        padding: 0;
        font-size: inherit;
        font-weight: 500;
        color: rgb(37 99 235);
        text-decoration: none;
        cursor: pointer;
      }
      #privacyPolicyLink:hover { text-decoration: underline; text-underline-offset: 2px; }

      #privacyModal.hidden { display: none !important; }
      #privacyModal {
        position: fixed;
        inset: 0;
        z-index: 50;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 1rem;
      }
      #privacyModalBackdrop {
        position: absolute;
        inset: 0;
        background: rgba(15, 23, 42, 0.4);
        backdrop-filter: blur(2px);
      }
      #privacyModalPanel {
        position: relative;
        z-index: 1;
        display: flex;
        flex-direction: column;
        width: min(100%, 32rem);
        max-height: min(85vh, 640px);
        overflow: hidden;
        border-radius: 0.75rem;
        border: 1px solid rgb(226 232 240 / 0.9);
        background: #fff;
        box-shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
      }
      #privacyModalHeader {
        flex-shrink: 0;
        border-bottom: 1px solid rgb(241 245 249);
        background: linear-gradient(90deg, rgb(248 250 252 / 0.9), #fff);
        padding: 0.875rem 2.75rem 0.875rem 1.25rem;
        text-align: left;
      }
      #privacyModalTitle {
        margin: 0;
        font-size: 1rem;
        font-weight: 600;
        letter-spacing: -0.01em;
        color: rgb(15 23 42);
      }
      #privacyModalCloseX {
        position: absolute;
        right: 0.875rem;
        top: 0.75rem;
        z-index: 2;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 2rem;
        height: 2rem;
        border: 0;
        border-radius: 0.375rem;
        background: transparent;
        color: rgb(100 116 139);
        font-size: 1.25rem;
        line-height: 1;
        cursor: pointer;
      }
      #privacyModalCloseX:hover { color: rgb(51 65 85); background: rgb(241 245 249); }
      #privacyDocxRoot {
        flex: 1 1 auto;
        min-height: min(52vh, 420px);
        overflow: auto;
        padding: 1rem 1.25rem;
        font-size: 13px;
        line-height: 1.6;
        color: rgb(51 65 85);
        background: #fff;
      }
      #privacyDocxRoot .docx-wrapper {
        box-shadow: none !important;
        background: transparent !important;
        padding: 0 !important;
      }
      #privacyDocxRoot .docx-wrapper > section.docx {
        padding: 0 !important;
        margin-bottom: 0.75rem;
      }
      #privacyModalFooter {
        flex-shrink: 0;
        display: flex;
        justify-content: flex-end;
        gap: 0.5rem;
        border-top: 1px solid rgb(241 245 249);
        background: #fff;
        padding: 0.75rem 1.25rem;
      }
      #privacyModalAckBtn {
        min-width: 6rem;
        height: 2.25rem;
        padding: 0 1rem;
        border: 0;
        border-radius: 0.5rem;
        font-size: 0.875rem;
        font-weight: 500;
        color: #fff;
        cursor: pointer;
      }

      #postAuthBlock.hidden { display: none !important; }
      /* popup 挂载点：默认不挡点击，SDK 注入子节点后可交互 */
      #captchaMount {
        position: fixed;
        left: 0;
        top: 0;
        width: 0;
        height: 0;
        overflow: visible;
        z-index: 10000;
        pointer-events: none;
      }
      #captchaMount > * {
        pointer-events: auto;
      }

      .sso-toast-root {
        position: fixed;
        left: 50%;
        top: 5rem;
        z-index: 10050;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
        width: min(92vw, 24rem);
        transform: translateX(-50%);
        pointer-events: none;
      }
      .sso-toast {
        display: flex;
        align-items: flex-start;
        gap: 0.625rem;
        width: 100%;
        padding: 0.75rem 1rem;
        border-radius: 0.75rem;
        font-size: 0.875rem;
        line-height: 1.375rem;
        box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
        opacity: 0;
        transform: translateY(-8px);
        transition: opacity 0.2s ease, transform 0.2s ease;
        pointer-events: auto;
      }
      .sso-toast__icon {
        flex-shrink: 0;
        width: 1.125rem;
        height: 1.125rem;
        margin-top: 0.125rem;
      }
      .sso-toast__text {
        flex: 1;
        min-width: 0;
      }
      .sso-toast--visible {
        opacity: 1;
        transform: translateY(0);
      }
      .sso-toast--info,
      .sso-toast--success {
        background: #eff6ff;
        border: 1px solid #bfdbfe;
        color: #1e40af;
      }
      .sso-toast--error {
        background: #fef2f2;
        border: 1px solid #fecaca;
        color: #b91c1c;
      }
