/* Public member accounts retain the TT COMPANY cream/lavender theme. */
.community-member { display:inline-flex; align-items:center; padding:2px 7px; border-radius:999px; background:#eee5fa; color:#7654a9; font-size:10px; font-weight:700; line-height:1.5; white-space:nowrap; }
.auth-main [hidden], .tt-auth-nav [hidden], .tt-auth-mobile [hidden] { display: none !important; }
body:has(.tt-auth-nav) .header-inner { gap: 13px; }
body:has(.tt-auth-nav) .main-nav { min-width: 0; }
body:has(.tt-auth-nav) .main-nav > a, body:has(.tt-auth-nav) .nav-drop-btn { padding: 8px 9px; font-size: 13px; }
.tt-auth-nav { display: flex; align-items: center; justify-content: flex-end; gap: 7px; margin-left: auto; min-width: 0; flex-shrink: 0; }
.tt-auth-nav a, .tt-auth-nav button { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 7px 11px; border-radius: 999px; font-size: 12px; font-weight: 750; white-space: nowrap; }
.tt-auth-nav .tt-auth-login, .tt-auth-nav .tt-auth-account { border: 1px solid #cbb7e6; color: var(--accent-strong); background: #fff9; }
.tt-auth-nav .tt-auth-signup { color: var(--accent-strong); }
.tt-auth-nav a:hover, .tt-auth-nav button:hover { background: var(--accent-soft); }
.tt-auth-nav .tt-auth-account { max-width: 135px; overflow: hidden; text-overflow: ellipsis; display: block; }
.tt-auth-nav .tt-auth-logout { color: var(--muted); padding-inline: 4px; font-size: 11px; }
.tt-auth-nav .tt-auth-status { color: var(--muted); font-size: 11px; }
.tt-auth-mobile { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); display: grid; gap: 9px; }
.tt-auth-mobile h2 { font-size: 13px; font-weight: 750; color: var(--muted); }
.tt-auth-mobile a, .tt-auth-mobile button { display: block; width: 100%; text-align: left; padding: 12px 14px; font-size: 15px; border-radius: 10px; background: #f5f0fc; color: var(--accent-strong); font-weight: 750; overflow-wrap: anywhere; }
.tt-auth-mobile p { font-size: 13px; color: var(--muted); }
.tt-auth-mobile .tt-auth-logout { background: #f6f4f8; color: var(--muted); }
.tt-auth-notice { position: fixed; z-index: 120; bottom: 22px; left: 50%; transform: translateX(-50%); max-width: min(540px, calc(100vw - 32px)); background: #fff; border: 1px solid #decee8; border-radius: 13px; padding: 13px 18px; box-shadow: var(--shadow); font-size: 13px; color: #983444; }
.auth-main { padding: 54px 20px 78px; min-height: calc(100dvh - 190px); }
.auth-card { width: 100%; max-width: 490px; margin: 0 auto; padding: 34px 36px; border: 1px solid var(--line); border-radius: 22px; background: #fff; box-shadow: var(--shadow-soft); }
.auth-card h1, .account-heading h1 { font-size: 29px; line-height: 1.3; letter-spacing: -.045em; font-weight: 850; }
.auth-card h2 { font-size: 20px; line-height: 1.4; font-weight: 800; }
.auth-intro { margin-top: 10px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.auth-form { margin-top: 26px; }
.auth-form fieldset { border: 0; min-width: 0; display: grid; gap: 20px; }
.auth-field { display: grid; gap: 7px; min-width: 0; }
.auth-field > label { font-size: 14px; font-weight: 750; }
.auth-field input { min-width: 0; width: 100%; height: 48px; padding: 11px 13px; border: 1px solid #dcd5e4; border-radius: 11px; font: inherit; font-size: 16px; color: var(--fg); background: #fff; }
.auth-field input:focus { outline: 3px solid #ece0fb; border-color: var(--accent); }
.auth-field input[aria-invalid="true"] { border-color: #c34354; }
.auth-field input:disabled { background: #f8f5fa; }
.auth-hint { color: var(--muted); font-size: 12px; line-height: 1.7; }
.auth-field-error { font-size: 12px; line-height: 1.6; color: #ac3347; overflow-wrap: anywhere; }
.auth-field-error:empty { display: none; }
.auth-password { position: relative; min-width: 0; }
.auth-password input { padding-right: 65px; }
.auth-show-password { position: absolute; right: 7px; top: 7px; bottom: 7px; min-width: 44px; border-radius: 7px; color: var(--accent-strong); font-size: 12px; font-weight: 750; background: var(--accent-soft); }
.auth-check { display: flex; align-items: flex-start; gap: 9px; font-size: 13px; cursor: pointer; }
.auth-check input { flex-shrink: 0; width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent-strong); }
.auth-check small { display: block; color: var(--muted); margin-top: 4px; font-size: 11px; }
.auth-check b { font-weight: 750; color: var(--accent-strong); }
.auth-primary, .auth-secondary, .auth-danger-button { display: inline-flex; align-items: center; justify-content: center; min-height: 47px; padding: 11px 18px; border-radius: 11px; font-size: 14px; font-weight: 800; text-align: center; }
.auth-primary { background: #7951b8; color: #fff; border: 1px solid #7951b8; }
.auth-primary:hover { background: #653ba3; border-color: #653ba3; }
.auth-secondary { border: 1px solid #d8c9e8; background: #faf7fd; color: var(--accent-strong); }
.auth-primary:disabled, .auth-secondary:disabled, .auth-danger-button:disabled { opacity: .55; cursor: wait; }
.auth-link { color: var(--accent-strong); font-weight: 800; }
.auth-link:hover { text-decoration: underline; }
.auth-switch { margin-top: 23px; text-align: center; color: var(--muted); font-size: 13px; }
.auth-switch a { margin-left: 7px; }
.auth-note { margin-top: 26px; padding: 17px 18px; border-radius: 12px; background: #f6f2fb; font-size: 12px; line-height: 1.7; color: var(--muted); }
.auth-note a { display: inline-block; margin-top: 5px; font-weight: 750; color: var(--accent-strong); }
.auth-small { color: var(--muted); font-size: 11px; line-height: 1.8; margin-top: 20px; }
.auth-message { margin-top: 18px; border: 1px solid #dcd5e6; border-radius: 11px; padding: 12px 14px; background: #f9f6fc; font-size: 13px; line-height: 1.7; overflow-wrap: anywhere; }
.auth-message button { font-weight: 750; color: var(--accent-strong); margin-left: 8px; text-decoration: underline; }
.auth-error { color: #a03244; border-color: #efd1d7; background: #fff5f7; }
.auth-success { color: #386b51; border-color: #d0e6d9; background: #f4fbf7; }
.auth-form .auth-message { margin-top: 0; }
.auth-privacy { border: 1px solid #e5ddee; background: #faf7fd; padding: 17px; border-radius: 12px; }
.auth-privacy h2 { font-size: 13px; }
.auth-privacy p { color: var(--muted); font-size: 11px; line-height: 1.85; margin-top: 9px; }
.auth-privacy .auth-check { margin-top: 15px; font-size: 12px; }
.auth-privacy .auth-field-error { display: block; margin-top: 5px; }
.auth-privacy .auth-field-error:empty { display: none; }
.account-wrap { width: 100%; max-width: 650px; margin: 0 auto; }
.account-heading { margin: 0 0 27px; }
.account-heading > p:last-child { color: var(--muted); font-size: 14px; margin-top: 10px; }
.account-wrap .auth-card { max-width: none; margin-top: 20px; }
.account-summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.account-summary h2 { overflow-wrap: anywhere; }
.account-summary p { color: var(--muted); font-size: 13px; margin-top: 7px; }
.account-summary dl { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; width: 100%; padding-top: 20px; border-top: 1px solid var(--line); }
.account-summary dt { color: var(--muted); font-size: 11px; margin-bottom: 4px; }
.account-summary dd { font-weight: 750; font-size: 14px; overflow-wrap: anywhere; }
.account-wrap .auth-form { max-width: 430px; }
.account-danger { border-color: #ead9dd; box-shadow: none; }
.account-danger h2 { color: #a94252; }
.account-danger summary { margin-top: 17px; color: #a94252; font-weight: 750; font-size: 13px; cursor: pointer; }
.auth-danger-button { color: #fff; background: #b7475a; border: 1px solid #b7475a; }
.auth-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 23px; }
.auth-main a:focus-visible, .auth-main button:focus-visible, .tt-auth-nav a:focus-visible, .tt-auth-nav button:focus-visible { outline: 3px solid #ceb4ec; outline-offset: 3px; }
.account-users { min-width: 0; }
.account-users-heading { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.account-users-heading h2 { font-size: 21px; }
.account-users-heading p, .account-users-help { color: var(--muted); font-size: 12px; line-height: 1.8; margin-top: 6px; }
.account-users-tools { display: flex; gap: 9px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.account-users-tools label:first-child { flex: 1 1 240px; }
.account-users-tools input, .account-users-tools select { width: 100%; min-height: 42px; padding: 10px 12px; border: 1px solid #ddd4e8; border-radius: 10px; background: #fff; font: inherit; font-size: 14px; }
.account-users-tools input:focus, .account-users-tools select:focus { outline: 2px solid #ceb4ec; outline-offset: 1px; }
.account-users-list { display: grid; gap: 10px; }
.account-user-row { display: flex; align-items: center; gap: 20px; border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; background: #fff; }
.account-user-info { min-width: 0; flex: 1; }
.account-user-info h3 { font-size: 15px; overflow-wrap: anywhere; }
.account-user-info p { color: var(--muted); font-size: 12px; margin-top: 5px; overflow-wrap: anywhere; }
.account-user-status { display: inline-flex; padding: 3px 9px; border-radius: 999px; background: #ebf7ef; color: #39764f; font-size: 11px; font-weight: 750; }
.account-user-status.is-blocked { background: #fbecef; color: #a7354d; }
.account-user-status.is-deleted { background: #f1eef5; color: var(--muted); }
.account-users-message { margin-bottom: 16px; }
.account-user-actions { display: grid; gap: 7px; flex-shrink: 0; }
.account-profile-controls { display: grid; gap: 6px; }
.account-profile-controls select { width: 100%; max-width: 230px; padding: 7px 9px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--bg); color: var(--fg); font: inherit; font-size: 12px; }
.account-reset-link { width: 100%; padding-top: 16px; border-top: 1px solid var(--line); font-size: 12px; }
.account-reset-link strong { display: block; color: #985030; }
.account-reset-link p { color: var(--muted); margin-top: 6px; }
.account-reset-link input { width: 100%; padding: 10px 12px; font: inherit; color: var(--fg); border: 1px solid #d7cce3; border-radius: 9px; margin: 10px 0; }
.account-reset-link button { margin-right: 7px; }
.account-user-row:has(.account-reset-link) { flex-wrap: wrap; }
@media (min-width: 1000px) and (max-width: 1159px) {
  body:has(.tt-auth-nav) .container.header-inner { padding-inline: 15px; gap: 8px; }
  body:has(.tt-auth-nav) .logo-text { font-size: 13px; margin-left: 7px; letter-spacing: .1em; }
  body:has(.tt-auth-nav) .main-nav > a, body:has(.tt-auth-nav) .nav-drop-btn { padding-inline: 7px; font-size: 12px; }
  .tt-auth-nav { gap: 3px; }
  .tt-auth-nav a, .tt-auth-nav button { padding-inline: 8px; font-size: 11px; }
  .tt-auth-nav .tt-auth-account { max-width: 110px; }
  body:has(.tt-auth-nav) .btn-apply { padding-inline: 9px; font-size: 11px; }
}
@media (max-width: 999px) {
  body:has(.btn-apply:not([hidden])) .tt-auth-nav { display: none; }
  .tt-auth-nav .tt-auth-signup, .tt-auth-nav .tt-auth-logout { display: none; }
  .tt-auth-nav { margin-left: 0; }
  .tt-auth-nav .tt-auth-account { max-width: 120px; }
  .tt-auth-nav .tt-auth-status { font-size: 10px; }
}
@media (max-width: 560px) {
  .auth-main { padding: 30px 16px 50px; }
  .auth-card { padding: 27px 22px; border-radius: 18px; }
  .auth-card h1, .account-heading h1 { font-size: 26px; }
  .auth-form { margin-top: 23px; }
  .auth-form fieldset { gap: 18px; }
  .auth-intro { font-size: 13px; }
  .auth-privacy { padding: 14px; }
  .account-summary { gap: 16px; }
  .account-user-row { gap: 12px; padding: 15px; flex-wrap: wrap; }
  .account-user-info { flex-basis: calc(100% - 90px); }
  .account-user-row > button { width: 100%; }
}
@media (max-width: 389px) {
  body:has(.tt-auth-nav) .header-inner { padding-inline: 12px; gap: 8px; }
  body:has(.tt-auth-nav) .logo-text { font-size: 12px; letter-spacing: .08em; margin-left: 6px; }
  body:has(.tt-auth-nav) .logo-mark-image { width: 31px; min-width: 31px; height: 31px; }
  .tt-auth-nav a, .tt-auth-nav button { padding-inline: 8px; font-size: 11px; }
  .tt-auth-nav .tt-auth-account { max-width: 90px; }
  .auth-main { padding-inline: 12px; }
  .auth-card { padding-inline: 18px; }
}
