/* Account panels share the site's palette and adapt to touch, TV and compact screens. */
.tur-account-dialog{box-sizing:border-box;position:fixed;inset:0;margin:auto;width:min(680px,calc(100vw - 28px));height:max-content;max-height:calc(100vh - 28px);max-height:calc(100dvh - 28px);overflow:auto;padding:0;border:1px solid var(--line,#334155);border-radius:18px;background:var(--panel,#111b28);color:var(--text,#eef3fa);font:inherit;line-height:1.6;box-shadow:0 30px 100px #0008;z-index:10002}.tur-account-dialog:not([open]),.tur-account-dialog[hidden],.tur-account-dialog [hidden],.tur-account-shade[hidden]{display:none!important}.tur-account-dialog::backdrop,.tur-account-shade{background:#03080dc4;backdrop-filter:blur(4px)}.tur-account-shade{position:fixed;inset:0;z-index:10001}.tur-account-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:18px 22px;border-bottom:1px solid var(--line,#334155)}.tur-account-heading h2{font:inherit;font-weight:750;font-size:clamp(1.1rem,3vw,1.4rem);line-height:1.3;margin:0;overflow-wrap:anywhere}.tur-account-body{padding:20px 22px}.tur-account-body p{margin:0 0 16px;color:var(--muted,#aebacc);font-size:.88rem;line-height:1.7;overflow-wrap:anywhere}.tur-account-button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;max-width:100%;gap:8px;margin:4px 6px 4px 0;padding:10px 15px;border:1px solid var(--line,#334155);border-radius:10px;background:var(--panel2,#1c2a3a);color:var(--text,#eef3fa);font:inherit;font-weight:650;font-size:.88rem;line-height:1.4;cursor:pointer;overflow-wrap:anywhere}.tur-account-button.primary{background:var(--accent,#c9f765);border-color:var(--accent,#c9f765);color:var(--accent-ink,#17230b)}.tur-account-button:disabled{opacity:.55;cursor:default}.tur-account-close{font-size:.75rem;padding:7px 11px;min-height:36px;flex:none;margin:0}.tur-account-tabs{display:flex;flex-wrap:wrap;gap:6px;padding-bottom:15px;margin-bottom:18px;border-bottom:1px solid var(--line,#334155)}.tur-account-tabs .tur-account-button{flex:1 1 auto;margin:0}.tur-account-tabs [aria-selected=true]{border-color:var(--accent,#c9f765);box-shadow:inset 0 -2px var(--accent,#c9f765)}.tur-account-identity{display:flex;flex-direction:column;gap:3px;margin-bottom:18px;overflow-wrap:anywhere}.tur-account-identity strong{font-size:1.12rem}.tur-account-identity span{color:var(--muted,#aebacc);font-size:.87rem;direction:ltr;text-align:start}.tur-account-body .tur-account-notice,.tur-account-conflict{border:1px solid var(--line,#334155);border-radius:11px;background:var(--panel2,#1c2a3a);padding:12px 14px;font-size:.81rem}.tur-account-conflict{margin-top:18px}.tur-account-body .tur-account-status{margin:18px 0 0;font-size:.82rem;color:var(--text,#eef3fa);padding-top:12px;border-top:1px solid var(--line,#334155)}.tur-account-actions{display:flex;flex-wrap:wrap;gap:6px}.tur-account-actions .tur-account-button{margin:0}.tur-account-history{list-style:none;margin:0;padding:0;max-height:360px;overflow:auto}.tur-account-history li{padding:12px 0;border-top:1px solid var(--line,#334155)}.tur-account-history li:first-child{border-top:0}.tur-activity-title{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:6px 14px}.tur-activity-title strong{font-size:.88rem}.tur-activity-title time{font-size:.76rem;font-variant-numeric:tabular-nums}.tur-account-body .tur-account-history p{font-size:.77rem;margin:5px 0 0}.tur-account-dialog :is(button,a):focus-visible{outline:3px solid var(--accent,#c9f765);outline-offset:3px}html[data-theme=light] .tur-account-dialog :is(button,a):focus-visible{outline-color:#4e751f}#turGoogleSignIn{min-height:44px;margin:14px 0;max-width:100%;overflow:hidden}#accountButton [data-tur-label]{display:block;max-width:190px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tur-account-dialog section{min-width:0}.tur-account-dialog button{touch-action:manipulation}
@media(max-width:600px){.tur-account-dialog{width:calc(100vw - 16px);max-height:calc(100vh - 16px);max-height:calc(100dvh - 16px);border-radius:14px}.tur-account-heading,.tur-account-body{padding:15px}.tur-account-tabs .tur-account-button{padding:10px 9px;font-size:.81rem}.tur-account-actions .tur-account-button{flex:1 1 150px}.tur-account-dialog .tur-account-close{padding:8px;max-width:110px}.tur-account-history{max-height:45vh}}
@media(orientation:landscape) and (max-height:540px){.tur-account-dialog{max-height:calc(100vh - 12px);max-height:calc(100dvh - 12px)}.tur-account-heading{padding:10px 16px}.tur-account-body{padding:13px 16px}}
@media(prefers-reduced-motion:reduce){.tur-account-dialog,.tur-account-dialog *{scroll-behavior:auto!important;transition:none!important}}

/* The player has its own palette; map only the account panel's missing tokens. */
.tur-player-account-context .tur-account-dialog{--text:#eef2f8;--panel2:#1b2433;--accent-ink:#17230b}
html[data-theme=light].tur-player-account-context .tur-account-dialog{--text:#1d2b20;--panel2:#eef3e9;--accent-ink:#fff}
