/* 正式 V4 复用 正式桌面登录体验；仅作用于认证页。 */
body.desktop-auth .desktop-titlebar-brand{display:flex;align-items:center;gap:8px}
body.desktop-auth .desktop-titlebar-label{display:block;min-width:0;white-space:nowrap}
body.desktop-auth .desktop-app-icon{display:block;width:20px;height:20px;flex:0 0 20px;padding:0;border:0;border-radius:4px;background:transparent;object-fit:contain;box-sizing:border-box;margin:0;vertical-align:middle}
body.desktop-auth.auth-mode .desktop-remember-placeholder{display:block;width:100%;height:19px;margin:9px 0 12px}
body.desktop-auth.auth-mode:not(.desktop-mode) .desktop-remember-placeholder{height:37px}
body.desktop-auth.desktop-mode.auth-mode::before{display:none!important}
body.desktop-auth.desktop-mode.auth-mode .desktop-window-outline{display:none!important;border:0!important;box-shadow:none!important}
body.desktop-auth.desktop-mode.auth-mode .desktop-titlebar{height:38px;min-height:38px;background:linear-gradient(135deg,#246fc9 0%,#155bb7 100%);border-bottom:0;box-shadow:none}
body.desktop-auth.desktop-mode.auth-mode .desktop-titlebar-brand{font-size:12px;line-height:1.2;white-space:nowrap}
body.desktop-auth.desktop-mode.auth-mode .desktop-titlebar-actions{height:38px}
body.desktop-auth.desktop-mode.auth-mode .desktop-titlebar-actions button{width:34px;min-width:34px;height:38px}
body.desktop-auth.desktop-mode.auth-mode .desktop-titlebar-actions button[data-window-action="maximize"]{display:none}
body.desktop-auth.desktop-mode.auth-mode #app{height:calc(100vh - 38px);margin-top:38px;min-height:0;overflow-y:auto;overflow-x:hidden;background:#f8fafc}
body.desktop-auth.desktop-mode.auth-mode .auth-shell{min-height:100%;background:#f8fafc}
body.desktop-auth.desktop-mode.auth-mode .auth-area{min-height:100%;padding:22px 28px 28px;overflow:visible}
body.desktop-auth.desktop-mode.auth-mode .auth-card{width:100%;max-width:none;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none}
body.desktop-auth.desktop-mode.auth-mode .auth-card h2{font-size:22px;margin-bottom:4px}
body.desktop-auth.desktop-mode.auth-mode .auth-card .desc{margin:4px 0 12px;font-size:11px}
body.desktop-auth.desktop-mode.auth-mode .auth-card .field{margin-bottom:10px}
body.desktop-auth.desktop-mode.auth-mode .auth-card .field label{margin-bottom:4px;font-size:11px}
body.desktop-auth.desktop-mode.auth-mode .auth-card .input{height:34px;font-size:12px}
body.desktop-auth.desktop-mode.auth-mode .auth-card .remember-row{margin:9px 0 12px;font-size:11px}
body.desktop-auth.desktop-mode.auth-mode .desktop-remember-placeholder{display:block;width:100%;height:19px;margin:9px 0 12px}
body.desktop-auth.desktop-mode.auth-mode .auth-card .submit{height:36px;font-size:13px}
body.desktop-auth.desktop-mode.auth-mode .auth-card .auth-links{margin-top:10px;font-size:11px}
body.desktop-auth.desktop-mode.auth-mode .auth-links{position:sticky;bottom:0;z-index:4;margin:10px -28px -28px;padding:10px 28px 12px;background:linear-gradient(180deg,rgba(248,250,252,.82),#f8fafc 30%);box-sizing:border-box}
body.desktop-auth.desktop-mode.auth-mode .desktop-password-control{position:relative}
body.desktop-auth.desktop-mode.auth-mode .desktop-password-control .input{padding-right:38px}
body.desktop-auth.desktop-mode.auth-mode .desktop-password-toggle{position:absolute;top:0;right:5px;width:30px;height:34px;display:grid;place-items:center;padding:0;border:0;background:transparent;color:#7890aa;cursor:pointer}
body.desktop-auth.desktop-mode.auth-mode .desktop-password-toggle svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
body.desktop-auth.desktop-mode.auth-mode .desktop-password-toggle.is-visible{color:#1769d1}
body.desktop-auth.auth-mode .desktop-password-control{position:relative}
body.desktop-auth.auth-mode .desktop-password-control .input{padding-right:38px}
body.desktop-auth.auth-mode .desktop-password-toggle{position:absolute;top:0;right:5px;width:30px;height:34px;display:grid;place-items:center;padding:0;border:0;background:transparent;color:#7890aa;cursor:pointer}
body.desktop-auth.auth-mode .desktop-password-toggle svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
body.desktop-auth.auth-mode .desktop-password-toggle.is-visible{color:#1769d1}
body.desktop-auth.desktop-mode.auth-mode .code-row{grid-template-columns:minmax(0,1fr) 112px;gap:8px;align-items:center}
body.desktop-auth.desktop-mode.auth-mode .code-row .btn{height:34px;min-height:34px;width:112px;padding:0 8px;border:1px solid #b9cde0;border-radius:7px;background:linear-gradient(180deg,#fff,#f5f9fd);color:#155aa7;font:600 12px/1 "Microsoft YaHei","Segoe UI",sans-serif;letter-spacing:.2px;white-space:nowrap;box-shadow:0 1px 2px rgba(36,85,125,.08);transition:background-color .12s ease,border-color .12s ease,color .12s ease,box-shadow .12s ease,transform .08s ease}
body.desktop-auth.desktop-mode.auth-mode .code-row .btn:hover{border-color:#6fa8d6;background:#edf6ff;color:#0e519a;box-shadow:0 2px 6px rgba(40,101,155,.14)}
body.desktop-auth.desktop-mode.auth-mode .code-row .btn:active{transform:translateY(1px);box-shadow:none}
body.desktop-auth.desktop-mode.auth-mode .code-row .btn:disabled{cursor:not-allowed;opacity:.6;transform:none}
body.desktop-auth.desktop-mode.auth-mode .desktop-remember-password{height:27px;margin:-7px 0 8px;color:#536986;display:flex;align-items:center;gap:7px;font:12px "Microsoft YaHei",sans-serif;cursor:pointer;user-select:none}
body.desktop-auth.desktop-mode.auth-mode .desktop-remember-password input{width:15px;height:15px;margin:0;accent-color:#176bb0;cursor:pointer}
/* 登录窗口使用透明原生底色，圆角仅由标题栏和内容区共同构成，避免窗口底色从四角露出。 */
html:has(body.desktop-auth.desktop-mode.auth-mode),body.desktop-auth.desktop-mode.auth-mode{background:#f8fafc!important;border-radius:0!important}
body.desktop-auth.desktop-mode.auth-mode .desktop-titlebar{overflow:hidden;border-radius:0!important}
body.desktop-auth.desktop-mode.auth-mode #app{overflow:auto;border-radius:0!important}
body.desktop-auth.desktop-mode.auth-mode .auth-shell{overflow:hidden}
@media(max-width:600px){body.desktop-auth.desktop-mode.auth-mode .auth-area{padding:22px 28px 28px}.desktop-auth.desktop-mode.auth-mode .auth-card{padding:0}.desktop-auth.desktop-mode.auth-mode .auth-links{margin-left:-28px;margin-right:-28px;padding-left:28px;padding-right:28px}}

/* 正式 V4 登录窗口：直接作用于真实桌面窗口，避免失效提示撑出页面滚动条。 */
body.desktop-auth.desktop-mode.auth-mode .desktop-titlebar-brand,
body.desktop-auth.desktop-mode.auth-mode .auth-card,
body.desktop-auth.desktop-mode.auth-mode .auth-card h2,
body.desktop-auth.desktop-mode.auth-mode .auth-card .desc,
body.desktop-auth.desktop-mode.auth-mode .auth-card .field label,
body.desktop-auth.desktop-mode.auth-mode .auth-card .remember-row,
body.desktop-auth.desktop-mode.auth-mode .auth-card .btn,
body.desktop-auth.desktop-mode.auth-mode .auth-card .auth-links,
body.desktop-auth.desktop-mode.auth-mode .auth-card .auth-links button {
  font-weight: 400;
}

body.desktop-auth.desktop-mode.auth-mode #app {
  box-sizing: border-box;
  overflow: hidden !important;
}

body.desktop-auth.desktop-mode.auth-mode .auth-shell {
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

body.desktop-auth.desktop-mode.auth-mode .auth-area {
  height: 100%;
  min-height: 0;
  box-sizing: border-box;
  padding: 14px 28px 14px;
  overflow: hidden;
}

body.desktop-auth.desktop-mode.auth-mode .auth-card {
  height: 100%;
  overflow: hidden;
}

body.desktop-auth.desktop-mode.auth-mode .auth-card h2 {
  font-size: 21px;
  line-height: 1.2;
}

body.desktop-auth.desktop-mode.auth-mode .auth-card .desc {
  margin: 2px 0 8px;
  font-size: 10px;
  line-height: 1.35;
}

body.desktop-auth.desktop-mode.auth-mode .auth-card .notice {
  margin: 0 0 8px;
  padding: 7px 10px;
  font-size: 10px;
  line-height: 1.35;
}

body.desktop-auth.desktop-mode.auth-mode .auth-card .field {
  margin-bottom: 8px;
}

body.desktop-auth.desktop-mode.auth-mode .auth-card .field label {
  margin-bottom: 3px;
}

body.desktop-auth.desktop-mode.auth-mode .auth-card .input {
  height: 32px;
}

body.desktop-auth.desktop-mode.auth-mode .auth-card .remember-row {
  height: 22px;
  margin: 4px 0 6px;
}

body.desktop-auth.desktop-mode.auth-mode .auth-card .submit {
  height: 34px;
}

body.desktop-auth.desktop-mode.auth-mode .auth-links {
  position: static;
  margin: 7px 0 0;
  padding: 0;
  background: transparent;
}

body.desktop-auth.desktop-mode.auth-mode .desktop-window-outline {
  display: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  clip-path: none !important;
  box-shadow: none !important;
}

@media(max-width:600px){
  body.desktop-auth.desktop-mode.auth-mode .auth-area{padding:14px 28px 14px}
}
.company-choice-list{display:grid;gap:10px;margin:4px 0 18px;max-height:260px;overflow:auto}
.company-choice{display:flex;align-items:center;gap:12px;padding:12px 14px;border:1px solid #d9e3f0;border-radius:8px;background:#fff;cursor:pointer}
.company-choice:hover{border-color:#8bb4f4;background:#f7faff}
.company-choice input{width:16px;height:16px;accent-color:#1769e0}
.company-choice span{display:grid;gap:3px;min-width:0}
.company-choice b{font-size:14px;font-weight:500;color:#162033}
.company-choice small{font-size:12px;color:#728198}
.company-search{width:100%;margin-bottom:10px}
.company-choice-pagination{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:-8px 0 14px}
.company-choice-pagination button{min-height:32px}
.company-choice-empty{margin:0;padding:18px;color:#728198;text-align:center}
