/* ============================================================
   account.css — Account / status screen.
   Builds on app.css tokens (.card, .pill, .list, .item, .btn).
   Loaded after app.css. CSP-safe: classes only, no inline style.
   ============================================================ */

.acct-card{padding:var(--s4);display:flex;flex-direction:column;gap:var(--s3)}
.acct-card__head{display:flex;align-items:center;gap:var(--s3)}
.acct-card__head h3{font-size:15px;font-weight:700;letter-spacing:-.01em}
.acct-card__head .pill{margin-left:auto}

/* ---- licence tiers ---- */
.acct-tiers{display:flex;flex-direction:column;gap:var(--s2)}
.acct-tier{
  display:flex;align-items:center;gap:var(--s3);
  padding:var(--s3) var(--s3);border-radius:var(--r2);
  background:color-mix(in srgb,var(--text) 3%,transparent);
  border:1px solid var(--line);
}
.acct-tier.is-off{opacity:.55}
.acct-tier .pill{min-width:44px;justify-content:center}
.acct-tier__val{margin-left:auto;text-align:right;font-size:13px;color:var(--text);display:flex;flex-direction:column;gap:2px;align-items:flex-end}
.acct-tier__val b{font-weight:700}
.acct-tier__date{font-size:11px;color:var(--dim);font-weight:500}
.acct-tier__val--ok b,.acct-tier__val--ok{color:var(--ok);font-weight:700}
.acct-tier__val--warn b{color:var(--warn)}
.acct-tier__val--dim{color:var(--dim)}

.acct-note{font-size:12px;color:var(--muted);padding-top:var(--s1)}

/* ---- no licence ---- */
.acct-none{padding:var(--s4) 0 var(--s2);text-align:center}
.acct-none__title{font-weight:700;font-size:15px;margin-bottom:4px}
.acct-none__sub{font-size:13px;color:var(--muted)}

/* ---- realms ---- */
.acct-realm .item__sub{color:var(--muted)}

/* ---- referral ---- */
.acct-ref{display:flex;align-items:center;gap:var(--s3)}
.acct-ref__code{display:flex;flex-direction:column;gap:3px;min-width:0}
.acct-ref__label{font-size:11px;color:var(--dim);text-transform:uppercase;letter-spacing:.05em;font-weight:700}
.ref-code{
  font-family:var(--mono);font-size:20px;font-weight:700;letter-spacing:.06em;
  color:var(--text);
}
.acct-copy{margin-left:auto;white-space:nowrap}
.acct-copy svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.acct-ref__hint{font-size:12px;color:var(--muted)}

.acct-share{display:flex;flex-direction:column;gap:var(--s2)}
.ref-share{
  font-family:var(--font);font-size:12px;line-height:1.5;color:var(--muted);
  white-space:pre-wrap;word-break:break-word;
  background:var(--bg2);border:1px solid var(--line);border-radius:var(--r2);
  padding:var(--s3);max-height:220px;overflow:auto;
}
.acct-share .acct-copy{margin-left:0;align-self:flex-start}

.appbar__acct{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;margin-left:8px;border-radius:50%;border:1px solid var(--line);background:transparent;color:var(--muted);transition:.12s;cursor:pointer}
.appbar__acct svg{fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.appbar__acct:hover,.appbar__acct:focus-visible{color:var(--text);border-color:var(--accent);background:var(--t-accent)}
