/* Account-only presentation. The classic tracker stylesheet stays unchanged. */
body.account-dialog-open { overflow: hidden; }
#account-modal { background: rgba(14, 34, 66, .36); backdrop-filter: blur(5px); }
#account-modal .account-dialog { width: min(440px, 100%); max-height: calc(100dvh - 40px); padding: 28px; background: #fff; border: 1px solid #d9e5f6; border-radius: 22px; box-shadow: 0 24px 80px rgba(12, 35, 72, .2); }
#account-modal .account-topline { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
#account-modal .account-brand { display: flex; align-items: center; gap: 9px; color: #557096; font-size: 12px; font-weight: 700; }
#account-modal .account-brand img { display: block; border-radius: 7px; }
#account-modal #close-account-btn { width: 36px; min-height: 36px; border: 0; background: #f1f5fc; color: #5b7396; border-radius: 50%; font-size: 24px; }
#account-modal #close-account-btn:hover { background: #e5eefd; }
#account-modal #account-title { margin: 0; font-family: 'Space Grotesk', sans-serif; font-size: 29px; letter-spacing: -.04em; line-height: 1.2; color: #18345f; }
#account-modal #account-subtitle { margin: 8px 0 26px; color: #627694; font-size: 13px; line-height: 1.55; }
#account-modal .account-state { margin: 0 0 18px; font-size: 13px; color: #627694; }
#account-modal .account-form { display: grid; gap: 18px; }
#account-modal .account-field { display: flex; flex-direction: column; gap: 8px; font-size: 13px; font-weight: 600; color: #294469; }
#account-modal .account-field input { height: 48px; padding: 12px 14px; font-size: 16px; font-weight: 400; border: 1px solid #d5e0f0; border-radius: 10px; background: #fbfdff; }
#account-modal .account-field input::placeholder { color: #8a99af; }
#account-modal .account-field input:focus { border-color: #6b9bec; outline: 3px solid #2766d917; outline-offset: 0; background: #fff; }
#account-modal .account-field input[aria-invalid='true'] { border-color: #c5656d; }
#account-modal .account-password { position: relative; }
#account-modal .account-password input { padding-right: 66px; }
#account-modal #password-toggle { position: absolute; right: 7px; top: 7px; min-height: 34px; padding: 6px 9px; border-radius: 6px; background: transparent; color: #47638e; font-size: 12px; font-weight: 600; }
#account-modal #password-toggle:hover { background: #eef4fd; }
#account-modal #password-hint { margin: 0; font-size: 12px; font-weight: 400; color: #6b7f9b; }
#account-modal .account-submit { width: 100%; height: 46px; border-radius: 10px; margin-top: 4px; font-size: 14px; font-weight: 700; box-shadow: 0 3px 8px #2766d91a; }
#account-modal .account-switch { display: flex; align-items: baseline; justify-content: center; flex-wrap: wrap; gap: 5px; margin: 18px 0 0; color: #71829b; font-size: 12px; }
#account-modal #account-mode-toggle { min-height: 32px; padding: 5px 2px; background: transparent; color: #2766d9; font-size: 12px; font-weight: 700; border-radius: 4px; }
#account-modal #account-mode-toggle:hover { text-decoration: underline; }
#account-modal .account-message:not(:empty) { margin: 18px 0 0; padding: 11px 13px; border-radius: 9px; background: #fff5f5; color: #a13d48; font-size: 13px; line-height: 1.5; }
.account-control { position: relative; display: flex; align-items: center; margin-left: auto; flex: 0 0 auto; }
.account-dropdown { position: absolute; top: calc(100% + 6px); right: 0; z-index: 30; width: min(260px, calc(100vw - 32px)); padding: 8px; background: #fff; border: 1px solid #d5e2f7; border-radius: 12px; box-shadow: 0 8px 24px rgba(18, 40, 74, .14); }
.account-dropdown-email { margin: 0; padding: 8px 10px 10px; color: #627694; font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.account-dropdown-item { width: 100%; min-height: 40px; padding: 8px 10px; border-radius: 7px; justify-content: flex-start; color: #294469; background: transparent; font-size: 13px; font-weight: 600; }
.account-dropdown-item:hover:enabled { background: #eef4ff; }
.account-dropdown-divider { margin: 5px 4px; border: 0; border-top: 1px solid #e0e8f4; }
.account-dropdown-signout { color: #a1444e; }
.account-dropdown-signout:hover:enabled { background: #fff2f2; }
.account-dropdown-message:empty { display: none; }
.account-dropdown-message { margin: 6px 10px; color: #a1444e; font-size: 12px; line-height: 1.4; }
@media (max-width: 480px) {
  #account-modal { padding: 16px; }
  #account-modal .account-dialog { padding: 24px 20px; max-height: calc(100dvh - 32px); border-radius: 18px; }
  #account-modal .account-topline { margin-bottom: 24px; }
  #account-modal #account-title { font-size: 27px; }
}
