.account-login-page, .account-dialog {
  --account-ink: #17212e;
  --account-muted: #6b798c;
  --account-line: #e5eaf0;
  --account-blue: #0866ff;
  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;
  -webkit-font-smoothing: antialiased;
}
.account-login-page *, .account-dialog *, .message-viewport * { 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 #e2e7ee; border-radius: 999px; background: #fff; color: #3c4858; padding: 8px 16px; font-size: 14px; cursor: pointer; transition: background .18s, border-color .18s, transform .18s; }
.account-entry:hover { background: #f6f9ff; border-color: #cdddf5; }
.account-entry:active { transform: scale(.97); }
.account-login-page { margin: 0; min-height: 100dvh; display: grid; place-items: center; padding: 56px 24px; background: radial-gradient(ellipse at 50% 0%, #eaf2ff 0, transparent 55%), #f8faff; }
.account-login-panel { position: relative; width: min(444px, 100%); padding: 40px; border: 1px solid rgb(219 228 240 / 75%); border-radius: 28px; background: #fff; box-shadow: 0 24px 80px -28px rgb(32 65 117 / 16%), 0 2px 8px rgb(30 50 80 / 2%); animation: account-arrive .5s cubic-bezier(.16, 1, .3, 1) both; }
.account-brand { display: flex; align-items: center; gap: 11px; margin: 0 0 34px; color: #263545; font-size: 19px; font-weight: 650; letter-spacing: -.5px; }
.account-brand > svg { width: 40px; height: 40px; padding: 7px; border-radius: 12px; color: var(--account-blue); background: #eef5ff; flex: none; }
.account-brand > span { display: grid; gap: 1px; line-height: 1.3; }
.account-brand small { color: #6b798c; font-size: 11px; font-weight: 450; letter-spacing: .8px; }
.account-login-panel h1 { margin: 0; font-size: 30px; font-weight: 650; line-height: 1.3; letter-spacing: -1px; }
.account-intro { margin: 10px 0 28px; color: var(--account-muted); font-size: 14px; line-height: 1.8; }
.account-body { display: grid; gap: 12px; }
.account-body form { display: grid; gap: 20px; animation: account-content-in .24s cubic-bezier(.2, .8, .2, 1); }
.account-field { display: grid; gap: 8px; }
.account-body label { display: block; font-size: 13px; font-weight: 550; color: #4b5969; }
.account-input-shell { position: relative; }
.account-body input { width: 100%; min-width: 0; min-height: 54px; border: 1px solid #e0e6ee; border-radius: 14px; padding: 14px 16px; font: inherit; font-size: 16px; font-weight: 400; color: var(--account-ink); background: #fbfcfe; transition: border-color .2s, box-shadow .2s, background .2s; }
.account-body input::placeholder { color: #6b798c; }
.account-body input:hover { border-color: #c7d3e1; }
.account-body input:focus { outline: none; border-color: #77a9fa; background: #fff; box-shadow: 0 0 0 3px rgb(8 102 255 / 8%); }
.account-body input[aria-invalid="true"] { border-color: #e59da5; }
.account-input-shell.has-toggle input { padding-right: 52px; }
.account-body button { font: inherit; font-size: 14px; font-weight: 600; min-height: 48px; border-radius: 14px; padding: 12px 18px; cursor: pointer; transition: background .18s, border-color .18s, box-shadow .18s, transform .18s; -webkit-tap-highlight-color: transparent; }
.account-body button:active:not(:disabled) { transform: scale(.985); }
.account-body .account-field-toggle { position: absolute; top: 50%; right: 8px; transform: translateY(-50%); display: grid; place-items: center; width: 36px; min-height: 36px; padding: 7px; border: 0; border-radius: 10px; color: #8a98a9; background: transparent; }
.account-body .account-field-toggle:hover { color: #476b9c; background: #edf3fb; }
.account-body .account-field-toggle:active { transform: translateY(-50%) scale(.95); }
.account-field-toggle svg { width: 20px; height: 20px; }
.account-primary { display: flex; align-items: center; justify-content: center; gap: 9px; background: var(--account-blue); color: #fff; border: 1px solid var(--account-blue); box-shadow: 0 4px 12px -4px rgb(8 102 255 / 25%); }
.account-primary:hover { background: #005ce8; border-color: #005ce8; box-shadow: 0 6px 16px -5px rgb(8 102 255 / 30%); }
.account-primary.is-loading::before, .account-logout.is-loading::before { content: ""; width: 15px; height: 15px; flex: none; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: account-spin .7s linear infinite; }
.account-login-panel form > .account-primary { margin-top: 4px; min-height: 50px; }
.account-login-link { display: grid; place-items: center; min-height: 48px; border-radius: 14px; padding: 12px 18px; font-size: 14px; font-weight: 600; text-decoration: none; }
.account-secondary { background: #fff; color: #667386; border: 1px solid var(--account-line); }
.account-secondary:hover { background: #f6f8fc; border-color: #d9e2ee; }
.account-body button:disabled { opacity: .55; cursor: wait; }
.account-body button.is-loading { opacity: .85; }
.account-entry:focus-visible, .account-dialog button:focus-visible, .account-login-panel button:focus-visible, .account-login-link:focus-visible, .message-dismiss:focus-visible { outline: 2px solid #0866ff; outline-offset: 3px; }
.account-hint { margin: 0; color: var(--account-muted); font-size: 12px; line-height: 1.8; font-weight: 400; }
/* Feedback is presented by the floating live-region message, not a form banner. */
.account-status { display: none; }
.account-login-note { margin: 28px 0 0; padding-top: 22px; border-top: 1px solid #f0f3f7; color: #6b798c; font-size: 11px; line-height: 1.9; text-align: center; }
.account-dialog { width: min(460px, calc(100vw - 32px)); max-height: calc(100dvh - 40px); overflow: auto; overscroll-behavior: contain; border: 1px solid rgb(225 232 241 / 90%); border-radius: 26px; padding: 30px; background: #fff; box-shadow: 0 30px 100px -24px rgb(22 43 75 / 24%); scrollbar-width: thin; }
.account-dialog[open] { animation: account-dialog-in .2s cubic-bezier(.16, 1, .3, 1) both; }
.account-dialog::backdrop { background: rgb(31 45 66 / 25%); backdrop-filter: blur(4px); animation: account-backdrop-in .22s ease-out both; }
.account-dialog.is-closing { animation: account-dialog-out .16s ease-in both; }
.account-dialog.is-closing::backdrop { animation: account-backdrop-out .16s ease-in both; }
.account-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.account-heading h2 { margin: 0; font: inherit; font-size: 23px; font-weight: 650; line-height: 1.3; letter-spacing: -.6px; }
.account-close { display: grid; place-items: center; flex: none; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; color: #8995a4; background: #f6f8fb; cursor: pointer; transition: background .18s, transform .18s; }
.account-close svg { width: 17px; height: 17px; }
.account-close:hover { background: #eaf0f8; }
#account-title:focus { outline: none; }
.account-identity { display: flex; align-items: center; gap: 13px; padding: 17px; border: 1px solid #e9eef5; border-radius: 18px; background: #fff; }
.account-avatar { display: grid; place-items: center; width: 43px; height: 43px; flex: none; border-radius: 14px; color: var(--account-blue); background: #edf5ff; }
.account-avatar svg { width: 22px; height: 22px; }
.account-identity-copy { min-width: 0; display: grid; gap: 3px; }
.account-identity-copy strong { font-size: 16px; font-weight: 600; overflow-wrap: anywhere; }
.account-identity-copy span { font-size: 11px; color: #6b798c; }
.account-term { display: grid; gap: 12px; padding: 18px; border: 1px solid #e8eff9; border-radius: 18px; background: linear-gradient(120deg, #f4f8ff, #fafcff); }
.account-term-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #6b798c; font-size: 12px; }
.account-term-badge { border: 1px solid rgb(8 102 255 / 8%); border-radius: 999px; padding: 3px 9px; background: #eaf3ff; color: #3374ce; font-size: 11px; }
.account-term-date { font-size: 17px; font-weight: 600; letter-spacing: -.3px; }
.account-term-progress { height: 5px; overflow: hidden; border-radius: 999px; background: #e5edf8; }
.account-term-progress > span { display: block; height: 100%; border-radius: inherit; background: #75a6f2; transform-origin: left; animation: account-term-fill .6s cubic-bezier(.16, 1, .3, 1) both; }
.account-term-note { margin: 0; color: #6b798c; font-size: 11px; line-height: 1.7; }
.account-term[data-state="soon"] .account-term-badge { color: #a5781c; background: #fff8e8; border-color: #faeed1; }
.account-term[data-state="soon"] .account-term-progress > span { background: #d7b15b; }
.account-term[data-state="expired"] .account-term-badge { color: #c0606d; background: #fff2f4; border-color: #fae4e8; }
.account-term[data-state="expired"] .account-term-note { color: #c0606d; }
.account-body .account-setting { display: flex; align-items: center; gap: 13px; width: 100%; padding: 16px 12px; border: 1px solid transparent; border-radius: 15px; color: var(--account-ink); background: transparent; text-align: left; }
.account-body .account-setting:hover { background: #f7faff; border-color: #edf2fa; transform: translateX(2px); }
.account-setting > svg { width: 21px; height: 21px; flex: none; color: #94a3b7; }
.account-setting > svg:last-child { width: 17px; height: 17px; color: #bbc5d2; }
.account-setting-copy { display: grid; gap: 4px; min-width: 0; flex: 1; }
.account-setting-copy strong { font-size: 14px; font-weight: 550; }
.account-setting-copy small { color: #6b798c; font-size: 11px; font-weight: 400; }
.account-body .account-logout { display: flex; align-items: center; justify-content: center; gap: 9px; margin-top: 2px; background: #f6f8fb; color: #6b798c; border: 1px solid #f0f3f7; font-size: 13px; font-weight: 500; }
.account-body .account-logout:hover { background: #edf2f9; color: #5b6e87; border-color: #e5ecf6; }
.message-viewport { position: fixed; inset: auto; top: clamp(28px, 10dvh, 96px); left: 50%; transform: translateX(-50%); z-index: 10000; display: block; height: max-content; min-height: 0; max-height: none; align-self: start; width: max-content; max-width: calc(100vw - 32px); margin: 0; padding: 0; border: 0; overflow: visible; background: transparent; color: #253344; pointer-events: none; font: 13px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; -webkit-font-smoothing: antialiased; }
.message-viewport[hidden] { display: none !important; }
.message-viewport::backdrop { background: transparent; pointer-events: none; }
.message-toast { height: auto; min-height: 0; align-self: start; display: flex; align-items: center; gap: 10px; width: max-content; max-width: min(440px, calc(100vw - 32px)); padding: 12px 12px 12px 16px; border: 1px solid rgb(219 228 240 / 80%); border-radius: 18px; background: rgb(255 255 255 / 96%); box-shadow: 0 14px 42px -12px rgb(28 54 93 / 19%), 0 2px 8px rgb(28 54 93 / 4%); backdrop-filter: blur(16px); pointer-events: auto; animation: message-in .18s cubic-bezier(.16, 1, .3, 1) both; }
.message-toast.is-leaving { animation: message-out .18s ease-in both; }
.message-icon { display: grid; place-items: center; flex: none; width: 25px; height: 25px; border-radius: 50%; color: #4689e5; background: #eef5ff; }
.message-icon svg { width: 18px; height: 18px; }
.message-toast[data-tone="success"] .message-icon { color: #3b9c7c; background: #edf8f3; }
.message-toast[data-tone="error"] .message-icon { color: #d16979; background: #fff0f3; }
.message-toast[data-tone="warning"] .message-icon { color: #c79b43; background: #fff8e8; }
.message-copy { min-width: 0; overflow-wrap: anywhere; font-weight: 450; }
.message-dismiss { display: grid; place-items: center; width: 26px; height: 26px; flex: none; margin-left: 4px; padding: 4px; border: 0; border-radius: 8px; background: transparent; color: #a8b3c2; cursor: pointer; transition: background .18s, color .18s; }
.message-dismiss svg { width: 17px; height: 17px; }
.message-dismiss:hover { background: #f1f5fa; color: #627792; }
@keyframes account-arrive { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes account-content-in { from { opacity: .4; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
@keyframes account-dialog-in { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes account-dialog-out { to { opacity: 0; transform: translateY(8px) scale(.98); } }
@keyframes account-backdrop-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes account-backdrop-out { to { opacity: 0; } }
@keyframes account-term-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes account-spin { to { transform: rotate(360deg); } }
@keyframes message-in { from { opacity: 0; transform: translateY(-10px) scale(.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes message-out { to { opacity: 0; transform: translateY(-6px) scale(.98); } }
@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 20px; background: radial-gradient(ellipse at 50% 0%, #eef5ff 0, transparent 55%), #fff; }
  .account-login-panel { padding: 30px 26px; border-radius: 24px; box-shadow: 0 20px 60px -30px rgb(32 65 117 / 14%); }
  .account-brand { margin-bottom: 28px; }
  .account-login-panel h1 { font-size: 27px; }
  .account-dialog { padding: 24px; border-radius: 24px; max-height: calc(100dvh - 32px); }
  .message-viewport { top: max(24px, calc(env(safe-area-inset-top) + 16px)); }
  .message-toast { gap: 8px; padding-left: 13px; border-radius: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .account-login-panel, .account-dialog, .account-dialog::backdrop, .account-body form, .account-body button, .account-body input, .account-entry, .account-close, .account-term-progress > span, .message-toast, .message-dismiss { animation: none !important; transition: none !important; }
  .account-primary.is-loading::before, .account-logout.is-loading::before { animation: none; }
}
