/* AdGraph account pages: what app.css does not carry.
   app.css is the design program's file, lifted as it is (design/program/prototypes/app.css, frozen
   12 Nov 2026) and never edited here. This file holds, in order:
   1. the rules the first-result prototypes keep in their own <style> blocks
      (first-result-v2.html, first-result-making.html), copied as they are;
   2. the empty state of account-setup.html;
   3. plain rules for the sections built before the design program, which use bare elements and
      wait for their own port: they are made to sit in the same type and paper, no more.
   Sizes are app.css's and the system's (design/program/DESIGN.md v0.7), not account-setup.html's
   own, which fall short of the floor: no text under 12px, contrast at least 4.5:1, and every button,
   select, field and bar link at least 44px tall. Light only, and every colour a token of app.css,
   so a dark stylesheet can follow without a change to the markup. */

/* 1. first-result-v2.html and first-result-making.html */
.r-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.r-window { color: var(--ink2); margin: 0 0 4px; }
.sample-banner { margin: 0 0 22px; padding: 12px 14px; border: 1px dashed var(--line2); border-radius: 8px; color: var(--ink2); }
.lede { font-size: 17px; max-width: 62ch; }
.return { font-size: clamp(34px, 6vw, 48px); line-height: 1.05; letter-spacing: -.04em; margin: 4px 0 8px; }
.return span { color: var(--ink2); }
.calc { color: var(--ink2); max-width: 64ch; }
.meta-none { margin-top: 12px; }
.ready h2 { font-size: 21px; }
.ask label { display: block; font-size: 19px; letter-spacing: -.02em; margin: 0 0 10px; }
.ask .actions { margin-top: 10px; }
.nw { white-space: nowrap; }
.roas-cell { display: block; font-size: 13px; color: var(--ink2); white-space: nowrap; }
@media (max-width: 720px) { .roas-cell { display: inline; } .roas-cell::before { content: "("; } .roas-cell::after { content: ")"; } }
.return .roas { font-size: .42em; letter-spacing: -.01em; white-space: nowrap; vertical-align: .35em; }
.flag .fine { color: inherit; }

/* The result sits inside the one account page, under the page's own h1: its title is an h2 and its
   blocks are h3, set in the sizes the prototype gives its h1 and h2. */
.result { padding: 28px 0 0; margin-top: 28px; border-top: 1px solid var(--line); }
.result-title { font-size: 30px; line-height: 1.15; font-weight: 400; letter-spacing: -.035em; margin: 0 0 6px; }
.block h3 { font-size: 19px; line-height: 1.3; font-weight: 400; letter-spacing: -.02em; margin: 0 0 8px; }
.ready h3 { font-size: 21px; }
.result .steps { margin: 16px 0; }
/* A platform names its conversions in its own words, and some are one long unbroken word
   (`offsite_conversion.fb_pixel_purchase`): it wraps inside its own figure or cell, not over the next. */
.fig small, .tbl td, .lede, .list > li { overflow-wrap: anywhere; }
/* A figure is never broken across two lines ("$300." over "00"). */
.tbl td.r { overflow-wrap: normal; white-space: nowrap; }
/* The list of searches (unit L07): a search is the searcher's own words, however long, and wraps
   inside its cell; under it, the campaign it ran in, on a line of its own. */
.tbl th.term { overflow-wrap: anywhere; }
.tbl th .fine { display: block; }

/* The top bar. Every target is at least 44px tall (design/program/DESIGN.md v0.7, the floor):
   app.css leaves the wordmark link 26px, and `Sign out` is a form post here, set as the bar's link. */
.brand { min-height: 44px; }
.bar__end form { margin: 0; }
.bar__out { min-height: 44px; padding: 0; border: 0; border-radius: 0; background: none; color: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.bar__out:hover { background: none; color: var(--ink); }

/* 2. account-setup.html: an empty state says what comes next and when */
.empty { border: 1px dashed var(--line2); border-radius: 10px; padding: 22px 20px; color: var(--ink2); }
.empty p { margin: 0; }
.empty p + p { margin-top: 6px; }

/* 3. the sections not yet ported: bare elements in the same type and paper */
.col > h2 { margin-top: 32px; }
.col > h1 + p { margin-top: 0; }
h3 { font-size: 16px; line-height: 1.3; font-weight: 500; letter-spacing: -.01em; margin: 20px 0 6px; }
table { border-collapse: collapse; margin: 6px 0 12px; }
td, th { text-align: left; vertical-align: top; padding: 6px 16px 6px 0; font-weight: 400; }
form { margin: 0 0 12px; }
button { font: inherit; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border-radius: 6px; border: 1px solid var(--line2); background: transparent; color: var(--ink); cursor: pointer; }
button:hover { background: var(--paper2); border-color: var(--ink2); }
input[type=text], input[type=email], input[type=password] { font: inherit; color: inherit; width: 100%; max-width: 30rem; min-height: 44px; padding: 0 12px; border: 1px solid var(--line2); border-radius: 8px; background: var(--card); }
select { font: inherit; color: inherit; min-height: 44px; padding: 0 8px; border: 1px solid var(--line2); border-radius: 6px; background: var(--card); }
input[type=checkbox], input[type=radio] { width: 18px; height: 18px; margin: 0 8px 0 0; vertical-align: -3px; }
