:root {
  --bs-primary: #245eea;
  --account-ink: #1d2a41;
  --account-muted: #64748b;
  --account-border: #e4eaf2;
}
body {
  margin: 0;
  background: #f3f6fb;
  color: var(--account-ink);
  font-family: system-ui, -apple-system, "Segoe UI", "Microsoft YaHei", sans-serif;
}
a { text-underline-offset: .2em; }
.app-shell { max-width: 1200px; margin: auto; padding: 0 32px 24px; }
.app-header { min-height: 100px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--account-ink); font-size: 19px; font-weight: 700; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: #245eea; color: white; font-size: 24px; }
.brand-subtitle { margin-left: 7px; color: var(--account-muted); font-size: 15px; font-weight: 400; }
.header-caption, .app-footer { color: var(--account-muted); font-size: 13px; }
.account-toolbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; margin-bottom: 24px; }
.nav { gap: 4px; }
.nav-link { color: var(--account-muted); font-size: 14px; padding: 10px 16px; }
.nav-pills .nav-link.active { background: #e4ecff; color: #1d50cc; font-weight: 600; }
.account-identity { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 14px; }
.role-label { background: #e9edf3; color: #59677d; padding: 4px 8px; border-radius: 6px; font-size: 12px; }
.account-panel { background: white; border: 1px solid var(--account-border); border-radius: 18px; padding: 32px; box-shadow: 0 8px 30px #172d4f05; }
.compact-panel { max-width: 580px; margin: 24px auto 0; padding: 36px; }
.page-heading { margin-bottom: 24px; }
.eyebrow { color: var(--account-muted); font-size: 12px; letter-spacing: .1em; }
h1 { font-size: 28px; font-weight: 700; margin: 8px 0 0; }
h2 { font-size: 20px; font-weight: 650; margin: 28px 0 16px; }
.page-description { color: var(--account-muted); margin-top: -10px; margin-bottom: 24px; }
.auth-form .form-label { display: block; font-size: 14px; font-weight: 600; margin-top: 20px; margin-bottom: 8px; }
.auth-form .form-control { min-height: 46px; border-color: #cbd5e1; border-radius: 9px; font-size: 15px; }
.auth-form .form-text { color: var(--account-muted); font-size: 12px; line-height: 1.7; }
.auth-form .btn { min-height: 46px; margin-top: 22px; border-radius: 9px; font-size: 15px; font-weight: 600; }
.remember-option { display: flex; align-items: center; gap: 9px; margin: 18px 0 0; color: var(--account-muted); font-size: 14px; }
.remember-option .form-check-input { margin-top: 0; }
.alert { border-radius: 10px; font-size: 14px; line-height: 1.75; }
.password-notice { border-color: #f0d38a; background: #fffaeb; color: #754d0d; }
.password-notice h2 { margin: 6px 0 8px; font-size: 19px; color: #654006; }
.password-notice p { margin-bottom: 8px; }
.step-label { font-size: 12px; font-weight: 600; }
.login-help { background: #f6f8fc; border-radius: 10px; padding: 16px; margin-top: 24px; font-size: 13px; line-height: 1.75; }
.login-help strong { font-weight: 600; }
.login-help p { color: var(--account-muted); margin: 4px 0 0; }
.note { color: var(--account-muted); font-size: 13px; line-height: 1.8; margin: 16px 0; }
.app-footer { text-align: center; margin-top: 26px; line-height: 1.8; }
.table-responsive { border: 1px solid var(--account-border); border-radius: 10px; margin-bottom: 28px; }
.table { margin: 0; min-width: 600px; font-size: 14px; }
.table > :not(caption) > * > * { padding: 14px 16px; border-color: var(--account-border); }
.table thead th { background: #f7f9fc; font-size: 13px; color: var(--account-muted); white-space: nowrap; }
.table td { overflow-wrap: anywhere; }
.table td:last-child { min-width: 330px; }
.account-content > form:not(.auth-form) { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; margin: 16px 0; }
.account-content > form:not(.auth-form) > label { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
form.inline { display: inline-flex; align-items: center; gap: 8px; margin: 4px 8px 4px 0; }
input:not([type=hidden]):not([type=checkbox]):not(.form-control), select {
  min-height: 38px; width: 190px; max-width: 100%; border: 1px solid #cbd5e1;
  border-radius: 7px; padding: 7px 10px; background: white; font: inherit;
}
button:not(.btn) { min-height: 38px; border: 1px solid #245eea; border-radius: 7px; padding: 7px 13px; background: #245eea; color: white; font: inherit; white-space: nowrap; }
button:not(.btn):hover { background: #194bc5; }
code { overflow-wrap: anywhere; }
:focus-visible { outline: 3px solid #80a9ff; outline-offset: 3px; }
.skip-link { position: absolute; top: -60px; left: 16px; padding: 10px; background: white; z-index: 10; }
.skip-link:focus { top: 12px; }
@media (max-width: 640px) {
  .app-shell { padding: 0 14px 20px; }
  .app-header { min-height: 80px; }
  .header-caption { display: none; }
  .brand { font-size: 17px; gap: 9px; }
  .brand-subtitle { font-size: 13px; margin-left: 4px; }
  .account-toolbar { margin-bottom: 18px; gap: 12px; }
  .nav-link { padding: 9px 12px; font-size: 13px; }
  .account-panel, .compact-panel { padding: 24px 20px; border-radius: 14px; }
  .compact-panel { margin-top: 12px; }
  h1 { font-size: 25px; }
  .app-footer { margin-top: 20px; padding: 0 8px; }
  .account-content > form:not(.auth-form) > label { width: 100%; }
  .account-content > form:not(.auth-form) input:not([type=hidden]), .account-content > form:not(.auth-form) select { width: 100%; }
}
