/* SPECTRA account and connect pages. Builds on spectra.css (body.spectra-brand variables) and eft.css.
   From the Phase 1 page (frontend/site/assets/spectra-account.css); the plan is plain text now. */

.acct-title { margin: 0 0 0.4rem; font: 600 clamp(1.8rem, 4vw, 2.4rem)/1.1 var(--sans); }
.acct-message { min-height: 1.5em; margin: 0 0 1.2rem; color: var(--ash); }
.acct-message.error { color: #e9a2a2; }
.acct-message:empty { min-height: 0; margin: 0; }

.acct-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 1.2rem; align-items: start; }
.acct-wide { grid-column: 1 / -1; }
.acct-card a { color: var(--flame); }
.acct-card h2 { margin: 0 0 0.8rem; font: 600 1.25rem/1.2 var(--sans); }
.acct-card p { margin: 0 0 0.8rem; }
.acct-hint { color: var(--ash); font-size: 0.88rem; line-height: 1.45; }

.acct-who { display: flex; align-items: center; gap: 1rem; margin-bottom: 0.9rem; }
.acct-avatar { position: relative; display: grid; flex: none; place-items: center; width: 4.5rem; height: 4.5rem; overflow: hidden;
  border: 2px solid var(--line-hot); border-radius: 50%; background: var(--hex) 0 0 / 10.39px 18px, #060a14; }
.acct-avatar img { width: 100%; height: 100%; object-fit: cover; }
.acct-avatar span { color: var(--flame); font: 600 1.8rem/1 var(--sans); }
.acct-avatar [hidden] { display: none; }
.acct-name { margin: 0 !important; color: var(--text) !important; font: 600 1.35rem/1.2 var(--sans); overflow-wrap: anywhere; }
.acct-sub { margin: 0.2rem 0 0 !important; color: var(--ash); font-size: 0.88rem; overflow-wrap: anywhere; }

.acct-form { margin: 1rem 0 0; }
.acct-form label { display: block; margin-bottom: 0.35rem; color: var(--text); font-weight: 600; font-size: 0.92rem; }
.acct-row { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; }
.acct-form input:not([type="file"]) { min-width: 0; flex: 1 1 14rem; padding: 0.5rem 0.7rem;
  border: 1px solid var(--line-hot); background: var(--panel-raised); color: inherit; font: inherit; }
.acct-form input[type="file"] { display: block; max-width: 100%; margin-bottom: 0.8rem; color: var(--ash); font-size: 0.9rem; }
.acct-form input:focus-visible { outline: 2px solid var(--ember); outline-offset: 1px; }
.acct-preview { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; margin-top: 0.8rem; }
.acct-preview[hidden] { display: none; }
.acct-preview img { width: 4.5rem; height: 4.5rem; border: 2px solid var(--ember); border-radius: 50%; object-fit: cover; }

.acct-plan { color: var(--text) !important; line-height: 1.5; }
.acct-plan strong { font: 600 1.1rem/1.3 var(--sans); }
.acct-plan strong.pro { color: var(--flame); }

.acct-pcs { margin: 0 0 0.4rem; padding: 0; list-style: none; }
.acct-pc { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; align-items: center; justify-content: space-between;
  padding: 0.75rem 0; border-top: 1px solid var(--line); }
.acct-pc:last-child { border-bottom: 1px solid var(--line); }
.acct-pc div { min-width: 0; flex: 1 1 16rem; }
.acct-pc p { margin: 0 !important; }
.acct-pc-name { color: var(--text) !important; font-weight: 600; overflow-wrap: anywhere; }
.acct-empty { color: var(--ash); }
.acct-signout { grid-column: 1 / -1; margin: 0.4rem 0 0; }

/* Connect page: one centred question. */
.acct-narrow { max-width: 36rem; }
.acct-consent { text-align: center; }
.acct-mark { display: flex; justify-content: center; margin-bottom: 0.8rem; }
.acct-question { margin: 0 0 0.8rem; font: 600 clamp(1.4rem, 3.6vw, 1.8rem)/1.25 var(--sans); overflow-wrap: anywhere; }
.acct-consent .acct-message { margin-bottom: 0.8rem; }
.acct-choices { justify-content: center; margin: 1.2rem 0; }
.acct-choices .button { min-width: 8rem; }

@media (max-width: 48rem) {
  .acct-grid { grid-template-columns: 1fr; }
}

/* Signed out: one card with the Google button. */
.acct-signin { max-width: 36rem; }
.acct-signin .g-button { margin: 0.2rem 0; }
.acct-consent .acct-choices .g-button { min-width: 0; }
.acct-pc .button.danger { flex: none; }
