.account-login-page, .account-dialog {
  --account-ink: #1c1e21;
  --account-muted: #656b73;
  --account-line: #dde2e8;
  --account-blue: #0064e0;
  color: var(--account-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color-scheme: light;
}
.account-login-page *, .account-dialog * { box-sizing: border-box; }
.module-header { position: relative; padding-right: 244px; }
.account-controls { position: absolute; right: 24px; top: 50%; transform: translateY(-50%); display: flex; align-items: center; gap: 8px; }
.account-entry { max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border: 1px solid #dde2e8; border-radius: 999px; background: #fff; color: #333a44; padding: 8px 16px; font-size: 14px; cursor: pointer; }
.account-entry:hover { background: #f4f6f8; }
.account-login-page { margin: 0; min-height: 100dvh; display: grid; place-items: center; padding: 48px 24px; background: #f6f8fb; }
.account-login-panel { width: min(440px, 100%); padding: 40px; border: 1px solid #e4e8ee; border-radius: 24px; background: #fff; box-shadow: 0 8px 32px rgb(28 30 33 / 4%); }
.account-brand { display: flex; align-items: center; gap: 10px; margin: 0 0 36px; color: #252b33; font-size: 17px; font-weight: 650; letter-spacing: -.3px; }
.account-brand svg { width: 32px; height: 32px; color: var(--account-blue); flex: none; }
.account-login-panel h1 { margin: 0; font-size: 28px; font-weight: 650; line-height: 1.3; letter-spacing: -.6px; }
.account-intro { margin: 10px 0 28px; color: var(--account-muted); font-size: 14px; line-height: 1.7; }
.account-body { display: grid; gap: 16px; }
.account-body form { display: grid; gap: 20px; }
.account-body label { display: grid; gap: 8px; font-size: 14px; font-weight: 500; color: #343b45; }
.account-body input { width: 100%; min-width: 0; min-height: 52px; border: 1px solid #cdd3db; border-radius: 12px; padding: 13px 15px; font: inherit; font-size: 16px; font-weight: 400; color: var(--account-ink); background: #fff; transition: border-color .15s, box-shadow .15s; }
.account-body input::placeholder { color: #8c939d; }
.account-body input:hover { border-color: #9ea7b3; }
.account-body input:focus { outline: none; border-color: var(--account-blue); box-shadow: 0 0 0 3px rgb(0 100 224 / 10%); }
.account-body button { font: inherit; font-size: 15px; font-weight: 600; min-height: 48px; border-radius: 999px; padding: 12px 18px; cursor: pointer; transition: background .15s, border-color .15s; }
.account-primary { background: var(--account-blue); color: #fff; border: 1px solid var(--account-blue); }
.account-primary:hover { background: #0059c8; border-color: #0059c8; }
.account-login-link { display: grid; place-items: center; min-height: 48px; border-radius: 999px; padding: 12px 18px; font-size: 15px; font-weight: 600; text-decoration: none; }
.account-login-link:focus-visible { outline: 3px solid rgb(0 100 224 / 25%); outline-offset: 3px; }
.account-secondary { background: #fff; color: #414a56; border: 1px solid var(--account-line); }
.account-secondary:hover { background: #f4f6f8; }
.account-body button:disabled { opacity: .55; cursor: wait; }
.account-entry:focus-visible, .account-dialog button:focus-visible, .account-login-panel button:focus-visible { outline: 2px solid #0064e0; outline-offset: 3px; }
.account-hint { margin: 0; color: var(--account-muted); font-size: 13px; line-height: 1.7; font-weight: 400; }
.account-status { margin: 0; font-size: 13px; line-height: 1.6; color: var(--account-muted); overflow-wrap: anywhere; }
.account-status:not(:empty) { margin-top: 18px; border-radius: 10px; padding: 11px 13px; background: #f3f5f7; }
.account-status[data-tone="error"] { color: #a52e38; background: #fff1f2; }
.account-status[data-tone="success"] { color: #246646; background: #eff8f2; }
.account-login-note { margin: 28px 0 0; padding-top: 22px; border-top: 1px solid #edf0f3; color: #7b828d; font-size: 12px; line-height: 1.8; text-align: center; }
.account-dialog { width: min(460px, calc(100vw - 32px)); max-height: calc(100dvh - 40px); overflow: auto; border: 1px solid #e4e8ee; border-radius: 24px; padding: 32px; background: #fff; box-shadow: 0 16px 64px rgb(28 30 33 / 14%); }
.account-dialog::backdrop { background: rgb(24 32 44 / 32%); }
.account-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.account-heading h2 { margin: 0; font: inherit; font-size: 24px; font-weight: 650; line-height: 1.3; letter-spacing: -.5px; }
.account-close { display: grid; place-items: center; flex: none; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; color: #646c77; background: #f2f4f7; cursor: pointer; }
.account-close svg { width: 18px; height: 18px; }
.account-close:hover { background: #e8ecf1; }
.account-identity { display: flex; align-items: center; gap: 14px; margin-bottom: 4px; padding: 18px; border: 1px solid #e4e8ee; border-radius: 16px; }
.account-avatar { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 50%; color: var(--account-blue); background: #edf4ff; }
.account-avatar svg { width: 23px; height: 23px; }
.account-identity-copy { min-width: 0; display: grid; gap: 3px; }
.account-identity-copy strong { font-size: 17px; font-weight: 600; overflow-wrap: anywhere; }
.account-identity-copy span { font-size: 12px; color: var(--account-muted); }
.account-term { display: grid; gap: 12px; padding: 18px; border: 1px solid #e1e8f0; border-radius: 16px; background: #f8fafd; }
.account-term-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #596471; font-size: 13px; }
.account-term-badge { border-radius: 999px; padding: 3px 9px; background: #e9f2ff; color: #0064e0; font-size: 12px; }
.account-term-date { font-size: 17px; font-weight: 600; }
.account-term-progress { height: 6px; overflow: hidden; border-radius: 999px; background: #e2e8f0; }
.account-term-progress > span { display: block; height: 100%; border-radius: inherit; background: #0064e0; }
.account-term-note { margin: 0; color: #656b73; font-size: 12px; line-height: 1.6; }
.account-term[data-state="soon"] .account-term-badge { color: #926300; background: #fff3ce; }
.account-term[data-state="soon"] .account-term-progress > span { background: #c28a10; }
.account-term[data-state="expired"] .account-term-badge { color: #a52e38; background: #fff1f2; }
.account-term[data-state="expired"] .account-term-note { color: #a52e38; }
.account-body .account-setting { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 0; border: 0; border-bottom: 1px solid #edf0f3; border-radius: 0; color: var(--account-ink); background: transparent; text-align: left; }
.account-body .account-setting:hover { background: #f8f9fb; }
.account-setting > svg { width: 22px; height: 22px; flex: none; color: #6e7783; }
.account-setting-copy { display: grid; gap: 3px; min-width: 0; flex: 1; }
.account-setting-copy strong { font-size: 15px; font-weight: 500; }
.account-setting-copy small { color: var(--account-muted); font-size: 12px; font-weight: 400; }
.account-body .account-logout { margin-top: 8px; background: #f2f4f7; color: #4c5563; border: 1px solid #f2f4f7; }
.account-body .account-logout:hover { background: #e8ecf1; border-color: #e8ecf1; }
@media (max-width: 600px) {
  .module-header { padding-left: 12px; padding-right: 136px; }
  .account-controls { right: 12px; gap: 6px; }
  .account-entry { padding: 7px 10px; max-width: 78px; }
  .module-tabs { gap: 0; }
  .module-tab { padding-left: 8px; padding-right: 8px; font-size: 13px; }
  .account-login-page { padding: 32px 24px; background: #fff; }
  .account-login-panel { padding: 20px 0; border: 0; border-radius: 0; box-shadow: none; }
  .account-brand { margin-bottom: 32px; }
  .account-dialog { padding: 24px; border-radius: 20px; }
}
@media (prefers-reduced-motion: reduce) { .account-body button, .account-body input { transition: none; } }
