.tt-account-dialog {
  box-sizing: border-box;
  position: fixed;
  inset: auto;
  left: 50%;
  top: 24px;
  transform: translateX(-50%);
  margin: 0;
  padding: 0;
  width: min(400px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(var(--tt-account-height, 100dvh) - 24px);
  overflow: hidden;
  color: #171717;
  background: #fff;
  border: 0;
  border-radius: 20px;
  font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  box-shadow: 0 12px 48px #0002;
}
.tt-account-dialog::backdrop { background: #0008; }
.tt-account-dialog[open] { display: flex; flex-direction: column; }
.tt-account-dialog * { box-sizing: border-box; }
.tt-account-dialog h2 { margin: 0; padding: 22px 24px 12px; font-size: 19px; line-height: 1.4; font-weight: 650; flex: 0 0 auto; }
.tt-account-form { display: flex; flex-direction: column; min-height: 0; }
.tt-account-body { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 24px 8px; }
.tt-account-intro { margin: 0 0 20px; color: #62666c; font-size: 14px; overflow-wrap: anywhere; }
.tt-account-field { margin-bottom: 16px; }
.tt-account-field label { display: block; margin: 0 0 7px; font-size: 14px; font-weight: 500; }
.tt-account-field input { display: block; width: 100%; min-width: 0; height: 48px; padding: 0 16px; color: #171717; background: #f2f3f5; border: 1px solid transparent; border-radius: 14px; font: inherit; font-size: 16px; outline: none; }
.tt-account-field input::placeholder { color: #62666c; opacity: 1; }
.tt-account-field input:focus { border-color: #2868e8; box-shadow: 0 0 0 2px #2868e81f; }
.tt-account-field input[aria-invalid="true"] { border-color: #b42318; }
.tt-account-help { margin: 6px 0 0; color: #62666c; font-size: 12px; }
.tt-account-error { color: #b42318; font-size: 14px; margin: 0; padding: 2px 24px 8px; overflow-wrap: anywhere; flex: 0 0 auto; }
.tt-account-error:empty { display: none; }
.tt-account-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; padding: 12px 20px 18px; flex: 0 0 auto; background: #fff; }
.tt-account-actions button { min-height: 44px; min-width: 72px; border: 0; padding: 10px 14px; border-radius: 12px; background: transparent; color: #252525; font: inherit; font-size: 15px; cursor: pointer; }
.tt-account-actions button[type="submit"], .tt-account-actions .tt-account-done { background: #2469f6; color: #fff; }
.tt-account-actions button:focus-visible { outline: 2px solid #2469f6; outline-offset: 2px; }
.tt-account-actions button:disabled { opacity: .55; cursor: wait; }
@media (max-height: 400px) {
  .tt-account-dialog h2 { padding-top: 14px; padding-bottom: 8px; }
  .tt-account-actions { padding-top: 8px; padding-bottom: 10px; }
  .tt-account-intro { margin-bottom: 14px; }
}
