.account-dialog, .account-dialog * { box-sizing: border-box; }
.account-dialog { width: min(460px,calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow-y: auto; padding: 34px; margin: auto; border: 1px solid #f7f1e32b; border-radius: 16px; background: #17171e; color: var(--ink); box-shadow: 0 30px 100px #0008; font-family: var(--body-font); }
.account-dialog::backdrop { background: #050508ba; backdrop-filter: blur(8px); }
.account-dialog [hidden], [data-account-control] [hidden], .history-sign-in[hidden] { display: none !important; }
.auth-close { position: absolute; top: 14px; right: 15px; display: grid; place-items: center; width: 31px; height: 31px; padding: 0; border: 1px solid #f7f1e31c; border-radius: 50%; background: transparent; color: var(--muted); font: 400 23px/1 var(--body-font); cursor: pointer; }
.auth-heading { display: flex; align-items: center; gap: 11px; margin-bottom: 24px; }
.auth-heading > span:last-child { color: var(--muted); font-size: 9px; font-weight: 600; letter-spacing: 1.5px; }
.account-dialog h2 { margin: 0 0 10px; font: 700 29px/1.18 var(--body-font); letter-spacing: -.9px; }
.auth-description { font-size: 12px; line-height: 1.75; margin: 0; color: var(--muted); overflow-wrap: anywhere; }
.auth-benefits { display: flex; flex-direction: column; gap: 7px; margin: 18px 0 22px; color: var(--soft); font-size: 11px; }
.auth-draft-note { margin: 0 0 20px; padding: 10px 12px; border: 1px solid #2ee59d30; border-radius: 7px; background: #2ee59d08; color: var(--green); font-size: 11px; line-height: 1.6; }
.auth-google { min-height: 0; width: 100%; }
.auth-google-preview { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; height: 44px; padding: 0 14px; border: 1px solid #dadce0; border-radius: 4px; background: #fff; color: #3c4043; font: 500 14px/1.4 var(--body-font); cursor: pointer; }
.auth-google-preview:hover { background: #f8faff; }
.auth-terms { margin: 14px 0 0; color: var(--muted); font-size: 10px; line-height: 1.8; text-align: center; }
.auth-terms a { color: var(--soft); text-underline-offset: 3px; }
.auth-error, .auth-progress { margin: 14px 0 0; font-size: 11px; line-height: 1.65; }
.auth-error { color: #ff9daf; }
.auth-progress { color: var(--green); }
.auth-footer { border-top: 1px solid #f7f1e314; margin: 22px 0 0; padding-top: 15px; font-size: 10px; line-height: 1.65; color: #96919a; }
.account-dialog :is(button,a):focus-visible { outline: 2px solid var(--green); outline-offset: 4px; }
.global-auth-control { position: relative; }
.global-header .account-sign-in { font-size: 12px; }
.global-header .account-menu { position: relative; border: 0; }
.account-menu > summary { list-style: none; }
.account-menu > summary::-webkit-details-marker { display: none; }
.global-header .account-menu > summary { max-width: 165px; min-height: 40px; gap: 8px; padding: 6px 10px; border: 1px solid transparent; }
.global-header .account-menu[open] > summary { border-color: #f7f1e326; background: #f7f1e30a; color: var(--ink); }
[data-account-name] { max-width: 88px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); font-size: 12px; }
.account-chevron { margin-left: 2px; color: var(--muted); }
.account-initial { display: grid; place-items: center; width: 28px; height: 28px; flex: 0 0 28px; border-radius: 50%; background: #2ee59d20; color: var(--green); font-size: 11px; font-weight: 700; }
.account-dropdown { position: absolute; z-index: 80; top: calc(100% + 12px); right: 0; width: 250px; padding: 10px; border: 1px solid #f7f1e326; border-radius: 11px; background: #18181f; box-shadow: 0 18px 50px #0007; }
.account-email { display: block; padding: 8px 10px 13px; border-bottom: 1px solid #f7f1e317; color: var(--muted); font-size: 10px; overflow-wrap: anywhere; }
.account-links { padding-top: 7px; }
.account-links > a, .account-links > button { display: block; width: 100%; padding: 10px; min-height: 37px; border: 0; border-radius: 5px; background: transparent; color: var(--ink); text-decoration: none; text-align: left; font: 400 12px/1.4 var(--body-font); cursor: pointer; }
.account-links > a:hover, .account-links > button:hover { background: #f7f1e30a; }
.account-dropdown > p { margin: 6px 10px; font-size: 10px; color: #ff9daf; }
.draft-save-status { margin: 3px 0 0; font-size: 10px; color: var(--muted); min-height: 16px; }
.draft-save-status[data-state=saved] { color: var(--green); }
.draft-save-status[data-state=error] { color: #ff9daf; }
.creator-topline:has(.draft-save-status) { display: block; }
.history-sign-in { display: flex; align-items: center; flex-direction: column; justify-content: center; min-height: 285px; padding: 30px 15px; gap: 14px; text-align: center; }
.history-sign-in .global-brand-mark { margin-bottom: 5px; }
.history-sign-in h2 { font: 600 23px/1.3 var(--body-font); letter-spacing: -.5px; }
.history-sign-in p { max-width: 340px; color: var(--muted); font-size: 12px; line-height: 1.8; }
.history-sign-in .button { margin-top: 6px; }
@media (max-width:760px) {
  .global-auth-control { width: 100%; }
  .global-header .account-menu > summary { max-width: 100%; }
  .account-dropdown { position: static; width: 100%; margin-top: 4px; border: 0; border-radius: 6px; box-shadow: none; background: #101014; }
}
@media (max-width:540px) {
  .account-dialog { padding: 30px 24px 24px; max-height: calc(100dvh - 24px); }
  .account-dialog h2 { font-size: 26px; }
  .auth-heading { margin-bottom: 20px; }
}

.global-header .global-credit-link { gap: 5px; min-width: 104px; border: 1px solid #f7f1e326; background: #f7f1e305; color: var(--ink); }
.global-header .global-credit-link strong { color: var(--green); font-size: 13px; font-weight: 700; }
.global-header .global-credit-link span { color: var(--muted); font-size: 10px; }
.global-header .global-credit-link:hover, .global-header .global-credit-link[aria-current] { border-color: #2ee59d5c; background: #2ee59d08; }
@media(max-width:760px){.global-header .global-credit-link { justify-content: flex-start; width: 100%; margin-top: 5px; }}

