.account-dialog { width: min(1120px, calc(100vw - 32px)); height: min(772px, calc(100dvh - 32px)); max-width: none; max-height: calc(100dvh - 32px); margin: auto; padding: 10px; overflow: hidden; border: 1px solid #ffffff12; border-radius: 22px; background: #101213; color: #f0f1f2; box-shadow: 0 32px 120px #0009; }
.account-dialog::backdrop { background: #030506b3; backdrop-filter: blur(8px); }
.account-layout { display: grid; grid-template-columns: 1fr 1.04fr; height: 100%; min-height: 0; }
.account-close { position: absolute; top: 18px; right: 18px; z-index: 3; display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid #ffffff0b; border-radius: 50%; background: #202324; color: #f4f4f4; }
.account-close .icon { width: 14px; height: 14px; stroke-width: 2; }
.account-preview { position: relative; isolation: isolate; min-width: 0; overflow: hidden; border-radius: 14px; background: #161c14; }
.account-preview-display { position: absolute; inset: 0; }
.account-preview::after { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, #00000008 25%, #00000030 50%, #000000b3 80%, #000000eb); pointer-events: none; }
.account-preview-video, .account-preview-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.account-preview-caption { position: absolute; left: 20px; right: 20px; bottom: 82px; z-index: 2; }
.account-preview-badge { display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; border-radius: 8px; background: #ffffff1c; color: #fff; font-size: 10px; font-weight: 600; backdrop-filter: blur(6px); }
.account-preview-badge .icon { width: 14px; height: 14px; }
.account-preview-caption h2 { margin: 14px 0 8px; font: 800 clamp(26px, 3.3vw, 40px)/1.12 var(--font); text-transform: uppercase; letter-spacing: -1.4px; color: #fff; }
.account-preview-caption p { max-width: 420px; color: #c4c8c1; font-size: 14px; line-height: 1.5; }
.account-preview-tabs { position: absolute; left: 20px; right: 20px; bottom: 20px; z-index: 2; display: flex; gap: 5px; }
.account-preview-tab { flex: 1; min-width: 0; padding: 0; color: #ffffff6b; text-align: left; font-size: 11px; line-height: 1.3; font-weight: 600; }
.account-preview-tab[aria-selected="true"] { color: #fff; }
.account-preview-track { display: block; height: 4px; margin-bottom: 11px; overflow: hidden; border-radius: 4px; background: #ffffff38; }
.account-preview-track > span { display: block; width: 100%; height: 100%; background: #fff; transform: scaleX(0); transform-origin: left; }
.account-preview-tab[aria-selected="true"] .account-preview-track > span { animation: account-preview-progress 7s linear forwards; }
.account-preview-paused .account-preview-tab[aria-selected="true"] .account-preview-track > span { animation: none; transform: scaleX(.25); }
@keyframes account-preview-progress { to { transform: scaleX(1); } }
.account-panel { min-width: 0; min-height: 0; display: flex; justify-content: center; padding: 18px 24px 28px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.account-content { width: 384px; max-width: 100%; }
.account-heading { text-align: center; }
.account-logo { display: grid; place-items: center; width: 34px; height: 34px; margin: 0 auto 18px; border-radius: 8px; border: 1px solid var(--accent-border); background: var(--accent-soft); }
.account-logo img { display: block; }
.account-heading h2 { margin: 0; color: #f3f3f4; font: 700 30px/1.2 var(--font); letter-spacing: -.65px; text-wrap: balance; }
.account-heading > p { margin-top: 12px; color: #929597; font-size: 14px; line-height: 1.5; }
.account-options, .account-email-form { margin-top: 40px; }
.account-business, .account-provider { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; border-radius: 12px; font-size: 14px; font-weight: 600; line-height: 1.4; }
.account-business { min-height: 44px; padding: 10px 14px; background: var(--accent-surface); color: var(--accent-text); font-size: 13px; }
.account-business .icon { flex-shrink: 0; }
.account-providers { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.account-provider { min-height: 62px; padding: 14px; border: 1px solid #ffffff20; background: #101213; color: #f2f3f3; }
.account-provider:hover { border-color: #ffffff45; background: #181b1b; }
.account-provider-icon { flex-shrink: 0; width: 20px; height: 20px; }
.account-divider { padding: 13px 0; color: #767b7b; text-align: center; font-size: 12px; line-height: 16px; }
.account-consent { display: flex; align-items: flex-start; gap: 12px; margin-top: 18px; }
.account-consent > input { flex: 0 0 18px; appearance: none; width: 18px; height: 18px; margin: 4px 0 0; border: 1px solid #ffffff24; border-radius: 5px; background: #101213; cursor: pointer; }
.account-consent > input:checked { border-color: var(--accent); background: var(--accent); }
.account-consent > input:checked::after { content: ''; display: block; width: 8px; height: 5px; margin: 4px 3px; border-bottom: 2px solid var(--accent-ink); border-left: 2px solid var(--accent-ink); transform: rotate(-45deg); }
.account-consent label { color: #e1e2e2; font-size: 12px; font-weight: 500; line-height: 1.45; }
.account-legal { display: inline; padding: 0; text-align: left; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.account-notice { margin-top: 16px; padding: 11px 13px; border: 1px solid color-mix(in srgb, var(--accent) 16.5%, transparent); border-radius: 9px; background: color-mix(in srgb, var(--accent) 3.5%, transparent); color: #ded1ec; font-size: 12px; line-height: 1.5; }
.account-footer { margin-top: 42px; padding-top: 18px; border-top: 1px solid #ffffff14; color: #8b9090; text-align: center; }
.account-dialog[data-mode="login"] .account-footer { margin-top: 24px; }
.account-footer > p:first-child { display: flex; justify-content: center; align-items: center; gap: 8px; font-size: 13px; line-height: 1.5; }
.account-footer .icon { width: 17px; height: 17px; }
.account-switch { margin-top: 12px; font-size: 12px; line-height: 1.5; }
.account-switch button { padding: 0; color: var(--accent-text); font-weight: 600; }
.account-email-form { display: flex; flex-direction: column; gap: 10px; }
.account-back { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; margin-bottom: 12px; padding: 0; color: #a6abab; font-size: 12px; }
.account-back .icon { width: 14px; height: 14px; }
.account-email-form > label { margin-top: 8px; color: #d5d8d8; font-size: 13px; }
.account-email-form > input { width: 100%; height: 50px; padding: 12px 14px; border: 1px solid #ffffff24; border-radius: 10px; background: #171a1b; color: #f3f3f3; font-size: 14px; }
.account-email-form > input::placeholder { color: #757c7c; }
.account-password-hint { color: #8b9292; font-size: 11px; }
.account-submit { min-height: 48px; margin-top: 16px; padding: 12px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); font-size: 14px; font-weight: 700; }
.account-dialog button:focus-visible, .account-dialog input:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (max-width: 800px) {
  .account-dialog { width: min(480px, calc(100vw - 24px)); height: auto; max-height: calc(100dvh - 24px); padding: 0; border-radius: 18px; }
  .account-layout { display: block; height: auto; max-height: calc(100dvh - 26px); overflow-y: auto; }
  .account-preview { display: none; }
  .account-panel { padding: 30px 24px; overflow: visible; }
  .account-heading h2 { font-size: 27px; }
  .account-options, .account-email-form { margin-top: 30px; }
  .account-close { top: 12px; right: 12px; }
}
@media (max-width: 380px) {
  .account-panel { padding-inline: 20px; }
  .account-heading h2 { font-size: 25px; }
  .account-heading > p { font-size: 13px; }
  .account-business, .account-provider { font-size: 12px; }
  .account-consent label { font-size: 11px; }
  .account-footer > p:first-child { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) { .account-dialog * { animation: none !important; transition: none !important; } }
