/* account.css — /account, the signed-in visitor's one editable setting.
   Two stacked .rb-panel cards (shared look in theme.css): the name form, then a
   read-only summary of how they sign in. Page CSS keeps only the header band,
   the form column and the fact list.

   ⚠ The 16px mobile font floor for `input.rb-input` already comes from theme.css
   (@media max-width: 900px) — do NOT restate a font-size on the input here, or a
   later value in this file wins the tie and iOS Safari starts zooming the
   viewport on focus again. Same trap documented in CLAUDE.md for /add-base. */

/* ⚠ padding-TOP/BOTTOM, never the `padding` shorthand: this element is also
   `.rb-container`, whose 40px (16px under 700) left/right is the site's gutter,
   and a shorthand here silently zeroes it. At desktop the 720px max-width plus
   `margin: 0 auto` hides that; at 390 the max-width does not bind and the
   heading runs flush into the edge of the screen. `/uploaded-bases` sets the
   shorthand and does exactly that — see CLAUDE.md. */
.account-wrap { padding-top: 48px; padding-bottom: 72px; max-width: 720px; }
.account-head { margin-bottom: 28px; }
.account-head .rb-eyebrow { margin-bottom: 10px; }
.account-title { font-size: clamp(34px, 5vw, 56px); }

/* ---- panels ------------------------------------------------------------- */
.account-panel { margin-bottom: 20px; }
.account-panel:last-child { margin-bottom: 0; }
.account-panel__title {
    font-family: var(--rb-font-head);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: .01em;
    margin: 0;
    color: var(--rb-text);
}
.account-note {
    color: var(--rb-muted);
    font-size: 14px;
    line-height: 1.55;
    margin: 0;
    padding: 16px 20px 0;
}
.account-note--last { padding: 0 20px 16px; }
.account-note a { color: var(--rb-accent-text); }

/* ---- the one form ------------------------------------------------------- */
/* A single column rather than a full-width field: a 30-character name in a
   720px box reads as a paragraph input and invites someone to type a sentence
   into it. Capped in ch so the box is about as wide as the longest legal name. */
.account-form { padding: 16px 20px 20px; }
.account-field { margin-bottom: 16px; max-width: 34ch; }
.account-field .rb-input { width: 100%; }
.account-hint {
    color: var(--rb-faint);
    font-size: 13px;
    line-height: 1.5;
    margin: 8px 0 0;
}
.account-hint em { font-style: normal; color: var(--rb-muted); }
.account-submit { align-self: flex-start; }

/* Validation copy sits directly under the field it is about. */
.account-field .errors {
    list-style: none;
    padding: 0;
    margin: 8px 0 0;
    color: var(--rb-accent-text);
    font-size: 13px;
    line-height: 1.5;
}

/* ---- read-only facts ---------------------------------------------------- */
/* Label column sized to its content so the two rows align without a table;
   it wraps to a single column on a phone where 2 columns would truncate the
   email address rather than the label. */
.account-facts {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 10px 24px;
    margin: 0;
    padding: 16px 20px;
}
.account-facts dt {
    color: var(--rb-faint);
    font-size: 13px;
    font-weight: 400;
}
.account-facts dd {
    color: var(--rb-text);
    font-size: 14px;
    margin: 0;
    /* An email address has no spaces to break at, so at 390 it would otherwise
       push the grid wider than the viewport. */
    overflow-wrap: anywhere;
}

/* ---- Raid Pro (RP11) ------------------------------------------------------ */
/* The plan's state in a sentence, then its one or two buttons side by side,
   wrapping on a phone. The form is inline so the button sits like the link. */
.account-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.account-inline { margin: 0; }

/* ---- flash -------------------------------------------------------------- */
/* Same red-tinted hairline panel as /add-base and /contact-us; success flips it
   green. Defined per page because .rb-flash is not in theme.css. */
.rb-flash {
    border: 1px solid rgba(205, 65, 43, .4);
    background: rgba(205, 65, 43, .10);
    color: var(--rb-accent-text);
    border-radius: var(--rb-radius);
    padding: 10px 14px;
    font-size: 14px;
    margin: 0 0 20px;
}
.rb-flash p { margin: 0; }
.rb-flash--success {
    border-color: rgba(79, 174, 109, .4);
    background: rgba(79, 174, 109, .10);
    color: var(--rb-good);
}

@media (max-width: 1000px) {
    .account-wrap { padding-top: 32px; padding-bottom: 56px; }  /* ⚠ not the shorthand — see above */
}
@media (max-width: 560px) {
    .account-facts { grid-template-columns: 1fr; gap: 4px 0; }
    .account-facts dd { margin-bottom: 8px; }
    .account-facts dd:last-child { margin-bottom: 0; }
}
