/* Billing page: the owner's pick of 2026-11-19, "The upgrade card" (billing-l4.js draws it, billing-month.js says it):
   the month (one ledger line, one sentence, the month as a row of days, the runs started in it), then the plans side
   by side in the console's own language, no box, no raised card, no shadow, then the foot and, for an Owner, the
   history. What the page keeps saying where the form has no view of its own (a payment to confirm, a refusal, a plan
   that could not be read) stands over the month, in the console's notice.

   One scale of tone, in every word that reads it: nothing under 75%, the warm tone of attention from 75%, the tone of
   what stopped once the limit is reached. Nothing here wears a provider's hue.

   The page's rules are under the page. Its dialogs (the automatic top-ups', the meeting's) are outside it, so their
   rules are under .billing-dialog. Tokens from styles.css only. */

.page[data-page="billing"] .billing-body {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-content: start; max-width: 1280px;
}
/* what the page says before its plan (it could not be read) keeps the body's measure */
.page[data-page="billing"] > .notice { max-width: 1280px; }
/* "add-on" is one word: a line never ends on its hyphen */
:where(.page[data-page="billing"], .billing-dialog) .billing-term { white-space: nowrap; }
/* a sentence kept whole where a line can hold one: it takes the line's end when it fits there, else the next line,
   and is never left as a stranded word or two. On a phone's short lines the words run on as they come */
@media (min-width: 600px) {
  :where(.page[data-page="billing"], .billing-dialog) .billing-keep { display: inline-block; max-width: 100%; }
}
/* a line of what the page keeps saying: the console's notice, with no rules of its own */
.page[data-page="billing"] .billing-say > .notice { border: 0; padding: 0; }
.page[data-page="billing"] .billing-say > .notice[data-tone="info"] { color: var(--ink-2); }
.page[data-page="billing"] .billing-say .notice-text { max-width: 96ch; text-wrap: pretty; }
/* a lead set larger than its line's words keeps the line's height: a sentence that gains or loses one moves nothing
   under it */
.page[data-page="billing"] .billing-lead { font-size: 15px; font-weight: 600; line-height: 1; }
/* back from a paid checkout: that the workspace is on Team is the line's news, in ink */
.page[data-page="billing"] .billing-say[data-say="returned"] .billing-lead { color: var(--ink); }

/* Add compute holds the room of its wider word ("Get today's price"), so a change of word moves nothing beside it */
.page[data-page="billing"] .billing-add { display: inline-grid; justify-items: center; }
.page[data-page="billing"] .billing-add > span { grid-area: 1 / 1; }
.page[data-page="billing"] .billing-add > .billing-add-room { visibility: hidden; }
.page[data-page="billing"] .billing-add > .billing-add-room::before { content: attr(data-room); }

/* what came of an Owner's press, where it was pressed: a notice in the page's own style, with no rules of its own; what
   is new in it rises in once, and a redraw of the page around it replays nothing; while nothing is said, no room */
.page[data-page="billing"] .billing-status > .notice { border: 0; padding: 0; }
.page[data-page="billing"] .billing-status .notice-text { max-width: 86ch; text-wrap: pretty; }
.page[data-page="billing"] .billing-status > [data-arrived] { animation: disclose-rise 420ms var(--ease-out) both; }
.page[data-page="billing"] .billing-status > .billing-next { color: var(--ink-2); text-wrap: pretty; }
/* what to do next hangs at the words of the notice over it, past its glyph */
.page[data-page="billing"] .billing-status > .notice:is([data-tone="warn"], [data-tone="bad"]) ~ .billing-next { padding-left: 20px; }
.page[data-page="billing"] .billing-status > .billing-about { max-width: 72ch; text-wrap: pretty; }
/* a first price asked for says so only if the wait lasts: nothing is drawn for a wait over before anyone would notice */
.page[data-page="billing"] .billing-status > .billing-asking { min-height: 0; padding: 0; font-size: 12.5px; color: var(--ink-3); }
.page[data-page="billing"] .billing-status > .billing-asking[data-arrived] { animation: quiet-wait .25s ease-out .6s both; }
.page[data-page="billing"] .billing-status .billing-lead { font-size: inherit; }
.page[data-page="billing"] .billing-said { color: var(--ink-2); max-width: 86ch; text-wrap: pretty; }
.page[data-page="billing"] :is(.billing-renewal, .billing-moves-said):empty { position: absolute; }
.page[data-page="billing"] .billing-awaiting-acts { display: inline-flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.page[data-page="billing"] .billing-awaiting-acts .btn[aria-disabled="true"]:not([aria-busy="true"]) { opacity: .45; cursor: default; }
.page[data-page="billing"] .panel-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; padding-bottom: 0; }

/* the history: a notice (a warning, a renewal's notice) reads quieter than a row where the plan or money moved */
.page[data-page="billing"] .billing-history .table :is(th, td).billing-when { width: 1%; padding-right: 40px; }
.page[data-page="billing"] .billing-history .table td.billing-what { white-space: normal; }
.page[data-page="billing"] .billing-history .table tr[data-quiet] > td { color: var(--ink-2); }
.page[data-page="billing"] .billing-event[data-tone="warn"] { color: var(--warn); }
.page[data-page="billing"] .billing-event[data-tone="bad"] { color: var(--bad); }
.page[data-page="billing"] .billing-history > .note { margin-top: 10px; max-width: 96ch; }
.page[data-page="billing"] .billing-history > .note + .note { margin-top: 2px; }
@media (max-width: 599px) {
  .page[data-page="billing"] .billing-body { gap: 32px; }
  /* the history keeps what happened and what was charged: the column that ends the row ends on the page's edge, and
     under the words the time keeps one width, so what follows it starts at one place down the rows */
  .page[data-page="billing"] .billing-history .table :is(th, td).billing-charged { padding-right: 0; white-space: nowrap; }
  .page[data-page="billing"] .billing-history .table td.billing-what { padding-left: 0; }
  .page[data-page="billing"] .billing-history .table th.billing-what { padding-left: 0; }
  .page[data-page="billing"] .billing-history .cell-fold > .cell-fact:first-child { min-width: 12ch; }
}

/* ---------------------------------------------------------------- the page's form (the owner's pick, 2026-11-19)

   "The upgrade card": the month (one ledger line, one sentence, the month as a row of days), then the plans side by
   side in the console's own language: no box, no raised card, no shadow. A plan is a column under a rule, as a
   section is: Team under a 2 px rule of ink with the page's big figure and its one ink button, so it is plainly the
   one to choose; Free under a hairline, quiet; Dedicated a line at the foot. On a phone Team comes first, right under
   the month, so its button is in the first screen. Instrument Sans with tabular figures where they line up; no hue but
   umber (from 75% used) and red (at the limit), beside the words that say it. Layouts key on the content column's
   width (container queries), not the window's; below 900 px every target is 40 px tall. Motion only where it earns a
   look (the days with no new jobs draw in after the rest, Team's line grows across from Free's sliver); reduced
   motion stops both (styles.css). */

.page[data-page="billing"] .billing-body[data-layout="l4"] { gap: 44px; max-width: 1080px; }
.page[data-page="billing"] .l4 { container: l4 / inline-size; display: grid; grid-template-columns: minmax(0, 1fr); row-gap: 30px; max-width: 1080px; min-width: 0; margin-top: -4px; }
.page[data-page="billing"] .l4 b { font-weight: 600; color: var(--ink); }
.page[data-page="billing"] .l4-dot { margin: 0 .45em; color: var(--ink-3); }
.page[data-page="billing"] .l4-label { font-size: 12.5px; font-weight: 500; font-stretch: var(--label-stretch); line-height: 1.4; color: var(--ink-3); }
.page[data-page="billing"] .l4-nowrap { white-space: nowrap; }

/* what the page keeps saying over the month: a payment to confirm, a refusal, a plan that could not be read */
.page[data-page="billing"] .l4-notices { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.page[data-page="billing"] .l4-notices .billing-say > .notice { border: 0; padding: 0; }
.page[data-page="billing"] .l4-notices .billing-say > .notice[data-tone="info"] { color: var(--ink-2); }
.page[data-page="billing"] .l4-notices .billing-say .notice-text { max-width: 96ch; text-wrap: pretty; }
.page[data-page="billing"] .l4-notices .billing-awaiting-acts { display: inline-flex; flex-wrap: wrap; gap: 8px; vertical-align: middle; }

/* ---------------------------------------------------------------- 1. the month */

.page[data-page="billing"] .l4-now { min-width: 0; }
.page[data-page="billing"] .l4-ledger { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 0; font-size: 14px; line-height: 1.45; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.page[data-page="billing"] .l4-ledger b { font-size: 15px; }
.page[data-page="billing"] .l4-mini { position: relative; display: inline-block; flex: none; width: 64px; height: 4px; margin: 0 12px; border-radius: var(--radius-cap); background: var(--rule-2); overflow: hidden; }
.page[data-page="billing"] .l4-mini > i { position: absolute; inset: 0 auto 0 0; min-width: 4px; border-radius: var(--radius-cap); background: var(--ink); }
.page[data-page="billing"] .l4[data-tone="warn"] .l4-mini > i { background: var(--warn); }
.page[data-page="billing"] .l4[data-tone="bad"] .l4-mini > i { background: var(--bad); }
.page[data-page="billing"] .l4[data-tone="bad"] .l4-ledger-rest b { color: var(--bad); }

/* the sentence: its lead quiet, the day itself in ink and weight (umber from 75%, red at the limit) */
.page[data-page="billing"] .l4-head { margin-top: 6px; font-size: 28px; font-weight: 500; letter-spacing: -.014em; line-height: 1.22; color: var(--ink-2); text-wrap: balance; }
.page[data-page="billing"] .l4-head b { font-weight: 650; color: var(--ink); }
.page[data-page="billing"] .l4[data-tone="warn"] .l4-head b { color: var(--warn); }
.page[data-page="billing"] .l4[data-tone="bad"] .l4-head b { color: var(--bad); }
.page[data-page="billing"] .l4-sub { margin-top: 4px; font-size: 15.5px; line-height: 1.45; color: var(--ink); text-wrap: pretty; }
/* with nothing run yet, the first step stands right under the words, on their edge */
.page[data-page="billing"] .l4 .l4-first { display: inline-flex; margin-top: 14px; height: 44px; padding: 0 20px; font-size: 15px; }

/* the month as a row of days */
.page[data-page="billing"] .l4-month { --stuck: var(--ink-2); margin-top: 14px; min-width: 0; }
.page[data-page="billing"] .l4[data-tone="warn"] .l4-month { --stuck: var(--warn); }
.page[data-page="billing"] .l4[data-tone="bad"] .l4-month { --stuck: var(--bad); }
.page[data-page="billing"] .l4-marks { position: relative; height: 18px; font-size: 12.5px; line-height: 18px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.page[data-page="billing"] .l4-mark { position: absolute; top: 0; white-space: nowrap; }
.page[data-page="billing"] .l4-mark[data-align="mid"] { transform: translateX(-50%); }
.page[data-page="billing"] .l4-mark[data-align="end"] { transform: translateX(-100%); }
/* a label that gives way to another it would meet on a narrow row (billing-l4.js fitMarks): hidden, its place kept */
.page[data-page="billing"] .l4-mark[data-yield] { visibility: hidden; }
.page[data-page="billing"] .l4-mark-today, .page[data-page="billing"] .l4-mark-event { color: var(--ink); font-weight: 600; }
.page[data-page="billing"] .l4-mark-stuck { color: var(--stuck); font-weight: 600; }
.page[data-page="billing"] .l4-mark-more, .page[data-page="billing"] .l4-mark-limit { color: var(--ink-2); font-weight: 550; }
.page[data-page="billing"] .l4-barwrap { position: relative; margin: 4px 0; }
.page[data-page="billing"] .l4-bar { position: relative; height: 16px; border-radius: var(--radius); overflow: hidden; background: var(--rule); }
.page[data-page="billing"] .l4-seg { position: absolute; top: 0; bottom: 0; }
.page[data-page="billing"] .l4-seg[data-kind="gone"] { background: var(--ink); }
.page[data-page="billing"] .billing-body[data-first] .l4-seg[data-kind="gone"] { animation: reckon-wipe 760ms var(--ease-out) both; }
.page[data-page="billing"] .l4-seg[data-kind="ahead"] { background: var(--ink-4); }
/* what the top-ups add: covered too, but bought, so drawn dashed */
.page[data-page="billing"] .l4-seg[data-kind="more"] { box-sizing: border-box; background: color-mix(in oklab, var(--ink-4) 45%, var(--paper)); box-shadow: inset 0 0 0 1.5px var(--ink-3); }
.page[data-page="billing"] .l4-seg[data-kind="more"]::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 5px, var(--paper) 5px 7px); mask: linear-gradient(var(--ink) 0 0) top / 100% 1.5px no-repeat, linear-gradient(var(--ink) 0 0) bottom / 100% 1.5px no-repeat; }
/* after the limit, for a Member: nothing drawn (the Owners' top-ups are not theirs to see) */
.page[data-page="billing"] .l4-seg[data-kind="after"] { background: transparent; }
/* the days with no new jobs: hatched in the meter's tone, edged, drawn in last so the eye lands on them */
.page[data-page="billing"] .l4-seg[data-kind="stuck"] {
  background: repeating-linear-gradient(-45deg, var(--stuck) 0 1.5px, transparent 1.5px 4.75px), color-mix(in oklab, var(--stuck) 9%, var(--paper));
  box-shadow: inset 0 0 0 1.5px var(--stuck);
}
.page[data-page="billing"] .billing-body[data-first] .l4-seg[data-kind="stuck"] { animation: reckon-wipe 900ms var(--ease-out) 520ms both; }
.page[data-page="billing"] .l4-day { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--paper); }
@container l4 (max-width: 599px) { .page[data-page="billing"] .l4-day[data-near="true"] { display: none; } }
/* the key under a narrow row, where the dashed stretch has no room for its label */
.page[data-page="billing"] .l4-key { display: none; align-items: center; gap: 8px; margin-top: 6px; font-size: 12.5px; line-height: 1.4; color: var(--ink-2); font-weight: 550; }
.page[data-page="billing"] .l4-key-swatch { position: relative; flex: none; width: 22px; height: 12px; border-radius: var(--radius); box-sizing: border-box; background: color-mix(in oklab, var(--ink-4) 45%, var(--paper)); box-shadow: inset 0 0 0 1.5px var(--ink-3); }
.page[data-page="billing"] .l4-key-swatch::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 5px, var(--paper) 5px 7px); mask: linear-gradient(var(--ink) 0 0) top / 100% 1.5px no-repeat, linear-gradient(var(--ink) 0 0) bottom / 100% 1.5px no-repeat; }
@container l4 (max-width: 599px) { .page[data-page="billing"] .l4-key { display: flex; } }
.page[data-page="billing"] .l4-ticks { position: absolute; inset: -4px 0; pointer-events: none; }
.page[data-page="billing"] .l4-tick { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; border-radius: var(--radius-cap); background: var(--ink); }
.page[data-page="billing"] .l4-tick[data-kind="event"] { background: var(--stuck); }
.page[data-page="billing"] .l4-tick:is([data-kind="limit"], [data-kind="up"]) { inset-block: 3px; background: var(--ink-2); }

/* what Fluid did on the runs started this month: in Free's column a short list, on Team a line under the month */
.page[data-page="billing"] .l4-did-list { display: grid; gap: 3px; margin: 6px 0 0; padding: 0; list-style: none; font-size: 13.5px; line-height: 1.45; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.page[data-page="billing"] .l4-did-list b { font-size: 14.5px; }
.page[data-page="billing"] .l4-did-list li { text-wrap: pretty; }
.page[data-page="billing"] .l4-did[data-inline="true"] { margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--rule); }
.page[data-page="billing"] .l4-did[data-inline="true"] .l4-did-list { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.page[data-page="billing"] .l4-does { margin-top: 6px; font-size: 13.5px; line-height: 1.6; color: var(--ink-2); }
.page[data-page="billing"] .l4-does .l4-dot { margin: 0 .35em; }

/* ---------------------------------------------------------------- 2. the plans */

.page[data-page="billing"] .l4-card { display: grid; grid-template-columns: minmax(0, 1fr); row-gap: 26px; min-width: 0; }
.page[data-page="billing"] .l4-team { container: team / inline-size; order: 1; min-width: 0; padding-top: 14px; border-top: 2px solid var(--ink); }
.page[data-page="billing"] .l4-free { order: 2; display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; min-width: 0; padding-top: 15px; border-top: 1px solid var(--rule-2); }
.page[data-page="billing"] .l4-ded { order: 3; }
/* the direct line's place (Team's direct line: billing-l4.js lineSlot): right under Team's column, the whole row
   wide; on a plan with no plans card it is the page's own row, under the month, where it stands */
.page[data-page="billing"] .l4-card > .l4-line-slot { order: 1; grid-column: 1 / -1; }
@container l4 (min-width: 760px) {
  .page[data-page="billing"] .l4-card { grid-template-columns: minmax(0, 1fr) minmax(0, 2.3fr); column-gap: 44px; }
  .page[data-page="billing"] .l4-free { order: 0; }
  .page[data-page="billing"] .l4-ded { grid-column: 1 / -1; }
  .page[data-page="billing"] .l4-card[data-free="none"] .l4-team { grid-column: 1 / -1; }
  /* beside Free and Team, the direct line keeps the plans' two columns: its name under Free's, its lines under Team's */
  .page[data-page="billing"] .l4-card[data-free="true"] > .l4-line-slot > .l4-line { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.3fr); column-gap: 44px; align-items: baseline; }
  .page[data-page="billing"] .l4-card[data-free="true"] > .l4-line-slot .l4-line-says { margin-top: 0; }
}
/* Team's direct line: a row under a hairline, as Dedicated's line is, its name over its lines. The founder's number
   and the channel's name in ink, never broken across lines; Call, Text and Open in Slack the page's quiet links,
   beside the sentence they follow where the line has room and under it, on its edge, where it has not */
.page[data-page="billing"] .l4-line { min-width: 0; padding-top: 14px; border-top: 1px solid var(--rule); }
.page[data-page="billing"] .l4-line-title { font-size: 14px; font-weight: 600; line-height: 1.45; color: var(--ink); }
.page[data-page="billing"] .l4-line-says { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; min-width: 0; margin-top: 4px; font-size: 13.5px; line-height: 1.45; color: var(--ink-2); }
.page[data-page="billing"] .l4-line-says > p { max-width: 72ch; text-wrap: pretty; }
.page[data-page="billing"] .l4-line-say { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 14px; min-width: 0; }
.page[data-page="billing"] .l4-line-words { min-width: 0; }
.page[data-page="billing"] .l4-line-says b { white-space: nowrap; }
.page[data-page="billing"] .l4-line-number { font-size: 14px; font-variant-numeric: tabular-nums; }
.page[data-page="billing"] .l4-line-acts { flex: none; white-space: nowrap; }
.page[data-page="billing"] .l4 .l4-line-act { font-size: 13.5px; }
.page[data-page="billing"] .l4-col-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 16px; min-height: 30px; }
.page[data-page="billing"] .l4-team-main { min-width: 0; }
.page[data-page="billing"] .l4-team-name { font-size: 20px; font-weight: 650; letter-spacing: -.01em; line-height: 1.2; }
.page[data-page="billing"] .l4-free-name { font-size: 17px; font-weight: 600; line-height: 1.3; color: var(--ink); }

/* Monthly and Yearly as two plain words (the chosen one in ink, ruled under) */
.page[data-page="billing"] .l4-words { display: inline-flex; align-items: center; gap: 18px; margin-block: -4px; }
.page[data-page="billing"] .l4-word { display: inline-flex; align-items: baseline; gap: 7px; height: 32px; padding: 0; border: 0; background: none; color: var(--ink-3); font: inherit; font-size: 14px; font-weight: 500; line-height: 32px; cursor: pointer; }
.page[data-page="billing"] .l4-word[aria-pressed="true"] { color: var(--ink); cursor: default; }
.page[data-page="billing"] .l4-word[aria-pressed="true"] .l4-w { font-weight: 600; text-decoration: underline 2px; text-underline-offset: 7px; }
@media (hover: hover) { .page[data-page="billing"] .l4-word:not([aria-pressed="true"]):hover { color: var(--ink); } }
/* each word keeps the room of its bold self, so the chosen one never pushes the other */
.page[data-page="billing"] .l4-w { display: inline-grid; }
.page[data-page="billing"] .l4-w::after { content: attr(data-w); content: attr(data-w) / ""; font-weight: 600; visibility: hidden; height: 0; overflow: hidden; }
.page[data-page="billing"] .l4-less { font-size: 13px; font-weight: 600; color: var(--ink); }

/* what changes with Monthly and Yearly is drawn twice in one place, the other hidden: a switch moves nothing */
.page[data-page="billing"] .l4-swap { display: inline-grid; }
.page[data-page="billing"] .l4-swap > * { grid-area: 1 / 1; }
.page[data-page="billing"] .l4-swap[data-billed="month"] > [data-for="year"], .page[data-page="billing"] .l4-swap[data-billed="year"] > [data-for="month"] { visibility: hidden; }

/* what Team gives, first and biggest: the compute, where it runs, drawn against Free */
.page[data-page="billing"] .l4-big { margin-top: 10px; font-size: 16px; line-height: 1.1; color: var(--ink-2); }
.page[data-page="billing"] .l4-big b { margin-right: 6px; font-size: 40px; font-weight: 650; letter-spacing: -.022em; color: var(--ink); font-variant-numeric: tabular-nums; }
.page[data-page="billing"] .l4-big-sub { margin-top: 6px; font-size: 14px; line-height: 1.45; color: var(--ink-2); text-wrap: pretty; }
.page[data-page="billing"] .l4-scale { margin-top: 12px; }
.page[data-page="billing"] .l4-scale-row { display: grid; grid-template-columns: 32px minmax(0, 1fr); align-items: center; column-gap: 8px; }
.page[data-page="billing"] .l4-scale-row + .l4-scale-row { margin-top: 4px; }
.page[data-page="billing"] .l4-scale-name { font-size: 12px; font-weight: 500; font-stretch: var(--label-stretch); line-height: 14px; color: var(--ink-3); }
.page[data-page="billing"] .l4-scale-line { display: flex; align-items: center; gap: 8px; min-width: 0; height: 14px; }
.page[data-page="billing"] .l4-scale-line > i { flex: none; display: block; height: 8px; min-width: 3px; border-radius: var(--radius-cap); background: var(--ink); }
.page[data-page="billing"] .billing-body[data-first] .l4-scale-row[data-plan="team"] .l4-scale-line > i { animation: reckon-draw 1100ms var(--ease-out) 260ms both; }
.page[data-page="billing"] .l4-scale-row[data-plan="free"] .l4-scale-line > i { background: var(--ink-2); }
.page[data-page="billing"] .l4[data-tone="bad"][data-kind="free"] .l4-scale-row[data-plan="free"] .l4-scale-line > i { background: var(--bad); }
.page[data-page="billing"] .l4-scale-fig { font-size: 12.5px; font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; }

/* the price, under what it buys; its terms beside it */
.page[data-page="billing"] .l4-price-row { margin-top: 14px; font-size: 14px; line-height: 1.45; color: var(--ink-2); text-wrap: pretty; }
.page[data-page="billing"] .l4-price-row b { margin-right: 2px; font-size: 17px; font-weight: 650; letter-spacing: -.01em; color: var(--ink); font-variant-numeric: tabular-nums; }

/* the one button with the price on it, and the line beside it */
.page[data-page="billing"] .l4-act { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 14px; }
.page[data-page="billing"] .l4 .l4-go { flex: none; height: 44px; padding: 0 22px; font-size: 15px; }
.page[data-page="billing"] .l4-act-note { flex: 1 1 200px; min-width: 0; font-size: 13.5px; line-height: 1.45; color: var(--ink-2); text-wrap: pretty; }
.page[data-page="billing"] .l4-yearly { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 12px; }
.page[data-page="billing"] .l4-yearly .l4-act-note { flex-basis: 200px; }
.page[data-page="billing"] .l4 .l4-switch { flex: none; height: 36px; }
.page[data-page="billing"] .l4 .l4-switch[data-armed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
/* the Owner's presses: each button over its line, the buttons one width, so the lines share one left edge */
.page[data-page="billing"] .l4[data-kind="owner"] :is(.l4-act, .l4-yearly) { display: grid; justify-items: start; gap: 8px; }
.page[data-page="billing"] .l4[data-kind="owner"] .l4-acts > * + * { margin-top: 18px; }
.page[data-page="billing"] .l4[data-kind="owner"] :is(.l4-go, .l4-switch) { min-width: 272px; }
.page[data-page="billing"] .l4[data-kind="owner"] :is(.l4-act-note, .billing-status) { max-width: 62ch; }
/* (Add compute and Switch to yearly, each with its receipt for a screen reader: the button is the row's own item) */
.page[data-page="billing"] .l4 :is(.billing-buy, .l4-year-press) { display: contents; }
.page[data-page="billing"] .l4 .l4-act-add > .billing-status { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; }
.page[data-page="billing"] .l4 .l4-act-add > .billing-status > .billing-about { margin: 0; font-size: 13.5px; line-height: 1.45; color: var(--ink-2); }
.page[data-page="billing"] .l4-switch-note { display: grid; }
.page[data-page="billing"] .l4-switch-note > * { grid-area: 1 / 1; }
.page[data-page="billing"] .l4-switch-note[data-armed="false"] > [data-for="again"], .page[data-page="billing"] .l4-switch-note[data-armed="true"] > [data-for="first"] { visibility: hidden; }
.page[data-page="billing"] .l4-switch-note[data-armed="true"] > [data-for="again"] { color: var(--ink); }
/* the automatic top-ups as set, beside Add compute */
.page[data-page="billing"] .l4-tops { font-size: 13.5px; line-height: 1.45; color: var(--ink-2); }
.page[data-page="billing"] .l4-tops .btn-link { font-size: 13.5px; }
.page[data-page="billing"] .l4-ask { margin-top: 16px; }
.page[data-page="billing"] .l4-ask-q { font-size: 15.5px; font-weight: 600; line-height: 1.4; color: var(--ink); }
.page[data-page="billing"] .l4-ask .l4-act-note { margin-top: 2px; }
.page[data-page="billing"] .l4-ask .l4-act-wait { margin-top: 10px; }

/* five things Team adds: a glyph and its title */
.page[data-page="billing"] .l4-gets-wrap { margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--rule); }
.page[data-page="billing"] .l4-gets { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin: 10px 0 0; padding: 0; list-style: none; }
.page[data-page="billing"] .l4-get { display: grid; grid-template-columns: 22px minmax(0, 1fr); column-gap: 11px; align-items: start; min-width: 0; }
.page[data-page="billing"] .l4-get-icon { display: block; color: var(--ink); }
.page[data-page="billing"] .l4-get-words { display: grid; gap: 1px; min-width: 0; padding-top: 2px; }
.page[data-page="billing"] .l4-get-t { font-size: 14px; font-weight: 600; line-height: 1.3; text-wrap: balance; }
.page[data-page="billing"] .l4-get-d { font-size: 12.5px; line-height: 1.4; color: var(--ink-2); text-wrap: pretty; }
/* on Team, the two a founder does with you are links to the meeting */
.page[data-page="billing"] .l4 .l4-get-act { justify-self: start; text-align: left; font-size: 14px; font-weight: 600; line-height: 1.3; color: var(--ink); }
.page[data-page="billing"] .l4-faces { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 3px; }
.page[data-page="billing"] .l4-face { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--paper-3); color: var(--ink); font-size: 10.5px; font-weight: 600; letter-spacing: .02em; }
@container team (min-width: 420px) {
  .page[data-page="billing"] .l4-gets { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; row-gap: 12px; }
}
/* a wide Team: the offer on the left, what it adds listed down the right beside it, a hairline between */
@container team (min-width: 620px) {
  .page[data-page="billing"] .l4-team-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(200px, 236px); column-gap: 30px; }
  .page[data-page="billing"] .l4-gets-wrap { margin-top: 0; padding: 4px 0 0 28px; border-top: 0; border-left: 1px solid var(--rule); }
  .page[data-page="billing"] .l4-gets { grid-template-columns: minmax(0, 1fr); row-gap: 14px; margin-top: 12px; }
}
/* room for each title on one line (the longest, "Connect a GPU cloud with a founder", is 238 px) */
@container team (min-width: 680px) {
  .page[data-page="billing"] .l4-team-in { grid-template-columns: minmax(0, 1fr) 300px; column-gap: 28px; }
  .page[data-page="billing"] .l4-gets-wrap { padding-left: 24px; }
}

/* Free: what you have, quietly */
.page[data-page="billing"] .l4-free-line { margin-top: 8px; font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.page[data-page="billing"] .l4-free-line b { font-size: 15px; }
.page[data-page="billing"] .l4-free .l4-did { margin-top: 16px; }
.page[data-page="billing"] .l4-free-would { margin-top: 8px; font-size: 14px; line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }
.page[data-page="billing"] .l4-wait { margin-top: 16px; font-size: 14px; line-height: 1.45; color: var(--ink-2); text-wrap: pretty; }
.page[data-page="billing"] .l4-wait b { font-size: 15px; }
/* at the limit, the other way out sits beside the button: in Free's column on a wide page, under the button when the
   plans are stacked (Free's column is then below) */
.page[data-page="billing"] .l4-act-wait { flex: 1 1 100%; font-size: 13.5px; line-height: 1.45; color: var(--ink-2); }
.page[data-page="billing"] .l4-act-wait b { font-size: 15px; }
@container l4 (min-width: 760px) { .page[data-page="billing"] .l4-act-wait { display: none; } }
@container l4 (max-width: 759px) { .page[data-page="billing"] .l4-wait { display: none; } }

/* Dedicated: offered in one line at the foot */
.page[data-page="billing"] .l4-ded { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; min-width: 0; padding-top: 14px; border-top: 1px solid var(--rule); font-size: 13.5px; line-height: 1.45; color: var(--ink-2); }
.page[data-page="billing"] .l4-ded b { font-size: 14px; }
.page[data-page="billing"] .l4-ded-what { min-width: 0; }
.page[data-page="billing"] .l4 .l4-talk { font-size: 13.5px; }

/* under the plans: the Owner's quiet links, what came of the last of them, and what "used" is */
.page[data-page="billing"] .l4-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 24px; margin-top: -10px; font-size: 13.5px; }
.page[data-page="billing"] .l4-foot .btn-link { font-size: 13.5px; }
/* End Team's own holder of the keyboard (with Keep Team's): no box of its own, so the foot lays out as before */
.page[data-page="billing"] .l4-foot-end { display: contents; }
.page[data-page="billing"] .l4 > .billing-renewal:not(:empty) { margin-top: -18px; }
/* the renewal where a removal is arranged, beside the links that change it */
.page[data-page="billing"] .l4-renews { margin-top: -18px; max-width: 72ch; font-size: 13.5px; line-height: 1.45; color: var(--ink-2); text-wrap: pretty; }
.page[data-page="billing"] .l4-meter-note { margin-top: -12px; max-width: 72ch; font-size: 12.5px; line-height: 1.45; color: var(--ink-3); text-wrap: pretty; }

/* a press out to the gateway: the console's own track of a wait at its foot; marked unavailable, never disabled */
.page[data-page="billing"] .l4 :is(.btn, .btn-link)[aria-busy="true"] { position: relative; cursor: progress; }
.page[data-page="billing"] .l4 :is(.btn, .btn-link)[aria-busy="true"] > * { opacity: .6; }
.page[data-page="billing"] .l4 .btn[aria-busy="true"]::before, .page[data-page="billing"] .l4 .btn[aria-busy="true"]::after {
  content: ""; position: absolute; left: calc(50% - 12px); bottom: 7px; height: 2px; border-radius: var(--radius-cap); background: currentColor;
}
.page[data-page="billing"] .l4 .btn[aria-busy="true"]::before { width: 24px; opacity: .2; }
.page[data-page="billing"] .l4 .btn[aria-busy="true"]::after { width: 8px; animation: action-travel 1.2s ease-in-out infinite alternate; }
.page[data-page="billing"] .l4 :is(.btn, .btn-link)[aria-disabled="true"]:not([aria-busy="true"]) { opacity: .45; cursor: default; }
@media (hover: hover) { .page[data-page="billing"] .l4 .btn-link[aria-disabled="true"]:hover { text-decoration-color: var(--ink-4); } }

/* ---------------------------------------------------------------- narrower columns */

@container l4 (max-width: 599px) {
  .page[data-page="billing"] .l4-mark[data-keep="wide"] { display: none; }
  .page[data-page="billing"] .l4 { row-gap: 20px; }
  .page[data-page="billing"] .l4-head { margin-top: 4px; font-size: 22px; letter-spacing: -.012em; }
  .page[data-page="billing"] .l4-sub { font-size: 15px; }
  .page[data-page="billing"] .l4 .l4-first { display: flex; width: 100%; height: 48px; }
  .page[data-page="billing"] .l4-big b { font-size: 34px; }
  .page[data-page="billing"] .l4 .l4-go { flex: 1 1 100%; height: 48px; }
  .page[data-page="billing"] .l4[data-kind="owner"] :is(.l4-go, .l4-switch) { justify-self: stretch; min-width: 0; width: 100%; }
  .page[data-page="billing"] .l4-did[data-inline="true"] .l4-did-list { column-gap: 18px; }
  .page[data-page="billing"] .l4-month { margin-top: 10px; }
  .page[data-page="billing"] .l4-team { padding-top: 10px; }
  .page[data-page="billing"] .l4-scale { margin-top: 10px; }
  .page[data-page="billing"] .l4-price-row, .page[data-page="billing"] .l4-act { margin-top: 12px; }
  .page[data-page="billing"] .l4 > .billing-renewal:not(:empty) { margin-top: -8px; }
}
@container l4 (max-width: 439px) {
  .page[data-page="billing"] .l4[data-kind="owner"] .l4-about { display: none; }
  .page[data-page="billing"] .l4-mini { width: 44px; margin: 0 10px; }
}
@container l4 (max-width: 359px) {
  .page[data-page="billing"] .l4-head { font-size: 20px; }
  .page[data-page="billing"] .l4-sub { font-size: 14.5px; }
  .page[data-page="billing"] .l4-big b { font-size: 30px; }
  .page[data-page="billing"] .l4-words { gap: 14px; }
}
/* below 900 px every target is 40 px tall (the console's rule) */
@media (max-width: 899px) {
  .page[data-page="billing"] .l4 :is(.l4-talk, .l4-foot .btn-link, .l4-tops .btn-link, .l4-line-act) { display: inline-flex; align-items: center; min-height: 40px; }
  .page[data-page="billing"] .l4 :is(.l4-tops .btn-link, .l4-line-act) { vertical-align: middle; margin-block: -10px; }
  .page[data-page="billing"] .l4 .l4-get-act { display: inline-flex; align-items: center; min-height: 40px; margin-block: -11px; }
  .page[data-page="billing"] .l4 .l4-talk { vertical-align: middle; margin-block: -10px; }
  .page[data-page="billing"] .l4-word { height: 40px; line-height: 40px; }
  .page[data-page="billing"] .l4-words { margin-block: -8px; }
  .page[data-page="billing"] .l4 .l4-switch { height: 40px; }
}

/* ---------------------------------------------------------------- the dialogs */

/* a dialog of the page opens with its top edge at one height and keeps it, whatever its body then holds: what
   changes inside never moves its title. Its foot stays in view over a body longer than the screen, so the button
   that acts is never below the fold */
.billing-dialog { margin: max(24px, 14vh) auto auto; max-height: calc(100vh - max(24px, 14vh) - 24px); }
@media (max-height: 640px) {
  .billing-dialog { margin-top: 16px; max-height: calc(100vh - 32px); }
}
.billing-dialog .dialog-foot { position: sticky; bottom: 0; background: var(--raised); }
/* a body longer than its screen runs on under the foot: while more of it lies there (billing.js marks the dialog),
   the foot's top edge fades what passes under it, so a sentence is never read as cut where it only goes on */
.billing-dialog[data-more] .dialog-foot::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: calc(100% + 1px); height: 28px; pointer-events: none;
  background: linear-gradient(to top, var(--raised), color-mix(in srgb, var(--raised) 0%, transparent));
}
.billing-dialog .dialog-head > .icon-btn { flex: none; }

.billing-dialog .billing-dialog-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-content: start; min-width: 0; }
.billing-dialog .billing-dialog-body > p { color: var(--ink-2); text-wrap: pretty; }
.billing-dialog .billing-dialog-body > .notice { color: var(--ink); }
/* what a dialog shows arrives in order: each part rises in after the one before */
.billing-dialog .billing-dialog-body[data-motion="in"] > * { animation: disclose-rise 420ms var(--ease-out) both; }
.billing-dialog .billing-dialog-body[data-motion="in"] > :nth-child(2) { animation-delay: 70ms; }
.billing-dialog .billing-dialog-body[data-motion="in"] > :nth-child(3) { animation-delay: 140ms; }
.billing-dialog .billing-dialog-body[data-motion="in"] > :nth-child(4) { animation-delay: 210ms; }
.billing-dialog .billing-dialog-body[data-motion="in"] > :nth-child(n + 5) { animation-delay: 280ms; }

/* the automatic top-ups: what they are, why they open as they do, the number as a stepper from 1, what that number
   allows in each month, and what switching them off leaves, said as Switch off asks for its second press */
.billing-dialog .l4-tops-body { gap: 14px; }
.billing-dialog .billing-dialog-body > p.l4-tops-what { color: var(--ink); }
.billing-dialog .l4-tops-body[data-form="on"] > p.l4-tops-what { color: var(--ink-2); }
.billing-dialog .billing-dialog-body > p.l4-tops-why { color: var(--ink); }
.billing-dialog .l4-step { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink); }
.billing-dialog .l4-step-btn { width: var(--control-h); padding: 0; justify-content: center; font-size: 16px; }
.billing-dialog .l4-step-btn[aria-disabled="true"] { opacity: .45; cursor: default; }
.billing-dialog .l4-step-n { min-width: 2ch; text-align: center; font-size: 17px; font-weight: 650; font-variant-numeric: tabular-nums; }
.billing-dialog .billing-dialog-body > p.l4-tops-sum { font-size: 13.5px; line-height: 1.5; }
.billing-dialog .l4-tops-sum b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.billing-dialog .billing-dialog-body > p.l4-tops-off-said { color: var(--ink); }
.billing-dialog .l4-tops-off-said:empty { position: absolute; }
.billing-dialog .l4-swap-x { display: inline-grid; }
.billing-dialog .l4-swap-x > * { grid-area: 1 / 1; }
.billing-dialog .l4-tops-off[data-armed="false"] [data-for="again"], .billing-dialog .l4-tops-off[data-armed="true"] [data-for="first"] { visibility: hidden; }
.billing-dialog .l4-tops-off[data-armed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.billing-dialog.l4-tops-dialog .dialog-foot { justify-content: space-between; gap: 8px; }
/* a foot with Switch off apart from the way out and the button that sets: the two stay together at its end, and
   where the three do not fit a line (a long figure in the last one) they take the line under Switch off */
.billing-dialog .dialog-foot:has(.l4-tops-off) { flex-wrap: wrap; }
.billing-dialog .dialog-foot:has(.l4-tops-off) > .dialog-actions { flex-wrap: nowrap; }
/* as the owner's form has it: a little wider than the console's small dialog, and the whole screen on a phone */
.billing-dialog.l4-tops-dialog.dialog { width: min(500px, calc(100vw - 32px)); }
@media (max-width: 599px) {
  .billing-dialog.l4-tops-dialog.dialog { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 0; }
}

/* the meeting: Talk to us, Book onboarding, a GPU cloud. The team's calendar, framed only on Fluid's own origin; a
   drawing of it holds its place until it says it shows the console's theme */

.billing-dialog.l4-talk-dialog { width: min(700px, calc(100vw - 32px)); }
.billing-dialog .l4-talk-len { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; }
.billing-dialog.l4-talk-dialog .l4-talk-close { margin: -6px -8px 0 0; }
.billing-dialog .l4-talk-body { position: relative; }
.billing-dialog .l4-cal-wait { display: grid; gap: 14px; }
.billing-dialog .l4-cal { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 28px; min-height: 230px; padding: 20px; border: 1px solid var(--rule); border-radius: var(--radius); }
.billing-dialog .l4-cal-days { display: grid; grid-template-columns: repeat(7, 30px); gap: 8px; align-content: start; }
.billing-dialog .l4-cal-days i { display: block; aspect-ratio: 1; border-radius: 50%; background: var(--paper-3); }
.billing-dialog .l4-cal-days i[data-on="true"] { background: var(--ink-4); }
.billing-dialog .l4-cal-times { display: grid; gap: 8px; align-content: start; }
.billing-dialog .l4-cal-times i { display: block; height: 32px; border-radius: var(--radius); background: var(--paper-3); }
.billing-dialog .l4-cal-note { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 13.5px; line-height: 1.5; color: var(--ink-2); }
.billing-dialog .l4-cal-frame { display: block; width: 100%; height: var(--l4-cal-height, 0px); border: 0; }
/* the calendar shown once it says it shows the console's theme; its drawing goes then */
.billing-dialog.l4-talk-dialog:not([data-ready]) .l4-cal-frame { position: absolute; visibility: hidden; }
.billing-dialog.l4-talk-dialog[data-ready] .l4-cal-wait { display: none; }
.billing-dialog.l4-talk-dialog[data-slow] .l4-cal { display: none; }
@media (max-width: 599px) {
  .billing-dialog.l4-talk-dialog { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 0; }
  .billing-dialog .l4-cal { grid-template-columns: minmax(0, 1fr); }
  .billing-dialog .l4-cal-days { grid-template-columns: repeat(7, minmax(0, 30px)); }
}

@media (max-width: 599px) {
  /* a dialog's buttons take the foot's width between them, and one under another where two do not fit a line */
  .billing-dialog .dialog-foot > .dialog-actions { flex: 1 1 100%; }
  .billing-dialog .dialog-foot > .dialog-actions > .btn { flex: 1 1 auto; justify-content: center; }
  /* Switch off on the foot's width, over the way out and the button that sets */
  .billing-dialog .dialog-foot > .l4-tops-off { flex: 1 1 100%; justify-content: center; }
}
@media (max-width: 899px) {
  .billing-dialog .l4-step-btn { width: 40px; }
}

/* ---------------------------------------------------------------- Balance beside Plan (billing-balance.js)

   While credit for Fluid Compute is sold the page has two tabs. Balance is in the month's own form: a line of
   figures, one sentence, what happens next and the presses, then "Paid with" and the activity as sections under
   rules, in one narrower measure. On a phone the presses take the column's width and the activity keeps what
   happened and its amount. */

.page[data-page="billing"] .billing-tabs { margin: 4px 0 20px; }
.page[data-page="billing"] > .billing-plan { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-content: start; min-width: 0; }
.page[data-page="billing"] > .billing-plan > .notice { max-width: 1280px; }
.page[data-page="billing"] > .billing-balance { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-content: start; min-width: 0; }
.page[data-page="billing"] > .billing-balance > .notice { max-width: 880px; }
.page[data-page="billing"] .bal-body { max-width: 880px; }
.page[data-page="billing"] .bal { row-gap: 40px; max-width: 880px; }
/* The first line's parts, a dot between two on one line and none where a line ends or begins, at every width: a
   part carries the dot before it, on its first line and drawn in the gap the line leaves between two parts, so
   where a part opens a line its dot falls outside the line's edge and is not drawn. */
.page[data-page="billing"] .bal-now .l4-ledger { --bal-dot: 14px; column-gap: var(--bal-dot); overflow: hidden; }
.page[data-page="billing"] .bal-now .l4-ledger > * { min-width: 0; }
.page[data-page="billing"] .bal-now .l4-ledger .bal-part > .l4-dot { display: inline-block; width: var(--bal-dot); margin: 0 0 0 calc(-1 * var(--bal-dot)); text-align: center; }
/* the presses under the sentence: one height, on the words' edge */
.page[data-page="billing"] .bal-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 20px; }
.page[data-page="billing"] .bal-acts .btn { flex: none; height: 40px; margin: 0; padding: 0 16px; font-size: 14.5px; }
/* what came of the last press, under them; while nothing is said, no room */
.page[data-page="billing"] .bal-said { margin-top: 14px; max-width: 72ch; }
.page[data-page="billing"] .bal-said:empty { position: absolute; margin: 0; }
.page[data-page="billing"] .bal-said .billing-lead { color: var(--ink); }
/* the method on file: its name, what it is, and the quiet way to another */
.page[data-page="billing"] .bal-method { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; font-size: 15px; }
.page[data-page="billing"] .bal-method .bal-change { margin-left: auto; font-size: 13px; font-weight: 500; color: var(--ink-2); }
.page[data-page="billing"] .bal-linking { margin-top: 6px; }
.page[data-page="billing"] .bal-panel > .panel-head { align-items: center; }
/* the activity: what happened takes the room, a receipt beside it, the figures at the row's end */
.page[data-page="billing"] .bal-table .table :is(th, td).bal-day { width: 1%; padding-right: 40px; }
.page[data-page="billing"] .bal-table .table td.bal-what { white-space: normal; }
.page[data-page="billing"] .bal-table .table :is(th, td):is(.bal-amount, .bal-run) { width: 1%; padding-left: 28px; }
.page[data-page="billing"] .bal-table .table tr[data-quiet] > td { color: var(--ink-2); }
/* A row with a line under what it says (a bank payment that gave credit early): it grows to hold both lines, with
   room over and under them, and its date and amount stand level with the first. */
.page[data-page="billing"] .bal-table .table tr[data-noted] > td { height: auto; padding-top: 14px; padding-bottom: 14px; vertical-align: top; }
.page[data-page="billing"] .bal .bal-receipt { margin-left: 12px; font-size: 13px; font-weight: 500; color: var(--ink-2); }
/* Under a bank payment that gave credit early: that the bank can still return it. A line of its own, quieter. */
.page[data-page="billing"] .bal .bal-note { display: block; margin-top: 2px; font-size: 12.5px; line-height: 1.45; text-wrap: pretty; }
.page[data-page="billing"] .bal-more { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-top: 10px; font-size: 13.5px; }
.page[data-page="billing"] .bal-more:empty { display: none; }
.page[data-page="billing"] .bal-more .btn-link { font-size: 13.5px; }
.page[data-page="billing"] .bal-more-said { color: var(--ink-2); }
.page[data-page="billing"] .bal-activity > .note { margin-top: 10px; }
/* a balance the gateway leaves out of a page far back: a dash in the figures' quieter ink, and one line under the list */
.page[data-page="billing"] .bal-table .bal-none { color: var(--ink-3); }
.page[data-page="billing"] .bal-activity > .note.bal-deep + .note { margin-top: 2px; }
/* below 900 px every target is 40 px tall (the console's rule) */
@media (max-width: 899px) {
  .page[data-page="billing"] .bal :is(.bal-receipt, .bal-change, .bal-more .btn-link) { display: inline-flex; align-items: center; min-height: 40px; }
  .page[data-page="billing"] .bal .bal-receipt { vertical-align: middle; margin-block: -10px; }
  .page[data-page="billing"] .bal-panel > .panel-head > .btn { height: 40px; }
}
@container l4 (max-width: 599px) {
  .page[data-page="billing"] .bal { row-gap: 32px; }
  .page[data-page="billing"] .bal-acts { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 16px; }
  .page[data-page="billing"] .bal-acts .btn { width: 100%; height: 48px; font-size: 15px; }
  .page[data-page="billing"] .bal-method .bal-change { margin-left: 0; flex-basis: 100%; }
  /* the row keeps when, what and how much: the balance after each row is the wide page's */
  .page[data-page="billing"] .bal-table .table { min-width: 0; }
  .page[data-page="billing"] .bal-table .table :is(th, td).bal-run { display: none; }
  .page[data-page="billing"] .bal-activity > .note.bal-deep { display: none; }
  .page[data-page="billing"] .bal-table .table :is(th, td).bal-day { padding-right: 16px; }
  .page[data-page="billing"] .bal-table .table :is(th, td).bal-amount { padding-left: 12px; padding-right: 0; }
  .page[data-page="billing"] .bal-table .table td.bal-what { padding-top: 8px; padding-bottom: 8px; height: auto; }
  /* a receipt under what it is for, on the words' edge: always a line of its own, whatever room the words leave
     (named by its table too, so it is no less specific than the rule of the 40 px targets above) */
  .page[data-page="billing"] .bal .bal-table .bal-receipt { display: flex; width: fit-content; margin: -8px 0 -10px; }
}

/* Add credit and auto top-up: the page's dialogs, a little wider than the console's small one, the whole screen on
   a phone. What a dialog shows is in order: the choice, what it comes to, then what came of a press */
.billing-dialog.bal-dialog.dialog { width: min(520px, calc(100vw - 32px)); }
.billing-dialog .bal-add { gap: 18px; }
.billing-dialog .bal-choose { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; min-width: 0; }
.billing-dialog .bal-choose > .segmented { justify-self: start; max-width: 100%; }
/* While a purchase is out the amount is not to be changed: the choices stay where they are, quieter, and take nothing. */
.billing-dialog .bal-choose[data-locked] > .segmented, .billing-dialog .bal-choose[data-locked] > .bal-other { opacity: .55; }
.billing-dialog .bal-choose[data-locked] [role="radio"] { cursor: default; }
.billing-dialog .bal-label { font-size: 12.5px; font-weight: 500; font-stretch: var(--label-stretch); line-height: 1.4; color: var(--ink-3); }
.billing-dialog .bal-other { margin-top: 6px; max-width: 220px; }
.billing-dialog .bal-other[data-arrived] { animation: disclose-rise 420ms var(--ease-out) both; }
/* the amount's lines: each its words and its figure, the balance after it in weight under a rule of ink */
.billing-dialog .bal-early { margin: 0; font-size: 12.5px; line-height: 1.45; text-wrap: pretty; }
.billing-dialog .bal-early[data-arrived] { animation: disclose-rise 420ms var(--ease-out) both; }
.billing-dialog .bal-sums { margin: 0; border-top: 1px solid var(--rule); }
.billing-dialog .bal-sum { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--rule); }
.billing-dialog .bal-sum > dt { min-width: 0; color: var(--ink); text-wrap: pretty; }
.billing-dialog .bal-sum > dd { flex: none; margin: 0; color: var(--ink); font-variant-numeric: tabular-nums; }
.billing-dialog .bal-sum[data-kind="total"] { border-bottom: 0; font-weight: 600; }
.billing-dialog .bal-sums[data-muted] .bal-sum:not([data-kind="today"]) > dd { color: var(--ink-3); }
.billing-dialog .bal-sum > [data-arrived] { animation: disclose-rise 420ms var(--ease-out) both; }
/* what came of a press, or of the question an amount asks: the console's notice with no rules of its own */
.billing-dialog .bal-status:empty { position: absolute; }
.billing-dialog .bal-status > .notice { border: 0; padding: 0; color: var(--ink); }
.billing-dialog .bal-status > [data-arrived] { animation: disclose-rise 420ms var(--ease-out) both; }
.billing-dialog .bal-status .notice-text { text-wrap: pretty; }
.billing-dialog .bal-status .billing-lead { font-weight: 600; }
.billing-dialog .bal-status > .billing-asking { min-height: 0; padding: 0; font-size: 12.5px; color: var(--ink-3); }
.billing-dialog .bal-status > .billing-asking[data-arrived] { animation: quiet-wait .25s ease-out .6s both; }
/* under a refusal for the bank payments under way: the quiet way to another method, on the edge of the words over
   it (a notice's words stand 20 px in, after its mark) */
.billing-dialog .bal-by-card { justify-self: start; margin: -8px 0 0 20px; font-size: 13.5px; }
/* a button that waits: marked unavailable, never disabled, so the keyboard stays on it */
.billing-dialog.bal-dialog .dialog-actions .btn[aria-disabled="true"] { opacity: .45; cursor: default; }
.billing-dialog.bal-dialog .dialog-actions .btn[data-armed="true"] { box-shadow: 0 0 0 2px var(--raised), 0 0 0 3px var(--ink); }
/* auto top-up: what it is, why it adds nothing now, its three amounts, and what they allow */
.billing-dialog .bal-auto { gap: 14px; }
.billing-dialog .billing-dialog-body > p.bal-auto-what { color: var(--ink); }
.billing-dialog .bal-auto[data-form="on"] > p.bal-auto-what { color: var(--ink-2); }
.billing-dialog .billing-dialog-body > p.bal-auto-why { color: var(--ink); }
.billing-dialog .bal-auto-fields { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; max-width: 300px; }
.billing-dialog .billing-dialog-body > p.bal-auto-sum { font-size: 13.5px; line-height: 1.5; }
.billing-dialog .bal-auto-sum:empty, .billing-dialog .bal-auto-off-said:empty { position: absolute; }
.billing-dialog .billing-dialog-body > p.bal-auto-off-said { color: var(--ink); }
.billing-dialog.bal-auto-dialog .dialog-foot { justify-content: space-between; gap: 8px; }
@media (max-width: 899px) {
  .billing-dialog .bal-by-card { display: inline-flex; align-items: center; min-height: 40px; margin-top: -14px; }
}
@media (max-width: 599px) {
  .billing-dialog.bal-dialog.dialog { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 0; }
  .billing-dialog .bal-other, .billing-dialog .bal-auto-fields { max-width: none; }
}

/* Limits (billing-limits.js): every limit the workspace has, in one ruled section under the page's tabs, in the
   measure of the tab over it. A row a limit, under a hairline: its name with the page where it is changed under it,
   where it stands (a figure in ink, the console's plain meter where it is a share of something), and one sentence
   of what happens when it is reached. Three columns where the section has room for them; narrower, a row is its
   parts one under the other, so none is wider than its place. Nothing here wears a hue: a limit that is reached or
   nearly is the tone of attention, in its meter and its figure alone. */
.page[data-page="billing"] > .billing-limits { container: limits / inline-size; max-width: 1080px; min-width: 0; margin-top: 16px; }
.page[data-page="billing"] > .billing-limits[data-beside="balance"] { max-width: 880px; }
.page[data-page="billing"] .limits-panel > .panel-head { align-items: center; }
.page[data-page="billing"] .limits { display: grid; grid-template-columns: minmax(0, 1fr); }
.page[data-page="billing"] .limit {
  display: grid; grid-template-columns: minmax(0, 176px) minmax(0, 15fr) minmax(0, 12fr); grid-template-rows: auto 1fr;
  grid-template-areas: "name lines says" "link lines says"; gap: 2px 28px; align-items: start;
  padding: 14px 0 15px; border-bottom: 1px solid var(--rule);
}
.page[data-page="billing"] .limit:last-child { border-bottom: 0; padding-bottom: 4px; }
.page[data-page="billing"] .limit-name { grid-area: name; font-size: 14px; font-weight: 600; line-height: 1.45; color: var(--ink); text-wrap: balance; }
.page[data-page="billing"] .limit-link { grid-area: link; justify-self: start; font-size: 13px; font-weight: 500; line-height: 1.45; color: var(--ink-2); }
.page[data-page="billing"] .limit-lines { grid-area: lines; display: grid; gap: 5px; min-width: 0; font-size: 13.5px; line-height: 1.45; font-variant-numeric: tabular-nums; }
/* a line: whose it is, its meter, then its figure and words, which wrap in their own column. Whose limit a line is
   has one width where a row lists several, so their meters stand in a column */
.page[data-page="billing"] .limit-lines { --limit-of: 7.5em; --limit-meter: 48px; }
.page[data-page="billing"] .limit-line { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: 10px; align-items: baseline; min-width: 0; color: var(--ink-2); }
.page[data-page="billing"] .limit-line[data-named] { grid-template-columns: var(--limit-of) minmax(0, 1fr); }
.page[data-page="billing"] .limit-line[data-metered] { grid-template-columns: var(--limit-meter) minmax(0, 1fr); }
.page[data-page="billing"] .limit-line[data-named][data-metered] { grid-template-columns: var(--limit-of) var(--limit-meter) minmax(0, 1fr); }
.page[data-page="billing"] .limit-line > .meter { align-self: center; }
.page[data-page="billing"] .limit-line b { margin-right: 6px; font-weight: 600; color: var(--ink); }
.page[data-page="billing"] .limit-line[data-quiet] { font-size: 12.5px; color: var(--ink-3); }
.page[data-page="billing"] .limit-of { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
/* a line under a named one (a key's other limits) stands in from the names, and close under its own line */
.page[data-page="billing"] .limit-line[data-under] { margin-top: -3px; padding-left: calc(var(--limit-of) + 10px); }
.page[data-page="billing"] .limit-says { grid-area: says; font-size: 13.5px; line-height: 1.45; color: var(--ink-2); text-wrap: pretty; }
.page[data-page="billing"] .limit[data-tone="bad"] .limit-line b { color: var(--bad); }
/* in the plan's wider measure a name has more room before it gives way */
@container limits (min-width: 960px) { .page[data-page="billing"] .limit-lines { --limit-of: 10.5em; } }
@container limits (max-width: 719px) {
  .page[data-page="billing"] .limit { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-template-areas: "name" "lines" "says" "link"; gap: 6px; padding: 14px 0 12px; }
  .page[data-page="billing"] .limit-lines { --limit-of: 7em; }
}
/* below 900 px every target is 40 px tall (the console's rule) */
@media (max-width: 899px) {
  .page[data-page="billing"] .limit-link { display: inline-flex; align-items: center; min-height: 40px; }
}
