/* The account page in the site's frame (site/account/). The four boxes and everything in them
 * are styled by the account service's own stylesheet (/account-assets/<version>/
 * nightbreak-auth.css), the same file WordPress's page loads. Only where the page sits is said
 * here, and what the site's base styles would otherwise change inside the boxes.
 *
 * That stylesheet pushes the page 120px down, clear of WordPress's fixed header. The site's
 * header is in the page's flow, so here the push is taken off. */
.acct .nightbreak-account-page { margin-top: 0; }

/* The site's header is put above this page by a script, and the page has a screen's height from
 * the start (the account stylesheet, 3.1.1), so it was painted and then pushed down by the
 * header's height: a layout shift of 0.06 on its own. The page now waits for the header. The
 * wait is an animation, so a header that never comes costs four seconds and not the page. */
@supports selector(:has(*)) {
  body.acct:not(:has(> header.nb-shell)) .acct-main { animation: acct-wait 4s step-end; }
}
@keyframes acct-wait { from { visibility: hidden; } to { visibility: visible; } }

.acct-noscript { margin: 48px auto; max-width: 40rem; padding: 0 16px; text-align: center; }

/* The account stylesheet was written on top of WordPress's theme, and leans on three of its base
 * styles that the site's (shared/lab.css) do not have. Without these the boxes look different
 * here: found by setting the two pages side by side (tools/alpha/account-compare.mjs --shots,
 * its "look" lines, 2026-11-16). Each rule has no weight of its own (:where), so every rule of
 * the account stylesheet still wins, as it does on WordPress. A modal and a toast hang on <body>.
 *   - a button, a field: the page's font, not the browser's own (Arial here);
 *   - a heading without a weight of its own: 900, the theme's, not the browser's 700;
 *   - the sign-in card's owl: in the line, so the card centres it (lab.css makes every picture
 *     a block, which sits left). */
:where(.acct .nightbreak-account-page, .acct .nb-modal-overlay, .acct .nb-toast) :where(button, input, select, textarea) { font-family: inherit; }
:where(.acct .nightbreak-account-page, .acct .nb-modal-overlay) :where(h1, h2, h3, h4, h5, h6) { font-weight: 900; }
.acct .nightbreak-account-page .nb-login-logo { display: inline; }

/* The one line under the account's boxes: a link to "My server" (the server list). */
.acct-servers { border-top: 1px solid rgb(255 255 255 / .1); font-size: 15px; margin: 32px 0 0; padding-top: 18px; text-align: center; }
.acct-servers a { color: #fff; font-weight: 700; text-decoration: underline; text-decoration-color: #ff5a1f; text-underline-offset: 3px; }
