.account-loading #view-menu, .account-loading #account-bar { display:none; }
[hidden] { display:none !important; }
#account-bar { display:flex; align-items:center; justify-content:space-between; gap:20px; margin:0 auto 24px; max-width:660px; color:var(--text-muted); }
#view-auth { width:min(440px,calc(100vw - 36px)); margin:auto; box-sizing:border-box; }
#account-form { margin-top:20px; }
#account-switch { margin:12px 0 0 12px; }
.active-games-panel { width:min(680px,calc(100vw - 36px)); margin:0 auto; box-sizing:border-box; }
.active-game { border:1px solid var(--border); padding:18px; margin-top:14px; background:var(--surface); }
.active-game-header { display:flex; justify-content:space-between; align-items:baseline; gap:12px; margin-bottom:8px; }
.active-game h3 { margin:0; font-size:16px; overflow-wrap:anywhere; }
.active-game-settings { flex:0 0 auto; max-width:50%; text-align:right; }
.active-game-settings summary { cursor:pointer; }
.active-game-settings button { margin-top:6px; color:#ff9f9f; }
.active-game-settings [role=alert] { color:#ff9f9f; font-size:0.85rem; }
.active-game p { margin:6px 0 12px; color:var(--text-muted); }
.active-game .needs-orders { color:#8ae3e9; }
.active-game > button { width:100%; text-align:left; }
.active-games-panel > .muted { margin-bottom:18px; }
#game-slot-status { max-width:660px; margin:0 auto 20px; color:var(--text-muted); line-height:1.5; }
.lobby-page button:disabled { opacity:.45; cursor:not-allowed; filter:none; }
