body.staff-login {
  min-width: 0;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  background: #f1f4f8;
  color: #20364d;
  font: 14px/1.55 "Segoe UI", "Microsoft YaHei", sans-serif;
}
.staff-login [hidden] { display: none !important; }
.staff-login * { box-sizing: border-box; }
.staff-login-shell { width: min(100%, 440px); margin-inline: auto; padding: clamp(2rem, 12vh, 7rem) 1rem 2rem; }
.staff-login-brand { display: flex; align-items: baseline; gap: .75rem; margin: 0 0 16px; color: #28435c; }
.staff-login-brand strong { font-size: 29px; letter-spacing: -.025em; line-height: 1; }
.staff-login-brand strong span { color: #2584a4; }
.staff-login-brand > span { color: #455e75; font-weight: 650; }
.staff-login-card { padding: clamp(20px, 7vw, 34px); border: 1px solid #d4deea; border-radius: 14px; background: white; }
.staff-login-card h1 { margin: 0; font-size: 25px; line-height: 1.24; }
.auth-subtitle { margin: .5rem 0 0; color: #4d647b; }
.auth-form { display: grid; gap: 13px; margin-top: 22px; }
.auth-form label { display: grid; gap: 5px; font-weight: 650; }
.auth-form input, .auth-secret-row input {
  min-width: 0;
  width: 100%;
  min-height: 43px;
  padding: 8px 11px;
  border: 1px solid #aabed2;
  border-radius: 6px;
  background: #fff;
  color: #20364d;
  font: inherit;
  font-weight: 400;
}
.auth-password-hint { margin: -2px 0 0; font-size: 12px; }
.auth-primary {
  min-height: 42px;
  padding: 8px 15px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: #1d5c93;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.auth-primary:hover { background: #174e80; }
.auth-primary:disabled { opacity: .68; cursor: wait; }
.auth-switch { display: inline-block; margin-top: 17px; color: #184f80; font-weight: 650; text-underline-offset: 3px; }
.auth-return { padding: 0; border: 0; background: none; font: inherit; font-weight: 650; text-decoration: underline; cursor: pointer; }
.auth-setup { display: grid; gap: 7px; margin-top: 16px; padding: 11px 12px; border: 1px solid #d4deea; border-radius: 7px; background: #f6f9fc; }
.auth-setup p { margin: 0; }
.auth-setup label { font-size: 13px; font-weight: 650; }
.auth-setup .auth-subtitle { font-size: 12px; }
.auth-secret-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; }
.auth-secret-row input { min-height: 37px; font: 13px ui-monospace, Consolas, monospace; }
.auth-secondary { padding: 5px 9px; border: 1px solid #aabed2; border-radius: 6px; background: white; color: #184f80; font: inherit; cursor: pointer; }
.staff-login :focus-visible { outline: 2px solid #2977b0; outline-offset: 2px; }
.auth-notice { margin: 0; padding: 8px 10px; border-radius: 5px; background: #edf6fd; color: #184f80; font-size: 13px; }
.auth-notice[data-tone="error"] { background: #fff1ee; color: #91392b; }
.staff-login noscript p { margin-top: 12px; }
