/* Ravito board — the account pages.

   Lookups, billing, account and the locked page; also linked by the gate (sign-in, invite).

   Linked from the `styles` block of: lookups.html, billing.html, account.html, locked.html, admin_account.html, _gate.html.
   Loaded after style.css, which holds the tokens, the shell and every shared
   component (.btn, .field, .card, .tag, .chip, .pill, .banner, .toast, .drawer,
   .tbl, .kvs, .pagehead ...). Use those; do not restate them here.

   Same rules as every sheet: no hex outside a :root block, font sizes only
   12 / 13 / 14 / 16 / 19 / 28 px, no import rule, no off-site url().

   The page: .sheet-inner.acct is one measured column, so the page head and the
   cards under it share a left edge. Figures sit in the shared .statgrid, lists
   in the shared <table class="tbl ledger"> (style.css), and each card opens on
   an h2. */

/* The column ------------------------------------------------------------ */
/* The same 1080 column every page has, so the title does not jump as you go
   through Menu; the reading measure is held to 720 inside it, from the left. */
.acct:not(.acct-narrow) > *{ max-width:720px; }
.acct-narrow{ max-width:520px; }
.acct .money{ margin-inline:0; }
.acct .card h2{ margin:0 0 10px; }
.acct .card h2 + .hint{ margin-top:0; }
.acct .money .kvs{ margin:12px 0 0; }

/* Where you stand: two or three figures, equal weight, no chart. The shared
   grid fits as many as will go, which leaves an empty tile when three wrap to
   two; the tracks are said outright instead, and stack on a phone so a figure
   in pounds never runs out of room. */
.acct-stats-2{ grid-template-columns:repeat(2,minmax(0,1fr)); }
.acct-stats-3{ grid-template-columns:repeat(3,minmax(0,1fr)); }
.acct-stats .stat-v{ overflow-wrap:anywhere; }
.stat-unit{ font-size:14px; font-weight:500; letter-spacing:-0.02em; color:var(--muted); }
.stat-note{ margin:6px 0 0; font-size:13px; line-height:1.5; color:var(--muted); }
.acct-after{ margin:12px 0 18px; }
@media (max-width:559px){
  .acct-stats-2, .acct-stats-3{ grid-template-columns:minmax(0,1fr); }
}


/* The gate: an error straight under the title needs the same air a form gets. */
.gate h1 + .gate-err{ margin-top:20px; }

/* The money pages ------------------------------------------------------- */

/* One column of cards rather than a grid. Billing is read top to bottom —
   what you are on, what you have left, what happens when it runs out — and a
   two-column layout makes that order a matter of where the eye lands. */
.money{ display:flex; flex-direction:column; gap:18px; max-width:720px; }
/* A label that follows a paragraph is starting a new subject, not captioning
   the one above it. Without this, "Top up" sat on the last line of the prose
   explaining what a check is. */
.money .hint + .label{ margin-top:20px; }
.money section{ margin:0; }
.money .card.pad{ margin:0; }
.money .label{ margin-bottom:10px; }
.money .hint{ margin:12px 0 0; }

.plan-head{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.money-acts{ display:flex; gap:10px; flex-wrap:wrap; align-items:center; margin:16px 0 0; }
.money-acts form{ margin:0; }

/* The three rungs, side by side, so the ladder is one glance rather than three
   sentences. The one you are already on carries the plate ring. */
.topups{ display:flex; gap:10px; flex-wrap:wrap; margin:0 0 14px; }
.hint + .topups{ margin-top:14px; }
.topups form{ margin:0; flex:1 1 150px; }
.btn.topup{
  display:flex; flex-direction:column; align-items:flex-start; justify-content:center; gap:4px;
  width:100%; height:auto; min-height:64px; padding:12px 16px; text-align:left;
  border-radius:var(--r-card); line-height:1.2;
}
.btn.topup b{
  font:600 16px/1 var(--f-ui); letter-spacing:-.01em;
  font-variant-numeric:tabular-nums; font-feature-settings:"tnum" 1;
}
.btn.topup span{ font:500 13px/1.3 var(--f-ui); color:var(--muted); }
.btn.topup.on{ border-color:var(--text); box-shadow:inset 0 0 0 1px var(--text); }

.topup-own{ display:flex; align-items:flex-end; gap:10px; flex-wrap:wrap; }
/* The pound sign belongs to the field, not to the label above it — a number
   box with no unit in it is a number box somebody types pence into. */
.pounds{
  display:inline-flex; align-self:flex-start; align-items:center; gap:6px;
  height:var(--h-ctl); padding:0 12px;
  background:var(--field); border:1px solid var(--line-strong); border-radius:var(--r-field);
}
.pounds:focus-within{ border-color:var(--accent); }
.pounds span{ color:var(--muted); font-size:14px; }
/* Typed for specificity, and only for that: .fld input[type=number] above is
   (0,2,1) and a bare .pounds input is (0,1,1), so the field kept the boxed look
   of the control it is sitting inside and rendered as a box within a box. */
.pounds input[type=number], .pounds input[type=text]{
  border:0; background:none; height:auto; padding:0; width:96px; border-radius:0;
}
/* The whole box is the target on a phone, not the 20px line of text in it,
   and 16px so iOS does not zoom on focus. */
@media (hover:none), (pointer:coarse){
  .pounds input[type=number], .pounds input[type=text]{ align-self:stretch; font-size:16px; }
}
.autoform{ display:flex; flex-direction:column; gap:14px; align-items:flex-start; }
.hint + .autoform{ margin-top:14px; }
.autoform .frow{ margin:0; }
.autoform .f-check{ display:flex; }

.feed-name{ color:var(--text); }

.pwform{ display:flex; flex-direction:column; gap:16px; align-items:flex-start; max-width:400px; }
.pwform .f{ width:100%; }
/* And every field label on these pages, for the same reason: inside a card
   that already carries an uppercase label, a second uppercase label directly
   under it reads as the heading said twice. The board's own forms keep the
   uppercase .fk — there the label IS the only heading. */
.money .fk{ font:500 13px/1 var(--f-ui); }

/* The paywall ----------------------------------------------------------- */

.paywall-plan .btn{ margin-top:18px; }
.paywall-plan .hint{ margin:12px 0 0; }
.paywall-plan .label{ margin-bottom:6px; }
.paywall-price{
  margin:2px 0 0; font:600 28px/1 var(--f-ui); letter-spacing:-.02em; color:var(--text);
  font-variant-numeric:tabular-nums; font-feature-settings:"tnum" 1;
}
.paywall-price span{ font:500 14px/1 var(--f-ui); color:var(--muted); margin-left:6px; }
.paywall-foot{ text-align:center; }
.paywall-foot a{ color:var(--muted); }

/* A whole DD/MM/YYYY HH:MM in Last used, not cut. */
.ledger .c-used{ width:140px; }

/* The read-only wrapper (viewing as a customer): a fieldset only so that
   disabled reaches every control inside it; it draws nothing itself. */
fieldset.ro-wrap{ margin:0; padding:0; border:0; min-width:0; }
