/* ---------- account: the menu's profile card ---------- */
/* sits where the Wins / Losses / Draws tiles were, at about their height */
.pcard{flex:1;min-width:0;display:flex;align-items:center;gap:10px;border-radius:14px;padding:8px 10px;background:rgba(var(--tint),.03);border:1px solid var(--line);
  color:var(--text);text-align:left;font:inherit;cursor:pointer;transition:background .18s,border-color .18s,transform .15s}
.pcard:hover{background:rgba(var(--tint),.06);border-color:var(--line2)}
.pcard:active{transform:scale(.99)}
.pc-av{flex:none;width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:var(--surf2);border:1px solid var(--line2);color:var(--muted);font:800 16px/1 var(--display)}
.pc-av svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.pc-av.on{background:var(--accent);color:var(--on-accent);border-color:transparent}
.pc-main{flex:1;min-width:0;display:flex;flex-direction:column;line-height:1.3}
.pc-main b{font:700 15px/1.2 var(--display);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pc-main small{color:var(--muted);font-size:11.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pc-main b+small{font-variant-numeric:tabular-nums}
.pc-st.offline,.pc-st.error{color:var(--warn)}
/* looks like a button, but the whole card is the button */
.pcard .pc-cta{flex:none;min-height:34px;padding:4px 12px;font-size:13px;pointer-events:none}
@media (pointer:coarse){.pcard .pc-cta{min-height:34px}}
/* narrow phones: shorter labels so the name and status keep their room */
.pcard .sm{display:none}
@media (max-width:420px){.pcard .lg{display:none}.pcard .sm{display:inline}}

/* ---------- sign-in sheet ---------- */
.mbox #auTabs{margin-top:12px}
.authf{display:flex;flex-direction:column;gap:10px;margin-top:14px;text-align:left}
.authf label{display:flex;flex-direction:column;gap:5px;font:600 12.5px var(--body);color:var(--muted)}
.authf label small{font-weight:400}
.authf input{background:var(--well);color:var(--text);border:1px solid var(--line2);border-radius:12px;padding:10px 12px;font:500 16px var(--body);min-height:44px;
  user-select:text;-webkit-user-select:text}
.authf input::placeholder{color:var(--muted);opacity:.6}
.authf input:focus{outline:2px solid var(--accent-ink);outline-offset:1px}
.authf.in .su{display:none}
.authf .btn.full{width:100%}
.mbox .authf .auerr{margin:0;min-height:1.4em;max-width:none;color:var(--danger);font-size:13px}
.mbox .authf .note{margin:0;text-align:center}

/* ---------- "which progress to keep?" ---------- */
.pick2{display:grid;gap:8px;margin-top:12px;text-align:left}
.pk2{border-radius:14px;padding:10px 12px;background:rgba(var(--tint),.04);border:1px solid var(--line)}
.pk2 b{display:block;font:700 15px/1.3 var(--display)}
.pk2 small{color:var(--muted);font-size:12.5px}

/* account row at the top of Settings */
.acctrow .rt{flex:1;min-width:0}
.acctrow .rt small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* the card avatar (profile.js) and the level line */
.pc-av.art{background:var(--surf2);font:400 20px/1 var(--body);border-color:transparent;box-shadow:0 0 0 2px var(--ring)}
.pc-main .pc-lv{color:var(--accent-ink);font-weight:600}
.pcard .pc-go{flex:none;width:18px;height:18px;color:var(--muted)}
.acctrow .pc-av.art{margin-left:2px}
