/* Email accounts use the existing black and gold arena palette. */
.account-trigger, .account-dialog { --account-gold:#e5c17f; --account-muted:#a5b4c3; --account-line:#374450; color-scheme:dark; }
.topbar .account-trigger { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:40px; max-width:260px; min-width:0; padding:8px 12px; border:1px solid #8c744e; border-radius:5px; background:#d7b36a0d; color:#edcf9d; font-size:12px; line-height:1.5; }
.account-trigger:hover { background:#d7b36a1c; border-color:#e5c17f; }
.account-trigger-email { min-width:0; max-width:145px; text-overflow:ellipsis; overflow:hidden; white-space:nowrap; }
.account-trigger-quota { flex-shrink:0; font-size:10px; color:#b9c7d2; }
.account-dialog, .account-dialog * { box-sizing:border-box; }
.account-dialog { width:min(440px,calc(100% - 24px)); max-width:440px; max-height:calc(100vh - 28px); max-height:calc(100dvh - 28px); margin:auto; padding:0; overflow:auto; overscroll-behavior:contain; background:#101923; color:#edf2f6; border:1px solid #70634a; border-radius:12px; box-shadow:0 25px 100px #000c; scrollbar-width:thin; scrollbar-color:#566572 #111b25; }
.account-dialog:not([open]), .account-dialog [hidden] { display:none !important; }
.account-dialog::backdrop { background:#03080de0; }
body.account-dialog-open { overflow:hidden; }
.account-surface { min-width:0; padding:25px; }
.account-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:14px; margin:0 0 12px; }
.account-heading>div { min-width:0; }
.account-kicker { display:block; margin-bottom:9px; color:var(--account-gold); font-size:10px; letter-spacing:.08em; }
.account-dialog h2 { margin:0; color:#f1f4f7; font-size:24px; font-weight:750; line-height:1.4; letter-spacing:0; overflow-wrap:anywhere; }
.account-dialog button, .account-dialog input { font:inherit; }
.account-dialog button { cursor:pointer; touch-action:manipulation; }
.account-dialog button:disabled { cursor:not-allowed; opacity:.55; }
.account-dialog :focus-visible, .account-trigger:focus-visible { outline:2px solid #e5c17f; outline-offset:3px; }
.account-dialog .account-close { display:grid; place-items:center; flex:0 0 auto; min-width:44px; height:44px; padding:0; color:#c6d3dd; background:#17232e; border:1px solid #42505c; border-radius:6px; font-size:26px; line-height:1; }
.account-close:hover { background:#22323e; }
.account-dialog p { margin:0; line-height:1.7; overflow-wrap:anywhere; }
.account-dialog .account-intro { margin-bottom:21px; color:var(--account-muted); font-size:12px; }
.account-modes { display:flex; padding:3px; margin-bottom:21px; background:#090f17; border:1px solid var(--account-line); border-radius:6px; }
.account-dialog .account-modes button { flex:1; min-width:0; min-height:42px; padding:9px 8px; background:transparent; border:1px solid transparent; border-radius:4px; color:var(--account-muted); font-size:13px; }
.account-dialog .account-modes button[aria-pressed="true"] { color:#efd19e; background:#d7b36a12; border-color:#8c744e; }
.account-dialog form { display:grid; gap:18px; margin:0; min-width:0; }
.account-field { display:grid; min-width:0; gap:7px; }
.account-field>label { color:#d6e0e8; font-size:12px; font-weight:600; }
.account-dialog input { display:block; width:100%; min-width:0; min-height:46px; max-width:100%; padding:11px 12px; color:#edf2f6; background:#0a131d; border:1px solid #475766; border-radius:5px; box-shadow:none; font-size:16px; }
.account-dialog input::placeholder { color:#8295a6; }
.account-dialog input[aria-invalid="true"] { border-color:#eead91; }
.account-password-field { display:flex; min-width:0; gap:7px; }
.account-password-field>input { flex:1; }
.account-dialog .account-password-field>button { flex-shrink:0; min-width:49px; min-height:46px; padding:6px 8px; border:1px solid #475766; border-radius:5px; background:#17232e; color:#d3dce5; font-size:12px; }
.account-hint, .account-dialog .account-register-note { display:block; font-size:11px; color:var(--account-muted); line-height:1.7; overflow-wrap:anywhere; }
.account-error { padding:10px 12px; background:#34201d; color:#ffcab6; border:1px solid #835d4f; border-radius:5px; font-size:12px; line-height:1.7; overflow-wrap:anywhere; }
.account-dialog [data-account-session-error] { margin-top:16px; }
.account-dialog .account-primary, .account-dialog .account-secondary { min-height:46px; padding:11px 14px; border-radius:5px; font-size:14px; font-weight:700; }
.account-dialog .account-primary { color:#181a1d; background:#e0bb78; border:1px solid #e5c17f; }
.account-dialog .account-primary:hover:not(:disabled) { background:#f0cd91; }
.account-dialog .account-secondary { width:100%; color:#d9e2e9; background:#18242e; border:1px solid #52616c; }
.account-dialog .account-secondary:hover:not(:disabled) { background:#243541; }
.account-profile { display:grid; gap:17px; min-width:0; }
.account-identity { display:flex; flex-direction:column; gap:7px; min-width:0; padding-bottom:17px; border-bottom:1px solid var(--account-line); }
.account-identity>span { font-size:11px; color:var(--account-muted); }
.account-identity>bdi { color:#e3ebf2; font-size:14px; font-weight:600; overflow-wrap:anywhere; }
.account-total { display:flex; align-items:baseline; flex-wrap:wrap; gap:8px; font-size:13px; color:#c4cdd5; }
.account-total>strong { font-size:38px; font-weight:780; color:var(--account-gold); font-variant-numeric:tabular-nums; line-height:1.2; overflow-wrap:anywhere; }
.account-total>span { font-size:11px; color:var(--account-muted); }
.account-quota-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.account-quota-grid>div { display:grid; min-width:0; gap:8px; padding:14px 12px; border:1px solid var(--account-line); border-radius:6px; background:#0b141e; }
.account-quota-grid span { font-size:11px; color:#bcc9d4; }
.account-quota-grid strong { font-size:25px; color:#ead0a3; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.account-quota-grid small { font-size:10px; color:var(--account-muted); line-height:1.7; overflow-wrap:anywhere; }
.account-dialog .account-exhausted { padding:11px 12px; background:#d7b36a0e; border:1px solid #79613e; border-radius:5px; color:#f0d2a1; font-size:12px; }
.account-dialog .account-refresh { display:block; min-height:40px; margin:13px auto -4px; padding:8px; color:#aabcca; background:transparent; border:0; font-size:11px; text-decoration:underline; text-underline-offset:4px; }
.account-sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; border:0; }
.topbar .top-controls { min-width:0; flex-wrap:wrap; justify-content:flex-end; }
@media (max-width:900px) { .topbar { height:auto; min-height:72px; padding-block:10px; flex-wrap:wrap; } .topbar .account-trigger { max-width:220px; } }
@media (max-width:650px) { .topbar { row-gap:8px; } .topbar .top-controls { flex-shrink:1; max-width:100%; } .topbar .account-trigger { max-width:205px; min-height:44px; padding-inline:10px; } .account-trigger-email { max-width:115px; } }
@media (max-width:380px) { .topbar .top-controls { gap:8px; } .topbar .account-trigger { max-width:176px; font-size:11px; } .account-trigger-email { max-width:91px; } .account-trigger-quota { font-size:9px; } .account-surface { padding:19px 16px; } .account-dialog h2 { font-size:22px; } .account-quota-grid>div { padding:12px 10px; } }
@media (forced-colors:active) { .account-dialog, .account-trigger, .account-dialog .account-modes button[aria-pressed="true"], .account-quota-grid>div { border-color:CanvasText; } }
